From 39d98386f72c65826e162e3e8fd36752ec469252 Mon Sep 17 00:00:00 2001 From: tpearson Date: Tue, 16 Aug 2011 09:06:37 +0000 Subject: [PATCH] Move python-kde3 to the more correct python-trinity git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/libraries/python-trinity@1247483 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- AUTHORS | 6 + BUGS | 0 COPYING | 343 +++++ ChangeLog | 602 +++++++++ ChangeLog.2001-4 | 185 +++ Changelog | 779 +++++++++++ INSTALL | 14 + NEWS | 3 + README | 5 + THANKS | 109 ++ configure.py | 964 ++++++++++++++ contrib/kdepyuic | 163 +++ doc/classref/allclasses.html | 801 ++++++++++++ doc/classref/dcop/DCOPClient.html | 456 +++++++ doc/classref/dcop/DCOPObject.html | 160 +++ doc/classref/dcop/DCOPObjectProxy.html | 60 + doc/classref/dcop/DCOPRef.html | 142 ++ doc/classref/dcop/DCOPReply.html | 50 + doc/classref/dcop/DCOPStub.html | 93 ++ doc/classref/dcop/index.html | 40 + doc/classref/glossary.html | 40 + doc/classref/index.html | 57 + doc/classref/kabc/KABC.Address.html | 249 ++++ doc/classref/kabc/KABC.AddressBook.html | 281 ++++ doc/classref/kabc/KABC.AddressLineEdit.html | 123 ++ doc/classref/kabc/KABC.AddresseeDialog.html | 72 ++ doc/classref/kabc/KABC.AddresseeItem.html | 61 + doc/classref/kabc/KABC.Agent.html | 105 ++ .../kabc/KABC.ConsoleErrorHandler.html | 48 + .../kabc/KABC.DistributionList.Entry.html | 56 + doc/classref/kabc/KABC.DistributionList.html | 77 ++ .../kabc/KABC.DistributionListDialog.html | 49 + .../KABC.DistributionListEditorWidget.html | 49 + .../kabc/KABC.DistributionListManager.html | 74 ++ .../kabc/KABC.DistributionListWatcher.html | 58 + doc/classref/kabc/KABC.EmailSelectDialog.html | 61 + doc/classref/kabc/KABC.EmailSelector.html | 64 + doc/classref/kabc/KABC.ErrorHandler.html | 49 + doc/classref/kabc/KABC.Field.html | 184 +++ doc/classref/kabc/KABC.FieldSortMode.html | 57 + doc/classref/kabc/KABC.Format.html | 57 + doc/classref/kabc/KABC.FormatFactory.html | 72 ++ doc/classref/kabc/KABC.FormatInfo.html | 45 + doc/classref/kabc/KABC.FormatPlugin.html | 87 ++ doc/classref/kabc/KABC.GUIErrorHandler.html | 48 + doc/classref/kabc/KABC.Geo.html | 90 ++ doc/classref/kabc/KABC.GuiErrorHandler.html | 55 + doc/classref/kabc/KABC.Key.html | 140 ++ doc/classref/kabc/KABC.LDAPUrl.Extension.html | 44 + doc/classref/kabc/KABC.LDAPUrl.html | 152 +++ doc/classref/kabc/KABC.LDIF.html | 174 +++ doc/classref/kabc/KABC.LDIFConverter.html | 122 ++ doc/classref/kabc/KABC.LdapClient.html | 190 +++ doc/classref/kabc/KABC.LdapConfigWidget.html | 276 ++++ doc/classref/kabc/KABC.LdapObject.html | 88 ++ doc/classref/kabc/KABC.LdapResult.html | 45 + doc/classref/kabc/KABC.LdapSearch.html | 78 ++ doc/classref/kabc/KABC.Lock.html | 94 ++ doc/classref/kabc/KABC.LockNull.html | 60 + doc/classref/kabc/KABC.NameSortMode.html | 64 + doc/classref/kabc/KABC.PhoneNumber.html | 127 ++ doc/classref/kabc/KABC.Picture.html | 116 ++ doc/classref/kabc/KABC.Plugin.html | 78 ++ doc/classref/kabc/KABC.Resource.html | 346 +++++ doc/classref/kabc/KABC.ResourceFile.html | 312 +++++ .../kabc/KABC.ResourceSelectDialog.html | 70 + doc/classref/kabc/KABC.Secrecy.html | 100 ++ doc/classref/kabc/KABC.SortMode.html | 50 + .../kabc/KABC.SortingTraits.FamilyName.html | 59 + .../KABC.SortingTraits.FormattedName.html | 59 + .../kabc/KABC.SortingTraits.GivenName.html | 59 + .../kabc/KABC.SortingTraits.Name.html | 59 + doc/classref/kabc/KABC.SortingTraits.Uid.html | 59 + doc/classref/kabc/KABC.SortingTraits.html | 41 + doc/classref/kabc/KABC.Sound.html | 109 ++ doc/classref/kabc/KABC.StdAddressBook.html | 143 ++ doc/classref/kabc/KABC.Ticket.html | 50 + doc/classref/kabc/KABC.TimeZone.html | 80 ++ doc/classref/kabc/KABC.VCardConverter.html | 96 ++ doc/classref/kabc/KABC.VCardFormat.html | 58 + doc/classref/kabc/KABC.VCardFormatPlugin.html | 86 ++ doc/classref/kabc/KABC.html | 67 + doc/classref/kabc/index.html | 95 ++ doc/classref/kabc/kabc-globals.html | 28 + doc/classref/kdecore/KAboutData.html | 260 ++++ doc/classref/kdecore/KAboutPerson.html | 65 + doc/classref/kdecore/KAboutTranslator.html | 54 + doc/classref/kdecore/KAccel.html | 366 ++++++ doc/classref/kdecore/KAccelAction.html | 208 +++ doc/classref/kdecore/KAccelActions.html | 172 +++ doc/classref/kdecore/KAccelBase.html | 242 ++++ doc/classref/kdecore/KAccelShortcutList.html | 130 ++ doc/classref/kdecore/KApplication.html | 666 ++++++++++ doc/classref/kdecore/KAsyncIO.html | 70 + doc/classref/kdecore/KAudioPlayer.html | 59 + doc/classref/kdecore/KBufferedIO.html | 136 ++ doc/classref/kdecore/KCalendarSystem.html | 306 +++++ .../kdecore/KCalendarSystemFactory.html | 59 + doc/classref/kdecore/KCatalogue.html | 93 ++ doc/classref/kdecore/KCharMacroExpander.html | 75 ++ doc/classref/kdecore/KCharsets.html | 106 ++ .../kdecore/KClipboardSynchronizer.html | 84 ++ doc/classref/kdecore/KCmdLineArgs.html | 220 ++++ doc/classref/kdecore/KCmdLineOptions.html | 45 + doc/classref/kdecore/KCodecs.html | 182 +++ doc/classref/kdecore/KCompletion.html | 211 +++ doc/classref/kdecore/KCompletionBase.html | 141 ++ doc/classref/kdecore/KConfig.html | 149 +++ doc/classref/kdecore/KConfigBackEnd.html | 107 ++ doc/classref/kdecore/KConfigBase.html | 970 ++++++++++++++ .../kdecore/KConfigDialogManager.html | 130 ++ doc/classref/kdecore/KConfigGroup.html | 95 ++ doc/classref/kdecore/KConfigGroupSaver.html | 71 + doc/classref/kdecore/KConfigINIBackEnd.html | 88 ++ .../kdecore/KConfigSkeleton.ItemBool.html | 96 ++ .../kdecore/KConfigSkeleton.ItemColor.html | 102 ++ .../kdecore/KConfigSkeleton.ItemDateTime.html | 102 ++ .../kdecore/KConfigSkeleton.ItemDouble.html | 118 ++ .../KConfigSkeleton.ItemEnum.Choice.html | 45 + .../kdecore/KConfigSkeleton.ItemEnum.html | 90 ++ .../kdecore/KConfigSkeleton.ItemFont.html | 102 ++ .../kdecore/KConfigSkeleton.ItemInt.html | 118 ++ .../kdecore/KConfigSkeleton.ItemInt64.html | 124 ++ .../kdecore/KConfigSkeleton.ItemIntList.html | 102 ++ .../kdecore/KConfigSkeleton.ItemLong.html | 118 ++ .../kdecore/KConfigSkeleton.ItemPassword.html | 51 + .../kdecore/KConfigSkeleton.ItemPath.html | 51 + .../kdecore/KConfigSkeleton.ItemPathList.html | 65 + .../kdecore/KConfigSkeleton.ItemPoint.html | 102 ++ .../kdecore/KConfigSkeleton.ItemProperty.html | 102 ++ .../kdecore/KConfigSkeleton.ItemRect.html | 102 ++ .../kdecore/KConfigSkeleton.ItemSize.html | 102 ++ .../kdecore/KConfigSkeleton.ItemString.html | 106 ++ .../KConfigSkeleton.ItemStringList.html | 102 ++ .../kdecore/KConfigSkeleton.ItemUInt.html | 118 ++ .../kdecore/KConfigSkeleton.ItemUInt64.html | 124 ++ .../kdecore/KConfigSkeleton.ItemULong.html | 118 ++ doc/classref/kdecore/KConfigSkeleton.html | 334 +++++ doc/classref/kdecore/KConfigSkeletonItem.html | 170 +++ doc/classref/kdecore/KCrash.html | 82 ++ doc/classref/kdecore/KDCOPPropertyProxy.html | 91 ++ doc/classref/kdecore/KDE.html | 61 + doc/classref/kdecore/KDesktopFile.html | 155 +++ doc/classref/kdecore/KEntry.html | 54 + doc/classref/kdecore/KEntryKey.html | 56 + doc/classref/kdecore/KGlobal.html | 122 ++ doc/classref/kdecore/KGlobalAccel.html | 173 +++ .../KGlobalSettings.KMouseSettings.html | 46 + doc/classref/kdecore/KGlobalSettings.html | 270 ++++ doc/classref/kdecore/KIDNA.html | 62 + doc/classref/kdecore/KIPC.html | 63 + doc/classref/kdecore/KIcon.html | 69 + doc/classref/kdecore/KIconEffect.html | 205 +++ doc/classref/kdecore/KIconLoader.html | 195 +++ doc/classref/kdecore/KIconTheme.html | 140 ++ doc/classref/kdecore/KInstance.html | 103 ++ doc/classref/kdecore/KKey.html | 195 +++ doc/classref/kdecore/KKeyNative.html | 174 +++ doc/classref/kdecore/KKeySequence.html | 180 +++ doc/classref/kdecore/KKeyServer.CodeMod.html | 44 + doc/classref/kdecore/KKeyServer.Key.html | 103 ++ doc/classref/kdecore/KKeyServer.Sym.html | 92 ++ .../kdecore/KKeyServer.Variations.html | 68 + doc/classref/kdecore/KKeyServer.html | 132 ++ doc/classref/kdecore/KLibFactory.html | 72 ++ doc/classref/kdecore/KLibLoader.html | 91 ++ doc/classref/kdecore/KLibrary.html | 80 ++ doc/classref/kdecore/KLocale.html | 583 +++++++++ doc/classref/kdecore/KLockFile.html | 82 ++ doc/classref/kdecore/KMD4.html | 145 +++ doc/classref/kdecore/KMD5.html | 144 +++ doc/classref/kdecore/KMacroExpander.html | 113 ++ doc/classref/kdecore/KMacroExpanderBase.html | 99 ++ doc/classref/kdecore/KMimeSourceFactory.html | 54 + doc/classref/kdecore/KMountPoint.html | 92 ++ doc/classref/kdecore/KMultipleDrag.html | 82 ++ .../kdecore/KNotifyClient.Instance.html | 58 + doc/classref/kdecore/KNotifyClient.html | 148 +++ doc/classref/kdecore/KPalette.html | 140 ++ doc/classref/kdecore/KPixmapProvider.html | 49 + doc/classref/kdecore/KProcIO.html | 139 ++ doc/classref/kdecore/KProcess.html | 348 +++++ doc/classref/kdecore/KProcessController.html | 134 ++ doc/classref/kdecore/KPty.html | 96 ++ doc/classref/kdecore/KRFCDate.html | 74 ++ doc/classref/kdecore/KRandomSequence.html | 80 ++ doc/classref/kdecore/KRegExp.html | 82 ++ doc/classref/kdecore/KRootProp.html | 127 ++ doc/classref/kdecore/KSaveFile.html | 85 ++ doc/classref/kdecore/KSelectionOwner.html | 114 ++ doc/classref/kdecore/KSelectionWatcher.html | 77 ++ doc/classref/kdecore/KServerSocket.html | 108 ++ doc/classref/kdecore/KSessionManaged.html | 56 + doc/classref/kdecore/KShared.html | 62 + doc/classref/kdecore/KSharedConfig.html | 64 + doc/classref/kdecore/KShell.html | 88 ++ doc/classref/kdecore/KShellProcess.html | 68 + doc/classref/kdecore/KShortcut.html | 243 ++++ doc/classref/kdecore/KShortcutList.html | 159 +++ doc/classref/kdecore/KSimpleConfig.html | 65 + doc/classref/kdecore/KSocket.html | 126 ++ doc/classref/kdecore/KStartupInfo.html | 227 ++++ doc/classref/kdecore/KStartupInfoData.html | 195 +++ doc/classref/kdecore/KStartupInfoId.html | 98 ++ doc/classref/kdecore/KStaticDeleterBase.html | 45 + .../kdecore/KStdAccel.ShortcutList.html | 108 ++ doc/classref/kdecore/KStdAccel.html | 284 ++++ doc/classref/kdecore/KStringHandler.html | 292 +++++ doc/classref/kdecore/KTempDir.html | 99 ++ doc/classref/kdecore/KTempFile.html | 106 ++ doc/classref/kdecore/KTimezone.html | 129 ++ doc/classref/kdecore/KTimezoneDetails.html | 124 ++ doc/classref/kdecore/KTimezoneSource.html | 60 + doc/classref/kdecore/KTimezones.html | 74 ++ doc/classref/kdecore/KURL.List.html | 183 +++ doc/classref/kdecore/KURL.html | 562 ++++++++ doc/classref/kdecore/KURLDrag.html | 165 +++ doc/classref/kdecore/KUniqueApplication.html | 101 ++ doc/classref/kdecore/KWin.Info.html | 66 + doc/classref/kdecore/KWin.WindowInfo.html | 172 +++ doc/classref/kdecore/KWin.html | 304 +++++ doc/classref/kdecore/KWinModule.html | 191 +++ doc/classref/kdecore/KWordMacroExpander.html | 75 ++ doc/classref/kdecore/KZoneAllocator.html | 77 ++ doc/classref/kdecore/NET.html | 92 ++ doc/classref/kdecore/NETExtendedStrut.html | 60 + doc/classref/kdecore/NETIcon.html | 49 + doc/classref/kdecore/NETPoint.html | 49 + doc/classref/kdecore/NETRect.html | 44 + doc/classref/kdecore/NETRootInfo.html | 424 ++++++ doc/classref/kdecore/NETRootInfo2.html | 102 ++ doc/classref/kdecore/NETRootInfo3.html | 84 ++ doc/classref/kdecore/NETRootInfo4.html | 62 + doc/classref/kdecore/NETSize.html | 49 + doc/classref/kdecore/NETStrut.html | 51 + doc/classref/kdecore/NETWinInfo.html | 315 +++++ doc/classref/kdecore/index.html | 180 +++ doc/classref/kdecore/kdecore-globals.html | 209 +++ doc/classref/kdefx/KCPUInfo.html | 52 + doc/classref/kdefx/KImageEffect.html | 523 ++++++++ doc/classref/kdefx/KPixmap.html | 90 ++ doc/classref/kdefx/KPixmapEffect.html | 178 +++ doc/classref/kdefx/KPixmapSplitter.html | 86 ++ doc/classref/kdefx/KStyle.html | 212 +++ doc/classref/kdefx/index.html | 41 + doc/classref/kdefx/kdefx-globals.html | 151 +++ doc/classref/kdeprint/DrBase.html | 137 ++ doc/classref/kdeprint/DrBooleanOption.html | 45 + doc/classref/kdeprint/DrChoiceGroup.html | 48 + doc/classref/kdeprint/DrConstraint.html | 65 + doc/classref/kdeprint/DrFloatOption.html | 60 + doc/classref/kdeprint/DrGroup.html | 136 ++ doc/classref/kdeprint/DrIntegerOption.html | 60 + doc/classref/kdeprint/DrListOption.html | 110 ++ doc/classref/kdeprint/DrMain.html | 94 ++ doc/classref/kdeprint/DrPageSize.html | 105 ++ doc/classref/kdeprint/DrStringOption.html | 56 + doc/classref/kdeprint/KMJob.html | 242 ++++ .../kdeprint/KMJobManager.JobFilter.html | 50 + doc/classref/kdeprint/KMJobManager.html | 204 +++ doc/classref/kdeprint/KMManager.html | 363 ++++++ doc/classref/kdeprint/KMObject.html | 53 + doc/classref/kdeprint/KMPrinter.html | 420 ++++++ doc/classref/kdeprint/KPReloadObject.html | 57 + doc/classref/kdeprint/KPrintAction.html | 127 ++ doc/classref/kdeprint/KPrintDialog.html | 193 +++ doc/classref/kdeprint/KPrintDialogPage.html | 103 ++ doc/classref/kdeprint/KPrinter.html | 493 +++++++ doc/classref/kdeprint/index.html | 46 + doc/classref/kdeprint/kdeprint-globals.html | 45 + doc/classref/kdeui/KAboutApplication.html | 64 + doc/classref/kdeui/KAboutContainer.html | 111 ++ doc/classref/kdeui/KAboutContributor.html | 133 ++ doc/classref/kdeui/KAboutDialog.html | 263 ++++ doc/classref/kdeui/KAboutKDE.html | 49 + doc/classref/kdeui/KAboutWidget.html | 122 ++ doc/classref/kdeui/KAction.html | 531 ++++++++ doc/classref/kdeui/KActionCollection.html | 574 +++++++++ doc/classref/kdeui/KActionMenu.html | 227 ++++ .../kdeui/KActionPtrShortcutList.html | 119 ++ doc/classref/kdeui/KActionSelector.html | 233 ++++ doc/classref/kdeui/KActionSeparator.html | 73 ++ doc/classref/kdeui/KActionShortcutList.html | 121 ++ doc/classref/kdeui/KActiveLabel.html | 89 ++ doc/classref/kdeui/KAnimWidget.html | 141 ++ doc/classref/kdeui/KArrowButton.html | 79 ++ doc/classref/kdeui/KAuthIcon.html | 65 + doc/classref/kdeui/KBugReport.html | 82 ++ doc/classref/kdeui/KButtonBox.html | 115 ++ doc/classref/kdeui/KCModule.html | 162 +++ doc/classref/kdeui/KCharSelect.html | 201 +++ doc/classref/kdeui/KCharSelectTable.html | 167 +++ doc/classref/kdeui/KColor.html | 87 ++ doc/classref/kdeui/KColorCells.html | 149 +++ doc/classref/kdeui/KColorCombo.html | 78 ++ doc/classref/kdeui/KColorDialog.html | 117 ++ doc/classref/kdeui/KColorDrag.html | 99 ++ doc/classref/kdeui/KColorPatch.html | 83 ++ doc/classref/kdeui/KComboBox.html | 261 ++++ doc/classref/kdeui/KCommand.html | 56 + doc/classref/kdeui/KCommandHistory.html | 122 ++ doc/classref/kdeui/KCompletionBox.html | 156 +++ doc/classref/kdeui/KConfigDialog.html | 139 ++ doc/classref/kdeui/KContextMenuManager.html | 63 + doc/classref/kdeui/KCursor.html | 136 ++ doc/classref/kdeui/KDCOPActionProxy.html | 96 ++ .../kdeui/KDateInternalMonthPicker.html | 141 ++ .../kdeui/KDateInternalWeekSelector.html | 87 ++ .../kdeui/KDateInternalYearSelector.html | 76 ++ doc/classref/kdeui/KDatePicker.html | 200 +++ doc/classref/kdeui/KDateTable.html | 192 +++ doc/classref/kdeui/KDateTimeWidget.html | 76 ++ doc/classref/kdeui/KDateValidator.html | 67 + doc/classref/kdeui/KDateWidget.html | 84 ++ doc/classref/kdeui/KDialog.html | 125 ++ doc/classref/kdeui/KDialogBase.html | 706 ++++++++++ doc/classref/kdeui/KDialogQueue.html | 55 + doc/classref/kdeui/KDockArea.html | 135 ++ doc/classref/kdeui/KDockMainWindow.html | 136 ++ doc/classref/kdeui/KDockManager.html | 208 +++ doc/classref/kdeui/KDockTabGroup.html | 52 + doc/classref/kdeui/KDockWidget.html | 320 +++++ .../kdeui/KDockWidgetAbstractHeader.html | 66 + .../kdeui/KDockWidgetAbstractHeaderDrag.html | 52 + doc/classref/kdeui/KDockWidgetHeader.html | 108 ++ doc/classref/kdeui/KDockWidgetHeaderDrag.html | 55 + doc/classref/kdeui/KDockWindow.html | 48 + doc/classref/kdeui/KDoubleNumInput.html | 228 ++++ doc/classref/kdeui/KDoubleSpinBox.html | 177 +++ doc/classref/kdeui/KDoubleValidator.html | 78 ++ doc/classref/kdeui/KDualColorButton.html | 162 +++ doc/classref/kdeui/KEdFind.html | 103 ++ doc/classref/kdeui/KEdGotoLine.html | 58 + doc/classref/kdeui/KEdReplace.html | 112 ++ doc/classref/kdeui/KEdit.html | 264 ++++ .../kdeui/KEditListBox.CustomEditor.html | 82 ++ doc/classref/kdeui/KEditListBox.html | 210 +++ doc/classref/kdeui/KEditToolbar.html | 108 ++ doc/classref/kdeui/KEditToolbarWidget.html | 188 +++ doc/classref/kdeui/KFloatValidator.html | 101 ++ doc/classref/kdeui/KFontAction.html | 252 ++++ doc/classref/kdeui/KFontChooser.html | 147 +++ doc/classref/kdeui/KFontCombo.html | 136 ++ doc/classref/kdeui/KFontDialog.html | 114 ++ doc/classref/kdeui/KFontRequester.html | 115 ++ doc/classref/kdeui/KFontSizeAction.html | 263 ++++ doc/classref/kdeui/KGradientSelector.html | 115 ++ doc/classref/kdeui/KGuiItem.html | 139 ++ doc/classref/kdeui/KHSSelector.html | 66 + doc/classref/kdeui/KHelpMenu.html | 82 ++ doc/classref/kdeui/KHistoryCombo.html | 124 ++ doc/classref/kdeui/KIconView.html | 213 +++ doc/classref/kdeui/KIconViewItem.html | 150 +++ doc/classref/kdeui/KIconViewSearchLine.html | 131 ++ doc/classref/kdeui/KInputDialog.html | 217 ++++ doc/classref/kdeui/KIntNumInput.html | 190 +++ doc/classref/kdeui/KIntSpinBox.html | 84 ++ doc/classref/kdeui/KIntValidator.html | 93 ++ doc/classref/kdeui/KJanusWidget.html | 288 +++++ doc/classref/kdeui/KKeyButton.html | 86 ++ doc/classref/kdeui/KKeyChooser.html | 280 ++++ doc/classref/kdeui/KKeyDialog.html | 170 +++ doc/classref/kdeui/KLanguageButton.html | 173 +++ doc/classref/kdeui/KLed.html | 162 +++ doc/classref/kdeui/KLineEdit.html | 329 +++++ doc/classref/kdeui/KLineEditDlg.html | 85 ++ doc/classref/kdeui/KListAction.html | 221 ++++ doc/classref/kdeui/KListBox.html | 124 ++ doc/classref/kdeui/KListView.html | 712 ++++++++++ doc/classref/kdeui/KListViewItem.html | 162 +++ doc/classref/kdeui/KListViewSearchLine.html | 132 ++ .../kdeui/KListViewSearchLineWidget.html | 65 + doc/classref/kdeui/KMacroCommand.html | 59 + doc/classref/kdeui/KMainWindow.html | 421 ++++++ doc/classref/kdeui/KMainWindowInterface.html | 171 +++ doc/classref/kdeui/KMenuBar.html | 158 +++ doc/classref/kdeui/KMessageBox.html | 677 ++++++++++ doc/classref/kdeui/KMimeTypeValidator.html | 60 + doc/classref/kdeui/KNamedCommand.html | 56 + doc/classref/kdeui/KNumInput.html | 93 ++ doc/classref/kdeui/KPaletteTable.html | 114 ++ doc/classref/kdeui/KPanelAppMenu.html | 113 ++ doc/classref/kdeui/KPanelApplet.html | 197 +++ doc/classref/kdeui/KPanelExtension.html | 181 +++ doc/classref/kdeui/KPanelMenu.html | 113 ++ doc/classref/kdeui/KPassivePopup.html | 309 +++++ doc/classref/kdeui/KPasswordDialog.html | 194 +++ doc/classref/kdeui/KPasswordEdit.html | 122 ++ doc/classref/kdeui/KPasteTextAction.html | 83 ++ doc/classref/kdeui/KPixmapIO.html | 105 ++ .../kdeui/KPixmapRegionSelectorDialog.html | 94 ++ .../kdeui/KPixmapRegionSelectorWidget.html | 122 ++ doc/classref/kdeui/KPopupFrame.html | 115 ++ doc/classref/kdeui/KPopupMenu.html | 244 ++++ doc/classref/kdeui/KPopupTitle.html | 108 ++ doc/classref/kdeui/KProgress.html | 127 ++ doc/classref/kdeui/KProgressDialog.html | 133 ++ doc/classref/kdeui/KPushButton.html | 142 ++ doc/classref/kdeui/KRadioAction.html | 199 +++ doc/classref/kdeui/KRecentFilesAction.html | 380 ++++++ doc/classref/kdeui/KRestrictedLine.html | 70 + doc/classref/kdeui/KRootPermsIcon.html | 54 + doc/classref/kdeui/KRootPixmap.html | 132 ++ doc/classref/kdeui/KRuler.html | 311 +++++ doc/classref/kdeui/KScrollView.html | 77 ++ doc/classref/kdeui/KSelectAction.html | 536 ++++++++ doc/classref/kdeui/KSelector.html | 146 +++ doc/classref/kdeui/KSeparator.html | 76 ++ doc/classref/kdeui/KSharedPixmap.html | 82 ++ doc/classref/kdeui/KShortcutDialog.html | 93 ++ doc/classref/kdeui/KSplashScreen.html | 49 + doc/classref/kdeui/KSqueezedTextLabel.html | 85 ++ doc/classref/kdeui/KStatusBar.html | 114 ++ doc/classref/kdeui/KStatusBarLabel.html | 74 ++ doc/classref/kdeui/KStdAction.html | 579 +++++++++ doc/classref/kdeui/KStdGuiItem.html | 213 +++ doc/classref/kdeui/KStringListValidator.html | 90 ++ doc/classref/kdeui/KSystemTray.html | 129 ++ doc/classref/kdeui/KTabBar.html | 268 ++++ doc/classref/kdeui/KTabCtl.html | 128 ++ doc/classref/kdeui/KTabWidget.html | 360 ++++++ doc/classref/kdeui/KTextBrowser.html | 102 ++ doc/classref/kdeui/KTextEdit.html | 139 ++ doc/classref/kdeui/KTimeWidget.html | 76 ++ doc/classref/kdeui/KTimezoneWidget.html | 70 + doc/classref/kdeui/KTipDatabase.html | 63 + doc/classref/kdeui/KTipDialog.html | 100 ++ doc/classref/kdeui/KToggleAction.html | 298 +++++ .../kdeui/KToggleFullScreenAction.html | 74 ++ doc/classref/kdeui/KToggleToolBarAction.html | 127 ++ doc/classref/kdeui/KToolBar.html | 797 ++++++++++++ doc/classref/kdeui/KToolBarButton.html | 325 +++++ doc/classref/kdeui/KToolBarLabelAction.html | 108 ++ doc/classref/kdeui/KToolBarPopupAction.html | 177 +++ doc/classref/kdeui/KToolBarRadioGroup.html | 66 + doc/classref/kdeui/KToolBarSeparator.html | 81 ++ doc/classref/kdeui/KURLLabel.html | 263 ++++ doc/classref/kdeui/KValueSelector.html | 95 ++ doc/classref/kdeui/KWidgetAction.html | 133 ++ doc/classref/kdeui/KWindowInfo.html | 144 +++ doc/classref/kdeui/KWindowListMenu.html | 67 + doc/classref/kdeui/KWizard.html | 50 + doc/classref/kdeui/KWordWrap.html | 108 ++ doc/classref/kdeui/KWritePermsIcon.html | 65 + doc/classref/kdeui/KXMLGUIBuilder.html | 107 ++ .../kdeui/KXMLGUIClient.StateChange.html | 44 + doc/classref/kdeui/KXMLGUIClient.html | 231 ++++ doc/classref/kdeui/KXMLGUIFactory.html | 188 +++ doc/classref/kdeui/KXYSelector.html | 141 ++ doc/classref/kdeui/QXEmbed.html | 196 +++ doc/classref/kdeui/index.html | 213 +++ doc/classref/kdeui/kdeui-globals.html | 36 + doc/classref/kfile/KAppTreeListItem.html | 101 ++ .../kfile/KApplicationPropsPlugin.html | 63 + doc/classref/kfile/KApplicationTree.html | 101 ++ doc/classref/kfile/KBindingPropsPlugin.html | 57 + doc/classref/kfile/KCombiView.html | 202 +++ doc/classref/kfile/KCustomMenuEditor.html | 82 ++ doc/classref/kfile/KDesktopPropsPlugin.html | 80 ++ doc/classref/kfile/KDevicePropsPlugin.html | 57 + doc/classref/kfile/KDirOperator.html | 520 ++++++++ doc/classref/kfile/KDirSelectDialog.html | 89 ++ doc/classref/kfile/KDirSize.html | 128 ++ doc/classref/kfile/KDiskFreeSp.html | 81 ++ .../kfile/KEncodingFileDialog.Result.html | 45 + doc/classref/kfile/KEncodingFileDialog.html | 139 ++ doc/classref/kfile/KExecPropsPlugin.html | 60 + doc/classref/kfile/KFile.html | 108 ++ doc/classref/kfile/KFileDetailView.html | 274 ++++ doc/classref/kfile/KFileDialog.html | 543 ++++++++ doc/classref/kfile/KFileFilterCombo.html | 93 ++ doc/classref/kfile/KFileIconView.html | 306 +++++ doc/classref/kfile/KFileIconViewItem.html | 61 + doc/classref/kfile/KFileListViewItem.html | 91 ++ doc/classref/kfile/KFileOpenWithHandler.html | 50 + .../kfile/KFilePermissionsPropsPlugin.html | 61 + doc/classref/kfile/KFilePreview.html | 206 +++ doc/classref/kfile/KFilePropsPlugin.html | 110 ++ doc/classref/kfile/KFileSharePropsPlugin.html | 72 ++ doc/classref/kfile/KFileTreeBranch.html | 157 +++ doc/classref/kfile/KFileTreeView.html | 265 ++++ doc/classref/kfile/KFileTreeViewItem.html | 81 ++ doc/classref/kfile/KFileTreeViewToolTip.html | 53 + doc/classref/kfile/KFileView.html | 301 +++++ doc/classref/kfile/KFileViewSignaler.html | 115 ++ doc/classref/kfile/KIconButton.html | 97 ++ doc/classref/kfile/KIconCanvas.html | 78 ++ doc/classref/kfile/KIconDialog.html | 143 ++ doc/classref/kfile/KImageFilePreview.html | 96 ++ doc/classref/kfile/KNotify.Application.html | 75 ++ .../kfile/KNotify.ApplicationList.html | 39 + doc/classref/kfile/KNotify.Event.html | 64 + doc/classref/kfile/KNotify.KNotifyWidget.html | 150 +++ doc/classref/kfile/KNotify.ListViewItem.html | 62 + doc/classref/kfile/KNotify.html | 41 + doc/classref/kfile/KNotifyDialog.html | 89 ++ doc/classref/kfile/KOpenWithDlg.html | 141 ++ doc/classref/kfile/KPreviewWidgetBase.html | 70 + doc/classref/kfile/KPropertiesDialog.html | 223 ++++ doc/classref/kfile/KPropsDlgPlugin.html | 72 ++ doc/classref/kfile/KRecentDirs.html | 62 + doc/classref/kfile/KRecentDocument.html | 80 ++ doc/classref/kfile/KURLBar.html | 211 +++ doc/classref/kfile/KURLBarItem.html | 141 ++ doc/classref/kfile/KURLBarItemDialog.html | 84 ++ doc/classref/kfile/KURLBarListBox.html | 96 ++ doc/classref/kfile/KURLComboBox.html | 148 +++ doc/classref/kfile/KURLComboRequester.html | 49 + doc/classref/kfile/KURLPropsPlugin.html | 57 + doc/classref/kfile/KURLRequester.html | 171 +++ doc/classref/kfile/KURLRequesterDlg.html | 78 ++ doc/classref/kfile/index.html | 91 ++ doc/classref/khtml/DOM.AbstractView.html | 69 + doc/classref/khtml/DOM.Attr.html | 77 ++ doc/classref/khtml/DOM.CDATASection.html | 59 + doc/classref/khtml/DOM.CSSCharsetRule.html | 68 + doc/classref/khtml/DOM.CSSException.html | 60 + doc/classref/khtml/DOM.CSSFontFaceRule.html | 62 + doc/classref/khtml/DOM.CSSImportRule.html | 68 + doc/classref/khtml/DOM.CSSMediaRule.html | 78 ++ doc/classref/khtml/DOM.CSSPageRule.html | 71 + doc/classref/khtml/DOM.CSSPrimitiveValue.html | 98 ++ doc/classref/khtml/DOM.CSSRule.html | 89 ++ doc/classref/khtml/DOM.CSSRuleList.html | 71 + .../khtml/DOM.CSSStyleDeclaration.html | 112 ++ doc/classref/khtml/DOM.CSSStyleRule.html | 71 + doc/classref/khtml/DOM.CSSStyleSheet.html | 78 ++ doc/classref/khtml/DOM.CSSUnknownRule.html | 59 + doc/classref/khtml/DOM.CSSValue.html | 81 ++ doc/classref/khtml/DOM.CSSValueList.html | 68 + doc/classref/khtml/DOM.CharacterData.html | 106 ++ doc/classref/khtml/DOM.Comment.html | 59 + doc/classref/khtml/DOM.Counter.html | 68 + doc/classref/khtml/DOM.CustomNodeFilter.html | 56 + doc/classref/khtml/DOM.DOMException.html | 60 + doc/classref/khtml/DOM.DOMImplementation.html | 101 ++ doc/classref/khtml/DOM.DOMString.html | 158 +++ doc/classref/khtml/DOM.Document.html | 292 +++++ doc/classref/khtml/DOM.DocumentFragment.html | 59 + doc/classref/khtml/DOM.DocumentStyle.html | 71 + doc/classref/khtml/DOM.DocumentType.html | 77 ++ doc/classref/khtml/DOM.DomShared.html | 59 + doc/classref/khtml/DOM.Element.html | 220 ++++ doc/classref/khtml/DOM.Entity.html | 68 + doc/classref/khtml/DOM.EntityReference.html | 59 + doc/classref/khtml/DOM.Event.html | 101 ++ doc/classref/khtml/DOM.EventException.html | 60 + doc/classref/khtml/DOM.EventListener.html | 53 + doc/classref/khtml/DOM.HTMLAnchorElement.html | 173 +++ doc/classref/khtml/DOM.HTMLAppletElement.html | 180 +++ doc/classref/khtml/DOM.HTMLAreaElement.html | 131 ++ doc/classref/khtml/DOM.HTMLBRElement.html | 68 + doc/classref/khtml/DOM.HTMLBaseElement.html | 77 ++ .../khtml/DOM.HTMLBaseFontElement.html | 97 ++ .../khtml/DOM.HTMLBlockquoteElement.html | 71 + doc/classref/khtml/DOM.HTMLBodyElement.html | 113 ++ doc/classref/khtml/DOM.HTMLButtonElement.html | 118 ++ doc/classref/khtml/DOM.HTMLCollection.html | 89 ++ doc/classref/khtml/DOM.HTMLDListElement.html | 68 + .../khtml/DOM.HTMLDirectoryElement.html | 68 + doc/classref/khtml/DOM.HTMLDivElement.html | 68 + doc/classref/khtml/DOM.HTMLDocument.html | 156 +++ doc/classref/khtml/DOM.HTMLElement.html | 150 +++ .../khtml/DOM.HTMLFieldSetElement.html | 62 + doc/classref/khtml/DOM.HTMLFontElement.html | 86 ++ doc/classref/khtml/DOM.HTMLFormElement.html | 125 ++ doc/classref/khtml/DOM.HTMLFrameElement.html | 134 ++ .../khtml/DOM.HTMLFrameSetElement.html | 77 ++ doc/classref/khtml/DOM.HTMLHRElement.html | 95 ++ doc/classref/khtml/DOM.HTMLHeadElement.html | 68 + .../khtml/DOM.HTMLHeadingElement.html | 71 + doc/classref/khtml/DOM.HTMLHtmlElement.html | 68 + doc/classref/khtml/DOM.HTMLIFrameElement.html | 152 +++ doc/classref/khtml/DOM.HTMLImageElement.html | 186 +++ doc/classref/khtml/DOM.HTMLInputElement.html | 279 ++++ .../khtml/DOM.HTMLIsIndexElement.html | 71 + doc/classref/khtml/DOM.HTMLLIElement.html | 77 ++ doc/classref/khtml/DOM.HTMLLabelElement.html | 81 ++ doc/classref/khtml/DOM.HTMLLayerElement.html | 107 ++ doc/classref/khtml/DOM.HTMLLegendElement.html | 80 ++ doc/classref/khtml/DOM.HTMLLinkElement.html | 143 ++ doc/classref/khtml/DOM.HTMLMapElement.html | 71 + doc/classref/khtml/DOM.HTMLMenuElement.html | 68 + doc/classref/khtml/DOM.HTMLMetaElement.html | 95 ++ doc/classref/khtml/DOM.HTMLModElement.html | 77 ++ doc/classref/khtml/DOM.HTMLOListElement.html | 86 ++ doc/classref/khtml/DOM.HTMLObjectElement.html | 240 ++++ .../khtml/DOM.HTMLOptGroupElement.html | 77 ++ doc/classref/khtml/DOM.HTMLOptionElement.html | 119 ++ .../khtml/DOM.HTMLParagraphElement.html | 71 + doc/classref/khtml/DOM.HTMLParamElement.html | 95 ++ doc/classref/khtml/DOM.HTMLPreElement.html | 68 + doc/classref/khtml/DOM.HTMLQuoteElement.html | 68 + doc/classref/khtml/DOM.HTMLScriptElement.html | 122 ++ doc/classref/khtml/DOM.HTMLSelectElement.html | 153 +++ doc/classref/khtml/DOM.HTMLStyleElement.html | 89 ++ .../khtml/DOM.HTMLTableCaptionElement.html | 68 + .../khtml/DOM.HTMLTableCellElement.html | 194 +++ .../khtml/DOM.HTMLTableColElement.html | 113 ++ doc/classref/khtml/DOM.HTMLTableElement.html | 203 +++ .../khtml/DOM.HTMLTableRowElement.html | 143 ++ .../khtml/DOM.HTMLTableSectionElement.html | 110 ++ .../khtml/DOM.HTMLTextAreaElement.html | 189 +++ doc/classref/khtml/DOM.HTMLTitleElement.html | 68 + doc/classref/khtml/DOM.HTMLUListElement.html | 77 ++ doc/classref/khtml/DOM.LinkStyle.html | 56 + doc/classref/khtml/DOM.MediaList.html | 89 ++ doc/classref/khtml/DOM.MouseEvent.html | 109 ++ doc/classref/khtml/DOM.MutationEvent.html | 99 ++ doc/classref/khtml/DOM.NamedNodeMap.html | 106 ++ doc/classref/khtml/DOM.Node.html | 221 ++++ doc/classref/khtml/DOM.NodeFilter.html | 88 ++ doc/classref/khtml/DOM.NodeIterator.html | 80 ++ doc/classref/khtml/DOM.NodeList.html | 68 + doc/classref/khtml/DOM.Notation.html | 65 + .../khtml/DOM.ProcessingInstruction.html | 74 ++ doc/classref/khtml/DOM.RGBColor.html | 80 ++ doc/classref/khtml/DOM.Range.html | 204 +++ doc/classref/khtml/DOM.RangeException.html | 60 + doc/classref/khtml/DOM.Rect.html | 71 + doc/classref/khtml/DOM.StyleSheet.html | 89 ++ doc/classref/khtml/DOM.StyleSheetList.html | 68 + doc/classref/khtml/DOM.Text.html | 65 + doc/classref/khtml/DOM.TextEvent.html | 113 ++ doc/classref/khtml/DOM.TreeWalker.html | 109 ++ doc/classref/khtml/DOM.UIEvent.html | 103 ++ doc/classref/khtml/DOM.html | 57 + doc/classref/khtml/KHTMLPart.html | 807 ++++++++++++ doc/classref/khtml/KHTMLSettings.html | 318 +++++ doc/classref/khtml/KHTMLView.html | 287 +++++ doc/classref/khtml/index.html | 153 +++ doc/classref/khtml/khtml-globals.html | 28 + doc/classref/kio/KACL.html | 209 +++ doc/classref/kio/KAr.html | 104 ++ doc/classref/kio/KArchive.html | 288 +++++ doc/classref/kio/KArchiveDirectory.html | 79 ++ doc/classref/kio/KArchiveEntry.html | 83 ++ doc/classref/kio/KArchiveFile.html | 84 ++ doc/classref/kio/KAutoMount.html | 67 + doc/classref/kio/KAutoUnmount.html | 63 + doc/classref/kio/KDCOPServiceStarter.html | 78 ++ .../kio/KDEDesktopMimeType.Service.html | 56 + doc/classref/kio/KDEDesktopMimeType.html | 196 +++ doc/classref/kio/KDataTool.html | 67 + doc/classref/kio/KDataToolAction.html | 70 + doc/classref/kio/KDataToolInfo.html | 106 ++ doc/classref/kio/KDirLister.html | 356 +++++ doc/classref/kio/KDirNotify.html | 93 ++ doc/classref/kio/KDirWatch.html | 168 +++ doc/classref/kio/KEMailSettings.html | 88 ++ doc/classref/kio/KExecMimeType.html | 54 + doc/classref/kio/KFileFilter.html | 48 + doc/classref/kio/KFileItem.html | 326 +++++ doc/classref/kio/KFileMetaInfo.html | 197 +++ doc/classref/kio/KFileMetaInfoGroup.html | 153 +++ doc/classref/kio/KFileMetaInfoItem.html | 122 ++ doc/classref/kio/KFileMetaInfoProvider.html | 95 ++ .../kio/KFileMimeTypeInfo.GroupInfo.html | 72 ++ .../kio/KFileMimeTypeInfo.ItemInfo.html | 87 ++ doc/classref/kio/KFileMimeTypeInfo.html | 104 ++ doc/classref/kio/KFilePlugin.html | 161 +++ doc/classref/kio/KFileShare.html | 118 ++ doc/classref/kio/KFileSharePrivate.html | 62 + doc/classref/kio/KFilterBase.html | 141 ++ doc/classref/kio/KFilterDev.html | 149 +++ doc/classref/kio/KFolderType.html | 82 ++ doc/classref/kio/KIO.AuthInfo.html | 74 ++ doc/classref/kio/KIO.ChmodJob.html | 72 ++ doc/classref/kio/KIO.Connection.html | 105 ++ doc/classref/kio/KIO.CopyInfo.html | 49 + doc/classref/kio/KIO.CopyJob.html | 276 ++++ doc/classref/kio/KIO.DavJob.html | 66 + doc/classref/kio/KIO.DefaultProgress.html | 223 ++++ doc/classref/kio/KIO.DeleteJob.html | 125 ++ doc/classref/kio/KIO.DirectCopyJob.html | 66 + doc/classref/kio/KIO.FileCopyJob.html | 152 +++ doc/classref/kio/KIO.ForwardingSlaveBase.html | 166 +++ doc/classref/kio/KIO.Job.html | 307 +++++ doc/classref/kio/KIO.ListJob.html | 126 ++ doc/classref/kio/KIO.MetaInfoJob.html | 91 ++ doc/classref/kio/KIO.MimetypeJob.html | 62 + doc/classref/kio/KIO.MkdirJob.html | 94 ++ doc/classref/kio/KIO.MultiGetJob.html | 103 ++ doc/classref/kio/KIO.NetAccess.html | 323 +++++ doc/classref/kio/KIO.NetRC.AutoLogin.html | 47 + doc/classref/kio/KIO.NetRC.html | 90 ++ doc/classref/kio/KIO.PasswordDialog.html | 120 ++ doc/classref/kio/KIO.PreviewJob.html | 114 ++ doc/classref/kio/KIO.ProgressBase.html | 201 +++ doc/classref/kio/KIO.Scheduler.html | 267 ++++ doc/classref/kio/KIO.SessionData.html | 69 + doc/classref/kio/KIO.SimpleJob.html | 148 +++ doc/classref/kio/KIO.Slave.html | 200 +++ doc/classref/kio/KIO.SlaveBase.html | 631 +++++++++ doc/classref/kio/KIO.SlaveConfig.html | 90 ++ doc/classref/kio/KIO.SlaveInterface.html | 284 ++++ doc/classref/kio/KIO.StatJob.html | 109 ++ doc/classref/kio/KIO.StatusbarProgress.html | 88 ++ doc/classref/kio/KIO.StoredTransferJob.html | 63 + doc/classref/kio/KIO.TCPSlaveBase.html | 230 ++++ doc/classref/kio/KIO.Task.html | 44 + doc/classref/kio/KIO.TransferJob.html | 198 +++ doc/classref/kio/KIO.UDSAtom.html | 45 + doc/classref/kio/KIO.html | 645 ++++++++++ doc/classref/kio/KImageIO.html | 120 ++ doc/classref/kio/KMimeMagic.html | 96 ++ doc/classref/kio/KMimeMagicResult.html | 68 + doc/classref/kio/KMimeType.Format.html | 48 + doc/classref/kio/KMimeType.html | 290 +++++ doc/classref/kio/KMimeTypeChooser.html | 69 + doc/classref/kio/KMimeTypeChooserDialog.html | 71 + doc/classref/kio/KNFSShare.html | 69 + doc/classref/kio/KOCRDialog.html | 73 ++ doc/classref/kio/KOCRDialogFactory.html | 75 ++ doc/classref/kio/KOpenWithHandler.html | 48 + doc/classref/kio/KProcessRunner.html | 87 ++ .../kio/KProtocolInfo.ExtraField.html | 58 + doc/classref/kio/KProtocolInfo.html | 466 +++++++ doc/classref/kio/KProtocolManager.html | 189 +++ doc/classref/kio/KRemoteEncoding.html | 114 ++ doc/classref/kio/KRun.html | 360 ++++++ doc/classref/kio/KSambaShare.html | 69 + doc/classref/kio/KScanDialog.html | 90 ++ doc/classref/kio/KScanDialogFactory.html | 75 ++ doc/classref/kio/KService.html | 324 +++++ doc/classref/kio/KServiceGroup.html | 240 ++++ doc/classref/kio/KServiceOffer.html | 79 ++ doc/classref/kio/KServiceSeparator.html | 67 + doc/classref/kio/KServiceType.html | 169 +++ doc/classref/kio/KServiceTypeProfile.html | 111 ++ doc/classref/kio/KShellCompletion.html | 65 + doc/classref/kio/KShred.html | 91 ++ doc/classref/kio/KSimpleFileFilter.html | 104 ++ doc/classref/kio/KSycoca.html | 172 +++ doc/classref/kio/KSycocaDict.html | 96 ++ doc/classref/kio/KSycocaEntry.html | 111 ++ doc/classref/kio/KSycocaFactory.html | 104 ++ doc/classref/kio/KTar.html | 177 +++ doc/classref/kio/KTrader.html | 65 + doc/classref/kio/KURIFilter.html | 93 ++ doc/classref/kio/KURIFilterData.html | 137 ++ doc/classref/kio/KURIFilterPlugin.html | 100 ++ doc/classref/kio/KURLCompletion.html | 152 +++ doc/classref/kio/KURLPixmapProvider.html | 48 + doc/classref/kio/KZip.html | 228 ++++ doc/classref/kio/KZipFileEntry.html | 108 ++ doc/classref/kio/Observer.html | 289 +++++ doc/classref/kio/RenameDlgPlugin.html | 65 + doc/classref/kio/ThumbCreator.html | 57 + doc/classref/kio/index.html | 148 +++ doc/classref/kio/kio-globals.html | 53 + doc/classref/kmdi/KMdi.html | 47 + doc/classref/kmdi/KMdiChildArea.html | 214 +++ doc/classref/kmdi/KMdiChildFrm.html | 254 ++++ doc/classref/kmdi/KMdiChildFrmCaption.html | 106 ++ .../kmdi/KMdiChildFrmDragBeginEvent.html | 47 + .../kmdi/KMdiChildFrmDragEndEvent.html | 47 + doc/classref/kmdi/KMdiChildFrmMoveEvent.html | 47 + .../kmdi/KMdiChildFrmResizeBeginEvent.html | 47 + .../kmdi/KMdiChildFrmResizeEndEvent.html | 47 + doc/classref/kmdi/KMdiChildView.html | 385 ++++++ doc/classref/kmdi/KMdiMainFrm.html | 580 +++++++++ doc/classref/kmdi/KMdiTaskBar.html | 101 ++ doc/classref/kmdi/KMdiTaskBarButton.html | 104 ++ doc/classref/kmdi/KMdiToolViewAccessor.html | 99 ++ doc/classref/kmdi/KMdiViewCloseEvent.html | 47 + doc/classref/kmdi/KMdiWin32IconButton.html | 57 + doc/classref/kmdi/index.html | 51 + doc/classref/kmdi/kmdi-globals.html | 28 + doc/classref/kparts/ExtTerminalInterface.html | 82 ++ .../kparts/KParts.BrowserExtension.html | 322 +++++ .../kparts/KParts.BrowserHostExtension.html | 76 ++ .../kparts/KParts.BrowserInterface.html | 55 + doc/classref/kparts/KParts.BrowserRun.html | 197 +++ .../kparts/KParts.DockMainWindow.html | 67 + doc/classref/kparts/KParts.Event.html | 65 + doc/classref/kparts/KParts.Factory.html | 91 ++ .../kparts/KParts.GUIActivateEvent.html | 57 + .../kparts/KParts.HistoryProvider.html | 82 ++ .../kparts/KParts.LiveConnectExtension.html | 98 ++ doc/classref/kparts/KParts.MainWindow.html | 88 ++ doc/classref/kparts/KParts.OpenURLEvent.html | 65 + doc/classref/kparts/KParts.Part.html | 130 ++ .../kparts/KParts.PartActivateEvent.html | 65 + doc/classref/kparts/KParts.PartBase.html | 78 ++ doc/classref/kparts/KParts.PartManager.html | 204 +++ .../kparts/KParts.PartSelectEvent.html | 65 + .../kparts/KParts.Plugin.PluginInfo.html | 45 + doc/classref/kparts/KParts.Plugin.html | 118 ++ doc/classref/kparts/KParts.ReadOnlyPart.html | 131 ++ doc/classref/kparts/KParts.ReadWritePart.html | 112 ++ .../kparts/KParts.StatusBarExtension.html | 92 ++ doc/classref/kparts/KParts.URLArgs.html | 134 ++ doc/classref/kparts/KParts.WindowArgs.html | 90 ++ doc/classref/kparts/KParts.html | 41 + doc/classref/kparts/TerminalInterface.html | 63 + doc/classref/kparts/index.html | 65 + .../kparts/konsoleBrowserExtension.html | 53 + doc/classref/kparts/konsoleFactory.html | 59 + doc/classref/kparts/konsolePart.html | 237 ++++ doc/classref/kparts/kparts-globals.html | 110 ++ .../kresources/KRES.ConfigDialog.html | 76 ++ .../kresources/KRES.ConfigWidget.html | 79 ++ doc/classref/kresources/KRES.Factory.html | 90 ++ .../kresources/KRES.PluginFactoryBase.html | 67 + doc/classref/kresources/KRES.Resource.html | 134 ++ .../kresources/KRES.ResourcePageInfo.html | 50 + .../kresources/KRES.SelectDialog.html | 70 + doc/classref/kresources/KRES.html | 41 + doc/classref/kresources/index.html | 42 + .../kspell/KDictSpellingHighlighter.html | 168 +++ doc/classref/kspell/KSpell.html | 408 ++++++ doc/classref/kspell/KSpellConfig.html | 211 +++ doc/classref/kspell/KSpellDlg.html | 158 +++ doc/classref/kspell/KSpellingHighlighter.html | 86 ++ doc/classref/kspell/KSyntaxHighlighter.html | 65 + doc/classref/kspell/index.html | 41 + doc/classref/kspell/kspell-globals.html | 38 + doc/classref/kutils/KCModuleContainer.html | 74 ++ doc/classref/kutils/KCModuleInfo.html | 219 ++++ doc/classref/kutils/KCModuleLoader.html | 135 ++ doc/classref/kutils/KCModuleProxy.html | 182 +++ doc/classref/kutils/KCMultiDialog.html | 135 ++ doc/classref/kutils/KFind.html | 222 ++++ doc/classref/kutils/KFindDialog.html | 188 +++ doc/classref/kutils/KMultiTabBar.html | 163 +++ doc/classref/kutils/KMultiTabBarButton.html | 120 ++ doc/classref/kutils/KMultiTabBarTab.html | 139 ++ doc/classref/kutils/KPluginInfo.html | 213 +++ doc/classref/kutils/KPluginSelector.html | 105 ++ doc/classref/kutils/KReplace.html | 143 ++ doc/classref/kutils/KReplaceDialog.html | 97 ++ doc/classref/kutils/index.html | 47 + doc/dcopext.html | 378 ++++++ doc/examples.html | 125 ++ doc/images/kdcop1.png | Bin 0 -> 28836 bytes doc/images/kdcop2.png | Bin 0 -> 6264 bytes doc/images/khtmlpart.png | Bin 0 -> 72815 bytes doc/images/mimetype.png | Bin 0 -> 24439 bytes doc/images/uisampler.png | Bin 0 -> 54104 bytes doc/index.html | 139 ++ doc/index1.html | 82 ++ doc/install.html | 181 +++ doc/kde.css | 8 + doc/libpythonize.html | 224 ++++ doc/limits.html | 427 ++++++ doc/signal.html | 290 +++++ doc/static.html | 183 +++ doc/switches.html | 253 ++++ doc/trouble.html | 337 +++++ examples/README | 17 + examples/aboutkde.png | Bin 0 -> 33856 bytes examples/astron.png | Bin 0 -> 32329 bytes examples/example_dcopexport.py | 136 ++ examples/example_dcopext.py | 135 ++ examples/kdeform1.ui | 335 +++++ examples/kdeform1.ui.h | 13 + examples/kpartgui.dtd | 122 ++ examples/kurldemo.py | 98 ++ examples/menudemo.py | 291 +++++ examples/mimetype.py | 269 ++++ examples/pyKHTMLPart.py | 214 +++ examples/pykde-sampler/HOWTO.samples | 60 + examples/pykde-sampler/TODO | 12 + examples/pykde-sampler/__init__.py | 1 + examples/pykde-sampler/about.py | 57 + examples/pykde-sampler/aboutkde.png | Bin 0 -> 36986 bytes .../pykde-sampler/basic_widgets/__init__.py | 17 + .../pykde-sampler/basic_widgets/datepicker.py | 42 + .../basic_widgets/historycombo.py | 53 + examples/pykde-sampler/contributors.txt | 4 + examples/pykde-sampler/dialogs/__init__.py | 18 + .../pykde-sampler/dialogs/about/__init__.py | 16 + .../pykde-sampler/dialogs/about/aboutapp.py | 29 + .../pykde-sampler/dialogs/about/aboutkde.py | 28 + examples/pykde-sampler/dialogs/bugreport.py | 34 + examples/pykde-sampler/dialogs/color.py | 42 + examples/pykde-sampler/dialogs/config.py | 59 + examples/pykde-sampler/dialogs/edfind.py | 52 + examples/pykde-sampler/dialogs/edreplace.py | 52 + examples/pykde-sampler/dialogs/font.py | 53 + examples/pykde-sampler/dialogs/input.py | 87 ++ examples/pykde-sampler/dialogs/key.py | 29 + examples/pykde-sampler/dialogs/msgbox.py | 141 ++ examples/pykde-sampler/dialogs/passwd.py | 34 + examples/pykde-sampler/dialogs/progress.py | 39 + examples/pykde-sampler/dialogs/tip.py | 31 + examples/pykde-sampler/dialogs/tips | 24 + examples/pykde-sampler/gen_todo.py | 19 + .../pykde-sampler/icon_handling/__init__.py | 18 + examples/pykde-sampler/icon_handling/misc.py | 31 + examples/pykde-sampler/icon_handling/sizes.py | 30 + examples/pykde-sampler/lib.py | 105 ++ examples/pykde-sampler/misc/__init__.py | 16 + examples/pykde-sampler/misc/gradientselect.py | 51 + examples/pykde-sampler/misc/passivepop.py | 43 + examples/pykde-sampler/misc/window_info.py | 35 + examples/pykde-sampler/qt_widgets/CONTRIB | 537 ++++++++ examples/pykde-sampler/qt_widgets/__init__.py | 17 + examples/pykde-sampler/qt_widgets/table.py | 42 + examples/pykde-sampler/runner.py | 58 + examples/pykde-sampler/sampler.py | 423 ++++++ examples/pykde-sampler/sampler.rc | 13 + examples/pykde-sampler/wizards/__init__.py | 2 + examples/pykde-sampler/wizards/wiz.py | 2 + examples/pykde-sampler/xwin/__init__.py | 18 + examples/pytestimage.png | Bin 0 -> 36986 bytes examples/qxembed_example.png | Bin 0 -> 22146 bytes examples/qxembedexample.py | 79 ++ examples/qxembedexample.ui | 150 +++ examples/systray.py | 54 + examples/uikmdi.py | 203 +++ examples/uikmdi.rc | 11 + examples/uimodules/uidialogs.py | 232 ++++ examples/uimodules/uimenus.py | 108 ++ examples/uimodules/uimisc.py | 239 ++++ examples/uimodules/uiwidgets.py | 754 +++++++++++ examples/uimodules/uixml.py | 45 + examples/uiqxembed.py | 119 ++ examples/uisampler.py | 227 ++++ examples/xmlmenudemo.py | 291 +++++ examples/xmlmenudemoui.rc | 49 + extensions/dcopexport.py | 199 +++ extensions/dcopext.py | 723 +++++++++++ extra/kde300/kaccelaction.h | 202 +++ extra/kde300/kaccelbase.h | 233 ++++ extra/kde300/kicontheme.h | 217 ++++ extra/kde300/kkeyserver_x11.h | 131 ++ extra/kde300/konsole_part.h | 223 ++++ extra/kde300/krecentdirs.h | 68 + extra/kde300/ksycocafactory.h | 135 ++ extra/kde300/ktoolbarbutton.h | 306 +++++ extra/kde300/kurifilter.h | 593 +++++++++ extra/kde301/kaccelaction.h | 202 +++ extra/kde301/kaccelbase.h | 233 ++++ extra/kde301/kicontheme.h | 217 ++++ extra/kde301/kkeyserver_x11.h | 131 ++ extra/kde301/konsole_part.h | 223 ++++ extra/kde301/krecentdirs.h | 68 + extra/kde301/ksycocafactory.h | 135 ++ extra/kde301/ktoolbarbutton.h | 313 +++++ extra/kde301/kurifilter.h | 593 +++++++++ extra/kde303/kaccelaction.h | 202 +++ extra/kde303/kaccelbase.h | 233 ++++ extra/kde303/kicontheme.h | 217 ++++ extra/kde303/kkeyserver_x11.h | 131 ++ extra/kde303/konsole_part.h | 223 ++++ extra/kde303/krecentdirs.h | 68 + extra/kde303/ksycocafactory.h | 135 ++ extra/kde303/ktoolbarbutton.h | 313 +++++ extra/kde303/kurifilter.h | 593 +++++++++ extra/kde310/kaccelaction.h | 564 ++++++++ extra/kde310/kaccelbase.h | 229 ++++ extra/kde310/kicontheme.h | 331 +++++ extra/kde310/kkeyserver_x11.h | 435 +++++++ extra/kde310/konsole_part.h | 223 ++++ extra/kde310/kpanelmenu.h | 181 +++ extra/kde310/krecentdirs.h | 68 + extra/kde310/ksycocafactory.h | 137 ++ extra/kde310/ktoolbarbutton.h | 317 +++++ extra/kde310/kurifilter.h | 602 +++++++++ extra/kde311/kaccelaction.h | 564 ++++++++ extra/kde311/kaccelbase.h | 229 ++++ extra/kde311/kicontheme.h | 331 +++++ extra/kde311/kkeyserver_x11.h | 435 +++++++ extra/kde311/konsole_part.h | 223 ++++ extra/kde311/kpanelmenu.h | 177 +++ extra/kde311/krecentdirs.h | 68 + extra/kde311/ksycocafactory.h | 137 ++ extra/kde311/ktoolbarbutton.h | 317 +++++ extra/kde311/kurifilter.h | 602 +++++++++ extra/kde312/kaccelaction.h | 564 ++++++++ extra/kde312/kaccelbase.h | 229 ++++ extra/kde312/kicontheme.h | 331 +++++ extra/kde312/kkeyserver_x11.h | 435 +++++++ extra/kde312/konsole_part.h | 223 ++++ extra/kde312/kpanelmenu.h | 181 +++ extra/kde312/krecentdirs.h | 68 + extra/kde312/ksycocafactory.h | 137 ++ extra/kde312/ktoolbarbutton.h | 317 +++++ extra/kde312/kurifilter.h | 602 +++++++++ extra/kde313/kaccelaction.h | 564 ++++++++ extra/kde313/kaccelbase.h | 229 ++++ extra/kde313/kicontheme.h | 331 +++++ extra/kde313/kkeyserver_x11.h | 435 +++++++ extra/kde313/konsole_part.h | 223 ++++ extra/kde313/kpanelmenu.h | 181 +++ extra/kde313/krecentdirs.h | 68 + extra/kde313/ksycocafactory.h | 137 ++ extra/kde313/ktoolbarbutton.h | 317 +++++ extra/kde313/kurifilter.h | 602 +++++++++ extra/kde314/kaccelaction.h | 564 ++++++++ extra/kde314/kaccelbase.h | 229 ++++ extra/kde314/kicontheme.h | 331 +++++ extra/kde314/kkeyserver_x11.h | 435 +++++++ extra/kde314/konsole_part.h | 223 ++++ extra/kde314/kpanelmenu.h | 181 +++ extra/kde314/krecentdirs.h | 68 + extra/kde314/ksycocafactory.h | 137 ++ extra/kde314/ktoolbarbutton.h | 317 +++++ extra/kde314/kurifilter.h | 602 +++++++++ extra/kde315/kaccelaction.h | 564 ++++++++ extra/kde315/kaccelbase.h | 229 ++++ extra/kde315/kicontheme.h | 331 +++++ extra/kde315/kkeyserver_x11.h | 435 +++++++ extra/kde315/konsole_part.h | 223 ++++ extra/kde315/kpanelmenu.h | 181 +++ extra/kde315/krecentdirs.h | 68 + extra/kde315/ksycocafactory.h | 137 ++ extra/kde315/ktoolbarbutton.h | 317 +++++ extra/kde315/kurifilter.h | 602 +++++++++ extra/kde320/configwidget.h | 58 + extra/kde320/kaccelaction.h | 564 ++++++++ extra/kde320/kaccelbase.h | 230 ++++ extra/kde320/kicontheme.h | 334 +++++ extra/kde320/kkeyserver_x11.h | 433 +++++++ extra/kde320/konsole_part.h | 223 ++++ extra/kde320/kpanelmenu.h | 181 +++ extra/kde320/krecentdirs.h | 68 + extra/kde320/ksharedptr.h | 171 +++ extra/kde320/ksycocafactory.h | 143 ++ extra/kde320/ktoolbarbutton.h | 315 +++++ extra/kde320/kurifilter.h | 644 +++++++++ extra/kde320/selectdialog.h | 87 ++ extra/kde321/configwidget.h | 58 + extra/kde321/kaccelaction.h | 564 ++++++++ extra/kde321/kaccelbase.h | 230 ++++ extra/kde321/kicontheme.h | 334 +++++ extra/kde321/kkeyserver_x11.h | 433 +++++++ extra/kde321/konsole_part.h | 223 ++++ extra/kde321/kpanelmenu.h | 181 +++ extra/kde321/krecentdirs.h | 68 + extra/kde321/ksharedptr.h | 171 +++ extra/kde321/ksycocafactory.h | 143 ++ extra/kde321/ktoolbarbutton.h | 315 +++++ extra/kde321/kurifilter.h | 644 +++++++++ extra/kde321/selectdialog.h | 87 ++ extra/kde322/configwidget.h | 58 + extra/kde322/kaccelaction.h | 564 ++++++++ extra/kde322/kaccelbase.h | 230 ++++ extra/kde322/kicontheme.h | 334 +++++ extra/kde322/kkeyserver_x11.h | 433 +++++++ extra/kde322/konsole_part.h | 223 ++++ extra/kde322/kpanelmenu.h | 181 +++ extra/kde322/krecentdirs.h | 68 + extra/kde322/ksharedptr.h | 171 +++ extra/kde322/ksycocafactory.h | 143 ++ extra/kde322/ktoolbarbutton.h | 315 +++++ extra/kde322/kurifilter.h | 644 +++++++++ extra/kde322/selectdialog.h | 87 ++ extra/kde323/configwidget.h | 58 + extra/kde323/kaccelaction.h | 564 ++++++++ extra/kde323/kaccelbase.h | 230 ++++ extra/kde323/kicontheme.h | 334 +++++ extra/kde323/kkeyserver_x11.h | 433 +++++++ extra/kde323/konsole_part.h | 223 ++++ extra/kde323/kpanelmenu.h | 181 +++ extra/kde323/krecentdirs.h | 68 + extra/kde323/ksharedptr.h | 171 +++ extra/kde323/ksycocafactory.h | 143 ++ extra/kde323/ktoolbarbutton.h | 315 +++++ extra/kde323/kurifilter.h | 644 +++++++++ extra/kde323/selectdialog.h | 87 ++ extra/kde330/configwidget.h | 58 + extra/kde330/kaccelaction.h | 564 ++++++++ extra/kde330/kaccelbase.h | 230 ++++ extra/kde330/kicontheme.h | 336 +++++ extra/kde330/kkeyserver_x11.h | 433 +++++++ extra/kde330/konsole_part.h | 229 ++++ extra/kde330/kpanelmenu.h | 181 +++ extra/kde330/krecentdirs.h | 68 + extra/kde330/ksharedptr.h | 175 +++ extra/kde330/ksycocafactory.h | 143 ++ extra/kde330/ktoolbarbutton.h | 315 +++++ extra/kde330/kurifilter.h | 644 +++++++++ extra/kde330/selectdialog.h | 87 ++ extra/kde331/configwidget.h | 58 + extra/kde331/kaccelaction.h | 564 ++++++++ extra/kde331/kaccelbase.h | 230 ++++ extra/kde331/kicontheme.h | 338 +++++ extra/kde331/kkeyserver_x11.h | 433 +++++++ extra/kde331/konsole_part.h | 229 ++++ extra/kde331/kpanelmenu.h | 181 +++ extra/kde331/krecentdirs.h | 68 + extra/kde331/ksharedptr.h | 175 +++ extra/kde331/ksycocafactory.h | 143 ++ extra/kde331/ktoolbarbutton.h | 315 +++++ extra/kde331/kurifilter.h | 644 +++++++++ extra/kde331/selectdialog.h | 87 ++ extra/kde332/configwidget.h | 58 + extra/kde332/kaccelaction.h | 564 ++++++++ extra/kde332/kaccelbase.h | 230 ++++ extra/kde332/kicontheme.h | 338 +++++ extra/kde332/kkeyserver_x11.h | 433 +++++++ extra/kde332/konsole_part.h | 229 ++++ extra/kde332/kpanelmenu.h | 181 +++ extra/kde332/krecentdirs.h | 68 + extra/kde332/ksharedptr.h | 175 +++ extra/kde332/ksycocafactory.h | 143 ++ extra/kde332/ktoolbarbutton.h | 315 +++++ extra/kde332/kurifilter.h | 644 +++++++++ extra/kde332/selectdialog.h | 87 ++ extra/kde340/configwidget.h | 58 + extra/kde340/kaccelaction.h | 564 ++++++++ extra/kde340/kaccelbase.h | 229 ++++ extra/kde340/kicontheme.h | 355 +++++ extra/kde340/kkeyserver.h | 29 + extra/kde340/kkeyserver_x11.h | 461 +++++++ extra/kde340/konsole_part.h | 228 ++++ extra/kde340/kpanelmenu.h | 182 +++ extra/kde340/krecentdirs.h | 70 + extra/kde340/ksharedptr.h | 175 +++ extra/kde340/ksycocafactory.h | 143 ++ extra/kde340/ktoolbarbutton.h | 329 +++++ extra/kde340/kurifilter.h | 647 ++++++++++ extra/kde340/selectdialog.h | 87 ++ extra/kde341/configwidget.h | 58 + extra/kde341/kaccelaction.h | 564 ++++++++ extra/kde341/kaccelbase.h | 229 ++++ extra/kde341/kicontheme.h | 355 +++++ extra/kde341/kkeyserver.h | 29 + extra/kde341/kkeyserver_x11.h | 461 +++++++ extra/kde341/konsole_part.h | 228 ++++ extra/kde341/kpanelmenu.h | 182 +++ extra/kde341/krecentdirs.h | 70 + extra/kde341/ksharedptr.h | 175 +++ extra/kde341/ksycocafactory.h | 143 ++ extra/kde341/ktoolbarbutton.h | 329 +++++ extra/kde341/kurifilter.h | 647 ++++++++++ extra/kde341/selectdialog.h | 87 ++ extra/kde342/configwidget.h | 58 + extra/kde342/kaccelaction.h | 564 ++++++++ extra/kde342/kaccelbase.h | 229 ++++ extra/kde342/kicontheme.h | 355 +++++ extra/kde342/kkeyserver.h | 29 + extra/kde342/kkeyserver_x11.h | 469 +++++++ extra/kde342/konsole_part.h | 228 ++++ extra/kde342/kpanelmenu.h | 182 +++ extra/kde342/krecentdirs.h | 70 + extra/kde342/ksharedptr.h | 175 +++ extra/kde342/ksycocafactory.h | 143 ++ extra/kde342/ktoolbarbutton.h | 329 +++++ extra/kde342/kurifilter.h | 647 ++++++++++ extra/kde342/selectdialog.h | 87 ++ extra/kde343/configwidget.h | 58 + extra/kde343/kaccelaction.h | 564 ++++++++ extra/kde343/kaccelbase.h | 229 ++++ extra/kde343/kicontheme.h | 355 +++++ extra/kde343/kkeyserver.h | 29 + extra/kde343/kkeyserver_x11.h | 469 +++++++ extra/kde343/konsole_part.h | 228 ++++ extra/kde343/kpanelmenu.h | 182 +++ extra/kde343/krecentdirs.h | 70 + extra/kde343/ksharedptr.h | 175 +++ extra/kde343/ksycocafactory.h | 143 ++ extra/kde343/ktoolbarbutton.h | 329 +++++ extra/kde343/kurifilter.h | 647 ++++++++++ extra/kde343/selectdialog.h | 87 ++ extra/kde350/configwidget.h | 58 + extra/kde350/kaccelaction.h | 576 +++++++++ extra/kde350/kaccelbase.h | 260 ++++ extra/kde350/kicontheme.h | 355 +++++ extra/kde350/kkeyserver.h | 29 + extra/kde350/kkeyserver_x11.h | 477 +++++++ extra/kde350/konsole_part.h | 241 ++++ extra/kde350/kpanelmenu.h | 182 +++ extra/kde350/krecentdirs.h | 70 + extra/kde350/ksharedptr.h | 175 +++ extra/kde350/ksycocafactory.h | 143 ++ extra/kde350/ktoolbarbutton.h | 330 +++++ extra/kde350/kurifilter.h | 647 ++++++++++ extra/kde350/selectdialog.h | 87 ++ extra/kde351/kaccelaction.h | 576 +++++++++ extra/kde351/kaccelbase.h | 260 ++++ extra/kde351/kicontheme.h | 355 +++++ extra/kde351/kkeyserver.h | 29 + extra/kde351/kkeyserver_x11.h | 477 +++++++ extra/kde351/konsole_part.h | 241 ++++ extra/kde351/kpanelmenu.h | 182 +++ extra/kde351/ksharedptr.h | 175 +++ extra/kde351/ksycocafactory.h | 143 ++ extra/kde351/ktoolbarbutton.h | 330 +++++ extra/kde351/kurifilter.h | 647 ++++++++++ extra/kde352/kaccelaction.h | 576 +++++++++ extra/kde352/kaccelbase.h | 260 ++++ extra/kde352/kicontheme.h | 355 +++++ extra/kde352/kkeyserver.h | 29 + extra/kde352/kkeyserver_x11.h | 477 +++++++ extra/kde352/konsole_part.h | 241 ++++ extra/kde352/kpanelmenu.h | 182 +++ extra/kde352/ksharedptr.h | 175 +++ extra/kde352/ksycocafactory.h | 143 ++ extra/kde352/ktoolbarbutton.h | 330 +++++ extra/kde352/kurifilter.h | 647 ++++++++++ extra/kde353/kaccelaction.h | 576 +++++++++ extra/kde353/kaccelbase.h | 260 ++++ extra/kde353/kicontheme.h | 355 +++++ extra/kde353/kkeyserver.h | 29 + extra/kde353/kkeyserver_x11.h | 477 +++++++ extra/kde353/konsole_part.h | 241 ++++ extra/kde353/kpanelmenu.h | 182 +++ extra/kde353/ksharedptr.h | 175 +++ extra/kde353/ksycocafactory.h | 143 ++ extra/kde353/ktoolbarbutton.h | 330 +++++ extra/kde353/kurifilter.h | 647 ++++++++++ importTest.py | 22 + postproc | 520 ++++++++ pykde350.prj | 495 +++++++ pykde351.prj | 495 +++++++ pykde352.prj | 495 +++++++ pykde353.prj | 495 +++++++ pykdeconfig.py | 225 ++++ pykdeconfig.py.in | 207 +++ sip/dcop/dcopclient.sip | 175 +++ sip/dcop/dcopmod.sip.in | 43 + sip/dcop/dcopobject.sip | 82 ++ sip/dcop/dcopref.sip | 109 ++ sip/dcop/dcopstub.sip | 68 + sip/dcop/typedefs.sip | 107 ++ sip/glossary.html | 40 + sip/kabc/address.sip | 150 +++ sip/kabc/addressbook.sip | 229 ++++ sip/kabc/addressee.sip | 468 +++++++ sip/kabc/addresseedialog.sip | 75 ++ sip/kabc/addresseelist.sip | 122 ++ sip/kabc/addresslineedit.sip | 66 + sip/kabc/agent.sip | 58 + sip/kabc/distributionlist.sip | 175 +++ sip/kabc/distributionlistdialog.sip | 74 ++ sip/kabc/distributionlisteditor.sip | 47 + sip/kabc/errorhandler.sip | 97 ++ sip/kabc/field.sip | 160 +++ sip/kabc/format.sip | 43 + sip/kabc/formatfactory.sip | 74 ++ sip/kabc/formatplugin.sip | 50 + sip/kabc/geo.sip | 61 + sip/kabc/kabc-kde310.diff | 17 + sip/kabc/kabc-kde311.diff | 17 + sip/kabc/kabc-kde312.diff | 17 + sip/kabc/kabc-kde313.diff | 17 + sip/kabc/kabc-kde314.diff | 17 + sip/kabc/kabc-kde320.diff | 21 + sip/kabc/kabc-kde322.diff | 21 + sip/kabc/kabc-kde323.diff | 21 + sip/kabc/kabc-kde330.diff | 24 + sip/kabc/kabc-kde331.diff | 24 + sip/kabc/kabc-kde332.diff | 24 + sip/kabc/kabc-kde340.diff | 25 + sip/kabc/kabc-kde341.diff | 25 + sip/kabc/kabc-kde342.diff | 25 + sip/kabc/kabc-kde343.diff | 25 + sip/kabc/kabc-kde350.diff | 25 + sip/kabc/kabc-kde351.diff | 25 + sip/kabc/kabc-kde352.diff | 25 + sip/kabc/kabc-kde353.diff | 25 + sip/kabc/kabcmod.sip.in | 55 + sip/kabc/key.sip | 143 ++ sip/kabc/ldapclient.sip | 243 ++++ sip/kabc/ldapconfigwidget.sip | 105 ++ sip/kabc/ldapurl.sip | 85 ++ sip/kabc/ldif.sip | 99 ++ sip/kabc/ldifconverter.sip | 78 ++ sip/kabc/lock.sip | 57 + sip/kabc/locknull.sip | 49 + sip/kabc/phonenumber.sip | 190 +++ sip/kabc/picture.sip | 60 + sip/kabc/plugin.sip | 52 + sip/kabc/resource.sip | 160 +++ sip/kabc/resourcefile.sip | 176 +++ sip/kabc/resourceselectdialog.sip | 55 + sip/kabc/secrecy.sip | 92 ++ sip/kabc/sortmode.sip | 83 ++ sip/kabc/sound.sip | 63 + sip/kabc/stdaddressbook.sip | 111 ++ sip/kabc/timezone.sip | 59 + sip/kabc/vcardconverter.sip | 74 ++ sip/kabc/vcardformat.sip | 44 + sip/kabc/vcardformatplugin.sip | 51 + sip/kdecore/bytearray.sip | 945 ++++++++++++++ sip/kdecore/fixx11h.sip | 30 + sip/kdecore/kaboutdata.sip | 301 +++++ sip/kdecore/kaccel.sip | 240 ++++ sip/kdecore/kaccelaction.sip | 122 ++ sip/kdecore/kaccelbase.sip | 102 ++ sip/kdecore/kallocator.sip | 48 + sip/kdecore/kapplication.sip | 449 +++++++ sip/kdecore/kasyncio.sip | 52 + sip/kdecore/kaudioplayer.sip | 42 + sip/kdecore/kbufferedio.sip | 73 ++ sip/kdecore/kcalendarsystem.sip | 78 ++ sip/kdecore/kcalendarsystemfactory.sip | 44 + sip/kdecore/kcatalogue.sip | 64 + sip/kdecore/kcharsets.sip | 62 + sip/kdecore/kclipboard.sip | 52 + sip/kdecore/kcmdlineargs.sip | 264 ++++ sip/kdecore/kcompletion.sip | 227 ++++ sip/kdecore/kconfig.sip | 238 ++++ sip/kdecore/kconfigbackend.sip | 93 ++ sip/kdecore/kconfigbase.sip | 333 +++++ sip/kdecore/kconfigdata.sip | 172 +++ sip/kdecore/kconfigdialogmanager.sip | 64 + sip/kdecore/kconfigskeleton.sip | 1146 +++++++++++++++++ sip/kdecore/kcrash.sip | 51 + sip/kdecore/kdcoppropertyproxy.sip | 44 + sip/kdecore/kdebug.sip | 67 + sip/kdecore/kdecore-kde310.diff | 1 + sip/kdecore/kdecore-kde311.diff | 1 + sip/kdecore/kdecore-kde312.diff | 1 + sip/kdecore/kdecore-kde313.diff | 1 + sip/kdecore/kdecore-kde314.diff | 3 + sip/kdecore/kdecore-kde315.diff | 3 + sip/kdecore/kdecore-kde320.diff | 16 + sip/kdecore/kdecore-kde321.diff | 12 + sip/kdecore/kdecore-kde322.diff | 13 + sip/kdecore/kdecore-kde323.diff | 13 + sip/kdecore/kdecore-kde330.diff | 15 + sip/kdecore/kdecore-kde331.diff | 15 + sip/kdecore/kdecore-kde332.diff | 15 + sip/kdecore/kdecore-kde340.diff | 15 + sip/kdecore/kdecore-kde341.diff | 15 + sip/kdecore/kdecore-kde342.diff | 15 + sip/kdecore/kdecore-kde343.diff | 15 + sip/kdecore/kdecore-kde350.diff | 16 + sip/kdecore/kdecore-kde351.diff | 16 + sip/kdecore/kdecore-kde352.diff | 16 + sip/kdecore/kdecore-kde353.diff | 16 + sip/kdecore/kdecoremod.sip.in | 99 ++ sip/kdecore/kdesktopfile.sip | 85 ++ sip/kdecore/kdesktopwidget.sip | 45 + sip/kdecore/kdestyle.sip | 108 ++ sip/kdecore/kdeversion.sip | 45 + sip/kdecore/kglobal.sip | 65 + sip/kdecore/kglobalaccel.sip | 87 ++ sip/kdecore/kglobalsettings.sip | 157 +++ sip/kdecore/kiconeffect.sip | 102 ++ sip/kdecore/kiconloader.sip | 97 ++ sip/kdecore/kicontheme.sip | 249 ++++ sip/kdecore/kidna.sip | 40 + sip/kdecore/kinstance.sip | 75 ++ sip/kdecore/kipc.sip | 98 ++ sip/kdecore/kkeynative.sip | 90 ++ sip/kdecore/kkeyserver_x11.sip | 187 +++ sip/kdecore/klibloader.sip | 103 ++ sip/kdecore/klocale.sip | 243 ++++ sip/kdecore/klockfile.sip | 112 ++ sip/kdecore/kmacroexpander.sip | 384 ++++++ sip/kdecore/kmanagerselection.sip | 91 ++ sip/kdecore/kmdcodec.sip | 156 +++ sip/kdecore/kmimesourcefactory.sip | 42 + sip/kdecore/kmountpoint.sip | 186 +++ sip/kdecore/kmultipledrag.sip | 58 + sip/kdecore/knotifyclient.sip | 139 ++ sip/kdecore/kpalette.sip | 63 + sip/kdecore/kpixmapprovider.sip | 41 + sip/kdecore/kprocctrl.sip | 95 ++ sip/kdecore/kprocess.sip | 272 ++++ sip/kdecore/kprocio.sip | 67 + sip/kdecore/kpty.sip | 52 + sip/kdecore/krandomsequence.sip | 45 + sip/kdecore/kregexp.sip | 44 + sip/kdecore/krfcdate.sip | 42 + sip/kdecore/krootprop.sip | 52 + sip/kdecore/ksavefile.sip | 52 + sip/kdecore/ksharedptr.sip | 45 + sip/kdecore/kshell.sip | 77 ++ sip/kdecore/kshortcut.sip | 261 ++++ sip/kdecore/kshortcutlist.sip | 133 ++ sip/kdecore/ksimpleconfig.sip | 50 + sip/kdecore/ksock.sip | 97 ++ sip/kdecore/kstartupinfo.sip | 280 ++++ sip/kdecore/kstaticdeleter.sip | 38 + sip/kdecore/kstdaccel.sip | 441 +++++++ sip/kdecore/kstddirs.sip | 69 + sip/kdecore/kstringhandler.sip | 89 ++ sip/kdecore/ktempdir.sip | 58 + sip/kdecore/ktempfile.sip | 58 + sip/kdecore/ktimezones.sip | 272 ++++ sip/kdecore/kuniqueapplication.sip | 68 + sip/kdecore/kurl.sip | 408 ++++++ sip/kdecore/kurldrag.sip | 76 ++ sip/kdecore/kuser.sip | 74 ++ sip/kdecore/kvmallocator.sip | 42 + sip/kdecore/kwin.sip | 188 +++ sip/kdecore/kwinmodule.sip | 158 +++ sip/kdecore/kxmessages.sip | 55 + sip/kdecore/netwm.sip | 628 +++++++++ sip/kdecore/netwm_def.sip | 535 ++++++++ sip/kdefx/kcpuinfo.sip | 52 + sip/kdefx/kdefx-kde320.diff | 1 + sip/kdefx/kdefx-kde321.diff | 1 + sip/kdefx/kdefx-kde322.diff | 1 + sip/kdefx/kdefx-kde323.diff | 1 + sip/kdefx/kdefx-kde330.diff | 1 + sip/kdefx/kdefx-kde331.diff | 1 + sip/kdefx/kdefx-kde332.diff | 1 + sip/kdefx/kdefx-kde340.diff | 1 + sip/kdefx/kdefx-kde341.diff | 1 + sip/kdefx/kdefx-kde342.diff | 1 + sip/kdefx/kdefx-kde343.diff | 1 + sip/kdefx/kdefx-kde350.diff | 1 + sip/kdefx/kdefx-kde351.diff | 1 + sip/kdefx/kdefx-kde352.diff | 1 + sip/kdefx/kdefx-kde353.diff | 1 + sip/kdefx/kdefxmod.sip.in | 41 + sip/kdefx/kdrawutil.sip | 39 + sip/kdefx/kimageeffect.sip | 205 +++ sip/kdefx/kpixmap.sip | 65 + sip/kdefx/kpixmapeffect.sip | 85 ++ sip/kdefx/kpixmapsplitter.sip | 46 + sip/kdefx/kstyle.sip | 126 ++ sip/kdeprint/driver.sip | 338 +++++ sip/kdeprint/kdeprint-kde310.diff | 2 + sip/kdeprint/kdeprint-kde311.diff | 2 + sip/kdeprint/kdeprint-kde312.diff | 2 + sip/kdeprint/kdeprint-kde313.diff | 2 + sip/kdeprint/kdeprint-kde314.diff | 2 + sip/kdeprint/kdeprint-kde315.diff | 2 + sip/kdeprint/kdeprint-kde320.diff | 2 + sip/kdeprint/kdeprint-kde321.diff | 2 + sip/kdeprint/kdeprint-kde322.diff | 2 + sip/kdeprint/kdeprint-kde323.diff | 2 + sip/kdeprint/kdeprint-kde330.diff | 2 + sip/kdeprint/kdeprint-kde331.diff | 2 + sip/kdeprint/kdeprint-kde332.diff | 2 + sip/kdeprint/kdeprint-kde340.diff | 2 + sip/kdeprint/kdeprint-kde341.diff | 2 + sip/kdeprint/kdeprint-kde342.diff | 2 + sip/kdeprint/kdeprint-kde343.diff | 2 + sip/kdeprint/kdeprint-kde350.diff | 2 + sip/kdeprint/kdeprint-kde351.diff | 2 + sip/kdeprint/kdeprint-kde352.diff | 2 + sip/kdeprint/kdeprint-kde353.diff | 2 + sip/kdeprint/kdeprintmod.sip.in | 47 + sip/kdeprint/kmjob.sip | 113 ++ sip/kdeprint/kmjobmanager.sip | 197 +++ sip/kdeprint/kmmanager.sip | 220 ++++ sip/kdeprint/kmobject.sip | 42 + sip/kdeprint/kmprinter.sip | 178 +++ sip/kdeprint/kpreloadobject.sip | 43 + sip/kdeprint/kprintaction.sip | 61 + sip/kdeprint/kprintdialog.sip | 169 +++ sip/kdeprint/kprintdialogpage.sip | 52 + sip/kdeprint/kprinter.sip | 258 ++++ sip/kdeui/kaboutapplication.sip | 205 +++ sip/kdeui/kaboutdialog.sip | 190 +++ sip/kdeui/kaboutkde.sip | 38 + sip/kdeui/kaccelmanager.sip | 43 + sip/kdeui/kaccelmenu.sip | 53 + sip/kdeui/kaction.sip | 758 +++++++++++ sip/kdeui/kactionclasses.sip | 529 ++++++++ sip/kdeui/kactioncollection.sip | 125 ++ sip/kdeui/kactionselector.sip | 106 ++ sip/kdeui/kactionshortcutlist.sip | 106 ++ sip/kdeui/kactivelabel.sip | 58 + sip/kdeui/kalphapainter.sip | 41 + sip/kdeui/kanimwidget.sip | 92 ++ sip/kdeui/karrowbutton.sip | 55 + sip/kdeui/kauthicon.sip | 101 ++ sip/kdeui/kbugreport.sip | 54 + sip/kdeui/kbuttonbox.sip | 59 + sip/kdeui/kcharselect.sip | 130 ++ sip/kdeui/kcmenumngr.sip | 43 + sip/kdeui/kcmodule.sip | 183 +++ sip/kdeui/kcolorbtn.sip | 54 + sip/kdeui/kcolorcombo.sip | 51 + sip/kdeui/kcolordialog.sip | 237 ++++ sip/kdeui/kcolordrag.sip | 52 + sip/kdeui/kcombobox.sip | 130 ++ sip/kdeui/kcommand.sip | 131 ++ sip/kdeui/kcompletionbox.sip | 86 ++ sip/kdeui/kconfigdialog.sip | 69 + sip/kdeui/kcontainer.sip | 75 ++ sip/kdeui/kcursor.sip | 57 + sip/kdeui/kdatepicker.sip | 108 ++ sip/kdeui/kdatepik.sip | 64 + sip/kdeui/kdatetbl.sip | 303 +++++ sip/kdeui/kdatetimewidget.sip | 50 + sip/kdeui/kdatewidget.sip | 58 + sip/kdeui/kdbtn.sip | 61 + sip/kdeui/kdcopactionproxy.sip | 48 + sip/kdeui/kdeui-kde310.diff | 4 + sip/kdeui/kdeui-kde311.diff | 4 + sip/kdeui/kdeui-kde312.diff | 4 + sip/kdeui/kdeui-kde313.diff | 4 + sip/kdeui/kdeui-kde314.diff | 4 + sip/kdeui/kdeui-kde315.diff | 4 + sip/kdeui/kdeui-kde320.diff | 13 + sip/kdeui/kdeui-kde321.diff | 13 + sip/kdeui/kdeui-kde322.diff | 13 + sip/kdeui/kdeui-kde323.diff | 14 + sip/kdeui/kdeui-kde330.diff | 16 + sip/kdeui/kdeui-kde331.diff | 16 + sip/kdeui/kdeui-kde332.diff | 16 + sip/kdeui/kdeui-kde340.diff | 21 + sip/kdeui/kdeui-kde341.diff | 21 + sip/kdeui/kdeui-kde342.diff | 21 + sip/kdeui/kdeui-kde343.diff | 21 + sip/kdeui/kdeui-kde350.diff | 23 + sip/kdeui/kdeui-kde351.diff | 23 + sip/kdeui/kdeui-kde352.diff | 23 + sip/kdeui/kdeui-kde353.diff | 23 + sip/kdeui/kdeuimod.sip.in | 123 ++ sip/kdeui/kdialog.sip | 90 ++ sip/kdeui/kdialogbase.sip | 283 ++++ sip/kdeui/kdocktabctl.sip | 186 +++ sip/kdeui/kdockwidget.sip | 469 +++++++ sip/kdeui/kdockwindow.sip | 38 + sip/kdeui/kdualcolorbtn.sip | 73 ++ sip/kdeui/kdualcolorbutton.sip | 74 ++ sip/kdeui/keditcl.sip | 224 ++++ sip/kdeui/keditlistbox.sip | 206 +++ sip/kdeui/kedittoolbar.sip | 156 +++ sip/kdeui/kfontcombo.sip | 67 + sip/kdeui/kfontdialog.sip | 184 +++ sip/kdeui/kfontrequester.sip | 63 + sip/kdeui/kguiitem.sip | 57 + sip/kdeui/khelpmenu.sip | 63 + sip/kdeui/kiconview.sip | 147 +++ sip/kdeui/kiconviewsearchline.sip | 61 + sip/kdeui/kinputdialog.sip | 66 + sip/kdeui/kjanuswidget.sip | 110 ++ sip/kdeui/kkeybutton.sip | 59 + sip/kdeui/kkeydialog.sip | 265 ++++ sip/kdeui/klanguagebutton.sip | 60 + sip/kdeui/kled.sip | 97 ++ sip/kdeui/klineedit.sip | 146 +++ sip/kdeui/klineeditdlg.sip | 53 + sip/kdeui/klistbox.sip | 60 + sip/kdeui/klistview.sip | 336 +++++ sip/kdeui/klistviewlineedit.sip | 51 + sip/kdeui/klistviewsearchline.sip | 84 ++ sip/kdeui/kmainwindow.sip | 273 ++++ sip/kdeui/kmainwindowiface.sip | 71 + sip/kdeui/kmenubar.sip | 91 ++ sip/kdeui/kmessagebox.sip | 260 ++++ sip/kdeui/knuminput.sip | 261 ++++ sip/kdeui/knumvalidator.sip | 89 ++ sip/kdeui/kpanelapplet.sip | 140 ++ sip/kdeui/kpanelappmenu.sip | 51 + sip/kdeui/kpanelextension.sip | 159 +++ sip/kdeui/kpanelmenu.sip | 65 + sip/kdeui/kpassdlg.sip | 138 ++ sip/kdeui/kpassivepopup.sip | 112 ++ sip/kdeui/kpixmapio.sip | 53 + sip/kdeui/kpixmapregionselectordialog.sip | 49 + sip/kdeui/kpixmapregionselectorwidget.sip | 60 + sip/kdeui/kpopupmenu.sip | 149 +++ sip/kdeui/kprogress.sip | 102 ++ sip/kdeui/kpushbutton.sip | 67 + sip/kdeui/krestrictedline.sip | 49 + sip/kdeui/krootpixmap.sip | 71 + sip/kdeui/kruler.sip | 108 ++ sip/kdeui/kscrollview.sip | 53 + sip/kdeui/kselect.sip | 142 ++ sip/kdeui/kseparator.sip | 48 + sip/kdeui/ksharedpixmap.sip | 62 + sip/kdeui/kshortcutdialog.sip | 53 + sip/kdeui/ksplashscreen.sip | 42 + sip/kdeui/ksqueezedtextlabel.sip | 60 + sip/kdeui/kstatusbar.sip | 82 ++ sip/kdeui/kstdaction.sip | 327 +++++ sip/kdeui/kstdguiitem.sip | 350 +++++ sip/kdeui/kstringvalidator.sip | 63 + sip/kdeui/ksystemtray.sip | 84 ++ sip/kdeui/ktabbar.sip | 98 ++ sip/kdeui/ktabctl.sip | 64 + sip/kdeui/ktabwidget.sip | 144 +++ sip/kdeui/ktextbrowser.sip | 58 + sip/kdeui/ktextedit.sip | 83 ++ sip/kdeui/kthemebase.sip | 258 ++++ sip/kdeui/kthemestyle.sip | 89 ++ sip/kdeui/ktimewidget.sip | 50 + sip/kdeui/ktimezonewidget.sip | 45 + sip/kdeui/ktip.sip | 82 ++ sip/kdeui/ktmainwindow.sip | 53 + sip/kdeui/ktoolbar.sip | 263 ++++ sip/kdeui/ktoolbarbutton.sip | 123 ++ sip/kdeui/ktoolbarlabelaction.sip | 51 + sip/kdeui/ktoolbarradiogroup.sip | 43 + sip/kdeui/kurllabel.sip | 108 ++ sip/kdeui/kwindowinfo.sip | 61 + sip/kdeui/kwindowlistmenu.sip | 54 + sip/kdeui/kwizard.sip | 38 + sip/kdeui/kwordwrap.sip | 82 ++ sip/kdeui/kxmlgui.sip | 26 + sip/kdeui/kxmlguibuilder.sip | 53 + sip/kdeui/kxmlguiclient.sip | 101 ++ sip/kdeui/kxmlguifactory.sip | 297 +++++ sip/kdeui/qxembed.sip | 113 ++ sip/kfile/booktoken.sip | 66 + sip/kfile/kcombiview.sip | 90 ++ sip/kfile/kcustommenueditor.sip | 57 + sip/kfile/kdiroperator.sip | 205 +++ sip/kfile/kdirselectdialog.sip | 71 + sip/kfile/kdirsize.sip | 85 ++ sip/kfile/kdiskfreesp.sip | 49 + sip/kfile/kencodingfiledialog.sip | 65 + sip/kfile/kfile-kde310.diff | 5 + sip/kfile/kfile-kde311.diff | 5 + sip/kfile/kfile-kde312.diff | 5 + sip/kfile/kfile-kde313.diff | 5 + sip/kfile/kfile-kde314.diff | 5 + sip/kfile/kfile-kde315.diff | 5 + sip/kfile/kfile-kde320.diff | 6 + sip/kfile/kfile-kde321.diff | 5 + sip/kfile/kfile-kde322.diff | 5 + sip/kfile/kfile-kde323.diff | 5 + sip/kfile/kfile-kde330.diff | 5 + sip/kfile/kfile-kde331.diff | 5 + sip/kfile/kfile-kde332.diff | 5 + sip/kfile/kfile-kde340.diff | 5 + sip/kfile/kfile-kde341.diff | 5 + sip/kfile/kfile-kde342.diff | 5 + sip/kfile/kfile-kde343.diff | 5 + sip/kfile/kfile-kde350.diff | 5 + sip/kfile/kfile-kde351.diff | 5 + sip/kfile/kfile-kde352.diff | 6 + sip/kfile/kfile-kde353.diff | 5 + sip/kfile/kfile.sip | 115 ++ sip/kfile/kfilebookmark.sip | 154 +++ sip/kfile/kfiledetailview.sip | 207 +++ sip/kfile/kfiledialog.sip | 207 +++ sip/kfile/kfilefiltercombo.sip | 58 + sip/kfile/kfileiconview.sip | 141 ++ sip/kfile/kfilemod.sip.in | 63 + sip/kfile/kfilepreview.sip | 80 ++ sip/kfile/kfilereader.sip | 47 + sip/kfile/kfilesharedlg.sip | 53 + sip/kfile/kfiletreebranch.sip | 233 ++++ sip/kfile/kfiletreeview.sip | 109 ++ sip/kfile/kfiletreeviewitem.sip | 48 + sip/kfile/kfileview.sip | 153 +++ sip/kfile/kfileviewitem.sip | 58 + sip/kfile/kicondialog.sip | 131 ++ sip/kfile/kimagefilepreview.sip | 57 + sip/kfile/knotifydialog.sip | 314 +++++ sip/kfile/knotifywidgetbase.sip | 64 + sip/kfile/kopenwith.sip | 146 +++ sip/kfile/kpreviewwidgetbase.sip | 57 + sip/kfile/kpropertiesdialog.sip | 304 +++++ sip/kfile/kpropsdlg.sip | 208 +++ sip/kfile/krecentdirs.sip | 40 + sip/kfile/krecentdocument.sip | 44 + sip/kfile/kurlbar.sip | 213 +++ sip/kfile/kurlcombobox.sip | 80 ++ sip/kfile/kurlrequester.sip | 112 ++ sip/kfile/kurlrequesterdlg.sip | 43 + sip/khtml/css_rule.sip | 259 ++++ sip/khtml/css_stylesheet.sip | 197 +++ sip/khtml/css_value.sip | 320 +++++ sip/khtml/dom2_events.sip | 248 ++++ sip/khtml/dom2_range.sip | 115 ++ sip/khtml/dom2_traversal.sip | 176 +++ sip/khtml/dom2_views.sip | 50 + sip/khtml/dom_doc.sip | 185 +++ sip/khtml/dom_element.sip | 111 ++ sip/khtml/dom_exception.sip | 64 + sip/khtml/dom_misc.sip | 49 + sip/khtml/dom_node.sip | 150 +++ sip/khtml/dom_string.sip | 74 ++ sip/khtml/dom_text.sip | 92 ++ sip/khtml/dom_xml.sip | 128 ++ sip/khtml/html_base.sip | 207 +++ sip/khtml/html_block.sip | 233 ++++ sip/khtml/html_document.sip | 77 ++ sip/khtml/html_element.sip | 78 ++ sip/khtml/html_form.sip | 436 +++++++ sip/khtml/html_head.sip | 203 +++ sip/khtml/html_image.sip | 144 +++ sip/khtml/html_inline.sip | 169 +++ sip/khtml/html_list.sip | 169 +++ sip/khtml/html_misc.sip | 97 ++ sip/khtml/html_object.sip | 179 +++ sip/khtml/html_table.sip | 256 ++++ sip/khtml/khtml_part.sip | 282 ++++ sip/khtml/khtml_part.sip.323 | 272 ++++ sip/khtml/khtml_part.sip.330 | 282 ++++ sip/khtml/khtml_settings.sip | 298 +++++ sip/khtml/khtmlmod.sip.in | 71 + sip/khtml/khtmlview.sip | 144 +++ sip/kio/authinfo.sip | 210 +++ sip/kio/chmodjob.sip | 55 + sip/kio/connection.sip | 72 ++ sip/kio/davjob.sip | 56 + sip/kio/defaultprogress.sip | 103 ++ sip/kio/forwardingslavebase.sip | 63 + sip/kio/global.sip | 714 ++++++++++ sip/kio/job.sip | 73 ++ sip/kio/jobclasses.sip | 748 +++++++++++ sip/kio/kacl.sip | 168 +++ sip/kio/kar.sip | 54 + sip/kio/karchive.sip | 189 +++ sip/kio/kautomount.sip | 77 ++ sip/kio/kdatatool.sip | 172 +++ sip/kio/kdcopservicestarter.sip | 48 + sip/kio/kdirlister.sip | 267 ++++ sip/kio/kdirnotify.sip | 57 + sip/kio/kdirwatch.sip | 96 ++ sip/kio/kemailsettings.sip | 84 ++ sip/kio/kfilefilter.sip | 81 ++ sip/kio/kfileitem.sip | 171 +++ sip/kio/kfilemetainfo.sip | 458 +++++++ sip/kio/kfileshare.sip | 87 ++ sip/kio/kfilterbase.sip | 74 ++ sip/kio/kfilterdev.sip | 73 ++ sip/kio/kimageio.sip | 59 + sip/kio/kio-kde310.diff | 5 + sip/kio/kio-kde311.diff | 4 + sip/kio/kio-kde312.diff | 5 + sip/kio/kio-kde313.diff | 5 + sip/kio/kio-kde314.diff | 5 + sip/kio/kio-kde315.diff | 5 + sip/kio/kio-kde320.diff | 6 + sip/kio/kio-kde321.diff | 6 + sip/kio/kio-kde322.diff | 6 + sip/kio/kio-kde323.diff | 6 + sip/kio/kio-kde330.diff | 10 + sip/kio/kio-kde331.diff | 10 + sip/kio/kio-kde332.diff | 10 + sip/kio/kio-kde340.diff | 11 + sip/kio/kio-kde341.diff | 11 + sip/kio/kio-kde342.diff | 11 + sip/kio/kio-kde343.diff | 11 + sip/kio/kio-kde350.diff | 12 + sip/kio/kio-kde351.diff | 12 + sip/kio/kio-kde352.diff | 12 + sip/kio/kio-kde353.diff | 12 + sip/kio/kiomod.sip.in | 97 ++ sip/kio/kmimemagic.sip | 74 ++ sip/kio/kmimetype.sip | 428 ++++++ sip/kio/kmimetypechooser.sip | 74 ++ sip/kio/knfsshare.sip | 51 + sip/kio/kpac.sip | 44 + sip/kio/kprotocolinfo.sip | 287 +++++ sip/kio/kprotocolmanager.sip | 99 ++ sip/kio/kremoteencoding.sip | 60 + sip/kio/krun.sip | 206 +++ sip/kio/ksambashare.sip | 51 + sip/kio/kscan.sip | 120 ++ sip/kio/kservice.sip | 286 ++++ sip/kio/kservicegroup.sip | 287 +++++ sip/kio/kservicetype.sip | 292 +++++ sip/kio/kshellcompletion.sip | 47 + sip/kio/kshred.sip | 49 + sip/kio/ksycoca.sip | 171 +++ sip/kio/ksycocadict.sip | 51 + sip/kio/ksycocaentry.sip | 207 +++ sip/kio/ksycocafactory.sip | 63 + sip/kio/ksycocatype.sip | 76 ++ sip/kio/ktar.sip | 73 ++ sip/kio/ktrader.sip | 124 ++ sip/kio/kurifilter.sip | 147 +++ sip/kio/kurlcompletion.sip | 81 ++ sip/kio/kurlpixmapprovider.sip | 41 + sip/kio/kuserprofile.sip | 222 ++++ sip/kio/kzip.sip | 120 ++ sip/kio/metainfojob.sip | 63 + sip/kio/netaccess.sip | 128 ++ sip/kio/observer.sip | 96 ++ sip/kio/passdlg.sip | 68 + sip/kio/paste.sip | 56 + sip/kio/previewjob.sip | 72 ++ sip/kio/progressbase.sip | 95 ++ sip/kio/renamedlg.sip | 67 + sip/kio/renamedlgplugin.sip | 39 + sip/kio/scheduler.sip | 106 ++ sip/kio/sessiondata.sip | 51 + sip/kio/skipdlg.sip | 45 + sip/kio/slave.sip | 95 ++ sip/kio/slavebase.sip | 187 +++ sip/kio/slaveconfig.sip | 53 + sip/kio/slaveinterface.sip | 188 +++ sip/kio/statusbarprogress.sip | 56 + sip/kio/tcpslavebase.sip | 91 ++ sip/kio/thumbcreator.sip | 47 + sip/kmdi/kmdichildarea.sip | 102 ++ sip/kmdi/kmdichildfrm.sip | 279 ++++ sip/kmdi/kmdichildfrmcaption.sip | 57 + sip/kmdi/kmdichildview.sip | 120 ++ sip/kmdi/kmdidefines.sip | 115 ++ sip/kmdi/kmdimainfrm.sip | 339 +++++ sip/kmdi/kmdimod.sip.in | 48 + sip/kmdi/kmditaskbar.sip | 88 ++ sip/kmdi/kmditoolviewaccessor.sip | 53 + sip/kparts/browserextension.sip | 601 +++++++++ sip/kparts/browserinterface.sip | 43 + sip/kparts/browserrun.sip | 117 ++ sip/kparts/dockmainwindow.sip | 49 + sip/kparts/event.sip | 94 ++ sip/kparts/factory.sip | 53 + sip/kparts/genericfactory.sip | 25 + sip/kparts/historyprovider.sip | 54 + sip/kparts/kparts-kde320.diff | 1 + sip/kparts/kparts-kde321.diff | 1 + sip/kparts/kparts-kde322.diff | 1 + sip/kparts/kparts-kde323.diff | 1 + sip/kparts/kparts-kde330.diff | 1 + sip/kparts/kparts-kde331.diff | 1 + sip/kparts/kparts-kde332.diff | 1 + sip/kparts/kparts-kde340.diff | 1 + sip/kparts/kparts-kde341.diff | 1 + sip/kparts/kparts-kde342.diff | 1 + sip/kparts/kparts-kde343.diff | 1 + sip/kparts/kparts-kde350.diff | 1 + sip/kparts/kparts-kde351.diff | 1 + sip/kparts/kparts-kde352.diff | 1 + sip/kparts/kparts-kde353.diff | 1 + sip/kparts/kpartsmod.sip.in | 51 + sip/kparts/mainwindow.sip | 60 + sip/kparts/part.sip | 312 +++++ sip/kparts/partmanager.sip | 181 +++ sip/kparts/plugin.sip | 210 +++ sip/kparts/statusbarextension.sip | 52 + sip/kresources/configdialog.sip | 52 + sip/kresources/configpage.sip | 48 + sip/kresources/configwidget.sip | 56 + sip/kresources/factory.sip | 54 + sip/kresources/kresourcesmod.sip.in | 45 + sip/kresources/resource.sip | 84 ++ sip/kresources/selectdialog.sip | 132 ++ sip/kspell/ksconfig.sip | 214 +++ sip/kspell/kspell-kde320.diff | 1 + sip/kspell/kspell-kde321.diff | 1 + sip/kspell/kspell-kde322.diff | 1 + sip/kspell/kspell-kde323.diff | 1 + sip/kspell/kspell-kde330.diff | 1 + sip/kspell/kspell-kde331.diff | 1 + sip/kspell/kspell-kde332.diff | 1 + sip/kspell/kspell-kde340.diff | 1 + sip/kspell/kspell-kde341.diff | 1 + sip/kspell/kspell-kde342.diff | 1 + sip/kspell/kspell-kde343.diff | 1 + sip/kspell/kspell-kde350.diff | 1 + sip/kspell/kspell-kde351.diff | 3 + sip/kspell/kspell-kde352.diff | 1 + sip/kspell/kspell-kde353.diff | 1 + sip/kspell/kspell.sip | 190 +++ sip/kspell/kspelldlg.sip | 127 ++ sip/kspell/kspellmod.sip.in | 42 + sip/kspell/ksyntaxhighlighter.sip | 114 ++ sip/kspell2/backgroundchecker.sip | 68 + sip/kspell2/broker.sip | 62 + sip/kspell2/configdialog.sip | 49 + sip/kspell2/configwidget.sip | 54 + sip/kspell2/defaultdictionary.sip | 60 + sip/kspell2/dialog.sip | 61 + sip/kspell2/dictionary.sip | 57 + sip/kspell2/filter.sip | 87 ++ sip/kspell2/highlighter.sip | 54 + sip/kspell2/kspell2mod.sip.in | 48 + sip/kspell2/settings.sip | 63 + sip/kutils/kcmoduleinfo.sip | 91 ++ sip/kutils/kcmoduleloader.sip | 67 + sip/kutils/kcmoduleproxy.sip | 104 ++ sip/kutils/kcmultidialog.sip | 86 ++ sip/kutils/kfind.sip | 83 ++ sip/kutils/kfinddialog.sip | 86 ++ sip/kutils/kmultitabbar.sip | 167 +++ sip/kutils/kplugininfo.sip | 148 +++ sip/kutils/kpluginselector.sip | 53 + sip/kutils/kreplace.sip | 60 + sip/kutils/kreplacedialog.sip | 59 + sip/kutils/kutils-kde340.diff | 1 + sip/kutils/kutils-kde341.diff | 1 + sip/kutils/kutilsmod.sip.in | 50 + svnmerge.py | 47 + svnmergedocs.py | 30 + templates/annotated/basicapp.py | 113 ++ templates/annotated/menuapp1.py | 270 ++++ templates/annotated/menuapp2.py | 244 ++++ templates/annotated/menuapp3.py | 209 +++ templates/annotated/menuapp3ui.rc | 24 + templates/annotated/minimal.py | 75 ++ templates/annotated/panelapplet.py | 64 + templates/annotated/systray.py | 82 ++ templates/annotated/systray1.py | 87 ++ templates/basic/basicapp.py | 58 + templates/basic/menuapp1.py | 194 +++ templates/basic/menuapp2.py | 200 +++ templates/basic/menuapp3.py | 162 +++ templates/basic/menuapp3ui.rc | 24 + templates/basic/minimal.py | 48 + templates/basic/panelapplet.py | 49 + templates/basic/systray.py | 61 + templates/basic/systray1.py | 67 + 1885 files changed, 267527 insertions(+) create mode 100644 AUTHORS create mode 100644 BUGS create mode 100644 COPYING create mode 100644 ChangeLog create mode 100644 ChangeLog.2001-4 create mode 100644 Changelog create mode 100644 INSTALL create mode 100644 NEWS create mode 100644 README create mode 100644 THANKS create mode 100644 configure.py create mode 100755 contrib/kdepyuic create mode 100644 doc/classref/allclasses.html create mode 100644 doc/classref/dcop/DCOPClient.html create mode 100644 doc/classref/dcop/DCOPObject.html create mode 100644 doc/classref/dcop/DCOPObjectProxy.html create mode 100644 doc/classref/dcop/DCOPRef.html create mode 100644 doc/classref/dcop/DCOPReply.html create mode 100644 doc/classref/dcop/DCOPStub.html create mode 100644 doc/classref/dcop/index.html create mode 100644 doc/classref/glossary.html create mode 100644 doc/classref/index.html create mode 100644 doc/classref/kabc/KABC.Address.html create mode 100644 doc/classref/kabc/KABC.AddressBook.html create mode 100644 doc/classref/kabc/KABC.AddressLineEdit.html create mode 100644 doc/classref/kabc/KABC.AddresseeDialog.html create mode 100644 doc/classref/kabc/KABC.AddresseeItem.html create mode 100644 doc/classref/kabc/KABC.Agent.html create mode 100644 doc/classref/kabc/KABC.ConsoleErrorHandler.html create mode 100644 doc/classref/kabc/KABC.DistributionList.Entry.html create mode 100644 doc/classref/kabc/KABC.DistributionList.html create mode 100644 doc/classref/kabc/KABC.DistributionListDialog.html create mode 100644 doc/classref/kabc/KABC.DistributionListEditorWidget.html create mode 100644 doc/classref/kabc/KABC.DistributionListManager.html create mode 100644 doc/classref/kabc/KABC.DistributionListWatcher.html create mode 100644 doc/classref/kabc/KABC.EmailSelectDialog.html create mode 100644 doc/classref/kabc/KABC.EmailSelector.html create mode 100644 doc/classref/kabc/KABC.ErrorHandler.html create mode 100644 doc/classref/kabc/KABC.Field.html create mode 100644 doc/classref/kabc/KABC.FieldSortMode.html create mode 100644 doc/classref/kabc/KABC.Format.html create mode 100644 doc/classref/kabc/KABC.FormatFactory.html create mode 100644 doc/classref/kabc/KABC.FormatInfo.html create mode 100644 doc/classref/kabc/KABC.FormatPlugin.html create mode 100644 doc/classref/kabc/KABC.GUIErrorHandler.html create mode 100644 doc/classref/kabc/KABC.Geo.html create mode 100644 doc/classref/kabc/KABC.GuiErrorHandler.html create mode 100644 doc/classref/kabc/KABC.Key.html create mode 100644 doc/classref/kabc/KABC.LDAPUrl.Extension.html create mode 100644 doc/classref/kabc/KABC.LDAPUrl.html create mode 100644 doc/classref/kabc/KABC.LDIF.html create mode 100644 doc/classref/kabc/KABC.LDIFConverter.html create mode 100644 doc/classref/kabc/KABC.LdapClient.html create mode 100644 doc/classref/kabc/KABC.LdapConfigWidget.html create mode 100644 doc/classref/kabc/KABC.LdapObject.html create mode 100644 doc/classref/kabc/KABC.LdapResult.html create mode 100644 doc/classref/kabc/KABC.LdapSearch.html create mode 100644 doc/classref/kabc/KABC.Lock.html create mode 100644 doc/classref/kabc/KABC.LockNull.html create mode 100644 doc/classref/kabc/KABC.NameSortMode.html create mode 100644 doc/classref/kabc/KABC.PhoneNumber.html create mode 100644 doc/classref/kabc/KABC.Picture.html create mode 100644 doc/classref/kabc/KABC.Plugin.html create mode 100644 doc/classref/kabc/KABC.Resource.html create mode 100644 doc/classref/kabc/KABC.ResourceFile.html create mode 100644 doc/classref/kabc/KABC.ResourceSelectDialog.html create mode 100644 doc/classref/kabc/KABC.Secrecy.html create mode 100644 doc/classref/kabc/KABC.SortMode.html create mode 100644 doc/classref/kabc/KABC.SortingTraits.FamilyName.html create mode 100644 doc/classref/kabc/KABC.SortingTraits.FormattedName.html create mode 100644 doc/classref/kabc/KABC.SortingTraits.GivenName.html create mode 100644 doc/classref/kabc/KABC.SortingTraits.Name.html create mode 100644 doc/classref/kabc/KABC.SortingTraits.Uid.html create mode 100644 doc/classref/kabc/KABC.SortingTraits.html create mode 100644 doc/classref/kabc/KABC.Sound.html create mode 100644 doc/classref/kabc/KABC.StdAddressBook.html create mode 100644 doc/classref/kabc/KABC.Ticket.html create mode 100644 doc/classref/kabc/KABC.TimeZone.html create mode 100644 doc/classref/kabc/KABC.VCardConverter.html create mode 100644 doc/classref/kabc/KABC.VCardFormat.html create mode 100644 doc/classref/kabc/KABC.VCardFormatPlugin.html create mode 100644 doc/classref/kabc/KABC.html create mode 100644 doc/classref/kabc/index.html create mode 100644 doc/classref/kabc/kabc-globals.html create mode 100644 doc/classref/kdecore/KAboutData.html create mode 100644 doc/classref/kdecore/KAboutPerson.html create mode 100644 doc/classref/kdecore/KAboutTranslator.html create mode 100644 doc/classref/kdecore/KAccel.html create mode 100644 doc/classref/kdecore/KAccelAction.html create mode 100644 doc/classref/kdecore/KAccelActions.html create mode 100644 doc/classref/kdecore/KAccelBase.html create mode 100644 doc/classref/kdecore/KAccelShortcutList.html create mode 100644 doc/classref/kdecore/KApplication.html create mode 100644 doc/classref/kdecore/KAsyncIO.html create mode 100644 doc/classref/kdecore/KAudioPlayer.html create mode 100644 doc/classref/kdecore/KBufferedIO.html create mode 100644 doc/classref/kdecore/KCalendarSystem.html create mode 100644 doc/classref/kdecore/KCalendarSystemFactory.html create mode 100644 doc/classref/kdecore/KCatalogue.html create mode 100644 doc/classref/kdecore/KCharMacroExpander.html create mode 100644 doc/classref/kdecore/KCharsets.html create mode 100644 doc/classref/kdecore/KClipboardSynchronizer.html create mode 100644 doc/classref/kdecore/KCmdLineArgs.html create mode 100644 doc/classref/kdecore/KCmdLineOptions.html create mode 100644 doc/classref/kdecore/KCodecs.html create mode 100644 doc/classref/kdecore/KCompletion.html create mode 100644 doc/classref/kdecore/KCompletionBase.html create mode 100644 doc/classref/kdecore/KConfig.html create mode 100644 doc/classref/kdecore/KConfigBackEnd.html create mode 100644 doc/classref/kdecore/KConfigBase.html create mode 100644 doc/classref/kdecore/KConfigDialogManager.html create mode 100644 doc/classref/kdecore/KConfigGroup.html create mode 100644 doc/classref/kdecore/KConfigGroupSaver.html create mode 100644 doc/classref/kdecore/KConfigINIBackEnd.html create mode 100644 doc/classref/kdecore/KConfigSkeleton.ItemBool.html create mode 100644 doc/classref/kdecore/KConfigSkeleton.ItemColor.html create mode 100644 doc/classref/kdecore/KConfigSkeleton.ItemDateTime.html create mode 100644 doc/classref/kdecore/KConfigSkeleton.ItemDouble.html create mode 100644 doc/classref/kdecore/KConfigSkeleton.ItemEnum.Choice.html create mode 100644 doc/classref/kdecore/KConfigSkeleton.ItemEnum.html create mode 100644 doc/classref/kdecore/KConfigSkeleton.ItemFont.html create mode 100644 doc/classref/kdecore/KConfigSkeleton.ItemInt.html create mode 100644 doc/classref/kdecore/KConfigSkeleton.ItemInt64.html create mode 100644 doc/classref/kdecore/KConfigSkeleton.ItemIntList.html create mode 100644 doc/classref/kdecore/KConfigSkeleton.ItemLong.html create mode 100644 doc/classref/kdecore/KConfigSkeleton.ItemPassword.html create mode 100644 doc/classref/kdecore/KConfigSkeleton.ItemPath.html create mode 100644 doc/classref/kdecore/KConfigSkeleton.ItemPathList.html create mode 100644 doc/classref/kdecore/KConfigSkeleton.ItemPoint.html create mode 100644 doc/classref/kdecore/KConfigSkeleton.ItemProperty.html create mode 100644 doc/classref/kdecore/KConfigSkeleton.ItemRect.html create mode 100644 doc/classref/kdecore/KConfigSkeleton.ItemSize.html create mode 100644 doc/classref/kdecore/KConfigSkeleton.ItemString.html create mode 100644 doc/classref/kdecore/KConfigSkeleton.ItemStringList.html create mode 100644 doc/classref/kdecore/KConfigSkeleton.ItemUInt.html create mode 100644 doc/classref/kdecore/KConfigSkeleton.ItemUInt64.html create mode 100644 doc/classref/kdecore/KConfigSkeleton.ItemULong.html create mode 100644 doc/classref/kdecore/KConfigSkeleton.html create mode 100644 doc/classref/kdecore/KConfigSkeletonItem.html create mode 100644 doc/classref/kdecore/KCrash.html create mode 100644 doc/classref/kdecore/KDCOPPropertyProxy.html create mode 100644 doc/classref/kdecore/KDE.html create mode 100644 doc/classref/kdecore/KDesktopFile.html create mode 100644 doc/classref/kdecore/KEntry.html create mode 100644 doc/classref/kdecore/KEntryKey.html create mode 100644 doc/classref/kdecore/KGlobal.html create mode 100644 doc/classref/kdecore/KGlobalAccel.html create mode 100644 doc/classref/kdecore/KGlobalSettings.KMouseSettings.html create mode 100644 doc/classref/kdecore/KGlobalSettings.html create mode 100644 doc/classref/kdecore/KIDNA.html create mode 100644 doc/classref/kdecore/KIPC.html create mode 100644 doc/classref/kdecore/KIcon.html create mode 100644 doc/classref/kdecore/KIconEffect.html create mode 100644 doc/classref/kdecore/KIconLoader.html create mode 100644 doc/classref/kdecore/KIconTheme.html create mode 100644 doc/classref/kdecore/KInstance.html create mode 100644 doc/classref/kdecore/KKey.html create mode 100644 doc/classref/kdecore/KKeyNative.html create mode 100644 doc/classref/kdecore/KKeySequence.html create mode 100644 doc/classref/kdecore/KKeyServer.CodeMod.html create mode 100644 doc/classref/kdecore/KKeyServer.Key.html create mode 100644 doc/classref/kdecore/KKeyServer.Sym.html create mode 100644 doc/classref/kdecore/KKeyServer.Variations.html create mode 100644 doc/classref/kdecore/KKeyServer.html create mode 100644 doc/classref/kdecore/KLibFactory.html create mode 100644 doc/classref/kdecore/KLibLoader.html create mode 100644 doc/classref/kdecore/KLibrary.html create mode 100644 doc/classref/kdecore/KLocale.html create mode 100644 doc/classref/kdecore/KLockFile.html create mode 100644 doc/classref/kdecore/KMD4.html create mode 100644 doc/classref/kdecore/KMD5.html create mode 100644 doc/classref/kdecore/KMacroExpander.html create mode 100644 doc/classref/kdecore/KMacroExpanderBase.html create mode 100644 doc/classref/kdecore/KMimeSourceFactory.html create mode 100644 doc/classref/kdecore/KMountPoint.html create mode 100644 doc/classref/kdecore/KMultipleDrag.html create mode 100644 doc/classref/kdecore/KNotifyClient.Instance.html create mode 100644 doc/classref/kdecore/KNotifyClient.html create mode 100644 doc/classref/kdecore/KPalette.html create mode 100644 doc/classref/kdecore/KPixmapProvider.html create mode 100644 doc/classref/kdecore/KProcIO.html create mode 100644 doc/classref/kdecore/KProcess.html create mode 100644 doc/classref/kdecore/KProcessController.html create mode 100644 doc/classref/kdecore/KPty.html create mode 100644 doc/classref/kdecore/KRFCDate.html create mode 100644 doc/classref/kdecore/KRandomSequence.html create mode 100644 doc/classref/kdecore/KRegExp.html create mode 100644 doc/classref/kdecore/KRootProp.html create mode 100644 doc/classref/kdecore/KSaveFile.html create mode 100644 doc/classref/kdecore/KSelectionOwner.html create mode 100644 doc/classref/kdecore/KSelectionWatcher.html create mode 100644 doc/classref/kdecore/KServerSocket.html create mode 100644 doc/classref/kdecore/KSessionManaged.html create mode 100644 doc/classref/kdecore/KShared.html create mode 100644 doc/classref/kdecore/KSharedConfig.html create mode 100644 doc/classref/kdecore/KShell.html create mode 100644 doc/classref/kdecore/KShellProcess.html create mode 100644 doc/classref/kdecore/KShortcut.html create mode 100644 doc/classref/kdecore/KShortcutList.html create mode 100644 doc/classref/kdecore/KSimpleConfig.html create mode 100644 doc/classref/kdecore/KSocket.html create mode 100644 doc/classref/kdecore/KStartupInfo.html create mode 100644 doc/classref/kdecore/KStartupInfoData.html create mode 100644 doc/classref/kdecore/KStartupInfoId.html create mode 100644 doc/classref/kdecore/KStaticDeleterBase.html create mode 100644 doc/classref/kdecore/KStdAccel.ShortcutList.html create mode 100644 doc/classref/kdecore/KStdAccel.html create mode 100644 doc/classref/kdecore/KStringHandler.html create mode 100644 doc/classref/kdecore/KTempDir.html create mode 100644 doc/classref/kdecore/KTempFile.html create mode 100644 doc/classref/kdecore/KTimezone.html create mode 100644 doc/classref/kdecore/KTimezoneDetails.html create mode 100644 doc/classref/kdecore/KTimezoneSource.html create mode 100644 doc/classref/kdecore/KTimezones.html create mode 100644 doc/classref/kdecore/KURL.List.html create mode 100644 doc/classref/kdecore/KURL.html create mode 100644 doc/classref/kdecore/KURLDrag.html create mode 100644 doc/classref/kdecore/KUniqueApplication.html create mode 100644 doc/classref/kdecore/KWin.Info.html create mode 100644 doc/classref/kdecore/KWin.WindowInfo.html create mode 100644 doc/classref/kdecore/KWin.html create mode 100644 doc/classref/kdecore/KWinModule.html create mode 100644 doc/classref/kdecore/KWordMacroExpander.html create mode 100644 doc/classref/kdecore/KZoneAllocator.html create mode 100644 doc/classref/kdecore/NET.html create mode 100644 doc/classref/kdecore/NETExtendedStrut.html create mode 100644 doc/classref/kdecore/NETIcon.html create mode 100644 doc/classref/kdecore/NETPoint.html create mode 100644 doc/classref/kdecore/NETRect.html create mode 100644 doc/classref/kdecore/NETRootInfo.html create mode 100644 doc/classref/kdecore/NETRootInfo2.html create mode 100644 doc/classref/kdecore/NETRootInfo3.html create mode 100644 doc/classref/kdecore/NETRootInfo4.html create mode 100644 doc/classref/kdecore/NETSize.html create mode 100644 doc/classref/kdecore/NETStrut.html create mode 100644 doc/classref/kdecore/NETWinInfo.html create mode 100644 doc/classref/kdecore/index.html create mode 100644 doc/classref/kdecore/kdecore-globals.html create mode 100644 doc/classref/kdefx/KCPUInfo.html create mode 100644 doc/classref/kdefx/KImageEffect.html create mode 100644 doc/classref/kdefx/KPixmap.html create mode 100644 doc/classref/kdefx/KPixmapEffect.html create mode 100644 doc/classref/kdefx/KPixmapSplitter.html create mode 100644 doc/classref/kdefx/KStyle.html create mode 100644 doc/classref/kdefx/index.html create mode 100644 doc/classref/kdefx/kdefx-globals.html create mode 100644 doc/classref/kdeprint/DrBase.html create mode 100644 doc/classref/kdeprint/DrBooleanOption.html create mode 100644 doc/classref/kdeprint/DrChoiceGroup.html create mode 100644 doc/classref/kdeprint/DrConstraint.html create mode 100644 doc/classref/kdeprint/DrFloatOption.html create mode 100644 doc/classref/kdeprint/DrGroup.html create mode 100644 doc/classref/kdeprint/DrIntegerOption.html create mode 100644 doc/classref/kdeprint/DrListOption.html create mode 100644 doc/classref/kdeprint/DrMain.html create mode 100644 doc/classref/kdeprint/DrPageSize.html create mode 100644 doc/classref/kdeprint/DrStringOption.html create mode 100644 doc/classref/kdeprint/KMJob.html create mode 100644 doc/classref/kdeprint/KMJobManager.JobFilter.html create mode 100644 doc/classref/kdeprint/KMJobManager.html create mode 100644 doc/classref/kdeprint/KMManager.html create mode 100644 doc/classref/kdeprint/KMObject.html create mode 100644 doc/classref/kdeprint/KMPrinter.html create mode 100644 doc/classref/kdeprint/KPReloadObject.html create mode 100644 doc/classref/kdeprint/KPrintAction.html create mode 100644 doc/classref/kdeprint/KPrintDialog.html create mode 100644 doc/classref/kdeprint/KPrintDialogPage.html create mode 100644 doc/classref/kdeprint/KPrinter.html create mode 100644 doc/classref/kdeprint/index.html create mode 100644 doc/classref/kdeprint/kdeprint-globals.html create mode 100644 doc/classref/kdeui/KAboutApplication.html create mode 100644 doc/classref/kdeui/KAboutContainer.html create mode 100644 doc/classref/kdeui/KAboutContributor.html create mode 100644 doc/classref/kdeui/KAboutDialog.html create mode 100644 doc/classref/kdeui/KAboutKDE.html create mode 100644 doc/classref/kdeui/KAboutWidget.html create mode 100644 doc/classref/kdeui/KAction.html create mode 100644 doc/classref/kdeui/KActionCollection.html create mode 100644 doc/classref/kdeui/KActionMenu.html create mode 100644 doc/classref/kdeui/KActionPtrShortcutList.html create mode 100644 doc/classref/kdeui/KActionSelector.html create mode 100644 doc/classref/kdeui/KActionSeparator.html create mode 100644 doc/classref/kdeui/KActionShortcutList.html create mode 100644 doc/classref/kdeui/KActiveLabel.html create mode 100644 doc/classref/kdeui/KAnimWidget.html create mode 100644 doc/classref/kdeui/KArrowButton.html create mode 100644 doc/classref/kdeui/KAuthIcon.html create mode 100644 doc/classref/kdeui/KBugReport.html create mode 100644 doc/classref/kdeui/KButtonBox.html create mode 100644 doc/classref/kdeui/KCModule.html create mode 100644 doc/classref/kdeui/KCharSelect.html create mode 100644 doc/classref/kdeui/KCharSelectTable.html create mode 100644 doc/classref/kdeui/KColor.html create mode 100644 doc/classref/kdeui/KColorCells.html create mode 100644 doc/classref/kdeui/KColorCombo.html create mode 100644 doc/classref/kdeui/KColorDialog.html create mode 100644 doc/classref/kdeui/KColorDrag.html create mode 100644 doc/classref/kdeui/KColorPatch.html create mode 100644 doc/classref/kdeui/KComboBox.html create mode 100644 doc/classref/kdeui/KCommand.html create mode 100644 doc/classref/kdeui/KCommandHistory.html create mode 100644 doc/classref/kdeui/KCompletionBox.html create mode 100644 doc/classref/kdeui/KConfigDialog.html create mode 100644 doc/classref/kdeui/KContextMenuManager.html create mode 100644 doc/classref/kdeui/KCursor.html create mode 100644 doc/classref/kdeui/KDCOPActionProxy.html create mode 100644 doc/classref/kdeui/KDateInternalMonthPicker.html create mode 100644 doc/classref/kdeui/KDateInternalWeekSelector.html create mode 100644 doc/classref/kdeui/KDateInternalYearSelector.html create mode 100644 doc/classref/kdeui/KDatePicker.html create mode 100644 doc/classref/kdeui/KDateTable.html create mode 100644 doc/classref/kdeui/KDateTimeWidget.html create mode 100644 doc/classref/kdeui/KDateValidator.html create mode 100644 doc/classref/kdeui/KDateWidget.html create mode 100644 doc/classref/kdeui/KDialog.html create mode 100644 doc/classref/kdeui/KDialogBase.html create mode 100644 doc/classref/kdeui/KDialogQueue.html create mode 100644 doc/classref/kdeui/KDockArea.html create mode 100644 doc/classref/kdeui/KDockMainWindow.html create mode 100644 doc/classref/kdeui/KDockManager.html create mode 100644 doc/classref/kdeui/KDockTabGroup.html create mode 100644 doc/classref/kdeui/KDockWidget.html create mode 100644 doc/classref/kdeui/KDockWidgetAbstractHeader.html create mode 100644 doc/classref/kdeui/KDockWidgetAbstractHeaderDrag.html create mode 100644 doc/classref/kdeui/KDockWidgetHeader.html create mode 100644 doc/classref/kdeui/KDockWidgetHeaderDrag.html create mode 100644 doc/classref/kdeui/KDockWindow.html create mode 100644 doc/classref/kdeui/KDoubleNumInput.html create mode 100644 doc/classref/kdeui/KDoubleSpinBox.html create mode 100644 doc/classref/kdeui/KDoubleValidator.html create mode 100644 doc/classref/kdeui/KDualColorButton.html create mode 100644 doc/classref/kdeui/KEdFind.html create mode 100644 doc/classref/kdeui/KEdGotoLine.html create mode 100644 doc/classref/kdeui/KEdReplace.html create mode 100644 doc/classref/kdeui/KEdit.html create mode 100644 doc/classref/kdeui/KEditListBox.CustomEditor.html create mode 100644 doc/classref/kdeui/KEditListBox.html create mode 100644 doc/classref/kdeui/KEditToolbar.html create mode 100644 doc/classref/kdeui/KEditToolbarWidget.html create mode 100644 doc/classref/kdeui/KFloatValidator.html create mode 100644 doc/classref/kdeui/KFontAction.html create mode 100644 doc/classref/kdeui/KFontChooser.html create mode 100644 doc/classref/kdeui/KFontCombo.html create mode 100644 doc/classref/kdeui/KFontDialog.html create mode 100644 doc/classref/kdeui/KFontRequester.html create mode 100644 doc/classref/kdeui/KFontSizeAction.html create mode 100644 doc/classref/kdeui/KGradientSelector.html create mode 100644 doc/classref/kdeui/KGuiItem.html create mode 100644 doc/classref/kdeui/KHSSelector.html create mode 100644 doc/classref/kdeui/KHelpMenu.html create mode 100644 doc/classref/kdeui/KHistoryCombo.html create mode 100644 doc/classref/kdeui/KIconView.html create mode 100644 doc/classref/kdeui/KIconViewItem.html create mode 100644 doc/classref/kdeui/KIconViewSearchLine.html create mode 100644 doc/classref/kdeui/KInputDialog.html create mode 100644 doc/classref/kdeui/KIntNumInput.html create mode 100644 doc/classref/kdeui/KIntSpinBox.html create mode 100644 doc/classref/kdeui/KIntValidator.html create mode 100644 doc/classref/kdeui/KJanusWidget.html create mode 100644 doc/classref/kdeui/KKeyButton.html create mode 100644 doc/classref/kdeui/KKeyChooser.html create mode 100644 doc/classref/kdeui/KKeyDialog.html create mode 100644 doc/classref/kdeui/KLanguageButton.html create mode 100644 doc/classref/kdeui/KLed.html create mode 100644 doc/classref/kdeui/KLineEdit.html create mode 100644 doc/classref/kdeui/KLineEditDlg.html create mode 100644 doc/classref/kdeui/KListAction.html create mode 100644 doc/classref/kdeui/KListBox.html create mode 100644 doc/classref/kdeui/KListView.html create mode 100644 doc/classref/kdeui/KListViewItem.html create mode 100644 doc/classref/kdeui/KListViewSearchLine.html create mode 100644 doc/classref/kdeui/KListViewSearchLineWidget.html create mode 100644 doc/classref/kdeui/KMacroCommand.html create mode 100644 doc/classref/kdeui/KMainWindow.html create mode 100644 doc/classref/kdeui/KMainWindowInterface.html create mode 100644 doc/classref/kdeui/KMenuBar.html create mode 100644 doc/classref/kdeui/KMessageBox.html create mode 100644 doc/classref/kdeui/KMimeTypeValidator.html create mode 100644 doc/classref/kdeui/KNamedCommand.html create mode 100644 doc/classref/kdeui/KNumInput.html create mode 100644 doc/classref/kdeui/KPaletteTable.html create mode 100644 doc/classref/kdeui/KPanelAppMenu.html create mode 100644 doc/classref/kdeui/KPanelApplet.html create mode 100644 doc/classref/kdeui/KPanelExtension.html create mode 100644 doc/classref/kdeui/KPanelMenu.html create mode 100644 doc/classref/kdeui/KPassivePopup.html create mode 100644 doc/classref/kdeui/KPasswordDialog.html create mode 100644 doc/classref/kdeui/KPasswordEdit.html create mode 100644 doc/classref/kdeui/KPasteTextAction.html create mode 100644 doc/classref/kdeui/KPixmapIO.html create mode 100644 doc/classref/kdeui/KPixmapRegionSelectorDialog.html create mode 100644 doc/classref/kdeui/KPixmapRegionSelectorWidget.html create mode 100644 doc/classref/kdeui/KPopupFrame.html create mode 100644 doc/classref/kdeui/KPopupMenu.html create mode 100644 doc/classref/kdeui/KPopupTitle.html create mode 100644 doc/classref/kdeui/KProgress.html create mode 100644 doc/classref/kdeui/KProgressDialog.html create mode 100644 doc/classref/kdeui/KPushButton.html create mode 100644 doc/classref/kdeui/KRadioAction.html create mode 100644 doc/classref/kdeui/KRecentFilesAction.html create mode 100644 doc/classref/kdeui/KRestrictedLine.html create mode 100644 doc/classref/kdeui/KRootPermsIcon.html create mode 100644 doc/classref/kdeui/KRootPixmap.html create mode 100644 doc/classref/kdeui/KRuler.html create mode 100644 doc/classref/kdeui/KScrollView.html create mode 100644 doc/classref/kdeui/KSelectAction.html create mode 100644 doc/classref/kdeui/KSelector.html create mode 100644 doc/classref/kdeui/KSeparator.html create mode 100644 doc/classref/kdeui/KSharedPixmap.html create mode 100644 doc/classref/kdeui/KShortcutDialog.html create mode 100644 doc/classref/kdeui/KSplashScreen.html create mode 100644 doc/classref/kdeui/KSqueezedTextLabel.html create mode 100644 doc/classref/kdeui/KStatusBar.html create mode 100644 doc/classref/kdeui/KStatusBarLabel.html create mode 100644 doc/classref/kdeui/KStdAction.html create mode 100644 doc/classref/kdeui/KStdGuiItem.html create mode 100644 doc/classref/kdeui/KStringListValidator.html create mode 100644 doc/classref/kdeui/KSystemTray.html create mode 100644 doc/classref/kdeui/KTabBar.html create mode 100644 doc/classref/kdeui/KTabCtl.html create mode 100644 doc/classref/kdeui/KTabWidget.html create mode 100644 doc/classref/kdeui/KTextBrowser.html create mode 100644 doc/classref/kdeui/KTextEdit.html create mode 100644 doc/classref/kdeui/KTimeWidget.html create mode 100644 doc/classref/kdeui/KTimezoneWidget.html create mode 100644 doc/classref/kdeui/KTipDatabase.html create mode 100644 doc/classref/kdeui/KTipDialog.html create mode 100644 doc/classref/kdeui/KToggleAction.html create mode 100644 doc/classref/kdeui/KToggleFullScreenAction.html create mode 100644 doc/classref/kdeui/KToggleToolBarAction.html create mode 100644 doc/classref/kdeui/KToolBar.html create mode 100644 doc/classref/kdeui/KToolBarButton.html create mode 100644 doc/classref/kdeui/KToolBarLabelAction.html create mode 100644 doc/classref/kdeui/KToolBarPopupAction.html create mode 100644 doc/classref/kdeui/KToolBarRadioGroup.html create mode 100644 doc/classref/kdeui/KToolBarSeparator.html create mode 100644 doc/classref/kdeui/KURLLabel.html create mode 100644 doc/classref/kdeui/KValueSelector.html create mode 100644 doc/classref/kdeui/KWidgetAction.html create mode 100644 doc/classref/kdeui/KWindowInfo.html create mode 100644 doc/classref/kdeui/KWindowListMenu.html create mode 100644 doc/classref/kdeui/KWizard.html create mode 100644 doc/classref/kdeui/KWordWrap.html create mode 100644 doc/classref/kdeui/KWritePermsIcon.html create mode 100644 doc/classref/kdeui/KXMLGUIBuilder.html create mode 100644 doc/classref/kdeui/KXMLGUIClient.StateChange.html create mode 100644 doc/classref/kdeui/KXMLGUIClient.html create mode 100644 doc/classref/kdeui/KXMLGUIFactory.html create mode 100644 doc/classref/kdeui/KXYSelector.html create mode 100644 doc/classref/kdeui/QXEmbed.html create mode 100644 doc/classref/kdeui/index.html create mode 100644 doc/classref/kdeui/kdeui-globals.html create mode 100644 doc/classref/kfile/KAppTreeListItem.html create mode 100644 doc/classref/kfile/KApplicationPropsPlugin.html create mode 100644 doc/classref/kfile/KApplicationTree.html create mode 100644 doc/classref/kfile/KBindingPropsPlugin.html create mode 100644 doc/classref/kfile/KCombiView.html create mode 100644 doc/classref/kfile/KCustomMenuEditor.html create mode 100644 doc/classref/kfile/KDesktopPropsPlugin.html create mode 100644 doc/classref/kfile/KDevicePropsPlugin.html create mode 100644 doc/classref/kfile/KDirOperator.html create mode 100644 doc/classref/kfile/KDirSelectDialog.html create mode 100644 doc/classref/kfile/KDirSize.html create mode 100644 doc/classref/kfile/KDiskFreeSp.html create mode 100644 doc/classref/kfile/KEncodingFileDialog.Result.html create mode 100644 doc/classref/kfile/KEncodingFileDialog.html create mode 100644 doc/classref/kfile/KExecPropsPlugin.html create mode 100644 doc/classref/kfile/KFile.html create mode 100644 doc/classref/kfile/KFileDetailView.html create mode 100644 doc/classref/kfile/KFileDialog.html create mode 100644 doc/classref/kfile/KFileFilterCombo.html create mode 100644 doc/classref/kfile/KFileIconView.html create mode 100644 doc/classref/kfile/KFileIconViewItem.html create mode 100644 doc/classref/kfile/KFileListViewItem.html create mode 100644 doc/classref/kfile/KFileOpenWithHandler.html create mode 100644 doc/classref/kfile/KFilePermissionsPropsPlugin.html create mode 100644 doc/classref/kfile/KFilePreview.html create mode 100644 doc/classref/kfile/KFilePropsPlugin.html create mode 100644 doc/classref/kfile/KFileSharePropsPlugin.html create mode 100644 doc/classref/kfile/KFileTreeBranch.html create mode 100644 doc/classref/kfile/KFileTreeView.html create mode 100644 doc/classref/kfile/KFileTreeViewItem.html create mode 100644 doc/classref/kfile/KFileTreeViewToolTip.html create mode 100644 doc/classref/kfile/KFileView.html create mode 100644 doc/classref/kfile/KFileViewSignaler.html create mode 100644 doc/classref/kfile/KIconButton.html create mode 100644 doc/classref/kfile/KIconCanvas.html create mode 100644 doc/classref/kfile/KIconDialog.html create mode 100644 doc/classref/kfile/KImageFilePreview.html create mode 100644 doc/classref/kfile/KNotify.Application.html create mode 100644 doc/classref/kfile/KNotify.ApplicationList.html create mode 100644 doc/classref/kfile/KNotify.Event.html create mode 100644 doc/classref/kfile/KNotify.KNotifyWidget.html create mode 100644 doc/classref/kfile/KNotify.ListViewItem.html create mode 100644 doc/classref/kfile/KNotify.html create mode 100644 doc/classref/kfile/KNotifyDialog.html create mode 100644 doc/classref/kfile/KOpenWithDlg.html create mode 100644 doc/classref/kfile/KPreviewWidgetBase.html create mode 100644 doc/classref/kfile/KPropertiesDialog.html create mode 100644 doc/classref/kfile/KPropsDlgPlugin.html create mode 100644 doc/classref/kfile/KRecentDirs.html create mode 100644 doc/classref/kfile/KRecentDocument.html create mode 100644 doc/classref/kfile/KURLBar.html create mode 100644 doc/classref/kfile/KURLBarItem.html create mode 100644 doc/classref/kfile/KURLBarItemDialog.html create mode 100644 doc/classref/kfile/KURLBarListBox.html create mode 100644 doc/classref/kfile/KURLComboBox.html create mode 100644 doc/classref/kfile/KURLComboRequester.html create mode 100644 doc/classref/kfile/KURLPropsPlugin.html create mode 100644 doc/classref/kfile/KURLRequester.html create mode 100644 doc/classref/kfile/KURLRequesterDlg.html create mode 100644 doc/classref/kfile/index.html create mode 100644 doc/classref/khtml/DOM.AbstractView.html create mode 100644 doc/classref/khtml/DOM.Attr.html create mode 100644 doc/classref/khtml/DOM.CDATASection.html create mode 100644 doc/classref/khtml/DOM.CSSCharsetRule.html create mode 100644 doc/classref/khtml/DOM.CSSException.html create mode 100644 doc/classref/khtml/DOM.CSSFontFaceRule.html create mode 100644 doc/classref/khtml/DOM.CSSImportRule.html create mode 100644 doc/classref/khtml/DOM.CSSMediaRule.html create mode 100644 doc/classref/khtml/DOM.CSSPageRule.html create mode 100644 doc/classref/khtml/DOM.CSSPrimitiveValue.html create mode 100644 doc/classref/khtml/DOM.CSSRule.html create mode 100644 doc/classref/khtml/DOM.CSSRuleList.html create mode 100644 doc/classref/khtml/DOM.CSSStyleDeclaration.html create mode 100644 doc/classref/khtml/DOM.CSSStyleRule.html create mode 100644 doc/classref/khtml/DOM.CSSStyleSheet.html create mode 100644 doc/classref/khtml/DOM.CSSUnknownRule.html create mode 100644 doc/classref/khtml/DOM.CSSValue.html create mode 100644 doc/classref/khtml/DOM.CSSValueList.html create mode 100644 doc/classref/khtml/DOM.CharacterData.html create mode 100644 doc/classref/khtml/DOM.Comment.html create mode 100644 doc/classref/khtml/DOM.Counter.html create mode 100644 doc/classref/khtml/DOM.CustomNodeFilter.html create mode 100644 doc/classref/khtml/DOM.DOMException.html create mode 100644 doc/classref/khtml/DOM.DOMImplementation.html create mode 100644 doc/classref/khtml/DOM.DOMString.html create mode 100644 doc/classref/khtml/DOM.Document.html create mode 100644 doc/classref/khtml/DOM.DocumentFragment.html create mode 100644 doc/classref/khtml/DOM.DocumentStyle.html create mode 100644 doc/classref/khtml/DOM.DocumentType.html create mode 100644 doc/classref/khtml/DOM.DomShared.html create mode 100644 doc/classref/khtml/DOM.Element.html create mode 100644 doc/classref/khtml/DOM.Entity.html create mode 100644 doc/classref/khtml/DOM.EntityReference.html create mode 100644 doc/classref/khtml/DOM.Event.html create mode 100644 doc/classref/khtml/DOM.EventException.html create mode 100644 doc/classref/khtml/DOM.EventListener.html create mode 100644 doc/classref/khtml/DOM.HTMLAnchorElement.html create mode 100644 doc/classref/khtml/DOM.HTMLAppletElement.html create mode 100644 doc/classref/khtml/DOM.HTMLAreaElement.html create mode 100644 doc/classref/khtml/DOM.HTMLBRElement.html create mode 100644 doc/classref/khtml/DOM.HTMLBaseElement.html create mode 100644 doc/classref/khtml/DOM.HTMLBaseFontElement.html create mode 100644 doc/classref/khtml/DOM.HTMLBlockquoteElement.html create mode 100644 doc/classref/khtml/DOM.HTMLBodyElement.html create mode 100644 doc/classref/khtml/DOM.HTMLButtonElement.html create mode 100644 doc/classref/khtml/DOM.HTMLCollection.html create mode 100644 doc/classref/khtml/DOM.HTMLDListElement.html create mode 100644 doc/classref/khtml/DOM.HTMLDirectoryElement.html create mode 100644 doc/classref/khtml/DOM.HTMLDivElement.html create mode 100644 doc/classref/khtml/DOM.HTMLDocument.html create mode 100644 doc/classref/khtml/DOM.HTMLElement.html create mode 100644 doc/classref/khtml/DOM.HTMLFieldSetElement.html create mode 100644 doc/classref/khtml/DOM.HTMLFontElement.html create mode 100644 doc/classref/khtml/DOM.HTMLFormElement.html create mode 100644 doc/classref/khtml/DOM.HTMLFrameElement.html create mode 100644 doc/classref/khtml/DOM.HTMLFrameSetElement.html create mode 100644 doc/classref/khtml/DOM.HTMLHRElement.html create mode 100644 doc/classref/khtml/DOM.HTMLHeadElement.html create mode 100644 doc/classref/khtml/DOM.HTMLHeadingElement.html create mode 100644 doc/classref/khtml/DOM.HTMLHtmlElement.html create mode 100644 doc/classref/khtml/DOM.HTMLIFrameElement.html create mode 100644 doc/classref/khtml/DOM.HTMLImageElement.html create mode 100644 doc/classref/khtml/DOM.HTMLInputElement.html create mode 100644 doc/classref/khtml/DOM.HTMLIsIndexElement.html create mode 100644 doc/classref/khtml/DOM.HTMLLIElement.html create mode 100644 doc/classref/khtml/DOM.HTMLLabelElement.html create mode 100644 doc/classref/khtml/DOM.HTMLLayerElement.html create mode 100644 doc/classref/khtml/DOM.HTMLLegendElement.html create mode 100644 doc/classref/khtml/DOM.HTMLLinkElement.html create mode 100644 doc/classref/khtml/DOM.HTMLMapElement.html create mode 100644 doc/classref/khtml/DOM.HTMLMenuElement.html create mode 100644 doc/classref/khtml/DOM.HTMLMetaElement.html create mode 100644 doc/classref/khtml/DOM.HTMLModElement.html create mode 100644 doc/classref/khtml/DOM.HTMLOListElement.html create mode 100644 doc/classref/khtml/DOM.HTMLObjectElement.html create mode 100644 doc/classref/khtml/DOM.HTMLOptGroupElement.html create mode 100644 doc/classref/khtml/DOM.HTMLOptionElement.html create mode 100644 doc/classref/khtml/DOM.HTMLParagraphElement.html create mode 100644 doc/classref/khtml/DOM.HTMLParamElement.html create mode 100644 doc/classref/khtml/DOM.HTMLPreElement.html create mode 100644 doc/classref/khtml/DOM.HTMLQuoteElement.html create mode 100644 doc/classref/khtml/DOM.HTMLScriptElement.html create mode 100644 doc/classref/khtml/DOM.HTMLSelectElement.html create mode 100644 doc/classref/khtml/DOM.HTMLStyleElement.html create mode 100644 doc/classref/khtml/DOM.HTMLTableCaptionElement.html create mode 100644 doc/classref/khtml/DOM.HTMLTableCellElement.html create mode 100644 doc/classref/khtml/DOM.HTMLTableColElement.html create mode 100644 doc/classref/khtml/DOM.HTMLTableElement.html create mode 100644 doc/classref/khtml/DOM.HTMLTableRowElement.html create mode 100644 doc/classref/khtml/DOM.HTMLTableSectionElement.html create mode 100644 doc/classref/khtml/DOM.HTMLTextAreaElement.html create mode 100644 doc/classref/khtml/DOM.HTMLTitleElement.html create mode 100644 doc/classref/khtml/DOM.HTMLUListElement.html create mode 100644 doc/classref/khtml/DOM.LinkStyle.html create mode 100644 doc/classref/khtml/DOM.MediaList.html create mode 100644 doc/classref/khtml/DOM.MouseEvent.html create mode 100644 doc/classref/khtml/DOM.MutationEvent.html create mode 100644 doc/classref/khtml/DOM.NamedNodeMap.html create mode 100644 doc/classref/khtml/DOM.Node.html create mode 100644 doc/classref/khtml/DOM.NodeFilter.html create mode 100644 doc/classref/khtml/DOM.NodeIterator.html create mode 100644 doc/classref/khtml/DOM.NodeList.html create mode 100644 doc/classref/khtml/DOM.Notation.html create mode 100644 doc/classref/khtml/DOM.ProcessingInstruction.html create mode 100644 doc/classref/khtml/DOM.RGBColor.html create mode 100644 doc/classref/khtml/DOM.Range.html create mode 100644 doc/classref/khtml/DOM.RangeException.html create mode 100644 doc/classref/khtml/DOM.Rect.html create mode 100644 doc/classref/khtml/DOM.StyleSheet.html create mode 100644 doc/classref/khtml/DOM.StyleSheetList.html create mode 100644 doc/classref/khtml/DOM.Text.html create mode 100644 doc/classref/khtml/DOM.TextEvent.html create mode 100644 doc/classref/khtml/DOM.TreeWalker.html create mode 100644 doc/classref/khtml/DOM.UIEvent.html create mode 100644 doc/classref/khtml/DOM.html create mode 100644 doc/classref/khtml/KHTMLPart.html create mode 100644 doc/classref/khtml/KHTMLSettings.html create mode 100644 doc/classref/khtml/KHTMLView.html create mode 100644 doc/classref/khtml/index.html create mode 100644 doc/classref/khtml/khtml-globals.html create mode 100644 doc/classref/kio/KACL.html create mode 100644 doc/classref/kio/KAr.html create mode 100644 doc/classref/kio/KArchive.html create mode 100644 doc/classref/kio/KArchiveDirectory.html create mode 100644 doc/classref/kio/KArchiveEntry.html create mode 100644 doc/classref/kio/KArchiveFile.html create mode 100644 doc/classref/kio/KAutoMount.html create mode 100644 doc/classref/kio/KAutoUnmount.html create mode 100644 doc/classref/kio/KDCOPServiceStarter.html create mode 100644 doc/classref/kio/KDEDesktopMimeType.Service.html create mode 100644 doc/classref/kio/KDEDesktopMimeType.html create mode 100644 doc/classref/kio/KDataTool.html create mode 100644 doc/classref/kio/KDataToolAction.html create mode 100644 doc/classref/kio/KDataToolInfo.html create mode 100644 doc/classref/kio/KDirLister.html create mode 100644 doc/classref/kio/KDirNotify.html create mode 100644 doc/classref/kio/KDirWatch.html create mode 100644 doc/classref/kio/KEMailSettings.html create mode 100644 doc/classref/kio/KExecMimeType.html create mode 100644 doc/classref/kio/KFileFilter.html create mode 100644 doc/classref/kio/KFileItem.html create mode 100644 doc/classref/kio/KFileMetaInfo.html create mode 100644 doc/classref/kio/KFileMetaInfoGroup.html create mode 100644 doc/classref/kio/KFileMetaInfoItem.html create mode 100644 doc/classref/kio/KFileMetaInfoProvider.html create mode 100644 doc/classref/kio/KFileMimeTypeInfo.GroupInfo.html create mode 100644 doc/classref/kio/KFileMimeTypeInfo.ItemInfo.html create mode 100644 doc/classref/kio/KFileMimeTypeInfo.html create mode 100644 doc/classref/kio/KFilePlugin.html create mode 100644 doc/classref/kio/KFileShare.html create mode 100644 doc/classref/kio/KFileSharePrivate.html create mode 100644 doc/classref/kio/KFilterBase.html create mode 100644 doc/classref/kio/KFilterDev.html create mode 100644 doc/classref/kio/KFolderType.html create mode 100644 doc/classref/kio/KIO.AuthInfo.html create mode 100644 doc/classref/kio/KIO.ChmodJob.html create mode 100644 doc/classref/kio/KIO.Connection.html create mode 100644 doc/classref/kio/KIO.CopyInfo.html create mode 100644 doc/classref/kio/KIO.CopyJob.html create mode 100644 doc/classref/kio/KIO.DavJob.html create mode 100644 doc/classref/kio/KIO.DefaultProgress.html create mode 100644 doc/classref/kio/KIO.DeleteJob.html create mode 100644 doc/classref/kio/KIO.DirectCopyJob.html create mode 100644 doc/classref/kio/KIO.FileCopyJob.html create mode 100644 doc/classref/kio/KIO.ForwardingSlaveBase.html create mode 100644 doc/classref/kio/KIO.Job.html create mode 100644 doc/classref/kio/KIO.ListJob.html create mode 100644 doc/classref/kio/KIO.MetaInfoJob.html create mode 100644 doc/classref/kio/KIO.MimetypeJob.html create mode 100644 doc/classref/kio/KIO.MkdirJob.html create mode 100644 doc/classref/kio/KIO.MultiGetJob.html create mode 100644 doc/classref/kio/KIO.NetAccess.html create mode 100644 doc/classref/kio/KIO.NetRC.AutoLogin.html create mode 100644 doc/classref/kio/KIO.NetRC.html create mode 100644 doc/classref/kio/KIO.PasswordDialog.html create mode 100644 doc/classref/kio/KIO.PreviewJob.html create mode 100644 doc/classref/kio/KIO.ProgressBase.html create mode 100644 doc/classref/kio/KIO.Scheduler.html create mode 100644 doc/classref/kio/KIO.SessionData.html create mode 100644 doc/classref/kio/KIO.SimpleJob.html create mode 100644 doc/classref/kio/KIO.Slave.html create mode 100644 doc/classref/kio/KIO.SlaveBase.html create mode 100644 doc/classref/kio/KIO.SlaveConfig.html create mode 100644 doc/classref/kio/KIO.SlaveInterface.html create mode 100644 doc/classref/kio/KIO.StatJob.html create mode 100644 doc/classref/kio/KIO.StatusbarProgress.html create mode 100644 doc/classref/kio/KIO.StoredTransferJob.html create mode 100644 doc/classref/kio/KIO.TCPSlaveBase.html create mode 100644 doc/classref/kio/KIO.Task.html create mode 100644 doc/classref/kio/KIO.TransferJob.html create mode 100644 doc/classref/kio/KIO.UDSAtom.html create mode 100644 doc/classref/kio/KIO.html create mode 100644 doc/classref/kio/KImageIO.html create mode 100644 doc/classref/kio/KMimeMagic.html create mode 100644 doc/classref/kio/KMimeMagicResult.html create mode 100644 doc/classref/kio/KMimeType.Format.html create mode 100644 doc/classref/kio/KMimeType.html create mode 100644 doc/classref/kio/KMimeTypeChooser.html create mode 100644 doc/classref/kio/KMimeTypeChooserDialog.html create mode 100644 doc/classref/kio/KNFSShare.html create mode 100644 doc/classref/kio/KOCRDialog.html create mode 100644 doc/classref/kio/KOCRDialogFactory.html create mode 100644 doc/classref/kio/KOpenWithHandler.html create mode 100644 doc/classref/kio/KProcessRunner.html create mode 100644 doc/classref/kio/KProtocolInfo.ExtraField.html create mode 100644 doc/classref/kio/KProtocolInfo.html create mode 100644 doc/classref/kio/KProtocolManager.html create mode 100644 doc/classref/kio/KRemoteEncoding.html create mode 100644 doc/classref/kio/KRun.html create mode 100644 doc/classref/kio/KSambaShare.html create mode 100644 doc/classref/kio/KScanDialog.html create mode 100644 doc/classref/kio/KScanDialogFactory.html create mode 100644 doc/classref/kio/KService.html create mode 100644 doc/classref/kio/KServiceGroup.html create mode 100644 doc/classref/kio/KServiceOffer.html create mode 100644 doc/classref/kio/KServiceSeparator.html create mode 100644 doc/classref/kio/KServiceType.html create mode 100644 doc/classref/kio/KServiceTypeProfile.html create mode 100644 doc/classref/kio/KShellCompletion.html create mode 100644 doc/classref/kio/KShred.html create mode 100644 doc/classref/kio/KSimpleFileFilter.html create mode 100644 doc/classref/kio/KSycoca.html create mode 100644 doc/classref/kio/KSycocaDict.html create mode 100644 doc/classref/kio/KSycocaEntry.html create mode 100644 doc/classref/kio/KSycocaFactory.html create mode 100644 doc/classref/kio/KTar.html create mode 100644 doc/classref/kio/KTrader.html create mode 100644 doc/classref/kio/KURIFilter.html create mode 100644 doc/classref/kio/KURIFilterData.html create mode 100644 doc/classref/kio/KURIFilterPlugin.html create mode 100644 doc/classref/kio/KURLCompletion.html create mode 100644 doc/classref/kio/KURLPixmapProvider.html create mode 100644 doc/classref/kio/KZip.html create mode 100644 doc/classref/kio/KZipFileEntry.html create mode 100644 doc/classref/kio/Observer.html create mode 100644 doc/classref/kio/RenameDlgPlugin.html create mode 100644 doc/classref/kio/ThumbCreator.html create mode 100644 doc/classref/kio/index.html create mode 100644 doc/classref/kio/kio-globals.html create mode 100644 doc/classref/kmdi/KMdi.html create mode 100644 doc/classref/kmdi/KMdiChildArea.html create mode 100644 doc/classref/kmdi/KMdiChildFrm.html create mode 100644 doc/classref/kmdi/KMdiChildFrmCaption.html create mode 100644 doc/classref/kmdi/KMdiChildFrmDragBeginEvent.html create mode 100644 doc/classref/kmdi/KMdiChildFrmDragEndEvent.html create mode 100644 doc/classref/kmdi/KMdiChildFrmMoveEvent.html create mode 100644 doc/classref/kmdi/KMdiChildFrmResizeBeginEvent.html create mode 100644 doc/classref/kmdi/KMdiChildFrmResizeEndEvent.html create mode 100644 doc/classref/kmdi/KMdiChildView.html create mode 100644 doc/classref/kmdi/KMdiMainFrm.html create mode 100644 doc/classref/kmdi/KMdiTaskBar.html create mode 100644 doc/classref/kmdi/KMdiTaskBarButton.html create mode 100644 doc/classref/kmdi/KMdiToolViewAccessor.html create mode 100644 doc/classref/kmdi/KMdiViewCloseEvent.html create mode 100644 doc/classref/kmdi/KMdiWin32IconButton.html create mode 100644 doc/classref/kmdi/index.html create mode 100644 doc/classref/kmdi/kmdi-globals.html create mode 100644 doc/classref/kparts/ExtTerminalInterface.html create mode 100644 doc/classref/kparts/KParts.BrowserExtension.html create mode 100644 doc/classref/kparts/KParts.BrowserHostExtension.html create mode 100644 doc/classref/kparts/KParts.BrowserInterface.html create mode 100644 doc/classref/kparts/KParts.BrowserRun.html create mode 100644 doc/classref/kparts/KParts.DockMainWindow.html create mode 100644 doc/classref/kparts/KParts.Event.html create mode 100644 doc/classref/kparts/KParts.Factory.html create mode 100644 doc/classref/kparts/KParts.GUIActivateEvent.html create mode 100644 doc/classref/kparts/KParts.HistoryProvider.html create mode 100644 doc/classref/kparts/KParts.LiveConnectExtension.html create mode 100644 doc/classref/kparts/KParts.MainWindow.html create mode 100644 doc/classref/kparts/KParts.OpenURLEvent.html create mode 100644 doc/classref/kparts/KParts.Part.html create mode 100644 doc/classref/kparts/KParts.PartActivateEvent.html create mode 100644 doc/classref/kparts/KParts.PartBase.html create mode 100644 doc/classref/kparts/KParts.PartManager.html create mode 100644 doc/classref/kparts/KParts.PartSelectEvent.html create mode 100644 doc/classref/kparts/KParts.Plugin.PluginInfo.html create mode 100644 doc/classref/kparts/KParts.Plugin.html create mode 100644 doc/classref/kparts/KParts.ReadOnlyPart.html create mode 100644 doc/classref/kparts/KParts.ReadWritePart.html create mode 100644 doc/classref/kparts/KParts.StatusBarExtension.html create mode 100644 doc/classref/kparts/KParts.URLArgs.html create mode 100644 doc/classref/kparts/KParts.WindowArgs.html create mode 100644 doc/classref/kparts/KParts.html create mode 100644 doc/classref/kparts/TerminalInterface.html create mode 100644 doc/classref/kparts/index.html create mode 100644 doc/classref/kparts/konsoleBrowserExtension.html create mode 100644 doc/classref/kparts/konsoleFactory.html create mode 100644 doc/classref/kparts/konsolePart.html create mode 100644 doc/classref/kparts/kparts-globals.html create mode 100644 doc/classref/kresources/KRES.ConfigDialog.html create mode 100644 doc/classref/kresources/KRES.ConfigWidget.html create mode 100644 doc/classref/kresources/KRES.Factory.html create mode 100644 doc/classref/kresources/KRES.PluginFactoryBase.html create mode 100644 doc/classref/kresources/KRES.Resource.html create mode 100644 doc/classref/kresources/KRES.ResourcePageInfo.html create mode 100644 doc/classref/kresources/KRES.SelectDialog.html create mode 100644 doc/classref/kresources/KRES.html create mode 100644 doc/classref/kresources/index.html create mode 100644 doc/classref/kspell/KDictSpellingHighlighter.html create mode 100644 doc/classref/kspell/KSpell.html create mode 100644 doc/classref/kspell/KSpellConfig.html create mode 100644 doc/classref/kspell/KSpellDlg.html create mode 100644 doc/classref/kspell/KSpellingHighlighter.html create mode 100644 doc/classref/kspell/KSyntaxHighlighter.html create mode 100644 doc/classref/kspell/index.html create mode 100644 doc/classref/kspell/kspell-globals.html create mode 100644 doc/classref/kutils/KCModuleContainer.html create mode 100644 doc/classref/kutils/KCModuleInfo.html create mode 100644 doc/classref/kutils/KCModuleLoader.html create mode 100644 doc/classref/kutils/KCModuleProxy.html create mode 100644 doc/classref/kutils/KCMultiDialog.html create mode 100644 doc/classref/kutils/KFind.html create mode 100644 doc/classref/kutils/KFindDialog.html create mode 100644 doc/classref/kutils/KMultiTabBar.html create mode 100644 doc/classref/kutils/KMultiTabBarButton.html create mode 100644 doc/classref/kutils/KMultiTabBarTab.html create mode 100644 doc/classref/kutils/KPluginInfo.html create mode 100644 doc/classref/kutils/KPluginSelector.html create mode 100644 doc/classref/kutils/KReplace.html create mode 100644 doc/classref/kutils/KReplaceDialog.html create mode 100644 doc/classref/kutils/index.html create mode 100644 doc/dcopext.html create mode 100644 doc/examples.html create mode 100644 doc/images/kdcop1.png create mode 100644 doc/images/kdcop2.png create mode 100644 doc/images/khtmlpart.png create mode 100644 doc/images/mimetype.png create mode 100644 doc/images/uisampler.png create mode 100644 doc/index.html create mode 100644 doc/index1.html create mode 100644 doc/install.html create mode 100644 doc/kde.css create mode 100644 doc/libpythonize.html create mode 100644 doc/limits.html create mode 100644 doc/signal.html create mode 100644 doc/static.html create mode 100644 doc/switches.html create mode 100644 doc/trouble.html create mode 100644 examples/README create mode 100644 examples/aboutkde.png create mode 100644 examples/astron.png create mode 100644 examples/example_dcopexport.py create mode 100644 examples/example_dcopext.py create mode 100644 examples/kdeform1.ui create mode 100644 examples/kdeform1.ui.h create mode 100644 examples/kpartgui.dtd create mode 100644 examples/kurldemo.py create mode 100644 examples/menudemo.py create mode 100644 examples/mimetype.py create mode 100644 examples/pyKHTMLPart.py create mode 100644 examples/pykde-sampler/HOWTO.samples create mode 100644 examples/pykde-sampler/TODO create mode 100644 examples/pykde-sampler/__init__.py create mode 100644 examples/pykde-sampler/about.py create mode 100644 examples/pykde-sampler/aboutkde.png create mode 100644 examples/pykde-sampler/basic_widgets/__init__.py create mode 100644 examples/pykde-sampler/basic_widgets/datepicker.py create mode 100644 examples/pykde-sampler/basic_widgets/historycombo.py create mode 100644 examples/pykde-sampler/contributors.txt create mode 100644 examples/pykde-sampler/dialogs/__init__.py create mode 100644 examples/pykde-sampler/dialogs/about/__init__.py create mode 100644 examples/pykde-sampler/dialogs/about/aboutapp.py create mode 100644 examples/pykde-sampler/dialogs/about/aboutkde.py create mode 100644 examples/pykde-sampler/dialogs/bugreport.py create mode 100644 examples/pykde-sampler/dialogs/color.py create mode 100644 examples/pykde-sampler/dialogs/config.py create mode 100644 examples/pykde-sampler/dialogs/edfind.py create mode 100644 examples/pykde-sampler/dialogs/edreplace.py create mode 100644 examples/pykde-sampler/dialogs/font.py create mode 100644 examples/pykde-sampler/dialogs/input.py create mode 100644 examples/pykde-sampler/dialogs/key.py create mode 100644 examples/pykde-sampler/dialogs/msgbox.py create mode 100644 examples/pykde-sampler/dialogs/passwd.py create mode 100644 examples/pykde-sampler/dialogs/progress.py create mode 100644 examples/pykde-sampler/dialogs/tip.py create mode 100644 examples/pykde-sampler/dialogs/tips create mode 100644 examples/pykde-sampler/gen_todo.py create mode 100644 examples/pykde-sampler/icon_handling/__init__.py create mode 100644 examples/pykde-sampler/icon_handling/misc.py create mode 100644 examples/pykde-sampler/icon_handling/sizes.py create mode 100644 examples/pykde-sampler/lib.py create mode 100644 examples/pykde-sampler/misc/__init__.py create mode 100644 examples/pykde-sampler/misc/gradientselect.py create mode 100644 examples/pykde-sampler/misc/passivepop.py create mode 100644 examples/pykde-sampler/misc/window_info.py create mode 100644 examples/pykde-sampler/qt_widgets/CONTRIB create mode 100644 examples/pykde-sampler/qt_widgets/__init__.py create mode 100644 examples/pykde-sampler/qt_widgets/table.py create mode 100755 examples/pykde-sampler/runner.py create mode 100755 examples/pykde-sampler/sampler.py create mode 100644 examples/pykde-sampler/sampler.rc create mode 100644 examples/pykde-sampler/wizards/__init__.py create mode 100644 examples/pykde-sampler/wizards/wiz.py create mode 100644 examples/pykde-sampler/xwin/__init__.py create mode 100644 examples/pytestimage.png create mode 100644 examples/qxembed_example.png create mode 100644 examples/qxembedexample.py create mode 100644 examples/qxembedexample.ui create mode 100644 examples/systray.py create mode 100644 examples/uikmdi.py create mode 100644 examples/uikmdi.rc create mode 100644 examples/uimodules/uidialogs.py create mode 100644 examples/uimodules/uimenus.py create mode 100644 examples/uimodules/uimisc.py create mode 100644 examples/uimodules/uiwidgets.py create mode 100644 examples/uimodules/uixml.py create mode 100644 examples/uiqxembed.py create mode 100644 examples/uisampler.py create mode 100644 examples/xmlmenudemo.py create mode 100644 examples/xmlmenudemoui.rc create mode 100644 extensions/dcopexport.py create mode 100644 extensions/dcopext.py create mode 100644 extra/kde300/kaccelaction.h create mode 100644 extra/kde300/kaccelbase.h create mode 100644 extra/kde300/kicontheme.h create mode 100644 extra/kde300/kkeyserver_x11.h create mode 100644 extra/kde300/konsole_part.h create mode 100644 extra/kde300/krecentdirs.h create mode 100644 extra/kde300/ksycocafactory.h create mode 100644 extra/kde300/ktoolbarbutton.h create mode 100644 extra/kde300/kurifilter.h create mode 100644 extra/kde301/kaccelaction.h create mode 100644 extra/kde301/kaccelbase.h create mode 100644 extra/kde301/kicontheme.h create mode 100644 extra/kde301/kkeyserver_x11.h create mode 100644 extra/kde301/konsole_part.h create mode 100644 extra/kde301/krecentdirs.h create mode 100644 extra/kde301/ksycocafactory.h create mode 100644 extra/kde301/ktoolbarbutton.h create mode 100644 extra/kde301/kurifilter.h create mode 100644 extra/kde303/kaccelaction.h create mode 100644 extra/kde303/kaccelbase.h create mode 100644 extra/kde303/kicontheme.h create mode 100644 extra/kde303/kkeyserver_x11.h create mode 100644 extra/kde303/konsole_part.h create mode 100644 extra/kde303/krecentdirs.h create mode 100644 extra/kde303/ksycocafactory.h create mode 100644 extra/kde303/ktoolbarbutton.h create mode 100644 extra/kde303/kurifilter.h create mode 100644 extra/kde310/kaccelaction.h create mode 100644 extra/kde310/kaccelbase.h create mode 100644 extra/kde310/kicontheme.h create mode 100644 extra/kde310/kkeyserver_x11.h create mode 100644 extra/kde310/konsole_part.h create mode 100644 extra/kde310/kpanelmenu.h create mode 100644 extra/kde310/krecentdirs.h create mode 100644 extra/kde310/ksycocafactory.h create mode 100644 extra/kde310/ktoolbarbutton.h create mode 100644 extra/kde310/kurifilter.h create mode 100644 extra/kde311/kaccelaction.h create mode 100644 extra/kde311/kaccelbase.h create mode 100644 extra/kde311/kicontheme.h create mode 100644 extra/kde311/kkeyserver_x11.h create mode 100644 extra/kde311/konsole_part.h create mode 100644 extra/kde311/kpanelmenu.h create mode 100644 extra/kde311/krecentdirs.h create mode 100644 extra/kde311/ksycocafactory.h create mode 100644 extra/kde311/ktoolbarbutton.h create mode 100644 extra/kde311/kurifilter.h create mode 100644 extra/kde312/kaccelaction.h create mode 100644 extra/kde312/kaccelbase.h create mode 100644 extra/kde312/kicontheme.h create mode 100644 extra/kde312/kkeyserver_x11.h create mode 100644 extra/kde312/konsole_part.h create mode 100644 extra/kde312/kpanelmenu.h create mode 100644 extra/kde312/krecentdirs.h create mode 100644 extra/kde312/ksycocafactory.h create mode 100644 extra/kde312/ktoolbarbutton.h create mode 100644 extra/kde312/kurifilter.h create mode 100644 extra/kde313/kaccelaction.h create mode 100644 extra/kde313/kaccelbase.h create mode 100644 extra/kde313/kicontheme.h create mode 100644 extra/kde313/kkeyserver_x11.h create mode 100644 extra/kde313/konsole_part.h create mode 100644 extra/kde313/kpanelmenu.h create mode 100644 extra/kde313/krecentdirs.h create mode 100644 extra/kde313/ksycocafactory.h create mode 100644 extra/kde313/ktoolbarbutton.h create mode 100644 extra/kde313/kurifilter.h create mode 100644 extra/kde314/kaccelaction.h create mode 100644 extra/kde314/kaccelbase.h create mode 100644 extra/kde314/kicontheme.h create mode 100644 extra/kde314/kkeyserver_x11.h create mode 100644 extra/kde314/konsole_part.h create mode 100644 extra/kde314/kpanelmenu.h create mode 100644 extra/kde314/krecentdirs.h create mode 100644 extra/kde314/ksycocafactory.h create mode 100644 extra/kde314/ktoolbarbutton.h create mode 100644 extra/kde314/kurifilter.h create mode 100644 extra/kde315/kaccelaction.h create mode 100644 extra/kde315/kaccelbase.h create mode 100644 extra/kde315/kicontheme.h create mode 100644 extra/kde315/kkeyserver_x11.h create mode 100644 extra/kde315/konsole_part.h create mode 100644 extra/kde315/kpanelmenu.h create mode 100644 extra/kde315/krecentdirs.h create mode 100644 extra/kde315/ksycocafactory.h create mode 100644 extra/kde315/ktoolbarbutton.h create mode 100644 extra/kde315/kurifilter.h create mode 100644 extra/kde320/configwidget.h create mode 100644 extra/kde320/kaccelaction.h create mode 100644 extra/kde320/kaccelbase.h create mode 100644 extra/kde320/kicontheme.h create mode 100644 extra/kde320/kkeyserver_x11.h create mode 100644 extra/kde320/konsole_part.h create mode 100644 extra/kde320/kpanelmenu.h create mode 100644 extra/kde320/krecentdirs.h create mode 100644 extra/kde320/ksharedptr.h create mode 100644 extra/kde320/ksycocafactory.h create mode 100644 extra/kde320/ktoolbarbutton.h create mode 100644 extra/kde320/kurifilter.h create mode 100644 extra/kde320/selectdialog.h create mode 100644 extra/kde321/configwidget.h create mode 100644 extra/kde321/kaccelaction.h create mode 100644 extra/kde321/kaccelbase.h create mode 100644 extra/kde321/kicontheme.h create mode 100644 extra/kde321/kkeyserver_x11.h create mode 100644 extra/kde321/konsole_part.h create mode 100644 extra/kde321/kpanelmenu.h create mode 100644 extra/kde321/krecentdirs.h create mode 100644 extra/kde321/ksharedptr.h create mode 100644 extra/kde321/ksycocafactory.h create mode 100644 extra/kde321/ktoolbarbutton.h create mode 100644 extra/kde321/kurifilter.h create mode 100644 extra/kde321/selectdialog.h create mode 100644 extra/kde322/configwidget.h create mode 100644 extra/kde322/kaccelaction.h create mode 100644 extra/kde322/kaccelbase.h create mode 100644 extra/kde322/kicontheme.h create mode 100644 extra/kde322/kkeyserver_x11.h create mode 100644 extra/kde322/konsole_part.h create mode 100644 extra/kde322/kpanelmenu.h create mode 100644 extra/kde322/krecentdirs.h create mode 100644 extra/kde322/ksharedptr.h create mode 100644 extra/kde322/ksycocafactory.h create mode 100644 extra/kde322/ktoolbarbutton.h create mode 100644 extra/kde322/kurifilter.h create mode 100644 extra/kde322/selectdialog.h create mode 100644 extra/kde323/configwidget.h create mode 100644 extra/kde323/kaccelaction.h create mode 100644 extra/kde323/kaccelbase.h create mode 100644 extra/kde323/kicontheme.h create mode 100644 extra/kde323/kkeyserver_x11.h create mode 100644 extra/kde323/konsole_part.h create mode 100644 extra/kde323/kpanelmenu.h create mode 100644 extra/kde323/krecentdirs.h create mode 100644 extra/kde323/ksharedptr.h create mode 100644 extra/kde323/ksycocafactory.h create mode 100644 extra/kde323/ktoolbarbutton.h create mode 100644 extra/kde323/kurifilter.h create mode 100644 extra/kde323/selectdialog.h create mode 100644 extra/kde330/configwidget.h create mode 100644 extra/kde330/kaccelaction.h create mode 100644 extra/kde330/kaccelbase.h create mode 100644 extra/kde330/kicontheme.h create mode 100644 extra/kde330/kkeyserver_x11.h create mode 100644 extra/kde330/konsole_part.h create mode 100644 extra/kde330/kpanelmenu.h create mode 100644 extra/kde330/krecentdirs.h create mode 100644 extra/kde330/ksharedptr.h create mode 100644 extra/kde330/ksycocafactory.h create mode 100644 extra/kde330/ktoolbarbutton.h create mode 100644 extra/kde330/kurifilter.h create mode 100644 extra/kde330/selectdialog.h create mode 100644 extra/kde331/configwidget.h create mode 100644 extra/kde331/kaccelaction.h create mode 100644 extra/kde331/kaccelbase.h create mode 100644 extra/kde331/kicontheme.h create mode 100644 extra/kde331/kkeyserver_x11.h create mode 100644 extra/kde331/konsole_part.h create mode 100644 extra/kde331/kpanelmenu.h create mode 100644 extra/kde331/krecentdirs.h create mode 100644 extra/kde331/ksharedptr.h create mode 100644 extra/kde331/ksycocafactory.h create mode 100644 extra/kde331/ktoolbarbutton.h create mode 100644 extra/kde331/kurifilter.h create mode 100644 extra/kde331/selectdialog.h create mode 100644 extra/kde332/configwidget.h create mode 100644 extra/kde332/kaccelaction.h create mode 100644 extra/kde332/kaccelbase.h create mode 100644 extra/kde332/kicontheme.h create mode 100644 extra/kde332/kkeyserver_x11.h create mode 100644 extra/kde332/konsole_part.h create mode 100644 extra/kde332/kpanelmenu.h create mode 100644 extra/kde332/krecentdirs.h create mode 100644 extra/kde332/ksharedptr.h create mode 100644 extra/kde332/ksycocafactory.h create mode 100644 extra/kde332/ktoolbarbutton.h create mode 100644 extra/kde332/kurifilter.h create mode 100644 extra/kde332/selectdialog.h create mode 100644 extra/kde340/configwidget.h create mode 100644 extra/kde340/kaccelaction.h create mode 100644 extra/kde340/kaccelbase.h create mode 100644 extra/kde340/kicontheme.h create mode 100644 extra/kde340/kkeyserver.h create mode 100644 extra/kde340/kkeyserver_x11.h create mode 100644 extra/kde340/konsole_part.h create mode 100644 extra/kde340/kpanelmenu.h create mode 100644 extra/kde340/krecentdirs.h create mode 100644 extra/kde340/ksharedptr.h create mode 100644 extra/kde340/ksycocafactory.h create mode 100644 extra/kde340/ktoolbarbutton.h create mode 100644 extra/kde340/kurifilter.h create mode 100644 extra/kde340/selectdialog.h create mode 100644 extra/kde341/configwidget.h create mode 100644 extra/kde341/kaccelaction.h create mode 100644 extra/kde341/kaccelbase.h create mode 100644 extra/kde341/kicontheme.h create mode 100644 extra/kde341/kkeyserver.h create mode 100644 extra/kde341/kkeyserver_x11.h create mode 100644 extra/kde341/konsole_part.h create mode 100644 extra/kde341/kpanelmenu.h create mode 100644 extra/kde341/krecentdirs.h create mode 100644 extra/kde341/ksharedptr.h create mode 100644 extra/kde341/ksycocafactory.h create mode 100644 extra/kde341/ktoolbarbutton.h create mode 100644 extra/kde341/kurifilter.h create mode 100644 extra/kde341/selectdialog.h create mode 100644 extra/kde342/configwidget.h create mode 100644 extra/kde342/kaccelaction.h create mode 100644 extra/kde342/kaccelbase.h create mode 100644 extra/kde342/kicontheme.h create mode 100644 extra/kde342/kkeyserver.h create mode 100644 extra/kde342/kkeyserver_x11.h create mode 100644 extra/kde342/konsole_part.h create mode 100644 extra/kde342/kpanelmenu.h create mode 100644 extra/kde342/krecentdirs.h create mode 100644 extra/kde342/ksharedptr.h create mode 100644 extra/kde342/ksycocafactory.h create mode 100644 extra/kde342/ktoolbarbutton.h create mode 100644 extra/kde342/kurifilter.h create mode 100644 extra/kde342/selectdialog.h create mode 100644 extra/kde343/configwidget.h create mode 100644 extra/kde343/kaccelaction.h create mode 100644 extra/kde343/kaccelbase.h create mode 100644 extra/kde343/kicontheme.h create mode 100644 extra/kde343/kkeyserver.h create mode 100644 extra/kde343/kkeyserver_x11.h create mode 100644 extra/kde343/konsole_part.h create mode 100644 extra/kde343/kpanelmenu.h create mode 100644 extra/kde343/krecentdirs.h create mode 100644 extra/kde343/ksharedptr.h create mode 100644 extra/kde343/ksycocafactory.h create mode 100644 extra/kde343/ktoolbarbutton.h create mode 100644 extra/kde343/kurifilter.h create mode 100644 extra/kde343/selectdialog.h create mode 100644 extra/kde350/configwidget.h create mode 100644 extra/kde350/kaccelaction.h create mode 100644 extra/kde350/kaccelbase.h create mode 100644 extra/kde350/kicontheme.h create mode 100644 extra/kde350/kkeyserver.h create mode 100644 extra/kde350/kkeyserver_x11.h create mode 100644 extra/kde350/konsole_part.h create mode 100644 extra/kde350/kpanelmenu.h create mode 100644 extra/kde350/krecentdirs.h create mode 100644 extra/kde350/ksharedptr.h create mode 100644 extra/kde350/ksycocafactory.h create mode 100644 extra/kde350/ktoolbarbutton.h create mode 100644 extra/kde350/kurifilter.h create mode 100644 extra/kde350/selectdialog.h create mode 100644 extra/kde351/kaccelaction.h create mode 100644 extra/kde351/kaccelbase.h create mode 100644 extra/kde351/kicontheme.h create mode 100644 extra/kde351/kkeyserver.h create mode 100644 extra/kde351/kkeyserver_x11.h create mode 100644 extra/kde351/konsole_part.h create mode 100644 extra/kde351/kpanelmenu.h create mode 100644 extra/kde351/ksharedptr.h create mode 100644 extra/kde351/ksycocafactory.h create mode 100644 extra/kde351/ktoolbarbutton.h create mode 100644 extra/kde351/kurifilter.h create mode 100644 extra/kde352/kaccelaction.h create mode 100644 extra/kde352/kaccelbase.h create mode 100644 extra/kde352/kicontheme.h create mode 100644 extra/kde352/kkeyserver.h create mode 100644 extra/kde352/kkeyserver_x11.h create mode 100644 extra/kde352/konsole_part.h create mode 100644 extra/kde352/kpanelmenu.h create mode 100644 extra/kde352/ksharedptr.h create mode 100644 extra/kde352/ksycocafactory.h create mode 100644 extra/kde352/ktoolbarbutton.h create mode 100644 extra/kde352/kurifilter.h create mode 100644 extra/kde353/kaccelaction.h create mode 100644 extra/kde353/kaccelbase.h create mode 100644 extra/kde353/kicontheme.h create mode 100644 extra/kde353/kkeyserver.h create mode 100644 extra/kde353/kkeyserver_x11.h create mode 100644 extra/kde353/konsole_part.h create mode 100644 extra/kde353/kpanelmenu.h create mode 100644 extra/kde353/ksharedptr.h create mode 100644 extra/kde353/ksycocafactory.h create mode 100644 extra/kde353/ktoolbarbutton.h create mode 100644 extra/kde353/kurifilter.h create mode 100644 importTest.py create mode 100755 postproc create mode 100644 pykde350.prj create mode 100644 pykde351.prj create mode 100644 pykde352.prj create mode 100644 pykde353.prj create mode 100644 pykdeconfig.py create mode 100644 pykdeconfig.py.in create mode 100644 sip/dcop/dcopclient.sip create mode 100644 sip/dcop/dcopmod.sip.in create mode 100644 sip/dcop/dcopobject.sip create mode 100644 sip/dcop/dcopref.sip create mode 100644 sip/dcop/dcopstub.sip create mode 100644 sip/dcop/typedefs.sip create mode 100644 sip/glossary.html create mode 100644 sip/kabc/address.sip create mode 100644 sip/kabc/addressbook.sip create mode 100644 sip/kabc/addressee.sip create mode 100644 sip/kabc/addresseedialog.sip create mode 100644 sip/kabc/addresseelist.sip create mode 100644 sip/kabc/addresslineedit.sip create mode 100644 sip/kabc/agent.sip create mode 100644 sip/kabc/distributionlist.sip create mode 100644 sip/kabc/distributionlistdialog.sip create mode 100644 sip/kabc/distributionlisteditor.sip create mode 100644 sip/kabc/errorhandler.sip create mode 100644 sip/kabc/field.sip create mode 100644 sip/kabc/format.sip create mode 100644 sip/kabc/formatfactory.sip create mode 100644 sip/kabc/formatplugin.sip create mode 100644 sip/kabc/geo.sip create mode 100644 sip/kabc/kabc-kde310.diff create mode 100644 sip/kabc/kabc-kde311.diff create mode 100644 sip/kabc/kabc-kde312.diff create mode 100644 sip/kabc/kabc-kde313.diff create mode 100644 sip/kabc/kabc-kde314.diff create mode 100644 sip/kabc/kabc-kde320.diff create mode 100644 sip/kabc/kabc-kde322.diff create mode 100644 sip/kabc/kabc-kde323.diff create mode 100644 sip/kabc/kabc-kde330.diff create mode 100644 sip/kabc/kabc-kde331.diff create mode 100644 sip/kabc/kabc-kde332.diff create mode 100644 sip/kabc/kabc-kde340.diff create mode 100644 sip/kabc/kabc-kde341.diff create mode 100644 sip/kabc/kabc-kde342.diff create mode 100644 sip/kabc/kabc-kde343.diff create mode 100644 sip/kabc/kabc-kde350.diff create mode 100644 sip/kabc/kabc-kde351.diff create mode 100644 sip/kabc/kabc-kde352.diff create mode 100644 sip/kabc/kabc-kde353.diff create mode 100644 sip/kabc/kabcmod.sip.in create mode 100644 sip/kabc/key.sip create mode 100644 sip/kabc/ldapclient.sip create mode 100644 sip/kabc/ldapconfigwidget.sip create mode 100644 sip/kabc/ldapurl.sip create mode 100644 sip/kabc/ldif.sip create mode 100644 sip/kabc/ldifconverter.sip create mode 100644 sip/kabc/lock.sip create mode 100644 sip/kabc/locknull.sip create mode 100644 sip/kabc/phonenumber.sip create mode 100644 sip/kabc/picture.sip create mode 100644 sip/kabc/plugin.sip create mode 100644 sip/kabc/resource.sip create mode 100644 sip/kabc/resourcefile.sip create mode 100644 sip/kabc/resourceselectdialog.sip create mode 100644 sip/kabc/secrecy.sip create mode 100644 sip/kabc/sortmode.sip create mode 100644 sip/kabc/sound.sip create mode 100644 sip/kabc/stdaddressbook.sip create mode 100644 sip/kabc/timezone.sip create mode 100644 sip/kabc/vcardconverter.sip create mode 100644 sip/kabc/vcardformat.sip create mode 100644 sip/kabc/vcardformatplugin.sip create mode 100644 sip/kdecore/bytearray.sip create mode 100644 sip/kdecore/fixx11h.sip create mode 100644 sip/kdecore/kaboutdata.sip create mode 100644 sip/kdecore/kaccel.sip create mode 100644 sip/kdecore/kaccelaction.sip create mode 100644 sip/kdecore/kaccelbase.sip create mode 100644 sip/kdecore/kallocator.sip create mode 100644 sip/kdecore/kapplication.sip create mode 100644 sip/kdecore/kasyncio.sip create mode 100644 sip/kdecore/kaudioplayer.sip create mode 100644 sip/kdecore/kbufferedio.sip create mode 100644 sip/kdecore/kcalendarsystem.sip create mode 100644 sip/kdecore/kcalendarsystemfactory.sip create mode 100644 sip/kdecore/kcatalogue.sip create mode 100644 sip/kdecore/kcharsets.sip create mode 100644 sip/kdecore/kclipboard.sip create mode 100644 sip/kdecore/kcmdlineargs.sip create mode 100644 sip/kdecore/kcompletion.sip create mode 100644 sip/kdecore/kconfig.sip create mode 100644 sip/kdecore/kconfigbackend.sip create mode 100644 sip/kdecore/kconfigbase.sip create mode 100644 sip/kdecore/kconfigdata.sip create mode 100644 sip/kdecore/kconfigdialogmanager.sip create mode 100644 sip/kdecore/kconfigskeleton.sip create mode 100644 sip/kdecore/kcrash.sip create mode 100644 sip/kdecore/kdcoppropertyproxy.sip create mode 100644 sip/kdecore/kdebug.sip create mode 100644 sip/kdecore/kdecore-kde310.diff create mode 100644 sip/kdecore/kdecore-kde311.diff create mode 100644 sip/kdecore/kdecore-kde312.diff create mode 100644 sip/kdecore/kdecore-kde313.diff create mode 100644 sip/kdecore/kdecore-kde314.diff create mode 100644 sip/kdecore/kdecore-kde315.diff create mode 100644 sip/kdecore/kdecore-kde320.diff create mode 100644 sip/kdecore/kdecore-kde321.diff create mode 100644 sip/kdecore/kdecore-kde322.diff create mode 100644 sip/kdecore/kdecore-kde323.diff create mode 100644 sip/kdecore/kdecore-kde330.diff create mode 100644 sip/kdecore/kdecore-kde331.diff create mode 100644 sip/kdecore/kdecore-kde332.diff create mode 100644 sip/kdecore/kdecore-kde340.diff create mode 100644 sip/kdecore/kdecore-kde341.diff create mode 100644 sip/kdecore/kdecore-kde342.diff create mode 100644 sip/kdecore/kdecore-kde343.diff create mode 100644 sip/kdecore/kdecore-kde350.diff create mode 100644 sip/kdecore/kdecore-kde351.diff create mode 100644 sip/kdecore/kdecore-kde352.diff create mode 100644 sip/kdecore/kdecore-kde353.diff create mode 100644 sip/kdecore/kdecoremod.sip.in create mode 100644 sip/kdecore/kdesktopfile.sip create mode 100644 sip/kdecore/kdesktopwidget.sip create mode 100644 sip/kdecore/kdestyle.sip create mode 100644 sip/kdecore/kdeversion.sip create mode 100644 sip/kdecore/kglobal.sip create mode 100644 sip/kdecore/kglobalaccel.sip create mode 100644 sip/kdecore/kglobalsettings.sip create mode 100644 sip/kdecore/kiconeffect.sip create mode 100644 sip/kdecore/kiconloader.sip create mode 100644 sip/kdecore/kicontheme.sip create mode 100644 sip/kdecore/kidna.sip create mode 100644 sip/kdecore/kinstance.sip create mode 100644 sip/kdecore/kipc.sip create mode 100644 sip/kdecore/kkeynative.sip create mode 100644 sip/kdecore/kkeyserver_x11.sip create mode 100644 sip/kdecore/klibloader.sip create mode 100644 sip/kdecore/klocale.sip create mode 100644 sip/kdecore/klockfile.sip create mode 100644 sip/kdecore/kmacroexpander.sip create mode 100644 sip/kdecore/kmanagerselection.sip create mode 100644 sip/kdecore/kmdcodec.sip create mode 100644 sip/kdecore/kmimesourcefactory.sip create mode 100644 sip/kdecore/kmountpoint.sip create mode 100644 sip/kdecore/kmultipledrag.sip create mode 100644 sip/kdecore/knotifyclient.sip create mode 100644 sip/kdecore/kpalette.sip create mode 100644 sip/kdecore/kpixmapprovider.sip create mode 100644 sip/kdecore/kprocctrl.sip create mode 100644 sip/kdecore/kprocess.sip create mode 100644 sip/kdecore/kprocio.sip create mode 100644 sip/kdecore/kpty.sip create mode 100644 sip/kdecore/krandomsequence.sip create mode 100644 sip/kdecore/kregexp.sip create mode 100644 sip/kdecore/krfcdate.sip create mode 100644 sip/kdecore/krootprop.sip create mode 100644 sip/kdecore/ksavefile.sip create mode 100644 sip/kdecore/ksharedptr.sip create mode 100644 sip/kdecore/kshell.sip create mode 100644 sip/kdecore/kshortcut.sip create mode 100644 sip/kdecore/kshortcutlist.sip create mode 100644 sip/kdecore/ksimpleconfig.sip create mode 100644 sip/kdecore/ksock.sip create mode 100644 sip/kdecore/kstartupinfo.sip create mode 100644 sip/kdecore/kstaticdeleter.sip create mode 100644 sip/kdecore/kstdaccel.sip create mode 100644 sip/kdecore/kstddirs.sip create mode 100644 sip/kdecore/kstringhandler.sip create mode 100644 sip/kdecore/ktempdir.sip create mode 100644 sip/kdecore/ktempfile.sip create mode 100644 sip/kdecore/ktimezones.sip create mode 100644 sip/kdecore/kuniqueapplication.sip create mode 100644 sip/kdecore/kurl.sip create mode 100644 sip/kdecore/kurldrag.sip create mode 100644 sip/kdecore/kuser.sip create mode 100644 sip/kdecore/kvmallocator.sip create mode 100644 sip/kdecore/kwin.sip create mode 100644 sip/kdecore/kwinmodule.sip create mode 100644 sip/kdecore/kxmessages.sip create mode 100644 sip/kdecore/netwm.sip create mode 100644 sip/kdecore/netwm_def.sip create mode 100644 sip/kdefx/kcpuinfo.sip create mode 100644 sip/kdefx/kdefx-kde320.diff create mode 100644 sip/kdefx/kdefx-kde321.diff create mode 100644 sip/kdefx/kdefx-kde322.diff create mode 100644 sip/kdefx/kdefx-kde323.diff create mode 100644 sip/kdefx/kdefx-kde330.diff create mode 100644 sip/kdefx/kdefx-kde331.diff create mode 100644 sip/kdefx/kdefx-kde332.diff create mode 100644 sip/kdefx/kdefx-kde340.diff create mode 100644 sip/kdefx/kdefx-kde341.diff create mode 100644 sip/kdefx/kdefx-kde342.diff create mode 100644 sip/kdefx/kdefx-kde343.diff create mode 100644 sip/kdefx/kdefx-kde350.diff create mode 100644 sip/kdefx/kdefx-kde351.diff create mode 100644 sip/kdefx/kdefx-kde352.diff create mode 100644 sip/kdefx/kdefx-kde353.diff create mode 100644 sip/kdefx/kdefxmod.sip.in create mode 100644 sip/kdefx/kdrawutil.sip create mode 100644 sip/kdefx/kimageeffect.sip create mode 100644 sip/kdefx/kpixmap.sip create mode 100644 sip/kdefx/kpixmapeffect.sip create mode 100644 sip/kdefx/kpixmapsplitter.sip create mode 100644 sip/kdefx/kstyle.sip create mode 100644 sip/kdeprint/driver.sip create mode 100644 sip/kdeprint/kdeprint-kde310.diff create mode 100644 sip/kdeprint/kdeprint-kde311.diff create mode 100644 sip/kdeprint/kdeprint-kde312.diff create mode 100644 sip/kdeprint/kdeprint-kde313.diff create mode 100644 sip/kdeprint/kdeprint-kde314.diff create mode 100644 sip/kdeprint/kdeprint-kde315.diff create mode 100644 sip/kdeprint/kdeprint-kde320.diff create mode 100644 sip/kdeprint/kdeprint-kde321.diff create mode 100644 sip/kdeprint/kdeprint-kde322.diff create mode 100644 sip/kdeprint/kdeprint-kde323.diff create mode 100644 sip/kdeprint/kdeprint-kde330.diff create mode 100644 sip/kdeprint/kdeprint-kde331.diff create mode 100644 sip/kdeprint/kdeprint-kde332.diff create mode 100644 sip/kdeprint/kdeprint-kde340.diff create mode 100644 sip/kdeprint/kdeprint-kde341.diff create mode 100644 sip/kdeprint/kdeprint-kde342.diff create mode 100644 sip/kdeprint/kdeprint-kde343.diff create mode 100644 sip/kdeprint/kdeprint-kde350.diff create mode 100644 sip/kdeprint/kdeprint-kde351.diff create mode 100644 sip/kdeprint/kdeprint-kde352.diff create mode 100644 sip/kdeprint/kdeprint-kde353.diff create mode 100644 sip/kdeprint/kdeprintmod.sip.in create mode 100644 sip/kdeprint/kmjob.sip create mode 100644 sip/kdeprint/kmjobmanager.sip create mode 100644 sip/kdeprint/kmmanager.sip create mode 100644 sip/kdeprint/kmobject.sip create mode 100644 sip/kdeprint/kmprinter.sip create mode 100644 sip/kdeprint/kpreloadobject.sip create mode 100644 sip/kdeprint/kprintaction.sip create mode 100644 sip/kdeprint/kprintdialog.sip create mode 100644 sip/kdeprint/kprintdialogpage.sip create mode 100644 sip/kdeprint/kprinter.sip create mode 100644 sip/kdeui/kaboutapplication.sip create mode 100644 sip/kdeui/kaboutdialog.sip create mode 100644 sip/kdeui/kaboutkde.sip create mode 100644 sip/kdeui/kaccelmanager.sip create mode 100644 sip/kdeui/kaccelmenu.sip create mode 100644 sip/kdeui/kaction.sip create mode 100644 sip/kdeui/kactionclasses.sip create mode 100644 sip/kdeui/kactioncollection.sip create mode 100644 sip/kdeui/kactionselector.sip create mode 100644 sip/kdeui/kactionshortcutlist.sip create mode 100644 sip/kdeui/kactivelabel.sip create mode 100644 sip/kdeui/kalphapainter.sip create mode 100644 sip/kdeui/kanimwidget.sip create mode 100644 sip/kdeui/karrowbutton.sip create mode 100644 sip/kdeui/kauthicon.sip create mode 100644 sip/kdeui/kbugreport.sip create mode 100644 sip/kdeui/kbuttonbox.sip create mode 100644 sip/kdeui/kcharselect.sip create mode 100644 sip/kdeui/kcmenumngr.sip create mode 100644 sip/kdeui/kcmodule.sip create mode 100644 sip/kdeui/kcolorbtn.sip create mode 100644 sip/kdeui/kcolorcombo.sip create mode 100644 sip/kdeui/kcolordialog.sip create mode 100644 sip/kdeui/kcolordrag.sip create mode 100644 sip/kdeui/kcombobox.sip create mode 100644 sip/kdeui/kcommand.sip create mode 100644 sip/kdeui/kcompletionbox.sip create mode 100644 sip/kdeui/kconfigdialog.sip create mode 100644 sip/kdeui/kcontainer.sip create mode 100644 sip/kdeui/kcursor.sip create mode 100644 sip/kdeui/kdatepicker.sip create mode 100644 sip/kdeui/kdatepik.sip create mode 100644 sip/kdeui/kdatetbl.sip create mode 100644 sip/kdeui/kdatetimewidget.sip create mode 100644 sip/kdeui/kdatewidget.sip create mode 100644 sip/kdeui/kdbtn.sip create mode 100644 sip/kdeui/kdcopactionproxy.sip create mode 100644 sip/kdeui/kdeui-kde310.diff create mode 100644 sip/kdeui/kdeui-kde311.diff create mode 100644 sip/kdeui/kdeui-kde312.diff create mode 100644 sip/kdeui/kdeui-kde313.diff create mode 100644 sip/kdeui/kdeui-kde314.diff create mode 100644 sip/kdeui/kdeui-kde315.diff create mode 100644 sip/kdeui/kdeui-kde320.diff create mode 100644 sip/kdeui/kdeui-kde321.diff create mode 100644 sip/kdeui/kdeui-kde322.diff create mode 100644 sip/kdeui/kdeui-kde323.diff create mode 100644 sip/kdeui/kdeui-kde330.diff create mode 100644 sip/kdeui/kdeui-kde331.diff create mode 100644 sip/kdeui/kdeui-kde332.diff create mode 100644 sip/kdeui/kdeui-kde340.diff create mode 100644 sip/kdeui/kdeui-kde341.diff create mode 100644 sip/kdeui/kdeui-kde342.diff create mode 100644 sip/kdeui/kdeui-kde343.diff create mode 100644 sip/kdeui/kdeui-kde350.diff create mode 100644 sip/kdeui/kdeui-kde351.diff create mode 100644 sip/kdeui/kdeui-kde352.diff create mode 100644 sip/kdeui/kdeui-kde353.diff create mode 100644 sip/kdeui/kdeuimod.sip.in create mode 100644 sip/kdeui/kdialog.sip create mode 100644 sip/kdeui/kdialogbase.sip create mode 100644 sip/kdeui/kdocktabctl.sip create mode 100644 sip/kdeui/kdockwidget.sip create mode 100644 sip/kdeui/kdockwindow.sip create mode 100644 sip/kdeui/kdualcolorbtn.sip create mode 100644 sip/kdeui/kdualcolorbutton.sip create mode 100644 sip/kdeui/keditcl.sip create mode 100644 sip/kdeui/keditlistbox.sip create mode 100644 sip/kdeui/kedittoolbar.sip create mode 100644 sip/kdeui/kfontcombo.sip create mode 100644 sip/kdeui/kfontdialog.sip create mode 100644 sip/kdeui/kfontrequester.sip create mode 100644 sip/kdeui/kguiitem.sip create mode 100644 sip/kdeui/khelpmenu.sip create mode 100644 sip/kdeui/kiconview.sip create mode 100644 sip/kdeui/kiconviewsearchline.sip create mode 100644 sip/kdeui/kinputdialog.sip create mode 100644 sip/kdeui/kjanuswidget.sip create mode 100644 sip/kdeui/kkeybutton.sip create mode 100644 sip/kdeui/kkeydialog.sip create mode 100644 sip/kdeui/klanguagebutton.sip create mode 100644 sip/kdeui/kled.sip create mode 100644 sip/kdeui/klineedit.sip create mode 100644 sip/kdeui/klineeditdlg.sip create mode 100644 sip/kdeui/klistbox.sip create mode 100644 sip/kdeui/klistview.sip create mode 100644 sip/kdeui/klistviewlineedit.sip create mode 100644 sip/kdeui/klistviewsearchline.sip create mode 100644 sip/kdeui/kmainwindow.sip create mode 100644 sip/kdeui/kmainwindowiface.sip create mode 100644 sip/kdeui/kmenubar.sip create mode 100644 sip/kdeui/kmessagebox.sip create mode 100644 sip/kdeui/knuminput.sip create mode 100644 sip/kdeui/knumvalidator.sip create mode 100644 sip/kdeui/kpanelapplet.sip create mode 100644 sip/kdeui/kpanelappmenu.sip create mode 100644 sip/kdeui/kpanelextension.sip create mode 100644 sip/kdeui/kpanelmenu.sip create mode 100644 sip/kdeui/kpassdlg.sip create mode 100644 sip/kdeui/kpassivepopup.sip create mode 100644 sip/kdeui/kpixmapio.sip create mode 100644 sip/kdeui/kpixmapregionselectordialog.sip create mode 100644 sip/kdeui/kpixmapregionselectorwidget.sip create mode 100644 sip/kdeui/kpopupmenu.sip create mode 100644 sip/kdeui/kprogress.sip create mode 100644 sip/kdeui/kpushbutton.sip create mode 100644 sip/kdeui/krestrictedline.sip create mode 100644 sip/kdeui/krootpixmap.sip create mode 100644 sip/kdeui/kruler.sip create mode 100644 sip/kdeui/kscrollview.sip create mode 100644 sip/kdeui/kselect.sip create mode 100644 sip/kdeui/kseparator.sip create mode 100644 sip/kdeui/ksharedpixmap.sip create mode 100644 sip/kdeui/kshortcutdialog.sip create mode 100644 sip/kdeui/ksplashscreen.sip create mode 100644 sip/kdeui/ksqueezedtextlabel.sip create mode 100644 sip/kdeui/kstatusbar.sip create mode 100644 sip/kdeui/kstdaction.sip create mode 100644 sip/kdeui/kstdguiitem.sip create mode 100644 sip/kdeui/kstringvalidator.sip create mode 100644 sip/kdeui/ksystemtray.sip create mode 100644 sip/kdeui/ktabbar.sip create mode 100644 sip/kdeui/ktabctl.sip create mode 100644 sip/kdeui/ktabwidget.sip create mode 100644 sip/kdeui/ktextbrowser.sip create mode 100644 sip/kdeui/ktextedit.sip create mode 100644 sip/kdeui/kthemebase.sip create mode 100644 sip/kdeui/kthemestyle.sip create mode 100644 sip/kdeui/ktimewidget.sip create mode 100644 sip/kdeui/ktimezonewidget.sip create mode 100644 sip/kdeui/ktip.sip create mode 100644 sip/kdeui/ktmainwindow.sip create mode 100644 sip/kdeui/ktoolbar.sip create mode 100644 sip/kdeui/ktoolbarbutton.sip create mode 100644 sip/kdeui/ktoolbarlabelaction.sip create mode 100644 sip/kdeui/ktoolbarradiogroup.sip create mode 100644 sip/kdeui/kurllabel.sip create mode 100644 sip/kdeui/kwindowinfo.sip create mode 100644 sip/kdeui/kwindowlistmenu.sip create mode 100644 sip/kdeui/kwizard.sip create mode 100644 sip/kdeui/kwordwrap.sip create mode 100644 sip/kdeui/kxmlgui.sip create mode 100644 sip/kdeui/kxmlguibuilder.sip create mode 100644 sip/kdeui/kxmlguiclient.sip create mode 100644 sip/kdeui/kxmlguifactory.sip create mode 100644 sip/kdeui/qxembed.sip create mode 100644 sip/kfile/booktoken.sip create mode 100644 sip/kfile/kcombiview.sip create mode 100644 sip/kfile/kcustommenueditor.sip create mode 100644 sip/kfile/kdiroperator.sip create mode 100644 sip/kfile/kdirselectdialog.sip create mode 100644 sip/kfile/kdirsize.sip create mode 100644 sip/kfile/kdiskfreesp.sip create mode 100644 sip/kfile/kencodingfiledialog.sip create mode 100644 sip/kfile/kfile-kde310.diff create mode 100644 sip/kfile/kfile-kde311.diff create mode 100644 sip/kfile/kfile-kde312.diff create mode 100644 sip/kfile/kfile-kde313.diff create mode 100644 sip/kfile/kfile-kde314.diff create mode 100644 sip/kfile/kfile-kde315.diff create mode 100644 sip/kfile/kfile-kde320.diff create mode 100644 sip/kfile/kfile-kde321.diff create mode 100644 sip/kfile/kfile-kde322.diff create mode 100644 sip/kfile/kfile-kde323.diff create mode 100644 sip/kfile/kfile-kde330.diff create mode 100644 sip/kfile/kfile-kde331.diff create mode 100644 sip/kfile/kfile-kde332.diff create mode 100644 sip/kfile/kfile-kde340.diff create mode 100644 sip/kfile/kfile-kde341.diff create mode 100644 sip/kfile/kfile-kde342.diff create mode 100644 sip/kfile/kfile-kde343.diff create mode 100644 sip/kfile/kfile-kde350.diff create mode 100644 sip/kfile/kfile-kde351.diff create mode 100644 sip/kfile/kfile-kde352.diff create mode 100644 sip/kfile/kfile-kde353.diff create mode 100644 sip/kfile/kfile.sip create mode 100644 sip/kfile/kfilebookmark.sip create mode 100644 sip/kfile/kfiledetailview.sip create mode 100644 sip/kfile/kfiledialog.sip create mode 100644 sip/kfile/kfilefiltercombo.sip create mode 100644 sip/kfile/kfileiconview.sip create mode 100644 sip/kfile/kfilemod.sip.in create mode 100644 sip/kfile/kfilepreview.sip create mode 100644 sip/kfile/kfilereader.sip create mode 100644 sip/kfile/kfilesharedlg.sip create mode 100644 sip/kfile/kfiletreebranch.sip create mode 100644 sip/kfile/kfiletreeview.sip create mode 100644 sip/kfile/kfiletreeviewitem.sip create mode 100644 sip/kfile/kfileview.sip create mode 100644 sip/kfile/kfileviewitem.sip create mode 100644 sip/kfile/kicondialog.sip create mode 100644 sip/kfile/kimagefilepreview.sip create mode 100644 sip/kfile/knotifydialog.sip create mode 100644 sip/kfile/knotifywidgetbase.sip create mode 100644 sip/kfile/kopenwith.sip create mode 100644 sip/kfile/kpreviewwidgetbase.sip create mode 100644 sip/kfile/kpropertiesdialog.sip create mode 100644 sip/kfile/kpropsdlg.sip create mode 100644 sip/kfile/krecentdirs.sip create mode 100644 sip/kfile/krecentdocument.sip create mode 100644 sip/kfile/kurlbar.sip create mode 100644 sip/kfile/kurlcombobox.sip create mode 100644 sip/kfile/kurlrequester.sip create mode 100644 sip/kfile/kurlrequesterdlg.sip create mode 100644 sip/khtml/css_rule.sip create mode 100644 sip/khtml/css_stylesheet.sip create mode 100644 sip/khtml/css_value.sip create mode 100644 sip/khtml/dom2_events.sip create mode 100644 sip/khtml/dom2_range.sip create mode 100644 sip/khtml/dom2_traversal.sip create mode 100644 sip/khtml/dom2_views.sip create mode 100644 sip/khtml/dom_doc.sip create mode 100644 sip/khtml/dom_element.sip create mode 100644 sip/khtml/dom_exception.sip create mode 100644 sip/khtml/dom_misc.sip create mode 100644 sip/khtml/dom_node.sip create mode 100644 sip/khtml/dom_string.sip create mode 100644 sip/khtml/dom_text.sip create mode 100644 sip/khtml/dom_xml.sip create mode 100644 sip/khtml/html_base.sip create mode 100644 sip/khtml/html_block.sip create mode 100644 sip/khtml/html_document.sip create mode 100644 sip/khtml/html_element.sip create mode 100644 sip/khtml/html_form.sip create mode 100644 sip/khtml/html_head.sip create mode 100644 sip/khtml/html_image.sip create mode 100644 sip/khtml/html_inline.sip create mode 100644 sip/khtml/html_list.sip create mode 100644 sip/khtml/html_misc.sip create mode 100644 sip/khtml/html_object.sip create mode 100644 sip/khtml/html_table.sip create mode 100644 sip/khtml/khtml_part.sip create mode 100644 sip/khtml/khtml_part.sip.323 create mode 100644 sip/khtml/khtml_part.sip.330 create mode 100644 sip/khtml/khtml_settings.sip create mode 100644 sip/khtml/khtmlmod.sip.in create mode 100644 sip/khtml/khtmlview.sip create mode 100644 sip/kio/authinfo.sip create mode 100644 sip/kio/chmodjob.sip create mode 100644 sip/kio/connection.sip create mode 100644 sip/kio/davjob.sip create mode 100644 sip/kio/defaultprogress.sip create mode 100644 sip/kio/forwardingslavebase.sip create mode 100644 sip/kio/global.sip create mode 100644 sip/kio/job.sip create mode 100644 sip/kio/jobclasses.sip create mode 100644 sip/kio/kacl.sip create mode 100644 sip/kio/kar.sip create mode 100644 sip/kio/karchive.sip create mode 100644 sip/kio/kautomount.sip create mode 100644 sip/kio/kdatatool.sip create mode 100644 sip/kio/kdcopservicestarter.sip create mode 100644 sip/kio/kdirlister.sip create mode 100644 sip/kio/kdirnotify.sip create mode 100644 sip/kio/kdirwatch.sip create mode 100644 sip/kio/kemailsettings.sip create mode 100644 sip/kio/kfilefilter.sip create mode 100644 sip/kio/kfileitem.sip create mode 100644 sip/kio/kfilemetainfo.sip create mode 100644 sip/kio/kfileshare.sip create mode 100644 sip/kio/kfilterbase.sip create mode 100644 sip/kio/kfilterdev.sip create mode 100644 sip/kio/kimageio.sip create mode 100644 sip/kio/kio-kde310.diff create mode 100644 sip/kio/kio-kde311.diff create mode 100644 sip/kio/kio-kde312.diff create mode 100644 sip/kio/kio-kde313.diff create mode 100644 sip/kio/kio-kde314.diff create mode 100644 sip/kio/kio-kde315.diff create mode 100644 sip/kio/kio-kde320.diff create mode 100644 sip/kio/kio-kde321.diff create mode 100644 sip/kio/kio-kde322.diff create mode 100644 sip/kio/kio-kde323.diff create mode 100644 sip/kio/kio-kde330.diff create mode 100644 sip/kio/kio-kde331.diff create mode 100644 sip/kio/kio-kde332.diff create mode 100644 sip/kio/kio-kde340.diff create mode 100644 sip/kio/kio-kde341.diff create mode 100644 sip/kio/kio-kde342.diff create mode 100644 sip/kio/kio-kde343.diff create mode 100644 sip/kio/kio-kde350.diff create mode 100644 sip/kio/kio-kde351.diff create mode 100644 sip/kio/kio-kde352.diff create mode 100644 sip/kio/kio-kde353.diff create mode 100644 sip/kio/kiomod.sip.in create mode 100644 sip/kio/kmimemagic.sip create mode 100644 sip/kio/kmimetype.sip create mode 100644 sip/kio/kmimetypechooser.sip create mode 100644 sip/kio/knfsshare.sip create mode 100644 sip/kio/kpac.sip create mode 100644 sip/kio/kprotocolinfo.sip create mode 100644 sip/kio/kprotocolmanager.sip create mode 100644 sip/kio/kremoteencoding.sip create mode 100644 sip/kio/krun.sip create mode 100644 sip/kio/ksambashare.sip create mode 100644 sip/kio/kscan.sip create mode 100644 sip/kio/kservice.sip create mode 100644 sip/kio/kservicegroup.sip create mode 100644 sip/kio/kservicetype.sip create mode 100644 sip/kio/kshellcompletion.sip create mode 100644 sip/kio/kshred.sip create mode 100644 sip/kio/ksycoca.sip create mode 100644 sip/kio/ksycocadict.sip create mode 100644 sip/kio/ksycocaentry.sip create mode 100644 sip/kio/ksycocafactory.sip create mode 100644 sip/kio/ksycocatype.sip create mode 100644 sip/kio/ktar.sip create mode 100644 sip/kio/ktrader.sip create mode 100644 sip/kio/kurifilter.sip create mode 100644 sip/kio/kurlcompletion.sip create mode 100644 sip/kio/kurlpixmapprovider.sip create mode 100644 sip/kio/kuserprofile.sip create mode 100644 sip/kio/kzip.sip create mode 100644 sip/kio/metainfojob.sip create mode 100644 sip/kio/netaccess.sip create mode 100644 sip/kio/observer.sip create mode 100644 sip/kio/passdlg.sip create mode 100644 sip/kio/paste.sip create mode 100644 sip/kio/previewjob.sip create mode 100644 sip/kio/progressbase.sip create mode 100644 sip/kio/renamedlg.sip create mode 100644 sip/kio/renamedlgplugin.sip create mode 100644 sip/kio/scheduler.sip create mode 100644 sip/kio/sessiondata.sip create mode 100644 sip/kio/skipdlg.sip create mode 100644 sip/kio/slave.sip create mode 100644 sip/kio/slavebase.sip create mode 100644 sip/kio/slaveconfig.sip create mode 100644 sip/kio/slaveinterface.sip create mode 100644 sip/kio/statusbarprogress.sip create mode 100644 sip/kio/tcpslavebase.sip create mode 100644 sip/kio/thumbcreator.sip create mode 100644 sip/kmdi/kmdichildarea.sip create mode 100644 sip/kmdi/kmdichildfrm.sip create mode 100644 sip/kmdi/kmdichildfrmcaption.sip create mode 100644 sip/kmdi/kmdichildview.sip create mode 100644 sip/kmdi/kmdidefines.sip create mode 100644 sip/kmdi/kmdimainfrm.sip create mode 100644 sip/kmdi/kmdimod.sip.in create mode 100644 sip/kmdi/kmditaskbar.sip create mode 100644 sip/kmdi/kmditoolviewaccessor.sip create mode 100644 sip/kparts/browserextension.sip create mode 100644 sip/kparts/browserinterface.sip create mode 100644 sip/kparts/browserrun.sip create mode 100644 sip/kparts/dockmainwindow.sip create mode 100644 sip/kparts/event.sip create mode 100644 sip/kparts/factory.sip create mode 100644 sip/kparts/genericfactory.sip create mode 100644 sip/kparts/historyprovider.sip create mode 100644 sip/kparts/kparts-kde320.diff create mode 100644 sip/kparts/kparts-kde321.diff create mode 100644 sip/kparts/kparts-kde322.diff create mode 100644 sip/kparts/kparts-kde323.diff create mode 100644 sip/kparts/kparts-kde330.diff create mode 100644 sip/kparts/kparts-kde331.diff create mode 100644 sip/kparts/kparts-kde332.diff create mode 100644 sip/kparts/kparts-kde340.diff create mode 100644 sip/kparts/kparts-kde341.diff create mode 100644 sip/kparts/kparts-kde342.diff create mode 100644 sip/kparts/kparts-kde343.diff create mode 100644 sip/kparts/kparts-kde350.diff create mode 100644 sip/kparts/kparts-kde351.diff create mode 100644 sip/kparts/kparts-kde352.diff create mode 100644 sip/kparts/kparts-kde353.diff create mode 100644 sip/kparts/kpartsmod.sip.in create mode 100644 sip/kparts/mainwindow.sip create mode 100644 sip/kparts/part.sip create mode 100644 sip/kparts/partmanager.sip create mode 100644 sip/kparts/plugin.sip create mode 100644 sip/kparts/statusbarextension.sip create mode 100644 sip/kresources/configdialog.sip create mode 100644 sip/kresources/configpage.sip create mode 100644 sip/kresources/configwidget.sip create mode 100644 sip/kresources/factory.sip create mode 100644 sip/kresources/kresourcesmod.sip.in create mode 100644 sip/kresources/resource.sip create mode 100644 sip/kresources/selectdialog.sip create mode 100644 sip/kspell/ksconfig.sip create mode 100644 sip/kspell/kspell-kde320.diff create mode 100644 sip/kspell/kspell-kde321.diff create mode 100644 sip/kspell/kspell-kde322.diff create mode 100644 sip/kspell/kspell-kde323.diff create mode 100644 sip/kspell/kspell-kde330.diff create mode 100644 sip/kspell/kspell-kde331.diff create mode 100644 sip/kspell/kspell-kde332.diff create mode 100644 sip/kspell/kspell-kde340.diff create mode 100644 sip/kspell/kspell-kde341.diff create mode 100644 sip/kspell/kspell-kde342.diff create mode 100644 sip/kspell/kspell-kde343.diff create mode 100644 sip/kspell/kspell-kde350.diff create mode 100644 sip/kspell/kspell-kde351.diff create mode 100644 sip/kspell/kspell-kde352.diff create mode 100644 sip/kspell/kspell-kde353.diff create mode 100644 sip/kspell/kspell.sip create mode 100644 sip/kspell/kspelldlg.sip create mode 100644 sip/kspell/kspellmod.sip.in create mode 100644 sip/kspell/ksyntaxhighlighter.sip create mode 100644 sip/kspell2/backgroundchecker.sip create mode 100644 sip/kspell2/broker.sip create mode 100644 sip/kspell2/configdialog.sip create mode 100644 sip/kspell2/configwidget.sip create mode 100644 sip/kspell2/defaultdictionary.sip create mode 100644 sip/kspell2/dialog.sip create mode 100644 sip/kspell2/dictionary.sip create mode 100644 sip/kspell2/filter.sip create mode 100644 sip/kspell2/highlighter.sip create mode 100644 sip/kspell2/kspell2mod.sip.in create mode 100644 sip/kspell2/settings.sip create mode 100644 sip/kutils/kcmoduleinfo.sip create mode 100644 sip/kutils/kcmoduleloader.sip create mode 100644 sip/kutils/kcmoduleproxy.sip create mode 100644 sip/kutils/kcmultidialog.sip create mode 100644 sip/kutils/kfind.sip create mode 100644 sip/kutils/kfinddialog.sip create mode 100644 sip/kutils/kmultitabbar.sip create mode 100644 sip/kutils/kplugininfo.sip create mode 100644 sip/kutils/kpluginselector.sip create mode 100644 sip/kutils/kreplace.sip create mode 100644 sip/kutils/kreplacedialog.sip create mode 100644 sip/kutils/kutils-kde340.diff create mode 100644 sip/kutils/kutils-kde341.diff create mode 100644 sip/kutils/kutilsmod.sip.in create mode 100644 svnmerge.py create mode 100644 svnmergedocs.py create mode 100644 templates/annotated/basicapp.py create mode 100644 templates/annotated/menuapp1.py create mode 100644 templates/annotated/menuapp2.py create mode 100644 templates/annotated/menuapp3.py create mode 100644 templates/annotated/menuapp3ui.rc create mode 100644 templates/annotated/minimal.py create mode 100644 templates/annotated/panelapplet.py create mode 100644 templates/annotated/systray.py create mode 100644 templates/annotated/systray1.py create mode 100644 templates/basic/basicapp.py create mode 100644 templates/basic/menuapp1.py create mode 100644 templates/basic/menuapp2.py create mode 100644 templates/basic/menuapp3.py create mode 100644 templates/basic/menuapp3ui.rc create mode 100644 templates/basic/minimal.py create mode 100644 templates/basic/panelapplet.py create mode 100644 templates/basic/systray.py create mode 100644 templates/basic/systray1.py diff --git a/AUTHORS b/AUTHORS new file mode 100644 index 0000000..3181266 --- /dev/null +++ b/AUTHORS @@ -0,0 +1,6 @@ +Jim Bublitz (jbublitz@nwinternet.com) + PyKDE(KDE2, KDE3) + +Phil Thompson (phil@river-bank.demon.co.uk) + sip, PyQt, original PyKDE (KDE1) and loads of good advice and help + diff --git a/BUGS b/BUGS new file mode 100644 index 0000000..e69de29 diff --git a/COPYING b/COPYING new file mode 100644 index 0000000..03c41e3 --- /dev/null +++ b/COPYING @@ -0,0 +1,343 @@ +The GNU GENERAL PUBLIC LICENSE +------------------------------ + + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc. + 51 Franklin Street, Fifth Floor, Boston, MA + 02110-1301, USA. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Library General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + Appendix: How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) 19yy + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) 19yy name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + , 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Library General +Public License instead of this License. diff --git a/ChangeLog b/ChangeLog new file mode 100644 index 0000000..3bd0311 --- /dev/null +++ b/ChangeLog @@ -0,0 +1,602 @@ +------------------------------------------------------------------------ +r124 | (jim) | 2006-01-21 11:33:36 -0800 (Sat, 21 Jan 2006) | 2 lines + +removed kkeyserver.sip references from all .diff files + +------------------------------------------------------------------------ +r123 | (jim) | 2006-01-21 11:31:03 -0800 (Sat, 21 Jan 2006) | 2 lines + +updated docs + +------------------------------------------------------------------------ +r122 | (jim) | 2006-01-21 10:46:51 -0800 (Sat, 21 Jan 2006) | 2 lines + +fixed TOC links in classref doc files + +------------------------------------------------------------------------ +r121 | (jim) | 2006-01-21 01:20:30 -0800 (Sat, 21 Jan 2006) | 2 lines + +Initial doc update + +------------------------------------------------------------------------ +r120 | (jim) | 2006-01-20 17:37:06 -0800 (Fri, 20 Jan 2006) | 3 lines + +fixed QValueList code +and fixed dcopexport.py handling of void return types + +------------------------------------------------------------------------ +r119 | (jim) | 2006-01-20 12:14:10 -0800 (Fri, 20 Jan 2006) | 2 lines + +added X11 include + +------------------------------------------------------------------------ +r118 | (jim) | 2006-01-18 23:27:15 -0800 (Wed, 18 Jan 2006) | 2 lines + +backed out ambiguous/inaccessible methods in KConfigSkeleton + +------------------------------------------------------------------------ +r117 | (jim) | 2006-01-18 23:00:34 -0800 (Wed, 18 Jan 2006) | 3 lines + +correct versioning error on addItem* methods in +KConfigSkeleton + +------------------------------------------------------------------------ +r116 | (jim) | 2006-01-18 22:08:35 -0800 (Wed, 18 Jan 2006) | 3 lines + +fixes for backward compatibility with older KDE, gcc, +sip + +------------------------------------------------------------------------ +r115 | (jim) | 2006-01-18 21:12:02 -0800 (Wed, 18 Jan 2006) | 2 lines + +PyKDE for KDE 3.5.0 complete + +------------------------------------------------------------------------ +r114 | (jim) | 2006-01-17 01:51:20 -0800 (Tue, 17 Jan 2006) | 2 lines + +all modules working for KDE 3.4.3 - minor fixes + +------------------------------------------------------------------------ +r113 | (jim) | 2006-01-16 22:13:25 -0800 (Mon, 16 Jan 2006) | 2 lines + +kabc, kresources touchup + +------------------------------------------------------------------------ +r112 | (jim) | 2006-01-16 21:57:28 -0800 (Mon, 16 Jan 2006) | 2 lines + +update extra/ for KDE 3.5.0 + +------------------------------------------------------------------------ +r111 | (jim) | 2006-01-16 21:56:14 -0800 (Mon, 16 Jan 2006) | 2 lines + +minor fix + +------------------------------------------------------------------------ +r109 | (jim) | 2006-01-16 20:35:03 -0800 (Mon, 16 Jan 2006) | 2 lines + +yet more debugging kabc, kresources + +------------------------------------------------------------------------ +r108 | (jim) | 2006-01-16 20:22:55 -0800 (Mon, 16 Jan 2006) | 2 lines + +more debugging kabc, kresources + +------------------------------------------------------------------------ +r107 | (jim) | 2006-01-16 20:15:50 -0800 (Mon, 16 Jan 2006) | 2 lines + +more kabc, kresource debugging + +------------------------------------------------------------------------ +r106 | (jim) | 2006-01-16 20:12:37 -0800 (Mon, 16 Jan 2006) | 2 lines + +kabc, kresource debugging + +------------------------------------------------------------------------ +r105 | (jim) | 2006-01-16 20:08:37 -0800 (Mon, 16 Jan 2006) | 2 lines + +kabc, kresources through KDE 3.4.3 + +------------------------------------------------------------------------ +r104 | (jim) | 2006-01-16 18:33:10 -0800 (Mon, 16 Jan 2006) | 2 lines + +removed erroneous kresources .diff file + +------------------------------------------------------------------------ +r103 | (jim) | 2006-01-16 18:24:05 -0800 (Mon, 16 Jan 2006) | 3 lines + +more kabc and kresources debugging - compiles +through KDE 330 + +------------------------------------------------------------------------ +r102 | (jim) | 2006-01-16 00:47:43 -0800 (Mon, 16 Jan 2006) | 2 lines + +debug configure.py, kabc, kresources + +------------------------------------------------------------------------ +r101 | (jim) | 2006-01-15 22:27:45 -0800 (Sun, 15 Jan 2006) | 2 lines + +fixed typo in configure.py + +------------------------------------------------------------------------ +r100 | (jim) | 2006-01-15 22:22:50 -0800 (Sun, 15 Jan 2006) | 2 lines + +added kabc and kresources through KDE 3.3.0 + +------------------------------------------------------------------------ +r97 | (jim) | 2006-01-15 15:04:44 -0800 (Sun, 15 Jan 2006) | 2 lines + +upgrade to KDE 3.4.3 + +------------------------------------------------------------------------ +r95 | (jim) | 2006-01-15 10:47:15 -0800 (Sun, 15 Jan 2006) | 2 lines + +added 'extra' files + +------------------------------------------------------------------------ +r94 | (jim) | 2006-01-15 10:26:53 -0800 (Sun, 15 Jan 2006) | 2 lines + +Update to KDE 3.4.2 + +------------------------------------------------------------------------ +r93 | (jim) | 2006-01-14 14:12:52 -0800 (Sat, 14 Jan 2006) | 4 lines + +typedef'd IntList from QValueList so IntList() +can be used as intializer for defaults; removed C++ +for second ctors ItemInt64 and ItemUInt64 + +------------------------------------------------------------------------ +r92 | (jim) | 2006-01-14 14:03:35 -0800 (Sat, 14 Jan 2006) | 2 lines + +reversed kdecore/kconfigskeleton change + +------------------------------------------------------------------------ +r91 | (jim) | 2006-01-14 13:40:37 -0800 (Sat, 14 Jan 2006) | 2 lines + +remove erroneous files + +------------------------------------------------------------------------ +r90 | (jim) | 2006-01-14 13:38:39 -0800 (Sat, 14 Jan 2006) | 5 lines + +Fix sio syntax errors in kdecore/kconfigskeleton.sip +(QValueList() as arg default value) and +kio/slaveinterface.sip (%TypeHeaderCode in namespace +instead of %ModuleHeaderCode outside) + +------------------------------------------------------------------------ +r89 | (jim) | 2006-01-14 13:25:39 -0800 (Sat, 14 Jan 2006) | 5 lines + +Upgrade to sip snapshot (future sip 4.4 - sipTransferObj stuff +and eliminate most typedefs to prevent auto mapped types); add +patch code to KConfigSkeleton addItem* and Item* ctors for +scalar types;minor bugfixes (sipForceConvertToQString anachronisms) + +------------------------------------------------------------------------ +r88 | (jim) | 2005-12-18 11:20:55 -0800 (Sun, 18 Dec 2005) | 2 lines + +Version dirSize in kdirsize.sip for older KDE + +------------------------------------------------------------------------ +r87 | (jim) | 2005-12-18 09:51:33 -0800 (Sun, 18 Dec 2005) | 4 lines + +Fixed versioning bug for enum Other in kshortcutlist.sip; +added fully-qualified names to two 'Other' arguments in +method calls + +------------------------------------------------------------------------ +r86 | (jim) | 2005-12-17 14:44:01 -0800 (Sat, 17 Dec 2005) | 3 lines + +Removed incorrect (later version) %Includes from +sip.in files + +------------------------------------------------------------------------ +r85 | (jim) | 2005-12-17 14:24:58 -0800 (Sat, 17 Dec 2005) | 2 lines + +Added missing @mark@ to sip.in files + +------------------------------------------------------------------------ +r84 | (jim) | 2005-12-17 13:39:26 -0800 (Sat, 17 Dec 2005) | 3 lines + +Removed longlong/ulonglong from kzip (now in kdecore for +older KDE versions), and versioned QPtrList + +------------------------------------------------------------------------ +r83 | (jim) | 2005-12-17 13:28:33 -0800 (Sat, 17 Dec 2005) | 2 lines + +Extended longlong and ulonglong to earlier KDE versions + +------------------------------------------------------------------------ +r82 | (jim) | 2005-10-15 17:40:13 -0700 (Sat, 15 Oct 2005) | 2 lines + +Updated %Timeline for KDE 3.4.1 + +------------------------------------------------------------------------ +r81 | (jim) | 2005-10-15 17:38:51 -0700 (Sat, 15 Oct 2005) | 5 lines + +Create ChangeLog from svn logs +Change PyKDE version to 3.5.0 +Update KDE versions to 3.4.1 + + +------------------------------------------------------------------------ +r80 | (jim) | 2005-10-15 17:23:54 -0700 (Sat, 15 Oct 2005) | 3 lines + +Modified configure.py to detect compiler and +set default concatenation appropriately + +------------------------------------------------------------------------ +r79 | (jim) | 2005-10-15 17:22:13 -0700 (Sat, 15 Oct 2005) | 2 lines + +fixup + +------------------------------------------------------------------------ +r78 | (jim) | 2005-10-13 11:45:39 -0700 (Thu, 13 Oct 2005) | 8 lines + +Replaced sipNewCppToSelf instances with sipBuildResult +Cleaned up sip files for gcc 3.4.x/4.0.x compatibility +Dropped kdesu (undefined symbol problem) +Added -fno-rtti to kdeprint compile +Dropped driver.sip from kdeprint +Updated configure.py to use pyqtconfig.py for Qt environment info +Backed out konsolepart code (undefined symbol problem) + +------------------------------------------------------------------------ +r76 | (jim) | 2005-07-27 23:27:34 -0700 (Wed, 27 Jul 2005) | 2 lines + +update configure.py for konsolePart + +------------------------------------------------------------------------ +r75 | (jim) | 2005-07-27 21:46:51 -0700 (Wed, 27 Jul 2005) | 2 lines + +added ConvertToSubclassCode entry for konsolePart + +------------------------------------------------------------------------ +r74 | (jim) | 2005-07-26 16:58:53 -0700 (Tue, 26 Jul 2005) | 2 lines + +added konsolePart class + +------------------------------------------------------------------------ +r73 | (jim) | 2005-06-28 16:27:53 -0700 (Tue, 28 Jun 2005) | 2 lines + +KDE 3.4.1 upgrade + +------------------------------------------------------------------------ +r72 | (jim) | 2005-06-28 14:58:07 -0700 (Tue, 28 Jun 2005) | 2 lines + +added bool type to DCOP extensions + +------------------------------------------------------------------------ +r71 | (jim) | 2005-06-18 19:16:03 -0700 (Sat, 18 Jun 2005) | 2 lines + +Added explicit link of kdeui for kspell module + +------------------------------------------------------------------------ +r70 | (jim) | 2005-06-18 17:59:10 -0700 (Sat, 18 Jun 2005) | 2 lines + +Added private dtors to keep sip 4.2 happy + +------------------------------------------------------------------------ +r69 | (jim) | 2005-03-18 16:05:34 -0800 (Fri, 18 Mar 2005) | 3 lines + +fixed cast in KURL::List operator + that was causing problems +for gcc 4 + +------------------------------------------------------------------------ +r68 | (jim) | 2005-03-16 08:50:52 -0800 (Wed, 16 Mar 2005) | 2 lines + +patch for DCOP line breaks + +------------------------------------------------------------------------ +r67 | (jim) | 2005-03-16 08:49:37 -0800 (Wed, 16 Mar 2005) | 2 lines + +Fix typos in previous patch + +------------------------------------------------------------------------ +r66 | (jim) | 2005-03-15 16:07:18 -0800 (Tue, 15 Mar 2005) | 2 lines + +Added ConvertToSubclassCode blocks for kmdi, kutils + +------------------------------------------------------------------------ +r65 | (jim) | 2005-03-10 10:41:57 -0800 (Thu, 10 Mar 2005) | 2 lines + +added kkeyserver.h to extra/kde340 + +------------------------------------------------------------------------ +r64 | (jim) | 2005-03-08 14:14:58 -0800 (Tue, 08 Mar 2005) | 3 lines + +Fixed case problem in configure.py distro check; fixed default +value in KURL::cleanPath + +------------------------------------------------------------------------ +r62 | (jim) | 2005-03-06 21:31:50 -0800 (Sun, 06 Mar 2005) | 2 lines + +fixed emums in templates/annotated + +------------------------------------------------------------------------ +r61 | (jim) | 2005-03-06 21:30:48 -0800 (Sun, 06 Mar 2005) | 2 lines + +fixed enums in examples, templates; fixed KIconThemeDir ref + +------------------------------------------------------------------------ +r60 | (jim) | 2005-03-05 00:57:44 -0800 (Sat, 05 Mar 2005) | 2 lines + +added -L option for lib path + +------------------------------------------------------------------------ +r59 | (jim) | 2005-03-05 00:47:24 -0800 (Sat, 05 Mar 2005) | 2 lines + +removed kjs support + +------------------------------------------------------------------------ +r58 | (jim) | 2005-03-05 00:42:59 -0800 (Sat, 05 Mar 2005) | 2 lines + +update extra/kde340 h files + +------------------------------------------------------------------------ +r57 | (jim) | 2005-03-05 00:36:09 -0800 (Sat, 05 Mar 2005) | 2 lines + +update .easibox - extra/kde340 + +------------------------------------------------------------------------ +r56 | (jim) | 2005-03-05 00:34:34 -0800 (Sat, 05 Mar 2005) | 2 lines + +added extra/kde340 + +------------------------------------------------------------------------ +r55 | (jim) | 2005-03-04 23:58:35 -0800 (Fri, 04 Mar 2005) | 2 lines + +kmdimod.sip.in one more time + +------------------------------------------------------------------------ +r54 | (jim) | 2005-03-04 23:53:37 -0800 (Fri, 04 Mar 2005) | 2 lines + +kmdimod.sip.in again + +------------------------------------------------------------------------ +r53 | (jim) | 2005-03-04 23:37:43 -0800 (Fri, 04 Mar 2005) | 2 lines + +fixed kmdimod.sip.in and kutils.sip.in + +------------------------------------------------------------------------ +r52 | (jim) | 2005-03-04 23:08:29 -0800 (Fri, 04 Mar 2005) | 2 lines + +correct qt path in kutils.sip.in + +------------------------------------------------------------------------ +r51 | (jim) | 2005-03-04 23:04:54 -0800 (Fri, 04 Mar 2005) | 2 lines + +%Include bytearray.sip missing from kdecore.sip.in + +------------------------------------------------------------------------ +r50 | (jim) | 2005-03-04 22:59:10 -0800 (Fri, 04 Mar 2005) | 2 lines + +fixed missing %Feature in dcopmod.sip.in + +------------------------------------------------------------------------ +r49 | (jim) | 2005-03-04 22:55:43 -0800 (Fri, 04 Mar 2005) | 2 lines + +fixed paths in sip.in files + +------------------------------------------------------------------------ +r48 | (jim) | 2005-03-04 22:49:00 -0800 (Fri, 04 Mar 2005) | 2 lines + +doc updates for PyKDE 4.0 + +------------------------------------------------------------------------ +r47 | (jim) | 2005-03-04 22:28:30 -0800 (Fri, 04 Mar 2005) | 2 lines + +PyKDE 4.0 docs + +------------------------------------------------------------------------ +r46 | (jim) | 2005-03-04 22:02:00 -0800 (Fri, 04 Mar 2005) | 2 lines + +new configure.py for PyKDE 4.0 + +------------------------------------------------------------------------ +r45 | (jim) | 2005-03-04 22:00:42 -0800 (Fri, 04 Mar 2005) | 2 lines + +PyKDE 4.0 + +------------------------------------------------------------------------ +r42 | (jim) | 2005-03-01 16:20:01 -0800 (Tue, 01 Mar 2005) | 2 lines + +Fixed KActionCollection for Mandrake + +------------------------------------------------------------------------ +r41 | (jim) | 2005-03-01 14:55:49 -0800 (Tue, 01 Mar 2005) | 2 lines + +Fixed pid_t typing problems (QValueList) + +------------------------------------------------------------------------ +r40 | (jim) | 2005-03-01 13:34:04 -0800 (Tue, 01 Mar 2005) | 2 lines + +Changed pid_t type from int to long; enabled KParts::URLArgs::metaData () + +------------------------------------------------------------------------ +r39 | (jim) | 2005-02-28 23:49:09 -0800 (Mon, 28 Feb 2005) | 4 lines + +KFileMetaInfo typedefs removed; KProcessController versioning +corrected; KRecentDirs (and extra/ hfiles) added; pykde332.prj +added + +------------------------------------------------------------------------ +r38 | (jim) | 2005-02-28 22:34:42 -0800 (Mon, 28 Feb 2005) | 2 lines + +added KHTMLPart to %ConvertToSubclassCode; install kdepyuic + +------------------------------------------------------------------------ +r37 | (jim) | 2005-02-03 00:07:38 -0800 (Thu, 03 Feb 2005) | 2 lines + +Added KURL import to dcopext.py + +------------------------------------------------------------------------ +r36 | (jim) | 2005-01-04 11:38:01 -0800 (Tue, 04 Jan 2005) | 2 lines + +Add extra subdir + +------------------------------------------------------------------------ +r35 | (jim) | 2005-01-03 21:38:17 -0800 (Mon, 03 Jan 2005) | 2 lines + +KDE 3.3.2 and sip 4.2 updates + +------------------------------------------------------------------------ +r33 | (jim) | 2004-11-28 13:58:07 -0800 (Sun, 28 Nov 2004) | 2 lines + +Modified kmdidefines.sip for sip 4.2 enumerator name problem + +------------------------------------------------------------------------ +r32 | (jim) | 2004-11-28 13:56:19 -0800 (Sun, 28 Nov 2004) | 2 lines + +Removed pykdeconfig.py from source control + +------------------------------------------------------------------------ +r31 | (jim) | 2004-11-27 23:29:03 -0800 (Sat, 27 Nov 2004) | 2 lines + +docs + +------------------------------------------------------------------------ +r30 | (jim) | 2004-11-27 23:07:07 -0800 (Sat, 27 Nov 2004) | 2 lines + +docs + +------------------------------------------------------------------------ +r29 | (jim) | 2004-11-27 22:17:49 -0800 (Sat, 27 Nov 2004) | 2 lines + +Missing comma + +------------------------------------------------------------------------ +r28 | (jim) | 2004-11-27 22:16:34 -0800 (Sat, 27 Nov 2004) | 2 lines + +PyKDE for KDE 3.3.1 + +------------------------------------------------------------------------ +r27 | (jim) | 2004-11-27 21:16:55 -0800 (Sat, 27 Nov 2004) | 2 lines + +Revise project files + +------------------------------------------------------------------------ +r26 | (jim) | 2004-11-27 17:47:35 -0800 (Sat, 27 Nov 2004) | 2 lines + +Updating to KDE 3.3.1 + +------------------------------------------------------------------------ +r25 | (jim) | 2004-08-25 16:43:40 -0700 (Wed, 25 Aug 2004) | 2 lines + +Updated change log + +------------------------------------------------------------------------ +r24 | (jim) | 2004-08-25 16:41:33 -0700 (Wed, 25 Aug 2004) | 2 lines + +Updated numbering to 3.11.3 + +------------------------------------------------------------------------ +r23 | (jim) | 2004-08-25 15:34:33 -0700 (Wed, 25 Aug 2004) | 2 lines + +Added post proc for WId in kwinmodule signals + +------------------------------------------------------------------------ +r22 | (jim) | 2004-08-21 16:50:33 -0700 (Sat, 21 Aug 2004) | 2 lines + +same khtml_part patch as the previous rev ??? + +------------------------------------------------------------------------ +r21 | (jim) | 2004-08-21 16:42:06 -0700 (Sat, 21 Aug 2004) | 2 lines + +khtml_part: fixed enum values for sip3.10.2 with KDE 3.3.0 + +------------------------------------------------------------------------ +r20 | (jim) | 2004-08-21 01:10:05 -0700 (Sat, 21 Aug 2004) | 2 lines + +Update version numbers in docs + +------------------------------------------------------------------------ +r19 | (jim) | 2004-08-21 01:03:27 -0700 (Sat, 21 Aug 2004) | 2 lines + +docs for final release + +------------------------------------------------------------------------ +r18 | (jim) | 2004-08-20 18:50:22 -0700 (Fri, 20 Aug 2004) | 2 lines + +Fixed access specifier for copy ctor on KProcessController + +------------------------------------------------------------------------ +r17 | (jim) | 2004-08-20 10:00:27 -0700 (Fri, 20 Aug 2004) | 2 lines + +Updated to KDE 3.3.0 final + +------------------------------------------------------------------------ +r16 | (jim) | 2004-08-20 09:59:28 -0700 (Fri, 20 Aug 2004) | 2 lines + +Removed khtml_part.sip (different versions for different KDE versions) + +------------------------------------------------------------------------ +r15 | (jim) | 2004-08-19 23:52:31 -0700 (Thu, 19 Aug 2004) | 2 lines + +Added svnmerge, svnmergedocs + +------------------------------------------------------------------------ +r14 | (jim) | 2004-08-16 19:42:57 -0700 (Mon, 16 Aug 2004) | 2 lines + +change spaces to tabs in postproc/appQuit + +------------------------------------------------------------------------ +r13 | (jim) | 2004-08-16 19:41:25 -0700 (Mon, 16 Aug 2004) | 2 lines + +Save doc tool mods + +------------------------------------------------------------------------ +r12 | (jim) | 2004-08-16 17:44:37 -0700 (Mon, 16 Aug 2004) | 2 lines + +Updated docs + +------------------------------------------------------------------------ +r11 | (jim) | 2004-08-16 17:23:33 -0700 (Mon, 16 Aug 2004) | 2 lines + +Patched qvariant.h problem in kdecore + +------------------------------------------------------------------------ +r10 | (jim) | 2004-08-16 16:40:43 -0700 (Mon, 16 Aug 2004) | 2 lines + +Corrected kuniqueapplication + +------------------------------------------------------------------------ +r9 | (jim) | 2004-08-16 14:43:51 -0700 (Mon, 16 Aug 2004) | 2 lines + +Fixed h file problems for KDE3.0.x; fixed LONG_LONG for KDE3.0.x with Python 2.3 + +------------------------------------------------------------------------ +r8 | (jim) | 2004-08-15 21:49:27 -0700 (Sun, 15 Aug 2004) | 2 lines + +version before access hides access for KDE < 3.2 in kprocctrl.sip + +------------------------------------------------------------------------ +r7 | (jim) | 2004-08-15 12:21:23 -0700 (Sun, 15 Aug 2004) | 2 lines + +Corrected error - configure.py spippath defined in wrong place + +------------------------------------------------------------------------ +r6 | (jim) | 2004-08-15 12:19:37 -0700 (Sun, 15 Aug 2004) | 2 lines + +Added khtml_part.sip versions + +------------------------------------------------------------------------ +r5 | (jim) | 2004-08-15 12:14:27 -0700 (Sun, 15 Aug 2004) | 3 lines + +Changes to configure.py for khtml/kutils when KDE < 3.3.0 and +kutils isn't needed/supported + +------------------------------------------------------------------------ +r4 | (jim) | 2004-08-15 12:04:57 -0700 (Sun, 15 Aug 2004) | 2 lines + +Patches for building with -i option (no concatenation) + +------------------------------------------------------------------------ +r3 | (jim) | 2004-08-15 09:13:47 -0700 (Sun, 15 Aug 2004) | 2 lines + +Ready for KDE 3.3.0beta2 + +------------------------------------------------------------------------ +r2 | (jim) | 2004-08-13 22:35:48 -0700 (Fri, 13 Aug 2004) | 2 lines + +Initial import + +------------------------------------------------------------------------ diff --git a/ChangeLog.2001-4 b/ChangeLog.2001-4 new file mode 100644 index 0000000..7eb8682 --- /dev/null +++ b/ChangeLog.2001-4 @@ -0,0 +1,185 @@ +2004/08/25 16:44:00 jim +Released 3.11.3; added post-processing for WId args +in KWinModule signals; fixed enum in khtml_part (for +KDE >= 3.3); updated version numbers + +2004/08/16 17:57:00 jim +Updated to KDE3.3.0beta2; minor fixes for earlier +KDE versions using sip4; fixed KUniqueApplication +(was missing); added kutils module (kspell2 missing +from beta2); docs; removed event %ConvertToSubClassCode +from kparts - was causing problems; other fixes; +snapshot released + +2003/11/22 12:19:00 jim +Fixed -c switch (was always True); install +pythonize.h in Python incl dir + +2003/11/20 21:11:00 jim +Fixed -v, -i switches; fixed testPythonize.pro -L + +2003/10/13 14:32:00 jim +added version methods for KDE, PyKDE; revised +all docs; added class ref docs and viewer; +revised build.py; bug fixes; libpythonize +threading fixed (can now have kicker reload +multiple applets) + +2003/9/4 13:05:00 jim +PyKDE-3.8-rc; finished up pykpanelapplet fix +from yesterday; removed qxembed from kdeui-kde*.sip + +2003/9/3 23:20:00 jim +No release; removed circular ref between +libpykpanelapplet and libkdeuicmodule; adjusted +kpanelapplet.sip, pykpanelapplet.h and build.py +to implement; moved nullGUIItem to top of +kmessagebox.sip; considering removing qxembed.sip + +2003/9/1 10:52:00 jim +No release; Revised handling of global.sip and +kzip.sip for Python 2.3 in build.py + +2003/8/31 18:37:00 jim +No release; Revised generation of rm's in +pykdepanelapplet Makefile install target to use wild +cards instead of one per lib link; finished applet +installer handling of existing .desktop files; +improved installer validation; updated docs. + +2003/8/30 23:05:00 jim +PyKDE-3.8rc1; finished panel applet support and +installer; revised docs; + +2003/8/25 11:33:00 jim +No release; %ConvertToSubClassCode for +KParts::Event subclasses + +2003/8/24 11:32:00 jim +No release. added pythonize, pykpanelapplet +libs to enable panel applets; revised build.py +for same; lowered version on KService copy ctor +to 3.1.0 for Mdk 9.1 compatibility + +2003/8/20 23:52:00 jim +No release. cleaned up operator addition (no +docs for those yet); add ConvertToSubClassCode +for all QObject subclasses; deleted obsolete +files + +2003/8/14 11:17:00 jim +No release; added -u switch to allow disable of +strict version checking (sip and PyQt snapshot +version names may be out of sync) + +2003/8/13 15:07:00 jim +PyKDE-3.8-4 bug fixes (also -2 and -3); new build.py +(no root, SMP, version checks) now builds with +KDE3.1.3 and/or Qt3.2.0; hack for Python 2.3 + +2003/8/6 15:23:00 jim +PyKDE-3.7-1 changes for sip 3.6/3.7 compatibility; +drop KDE2 support; upgrade through KDE 3.1.3; build.py +revised - -lqt-mt and -c defaults. added -c- +switch + +2003/4/8 22:12:00 jim +PyKDE-3.5-2 bug fixes to build.py (PYQT_VERSION +converted to string, kdeDir fixed); QList instances +versioned out/replaced by QPtrList for KDE >= 3.0.0; +changed 'python' invocation to 'sys.executable' in +examples and build.py postproc calls; changed build.py +error msg to point to PyKDE list instead of Phil + +2003/3/27 12:34:00 jim +PyKDE-3.5-1 Upgrade through KDE 3.1.1, removed +kdepyuic.py and README.pyuic; complete rebuild +using new version of presip; changed license to +GPL + +2002/8/21 11:03:00 jim +PyKDE-3.3.2-3: Upgrade to KDE 3.0.3; added +kdepyuic.py and README.pyuic + +2002/8/10 09:33:00 jim +PyKDE-3.3.2-2: fix Qt versioning change +(build.py) + +2002/8/9 13:00:00 jim +PyKDE-3.3.2-1: handle Qt versioning change in +Qt 3.0.5 (build.py); add '-I usr/X11R6/include' +in sip/kde30.kdecore.sip + +2002/8/8 13:10:00 jim +Cleaned up top-level sip files for all versions; +fixed bug with KIconThemeDir (never released); +cleaned up docs (released as 3.3.2) + +2002/7/22 13:29:00 jim +(PyKDE-3.3.2 pre release) +Added -z option to build.py; fixed missing +'/TransferThis/' in all KListViewItem ctors; +(not released) + +2002/7/19 10:07:00 jim +PyKDE-3.3.2 pre release: fixed KLineEditDlg bug; fixed +QValueList bug in MappedTypes (sipMapNewToSelf); +ugraded to sip/PyQt3.3.2; build system switched +to PyQt system (t/qmake, concat cpp);sip-in files +revised, changed to '.sip' in sip/kde* directories; +added %PrePythonCode for lib loading as req'd (not +released) + +2002/5/15 22:51:00 jim +PyKDE-3.2.4: namechange back to PyKDE; versioning +to KDE3.0.0; dropped KDE3.0beta2 support; upgraded +to sip 3.2.4;build system completely revised;docs +revised; kapp variable dropped from kdecore; other +fixes for gcc2.96 compatiblility + +2002/3/11 11:01:00 jim +3.0beta1: versioning to KDE3.0beta2; mapped types +for KSharedPtr descendants; KParts modified - now +works; KTrader added; support for long long added; +created PyKDE2generic and revised build system; +new examples; removed inaccessible member classes; +added kdesu (all), kdeprint (>= 2.2.0), kdefx (3.0); +code cleanup for mapped types, member code, added +virtual code; general cleanup + + +2002/2/13 09:15:00 jim +3.0alpha6: versioning to KDE2.2.2; repaired SLOT +assignment code in KStdAction, KAction,K*Action, +KAccelMenu, KToolBar, and KGlobalAccel with +"SIP_RXOBJ_CON, SIP_SLOT_CON(...)"; + + +2002/2/11 13:50:00 jim +3.0alpha5: versioning to KDE2.2.1; fixed bug in +KCmdLineArgs.init1 (Henrik Motakef) Modified +examples/pykless.py so KAboutData is used instead +of KMainWindow.helpMenu (3.0alpha5 was not +released) + +2002/2/7 14:25:00 jim +3.0alpha4: changed postproc to run from $PYTHONINTERP from +configure; removed unnecessary links to libdcop (from +kdebindings) -- only libDCOP is req'd (bug reports from +Henrik Motakef) + +2001/11/25 13:19:00 jim +3.0alpha3:versioning to KDE2.2.0 (new classes/methods); +dropped KSocket::initSockaddr (deprecated); KURLComboItem +to struct (no longer mapped type); + + +2001/11/19 22:12:00 jim +3.0alpha2:Added kparts, khtml, kjs, kspell; converted some +structs from mapped types to classes; revised all docs; revised +autoconf to look for top level KDE include dir; added some +missing classes and methods;bugs fixed;versioning to KDE2.1.2 +(minor changes); added add'l doc text;ready for release + + +Initial release diff --git a/Changelog b/Changelog new file mode 100644 index 0000000..4d56107 --- /dev/null +++ b/Changelog @@ -0,0 +1,779 @@ +------------------------------------------------------------------------ +r160 | (no author) | 2006-09-22 00:23:44 -0700 (Fri, 22 Sep 2006) | 2 lines + +kio/kfileshare changed in error - reverted + +------------------------------------------------------------------------ +r159 | (no author) | 2006-09-22 00:22:47 -0700 (Fri, 22 Sep 2006) | 3 lines + +Bumped min versions: sip >= 4.4.0, PyQt >= 3.16.0, +Qt >= 3.2.0 + +------------------------------------------------------------------------ +r158 | (no author) | 2006-09-22 00:16:56 -0700 (Fri, 22 Sep 2006) | 3 lines + +version error KMimeType::List; changed -x to -t for +%Platforms in configure.py, added "ALL" generic platform + +------------------------------------------------------------------------ +r157 | (no author) | 2006-09-21 23:19:39 -0700 (Thu, 21 Sep 2006) | 3 lines + +configure.py searches for lib64; non-functional PyKDE +version methods deleted (and in docs) + +------------------------------------------------------------------------ +r156 | (no author) | 2006-09-21 17:56:59 -0700 (Thu, 21 Sep 2006) | 2 lines + +update sip.in and diff files for kparts.konsole_part + +------------------------------------------------------------------------ +r155 | (no author) | 2006-09-21 17:54:25 -0700 (Thu, 21 Sep 2006) | 2 lines + +set konsolepart for KDE3.5.0 or greater only + +------------------------------------------------------------------------ +r154 | (no author) | 2006-09-21 14:12:29 -0700 (Thu, 21 Sep 2006) | 2 lines + +remove pyc files from svn + +------------------------------------------------------------------------ +r153 | (no author) | 2006-09-21 14:11:58 -0700 (Thu, 21 Sep 2006) | 2 lines + +konsole_part stuff + +------------------------------------------------------------------------ +r152 | (no author) | 2006-09-21 10:13:58 -0700 (Thu, 21 Sep 2006) | 3 lines + +added konsole_part.h to versions missing it; added +extra/kde353 to base fileset + +------------------------------------------------------------------------ +r150 | (no author) | 2006-09-21 08:38:43 -0700 (Thu, 21 Sep 2006) | 3 lines + +More cleanup for 3.16 release; added konsole_part again; +miscellaneous small bug fixes + +------------------------------------------------------------------------ +r149 | (no author) | 2006-09-19 16:26:43 -0700 (Tue, 19 Sep 2006) | 2 lines + +Upgrade to KDE 3.5.3 + +------------------------------------------------------------------------ +r148 | (no author) | 2006-09-19 16:24:33 -0700 (Tue, 19 Sep 2006) | 3 lines + +Cleaned up files for presip; minor fixes for 9/17 sip snapshot +Clean fileset - presip will build clean 3.5.3 from this set + +------------------------------------------------------------------------ +r145 | (no author) | 2006-05-26 21:49:46 -0700 (Fri, 26 May 2006) | 2 lines + +Deleted commented out QList code + +------------------------------------------------------------------------ +r144 | (no author) | 2006-05-26 20:39:51 -0700 (Fri, 26 May 2006) | 2 lines + +Eliminate obsolete QList/qlist.h references + +------------------------------------------------------------------------ +r143 | (no author) | 2006-05-25 01:54:27 -0700 (Thu, 25 May 2006) | 2 lines + +fix for KDE 3.1.x + +------------------------------------------------------------------------ +r142 | (no author) | 2006-05-22 19:26:54 -0700 (Mon, 22 May 2006) | 3 lines + +fixes for KDE < 3.2.0 in configure.py, kabc .diff files +and knotifydialog + +------------------------------------------------------------------------ +r141 | (no author) | 2006-05-22 00:38:44 -0700 (Mon, 22 May 2006) | 2 lines + +remove top-level (*mod.sip) files + +------------------------------------------------------------------------ +r140 | (no author) | 2006-05-21 20:27:45 -0700 (Sun, 21 May 2006) | 2 lines + +added extra/kde352 + +------------------------------------------------------------------------ +r139 | (no author) | 2006-05-21 20:06:53 -0700 (Sun, 21 May 2006) | 2 lines + +KDE 3.3.0 touchup + +------------------------------------------------------------------------ +r138 | (no author) | 2006-05-21 18:24:47 -0700 (Sun, 21 May 2006) | 2 lines + +clean up .sip.in files + +------------------------------------------------------------------------ +r137 | (no author) | 2006-05-21 15:46:13 -0700 (Sun, 21 May 2006) | 2 lines + +modifications for KDE 3.3.0 compatibility + +------------------------------------------------------------------------ +r136 | (no author) | 2006-05-21 04:59:30 -0700 (Sun, 21 May 2006) | 2 lines + +KDE 3.5.2 + +------------------------------------------------------------------------ +r135 | (no author) | 2006-05-20 15:27:11 -0700 (Sat, 20 May 2006) | 2 lines + +added 352 project file + +------------------------------------------------------------------------ +r133 | (no author) | 2006-05-19 00:53:46 -0700 (Fri, 19 May 2006) | 2 lines + +KDE 3.5.1 + +------------------------------------------------------------------------ +r132 | (no author) | 2006-01-27 13:00:18 -0800 (Fri, 27 Jan 2006) | 2 lines + +added missing method kabc/resourcefile.sip + +------------------------------------------------------------------------ +r131 | (no author) | 2006-01-26 19:27:45 -0800 (Thu, 26 Jan 2006) | 2 lines + +fully-qualified names in kabc/resourcefile.sip + +------------------------------------------------------------------------ +r130 | (no author) | 2006-01-26 16:53:44 -0800 (Thu, 26 Jan 2006) | 3 lines + +Put kabc/resourcefile.sip back into kabc for later +versions (missing in kdelibs tarball, but in kde3/include/kabc) + +------------------------------------------------------------------------ +r129 | (no author) | 2006-01-26 16:50:00 -0800 (Thu, 26 Jan 2006) | 3 lines + +Removed *mod.sip files from version control (user +generated) + +------------------------------------------------------------------------ +r128 | (no author) | 2006-01-26 16:46:27 -0800 (Thu, 26 Jan 2006) | 2 lines + +Updated kabc/resourcefile.sip - versioning + +------------------------------------------------------------------------ +r127 | (no author) | 2006-01-23 00:19:15 -0800 (Mon, 23 Jan 2006) | 2 lines + +typo in configure.py + +------------------------------------------------------------------------ +r126 | (no author) | 2006-01-22 23:08:28 -0800 (Sun, 22 Jan 2006) | 4 lines + +changed configure.py to concatenate by default for +gcc >= 4.0.3; deleted unneeded mapped type from +kio/global.sip + +------------------------------------------------------------------------ +r125 | (no author) | 2006-01-22 21:45:55 -0800 (Sun, 22 Jan 2006) | 8 lines + +modify configure.py to drop kresources for KDE < 3.2; +version Resource class in kabc/resource.sip; version +64 bit read/write stuff in kdecore/kconfigbase.sip; +version copy ctor in kdecore/kprocctrl.sip; version +out longlong/ulonglong mapped types in kio/global.sip; +version one method in kio/ksycoca.sip; fix line with +illegal char (?) in extensions/dcopexport.py + +------------------------------------------------------------------------ +r124 | (no author) | 2006-01-21 11:33:36 -0800 (Sat, 21 Jan 2006) | 2 lines + +removed kkeyserver.sip references from all .diff files + +------------------------------------------------------------------------ +r123 | (no author) | 2006-01-21 11:31:03 -0800 (Sat, 21 Jan 2006) | 2 lines + +updated docs + +------------------------------------------------------------------------ +r122 | (no author) | 2006-01-21 10:46:51 -0800 (Sat, 21 Jan 2006) | 2 lines + +fixed TOC links in classref doc files + +------------------------------------------------------------------------ +r121 | (no author) | 2006-01-21 01:20:30 -0800 (Sat, 21 Jan 2006) | 2 lines + +Initial doc update + +------------------------------------------------------------------------ +r120 | (no author) | 2006-01-20 17:37:06 -0800 (Fri, 20 Jan 2006) | 3 lines + +fixed QValueList code +and fixed dcopexport.py handling of void return types + +------------------------------------------------------------------------ +r119 | (no author) | 2006-01-20 12:14:10 -0800 (Fri, 20 Jan 2006) | 2 lines + +added X11 include + +------------------------------------------------------------------------ +r118 | (no author) | 2006-01-18 23:27:15 -0800 (Wed, 18 Jan 2006) | 2 lines + +backed out ambiguous/inaccessible methods in KConfigSkeleton + +------------------------------------------------------------------------ +r117 | (no author) | 2006-01-18 23:00:34 -0800 (Wed, 18 Jan 2006) | 3 lines + +correct versioning error on addItem* methods in +KConfigSkeleton + +------------------------------------------------------------------------ +r116 | (no author) | 2006-01-18 22:08:35 -0800 (Wed, 18 Jan 2006) | 3 lines + +fixes for backward compatibility with older KDE, gcc, +sip + +------------------------------------------------------------------------ +r115 | (no author) | 2006-01-18 21:12:02 -0800 (Wed, 18 Jan 2006) | 2 lines + +PyKDE for KDE 3.5.0 complete + +------------------------------------------------------------------------ +r114 | (no author) | 2006-01-17 01:51:20 -0800 (Tue, 17 Jan 2006) | 2 lines + +all modules working for KDE 3.4.3 - minor fixes + +------------------------------------------------------------------------ +r113 | (no author) | 2006-01-16 22:13:25 -0800 (Mon, 16 Jan 2006) | 2 lines + +kabc, kresources touchup + +------------------------------------------------------------------------ +r112 | (no author) | 2006-01-16 21:57:28 -0800 (Mon, 16 Jan 2006) | 2 lines + +update extra/ for KDE 3.5.0 + +------------------------------------------------------------------------ +r111 | (no author) | 2006-01-16 21:56:14 -0800 (Mon, 16 Jan 2006) | 2 lines + +minor fix + +------------------------------------------------------------------------ +r109 | (no author) | 2006-01-16 20:35:03 -0800 (Mon, 16 Jan 2006) | 2 lines + +yet more debugging kabc, kresources + +------------------------------------------------------------------------ +r108 | (no author) | 2006-01-16 20:22:55 -0800 (Mon, 16 Jan 2006) | 2 lines + +more debugging kabc, kresources + +------------------------------------------------------------------------ +r107 | (no author) | 2006-01-16 20:15:50 -0800 (Mon, 16 Jan 2006) | 2 lines + +more kabc, kresource debugging + +------------------------------------------------------------------------ +r106 | (no author) | 2006-01-16 20:12:37 -0800 (Mon, 16 Jan 2006) | 2 lines + +kabc, kresource debugging + +------------------------------------------------------------------------ +r105 | (no author) | 2006-01-16 20:08:37 -0800 (Mon, 16 Jan 2006) | 2 lines + +kabc, kresources through KDE 3.4.3 + +------------------------------------------------------------------------ +r104 | (no author) | 2006-01-16 18:33:10 -0800 (Mon, 16 Jan 2006) | 2 lines + +removed erroneous kresources .diff file + +------------------------------------------------------------------------ +r103 | (no author) | 2006-01-16 18:24:05 -0800 (Mon, 16 Jan 2006) | 3 lines + +more kabc and kresources debugging - compiles +through KDE 330 + +------------------------------------------------------------------------ +r102 | (no author) | 2006-01-16 00:47:43 -0800 (Mon, 16 Jan 2006) | 2 lines + +debug configure.py, kabc, kresources + +------------------------------------------------------------------------ +r101 | (no author) | 2006-01-15 22:27:45 -0800 (Sun, 15 Jan 2006) | 2 lines + +fixed typo in configure.py + +------------------------------------------------------------------------ +r100 | (no author) | 2006-01-15 22:22:50 -0800 (Sun, 15 Jan 2006) | 2 lines + +added kabc and kresources through KDE 3.3.0 + +------------------------------------------------------------------------ +r97 | (no author) | 2006-01-15 15:04:44 -0800 (Sun, 15 Jan 2006) | 2 lines + +upgrade to KDE 3.4.3 + +------------------------------------------------------------------------ +r95 | (no author) | 2006-01-15 10:47:15 -0800 (Sun, 15 Jan 2006) | 2 lines + +added 'extra' files + +------------------------------------------------------------------------ +r94 | (no author) | 2006-01-15 10:26:53 -0800 (Sun, 15 Jan 2006) | 2 lines + +Update to KDE 3.4.2 + +------------------------------------------------------------------------ +r93 | (no author) | 2006-01-14 14:12:52 -0800 (Sat, 14 Jan 2006) | 4 lines + +typedef'd IntList from QValueList so IntList() +can be used as intializer for defaults; removed C++ +for second ctors ItemInt64 and ItemUInt64 + +------------------------------------------------------------------------ +r92 | (no author) | 2006-01-14 14:03:35 -0800 (Sat, 14 Jan 2006) | 2 lines + +reversed kdecore/kconfigskeleton change + +------------------------------------------------------------------------ +r91 | (no author) | 2006-01-14 13:40:37 -0800 (Sat, 14 Jan 2006) | 2 lines + +remove erroneous files + +------------------------------------------------------------------------ +r90 | (no author) | 2006-01-14 13:38:39 -0800 (Sat, 14 Jan 2006) | 5 lines + +Fix sio syntax errors in kdecore/kconfigskeleton.sip +(QValueList() as arg default value) and +kio/slaveinterface.sip (%TypeHeaderCode in namespace +instead of %ModuleHeaderCode outside) + +------------------------------------------------------------------------ +r89 | (no author) | 2006-01-14 13:25:39 -0800 (Sat, 14 Jan 2006) | 5 lines + +Upgrade to sip snapshot (future sip 4.4 - sipTransferObj stuff +and eliminate most typedefs to prevent auto mapped types); add +patch code to KConfigSkeleton addItem* and Item* ctors for +scalar types;minor bugfixes (sipForceConvertToQString anachronisms) + +------------------------------------------------------------------------ +r88 | (no author) | 2005-12-18 11:20:55 -0800 (Sun, 18 Dec 2005) | 2 lines + +Version dirSize in kdirsize.sip for older KDE + +------------------------------------------------------------------------ +r87 | (no author) | 2005-12-18 09:51:33 -0800 (Sun, 18 Dec 2005) | 4 lines + +Fixed versioning bug for enum Other in kshortcutlist.sip; +added fully-qualified names to two 'Other' arguments in +method calls + +------------------------------------------------------------------------ +r86 | (no author) | 2005-12-17 14:44:01 -0800 (Sat, 17 Dec 2005) | 3 lines + +Removed incorrect (later version) %Includes from +sip.in files + +------------------------------------------------------------------------ +r85 | (no author) | 2005-12-17 14:24:58 -0800 (Sat, 17 Dec 2005) | 2 lines + +Added missing @mark@ to sip.in files + +------------------------------------------------------------------------ +r84 | (no author) | 2005-12-17 13:39:26 -0800 (Sat, 17 Dec 2005) | 3 lines + +Removed longlong/ulonglong from kzip (now in kdecore for +older KDE versions), and versioned QPtrList + +------------------------------------------------------------------------ +r83 | (no author) | 2005-12-17 13:28:33 -0800 (Sat, 17 Dec 2005) | 2 lines + +Extended longlong and ulonglong to earlier KDE versions + +------------------------------------------------------------------------ +r82 | (no author) | 2005-10-15 17:40:13 -0700 (Sat, 15 Oct 2005) | 2 lines + +Updated %Timeline for KDE 3.4.1 + +------------------------------------------------------------------------ +r81 | (no author) | 2005-10-15 17:38:51 -0700 (Sat, 15 Oct 2005) | 5 lines + +Create ChangeLog from svn logs +Change PyKDE version to 3.5.0 +Update KDE versions to 3.4.1 + + +------------------------------------------------------------------------ +r80 | (no author) | 2005-10-15 17:23:54 -0700 (Sat, 15 Oct 2005) | 3 lines + +Modified configure.py to detect compiler and +set default concatenation appropriately + +------------------------------------------------------------------------ +r79 | (no author) | 2005-10-15 17:22:13 -0700 (Sat, 15 Oct 2005) | 2 lines + +fixup + +------------------------------------------------------------------------ +r78 | (no author) | 2005-10-13 11:45:39 -0700 (Thu, 13 Oct 2005) | 8 lines + +Replaced sipNewCppToSelf instances with sipBuildResult +Cleaned up sip files for gcc 3.4.x/4.0.x compatibility +Dropped kdesu (undefined symbol problem) +Added -fno-rtti to kdeprint compile +Dropped driver.sip from kdeprint +Updated configure.py to use pyqtconfig.py for Qt environment info +Backed out konsolepart code (undefined symbol problem) + +------------------------------------------------------------------------ +r76 | (no author) | 2005-07-27 23:27:34 -0700 (Wed, 27 Jul 2005) | 2 lines + +update configure.py for konsolePart + +------------------------------------------------------------------------ +r75 | (no author) | 2005-07-27 21:46:51 -0700 (Wed, 27 Jul 2005) | 2 lines + +added ConvertToSubclassCode entry for konsolePart + +------------------------------------------------------------------------ +r74 | (no author) | 2005-07-26 16:58:53 -0700 (Tue, 26 Jul 2005) | 2 lines + +added konsolePart class + +------------------------------------------------------------------------ +r73 | (no author) | 2005-06-28 16:27:53 -0700 (Tue, 28 Jun 2005) | 2 lines + +KDE 3.4.1 upgrade + +------------------------------------------------------------------------ +r72 | (no author) | 2005-06-28 14:58:07 -0700 (Tue, 28 Jun 2005) | 2 lines + +added bool type to DCOP extensions + +------------------------------------------------------------------------ +r71 | (no author) | 2005-06-18 19:16:03 -0700 (Sat, 18 Jun 2005) | 2 lines + +Added explicit link of kdeui for kspell module + +------------------------------------------------------------------------ +r70 | (no author) | 2005-06-18 17:59:10 -0700 (Sat, 18 Jun 2005) | 2 lines + +Added private dtors to keep sip 4.2 happy + +------------------------------------------------------------------------ +r69 | (no author) | 2005-03-18 16:05:34 -0800 (Fri, 18 Mar 2005) | 3 lines + +fixed cast in KURL::List operator + that was causing problems +for gcc 4 + +------------------------------------------------------------------------ +r68 | (no author) | 2005-03-16 08:50:52 -0800 (Wed, 16 Mar 2005) | 2 lines + +patch for DCOP line breaks + +------------------------------------------------------------------------ +r67 | (no author) | 2005-03-16 08:49:37 -0800 (Wed, 16 Mar 2005) | 2 lines + +Fix typos in previous patch + +------------------------------------------------------------------------ +r66 | (no author) | 2005-03-15 16:07:18 -0800 (Tue, 15 Mar 2005) | 2 lines + +Added ConvertToSubclassCode blocks for kmdi, kutils + +------------------------------------------------------------------------ +r65 | (no author) | 2005-03-10 10:41:57 -0800 (Thu, 10 Mar 2005) | 2 lines + +added kkeyserver.h to extra/kde340 + +------------------------------------------------------------------------ +r64 | (no author) | 2005-03-08 14:14:58 -0800 (Tue, 08 Mar 2005) | 3 lines + +Fixed case problem in configure.py distro check; fixed default +value in KURL::cleanPath + +------------------------------------------------------------------------ +r62 | (no author) | 2005-03-06 21:31:50 -0800 (Sun, 06 Mar 2005) | 2 lines + +fixed emums in templates/annotated + +------------------------------------------------------------------------ +r61 | (no author) | 2005-03-06 21:30:48 -0800 (Sun, 06 Mar 2005) | 2 lines + +fixed enums in examples, templates; fixed KIconThemeDir ref + +------------------------------------------------------------------------ +r60 | (no author) | 2005-03-05 00:57:44 -0800 (Sat, 05 Mar 2005) | 2 lines + +added -L option for lib path + +------------------------------------------------------------------------ +r59 | (no author) | 2005-03-05 00:47:24 -0800 (Sat, 05 Mar 2005) | 2 lines + +removed kjs support + +------------------------------------------------------------------------ +r58 | (no author) | 2005-03-05 00:42:59 -0800 (Sat, 05 Mar 2005) | 2 lines + +update extra/kde340 h files + +------------------------------------------------------------------------ +r57 | (no author) | 2005-03-05 00:36:09 -0800 (Sat, 05 Mar 2005) | 2 lines + +update .easibox - extra/kde340 + +------------------------------------------------------------------------ +r56 | (no author) | 2005-03-05 00:34:34 -0800 (Sat, 05 Mar 2005) | 2 lines + +added extra/kde340 + +------------------------------------------------------------------------ +r55 | (no author) | 2005-03-04 23:58:35 -0800 (Fri, 04 Mar 2005) | 2 lines + +kmdimod.sip.in one more time + +------------------------------------------------------------------------ +r54 | (no author) | 2005-03-04 23:53:37 -0800 (Fri, 04 Mar 2005) | 2 lines + +kmdimod.sip.in again + +------------------------------------------------------------------------ +r53 | (no author) | 2005-03-04 23:37:43 -0800 (Fri, 04 Mar 2005) | 2 lines + +fixed kmdimod.sip.in and kutils.sip.in + +------------------------------------------------------------------------ +r52 | (no author) | 2005-03-04 23:08:29 -0800 (Fri, 04 Mar 2005) | 2 lines + +correct qt path in kutils.sip.in + +------------------------------------------------------------------------ +r51 | (no author) | 2005-03-04 23:04:54 -0800 (Fri, 04 Mar 2005) | 2 lines + +%Include bytearray.sip missing from kdecore.sip.in + +------------------------------------------------------------------------ +r50 | (no author) | 2005-03-04 22:59:10 -0800 (Fri, 04 Mar 2005) | 2 lines + +fixed missing %Feature in dcopmod.sip.in + +------------------------------------------------------------------------ +r49 | (no author) | 2005-03-04 22:55:43 -0800 (Fri, 04 Mar 2005) | 2 lines + +fixed paths in sip.in files + +------------------------------------------------------------------------ +r48 | (no author) | 2005-03-04 22:49:00 -0800 (Fri, 04 Mar 2005) | 2 lines + +doc updates for PyKDE 4.0 + +------------------------------------------------------------------------ +r47 | (no author) | 2005-03-04 22:28:30 -0800 (Fri, 04 Mar 2005) | 2 lines + +PyKDE 4.0 docs + +------------------------------------------------------------------------ +r46 | (no author) | 2005-03-04 22:02:00 -0800 (Fri, 04 Mar 2005) | 2 lines + +new configure.py for PyKDE 4.0 + +------------------------------------------------------------------------ +r45 | (no author) | 2005-03-04 22:00:42 -0800 (Fri, 04 Mar 2005) | 2 lines + +PyKDE 4.0 + +------------------------------------------------------------------------ +r42 | (no author) | 2005-03-01 16:20:01 -0800 (Tue, 01 Mar 2005) | 2 lines + +Fixed KActionCollection for Mandrake + +------------------------------------------------------------------------ +r41 | (no author) | 2005-03-01 14:55:49 -0800 (Tue, 01 Mar 2005) | 2 lines + +Fixed pid_t typing problems (QValueList) + +------------------------------------------------------------------------ +r40 | (no author) | 2005-03-01 13:34:04 -0800 (Tue, 01 Mar 2005) | 2 lines + +Changed pid_t type from int to long; enabled KParts::URLArgs::metaData () + +------------------------------------------------------------------------ +r39 | (no author) | 2005-02-28 23:49:09 -0800 (Mon, 28 Feb 2005) | 4 lines + +KFileMetaInfo typedefs removed; KProcessController versioning +corrected; KRecentDirs (and extra/ hfiles) added; pykde332.prj +added + +------------------------------------------------------------------------ +r38 | (no author) | 2005-02-28 22:34:42 -0800 (Mon, 28 Feb 2005) | 2 lines + +added KHTMLPart to %ConvertToSubclassCode; install kdepyuic + +------------------------------------------------------------------------ +r37 | (no author) | 2005-02-03 00:07:38 -0800 (Thu, 03 Feb 2005) | 2 lines + +Added KURL import to dcopext.py + +------------------------------------------------------------------------ +r36 | (no author) | 2005-01-04 11:38:01 -0800 (Tue, 04 Jan 2005) | 2 lines + +Add extra subdir + +------------------------------------------------------------------------ +r35 | (no author) | 2005-01-03 21:38:17 -0800 (Mon, 03 Jan 2005) | 2 lines + +KDE 3.3.2 and sip 4.2 updates + +------------------------------------------------------------------------ +r33 | (no author) | 2004-11-28 13:58:07 -0800 (Sun, 28 Nov 2004) | 2 lines + +Modified kmdidefines.sip for sip 4.2 enumerator name problem + +------------------------------------------------------------------------ +r32 | (no author) | 2004-11-28 13:56:19 -0800 (Sun, 28 Nov 2004) | 2 lines + +Removed pykdeconfig.py from source control + +------------------------------------------------------------------------ +r31 | (no author) | 2004-11-27 23:29:03 -0800 (Sat, 27 Nov 2004) | 2 lines + +docs + +------------------------------------------------------------------------ +r30 | (no author) | 2004-11-27 23:07:07 -0800 (Sat, 27 Nov 2004) | 2 lines + +docs + +------------------------------------------------------------------------ +r29 | (no author) | 2004-11-27 22:17:49 -0800 (Sat, 27 Nov 2004) | 2 lines + +Missing comma + +------------------------------------------------------------------------ +r28 | (no author) | 2004-11-27 22:16:34 -0800 (Sat, 27 Nov 2004) | 2 lines + +PyKDE for KDE 3.3.1 + +------------------------------------------------------------------------ +r27 | (no author) | 2004-11-27 21:16:55 -0800 (Sat, 27 Nov 2004) | 2 lines + +Revise project files + +------------------------------------------------------------------------ +r26 | (no author) | 2004-11-27 17:47:35 -0800 (Sat, 27 Nov 2004) | 2 lines + +Updating to KDE 3.3.1 + +------------------------------------------------------------------------ +r25 | (no author) | 2004-08-25 16:43:40 -0700 (Wed, 25 Aug 2004) | 2 lines + +Updated change log + +------------------------------------------------------------------------ +r24 | (no author) | 2004-08-25 16:41:33 -0700 (Wed, 25 Aug 2004) | 2 lines + +Updated numbering to 3.11.3 + +------------------------------------------------------------------------ +r23 | (no author) | 2004-08-25 15:34:33 -0700 (Wed, 25 Aug 2004) | 2 lines + +Added post proc for WId in kwinmodule signals + +------------------------------------------------------------------------ +r22 | (no author) | 2004-08-21 16:50:33 -0700 (Sat, 21 Aug 2004) | 2 lines + +same khtml_part patch as the previous rev ??? + +------------------------------------------------------------------------ +r21 | (no author) | 2004-08-21 16:42:06 -0700 (Sat, 21 Aug 2004) | 2 lines + +khtml_part: fixed enum values for sip3.10.2 with KDE 3.3.0 + +------------------------------------------------------------------------ +r20 | (no author) | 2004-08-21 01:10:05 -0700 (Sat, 21 Aug 2004) | 2 lines + +Update version numbers in docs + +------------------------------------------------------------------------ +r19 | (no author) | 2004-08-21 01:03:27 -0700 (Sat, 21 Aug 2004) | 2 lines + +docs for final release + +------------------------------------------------------------------------ +r18 | (no author) | 2004-08-20 18:50:22 -0700 (Fri, 20 Aug 2004) | 2 lines + +Fixed access specifier for copy ctor on KProcessController + +------------------------------------------------------------------------ +r17 | (no author) | 2004-08-20 10:00:27 -0700 (Fri, 20 Aug 2004) | 2 lines + +Updated to KDE 3.3.0 final + +------------------------------------------------------------------------ +r16 | (no author) | 2004-08-20 09:59:28 -0700 (Fri, 20 Aug 2004) | 2 lines + +Removed khtml_part.sip (different versions for different KDE versions) + +------------------------------------------------------------------------ +r15 | (no author) | 2004-08-19 23:52:31 -0700 (Thu, 19 Aug 2004) | 2 lines + +Added svnmerge, svnmergedocs + +------------------------------------------------------------------------ +r14 | (no author) | 2004-08-16 19:42:57 -0700 (Mon, 16 Aug 2004) | 2 lines + +change spaces to tabs in postproc/appQuit + +------------------------------------------------------------------------ +r13 | (no author) | 2004-08-16 19:41:25 -0700 (Mon, 16 Aug 2004) | 2 lines + +Save doc tool mods + +------------------------------------------------------------------------ +r12 | (no author) | 2004-08-16 17:44:37 -0700 (Mon, 16 Aug 2004) | 2 lines + +Updated docs + +------------------------------------------------------------------------ +r11 | (no author) | 2004-08-16 17:23:33 -0700 (Mon, 16 Aug 2004) | 2 lines + +Patched qvariant.h problem in kdecore + +------------------------------------------------------------------------ +r10 | (no author) | 2004-08-16 16:40:43 -0700 (Mon, 16 Aug 2004) | 2 lines + +Corrected kuniqueapplication + +------------------------------------------------------------------------ +r9 | (no author) | 2004-08-16 14:43:51 -0700 (Mon, 16 Aug 2004) | 2 lines + +Fixed h file problems for KDE3.0.x; fixed LONG_LONG for KDE3.0.x with Python 2.3 + +------------------------------------------------------------------------ +r8 | (no author) | 2004-08-15 21:49:27 -0700 (Sun, 15 Aug 2004) | 2 lines + +version before access hides access for KDE < 3.2 in kprocctrl.sip + +------------------------------------------------------------------------ +r7 | (no author) | 2004-08-15 12:21:23 -0700 (Sun, 15 Aug 2004) | 2 lines + +Corrected error - configure.py spippath defined in wrong place + +------------------------------------------------------------------------ +r6 | (no author) | 2004-08-15 12:19:37 -0700 (Sun, 15 Aug 2004) | 2 lines + +Added khtml_part.sip versions + +------------------------------------------------------------------------ +r5 | (no author) | 2004-08-15 12:14:27 -0700 (Sun, 15 Aug 2004) | 3 lines + +Changes to configure.py for khtml/kutils when KDE < 3.3.0 and +kutils isn't needed/supported + +------------------------------------------------------------------------ +r4 | (no author) | 2004-08-15 12:04:57 -0700 (Sun, 15 Aug 2004) | 2 lines + +Patches for building with -i option (no concatenation) + +------------------------------------------------------------------------ +r3 | (no author) | 2004-08-15 09:13:47 -0700 (Sun, 15 Aug 2004) | 2 lines + +Ready for KDE 3.3.0beta2 + +------------------------------------------------------------------------ +r2 | (no author) | 2004-08-13 22:35:48 -0700 (Fri, 13 Aug 2004) | 2 lines + +Initial import + +------------------------------------------------------------------------ diff --git a/INSTALL b/INSTALL new file mode 100644 index 0000000..499b923 --- /dev/null +++ b/INSTALL @@ -0,0 +1,14 @@ +This set of files will build all supported PyKDE versions. + +With the directory containing this file as the current directory, +do: + +>> python configure.py && make && su -c"make install" +>> python importTest.py + +python configure.py -h will list the command line switches. Most +installations will work as above. + +The full installation instructions are now in ./doc/install.html, which +can also be reached from the Table of Contents in ./doc/index.html. + diff --git a/NEWS b/NEWS new file mode 100644 index 0000000..998f8f0 --- /dev/null +++ b/NEWS @@ -0,0 +1,3 @@ +No news is good news + +Initial Release diff --git a/README b/README new file mode 100644 index 0000000..1a0c8f6 --- /dev/null +++ b/README @@ -0,0 +1,5 @@ +This set of files will build all supported PyKDE versions. + +The installation instructions are now in ./doc/install.html, which +can also be reached from the Table of Contents in ./doc/index.html. + diff --git a/THANKS b/THANKS new file mode 100644 index 0000000..d52be61 --- /dev/null +++ b/THANKS @@ -0,0 +1,109 @@ +Michael Franz Aigner + For basic KConfigSkeleton::addItem* and Item* + ctors (for scalar types) + +Simon Edwards + For putting PyKDE on KDE CVS + +Torsten Marek + For initial work on PyKDE for sip 4.0 that cut lots + of hours off the development time, and for several + bug reports; PyKDE/PyQt wiki + +Troy Melhase + kmdi advocacy and the example programs for kmdi and qxembed + +Steve Robson + Slackware bug reports and persistence + +The usual suspects: Hans-Peter Jansen, Simon Edwards, + Ricardo Javier Cardenes + General assistance and great suggestions on a number + of aspects of PyKDE + +PyKDE mailing list + As always, a lot of good comments, suggestions, bug + reports from people whose names I haven't listed + here (sorry for the omissions). + +David Boddie + More plugin related stuff (coming in future releases) + +Ricardo Javier Cardenes Medina + build.py bugs and incompatibilities with Python < 2.2) + +David Boddie + Panel applet original code and suggestions; Slackware + bug reports + +Han-Peter Jansen (again) + Top level sip file patch script, more build.py fixes + and enhancements + +Gordon Tyler (again) + Need for and implementation of ConvertToSubClassCode + code in PyKDE (subclassing related) + +Simon Edwards + Mandrake 9.1 rpms + +PyKDE mailing list + Encouragement, support useful criticisms and + patience + +Hans-Peter Jansen (again) + For build.py cleanup and enhancements (smp, dest dir, + etc.) + +Gordon Tyler + For build.py bug reports and 'sys.executable' patch + for example files, obsolete QList instances report, + createGUI fix in xmlmenu example + +Julian Rockey + For build.py bug reports + +Jonathan Gardner, Hans-Peter Janssen, Marc Schmitt + For rpm packages and the source forge website + (let me know if I've left out any names) + +Daniel Naber + For bug reports and testing (KSharedPtr related) + +Roberto Alsina + For an interim KDE3.1.1 compatible release + +Michael Lauer + For presip testing and suggestions + +Neil Stevens + KListViewItem constructor bug + +Bret McMillan + For RH info and assistance. + +Ricardo Javier Cardenes Medina + For the Debian port, 80% improvement in compile times and + other suggestions. + +Bill Soudan + For testing and bug fixes for gcc2.96/KDE2.2.0/RH7.2 (and + a lot of work on all of those) + +Boudewijn Rempt + For evangelising and providing so much support to other users. + +Matt Gerassimoff, John Filo, Boudewijn Rempt + For testing and excellent bug reports. + +Rupert Thurner + For pointing out what env is for. + +Henrik Motakef + For bug reports/fixes in PyKDE2 + +Yannick Gingras + For bug reports (gcc 2.96 related) + +KDE Developers + For a great platform to port to Python diff --git a/configure.py b/configure.py new file mode 100644 index 0000000..55a32ad --- /dev/null +++ b/configure.py @@ -0,0 +1,964 @@ +# This script generates the PyKDE configuration and generates the Makefiles. +# +# Copyright (c) 2004 +# Riverbank Computing Limited +# Jim Bublitz +# +# This file is part of PyKDE. +# +# This copy of PyKDE is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by the Free +# Software Foundation; either version 2, or (at your option) any later +# version. +# +# PyKDE is supplied in the hope that it will be useful, but WITHOUT ANY +# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +# details. +# +# You should have received a copy of the GNU General Public License along with +# PyKDE; see the file LICENSE. If not, write to the Free Software Foundation, +# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +import sys +import os +import string +import glob +import getopt +import shutil +import py_compile + +try: + import sipconfig +except: + print ("Can't find sipconfig.py (expected in sys.path)") + print ("Have you built the correct version of sip?") + sys.exit (-1) + +try: + import pyqtconfig +except: + sipconfig.error ("Can't find pyqtconfig.py in sys.path - exiting") + +topsrcdir = os.path.dirname(os.path.abspath(__file__)) +has_objdir = topsrcdir != os.path.abspath(os.path.curdir) +if not has_objdir: + topsrcdir = None + +def srcPath(filename): + if topsrcdir is not None: + return os.path.join(topsrcdir, filename) + return filename + +topsrcdir = os.path.dirname(os.path.abspath(__file__)) +has_objdir = topsrcdir != os.path.abspath(os.path.curdir) +if not has_objdir: + topsrcdir = None + +def srcPath(filename): + if topsrcdir is not None: + return os.path.join(topsrcdir, filename) + return filename + +# Get the SIP configuration. +sipcfg = sipconfig.Configuration() +pyqtcfg = pyqtconfig.Configuration () + +# Initialise the globals. +pykde_version = 0x031006 +pykde_version_str = "3.16.6" +kde_version = None +kde_version_str = None +kde_version_sfx = None +kde_version_extra = None +kde_max_version = 0x030503 + +sip_min_v4_version = 0x040900 +qt_min_version = 0x030200 +pyqt_min_version = 0x031000 + +kde_sip_flags = [] + +# Command line options. +opt_pykdemoddir = sipcfg.default_mod_dir +opt_pykdesipdir = sipcfg.default_sip_dir +opt_debug = 0 +opt_concat = None +opt_split = 1 +opt_releasegil = 0 +opt_tracing = 0 +opt_static = 0 +opt_kdebasedir = None +opt_kdelibdir = None +opt_kdeincdir = None +opt_dep_warnings = 0 +opt_libdir = "lib" +opt_dist_name = "" + +pykde_modules = ["dcop", "kdecore", "kdefx", "kdeui", "kio", "kresources", "kabc", "kutils", "kfile", "kparts",\ + "khtml", "kspell", "kdeprint", "kmdi"] #, "kspell2"] + +pykde_imports = { + "dcop": ["qt"], + "kdecore": ["qt", "dcop"], +# "kdesu": ["qt", "dcop", "kdecore"], + "kdefx": ["qt", "dcop", "kdecore"], + "kdeui": ["qt", "qtxml", "dcop", "kdecore", "kdefx"], + "kio": ["qt", "qtxml", "dcop", "kdecore", "kdefx", "kdeui"], + "kresources": ["qt", "qtxml", "dcop", "kdecore", "kdefx", "kdeui", "kio"], + "kabc": ["qt", "qtxml", "dcop", "kdecore", "kdefx", "kdeui", "kio", "kresources"], + "kutils": ["qt", "qtxml", "dcop", "kdecore", "kdefx", "kdeui", "kio"], + "kfile": ["qt", "qtxml", "dcop", "kdecore", "kdefx", "kdeui", "kio"], + "kparts": ["qt", "qtxml", "dcop", "kdecore", "kdefx", "kdeui", "kio"], + "khtml": ["qt", "qtxml", "dcop", "kdecore", "kdefx", "kdeui", "kutils", "kio", "kparts"], + "kspell": ["qt", "qtxml", "dcop", "kdecore", "kdefx", "kdeui", "kio", "kfile"], + "kdeprint": ["qt", "qtxml", "dcop", "kdecore", "kdefx", "kdeui"], + "kmdi": ["qt", "qtxml", "dcop", "kdecore", "kdefx", "kdeui", "kio", "kparts"], + "kspell2": ["qt", "qtxml", "dcop", "kdecore", "kdefx", "kdeui"] + } + +kde_includes = { + "dcop": None, + "kdecore": None, +# "kdesu": ["kdesu"], + "kdefx": None, + "kdeui": None, + "kio": ["kio"], + "kresources": ["kio", "../kio", "kresources"], + "kabc": ["kio", "../kio", "kresources", "kabc"], + "kfile": ["kio", "../kio"], + "kparts": ["kio", "../kio", "kparts"], + "khtml": ["kio", "../kio", "kparts", "dom"], + "kspell": ["kio"], + "kdeprint": ["kdeprint"], + "kmdi": ["kmdi", "kio", "../kio", "kparts"], + "kutils": ["kio", "../kio"] #, +# "kspell2": None + } + +postProcess = { + "dcop": None, + "kdecore": [["-p ", "kdecore", "-o", "appQuit", "kdecore.py"], + #["-p ", "kdecore", "-o", "fixQVariant", "kdecore.sbf"], + ["-p ", "kdecore", "-o", "fixSignal", "kdecorepart0.*"]], +# "kdesu": None, + "kdefx": None, + "kdeui": None, #[["-p ", "kdeui", "-o", "shpix", "sipkdeuiKSharedPixmap.cpp"]], + "kresources": None, + "kabc": None, + "kio": None, + "kfile": None, + "kparts": None, + "khtml": None, + "kspell": None, + "kdeprint": None, + "kmdi": None, + "kutils": None #, +# "kspell2": None + } + +opt_startModName = "" +opt_startmod = 0 +opt_endmod = len (pykde_modules) + +def check_gcc (): + global opt_concat + + os.system ("gcc -dumpversion > gccvers.txt") + m = open ('gccvers.txt', 'r') + vers = m.read ().strip () + m.close () + os.unlink ('gccvers.txt') + print "gcc version %s" % vers + + if opt_concat == None: + if vers < "4.0.0" or vers >= "4.0.3": + opt_concat = 1 + else: + opt_concat = 0 + + if opt_concat == 1: + print "concatenating files" + else: + print "no concatenation" + print + +def init_and_check_sanity (): + """ Do some initialization and check various versions and + attributes of sip and PyQt installations + """ + + check_gcc () + + # Check SIP is new enough. + if sipcfg.sip_version_str[:8] != "snapshot": + minv = None + + if sipcfg.sip_version < sip_min_v4_version: + minv = sip_min_v4_version + + if minv: + sipcfg.error("This version of PyKDE requires SIP v%s or later" % sipcfg.version_to_string(minv)) + + # Check SIP has Qt support enabled and check version + if pyqtcfg.qt_version == 0: + sipconfig.error("SIP has been built with Qt support disabled.") + if pyqtcfg.qt_version < qt_min_version: + sipconfig.error("SIP has been built with an unsupported Qt version (%s)"\ + % sipcfg.version_to_string (sipcfg.qt_version)) + + # Check PyQt built with libqt-mt + if pyqtcfg.qt_threaded == 0: + sipconfig.error ("PyKDE requires a threaded Qt version (libqt-mt)") + + # Check PyQt version + if pyqtcfg.pyqt_version < pyqt_min_version: + sipcfg.error("This version of PyKDE requires PyQt v%s or later"\ + % pyqtcfg.version_to_string(pyqtcfg.pyqt_version)) + + # find the libs, includes, and version info + check_kde_installation () + +def usage(rcode = 2): + """Display a usage message and exit. + + rcode is the return code passed back to the calling process. + """ + print "Usage:" + print " python configure.py [-h] [-c] [-d dir] [-g] [-j #] [-k] [-n dir] [-o dir] [-r] [-u] [-v dir] [-z file]" + print "where:" + print " -h displays this help message" + print " -c concatenates each module's C/C++ source files [default]" + print " -d dir where the PyKDE modules will be installed [default %s]" % opt_pykdemoddir + print " -g always release the GIL (SIP v3.x behaviour)" + print " -i no concatenation of each module's C/C++ source files" + print " -j # splits the concatenated C++ source files into # pieces [default 1]" + print " -k dir the KDE base directory" + print " -L dir the library directory name [default lib]" + print " -n dir the directory containing the KDE lib files" + print " -o dir the directory containing the KDE header files" + print " -r generates code with tracing enabled [default disabled]" + print " -u build with debugging symbols" + print " -v dir where the PyKDE .sip files will be installed [default %s]" % opt_pykdesipdir + print " -w turn on KDE deprecated object warnings when compiling [default off]" + print " -z file the name of a file containing command line flags" + + sys.exit(rcode) + + +def inform_user(stage): + """Tell the user the option values that are going to be used. + """ + if stage == 0: + print + print " PyKDE version %s" % pykde_version_str + print " -------" + print + sipconfig.inform ("Python include directory is %s" % sipcfg.py_inc_dir) + sipconfig.inform ("Python version is %s" % sipconfig.version_to_string (sipcfg.py_version)) + print + sipconfig.inform ("sip version is %s (%s)" % (sipcfg.sip_version_str, + sipconfig.version_to_string (sipcfg.sip_version))) + print + sipconfig.inform ("Qt directory is %s" % pyqtcfg.qt_dir) + sipconfig.inform ("Qt version is %s" % sipconfig.version_to_string (pyqtcfg.qt_version)) + print + sipconfig.inform ("PyQt directory is %s" % pyqtcfg.pyqt_sip_dir) + sipconfig.inform ("PyQt version is %s (%s)" % (pyqtcfg.pyqt_version_str, + sipconfig.version_to_string (pyqtcfg.pyqt_version))) + print + + elif stage == 1: + sipconfig.inform ("KDE base directory is %s" % opt_kdebasedir) + sipconfig.inform ("KDE include directory is %s" % opt_kdeincdir) + sipconfig.inform ("KDE lib directory is %s" % opt_kdelibdir) + sipconfig.inform ("lib directory is %s" % opt_libdir) + + elif stage == 2: + sipconfig.inform ("KDE version is %s (0x%x)" % (kde_version_str, kde_version)) + print + + sipconfig.inform("PyKDE modules will be installed in %s" % opt_pykdemoddir) + sipconfig.inform("PyKDE .sip files will be installed in %s" % opt_pykdesipdir) + print + + + +def create_config(module, template): + """Create the PyKDE configuration module so that it can be imported by build + scripts. + + module is the module file name. + template is the template file name. + """ + sipconfig.inform("Creating %s..." % module) + + content = { + "pykde_version": pykde_version, + "pykde_version_str": pykde_version_str, + "kde_version": kde_version, + "kde_version_str": kde_version_str, + "kde_version_sfx": kde_version_sfx, + "kde_version_extra": kde_version_extra, +# "pykde_bin_dir": opt_pykdebindir, + "pykde_mod_dir": opt_pykdemoddir, + "pykde_sip_dir": opt_pykdesipdir, + "pykde_modules": pykde_modules, + "pykde_kde_sip_flags": kde_sip_flags, + "kdebasedir": opt_kdebasedir, + "kdelibdir": opt_kdelibdir, + "libdir": opt_libdir, + "kdeincdir": opt_kdeincdir, + "pykde_modules": pykde_modules, + "dist_name": opt_dist_name + } + + sipconfig.create_config_module(module, template, content) + +def getKDEVersion (versFile): + if not os.path.isfile (versFile): + return + + major = None + minor = None + micro = None + + global kde_version, kde_version_str, kde_version_sfx, kde_version_extra + + f = open (versFile) + l = f.readline () + ok = 0 + + while not ok and l: + wl = string.split(l) + if len(wl) == 3 and wl[0] == "#define": + if wl[1] == "KDE_VERSION_MAJOR": + major = string.strip (wl[2]) + + if wl[1] == "KDE_VERSION_MINOR": + minor = string.strip (wl[2]) + + if wl[1] == "KDE_VERSION_RELEASE": + micro = string.strip (wl[2]) + + if major and minor and micro: + ok = 1 + + l = f.readline() + + f.close() + + if micro >= "90" and minor == "2": + micro = "0" + minor = "3" + + kde_version = (int (major) << 16) + (int (minor) << 8) + int (micro) + + if kde_version > kde_max_version: + print + sipconfig.inform ("*** True KDE version is %s -- building for KDE %s ***" % (hex (kde_version), hex (kde_max_version))) + print + kde_version = kde_max_version + major = hex ((kde_version & 0xff0000) >> 16) [ 2:] + minor = hex ((kde_version & 0x00ff00) >> 8) [ 2:] + micro = hex (kde_version & 0x0000ff) [ 2:] + + if ok: + kde_version_str = string.join ([major, minor, micro], ".") + kde_version_sfx = string.join (["-kde", major, minor, micro, ".diff"], "") + kde_version_extra = string.join (["kde", major, minor, micro], "") + else: + sipconfig.error ("KDE version not found in %s" % versFile) + + global postProcess + +def search (target, searchPath): + if not searchPath: + return + + path = None + for searchEntry in searchPath: + if os.path.isdir (searchEntry)\ + and (not target or os.path.isfile (os.path.join (searchEntry, target))): + path = searchEntry + break + + return path + +def discoverKDE3 (): + global opt_kdeincdir, opt_kdebasedir, opt_kdelibdir, opt_libdir + + if not opt_kdebasedir: + kdeSearchPaths = [] + libSearchPaths = [] + incSearchPaths = [] + + try: + kdeSearchPaths.append (os.environ ["KDEDIR"]) + except: + pass + kdeSearchPaths.append (os.path.join ("/opt", "kde3")) + kdeSearchPaths.append ("/usr") + + opt_kdebasedir = search (None, kdeSearchPaths) + + if not opt_kdelibdir: + libSearchPaths = [os.path.join (opt_kdebasedir, "lib"), os.path.join (opt_kdebasedir, "lib64"), os.path.join (opt_kdebasedir, opt_libdir)] +# print opt_libdir + opt_kdelibdir = search ("libkdecore.so", libSearchPaths) + + if not opt_kdeincdir: + incSearchPaths = [os.path.join (opt_kdebasedir, "include")] + incSearchPaths.append (os.path.join (opt_kdebasedir, "include", "kde")) # Red Hat + opt_kdeincdir = search ("kapplication.h", incSearchPaths) + +def check_kde_installation(): + """Check the KDE installation and get the version number + + """ + # Check the KDE header files have been installed. + + discoverKDE3 () + + if not opt_kdebasedir: + sipconfig.error ("Couldn't locate KDE3 base directory") + + if not opt_kdeincdir: + sipconfig.error ("Couldn't locate KDE3 include directory (%s is KDE base)" % opt_kdebasedir) + + if not opt_kdelibdir: + sipconfig.error ("Couldn't locate KDE3 lib directory (%s is KDE base)" % opt_kdebasedir) + + kdeversion_h = os.path.join(opt_kdeincdir, "kdeversion.h") + + inform_user (1) + + if not os.access(kdeversion_h, os.F_OK): + sipconfig.error("kdeversion.h could not be found in %s." % opt_kdeincdir) + + # Get the KDE version number. + getKDEVersion(kdeversion_h) + + inform_user (2) + +def create_top_level (mname): + """ Create the top level sip file mod.sip from mod.sip-in + and add/delete any %Included sip files per the current KDE version + """ + diff = srcPath(os.path.join ("sip", mname, mname + kde_version_sfx)) + plus = [] + minus = [] + if os.path.exists (diff): + d = open (diff) + line = d.readline() + while line: + if string.find (line, "+") == 0: + plus.append (line [2:]) + elif string.find (line, "-") == 0: + minus.append (line [2:]) + + line = d.readline() + + sipin = open (srcPath(os.path.join ("sip", mname, mname + "mod.sip.in"))) + sipout = open (srcPath(os.path.join ("sip", mname, mname + "mod.sip")), "w") + + line = sipin.readline() + while line: + if string.find (line, "%Include") == 0: + inclFound = 1 + if minus and line in minus: + line = sipin.readline() + continue + sipout.write (line) + elif string.find (line, "@mark@") == 0: + for p in plus: + sipout.write (p) + elif mname == "kabc" and kde_version < 0x030200 and string.find (line, "kresourcesmod.sip") >= 0: + pass + else: + sipout.write (line) + + line = sipin.readline() + + sipin.close () + sipout.close () + + if mname == "khtml": + # PyKDE < 3.3.0 doesn't provide kutils (and khtml doesn't need it) + sippath = srcPath(os.path.join ("sip", mname)) + if kde_version < 0x030300: + sipin = open (os.path.join (sippath, mname + "mod.sip")) + sipout = open (os.path.join (sippath, mname + "mod.sip.new"), "w") + for line in sipin: + if line.find ("kutilsmod.sip") > 0: + continue + sipout.write (line) + sipin.close () + sipout.close () + os.unlink (os.path.join (sippath, mname + "mod.sip")) + os.rename (os.path.join (sippath, mname + "mod.sip.new"), os.path.join (sippath, mname + "mod.sip")) + + os.system ("cp %s %s" % (os.path.join (sippath, "khtml_part.sip.323"), os.path.join (sippath, "khtml_part.sip"))) + + else: + os.system ("cp %s %s" % (os.path.join (sippath, "khtml_part.sip.330"), os.path.join (sippath, "khtml_part.sip"))) + + +def check_distribution (): + dist = glob.glob ("/etc/*-release") + + kde_sip_flags.append ("-t") + kde_sip_flags.append ("ALL") + + for file in dist: + if file.find ("andrake") > 0: + kde_sip_flags.remove ("ALL") + kde_sip_flags.append ("D_MANDRAKE") + +def set_sip_flags(): + """Set the SIP platform, version and feature flags. + """ + global kde_sip_flags + + check_distribution () + + kde_sip_flags.append (pyqtcfg.pyqt_qt_sip_flags) + + kdetags = { + 0x030001: "KDE_3_0_0", + 0x030003: "KDE_3_0_1", + 0x030100: "KDE_3_0_3", + 0x030101: "KDE_3_1_0", + 0x030102: "KDE_3_1_1", + 0x030103: "KDE_3_1_2", + 0x030104: "KDE_3_1_3", + 0x030105: "KDE_3_1_4", + 0x030200: "KDE_3_1_5", + 0x030201: "KDE_3_2_0", + 0x030202: "KDE_3_2_1", + 0x030203: "KDE_3_2_2", + 0x030300: "KDE_3_2_3", + 0x030301: "KDE_3_3_0", + 0x030302: "KDE_3_3_1", + 0x030400: "KDE_3_3_2", + 0x030401: "KDE_3_4_0", + 0x030402: "KDE_3_4_1", + 0x030403: "KDE_3_4_2", + 0x030500: "KDE_3_4_3", + 0x030501: "KDE_3_5_0", + 0x030502: "KDE_3_5_1", + 0x030503: "KDE_3_5_2", + 0x040000: "KDE_3_5_3" + + } + + kde_sip_flags.append("-t") + kde_sip_flags.append(sipconfig.version_to_sip_tag(kde_version, kdetags, "KDE")) + + +def generate_code(mname, imports=None, extra_cflags=None, extra_cxxflags=None, extra_define=None, extra_include_dir=None, extra_lflags=None, extra_lib_dir=None, extra_lib=None, opengl=0, sip_flags=None): + """Generate the code for a module. + + mname is the name of the module. + imports is the list of PyQt/PyKDE modules that this one %Imports. + extra_cflags is a string containing additional C compiler flags. + extra_cxxflags is a string containing additional C++ compiler flags. + extra_define is a name to add to the list of preprocessor defines. + extra_include_dir is the name of a directory to add to the list of include + directories. + extra_lflags is a string containing additional linker flags. + extra_lib_dir is the name of a directory to add to the list of library + directories. + extra_lib is the name of an extra library to add to the list of libraries. + opengl is set if the module needs OpenGL support. + sip_flags is the list of sip flags to use instead of the defaults. + """ + sipconfig.inform("Generating the C++ source for the %s module..." % mname) + + create_top_level (mname) + try: + #create_top_level (mname) + pass + except: + sipconfig.error ("Couldn't create top level sip file for %s" % mname) + + try: + shutil.rmtree(mname) + except: + pass + + try: + os.mkdir(mname) + except: + sipconfig.error("Unable to create the %s directory." % mname) + + # Build the SIP command line. + argv = [sipcfg.sip_bin] + argv.extend(kde_sip_flags) + + if opt_concat: + argv.append("-j") + if mname == "kdeui" and opt_split == 1: + splits = 2 + else: + splits = opt_split + argv.append(str(splits)) + + if opt_tracing: + argv.append("-r") + + if opt_releasegil: + argv.append("-g") + + argv.append("-c") + argv.append(mname) + + buildfile = os.path.join(mname, mname + ".sbf") + argv.append("-b") + argv.append(buildfile) + + argv.append("-I") + argv.append(srcPath("sip")) + + pyqtInclPathSeen = 0 + for mod in pykde_imports [mname]: + if string.find (mod, "q") == 0 and not pyqtInclPathSeen: + argv.append ("-I") + argv.append (pyqtcfg.pyqt_sip_dir) + pyqtInclPathSeen = 1 + + elif mod == "dcop" or string.find (mod, "k") == 0: + subdir = os.path.join(srcPath("sip"), mod) + argv.append("-I") + argv.append(subdir) + + # SIP assumes POSIX style path separators. + argv.append(srcPath(string.join(["sip", mname, mname + "mod.sip"], "/"))) + +# print string.join (argv) + # finally, run SIP and generate the C++ code + os.system (string.join(argv)) + + # post process the C++ code for QT_NO_TRANSLATION + if os.system (string.join ([sys.executable, srcPath("postproc")] + ['-p', mname, "-o", "tr", "*.cpp"])) != 0: + sipconfig.error ("Post processing of C++ code failed %s (tr)" % mname) + + # Check the result. + if not os.access(buildfile, os.F_OK): + sipconfig.error("Unable to create the C++ code.") + + if mname == "kdecore" and not opt_concat: + postProcess ["kdecore"][-1][-1] = "kdecorecmodule.*" + + # Compile the Python stub. + if sipcfg.sip_version < 0x040000: + sipconfig.inform("Compiling %s.py..." % mname) + py_compile.compile(os.path.join(mname, mname + ".py"), os.path.join(mname, mname + ".pyc")) + elif mname == "kdecore": + postProcess ["kdecore"][-1][-1] = "sip" + postProcess ["kdecore"][-1][-1] + + # needs to be here (not earlier) to catch .py files if any + if postProcess [mname]: + for s in postProcess [mname]: + if os.system (string.join ([sys.executable, srcPath("postproc")] + s)) != 0: + sipconfig.error ("Post processing of C++ code failed %s (%s)" % (mname, s [3])) + + # Generate the Makefile. + sipconfig.inform("Creating the Makefile for the %s module..." % mname) + + installs = [] + if mname == "dcop": + if has_objdir: + installs.append ([[srcPath("extensions/dcopext.py"), srcPath("extensions/dcopexport.py")], opt_pykdemoddir]) + else: + installs.append ([["../extensions/dcopext.py", "../extensions/dcopexport.py"], opt_pykdemoddir]) + + + if sipcfg.sip_version >= 0x040000: + warnings = 1 + else: + warnings = 0 + installs.append([[mname + ".py", mname + ".pyc"], opt_pykdemoddir]) + + sipfiles = [] + +# for s in glob.glob("sip/*.sip"): +# sipfiles.append(os.path.join("..", "sip", os.path.basename(s))) + for s in os.listdir (srcPath(os.path.join ("sip", mname))): + if s.endswith (".sip"): + if has_objdir: + sipfiles.append(srcPath(os.path.join("sip", mname, os.path.basename(s)))) + else: + sipfiles.append(os.path.join("..", "sip", mname, os.path.basename(s))) + + + + installs.append([sipfiles, os.path.join(opt_pykdesipdir, mname)]) + + makefile = sipconfig.SIPModuleMakefile( + configuration = pyqtcfg, + build_file = mname + ".sbf", + dir = mname, + install_dir = opt_pykdemoddir, + installs = installs, + qt = 1, + opengl = opengl, + warnings = warnings, + static = opt_static, + debug = opt_debug, + ) + + if extra_cflags: + makefile.extra_cflags.append(extra_cflags) + + if extra_cxxflags: + makefile.extra_cxxflags.append(extra_cxxflags) + + if opt_dep_warnings == 0: + makefile.extra_cflags.append ("-Wno-deprecated-declarations") + makefile.extra_cxxflags.append ("-Wno-deprecated-declarations") + + if extra_define: + makefile.extra_defines.append(extra_define) + + if has_objdir: + makefile.extra_include_dirs.append (srcPath(os.path.join("extra", kde_version_extra))) + else: + makefile.extra_include_dirs.append (os.path.join ("..", "extra", kde_version_extra)) + + makefile.extra_include_dirs.append (opt_kdeincdir) + if kde_includes [mname]: + for incdir in kde_includes [mname]: + if "/" not in incdir: + makefile.extra_include_dirs.append (os.path.join (opt_kdeincdir, incdir)) + else: + makefile.extra_include_dirs.append (incdir) + + if extra_include_dir: + makefile.extra_include_dirs.append(extra_include_dir) + + if extra_lflags: + makefile.extra_lflags.append(extra_lflags) + + makefile.extra_lib_dirs.append (opt_kdelibdir) + if extra_lib_dir: + makefile.extra_lib_dirs.append(extra_lib_dir) + + if extra_lib == "dcop": + extra_lib = "DCOP" + elif extra_lib == "kfile": + extra_lib = "kio" + + makefile.extra_libs.append(extra_lib) + if extra_lib == "kdefx": + makefile.extra_libs.append ("kdecore") + if extra_lib == "kspell": + makefile.extra_libs.append ("kdeui") + if extra_lib == "kabc" and kde_version >= 0x030200: + makefile.extra_libs.append ("kabc_file") + if extra_lib == "kparts" and kde_version >= 0x030500: + makefile.extra_lib_dirs.append (os.path.join (opt_kdelibdir, "kde3")) + + if extra_lib == "kdeprint": + makefile.extra_cflags.append ("-fno-rtti") + makefile.extra_cxxflags.append ("-fno-rtti") + + + if sipcfg.sip_version < 0x040000 and imports: + # Inter-module links. + for im in imports: + makefile.extra_lib_dirs.insert(0, os.path.join("..", im)) + makefile.extra_libs.insert(0, makefile.module_as_lib(im)) + + makefile.generate() + print + + +def create_makefiles(): + """Create the additional Makefiles. + """ + subdirs = pykde_modules[:] + + sipconfig.inform("Creating top level Makefile...") + + sipconfig.ParentMakefile( + configuration = pyqtcfg, + subdirs = subdirs, + installs= [("pykdeconfig.py", opt_pykdemoddir), (srcPath("contrib/kdepyuic"), sipcfg.default_bin_dir)] + ).generate() + + +def fileOpts (fn): + try: + optfile = open (fn, 'r') + except: + error ("Could not open option file %s" % (fn)) + + opts = [] + + for line in optfile.readlines (): + if (line [0] == '#') or (line == '\n'): + continue + elif line [0] == '-': + opts.append ((line [0:2], string.strip (line [2:]))) + else: + opts.append (("-" + line [0:1], string.strip (line [1:]))) + + print 'Additional options: ', + for opt, arg in opts: + print "%s %s " %(opt, arg) + print + + return opts + +def main(argv): + """Create the configuration module module. + + argv is the list of command line arguments. + """ + try: + optlist, args = getopt.getopt(argv[1:], "hcd:gij:k:L:l:n:o:ruv:wz:") + except getopt.GetoptError: + usage() + + global opt_pykdemoddir, opt_pykdesipdir + global opt_debug, opt_concat, opt_releasegil + global opt_split, opt_tracing, opt_startModName + global opt_startmod, opt_endmod + global opt_kdebasedir, opt_kdelibdir, opt_kdeincdir, opt_libdir + global pykde_modules, opt_dep_warnings, opt_dist_name + global pykde_imports, kde_includes + + # Look for '-z' first and process that switch + # (command line switches override file switches) + for opt, arg in optlist: + if opt == "-z": + optlist = fileOpts (arg) + optlist + break + elif opt == "-h": + usage (0) + else: + if args: usage() + + for opt, arg in optlist: + if opt == "-h": + usage(0) + + # turns on concatentation (on by default, here for consistency) + elif opt == "-c": + opt_concat = 1 + + elif opt == "-d": + opt_pykdemoddir = arg + elif opt == "-g": + opt_releasegil = 1 + + # turns off concatenation (on by default) + elif opt == "-i": + opt_concat = 0 + + elif opt == "-j": + try: + opt_split = int(arg) + except: + usage() + + elif opt == "-k": + opt_kdebasedir = arg + + elif opt == "-L": + opt_libdir = arg + + # allows build of single module (-lmodule) or all modules + # beginning at specified module (-lmodule:) + elif opt == "-l": + opt_startModName = arg + + elif opt == "-n": + opt_kdelibdir = arg + elif opt == "-o": + opt_kdeincdir = arg + elif opt == "-r": + opt_tracing = 1 + elif opt == "-u": + opt_debug = 1 + elif opt == "-v": + opt_pykdesipdir = arg + elif opt == "-w": + opt_dep_warnings = 1 + + inform_user (0) + init_and_check_sanity () + + # Set the SIP platform, version and feature flags. + if kde_version < 0x030200: + pykde_modules.remove ("kmdi") + pykde_modules.remove ("kresources") + pykde_imports ["kabc"].remove ("kresources") + kde_includes ["kabc"].remove ("kresources") + + if kde_version < 0x030300: + pykde_modules.remove ("kutils") +# pykde_modules.remove ("kspell2") + pykde_imports ["khtml"].remove ("kutils") + + opt_endmod = len (pykde_modules) + if opt_startModName != "": + if opt_startModName in pykde_modules: + single = opt_startModName [-1] != ":" + if not single: + opt_startModName = opt_startModName [:-1] + + try: + opt_startmod = pykde_modules.index (opt_startModName) + if single: + opt_endmod = opt_startmod + 1 + except: + sipconfig.error ("%s is not a PyKDE module" % opt_startModName) + + print "PyKDE modules to be built:\n %s\n" % string.join(pykde_modules [opt_startmod:opt_endmod]) + + set_sip_flags() + + for module in pykde_modules [opt_startmod:opt_endmod]: + generate_code (module, pykde_imports [module], extra_lib = module) + + # Create the additional Makefiles. + create_makefiles() + + # Install the configuration module. + create_config("pykdeconfig.py", srcPath("pykdeconfig.py.in")) + + +def reporting_msg (): + print """ +If reporting errors, paste all of the output above into your +message and post to the PyKDE mailing list at: + + mailto: PyKDE@mats.imk.fraunhofer.de + subscribe: http://mats.imk.fraunhofer.de/mailman/listinfo/pykde + +You can redirect the output into a file (> output.txt) if needed +""" + + + +############################################################################### +# The script starts here. +############################################################################### + +if __name__ == "__main__": + try: + main(sys.argv) + except SystemExit: + reporting_msg () + raise + except: + reporting_msg () + print \ +""" +An internal error occured. Please report all output from the program, +including the following traceback, to the PyKDE mailing list +""" + raise diff --git a/contrib/kdepyuic b/contrib/kdepyuic new file mode 100755 index 0000000..9110421 --- /dev/null +++ b/contrib/kdepyuic @@ -0,0 +1,163 @@ +#!/usr/bin/env python + +#Terms and Conditions + +#Copyright (c) 2002 Jim Bublitz (jbublitz@nwinternet.com) + +#Permission is hereby granted, free of charge, to any person obtaining a copy of +#this software and associated documentation files (the "Software"), to deal in +#the Software without restriction, including without limitation the rights to +#use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies +#of the Software, and to permit persons to whom the Software is furnished to do +#so, subject to the following conditions: + +#The above copyright notice and this permission notice shall be included in all +#copies or substantial portions of the Software. + +#THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +#IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +#FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +#COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +#IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +#CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#Except as contained in this notice, the names of the copyright holders shall not +#be used in advertising or otherwise to promote the sale, use or other dealings +#in this Software without prior written authorization from the copyright holders. + +# 2003/04/19: some minor bits from Hans-Peter Jansen, + +import sys, getopt, os, os.path, string + +#---------- globals ---------- + +FALSE = 0 +TRUE = not FALSE +addApp = TRUE +addImport = TRUE +pyuicPath = "pyuic" +filename = "" +i18nFunc = FALSE + + +# --------- support functions ---------- + +def getOptions (): + global filename + + opterr = 0 + shortOptions = 'aip:' + longOptions = ['noapp', 'noimport', 'pyuic=', 'usekdei18n'] + + try: + optlist, args = getopt.getopt (sys.argv [1:], shortOptions, longOptions) + except getopt.GetoptError: + opterr = 1 + optlist = [] + args = [] + + if opterr or (len (args) != 1): + print """\nUsage: + + kdepyuic [options] filename.ui + + Options: + -a, --noapp Don't add KApplication code + -i, --noimport Don't add kdecore, kdeui import statements + -p, --pyuic Path to pyuic program + --usekdei18n Adds KDEs default i18n functions to your Python KDE ui file + """ + return FALSE + + filename = args[0] + return checkOptions (optlist) + +def checkOptions (optlist): + global addApp, addImport, pyuicPath, i18nFunc + + for pair in optlist: + if (pair [0] == '--noapp') or (pair [0] == '-a'): + addApp = FALSE + + elif (pair [0] == '--noimport') or (pair [0] == '-i'): + addImport = FALSE + + elif (pair [0] == '--pyuic') or (pair [0] == '-p'): + pyuicPath = pair [1] + + if (pair [0] == '--usekdei18n'): + i18nFunc=TRUE + else: + i18nFunc=FALSE + + +# --------- operations ---------- + +def addimport (n): + if addApp: + n.write ('from kdecore import KCmdLineArgs, KApplication\n') + if i18nFunc: + n.write ('from kdecore import i18n\n') + n.write ('from kdeui import *\n\n') + + +def addapp (indent, n): + n.write (indent + 'appname = ""\n') + n.write (indent + 'description = ""\n') + n.write (indent + 'version = ""\n') + n.write ('\n') + n.write (indent + 'KCmdLineArgs.init (sys.argv, appname, description, version)\n') + n.write (indent + 'a = KApplication ()\n\n') + +def doPyuic (): + + fn = os.path.splitext (os.path.basename(filename)) [0] + '.py' + opts = "" + + if i18nFunc: + opts = opts + ' -tr i18n ' + + if addApp: + opts = opts + ' -x ' + + opts = opts + ' -o ' + + + if os.system (pyuicPath + opts + fn + ' ' + filename) != 0: + print pyuicPath + opts + fn + ' ' + filename + " failed" + sys.exit (-1) + + if addApp or addImport: + m = open (fn, 'r') + n = open (fn + '.tmp', 'w') + + buff = m.readlines () + + for line in buff: + if addImport and (string.strip (line) == 'from qt import *'): + n.write (line) + addimport (n) + elif addApp and (string.strip (line) == 'a = QApplication(sys.argv)'): + indent = 0 + while line [indent] in string.whitespace: + indent = indent + 1 + addapp (line[:indent], n) + elif string.find(line, " = KDatePicker(") != -1: + o = string.find(line, ",") + n.write (line[:o] + ",QDate.currentDate()" + line[o:]) + else: + n.write (line) + + m.close () + n.close () + + os.unlink (fn) + os.rename (fn + '.tmp', fn) + + print fn + ' written' + + +# --------- main ---------- + +getOptions () +doPyuic () diff --git a/doc/classref/allclasses.html b/doc/classref/allclasses.html new file mode 100644 index 0000000..f552687 --- /dev/null +++ b/doc/classref/allclasses.html @@ -0,0 +1,801 @@ + + + + + All PyKDE Classes + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

PyKDE Class Index


+
+ + + + +
Table of contents
Modules
All Classes
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
DCOPClient - KConfigBase
DCOPClient
DCOPObject
DCOPObjectProxy
DCOPRef
DCOPReply
DCOPStub
DOM.AbstractView
DOM.Attr
DOM.CDATASection
DOM.CSSCharsetRule
DOM.CSSException
DOM.CSSFontFaceRule
DOM.CSSImportRule
DOM.CSSMediaRule
DOM.CSSPageRule
DOM.CSSPrimitiveValue
DOM.CSSRule
DOM.CSSRuleList
DOM.CSSStyleDeclaration
DOM.CSSStyleRule
DOM.CSSStyleSheet
DOM.CSSUnknownRule
DOM.CSSValue
DOM.CSSValueList
DOM.CharacterData
DOM.Comment
DOM.Counter
DOM.CustomNodeFilter
DOM.DOMException
DOM.DOMImplementation
DOM.DOMString
DOM.Document
DOM.DocumentFragment
DOM.DocumentStyle
DOM.DocumentType
DOM.DomShared
DOM.Element
DOM.Entity
DOM.EntityReference
DOM.Event
DOM.EventException
DOM.EventListener
DOM.HTMLAnchorElement
DOM.HTMLAppletElement
DOM.HTMLAreaElement
DOM.HTMLBRElement
DOM.HTMLBaseElement
DOM.HTMLBaseFontElement
DOM.HTMLBlockquoteElement
DOM.HTMLBodyElement
DOM.HTMLButtonElement
DOM.HTMLCollection
DOM.HTMLDListElement
DOM.HTMLDirectoryElement
DOM.HTMLDivElement
DOM.HTMLDocument
DOM.HTMLElement
DOM.HTMLFieldSetElement
DOM.HTMLFontElement
DOM.HTMLFormElement
DOM.HTMLFrameElement
DOM.HTMLFrameSetElement
DOM.HTMLHRElement
DOM.HTMLHeadElement
DOM.HTMLHeadingElement
DOM.HTMLHtmlElement
DOM.HTMLIFrameElement
DOM.HTMLImageElement
DOM.HTMLInputElement
DOM.HTMLIsIndexElement
DOM.HTMLLIElement
DOM.HTMLLabelElement
DOM.HTMLLayerElement
DOM.HTMLLegendElement
DOM.HTMLLinkElement
DOM.HTMLMapElement
DOM.HTMLMenuElement
DOM.HTMLMetaElement
DOM.HTMLModElement
DOM.HTMLOListElement
DOM.HTMLObjectElement
DOM.HTMLOptGroupElement
DOM.HTMLOptionElement
DOM.HTMLParagraphElement
DOM.HTMLParamElement
DOM.HTMLPreElement
DOM.HTMLQuoteElement
DOM.HTMLScriptElement
DOM.HTMLSelectElement
DOM.HTMLStyleElement
DOM.HTMLTableCaptionElement
DOM.HTMLTableCellElement
DOM.HTMLTableColElement
DOM.HTMLTableElement
DOM.HTMLTableRowElement
DOM.HTMLTableSectionElement
DOM.HTMLTextAreaElement
DOM.HTMLTitleElement
DOM.HTMLUListElement
DOM.LinkStyle
DOM.MediaList
DOM.MouseEvent
DOM.MutationEvent
DOM.NamedNodeMap
DOM.Node
DOM.NodeFilter
DOM.NodeIterator
DOM.NodeList
DOM.Notation
DOM.ProcessingInstruction
DOM.RGBColor
DOM.Range
DOM.RangeException
DOM.Rect
DOM.StyleSheet
DOM.StyleSheetList
DOM.Text
DOM.TextEvent
DOM.TreeWalker
DOM.UIEvent
DOM
ExtTerminalInterface
KABC.Address
KABC.AddressBook
KABC.AddressLineEdit
KABC.AddresseeDialog
KABC.AddresseeItem
KABC.Agent
KABC.ConsoleErrorHandler
KABC.DistributionList.Entry
KABC.DistributionList
KABC.DistributionListDialog
KABC.DistributionListEditorWidget
KABC.DistributionListManager
KABC.DistributionListWatcher
KABC.EmailSelectDialog
KABC.EmailSelector
KABC.ErrorHandler
KABC.Field
KABC.FieldSortMode
KABC.Format
KABC.FormatFactory
KABC.FormatInfo
KABC.FormatPlugin
KABC.GUIErrorHandler
KABC.Geo
KABC.GuiErrorHandler
KABC.Key
KABC.LDAPUrl.Extension
KABC.LDAPUrl
KABC.LDIF
KABC.LDIFConverter
KABC.LdapClient
KABC.LdapConfigWidget
KABC.LdapObject
KABC.LdapResult
KABC.LdapSearch
KABC.Lock
KABC.LockNull
KABC.NameSortMode
KABC.PhoneNumber
KABC.Picture
KABC.Plugin
KABC.Resource
KABC.ResourceFile
KABC.ResourceSelectDialog
KABC.Secrecy
KABC.SortMode
KABC.SortingTraits.FamilyName
KABC.SortingTraits.FormattedName
KABC.SortingTraits.GivenName
KABC.SortingTraits.Name
KABC.SortingTraits.Uid
KABC.SortingTraits
KABC.Sound
KABC.StdAddressBook
KABC.Ticket
KABC.TimeZone
KABC.VCardConverter
KABC.VCardFormat
KABC.VCardFormatPlugin
KABC
KACL
KAboutApplication
KAboutContainer
KAboutContributor
KAboutData
KAboutDialog
KAboutKDE
KAboutPerson
KAboutTranslator
KAboutWidget
KAccel
KAccelAction
KAccelActions
KAccelBase
KAccelShortcutList
KAction
KActionCollection
KActionMenu
KActionPtrShortcutList
KActionSelector
KActionSeparator
KActionShortcutList
KActiveLabel
KAnimWidget
KAppTreeListItem
KApplication
KApplicationPropsPlugin
KApplicationTree
KAr
KArchive
KArchiveDirectory
KArchiveEntry
KArchiveFile
KArrowButton
KAsyncIO
KAudioPlayer
KAuthIcon
KBindingPropsPlugin
KBufferedIO
KBugReport
KButtonBox
KCModule
KCModuleInfo
KCModuleLoader
KCModuleProxy
KCMultiDialog
KCPUInfo
KCalendarSystem
KCalendarSystemFactory
KCatalogue
KCharMacroExpander
KCharSelect
KCharSelectTable
KCharsets
KClipboardSynchronizer
KCmdLineArgs
KCmdLineOptions
KCodecs
KColor
KColorCells
KColorCombo
KColorDialog
KColorDrag
KColorPatch
KCombiView
KComboBox
KCommand
KCommandHistory
KCompletion
KCompletionBase
KCompletionBox
KConfig
KConfigBackEnd
KConfigBase
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
KConfigDialog - KMdiTaskBar
KConfigDialog
KConfigDialogManager
KConfigGroup
KConfigGroupSaver
KConfigINIBackEnd
KConfigSkeleton.ItemBool
KConfigSkeleton.ItemColor
KConfigSkeleton.ItemDateTime
KConfigSkeleton.ItemDouble
KConfigSkeleton.ItemEnum.Choice
KConfigSkeleton.ItemEnum
KConfigSkeleton.ItemFont
KConfigSkeleton.ItemInt64
KConfigSkeleton.ItemInt
KConfigSkeleton.ItemIntList
KConfigSkeleton.ItemLong
KConfigSkeleton.ItemPassword
KConfigSkeleton.ItemPath
KConfigSkeleton.ItemPathList
KConfigSkeleton.ItemPoint
KConfigSkeleton.ItemProperty
KConfigSkeleton.ItemRect
KConfigSkeleton.ItemSize
KConfigSkeleton.ItemString
KConfigSkeleton.ItemStringList
KConfigSkeleton.ItemUInt64
KConfigSkeleton.ItemUInt
KConfigSkeleton.ItemULong
KConfigSkeleton
KConfigSkeletonItem
KContextMenuManager
KCrash
KCursor
KCustomMenuEditor
KDCOPActionProxy
KDCOPPropertyProxy
KDCOPServiceStarter
KDE
KDEDesktopMimeType.Service
KDEDesktopMimeType
KDataTool
KDataToolAction
KDataToolInfo
KDateInternalMonthPicker
KDateInternalWeekSelector
KDateInternalYearSelector
KDatePicker
KDateTable
KDateTimeWidget
KDateValidator
KDateWidget
KDesktopFile
KDesktopPropsPlugin
KDevicePropsPlugin
KDialog
KDialogBase
KDialogQueue
KDictSpellingHighlighter
KDirLister
KDirNotify
KDirOperator
KDirSelectDialog
KDirSize
KDirWatch
KDiskFreeSp
KDockArea
KDockMainWindow
KDockManager
KDockTabGroup
KDockWidget
KDockWidgetAbstractHeader
KDockWidgetAbstractHeaderDrag
KDockWidgetHeader
KDockWidgetHeaderDrag
KDoubleNumInput
KDoubleSpinBox
KDoubleValidator
KDualColorButton
KEMailSettings
KEdFind
KEdGotoLine
KEdReplace
KEdit
KEditListBox.CustomEditor
KEditListBox
KEditToolbar
KEditToolbarWidget
KEncodingFileDialog.Result
KEncodingFileDialog
KEntry
KEntryKey
KExecMimeType
KExecPropsPlugin
KFile
KFileDetailView
KFileDialog
KFileFilter
KFileFilterCombo
KFileIconView
KFileIconViewItem
KFileItem
KFileListViewItem
KFileMetaInfo
KFileMetaInfoGroup
KFileMetaInfoItem
KFileMetaInfoProvider
KFileMimeTypeInfo.GroupInfo
KFileMimeTypeInfo.ItemInfo
KFileMimeTypeInfo
KFileOpenWithHandler
KFilePermissionsPropsPlugin
KFilePlugin
KFilePreview
KFilePropsPlugin
KFileShare
KFileSharePropsPlugin
KFileTreeBranch
KFileTreeView
KFileTreeViewItem
KFileTreeViewToolTip
KFileView
KFileViewSignaler
KFilterBase
KFilterDev
KFind
KFindDialog
KFloatValidator
KFolderType
KFontAction
KFontChooser
KFontCombo
KFontDialog
KFontRequester
KFontSizeAction
KGlobal
KGlobalAccel
KGlobalSettings.KMouseSettings
KGlobalSettings
KGradientSelector
KGuiItem
KHSSelector
KHTMLPart
KHTMLSettings
KHTMLView
KHelpMenu
KHistoryCombo
KIDNA
KIO.AuthInfo
KIO.ChmodJob
KIO.Connection
KIO.CopyInfo
KIO.CopyJob
KIO.DavJob
KIO.DefaultProgress
KIO.DeleteJob
KIO.DirectCopyJob
KIO.FileCopyJob
KIO.ForwardingSlaveBase
KIO.Job
KIO.ListJob
KIO.MetaInfoJob
KIO.MimetypeJob
KIO.MkdirJob
KIO.MultiGetJob
KIO.NetAccess
KIO.NetRC.AutoLogin
KIO.NetRC
KIO.PasswordDialog
KIO.PreviewJob
KIO.ProgressBase
KIO.Scheduler
KIO.SessionData
KIO.SimpleJob
KIO.Slave
KIO.SlaveBase
KIO.SlaveConfig
KIO.SlaveInterface
KIO.StatJob
KIO.StatusbarProgress
KIO.StoredTransferJob
KIO.TCPSlaveBase
KIO.Task
KIO.TransferJob
KIO.UDSAtom
KIO
KIPC
KIcon
KIconButton
KIconCanvas
KIconDialog
KIconEffect
KIconLoader
KIconTheme
KIconView
KIconViewItem
KIconViewSearchLine
KImageEffect
KImageFilePreview
KImageIO
KInputDialog
KInstance
KIntNumInput
KIntSpinBox
KIntValidator
KJanusWidget
KKey
KKeyButton
KKeyChooser
KKeyDialog
KKeyNative
KKeySequence
KKeyServer.CodeMod
KKeyServer.Key
KKeyServer.Sym
KKeyServer.Variations
KKeyServer
KLanguageButton
KLed
KLibFactory
KLibLoader
KLibrary
KLineEdit
KLineEditDlg
KListAction
KListBox
KListView
KListViewItem
KListViewSearchLine
KListViewSearchLineWidget
KLocale
KLockFile
KMD4
KMD5
KMJob
KMJobManager.JobFilter
KMJobManager
KMManager
KMObject
KMPrinter
KMacroCommand
KMacroExpander
KMacroExpanderBase
KMainWindow
KMainWindowInterface
KMdi
KMdiChildArea
KMdiChildFrm
KMdiChildFrmCaption
KMdiChildFrmDragBeginEvent
KMdiChildFrmDragEndEvent
KMdiChildFrmMoveEvent
KMdiChildFrmResizeBeginEvent
KMdiChildFrmResizeEndEvent
KMdiChildView
KMdiMainFrm
KMdiTaskBar
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
KMdiTaskBarButton - konsolePart
KMdiTaskBarButton
KMdiToolViewAccessor
KMdiViewCloseEvent
KMdiWin32IconButton
KMenuBar
KMessageBox
KMimeMagic
KMimeMagicResult
KMimeSourceFactory
KMimeType.Format
KMimeType
KMimeTypeChooser
KMimeTypeChooserDialog
KMimeTypeValidator
KMountPoint
KMultiTabBar
KMultiTabBarButton
KMultiTabBarTab
KMultipleDrag
KNFSShare
KNamedCommand
KNotify.Application
KNotify.ApplicationList
KNotify.Event
KNotify.KNotifyWidget
KNotify
KNotifyClient.Instance
KNotifyClient
KNotifyDialog
KNumInput
KOCRDialog
KOCRDialogFactory
KOpenWithDlg
KOpenWithHandler
KPReloadObject
KPalette
KPaletteTable
KPanelAppMenu
KPanelApplet
KPanelExtension
KPanelMenu
KParts.BrowserExtension
KParts.BrowserHostExtension
KParts.BrowserInterface
KParts.BrowserRun
KParts.DockMainWindow
KParts.Event
KParts.Factory
KParts.GUIActivateEvent
KParts.HistoryProvider
KParts.LiveConnectExtension
KParts.MainWindow
KParts.OpenURLEvent
KParts.Part
KParts.PartActivateEvent
KParts.PartBase
KParts.PartManager
KParts.PartSelectEvent
KParts.Plugin.PluginInfo
KParts.Plugin
KParts.ReadOnlyPart
KParts.ReadWritePart
KParts.StatusBarExtension
KParts.URLArgs
KParts.WindowArgs
KParts
KPassivePopup
KPasswordDialog
KPasswordEdit
KPasteTextAction
KPixmap
KPixmapEffect
KPixmapIO
KPixmapProvider
KPixmapRegionSelectorDialog
KPixmapRegionSelectorWidget
KPixmapSplitter
KPluginInfo
KPluginSelector
KPopupFrame
KPopupMenu
KPopupTitle
KPreviewWidgetBase
KPrintAction
KPrintDialog
KPrintDialogPage
KPrinter
KProcIO
KProcess
KProcessController
KProcessRunner
KProgress
KProgressDialog
KPropertiesDialog
KPropsDlgPlugin
KProtocolInfo.ExtraField
KProtocolInfo
KProtocolManager
KPushButton
KRES.ConfigDialog
KRES.ConfigWidget
KRES.Factory
KRES.PluginFactoryBase
KRES.Resource
KRES.ResourcePageInfo
KRES.SelectDialog
KRES
KRFCDate
KRadioAction
KRandomSequence
KRecentDocument
KRecentFilesAction
KRegExp
KRemoteEncoding
KReplace
KReplaceDialog
KRestrictedLine
KRootPermsIcon
KRootPixmap
KRootProp
KRuler
KRun
KSambaShare
KSaveFile
KScanDialog
KScanDialogFactory
KScrollView
KSelectAction
KSelectionOwner
KSelectionWatcher
KSelector
KSeparator
KService
KServiceGroup
KServiceOffer
KServiceSeparator
KServiceType
KServiceTypeProfile
KSessionManaged
KShared
KSharedConfig
KShell
KShellCompletion
KShellProcess
KShortcut
KShortcutDialog
KShortcutList
KShred
KSimpleConfig
KSimpleFileFilter
KSpell
KSpellConfig
KSpellDlg
KSpellingHighlighter
KSplashScreen
KSqueezedTextLabel
KStartupInfo
KStartupInfoData
KStartupInfoId
KStaticDeleterBase
KStatusBar
KStatusBarLabel
KStdAccel.ShortcutList
KStdAccel
KStdAction
KStdGuiItem
KStringHandler
KStringListValidator
KStyle
KSycoca
KSycocaEntry
KSycocaFactory
KSyntaxHighlighter
KSystemTray
KTabBar
KTabCtl
KTabWidget
KTar
KTempDir
KTempFile
KTextBrowser
KTextEdit
KTimeWidget
KTimezone
KTimezoneDetails
KTimezoneSource
KTimezoneWidget
KTimezones
KTipDatabase
KTipDialog
KToggleAction
KToggleFullScreenAction
KToggleToolBarAction
KToolBar
KToolBarButton
KToolBarLabelAction
KToolBarPopupAction
KToolBarRadioGroup
KToolBarSeparator
KTrader
KURIFilter
KURIFilterData
KURIFilterPlugin
KURL.List
KURL
KURLBar
KURLBarItem
KURLBarItemDialog
KURLBarListBox
KURLComboBox
KURLComboRequester
KURLCompletion
KURLDrag
KURLLabel
KURLPixmapProvider
KURLPropsPlugin
KURLRequester
KURLRequesterDlg
KUniqueApplication
KValueSelector
KWidgetAction
KWindowInfo
KWindowListMenu
KWizard
KWordMacroExpander
KWordWrap
KWritePermsIcon
KXMLGUIBuilder
KXMLGUIClient.StateChange
KXMLGUIClient
KXMLGUIFactory
KXYSelector
KZip
KZipFileEntry
KZoneAllocator
NET
NETExtendedStrut
NETIcon
NETPoint
NETRect
NETRootInfo2
NETRootInfo3
NETRootInfo4
NETRootInfo
NETSize
NETStrut
NETWinInfo
Observer
QXEmbed
RenameDlgPlugin
TerminalInterface
ThumbCreator
konsoleBrowserExtension
konsoleFactory
konsolePart
+ + diff --git a/doc/classref/dcop/DCOPClient.html b/doc/classref/dcop/DCOPClient.html new file mode 100644 index 0000000..57faa27 --- /dev/null +++ b/doc/classref/dcop/DCOPClient.html @@ -0,0 +1,456 @@ + + + + + class DCOPClient + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DCOPClient


+
+ + + + + +
Table of contents
Modules
dcop Classes
All Classes
+
+ + + + + + + + + + +
Moduledcop
ClassDCOPClient
InheritsQObject
+

methods

    +
  • DCOPClient () +
    +
    returns a DCOPClient instance

  • +
  • acceptCalls () +
    +
    returns (bool)

  • +
  • appId () +
    +
    returns (QCString)

  • +
  • applicationRegistered (appId) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    appIdQCString
    +

  • +
  • applicationRemoved (appId) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    appIdQCString
    +

  • +
  • attach () +
    +
    returns (bool)

  • +
  • attachFailed (msg) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    msgQString
    +

  • +
  • beginTransaction () +
    +
    returns (DCOPClientTransaction)

  • +
  • bindToApp () +
    +
    returns nothing

  • +
  • blockUserInput (block) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    blockbool
    +

  • +
  • call (remApp, remObj, remFun, data, useEventLoop, timeout) +
    + +
    returns (bool) replyType (QCString) replyData (QByteArray)
    In versions KDE 3.2.0 and above only
    + + + + + + +
    ArgumentTypeDefault
    remAppQCString
    remObjQCString
    remFunQCString
    dataQByteArray
    useEventLoopbool
    timeoutint
    +

  • +
  • call (remApp, remObj, remFun, data, useEventLoop = 0) +
    +
    returns (bool) replyType (QCString) replyData (QByteArray)
    + + + + + +
    ArgumentTypeDefault
    remAppQCString
    remObjQCString
    remFunQCString
    dataQByteArray
    useEventLoopbool0
    +

  • +
  • callAsync (remApp, remObj, remFun, data, callBackObj, callBackSlot) +
    + +
    returns (int)
    In versions KDE 3.3.0 and above only
    + + + + + + +
    ArgumentTypeDefault
    remAppQCString
    remObjQCString
    remFunQCString
    dataQByteArray
    callBackObjQObject
    callBackSlotchar
    +

  • +
  • callAsync (a0, a1, a2, a3, slot, ) +
    + +
    returns (int)
    In versions KDE 3.2.0 and above, but less than KDE 3.3.0
    + + + + + +
    ArgumentTypeDefault
    a0QCString
    a1QCString
    a2QCString
    a3QByteArray
    slotSLOT (Python callable)
    +

  • +
  • callBack (a0, a1, a2) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + + + +
    ArgumentTypeDefault
    a0int
    a1QCString
    a2QByteArray
    +

  • +
  • connectDCOPSignal (sender, senderObj, signal, receiverObj, slot, Volatile) +
    +
    returns (bool)
    + + + + + + +
    ArgumentTypeDefault
    senderQCString
    senderObjQCString
    signalQCString
    receiverObjQCString
    slotQCString
    Volatilebool
    +

  • +
  • connectDCOPSignal (sender, signal, receiverObj, slot, Volatile) +
    +
    returns (bool)
    + + + + + +
    ArgumentTypeDefault
    senderQCString
    signalQCString
    receiverObjQCString
    slotQCString
    Volatilebool
    +

  • +
  • dcopServerFile (hostname = 0) +
    + +
    returns (QCString)
    static
    + +
    ArgumentTypeDefault
    hostnameQCString0
    +

  • +
  • dcopServerFileOld (hostname = 0) +
    + +
    returns (QCString)
    static
    + +
    ArgumentTypeDefault
    hostnameQCString0
    +

  • +
  • defaultObject () +
    +
    returns (QCString)

  • +
  • detach () +
    +
    returns (bool)

  • +
  • disconnectDCOPSignal (sender, senderObj, signal, receiverObj, slot) +
    +
    returns (bool)
    + + + + + +
    ArgumentTypeDefault
    senderQCString
    senderObjQCString
    signalQCString
    receiverObjQCString
    slotQCString
    +

  • +
  • disconnectDCOPSignal (sender, signal, receiverObj, slot) +
    +
    returns (bool)
    + + + + +
    ArgumentTypeDefault
    senderQCString
    signalQCString
    receiverObjQCString
    slotQCString
    +

  • +
  • emergencyClose () +
    + +
    returns nothing
    static

  • +
  • emitDCOPSignal (object, signal, data) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    objectQCString
    signalQCString
    dataQByteArray
    +

  • +
  • emitDCOPSignal (signal, data) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    signalQCString
    dataQByteArray
    +

  • +
  • endTransaction (t, replyType, replyData) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    tDCOPClientTransaction
    replyTypeQCString
    replyDataQByteArray
    +

  • +
  • find (app, obj, fun, data) +
    +
    returns (bool) replyType (QCString) replyData (QByteArray)
    + + + + +
    ArgumentTypeDefault
    appQCString
    objQCString
    funQCString
    dataQByteArray
    +

  • +
  • findLocalClient (_appId) +
    + + +
    returns (DCOPClient)
    In versions KDE 3.2.0 and above only
    static
    + +
    ArgumentTypeDefault
    _appIdQCString
    +

  • +
  • findObject (remApp, remObj, remFun, data, useEventLoop, timeout) +
    + +
    returns (bool) foundApp (QCString) foundObj (QCString)
    In versions KDE 3.2.0 and above only
    + + + + + + +
    ArgumentTypeDefault
    remAppQCString
    remObjQCString
    remFunQCString
    dataQByteArray
    useEventLoopbool
    timeoutint
    +

  • +
  • findObject (remApp, remObj, remFun, data, useEventLoop = 0) +
    +
    returns (bool) foundApp (QCString) foundObj (QCString)
    + + + + + +
    ArgumentTypeDefault
    remAppQCString
    remObjQCString
    remFunQCString
    dataQByteArray
    useEventLoopbool0
    +

  • +
  • handleAsyncReply (replyStruct) +
    Not Implemented
    +

  • +
  • iceauthPath () +
    + + +
    returns (QCString)
    In versions KDE 3.2.0 and above only
    static

  • +
  • isApplicationRegistered (remApp) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    remAppQCString
    +

  • +
  • isAttached () +
    +
    returns (bool)

  • +
  • isAttachedToForeignServer () +
    +
    returns (bool)

  • +
  • isRegistered () +
    +
    returns (bool)

  • +
  • isSuspended () +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above only

  • +
  • mainClient () +
    + +
    returns (DCOPClient)
    static

  • +
  • normalizeFunctionSignature (fun) +
    + +
    returns (QCString)
    static
    + +
    ArgumentTypeDefault
    funQCString
    +

  • +
  • postMortemFunction () +
    + +
    returns (char)
    static

  • +
  • postMortemObject () +
    + +
    returns (char)
    static

  • +
  • postMortemSender () +
    + +
    returns (char)
    static

  • +
  • process (fun, data, replyType, replyData) +
    +
    returns (bool)
    + + + + +
    ArgumentTypeDefault
    funQCString
    dataQByteArray
    replyTypeQCString
    replyDataQByteArray
    +

  • +
  • processSocketData (socknum) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    socknumint
    +

  • +
  • qtBridgeEnabled () +
    + +
    returns (bool)
    In versions KDE 3.0.3 and above only

  • +
  • receive (app, obj, fun, data) +
    +
    returns (bool) replyType (QCString) replyData (QByteArray)
    + + + + +
    ArgumentTypeDefault
    appQCString
    objQCString
    funQCString
    dataQByteArray
    +

  • +
  • registerAs (appId, addPID = 1) +
    +
    returns (QCString)
    + + +
    ArgumentTypeDefault
    appIdQCString
    addPIDbool1
    +

  • +
  • registeredApplications () +
    +
    returns (QCStringList)

  • +
  • remoteFunctions (remApp, remObj) +
    +
    returns (QCStringList) ok (bool)
    + + +
    ArgumentTypeDefault
    remAppQCString
    remObjQCString
    +

  • +
  • remoteInterfaces (remApp, remObj) +
    +
    returns (QCStringList) ok (bool)
    + + +
    ArgumentTypeDefault
    remAppQCString
    remObjQCString
    +

  • +
  • remoteObjects (remApp) +
    +
    returns (QCStringList) ok (bool)
    + +
    ArgumentTypeDefault
    remAppQCString
    +

  • +
  • resume () +
    +
    returns nothing

  • +
  • send (remApp, remObj, remFun, data) +
    +
    returns (bool)
    + + + + +
    ArgumentTypeDefault
    remAppQCString
    remObjQCString
    remFunQCString
    dataQByteArray
    +

  • +
  • send (remApp, remObj, remFun, data) +
    +
    returns (bool)
    + + + + +
    ArgumentTypeDefault
    remAppQCString
    remObjQCString
    remFunQCString
    dataQString
    +

  • +
  • senderId () +
    +
    returns (QCString)

  • +
  • setAcceptCalls (b) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    bbool
    +

  • +
  • setDaemonMode (daemonMode) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    daemonModebool
    +

  • +
  • setDefaultObject (objId) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    objIdQCString
    +

  • +
  • setMainClient (mainClient) +
    + +
    returns nothing
    static
    + +
    ArgumentTypeDefault
    mainClientDCOPClient
    +

  • +
  • setNotifications (enabled) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    enabledbool
    +

  • +
  • setPriorityCall (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • setQtBridgeEnabled (b) +
    + +
    returns nothing
    In versions KDE 3.0.3 and above only
    + +
    ArgumentTypeDefault
    bbool
    +

  • +
  • setServerAddress (addr) +
    + +
    returns nothing
    static
    + +
    ArgumentTypeDefault
    addrQCString
    +

  • +
  • socket () +
    +
    returns (int)

  • +
  • suspend () +
    +
    returns nothing

  • +
  • transactionId () +
    +
    returns (Q_INT32)

  • +
+ + + diff --git a/doc/classref/dcop/DCOPObject.html b/doc/classref/dcop/DCOPObject.html new file mode 100644 index 0000000..c4eb432 --- /dev/null +++ b/doc/classref/dcop/DCOPObject.html @@ -0,0 +1,160 @@ + + + + + class DCOPObject + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DCOPObject


+
+ + + + + +
Table of contents
Modules
dcop Classes
All Classes
+
+ + + + + + + + + + +
Moduledcop
ClassDCOPObject
Inherits
+

methods

    +
  • DCOPObject () +
    +
    returns a DCOPObject instance

  • +
  • DCOPObject (obj) +
    +
    returns a DCOPObject instance
    + +
    ArgumentTypeDefault
    objQObject
    +

  • +
  • DCOPObject (objId) +
    +
    returns a DCOPObject instance
    + +
    ArgumentTypeDefault
    objIdQCString
    +

  • +
  • callingDcopClient () +
    + +
    returns (DCOPClient)
    In versions KDE 3.1.0 and above only

  • +
  • connectDCOPSignal (sender, senderObj, signal, slot, Volatile) +
    +
    returns (bool)
    + + + + + +
    ArgumentTypeDefault
    senderQCString
    senderObjQCString
    signalQCString
    slotQCString
    Volatilebool
    +

  • +
  • disconnectDCOPSignal (sender, senderObj, signal, slot) +
    +
    returns (bool)
    + + + + +
    ArgumentTypeDefault
    senderQCString
    senderObjQCString
    signalQCString
    slotQCString
    +

  • +
  • emitDCOPSignal (signal, data) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    signalQCString
    dataQByteArray
    +

  • +
  • find (objId) +
    + +
    returns (DCOPObject)
    static
    + +
    ArgumentTypeDefault
    objIdQCString
    +

  • +
  • functions () +
    +
    returns (QCStringList)

  • +
  • functionsDynamic () +
    +
    returns (QCStringList)

  • +
  • hasObject (objId) +
    + +
    returns (bool)
    static
    + +
    ArgumentTypeDefault
    objIdQCString
    +

  • +
  • interfaces () +
    +
    returns (QCStringList)

  • +
  • interfacesDynamic () +
    +
    returns (QCStringList)

  • +
  • match (partialId) +
    + +
    returns (QPtrList)
    static
    + +
    ArgumentTypeDefault
    partialIdQCString
    +

  • +
  • objId () +
    +
    returns (QCString)

  • +
  • objectName (obj) +
    + +
    returns (QCString)
    static
    + +
    ArgumentTypeDefault
    objQObject
    +

  • +
  • process (fun, data, replyType, replyData) +
    +
    returns (bool)
    + + + + +
    ArgumentTypeDefault
    funQCString
    dataQByteArray
    replyTypeQCString
    replyDataQByteArray
    +

  • +
  • processDynamic (fun, data, replyType, replyData) +
    +
    returns (bool)
    + + + + +
    ArgumentTypeDefault
    funQCString
    dataQByteArray
    replyTypeQCString
    replyDataQByteArray
    +

  • +
  • setCallingDcopClient (a0) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    a0DCOPClient
    +

  • +
  • setObjId (objId) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    objIdQCString
    +

  • +
+ + + diff --git a/doc/classref/dcop/DCOPObjectProxy.html b/doc/classref/dcop/DCOPObjectProxy.html new file mode 100644 index 0000000..4344e35 --- /dev/null +++ b/doc/classref/dcop/DCOPObjectProxy.html @@ -0,0 +1,60 @@ + + + + + class DCOPObjectProxy + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DCOPObjectProxy


+
+ + + + + +
Table of contents
Modules
dcop Classes
All Classes
+
+ + + + + + + + + + +
Moduledcop
ClassDCOPObjectProxy
Inherits
+

methods

    +
  • DCOPObjectProxy () +
    +
    returns a DCOPObjectProxy instance

  • +
  • DCOPObjectProxy (a0) +
    +
    returns a DCOPObjectProxy instance
    + +
    ArgumentTypeDefault
    a0DCOPClient
    +

  • +
  • process (obj, fun, data, replyType, replyData) +
    +
    returns (bool)
    + + + + + +
    ArgumentTypeDefault
    objQCString
    funQCString
    dataQByteArray
    replyTypeQCString
    replyDataQByteArray
    +

  • +
+ + + diff --git a/doc/classref/dcop/DCOPRef.html b/doc/classref/dcop/DCOPRef.html new file mode 100644 index 0000000..4bdb970 --- /dev/null +++ b/doc/classref/dcop/DCOPRef.html @@ -0,0 +1,142 @@ + + + + + class DCOPRef + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DCOPRef


+
+ + + + + +
Table of contents
Modules
dcop Classes
All Classes
+
+ + + + + + + + + + +
Moduledcop
ClassDCOPRef
Inherits
+

enums

    +
  • EventLoopFlag = {NoEventLoop, UseEventLoop +}
+

methods

    +
  • DCOPRef () +
    +
    returns a DCOPRef instance

  • +
  • DCOPRef (ref) +
    +
    returns a DCOPRef instance
    + +
    ArgumentTypeDefault
    refDCOPRef
    +

  • +
  • DCOPRef (app, obj) +
    +
    returns a DCOPRef instance
    + + +
    ArgumentTypeDefault
    appQCString
    objQCString
    +

  • +
  • DCOPRef (object) +
    +
    returns a DCOPRef instance
    + +
    ArgumentTypeDefault
    objectDCOPObject
    +

  • +
  • DCOPRef (app, obj, type) +
    +
    returns a DCOPRef instance
    + + + +
    ArgumentTypeDefault
    appQCString
    objQCString
    typeQCString
    +

  • +
  • app () +
    +
    returns (QCString)

  • +
  • call (fun) +
    + +
    returns (DCOPReply)
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    funQCString
    +

  • +
  • callExt (fun, useEventLoop = NoEventLoop, timeout = -1) +
    + +
    returns (DCOPReply)
    In versions KDE 3.2.0 and above only
    + + + +
    ArgumentTypeDefault
    funQCString
    useEventLoopDCOPRef.EventLoopFlagNoEventLoop
    timeoutint-1
    +

  • +
  • clear () +
    +
    returns nothing

  • +
  • dcopClient () +
    + +
    returns (DCOPClient)
    In versions KDE 3.1.0 and above only

  • +
  • isNull () +
    +
    returns (bool)

  • +
  • obj () +
    + +
    returns (QCString)
    In versions KDE 3.1.0 and above only

  • +
  • object () +
    +
    returns (QCString)

  • +
  • send (fun) +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    funQCString
    +

  • +
  • setDCOPClient (client) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    clientDCOPClient
    +

  • +
  • setRef (app, obj) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    appQCString
    objQCString
    +

  • +
  • setRef (app, obj, type) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    appQCString
    objQCString
    typeQCString
    +

  • +
  • type () +
    +
    returns (QCString)

  • +
+ + + diff --git a/doc/classref/dcop/DCOPReply.html b/doc/classref/dcop/DCOPReply.html new file mode 100644 index 0000000..5260ccf --- /dev/null +++ b/doc/classref/dcop/DCOPReply.html @@ -0,0 +1,50 @@ + + + + + class DCOPReply + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DCOPReply


+
+ + + + + +
Table of contents
Modules
dcop Classes
All Classes
+
+ + + + + + + + + + +
Moduledcop
ClassDCOPReply
Inherits
+

methods

    +
  • isValid () +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above only

  • +
+

variables

  • +variables + + +
    VariableType
    dataQByteArray
    typeQCString
+ + + diff --git a/doc/classref/dcop/DCOPStub.html b/doc/classref/dcop/DCOPStub.html new file mode 100644 index 0000000..a578888 --- /dev/null +++ b/doc/classref/dcop/DCOPStub.html @@ -0,0 +1,93 @@ + + + + + class DCOPStub + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DCOPStub


+
+ + + + + +
Table of contents
Modules
dcop Classes
All Classes
+
+ + + + + + + + + + +
Moduledcop
ClassDCOPStub
Inherits
+

enums

    +
  • Status = {CallSucceeded, CallFailed +}
+

methods

    +
  • DCOPStub (app, obj) +
    +
    returns a DCOPStub instance
    + + +
    ArgumentTypeDefault
    appQCString
    objQCString
    +

  • +
  • DCOPStub (client, app, obj) +
    +
    returns a DCOPStub instance
    + + + +
    ArgumentTypeDefault
    clientDCOPClient
    appQCString
    objQCString
    +

  • +
  • DCOPStub (ref) +
    + +
    returns a DCOPStub instance
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    refDCOPRef
    +

  • +
  • DCOPStub (a0) +
    Not Implemented
    +

  • +
  • app () +
    +
    returns (QCString)

  • +
  • callFailed () +
    +
    returns nothing

  • +
  • dcopClient () +
    +
    returns (DCOPClient)

  • +
  • obj () +
    +
    returns (QCString)

  • +
  • ok () +
    +
    returns (bool)

  • +
  • setStatus (_status) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    _statusDCOPStub.Status
    +

  • +
  • status () +
    +
    returns (Status)

  • +
+ + + diff --git a/doc/classref/dcop/index.html b/doc/classref/dcop/index.html new file mode 100644 index 0000000..65b4823 --- /dev/null +++ b/doc/classref/dcop/index.html @@ -0,0 +1,40 @@ + + + + + module dcop + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

dcop Class Index


+
+ + + + +
Table of contents
Modules
All Classes
+
+ +
+ + + +
DCOPClient - DCOPObject
DCOPClient
DCOPObject
+ + + +
DCOPObjectProxy - DCOPRef
DCOPObjectProxy
DCOPRef
+ + + +
DCOPReply - DCOPStub
DCOPReply
DCOPStub
+ + diff --git a/doc/classref/glossary.html b/doc/classref/glossary.html new file mode 100644 index 0000000..0c026cb --- /dev/null +++ b/doc/classref/glossary.html @@ -0,0 +1,40 @@ +

Abstract

+

+Abstract classes are used as base classes. You cannot create +an instance of an abstract class directly - you need to subclass +it. In the subclass, you need to overload all of the +class's pure virtual methods. These +are marked as "pure virtual" in these docs, and are also indicated +by a " = 0" at the end of the method declaration. +

+

+If your subclass doesn't overload the pure virtual methods in the +abstract base class, you won't be able to create an instance of it. +

+ +

pure virtual

+

+Pure virtual methods are members of an abstract +class (they're what makes the class abstract in the first place). Pure +virtual methods are nothing more than place holders - there is no code +associated with them +

+ + +

variables

+

+Class variables can be read and written from Python. Global or static +variables are read only. Variables that are "protected" or. +"private" in C++ are not implemented. +

+ +

slots

+

+When using Qt or KDE in C++, methods involving connections to slots +take 2 arguments: a QObject 'receiver' and a char* 'slot' name. In Python +you only need to provide a single value - the name of a Python callable +method or function which will be connected to a signal. The method or +function does not need to be in the class where it is reference, and does +not have to be in a class at all. There are other options - see the +"Signals and Slots" documentation for more information. +

diff --git a/doc/classref/index.html b/doc/classref/index.html new file mode 100644 index 0000000..a73c6ac --- /dev/null +++ b/doc/classref/index.html @@ -0,0 +1,57 @@ + + + + + PyKDE Classref + + + + +

PyKDE - Python Bindings for KDE

+
+ +  + + + + +
+ + + + + + +
PyKDE API Reference - Modules
+
+
+

PyKDE API Reference

+ This section contains the PyKDE class reference for the + current version of PyKDE. + +
+ + + + + diff --git a/doc/classref/kabc/KABC.Address.html b/doc/classref/kabc/KABC.Address.html new file mode 100644 index 0000000..b7dd7d3 --- /dev/null +++ b/doc/classref/kabc/KABC.Address.html @@ -0,0 +1,249 @@ + + + + + class KABC.Address + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KABC.Address


+
+ + + + + +
Table of contents
Modules
kabc Classes
All Classes
+
+ + + + + + + + + + +
Modulekabc
ClassKABC.Address
Inherits
+

enums

    +
  • Type = {Dom, Intl, Postal, Parcel, Home, Work, Pref +}
+

methods

    +
  • Address () +
    +
    returns a Address instance

  • +
  • Address (a0) +
    +
    returns a Address instance
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • ISOtoCountry (ISOname) +
    + + +
    returns (QString)
    In versions KDE 3.2.0 and above only
    static
    + +
    ArgumentTypeDefault
    ISOnameQString
    +

  • +
  • clear () +
    +
    returns nothing

  • +
  • country () +
    +
    returns (QString)

  • +
  • countryLabel () +
    + + +
    returns (QString)
    In versions KDE 3.1.0 and above only
    static

  • +
  • countryToISO (cname) +
    + + +
    returns (QString)
    In versions KDE 3.2.0 and above only
    static
    + +
    ArgumentTypeDefault
    cnameQString
    +

  • +
  • dump () +
    +
    returns nothing

  • +
  • extended () +
    +
    returns (QString)

  • +
  • extendedLabel () +
    + + +
    returns (QString)
    In versions KDE 3.1.0 and above only
    static

  • +
  • formattedAddress (realName = QString .null, orgaName = QString .null) +
    + +
    returns (QString)
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    realNameQStringQString .null
    orgaNameQStringQString .null
    +

  • +
  • id () +
    +
    returns (QString)

  • +
  • isEmpty () +
    +
    returns (bool)

  • +
  • label () +
    +
    returns (QString)

  • +
  • labelLabel () +
    + + +
    returns (QString)
    In versions KDE 3.1.0 and above only
    static

  • +
  • locality () +
    +
    returns (QString)

  • +
  • localityLabel () +
    + + +
    returns (QString)
    In versions KDE 3.1.0 and above only
    static

  • +
  • postOfficeBox () +
    +
    returns (QString)

  • +
  • postOfficeBoxLabel () +
    + + +
    returns (QString)
    In versions KDE 3.1.0 and above only
    static

  • +
  • postalCode () +
    +
    returns (QString)

  • +
  • postalCodeLabel () +
    + + +
    returns (QString)
    In versions KDE 3.1.0 and above only
    static

  • +
  • region () +
    +
    returns (QString)

  • +
  • regionLabel () +
    + + +
    returns (QString)
    In versions KDE 3.1.0 and above only
    static

  • +
  • setCountry (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • setExtended (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • setId (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • setLabel (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • setLocality (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • setPostOfficeBox (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • setPostalCode (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • setRegion (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • setStreet (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • setType (type) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    typeint
    +

  • +
  • street () +
    +
    returns (QString)

  • +
  • streetLabel () +
    + + +
    returns (QString)
    In versions KDE 3.1.0 and above only
    static

  • +
  • type () +
    +
    returns (int)

  • +
  • typeLabel () +
    + +
    returns (QString)
    In versions KDE 3.1.0 and above only

  • +
  • typeLabel (type) +
    + + +
    returns (QString)
    In versions KDE 3.1.0 and above only
    static
    + +
    ArgumentTypeDefault
    typeint
    +

  • +
  • typeList () +
    + + +
    returns (KABC.Address.TypeList)
    In versions KDE 3.1.0 and above only
    static

  • +
+

operators

    +
  • operator != (a0) +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    a0KABC.Address
    +

  • +
  • operator == (a0) +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    a0KABC.Address
    +

  • +
+ + + diff --git a/doc/classref/kabc/KABC.AddressBook.html b/doc/classref/kabc/KABC.AddressBook.html new file mode 100644 index 0000000..8108228 --- /dev/null +++ b/doc/classref/kabc/KABC.AddressBook.html @@ -0,0 +1,281 @@ + + + + + class KABC.AddressBook + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KABC.AddressBook


+
+ + + + + +
Table of contents
Modules
kabc Classes
All Classes
+
+ + + + + + + + + + +
Modulekabc
ClassKABC.AddressBook
InheritsQObject
+

methods

    +
  • AddressBook () +
    +
    returns a AddressBook instance

  • +
  • AddressBook (config) +
    + +
    returns a AddressBook instance
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    configQString
    +

  • +
  • addCustomField (label, category = KABC .Field .All, key = QString .null, app = QString .null) +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above only
    + + + + +
    ArgumentTypeDefault
    labelQString
    categoryintKABC .Field .All
    keyQStringQString .null
    appQStringQString .null
    +

  • +
  • addResource (resource) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    resourceKABC.Resource
    +

  • +
  • addressBookChanged (addressBook) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    addressBookKABC.AddressBook
    +

  • +
  • addressBookLocked (addressBook) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    addressBookKABC.AddressBook
    +

  • +
  • addressBookUnlocked (addressBook) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    addressBookKABC.AddressBook
    +

  • +
  • allAddressees () +
    + +
    returns (KABC.Addressee.List)
    In versions KDE 3.2.0 and above only

  • +
  • asyncLoad () +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only

  • +
  • asyncSave (ticket) +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    ticketKABC.Ticket
    +

  • +
  • cleanUp () +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only

  • +
  • clear () +
    +
    returns nothing

  • +
  • deleteRemovedAddressees () +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only

  • +
  • dump () +
    +
    returns nothing

  • +
  • emitAddressBookChanged () +
    +
    returns nothing

  • +
  • emitAddressBookLocked () +
    +
    returns nothing

  • +
  • emitAddressBookUnlocked () +
    +
    returns nothing

  • +
  • error (msg) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    msgQString
    +

  • +
  • fields (category = KABC .Field .All) +
    + +
    returns (KABC.Field.List)
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    categoryintKABC .Field .All
    +

  • +
  • findByCategory (category) +
    +
    returns (KABC.Addressee.List)
    + +
    ArgumentTypeDefault
    categoryQString
    +

  • +
  • findByEmail (email) +
    +
    returns (KABC.Addressee.List)
    + +
    ArgumentTypeDefault
    emailQString
    +

  • +
  • findByName (name) +
    +
    returns (KABC.Addressee.List)
    + +
    ArgumentTypeDefault
    nameQString
    +

  • +
  • findByUid (uid) +
    +
    returns (KABC.Addressee)
    + +
    ArgumentTypeDefault
    uidQString
    +

  • +
  • identifier () +
    +
    returns (QString)

  • +
  • insertAddressee (addr) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    addrKABC.Addressee
    +

  • +
  • load () +
    +
    returns (bool)

  • +
  • loadingFinished (resource) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    resourceKABC.Resource
    +

  • +
  • loadingHasFinished () +
    + +
    returns (bool)
    In versions KDE 3.5.0 and above only

  • +
  • releaseSaveTicket (ticket) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    ticketKABC.Ticket
    +

  • +
  • removeAddressee (addr) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    addrKABC.Addressee
    +

  • +
  • removeAddressee (it) +
    Not Implemented
    +

  • +
  • removeResource (resource) +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    resourceKABC.Resource
    +

  • +
  • requestSaveTicket (resource = 0) +
    +
    returns (KABC.Ticket)
    + +
    ArgumentTypeDefault
    resourceKABC.Resource0
    +

  • +
  • resourceLoadingError (a0, a1) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    a0KABC.Resource
    a1QString
    +

  • +
  • resourceLoadingFinished (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0KABC.Resource
    +

  • +
  • resourceManager () +
    Not Implemented
    +

  • +
  • resourceSavingError (a0, a1) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    a0KABC.Resource
    a1QString
    +

  • +
  • resourceSavingFinished (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0KABC.Resource
    +

  • +
  • resources () +
    + +
    returns (QPtrList)
    In versions KDE 3.1.0 and above only

  • +
  • save (ticket) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    ticketKABC.Ticket
    +

  • +
  • savingFinished (resource) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    resourceKABC.Resource
    +

  • +
  • setErrorHandler (errorHandler) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    errorHandlerKABC.ErrorHandler
    +

  • +
  • setStandardResource (a0) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    a0KABC.Resource
    +

  • +
  • standardResource () +
    + +
    returns (KABC.Resource)
    In versions KDE 3.1.0 and above only

  • +
+ + + diff --git a/doc/classref/kabc/KABC.AddressLineEdit.html b/doc/classref/kabc/KABC.AddressLineEdit.html new file mode 100644 index 0000000..3e88c2f --- /dev/null +++ b/doc/classref/kabc/KABC.AddressLineEdit.html @@ -0,0 +1,123 @@ + + + + + class KABC.AddressLineEdit + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KABC.AddressLineEdit


+
+ + + + + +
Table of contents
Modules
kabc Classes
All Classes
+
+ + + + + + + + + + +
Modulekabc
ClassKABC.AddressLineEdit
InheritsKLineEdit
+

methods

    +
  • AddressLineEdit (parent, useCompletion = 1, name = 0) +
    + +
    returns a AddressLineEdit instance
    In versions KDE 3.1.0 and above only
    + + + +
    ArgumentTypeDefault
    parentQWidget
    useCompletionbool1
    namechar0
    +

  • +
  • addAddress (a0) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • config () +
    + + +
    returns (KConfig)
    In versions KDE 3.2.0 and above only
    static

  • +
  • cursorAtEnd () +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only

  • +
  • doCompletion (ctrlT) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    ctrlTbool
    +

  • +
  • dropEvent (e) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    eQDropEvent
    +

  • +
  • enableCompletion (enable) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    enablebool
    +

  • +
  • insert (t) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    tQString
    +

  • +
  • keyPressEvent (a0) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    a0QKeyEvent
    +

  • +
  • loadAddresses () +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only

  • +
  • mouseReleaseEvent (e) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    eQMouseEvent
    +

  • +
  • paste () +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only

  • +
  • setFont (a0) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    a0QFont
    +

  • +
+ + + diff --git a/doc/classref/kabc/KABC.AddresseeDialog.html b/doc/classref/kabc/KABC.AddresseeDialog.html new file mode 100644 index 0000000..3289911 --- /dev/null +++ b/doc/classref/kabc/KABC.AddresseeDialog.html @@ -0,0 +1,72 @@ + + + + + class KABC.AddresseeDialog + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KABC.AddresseeDialog


+
+ + + + + +
Table of contents
Modules
kabc Classes
All Classes
+
+ + + + + + + + + + +
Modulekabc
ClassKABC.AddresseeDialog
InheritsKDialogBase
+

methods

    +
  • AddresseeDialog (parent = 0, multiple = 0) +
    +
    returns a AddresseeDialog instance
    + + +
    ArgumentTypeDefault
    parentQWidget0
    multiplebool0
    +

  • +
  • addressBookChanged () +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only

  • +
  • addressee () +
    +
    returns (KABC.Addressee)

  • +
  • addressees () +
    +
    returns (KABC.Addressee.List)

  • +
  • getAddressee (parent) +
    + +
    returns (KABC.Addressee)
    static
    + +
    ArgumentTypeDefault
    parentQWidget
    +

  • +
  • getAddressees (parent) +
    + +
    returns (KABC.Addressee.List)
    static
    + +
    ArgumentTypeDefault
    parentQWidget
    +

  • +
+ + + diff --git a/doc/classref/kabc/KABC.AddresseeItem.html b/doc/classref/kabc/KABC.AddresseeItem.html new file mode 100644 index 0000000..4e2f6c1 --- /dev/null +++ b/doc/classref/kabc/KABC.AddresseeItem.html @@ -0,0 +1,61 @@ + + + + + class KABC.AddresseeItem + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KABC.AddresseeItem


+
+ + + + + +
Table of contents
Modules
kabc Classes
All Classes
+
+ + + + + + + + + + +
Modulekabc
ClassKABC.AddresseeItem
InheritsQListViewItem
+

enums

    +
  • columns = {Name, Email +}
+

methods

    +
  • AddresseeItem (parent, addressee) +
    +
    returns a AddresseeItem instance
    + + +
    ArgumentTypeDefault
    parentQListView
    addresseeKABC.Addressee
    +

  • +
  • addressee () +
    +
    returns (KABC.Addressee)

  • +
  • key (column, ascending) +
    +
    returns (QString)
    + + +
    ArgumentTypeDefault
    columnint
    ascendingbool
    +

  • +
+ + + diff --git a/doc/classref/kabc/KABC.Agent.html b/doc/classref/kabc/KABC.Agent.html new file mode 100644 index 0000000..442ffb2 --- /dev/null +++ b/doc/classref/kabc/KABC.Agent.html @@ -0,0 +1,105 @@ + + + + + class KABC.Agent + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KABC.Agent


+
+ + + + + +
Table of contents
Modules
kabc Classes
All Classes
+
+ + + + + + + + + + +
Modulekabc
ClassKABC.Agent
Inherits
+

methods

    +
  • Agent () +
    + +
    returns a Agent instance
    In versions KDE 3.1.0 and above only

  • +
  • Agent (url) +
    + +
    returns a Agent instance
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    urlQString
    +

  • +
  • Agent (addressee) +
    + +
    returns a Agent instance
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    addresseeKABC.Addressee
    +

  • +
  • addressee () +
    + +
    returns (KABC.Addressee)
    In versions KDE 3.1.0 and above only

  • +
  • asString () +
    + +
    returns (QString)
    In versions KDE 3.1.0 and above only

  • +
  • isIntern () +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above only

  • +
  • setAddressee (addressee) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    addresseeKABC.Addressee
    +

  • +
  • setUrl (url) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    urlQString
    +

  • +
  • url () +
    + +
    returns (QString)
    In versions KDE 3.1.0 and above only

  • +
+

operators

    +
  • operator != (a0) +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    a0KABC.Agent
    +

  • +
  • operator == (a0) +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    a0KABC.Agent
    +

  • +
+ + + diff --git a/doc/classref/kabc/KABC.ConsoleErrorHandler.html b/doc/classref/kabc/KABC.ConsoleErrorHandler.html new file mode 100644 index 0000000..b2d91cf --- /dev/null +++ b/doc/classref/kabc/KABC.ConsoleErrorHandler.html @@ -0,0 +1,48 @@ + + + + + class KABC.ConsoleErrorHandler + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KABC.ConsoleErrorHandler


+
+ + + + + +
Table of contents
Modules
kabc Classes
All Classes
+
+ + + + + + + + + + +
Modulekabc
ClassKABC.ConsoleErrorHandler
InheritsKABC.ErrorHandler
+

methods

    +
  • error (msg) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    msgQString
    +

  • +
+ + + diff --git a/doc/classref/kabc/KABC.DistributionList.Entry.html b/doc/classref/kabc/KABC.DistributionList.Entry.html new file mode 100644 index 0000000..89284d8 --- /dev/null +++ b/doc/classref/kabc/KABC.DistributionList.Entry.html @@ -0,0 +1,56 @@ + + + + + class KABC.DistributionList.Entry + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KABC.DistributionList.Entry


+
+ + + + + +
Table of contents
Modules
kabc Classes
All Classes
+
+ + + + + + + + + + +
Modulekabc
ClassKABC.DistributionList.Entry
Inherits
+

methods

    +
  • Entry () +
    +
    returns a Entry instance

  • +
  • Entry (_addressee, _email) +
    +
    returns a Entry instance
    + + +
    ArgumentTypeDefault
    _addresseeKABC.Addressee
    _emailQString
    +

  • +
+

variables

  • +variables + + +
    VariableType
    addresseeKABC::Addressee
    emailQString
+ + + diff --git a/doc/classref/kabc/KABC.DistributionList.html b/doc/classref/kabc/KABC.DistributionList.html new file mode 100644 index 0000000..c5653ee --- /dev/null +++ b/doc/classref/kabc/KABC.DistributionList.html @@ -0,0 +1,77 @@ + + + + + class KABC.DistributionList + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KABC.DistributionList


+
+ + + + + +
Table of contents
Modules
kabc Classes
All Classes
+
+ + + + + + + + + + +
Modulekabc
ClassKABC.DistributionList
Inherits
+

methods

    +
  • DistributionList (manager, name) +
    +
    returns a DistributionList instance
    + + +
    ArgumentTypeDefault
    managerKABC.DistributionListManager
    nameQString
    +

  • +
  • emails () +
    +
    returns (QStringList)

  • +
  • entries () +
    +
    returns (KABC.DistributionList.Entry.List)

  • +
  • insertEntry (a0, email = QString .null) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    a0KABC.Addressee
    emailQStringQString .null
    +

  • +
  • name () +
    +
    returns (QString)

  • +
  • removeEntry (a0, email = QString .null) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    a0KABC.Addressee
    emailQStringQString .null
    +

  • +
  • setName (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
+ + + diff --git a/doc/classref/kabc/KABC.DistributionListDialog.html b/doc/classref/kabc/KABC.DistributionListDialog.html new file mode 100644 index 0000000..b1085d3 --- /dev/null +++ b/doc/classref/kabc/KABC.DistributionListDialog.html @@ -0,0 +1,49 @@ + + + + + class KABC.DistributionListDialog + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KABC.DistributionListDialog


+
+ + + + + +
Table of contents
Modules
kabc Classes
All Classes
+
+ + + + + + + + + + +
Modulekabc
ClassKABC.DistributionListDialog
InheritsKDialogBase
+

methods

    +
  • DistributionListDialog (ab, parent) +
    + +
    returns a DistributionListDialog instance
    In versions KDE 3.1.0 and above only
    + + +
    ArgumentTypeDefault
    abKABC.AddressBook
    parentQWidget
    +

  • +
+ + + diff --git a/doc/classref/kabc/KABC.DistributionListEditorWidget.html b/doc/classref/kabc/KABC.DistributionListEditorWidget.html new file mode 100644 index 0000000..6349856 --- /dev/null +++ b/doc/classref/kabc/KABC.DistributionListEditorWidget.html @@ -0,0 +1,49 @@ + + + + + class KABC.DistributionListEditorWidget + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KABC.DistributionListEditorWidget


+
+ + + + + +
Table of contents
Modules
kabc Classes
All Classes
+
+ + + + + + + + + + +
Modulekabc
ClassKABC.DistributionListEditorWidget
InheritsQWidget
+

methods

    +
  • DistributionListEditorWidget (a0, parent) +
    + +
    returns a DistributionListEditorWidget instance
    In versions KDE 3.1.0 and above only
    + + +
    ArgumentTypeDefault
    a0KABC.AddressBook
    parentQWidget
    +

  • +
+ + + diff --git a/doc/classref/kabc/KABC.DistributionListManager.html b/doc/classref/kabc/KABC.DistributionListManager.html new file mode 100644 index 0000000..dba1b0d --- /dev/null +++ b/doc/classref/kabc/KABC.DistributionListManager.html @@ -0,0 +1,74 @@ + + + + + class KABC.DistributionListManager + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KABC.DistributionListManager


+
+ + + + + +
Table of contents
Modules
kabc Classes
All Classes
+
+ + + + + + + + + + +
Modulekabc
ClassKABC.DistributionListManager
Inherits
+

methods

    +
  • DistributionListManager (a0) +
    +
    returns a DistributionListManager instance
    + +
    ArgumentTypeDefault
    a0KABC.AddressBook
    +

  • +
  • insert (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KABC.DistributionList
    +

  • +
  • list (name) +
    +
    returns (KABC.DistributionList)
    + +
    ArgumentTypeDefault
    nameQString
    +

  • +
  • listNames () +
    +
    returns (QStringList)

  • +
  • load () +
    +
    returns (bool)

  • +
  • remove (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KABC.DistributionList
    +

  • +
  • save () +
    +
    returns (bool)

  • +
+ + + diff --git a/doc/classref/kabc/KABC.DistributionListWatcher.html b/doc/classref/kabc/KABC.DistributionListWatcher.html new file mode 100644 index 0000000..1a42c31 --- /dev/null +++ b/doc/classref/kabc/KABC.DistributionListWatcher.html @@ -0,0 +1,58 @@ + + + + + class KABC.DistributionListWatcher + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KABC.DistributionListWatcher


+
+ + + + + +
Table of contents
Modules
kabc Classes
All Classes
+
+ + + + + + + + + + +
Modulekabc
ClassKABC.DistributionListWatcher
InheritsQObject
+

methods

    +
  • DistributionListWatcher () +
    + +
    returns a DistributionListWatcher instance
    In versions KDE 3.1.0 and above only

  • +
  • changed () +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only

  • +
  • self () +
    + + +
    returns (KABC.DistributionListWatcher)
    In versions KDE 3.1.0 and above only
    static

  • +
  • ~DistributionListWatcher () +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only

  • +
+ + + diff --git a/doc/classref/kabc/KABC.EmailSelectDialog.html b/doc/classref/kabc/KABC.EmailSelectDialog.html new file mode 100644 index 0000000..5894897 --- /dev/null +++ b/doc/classref/kabc/KABC.EmailSelectDialog.html @@ -0,0 +1,61 @@ + + + + + class KABC.EmailSelectDialog + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KABC.EmailSelectDialog


+
+ + + + + +
Table of contents
Modules
kabc Classes
All Classes
+
+ + + + + + + + + + +
Modulekabc
ClassKABC.EmailSelectDialog
InheritsKDialogBase
+

methods

    +
  • EmailSelectDialog (emails, current, parent) +
    +
    returns a EmailSelectDialog instance
    + + + +
    ArgumentTypeDefault
    emailsQStringList
    currentQString
    parentQWidget
    +

  • +
  • getEmail (emails, current, parent) +
    + +
    returns (QString)
    static
    + + + +
    ArgumentTypeDefault
    emailsQStringList
    currentQString
    parentQWidget
    +

  • +
  • selected () +
    +
    returns (QString)

  • +
+ + + diff --git a/doc/classref/kabc/KABC.EmailSelector.html b/doc/classref/kabc/KABC.EmailSelector.html new file mode 100644 index 0000000..f81e0eb --- /dev/null +++ b/doc/classref/kabc/KABC.EmailSelector.html @@ -0,0 +1,64 @@ + + + + + class KABC.EmailSelector + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KABC.EmailSelector


+
+ + + + + +
Table of contents
Modules
kabc Classes
All Classes
+
+ + + + + + + + + + +
Modulekabc
ClassKABC.EmailSelector
InheritsKDialogBase
+

methods

    +
  • EmailSelector (emails, current, parent) +
    + +
    returns a EmailSelector instance
    In versions KDE 3.1.0 and above only
    + + + +
    ArgumentTypeDefault
    emailsQStringList
    currentQString
    parentQWidget
    +

  • +
  • getEmail (emails, current, parent) +
    + + +
    returns (QString)
    In versions KDE 3.1.0 and above only
    static
    + + + +
    ArgumentTypeDefault
    emailsQStringList
    currentQString
    parentQWidget
    +

  • +
  • selected () +
    + +
    returns (QString)
    In versions KDE 3.1.0 and above only

  • +
+ + + diff --git a/doc/classref/kabc/KABC.ErrorHandler.html b/doc/classref/kabc/KABC.ErrorHandler.html new file mode 100644 index 0000000..e126d96 --- /dev/null +++ b/doc/classref/kabc/KABC.ErrorHandler.html @@ -0,0 +1,49 @@ + + + + + class KABC.ErrorHandler + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KABC.ErrorHandler


+
+ + + + + +
Table of contents
Modules
kabc Classes
All Classes
+
+ + + + + + + + + + +
Modulekabc
ClassKABC.ErrorHandler (abstract)
Inherits
+

methods

    +
  • error (msg) = 0 +
    + + +
    returns nothing
    In versions KDE 3.1.0 and above only
    pure virtual
    + +
    ArgumentTypeDefault
    msgQString
    +

  • +
+ + + diff --git a/doc/classref/kabc/KABC.Field.html b/doc/classref/kabc/KABC.Field.html new file mode 100644 index 0000000..10e403f --- /dev/null +++ b/doc/classref/kabc/KABC.Field.html @@ -0,0 +1,184 @@ + + + + + class KABC.Field + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KABC.Field


+
+ + + + + +
Table of contents
Modules
kabc Classes
All Classes
+
+ + + + + + + + + + +
Modulekabc
ClassKABC.Field
Inherits
+

enums

    +
  • FieldCategory = {All, Frequent, Address, Email, Personal, Organization, CustomCategory +}
+

methods

    +
  • Field (a0) +
    Not Implemented
    +

  • +
  • Field () +
    + +
    returns a Field instance
    In versions KDE 3.1.0 and above only

  • +
  • allFields () +
    + + +
    returns (KABC.Field.List)
    In versions KDE 3.1.0 and above only
    static

  • +
  • category () +
    + +
    returns (int)
    In versions KDE 3.1.0 and above only

  • +
  • categoryLabel (category) +
    + + +
    returns (QString)
    In versions KDE 3.1.0 and above only
    static
    + +
    ArgumentTypeDefault
    categoryint
    +

  • +
  • createCustomField (label, category, key, app) +
    + + +
    returns (KABC.Field)
    In versions KDE 3.1.0 and above only
    static
    + + + + +
    ArgumentTypeDefault
    labelQString
    categoryint
    keyQString
    appQString
    +

  • +
  • createDefaultField (id, category = 0) +
    + + +
    returns nothing
    In versions KDE 3.1.0 and above only
    static
    + + +
    ArgumentTypeDefault
    idint
    categoryint0
    +

  • +
  • createField (id, category = 0) +
    + + +
    returns nothing
    In versions KDE 3.1.0 and above only
    static
    + + +
    ArgumentTypeDefault
    idint
    categoryint0
    +

  • +
  • defaultFields () +
    + + +
    returns (KABC.Field.List)
    In versions KDE 3.1.0 and above only
    static

  • +
  • deleteFields () +
    + + +
    returns nothing
    In versions KDE 3.1.0 and above only
    static

  • +
  • equals (field) +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    fieldKABC.Field
    +

  • +
  • isCustom () +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above only

  • +
  • label () +
    + +
    returns (QString)
    In versions KDE 3.1.0 and above only

  • +
  • restoreFields (cfg, identifier) +
    + + +
    returns (KABC.Field.List)
    In versions KDE 3.1.0 and above only
    static
    + + +
    ArgumentTypeDefault
    cfgKConfig
    identifierQString
    +

  • +
  • restoreFields (identifier) +
    + + +
    returns (KABC.Field.List)
    In versions KDE 3.1.0 and above only
    static
    + +
    ArgumentTypeDefault
    identifierQString
    +

  • +
  • saveFields (cfg, identifier, fields) +
    + + +
    returns nothing
    In versions KDE 3.1.0 and above only
    static
    + + + +
    ArgumentTypeDefault
    cfgKConfig
    identifierQString
    fieldsKABC.Field.List
    +

  • +
  • saveFields (identifier, fields) +
    + + +
    returns nothing
    In versions KDE 3.1.0 and above only
    static
    + + +
    ArgumentTypeDefault
    identifierQString
    fieldsKABC.Field.List
    +

  • +
  • setValue (a0, a1) +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above only
    + + +
    ArgumentTypeDefault
    a0KABC.Addressee
    a1QString
    +

  • +
  • sortKey (a0) +
    + +
    returns (QString)
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0KABC.Addressee
    +

  • +
  • value (a0) +
    + +
    returns (QString)
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    a0KABC.Addressee
    +

  • +
  • ~Field () +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only

  • +
+ + + diff --git a/doc/classref/kabc/KABC.FieldSortMode.html b/doc/classref/kabc/KABC.FieldSortMode.html new file mode 100644 index 0000000..7278a4c --- /dev/null +++ b/doc/classref/kabc/KABC.FieldSortMode.html @@ -0,0 +1,57 @@ + + + + + class KABC.FieldSortMode + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KABC.FieldSortMode


+
+ + + + + +
Table of contents
Modules
kabc Classes
All Classes
+
+ + + + + + + + + + +
Modulekabc
ClassKABC.FieldSortMode
InheritsKABC.SortMode
+

methods

    +
  • FieldSortMode (field, ascending = 1) +
    + +
    returns a FieldSortMode instance
    In versions KDE 3.4.0 and above only
    + + +
    ArgumentTypeDefault
    fieldKABC.Field
    ascendingbool1
    +

  • +
  • lesser (a0, a1) +
    + +
    returns (bool)
    In versions KDE 3.4.0 and above only
    + + +
    ArgumentTypeDefault
    a0KABC.Addressee
    a1KABC.Addressee
    +

  • +
+ + + diff --git a/doc/classref/kabc/KABC.Format.html b/doc/classref/kabc/KABC.Format.html new file mode 100644 index 0000000..2b8e001 --- /dev/null +++ b/doc/classref/kabc/KABC.Format.html @@ -0,0 +1,57 @@ + + + + + class KABC.Format + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KABC.Format


+
+ + + + + +
Table of contents
Modules
kabc Classes
All Classes
+
+ + + + + + + + + + +
Modulekabc
ClassKABC.Format (abstract)
Inherits
+

methods

    +
  • load (a0, fileName) = 0 +
    + +
    returns (bool)
    pure virtual
    + + +
    ArgumentTypeDefault
    a0KABC.AddressBook
    fileNameQString
    +

  • +
  • save (a0, fileName) = 0 +
    + +
    returns (bool)
    pure virtual
    + + +
    ArgumentTypeDefault
    a0KABC.AddressBook
    fileNameQString
    +

  • +
+ + + diff --git a/doc/classref/kabc/KABC.FormatFactory.html b/doc/classref/kabc/KABC.FormatFactory.html new file mode 100644 index 0000000..c535dad --- /dev/null +++ b/doc/classref/kabc/KABC.FormatFactory.html @@ -0,0 +1,72 @@ + + + + + class KABC.FormatFactory + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KABC.FormatFactory


+
+ + + + + +
Table of contents
Modules
kabc Classes
All Classes
+
+ + + + + + + + + + +
Modulekabc
ClassKABC.FormatFactory
Inherits
+

methods

    +
  • FormatFactory () +
    + +
    returns a FormatFactory instance
    In versions KDE 3.1.0 and above only

  • +
  • format (type) +
    + +
    returns (KABC.FormatPlugin)
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    typeQString
    +

  • +
  • formats () +
    + +
    returns (QStringList)
    In versions KDE 3.1.0 and above only

  • +
  • info (type) +
    + +
    returns (KABC.FormatInfo)
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    typeQString
    +

  • +
  • self () +
    + + +
    returns (KABC.FormatFactory)
    In versions KDE 3.1.0 and above only
    static

  • +
  • ~FormatFactory () +
    + +
    returns nothing
    In versions less than KDE 3.2.0 only

  • +
+ + + diff --git a/doc/classref/kabc/KABC.FormatInfo.html b/doc/classref/kabc/KABC.FormatInfo.html new file mode 100644 index 0000000..1d6aafb --- /dev/null +++ b/doc/classref/kabc/KABC.FormatInfo.html @@ -0,0 +1,45 @@ + + + + + class KABC.FormatInfo + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KABC.FormatInfo


+
+ + + + + +
Table of contents
Modules
kabc Classes
All Classes
+
+ + + + + + + + + + +
Modulekabc
ClassKABC.FormatInfo
Inherits
+

variables

  • +variables + + + +
    VariableType
    descriptionLabelQString
    libraryQString
    nameLabelQString
+ + + diff --git a/doc/classref/kabc/KABC.FormatPlugin.html b/doc/classref/kabc/KABC.FormatPlugin.html new file mode 100644 index 0000000..1cb7f19 --- /dev/null +++ b/doc/classref/kabc/KABC.FormatPlugin.html @@ -0,0 +1,87 @@ + + + + + class KABC.FormatPlugin + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KABC.FormatPlugin


+
+ + + + + +
Table of contents
Modules
kabc Classes
All Classes
+
+ + + + + + + + + + +
Modulekabc
ClassKABC.FormatPlugin (abstract)
InheritsKABC.Plugin
+

methods

    +
  • checkFormat (file) = 0 +
    + + +
    returns (bool)
    In versions KDE 3.1.0 and above only
    pure virtual
    + +
    ArgumentTypeDefault
    fileQFile
    +

  • +
  • load (a0, file) = 0 +
    + + +
    returns (bool)
    In versions KDE 3.1.0 and above only
    pure virtual
    + + +
    ArgumentTypeDefault
    a0KABC.Addressee
    fileQFile
    +

  • +
  • loadAll (a0, a1, file) = 0 +
    + + +
    returns (bool)
    In versions KDE 3.1.0 and above only
    pure virtual
    + + + +
    ArgumentTypeDefault
    a0KABC.AddressBook
    a1KABC.Resource
    fileQFile
    +

  • +
  • save (a0, file) = 0 +
    + + +
    returns nothing
    In versions KDE 3.1.0 and above only
    pure virtual
    + + +
    ArgumentTypeDefault
    a0KABC.Addressee
    fileQFile
    +

  • +
  • saveAll (a0, a1, file) = 0 +
    + + +
    returns nothing
    In versions KDE 3.1.0 and above only
    pure virtual
    + + + +
    ArgumentTypeDefault
    a0KABC.AddressBook
    a1KABC.Resource
    fileQFile
    +

  • +
+ + + diff --git a/doc/classref/kabc/KABC.GUIErrorHandler.html b/doc/classref/kabc/KABC.GUIErrorHandler.html new file mode 100644 index 0000000..9259c18 --- /dev/null +++ b/doc/classref/kabc/KABC.GUIErrorHandler.html @@ -0,0 +1,48 @@ + + + + + class KABC.GUIErrorHandler + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KABC.GUIErrorHandler


+
+ + + + + +
Table of contents
Modules
kabc Classes
All Classes
+
+ + + + + + + + + + +
Modulekabc
ClassKABC.GUIErrorHandler
InheritsKABC.ErrorHandler
+

methods

    +
  • error (msg) +
    + +
    returns nothing
    In versions KDE 3.5.1 and above only
    + +
    ArgumentTypeDefault
    msgQString
    +

  • +
+ + + diff --git a/doc/classref/kabc/KABC.Geo.html b/doc/classref/kabc/KABC.Geo.html new file mode 100644 index 0000000..719dff3 --- /dev/null +++ b/doc/classref/kabc/KABC.Geo.html @@ -0,0 +1,90 @@ + + + + + class KABC.Geo + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KABC.Geo


+
+ + + + + +
Table of contents
Modules
kabc Classes
All Classes
+
+ + + + + + + + + + +
Modulekabc
ClassKABC.Geo
Inherits
+

methods

    +
  • Geo () +
    +
    returns a Geo instance

  • +
  • Geo (latitude, longitude) +
    +
    returns a Geo instance
    + + +
    ArgumentTypeDefault
    latitudefloat
    longitudefloat
    +

  • +
  • asString () +
    +
    returns (QString)

  • +
  • isValid () +
    +
    returns (bool)

  • +
  • latitude () +
    +
    returns (float)

  • +
  • longitude () +
    +
    returns (float)

  • +
  • setLatitude (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0float
    +

  • +
  • setLongitude (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0float
    +

  • +
+

operators

    +
  • operator != (a0) +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    a0KABC.Geo
    +

  • +
  • operator == (a0) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    a0KABC.Geo
    +

  • +
+ + + diff --git a/doc/classref/kabc/KABC.GuiErrorHandler.html b/doc/classref/kabc/KABC.GuiErrorHandler.html new file mode 100644 index 0000000..d178487 --- /dev/null +++ b/doc/classref/kabc/KABC.GuiErrorHandler.html @@ -0,0 +1,55 @@ + + + + + class KABC.GuiErrorHandler + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KABC.GuiErrorHandler


+
+ + + + + +
Table of contents
Modules
kabc Classes
All Classes
+
+ + + + + + + + + + +
Modulekabc
ClassKABC.GuiErrorHandler
InheritsKABC.ErrorHandler
+

methods

    +
  • GuiErrorHandler (parent) +
    + +
    returns a GuiErrorHandler instance
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    parentQWidget
    +

  • +
  • error (msg) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    msgQString
    +

  • +
+ + + diff --git a/doc/classref/kabc/KABC.Key.html b/doc/classref/kabc/KABC.Key.html new file mode 100644 index 0000000..c524915 --- /dev/null +++ b/doc/classref/kabc/KABC.Key.html @@ -0,0 +1,140 @@ + + + + + class KABC.Key + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KABC.Key


+
+ + + + + +
Table of contents
Modules
kabc Classes
All Classes
+
+ + + + + + + + + + +
Modulekabc
ClassKABC.Key
Inherits
+

enums

    +
  • Types = {X509, PGP, Custom +}
+

methods

    +
  • Key (text = QString .null, type = PGP) +
    + +
    returns a Key instance
    In versions KDE 3.1.0 and above only
    + + +
    ArgumentTypeDefault
    textQStringQString .null
    typeintPGP
    +

  • +
  • binaryData () +
    + +
    returns (QByteArray)
    In versions KDE 3.1.0 and above only

  • +
  • customTypeString () +
    + +
    returns (QString)
    In versions KDE 3.1.0 and above only

  • +
  • id () +
    + +
    returns (QString)
    In versions KDE 3.1.0 and above only

  • +
  • isBinary () +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above only

  • +
  • setBinaryData (binary) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    binaryQByteArray
    +

  • +
  • setCustomTypeString (custom) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    customQString
    +

  • +
  • setId (id) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    idQString
    +

  • +
  • setTextData (text) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    textQString
    +

  • +
  • setType (type) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    typeint
    +

  • +
  • textData () +
    + +
    returns (QString)
    In versions KDE 3.1.0 and above only

  • +
  • type () +
    + +
    returns (int)
    In versions KDE 3.1.0 and above only

  • +
  • typeLabel (type) +
    + + +
    returns (QString)
    In versions KDE 3.1.0 and above only
    static
    + +
    ArgumentTypeDefault
    typeint
    +

  • +
  • typeList () +
    + + +
    returns (TypeList)
    In versions KDE 3.1.0 and above only
    static

  • +
+

operators

    +
  • operator != (a0) +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    a0KABC.Key
    +

  • +
  • operator == (a0) +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    a0KABC.Key
    +

  • +
+ + + diff --git a/doc/classref/kabc/KABC.LDAPUrl.Extension.html b/doc/classref/kabc/KABC.LDAPUrl.Extension.html new file mode 100644 index 0000000..6c2f2c9 --- /dev/null +++ b/doc/classref/kabc/KABC.LDAPUrl.Extension.html @@ -0,0 +1,44 @@ + + + + + class KABC.LDAPUrl.Extension + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KABC.LDAPUrl.Extension


+
+ + + + + +
Table of contents
Modules
kabc Classes
All Classes
+
+ + + + + + + + + + +
Modulekabc
ClassKABC.LDAPUrl.Extension
Inherits
+

variables

  • +variables + + +
    VariableType
    criticalbool
    valueQString
+ + + diff --git a/doc/classref/kabc/KABC.LDAPUrl.html b/doc/classref/kabc/KABC.LDAPUrl.html new file mode 100644 index 0000000..5f554d1 --- /dev/null +++ b/doc/classref/kabc/KABC.LDAPUrl.html @@ -0,0 +1,152 @@ + + + + + class KABC.LDAPUrl + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KABC.LDAPUrl


+
+ + + + + +
Table of contents
Modules
kabc Classes
All Classes
+
+ + + + + + + + + + +
Modulekabc
ClassKABC.LDAPUrl
InheritsKURL
+

enums

    +
  • Scope = {Base, One, Sub +}
+

methods

    +
  • LDAPUrl () +
    + +
    returns a LDAPUrl instance
    In versions KDE 3.3.0 and above only

  • +
  • LDAPUrl (url) +
    + +
    returns a LDAPUrl instance
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    urlKURL
    +

  • +
  • attributes () +
    + +
    returns (QStringList)
    In versions KDE 3.3.0 and above only

  • +
  • dn () +
    + +
    returns (QString)
    In versions KDE 3.3.0 and above only

  • +
  • extension (key) +
    + +
    returns (KABC.LDAPUrl.Extension)
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    keyQString
    +

  • +
  • extension (key) +
    + +
    returns (QString) critical (bool)
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    keyQString
    +

  • +
  • filter () +
    + +
    returns (QString)
    In versions KDE 3.3.0 and above only

  • +
  • hasExtension (key) +
    + +
    returns (bool)
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    keyQString
    +

  • +
  • parseQuery () +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only

  • +
  • removeExtension (key) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    keyQString
    +

  • +
  • scope () +
    + +
    returns (KABC.LDAPUrl.Scope)
    In versions KDE 3.3.0 and above only

  • +
  • setAttributes (attributes) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    attributesQStringList
    +

  • +
  • setDn (dn) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    dnQString
    +

  • +
  • setExtension (key, ext) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + + +
    ArgumentTypeDefault
    keyQString
    extKABC.LDAPUrl.Extension
    +

  • +
  • setExtension (key, value, critical = 0) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + + + +
    ArgumentTypeDefault
    keyQString
    valueQString
    criticalbool0
    +

  • +
  • setFilter (filter) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    filterQString
    +

  • +
  • setScope (scope) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    scopeKABC.LDAPUrl.Scope
    +

  • +
  • updateQuery () +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only

  • +
+ + + diff --git a/doc/classref/kabc/KABC.LDIF.html b/doc/classref/kabc/KABC.LDIF.html new file mode 100644 index 0000000..2f8789c --- /dev/null +++ b/doc/classref/kabc/KABC.LDIF.html @@ -0,0 +1,174 @@ + + + + + class KABC.LDIF + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KABC.LDIF


+
+ + + + + +
Table of contents
Modules
kabc Classes
All Classes
+
+ + + + + + + + + + +
Modulekabc
ClassKABC.LDIF
Inherits
+

enums

    +
  • EntryType = {Entry_None, Entry_Add, Entry_Del, Entry_Mod, Entry_Modrdn +}
  • ModType = {Mod_None, Mod_Add, Mod_Replace, Mod_Del +}
  • ParseVal = {None, NewEntry, EndEntry, Item, Control, Err, MoreData +}
+

methods

    +
  • LDIF () +
    + +
    returns a LDIF instance
    In versions KDE 3.3.0 and above only

  • +
  • assembleLine (fieldname, value, linelen = 0, url = 0) +
    + + +
    returns (QCString)
    In versions KDE 3.3.0 and above only
    static
    + + + + +
    ArgumentTypeDefault
    fieldnameQString
    valueQByteArray
    linelenuint0
    urlbool0
    +

  • +
  • assembleLine (fieldname, value, linelen = 0, url = 0) +
    + + +
    returns (QCString)
    In versions KDE 3.3.0 and above only
    static
    + + + + +
    ArgumentTypeDefault
    fieldnameQString
    valueQCString
    linelenuint0
    urlbool0
    +

  • +
  • assembleLine (fieldname, value, linelen = 0, url = 0) +
    + + +
    returns (QCString)
    In versions KDE 3.3.0 and above only
    static
    + + + + +
    ArgumentTypeDefault
    fieldnameQString
    valueQString
    linelenuint0
    urlbool0
    +

  • +
  • attr () +
    + +
    returns (QString)
    In versions KDE 3.3.0 and above only

  • +
  • critical () +
    + +
    returns (bool)
    In versions KDE 3.3.0 and above only

  • +
  • delOldRdn () +
    + +
    returns (bool)
    In versions KDE 3.3.0 and above only

  • +
  • dn () +
    + +
    returns (QString)
    In versions KDE 3.3.0 and above only

  • +
  • endLDIF () +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only

  • +
  • entryType () +
    + +
    returns (KABC.LDIF.EntryType)
    In versions KDE 3.3.0 and above only

  • +
  • isUrl () +
    + +
    returns (bool)
    In versions KDE 3.3.0 and above only

  • +
  • lineNo () +
    + +
    returns (uint)
    In versions KDE 3.3.0 and above only

  • +
  • modType () +
    + +
    returns (int)
    In versions KDE 3.3.0 and above only

  • +
  • newRdn () +
    + +
    returns (QString)
    In versions KDE 3.3.0 and above only

  • +
  • newSuperior () +
    + +
    returns (QString)
    In versions KDE 3.3.0 and above only

  • +
  • nextItem () +
    + +
    returns (KABC.LDIF.ParseVal)
    In versions KDE 3.3.0 and above only

  • +
  • oid () +
    + +
    returns (QString)
    In versions KDE 3.3.0 and above only

  • +
  • processLine () +
    + +
    returns (KABC.LDIF.ParseVal)
    In versions KDE 3.3.0 and above only

  • +
  • setLDIF (ldif) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    ldifQByteArray
    +

  • +
  • splitControl (line, oid, value) +
    + + +
    returns (bool) critical (bool)
    In versions KDE 3.3.0 and above only
    static
    + + + +
    ArgumentTypeDefault
    lineQCString
    oidQString
    valueQByteArray
    +

  • +
  • splitLine (line, fieldname, value) +
    + + +
    returns (bool)
    In versions KDE 3.3.0 and above only
    static
    + + + +
    ArgumentTypeDefault
    lineQCString
    fieldnameQString
    valueQByteArray
    +

  • +
  • startParsing () +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only

  • +
  • val () +
    + +
    returns (QByteArray)
    In versions KDE 3.3.0 and above only

  • +
+ + + diff --git a/doc/classref/kabc/KABC.LDIFConverter.html b/doc/classref/kabc/KABC.LDIFConverter.html new file mode 100644 index 0000000..d928678 --- /dev/null +++ b/doc/classref/kabc/KABC.LDIFConverter.html @@ -0,0 +1,122 @@ + + + + + class KABC.LDIFConverter + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KABC.LDIFConverter


+
+ + + + + +
Table of contents
Modules
kabc Classes
All Classes
+
+ + + + + + + + + + +
Modulekabc
ClassKABC.LDIFConverter
Inherits
+

methods

    +
  • LDIFToAddressee (a0, a1, a2 = QDateTime .currentDateTime ()) +
    + +
    returns (bool)
    In versions less than KDE 3.5.2 only
    + + + +
    ArgumentTypeDefault
    a0QString
    a1KABC.Addressee.List
    a2QDateTimeQDateTime .currentDateTime ()
    +

  • +
  • LDIFToAddressee (a0, a1, a2 = QDateTime .currentDateTime ()) +
    + +
    returns (bool)
    In versions less than KDE 3.5.2 only
    + + + +
    ArgumentTypeDefault
    a0QString
    a1KABC.Addressee.List
    a2QDateTimeQDateTime .currentDateTime ()
    +

  • +
  • addresseeToLDIF (a0, a1) +
    + +
    returns (bool)
    In versions less than KDE 3.5.2 only
    + + +
    ArgumentTypeDefault
    a0KABC.Addressee.List
    a1QString
    +

  • +
  • addresseeToLDIF (a0, a1) +
    + +
    returns (bool)
    In versions less than KDE 3.5.2 only
    + + +
    ArgumentTypeDefault
    a0KABC.Addressee.List
    a1QString
    +

  • +
  • addresseeToLDIF (a0, a1) +
    + +
    returns (bool)
    In versions less than KDE 3.5.2 only
    + + +
    ArgumentTypeDefault
    a0KABC.Addressee.List
    a1QString
    +

  • +
  • evaluatePair (a, homeAddr, workAddr, fieldname, value) +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    + + + + + +
    ArgumentTypeDefault
    aKABC.Addressee
    homeAddrKABC.Address
    workAddrKABC.Address
    fieldnameQString
    valueQString
    +

  • +
  • makeLDIFfieldString (field, value, allowEncode = 1) +
    + +
    returns (QString)
    In versions KDE 3.2.0 and above only
    + + + +
    ArgumentTypeDefault
    fieldQString
    valueQString
    allowEncodebool1
    +

  • +
  • parseSingleLine (a, homeAddr, workAddr, line) +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    + + + + +
    ArgumentTypeDefault
    aKABC.Addressee
    homeAddrKABC.Address
    workAddrKABC.Address
    lineQString
    +

  • +
  • splitLine (line, fieldname, value) +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    + + + +
    ArgumentTypeDefault
    lineQString
    fieldnameQString
    valueQString
    +

  • +
+ + + diff --git a/doc/classref/kabc/KABC.LdapClient.html b/doc/classref/kabc/KABC.LdapClient.html new file mode 100644 index 0000000..50b9c5d --- /dev/null +++ b/doc/classref/kabc/KABC.LdapClient.html @@ -0,0 +1,190 @@ + + + + + class KABC.LdapClient + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KABC.LdapClient


+
+ + + + + +
Table of contents
Modules
kabc Classes
All Classes
+
+ + + + + + + + + + +
Modulekabc
ClassKABC.LdapClient
InheritsQObject
+

methods

    +
  • LdapClient (parent = 0, name = 0) +
    + +
    returns a LdapClient instance
    In versions KDE 3.1.0 and above only
    + + +
    ArgumentTypeDefault
    parentQObject0
    namechar0
    +

  • +
  • attrs () +
    + +
    returns (QStringList)
    In versions KDE 3.1.0 and above only

  • +
  • base () +
    + +
    returns (QString)
    In versions KDE 3.1.0 and above only

  • +
  • bindDN () +
    + +
    returns (QString)
    In versions KDE 3.2.0 and above only

  • +
  • cancelQuery () +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only

  • +
  • done () +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only

  • +
  • endParseLDIF () +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only

  • +
  • error (a0) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • host () +
    + +
    returns (QString)
    In versions KDE 3.1.0 and above only

  • +
  • isActive () +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above only

  • +
  • parseLDIF (data) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    dataQByteArray
    +

  • +
  • port () +
    + +
    returns (QString)
    In versions KDE 3.1.0 and above only

  • +
  • pwdBindDN () +
    + +
    returns (QString)
    In versions KDE 3.2.0 and above only

  • +
  • result (a0) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    a0KABC.LdapObject
    +

  • +
  • setAttrs (attrs) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    attrsQStringList
    +

  • +
  • setBase (base) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    baseQString
    +

  • +
  • setBindDN (bindDN) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    bindDNQString
    +

  • +
  • setHost (host) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    hostQString
    +

  • +
  • setPort (port) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    portQString
    +

  • +
  • setPwdBindDN (pwdBindDN) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    pwdBindDNQString
    +

  • +
  • setScope (scope) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    scopeQString
    +

  • +
  • slotData (a0, data) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + + +
    ArgumentTypeDefault
    a0KIO.Job
    dataQByteArray
    +

  • +
  • slotDone () +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only

  • +
  • slotInfoMessage (a0, info) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + + +
    ArgumentTypeDefault
    a0KIO.Job
    infoQString
    +

  • +
  • startParseLDIF () +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only

  • +
  • startQuery (filter) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    filterQString
    +

  • +
+ + + diff --git a/doc/classref/kabc/KABC.LdapConfigWidget.html b/doc/classref/kabc/KABC.LdapConfigWidget.html new file mode 100644 index 0000000..dad295d --- /dev/null +++ b/doc/classref/kabc/KABC.LdapConfigWidget.html @@ -0,0 +1,276 @@ + + + + + class KABC.LdapConfigWidget + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KABC.LdapConfigWidget


+
+ + + + + +
Table of contents
Modules
kabc Classes
All Classes
+
+ + + + + + + + + + +
Modulekabc
ClassKABC.LdapConfigWidget
InheritsQWidget
+

enums

    +
  • LCW_Flags = {W_USER, W_PASS, W_BINDDN, W_REALM, W_HOST, W_PORT, W_VER, W_DN, W_FILTER, W_SECBOX, W_AUTHBOX, W_TIMELIMIT, W_SIZELIMIT, W_ALL +}
+

methods

    +
  • LdapConfigWidget (parent = 0, name = 0, fl = 0) +
    + +
    returns a LdapConfigWidget instance
    In versions KDE 3.3.0 and above only
    + + + +
    ArgumentTypeDefault
    parentQWidget0
    namechar0
    flWFlags0
    +

  • +
  • LdapConfigWidget (flags, parent = 0, name = 0, fl = 0) +
    + +
    returns a LdapConfigWidget instance
    In versions KDE 3.3.0 and above only
    + + + + +
    ArgumentTypeDefault
    flagsint
    parentQWidget0
    namechar0
    flWFlags0
    +

  • +
  • bindDN () +
    + +
    returns (QString)
    In versions KDE 3.3.0 and above only

  • +
  • dn () +
    + +
    returns (QString)
    In versions KDE 3.3.0 and above only

  • +
  • filter () +
    + +
    returns (QString)
    In versions KDE 3.3.0 and above only

  • +
  • flags () +
    + +
    returns (int)
    In versions KDE 3.3.0 and above only

  • +
  • host () +
    + +
    returns (QString)
    In versions KDE 3.3.0 and above only

  • +
  • isAuthAnon () +
    + +
    returns (bool)
    In versions KDE 3.3.0 and above only

  • +
  • isAuthSASL () +
    + +
    returns (bool)
    In versions KDE 3.3.0 and above only

  • +
  • isAuthSimple () +
    + +
    returns (bool)
    In versions KDE 3.3.0 and above only

  • +
  • isSecNO () +
    + +
    returns (bool)
    In versions KDE 3.3.0 and above only

  • +
  • isSecSSL () +
    + +
    returns (bool)
    In versions KDE 3.3.0 and above only

  • +
  • isSecTLS () +
    + +
    returns (bool)
    In versions KDE 3.3.0 and above only

  • +
  • mech () +
    + +
    returns (QString)
    In versions KDE 3.3.0 and above only

  • +
  • password () +
    + +
    returns (QString)
    In versions KDE 3.3.0 and above only

  • +
  • port () +
    + +
    returns (int)
    In versions KDE 3.3.0 and above only

  • +
  • realm () +
    + +
    returns (QString)
    In versions KDE 3.3.0 and above only

  • +
  • setAuthAnon (b = 1) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    bbool1
    +

  • +
  • setAuthSASL (b = 1) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    bbool1
    +

  • +
  • setAuthSimple (b = 1) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    bbool1
    +

  • +
  • setBindDN (binddn) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    binddnQString
    +

  • +
  • setDn (dn) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    dnQString
    +

  • +
  • setFilter (filter) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    filterQString
    +

  • +
  • setFlags (flags) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    flagsint
    +

  • +
  • setHost (host) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    hostQString
    +

  • +
  • setMech (mech) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    mechQString
    +

  • +
  • setPassword (password) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    passwordQString
    +

  • +
  • setPort (port) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    portint
    +

  • +
  • setRealm (realm) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    realmQString
    +

  • +
  • setSecNO (b = 1) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    bbool1
    +

  • +
  • setSecSSL (b = 1) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    bbool1
    +

  • +
  • setSecTLS (b = 1) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    bbool1
    +

  • +
  • setSizeLimit (sizelimit) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    sizelimitint
    +

  • +
  • setTimeLimit (timelimit) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    timelimitint
    +

  • +
  • setUser (user) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    userQString
    +

  • +
  • setVer (ver) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    verint
    +

  • +
  • sizeLimit () +
    + +
    returns (int)
    In versions KDE 3.3.0 and above only

  • +
  • timeLimit () +
    + +
    returns (int)
    In versions KDE 3.3.0 and above only

  • +
  • url () +
    + +
    returns (KABC.LDAPUrl)
    In versions KDE 3.3.0 and above only

  • +
  • user () +
    + +
    returns (QString)
    In versions KDE 3.3.0 and above only

  • +
  • ver () +
    + +
    returns (int)
    In versions KDE 3.3.0 and above only

  • +
+ + + diff --git a/doc/classref/kabc/KABC.LdapObject.html b/doc/classref/kabc/KABC.LdapObject.html new file mode 100644 index 0000000..fd48df4 --- /dev/null +++ b/doc/classref/kabc/KABC.LdapObject.html @@ -0,0 +1,88 @@ + + + + + class KABC.LdapObject + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KABC.LdapObject


+
+ + + + + +
Table of contents
Modules
kabc Classes
All Classes
+
+ + + + + + + + + + +
Modulekabc
ClassKABC.LdapObject
Inherits
+

methods

    +
  • LdapObject () +
    + +
    returns a LdapObject instance
    In versions KDE 3.1.0 and above only

  • +
  • LdapObject (_dn, _cl) +
    + +
    returns a LdapObject instance
    In versions KDE 3.3.0 and above only
    + + +
    ArgumentTypeDefault
    _dnQString
    _clKABC.LdapClient
    +

  • +
  • LdapObject (that) +
    + +
    returns a LdapObject instance
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    thatKABC.LdapObject
    +

  • +
  • LdapObject (a0) +
    + +
    returns a LdapObject instance
    In versions less than KDE 3.3.0 only
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • assign (that) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    thatKABC.LdapObject
    +

  • +
  • clear () +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only

  • +
  • toString () +
    + +
    returns (QString)
    In versions KDE 3.1.0 and above only

  • +
+

variables

  • +variables + + + +
    VariableType
    attrsLdapAttrMap
    clientKABC::LdapClient*
    dnQString
+ + + diff --git a/doc/classref/kabc/KABC.LdapResult.html b/doc/classref/kabc/KABC.LdapResult.html new file mode 100644 index 0000000..235e094 --- /dev/null +++ b/doc/classref/kabc/KABC.LdapResult.html @@ -0,0 +1,45 @@ + + + + + class KABC.LdapResult + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KABC.LdapResult


+
+ + + + + +
Table of contents
Modules
kabc Classes
All Classes
+
+ + + + + + + + + + +
Modulekabc
ClassKABC.LdapResult
Inherits
+

variables

  • +variables + + + +
    VariableType
    clientNumberint
    emailQString
    nameQString
+ + + diff --git a/doc/classref/kabc/KABC.LdapSearch.html b/doc/classref/kabc/KABC.LdapSearch.html new file mode 100644 index 0000000..dd5068e --- /dev/null +++ b/doc/classref/kabc/KABC.LdapSearch.html @@ -0,0 +1,78 @@ + + + + + class KABC.LdapSearch + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KABC.LdapSearch


+
+ + + + + +
Table of contents
Modules
kabc Classes
All Classes
+
+ + + + + + + + + + +
Modulekabc
ClassKABC.LdapSearch
InheritsQObject
+

methods

    +
  • LdapSearch () +
    + +
    returns a LdapSearch instance
    In versions KDE 3.1.0 and above only

  • +
  • cancelSearch () +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only

  • +
  • isAvailable () +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above only

  • +
  • searchData (a0) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    a0QStringList
    +

  • +
  • searchData (a0) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    a0KABC.LdapResultList
    +

  • +
  • searchDone () +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only

  • +
  • startSearch (txt) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    txtQString
    +

  • +
+ + + diff --git a/doc/classref/kabc/KABC.Lock.html b/doc/classref/kabc/KABC.Lock.html new file mode 100644 index 0000000..6d8610e --- /dev/null +++ b/doc/classref/kabc/KABC.Lock.html @@ -0,0 +1,94 @@ + + + + + class KABC.Lock + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KABC.Lock


+
+ + + + + +
Table of contents
Modules
kabc Classes
All Classes
+
+ + + + + + + + + + +
Modulekabc
ClassKABC.Lock
InheritsQObject
+

methods

    +
  • Lock (identifier) +
    + +
    returns a Lock instance
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    identifierQString
    +

  • +
  • error () +
    + +
    returns (QString)
    In versions KDE 3.2.0 and above only

  • +
  • lock () +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only

  • +
  • lockFileName () +
    + +
    returns (QString)
    In versions KDE 3.2.0 and above only

  • +
  • locked () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • locksDir () +
    + + +
    returns (QString)
    In versions KDE 3.2.0 and above only
    static

  • +
  • readLockFile (filename, app) +
    + + +
    returns (bool) pid (int)
    In versions KDE 3.2.0 and above only
    static
    + + +
    ArgumentTypeDefault
    filenameQString
    appQString
    +

  • +
  • unlock () +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only

  • +
  • unlocked () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • writeLockFile (filename) +
    + + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    static
    + +
    ArgumentTypeDefault
    filenameQString
    +

  • +
+ + + diff --git a/doc/classref/kabc/KABC.LockNull.html b/doc/classref/kabc/KABC.LockNull.html new file mode 100644 index 0000000..085f7f0 --- /dev/null +++ b/doc/classref/kabc/KABC.LockNull.html @@ -0,0 +1,60 @@ + + + + + class KABC.LockNull + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KABC.LockNull


+
+ + + + + +
Table of contents
Modules
kabc Classes
All Classes
+
+ + + + + + + + + + +
Modulekabc
ClassKABC.LockNull
InheritsKABC.Lock
+

methods

    +
  • LockNull (allowAccess) +
    + +
    returns a LockNull instance
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    allowAccessbool
    +

  • +
  • error () +
    + +
    returns (QString)
    In versions KDE 3.2.0 and above only

  • +
  • lock () +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only

  • +
  • unlock () +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only

  • +
+ + + diff --git a/doc/classref/kabc/KABC.NameSortMode.html b/doc/classref/kabc/KABC.NameSortMode.html new file mode 100644 index 0000000..6539fa2 --- /dev/null +++ b/doc/classref/kabc/KABC.NameSortMode.html @@ -0,0 +1,64 @@ + + + + + class KABC.NameSortMode + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KABC.NameSortMode


+
+ + + + + +
Table of contents
Modules
kabc Classes
All Classes
+
+ + + + + + + + + + +
Modulekabc
ClassKABC.NameSortMode
InheritsKABC.SortMode
+

enums

    +
  • NameType = {FormattedName, FamilyName, GivenName +}
+

methods

    +
  • NameSortMode () +
    + +
    returns a NameSortMode instance
    In versions KDE 3.4.0 and above only

  • +
  • NameSortMode (type, ascending = 1) +
    + +
    returns a NameSortMode instance
    In versions KDE 3.4.0 and above only
    + + +
    ArgumentTypeDefault
    typeKABC.NameSortMode.NameType
    ascendingbool1
    +

  • +
  • lesser (a0, a1) +
    + +
    returns (bool)
    In versions KDE 3.4.0 and above only
    + + +
    ArgumentTypeDefault
    a0KABC.Addressee
    a1KABC.Addressee
    +

  • +
+ + + diff --git a/doc/classref/kabc/KABC.PhoneNumber.html b/doc/classref/kabc/KABC.PhoneNumber.html new file mode 100644 index 0000000..c14321e --- /dev/null +++ b/doc/classref/kabc/KABC.PhoneNumber.html @@ -0,0 +1,127 @@ + + + + + class KABC.PhoneNumber + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KABC.PhoneNumber


+
+ + + + + +
Table of contents
Modules
kabc Classes
All Classes
+
+ + + + + + + + + + +
Modulekabc
ClassKABC.PhoneNumber
Inherits
+

enums

    +
  • (anonymous) = {Home, Work, Msg, Pref, Voice, Fax, Cell, Video, Bbs, Modem, Car, Isdn, Pcs, Pager +}
  • Types = {Home, Work, Msg, Pref, Voice, Fax, Cell, Video, Bbs, Modem, Car, Isdn, Pcs, Pager +}
+

methods

    +
  • PhoneNumber () +
    +
    returns a PhoneNumber instance

  • +
  • PhoneNumber (number, type = Home) +
    +
    returns a PhoneNumber instance
    + + +
    ArgumentTypeDefault
    numberQString
    typeintHome
    +

  • +
  • id () +
    +
    returns (QString)

  • +
  • label () +
    + +
    returns (QString)
    In versions KDE 3.1.0 and above only

  • +
  • label (type) +
    + + +
    returns (QString)
    In versions KDE 3.1.0 and above only
    static
    + +
    ArgumentTypeDefault
    typeint
    +

  • +
  • number () +
    +
    returns (QString)

  • +
  • setId (id) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    idQString
    +

  • +
  • setNumber (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • setType (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • type () +
    +
    returns (int)

  • +
  • typeLabel () +
    + +
    returns (QString)
    In versions KDE 3.1.0 and above only

  • +
  • typeLabel (type) +
    + + +
    returns (QString)
    In versions KDE 3.1.0 and above only
    static
    + +
    ArgumentTypeDefault
    typeint
    +

  • +
  • typeList () +
    + + +
    returns (TypeList)
    In versions KDE 3.1.0 and above only
    static

  • +
+

operators

    +
  • operator != (a0) +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    a0KABC.PhoneNumber
    +

  • +
  • operator == (a0) +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    a0KABC.PhoneNumber
    +

  • +
+ + + diff --git a/doc/classref/kabc/KABC.Picture.html b/doc/classref/kabc/KABC.Picture.html new file mode 100644 index 0000000..46c5c7c --- /dev/null +++ b/doc/classref/kabc/KABC.Picture.html @@ -0,0 +1,116 @@ + + + + + class KABC.Picture + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KABC.Picture


+
+ + + + + +
Table of contents
Modules
kabc Classes
All Classes
+
+ + + + + + + + + + +
Modulekabc
ClassKABC.Picture
Inherits
+

methods

    +
  • Picture () +
    + +
    returns a Picture instance
    In versions KDE 3.1.0 and above only

  • +
  • Picture (url) +
    + +
    returns a Picture instance
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    urlQString
    +

  • +
  • Picture (data) +
    + +
    returns a Picture instance
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    dataQImage
    +

  • +
  • asString () +
    + +
    returns (QString)
    In versions KDE 3.1.0 and above only

  • +
  • data () +
    + +
    returns (QImage)
    In versions KDE 3.1.0 and above only

  • +
  • isIntern () +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above only

  • +
  • setData (data) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    dataQImage
    +

  • +
  • setType (type) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    typeQString
    +

  • +
  • setUrl (url) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    urlQString
    +

  • +
  • type () +
    + +
    returns (QString)
    In versions KDE 3.1.0 and above only

  • +
  • url () +
    + +
    returns (QString)
    In versions KDE 3.1.0 and above only

  • +
+

operators

    +
  • operator != (a0) +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    a0KABC.Picture
    +

  • +
  • operator == (a0) +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    a0KABC.Picture
    +

  • +
+ + + diff --git a/doc/classref/kabc/KABC.Plugin.html b/doc/classref/kabc/KABC.Plugin.html new file mode 100644 index 0000000..59cf21f --- /dev/null +++ b/doc/classref/kabc/KABC.Plugin.html @@ -0,0 +1,78 @@ + + + + + class KABC.Plugin + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KABC.Plugin


+
+ + + + + +
Table of contents
Modules
kabc Classes
All Classes
+
+ + + + + + + + + + +
Modulekabc
ClassKABC.Plugin
Inherits
+

methods

    +
  • Plugin () +
    + +
    returns a Plugin instance
    In versions KDE 3.1.0 and above only

  • +
  • descriptionLabel () +
    + +
    returns (QString)
    In versions KDE 3.1.0 and above only

  • +
  • nameLabel () +
    + +
    returns (QString)
    In versions KDE 3.1.0 and above only

  • +
  • setDescriptionLabel (label) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    labelQString
    +

  • +
  • setNameLabel (label) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    labelQString
    +

  • +
  • setType (type) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    typeQString
    +

  • +
  • type () +
    + +
    returns (QString)
    In versions KDE 3.1.0 and above only

  • +
+ + + diff --git a/doc/classref/kabc/KABC.Resource.html b/doc/classref/kabc/KABC.Resource.html new file mode 100644 index 0000000..0ce1ab1 --- /dev/null +++ b/doc/classref/kabc/KABC.Resource.html @@ -0,0 +1,346 @@ + + + + + class KABC.Resource + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KABC.Resource


+
+ + + + + +
Table of contents
Modules
kabc Classes
All Classes
+
+ + + + + + + + + + +
Modulekabc
ClassKABC.Resource
Inherits
+

methods

    +
  • Resource (config) +
    + +
    returns a Resource instance
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    configKConfig
    +

  • +
  • Resource (a0) +
    + +
    returns a Resource instance
    In versions KDE 3.1.0 and above, but less than KDE 3.2.0
    + +
    ArgumentTypeDefault
    a0KABC.AddressBook
    +

  • +
  • Resource (a0) +
    + +
    returns a Resource instance
    In versions less than KDE 3.1.0 only
    + +
    ArgumentTypeDefault
    a0KABC.AddressBook
    +

  • +
  • addressBook () +
    + +
    returns (KABC.AddressBook)
    In versions KDE 3.2.0 and above only

  • +
  • addressBook () +
    + +
    returns (KABC.AddressBook)
    In versions KDE 3.1.0 and above, but less than KDE 3.2.0

  • +
  • addressBook () +
    + +
    returns (KABC.AddressBook)
    In versions less than KDE 3.1.0 only

  • +
  • asyncLoad () +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only

  • +
  • asyncSave (ticket) +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    ticketKABC.Ticket
    +

  • +
  • begin () +
    Not Implemented
    +

  • +
  • begin () +
    Not Implemented
    +

  • +
  • cleanUp () +
    + +
    returns nothing
    In versions KDE 3.1.0 and above, but less than KDE 3.2.0

  • +
  • clear () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • close () +
    + +
    returns nothing
    In versions KDE 3.1.0 and above, but less than KDE 3.2.0

  • +
  • close () +
    + +
    returns nothing
    In versions less than KDE 3.1.0 only

  • +
  • createTicket (a0) +
    + +
    returns (KABC.Ticket)
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0KABC.Resource
    +

  • +
  • createTicket (a0) +
    + +
    returns (KABC.Ticket)
    In versions KDE 3.1.0 and above, but less than KDE 3.2.0
    + +
    ArgumentTypeDefault
    a0KABC.Resource
    +

  • +
  • createTicket (a0) +
    + +
    returns (KABC.Ticket)
    In versions less than KDE 3.1.0 only
    + +
    ArgumentTypeDefault
    a0KABC.Resource
    +

  • +
  • cryptStr (a0) +
    + + +
    returns (QString)
    In versions KDE 3.1.0 and above, but less than KDE 3.2.0
    static
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • end () +
    Not Implemented
    +

  • +
  • end () +
    Not Implemented
    +

  • +
  • fastResource () +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above, but less than KDE 3.2.0

  • +
  • findByCategory (category) +
    + +
    returns (KABC.Addressee.List)
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    categoryQString
    +

  • +
  • findByEmail (email) +
    + +
    returns (KABC.Addressee.List)
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    emailQString
    +

  • +
  • findByName (name) +
    + +
    returns (KABC.Addressee.List)
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    nameQString
    +

  • +
  • findByUid (uid) +
    + +
    returns (KABC.Addressee)
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    uidQString
    +

  • +
  • identifier () +
    + +
    returns (QString)
    In versions KDE 3.1.0 and above, but less than KDE 3.2.0

  • +
  • insertAddressee (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0KABC.Addressee
    +

  • +
  • load () = 0 +
    + + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    pure virtual

  • +
  • load () +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above, but less than KDE 3.2.0

  • +
  • load (a0) +
    + +
    returns (bool)
    In versions less than KDE 3.1.0 only
    + +
    ArgumentTypeDefault
    a0KABC.AddressBook
    +

  • +
  • loadingError (resource, msg) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    resourceKABC.Resource
    msgQString
    +

  • +
  • loadingFinished (resource) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    resourceKABC.Resource
    +

  • +
  • name () +
    + +
    returns (QString)
    In versions KDE 3.1.0 and above, but less than KDE 3.2.0

  • +
  • open () +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above, but less than KDE 3.2.0

  • +
  • open () +
    + +
    returns (bool)
    In versions less than KDE 3.1.0 only

  • +
  • readOnly () +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above, but less than KDE 3.2.0

  • +
  • releaseSaveTicket (a0) = 0 +
    + + +
    returns nothing
    In versions KDE 3.2.0 and above only
    pure virtual
    + +
    ArgumentTypeDefault
    a0KABC.Ticket
    +

  • +
  • removeAddressee (addr) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    addrKABC.Addressee
    +

  • +
  • removeAddressee (a0) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above, but less than KDE 3.2.0
    + +
    ArgumentTypeDefault
    a0KABC.Addressee
    +

  • +
  • requestSaveTicket () = 0 +
    + + +
    returns (KABC.Ticket)
    In versions KDE 3.2.0 and above only
    pure virtual

  • +
  • requestSaveTicket () +
    + +
    returns (KABC.Ticket)
    In versions KDE 3.1.0 and above, but less than KDE 3.2.0

  • +
  • requestSaveTicket () +
    + +
    returns (KABC.Ticket)
    In versions less than KDE 3.1.0 only

  • +
  • save (ticket) = 0 +
    + + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    pure virtual
    + +
    ArgumentTypeDefault
    ticketKABC.Ticket
    +

  • +
  • save (a0) +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above, but less than KDE 3.2.0
    + +
    ArgumentTypeDefault
    a0KABC.Ticket
    +

  • +
  • save (a0) +
    + +
    returns (bool)
    In versions less than KDE 3.1.0 only
    + +
    ArgumentTypeDefault
    a0KABC.Ticket
    +

  • +
  • savingError (resource, msg) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    resourceKABC.Resource
    msgQString
    +

  • +
  • savingFinished (resource) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    resourceKABC.Resource
    +

  • +
  • setAddressBook (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0KABC.AddressBook
    +

  • +
  • setAddressBook (a0) +
    + +
    returns nothing
    In versions less than KDE 3.1.0 only
    + +
    ArgumentTypeDefault
    a0KABC.AddressBook
    +

  • +
  • setFastResource (a0) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above, but less than KDE 3.2.0
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • setName (a0) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above, but less than KDE 3.2.0
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • setReadOnly (a0) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above, but less than KDE 3.2.0
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • writeConfig (config) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    configKConfig
    +

  • +
+ + + diff --git a/doc/classref/kabc/KABC.ResourceFile.html b/doc/classref/kabc/KABC.ResourceFile.html new file mode 100644 index 0000000..2fb527e --- /dev/null +++ b/doc/classref/kabc/KABC.ResourceFile.html @@ -0,0 +1,312 @@ + + + + + class KABC.ResourceFile + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KABC.ResourceFile


+
+ + + + + +
Table of contents
Modules
kabc Classes
All Classes
+
+ + + + + + + + + + +
Modulekabc
ClassKABC.ResourceFile
InheritsKABC.Resource
+

methods

    +
  • ResourceFile (cfg) +
    + +
    returns a ResourceFile instance
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    cfgKConfig
    +

  • +
  • ResourceFile (fileName, formatName = "vcard") +
    + +
    returns a ResourceFile instance
    In versions KDE 3.3.0 and above only
    + + +
    ArgumentTypeDefault
    fileNameQString
    formatNameQString"vcard"
    +

  • +
  • ResourceFile (a0, a1) +
    + +
    returns a ResourceFile instance
    In versions less than KDE 3.3.0 only
    + + +
    ArgumentTypeDefault
    a0KABC.AddressBook
    a1KConfig
    +

  • +
  • ResourceFile (a0, a1, a2 = 0) +
    + +
    returns a ResourceFile instance
    In versions less than KDE 3.3.0 only
    + + + +
    ArgumentTypeDefault
    a0KABC.AddressBook
    a1QString
    a2KABC.FormatPlugin0
    +

  • +
  • ResourceFile (a0, a1) +
    + +
    returns a ResourceFile instance
    In versions KDE 3.1.0 and above, but less than KDE 3.5.3
    + + +
    ArgumentTypeDefault
    a0KABC.AddressBook
    a1KConfig
    +

  • +
  • ResourceFile (a0, a1, a2 = 0) +
    + +
    returns a ResourceFile instance
    In versions KDE 3.1.0 and above, but less than KDE 3.5.3
    + + + +
    ArgumentTypeDefault
    a0KABC.AddressBook
    a1QString
    a2KABC.FormatPlugin0
    +

  • +
  • ResourceFile (a0, a1, a2 = 0) +
    + +
    returns a ResourceFile instance
    In versions less than KDE 3.1.0 only
    + + + +
    ArgumentTypeDefault
    a0KABC.AddressBook
    a1QString
    a2KABC.Format0
    +

  • +
  • asyncLoad () +
    + +
    returns (bool)
    In versions KDE 3.3.0 and above only

  • +
  • asyncSave (ticket) +
    + +
    returns (bool)
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    ticketKABC.Ticket
    +

  • +
  • checkFile () +
    + +
    returns nothing
    In versions less than KDE 3.1.0 only

  • +
  • cleanUp () +
    + +
    returns nothing
    In versions less than KDE 3.3.0 only

  • +
  • cleanUp () +
    + +
    returns nothing
    In versions less than KDE 3.2.0 only

  • +
  • close () +
    + +
    returns nothing
    In versions less than KDE 3.3.0 only

  • +
  • close () +
    + +
    returns nothing
    In versions KDE 3.1.0 and above, but less than KDE 3.5.3

  • +
  • doClose () +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only

  • +
  • doOpen () +
    + +
    returns (bool)
    In versions KDE 3.3.0 and above only

  • +
  • fileChanged () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • fileName () +
    + +
    returns (QString)
    In versions KDE 3.2.0 and above only

  • +
  • fileName () +
    + +
    returns (QString)
    In versions less than KDE 3.2.0 only

  • +
  • format () +
    + +
    returns (QString)
    In versions KDE 3.5.1 and above only

  • +
  • identifier () +
    + +
    returns (QString)
    In versions less than KDE 3.5.1 only

  • +
  • identifier () +
    + +
    returns (QString)
    In versions KDE 3.1.0 and above, but less than KDE 3.5.3

  • +
  • init (fileName, format) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + + +
    ArgumentTypeDefault
    fileNameQString
    formatQString
    +

  • +
  • load () +
    + +
    returns (bool)
    In versions KDE 3.3.0 and above only

  • +
  • load () +
    + +
    returns (bool)
    In versions less than KDE 3.3.0 only

  • +
  • load () +
    + +
    returns (bool)
    In versions less than KDE 3.2.0 only

  • +
  • load (a0) +
    + +
    returns (bool)
    In versions less than KDE 3.1.0 only
    + +
    ArgumentTypeDefault
    a0KABC.AddressBook
    +

  • +
  • lock (fileName) +
    Not Implemented
    +

  • +
  • lock (a0) +
    Not Implemented
    +

  • +
  • open () +
    + +
    returns (bool)
    In versions less than KDE 3.3.0 only

  • +
  • open () +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above, but less than KDE 3.5.3

  • +
  • releaseSaveTicket (a0) +
    + +
    returns nothing
    In versions KDE 3.5.1 and above only
    + +
    ArgumentTypeDefault
    a0KABC.Ticket
    +

  • +
  • releaseSaveTicket (a0) +
    + +
    returns nothing
    In versions less than KDE 3.5.1 only
    + +
    ArgumentTypeDefault
    a0KABC.Ticket
    +

  • +
  • releaseSaveTicket (a0) +
    + +
    returns nothing
    In versions less than KDE 3.2.0 only
    + +
    ArgumentTypeDefault
    a0KABC.Ticket
    +

  • +
  • removeAddressee (addr) +
    + +
    returns nothing
    In versions KDE 3.5.2 and above only
    + +
    ArgumentTypeDefault
    addrKABC.Addressee
    +

  • +
  • removeAddressee (a0) +
    + +
    returns nothing
    In versions less than KDE 3.5.2 only
    + +
    ArgumentTypeDefault
    a0KABC.Addressee
    +

  • +
  • removeAddressee (a0) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above, but less than KDE 3.5.3
    + +
    ArgumentTypeDefault
    a0KABC.Addressee
    +

  • +
  • requestSaveTicket () +
    + +
    returns (KABC.Ticket)
    In versions KDE 3.5.1 and above only

  • +
  • requestSaveTicket () +
    + +
    returns (KABC.Ticket)
    In versions less than KDE 3.5.1 only

  • +
  • requestSaveTicket () +
    + +
    returns (KABC.Ticket)
    In versions less than KDE 3.2.0 only

  • +
  • save (ticket) +
    + +
    returns (bool)
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    ticketKABC.Ticket
    +

  • +
  • save (a0) +
    + +
    returns (bool)
    In versions less than KDE 3.3.0 only
    + +
    ArgumentTypeDefault
    a0KABC.Ticket
    +

  • +
  • save (a0) +
    + +
    returns (bool)
    In versions less than KDE 3.2.0 only
    + +
    ArgumentTypeDefault
    a0KABC.Ticket
    +

  • +
  • setFileName (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • setFileName (a0) +
    + +
    returns nothing
    In versions less than KDE 3.2.0 only
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • setFormat (name) +
    + +
    returns nothing
    In versions KDE 3.5.1 and above only
    + +
    ArgumentTypeDefault
    nameQString
    +

  • +
  • unlock (fileName) +
    Not Implemented
    +

  • +
  • unlock (a0) +
    Not Implemented
    +

  • +
  • writeConfig (cfg) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    cfgKConfig
    +

  • +
+ + + diff --git a/doc/classref/kabc/KABC.ResourceSelectDialog.html b/doc/classref/kabc/KABC.ResourceSelectDialog.html new file mode 100644 index 0000000..737ff0d --- /dev/null +++ b/doc/classref/kabc/KABC.ResourceSelectDialog.html @@ -0,0 +1,70 @@ + + + + + class KABC.ResourceSelectDialog + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KABC.ResourceSelectDialog


+
+ + + + + +
Table of contents
Modules
kabc Classes
All Classes
+
+ + + + + + + + + + +
Modulekabc
ClassKABC.ResourceSelectDialog
Inherits
+

methods

    +
  • ResourceSelectDialog (ab, parent = 0, name = 0) +
    + +
    returns a ResourceSelectDialog instance
    In versions KDE 3.1.0 and above only
    + + + +
    ArgumentTypeDefault
    abKABC.AddressBook
    parentQWidget0
    namechar0
    +

  • +
  • ResourceSelectDialog (a0) +
    + +
    returns a ResourceSelectDialog instance
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    a0KABC.ResourceSelectDialog
    +

  • +
  • getResource (ab, parent = 0) +
    + + +
    returns (KABC.Resource)
    In versions KDE 3.1.0 and above only
    static
    + + +
    ArgumentTypeDefault
    abKABC.AddressBook
    parentQWidget0
    +

  • +
  • resource () +
    + +
    returns (KABC.Resource)
    In versions KDE 3.1.0 and above only

  • +
+ + + diff --git a/doc/classref/kabc/KABC.Secrecy.html b/doc/classref/kabc/KABC.Secrecy.html new file mode 100644 index 0000000..65590a7 --- /dev/null +++ b/doc/classref/kabc/KABC.Secrecy.html @@ -0,0 +1,100 @@ + + + + + class KABC.Secrecy + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KABC.Secrecy


+
+ + + + + +
Table of contents
Modules
kabc Classes
All Classes
+
+ + + + + + + + + + +
Modulekabc
ClassKABC.Secrecy
Inherits
+

enums

    +
  • Types = {Public, Private, Confidential, Invalid +}
  • Types = {Public, Private, Confidential +}
+

methods

    +
  • Secrecy (type = Private) +
    + +
    returns a Secrecy instance
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    typeintPrivate
    +

  • +
  • asString () +
    + +
    returns (QString)
    In versions KDE 3.1.0 and above only

  • +
  • isValid () +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only

  • +
  • setType (type) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    typeint
    +

  • +
  • type () +
    + +
    returns (int)
    In versions KDE 3.1.0 and above only

  • +
  • typeLabel (type) +
    + + +
    returns (QString)
    In versions KDE 3.1.0 and above only
    static
    + +
    ArgumentTypeDefault
    typeint
    +

  • +
  • typeList () +
    + + +
    returns (TypeList)
    In versions KDE 3.1.0 and above only
    static

  • +
+

operators

    +
  • operator != (a0) +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    a0KABC.Secrecy
    +

  • +
  • operator == (a0) +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    a0KABC.Secrecy
    +

  • +
+ + + diff --git a/doc/classref/kabc/KABC.SortMode.html b/doc/classref/kabc/KABC.SortMode.html new file mode 100644 index 0000000..b82da33 --- /dev/null +++ b/doc/classref/kabc/KABC.SortMode.html @@ -0,0 +1,50 @@ + + + + + class KABC.SortMode + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KABC.SortMode


+
+ + + + + +
Table of contents
Modules
kabc Classes
All Classes
+
+ + + + + + + + + + +
Modulekabc
ClassKABC.SortMode (abstract)
Inherits
+

methods

    +
  • lesser (first, second) = 0 +
    + + +
    returns (bool)
    In versions KDE 3.4.0 and above only
    pure virtual
    + + +
    ArgumentTypeDefault
    firstKABC.Addressee
    secondKABC.Addressee
    +

  • +
+ + + diff --git a/doc/classref/kabc/KABC.SortingTraits.FamilyName.html b/doc/classref/kabc/KABC.SortingTraits.FamilyName.html new file mode 100644 index 0000000..5b1b56e --- /dev/null +++ b/doc/classref/kabc/KABC.SortingTraits.FamilyName.html @@ -0,0 +1,59 @@ + + + + + class KABC.SortingTraits.FamilyName + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KABC.SortingTraits.FamilyName


+
+ + + + + +
Table of contents
Modules
kabc Classes
All Classes
+
+ + + + + + + + + + +
Modulekabc
ClassKABC.SortingTraits.FamilyName
Inherits
+

methods

    +
  • eq (a0, a1) +
    + + +
    returns (bool)
    In versions KDE 3.1.0 and above only
    static
    + + +
    ArgumentTypeDefault
    a0KABC.Addressee
    a1KABC.Addressee
    +

  • +
  • lt (a0, a1) +
    + + +
    returns (bool)
    In versions KDE 3.1.0 and above only
    static
    + + +
    ArgumentTypeDefault
    a0KABC.Addressee
    a1KABC.Addressee
    +

  • +
+ + + diff --git a/doc/classref/kabc/KABC.SortingTraits.FormattedName.html b/doc/classref/kabc/KABC.SortingTraits.FormattedName.html new file mode 100644 index 0000000..9c6ff2e --- /dev/null +++ b/doc/classref/kabc/KABC.SortingTraits.FormattedName.html @@ -0,0 +1,59 @@ + + + + + class KABC.SortingTraits.FormattedName + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KABC.SortingTraits.FormattedName


+
+ + + + + +
Table of contents
Modules
kabc Classes
All Classes
+
+ + + + + + + + + + +
Modulekabc
ClassKABC.SortingTraits.FormattedName
Inherits
+

methods

    +
  • eq (a0, a1) +
    + + +
    returns (bool)
    In versions KDE 3.1.0 and above only
    static
    + + +
    ArgumentTypeDefault
    a0KABC.Addressee
    a1KABC.Addressee
    +

  • +
  • lt (a0, a1) +
    + + +
    returns (bool)
    In versions KDE 3.1.0 and above only
    static
    + + +
    ArgumentTypeDefault
    a0KABC.Addressee
    a1KABC.Addressee
    +

  • +
+ + + diff --git a/doc/classref/kabc/KABC.SortingTraits.GivenName.html b/doc/classref/kabc/KABC.SortingTraits.GivenName.html new file mode 100644 index 0000000..6c75dd1 --- /dev/null +++ b/doc/classref/kabc/KABC.SortingTraits.GivenName.html @@ -0,0 +1,59 @@ + + + + + class KABC.SortingTraits.GivenName + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KABC.SortingTraits.GivenName


+
+ + + + + +
Table of contents
Modules
kabc Classes
All Classes
+
+ + + + + + + + + + +
Modulekabc
ClassKABC.SortingTraits.GivenName
Inherits
+

methods

    +
  • eq (a0, a1) +
    + + +
    returns (bool)
    In versions KDE 3.1.0 and above only
    static
    + + +
    ArgumentTypeDefault
    a0KABC.Addressee
    a1KABC.Addressee
    +

  • +
  • lt (a0, a1) +
    + + +
    returns (bool)
    In versions KDE 3.1.0 and above only
    static
    + + +
    ArgumentTypeDefault
    a0KABC.Addressee
    a1KABC.Addressee
    +

  • +
+ + + diff --git a/doc/classref/kabc/KABC.SortingTraits.Name.html b/doc/classref/kabc/KABC.SortingTraits.Name.html new file mode 100644 index 0000000..429a87d --- /dev/null +++ b/doc/classref/kabc/KABC.SortingTraits.Name.html @@ -0,0 +1,59 @@ + + + + + class KABC.SortingTraits.Name + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KABC.SortingTraits.Name


+
+ + + + + +
Table of contents
Modules
kabc Classes
All Classes
+
+ + + + + + + + + + +
Modulekabc
ClassKABC.SortingTraits.Name
Inherits
+

methods

    +
  • eq (a0, a1) +
    + + +
    returns (bool)
    In versions KDE 3.1.0 and above only
    static
    + + +
    ArgumentTypeDefault
    a0KABC.Addressee
    a1KABC.Addressee
    +

  • +
  • lt (a0, a1) +
    + + +
    returns (bool)
    In versions KDE 3.1.0 and above only
    static
    + + +
    ArgumentTypeDefault
    a0KABC.Addressee
    a1KABC.Addressee
    +

  • +
+ + + diff --git a/doc/classref/kabc/KABC.SortingTraits.Uid.html b/doc/classref/kabc/KABC.SortingTraits.Uid.html new file mode 100644 index 0000000..d28040c --- /dev/null +++ b/doc/classref/kabc/KABC.SortingTraits.Uid.html @@ -0,0 +1,59 @@ + + + + + class KABC.SortingTraits.Uid + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KABC.SortingTraits.Uid


+
+ + + + + +
Table of contents
Modules
kabc Classes
All Classes
+
+ + + + + + + + + + +
Modulekabc
ClassKABC.SortingTraits.Uid
Inherits
+

methods

    +
  • eq (a0, a1) +
    + + +
    returns (bool)
    In versions KDE 3.1.0 and above only
    static
    + + +
    ArgumentTypeDefault
    a0KABC.Addressee
    a1KABC.Addressee
    +

  • +
  • lt (a0, a1) +
    + + +
    returns (bool)
    In versions KDE 3.1.0 and above only
    static
    + + +
    ArgumentTypeDefault
    a0KABC.Addressee
    a1KABC.Addressee
    +

  • +
+ + + diff --git a/doc/classref/kabc/KABC.SortingTraits.html b/doc/classref/kabc/KABC.SortingTraits.html new file mode 100644 index 0000000..b13211b --- /dev/null +++ b/doc/classref/kabc/KABC.SortingTraits.html @@ -0,0 +1,41 @@ + + + + + class KABC.SortingTraits + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KABC.SortingTraits


+
+ + + + + +
Table of contents
Modules
kabc Classes
All Classes
+
+ + + + + + + + + + +
Modulekabc
ClassKABC.SortingTraits
Inherits
+

classes

+ + + diff --git a/doc/classref/kabc/KABC.Sound.html b/doc/classref/kabc/KABC.Sound.html new file mode 100644 index 0000000..60c27e1 --- /dev/null +++ b/doc/classref/kabc/KABC.Sound.html @@ -0,0 +1,109 @@ + + + + + class KABC.Sound + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KABC.Sound


+
+ + + + + +
Table of contents
Modules
kabc Classes
All Classes
+
+ + + + + + + + + + +
Modulekabc
ClassKABC.Sound
Inherits
+

methods

    +
  • Sound () +
    + +
    returns a Sound instance
    In versions KDE 3.1.0 and above only

  • +
  • Sound (url) +
    + +
    returns a Sound instance
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    urlQString
    +

  • +
  • Sound (data) +
    + +
    returns a Sound instance
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    dataQByteArray
    +

  • +
  • asString () +
    + +
    returns (QString)
    In versions KDE 3.1.0 and above only

  • +
  • data () +
    + +
    returns (QByteArray)
    In versions KDE 3.1.0 and above only

  • +
  • isEmpty () +
    + +
    returns (bool)
    In versions KDE 3.4.0 and above only

  • +
  • isIntern () +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above only

  • +
  • setData (data) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    dataQByteArray
    +

  • +
  • setUrl (url) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    urlQString
    +

  • +
  • url () +
    + +
    returns (QString)
    In versions KDE 3.1.0 and above only

  • +
+

operators

    +
  • operator != (a0) +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    a0KABC.Sound
    +

  • +
  • operator == (a0) +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    a0KABC.Sound
    +

  • +
+ + + diff --git a/doc/classref/kabc/KABC.StdAddressBook.html b/doc/classref/kabc/KABC.StdAddressBook.html new file mode 100644 index 0000000..fb5eab3 --- /dev/null +++ b/doc/classref/kabc/KABC.StdAddressBook.html @@ -0,0 +1,143 @@ + + + + + class KABC.StdAddressBook + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KABC.StdAddressBook


+
+ + + + + +
Table of contents
Modules
kabc Classes
All Classes
+
+ + + + + + + + + + +
Modulekabc
ClassKABC.StdAddressBook
InheritsKABC.AddressBook
+

methods

    +
  • StdAddressBook () +
    +
    returns a StdAddressBook instance

  • +
  • StdAddressBook (asynchronous) +
    + +
    returns a StdAddressBook instance
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    asynchronousbool
    +

  • +
  • automaticSave () +
    + + +
    returns (bool)
    In versions KDE 3.1.0 and above only
    static

  • +
  • close () +
    + + +
    returns nothing
    In versions KDE 3.1.0 and above only
    static

  • +
  • directoryName () +
    + + +
    returns (QString)
    In versions KDE 3.1.0 and above only
    static

  • +
  • fileName () +
    + +
    returns (QString)
    static

  • +
  • handleCrash () +
    + + +
    returns nothing
    In versions KDE 3.1.1 and above only
    static

  • +
  • identifier () +
    + +
    returns (QString)
    In versions less than KDE 3.1.0 only

  • +
  • init (asynchronous) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    asynchronousbool
    +

  • +
  • save () +
    + +
    returns (bool)
    static

  • +
  • saveAll () +
    + +
    returns (bool)
    In versions KDE 3.2.2 and above only

  • +
  • self () +
    + + +
    returns (KABC.StdAddressBook)
    In versions KDE 3.2.0 and above only
    static

  • +
  • self (asynchronous) +
    + + +
    returns (KABC.StdAddressBook)
    In versions KDE 3.2.0 and above only
    static
    + +
    ArgumentTypeDefault
    asynchronousbool
    +

  • +
  • self () +
    + + +
    returns (KABC.AddressBook)
    In versions less than KDE 3.2.0 only
    static

  • +
  • self (a0) +
    + + +
    returns (KABC.AddressBook)
    In versions KDE 3.1.0 and above, but less than KDE 3.2.2
    static
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • setAutomaticSave (state) +
    + + +
    returns nothing
    In versions KDE 3.1.0 and above only
    static
    + +
    ArgumentTypeDefault
    statebool
    +

  • +
  • setWhoAmI (addr) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    addrKABC.Addressee
    +

  • +
  • whoAmI () +
    + +
    returns (KABC.Addressee)
    In versions KDE 3.2.0 and above only

  • +
  • ~StdAddressBook () +
    + +
    returns nothing
    In versions less than KDE 3.2.0 only

  • +
+ + + diff --git a/doc/classref/kabc/KABC.Ticket.html b/doc/classref/kabc/KABC.Ticket.html new file mode 100644 index 0000000..f5f3aa7 --- /dev/null +++ b/doc/classref/kabc/KABC.Ticket.html @@ -0,0 +1,50 @@ + + + + + class KABC.Ticket + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KABC.Ticket


+
+ + + + + +
Table of contents
Modules
kabc Classes
All Classes
+
+ + + + + + + + + + +
Modulekabc
ClassKABC.Ticket
Inherits
+

methods

    +
  • Ticket (resource) +
    +
    returns a Ticket instance
    + +
    ArgumentTypeDefault
    resourceKABC.Resource
    +

  • +
  • resource () +
    +
    returns (KABC.Resource)

  • +
+ + + diff --git a/doc/classref/kabc/KABC.TimeZone.html b/doc/classref/kabc/KABC.TimeZone.html new file mode 100644 index 0000000..af7d117 --- /dev/null +++ b/doc/classref/kabc/KABC.TimeZone.html @@ -0,0 +1,80 @@ + + + + + class KABC.TimeZone + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KABC.TimeZone


+
+ + + + + +
Table of contents
Modules
kabc Classes
All Classes
+
+ + + + + + + + + + +
Modulekabc
ClassKABC.TimeZone
Inherits
+

methods

    +
  • TimeZone () +
    +
    returns a TimeZone instance

  • +
  • TimeZone (offset) +
    +
    returns a TimeZone instance
    + +
    ArgumentTypeDefault
    offsetint
    +

  • +
  • asString () +
    +
    returns (QString)

  • +
  • isValid () +
    +
    returns (bool)

  • +
  • offset () +
    +
    returns (int)

  • +
  • setOffset (offset) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    offsetint
    +

  • +
+

operators

    +
  • operator != (a0) +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    a0KABC.TimeZone
    +

  • +
  • operator == (a0) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    a0KABC.TimeZone
    +

  • +
+ + + diff --git a/doc/classref/kabc/KABC.VCardConverter.html b/doc/classref/kabc/KABC.VCardConverter.html new file mode 100644 index 0000000..aec960a --- /dev/null +++ b/doc/classref/kabc/KABC.VCardConverter.html @@ -0,0 +1,96 @@ + + + + + class KABC.VCardConverter + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KABC.VCardConverter


+
+ + + + + +
Table of contents
Modules
kabc Classes
All Classes
+
+ + + + + + + + + + +
Modulekabc
ClassKABC.VCardConverter
Inherits
+

enums

    +
  • Version = {v2_1, v3_0 +}
+

methods

    +
  • VCardConverter () +
    + +
    returns a VCardConverter instance
    In versions KDE 3.1.1 and above only

  • +
  • addresseeToVCard (a0, a1, version = v3_0) +
    + +
    returns (bool)
    In versions KDE 3.1.1 and above only
    + + + +
    ArgumentTypeDefault
    a0KABC.Addressee
    a1QString
    versionKABC.VCardConverter.Versionv3_0
    +

  • +
  • createVCard (addr, version = v3_0) +
    + +
    returns (QString)
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    addrKABC.Addressee
    versionKABC.VCardConverter.Versionv3_0
    +

  • +
  • createVCards (list, version = v3_0) +
    + +
    returns (QString)
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    listKABC.Addressee.List
    versionKABC.VCardConverter.Versionv3_0
    +

  • +
  • parseVCard (vcard) +
    + +
    returns (KABC.Addressee)
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    vcardQString
    +

  • +
  • parseVCards (vcard) +
    + +
    returns (KABC.Addressee.List)
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    vcardQString
    +

  • +
  • vCardToAddressee (a0, a1, version = v3_0) +
    + +
    returns (bool)
    In versions KDE 3.1.1 and above only
    + + + +
    ArgumentTypeDefault
    a0QString
    a1KABC.Addressee
    versionKABC.VCardConverter.Versionv3_0
    +

  • +
+ + + diff --git a/doc/classref/kabc/KABC.VCardFormat.html b/doc/classref/kabc/KABC.VCardFormat.html new file mode 100644 index 0000000..fc7eb79 --- /dev/null +++ b/doc/classref/kabc/KABC.VCardFormat.html @@ -0,0 +1,58 @@ + + + + + class KABC.VCardFormat + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KABC.VCardFormat


+
+ + + + + +
Table of contents
Modules
kabc Classes
All Classes
+
+ + + + + + + + + + +
Modulekabc
ClassKABC.VCardFormat
InheritsKABC.Format
+

methods

    +
  • VCardFormat () +
    +
    returns a VCardFormat instance

  • +
  • load (a0, fileName) +
    +
    returns (bool)
    + + +
    ArgumentTypeDefault
    a0KABC.AddressBook
    fileNameQString
    +

  • +
  • save (a0, fileName) +
    +
    returns (bool)
    + + +
    ArgumentTypeDefault
    a0KABC.AddressBook
    fileNameQString
    +

  • +
+ + + diff --git a/doc/classref/kabc/KABC.VCardFormatPlugin.html b/doc/classref/kabc/KABC.VCardFormatPlugin.html new file mode 100644 index 0000000..77c996c --- /dev/null +++ b/doc/classref/kabc/KABC.VCardFormatPlugin.html @@ -0,0 +1,86 @@ + + + + + class KABC.VCardFormatPlugin + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KABC.VCardFormatPlugin


+
+ + + + + +
Table of contents
Modules
kabc Classes
All Classes
+
+ + + + + + + + + + +
Modulekabc
ClassKABC.VCardFormatPlugin
InheritsKABC.FormatPlugin
+

methods

    +
  • VCardFormatPlugin () +
    + +
    returns a VCardFormatPlugin instance
    In versions KDE 3.1.1 and above only

  • +
  • checkFormat (file) +
    + +
    returns (bool)
    In versions KDE 3.1.1 and above only
    + +
    ArgumentTypeDefault
    fileQFile
    +

  • +
  • load (a0, file) +
    + +
    returns (bool)
    In versions KDE 3.1.1 and above only
    + + +
    ArgumentTypeDefault
    a0KABC.Addressee
    fileQFile
    +

  • +
  • loadAll (a0, a1, file) +
    + +
    returns (bool)
    In versions KDE 3.1.1 and above only
    + + + +
    ArgumentTypeDefault
    a0KABC.AddressBook
    a1KABC.Resource
    fileQFile
    +

  • +
  • save (a0, file) +
    + +
    returns nothing
    In versions KDE 3.1.1 and above only
    + + +
    ArgumentTypeDefault
    a0KABC.Addressee
    fileQFile
    +

  • +
  • saveAll (a0, a1, file) +
    + +
    returns nothing
    In versions KDE 3.1.1 and above only
    + + + +
    ArgumentTypeDefault
    a0KABC.AddressBook
    a1KABC.Resource
    fileQFile
    +

  • +
+ + + diff --git a/doc/classref/kabc/KABC.html b/doc/classref/kabc/KABC.html new file mode 100644 index 0000000..befb11d --- /dev/null +++ b/doc/classref/kabc/KABC.html @@ -0,0 +1,67 @@ + + + + + class KABC + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KABC


+
+ + + + + +
Table of contents
Modules
kabc Classes
All Classes
+
+ + + + + + + + + + +
Modulekabc
ClassKABC
Inherits
+

classes

+

enums

    +
  • (anonymous) = {Uid, Name, FormattedName, FamilyName, GivenName +}
+

methods

    +
  • VCardStringToDate (dateString) +
    + +
    returns (QDateTime)
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    dateStringQString
    +

  • +
  • dateToVCardString (date) +
    + +
    returns (QString)
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    dateQDate
    +

  • +
  • dateToVCardString (date) +
    + +
    returns (QString)
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    dateQDate
    +

  • +
+ + + diff --git a/doc/classref/kabc/index.html b/doc/classref/kabc/index.html new file mode 100644 index 0000000..4091822 --- /dev/null +++ b/doc/classref/kabc/index.html @@ -0,0 +1,95 @@ + + + + + module kabc + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

kabc Class Index


+
+ + + + +
Table of contents
Modules
All Classes
+
+ kabc Global and Namespace members

+ +
+ + + + + + + + + + + + + + + + + + + + + +
KABC - KABC.Format
KABC
KABC.Address
KABC.AddressBook
KABC.AddressLineEdit
KABC.AddresseeDialog
KABC.AddresseeItem
KABC.Agent
KABC.ConsoleErrorHandler
KABC.DistributionList
KABC.DistributionList.Entry
KABC.DistributionListDialog
KABC.DistributionListEditorWidget
KABC.DistributionListManager
KABC.DistributionListWatcher
KABC.EmailSelectDialog
KABC.EmailSelector
KABC.ErrorHandler
KABC.Field
KABC.FieldSortMode
KABC.Format
+ + + + + + + + + + + + + + + + + + + + + +
KABC.FormatFactory - KABC.PhoneNumber
KABC.FormatFactory
KABC.FormatInfo
KABC.FormatPlugin
KABC.GUIErrorHandler
KABC.Geo
KABC.GuiErrorHandler
KABC.Key
KABC.LDAPUrl
KABC.LDAPUrl.Extension
KABC.LDIF
KABC.LDIFConverter
KABC.LdapClient
KABC.LdapConfigWidget
KABC.LdapObject
KABC.LdapResult
KABC.LdapSearch
KABC.Lock
KABC.LockNull
KABC.NameSortMode
KABC.PhoneNumber
+ + + + + + + + + + + + + + + + + + + + + +
KABC.Picture - KABC.VCardFormatPlugin
KABC.Picture
KABC.Plugin
KABC.Resource
KABC.ResourceFile
KABC.ResourceSelectDialog
KABC.Secrecy
KABC.SortMode
KABC.SortingTraits
KABC.SortingTraits.FamilyName
KABC.SortingTraits.FormattedName
KABC.SortingTraits.GivenName
KABC.SortingTraits.Name
KABC.SortingTraits.Uid
KABC.Sound
KABC.StdAddressBook
KABC.Ticket
KABC.TimeZone
KABC.VCardConverter
KABC.VCardFormat
KABC.VCardFormatPlugin
+ + diff --git a/doc/classref/kabc/kabc-globals.html b/doc/classref/kabc/kabc-globals.html new file mode 100644 index 0000000..266eb8e --- /dev/null +++ b/doc/classref/kabc/kabc-globals.html @@ -0,0 +1,28 @@ + + + + + kabc globals + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

kabc Globals


+
+ + + + + +
Table of contents
Modules
kabc Classes
All Classes
+
+ + + diff --git a/doc/classref/kdecore/KAboutData.html b/doc/classref/kdecore/KAboutData.html new file mode 100644 index 0000000..611bac3 --- /dev/null +++ b/doc/classref/kdecore/KAboutData.html @@ -0,0 +1,260 @@ + + + + + class KAboutData + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KAboutData


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKAboutData
Inherits
+

enums

    +
  • LicenseKey = {License_Custom, License_File, License_Unknown, License_GPL, License_GPL_V2, License_LGPL, License_LGPL_V2, License_BSD, License_Artistic, License_QPL, License_QPL_V1_0 +}
+

methods

    +
  • KAboutData (appName, programName, version, shortDescription = 0, licenseType = License_Unknown, copyrightStatement = 0, text = 0, homePageAddress = 0, bugsEmailAddress = "submit@bugs.kde.org") +
    +
    returns a KAboutData instance
    + + + + + + + + + +
    ArgumentTypeDefault
    appNamechar
    programNamechar
    versionchar
    shortDescriptionchar0
    licenseTypeintLicense_Unknown
    copyrightStatementchar0
    textchar0
    homePageAddresschar0
    bugsEmailAddresschar"submit@bugs.kde.org"
    +

  • +
  • aboutTranslationTeam () +
    + +
    returns (QString)
    static

  • +
  • addAuthor (name, task = 0, emailAddress = 0, webAddress = 0) +
    +
    returns nothing
    + + + + +
    ArgumentTypeDefault
    namechar
    taskchar0
    emailAddresschar0
    webAddresschar0
    +

  • +
  • addCredit (name, task = 0, emailAddress = 0, webAddress = 0) +
    +
    returns nothing
    + + + + +
    ArgumentTypeDefault
    namechar
    taskchar0
    emailAddresschar0
    webAddresschar0
    +

  • +
  • appName () +
    +
    returns (char)

  • +
  • authors () +
    +
    returns (QValueList)

  • +
  • bugAddress () +
    +
    returns (QString)

  • +
  • copyrightStatement () +
    +
    returns (QString)

  • +
  • credits () +
    +
    returns (QValueList)

  • +
  • customAuthorPlainText () +
    + +
    returns (QString)
    In versions KDE 3.5.0 and above only

  • +
  • customAuthorRichText () +
    + +
    returns (QString)
    In versions KDE 3.5.0 and above only

  • +
  • customAuthorTextEnabled () +
    + +
    returns (bool)
    In versions KDE 3.5.0 and above only

  • +
  • homepage () +
    +
    returns (QString)

  • +
  • internalBugAddress () +
    + +
    returns (char)
    In versions KDE 3.5.1 and above only

  • +
  • internalProgramName () +
    + +
    returns (char)
    In versions KDE 3.5.1 and above only

  • +
  • internalVersion () +
    + +
    returns (char)
    In versions KDE 3.5.1 and above only

  • +
  • license () +
    +
    returns (QString)

  • +
  • otherText () +
    +
    returns (QString)

  • +
  • productName () +
    + +
    returns (char)
    In versions KDE 3.2.0 and above only

  • +
  • programLogo () +
    + +
    returns (QImage)
    In versions KDE 3.4.0 and above only

  • +
  • programName () +
    +
    returns (QString)

  • +
  • setAppName (appName) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    appNamechar
    +

  • +
  • setBugAddress (bugAddress) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    bugAddresschar
    +

  • +
  • setCopyrightStatement (copyrightStatement) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    copyrightStatementchar
    +

  • +
  • setCustomAuthorText (plainText, richText) +
    + +
    returns nothing
    In versions KDE 3.5.0 and above only
    + + +
    ArgumentTypeDefault
    plainTextQString
    richTextQString
    +

  • +
  • setHomepage (homepage) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    homepagechar
    +

  • +
  • setLicense (licenseKey) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    licenseKeyKAboutData.LicenseKey
    +

  • +
  • setLicenseText (license) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    licensechar
    +

  • +
  • setLicenseTextFile (file) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    fileQString
    +

  • +
  • setOtherText (otherText) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    otherTextchar
    +

  • +
  • setProductName (name) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    namechar
    +

  • +
  • setProgramLogo (image) +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only
    + +
    ArgumentTypeDefault
    imageQImage
    +

  • +
  • setProgramName (programName) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    programNamechar
    +

  • +
  • setShortDescription (shortDescription) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    shortDescriptionchar
    +

  • +
  • setTranslator (name, emailAddress) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    namechar
    emailAddresschar
    +

  • +
  • setVersion (version) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    versionchar
    +

  • +
  • shortDescription () +
    +
    returns (QString)

  • +
  • translateInternalProgramName () +
    + +
    returns nothing
    In versions KDE 3.5.1 and above only

  • +
  • translators () +
    +
    returns (QValueList)

  • +
  • unsetCustomAuthorText () +
    + +
    returns nothing
    In versions KDE 3.5.0 and above only

  • +
  • version () +
    +
    returns (QString)

  • +
+ + + diff --git a/doc/classref/kdecore/KAboutPerson.html b/doc/classref/kdecore/KAboutPerson.html new file mode 100644 index 0000000..6a74e1d --- /dev/null +++ b/doc/classref/kdecore/KAboutPerson.html @@ -0,0 +1,65 @@ + + + + + class KAboutPerson + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KAboutPerson


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKAboutPerson
Inherits
+

methods

    +
  • KAboutPerson (name, task, emailAddress, webAddress) +
    +
    returns a KAboutPerson instance
    + + + + +
    ArgumentTypeDefault
    namechar
    taskchar
    emailAddresschar
    webAddresschar
    +

  • +
  • KAboutPerson () +
    +
    returns a KAboutPerson instance

  • +
  • emailAddress () +
    +
    returns (QString)

  • +
  • name () +
    +
    returns (QString)

  • +
  • task () +
    +
    returns (QString)

  • +
  • webAddress () +
    +
    returns (QString)

  • +
+ + + diff --git a/doc/classref/kdecore/KAboutTranslator.html b/doc/classref/kdecore/KAboutTranslator.html new file mode 100644 index 0000000..3a42622 --- /dev/null +++ b/doc/classref/kdecore/KAboutTranslator.html @@ -0,0 +1,54 @@ + + + + + class KAboutTranslator + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KAboutTranslator


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKAboutTranslator
Inherits
+

methods

    +
  • KAboutTranslator (name = QString .null, emailAddress = QString .null) +
    +
    returns a KAboutTranslator instance
    + + +
    ArgumentTypeDefault
    nameQStringQString .null
    emailAddressQStringQString .null
    +

  • +
  • emailAddress () +
    +
    returns (QString)

  • +
  • name () +
    +
    returns (QString)

  • +
+ + + diff --git a/doc/classref/kdecore/KAccel.html b/doc/classref/kdecore/KAccel.html new file mode 100644 index 0000000..aaa14e5 --- /dev/null +++ b/doc/classref/kdecore/KAccel.html @@ -0,0 +1,366 @@ + + + + + class KAccel + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KAccel


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKAccel
InheritsQAccel
+

methods

    +
  • KAccel (pParent, psName = 0) +
    +
    returns a KAccel instance
    + + +
    ArgumentTypeDefault
    pParentQWidget
    psNamechar0
    +

  • +
  • KAccel (watch, parent, psName = 0) +
    +
    returns a KAccel instance
    + + + +
    ArgumentTypeDefault
    watchQWidget
    parentQObject
    psNamechar0
    +

  • +
  • actions () +
    +
    returns (KAccelActions)

  • +
  • changeMenuAccel (menu, id, action) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    menuQPopupMenu
    idint
    actionQString
    +

  • +
  • changeMenuAccel (menu, id, accel) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    menuQPopupMenu
    idint
    accelKStdAccel.StdAccel
    +

  • +
  • configGroup () +
    +
    returns (QString)

  • +
  • connectItem (sAction, slot, bActivate = 1) +
    + +
    returns (bool)
    In versions KDE 3.1.4 and above only
    + + + +
    ArgumentTypeDefault
    sActionQString
    slotSLOT (Python callable)
    bActivatebool1
    +

  • +
  • connectItem (accel, slot, ) +
    + +
    returns (bool)
    In versions KDE 3.1.4 and above only
    + + +
    ArgumentTypeDefault
    accelKStdAccel.StdAccel
    slotSLOT (Python callable)
    +

  • +
  • connectItem (a0, a1, a2, a3 = 1) +
    + +
    returns (bool)
    In versions less than KDE 3.1.4 only
    + + + + +
    ArgumentTypeDefault
    a0QString
    a1QObject
    a2char
    a3bool1
    +

  • +
  • connectItem (a0, a1, a2) +
    + +
    returns (bool)
    In versions less than KDE 3.1.4 only
    + + + +
    ArgumentTypeDefault
    a0KStdAccel.StdAccel
    a1QObject
    a2char
    +

  • +
  • currentKey (action) +
    +
    returns (int)
    + +
    ArgumentTypeDefault
    actionQString
    +

  • +
  • emitKeycodeChanged () +
    +
    returns nothing

  • +
  • findKey (key) +
    +
    returns (QString)
    + +
    ArgumentTypeDefault
    keyint
    +

  • +
  • getAutoUpdate () +
    Not Implemented
    +

  • +
  • insert (sAction, sLabel, sWhatsThis, cutDef, slot, bConfigurable = 1, bEnabled = 1) +
    + +
    returns (KAccelAction)
    In versions KDE 3.1.4 and above only
    + + + + + + + +
    ArgumentTypeDefault
    sActionQString
    sLabelQString
    sWhatsThisQString
    cutDefKShortcut
    slotSLOT (Python callable)
    bConfigurablebool1
    bEnabledbool1
    +

  • +
  • insert (sAction, sLabel, sWhatsThis, cutDef3, cutDef4, slot, bConfigurable = 1, bEnabled = 1) +
    + +
    returns (KAccelAction)
    In versions KDE 3.1.4 and above only
    + + + + + + + + +
    ArgumentTypeDefault
    sActionQString
    sLabelQString
    sWhatsThisQString
    cutDef3KShortcut
    cutDef4KShortcut
    slotSLOT (Python callable)
    bConfigurablebool1
    bEnabledbool1
    +

  • +
  • insert (psAction, cutDef, slot, bConfigurable = 1, bEnabled = 1) +
    + +
    returns (KAccelAction)
    In versions KDE 3.1.4 and above only
    + + + + + +
    ArgumentTypeDefault
    psActionchar
    cutDefKShortcut
    slotSLOT (Python callable)
    bConfigurablebool1
    bEnabledbool1
    +

  • +
  • insert (id, slot, bConfigurable = 1, bEnabled = 1) +
    + +
    returns (KAccelAction)
    In versions KDE 3.1.4 and above only
    + + + + +
    ArgumentTypeDefault
    idKStdAccel.StdAccel
    slotSLOT (Python callable)
    bConfigurablebool1
    bEnabledbool1
    +

  • +
  • insert (a0, a1) +
    Not Implemented
    +

  • +
  • insert (a0, a1, a2, a3, a4, a5, a6 = 1, a7 = 1) +
    + +
    returns (KAccelAction)
    In versions less than KDE 3.1.4 only
    + + + + + + + + +
    ArgumentTypeDefault
    a0QString
    a1QString
    a2QString
    a3KShortcut
    a4QObject
    a5char
    a6bool1
    a7bool1
    +

  • +
  • insert (a0, a1, a2, a3, a4, a5, a6, a7 = 1, a8 = 1) +
    + +
    returns (KAccelAction)
    In versions less than KDE 3.1.4 only
    + + + + + + + + + +
    ArgumentTypeDefault
    a0QString
    a1QString
    a2QString
    a3KShortcut
    a4KShortcut
    a5QObject
    a6char
    a7bool1
    a8bool1
    +

  • +
  • insert (a0, a1, a2, a3, a4 = 1, a5 = 1) +
    + +
    returns (KAccelAction)
    In versions less than KDE 3.1.4 only
    + + + + + + +
    ArgumentTypeDefault
    a0char
    a1KShortcut
    a2QObject
    a3char
    a4bool1
    a5bool1
    +

  • +
  • insert (a0, a1, a2, a3 = 1, a4 = 1) +
    + +
    returns (KAccelAction)
    In versions less than KDE 3.1.4 only
    + + + + + +
    ArgumentTypeDefault
    a0KStdAccel.StdAccel
    a1QObject
    a2char
    a3bool1
    a4bool1
    +

  • +
  • insertItem (sLabel, sAction, psKey, nIDMenu = 0, pMenu = 0, bConfigurable = 1) +
    +
    returns (bool)
    + + + + + + +
    ArgumentTypeDefault
    sLabelQString
    sActionQString
    psKeychar
    nIDMenuint0
    pMenuQPopupMenu0
    bConfigurablebool1
    +

  • +
  • insertItem (sLabel, sAction, key, nIDMenu, pMenu, bConfigurable = 1) +
    +
    returns (bool)
    + + + + + + +
    ArgumentTypeDefault
    sLabelQString
    sActionQString
    keyint
    nIDMenuint
    pMenuQPopupMenu
    bConfigurablebool1
    +

  • +
  • insertStdItem (id, descr = QString .null) +
    +
    returns (bool)
    + + +
    ArgumentTypeDefault
    idKStdAccel.StdAccel
    descrQStringQString .null
    +

  • +
  • isEnabled () +
    +
    returns (bool)

  • +
  • keycodeChanged () +
    +
    returns nothing

  • +
  • readSettings (pConfig = 0) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    pConfigKConfigBase0
    +

  • +
  • remove (sAction) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    sActionQString
    +

  • +
  • removeItem (sAction) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    sActionQString
    +

  • +
  • setAutoUpdate (bAuto) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    bAutobool
    +

  • +
  • setConfigGroup (name) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    nameQString
    +

  • +
  • setEnabled (bEnabled) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    bEnabledbool
    +

  • +
  • setEnabled (sAction, bEnabled) +
    +
    returns (bool)
    + + +
    ArgumentTypeDefault
    sActionQString
    bEnabledbool
    +

  • +
  • setItemEnabled (sAction, bEnable) +
    +
    returns (bool)
    + + +
    ArgumentTypeDefault
    sActionQString
    bEnablebool
    +

  • +
  • setShortcut (sAction, shortcut) +
    +
    returns (bool)
    + + +
    ArgumentTypeDefault
    sActionQString
    shortcutKShortcut
    +

  • +
  • setSlot (sAction, slot, ) +
    + +
    returns (bool)
    In versions KDE 3.1.4 and above only
    + + +
    ArgumentTypeDefault
    sActionQString
    slotSLOT (Python callable)
    +

  • +
  • setSlot (a0, a1, a2) +
    + +
    returns (bool)
    In versions less than KDE 3.1.4 only
    + + + +
    ArgumentTypeDefault
    a0QString
    a1QObject
    a2char
    +

  • +
  • shortcut (sAction) +
    +
    returns (KShortcut)
    + +
    ArgumentTypeDefault
    sActionQString
    +

  • +
  • stringToKey (a0) +
    + +
    returns (int)
    static
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • updateConnections () +
    +
    returns (bool)

  • +
  • writeSettings (pConfig = 0) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    pConfigKConfigBase0
    +

  • +
+ + + diff --git a/doc/classref/kdecore/KAccelAction.html b/doc/classref/kdecore/KAccelAction.html new file mode 100644 index 0000000..3de553b --- /dev/null +++ b/doc/classref/kdecore/KAccelAction.html @@ -0,0 +1,208 @@ + + + + + class KAccelAction + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KAccelAction


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKAccelAction
Inherits
+

methods

    +
  • KAccelAction () +
    +
    returns a KAccelAction instance

  • +
  • KAccelAction (a0) +
    +
    returns a KAccelAction instance
    + +
    ArgumentTypeDefault
    a0KAccelAction
    +

  • +
  • KAccelAction (sName, sLabel, sWhatsThis, cutDef3, cutDef4, pObjSlot, psMethodSlot, bConfigurable, bEnabled) +
    +
    returns a KAccelAction instance
    + + + + + + + + + +
    ArgumentTypeDefault
    sNameQString
    sLabelQString
    sWhatsThisQString
    cutDef3KShortcut
    cutDef4KShortcut
    pObjSlotQObject
    psMethodSlotchar
    bConfigurablebool
    bEnabledbool
    +

  • +
  • clear () +
    +
    returns nothing

  • +
  • clearShortcut () +
    +
    returns nothing

  • +
  • contains (keySeq) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    keySeqKKeySequence
    +

  • +
  • decConnections () +
    +
    returns nothing

  • +
  • getID () +
    +
    returns (int)

  • +
  • incConnections () +
    +
    returns nothing

  • +
  • init (sName, sLabel, sWhatsThis, cutDef3, cutDef4, pObjSlot, psMethodSlot, bConfigurable, bEnabled) +
    +
    returns (bool)
    + + + + + + + + + +
    ArgumentTypeDefault
    sNameQString
    sLabelQString
    sWhatsThisQString
    cutDef3KShortcut
    cutDef4KShortcut
    pObjSlotQObject
    psMethodSlotchar
    bConfigurablebool
    bEnabledbool
    +

  • +
  • isConfigurable () +
    +
    returns (bool)

  • +
  • isConnected () +
    +
    returns (bool)

  • +
  • isEnabled () +
    +
    returns (bool)

  • +
  • label () +
    +
    returns (QString)

  • +
  • methodSlotPtr () +
    +
    returns (char)

  • +
  • name () +
    +
    returns (QString)

  • +
  • objSlotPtr () +
    +
    returns (QObject)

  • +
  • setConfigurable (configurable) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    configurablebool
    +

  • +
  • setEnabled (enable) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    enablebool
    +

  • +
  • setID (n) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    nint
    +

  • +
  • setKeySequence (i, keySeq) +
    +
    returns (bool)
    + + +
    ArgumentTypeDefault
    iuint
    keySeqKKeySequence
    +

  • +
  • setLabel (label) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    labelQString
    +

  • +
  • setName (name) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    nameQString
    +

  • +
  • setShortcut (rgCuts) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    rgCutsKShortcut
    +

  • +
  • setSlot (pObjSlot, psMethodSlot) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    pObjSlotQObject
    psMethodSlotchar
    +

  • +
  • setWhatsThis (whatsThis) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    whatsThisQString
    +

  • +
  • shortcut () +
    +
    returns (KShortcut)

  • +
  • shortcutDefault () +
    +
    returns (KShortcut)

  • +
  • shortcutDefault3 () +
    +
    returns (KShortcut)

  • +
  • shortcutDefault4 () +
    +
    returns (KShortcut)

  • +
  • toString () +
    +
    returns (QString)

  • +
  • toStringInternal () +
    +
    returns (QString)

  • +
  • useFourModifierKeys () +
    + +
    returns (bool)
    static

  • +
  • useFourModifierKeys (use) +
    + +
    returns nothing
    static
    + +
    ArgumentTypeDefault
    usebool
    +

  • +
  • whatsThis () +
    +
    returns (QString)

  • +
+ + + diff --git a/doc/classref/kdecore/KAccelActions.html b/doc/classref/kdecore/KAccelActions.html new file mode 100644 index 0000000..68b889c --- /dev/null +++ b/doc/classref/kdecore/KAccelActions.html @@ -0,0 +1,172 @@ + + + + + class KAccelActions + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KAccelActions


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKAccelActions
Inherits
+

methods

    +
  • KAccelActions () +
    +
    returns a KAccelActions instance

  • +
  • KAccelActions (a0) +
    +
    returns a KAccelActions instance
    + +
    ArgumentTypeDefault
    a0KAccelActions
    +

  • +
  • KAccelActions (a0) +
    +
    returns a KAccelActions instance
    + +
    ArgumentTypeDefault
    a0KAccelBase
    +

  • +
  • actionIndex (sAction) +
    +
    returns (int)
    + +
    ArgumentTypeDefault
    sActionQString
    +

  • +
  • actionPtr (index) +
    +
    returns (KAccelAction)
    + +
    ArgumentTypeDefault
    indexuint
    +

  • +
  • actionPtr (sAction) +
    +
    returns (KAccelAction)
    + +
    ArgumentTypeDefault
    sActionQString
    +

  • +
  • actionPtr (cut) +
    +
    returns (KAccelAction)
    + +
    ArgumentTypeDefault
    cutKKeySequence
    +

  • +
  • clear () +
    +
    returns nothing

  • +
  • count () +
    +
    returns (uint)

  • +
  • emitKeycodeChanged () +
    +
    returns nothing

  • +
  • init (actions) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    actionsKAccelActions
    +

  • +
  • init (config, sGroup) +
    +
    returns (bool)
    + + +
    ArgumentTypeDefault
    configKConfigBase
    sGroupQString
    +

  • +
  • insert (sAction, sLabel, sWhatsThis, rgCutDefaults3, rgCutDefaults4, pObjSlot = 0, psMethodSlot = 0, bConfigurable = 1, bEnabled = 1) +
    +
    returns (KAccelAction)
    + + + + + + + + + +
    ArgumentTypeDefault
    sActionQString
    sLabelQString
    sWhatsThisQString
    rgCutDefaults3KShortcut
    rgCutDefaults4KShortcut
    pObjSlotQObject0
    psMethodSlotchar0
    bConfigurablebool1
    bEnabledbool1
    +

  • +
  • insert (sName, sLabel) +
    +
    returns (KAccelAction)
    + + +
    ArgumentTypeDefault
    sNameQString
    sLabelQString
    +

  • +
  • insertPtr (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KAccelAction
    +

  • +
  • readActions (sConfigGroup = "Shortcuts", pConfig = 0) +
    +
    returns (bool)
    + + +
    ArgumentTypeDefault
    sConfigGroupQString"Shortcuts"
    pConfigKConfigBase0
    +

  • +
  • remove (sAction) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    sActionQString
    +

  • +
  • resize (new_size) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    new_sizeuint
    +

  • +
  • updateShortcuts (shortcuts) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    shortcutsKAccelActions
    +

  • +
  • writeActions (sConfigGroup = "Shortcuts", pConfig = 0, bWriteAll = 0, bGlobal = 0) +
    +
    returns (bool)
    + + + + +
    ArgumentTypeDefault
    sConfigGroupQString"Shortcuts"
    pConfigKConfigBase0
    bWriteAllbool0
    bGlobalbool0
    +

  • +
+

operators

    +
  • operator [] (index) +
    + +
    returns (KAccelAction),
    In versions KDE 3.1.4 and above only
    + +
    ArgumentTypeDefault
    indexuint
    +

  • +
+ + + diff --git a/doc/classref/kdecore/KAccelBase.html b/doc/classref/kdecore/KAccelBase.html new file mode 100644 index 0000000..fc815b8 --- /dev/null +++ b/doc/classref/kdecore/KAccelBase.html @@ -0,0 +1,242 @@ + + + + + class KAccelBase + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KAccelBase


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKAccelBase (abstract)
Inherits
+

enums

    +
  • Init = {QT_KEYS, NATIVE_KEYS +}
  • Signal = {KEYCODE_CHANGED +}
+

methods

    +
  • KAccelBase (fInitCode) +
    +
    returns a KAccelBase instance
    + +
    ArgumentTypeDefault
    fInitCodeint
    +

  • +
  • actionCount () +
    +
    returns (uint)

  • +
  • actionPtr (sAction) +
    +
    returns (KAccelAction)
    + +
    ArgumentTypeDefault
    sActionQString
    +

  • +
  • actionPtr (key) +
    +
    returns (KAccelAction)
    + +
    ArgumentTypeDefault
    keyKKey
    +

  • +
  • actionPtr (key) +
    +
    returns (KAccelAction)
    + +
    ArgumentTypeDefault
    keyKKeyServer.Key
    +

  • +
  • actions () +
    +
    returns (KAccelActions)

  • +
  • configGroup () +
    +
    returns (QString)

  • +
  • connectKey (a0, a1) = 0 +
    + +
    returns (bool)
    pure virtual
    + + +
    ArgumentTypeDefault
    a0KAccelAction
    a1KKeyServer.Key
    +

  • +
  • connectKey (a0) = 0 +
    + +
    returns (bool)
    pure virtual
    + +
    ArgumentTypeDefault
    a0KKeyServer.Key
    +

  • +
  • createKeyList (rgKeys) +
    Not Implemented
    +

  • +
  • createPopupMenu (pParent, a0) +
    +
    returns (QPopupMenu)
    + + +
    ArgumentTypeDefault
    pParentQWidget
    a0KKeySequence
    +

  • +
  • disconnectKey (a0, a1) = 0 +
    + +
    returns (bool)
    pure virtual
    + + +
    ArgumentTypeDefault
    a0KAccelAction
    a1KKeyServer.Key
    +

  • +
  • disconnectKey (a0) = 0 +
    + +
    returns (bool)
    pure virtual
    + +
    ArgumentTypeDefault
    a0KKeyServer.Key
    +

  • +
  • emitSignal (a0) = 0 +
    + +
    returns (bool)
    pure virtual
    + +
    ArgumentTypeDefault
    a0KAccelBase.Signal
    +

  • +
  • getAutoUpdate () +
    +
    returns (bool)

  • +
  • insert (sName, sDesc) +
    +
    returns (KAccelAction)
    + + +
    ArgumentTypeDefault
    sNameQString
    sDescQString
    +

  • +
  • insert (sAction, sDesc, sHelp, rgCutDefaults3, rgCutDefaults4, pObjSlot, psMethodSlot, bConfigurable = 1, bEnabled = 1) +
    +
    returns (KAccelAction)
    + + + + + + + + + +
    ArgumentTypeDefault
    sActionQString
    sDescQString
    sHelpQString
    rgCutDefaults3KShortcut
    rgCutDefaults4KShortcut
    pObjSlotQObject
    psMethodSlotchar
    bConfigurablebool1
    bEnabledbool1
    +

  • +
  • insertConnection (a0) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    a0KAccelAction
    +

  • +
  • isEnabled () +
    +
    returns (bool)

  • +
  • isEnabledInternal () +
    + +
    returns (bool)
    In versions KDE 3.5.0 and above only

  • +
  • readSettings (pConfig = 0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    pConfigKConfigBase0
    +

  • +
  • remove (sAction) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    sActionQString
    +

  • +
  • removeConnection (a0) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    a0KAccelAction
    +

  • +
  • setActionEnabled (sAction, bEnable) +
    +
    returns (bool)
    + + +
    ArgumentTypeDefault
    sActionQString
    bEnablebool
    +

  • +
  • setActionSlot (sAction, pObjSlot, psMethodSlot) +
    +
    returns (bool)
    + + + +
    ArgumentTypeDefault
    sActionQString
    pObjSlotQObject
    psMethodSlotchar
    +

  • +
  • setAutoUpdate (bAuto) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    bAutobool
    +

  • +
  • setConfigGlobal (global) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    globalbool
    +

  • +
  • setConfigGroup (group) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    groupQString
    +

  • +
  • setEnabled (bEnabled) = 0 +
    + +
    returns nothing
    pure virtual
    + +
    ArgumentTypeDefault
    bEnabledbool
    +

  • +
  • setShortcut (sAction, cut) +
    +
    returns (bool)
    + + +
    ArgumentTypeDefault
    sActionQString
    cutKShortcut
    +

  • +
  • slotRemoveAction (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KAccelAction
    +

  • +
  • updateConnections () +
    +
    returns (bool)

  • +
  • writeSettings (pConfig = 0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    pConfigKConfigBase0
    +

  • +
+ + + diff --git a/doc/classref/kdecore/KAccelShortcutList.html b/doc/classref/kdecore/KAccelShortcutList.html new file mode 100644 index 0000000..b790b4b --- /dev/null +++ b/doc/classref/kdecore/KAccelShortcutList.html @@ -0,0 +1,130 @@ + + + + + class KAccelShortcutList + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KAccelShortcutList


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKAccelShortcutList
InheritsKShortcutList
+

methods

    +
  • KAccelShortcutList (accel) +
    +
    returns a KAccelShortcutList instance
    + +
    ArgumentTypeDefault
    accelKAccel
    +

  • +
  • KAccelShortcutList (accel) +
    +
    returns a KAccelShortcutList instance
    + +
    ArgumentTypeDefault
    accelKGlobalAccel
    +

  • +
  • KAccelShortcutList (actions, bGlobal) +
    +
    returns a KAccelShortcutList instance
    + + +
    ArgumentTypeDefault
    actionsKAccelActions
    bGlobalbool
    +

  • +
  • count () +
    +
    returns (uint)

  • +
  • getOther (a0, index) +
    +
    returns (QVariant)
    + + +
    ArgumentTypeDefault
    a0KShortcutList.Other
    indexuint
    +

  • +
  • isConfigurable (index) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    indexuint
    +

  • +
  • isGlobal (index) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    indexuint
    +

  • +
  • label (index) +
    +
    returns (QString)
    + +
    ArgumentTypeDefault
    indexuint
    +

  • +
  • name (index) +
    +
    returns (QString)
    + +
    ArgumentTypeDefault
    indexuint
    +

  • +
  • save () +
    +
    returns (bool)

  • +
  • setOther (a0, index, a1) +
    +
    returns (bool)
    + + + +
    ArgumentTypeDefault
    a0KShortcutList.Other
    indexuint
    a1QVariant
    +

  • +
  • setShortcut (index, shortcut) +
    +
    returns (bool)
    + + +
    ArgumentTypeDefault
    indexuint
    shortcutKShortcut
    +

  • +
  • shortcut (index) +
    +
    returns (KShortcut)
    + +
    ArgumentTypeDefault
    indexuint
    +

  • +
  • shortcutDefault (index) +
    +
    returns (KShortcut)
    + +
    ArgumentTypeDefault
    indexuint
    +

  • +
  • whatsThis (index) +
    +
    returns (QString)
    + +
    ArgumentTypeDefault
    indexuint
    +

  • +
+ + + diff --git a/doc/classref/kdecore/KApplication.html b/doc/classref/kdecore/KApplication.html new file mode 100644 index 0000000..9b484c9 --- /dev/null +++ b/doc/classref/kdecore/KApplication.html @@ -0,0 +1,666 @@ + + + + + class KApplication + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KApplication


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKApplication
InheritsQApplication, KInstance
+

enums

    +
  • (anonymous) = {ShiftModifier, LockModifier, ControlModifier, Modifier1, Modifier2, Modifier3, Modifier4, Modifier5 +}
  • (anonymous) = {Button1Pressed, Button2Pressed, Button3Pressed, Button4Pressed, Button5Pressed +}
  • CaptionLayout = {CaptionAppLast, CaptionAppFirst, CaptionNoApp +}
  • SettingsCategory = {SETTINGS_MOUSE, SETTINGS_COMPLETION, SETTINGS_PATHS, SETTINGS_POPUPMENU, SETTINGS_QT, SETTINGS_SHORTCUTS +}
  • ShutdownConfirm = {ShutdownConfirmDefault, ShutdownConfirmNo, ShutdownConfirmYes +}
  • ShutdownMode = {ShutdownModeDefault, ShutdownModeSchedule, ShutdownModeTryNow, ShutdownModeForceNow, ShutdownModeInteractive +}
  • ShutdownType = {ShutdownTypeDefault, ShutdownTypeNone, ShutdownTypeReboot, ShutdownTypeHalt +}
+

methods

    +
  • KApplication (allowStyles = 1, GUIenabled = 1) +
    +
    returns a KApplication instance
    + + +
    ArgumentTypeDefault
    allowStylesbool1
    GUIenabledbool1
    +

  • +
  • KApplication (display, visual = 0, colormap = 0, allowStyles = 1) +
    Not Implemented
    +

  • +
  • KApplication (display, rAppName, allowStyles = 1, GUIenabled = 1) +
    Not Implemented
    +

  • +
  • KApplication (argv, rAppName, allowStyles = 1, GUIenabled = 1) +
    +
    returns a KApplication instance
    + + + + +
    ArgumentTypeDefault
    argva Python list of strings
    rAppNamePython string
    allowStylesbool1
    GUIenabledbool1
    +

  • +
  • KApplication (allowStyles, GUIenabled, _instance) +
    +
    returns a KApplication instance
    + + + +
    ArgumentTypeDefault
    allowStylesbool
    GUIenabledbool
    _instanceKInstance
    +

  • +
  • KApplication (display, visual, colormap, allowStyles, _instance) +
    Not Implemented
    +

  • +
  • KApplication (a0) +
    +
    returns a KApplication instance
    + +
    ArgumentTypeDefault
    a0KApplication
    +

  • +
  • addCmdLineOptions () +
    + +
    returns nothing
    static

  • +
  • addKipcEventMask (id) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    idint
    +

  • +
  • allowURLAction (action, _baseURL, _destURL) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + + + +
    ArgumentTypeDefault
    actionQString
    _baseURLKURL
    _destURLKURL
    +

  • +
  • appearanceChanged () +
    +
    returns nothing

  • +
  • authorize (genericAction) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    genericActionQString
    +

  • +
  • authorizeControlModule (menuId) +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    menuIdQString
    +

  • +
  • authorizeControlModules (menuIds) +
    + +
    returns (QStringList)
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    menuIdsQStringList
    +

  • +
  • authorizeKAction (action) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    actionchar
    +

  • +
  • authorizeURLAction (action, baseURL, destURL) +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above only
    + + + +
    ArgumentTypeDefault
    actionQString
    baseURLKURL
    destURLKURL
    +

  • +
  • backgroundChanged (desk) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    deskint
    +

  • +
  • caption () +
    +
    returns (QString)

  • +
  • checkRecoverFile (pFilename) +
    +
    returns (QString) bRecover (bool)
    + +
    ArgumentTypeDefault
    pFilenameQString
    +

  • +
  • clear () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • commitData (sm) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    smQSessionManager
    +

  • +
  • copy () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • createApplicationPalette () +
    + + +
    returns (QPalette)
    In versions KDE 3.1.0 and above only
    static

  • +
  • createApplicationPalette (config, contrast) +
    + + +
    returns (QPalette)
    In versions KDE 3.1.0 and above only
    static
    + + +
    ArgumentTypeDefault
    configKConfig
    contrastint
    +

  • +
  • cut () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • dcopClient () +
    + +
    returns (DCOPClient)
    static

  • +
  • deref () +
    +
    returns nothing

  • +
  • disableAutoDcopRegistration () +
    + +
    returns nothing
    static

  • +
  • disableSessionManagement () +
    +
    returns nothing

  • +
  • disableStyles () +
    +
    returns nothing

  • +
  • enableSessionManagement () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • enableStyles () +
    +
    returns nothing

  • +
  • geometryArgument () +
    +
    returns (QString)

  • +
  • getDisplay () +
    +
    returns (Display)

  • +
  • guiEnabled () +
    + + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    static

  • +
  • iceIOErrorHandler (conn) +
    Not Implemented
    +

  • +
  • icon () +
    +
    returns (QPixmap)

  • +
  • iconChanged (group) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    groupint
    +

  • +
  • iconName () +
    +
    returns (QString)

  • +
  • installKDEPropertyMap () +
    +
    returns nothing

  • +
  • installSigpipeHandler () +
    + + +
    returns nothing
    In versions KDE 3.2.0 and above only
    static

  • +
  • installX11EventFilter (filter) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    filterQWidget
    +

  • +
  • invokeBrowser (url, startup_id) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    urlQString
    startup_idQCString
    +

  • +
  • invokeBrowser (url) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    urlQString
    +

  • +
  • invokeEditSlot (slot) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    slotchar
    +

  • +
  • invokeHTMLHelp (aFilename, aTopic = QString .null) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    aFilenameQString
    aTopicQStringQString .null
    +

  • +
  • invokeHelp (anchor, appname, startup_id) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + + + +
    ArgumentTypeDefault
    anchorQString
    appnameQString
    startup_idQCString
    +

  • +
  • invokeHelp (anchor = QString .null, appname = QString .null) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    anchorQStringQString .null
    appnameQStringQString .null
    +

  • +
  • invokeMailer (address, subject, startup_id) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + + + +
    ArgumentTypeDefault
    addressQString
    subjectQString
    startup_idQCString
    +

  • +
  • invokeMailer (address, subject) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    addressQString
    subjectQString
    +

  • +
  • invokeMailer (mailtoURL, startup_id, allowAttachments) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + + + +
    ArgumentTypeDefault
    mailtoURLKURL
    startup_idQCString
    allowAttachmentsbool
    +

  • +
  • invokeMailer (mailtoURL, startup_id) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    mailtoURLKURL
    startup_idQCString
    +

  • +
  • invokeMailer (mailtoURL) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    mailtoURLKURL
    +

  • +
  • invokeMailer (to, cc, bcc, subject, body, messageFile, attachURLs, startup_id) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + + + + + + + + +
    ArgumentTypeDefault
    toQString
    ccQString
    bccQString
    subjectQString
    bodyQString
    messageFileQString
    attachURLsQStringList
    startup_idQCString
    +

  • +
  • invokeMailer (to, cc, bcc, subject, body, messageFile = QString .null, attachURLs = QStringList ()) +
    +
    returns nothing
    + + + + + + + +
    ArgumentTypeDefault
    toQString
    ccQString
    bccQString
    subjectQString
    bodyQString
    messageFileQStringQString .null
    attachURLsQStringListQStringList ()
    +

  • +
  • isRestored () +
    +
    returns (bool)

  • +
  • kApplication () +
    + +
    returns (KApplication)
    static

  • +
  • kdeinitExec (name, args, startup_id) +
    + + +
    returns (int) error (QString) pid (int)
    In versions KDE 3.2.0 and above only
    static
    + + + +
    ArgumentTypeDefault
    nameQString
    argsQStringList
    startup_idQCString
    +

  • +
  • kdeinitExec (name, args) +
    + +
    returns (int) error (QString) pid (int)
    static
    + + +
    ArgumentTypeDefault
    nameQString
    argsQStringList
    +

  • +
  • kdeinitExecWait (name, args, startup_id) +
    + + +
    returns (int) error (QString) pid (int)
    In versions KDE 3.2.0 and above only
    static
    + + + +
    ArgumentTypeDefault
    nameQString
    argsQStringList
    startup_idQCString
    +

  • +
  • kdeinitExecWait (name, args) +
    + +
    returns (int) error (QString) pid (int)
    static
    + + +
    ArgumentTypeDefault
    nameQString
    argsQStringList
    +

  • +
  • kdisplayFontChanged () +
    +
    returns nothing

  • +
  • kdisplayPaletteChanged () +
    +
    returns nothing

  • +
  • kdisplayStyleChanged () +
    +
    returns nothing

  • +
  • keyboardModifiers () +
    + + +
    returns (uint)
    In versions KDE 3.1.0 and above only
    static

  • +
  • keyboardMouseState () +
    + + +
    returns (ButtonState)
    In versions KDE 3.4.0 and above only
    static

  • +
  • kipcMessage (id, data) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    idint
    dataint
    +

  • +
  • kstyle () +
    Not Implemented
    +

  • +
  • launcher () +
    + +
    returns (QCString)
    static

  • +
  • makeStdCaption (userCaption, withAppName = 1, modified = 0) +
    +
    returns (QString)
    + + + +
    ArgumentTypeDefault
    userCaptionQString
    withAppNamebool1
    modifiedbool0
    +

  • +
  • miniIcon () +
    +
    returns (QPixmap)

  • +
  • miniIconName () +
    +
    returns (QString)

  • +
  • mouseState () +
    + + +
    returns (uint)
    In versions KDE 3.1.0 and above only
    static

  • +
  • notify (receiver, event) +
    +
    returns (bool)
    + + +
    ArgumentTypeDefault
    receiverQObject
    eventQEvent
    +

  • +
  • paste () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • propagateSessionManager () +
    +
    returns nothing

  • +
  • random () +
    + +
    returns (int)
    static

  • +
  • randomString (length) +
    + +
    returns (QString)
    static
    + +
    ArgumentTypeDefault
    lengthint
    +

  • +
  • ref () +
    +
    returns nothing

  • +
  • removeKipcEventMask (id) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    idint
    +

  • +
  • removeX11EventFilter (filter) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    filterQWidget
    +

  • +
  • requestShutDown (confirm = ShutdownConfirmDefault, sdtype = ShutdownTypeDefault, sdmode = ShutdownModeDefault) +
    +
    returns (bool)
    + + + +
    ArgumentTypeDefault
    confirmKApplication.ShutdownConfirmShutdownConfirmDefault
    sdtypeKApplication.ShutdownTypeShutdownTypeDefault
    sdmodeKApplication.ShutdownModeShutdownModeDefault
    +

  • +
  • saveState (sm) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    smQSessionManager
    +

  • +
  • saveYourself () +
    +
    returns nothing

  • +
  • selectAll () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • sessionConfig () +
    +
    returns (KConfig)

  • +
  • sessionSaving () +
    + +
    returns (bool)
    In versions KDE 3.1.1 and above only

  • +
  • setStartupId (startup_id) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    startup_idQCString
    +

  • +
  • setTopWidget (topWidget) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    topWidgetQWidget
    +

  • +
  • settingsChanged (category) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    categoryint
    +

  • +
  • shutDown () +
    +
    returns nothing

  • +
  • startKdeinit () +
    + +
    returns nothing
    static

  • +
  • startServiceByDesktopName (_name, URL, startup_id = QCString ("" ), noWait = 0) +
    + +
    returns (int) error (QString) dcopService (QCString) pid (int)
    static
    + + + + +
    ArgumentTypeDefault
    _nameQString
    URLQString
    startup_idQCStringQCString ("" )
    noWaitbool0
    +

  • +
  • startServiceByDesktopName (_name, URLs, startup_id = QCString ("" ), noWait = 0) +
    + +
    returns (int) error (QString) dcopService (QCString) pid (int)
    static
    + + + + +
    ArgumentTypeDefault
    _nameQString
    URLsQStringList
    startup_idQCStringQCString ("" )
    noWaitbool0
    +

  • +
  • startServiceByDesktopPath (_name, URL, startup_id = QCString ("" ), noWait = 0) +
    + +
    returns (int) error (QString) dcopService (QCString) pid (int)
    static
    + + + + +
    ArgumentTypeDefault
    _nameQString
    URLQString
    startup_idQCStringQCString ("" )
    noWaitbool0
    +

  • +
  • startServiceByDesktopPath (_name, URLs, startup_id = QCString ("" ), noWait = 0) +
    + +
    returns (int) error (QString) dcopService (QCString) pid (int)
    static
    + + + + +
    ArgumentTypeDefault
    _nameQString
    URLsQStringList
    startup_idQCStringQCString ("" )
    noWaitbool0
    +

  • +
  • startServiceByName (_name, URL, startup_id = QCString ("" ), noWait = 0) +
    + +
    returns (int) error (QString) dcopService (QCString) pid (int)
    static
    + + + + +
    ArgumentTypeDefault
    _nameQString
    URLQString
    startup_idQCStringQCString ("" )
    noWaitbool0
    +

  • +
  • startServiceByName (_name, URLs, startup_id = QCString ("" ), noWait = 0) +
    + +
    returns (int) error (QString) dcopService (QCString) pid (int)
    static
    + + + + +
    ArgumentTypeDefault
    _nameQString
    URLsQStringList
    startup_idQCStringQCString ("" )
    noWaitbool0
    +

  • +
  • startupId () +
    +
    returns (QCString)

  • +
  • tempSaveName (pFilename) +
    +
    returns (QString)
    + +
    ArgumentTypeDefault
    pFilenameQString
    +

  • +
  • toolbarAppearanceChanged (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • updateRemoteUserTimestamp (dcopId, time = 0) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + + +
    ArgumentTypeDefault
    dcopIdQCString
    timeulong0
    +

  • +
  • updateUserTimestamp (time = 0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    timeulong0
    +

  • +
  • userTimestamp () +
    + +
    returns (ulong)
    In versions KDE 3.2.3 and above only

  • +
  • x11EventFilter (a0) +
    Not Implemented
    +

  • +
  • xErrhandler (a0, a1) +
    Not Implemented
    +

  • +
  • xioErrhandler (a0) +
    Not Implemented
    +

  • +
  • xioErrhandler () +
    + +
    returns (int)
    In versions less than KDE 3.2.0 only

  • +
+

variables

  • +variables + +
    VariableType
    loadedByKdeinitbool
+ + + diff --git a/doc/classref/kdecore/KAsyncIO.html b/doc/classref/kdecore/KAsyncIO.html new file mode 100644 index 0000000..fc5497d --- /dev/null +++ b/doc/classref/kdecore/KAsyncIO.html @@ -0,0 +1,70 @@ + + + + + class KAsyncIO + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KAsyncIO


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKAsyncIO (abstract)
InheritsQObject, QIODevice
+

methods

    +
  • KAsyncIO () +
    +
    returns a KAsyncIO instance

  • +
  • KAsyncIO (a0) +
    +
    returns a KAsyncIO instance
    + +
    ArgumentTypeDefault
    a0KAsyncIO
    +

  • +
  • enableRead (enable) = 0 +
    + +
    returns nothing
    pure virtual
    + +
    ArgumentTypeDefault
    enablebool
    +

  • +
  • enableWrite (enable) = 0 +
    + +
    returns nothing
    pure virtual
    + +
    ArgumentTypeDefault
    enablebool
    +

  • +
  • readyRead () +
    +
    returns nothing

  • +
  • readyWrite () +
    +
    returns nothing

  • +
+ + + diff --git a/doc/classref/kdecore/KAudioPlayer.html b/doc/classref/kdecore/KAudioPlayer.html new file mode 100644 index 0000000..2e25f9f --- /dev/null +++ b/doc/classref/kdecore/KAudioPlayer.html @@ -0,0 +1,59 @@ + + + + + class KAudioPlayer + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KAudioPlayer


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKAudioPlayer
InheritsQObject
+

methods

    +
  • KAudioPlayer (filename, parent = 0, name = 0) +
    +
    returns a KAudioPlayer instance
    + + + +
    ArgumentTypeDefault
    filenameQString
    parentQObject0
    namechar0
    +

  • +
  • play (filename) +
    + +
    returns nothing
    static
    + +
    ArgumentTypeDefault
    filenameQString
    +

  • +
  • play () +
    +
    returns nothing

  • +
+ + + diff --git a/doc/classref/kdecore/KBufferedIO.html b/doc/classref/kdecore/KBufferedIO.html new file mode 100644 index 0000000..cf9a67a --- /dev/null +++ b/doc/classref/kdecore/KBufferedIO.html @@ -0,0 +1,136 @@ + + + + + class KBufferedIO + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KBufferedIO


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKBufferedIO (abstract)
InheritsKAsyncIO
+

enums

    +
  • closeModes = {availRead, dirtyWrite, involuntary, delayed, closedNow +}
+

methods

    +
  • KBufferedIO () +
    +
    returns a KBufferedIO instance

  • +
  • bytesAvailable () +
    +
    returns (int)

  • +
  • bytesToWrite () +
    +
    returns (int)

  • +
  • bytesWritten (nbytes) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    nbytesint
    +

  • +
  • canReadLine () +
    +
    returns (bool)

  • +
  • closeNow () = 0 +
    + +
    returns nothing
    pure virtual

  • +
  • closed (state) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    stateint
    +

  • +
  • consumeReadBuffer (nbytes, destbuffer, discard = 1) +
    +
    returns (uint)
    + + + +
    ArgumentTypeDefault
    nbytesuint
    destbufferchar
    discardbool1
    +

  • +
  • consumeWriteBuffer (nbytes) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    nbytesuint
    +

  • +
  • feedReadBuffer (nbytes, buffer, atBeginning = 0) +
    +
    returns (uint)
    + + + +
    ArgumentTypeDefault
    nbytesuint
    bufferchar
    atBeginningbool0
    +

  • +
  • feedWriteBuffer (nbytes, buffer) +
    +
    returns (uint)
    + + +
    ArgumentTypeDefault
    nbytesuint
    bufferchar
    +

  • +
  • peekBlock (data, maxlen) = 0 +
    + +
    returns (int)
    pure virtual
    + + +
    ArgumentTypeDefault
    datachar
    maxlenuint
    +

  • +
  • readBufferSize () +
    +
    returns (uint)

  • +
  • setBufferSize (rsize, wsize = -2) +
    +
    returns (bool)
    + + +
    ArgumentTypeDefault
    rsizeint
    wsizeint-2
    +

  • +
  • unreadBlock (data, len) +
    +
    returns (int)
    + + +
    ArgumentTypeDefault
    datachar
    lenuint
    +

  • +
  • waitForMore (msec) = 0 +
    + +
    returns (int)
    pure virtual
    + +
    ArgumentTypeDefault
    msecint
    +

  • +
  • writeBufferSize () +
    +
    returns (uint)

  • +
+ + + diff --git a/doc/classref/kdecore/KCalendarSystem.html b/doc/classref/kdecore/KCalendarSystem.html new file mode 100644 index 0000000..352e947 --- /dev/null +++ b/doc/classref/kdecore/KCalendarSystem.html @@ -0,0 +1,306 @@ + + + + + class KCalendarSystem + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KCalendarSystem


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKCalendarSystem (abstract)
Inherits
+

methods

    +
  • KCalendarSystem (locale = 0) +
    + +
    returns a KCalendarSystem instance
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    localeKLocale0
    +

  • +
  • addDays (date, ndays) = 0 +
    + + +
    returns (QDate)
    In versions KDE 3.2.0 and above only
    pure virtual
    + + +
    ArgumentTypeDefault
    dateQDate
    ndaysint
    +

  • +
  • addMonths (date, nmonths) = 0 +
    + + +
    returns (QDate)
    In versions KDE 3.2.0 and above only
    pure virtual
    + + +
    ArgumentTypeDefault
    dateQDate
    nmonthsint
    +

  • +
  • addYears (date, nyears) = 0 +
    + + +
    returns (QDate)
    In versions KDE 3.2.0 and above only
    pure virtual
    + + +
    ArgumentTypeDefault
    dateQDate
    nyearsint
    +

  • +
  • calendarName () = 0 +
    + + +
    returns (QString)
    In versions KDE 3.2.0 and above only
    pure virtual

  • +
  • day (date) = 0 +
    + + +
    returns (int)
    In versions KDE 3.2.0 and above only
    pure virtual
    + +
    ArgumentTypeDefault
    dateQDate
    +

  • +
  • dayOfWeek (date) = 0 +
    + + +
    returns (int)
    In versions KDE 3.2.0 and above only
    pure virtual
    + +
    ArgumentTypeDefault
    dateQDate
    +

  • +
  • dayOfYear (date) = 0 +
    + + +
    returns (int)
    In versions KDE 3.2.0 and above only
    pure virtual
    + +
    ArgumentTypeDefault
    dateQDate
    +

  • +
  • dayString (pDate, bShort) +
    + +
    returns (QString)
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    pDateQDate
    bShortbool
    +

  • +
  • dayStringToInteger (sNum) +
    + +
    returns (int) iLength (int)
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    sNumQString
    +

  • +
  • daysInMonth (date) = 0 +
    + + +
    returns (int)
    In versions KDE 3.2.0 and above only
    pure virtual
    + +
    ArgumentTypeDefault
    dateQDate
    +

  • +
  • daysInYear (date) = 0 +
    + + +
    returns (int)
    In versions KDE 3.2.0 and above only
    pure virtual
    + +
    ArgumentTypeDefault
    dateQDate
    +

  • +
  • isLunar () = 0 +
    + + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    pure virtual

  • +
  • isLunisolar () = 0 +
    + + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    pure virtual

  • +
  • isSolar () = 0 +
    + + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    pure virtual

  • +
  • locale () +
    + +
    returns (KLocale)
    In versions KDE 3.2.0 and above only

  • +
  • maxValidYear () = 0 +
    + + +
    returns (int)
    In versions KDE 3.2.0 and above only
    pure virtual

  • +
  • minValidYear () = 0 +
    + + +
    returns (int)
    In versions KDE 3.2.0 and above only
    pure virtual

  • +
  • month (date) = 0 +
    + + +
    returns (int)
    In versions KDE 3.2.0 and above only
    pure virtual
    + +
    ArgumentTypeDefault
    dateQDate
    +

  • +
  • monthName (month, year, shortName = 0) = 0 +
    + + +
    returns (QString)
    In versions KDE 3.2.0 and above only
    pure virtual
    + + + +
    ArgumentTypeDefault
    monthint
    yearint
    shortNamebool0
    +

  • +
  • monthName (date, shortName = 0) = 0 +
    + + +
    returns (QString)
    In versions KDE 3.2.0 and above only
    pure virtual
    + + +
    ArgumentTypeDefault
    dateQDate
    shortNamebool0
    +

  • +
  • monthNamePossessive (month, year, shortName = 0) = 0 +
    + + +
    returns (QString)
    In versions KDE 3.2.0 and above only
    pure virtual
    + + + +
    ArgumentTypeDefault
    monthint
    yearint
    shortNamebool0
    +

  • +
  • monthNamePossessive (date, shortName = 0) = 0 +
    + + +
    returns (QString)
    In versions KDE 3.2.0 and above only
    pure virtual
    + + +
    ArgumentTypeDefault
    dateQDate
    shortNamebool0
    +

  • +
  • monthString (pDate, bShort) +
    + +
    returns (QString)
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    pDateQDate
    bShortbool
    +

  • +
  • monthStringToInteger (sNum) +
    + +
    returns (int) iLength (int)
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    sNumQString
    +

  • +
  • monthsInYear (date) = 0 +
    + + +
    returns (int)
    In versions KDE 3.2.0 and above only
    pure virtual
    + +
    ArgumentTypeDefault
    dateQDate
    +

  • +
  • setYMD (date, y, m, d) = 0 +
    + + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    pure virtual
    + + + + +
    ArgumentTypeDefault
    dateQDate
    yint
    mint
    dint
    +

  • +
  • weekDayName (weekDay, shortName = 0) = 0 +
    + + +
    returns (QString)
    In versions KDE 3.2.0 and above only
    pure virtual
    + + +
    ArgumentTypeDefault
    weekDayint
    shortNamebool0
    +

  • +
  • weekDayName (date, shortName = 0) = 0 +
    + + +
    returns (QString)
    In versions KDE 3.2.0 and above only
    pure virtual
    + + +
    ArgumentTypeDefault
    dateQDate
    shortNamebool0
    +

  • +
  • weekDayOfPray () = 0 +
    + + +
    returns (int)
    In versions KDE 3.2.0 and above only
    pure virtual

  • +
  • weekNumber (date) = 0 +
    + + +
    returns (int) yearNum (int)
    In versions KDE 3.2.0 and above only
    pure virtual
    + +
    ArgumentTypeDefault
    dateQDate
    +

  • +
  • weeksInYear (year) = 0 +
    + + +
    returns (int)
    In versions KDE 3.2.0 and above only
    pure virtual
    + +
    ArgumentTypeDefault
    yearint
    +

  • +
  • year (date) = 0 +
    + + +
    returns (int)
    In versions KDE 3.2.0 and above only
    pure virtual
    + +
    ArgumentTypeDefault
    dateQDate
    +

  • +
  • yearString (pDate, bShort) +
    + +
    returns (QString)
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    pDateQDate
    bShortbool
    +

  • +
  • yearStringToInteger (sNum) +
    + +
    returns (int) iLength (int)
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    sNumQString
    +

  • +
+ + + diff --git a/doc/classref/kdecore/KCalendarSystemFactory.html b/doc/classref/kdecore/KCalendarSystemFactory.html new file mode 100644 index 0000000..4db5b72 --- /dev/null +++ b/doc/classref/kdecore/KCalendarSystemFactory.html @@ -0,0 +1,59 @@ + + + + + class KCalendarSystemFactory + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KCalendarSystemFactory


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKCalendarSystemFactory
Inherits
+

methods

    +
  • KCalendarSystemFactory () +
    + +
    returns a KCalendarSystemFactory instance
    In versions KDE 3.2.0 and above only

  • +
  • calendarSystems () +
    + + +
    returns (QStringList)
    In versions KDE 3.2.0 and above only
    static

  • +
  • create (calType = QString .fromLatin1 ("gregorian" ), locale = 0) +
    + + +
    returns (KCalendarSystem)
    In versions KDE 3.2.0 and above only
    static
    + + +
    ArgumentTypeDefault
    calTypeQStringQString .fromLatin1 ("gregorian" )
    localeKLocale0
    +

  • +
+ + + diff --git a/doc/classref/kdecore/KCatalogue.html b/doc/classref/kdecore/KCatalogue.html new file mode 100644 index 0000000..68f5372 --- /dev/null +++ b/doc/classref/kdecore/KCatalogue.html @@ -0,0 +1,93 @@ + + + + + class KCatalogue + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KCatalogue


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKCatalogue
Inherits
+

methods

    +
  • KCatalogue (name = QString .null, language = QString .null) +
    + +
    returns a KCatalogue instance
    In versions KDE 3.3.0 and above only
    + + +
    ArgumentTypeDefault
    nameQStringQString .null
    languageQStringQString .null
    +

  • +
  • KCatalogue (rhs) +
    +
    returns a KCatalogue instance
    + +
    ArgumentTypeDefault
    rhsKCatalogue
    +

  • +
  • KCatalogue (a0 = QString .null) +
    + +
    returns a KCatalogue instance
    In versions less than KDE 3.3.0 only( D MANDRAKE only)
    + +
    ArgumentTypeDefault
    a0QStringQString .null
    +

  • +
  • language () +
    + +
    returns (QString)
    In versions KDE 3.3.0 and above only

  • +
  • name () +
    +
    returns (QString)

  • +
  • pluralType () +
    + +
    returns (int)
    In versions KDE 3.3.0 and above only

  • +
  • setFileName (a0) +
    + +
    returns nothing
    In versions less than KDE 3.3.0 only( D MANDRAKE only)
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • setPluralType (pluralType) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    pluralTypeint
    +

  • +
  • translate (msgid) +
    +
    returns (char)
    + +
    ArgumentTypeDefault
    msgidchar
    +

  • +
+ + + diff --git a/doc/classref/kdecore/KCharMacroExpander.html b/doc/classref/kdecore/KCharMacroExpander.html new file mode 100644 index 0000000..391bcdf --- /dev/null +++ b/doc/classref/kdecore/KCharMacroExpander.html @@ -0,0 +1,75 @@ + + + + + class KCharMacroExpander + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KCharMacroExpander


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKCharMacroExpander (abstract)
InheritsKMacroExpanderBase
+

methods

    +
  • KCharMacroExpander (c = '%') +
    + +
    returns a KCharMacroExpander instance
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    cQChar'%'
    +

  • +
  • expandEscapedMacro (str, pos, ret) +
    + +
    returns (int)
    In versions KDE 3.3.0 and above only
    + + + +
    ArgumentTypeDefault
    strQString
    posuint
    retQStringList
    +

  • +
  • expandMacro (chr, ret) = 0 +
    + + +
    returns (bool)
    In versions KDE 3.3.0 and above only
    pure virtual
    + + +
    ArgumentTypeDefault
    chrQChar
    retQStringList
    +

  • +
  • expandPlainMacro (str, pos, ret) +
    + +
    returns (int)
    In versions KDE 3.3.0 and above only
    + + + +
    ArgumentTypeDefault
    strQString
    posuint
    retQStringList
    +

  • +
+ + + diff --git a/doc/classref/kdecore/KCharsets.html b/doc/classref/kdecore/KCharsets.html new file mode 100644 index 0000000..559f6e4 --- /dev/null +++ b/doc/classref/kdecore/KCharsets.html @@ -0,0 +1,106 @@ + + + + + class KCharsets + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KCharsets


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKCharsets
Inherits
+

methods

    +
  • KCharsets () +
    +
    returns a KCharsets instance

  • +
  • availableEncodingNames () +
    +
    returns (QStringList)

  • +
  • codecForName (name) +
    +
    returns (QTextCodec)
    + +
    ArgumentTypeDefault
    nameQString
    +

  • +
  • codecForName (n) +
    +
    returns (QTextCodec) ok (bool)
    + +
    ArgumentTypeDefault
    nQString
    +

  • +
  • descriptiveEncodingNames () +
    +
    returns (QStringList)

  • +
  • encodingForName (descriptiveName) +
    +
    returns (QString)
    + +
    ArgumentTypeDefault
    descriptiveNameQString
    +

  • +
  • encodingsForLanguage (a0) +
    Not Implemented
    +

  • +
  • fromEntity (str) +
    +
    returns (QChar)
    + +
    ArgumentTypeDefault
    strQString
    +

  • +
  • fromEntity (str) +
    +
    returns (QChar) len (int)
    + +
    ArgumentTypeDefault
    strQString
    +

  • +
  • languageForEncoding (encoding) +
    +
    returns (QString)
    + +
    ArgumentTypeDefault
    encodingQString
    +

  • +
  • languages () +
    Not Implemented
    +

  • +
  • resolveEntities (text) +
    + + +
    returns (QString)
    In versions KDE 3.1.0 and above only
    static
    + +
    ArgumentTypeDefault
    textQString
    +

  • +
  • toEntity (ch) +
    +
    returns (QString)
    + +
    ArgumentTypeDefault
    chQChar
    +

  • +
+ + + diff --git a/doc/classref/kdecore/KClipboardSynchronizer.html b/doc/classref/kdecore/KClipboardSynchronizer.html new file mode 100644 index 0000000..750cb77 --- /dev/null +++ b/doc/classref/kdecore/KClipboardSynchronizer.html @@ -0,0 +1,84 @@ + + + + + class KClipboardSynchronizer + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KClipboardSynchronizer


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKClipboardSynchronizer
InheritsQObject
+

methods

    +
  • KClipboardSynchronizer (parent = 0, name = 0) +
    + +
    returns a KClipboardSynchronizer instance
    In versions KDE 3.1.0 and above only
    + + +
    ArgumentTypeDefault
    parentQObject0
    namechar0
    +

  • +
  • isReverseSynchronizing () +
    + + +
    returns (bool)
    In versions KDE 3.1.0 and above only
    static

  • +
  • isSynchronizing () +
    + + +
    returns (bool)
    In versions KDE 3.1.0 and above only
    static

  • +
  • self () +
    + + +
    returns (KClipboardSynchronizer)
    In versions KDE 3.1.0 and above only
    static

  • +
  • setReverseSynchronizing (enable) +
    + + +
    returns nothing
    In versions KDE 3.1.0 and above only
    static
    + +
    ArgumentTypeDefault
    enablebool
    +

  • +
  • setSynchronizing (sync) +
    + + +
    returns nothing
    In versions KDE 3.1.0 and above only
    static
    + +
    ArgumentTypeDefault
    syncbool
    +

  • +
  • ~KClipboardSynchronizer () +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only

  • +
+ + + diff --git a/doc/classref/kdecore/KCmdLineArgs.html b/doc/classref/kdecore/KCmdLineArgs.html new file mode 100644 index 0000000..a3a7e8e --- /dev/null +++ b/doc/classref/kdecore/KCmdLineArgs.html @@ -0,0 +1,220 @@ + + + + + class KCmdLineArgs + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KCmdLineArgs


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKCmdLineArgs
Inherits
+

methods

    +
  • KCmdLineArgs (_options, _name, _id) +
    +
    returns a KCmdLineArgs instance
    + + + +
    ArgumentTypeDefault
    _optionsKCmdLineOptions
    _namechar
    _idchar
    +

  • +
  • addCmdLineOptions (options, name = 0, id = 0, afterId = 0) +
    + +
    returns nothing
    static
    + + + + +
    ArgumentTypeDefault
    optionsa Python list of tuples
    namechar0
    idchar0
    afterIdchar0
    +
    A Pytbon list of tuples (name, description, default) is the first parameter +instead of a KCmdLineOptions object (KCmdLineOptions is not used); +NULL (or None) parameters to mark the end of the list are not required +

  • +
  • addTempFileOption () +
    + + +
    returns nothing
    In versions KDE 3.4.0 and above only
    static

  • +
  • appName () +
    + +
    returns (char)
    static

  • +
  • arg (n) +
    +
    returns (char)
    + +
    ArgumentTypeDefault
    nint
    +

  • +
  • clear () +
    +
    returns nothing

  • +
  • count () +
    +
    returns (int)

  • +
  • cwd () +
    + +
    returns (QString)
    static

  • +
  • enable_i18n () +
    + +
    returns nothing
    static

  • +
  • getOption (option) +
    +
    returns (QCString)
    + +
    ArgumentTypeDefault
    optionchar
    +

  • +
  • getOptionList (option) +
    + +
    returns (QCStringList)
    In versions KDE 3.1.4 and above only
    + +
    ArgumentTypeDefault
    optionchar
    +

  • +
  • getOptionList (a0) +
    + +
    returns (QValueList)
    In versions less than KDE 3.1.3 only
    + +
    ArgumentTypeDefault
    a0char
    +

  • +
  • init (_argc, _argv, _appname, programName, _description, _version, noKApp = 0) +
    + + +
    returns nothing
    In versions KDE 3.2.0 and above only
    static
    + + + + + + + +
    ArgumentTypeDefault
    _argcint
    _argvchar
    _appnamechar
    programNamechar
    _descriptionchar
    _versionchar
    noKAppbool0
    +

  • +
  • init (_argv, _appname, _description, _version, noKApp = False) +
    + +
    returns nothing
    static
    + + + + + +
    ArgumentTypeDefault
    _argva Python list of strings which may be modified
    _appnamechar
    _descriptionchar
    _versionchar
    noKAppboolFalse
    +

  • +
  • init (_argv, about, noKApp = 0) +
    + +
    returns nothing
    static
    + + + +
    ArgumentTypeDefault
    _argva Python list of strings which may be modified
    aboutKAboutData
    noKAppbool0
    +

  • +
  • init (about) +
    + +
    returns nothing
    static
    + +
    ArgumentTypeDefault
    aboutKAboutData
    +

  • +
  • isSet (option) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    optionchar
    +

  • +
  • isTempFileSet () +
    + + +
    returns (bool)
    In versions KDE 3.4.0 and above only
    static

  • +
  • loadAppArgs (a0) +
    + + +
    returns nothing
    In versions KDE 3.2.0 and above only
    static
    + +
    ArgumentTypeDefault
    a0QDataStream
    +

  • +
  • makeURL (urlArg) +
    + +
    returns (KURL)
    static
    + +
    ArgumentTypeDefault
    urlArgchar
    +

  • +
  • parsedArgs (id = 0) +
    + +
    returns (KCmdLineArgs)
    static
    + +
    ArgumentTypeDefault
    idchar0
    +

  • +
  • reset () +
    + + +
    returns nothing
    In versions KDE 3.2.0 and above only
    static

  • +
  • setCwd (cwd) +
    + +
    returns nothing
    static
    + +
    ArgumentTypeDefault
    cwdchar
    +

  • +
  • url (n) +
    +
    returns (KURL)
    + +
    ArgumentTypeDefault
    nint
    +

  • +
  • usage (id = 0) +
    + +
    returns nothing
    static
    + +
    ArgumentTypeDefault
    idchar0
    +

  • +
  • usage (error) +
    + +
    returns nothing
    static
    + +
    ArgumentTypeDefault
    errorQString
    +

  • +
  • ~KCmdLineArgs () +
    +
    returns nothing

  • +
+ + + diff --git a/doc/classref/kdecore/KCmdLineOptions.html b/doc/classref/kdecore/KCmdLineOptions.html new file mode 100644 index 0000000..d5aad5b --- /dev/null +++ b/doc/classref/kdecore/KCmdLineOptions.html @@ -0,0 +1,45 @@ + + + + + class KCmdLineOptions + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KCmdLineOptions


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKCmdLineOptions
Inherits
+

variables

  • +variables + + + +
    VariableType
    defchar*
    descriptionchar*
    namechar*
+ + + diff --git a/doc/classref/kdecore/KCodecs.html b/doc/classref/kdecore/KCodecs.html new file mode 100644 index 0000000..57dd604 --- /dev/null +++ b/doc/classref/kdecore/KCodecs.html @@ -0,0 +1,182 @@ + + + + + class KCodecs + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KCodecs


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKCodecs
Inherits
+

methods

    +
  • KCodecs () +
    +
    returns a KCodecs instance

  • +
  • base64Decode (in) +
    + +
    returns (QCString)
    static
    + +
    ArgumentTypeDefault
    inQByteArray
    +

  • +
  • base64Decode (str) +
    + +
    returns (QCString)
    static
    + +
    ArgumentTypeDefault
    strQCString
    +

  • +
  • base64Decode (in, out) +
    + +
    returns nothing
    static
    + + +
    ArgumentTypeDefault
    inQByteArray
    outQByteArray
    +

  • +
  • base64Encode (in, insertLFs) +
    + +
    returns (QCString)
    static
    + + +
    ArgumentTypeDefault
    inQByteArray
    insertLFsbool
    +

  • +
  • base64Encode (str, insertLFs) +
    + +
    returns (QCString)
    static
    + + +
    ArgumentTypeDefault
    strQCString
    insertLFsbool
    +

  • +
  • base64Encode (in, out, insertLFs) +
    + +
    returns nothing
    static
    + + + +
    ArgumentTypeDefault
    inQByteArray
    outQByteArray
    insertLFsbool
    +

  • +
  • quotedPrintableDecode (in) +
    + +
    returns (QCString)
    static
    + +
    ArgumentTypeDefault
    inQByteArray
    +

  • +
  • quotedPrintableDecode (str) +
    + +
    returns (QCString)
    static
    + +
    ArgumentTypeDefault
    strQCString
    +

  • +
  • quotedPrintableDecode (in, out) +
    + +
    returns nothing
    static
    + + +
    ArgumentTypeDefault
    inQByteArray
    outQByteArray
    +

  • +
  • quotedPrintableEncode (in, useCRLF) +
    + +
    returns (QCString)
    static
    + + +
    ArgumentTypeDefault
    inQByteArray
    useCRLFbool
    +

  • +
  • quotedPrintableEncode (str, useCRLF = 1) +
    + +
    returns (QCString)
    static
    + + +
    ArgumentTypeDefault
    strQCString
    useCRLFbool1
    +

  • +
  • quotedPrintableEncode (in, out, useCRLF) +
    + +
    returns nothing
    static
    + + + +
    ArgumentTypeDefault
    inQByteArray
    outQByteArray
    useCRLFbool
    +

  • +
  • uudecode (in) +
    + +
    returns (QCString)
    static
    + +
    ArgumentTypeDefault
    inQByteArray
    +

  • +
  • uudecode (str) +
    + +
    returns (QCString)
    static
    + +
    ArgumentTypeDefault
    strQCString
    +

  • +
  • uudecode (in, out) +
    + +
    returns nothing
    static
    + + +
    ArgumentTypeDefault
    inQByteArray
    outQByteArray
    +

  • +
  • uuencode (in) +
    + +
    returns (QCString)
    static
    + +
    ArgumentTypeDefault
    inQByteArray
    +

  • +
  • uuencode (str) +
    + +
    returns (QCString)
    static
    + +
    ArgumentTypeDefault
    strQCString
    +

  • +
  • uuencode (in, out) +
    + +
    returns nothing
    static
    + + +
    ArgumentTypeDefault
    inQByteArray
    outQByteArray
    +

  • +
+ + + diff --git a/doc/classref/kdecore/KCompletion.html b/doc/classref/kdecore/KCompletion.html new file mode 100644 index 0000000..b2080a0 --- /dev/null +++ b/doc/classref/kdecore/KCompletion.html @@ -0,0 +1,211 @@ + + + + + class KCompletion + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KCompletion


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKCompletion
InheritsQObject
+

enums

    +
  • CompOrder = {Sorted, Insertion, Weighted +}
+

methods

    +
  • KCompletion () +
    +
    returns a KCompletion instance

  • +
  • addItem (item) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    itemQString
    +

  • +
  • addItem (item, weight) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    itemQString
    weightuint
    +

  • +
  • allMatches () +
    +
    returns (QStringList)

  • +
  • allMatches (string) +
    +
    returns (QStringList)
    + +
    ArgumentTypeDefault
    stringQString
    +

  • +
  • allWeightedMatches () +
    Not Implemented
    +

  • +
  • allWeightedMatches (string) +
    Not Implemented
    +

  • +
  • clear () +
    +
    returns nothing

  • +
  • completionMode () +
    +
    returns (KGlobalSettings.Completion)

  • +
  • disableSounds () +
    +
    returns nothing

  • +
  • enableSounds () +
    +
    returns nothing

  • +
  • hasMultipleMatches () +
    +
    returns (bool)

  • +
  • ignoreCase () +
    +
    returns (bool)

  • +
  • insertItems (items) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    itemsQStringList
    +

  • +
  • isEmpty () +
    + +
    returns (bool)
    In versions KDE 3.3.0 and above only

  • +
  • isSoundsEnabled () +
    +
    returns (bool)

  • +
  • items () +
    +
    returns (QStringList)

  • +
  • lastMatch () +
    +
    returns (QString)

  • +
  • makeCompletion (string) +
    +
    returns (QString)
    + +
    ArgumentTypeDefault
    stringQString
    +

  • +
  • match (item) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    itemQString
    +

  • +
  • matches (matchlist) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    matchlistQStringList
    +

  • +
  • multipleMatches () +
    +
    returns nothing

  • +
  • nextMatch () +
    +
    returns (QString)

  • +
  • order () +
    +
    returns (CompOrder)

  • +
  • postProcessMatch (match) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    matchQString
    +

  • +
  • postProcessMatches (matches) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    matchesQStringList
    +

  • +
  • postProcessMatches (matches) +
    Not Implemented
    +

  • +
  • previousMatch () +
    +
    returns (QString)

  • +
  • removeItem (item) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    itemQString
    +

  • +
  • setCompletionMode (mode) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    modeKGlobalSettings.Completion
    +

  • +
  • setEnableSounds (enable) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    enablebool
    +

  • +
  • setIgnoreCase (ignoreCase) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    ignoreCasebool
    +

  • +
  • setItems (list) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    listQStringList
    +

  • +
  • setOrder (order) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    orderKCompletion.CompOrder
    +

  • +
  • slotMakeCompletion (string) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    stringQString
    +

  • +
  • slotNextMatch () +
    +
    returns nothing

  • +
  • slotPreviousMatch () +
    +
    returns nothing

  • +
  • substringCompletion (string) +
    +
    returns (QStringList)
    + +
    ArgumentTypeDefault
    stringQString
    +

  • +
+ + + diff --git a/doc/classref/kdecore/KCompletionBase.html b/doc/classref/kdecore/KCompletionBase.html new file mode 100644 index 0000000..7da31be --- /dev/null +++ b/doc/classref/kdecore/KCompletionBase.html @@ -0,0 +1,141 @@ + + + + + class KCompletionBase + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KCompletionBase


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKCompletionBase (abstract)
Inherits
+

enums

    +
  • KeyBindingType = {TextCompletion, PrevCompletionMatch, NextCompletionMatch, SubstringCompletion +}
+

methods

    +
  • KCompletionBase () +
    +
    returns a KCompletionBase instance

  • +
  • compObj () +
    +
    returns (KCompletion)

  • +
  • completionMode () +
    +
    returns (KGlobalSettings.Completion)

  • +
  • completionObject (hsig = 1) +
    +
    returns (KCompletion)
    + +
    ArgumentTypeDefault
    hsigbool1
    +

  • +
  • delegate () +
    +
    returns (KCompletionBase)

  • +
  • emitSignals () +
    +
    returns (bool)

  • +
  • getKeyBinding (item) +
    +
    returns (KShortcut)
    + +
    ArgumentTypeDefault
    itemKCompletionBase.KeyBindingType
    +

  • +
  • getKeyBindings () +
    +
    returns (KCompletionBase.KeyBindingMap)

  • +
  • handleSignals () +
    +
    returns (bool)

  • +
  • isCompletionObjectAutoDeleted () +
    +
    returns (bool)

  • +
  • setAutoDeleteCompletionObject (autoDelete) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    autoDeletebool
    +

  • +
  • setCompletedItems (items) = 0 +
    + +
    returns nothing
    pure virtual
    + +
    ArgumentTypeDefault
    itemsQStringList
    +

  • +
  • setCompletedText (text) = 0 +
    + +
    returns nothing
    pure virtual
    + +
    ArgumentTypeDefault
    textQString
    +

  • +
  • setCompletionMode (mode) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    modeKGlobalSettings.Completion
    +

  • +
  • setCompletionObject (compObj, hsig = 1) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    compObjKCompletion
    hsigbool1
    +

  • +
  • setDelegate (delegate) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    delegateKCompletionBase
    +

  • +
  • setEnableSignals (enable) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    enablebool
    +

  • +
  • setHandleSignals (handle) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    handlebool
    +

  • +
  • setKeyBinding (item, key) +
    +
    returns (bool)
    + + +
    ArgumentTypeDefault
    itemKCompletionBase.KeyBindingType
    keyKShortcut
    +

  • +
  • useGlobalKeyBindings () +
    +
    returns nothing

  • +
+ + + diff --git a/doc/classref/kdecore/KConfig.html b/doc/classref/kdecore/KConfig.html new file mode 100644 index 0000000..53cacf2 --- /dev/null +++ b/doc/classref/kdecore/KConfig.html @@ -0,0 +1,149 @@ + + + + + class KConfig + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KConfig


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKConfig
InheritsKConfigBase
+

methods

    +
  • KConfig (fileName = QString .null, bReadOnly = 0, bUseKDEGlobals = 1, resType = "config") +
    +
    returns a KConfig instance
    + + + + +
    ArgumentTypeDefault
    fileNameQStringQString .null
    bReadOnlybool0
    bUseKDEGlobalsbool1
    resTypechar"config"
    +

  • +
  • KConfig (backEnd, bReadOnly = 0) +
    + +
    returns a KConfig instance
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    backEndKConfigBackEnd
    bReadOnlybool0
    +

  • +
  • KConfig (a0) +
    +
    returns a KConfig instance
    + +
    ArgumentTypeDefault
    a0KConfig
    +

  • +
  • checkUpdate (id, updateFile) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + + +
    ArgumentTypeDefault
    idQString
    updateFileQString
    +

  • +
  • copyTo (file, config = 0) +
    + +
    returns (KConfig)
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    fileQString
    configKConfig0
    +

  • +
  • entryMap (pGroup) +
    +
    returns (QMap)
    + +
    ArgumentTypeDefault
    pGroupQString
    +

  • +
  • forceGlobal () +
    +
    returns (bool)

  • +
  • groupList () +
    +
    returns (QStringList)

  • +
  • internalEntryMap (pGroup) +
    +
    returns (KEntryMap)
    + +
    ArgumentTypeDefault
    pGroupQString
    +

  • +
  • internalEntryMap () +
    +
    returns (KEntryMap)

  • +
  • internalHasGroup (group) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    groupQCString
    +

  • +
  • lockFile (bGlobal = 0) +
    + +
    returns (KLockFile.Ptr)
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    bGlobalbool0
    +

  • +
  • lookupData (_key) +
    +
    returns (KEntry)
    + +
    ArgumentTypeDefault
    _keyKEntryKey
    +

  • +
  • putData (_key, _data, _checkGroup = 1) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    _keyKEntryKey
    _dataKEntry
    _checkGroupbool1
    +

  • +
  • reparseConfiguration () +
    +
    returns nothing

  • +
  • rollback (bDeep = 1) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    bDeepbool1
    +

  • +
  • setFileWriteMode (mode) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    modeint
    +

  • +
  • setForceGlobal (force) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    forcebool
    +

  • +
+ + + diff --git a/doc/classref/kdecore/KConfigBackEnd.html b/doc/classref/kdecore/KConfigBackEnd.html new file mode 100644 index 0000000..e7cd692 --- /dev/null +++ b/doc/classref/kdecore/KConfigBackEnd.html @@ -0,0 +1,107 @@ + + + + + class KConfigBackEnd + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KConfigBackEnd


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKConfigBackEnd (abstract)
Inherits
+

methods

    +
  • KConfigBackEnd (_config, _fileName, _resType, _useKDEGlobals) +
    +
    returns a KConfigBackEnd instance
    + + + + +
    ArgumentTypeDefault
    _configKConfigBase
    _fileNameQString
    _resTypechar
    _useKDEGlobalsbool
    +

  • +
  • changeFileName (_fileName, _resType, _useKDEGlobals) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    _fileNameQString
    _resTypechar
    _useKDEGlobalsbool
    +

  • +
  • checkConfigFilesWritable (warnUser) +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    warnUserbool
    +

  • +
  • fileName () +
    +
    returns (QString)

  • +
  • filename () +
    +
    returns (QString)

  • +
  • getConfigState () +
    +
    returns (KConfigBase.ConfigState)

  • +
  • lockFile (bGlobal = 0) +
    + +
    returns (KLockFile.Ptr)
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    bGlobalbool0
    +

  • +
  • parseConfigFiles () = 0 +
    + +
    returns (bool)
    pure virtual

  • +
  • resource () +
    +
    returns (char)

  • +
  • setFileWriteMode (mode) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    modeint
    +

  • +
  • setLocaleString (_localeString) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    _localeStringQCString
    +

  • +
  • sync (bMerge = 1) = 0 +
    + +
    returns nothing
    pure virtual
    + +
    ArgumentTypeDefault
    bMergebool1
    +

  • +
+ + + diff --git a/doc/classref/kdecore/KConfigBase.html b/doc/classref/kdecore/KConfigBase.html new file mode 100644 index 0000000..55ed3cc --- /dev/null +++ b/doc/classref/kdecore/KConfigBase.html @@ -0,0 +1,970 @@ + + + + + class KConfigBase + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KConfigBase


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKConfigBase (abstract)
InheritsQObject
+

enums

    +
  • ConfigState = {NoAccess, ReadOnly, ReadWrite +}
+

methods

    +
  • KConfigBase () +
    +
    returns a KConfigBase instance

  • +
  • checkConfigFilesWritable (warnUser) +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    warnUserbool
    +

  • +
  • deleteEntry (pKey, bNLS = 0, bGlobal = 0) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    pKeyQString
    bNLSbool0
    bGlobalbool0
    +

  • +
  • deleteEntry (pKey, bNLS = 0, bGlobal = 0) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    pKeychar
    bNLSbool0
    bGlobalbool0
    +

  • +
  • deleteGroup (group, bDeep = 1, bGlobal = 0) +
    +
    returns (bool)
    + + + +
    ArgumentTypeDefault
    groupQString
    bDeepbool1
    bGlobalbool0
    +

  • +
  • entryIsImmutable (key) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    keyQString
    +

  • +
  • entryMap (group) = 0 +
    + +
    returns (QMap)
    pure virtual
    + +
    ArgumentTypeDefault
    groupQString
    +

  • +
  • getConfigState () +
    +
    returns (ConfigState)

  • +
  • group () +
    +
    returns (QString)

  • +
  • groupIsImmutable (group) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    groupQString
    +

  • +
  • groupList () = 0 +
    + +
    returns (QStringList)
    pure virtual

  • +
  • hasDefault (key) +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    keyQString
    +

  • +
  • hasGroup (group) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    groupQString
    +

  • +
  • hasGroup (_pGroup) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    _pGroupQCString
    +

  • +
  • hasGroup (_pGroup) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    _pGroupchar
    +

  • +
  • hasKey (key) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    keyQString
    +

  • +
  • hasKey (pKey) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    pKeychar
    +

  • +
  • internalEntryMap (pGroup) = 0 +
    + +
    returns (KEntryMap)
    pure virtual
    + +
    ArgumentTypeDefault
    pGroupQString
    +

  • +
  • internalEntryMap () = 0 +
    + +
    returns (KEntryMap)
    pure virtual

  • +
  • internalHasGroup (group) = 0 +
    + +
    returns (bool)
    pure virtual
    + +
    ArgumentTypeDefault
    groupQCString
    +

  • +
  • isDirty () +
    +
    returns (bool)

  • +
  • isDollarExpansion () +
    +
    returns (bool)

  • +
  • isImmutable () +
    +
    returns (bool)

  • +
  • isReadOnly () +
    +
    returns (bool)

  • +
  • locale () +
    +
    returns (QString)

  • +
  • lookupData (_key) = 0 +
    + +
    returns (KEntry)
    pure virtual
    + +
    ArgumentTypeDefault
    _keyKEntryKey
    +

  • +
  • parseConfigFiles () +
    +
    returns nothing

  • +
  • putData (_key, _data, _checkGroup = 1) = 0 +
    + +
    returns nothing
    pure virtual
    + + + +
    ArgumentTypeDefault
    _keyKEntryKey
    _dataKEntry
    _checkGroupbool1
    +

  • +
  • readBoolEntry (pKey, bDefault = 0) +
    +
    returns (bool)
    + + +
    ArgumentTypeDefault
    pKeyQString
    bDefaultbool0
    +

  • +
  • readBoolEntry (pKey, bDefault = 0) +
    +
    returns (bool)
    + + +
    ArgumentTypeDefault
    pKeychar
    bDefaultbool0
    +

  • +
  • readColorEntry (pKey, pDefault = 0) +
    +
    returns (QColor)
    + + +
    ArgumentTypeDefault
    pKeyQString
    pDefaultQColor0
    +

  • +
  • readColorEntry (pKey, pDefault = 0) +
    +
    returns (QColor)
    + + +
    ArgumentTypeDefault
    pKeychar
    pDefaultQColor0
    +

  • +
  • readDateTimeEntry (pKey, pDefault = 0) +
    +
    returns (QDateTime)
    + + +
    ArgumentTypeDefault
    pKeyQString
    pDefaultQDateTime0
    +

  • +
  • readDateTimeEntry (pKey, pDefault = 0) +
    +
    returns (QDateTime)
    + + +
    ArgumentTypeDefault
    pKeychar
    pDefaultQDateTime0
    +

  • +
  • readDefaults () +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only

  • +
  • readDoubleNumEntry (pKey, nDefault = 0.0) +
    +
    returns (double)
    + + +
    ArgumentTypeDefault
    pKeyQString
    nDefaultdouble0.0
    +

  • +
  • readDoubleNumEntry (pKey, nDefault = 0.0) +
    +
    returns (double)
    + + +
    ArgumentTypeDefault
    pKeychar
    nDefaultdouble0.0
    +

  • +
  • readEntry (pKey, aDefault = QString .null) +
    +
    returns (QString)
    + + +
    ArgumentTypeDefault
    pKeyQString
    aDefaultQStringQString .null
    +

  • +
  • readEntry (pKey, aDefault = QString .null) +
    +
    returns (QString)
    + + +
    ArgumentTypeDefault
    pKeychar
    aDefaultQStringQString .null
    +

  • +
  • readEntryUntranslated (pKey, aDefault = QString .null) +
    +
    returns (QString)
    + + +
    ArgumentTypeDefault
    pKeyQString
    aDefaultQStringQString .null
    +

  • +
  • readEntryUntranslated (pKey, aDefault = QString .null) +
    +
    returns (QString)
    + + +
    ArgumentTypeDefault
    pKeychar
    aDefaultQStringQString .null
    +

  • +
  • readEntryUtf8 (pKey) +
    +
    returns (QCString)
    + +
    ArgumentTypeDefault
    pKeychar
    +

  • +
  • readFontEntry (pKey, pDefault = 0) +
    +
    returns (QFont)
    + + +
    ArgumentTypeDefault
    pKeyQString
    pDefaultQFont0
    +

  • +
  • readFontEntry (pKey, pDefault = 0) +
    +
    returns (QFont)
    + + +
    ArgumentTypeDefault
    pKeychar
    pDefaultQFont0
    +

  • +
  • readIntListEntry (pKey) +
    +
    returns (QValueList)
    + +
    ArgumentTypeDefault
    pKeyQString
    +

  • +
  • readIntListEntry (pKey) +
    +
    returns (QValueList)
    + +
    ArgumentTypeDefault
    pKeychar
    +

  • +
  • readListEntry (pKey, list, sep = ',') +
    +
    returns (int)
    + + + +
    ArgumentTypeDefault
    pKeyQString
    listQStrList
    sepchar','
    +

  • +
  • readListEntry (pKey, list, sep = ',') +
    +
    returns (int)
    + + + +
    ArgumentTypeDefault
    pKeychar
    listQStrList
    sepchar','
    +

  • +
  • readListEntry (pKey, sep = ',') +
    +
    returns (QStringList)
    + + +
    ArgumentTypeDefault
    pKeyQString
    sepchar','
    +

  • +
  • readListEntry (pKey, sep = ',') +
    +
    returns (QStringList)
    + + +
    ArgumentTypeDefault
    pKeychar
    sepchar','
    +

  • +
  • readListEntry (pKey, aDefault, sep = ',') +
    + +
    returns (QStringList)
    In versions KDE 3.3.0 and above only
    + + + +
    ArgumentTypeDefault
    pKeychar
    aDefaultQStringList
    sepchar','
    +

  • +
  • readLongNumEntry (pKey, nDefault = 0) +
    +
    returns (long)
    + + +
    ArgumentTypeDefault
    pKeyQString
    nDefaultlong0
    +

  • +
  • readLongNumEntry (pKey, nDefault = 0) +
    +
    returns (long)
    + + +
    ArgumentTypeDefault
    pKeychar
    nDefaultlong0
    +

  • +
  • readNum64Entry (pKey, nDefault = 0) +
    + +
    returns (longlong)
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    pKeyQString
    nDefaultlonglong0
    +

  • +
  • readNum64Entry (pKey, nDefault = 0) +
    + +
    returns (longlong)
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    pKeychar
    nDefaultlonglong0
    +

  • +
  • readNumEntry (pKey, nDefault = 0) +
    +
    returns (int)
    + + +
    ArgumentTypeDefault
    pKeyQString
    nDefaultint0
    +

  • +
  • readNumEntry (pKey, nDefault = 0) +
    +
    returns (int)
    + + +
    ArgumentTypeDefault
    pKeychar
    nDefaultint0
    +

  • +
  • readPathEntry (pKey, aDefault = QString .null) +
    +
    returns (QString)
    + + +
    ArgumentTypeDefault
    pKeyQString
    aDefaultQStringQString .null
    +

  • +
  • readPathEntry (pKey, aDefault = QString .null) +
    +
    returns (QString)
    + + +
    ArgumentTypeDefault
    pKeychar
    aDefaultQStringQString .null
    +

  • +
  • readPathListEntry (pKey, sep = ',') +
    + +
    returns (QStringList)
    In versions KDE 3.1.3 and above only
    + + +
    ArgumentTypeDefault
    pKeyQString
    sepchar','
    +

  • +
  • readPathListEntry (pKey, sep = ',') +
    + +
    returns (QStringList)
    In versions KDE 3.1.3 and above only
    + + +
    ArgumentTypeDefault
    pKeychar
    sepchar','
    +

  • +
  • readPointEntry (pKey, pDefault = 0) +
    +
    returns (QPoint)
    + + +
    ArgumentTypeDefault
    pKeyQString
    pDefaultQPoint0
    +

  • +
  • readPointEntry (pKey, pDefault = 0) +
    +
    returns (QPoint)
    + + +
    ArgumentTypeDefault
    pKeychar
    pDefaultQPoint0
    +

  • +
  • readPropertyEntry (pKey, a0) +
    +
    returns (QVariant)
    + + +
    ArgumentTypeDefault
    pKeyQString
    a0QVariant.Type
    +

  • +
  • readPropertyEntry (pKey, a0) +
    +
    returns (QVariant)
    + + +
    ArgumentTypeDefault
    pKeychar
    a0QVariant.Type
    +

  • +
  • readPropertyEntry (pKey, aDefault) +
    +
    returns (QVariant)
    + + +
    ArgumentTypeDefault
    pKeyQString
    aDefaultQVariant
    +

  • +
  • readPropertyEntry (pKey, aDefault) +
    +
    returns (QVariant)
    + + +
    ArgumentTypeDefault
    pKeychar
    aDefaultQVariant
    +

  • +
  • readRectEntry (pKey, pDefault = 0) +
    +
    returns (QRect)
    + + +
    ArgumentTypeDefault
    pKeyQString
    pDefaultQRect0
    +

  • +
  • readRectEntry (pKey, pDefault = 0) +
    +
    returns (QRect)
    + + +
    ArgumentTypeDefault
    pKeychar
    pDefaultQRect0
    +

  • +
  • readSizeEntry (pKey, pDefault = 0) +
    +
    returns (QSize)
    + + +
    ArgumentTypeDefault
    pKeyQString
    pDefaultQSize0
    +

  • +
  • readSizeEntry (pKey, pDefault = 0) +
    +
    returns (QSize)
    + + +
    ArgumentTypeDefault
    pKeychar
    pDefaultQSize0
    +

  • +
  • readUnsignedLongNumEntry (pKey, nDefault = 0) +
    +
    returns (ulong)
    + + +
    ArgumentTypeDefault
    pKeyQString
    nDefaultulong0
    +

  • +
  • readUnsignedLongNumEntry (pKey, nDefault = 0) +
    +
    returns (ulong)
    + + +
    ArgumentTypeDefault
    pKeychar
    nDefaultulong0
    +

  • +
  • readUnsignedNum64Entry (pKey, nDefault = 0) +
    + +
    returns (ulonglong)
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    pKeyQString
    nDefaultulonglong0
    +

  • +
  • readUnsignedNum64Entry (pKey, nDefault = 0) +
    + +
    returns (ulonglong)
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    pKeychar
    nDefaultulonglong0
    +

  • +
  • readUnsignedNumEntry (pKey, nDefault = 0) +
    +
    returns (uint)
    + + +
    ArgumentTypeDefault
    pKeyQString
    nDefaultuint0
    +

  • +
  • readUnsignedNumEntry (pKey, nDefault = 0) +
    +
    returns (uint)
    + + +
    ArgumentTypeDefault
    pKeychar
    nDefaultuint0
    +

  • +
  • reparseConfiguration () = 0 +
    + +
    returns nothing
    pure virtual

  • +
  • revertToDefault (key) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    keyQString
    +

  • +
  • rollback (bDeep = 1) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    bDeepbool1
    +

  • +
  • setDesktopGroup () +
    +
    returns nothing

  • +
  • setDirty (_bDirty = 1) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    _bDirtybool1
    +

  • +
  • setDollarExpansion (_bExpand = 1) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    _bExpandbool1
    +

  • +
  • setGroup (group) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    groupQString
    +

  • +
  • setGroup (pGroup) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    pGroupQCString
    +

  • +
  • setGroup (pGroup) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    pGroupchar
    +

  • +
  • setLocale () +
    +
    returns nothing

  • +
  • setReadDefaults (b) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    bbool
    +

  • +
  • setReadOnly (_ro) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    _robool
    +

  • +
  • sync () +
    +
    returns nothing

  • +
  • writeEntry (pKey, pValue, bPersistent = 1, bGlobal = 0, bNLS = 0) +
    +
    returns nothing
    + + + + + +
    ArgumentTypeDefault
    pKeyQString
    pValueQString
    bPersistentbool1
    bGlobalbool0
    bNLSbool0
    +

  • +
  • writeEntry (pKey, pValue, bPersistent = 1, bGlobal = 0, bNLS = 0) +
    +
    returns nothing
    + + + + + +
    ArgumentTypeDefault
    pKeychar
    pValueQString
    bPersistentbool1
    bGlobalbool0
    bNLSbool0
    +

  • +
  • writeEntry (pKey, pValue, bPersistent = 1, bGlobal = 0, bNLS = 0) +
    +
    returns nothing
    + + + + + +
    ArgumentTypeDefault
    pKeyQString
    pValuechar
    bPersistentbool1
    bGlobalbool0
    bNLSbool0
    +

  • +
  • writeEntry (pKey, pValue, bPersistent = 1, bGlobal = 0, bNLS = 0) +
    +
    returns nothing
    + + + + + +
    ArgumentTypeDefault
    pKeychar
    pValuechar
    bPersistentbool1
    bGlobalbool0
    bNLSbool0
    +

  • +
  • writeEntry (pKey, nValue, bPersistent = 1, bGlobal = 0, bNLS = 0) +
    +
    returns nothing
    + + + + + +
    ArgumentTypeDefault
    pKeyQString
    nValueint
    bPersistentbool1
    bGlobalbool0
    bNLSbool0
    +

  • +
  • writeEntry (pKey, nValue, bPersistent = 1, bGlobal = 0, bNLS = 0) +
    +
    returns nothing
    + + + + + +
    ArgumentTypeDefault
    pKeychar
    nValueint
    bPersistentbool1
    bGlobalbool0
    bNLSbool0
    +

  • +
  • writeEntry (pKey, nValue, bPersistent = 1, bGlobal = 0, bNLS = 0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + + + + + +
    ArgumentTypeDefault
    pKeyQString
    nValuelonglong
    bPersistentbool1
    bGlobalbool0
    bNLSbool0
    +

  • +
  • writeEntry (pKey, nValue, bPersistent = 1, bGlobal = 0, bNLS = 0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + + + + + +
    ArgumentTypeDefault
    pKeychar
    nValuelonglong
    bPersistentbool1
    bGlobalbool0
    bNLSbool0
    +

  • +
  • writeEntry (pKey, nValue, bPersistent = 1, bGlobal = 0, bNLS = 0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + + + + + +
    ArgumentTypeDefault
    pKeyQString
    nValueulonglong
    bPersistentbool1
    bGlobalbool0
    bNLSbool0
    +

  • +
  • writeEntry (pKey, nValue, bPersistent = 1, bGlobal = 0, bNLS = 0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + + + + + +
    ArgumentTypeDefault
    pKeychar
    nValueulonglong
    bPersistentbool1
    bGlobalbool0
    bNLSbool0
    +

  • +
  • writeEntry (pKey, nValue, bPersistent = 1, bGlobal = 0, format = 'g', precision = 6, bNLS = 0) +
    Not Implemented
    +

  • +
  • writeEntry (pKey, nValue, bPersistent = 1, bGlobal = 0, format = 'g', precision = 6, bNLS = 0) +
    Not Implemented
    +

  • +
  • writeEntry (pKey, rValue, bPersistent = 1, bGlobal = 0, bNLS = 0) +
    +
    returns nothing
    + + + + + +
    ArgumentTypeDefault
    pKeyQString
    rValueQVariant
    bPersistentbool1
    bGlobalbool0
    bNLSbool0
    +

  • +
  • writeEntry (pKey, rFont, bPersistent = 1, bGlobal = 0, bNLS = 0) +
    +
    returns nothing
    + + + + + +
    ArgumentTypeDefault
    pKeyQString
    rFontQFont
    bPersistentbool1
    bGlobalbool0
    bNLSbool0
    +

  • +
  • writeEntry (pKey, rFont, bPersistent = 1, bGlobal = 0, bNLS = 0) +
    +
    returns nothing
    + + + + + +
    ArgumentTypeDefault
    pKeychar
    rFontQFont
    bPersistentbool1
    bGlobalbool0
    bNLSbool0
    +

  • +
  • writeEntry (pKey, rColor, bPersistent = 1, bGlobal = 0, bNLS = 0) +
    +
    returns nothing
    + + + + + +
    ArgumentTypeDefault
    pKeyQString
    rColorQColor
    bPersistentbool1
    bGlobalbool0
    bNLSbool0
    +

  • +
  • writeEntry (pKey, rColor, bPersistent = 1, bGlobal = 0, bNLS = 0) +
    +
    returns nothing
    + + + + + +
    ArgumentTypeDefault
    pKeychar
    rColorQColor
    bPersistentbool1
    bGlobalbool0
    bNLSbool0
    +

  • +
  • writeEntry (pKey, rDateTime, bPersistent = 1, bGlobal = 0, bNLS = 0) +
    +
    returns nothing
    + + + + + +
    ArgumentTypeDefault
    pKeyQString
    rDateTimeQDateTime
    bPersistentbool1
    bGlobalbool0
    bNLSbool0
    +

  • +
  • writeEntry (pKey, rDateTime, bPersistent = 1, bGlobal = 0, bNLS = 0) +
    +
    returns nothing
    + + + + + +
    ArgumentTypeDefault
    pKeychar
    rDateTimeQDateTime
    bPersistentbool1
    bGlobalbool0
    bNLSbool0
    +

  • +
  • writeEntry (pKey, rValue, bPersistent = 1, bGlobal = 0, bNLS = 0) +
    +
    returns nothing
    + + + + + +
    ArgumentTypeDefault
    pKeyQString
    rValueQRect
    bPersistentbool1
    bGlobalbool0
    bNLSbool0
    +

  • +
  • writeEntry (pKey, rValue, bPersistent = 1, bGlobal = 0, bNLS = 0) +
    +
    returns nothing
    + + + + + +
    ArgumentTypeDefault
    pKeychar
    rValueQRect
    bPersistentbool1
    bGlobalbool0
    bNLSbool0
    +

  • +
  • writeEntry (pKey, rValue, bPersistent = 1, bGlobal = 0, bNLS = 0) +
    +
    returns nothing
    + + + + + +
    ArgumentTypeDefault
    pKeyQString
    rValueQPoint
    bPersistentbool1
    bGlobalbool0
    bNLSbool0
    +

  • +
  • writeEntry (pKey, rValue, bPersistent = 1, bGlobal = 0, bNLS = 0) +
    +
    returns nothing
    + + + + + +
    ArgumentTypeDefault
    pKeychar
    rValueQPoint
    bPersistentbool1
    bGlobalbool0
    bNLSbool0
    +

  • +
  • writeEntry (pKey, rValue, bPersistent = 1, bGlobal = 0, bNLS = 0) +
    +
    returns nothing
    + + + + + +
    ArgumentTypeDefault
    pKeychar
    rValueQVariant
    bPersistentbool1
    bGlobalbool0
    bNLSbool0
    +

  • +
  • writeEntry (pKey, rValue, bPersistent = 1, bGlobal = 0, bNLS = 0) +
    +
    returns nothing
    + + + + + +
    ArgumentTypeDefault
    pKeyQString
    rValueQSize
    bPersistentbool1
    bGlobalbool0
    bNLSbool0
    +

  • +
  • writeEntry (pKey, rValue, bPersistent = 1, bGlobal = 0, bNLS = 0) +
    +
    returns nothing
    + + + + + +
    ArgumentTypeDefault
    pKeychar
    rValueQSize
    bPersistentbool1
    bGlobalbool0
    bNLSbool0
    +

  • +
  • writeEntry (pKey, rValue, sep = ',', bPersistent = 1, bGlobal = 0, bNLS = 0) +
    +
    returns nothing
    + + + + + + +
    ArgumentTypeDefault
    pKeyQString
    rValueQStrList
    sepchar','
    bPersistentbool1
    bGlobalbool0
    bNLSbool0
    +

  • +
  • writeEntry (pKey, rValue, sep = ',', bPersistent = 1, bGlobal = 0, bNLS = 0) +
    +
    returns nothing
    + + + + + + +
    ArgumentTypeDefault
    pKeychar
    rValueQStrList
    sepchar','
    bPersistentbool1
    bGlobalbool0
    bNLSbool0
    +

  • +
  • writeEntry (pKey, rValue, sep = ',', bPersistent = 1, bGlobal = 0, bNLS = 0) +
    +
    returns nothing
    + + + + + + +
    ArgumentTypeDefault
    pKeyQString
    rValueQStringList
    sepchar','
    bPersistentbool1
    bGlobalbool0
    bNLSbool0
    +

  • +
  • writeEntry (pKey, rValue, sep = ',', bPersistent = 1, bGlobal = 0, bNLS = 0) +
    +
    returns nothing
    + + + + + + +
    ArgumentTypeDefault
    pKeychar
    rValueQStringList
    sepchar','
    bPersistentbool1
    bGlobalbool0
    bNLSbool0
    +

  • +
  • writeEntry (pKey, rValue, bPersistent = 1, bGlobal = 0, bNLS = 0) +
    +
    returns nothing
    + + + + + +
    ArgumentTypeDefault
    pKeyQString
    rValueQValueList
    bPersistentbool1
    bGlobalbool0
    bNLSbool0
    +

  • +
  • writeEntry (pKey, rValue, bPersistent = 1, bGlobal = 0, bNLS = 0) +
    +
    returns nothing
    + + + + + +
    ArgumentTypeDefault
    pKeychar
    rValueQValueList
    bPersistentbool1
    bGlobalbool0
    bNLSbool0
    +

  • +
  • writePathEntry (pKey, path, bPersistent = 1, bGlobal = 0, bNLS = 0) +
    +
    returns nothing
    + + + + + +
    ArgumentTypeDefault
    pKeyQString
    pathQString
    bPersistentbool1
    bGlobalbool0
    bNLSbool0
    +

  • +
  • writePathEntry (pKey, path, bPersistent = 1, bGlobal = 0, bNLS = 0) +
    +
    returns nothing
    + + + + + +
    ArgumentTypeDefault
    pKeychar
    pathQString
    bPersistentbool1
    bGlobalbool0
    bNLSbool0
    +

  • +
  • writePathEntry (pKey, rValue, sep = ',', bPersistent = 1, bGlobal = 0, bNLS = 0) +
    + +
    returns nothing
    In versions KDE 3.1.3 and above only
    + + + + + + +
    ArgumentTypeDefault
    pKeyQString
    rValueQStringList
    sepchar','
    bPersistentbool1
    bGlobalbool0
    bNLSbool0
    +

  • +
  • writePathEntry (pKey, rValue, sep = ',', bPersistent = 1, bGlobal = 0, bNLS = 0) +
    + +
    returns nothing
    In versions KDE 3.1.3 and above only
    + + + + + + +
    ArgumentTypeDefault
    pKeychar
    rValueQStringList
    sepchar','
    bPersistentbool1
    bGlobalbool0
    bNLSbool0
    +

  • +
+ + + diff --git a/doc/classref/kdecore/KConfigDialogManager.html b/doc/classref/kdecore/KConfigDialogManager.html new file mode 100644 index 0000000..2e6ffa9 --- /dev/null +++ b/doc/classref/kdecore/KConfigDialogManager.html @@ -0,0 +1,130 @@ + + + + + class KConfigDialogManager + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KConfigDialogManager


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKConfigDialogManager
InheritsQObject
+

methods

    +
  • KConfigDialogManager (parent, conf, name = 0) +
    + +
    returns a KConfigDialogManager instance
    In versions KDE 3.2.0 and above only
    + + + +
    ArgumentTypeDefault
    parentQWidget
    confKConfigSkeleton
    namechar0
    +

  • +
  • addWidget (widget) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    widgetQWidget
    +

  • +
  • hasChanged () +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only

  • +
  • init (trackChanges) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    trackChangesbool
    +

  • +
  • isDefault () +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only

  • +
  • parseChildren (widget, trackChanges) +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    widgetQWidget
    trackChangesbool
    +

  • +
  • property (w) +
    + +
    returns (QVariant)
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    wQWidget
    +

  • +
  • setProperty (w, v) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    wQWidget
    vQVariant
    +

  • +
  • settingsChanged () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • settingsChanged (widget) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    widgetQWidget
    +

  • +
  • setupWidget (widget, item) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    widgetQWidget
    itemKConfigSkeletonItem
    +

  • +
  • updateSettings () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • updateWidgets () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • updateWidgetsDefault () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • widgetModified () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
+ + + diff --git a/doc/classref/kdecore/KConfigGroup.html b/doc/classref/kdecore/KConfigGroup.html new file mode 100644 index 0000000..ccb7a39 --- /dev/null +++ b/doc/classref/kdecore/KConfigGroup.html @@ -0,0 +1,95 @@ + + + + + class KConfigGroup + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KConfigGroup


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKConfigGroup
InheritsKConfigBase
+

methods

    +
  • KConfigGroup (master, group) +
    +
    returns a KConfigGroup instance
    + + +
    ArgumentTypeDefault
    masterKConfigBase
    groupQCString
    +

  • +
  • KConfigGroup (master, group) +
    +
    returns a KConfigGroup instance
    + + +
    ArgumentTypeDefault
    masterKConfigBase
    groupQString
    +

  • +
  • KConfigGroup (master, group) +
    +
    returns a KConfigGroup instance
    + + +
    ArgumentTypeDefault
    masterKConfigBase
    groupchar
    +

  • +
  • deleteGroup (bGlobal = 0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    bGlobalbool0
    +

  • +
  • groupIsImmutable () +
    + +
    returns (bool)
    In versions KDE 3.4.0 and above only

  • +
  • lookupData (_key) +
    +
    returns (KEntry)
    + +
    ArgumentTypeDefault
    _keyKEntryKey
    +

  • +
  • putData (_key, _data, _checkGroup = 1) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    _keyKEntryKey
    _dataKEntry
    _checkGroupbool1
    +

  • +
  • setDirty (b) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    bbool
    +

  • +
  • sync () +
    +
    returns nothing

  • +
+ + + diff --git a/doc/classref/kdecore/KConfigGroupSaver.html b/doc/classref/kdecore/KConfigGroupSaver.html new file mode 100644 index 0000000..c81da22 --- /dev/null +++ b/doc/classref/kdecore/KConfigGroupSaver.html @@ -0,0 +1,71 @@ + + + + + class KConfigGroupSaver + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KConfigGroupSaver


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKConfigGroupSaver
Inherits
+

methods

    +
  • KConfigGroupSaver (config, group) +
    +
    returns a KConfigGroupSaver instance
    + + +
    ArgumentTypeDefault
    configKConfigBase
    groupQString
    +

  • +
  • KConfigGroupSaver (config, group) +
    +
    returns a KConfigGroupSaver instance
    + + +
    ArgumentTypeDefault
    configKConfigBase
    groupchar
    +

  • +
  • KConfigGroupSaver (config, group) +
    +
    returns a KConfigGroupSaver instance
    + + +
    ArgumentTypeDefault
    configKConfigBase
    groupQCString
    +

  • +
  • KConfigGroupSaver (a0) +
    +
    returns a KConfigGroupSaver instance
    + +
    ArgumentTypeDefault
    a0KConfigGroupSaver
    +

  • +
  • config () +
    +
    returns (KConfigBase)

  • +
+ + + diff --git a/doc/classref/kdecore/KConfigINIBackEnd.html b/doc/classref/kdecore/KConfigINIBackEnd.html new file mode 100644 index 0000000..7fc07f4 --- /dev/null +++ b/doc/classref/kdecore/KConfigINIBackEnd.html @@ -0,0 +1,88 @@ + + + + + class KConfigINIBackEnd + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KConfigINIBackEnd


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKConfigINIBackEnd
InheritsKConfigBackEnd
+

methods

    +
  • KConfigINIBackEnd (_config, _fileName, _resType, _useKDEGlobals = 1) +
    +
    returns a KConfigINIBackEnd instance
    + + + + +
    ArgumentTypeDefault
    _configKConfigBase
    _fileNameQString
    _resTypechar
    _useKDEGlobalsbool1
    +

  • +
  • getEntryMap (map, bGlobal, mergeFile) +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    + + + +
    ArgumentTypeDefault
    mapKEntryMap
    bGlobalbool
    mergeFileQFile
    +

  • +
  • parseConfigFiles () +
    +
    returns (bool)

  • +
  • parseSingleConfigFile (rFile, pWriteBackMap = 0, bGlobal = 0, bDefault = 0) +
    +
    returns nothing
    + + + + +
    ArgumentTypeDefault
    rFileQFile
    pWriteBackMapKEntryMap0
    bGlobalbool0
    bDefaultbool0
    +

  • +
  • sync (bMerge = 1) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    bMergebool1
    +

  • +
  • writeConfigFile (filename, bGlobal = 0, bMerge = 1) +
    +
    returns (bool)
    + + + +
    ArgumentTypeDefault
    filenameQString
    bGlobalbool0
    bMergebool1
    +

  • +
  • writeEntries (pStream, aTempMap) +
    Not Implemented
    +

  • +
+ + + diff --git a/doc/classref/kdecore/KConfigSkeleton.ItemBool.html b/doc/classref/kdecore/KConfigSkeleton.ItemBool.html new file mode 100644 index 0000000..955538d --- /dev/null +++ b/doc/classref/kdecore/KConfigSkeleton.ItemBool.html @@ -0,0 +1,96 @@ + + + + + class KConfigSkeleton.ItemBool + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KConfigSkeleton.ItemBool


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKConfigSkeleton.ItemBool
InheritsKConfigSkeletonItem
+

methods

    +
  • ItemBool (group, key, reference, defaultValue = 1) +
    + +
    returns a ItemBool instance
    In versions KDE 3.2.0 and above only
    + + + + +
    ArgumentTypeDefault
    groupQString
    keyQString
    referencebool
    defaultValuebool1
    +

  • +
  • property () +
    + +
    returns (QVariant)
    In versions KDE 3.2.0 and above only

  • +
  • readConfig (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0KConfig
    +

  • +
  • setDefault () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • setDefaultValue () +
    + +
    returns a0 (bool)
    In versions KDE 3.2.0 and above only

  • +
  • setProperty (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0QVariant
    +

  • +
  • setValue () +
    + +
    returns a0 (bool)
    In versions KDE 3.2.0 and above only

  • +
  • swapDefault () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • value () +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only

  • +
  • writeConfig (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0KConfig
    +

  • +
+ + + diff --git a/doc/classref/kdecore/KConfigSkeleton.ItemColor.html b/doc/classref/kdecore/KConfigSkeleton.ItemColor.html new file mode 100644 index 0000000..bc798cd --- /dev/null +++ b/doc/classref/kdecore/KConfigSkeleton.ItemColor.html @@ -0,0 +1,102 @@ + + + + + class KConfigSkeleton.ItemColor + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KConfigSkeleton.ItemColor


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKConfigSkeleton.ItemColor
InheritsKConfigSkeletonItem
+

methods

    +
  • ItemColor (a0, a1, a2, a3 = QColor (128 ,128 ,128 )) +
    + +
    returns a ItemColor instance
    In versions KDE 3.2.0 and above only
    + + + + +
    ArgumentTypeDefault
    a0QString
    a1QString
    a2QColor
    a3QColorQColor (128 ,128 ,128 )
    +

  • +
  • property () +
    + +
    returns (QVariant)
    In versions KDE 3.2.0 and above only

  • +
  • readConfig (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0KConfig
    +

  • +
  • setDefault () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • setDefaultValue (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0QColor
    +

  • +
  • setProperty (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0QVariant
    +

  • +
  • setValue (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0QColor
    +

  • +
  • swapDefault () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • value () +
    + +
    returns (QColor)
    In versions KDE 3.2.0 and above only

  • +
  • writeConfig (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0KConfig
    +

  • +
+ + + diff --git a/doc/classref/kdecore/KConfigSkeleton.ItemDateTime.html b/doc/classref/kdecore/KConfigSkeleton.ItemDateTime.html new file mode 100644 index 0000000..c204183 --- /dev/null +++ b/doc/classref/kdecore/KConfigSkeleton.ItemDateTime.html @@ -0,0 +1,102 @@ + + + + + class KConfigSkeleton.ItemDateTime + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KConfigSkeleton.ItemDateTime


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKConfigSkeleton.ItemDateTime
InheritsKConfigSkeletonItem
+

methods

    +
  • ItemDateTime (a0, a1, a2, a3 = QDateTime ()) +
    + +
    returns a ItemDateTime instance
    In versions KDE 3.2.0 and above only
    + + + + +
    ArgumentTypeDefault
    a0QString
    a1QString
    a2QDateTime
    a3QDateTimeQDateTime ()
    +

  • +
  • property () +
    + +
    returns (QVariant)
    In versions KDE 3.2.0 and above only

  • +
  • readConfig (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0KConfig
    +

  • +
  • setDefault () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • setDefaultValue (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0QDateTime
    +

  • +
  • setProperty (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0QVariant
    +

  • +
  • setValue (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0QDateTime
    +

  • +
  • swapDefault () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • value () +
    + +
    returns (QDateTime)
    In versions KDE 3.2.0 and above only

  • +
  • writeConfig (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0KConfig
    +

  • +
+ + + diff --git a/doc/classref/kdecore/KConfigSkeleton.ItemDouble.html b/doc/classref/kdecore/KConfigSkeleton.ItemDouble.html new file mode 100644 index 0000000..a1ecad1 --- /dev/null +++ b/doc/classref/kdecore/KConfigSkeleton.ItemDouble.html @@ -0,0 +1,118 @@ + + + + + class KConfigSkeleton.ItemDouble + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KConfigSkeleton.ItemDouble


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKConfigSkeleton.ItemDouble
InheritsKConfigSkeletonItem
+

methods

    +
  • ItemDouble (group, key, reference, defaultValue = 0) +
    + +
    returns a ItemDouble instance
    In versions KDE 3.2.0 and above only
    + + + + +
    ArgumentTypeDefault
    groupQString
    keyQString
    referencedouble
    defaultValuedouble0
    +

  • +
  • maxValue () +
    + +
    returns (QVariant)
    In versions KDE 3.2.0 and above only

  • +
  • minValue () +
    + +
    returns (QVariant)
    In versions KDE 3.2.0 and above only

  • +
  • property () +
    + +
    returns (QVariant)
    In versions KDE 3.2.0 and above only

  • +
  • readConfig (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0KConfig
    +

  • +
  • setDefault () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • setDefaultValue () +
    + +
    returns a0 (double)
    In versions KDE 3.2.0 and above only

  • +
  • setMaxValue (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0double
    +

  • +
  • setMinValue (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0double
    +

  • +
  • setProperty (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0QVariant
    +

  • +
  • setValue () +
    + +
    returns a0 (double)
    In versions KDE 3.2.0 and above only

  • +
  • swapDefault () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • value () +
    + +
    returns (double)
    In versions KDE 3.2.0 and above only

  • +
  • writeConfig (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0KConfig
    +

  • +
+ + + diff --git a/doc/classref/kdecore/KConfigSkeleton.ItemEnum.Choice.html b/doc/classref/kdecore/KConfigSkeleton.ItemEnum.Choice.html new file mode 100644 index 0000000..532cd64 --- /dev/null +++ b/doc/classref/kdecore/KConfigSkeleton.ItemEnum.Choice.html @@ -0,0 +1,45 @@ + + + + + class KConfigSkeleton.ItemEnum.Choice + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KConfigSkeleton.ItemEnum.Choice


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKConfigSkeleton.ItemEnum.Choice
Inherits
+

variables

  • +variables + + + +
    VariableType
    labelQString
    nameQString
    whatsThisQString
+ + + diff --git a/doc/classref/kdecore/KConfigSkeleton.ItemEnum.html b/doc/classref/kdecore/KConfigSkeleton.ItemEnum.html new file mode 100644 index 0000000..c4ac0e0 --- /dev/null +++ b/doc/classref/kdecore/KConfigSkeleton.ItemEnum.html @@ -0,0 +1,90 @@ + + + + + class KConfigSkeleton.ItemEnum + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KConfigSkeleton.ItemEnum


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKConfigSkeleton.ItemEnum
InheritsKConfigSkeleton.ItemInt
+

methods

    +
  • ItemEnum (group, key, reference, choices, defaultValue = 1) +
    + +
    returns a ItemEnum instance
    In versions KDE 3.2.0 and above only
    + + + + + +
    ArgumentTypeDefault
    groupQString
    keyQString
    referenceint
    choicesQValueList
    defaultValueint1
    +

  • +
  • choices () +
    + +
    returns (QValueList)
    In versions KDE 3.2.0 and above only

  • +
  • readConfig (config) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    configKConfig
    +

  • +
  • setDefault () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • setDefaultValue () +
    + +
    returns a0 (int)
    In versions KDE 3.2.0 and above only

  • +
  • setValue () +
    + +
    returns a0 (int)
    In versions KDE 3.2.0 and above only

  • +
  • swapDefault () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • value () +
    + +
    returns (int)
    In versions KDE 3.2.0 and above only

  • +
  • writeConfig (config) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    configKConfig
    +

  • +
+ + + diff --git a/doc/classref/kdecore/KConfigSkeleton.ItemFont.html b/doc/classref/kdecore/KConfigSkeleton.ItemFont.html new file mode 100644 index 0000000..f5b9c47 --- /dev/null +++ b/doc/classref/kdecore/KConfigSkeleton.ItemFont.html @@ -0,0 +1,102 @@ + + + + + class KConfigSkeleton.ItemFont + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KConfigSkeleton.ItemFont


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKConfigSkeleton.ItemFont
InheritsKConfigSkeletonItem
+

methods

    +
  • ItemFont (a0, a1, a2, a3 = KGlobalSettings .generalFont ()) +
    + +
    returns a ItemFont instance
    In versions KDE 3.2.0 and above only
    + + + + +
    ArgumentTypeDefault
    a0QString
    a1QString
    a2QFont
    a3QFontKGlobalSettings .generalFont ()
    +

  • +
  • property () +
    + +
    returns (QVariant)
    In versions KDE 3.2.0 and above only

  • +
  • readConfig (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0KConfig
    +

  • +
  • setDefault () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • setDefaultValue (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0QFont
    +

  • +
  • setProperty (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0QVariant
    +

  • +
  • setValue (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0QFont
    +

  • +
  • swapDefault () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • value () +
    + +
    returns (QFont)
    In versions KDE 3.2.0 and above only

  • +
  • writeConfig (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0KConfig
    +

  • +
+ + + diff --git a/doc/classref/kdecore/KConfigSkeleton.ItemInt.html b/doc/classref/kdecore/KConfigSkeleton.ItemInt.html new file mode 100644 index 0000000..894ab23 --- /dev/null +++ b/doc/classref/kdecore/KConfigSkeleton.ItemInt.html @@ -0,0 +1,118 @@ + + + + + class KConfigSkeleton.ItemInt + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KConfigSkeleton.ItemInt


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKConfigSkeleton.ItemInt
InheritsKConfigSkeletonItem
+

methods

    +
  • ItemInt (group, key, reference, defaultValue = 1) +
    + +
    returns a ItemInt instance
    In versions KDE 3.2.0 and above only
    + + + + +
    ArgumentTypeDefault
    groupQString
    keyQString
    referenceint
    defaultValueint1
    +

  • +
  • maxValue () +
    + +
    returns (QVariant)
    In versions KDE 3.2.0 and above only

  • +
  • minValue () +
    + +
    returns (QVariant)
    In versions KDE 3.2.0 and above only

  • +
  • property () +
    + +
    returns (QVariant)
    In versions KDE 3.2.0 and above only

  • +
  • readConfig (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0KConfig
    +

  • +
  • setDefault () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • setDefaultValue () +
    + +
    returns a0 (int)
    In versions KDE 3.2.0 and above only

  • +
  • setMaxValue (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • setMinValue (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • setProperty (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0QVariant
    +

  • +
  • setValue () +
    + +
    returns a0 (int)
    In versions KDE 3.2.0 and above only

  • +
  • swapDefault () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • value () +
    + +
    returns (int)
    In versions KDE 3.2.0 and above only

  • +
  • writeConfig (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0KConfig
    +

  • +
+ + + diff --git a/doc/classref/kdecore/KConfigSkeleton.ItemInt64.html b/doc/classref/kdecore/KConfigSkeleton.ItemInt64.html new file mode 100644 index 0000000..6631bcc --- /dev/null +++ b/doc/classref/kdecore/KConfigSkeleton.ItemInt64.html @@ -0,0 +1,124 @@ + + + + + class KConfigSkeleton.ItemInt64 + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KConfigSkeleton.ItemInt64


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKConfigSkeleton.ItemInt64
InheritsKConfigSkeletonItem
+

methods

    +
  • ItemInt64 (group, key, reference, defaultValue = 0) +
    + +
    returns a ItemInt64 instance
    In versions KDE 3.2.0 and above only
    + + + + +
    ArgumentTypeDefault
    groupQString
    keyQString
    referencelonglong
    defaultValuelonglong0
    +

  • +
  • maxValue () +
    + +
    returns (QVariant)
    In versions KDE 3.2.0 and above only

  • +
  • minValue () +
    + +
    returns (QVariant)
    In versions KDE 3.2.0 and above only

  • +
  • property () +
    + +
    returns (QVariant)
    In versions KDE 3.2.0 and above only

  • +
  • readConfig (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0KConfig
    +

  • +
  • setDefault () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • setDefaultValue (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0longlong
    +

  • +
  • setMaxValue (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0longlong
    +

  • +
  • setMinValue (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0longlong
    +

  • +
  • setProperty (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0QVariant
    +

  • +
  • setValue (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0longlong
    +

  • +
  • swapDefault () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • value () +
    + +
    returns (longlong)
    In versions KDE 3.2.0 and above only

  • +
  • writeConfig (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0KConfig
    +

  • +
+ + + diff --git a/doc/classref/kdecore/KConfigSkeleton.ItemIntList.html b/doc/classref/kdecore/KConfigSkeleton.ItemIntList.html new file mode 100644 index 0000000..efbf655 --- /dev/null +++ b/doc/classref/kdecore/KConfigSkeleton.ItemIntList.html @@ -0,0 +1,102 @@ + + + + + class KConfigSkeleton.ItemIntList + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KConfigSkeleton.ItemIntList


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKConfigSkeleton.ItemIntList
InheritsKConfigSkeletonItem
+

methods

    +
  • ItemIntList (group, key, reference, defaultValue = 0) +
    + +
    returns a ItemIntList instance
    In versions KDE 3.2.0 and above only
    + + + + +
    ArgumentTypeDefault
    groupQString
    keyQString
    referencea Python list of int
    defaultValuea Python list of int0
    +

  • +
  • property () +
    + +
    returns (QVariant)
    In versions KDE 3.2.0 and above only

  • +
  • readConfig (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0KConfig
    +

  • +
  • setDefault () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • setDefaultValue (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0QValueList
    +

  • +
  • setProperty (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0QVariant
    +

  • +
  • setValue (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0QValueList
    +

  • +
  • swapDefault () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • value () +
    + +
    returns (QValueList)
    In versions KDE 3.2.0 and above only

  • +
  • writeConfig (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0KConfig
    +

  • +
+ + + diff --git a/doc/classref/kdecore/KConfigSkeleton.ItemLong.html b/doc/classref/kdecore/KConfigSkeleton.ItemLong.html new file mode 100644 index 0000000..01b2b96 --- /dev/null +++ b/doc/classref/kdecore/KConfigSkeleton.ItemLong.html @@ -0,0 +1,118 @@ + + + + + class KConfigSkeleton.ItemLong + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KConfigSkeleton.ItemLong


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKConfigSkeleton.ItemLong
InheritsKConfigSkeletonItem
+

methods

    +
  • ItemLong (group, key, reference, defaultValue = 1) +
    + +
    returns a2 (long)
    In versions KDE 3.2.0 and above only
    + + + + +
    ArgumentTypeDefault
    groupQString
    keyQString
    referencelong
    defaultValuelong1
    +

  • +
  • maxValue () +
    + +
    returns (QVariant)
    In versions KDE 3.2.0 and above only

  • +
  • minValue () +
    + +
    returns (QVariant)
    In versions KDE 3.2.0 and above only

  • +
  • property () +
    + +
    returns (QVariant)
    In versions KDE 3.2.0 and above only

  • +
  • readConfig (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0KConfig
    +

  • +
  • setDefault () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • setDefaultValue () +
    + +
    returns a0 (long)
    In versions KDE 3.2.0 and above only

  • +
  • setMaxValue (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0long
    +

  • +
  • setMinValue (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0long
    +

  • +
  • setProperty (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0QVariant
    +

  • +
  • setValue () +
    + +
    returns a0 (long)
    In versions KDE 3.2.0 and above only

  • +
  • swapDefault () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • value () +
    + +
    returns (long)
    In versions KDE 3.2.0 and above only

  • +
  • writeConfig (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0KConfig
    +

  • +
+ + + diff --git a/doc/classref/kdecore/KConfigSkeleton.ItemPassword.html b/doc/classref/kdecore/KConfigSkeleton.ItemPassword.html new file mode 100644 index 0000000..b3d1988 --- /dev/null +++ b/doc/classref/kdecore/KConfigSkeleton.ItemPassword.html @@ -0,0 +1,51 @@ + + + + + class KConfigSkeleton.ItemPassword + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KConfigSkeleton.ItemPassword


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKConfigSkeleton.ItemPassword
InheritsKConfigSkeleton.ItemString
+

methods

    +
  • ItemPassword (group, key, reference, defaultValue = QString .fromLatin1 ("" )) +
    + +
    returns a ItemPassword instance
    In versions KDE 3.2.0 and above only
    + + + + +
    ArgumentTypeDefault
    groupQString
    keyQString
    referenceQString
    defaultValueQStringQString .fromLatin1 ("" )
    +

  • +
+ + + diff --git a/doc/classref/kdecore/KConfigSkeleton.ItemPath.html b/doc/classref/kdecore/KConfigSkeleton.ItemPath.html new file mode 100644 index 0000000..c9e23e7 --- /dev/null +++ b/doc/classref/kdecore/KConfigSkeleton.ItemPath.html @@ -0,0 +1,51 @@ + + + + + class KConfigSkeleton.ItemPath + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KConfigSkeleton.ItemPath


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKConfigSkeleton.ItemPath
InheritsKConfigSkeleton.ItemString
+

methods

    +
  • ItemPath (group, key, reference, defaultValue = QString .null) +
    + +
    returns a ItemPath instance
    In versions KDE 3.2.0 and above only
    + + + + +
    ArgumentTypeDefault
    groupQString
    keyQString
    referenceQString
    defaultValueQStringQString .null
    +

  • +
+ + + diff --git a/doc/classref/kdecore/KConfigSkeleton.ItemPathList.html b/doc/classref/kdecore/KConfigSkeleton.ItemPathList.html new file mode 100644 index 0000000..0562e0d --- /dev/null +++ b/doc/classref/kdecore/KConfigSkeleton.ItemPathList.html @@ -0,0 +1,65 @@ + + + + + class KConfigSkeleton.ItemPathList + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KConfigSkeleton.ItemPathList


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKConfigSkeleton.ItemPathList
InheritsKConfigSkeleton.ItemStringList
+

methods

    +
  • ItemPathList (group, key, reference, defaultValue = QStringList ()) +
    + +
    returns a ItemPathList instance
    In versions KDE 3.4.0 and above only
    + + + + +
    ArgumentTypeDefault
    groupQString
    keyQString
    referenceQStringList
    defaultValueQStringListQStringList ()
    +

  • +
  • readConfig (config) +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only
    + +
    ArgumentTypeDefault
    configKConfig
    +

  • +
  • writeConfig (config) +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only
    + +
    ArgumentTypeDefault
    configKConfig
    +

  • +
+ + + diff --git a/doc/classref/kdecore/KConfigSkeleton.ItemPoint.html b/doc/classref/kdecore/KConfigSkeleton.ItemPoint.html new file mode 100644 index 0000000..05943a4 --- /dev/null +++ b/doc/classref/kdecore/KConfigSkeleton.ItemPoint.html @@ -0,0 +1,102 @@ + + + + + class KConfigSkeleton.ItemPoint + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KConfigSkeleton.ItemPoint


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKConfigSkeleton.ItemPoint
InheritsKConfigSkeletonItem
+

methods

    +
  • ItemPoint (a0, a1, a2, a3 = QPoint ()) +
    + +
    returns a ItemPoint instance
    In versions KDE 3.2.0 and above only
    + + + + +
    ArgumentTypeDefault
    a0QString
    a1QString
    a2QPoint
    a3QPointQPoint ()
    +

  • +
  • property () +
    + +
    returns (QVariant)
    In versions KDE 3.2.0 and above only

  • +
  • readConfig (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0KConfig
    +

  • +
  • setDefault () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • setDefaultValue (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0QPoint
    +

  • +
  • setProperty (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0QVariant
    +

  • +
  • setValue (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0QPoint
    +

  • +
  • swapDefault () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • value () +
    + +
    returns (QPoint)
    In versions KDE 3.2.0 and above only

  • +
  • writeConfig (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0KConfig
    +

  • +
+ + + diff --git a/doc/classref/kdecore/KConfigSkeleton.ItemProperty.html b/doc/classref/kdecore/KConfigSkeleton.ItemProperty.html new file mode 100644 index 0000000..ab13a2e --- /dev/null +++ b/doc/classref/kdecore/KConfigSkeleton.ItemProperty.html @@ -0,0 +1,102 @@ + + + + + class KConfigSkeleton.ItemProperty + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KConfigSkeleton.ItemProperty


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKConfigSkeleton.ItemProperty
InheritsKConfigSkeletonItem
+

methods

    +
  • ItemProperty (group, key, reference, defaultValue = 0) +
    + +
    returns a ItemProperty instance
    In versions KDE 3.2.0 and above only
    + + + + +
    ArgumentTypeDefault
    groupQString
    keyQString
    referenceQVariant
    defaultValueQVariant0
    +

  • +
  • property () +
    + +
    returns (QVariant)
    In versions KDE 3.2.0 and above only

  • +
  • readConfig (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0KConfig
    +

  • +
  • setDefault () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • setDefaultValue (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0QVariant
    +

  • +
  • setProperty (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0QVariant
    +

  • +
  • setValue (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0QVariant
    +

  • +
  • swapDefault () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • value () +
    + +
    returns (QVariant)
    In versions KDE 3.2.0 and above only

  • +
  • writeConfig (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0KConfig
    +

  • +
+ + + diff --git a/doc/classref/kdecore/KConfigSkeleton.ItemRect.html b/doc/classref/kdecore/KConfigSkeleton.ItemRect.html new file mode 100644 index 0000000..3c1816d --- /dev/null +++ b/doc/classref/kdecore/KConfigSkeleton.ItemRect.html @@ -0,0 +1,102 @@ + + + + + class KConfigSkeleton.ItemRect + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KConfigSkeleton.ItemRect


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKConfigSkeleton.ItemRect
InheritsKConfigSkeletonItem
+

methods

    +
  • ItemRect (a0, a1, a2, a3 = QRect ()) +
    + +
    returns a ItemRect instance
    In versions KDE 3.2.0 and above only
    + + + + +
    ArgumentTypeDefault
    a0QString
    a1QString
    a2QRect
    a3QRectQRect ()
    +

  • +
  • property () +
    + +
    returns (QVariant)
    In versions KDE 3.2.0 and above only

  • +
  • readConfig (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0KConfig
    +

  • +
  • setDefault () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • setDefaultValue (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0QRect
    +

  • +
  • setProperty (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0QVariant
    +

  • +
  • setValue (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0QRect
    +

  • +
  • swapDefault () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • value () +
    + +
    returns (QRect)
    In versions KDE 3.2.0 and above only

  • +
  • writeConfig (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0KConfig
    +

  • +
+ + + diff --git a/doc/classref/kdecore/KConfigSkeleton.ItemSize.html b/doc/classref/kdecore/KConfigSkeleton.ItemSize.html new file mode 100644 index 0000000..d5ceb81 --- /dev/null +++ b/doc/classref/kdecore/KConfigSkeleton.ItemSize.html @@ -0,0 +1,102 @@ + + + + + class KConfigSkeleton.ItemSize + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KConfigSkeleton.ItemSize


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKConfigSkeleton.ItemSize
InheritsKConfigSkeletonItem
+

methods

    +
  • ItemSize (a0, a1, a2, a3 = QSize ()) +
    + +
    returns a ItemSize instance
    In versions KDE 3.2.0 and above only
    + + + + +
    ArgumentTypeDefault
    a0QString
    a1QString
    a2QSize
    a3QSizeQSize ()
    +

  • +
  • property () +
    + +
    returns (QVariant)
    In versions KDE 3.2.0 and above only

  • +
  • readConfig (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0KConfig
    +

  • +
  • setDefault () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • setDefaultValue (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0QSize
    +

  • +
  • setProperty (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0QVariant
    +

  • +
  • setValue (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0QSize
    +

  • +
  • swapDefault () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • value () +
    + +
    returns (QSize)
    In versions KDE 3.2.0 and above only

  • +
  • writeConfig (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0KConfig
    +

  • +
+ + + diff --git a/doc/classref/kdecore/KConfigSkeleton.ItemString.html b/doc/classref/kdecore/KConfigSkeleton.ItemString.html new file mode 100644 index 0000000..bec81fd --- /dev/null +++ b/doc/classref/kdecore/KConfigSkeleton.ItemString.html @@ -0,0 +1,106 @@ + + + + + class KConfigSkeleton.ItemString + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KConfigSkeleton.ItemString


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKConfigSkeleton.ItemString
InheritsKConfigSkeletonItem
+

enums

    +
  • Type = {Normal, Password, Path +}
+

methods

    +
  • ItemString (a0, a1, a2, a3 = QString .fromLatin1 ("" ), a4 = KConfigSkeleton .ItemString .Normal) +
    + +
    returns a ItemString instance
    In versions KDE 3.2.0 and above only
    + + + + + +
    ArgumentTypeDefault
    a0QString
    a1QString
    a2QString
    a3QStringQString .fromLatin1 ("" )
    a4KConfigSkeleton.ItemString.TypeKConfigSkeleton .ItemString .Normal
    +

  • +
  • property () +
    + +
    returns (QVariant)
    In versions KDE 3.2.0 and above only

  • +
  • readConfig (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0KConfig
    +

  • +
  • setDefault () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • setDefaultValue (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • setProperty (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0QVariant
    +

  • +
  • setValue (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • swapDefault () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • value () +
    + +
    returns (QString)
    In versions KDE 3.2.0 and above only

  • +
  • writeConfig (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0KConfig
    +

  • +
+ + + diff --git a/doc/classref/kdecore/KConfigSkeleton.ItemStringList.html b/doc/classref/kdecore/KConfigSkeleton.ItemStringList.html new file mode 100644 index 0000000..9a7a02b --- /dev/null +++ b/doc/classref/kdecore/KConfigSkeleton.ItemStringList.html @@ -0,0 +1,102 @@ + + + + + class KConfigSkeleton.ItemStringList + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KConfigSkeleton.ItemStringList


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKConfigSkeleton.ItemStringList
InheritsKConfigSkeletonItem
+

methods

    +
  • ItemStringList (a0, a1, a2, a3 = QStringList ()) +
    + +
    returns a ItemStringList instance
    In versions KDE 3.2.0 and above only
    + + + + +
    ArgumentTypeDefault
    a0QString
    a1QString
    a2QStringList
    a3QStringListQStringList ()
    +

  • +
  • property () +
    + +
    returns (QVariant)
    In versions KDE 3.2.0 and above only

  • +
  • readConfig (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0KConfig
    +

  • +
  • setDefault () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • setDefaultValue (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0QStringList
    +

  • +
  • setProperty (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0QVariant
    +

  • +
  • setValue (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0QStringList
    +

  • +
  • swapDefault () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • value () +
    + +
    returns (QStringList)
    In versions KDE 3.2.0 and above only

  • +
  • writeConfig (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0KConfig
    +

  • +
+ + + diff --git a/doc/classref/kdecore/KConfigSkeleton.ItemUInt.html b/doc/classref/kdecore/KConfigSkeleton.ItemUInt.html new file mode 100644 index 0000000..92fabe2 --- /dev/null +++ b/doc/classref/kdecore/KConfigSkeleton.ItemUInt.html @@ -0,0 +1,118 @@ + + + + + class KConfigSkeleton.ItemUInt + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KConfigSkeleton.ItemUInt


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKConfigSkeleton.ItemUInt
InheritsKConfigSkeletonItem
+

methods

    +
  • ItemUInt (group, key, reference, defaultValue = 1) +
    + +
    returns a ItemUInt instance
    In versions KDE 3.2.0 and above only
    + + + + +
    ArgumentTypeDefault
    groupQString
    keyQString
    referenceuint
    defaultValueuint1
    +

  • +
  • maxValue () +
    + +
    returns (QVariant)
    In versions KDE 3.2.0 and above only

  • +
  • minValue () +
    + +
    returns (QVariant)
    In versions KDE 3.2.0 and above only

  • +
  • property () +
    + +
    returns (QVariant)
    In versions KDE 3.2.0 and above only

  • +
  • readConfig (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0KConfig
    +

  • +
  • setDefault () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • setDefaultValue () +
    + +
    returns a0 (uint)
    In versions KDE 3.2.0 and above only

  • +
  • setMaxValue (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0uint
    +

  • +
  • setMinValue (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0uint
    +

  • +
  • setProperty (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0QVariant
    +

  • +
  • setValue () +
    + +
    returns a0 (uint)
    In versions KDE 3.2.0 and above only

  • +
  • swapDefault () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • value () +
    + +
    returns (uint)
    In versions KDE 3.2.0 and above only

  • +
  • writeConfig (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0KConfig
    +

  • +
+ + + diff --git a/doc/classref/kdecore/KConfigSkeleton.ItemUInt64.html b/doc/classref/kdecore/KConfigSkeleton.ItemUInt64.html new file mode 100644 index 0000000..7c97d96 --- /dev/null +++ b/doc/classref/kdecore/KConfigSkeleton.ItemUInt64.html @@ -0,0 +1,124 @@ + + + + + class KConfigSkeleton.ItemUInt64 + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KConfigSkeleton.ItemUInt64


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKConfigSkeleton.ItemUInt64
InheritsKConfigSkeletonItem
+

methods

    +
  • ItemUInt64 (group, key, reference, defaultValue = 0) +
    + +
    returns a ItemUInt64 instance
    In versions KDE 3.2.0 and above only
    + + + + +
    ArgumentTypeDefault
    groupQString
    keyQString
    referenceulonglong
    defaultValueulonglong0
    +

  • +
  • maxValue () +
    + +
    returns (QVariant)
    In versions KDE 3.2.0 and above only

  • +
  • minValue () +
    + +
    returns (QVariant)
    In versions KDE 3.2.0 and above only

  • +
  • property () +
    + +
    returns (QVariant)
    In versions KDE 3.2.0 and above only

  • +
  • readConfig (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0KConfig
    +

  • +
  • setDefault () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • setDefaultValue (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0ulonglong
    +

  • +
  • setMaxValue (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0ulonglong
    +

  • +
  • setMinValue (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0ulonglong
    +

  • +
  • setProperty (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0QVariant
    +

  • +
  • setValue (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0ulonglong
    +

  • +
  • swapDefault () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • value () +
    + +
    returns (ulonglong)
    In versions KDE 3.2.0 and above only

  • +
  • writeConfig (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0KConfig
    +

  • +
+ + + diff --git a/doc/classref/kdecore/KConfigSkeleton.ItemULong.html b/doc/classref/kdecore/KConfigSkeleton.ItemULong.html new file mode 100644 index 0000000..104cab2 --- /dev/null +++ b/doc/classref/kdecore/KConfigSkeleton.ItemULong.html @@ -0,0 +1,118 @@ + + + + + class KConfigSkeleton.ItemULong + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KConfigSkeleton.ItemULong


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKConfigSkeleton.ItemULong
InheritsKConfigSkeletonItem
+

methods

    +
  • ItemULong (group, key, reference, defaultValue = 1) +
    + +
    returns a ItemULong instance
    In versions KDE 3.2.0 and above only
    + + + + +
    ArgumentTypeDefault
    groupQString
    keyQString
    referenceulong
    defaultValueulong1
    +

  • +
  • maxValue () +
    + +
    returns (QVariant)
    In versions KDE 3.2.0 and above only

  • +
  • minValue () +
    + +
    returns (QVariant)
    In versions KDE 3.2.0 and above only

  • +
  • property () +
    + +
    returns (QVariant)
    In versions KDE 3.2.0 and above only

  • +
  • readConfig (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0KConfig
    +

  • +
  • setDefault () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • setDefaultValue () +
    + +
    returns a0 (ulong)
    In versions KDE 3.2.0 and above only

  • +
  • setMaxValue (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0ulong
    +

  • +
  • setMinValue (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0ulong
    +

  • +
  • setProperty (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0QVariant
    +

  • +
  • setValue () +
    + +
    returns a0 (ulong)
    In versions KDE 3.2.0 and above only

  • +
  • swapDefault () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • value () +
    + +
    returns (ulong)
    In versions KDE 3.2.0 and above only

  • +
  • writeConfig (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0KConfig
    +

  • +
+ + + diff --git a/doc/classref/kdecore/KConfigSkeleton.html b/doc/classref/kdecore/KConfigSkeleton.html new file mode 100644 index 0000000..05a7355 --- /dev/null +++ b/doc/classref/kdecore/KConfigSkeleton.html @@ -0,0 +1,334 @@ + + + + + class KConfigSkeleton + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KConfigSkeleton


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKConfigSkeleton
Inherits
+

methods

    +
  • KConfigSkeleton (configname = QString .null) +
    + +
    returns a KConfigSkeleton instance
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    confignameQStringQString .null
    +

  • +
  • KConfigSkeleton (config) +
    + +
    returns a KConfigSkeleton instance
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    configKSharedConfig.Ptr
    +

  • +
  • addItem (a0, name = QString .null) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    a0KConfigSkeletonItem
    nameQStringQString .null
    +

  • +
  • addItemBool (name, value, defaultValue, key = QString.null) +
    + +
    returns (ItemBool) reference (bool)
    In versions KDE 3.2.0 and above only
    + + + + +
    ArgumentTypeDefault
    nameQString
    valuebool
    defaultValuebool
    keyQStringQString.null
    +

  • +
  • addItemColor (name, reference, defaultValue = QColor (128 ,128 ,128 ), key = QString .null) +
    + +
    returns (ItemColor)
    In versions KDE 3.2.0 and above only
    + + + + +
    ArgumentTypeDefault
    nameQString
    referenceQColor
    defaultValueQColorQColor (128 ,128 ,128 )
    keyQStringQString .null
    +

  • +
  • addItemDateTime (name, reference, defaultValue = QDateTime (), key = QString .null) +
    + +
    returns (ItemDateTime)
    In versions KDE 3.2.0 and above only
    + + + + +
    ArgumentTypeDefault
    nameQString
    referenceQDateTime
    defaultValueQDateTimeQDateTime ()
    keyQStringQString .null
    +

  • +
  • addItemDouble (name, value, defaultValue, key = QString.null) +
    + +
    returns (ItemDouble) reference (double)
    In versions KDE 3.2.0 and above only
    + + + + +
    ArgumentTypeDefault
    nameQString
    valuedouble
    defaultValuedouble
    keyQStringQString.null
    +

  • +
  • addItemFont (name, reference, defaultValue = KGlobalSettings .generalFont (), key = QString .null) +
    + +
    returns (ItemFont)
    In versions KDE 3.2.0 and above only
    + + + + +
    ArgumentTypeDefault
    nameQString
    referenceQFont
    defaultValueQFontKGlobalSettings .generalFont ()
    keyQStringQString .null
    +

  • +
  • addItemInt (name, value, defaultValue, key = QString.null) +
    + +
    returns (ItemInt) reference (int)
    In versions KDE 3.2.0 and above only
    + + + + +
    ArgumentTypeDefault
    nameQString
    valueint
    defaultValueint
    keyQStringQString.null
    +

  • +
  • addItemInt64 (name, reference, defaultValue = 0, key = QString .null) +
    + +
    returns (KConfigSkeleton.ItemInt64)
    In versions KDE 3.2.0 and above only
    + + + + +
    ArgumentTypeDefault
    nameQString
    referencelonglong
    defaultValuelonglong0
    keyQStringQString .null
    +

  • +
  • addItemIntList (name, reference, defaultValue = [], key = QString.null) +
    + +
    returns a Python list of int,
    In versions KDE 3.2.0 and above only
    + + + + +
    ArgumentTypeDefault
    nameQString
    referencea Python list of int
    defaultValuea Python list of int[]
    keyQStringQString.null
    +

  • +
  • addItemLong (name, value, defaultValue, key = QString.null) +
    + +
    returns (ItemLong) reference (long)
    In versions KDE 3.2.0 and above only
    + + + + +
    ArgumentTypeDefault
    nameQString
    valuelong
    defaultValuelong
    keyQStringQString.null
    +

  • +
  • addItemPassword (name, reference, defaultValue = QString .fromLatin1 ("" ), key = QString .null) +
    + +
    returns (KConfigSkeleton.ItemPassword)
    In versions KDE 3.2.0 and above only
    + + + + +
    ArgumentTypeDefault
    nameQString
    referenceQString
    defaultValueQStringQString .fromLatin1 ("" )
    keyQStringQString .null
    +

  • +
  • addItemPath (name, reference, defaultValue = QString .fromLatin1 ("" ), key = QString .null) +
    + +
    returns (KConfigSkeleton.ItemPath)
    In versions KDE 3.2.0 and above only
    + + + + +
    ArgumentTypeDefault
    nameQString
    referenceQString
    defaultValueQStringQString .fromLatin1 ("" )
    keyQStringQString .null
    +

  • +
  • addItemPoint (name, reference, defaultValue = QPoint (), key = QString .null) +
    + +
    returns (ItemPoint)
    In versions KDE 3.2.0 and above only
    + + + + +
    ArgumentTypeDefault
    nameQString
    referenceQPoint
    defaultValueQPointQPoint ()
    keyQStringQString .null
    +

  • +
  • addItemProperty (name, reference, defaultValue = QVariant (), key = QString .null) +
    + +
    returns (ItemProperty)
    In versions KDE 3.2.0 and above only
    + + + + +
    ArgumentTypeDefault
    nameQString
    referenceQVariant
    defaultValueQVariantQVariant ()
    keyQStringQString .null
    +

  • +
  • addItemRect (name, reference, defaultValue = QRect (), key = QString .null) +
    + +
    returns (ItemRect)
    In versions KDE 3.2.0 and above only
    + + + + +
    ArgumentTypeDefault
    nameQString
    referenceQRect
    defaultValueQRectQRect ()
    keyQStringQString .null
    +

  • +
  • addItemSize (name, reference, defaultValue = QSize (), key = QString .null) +
    + +
    returns (ItemSize)
    In versions KDE 3.2.0 and above only
    + + + + +
    ArgumentTypeDefault
    nameQString
    referenceQSize
    defaultValueQSizeQSize ()
    keyQStringQString .null
    +

  • +
  • addItemString (name, reference, defaultValue = QString .fromLatin1 ("" ), key = QString .null) +
    + +
    returns (ItemString)
    In versions KDE 3.2.0 and above only
    + + + + +
    ArgumentTypeDefault
    nameQString
    referenceQString
    defaultValueQStringQString .fromLatin1 ("" )
    keyQStringQString .null
    +

  • +
  • addItemStringList (name, reference, defaultValue = QStringList (), key = QString .null) +
    + +
    returns (KConfigSkeleton.ItemStringList)
    In versions KDE 3.2.0 and above only
    + + + + +
    ArgumentTypeDefault
    nameQString
    referenceQStringList
    defaultValueQStringListQStringList ()
    keyQStringQString .null
    +

  • +
  • addItemUInt (name, value, defaultValue, key = QString.null) +
    + +
    returns (ItemUInt) reference (uint)
    In versions KDE 3.2.0 and above only
    + + + + +
    ArgumentTypeDefault
    nameQString
    valueuint
    defaultValueuint
    keyQStringQString.null
    +

  • +
  • addItemUInt64 (name, reference, defaultValue = 0, key = QString .null) +
    + +
    returns (KConfigSkeleton.ItemUInt64)
    In versions KDE 3.2.0 and above only
    + + + + +
    ArgumentTypeDefault
    nameQString
    referenceulonglong
    defaultValueulonglong0
    keyQStringQString .null
    +

  • +
  • addItemULong (name, value, defaultValue, key = QString.null) +
    + +
    returns (ItemULong) reference (ulong)
    In versions KDE 3.2.0 and above only
    + + + + +
    ArgumentTypeDefault
    nameQString
    valueulong
    defaultValueulong
    keyQStringQString.null
    +

  • +
  • config () +
    + +
    returns (KConfig)
    In versions KDE 3.2.0 and above only

  • +
  • currentGroup () +
    + +
    returns (QString)
    In versions KDE 3.2.0 and above only

  • +
  • findItem (name) +
    + +
    returns (KConfigSkeletonItem)
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    nameQString
    +

  • +
  • isImmutable (name) +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    nameQString
    +

  • +
  • items () +
    + +
    returns (a Python list of Items),
    In versions KDE 3.2.0 and above only

  • +
  • readConfig () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • setCurrentGroup (group) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    groupQString
    +

  • +
  • setDefaults () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • useDefaults (b) +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    bbool
    +

  • +
  • usrReadConfig () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • usrSetDefaults () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • usrUseDefaults (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • usrWriteConfig () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • writeConfig () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
+ + + diff --git a/doc/classref/kdecore/KConfigSkeletonItem.html b/doc/classref/kdecore/KConfigSkeletonItem.html new file mode 100644 index 0000000..9aaf1d7 --- /dev/null +++ b/doc/classref/kdecore/KConfigSkeletonItem.html @@ -0,0 +1,170 @@ + + + + + class KConfigSkeletonItem + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KConfigSkeletonItem


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKConfigSkeletonItem (abstract)
Inherits
+

methods

    +
  • KConfigSkeletonItem (group, key) +
    + +
    returns a KConfigSkeletonItem instance
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    groupQString
    keyQString
    +

  • +
  • group () +
    + +
    returns (QString)
    In versions KDE 3.2.0 and above only

  • +
  • isImmutable () +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only

  • +
  • key () +
    + +
    returns (QString)
    In versions KDE 3.2.0 and above only

  • +
  • label () +
    + +
    returns (QString)
    In versions KDE 3.2.0 and above only

  • +
  • maxValue () +
    + +
    returns (QVariant)
    In versions KDE 3.2.0 and above only

  • +
  • minValue () +
    + +
    returns (QVariant)
    In versions KDE 3.2.0 and above only

  • +
  • name () +
    + +
    returns (QString)
    In versions KDE 3.2.0 and above only

  • +
  • property () = 0 +
    + + +
    returns (QVariant)
    In versions KDE 3.2.0 and above only
    pure virtual

  • +
  • readConfig (a0) = 0 +
    + + +
    returns nothing
    In versions KDE 3.2.0 and above only
    pure virtual
    + +
    ArgumentTypeDefault
    a0KConfig
    +

  • +
  • readDefault (a0) = 0 +
    + + +
    returns nothing
    In versions KDE 3.2.0 and above only
    pure virtual
    + +
    ArgumentTypeDefault
    a0KConfig
    +

  • +
  • readImmutability (config) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    configKConfig
    +

  • +
  • setDefault () = 0 +
    + + +
    returns nothing
    In versions KDE 3.2.0 and above only
    pure virtual

  • +
  • setGroup (group) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    groupQString
    +

  • +
  • setKey (key) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    keyQString
    +

  • +
  • setLabel (l) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    lQString
    +

  • +
  • setName (name) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    nameQString
    +

  • +
  • setProperty (p) = 0 +
    + + +
    returns nothing
    In versions KDE 3.2.0 and above only
    pure virtual
    + +
    ArgumentTypeDefault
    pQVariant
    +

  • +
  • setWhatsThis (w) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    wQString
    +

  • +
  • swapDefault () = 0 +
    + + +
    returns nothing
    In versions KDE 3.2.0 and above only
    pure virtual

  • +
  • whatsThis () +
    + +
    returns (QString)
    In versions KDE 3.2.0 and above only

  • +
  • writeConfig (a0) = 0 +
    + + +
    returns nothing
    In versions KDE 3.2.0 and above only
    pure virtual
    + +
    ArgumentTypeDefault
    a0KConfig
    +

  • +
+ + + diff --git a/doc/classref/kdecore/KCrash.html b/doc/classref/kdecore/KCrash.html new file mode 100644 index 0000000..89a4462 --- /dev/null +++ b/doc/classref/kdecore/KCrash.html @@ -0,0 +1,82 @@ + + + + + class KCrash + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KCrash


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKCrash
Inherits
+

methods

    +
  • crashHandler () +
    Not Implemented
    +

  • +
  • defaultCrashHandler (signal) +
    + +
    returns nothing
    static
    + +
    ArgumentTypeDefault
    signalint
    +

  • +
  • emergencySaveFunction () +
    Not Implemented
    +

  • +
  • setApplicationName (name) +
    + +
    returns nothing
    static
    + +
    ArgumentTypeDefault
    nameQString
    +

  • +
  • setApplicationPath (path) +
    + +
    returns nothing
    static
    + +
    ArgumentTypeDefault
    pathQString
    +

  • +
  • setCrashHandler (handler = defaultCrashHandler) +
    Not Implemented
    +

  • +
  • setEmergencySaveFunction (saveFunction = 0) +
    Not Implemented
    +

  • +
  • setSafer (on) +
    + + +
    returns nothing
    In versions KDE 3.2.0 and above only
    static
    + +
    ArgumentTypeDefault
    onbool
    +

  • +
+ + + diff --git a/doc/classref/kdecore/KDCOPPropertyProxy.html b/doc/classref/kdecore/KDCOPPropertyProxy.html new file mode 100644 index 0000000..a454772 --- /dev/null +++ b/doc/classref/kdecore/KDCOPPropertyProxy.html @@ -0,0 +1,91 @@ + + + + + class KDCOPPropertyProxy + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KDCOPPropertyProxy


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKDCOPPropertyProxy
Inherits
+

methods

    +
  • KDCOPPropertyProxy (object) +
    +
    returns a KDCOPPropertyProxy instance
    + +
    ArgumentTypeDefault
    objectQObject
    +

  • +
  • functions () +
    +
    returns (QValueList)

  • +
  • functions (object) +
    + +
    returns (QValueList)
    static
    + +
    ArgumentTypeDefault
    objectQObject
    +

  • +
  • isPropertyRequest (fun) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    funQCString
    +

  • +
  • isPropertyRequest (fun, object) +
    + +
    returns (bool)
    static
    + + +
    ArgumentTypeDefault
    funQCString
    objectQObject
    +

  • +
  • processPropertyRequest (fun, data, replyType, replyData) +
    +
    returns (bool)
    + + + + +
    ArgumentTypeDefault
    funQCString
    dataQByteArray
    replyTypeQCString
    replyDataQByteArray
    +

  • +
  • processPropertyRequest (fun, data, replyType, replyData, object) +
    + +
    returns (bool)
    static
    + + + + + +
    ArgumentTypeDefault
    funQCString
    dataQByteArray
    replyTypeQCString
    replyDataQByteArray
    objectQObject
    +

  • +
+ + + diff --git a/doc/classref/kdecore/KDE.html b/doc/classref/kdecore/KDE.html new file mode 100644 index 0000000..8c11f7c --- /dev/null +++ b/doc/classref/kdecore/KDE.html @@ -0,0 +1,61 @@ + + + + + class KDE + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KDE


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKDE
Inherits
+

methods

    +
  • version () +
    + +
    returns (uint)
    In versions KDE 3.2.0 and above only

  • +
  • versionMajor () +
    + +
    returns (uint)
    In versions KDE 3.1.4 and above only

  • +
  • versionMinor () +
    + +
    returns (uint)
    In versions KDE 3.1.4 and above only

  • +
  • versionRelease () +
    + +
    returns (uint)
    In versions KDE 3.1.4 and above only

  • +
  • versionString () +
    + +
    returns (char)
    In versions KDE 3.1.4 and above only

  • +
+ + + diff --git a/doc/classref/kdecore/KDesktopFile.html b/doc/classref/kdecore/KDesktopFile.html new file mode 100644 index 0000000..333a061 --- /dev/null +++ b/doc/classref/kdecore/KDesktopFile.html @@ -0,0 +1,155 @@ + + + + + class KDesktopFile + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KDesktopFile


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKDesktopFile
InheritsKConfig
+

methods

    +
  • KDesktopFile (fileName, readOnly = 0, resType = "apps") +
    +
    returns a KDesktopFile instance
    + + + +
    ArgumentTypeDefault
    fileNameQString
    readOnlybool0
    resTypechar"apps"
    +

  • +
  • KDesktopFile (a0) +
    +
    returns a KDesktopFile instance
    + +
    ArgumentTypeDefault
    a0KDesktopFile
    +

  • +
  • copyTo (file) +
    + +
    returns (KDesktopFile)
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    fileQString
    +

  • +
  • fileName () +
    +
    returns (QString)

  • +
  • filename () +
    +
    returns (QString)

  • +
  • hasActionGroup (group) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    groupQString
    +

  • +
  • hasApplicationType () +
    +
    returns (bool)

  • +
  • hasDeviceType () +
    +
    returns (bool)

  • +
  • hasLinkType () +
    +
    returns (bool)

  • +
  • hasMimeTypeType () +
    +
    returns (bool)

  • +
  • isAuthorizedDesktopFile (path) +
    + + +
    returns (bool)
    In versions KDE 3.1.0 and above only
    static
    + +
    ArgumentTypeDefault
    pathQString
    +

  • +
  • isDesktopFile (path) +
    + +
    returns (bool)
    static
    + +
    ArgumentTypeDefault
    pathQString
    +

  • +
  • locateLocal (path) +
    + + +
    returns (QString)
    In versions KDE 3.2.0 and above only
    static
    + +
    ArgumentTypeDefault
    pathQString
    +

  • +
  • readActions () +
    +
    returns (QStringList)

  • +
  • readComment () +
    +
    returns (QString)

  • +
  • readDevice () +
    +
    returns (QString)

  • +
  • readDocPath () +
    + +
    returns (QString)
    In versions KDE 3.1.0 and above only

  • +
  • readGenericName () +
    +
    returns (QString)

  • +
  • readIcon () +
    +
    returns (QString)

  • +
  • readName () +
    +
    returns (QString)

  • +
  • readPath () +
    +
    returns (QString)

  • +
  • readType () +
    +
    returns (QString)

  • +
  • readURL () +
    +
    returns (QString)

  • +
  • resource () +
    +
    returns (QString)

  • +
  • setActionGroup (group) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    groupQString
    +

  • +
  • sortOrder () +
    +
    returns (QStringList)

  • +
  • tryExec () +
    +
    returns (bool)

  • +
+ + + diff --git a/doc/classref/kdecore/KEntry.html b/doc/classref/kdecore/KEntry.html new file mode 100644 index 0000000..ed0cf8a --- /dev/null +++ b/doc/classref/kdecore/KEntry.html @@ -0,0 +1,54 @@ + + + + + class KEntry + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KEntry


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKEntry
Inherits
+

methods

    +
  • KEntry () +
    +
    returns a KEntry instance

  • +
+

variables

  • +variables + + + + + + + +
    VariableType
    bDeletedbool
    bDirtybool
    bExpandbool
    bGlobalbool
    bImmutablebool
    bNLSbool
    mValueQCString
+ + + diff --git a/doc/classref/kdecore/KEntryKey.html b/doc/classref/kdecore/KEntryKey.html new file mode 100644 index 0000000..58f7222 --- /dev/null +++ b/doc/classref/kdecore/KEntryKey.html @@ -0,0 +1,56 @@ + + + + + class KEntryKey + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KEntryKey


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKEntryKey
Inherits
+

methods

    +
  • KEntryKey (_group = QCString ("" ), _key = QCString ("" )) +
    +
    returns a KEntryKey instance
    + + +
    ArgumentTypeDefault
    _groupQCStringQCString ("" )
    _keyQCStringQCString ("" )
    +

  • +
+

variables

  • +variables + + + + + +
    VariableType
    bDefaultbool
    bLocalbool
    c_keychar*
    mGroupQCString
    mKeyQCString
+ + + diff --git a/doc/classref/kdecore/KGlobal.html b/doc/classref/kdecore/KGlobal.html new file mode 100644 index 0000000..a1c6145 --- /dev/null +++ b/doc/classref/kdecore/KGlobal.html @@ -0,0 +1,122 @@ + + + + + class KGlobal + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KGlobal


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKGlobal
Inherits
+

methods

    +
  • activeInstance () +
    + +
    returns (KInstance)
    static

  • +
  • charsets () +
    + +
    returns (KCharsets)
    static

  • +
  • config () +
    + +
    returns (KConfig)
    static

  • +
  • deleteStaticDeleters () +
    + +
    returns nothing
    static

  • +
  • dirs () +
    + +
    returns (KStandardDirs)
    static

  • +
  • iconLoader () +
    + +
    returns (KIconLoader)
    static

  • +
  • instance () +
    + +
    returns (KInstance)
    static

  • +
  • locale () +
    + +
    returns (KLocale)
    static

  • +
  • registerStaticDeleter (d) +
    + +
    returns nothing
    static
    + +
    ArgumentTypeDefault
    dKStaticDeleterBase
    +

  • +
  • setActiveInstance (d) +
    + +
    returns nothing
    static
    + +
    ArgumentTypeDefault
    dKInstance
    +

  • +
  • sharedConfig () +
    + + +
    returns (KSharedConfig)
    In versions KDE 3.2.0 and above only
    static

  • +
  • staticQString (str) +
    + +
    returns (QString)
    static
    + +
    ArgumentTypeDefault
    strchar
    +

  • +
  • staticQString (str) +
    + +
    returns (QString)
    static
    + +
    ArgumentTypeDefault
    strQString
    +

  • +
  • unregisterStaticDeleter (d) +
    + +
    returns nothing
    static
    + +
    ArgumentTypeDefault
    dKStaticDeleterBase
    +

  • +
+

variables

  • +variables + + + + + + +
    VariableType
    _activeInstanceKInstance*
    _charsetsKCharsets*
    _instanceKInstance*
    _localeKLocale*
    _staticDeletersKStaticDeleterList*
    _stringDictKStringDict*
+ + + diff --git a/doc/classref/kdecore/KGlobalAccel.html b/doc/classref/kdecore/KGlobalAccel.html new file mode 100644 index 0000000..1f8ca21 --- /dev/null +++ b/doc/classref/kdecore/KGlobalAccel.html @@ -0,0 +1,173 @@ + + + + + class KGlobalAccel + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KGlobalAccel


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKGlobalAccel
InheritsQObject
+

methods

    +
  • KGlobalAccel (pParent, psName = 0) +
    +
    returns a KGlobalAccel instance
    + + +
    ArgumentTypeDefault
    pParentQObject
    psNamechar0
    +

  • +
  • blockShortcuts (block) +
    + + +
    returns nothing
    In versions KDE 3.5.0 and above only
    static
    + +
    ArgumentTypeDefault
    blockbool
    +

  • +
  • configGroup () +
    +
    returns (QString)

  • +
  • disableBlocking (disable) +
    + +
    returns nothing
    In versions KDE 3.5.0 and above only
    + +
    ArgumentTypeDefault
    disablebool
    +

  • +
  • insert (sAction, sLabel, sWhatsThis, cutDef3, cutDef4, slot, bConfigurable = 1, bEnabled = 1) +
    +
    returns (KAccelAction)
    + + + + + + + + +
    ArgumentTypeDefault
    sActionQString
    sLabelQString
    sWhatsThisQString
    cutDef3KShortcut
    cutDef4KShortcut
    slotSLOT (Python callable)
    bConfigurablebool1
    bEnabledbool1
    +

  • +
  • insert (sName, sLabel) +
    +
    returns (KAccelAction)
    + + +
    ArgumentTypeDefault
    sNameQString
    sLabelQString
    +

  • +
  • isEnabled () +
    +
    returns (bool)

  • +
  • label (sAction) +
    + +
    returns (QString)
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    sActionQString
    +

  • +
  • readSettings (pConfig = 0) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    pConfigKConfigBase0
    +

  • +
  • remove (sAction) +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    sActionQString
    +

  • +
  • setActionEnabled (sAction, bEnable) +
    + +
    returns (bool)
    In versions KDE 3.4.0 and above only
    + + +
    ArgumentTypeDefault
    sActionQString
    bEnablebool
    +

  • +
  • setConfigGroup (cg) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    cgQString
    +

  • +
  • setEnabled (bEnabled) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    bEnabledbool
    +

  • +
  • setEnabled (a0, a1) +
    Not Implemented
    +

  • +
  • setShortcut (sAction, shortcut) +
    +
    returns (bool)
    + + +
    ArgumentTypeDefault
    sActionQString
    shortcutKShortcut
    +

  • +
  • setSlot (sAction, slot, ) +
    +
    returns (bool)
    + + +
    ArgumentTypeDefault
    sActionQString
    slotSLOT (Python callable)
    +

  • +
  • shortcut (sAction) +
    +
    returns (KShortcut)
    + +
    ArgumentTypeDefault
    sActionQString
    +

  • +
  • updateConnections () +
    +
    returns (bool)

  • +
  • useFourModifierKeys () +
    + +
    returns (bool)
    static

  • +
  • writeSettings (pConfig = 0) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    pConfigKConfigBase0
    +

  • +
  • writeSettings (pConfig, bGlobal) +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above only
    + + +
    ArgumentTypeDefault
    pConfigKConfigBase
    bGlobalbool
    +

  • +
+ + + diff --git a/doc/classref/kdecore/KGlobalSettings.KMouseSettings.html b/doc/classref/kdecore/KGlobalSettings.KMouseSettings.html new file mode 100644 index 0000000..9928940 --- /dev/null +++ b/doc/classref/kdecore/KGlobalSettings.KMouseSettings.html @@ -0,0 +1,46 @@ + + + + + class KGlobalSettings.KMouseSettings + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KGlobalSettings.KMouseSettings


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKGlobalSettings.KMouseSettings
Inherits
+

enums

    +
  • (anonymous) = {RightHanded, LeftHanded +}
+

variables

+ + + diff --git a/doc/classref/kdecore/KGlobalSettings.html b/doc/classref/kdecore/KGlobalSettings.html new file mode 100644 index 0000000..cf747af --- /dev/null +++ b/doc/classref/kdecore/KGlobalSettings.html @@ -0,0 +1,270 @@ + + + + + class KGlobalSettings + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KGlobalSettings


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKGlobalSettings
Inherits
+

enums

    +
  • Completion = {CompletionNone, CompletionAuto, CompletionMan, CompletionShell, CompletionPopup, CompletionPopupAuto +}
  • TearOffHandle = {Disable, ApplicationLevel, Enable +}
+

methods

    +
  • activeTextColor () +
    + +
    returns (QColor)
    static

  • +
  • activeTitleColor () +
    + +
    returns (QColor)
    static

  • +
  • alternateBackgroundColor () +
    + +
    returns (QColor)
    static

  • +
  • autoSelectDelay () +
    + +
    returns (int)
    static

  • +
  • autostartPath () +
    + +
    returns (QString)
    static

  • +
  • baseColor () +
    + +
    returns (QColor)
    static

  • +
  • buttonBackground () +
    + + +
    returns (QColor)
    In versions KDE 3.4.0 and above only
    static

  • +
  • buttonLayout () +
    + + +
    returns (int)
    In versions KDE 3.3.0 and above only
    static

  • +
  • buttonTextColor () +
    + + +
    returns (QColor)
    In versions KDE 3.4.0 and above only
    static

  • +
  • calculateAlternateBackgroundColor (base) +
    + +
    returns (QColor)
    static
    + +
    ArgumentTypeDefault
    baseQColor
    +

  • +
  • changeCursorOverIcon () +
    + +
    returns (bool)
    static

  • +
  • completionMode () +
    + +
    returns (Completion)
    static

  • +
  • contextMenuKey () +
    + +
    returns (int)
    static

  • +
  • contrast () +
    + +
    returns (int)
    static

  • +
  • desktopGeometry (point) +
    + + +
    returns (QRect)
    In versions KDE 3.2.0 and above only
    static
    + +
    ArgumentTypeDefault
    pointQPoint
    +

  • +
  • desktopGeometry (w) +
    + + +
    returns (QRect)
    In versions KDE 3.2.0 and above only
    static
    + +
    ArgumentTypeDefault
    wQWidget
    +

  • +
  • desktopPath () +
    + +
    returns (QString)
    static

  • +
  • dndEventDelay () +
    + +
    returns (int)
    static

  • +
  • documentPath () +
    + +
    returns (QString)
    static

  • +
  • fixedFont () +
    + +
    returns (QFont)
    static

  • +
  • generalFont () +
    + +
    returns (QFont)
    static

  • +
  • highlightColor () +
    + +
    returns (QColor)
    static

  • +
  • highlightedTextColor () +
    + +
    returns (QColor)
    static

  • +
  • inactiveTextColor () +
    + +
    returns (QColor)
    static

  • +
  • inactiveTitleColor () +
    + +
    returns (QColor)
    static

  • +
  • insertTearOffHandle () +
    + + +
    returns (KGlobalSettings.TearOffHandle)
    In versions KDE 3.1.0 and above only
    static

  • +
  • insertTearOffHandle () +
    + + +
    returns (bool)
    In versions less than KDE 3.1.0 only
    static

  • +
  • isMultiHead () +
    + +
    returns (bool)
    static

  • +
  • largeFont (text = QString .null) +
    + + +
    returns (QFont)
    In versions KDE 3.1.0 and above only
    static
    + +
    ArgumentTypeDefault
    textQStringQString .null
    +

  • +
  • linkColor () +
    + +
    returns (QColor)
    static

  • +
  • menuFont () +
    + +
    returns (QFont)
    static

  • +
  • mouseSettings () +
    + +
    returns (KGlobalSettings.KMouseSettings)
    static

  • +
  • opaqueResize () +
    + + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    static

  • +
  • shadeSortColumn () +
    + + +
    returns (bool)
    In versions KDE 3.4.0 and above only
    static

  • +
  • showContextMenusOnPress () +
    + +
    returns (bool)
    static

  • +
  • showFilePreview (a0) +
    + + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    static
    + +
    ArgumentTypeDefault
    a0KURL
    +

  • +
  • showIconsOnPushButtons () +
    + + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    static

  • +
  • singleClick () +
    + +
    returns (bool)
    static

  • +
  • splashScreenDesktopGeometry () +
    + + +
    returns (QRect)
    In versions KDE 3.2.0 and above only
    static

  • +
  • taskbarFont () +
    + +
    returns (QFont)
    static

  • +
  • textColor () +
    + +
    returns (QColor)
    static

  • +
  • toolBarFont () +
    + +
    returns (QFont)
    static

  • +
  • toolBarHighlightColor () +
    + +
    returns (QColor)
    static

  • +
  • trashPath () +
    + +
    returns (QString)
    static

  • +
  • visitedLinkColor () +
    + +
    returns (QColor)
    static

  • +
  • visualActivate () +
    + +
    returns (bool)
    static

  • +
  • visualActivateSpeed () +
    + +
    returns (uint)
    static

  • +
  • wheelMouseZooms () +
    + + +
    returns (bool)
    In versions KDE 3.1.0 and above only
    static

  • +
  • windowTitleFont () +
    + +
    returns (QFont)
    static

  • +
+ + + diff --git a/doc/classref/kdecore/KIDNA.html b/doc/classref/kdecore/KIDNA.html new file mode 100644 index 0000000..08f46ac --- /dev/null +++ b/doc/classref/kdecore/KIDNA.html @@ -0,0 +1,62 @@ + + + + + class KIDNA + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KIDNA


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKIDNA
Inherits
+

methods

    +
  • toAscii (idna) +
    + +
    returns (QString)
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    idnaQString
    +

  • +
  • toAsciiCString (idna) +
    + +
    returns (QCString)
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    idnaQString
    +

  • +
  • toUnicode (idna) +
    + +
    returns (QString)
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    idnaQString
    +

  • +
+ + + diff --git a/doc/classref/kdecore/KIPC.html b/doc/classref/kdecore/KIPC.html new file mode 100644 index 0000000..f9a97a9 --- /dev/null +++ b/doc/classref/kdecore/KIPC.html @@ -0,0 +1,63 @@ + + + + + class KIPC + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KIPC


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKIPC
Inherits
+

enums

    +
  • Message = {PaletteChanged, FontChanged, StyleChanged, BackgroundChanged, SettingsChanged, IconChanged, ToolbarStyleChanged, ClipboardConfigChanged, BlockShortcuts, UserMessage +}
  • Message = {PaletteChanged, FontChanged, StyleChanged, BackgroundChanged, SettingsChanged, IconChanged, ToolbarStyleChanged, ClipboardConfigChanged, UserMessage +}
  • Message = {PaletteChanged, FontChanged, StyleChanged, BackgroundChanged, SettingsChanged, IconChanged, ToolbarStyleChanged, UserMessage +}
+

methods

    +
  • sendMessage (msg, w, data = 0) +
    + +
    returns nothing
    static
    + + + +
    ArgumentTypeDefault
    msgKIPC.Message
    wWId
    dataint0
    +

  • +
  • sendMessageAll (msg, data = 0) +
    + +
    returns nothing
    static
    + + +
    ArgumentTypeDefault
    msgKIPC.Message
    dataint0
    +

  • +
+ + + diff --git a/doc/classref/kdecore/KIcon.html b/doc/classref/kdecore/KIcon.html new file mode 100644 index 0000000..4629f98 --- /dev/null +++ b/doc/classref/kdecore/KIcon.html @@ -0,0 +1,69 @@ + + + + + class KIcon + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KIcon


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKIcon
Inherits
+

enums

    +
  • Context = {Any, Action, Application, Device, FileSystem, MimeType +}
  • Group = {NoGroup, Desktop, FirstGroup, Toolbar, MainToolbar, Small, Panel, LastGroup, User +}
  • Group = {NoGroup, Desktop, FirstGroup, Toolbar, MainToolbar, Small, Panel, LastGroup, User +}
  • MatchType = {MatchExact, MatchBest +}
  • Overlays = {LockOverlay, ZipOverlay, LinkOverlay, HiddenOverlay, ShareOverlay, OverlayMask +}
  • Overlays = {LockOverlay, ZipOverlay, LinkOverlay, HiddenOverlay, OverlayMask +}
  • States = {DefaultState, ActiveState, DisabledState, LastState +}
  • StdSizes = {SizeSmall, SizeSmallMedium, SizeMedium, SizeLarge, SizeHuge, SizeEnormous +}
  • StdSizes = {SizeSmall, SizeSmallMedium, SizeMedium, SizeLarge, SizeHuge +}
  • StdSizes = {SizeSmall, SizeMedium, SizeLarge, SizeHuge +}
  • StdSizes = {SizeSmall, SizeMedium, SizeLarge +}
  • Type = {Fixed, Scalable, Threshold +}
+

methods

    +
  • KIcon () +
    +
    returns a KIcon instance

  • +
  • isValid () +
    +
    returns (bool)

  • +
+

variables

  • +variables + + + + + +
    VariableType
    contextContext
    pathQString
    sizeint
    thresholdint
    typeType
+ + + diff --git a/doc/classref/kdecore/KIconEffect.html b/doc/classref/kdecore/KIconEffect.html new file mode 100644 index 0000000..43d7d9d --- /dev/null +++ b/doc/classref/kdecore/KIconEffect.html @@ -0,0 +1,205 @@ + + + + + class KIconEffect + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KIconEffect


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKIconEffect
Inherits
+

enums

    +
  • Effects = {NoEffect, ToGray, Colorize, ToGamma, DeSaturate, ToMonochrome, LastEffect +}
  • Effects = {NoEffect, ToGray, Colorize, ToGamma, DeSaturate, LastEffect +}
+

methods

    +
  • KIconEffect () +
    +
    returns a KIconEffect instance

  • +
  • apply (src, group, state) +
    +
    returns (QImage)
    + + + +
    ArgumentTypeDefault
    srcQImage
    groupint
    stateint
    +

  • +
  • apply (src, effect, value, rgb, trans) +
    +
    returns (QImage)
    + + + + + +
    ArgumentTypeDefault
    srcQImage
    effectint
    valuefloat
    rgbQColor
    transbool
    +

  • +
  • apply (src, effect, value, rgb, rgb2, trans) +
    + +
    returns (QImage)
    In versions KDE 3.4.0 and above only
    + + + + + + +
    ArgumentTypeDefault
    srcQImage
    effectint
    valuefloat
    rgbQColor
    rgb2QColor
    transbool
    +

  • +
  • apply (src, group, state) +
    +
    returns (QPixmap)
    + + + +
    ArgumentTypeDefault
    srcQPixmap
    groupint
    stateint
    +

  • +
  • apply (src, effect, value, rgb, trans) +
    +
    returns (QPixmap)
    + + + + + +
    ArgumentTypeDefault
    srcQPixmap
    effectint
    valuefloat
    rgbQColor
    transbool
    +

  • +
  • apply (src, effect, value, rgb, rgb2, trans) +
    + +
    returns (QPixmap)
    In versions KDE 3.4.0 and above only
    + + + + + + +
    ArgumentTypeDefault
    srcQPixmap
    effectint
    valuefloat
    rgbQColor
    rgb2QColor
    transbool
    +

  • +
  • colorize (image, col, value) +
    + +
    returns nothing
    static
    + + + +
    ArgumentTypeDefault
    imageQImage
    colQColor
    valuefloat
    +

  • +
  • deSaturate (image, value) +
    + +
    returns nothing
    static
    + + +
    ArgumentTypeDefault
    imageQImage
    valuefloat
    +

  • +
  • doublePixels (src) +
    +
    returns (QImage)
    + +
    ArgumentTypeDefault
    srcQImage
    +

  • +
  • fingerprint (group, state) +
    +
    returns (QString)
    + + +
    ArgumentTypeDefault
    groupint
    stateint
    +

  • +
  • hasEffect (group, state) +
    +
    returns (bool)
    + + +
    ArgumentTypeDefault
    groupint
    stateint
    +

  • +
  • init () +
    +
    returns nothing

  • +
  • overlay (src, overlay) +
    + +
    returns nothing
    static
    + + +
    ArgumentTypeDefault
    srcQImage
    overlayQImage
    +

  • +
  • semiTransparent (image) +
    + +
    returns nothing
    static
    + +
    ArgumentTypeDefault
    imageQImage
    +

  • +
  • semiTransparent (pixmap) +
    + +
    returns nothing
    static
    + +
    ArgumentTypeDefault
    pixmapQPixmap
    +

  • +
  • toGamma (image, value) +
    + +
    returns nothing
    static
    + + +
    ArgumentTypeDefault
    imageQImage
    valuefloat
    +

  • +
  • toGray (image, value) +
    + +
    returns nothing
    static
    + + +
    ArgumentTypeDefault
    imageQImage
    valuefloat
    +

  • +
  • toMonochrome (image, black, white, value) +
    + + +
    returns nothing
    In versions KDE 3.4.0 and above only
    static
    + + + + +
    ArgumentTypeDefault
    imageQImage
    blackQColor
    whiteQColor
    valuefloat
    +

  • +
  • visualActivate (widget, rect) +
    + +
    returns nothing
    static
    + + +
    ArgumentTypeDefault
    widgetQWidget
    rectQRect
    +

  • +
+ + + diff --git a/doc/classref/kdecore/KIconLoader.html b/doc/classref/kdecore/KIconLoader.html new file mode 100644 index 0000000..2c75fe3 --- /dev/null +++ b/doc/classref/kdecore/KIconLoader.html @@ -0,0 +1,195 @@ + + + + + class KIconLoader + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KIconLoader


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKIconLoader
Inherits
+

methods

    +
  • KIconLoader (appname = QString .null, dirs = 0) +
    +
    returns a KIconLoader instance
    + + +
    ArgumentTypeDefault
    appnameQStringQString .null
    dirsKStandardDirs0
    +

  • +
  • addAppDir (appname) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    appnameQString
    +

  • +
  • addExtraDesktopThemes () +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only

  • +
  • alphaBlending (group) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    groupKIcon.Group
    +

  • +
  • currentSize (group) +
    +
    returns (int)
    + +
    ArgumentTypeDefault
    groupKIcon.Group
    +

  • +
  • enableDelayedIconSetLoading (enable) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    enablebool
    +

  • +
  • extraDesktopThemesAdded () +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above only

  • +
  • iconEffect () +
    +
    returns (KIconEffect)

  • +
  • iconPath (name, group_or_size, canReturnNull = 0) +
    +
    returns (QString)
    + + + +
    ArgumentTypeDefault
    nameQString
    group_or_sizeint
    canReturnNullbool0
    +

  • +
  • isDelayedIconSetLoadingEnabled () +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above only

  • +
  • loadAnimated (name, group, size = 0) +
    +
    returns (QStringList)
    + + + +
    ArgumentTypeDefault
    nameQString
    groupKIcon.Group
    sizeint0
    +

  • +
  • loadIcon (name, group, size = 0, state = KIcon .DefaultState, path_store = 0, canReturnNull = 0) +
    +
    returns (QPixmap)
    + + + + + + +
    ArgumentTypeDefault
    nameQString
    groupKIcon.Group
    sizeint0
    stateintKIcon .DefaultState
    path_storeQString0
    canReturnNullbool0
    +

  • +
  • loadIconSet (name, group, size, canReturnNull, immediateExistenceCheck) +
    + +
    returns (QIconSet)
    In versions KDE 3.5.0 and above only
    + + + + + +
    ArgumentTypeDefault
    nameQString
    groupKIcon.Group
    sizeint
    canReturnNullbool
    immediateExistenceCheckbool
    +

  • +
  • loadIconSet (name, group, size, canReturnNull) +
    + +
    returns (QIconSet)
    In versions KDE 3.1.0 and above only
    + + + + +
    ArgumentTypeDefault
    nameQString
    groupKIcon.Group
    sizeint
    canReturnNullbool
    +

  • +
  • loadIconSet (name, group, size = 0) +
    +
    returns (QIconSet)
    + + + +
    ArgumentTypeDefault
    nameQString
    groupKIcon.Group
    sizeint0
    +

  • +
  • loadMovie (name, group, size = 0) +
    +
    returns (QMovie)
    + + + +
    ArgumentTypeDefault
    nameQString
    groupKIcon.Group
    sizeint0
    +

  • +
  • moviePath (name, group, size = 0) +
    +
    returns (QString)
    + + + +
    ArgumentTypeDefault
    nameQString
    groupKIcon.Group
    sizeint0
    +

  • +
  • queryIcons (group_or_size, context = KIcon .Any) +
    +
    returns (QStringList)
    + + +
    ArgumentTypeDefault
    group_or_sizeint
    contextKIcon.ContextKIcon .Any
    +

  • +
  • queryIconsByContext (group_or_size, context = KIcon .Any) +
    +
    returns (QStringList)
    + + +
    ArgumentTypeDefault
    group_or_sizeint
    contextKIcon.ContextKIcon .Any
    +

  • +
  • queryIconsByDir (iconsDir) +
    + +
    returns (QStringList)
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    iconsDirQString
    +

  • +
  • reconfigure (_appname, _dirs) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    _appnameQString
    _dirsKStandardDirs
    +

  • +
  • theme () +
    +
    returns (KIconTheme)

  • +
  • unknown () +
    + +
    returns (QPixmap)
    static

  • +
+ + + diff --git a/doc/classref/kdecore/KIconTheme.html b/doc/classref/kdecore/KIconTheme.html new file mode 100644 index 0000000..e897f1e --- /dev/null +++ b/doc/classref/kdecore/KIconTheme.html @@ -0,0 +1,140 @@ + + + + + class KIconTheme + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KIconTheme


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKIconTheme
Inherits
+

methods

    +
  • KIconTheme (name, appName = QString .null) +
    +
    returns a KIconTheme instance
    + + +
    ArgumentTypeDefault
    nameQString
    appNameQStringQString .null
    +

  • +
  • current () +
    + +
    returns (QString)
    static

  • +
  • defaultSize (group) +
    +
    returns (int)
    + +
    ArgumentTypeDefault
    groupKIcon.Group
    +

  • +
  • defaultThemeName () +
    + + +
    returns (QString)
    In versions KDE 3.1.0 and above only
    static

  • +
  • depth () +
    +
    returns (int)

  • +
  • description () +
    +
    returns (QString)

  • +
  • dir () +
    +
    returns (QString)

  • +
  • example () +
    +
    returns (QString)

  • +
  • iconPath (name, size, match) +
    +
    returns (KIcon)
    + + + +
    ArgumentTypeDefault
    nameQString
    sizeint
    matchKIcon.MatchType
    +

  • +
  • inherits () +
    +
    returns (QStringList)

  • +
  • isHidden () +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above only

  • +
  • isValid () +
    +
    returns (bool)

  • +
  • linkOverlay () +
    +
    returns (QString)

  • +
  • list () +
    + +
    returns (QStringList)
    static

  • +
  • lockOverlay () +
    +
    returns (QString)

  • +
  • name () +
    +
    returns (QString)

  • +
  • queryIcons (size, context = KIcon .Any) +
    +
    returns (QStringList)
    + + +
    ArgumentTypeDefault
    sizeint
    contextKIcon.ContextKIcon .Any
    +

  • +
  • queryIconsByContext (size, context = KIcon .Any) +
    +
    returns (QStringList)
    + + +
    ArgumentTypeDefault
    sizeint
    contextKIcon.ContextKIcon .Any
    +

  • +
  • querySizes (group) +
    +
    returns (QValueList)
    + +
    ArgumentTypeDefault
    groupKIcon.Group
    +

  • +
  • reconfigure () +
    + +
    returns nothing
    static

  • +
  • screenshot () +
    +
    returns (QString)

  • +
  • shareOverlay () +
    + +
    returns (QString)
    In versions KDE 3.1.0 and above only

  • +
  • zipOverlay () +
    +
    returns (QString)

  • +
+ + + diff --git a/doc/classref/kdecore/KInstance.html b/doc/classref/kdecore/KInstance.html new file mode 100644 index 0000000..b3212b8 --- /dev/null +++ b/doc/classref/kdecore/KInstance.html @@ -0,0 +1,103 @@ + + + + + class KInstance + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KInstance


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKInstance
Inherits
+

methods

    +
  • KInstance (instanceName) +
    +
    returns a KInstance instance
    + +
    ArgumentTypeDefault
    instanceNameQCString
    +

  • +
  • KInstance (aboutData) +
    +
    returns a KInstance instance
    + +
    ArgumentTypeDefault
    aboutDataKAboutData
    +

  • +
  • KInstance (src) +
    +
    returns a KInstance instance
    + +
    ArgumentTypeDefault
    srcKInstance
    +

  • +
  • KInstance (a0) +
    Not Implemented
    +

  • +
  • KInstance (a0) +
    +
    returns a KInstance instance
    + +
    ArgumentTypeDefault
    a0KInstance
    +

  • +
  • aboutData () +
    +
    returns (KAboutData)

  • +
  • charsets () +
    Not Implemented
    +

  • +
  • config () +
    +
    returns (KConfig)

  • +
  • dirs () +
    +
    returns (KStandardDirs)

  • +
  • iconLoader () +
    +
    returns (KIconLoader)

  • +
  • instanceName () +
    +
    returns (QCString)

  • +
  • mimeSourceFactory () +
    +
    returns (KMimeSourceFactory)

  • +
  • newIconLoader () +
    +
    returns nothing

  • +
  • setConfigName (name) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    nameQString
    +

  • +
  • sharedConfig () +
    + +
    returns (KSharedConfig)
    In versions KDE 3.2.0 and above only

  • +
+ + + diff --git a/doc/classref/kdecore/KKey.html b/doc/classref/kdecore/KKey.html new file mode 100644 index 0000000..836f8c7 --- /dev/null +++ b/doc/classref/kdecore/KKey.html @@ -0,0 +1,195 @@ + + + + + class KKey + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KKey


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKKey
Inherits
+

enums

    +
  • (anonymous) = {MOD_FLAG_COUNT +}
  • (anonymous) = {QtWIN +}
  • (anonymous) = {QtWIN +}
  • (anonymous) = {QtWIN +}
  • ModFlag = {SHIFT, CTRL, ALT, WIN +}
+

methods

    +
  • KKey () +
    +
    returns a KKey instance

  • +
  • KKey (keyQt) +
    +
    returns a KKey instance
    + +
    ArgumentTypeDefault
    keyQtint
    +

  • +
  • KKey (keySeq) +
    +
    returns a KKey instance
    + +
    ArgumentTypeDefault
    keySeqQKeySequence
    +

  • +
  • KKey (keyEvent) +
    +
    returns a KKey instance
    + +
    ArgumentTypeDefault
    keyEventQKeyEvent
    +

  • +
  • KKey (key) +
    +
    returns a KKey instance
    + +
    ArgumentTypeDefault
    keyKKey
    +

  • +
  • KKey (key) +
    +
    returns a KKey instance
    + +
    ArgumentTypeDefault
    keyQString
    +

  • +
  • KKey (key, mod) +
    +
    returns a KKey instance
    + + +
    ArgumentTypeDefault
    keyuint
    moduint
    +

  • +
  • clear () +
    +
    returns nothing

  • +
  • compare (key) +
    +
    returns (int)
    + +
    ArgumentTypeDefault
    keyKKey
    +

  • +
  • init (keyQt) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    keyQtint
    +

  • +
  • init (keySeq) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    keySeqQKeySequence
    +

  • +
  • init (keyEvent) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    keyEventQKeyEvent
    +

  • +
  • init (key) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    keyKKey
    +

  • +
  • init (key) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    keyQString
    +

  • +
  • init (key, mod) +
    +
    returns (bool)
    + + +
    ArgumentTypeDefault
    keyuint
    moduint
    +

  • +
  • isNull () +
    +
    returns (bool)

  • +
  • isValidNative () +
    Not Implemented
    +

  • +
  • isValidQt () +
    Not Implemented
    +

  • +
  • keyCodeQt () +
    +
    returns (int)

  • +
  • modFlagLabel (f) +
    + +
    returns (QString)
    static
    + +
    ArgumentTypeDefault
    fKKey.ModFlag
    +

  • +
  • modFlags () +
    +
    returns (uint)

  • +
  • null () +
    + +
    returns (KKey)
    static

  • +
  • simplify () +
    +
    returns nothing

  • +
  • sym () +
    +
    returns (uint)

  • +
  • toString () +
    +
    returns (QString)

  • +
  • toStringInternal () +
    +
    returns (QString)

  • +
+

operators

    +
  • operator != (a0) +
    + +
    returns (bool)
    In versions KDE 3.1.4 and above only
    + +
    ArgumentTypeDefault
    a0KKey
    +

  • +
  • operator < (a0) +
    + +
    returns (bool)
    In versions KDE 3.1.4 and above only
    + +
    ArgumentTypeDefault
    a0KKey
    +

  • +
  • operator == (a0) +
    + +
    returns (bool)
    In versions KDE 3.1.4 and above only
    + +
    ArgumentTypeDefault
    a0KKey
    +

  • +
+ + + diff --git a/doc/classref/kdecore/KKeyNative.html b/doc/classref/kdecore/KKeyNative.html new file mode 100644 index 0000000..3499b79 --- /dev/null +++ b/doc/classref/kdecore/KKeyNative.html @@ -0,0 +1,174 @@ + + + + + class KKeyNative + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KKeyNative


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKKeyNative
Inherits
+

methods

    +
  • KKeyNative () +
    +
    returns a KKeyNative instance

  • +
  • KKeyNative (xevent) +
    Not Implemented
    +

  • +
  • KKeyNative (key) +
    +
    returns a KKeyNative instance
    + +
    ArgumentTypeDefault
    keyKKey
    +

  • +
  • KKeyNative (a0) +
    +
    returns a KKeyNative instance
    + +
    ArgumentTypeDefault
    a0KKeyNative
    +

  • +
  • KKeyNative (code, mod, sym) +
    +
    returns a KKeyNative instance
    + + + +
    ArgumentTypeDefault
    codeuint
    moduint
    symuint
    +

  • +
  • accelModMaskX () +
    + +
    returns (uint)
    static

  • +
  • clear () +
    +
    returns nothing

  • +
  • code () +
    +
    returns (uint)

  • +
  • compare (key) +
    +
    returns (int)
    + +
    ArgumentTypeDefault
    keyKKeyNative
    +

  • +
  • init (xevent) +
    Not Implemented
    +

  • +
  • init (key) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    keyKKey
    +

  • +
  • init (key) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    keyKKeyNative
    +

  • +
  • isNull () +
    +
    returns (bool)

  • +
  • key () +
    +
    returns (KKey)

  • +
  • keyCodeQt () +
    +
    returns (int)

  • +
  • keyboardHasWinKey () +
    + +
    returns (bool)
    static

  • +
  • mod () +
    +
    returns (uint)

  • +
  • modX (modFlag) +
    + +
    returns (uint)
    static
    + +
    ArgumentTypeDefault
    modFlagKKey.ModFlag
    +

  • +
  • modXLock () +
    + + +
    returns (uint)
    In versions KDE 3.1.3 and above only
    static

  • +
  • modXModeSwitch () +
    + + +
    returns (uint)
    In versions KDE 3.4.3 and above only
    static

  • +
  • modXNumLock () +
    + + +
    returns (uint)
    In versions KDE 3.1.3 and above only
    static

  • +
  • modXScrollLock () +
    + + +
    returns (uint)
    In versions KDE 3.1.3 and above only
    static

  • +
  • null () +
    + +
    returns (KKeyNative)
    static

  • +
  • sym () +
    +
    returns (uint)

  • +
+

operators

    +
  • operator != (a0) +
    + +
    returns (bool)
    In versions KDE 3.1.4 and above only
    + +
    ArgumentTypeDefault
    a0KKeyNative
    +

  • +
  • operator < (a0) +
    + +
    returns (bool)
    In versions KDE 3.1.4 and above only
    + +
    ArgumentTypeDefault
    a0KKeyNative
    +

  • +
  • operator == (a0) +
    + +
    returns (bool)
    In versions KDE 3.1.4 and above only
    + +
    ArgumentTypeDefault
    a0KKeyNative
    +

  • +
  • operator KKey () +
    Not Implemented
    +

  • +
+ + + diff --git a/doc/classref/kdecore/KKeySequence.html b/doc/classref/kdecore/KKeySequence.html new file mode 100644 index 0000000..e73aef7 --- /dev/null +++ b/doc/classref/kdecore/KKeySequence.html @@ -0,0 +1,180 @@ + + + + + class KKeySequence + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KKeySequence


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKKeySequence
Inherits
+

enums

    +
  • (anonymous) = {MAX_KEYS +}
+

methods

    +
  • KKeySequence () +
    +
    returns a KKeySequence instance

  • +
  • KKeySequence (keySeq) +
    +
    returns a KKeySequence instance
    + +
    ArgumentTypeDefault
    keySeqQKeySequence
    +

  • +
  • KKeySequence (key) +
    +
    returns a KKeySequence instance
    + +
    ArgumentTypeDefault
    keyKKey
    +

  • +
  • KKeySequence (key) +
    Not Implemented
    +

  • +
  • KKeySequence (keySeq) +
    +
    returns a KKeySequence instance
    + +
    ArgumentTypeDefault
    keySeqKKeySequence
    +

  • +
  • KKeySequence (keySeq) +
    +
    returns a KKeySequence instance
    + +
    ArgumentTypeDefault
    keySeqQString
    +

  • +
  • clear () +
    +
    returns nothing

  • +
  • compare (keySeq) +
    +
    returns (int)
    + +
    ArgumentTypeDefault
    keySeqKKeySequence
    +

  • +
  • count () +
    +
    returns (uint)

  • +
  • init (keySeq) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    keySeqQKeySequence
    +

  • +
  • init (key) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    keyKKey
    +

  • +
  • init (key) +
    Not Implemented
    +

  • +
  • init (keySeq) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    keySeqKKeySequence
    +

  • +
  • init (key) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    keyQString
    +

  • +
  • isNull () +
    +
    returns (bool)

  • +
  • isTriggerOnRelease () +
    +
    returns (bool)

  • +
  • key (i) +
    +
    returns (KKey)
    + +
    ArgumentTypeDefault
    iuint
    +

  • +
  • keyCodeQt () +
    +
    returns (int)

  • +
  • null () +
    + +
    returns (KKeySequence)
    static

  • +
  • qt () +
    +
    returns (QKeySequence)

  • +
  • setKey (i, key) +
    +
    returns (bool)
    + + +
    ArgumentTypeDefault
    iuint
    keyKKey
    +

  • +
  • setTriggerOnRelease (a0) +
    Not Implemented
    +

  • +
  • startsWith (keySeq) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    keySeqKKeySequence
    +

  • +
  • toString () +
    +
    returns (QString)

  • +
  • toStringInternal () +
    +
    returns (QString)

  • +
+

operators

    +
  • operator != (a0) +
    + +
    returns (bool)
    In versions KDE 3.1.4 and above only
    + +
    ArgumentTypeDefault
    a0KKeySequence
    +

  • +
  • operator < (a0) +
    + +
    returns (bool)
    In versions KDE 3.1.4 and above only
    + +
    ArgumentTypeDefault
    a0KKeySequence
    +

  • +
  • operator == (a0) +
    + +
    returns (bool)
    In versions KDE 3.1.4 and above only
    + +
    ArgumentTypeDefault
    a0KKeySequence
    +

  • +
+ + + diff --git a/doc/classref/kdecore/KKeyServer.CodeMod.html b/doc/classref/kdecore/KKeyServer.CodeMod.html new file mode 100644 index 0000000..f5389c2 --- /dev/null +++ b/doc/classref/kdecore/KKeyServer.CodeMod.html @@ -0,0 +1,44 @@ + + + + + class KKeyServer.CodeMod + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KKeyServer.CodeMod


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKKeyServer.CodeMod
Inherits
+

variables

+ + + diff --git a/doc/classref/kdecore/KKeyServer.Key.html b/doc/classref/kdecore/KKeyServer.Key.html new file mode 100644 index 0000000..80a6398 --- /dev/null +++ b/doc/classref/kdecore/KKeyServer.Key.html @@ -0,0 +1,103 @@ + + + + + class KKeyServer.Key + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KKeyServer.Key


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKKeyServer.Key
Inherits
+

enums

    +
  • (anonymous) = {CODE_FOR_QT +}
+

methods

    +
  • code () +
    +
    returns (uint)

  • +
  • compare (key) +
    +
    returns (int)
    + +
    ArgumentTypeDefault
    keyKKeyServer.Key
    +

  • +
  • init (key, bQt) +
    +
    returns (bool)
    + + +
    ArgumentTypeDefault
    keyKKey
    bQtbool
    +

  • +
  • isNative () +
    +
    returns (bool)

  • +
  • key () +
    +
    returns (KKey)

  • +
  • keyCodeQt () +
    +
    returns (int)

  • +
  • mod () +
    +
    returns (uint)

  • +
  • setKeycodeQt (keyQt) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    keyQtint
    +

  • +
  • sym () +
    +
    returns (uint)

  • +
+

operators

    +
  • operator < (a0) +
    + +
    returns (bool)
    In versions KDE 3.1.4 and above only
    + +
    ArgumentTypeDefault
    a0KKeyServer.Key
    +

  • +
  • operator == (a0) +
    + +
    returns (bool)
    In versions KDE 3.1.4 and above only
    + +
    ArgumentTypeDefault
    a0KKeyServer.Key
    +

  • +
+

variables

  • +variables + + + +
    VariableType
    m_codeuint
    m_moduint
    m_symuint
+ + + diff --git a/doc/classref/kdecore/KKeyServer.Sym.html b/doc/classref/kdecore/KKeyServer.Sym.html new file mode 100644 index 0000000..af77d2c --- /dev/null +++ b/doc/classref/kdecore/KKeyServer.Sym.html @@ -0,0 +1,92 @@ + + + + + class KKeyServer.Sym + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KKeyServer.Sym


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKKeyServer.Sym
Inherits
+

methods

    +
  • Sym () +
    +
    returns a Sym instance

  • +
  • Sym (sym) +
    +
    returns a Sym instance
    + +
    ArgumentTypeDefault
    symuint
    +

  • +
  • Sym (s) +
    +
    returns a Sym instance
    + +
    ArgumentTypeDefault
    sQString
    +

  • +
  • getModsRequired () +
    +
    returns (uint)

  • +
  • getSymVariation () +
    +
    returns (uint)

  • +
  • init (s) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    sQString
    +

  • +
  • initQt (keyQt) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    keyQtint
    +

  • +
  • qt () +
    +
    returns (int)

  • +
  • toString () +
    +
    returns (QString)

  • +
  • toStringInternal () +
    +
    returns (QString)

  • +
+

operators

    +
  • operator uint () +
    Not Implemented
    +

  • +
+

variables

+ + + diff --git a/doc/classref/kdecore/KKeyServer.Variations.html b/doc/classref/kdecore/KKeyServer.Variations.html new file mode 100644 index 0000000..40a3c68 --- /dev/null +++ b/doc/classref/kdecore/KKeyServer.Variations.html @@ -0,0 +1,68 @@ + + + + + class KKeyServer.Variations + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KKeyServer.Variations


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKKeyServer.Variations
Inherits
+

enums

    +
  • (anonymous) = {MAX_VARIATIONS +}
+

methods

    +
  • Variations () +
    +
    returns a Variations instance

  • +
  • count () +
    +
    returns (uint)

  • +
  • init (a0, bQt) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    a0KKey
    bQtbool
    +

  • +
  • key (i) +
    +
    returns (KKeyServer.Key)
    + +
    ArgumentTypeDefault
    iuint
    +

  • +
+

variables

  • +variables + + +
    VariableType
    m_nVariationsuint
    m_rgkey[MAX_VARIATIONS]KKeyServer::Key
+ + + diff --git a/doc/classref/kdecore/KKeyServer.html b/doc/classref/kdecore/KKeyServer.html new file mode 100644 index 0000000..1407b60 --- /dev/null +++ b/doc/classref/kdecore/KKeyServer.html @@ -0,0 +1,132 @@ + + + + + class KKeyServer + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KKeyServer


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKKeyServer
Inherits
+

classes

+

enums

    +
  • ExtraModFlag = {MODE_SWITCH +}
+

methods

    +
  • accelModMaskX () +
    +
    returns (uint)

  • +
  • codeXToSym (codeX, modX) +
    Not Implemented
    +

  • +
  • initializeMods () +
    +
    returns (bool)

  • +
  • keyQtToKeyX (keyCombQt, pKeyCodeX) +
    Not Implemented
    +

  • +
  • keyQtToMod (keyQt) +
    Not Implemented
    +

  • +
  • keyQtToSym (keyQt) +
    Not Implemented
    +

  • +
  • keyboardHasWinKey () +
    +
    returns (bool)

  • +
  • modToModQt (mod) +
    Not Implemented
    +

  • +
  • modToModX (mod) +
    Not Implemented
    +

  • +
  • modToStringInternal (mod) +
    Not Implemented
    +

  • +
  • modToStringUser (mod) +
    Not Implemented
    +

  • +
  • modX (modFlag) +
    +
    returns (uint)
    + +
    ArgumentTypeDefault
    modFlagKKey.ModFlag
    +

  • +
  • modXAlt () +
    +
    returns (uint)

  • +
  • modXCtrl () +
    +
    returns (uint)

  • +
  • modXLock () +
    +
    returns (uint)

  • +
  • modXModeSwitch () +
    + +
    returns (uint)
    In versions KDE 3.4.2 and above only

  • +
  • modXNumLock () +
    +
    returns (uint)

  • +
  • modXScrollLock () +
    +
    returns (uint)

  • +
  • modXShift () +
    +
    returns (uint)

  • +
  • modXToMod (modX) +
    Not Implemented
    +

  • +
  • modXToModQt (modX) +
    Not Implemented
    +

  • +
  • modXWin () +
    +
    returns (uint)

  • +
  • qtButtonStateToMod (s) +
    Not Implemented
    +

  • +
  • stringToSymMod (a0) +
    Not Implemented
    +

  • +
  • stringUserToMod (mod) +
    + +
    returns (uint)
    In versions KDE 3.5.0 and above only
    + +
    ArgumentTypeDefault
    modQString
    +

  • +
  • symToKeyQt (sym) +
    Not Implemented
    +

  • +
+ + + diff --git a/doc/classref/kdecore/KLibFactory.html b/doc/classref/kdecore/KLibFactory.html new file mode 100644 index 0000000..f2d8c6a --- /dev/null +++ b/doc/classref/kdecore/KLibFactory.html @@ -0,0 +1,72 @@ + + + + + class KLibFactory + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KLibFactory


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKLibFactory
InheritsQObject
+

methods

    +
  • KLibFactory (parent = 0, name = 0) +
    +
    returns a KLibFactory instance
    + + +
    ArgumentTypeDefault
    parentQObject0
    namechar0
    +

  • +
  • create (parent = 0, name = 0, classname = "QObject", args = QStringList ()) +
    +
    returns (QObject)
    + + + + +
    ArgumentTypeDefault
    parentQObject0
    namechar0
    classnamechar"QObject"
    argsQStringListQStringList ()
    +

  • +
  • createObject (parent = 0, name = 0, className = "QObject", args = QStringList ()) +
    +
    returns (QObject)
    + + + + +
    ArgumentTypeDefault
    parentQObject0
    namechar0
    classNamechar"QObject"
    argsQStringListQStringList ()
    +

  • +
  • objectCreated (obj) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    objQObject
    +

  • +
+ + + diff --git a/doc/classref/kdecore/KLibLoader.html b/doc/classref/kdecore/KLibLoader.html new file mode 100644 index 0000000..82fbd82 --- /dev/null +++ b/doc/classref/kdecore/KLibLoader.html @@ -0,0 +1,91 @@ + + + + + class KLibLoader + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KLibLoader


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKLibLoader
InheritsQObject
+

methods

    +
  • KLibLoader (parent = 0, name = 0) +
    +
    returns a KLibLoader instance
    + + +
    ArgumentTypeDefault
    parentQObject0
    namechar0
    +

  • +
  • cleanUp () +
    + +
    returns nothing
    static

  • +
  • factory (libname) +
    +
    returns (KLibFactory)
    + +
    ArgumentTypeDefault
    libnamechar
    +

  • +
  • findLibrary (name, instance = KGlobal .instance ()) +
    + +
    returns (QString)
    static
    + + +
    ArgumentTypeDefault
    namechar
    instanceKInstanceKGlobal .instance ()
    +

  • +
  • globalLibrary (name) +
    +
    returns (KLibrary)
    + +
    ArgumentTypeDefault
    namechar
    +

  • +
  • lastErrorMessage () +
    +
    returns (QString)

  • +
  • library (libname) +
    +
    returns (KLibrary)
    + +
    ArgumentTypeDefault
    libnamechar
    +

  • +
  • self () +
    + +
    returns (KLibLoader)
    static

  • +
  • unloadLibrary (libname) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    libnamechar
    +

  • +
+ + + diff --git a/doc/classref/kdecore/KLibrary.html b/doc/classref/kdecore/KLibrary.html new file mode 100644 index 0000000..cba0d2e --- /dev/null +++ b/doc/classref/kdecore/KLibrary.html @@ -0,0 +1,80 @@ + + + + + class KLibrary + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KLibrary


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKLibrary
InheritsQObject
+

methods

    +
  • KLibrary (libname, filename, handle) +
    Not Implemented
    +

  • +
  • KLibrary (a0, a1, a2) +
    +
    returns a KLibrary instance
    + + + +
    ArgumentTypeDefault
    a0QString
    a1QString
    a2void
    +

  • +
  • factory () +
    +
    returns (KLibFactory)

  • +
  • fileName () +
    +
    returns (QString)

  • +
  • hasSymbol (name) +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    namechar
    +

  • +
  • name () +
    +
    returns (QString)

  • +
  • symbol (name) +
    +
    returns (void)
    + +
    ArgumentTypeDefault
    namechar
    +

  • +
  • unload () +
    +
    returns nothing

  • +
  • ~KLibrary () +
    +
    returns nothing

  • +
+ + + diff --git a/doc/classref/kdecore/KLocale.html b/doc/classref/kdecore/KLocale.html new file mode 100644 index 0000000..853d92c --- /dev/null +++ b/doc/classref/kdecore/KLocale.html @@ -0,0 +1,583 @@ + + + + + class KLocale + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KLocale


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKLocale
Inherits
+

enums

    +
  • MeasureSystem = {Metric, Imperial +}
  • ReadDateFlags = {NormalFormat, ShortFormat +}
  • ReadTimeFlags = {WithSeconds, WithoutSeconds +}
  • SignPosition = {ParensAround, BeforeQuantityMoney, AfterQuantityMoney, BeforeMoney, AfterMoney +}
+

methods

    +
  • KLocale (catalog, config = 0) +
    +
    returns a KLocale instance
    + + +
    ArgumentTypeDefault
    catalogQString
    configKConfig0
    +

  • +
  • KLocale (rhs) +
    Not Implemented
    +

  • +
  • KLocale (a0) +
    +
    returns a KLocale instance
    + +
    ArgumentTypeDefault
    a0KLocale
    +

  • +
  • _initLanguage (config) +
    + + +
    returns (QString)
    In versions KDE 3.0.1 and above only
    static
    + +
    ArgumentTypeDefault
    configKConfigBase
    +

  • +
  • allCountriesTwoAlpha () +
    + +
    returns (QStringList)
    In versions KDE 3.1.0 and above only

  • +
  • allLanguagesTwoAlpha () +
    + +
    returns (QStringList)
    In versions KDE 3.1.0 and above only

  • +
  • calendar () +
    + +
    returns (KCalendarSystem)
    In versions KDE 3.2.0 and above only

  • +
  • calendarType () +
    + +
    returns (QString)
    In versions KDE 3.2.0 and above only

  • +
  • charset () +
    Not Implemented
    +

  • +
  • codecForEncoding () +
    +
    returns (QTextCodec)

  • +
  • country () +
    +
    returns (QString)

  • +
  • currencySymbol () +
    +
    returns (QString)

  • +
  • dateFormat () +
    +
    returns (QString)

  • +
  • dateFormatShort () +
    +
    returns (QString)

  • +
  • dateMonthNamePossessive () +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above only

  • +
  • decimalSymbol () +
    +
    returns (QString)

  • +
  • defaultCountry () +
    + +
    returns (QString)
    static

  • +
  • defaultLanguage () +
    + +
    returns (QString)
    static

  • +
  • encoding () +
    +
    returns (char)

  • +
  • encodingMib () +
    +
    returns (int)

  • +
  • fileEncodingMib () +
    + +
    returns (int)
    In versions KDE 3.2.0 and above only

  • +
  • formatDate (pDate, shortFormat = 0) +
    +
    returns (QString)
    + + +
    ArgumentTypeDefault
    pDateQDate
    shortFormatbool0
    +

  • +
  • formatDateTime (pDateTime, shortFormat, includeSecs = 0) +
    +
    returns (QString)
    + + + +
    ArgumentTypeDefault
    pDateTimeQDateTime
    shortFormatbool
    includeSecsbool0
    +

  • +
  • formatLong (num) +
    + +
    returns (QString)
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    numlong
    +

  • +
  • formatMoney (num, currency = QString .null, digits = -1) +
    +
    returns (QString)
    + + + +
    ArgumentTypeDefault
    numdouble
    currencyQStringQString .null
    digitsint-1
    +

  • +
  • formatMoney (numStr) +
    +
    returns (QString)
    + +
    ArgumentTypeDefault
    numStrQString
    +

  • +
  • formatNumber (num, precision = -1) +
    +
    returns (QString)
    + + +
    ArgumentTypeDefault
    numdouble
    precisionint-1
    +

  • +
  • formatNumber (numStr) +
    +
    returns (QString)
    + +
    ArgumentTypeDefault
    numStrQString
    +

  • +
  • formatNumber (numStr, round, precision) +
    + +
    returns (QString)
    In versions KDE 3.5.0 and above only
    + + + +
    ArgumentTypeDefault
    numStrQString
    roundbool
    precisionint
    +

  • +
  • formatTime (pTime, includeSecs, isDuration) +
    + +
    returns (QString)
    In versions KDE 3.3.0 and above only
    + + + +
    ArgumentTypeDefault
    pTimeQTime
    includeSecsbool
    isDurationbool
    +

  • +
  • formatTime (pTime, includeSecs = 0) +
    +
    returns (QString)
    + + +
    ArgumentTypeDefault
    pTimeQTime
    includeSecsbool0
    +

  • +
  • fracDigits () +
    +
    returns (int)

  • +
  • initInstance () +
    Not Implemented
    +

  • +
  • insertCatalogue (catalog) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    catalogQString
    +

  • +
  • langLookup (fname, rtype = "html") +
    + +
    returns (QString)
    static
    + + +
    ArgumentTypeDefault
    fnameQString
    rtypechar"html"
    +

  • +
  • language () +
    +
    returns (QString)

  • +
  • languageList () +
    +
    returns (QStringList)

  • +
  • languages () +
    +
    returns (QString)

  • +
  • languagesTwoAlpha () +
    +
    returns (QStringList)

  • +
  • measureSystem () +
    +
    returns (KLocale.MeasureSystem)

  • +
  • monetaryDecimalSymbol () +
    +
    returns (QString)

  • +
  • monetaryThousandsSeparator () +
    +
    returns (QString)

  • +
  • monthName (i, shortName = 0) +
    +
    returns (QString)
    + + +
    ArgumentTypeDefault
    iint
    shortNamebool0
    +

  • +
  • monthNamePossessive (i, shortName = 0) +
    + +
    returns (QString)
    In versions KDE 3.1.0 and above only
    + + +
    ArgumentTypeDefault
    iint
    shortNamebool0
    +

  • +
  • negativeMonetarySignPosition () +
    +
    returns (SignPosition)

  • +
  • negativePrefixCurrencySymbol () +
    +
    returns (bool)

  • +
  • negativeSign () +
    +
    returns (QString)

  • +
  • nounDeclension () +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above only

  • +
  • pageSize () +
    +
    returns (int)

  • +
  • positiveMonetarySignPosition () +
    +
    returns (SignPosition)

  • +
  • positivePrefixCurrencySymbol () +
    +
    returns (bool)

  • +
  • positiveSign () +
    +
    returns (QString)

  • +
  • readDate (str) +
    +
    returns (QDate) ok (bool)
    + +
    ArgumentTypeDefault
    strQString
    +

  • +
  • readDate (intstr, fmt) +
    +
    returns (QDate) ok (bool)
    + + +
    ArgumentTypeDefault
    intstrQString
    fmtQString
    +

  • +
  • readDate (str, flags) +
    + +
    returns (QDate) ok (bool)
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    strQString
    flagsKLocale.ReadDateFlags
    +

  • +
  • readMoney (numStr) +
    +
    returns (double) ok (bool)
    + +
    ArgumentTypeDefault
    numStrQString
    +

  • +
  • readNumber (numStr) +
    +
    returns (double) ok (bool)
    + +
    ArgumentTypeDefault
    numStrQString
    +

  • +
  • readTime (str) +
    +
    returns (QTime) ok (bool)
    + +
    ArgumentTypeDefault
    strQString
    +

  • +
  • readTime (str, flags) +
    + +
    returns (QTime) ok (bool)
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    strQString
    flagsKLocale.ReadTimeFlags
    +

  • +
  • removeCatalogue (catalog) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    catalogQString
    +

  • +
  • setActiveCatalogue (catalog) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    catalogQString
    +

  • +
  • setCalendar (calendarType) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    calendarTypeQString
    +

  • +
  • setCharset (charset) +
    Not Implemented
    +

  • +
  • setCountry (country) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    countryQString
    +

  • +
  • setCurrencySymbol (symbol) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    symbolQString
    +

  • +
  • setDateFormat (format) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    formatQString
    +

  • +
  • setDateFormatShort (format) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    formatQString
    +

  • +
  • setDateMonthNamePossessive (possessive) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    possessivebool
    +

  • +
  • setDecimalSymbol (symbol) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    symbolQString
    +

  • +
  • setEncoding (mibEnum) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    mibEnumint
    +

  • +
  • setFracDigits (digits) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    digitsint
    +

  • +
  • setLanguage (language) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    languageQString
    +

  • +
  • setLanguage (languages) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    languagesQStringList
    +

  • +
  • setMainCatalogue (catalog) +
    + +
    returns nothing
    static
    + +
    ArgumentTypeDefault
    catalogchar
    +

  • +
  • setMeasureSystem (value) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    valueKLocale.MeasureSystem
    +

  • +
  • setMonetaryDecimalSymbol (symbol) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    symbolQString
    +

  • +
  • setMonetaryThousandsSeparator (separator) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    separatorQString
    +

  • +
  • setNegativeMonetarySignPosition (signpos) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    signposKLocale.SignPosition
    +

  • +
  • setNegativePrefixCurrencySymbol (prefix) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    prefixbool
    +

  • +
  • setNegativeSign (sign) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    signQString
    +

  • +
  • setPageSize (paperFormat) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    paperFormatint
    +

  • +
  • setPositiveMonetarySignPosition (signpos) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    signposKLocale.SignPosition
    +

  • +
  • setPositivePrefixCurrencySymbol (prefix) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    prefixbool
    +

  • +
  • setPositiveSign (sign) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    signQString
    +

  • +
  • setThousandsSeparator (separator) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    separatorQString
    +

  • +
  • setTimeFormat (format) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    formatQString
    +

  • +
  • setWeekStartDay (day) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    dayint
    +

  • +
  • setWeekStartsMonday (start) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    startbool
    +

  • +
  • splitLocale (str, language, country, charset) +
    + +
    returns nothing
    static
    + + + + +
    ArgumentTypeDefault
    strQString
    languageQString
    countryQString
    charsetQString
    +

  • +
  • thousandsSeparator () +
    +
    returns (QString)

  • +
  • timeFormat () +
    +
    returns (QString)

  • +
  • translate (index) +
    +
    returns (QString)
    + +
    ArgumentTypeDefault
    indexchar
    +

  • +
  • translate (comment, fallback) +
    +
    returns (QString)
    + + +
    ArgumentTypeDefault
    commentchar
    fallbackchar
    +

  • +
  • translate (singular, plural, n) +
    +
    returns (QString)
    + + + +
    ArgumentTypeDefault
    singularchar
    pluralchar
    nulong
    +

  • +
  • translateQt (context, sourceText, message) +
    +
    returns (QString)
    + + + +
    ArgumentTypeDefault
    contextchar
    sourceTextchar
    messagechar
    +

  • +
  • twoAlphaToCountryName (code) +
    + +
    returns (QString)
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    codeQString
    +

  • +
  • twoAlphaToLanguageName (code) +
    + +
    returns (QString)
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    codeQString
    +

  • +
  • use12Clock () +
    +
    returns (bool)

  • +
  • weekDayName (i, shortName = 0) +
    +
    returns (QString)
    + + +
    ArgumentTypeDefault
    iint
    shortNamebool0
    +

  • +
  • weekStartDay () +
    + +
    returns (int)
    In versions KDE 3.1.0 and above only

  • +
  • weekStartsMonday () +
    +
    returns (bool)

  • +
+ + + diff --git a/doc/classref/kdecore/KLockFile.html b/doc/classref/kdecore/KLockFile.html new file mode 100644 index 0000000..437a563 --- /dev/null +++ b/doc/classref/kdecore/KLockFile.html @@ -0,0 +1,82 @@ + + + + + class KLockFile + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KLockFile


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKLockFile
InheritsKShared
+

enums

    +
  • LockOptions = {LockNoBlock, LockForce +}
  • LockResult = {LockOK, LockFail, LockError, LockStale +}
+

methods

    +
  • KLockFile (file) +
    + +
    returns a KLockFile instance
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    fileQString
    +

  • +
  • getLockInfo () +
    + +
    returns (bool) pid (int) hostname (QString) appname (QString)
    In versions KDE 3.3.0 and above only

  • +
  • isLocked () +
    + +
    returns (bool)
    In versions KDE 3.3.0 and above only

  • +
  • lock (options = 0) +
    + +
    returns (KLockFile.LockResult)
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    optionsint0
    +

  • +
  • setStaleTime (_staleTime) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    _staleTimeint
    +

  • +
  • staleTime () +
    + +
    returns (int)
    In versions KDE 3.3.0 and above only

  • +
  • unlock () +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only

  • +
+ + + diff --git a/doc/classref/kdecore/KMD4.html b/doc/classref/kdecore/KMD4.html new file mode 100644 index 0000000..3d9b8cf --- /dev/null +++ b/doc/classref/kdecore/KMD4.html @@ -0,0 +1,145 @@ + + + + + class KMD4 + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KMD4


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKMD4
Inherits
+

methods

    +
  • KMD4 () +
    + +
    returns a KMD4 instance
    In versions KDE 3.4.0 and above only

  • +
  • KMD4 (in, len = -1) +
    + +
    returns a KMD4 instance
    In versions KDE 3.4.0 and above only
    + + +
    ArgumentTypeDefault
    inchar
    lenint-1
    +

  • +
  • KMD4 (a) +
    + +
    returns a KMD4 instance
    In versions KDE 3.4.0 and above only
    + +
    ArgumentTypeDefault
    aQByteArray
    +

  • +
  • KMD4 (a) +
    + +
    returns a KMD4 instance
    In versions KDE 3.4.0 and above only
    + +
    ArgumentTypeDefault
    aQCString
    +

  • +
  • KMD4 (u) +
    + +
    returns a KMD4 instance
    In versions KDE 3.4.0 and above only
    + +
    ArgumentTypeDefault
    uKMD4
    +

  • +
  • base64Digest () +
    + +
    returns (QCString)
    In versions KDE 3.4.0 and above only

  • +
  • finalize () +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only

  • +
  • hexDigest () +
    + +
    returns (QCString)
    In versions KDE 3.4.0 and above only

  • +
  • hexDigest (a0) +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only
    + +
    ArgumentTypeDefault
    a0QCString
    +

  • +
  • rawDigest () +
    Not Implemented
    +

  • +
  • rawDigest (bin) +
    Not Implemented
    +

  • +
  • reset () +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only

  • +
  • transform (buf[4], in[16]) +
    Not Implemented
    +

  • +
  • update (in, len = -1) +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only
    + + +
    ArgumentTypeDefault
    inchar
    lenint-1
    +

  • +
  • update (in) +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only
    + +
    ArgumentTypeDefault
    inQByteArray
    +

  • +
  • update (in) +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only
    + +
    ArgumentTypeDefault
    inQCString
    +

  • +
  • update (file) +
    + +
    returns (bool)
    In versions KDE 3.4.0 and above only
    + +
    ArgumentTypeDefault
    fileQIODevice
    +

  • +
  • verify (digest) +
    Not Implemented
    +

  • +
  • verify (a0) +
    + +
    returns (bool)
    In versions KDE 3.4.0 and above only
    + +
    ArgumentTypeDefault
    a0QCString
    +

  • +
+ + + diff --git a/doc/classref/kdecore/KMD5.html b/doc/classref/kdecore/KMD5.html new file mode 100644 index 0000000..92e9ce8 --- /dev/null +++ b/doc/classref/kdecore/KMD5.html @@ -0,0 +1,144 @@ + + + + + class KMD5 + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KMD5


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKMD5
Inherits
+

methods

    +
  • KMD5 () +
    +
    returns a KMD5 instance

  • +
  • KMD5 (in, len = -1) +
    +
    returns a KMD5 instance
    + + +
    ArgumentTypeDefault
    inchar
    lenint-1
    +

  • +
  • KMD5 (a) +
    +
    returns a KMD5 instance
    + +
    ArgumentTypeDefault
    aQByteArray
    +

  • +
  • KMD5 (a) +
    +
    returns a KMD5 instance
    + +
    ArgumentTypeDefault
    aQCString
    +

  • +
  • KMD5 (u) +
    +
    returns a KMD5 instance
    + +
    ArgumentTypeDefault
    uKMD5
    +

  • +
  • base64Digest () +
    +
    returns (QCString)

  • +
  • finalize () +
    +
    returns nothing

  • +
  • hexDigest () +
    +
    returns (QCString)

  • +
  • hexDigest (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QCString
    +

  • +
  • rawDigest () +
    Not Implemented
    +

  • +
  • rawDigest (bin) +
    Not Implemented
    +

  • +
  • reset () +
    +
    returns nothing

  • +
  • transform (buffer[64]) +
    Not Implemented
    +

  • +
  • transform (a0) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    a0uchar
    +

  • +
  • transform (a0) +
    + +
    returns nothing
    In versions less than KDE 3.1.0 only
    + +
    ArgumentTypeDefault
    a0uchar
    +

  • +
  • update (in, len = -1) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    inchar
    lenint-1
    +

  • +
  • update (in) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    inQByteArray
    +

  • +
  • update (in) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    inQCString
    +

  • +
  • update (file) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    fileQIODevice
    +

  • +
  • verify (digest) +
    Not Implemented
    +

  • +
  • verify (a0) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    a0QCString
    +

  • +
+ + + diff --git a/doc/classref/kdecore/KMacroExpander.html b/doc/classref/kdecore/KMacroExpander.html new file mode 100644 index 0000000..9457645 --- /dev/null +++ b/doc/classref/kdecore/KMacroExpander.html @@ -0,0 +1,113 @@ + + + + + class KMacroExpander + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KMacroExpander


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKMacroExpander
Inherits
+

methods

    +
  • expandMacros (str, map, c = '%') +
    + +
    returns (QString)
    In versions KDE 3.2.0 and above only
    + + + +
    ArgumentTypeDefault
    strQString
    mapQMap
    cQChar'%'
    +

  • +
  • expandMacros (str, map, c = '%') +
    + +
    returns (QString)
    In versions KDE 3.2.0 and above only
    + + + +
    ArgumentTypeDefault
    strQString
    mapQMap
    cQChar'%'
    +

  • +
  • expandMacros (str, map, c = '%') +
    + +
    returns (QString)
    In versions KDE 3.2.0 and above only
    + + + +
    ArgumentTypeDefault
    strQString
    mapQMap
    cQChar'%'
    +

  • +
  • expandMacros (str, map, c = '%') +
    + +
    returns (QString)
    In versions KDE 3.2.0 and above only
    + + + +
    ArgumentTypeDefault
    strQString
    mapQMap
    cQChar'%'
    +

  • +
  • expandMacrosShellQuote (str, map, c = '%') +
    + +
    returns (QString)
    In versions KDE 3.2.0 and above only
    + + + +
    ArgumentTypeDefault
    strQString
    mapQMap
    cQChar'%'
    +

  • +
  • expandMacrosShellQuote (str, map, c = '%') +
    + +
    returns (QString)
    In versions KDE 3.2.0 and above only
    + + + +
    ArgumentTypeDefault
    strQString
    mapQMap
    cQChar'%'
    +

  • +
  • expandMacrosShellQuote (str, map, c = '%') +
    + +
    returns (QString)
    In versions KDE 3.2.0 and above only
    + + + +
    ArgumentTypeDefault
    strQString
    mapQMap
    cQChar'%'
    +

  • +
  • expandMacrosShellQuote (str, map, c = '%') +
    + +
    returns (QString)
    In versions KDE 3.2.0 and above only
    + + + +
    ArgumentTypeDefault
    strQString
    mapQMap
    cQChar'%'
    +

  • +
+ + + diff --git a/doc/classref/kdecore/KMacroExpanderBase.html b/doc/classref/kdecore/KMacroExpanderBase.html new file mode 100644 index 0000000..05a7928 --- /dev/null +++ b/doc/classref/kdecore/KMacroExpanderBase.html @@ -0,0 +1,99 @@ + + + + + class KMacroExpanderBase + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KMacroExpanderBase


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKMacroExpanderBase
Inherits
+

methods

    +
  • KMacroExpanderBase (c = '%') +
    + +
    returns a KMacroExpanderBase instance
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    cQChar'%'
    +

  • +
  • escapeChar () +
    + +
    returns (QChar)
    In versions KDE 3.2.0 and above only

  • +
  • expandEscapedMacro (str, pos, ret) +
    + +
    returns (int)
    In versions KDE 3.2.0 and above only
    + + + +
    ArgumentTypeDefault
    strQString
    posuint
    retQStringList
    +

  • +
  • expandMacros (str) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    strQString
    +

  • +
  • expandMacrosShellQuote (str, pos) +
    + +
    returns (bool) pos (uint)
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    strQString
    posuint
    +

  • +
  • expandMacrosShellQuote (str) +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    strQString
    +

  • +
  • expandPlainMacro (str, pos, ret) +
    + +
    returns (int)
    In versions KDE 3.2.0 and above only
    + + + +
    ArgumentTypeDefault
    strQString
    posuint
    retQStringList
    +

  • +
  • setEscapeChar (c) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    cQChar
    +

  • +
+ + + diff --git a/doc/classref/kdecore/KMimeSourceFactory.html b/doc/classref/kdecore/KMimeSourceFactory.html new file mode 100644 index 0000000..9773054 --- /dev/null +++ b/doc/classref/kdecore/KMimeSourceFactory.html @@ -0,0 +1,54 @@ + + + + + class KMimeSourceFactory + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KMimeSourceFactory


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKMimeSourceFactory
InheritsQMimeSourceFactory
+

methods

    +
  • KMimeSourceFactory (loader = KGlobal .iconLoader ()) +
    +
    returns a KMimeSourceFactory instance
    + +
    ArgumentTypeDefault
    loaderKIconLoaderKGlobal .iconLoader ()
    +

  • +
  • makeAbsolute (abs_or_rel_name, context) +
    +
    returns (QString)
    + + +
    ArgumentTypeDefault
    abs_or_rel_nameQString
    contextQString
    +

  • +
+ + + diff --git a/doc/classref/kdecore/KMountPoint.html b/doc/classref/kdecore/KMountPoint.html new file mode 100644 index 0000000..f57d224 --- /dev/null +++ b/doc/classref/kdecore/KMountPoint.html @@ -0,0 +1,92 @@ + + + + + class KMountPoint + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KMountPoint


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKMountPoint
InheritsKShared
+

enums

    +
  • (anonymous) = {NeedMountOptions, NeedRealDeviceName +}
+

methods

    +
  • KMountPoint () +
    + +
    returns a KMountPoint instance
    In versions KDE 3.2.0 and above only

  • +
  • currentMountPoints (infoNeeded = 0) +
    + + +
    returns (KMountPoint.List)
    In versions KDE 3.2.0 and above only
    static
    + +
    ArgumentTypeDefault
    infoNeededint0
    +

  • +
  • devNameFromOptions (options) +
    + + +
    returns (QString)
    In versions KDE 3.4.0 and above only
    static
    + +
    ArgumentTypeDefault
    optionsQStringList
    +

  • +
  • mountOptions () +
    + +
    returns (QStringList)
    In versions KDE 3.2.0 and above only

  • +
  • mountPoint () +
    + +
    returns (QString)
    In versions KDE 3.2.0 and above only

  • +
  • mountType () +
    + +
    returns (QString)
    In versions KDE 3.2.0 and above only

  • +
  • mountedFrom () +
    + +
    returns (QString)
    In versions KDE 3.2.0 and above only

  • +
  • possibleMountPoints (infoNeeded = 0) +
    + + +
    returns (KMountPoint.List)
    In versions KDE 3.2.0 and above only
    static
    + +
    ArgumentTypeDefault
    infoNeededint0
    +

  • +
  • realDeviceName () +
    + +
    returns (QString)
    In versions KDE 3.2.0 and above only

  • +
+ + + diff --git a/doc/classref/kdecore/KMultipleDrag.html b/doc/classref/kdecore/KMultipleDrag.html new file mode 100644 index 0000000..c7d6da6 --- /dev/null +++ b/doc/classref/kdecore/KMultipleDrag.html @@ -0,0 +1,82 @@ + + + + + class KMultipleDrag + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KMultipleDrag


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKMultipleDrag
InheritsQDragObject
+

methods

    +
  • KMultipleDrag (dragSource = 0, name = 0) +
    +
    returns a KMultipleDrag instance
    + + +
    ArgumentTypeDefault
    dragSourceQWidget0
    namechar0
    +

  • +
  • addDragObject (dragObject) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    dragObjectQDragObject
    +

  • +
  • encodedData (mime) +
    + +
    returns (QByteArray)
    In versions KDE 3.5.0 and above only
    + +
    ArgumentTypeDefault
    mimechar
    +

  • +
  • encodedData (a0) +
    + +
    returns (QByteArray)
    In versions less than KDE 3.5.0 only
    + +
    ArgumentTypeDefault
    a0char
    +

  • +
  • format (i) +
    + +
    returns (char)
    In versions KDE 3.5.0 and above only
    + +
    ArgumentTypeDefault
    iint
    +

  • +
  • format (a0) +
    + +
    returns (char)
    In versions less than KDE 3.5.0 only
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
+ + + diff --git a/doc/classref/kdecore/KNotifyClient.Instance.html b/doc/classref/kdecore/KNotifyClient.Instance.html new file mode 100644 index 0000000..397acf7 --- /dev/null +++ b/doc/classref/kdecore/KNotifyClient.Instance.html @@ -0,0 +1,58 @@ + + + + + class KNotifyClient.Instance + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KNotifyClient.Instance


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKNotifyClient.Instance
Inherits
+

methods

    +
  • Instance (instance) +
    +
    returns a Instance instance
    + +
    ArgumentTypeDefault
    instanceKInstance
    +

  • +
  • current () +
    + +
    returns (KInstance)
    static

  • +
  • currentInstance () +
    + +
    returns (KNotifyClient.Instance)
    static

  • +
  • useSystemBell () +
    +
    returns (bool)

  • +
+ + + diff --git a/doc/classref/kdecore/KNotifyClient.html b/doc/classref/kdecore/KNotifyClient.html new file mode 100644 index 0000000..853faae --- /dev/null +++ b/doc/classref/kdecore/KNotifyClient.html @@ -0,0 +1,148 @@ + + + + + class KNotifyClient + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KNotifyClient


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKNotifyClient
Inherits
+

classes

+

enums

    +
  • (anonymous) = {Default, Sound, Messagebox, Logfile, Stderr +}
  • (anonymous) = {Default, Sound, Messagebox, Logfile, Stderr +}
  • (anonymous) = {Default, Sound, Messagebox, Logfile, Stderr +}
  • (anonymous) = {Default, Sound, Messagebox, Logfile, Stderr +}
  • StandardEvent = {cannotOpenFile, notification, warning, fatalError, catastrophe +}
+

methods

    +
  • beep (reason = QString .null) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    reasonQStringQString .null
    +

  • +
  • event (winId, event, text = QString .null) +
    + +
    returns (int)
    In versions KDE 3.2.0 and above only
    + + + +
    ArgumentTypeDefault
    winIdint
    eventKNotifyClient.StandardEvent
    textQStringQString .null
    +

  • +
  • event (winId, event, text = QString .null) +
    + +
    returns (int)
    In versions KDE 3.2.0 and above only
    + + + +
    ArgumentTypeDefault
    winIdint
    eventKNotifyClient.StandardEvent
    textQStringQString .null
    +

  • +
  • event (winId, event, text = QString .null) +
    + +
    returns (int)
    In versions KDE 3.2.0 and above only
    + + + +
    ArgumentTypeDefault
    winIdint
    eventKNotifyClient.StandardEvent
    textQStringQString .null
    +

  • +
  • event (winId, event, text = QString .null) +
    + +
    returns (int)
    In versions KDE 3.2.0 and above only
    + + + +
    ArgumentTypeDefault
    winIdint
    eventKNotifyClient.StandardEvent
    textQStringQString .null
    +

  • +
  • getDefaultFile (eventname, present) +
    +
    returns (QString)
    + + +
    ArgumentTypeDefault
    eventnameQString
    presentint
    +

  • +
  • getDefaultPresentation (eventname) +
    +
    returns (int)
    + +
    ArgumentTypeDefault
    eventnameQString
    +

  • +
  • getFile (eventname, present) +
    +
    returns (QString)
    + + +
    ArgumentTypeDefault
    eventnameQString
    presentint
    +

  • +
  • getPresentation (eventname) +
    +
    returns (int)
    + +
    ArgumentTypeDefault
    eventnameQString
    +

  • +
  • instance () +
    +
    returns (KInstance)

  • +
  • startDaemon () +
    +
    returns (bool)

  • +
  • userEvent (winId, text = QString .null, present = KNotifyClient .Default, level = KNotifyClient .Default, sound = QString .null, file = QString .null) +
    + +
    returns (int)
    In versions KDE 3.2.0 and above only
    + + + + + + +
    ArgumentTypeDefault
    winIdint
    textQStringQString .null
    presentintKNotifyClient .Default
    levelintKNotifyClient .Default
    soundQStringQString .null
    fileQStringQString .null
    +

  • +
  • userEvent (winId, text = QString .null, present = KNotifyClient .Default, level = KNotifyClient .Default, sound = QString .null, file = QString .null) +
    + +
    returns (int)
    In versions KDE 3.2.0 and above only
    + + + + + + +
    ArgumentTypeDefault
    winIdint
    textQStringQString .null
    presentintKNotifyClient .Default
    levelintKNotifyClient .Default
    soundQStringQString .null
    fileQStringQString .null
    +

  • +
+ + + diff --git a/doc/classref/kdecore/KPalette.html b/doc/classref/kdecore/KPalette.html new file mode 100644 index 0000000..f4a39d1 --- /dev/null +++ b/doc/classref/kdecore/KPalette.html @@ -0,0 +1,140 @@ + + + + + class KPalette + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KPalette


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKPalette
Inherits
+

enums

    +
  • Editable = {Yes, No, Ask +}
+

methods

    +
  • KPalette (name = QString .null) +
    +
    returns a KPalette instance
    + +
    ArgumentTypeDefault
    nameQStringQString .null
    +

  • +
  • KPalette (a0) +
    +
    returns a KPalette instance
    + +
    ArgumentTypeDefault
    a0KPalette
    +

  • +
  • addColor (newColor, newColorName = QString .null) +
    +
    returns (int)
    + + +
    ArgumentTypeDefault
    newColorQColor
    newColorNameQStringQString .null
    +

  • +
  • changeColor (index, newColor, newColorName = QString .null) +
    +
    returns (int)
    + + + +
    ArgumentTypeDefault
    indexint
    newColorQColor
    newColorNameQStringQString .null
    +

  • +
  • changeColor (oldColor, newColor, newColorName = QString .null) +
    +
    returns (int)
    + + + +
    ArgumentTypeDefault
    oldColorQColor
    newColorQColor
    newColorNameQStringQString .null
    +

  • +
  • color (index) +
    +
    returns (QColor)
    + +
    ArgumentTypeDefault
    indexint
    +

  • +
  • colorName (index) +
    +
    returns (QString)
    + +
    ArgumentTypeDefault
    indexint
    +

  • +
  • colorName (color) +
    +
    returns (QString)
    + +
    ArgumentTypeDefault
    colorQColor
    +

  • +
  • description () +
    +
    returns (QString)

  • +
  • editable () +
    +
    returns (Editable)

  • +
  • findColor (color) +
    +
    returns (int)
    + +
    ArgumentTypeDefault
    colorQColor
    +

  • +
  • getPaletteList () +
    + +
    returns (QStringList)
    static

  • +
  • name () +
    +
    returns (QString)

  • +
  • nrColors () +
    +
    returns (int)

  • +
  • save () +
    +
    returns (bool)

  • +
  • setDescription (desc) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    descQString
    +

  • +
  • setEditable (editable) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    editableKPalette.Editable
    +

  • +
  • setName (name) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    nameQString
    +

  • +
+ + + diff --git a/doc/classref/kdecore/KPixmapProvider.html b/doc/classref/kdecore/KPixmapProvider.html new file mode 100644 index 0000000..1248b6c --- /dev/null +++ b/doc/classref/kdecore/KPixmapProvider.html @@ -0,0 +1,49 @@ + + + + + class KPixmapProvider + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KPixmapProvider


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKPixmapProvider (abstract)
Inherits
+

methods

    +
  • pixmapFor (text, size = 0) = 0 +
    + +
    returns (QPixmap)
    pure virtual
    + + +
    ArgumentTypeDefault
    textQString
    sizeint0
    +

  • +
+ + + diff --git a/doc/classref/kdecore/KProcIO.html b/doc/classref/kdecore/KProcIO.html new file mode 100644 index 0000000..c84f248 --- /dev/null +++ b/doc/classref/kdecore/KProcIO.html @@ -0,0 +1,139 @@ + + + + + class KProcIO + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KProcIO


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKProcIO
InheritsKProcess
+

methods

    +
  • KProcIO (codec = 0) +
    +
    returns a KProcIO instance
    + +
    ArgumentTypeDefault
    codecQTextCodec0
    +

  • +
  • ackRead () +
    +
    returns nothing

  • +
  • closeWhenDone () +
    +
    returns nothing

  • +
  • controlledEmission () +
    +
    returns nothing

  • +
  • enableReadSignals (enable) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    enablebool
    +

  • +
  • fgets (line, autoAck = 0) +
    +
    returns (int)
    + + +
    ArgumentTypeDefault
    lineQString
    autoAckbool0
    +

  • +
  • fputs (line, AppendNewLine = 1) +
    +
    returns (bool)
    + + +
    ArgumentTypeDefault
    lineQString
    AppendNewLinebool1
    +

  • +
  • readReady (pio) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    pioKProcIO
    +

  • +
  • readln (autoAck = 1) +
    +
    returns (int) line (QString) partial (bool)
    + +
    ArgumentTypeDefault
    autoAckbool1
    +

  • +
  • received (proc, buffer, buflen) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    procKProcess
    bufferchar
    buflenint
    +

  • +
  • resetAll () +
    +
    returns nothing

  • +
  • sent (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KProcess
    +

  • +
  • setComm (comm) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    commCommunication
    +

  • +
  • start (runmode = NotifyOnExit, includeStderr = 0) +
    +
    returns (bool)
    + + +
    ArgumentTypeDefault
    runmodeRunModeNotifyOnExit
    includeStderrbool0
    +

  • +
  • writeStdin (line, appendnewline = 1) +
    +
    returns (bool)
    + + +
    ArgumentTypeDefault
    lineQString
    appendnewlinebool1
    +

  • +
  • writeStdin (line, appendnewline) +
    +
    returns (bool)
    + + +
    ArgumentTypeDefault
    lineQCString
    appendnewlinebool
    +

  • +
  • writeStdin (data) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    dataQByteArray
    +

  • +
+ + + diff --git a/doc/classref/kdecore/KProcess.html b/doc/classref/kdecore/KProcess.html new file mode 100644 index 0000000..f85968d --- /dev/null +++ b/doc/classref/kdecore/KProcess.html @@ -0,0 +1,348 @@ + + + + + class KProcess + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KProcess


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKProcess
InheritsQObject
+

enums

    +
  • (anonymous) = {PrioLowest, PrioLow, PrioLower, PrioNormal, PrioHigher, PrioHigh, PrioHighest +}
  • Communication = {NoCommunication, Stdin, Stdout, Stderr, AllOutput, All, NoRead, CTtyOnly, MergedStderr +}
  • Communication = {NoCommunication, Stdin, Stdout, Stderr, AllOutput, All, NoRead +}
  • RunMode = {DontCare, NotifyOnExit, Block, OwnGroup +}
  • RunMode = {DontCare, NotifyOnExit, Block +}
+

methods

    +
  • KProcess (parent, name = 0) +
    + +
    returns a KProcess instance
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    parentQObject
    namechar0
    +

  • +
  • KProcess () +
    +
    returns a KProcess instance

  • +
  • KProcess (a0) +
    + +
    returns a KProcess instance
    In versions less than KDE 3.2.0 only
    + +
    ArgumentTypeDefault
    a0KProcess
    +

  • +
  • args () +
    +
    returns (QValueList)

  • +
  • childError (fdno) +
    +
    returns (int)
    + +
    ArgumentTypeDefault
    fdnoint
    +

  • +
  • childOutput (fdno) +
    +
    returns (int)
    + +
    ArgumentTypeDefault
    fdnoint
    +

  • +
  • clearArguments () +
    +
    returns nothing

  • +
  • closeAll () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • closePty () +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only

  • +
  • closeStderr () +
    +
    returns (bool)

  • +
  • closeStdin () +
    +
    returns (bool)

  • +
  • closeStdout () +
    +
    returns (bool)

  • +
  • commClose () +
    +
    returns nothing

  • +
  • commSetupDoneC () +
    +
    returns (int)

  • +
  • commSetupDoneP () +
    +
    returns (int)

  • +
  • coreDumped () +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only

  • +
  • detach () +
    +
    returns nothing

  • +
  • exitSignal () +
    + +
    returns (int)
    In versions KDE 3.2.0 and above only

  • +
  • exitStatus () +
    +
    returns (int)

  • +
  • getPid () +
    +
    returns (pid_t)

  • +
  • isRunning () +
    +
    returns (bool)

  • +
  • kill (signo = SIGTERM) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    signointSIGTERM
    +

  • +
  • normalExit () +
    +
    returns (bool)

  • +
  • pid () +
    +
    returns (pid_t)

  • +
  • processExited (proc) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    procKProcess
    +

  • +
  • processHasExited (state) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    stateint
    +

  • +
  • pty () +
    + +
    returns (KPty)
    In versions KDE 3.2.0 and above, but less than KDE 3.4.0

  • +
  • quote (arg) +
    + + +
    returns (QString)
    In versions KDE 3.1.0 and above only
    static
    + +
    ArgumentTypeDefault
    argQString
    +

  • +
  • receivedStderr (proc, buffer, buflen) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    procKProcess
    bufferchar
    buflenint
    +

  • +
  • receivedStdout (proc, buffer, buflen) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    procKProcess
    bufferchar
    buflenint
    +

  • +
  • receivedStdout (fd) +
    Not Implemented
    +

  • +
  • resume () +
    +
    returns nothing

  • +
  • runPrivileged () +
    +
    returns (bool)

  • +
  • setArguments (arglist) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    arglista Python list of strings
    +
    setArguments is the PyKDE equivalent of the stream operator methods (<<) +in KDE's KProcess class - provide with a list of strings representing +the arguments to the executable program set with setExecutable (PyKDE +will continue to provide setExecutable even though it's deprecated in +KDE (to also be replaced with stream operators) +

  • +
  • setBinaryExecutable (filename) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    filenamechar
    +

  • +
  • setEnvironment (name, value) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    nameQString
    valueQString
    +

  • +
  • setExecutable (proc) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    procQString
    +

  • +
  • setPriority (prio) +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    prioint
    +

  • +
  • setRunPrivileged (keepPrivileges) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    keepPrivilegesbool
    +

  • +
  • setUsePty (a0, a1) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above, but less than KDE 3.4.0
    + + +
    ArgumentTypeDefault
    a0KProcess.Communication
    a1bool
    +

  • +
  • setUseShell (useShell, shell = 0) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + + +
    ArgumentTypeDefault
    useShellbool
    shellchar0
    +

  • +
  • setWorkingDirectory (dir) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    dirQString
    +

  • +
  • setupCommunication (comm) +
    +
    returns (int)
    + +
    ArgumentTypeDefault
    commKProcess.Communication
    +

  • +
  • setupEnvironment () +
    +
    returns nothing

  • +
  • signalled () +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only

  • +
  • slotChildError (fdno) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    fdnoint
    +

  • +
  • slotChildOutput (fdno) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    fdnoint
    +

  • +
  • slotSendData (dummy) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    dummyint
    +

  • +
  • start (runmode = NotifyOnExit, comm = NoCommunication) +
    +
    returns (bool)
    + + +
    ArgumentTypeDefault
    runmodeKProcess.RunModeNotifyOnExit
    commKProcess.CommunicationNoCommunication
    +

  • +
  • suspend () +
    +
    returns nothing

  • +
  • wait (timeout = -1) +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    timeoutint-1
    +

  • +
  • writeStdin (buffer, buflen) +
    +
    returns (bool)
    + + +
    ArgumentTypeDefault
    bufferchar
    buflenint
    +

  • +
  • wroteStdin (proc) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    procKProcess
    +

  • +
+

operators

    +
  • operator << (a0) +
    + +
    returns (KProcess)
    In versions KDE 3.1.4 and above only
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • operator << (a0) +
    + +
    returns (KProcess)
    In versions KDE 3.1.4 and above only
    + +
    ArgumentTypeDefault
    a0char
    +

  • +
  • operator << (a0) +
    + +
    returns (KProcess)
    In versions KDE 3.1.4 and above only
    + +
    ArgumentTypeDefault
    a0QCString
    +

  • +
  • operator << (a0) +
    + +
    returns (KProcess)
    In versions KDE 3.1.4 and above only
    + +
    ArgumentTypeDefault
    a0QStringList
    +

  • +
+ + + diff --git a/doc/classref/kdecore/KProcessController.html b/doc/classref/kdecore/KProcessController.html new file mode 100644 index 0000000..eb2a92d --- /dev/null +++ b/doc/classref/kdecore/KProcessController.html @@ -0,0 +1,134 @@ + + + + + class KProcessController + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KProcessController


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKProcessController
InheritsQObject
+

methods

    +
  • KProcessController () +
    + +
    returns a KProcessController instance
    In versions KDE 3.1.0 and above only

  • +
  • KProcessController (a0) +
    +
    returns a KProcessController instance
    + +
    ArgumentTypeDefault
    a0KProcessController
    +

  • +
  • KProcessController () +
    + +
    returns a KProcessController instance
    In versions less than KDE 3.1.0 only

  • +
  • addKProcess (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KProcess
    +

  • +
  • addProcess (pid) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    pidint
    +

  • +
  • deref () +
    + + +
    returns nothing
    In versions KDE 3.2.0 and above only
    static

  • +
  • notifierFd () +
    + +
    returns (int)
    In versions KDE 3.2.0 and above only

  • +
  • ref () +
    + + +
    returns nothing
    In versions KDE 3.2.0 and above only
    static

  • +
  • removeKProcess (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KProcess
    +

  • +
  • rescheduleCheck () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • resetHandlers () +
    + + +
    returns nothing
    In versions less than KDE 3.2.0 only
    static

  • +
  • setupHandlers () +
    + + +
    returns nothing
    In versions less than KDE 3.2.0 only
    static

  • +
  • slotDoHousekeeping (a0) +
    + +
    returns nothing
    In versions less than KDE 3.2.0 only
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • theSigCHLDHandler (signal) +
    + +
    returns nothing
    static
    + +
    ArgumentTypeDefault
    signalint
    +

  • +
  • unscheduleCheck () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • waitForProcessExit (timeout) +
    + +
    returns (bool)
    In versions KDE 3.0.3 and above only
    + +
    ArgumentTypeDefault
    timeoutint
    +

  • +
  • ~KProcessController () +
    +
    returns nothing

  • +
+

variables

  • +variables + +
    VariableType
    theKProcessControllerKProcessController*
+ + + diff --git a/doc/classref/kdecore/KPty.html b/doc/classref/kdecore/KPty.html new file mode 100644 index 0000000..fdccfa3 --- /dev/null +++ b/doc/classref/kdecore/KPty.html @@ -0,0 +1,96 @@ + + + + + class KPty + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KPty


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKPty
Inherits
+

methods

    +
  • KPty () +
    + +
    returns a KPty instance
    In versions KDE 3.2.0 and above only

  • +
  • close () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • login (user = 0, remotehost = 0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    userchar0
    remotehostchar0
    +

  • +
  • logout () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • masterFd () +
    + +
    returns (int)
    In versions KDE 3.2.0 and above only

  • +
  • open () +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only

  • +
  • setCTty () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • setWinSize (lines, columns) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    linesint
    columnsint
    +

  • +
  • setXonXoff (useXonXoff) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    useXonXoffbool
    +

  • +
  • slaveFd () +
    + +
    returns (int)
    In versions KDE 3.2.0 and above only

  • +
  • ttyName () +
    + +
    returns (char)
    In versions KDE 3.2.0 and above only

  • +
+ + + diff --git a/doc/classref/kdecore/KRFCDate.html b/doc/classref/kdecore/KRFCDate.html new file mode 100644 index 0000000..26fea69 --- /dev/null +++ b/doc/classref/kdecore/KRFCDate.html @@ -0,0 +1,74 @@ + + + + + class KRFCDate + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KRFCDate


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKRFCDate
Inherits
+

methods

    +
  • localUTCOffset () +
    + +
    returns (int)
    static

  • +
  • parseDate (date) +
    + +
    returns (time_t)
    static
    + +
    ArgumentTypeDefault
    dateQString
    +

  • +
  • parseDateISO8601 (date) +
    + +
    returns (time_t)
    static
    + +
    ArgumentTypeDefault
    dateQString
    +

  • +
  • rfc2822DateString (utcTime, utcOffset) +
    + +
    returns (QCString)
    static
    + + +
    ArgumentTypeDefault
    utcTimetime_t
    utcOffsetint
    +

  • +
  • rfc2822DateString (utcTime) +
    + +
    returns (QCString)
    static
    + +
    ArgumentTypeDefault
    utcTimetime_t
    +

  • +
+ + + diff --git a/doc/classref/kdecore/KRandomSequence.html b/doc/classref/kdecore/KRandomSequence.html new file mode 100644 index 0000000..6074d9d --- /dev/null +++ b/doc/classref/kdecore/KRandomSequence.html @@ -0,0 +1,80 @@ + + + + + class KRandomSequence + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KRandomSequence


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKRandomSequence
Inherits
+

methods

    +
  • KRandomSequence (lngSeed = 0) +
    +
    returns a KRandomSequence instance
    + +
    ArgumentTypeDefault
    lngSeedlong0
    +

  • +
  • KRandomSequence (a) +
    +
    returns a KRandomSequence instance
    + +
    ArgumentTypeDefault
    aKRandomSequence
    +

  • +
  • getBool () +
    +
    returns (bool)

  • +
  • getDouble () +
    +
    returns (double)

  • +
  • getLong (max) +
    +
    returns (ulong)
    + +
    ArgumentTypeDefault
    maxulong
    +

  • +
  • modulate (i) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    iint
    +

  • +
  • randomize (list) +
    Not Implemented
    +

  • +
  • setSeed (lngSeed = 1) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    lngSeedlong1
    +

  • +
+ + + diff --git a/doc/classref/kdecore/KRegExp.html b/doc/classref/kdecore/KRegExp.html new file mode 100644 index 0000000..5530768 --- /dev/null +++ b/doc/classref/kdecore/KRegExp.html @@ -0,0 +1,82 @@ + + + + + class KRegExp + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KRegExp


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKRegExp
Inherits
+

methods

    +
  • KRegExp () +
    +
    returns a KRegExp instance

  • +
  • KRegExp (_pattern, _mode = "") +
    +
    returns a KRegExp instance
    + + +
    ArgumentTypeDefault
    _patternchar
    _modechar""
    +

  • +
  • compile (_pattern, _mode = "") +
    +
    returns (bool)
    + + +
    ArgumentTypeDefault
    _patternchar
    _modechar""
    +

  • +
  • group (_grp) +
    +
    returns (char)
    + +
    ArgumentTypeDefault
    _grpint
    +

  • +
  • groupEnd (_grp) +
    +
    returns (int)
    + +
    ArgumentTypeDefault
    _grpint
    +

  • +
  • groupStart (_grp) +
    +
    returns (int)
    + +
    ArgumentTypeDefault
    _grpint
    +

  • +
  • match (_string) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    _stringchar
    +

  • +
+ + + diff --git a/doc/classref/kdecore/KRootProp.html b/doc/classref/kdecore/KRootProp.html new file mode 100644 index 0000000..0ceefbf --- /dev/null +++ b/doc/classref/kdecore/KRootProp.html @@ -0,0 +1,127 @@ + + + + + class KRootProp + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KRootProp


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKRootProp
Inherits
+

methods

    +
  • KRootProp (rProp = QString .null) +
    +
    returns a KRootProp instance
    + +
    ArgumentTypeDefault
    rPropQStringQString .null
    +

  • +
  • destroy () +
    +
    returns nothing

  • +
  • listEntries () +
    +
    returns (QStringList)

  • +
  • prop () +
    +
    returns (QString)

  • +
  • readColorEntry (rKey, pDefault = 0) +
    +
    returns (QColor)
    + + +
    ArgumentTypeDefault
    rKeyQString
    pDefaultQColor0
    +

  • +
  • readEntry (rKey, pDefault = QString .null) +
    +
    returns (QString)
    + + +
    ArgumentTypeDefault
    rKeyQString
    pDefaultQStringQString .null
    +

  • +
  • readFontEntry (rKey, pDefault = 0) +
    +
    returns (QFont)
    + + +
    ArgumentTypeDefault
    rKeyQString
    pDefaultQFont0
    +

  • +
  • readNumEntry (rKey, nDefault = 0) +
    +
    returns (int)
    + + +
    ArgumentTypeDefault
    rKeyQString
    nDefaultint0
    +

  • +
  • removeEntry (rKey) +
    +
    returns (QString)
    + +
    ArgumentTypeDefault
    rKeyQString
    +

  • +
  • setProp (rProp = "") +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    rPropQString""
    +

  • +
  • sync () +
    +
    returns nothing

  • +
  • writeEntry (rKey, rValue) +
    +
    returns (QString)
    + + +
    ArgumentTypeDefault
    rKeyQString
    rValueQString
    +

  • +
  • writeEntry (rKey, nValue) +
    +
    returns (QString)
    + + +
    ArgumentTypeDefault
    rKeyQString
    nValueint
    +

  • +
  • writeEntry (rKey, rFont) +
    +
    returns (QString)
    + + +
    ArgumentTypeDefault
    rKeyQString
    rFontQFont
    +

  • +
  • writeEntry (rKey, rColor) +
    +
    returns (QString)
    + + +
    ArgumentTypeDefault
    rKeyQString
    rColorQColor
    +

  • +
+ + + diff --git a/doc/classref/kdecore/KSaveFile.html b/doc/classref/kdecore/KSaveFile.html new file mode 100644 index 0000000..baaa9eb --- /dev/null +++ b/doc/classref/kdecore/KSaveFile.html @@ -0,0 +1,85 @@ + + + + + class KSaveFile + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KSaveFile


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKSaveFile
Inherits
+

methods

    +
  • KSaveFile (filename, mode = 438) +
    +
    returns a KSaveFile instance
    + + +
    ArgumentTypeDefault
    filenameQString
    modeint438
    +

  • +
  • abort () +
    +
    returns nothing

  • +
  • backupFile (filename, backupDir = QString .null, backupExtension = QString .fromLatin1 ("~" )) +
    + + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    static
    + + + +
    ArgumentTypeDefault
    filenameQString
    backupDirQStringQString .null
    backupExtensionQStringQString .fromLatin1 ("~" )
    +

  • +
  • close () +
    +
    returns (bool)

  • +
  • dataStream () +
    +
    returns (QDataStream)

  • +
  • file () +
    +
    returns (QFile)

  • +
  • fstream () +
    Not Implemented
    +

  • +
  • handle () +
    +
    returns (int)

  • +
  • name () +
    +
    returns (QString)

  • +
  • status () +
    +
    returns (int)

  • +
  • textStream () +
    +
    returns (QTextStream)

  • +
+ + + diff --git a/doc/classref/kdecore/KSelectionOwner.html b/doc/classref/kdecore/KSelectionOwner.html new file mode 100644 index 0000000..7891f30 --- /dev/null +++ b/doc/classref/kdecore/KSelectionOwner.html @@ -0,0 +1,114 @@ + + + + + class KSelectionOwner + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KSelectionOwner


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKSelectionOwner
InheritsQObject
+

methods

    +
  • KSelectionOwner (selection, screen = -1, parent = 0) +
    + +
    returns a KSelectionOwner instance
    In versions KDE 3.2.0 and above only
    + + + +
    ArgumentTypeDefault
    selectionAtom
    screenint-1
    parentQObject0
    +

  • +
  • KSelectionOwner (selection, screen = -1, parent = 0) +
    + +
    returns a KSelectionOwner instance
    In versions KDE 3.2.0 and above only
    + + + +
    ArgumentTypeDefault
    selectionchar
    screenint-1
    parentQObject0
    +

  • +
  • claim (force, force_kill = 1) +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    forcebool
    force_killbool1
    +

  • +
  • filterEvent (ev_P) +
    Not Implemented
    +

  • +
  • genericReply (target, property, requestor) +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    + + + +
    ArgumentTypeDefault
    targetAtom
    propertyAtom
    requestorWindow
    +

  • +
  • getAtoms () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • handleMessage (ev) +
    Not Implemented
    +

  • +
  • lostOwnership () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • ownerWindow () +
    + +
    returns (Window)
    In versions KDE 3.2.0 and above only

  • +
  • release () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • replyTargets (property, requestor) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    propertyAtom
    requestorWindow
    +

  • +
  • setData (extra1, extra2) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    extra1long
    extra2long
    +

  • +
+ + + diff --git a/doc/classref/kdecore/KSelectionWatcher.html b/doc/classref/kdecore/KSelectionWatcher.html new file mode 100644 index 0000000..2b3faff --- /dev/null +++ b/doc/classref/kdecore/KSelectionWatcher.html @@ -0,0 +1,77 @@ + + + + + class KSelectionWatcher + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KSelectionWatcher


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKSelectionWatcher
InheritsQObject
+

methods

    +
  • KSelectionWatcher (selection, screen = -1, parent = 0) +
    + +
    returns a KSelectionWatcher instance
    In versions KDE 3.2.0 and above only
    + + + +
    ArgumentTypeDefault
    selectionAtom
    screenint-1
    parentQObject0
    +

  • +
  • KSelectionWatcher (selection, screen = -1, parent = 0) +
    + +
    returns a KSelectionWatcher instance
    In versions KDE 3.2.0 and above only
    + + + +
    ArgumentTypeDefault
    selectionchar
    screenint-1
    parentQObject0
    +

  • +
  • filterEvent (ev_P) +
    Not Implemented
    +

  • +
  • lostOwner () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • newOwner (owner) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    ownerWindow
    +

  • +
  • owner () +
    + +
    returns (Window)
    In versions KDE 3.2.0 and above only

  • +
+ + + diff --git a/doc/classref/kdecore/KServerSocket.html b/doc/classref/kdecore/KServerSocket.html new file mode 100644 index 0000000..1ce054e --- /dev/null +++ b/doc/classref/kdecore/KServerSocket.html @@ -0,0 +1,108 @@ + + + + + class KServerSocket + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KServerSocket


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKServerSocket
InheritsQObject
+

methods

    +
  • KServerSocket (_port, _bind) +
    +
    returns a KServerSocket instance
    + + +
    ArgumentTypeDefault
    _portushort
    _bindbool
    +

  • +
  • KServerSocket (_path, _bind) +
    +
    returns a KServerSocket instance
    + + +
    ArgumentTypeDefault
    _pathchar
    _bindbool
    +

  • +
  • KServerSocket (a0) +
    +
    returns a KServerSocket instance
    + +
    ArgumentTypeDefault
    a0KServerSocket
    +

  • +
  • KServerSocket (a0) +
    + +
    returns a KServerSocket instance
    In versions less than KDE 3.1.2 only
    + +
    ArgumentTypeDefault
    a0ushort
    +

  • +
  • KServerSocket (a0) +
    + +
    returns a KServerSocket instance
    In versions less than KDE 3.1.2 only
    + +
    ArgumentTypeDefault
    a0char
    +

  • +
  • accepted (s) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    sKSocket
    +

  • +
  • bindAndListen () +
    +
    returns (bool)

  • +
  • init (a0) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    a0ushort
    +

  • +
  • init (_path) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    _pathchar
    +

  • +
  • port () +
    +
    returns (ushort)

  • +
  • slotAccept (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • socket () +
    +
    returns (int)

  • +
+ + + diff --git a/doc/classref/kdecore/KSessionManaged.html b/doc/classref/kdecore/KSessionManaged.html new file mode 100644 index 0000000..411fabe --- /dev/null +++ b/doc/classref/kdecore/KSessionManaged.html @@ -0,0 +1,56 @@ + + + + + class KSessionManaged + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KSessionManaged


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKSessionManaged
Inherits
+

methods

    +
  • KSessionManaged () +
    +
    returns a KSessionManaged instance

  • +
  • commitData (sm) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    smQSessionManager
    +

  • +
  • saveState (sm) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    smQSessionManager
    +

  • +
+ + + diff --git a/doc/classref/kdecore/KShared.html b/doc/classref/kdecore/KShared.html new file mode 100644 index 0000000..7cdf687 --- /dev/null +++ b/doc/classref/kdecore/KShared.html @@ -0,0 +1,62 @@ + + + + + class KShared + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KShared


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKShared
Inherits
+

methods

    +
  • KShared () +
    +
    returns a KShared instance

  • +
  • KShared (a0) +
    +
    returns a KShared instance
    + +
    ArgumentTypeDefault
    a0KShared
    +

  • +
  • _KShared_count () +
    +
    returns (int)

  • +
  • _KShared_ref () +
    +
    returns nothing

  • +
  • _KShared_unref () +
    +
    returns nothing

  • +
  • ~KShared () +
    +
    returns nothing

  • +
+ + + diff --git a/doc/classref/kdecore/KSharedConfig.html b/doc/classref/kdecore/KSharedConfig.html new file mode 100644 index 0000000..fe7fa39 --- /dev/null +++ b/doc/classref/kdecore/KSharedConfig.html @@ -0,0 +1,64 @@ + + + + + class KSharedConfig + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KSharedConfig


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKSharedConfig
InheritsKConfig, KShared
+

methods

    +
  • KSharedConfig (fileName, immutable, useKDEGlobals) +
    + +
    returns a KSharedConfig instance
    In versions KDE 3.2.0 and above only
    + + + +
    ArgumentTypeDefault
    fileNameQString
    immutablebool
    useKDEGlobalsbool
    +

  • +
  • openConfig (fileName, immutable = 0, bUseKDEGlobals = 1) +
    + + +
    returns (KSharedConfig.Ptr)
    In versions KDE 3.2.0 and above only
    static
    + + + +
    ArgumentTypeDefault
    fileNameQString
    immutablebool0
    bUseKDEGlobalsbool1
    +

  • +
  • ~KSharedConfig () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
+ + + diff --git a/doc/classref/kdecore/KShell.html b/doc/classref/kdecore/KShell.html new file mode 100644 index 0000000..864280d --- /dev/null +++ b/doc/classref/kdecore/KShell.html @@ -0,0 +1,88 @@ + + + + + class KShell + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KShell


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKShell
Inherits
+

enums

    +
  • Errors = {NoError, BadQuoting, FoundMeta +}
  • Options = {NoOptions, TildeExpand, AbortOnMeta +}
+

methods

    +
  • homeDir (user) +
    + +
    returns (QString)
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    userQString
    +

  • +
  • joinArgs (a0) +
    + +
    returns (QString),
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0 Python list of string
    +

  • +
  • joinArgs (a0) +
    + +
    returns (QString),
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0 Python list of string
    +

  • +
  • joinArgsDQ (args) +
    + +
    returns (QString)
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    argsQStringList
    +

  • +
  • splitArgs (cmd, flags = 0) +
    + +
    returns (QStringList) err (int)
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    cmdQString
    flagsint0
    +

  • +
  • tildeExpand (path) +
    + +
    returns (QString)
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    pathQString
    +

  • +
+ + + diff --git a/doc/classref/kdecore/KShellProcess.html b/doc/classref/kdecore/KShellProcess.html new file mode 100644 index 0000000..31825ee --- /dev/null +++ b/doc/classref/kdecore/KShellProcess.html @@ -0,0 +1,68 @@ + + + + + class KShellProcess + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KShellProcess


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKShellProcess
InheritsKProcess
+

methods

    +
  • KShellProcess (shellname = 0) +
    +
    returns a KShellProcess instance
    + +
    ArgumentTypeDefault
    shellnamechar0
    +

  • +
  • KShellProcess (a0) +
    + +
    returns a KShellProcess instance
    In versions less than KDE 3.2.0 only
    + +
    ArgumentTypeDefault
    a0KShellProcess
    +

  • +
  • quote (arg) +
    + +
    returns (QString)
    static
    + +
    ArgumentTypeDefault
    argQString
    +

  • +
  • start (runmode = NotifyOnExit, comm = NoCommunication) +
    +
    returns (bool)
    + + +
    ArgumentTypeDefault
    runmodeRunModeNotifyOnExit
    commCommunicationNoCommunication
    +

  • +
+ + + diff --git a/doc/classref/kdecore/KShortcut.html b/doc/classref/kdecore/KShortcut.html new file mode 100644 index 0000000..74fcbca --- /dev/null +++ b/doc/classref/kdecore/KShortcut.html @@ -0,0 +1,243 @@ + + + + + class KShortcut + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KShortcut


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKShortcut
Inherits
+

enums

    +
  • (anonymous) = {MAX_SEQUENCES +}
+

methods

    +
  • KShortcut () +
    +
    returns a KShortcut instance

  • +
  • KShortcut (keyQt) +
    +
    returns a KShortcut instance
    + +
    ArgumentTypeDefault
    keyQtint
    +

  • +
  • KShortcut (keySeq) +
    +
    returns a KShortcut instance
    + +
    ArgumentTypeDefault
    keySeqQKeySequence
    +

  • +
  • KShortcut (key) +
    +
    returns a KShortcut instance
    + +
    ArgumentTypeDefault
    keyKKey
    +

  • +
  • KShortcut (keySeq) +
    +
    returns a KShortcut instance
    + +
    ArgumentTypeDefault
    keySeqKKeySequence
    +

  • +
  • KShortcut (shortcut) +
    +
    returns a KShortcut instance
    + +
    ArgumentTypeDefault
    shortcutKShortcut
    +

  • +
  • KShortcut (shortcut) +
    +
    returns a KShortcut instance
    + +
    ArgumentTypeDefault
    shortcutchar
    +

  • +
  • KShortcut (shortcut) +
    +
    returns a KShortcut instance
    + +
    ArgumentTypeDefault
    shortcutQString
    +

  • +
  • append (keySeq) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    keySeqKKeySequence
    +

  • +
  • append (spec) +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    specKKey
    +

  • +
  • append (cut) +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    cutKShortcut
    +

  • +
  • clear () +
    +
    returns nothing

  • +
  • compare (shortcut) +
    +
    returns (int)
    + +
    ArgumentTypeDefault
    shortcutKShortcut
    +

  • +
  • contains (key) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    keyKKey
    +

  • +
  • contains (key) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    keyKKeyNative
    +

  • +
  • contains (keySeq) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    keySeqKKeySequence
    +

  • +
  • count () +
    +
    returns (uint)

  • +
  • init (keyQt) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    keyQtint
    +

  • +
  • init (keySeq) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    keySeqQKeySequence
    +

  • +
  • init (key) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    keyKKey
    +

  • +
  • init (keySeq) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    keySeqKKeySequence
    +

  • +
  • init (shortcut) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    shortcutKShortcut
    +

  • +
  • init (shortcut) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    shortcutQString
    +

  • +
  • isNull () +
    +
    returns (bool)

  • +
  • keyCodeQt () +
    +
    returns (int)

  • +
  • null () +
    + +
    returns (KShortcut)
    static

  • +
  • remove (keySeq) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    keySeqKKeySequence
    +

  • +
  • seq (i) +
    +
    returns (KKeySequence)
    + +
    ArgumentTypeDefault
    iuint
    +

  • +
  • setSeq (i, keySeq) +
    +
    returns (bool)
    + + +
    ArgumentTypeDefault
    iuint
    keySeqKKeySequence
    +

  • +
  • toString () +
    +
    returns (QString)

  • +
  • toStringInternal (pcutDefault = 0) +
    +
    returns (QString)
    + +
    ArgumentTypeDefault
    pcutDefaultKShortcut0
    +

  • +
+

operators

    +
  • operator != (a0) +
    + +
    returns (bool)
    In versions KDE 3.1.4 and above only
    + +
    ArgumentTypeDefault
    a0KShortcut
    +

  • +
  • operator < (a0) +
    + +
    returns (bool)
    In versions KDE 3.1.4 and above only
    + +
    ArgumentTypeDefault
    a0KShortcut
    +

  • +
  • operator == (a0) +
    + +
    returns (bool)
    In versions KDE 3.1.4 and above only
    + +
    ArgumentTypeDefault
    a0KShortcut
    +

  • +
  • operator QKeySequence () +
    Not Implemented
    +

  • +
  • operator int () +
    Not Implemented
    +

  • +
+ + + diff --git a/doc/classref/kdecore/KShortcutList.html b/doc/classref/kdecore/KShortcutList.html new file mode 100644 index 0000000..e1ae5f1 --- /dev/null +++ b/doc/classref/kdecore/KShortcutList.html @@ -0,0 +1,159 @@ + + + + + class KShortcutList + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KShortcutList


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKShortcutList (abstract)
Inherits
+

enums

    +
  • Other = { +}
+

methods

    +
  • KShortcutList () +
    +
    returns a KShortcutList instance

  • +
  • count () = 0 +
    + +
    returns (uint)
    pure virtual

  • +
  • getOther (a0, index) = 0 +
    + +
    returns (QVariant)
    pure virtual
    + + +
    ArgumentTypeDefault
    a0KShortcutList.Other
    indexuint
    +

  • +
  • index (sName) +
    +
    returns (int)
    + +
    ArgumentTypeDefault
    sNameQString
    +

  • +
  • index (keySeq) +
    +
    returns (int)
    + +
    ArgumentTypeDefault
    keySeqKKeySequence
    +

  • +
  • instance () +
    +
    returns (KInstance)

  • +
  • isConfigurable (index) = 0 +
    + +
    returns (bool)
    pure virtual
    + +
    ArgumentTypeDefault
    indexuint
    +

  • +
  • isGlobal (index) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    indexuint
    +

  • +
  • label (index) = 0 +
    + +
    returns (QString)
    pure virtual
    + +
    ArgumentTypeDefault
    indexuint
    +

  • +
  • name (index) = 0 +
    + +
    returns (QString)
    pure virtual
    + +
    ArgumentTypeDefault
    indexuint
    +

  • +
  • readSettings (sConfigGroup = QString .null, pConfig = 0) +
    +
    returns (bool)
    + + +
    ArgumentTypeDefault
    sConfigGroupQStringQString .null
    pConfigKConfigBase0
    +

  • +
  • save () = 0 +
    + +
    returns (bool)
    pure virtual

  • +
  • setOther (a0, index, a1) = 0 +
    + +
    returns (bool)
    pure virtual
    + + + +
    ArgumentTypeDefault
    a0KShortcutList.Other
    indexuint
    a1QVariant
    +

  • +
  • setShortcut (index, shortcut) = 0 +
    + +
    returns (bool)
    pure virtual
    + + +
    ArgumentTypeDefault
    indexuint
    shortcutKShortcut
    +

  • +
  • shortcut (index) = 0 +
    + +
    returns (KShortcut)
    pure virtual
    + +
    ArgumentTypeDefault
    indexuint
    +

  • +
  • shortcutDefault (index) = 0 +
    + +
    returns (KShortcut)
    pure virtual
    + +
    ArgumentTypeDefault
    indexuint
    +

  • +
  • whatsThis (index) = 0 +
    + +
    returns (QString)
    pure virtual
    + +
    ArgumentTypeDefault
    indexuint
    +

  • +
  • writeSettings (sConfigGroup = QString .null, pConfig = 0, bWriteAll = 0, bGlobal = 0) +
    +
    returns (bool)
    + + + + +
    ArgumentTypeDefault
    sConfigGroupQStringQString .null
    pConfigKConfigBase0
    bWriteAllbool0
    bGlobalbool0
    +

  • +
+ + + diff --git a/doc/classref/kdecore/KSimpleConfig.html b/doc/classref/kdecore/KSimpleConfig.html new file mode 100644 index 0000000..9a30104 --- /dev/null +++ b/doc/classref/kdecore/KSimpleConfig.html @@ -0,0 +1,65 @@ + + + + + class KSimpleConfig + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KSimpleConfig


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKSimpleConfig
InheritsKConfig
+

methods

    +
  • KSimpleConfig (fileName, bReadOnly = 0) +
    +
    returns a KSimpleConfig instance
    + + +
    ArgumentTypeDefault
    fileNameQString
    bReadOnlybool0
    +

  • +
  • KSimpleConfig (backEnd, bReadOnly = 0) +
    + +
    returns a KSimpleConfig instance
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    backEndKConfigBackEnd
    bReadOnlybool0
    +

  • +
  • KSimpleConfig (a0) +
    +
    returns a KSimpleConfig instance
    + +
    ArgumentTypeDefault
    a0KSimpleConfig
    +

  • +
  • sync () +
    +
    returns nothing

  • +
+ + + diff --git a/doc/classref/kdecore/KSocket.html b/doc/classref/kdecore/KSocket.html new file mode 100644 index 0000000..0cd1bf3 --- /dev/null +++ b/doc/classref/kdecore/KSocket.html @@ -0,0 +1,126 @@ + + + + + class KSocket + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KSocket


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKSocket
InheritsQObject
+

methods

    +
  • KSocket (_sock) +
    +
    returns a KSocket instance
    + +
    ArgumentTypeDefault
    _sockint
    +

  • +
  • KSocket (_host, _port, timeOut = 30) +
    +
    returns a KSocket instance
    + + + +
    ArgumentTypeDefault
    _hostchar
    _portushort
    timeOutint30
    +

  • +
  • KSocket (_path) +
    +
    returns a KSocket instance
    + +
    ArgumentTypeDefault
    _pathchar
    +

  • +
  • KSocket (a0) +
    +
    returns a KSocket instance
    + +
    ArgumentTypeDefault
    a0KSocket
    +

  • +
  • closeEvent (s) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    sKSocket
    +

  • +
  • connect (_host, _port, timeout = 0) +
    +
    returns (bool)
    + + + +
    ArgumentTypeDefault
    _hostQString
    _portushort
    timeoutint0
    +

  • +
  • connect (_path) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    _pathchar
    +

  • +
  • enableRead (enable) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    enablebool
    +

  • +
  • enableWrite (enable) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    enablebool
    +

  • +
  • readEvent (s) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    sKSocket
    +

  • +
  • slotRead (x) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    xint
    +

  • +
  • slotWrite (x) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    xint
    +

  • +
  • socket () +
    +
    returns (int)

  • +
  • writeEvent (s) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    sKSocket
    +

  • +
+ + + diff --git a/doc/classref/kdecore/KStartupInfo.html b/doc/classref/kdecore/KStartupInfo.html new file mode 100644 index 0000000..17ed30b --- /dev/null +++ b/doc/classref/kdecore/KStartupInfo.html @@ -0,0 +1,227 @@ + + + + + class KStartupInfo + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KStartupInfo


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKStartupInfo
InheritsQObject
+

enums

    +
  • (anonymous) = {CleanOnCantDetect, DisableKWinModule, AnnounceSilenceChanges +}
  • startup_t = {NoMatch, Match, CantDetect +}
+

methods

    +
  • KStartupInfo (flags, parent = 0, name = 0) +
    +
    returns a KStartupInfo instance
    + + + +
    ArgumentTypeDefault
    flagsbool
    parentQObject0
    namechar0
    +

  • +
  • appStarted () +
    + +
    returns nothing
    static

  • +
  • appStarted (startup_id) +
    + + +
    returns nothing
    In versions KDE 3.2.0 and above only
    static
    + +
    ArgumentTypeDefault
    startup_idQCString
    +

  • +
  • checkStartup (w) +
    +
    returns (KStartupInfo.startup_t)
    + +
    ArgumentTypeDefault
    wWId
    +

  • +
  • checkStartup (w, id) +
    +
    returns (KStartupInfo.startup_t)
    + + +
    ArgumentTypeDefault
    wWId
    idKStartupInfoId
    +

  • +
  • checkStartup (w, data) +
    +
    returns (KStartupInfo.startup_t)
    + + +
    ArgumentTypeDefault
    wWId
    dataKStartupInfoData
    +

  • +
  • checkStartup (w, id, data) +
    +
    returns (KStartupInfo.startup_t)
    + + + +
    ArgumentTypeDefault
    wWId
    idKStartupInfoId
    dataKStartupInfoData
    +

  • +
  • createNewStartupId () +
    + + +
    returns (QCString)
    In versions KDE 3.3.0 and above only
    static

  • +
  • currentStartupIdEnv () +
    + +
    returns (KStartupInfoId)
    static

  • +
  • customEvent (e_P) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    e_PQCustomEvent
    +

  • +
  • disableAutoAppStartedSending (disable = 1) +
    + + +
    returns nothing
    In versions KDE 3.2.0 and above only
    static
    + +
    ArgumentTypeDefault
    disablebool1
    +

  • +
  • gotNewStartup (id, data) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    idKStartupInfoId
    dataKStartupInfoData
    +

  • +
  • gotRemoveStartup (id, data) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    idKStartupInfoId
    dataKStartupInfoData
    +

  • +
  • gotStartupChange (id, data) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    idKStartupInfoId
    dataKStartupInfoData
    +

  • +
  • handleAutoAppStartedSending () +
    + + +
    returns nothing
    In versions KDE 3.2.0 and above only
    static

  • +
  • resetStartupEnv () +
    + +
    returns nothing
    static

  • +
  • sendChange (id, data) +
    + +
    returns (bool)
    static
    + + +
    ArgumentTypeDefault
    idKStartupInfoId
    dataKStartupInfoData
    +

  • +
  • sendChangeX (dpy, id, data) +
    Not Implemented
    +

  • +
  • sendFinish (id) +
    + +
    returns (bool)
    static
    + +
    ArgumentTypeDefault
    idKStartupInfoId
    +

  • +
  • sendFinish (id, data) +
    + +
    returns (bool)
    static
    + + +
    ArgumentTypeDefault
    idKStartupInfoId
    dataKStartupInfoData
    +

  • +
  • sendFinishX (dpy, id) +
    Not Implemented
    +

  • +
  • sendFinishX (dpy, id, data) +
    Not Implemented
    +

  • +
  • sendStartup (id, data) +
    + +
    returns (bool)
    static
    + + +
    ArgumentTypeDefault
    idKStartupInfoId
    dataKStartupInfoData
    +

  • +
  • sendStartupX (dpy, id, data) +
    Not Implemented
    +

  • +
  • setNewStartupId (window, startup_id) +
    + + +
    returns nothing
    In versions KDE 3.2.0 and above only
    static
    + + +
    ArgumentTypeDefault
    windowQWidget
    startup_idQCString
    +

  • +
  • setTimeout (secs) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    secsuint
    +

  • +
  • setWindowStartupId (window, id) +
    + +
    returns nothing
    static
    + + +
    ArgumentTypeDefault
    windowWId
    idQCString
    +

  • +
  • silenceStartup (silence) +
    + + +
    returns nothing
    In versions KDE 3.2.0 and above only
    static
    + +
    ArgumentTypeDefault
    silencebool
    +

  • +
  • windowStartupId (w) +
    + +
    returns (QCString)
    static
    + +
    ArgumentTypeDefault
    wWId
    +

  • +
+ + + diff --git a/doc/classref/kdecore/KStartupInfoData.html b/doc/classref/kdecore/KStartupInfoData.html new file mode 100644 index 0000000..1760ede --- /dev/null +++ b/doc/classref/kdecore/KStartupInfoData.html @@ -0,0 +1,195 @@ + + + + + class KStartupInfoData + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KStartupInfoData


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKStartupInfoData
Inherits
+

enums

    +
  • TriState = {Yes, No, Unknown +}
+

methods

    +
  • KStartupInfoData () +
    +
    returns a KStartupInfoData instance

  • +
  • KStartupInfoData (data) +
    +
    returns a KStartupInfoData instance
    + +
    ArgumentTypeDefault
    dataKStartupInfoData
    +

  • +
  • KStartupInfoData (txt) +
    +
    returns a KStartupInfoData instance
    + +
    ArgumentTypeDefault
    txtQString
    +

  • +
  • WMClass () +
    +
    returns (QCString)

  • +
  • addPid (pid) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    pidpid_t
    +

  • +
  • bin () +
    +
    returns (QString)

  • +
  • description () +
    + +
    returns (QString)
    In versions KDE 3.2.0 and above only

  • +
  • desktop () +
    +
    returns (int)

  • +
  • findDescription () +
    + +
    returns (QString)
    In versions KDE 3.2.0 and above only

  • +
  • findIcon () +
    +
    returns (QString)

  • +
  • findName () +
    +
    returns (QString)

  • +
  • findWMClass () +
    +
    returns (QCString)

  • +
  • hostname () +
    +
    returns (QCString)

  • +
  • icon () +
    +
    returns (QString)

  • +
  • is_pid (pid) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    pidpid_t
    +

  • +
  • name () +
    +
    returns (QString)

  • +
  • pids () +
    +
    returns (QValueList)

  • +
  • pids () +
    + +
    returns (QValueList)
    In versions less than KDE 3.5.3 only

  • +
  • screen () +
    + +
    returns (int)
    In versions KDE 3.2.0 and above only

  • +
  • setBin (bin) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    binQString
    +

  • +
  • setDescription (descr) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    descrQString
    +

  • +
  • setDesktop (desktop) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    desktopint
    +

  • +
  • setHostname (hostname = QCString ()) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    hostnameQCStringQCString ()
    +

  • +
  • setIcon (icon) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    iconQString
    +

  • +
  • setName (name) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    nameQString
    +

  • +
  • setScreen (screen) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    screenint
    +

  • +
  • setSilent (state) +
    + +
    returns nothing
    In versions KDE 3.1.1 and above only
    + +
    ArgumentTypeDefault
    stateKStartupInfoData.TriState
    +

  • +
  • setTimestamp (time) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    timeulong
    +

  • +
  • setWMClass (wmclass) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    wmclassQCString
    +

  • +
  • silent () +
    + +
    returns (KStartupInfoData.TriState)
    In versions KDE 3.1.1 and above only

  • +
  • timestamp () +
    + +
    returns (ulong)
    In versions KDE 3.2.0 and above only

  • +
  • update (data) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    dataKStartupInfoData
    +

  • +
+ + + diff --git a/doc/classref/kdecore/KStartupInfoId.html b/doc/classref/kdecore/KStartupInfoId.html new file mode 100644 index 0000000..be7c1e9 --- /dev/null +++ b/doc/classref/kdecore/KStartupInfoId.html @@ -0,0 +1,98 @@ + + + + + class KStartupInfoId + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KStartupInfoId


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKStartupInfoId
Inherits
+

methods

    +
  • KStartupInfoId () +
    +
    returns a KStartupInfoId instance

  • +
  • KStartupInfoId (data) +
    +
    returns a KStartupInfoId instance
    + +
    ArgumentTypeDefault
    dataKStartupInfoId
    +

  • +
  • KStartupInfoId (txt) +
    +
    returns a KStartupInfoId instance
    + +
    ArgumentTypeDefault
    txtQString
    +

  • +
  • id () +
    +
    returns (QCString)

  • +
  • initId (id = "") +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    idQCString""
    +

  • +
  • none () +
    +
    returns (bool)

  • +
  • setupStartupEnv () +
    +
    returns (bool)

  • +
  • timestamp () +
    + +
    returns (ulong)
    In versions KDE 3.3.0 and above only

  • +
+

operators

    +
  • operator != (a0) +
    + +
    returns (bool)
    In versions KDE 3.1.4 and above only
    + +
    ArgumentTypeDefault
    a0KStartupInfoId
    +

  • +
  • operator < (a0) +
    + +
    returns (bool)
    In versions KDE 3.1.4 and above only
    + +
    ArgumentTypeDefault
    a0KStartupInfoId
    +

  • +
  • operator == (a0) +
    + +
    returns (bool)
    In versions KDE 3.1.4 and above only
    + +
    ArgumentTypeDefault
    a0KStartupInfoId
    +

  • +
+ + + diff --git a/doc/classref/kdecore/KStaticDeleterBase.html b/doc/classref/kdecore/KStaticDeleterBase.html new file mode 100644 index 0000000..08800b8 --- /dev/null +++ b/doc/classref/kdecore/KStaticDeleterBase.html @@ -0,0 +1,45 @@ + + + + + class KStaticDeleterBase + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KStaticDeleterBase


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKStaticDeleterBase (abstract)
Inherits
+

methods

+ + + diff --git a/doc/classref/kdecore/KStdAccel.ShortcutList.html b/doc/classref/kdecore/KStdAccel.ShortcutList.html new file mode 100644 index 0000000..d3f69a4 --- /dev/null +++ b/doc/classref/kdecore/KStdAccel.ShortcutList.html @@ -0,0 +1,108 @@ + + + + + class KStdAccel.ShortcutList + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KStdAccel.ShortcutList


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKStdAccel.ShortcutList
InheritsKShortcutList
+

methods

    +
  • ShortcutList () +
    +
    returns a ShortcutList instance

  • +
  • count () +
    +
    returns (uint)

  • +
  • getOther (a0, index) +
    +
    returns (QVariant)
    + + +
    ArgumentTypeDefault
    a0KShortcutList.Other
    indexuint
    +

  • +
  • isConfigurable (index) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    indexuint
    +

  • +
  • label (index) +
    +
    returns (QString)
    + +
    ArgumentTypeDefault
    indexuint
    +

  • +
  • name (index) +
    +
    returns (QString)
    + +
    ArgumentTypeDefault
    indexuint
    +

  • +
  • save () +
    +
    returns (bool)

  • +
  • setOther (a0, index, a1) +
    +
    returns (bool)
    + + + +
    ArgumentTypeDefault
    a0KShortcutList.Other
    indexuint
    a1QVariant
    +

  • +
  • setShortcut (index, shortcut) +
    +
    returns (bool)
    + + +
    ArgumentTypeDefault
    indexuint
    shortcutKShortcut
    +

  • +
  • shortcut (index) +
    +
    returns (KShortcut)
    + +
    ArgumentTypeDefault
    indexuint
    +

  • +
  • shortcutDefault (index) +
    +
    returns (KShortcut)
    + +
    ArgumentTypeDefault
    indexuint
    +

  • +
  • whatsThis (index) +
    +
    returns (QString)
    + +
    ArgumentTypeDefault
    indexuint
    +

  • +
+ + + diff --git a/doc/classref/kdecore/KStdAccel.html b/doc/classref/kdecore/KStdAccel.html new file mode 100644 index 0000000..73a3b87 --- /dev/null +++ b/doc/classref/kdecore/KStdAccel.html @@ -0,0 +1,284 @@ + + + + + class KStdAccel + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KStdAccel


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKStdAccel
Inherits
+

classes

+

enums

    +
  • StdAccel = {AccelNone, Open, New, Close, Save, Print, Quit, Undo, Redo, Cut, Copy, Paste, SelectAll, Deselect, DeleteWordBack, DeleteWordForward, Find, FindNext, FindPrev, Replace, Home, End, Prior, Next, GotoLine, AddBookmark, ZoomIn, ZoomOut, Up, Back, Forward, Reload, PopupMenuContext, ShowMenubar, Help, WhatsThis, TextCompletion, PrevCompletion, NextCompletion, SubstringCompletion, RotateUp, RotateDown, WhatThis +}
  • StdAccel = {AccelNone, Open, New, Close, Save, Print, Quit, Undo, Redo, Cut, Copy, Paste, SelectAll, Deselect, DeleteWordBack, DeleteWordForward, Find, FindNext, FindPrev, Replace, Home, End, Prior, Next, GotoLine, AddBookmark, ZoomIn, ZoomOut, Up, Back, Forward, Reload, PopupMenuContext, ShowMenubar, Help, WhatsThis, TextCompletion, PrevCompletion, NextCompletion, SubstringCompletion, RotateUp, RotateDown, WhatThis +}
  • StdAccel = {AccelNone, Open, New, Close, Save, Print, Quit, Undo, Redo, Cut, Copy, Paste, SelectAll, Deselect, DeleteWordBack, DeleteWordForward, Find, FindNext, FindPrev, Replace, Home, End, Prior, Next, GotoLine, AddBookmark, ZoomIn, ZoomOut, Up, Back, Forward, Reload, PopupMenuContext, ShowMenubar, Help, WhatsThis, TextCompletion, PrevCompletion, NextCompletion, SubstringCompletion, RotateUp, RotateDown, WhatThis +}
  • StdAccel = {AccelNone, Open, New, Close, Save, Print, Quit, Undo, Redo, Cut, Copy, Paste, SelectAll, Deselect, DeleteWordBack, DeleteWordForward, Find, FindNext, FindPrev, Replace, Home, End, Prior, Next, GotoLine, AddBookmark, ZoomIn, ZoomOut, Up, Back, Forward, Reload, PopupMenuContext, ShowMenubar, Help, WhatsThis, TextCompletion, PrevCompletion, NextCompletion, SubstringCompletion, RotateUp, RotateDown, WhatThis +}
  • StdAccel = {AccelNone, Open, New, Close, Save, Print, Quit, Undo, Redo, Cut, Copy, Paste, SelectAll, Deselect, DeleteWordBack, DeleteWordForward, Find, FindNext, FindPrev, Replace, Home, End, Prior, Next, GotoLine, AddBookmark, ZoomIn, ZoomOut, Up, Back, Forward, Reload, PopupMenuContext, ShowMenubar, Help, WhatsThis, TextCompletion, PrevCompletion, NextCompletion, SubstringCompletion, RotateUp, RotateDown, WhatThis +}
  • StdAccel = {AccelNone, Open, New, Close, Save, Print, Quit, Undo, Redo, Cut, Copy, Paste, SelectAll, Deselect, DeleteWordBack, DeleteWordForward, Find, FindNext, FindPrev, Replace, Home, End, Prior, Next, GotoLine, AddBookmark, ZoomIn, ZoomOut, Up, Back, Forward, Reload, PopupMenuContext, ShowMenubar, Help, WhatsThis, TextCompletion, PrevCompletion, NextCompletion, SubstringCompletion, RotateUp, RotateDown, WhatThis +}
+

methods

    +
  • action (id) +
    +
    returns (QString)
    + +
    ArgumentTypeDefault
    idKStdAccel.StdAccel
    +

  • +
  • addBookmark () +
    +
    returns (KShortcut)

  • +
  • back () +
    +
    returns (KShortcut)

  • +
  • backwardWord () +
    + +
    returns (KShortcut)
    In versions KDE 3.3.0 and above only

  • +
  • beginningOfLine () +
    + +
    returns (KShortcut)
    In versions KDE 3.3.0 and above only

  • +
  • close () +
    +
    returns (KShortcut)

  • +
  • completion () +
    +
    returns (KShortcut)

  • +
  • copy () +
    +
    returns (KShortcut)

  • +
  • cut () +
    +
    returns (KShortcut)

  • +
  • defaultKey (accel) +
    +
    returns (int)
    + +
    ArgumentTypeDefault
    accelKStdAccel.StdAccel
    +

  • +
  • deleteWordBack () +
    +
    returns (KShortcut)

  • +
  • deleteWordForward () +
    +
    returns (KShortcut)

  • +
  • description (id) +
    +
    returns (QString)
    + +
    ArgumentTypeDefault
    idKStdAccel.StdAccel
    +

  • +
  • end () +
    +
    returns (KShortcut)

  • +
  • endOfLine () +
    + +
    returns (KShortcut)
    In versions KDE 3.3.0 and above only

  • +
  • find () +
    +
    returns (KShortcut)

  • +
  • findNext () +
    +
    returns (KShortcut)

  • +
  • findPrev () +
    +
    returns (KShortcut)

  • +
  • findStdAccel (keySeq) +
    +
    returns (KStdAccel.StdAccel)
    + +
    ArgumentTypeDefault
    keySeqKKeySequence
    +

  • +
  • forward () +
    +
    returns (KShortcut)

  • +
  • forwardWord () +
    + +
    returns (KShortcut)
    In versions KDE 3.3.0 and above only

  • +
  • fullScreen () +
    + +
    returns (KShortcut)
    In versions KDE 3.2.0 and above only

  • +
  • gotoLine () +
    +
    returns (KShortcut)

  • +
  • help () +
    +
    returns (KShortcut)

  • +
  • home () +
    +
    returns (KShortcut)

  • +
  • insert () +
    Not Implemented
    +

  • +
  • isEqual (pEvent, keyQt) +
    +
    returns (bool)
    + + +
    ArgumentTypeDefault
    pEventQKeyEvent
    keyQtint
    +

  • +
  • key (a0) +
    +
    returns (int)
    + +
    ArgumentTypeDefault
    a0KStdAccel.StdAccel
    +

  • +
  • label (id) +
    +
    returns (QString)
    + +
    ArgumentTypeDefault
    idKStdAccel.StdAccel
    +

  • +
  • name (id) +
    +
    returns (QString)
    + +
    ArgumentTypeDefault
    idKStdAccel.StdAccel
    +

  • +
  • next () +
    +
    returns (KShortcut)

  • +
  • nextCompletion () +
    +
    returns (KShortcut)

  • +
  • open () +
    +
    returns (KShortcut)

  • +
  • openNew () +
    +
    returns (KShortcut)

  • +
  • paste () +
    +
    returns (KShortcut)

  • +
  • pasteSelection () +
    + +
    returns (KShortcut)
    In versions KDE 3.4.0 and above only

  • +
  • popupMenuContext () +
    +
    returns (KShortcut)

  • +
  • prevCompletion () +
    +
    returns (KShortcut)

  • +
  • print_ () +
    + +
    returns (KShortcut)
    Renamed: was ' print +' in C++

  • +
  • prior () +
    +
    returns (KShortcut)

  • +
  • quit () +
    +
    returns (KShortcut)

  • +
  • redo () +
    +
    returns (KShortcut)

  • +
  • reload () +
    +
    returns (KShortcut)

  • +
  • replace () +
    +
    returns (KShortcut)

  • +
  • rotateDown () +
    +
    returns (KShortcut)

  • +
  • rotateUp () +
    +
    returns (KShortcut)

  • +
  • save () +
    +
    returns (KShortcut)

  • +
  • selectAll () +
    +
    returns (KShortcut)

  • +
  • shortcut (id) +
    +
    returns (KShortcut)
    + +
    ArgumentTypeDefault
    idKStdAccel.StdAccel
    +

  • +
  • shortcutDefault (id) +
    +
    returns (KShortcut)
    + +
    ArgumentTypeDefault
    idKStdAccel.StdAccel
    +

  • +
  • shortcutDefault3 (id) +
    +
    returns (KShortcut)
    + +
    ArgumentTypeDefault
    idKStdAccel.StdAccel
    +

  • +
  • shortcutDefault4 (id) +
    +
    returns (KShortcut)
    + +
    ArgumentTypeDefault
    idKStdAccel.StdAccel
    +

  • +
  • showMenubar () +
    +
    returns (KShortcut)

  • +
  • substringCompletion () +
    +
    returns (KShortcut)

  • +
  • tabNext () +
    + +
    returns (KShortcut)
    In versions KDE 3.2.0 and above only

  • +
  • tabPrev () +
    + +
    returns (KShortcut)
    In versions KDE 3.2.0 and above only

  • +
  • undo () +
    +
    returns (KShortcut)

  • +
  • up () +
    +
    returns (KShortcut)

  • +
  • whatsThis () +
    +
    returns (KShortcut)

  • +
  • whatsThis () +
    +
    returns (KShortcut)

  • +
  • zoomIn () +
    +
    returns (KShortcut)

  • +
  • zoomOut () +
    +
    returns (KShortcut)

  • +
+ + + diff --git a/doc/classref/kdecore/KStringHandler.html b/doc/classref/kdecore/KStringHandler.html new file mode 100644 index 0000000..7ddb6f7 --- /dev/null +++ b/doc/classref/kdecore/KStringHandler.html @@ -0,0 +1,292 @@ + + + + + class KStringHandler + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KStringHandler


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKStringHandler
Inherits
+

methods

    +
  • cEmSqueeze (name, fontMetrics, maxlen = 30) +
    + + +
    returns (QString)
    In versions KDE 3.2.0 and above only
    static
    + + + +
    ArgumentTypeDefault
    nameQString
    fontMetricsQFontMetrics
    maxlenuint30
    +

  • +
  • cPixelSqueeze (name, fontMetrics, maxPixels) +
    + + +
    returns (QString)
    In versions KDE 3.2.0 and above only
    static
    + + + +
    ArgumentTypeDefault
    nameQString
    fontMetricsQFontMetrics
    maxPixelsuint
    +

  • +
  • capwords (text) +
    + +
    returns (QString)
    static
    + +
    ArgumentTypeDefault
    textQString
    +

  • +
  • capwords (list) +
    + +
    returns (QStringList)
    static
    + +
    ArgumentTypeDefault
    listQStringList
    +

  • +
  • center (text, width) +
    + +
    returns (QString)
    static
    + + +
    ArgumentTypeDefault
    textQString
    widthuint
    +

  • +
  • csqueeze (str, maxlen = 40) +
    + +
    returns (QString)
    static
    + + +
    ArgumentTypeDefault
    strQString
    maxlenuint40
    +

  • +
  • from8Bit (str) +
    + + +
    returns (QString)
    In versions KDE 3.2.0 and above only
    static
    + +
    ArgumentTypeDefault
    strchar
    +

  • +
  • insword (text, word, pos) +
    + +
    returns (QString)
    static
    + + + +
    ArgumentTypeDefault
    textQString
    wordQString
    posuint
    +

  • +
  • isUtf8 (str) +
    + + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    static
    + +
    ArgumentTypeDefault
    strchar
    +

  • +
  • lEmSqueeze (name, fontMetrics, maxlen = 30) +
    + + +
    returns (QString)
    In versions KDE 3.2.0 and above only
    static
    + + + +
    ArgumentTypeDefault
    nameQString
    fontMetricsQFontMetrics
    maxlenuint30
    +

  • +
  • lPixelSqueeze (name, fontMetrics, maxPixels) +
    + + +
    returns (QString)
    In versions KDE 3.2.0 and above only
    static
    + + + +
    ArgumentTypeDefault
    nameQString
    fontMetricsQFontMetrics
    maxPixelsuint
    +

  • +
  • ljust (text, width) +
    + +
    returns (QString)
    static
    + + +
    ArgumentTypeDefault
    textQString
    widthuint
    +

  • +
  • lsqueeze (str, maxlen = 40) +
    + +
    returns (QString)
    static
    + + +
    ArgumentTypeDefault
    strQString
    maxlenuint40
    +

  • +
  • matchFileName (filename, pattern) +
    + +
    returns (bool)
    static
    + + +
    ArgumentTypeDefault
    filenameQString
    patternQString
    +

  • +
  • matchFilename (filename, pattern) +
    + +
    returns (bool)
    static
    + + +
    ArgumentTypeDefault
    filenameQString
    patternQString
    +

  • +
  • obscure (str) +
    + + +
    returns (QString)
    In versions KDE 3.2.0 and above only
    static
    + +
    ArgumentTypeDefault
    strQString
    +

  • +
  • perlSplit (sep, s, max = 0) +
    Not Implemented
    +

  • +
  • perlSplit (sep, s, max = 0) +
    Not Implemented
    +

  • +
  • perlSplit (sep, s, max = 0) +
    Not Implemented
    +

  • +
  • rEmSqueeze (name, fontMetrics, maxlen = 30) +
    + + +
    returns (QString)
    In versions KDE 3.2.0 and above only
    static
    + + + +
    ArgumentTypeDefault
    nameQString
    fontMetricsQFontMetrics
    maxlenuint30
    +

  • +
  • rPixelSqueeze (name, fontMetrics, maxPixels) +
    + + +
    returns (QString)
    In versions KDE 3.2.0 and above only
    static
    + + + +
    ArgumentTypeDefault
    nameQString
    fontMetricsQFontMetrics
    maxPixelsuint
    +

  • +
  • remrange (text, range) +
    + +
    returns (QString)
    static
    + + +
    ArgumentTypeDefault
    textQString
    rangechar
    +

  • +
  • remword (text, pos) +
    + +
    returns (QString)
    static
    + + +
    ArgumentTypeDefault
    textQString
    posuint
    +

  • +
  • remword (text, word) +
    + +
    returns (QString)
    static
    + + +
    ArgumentTypeDefault
    textQString
    wordQString
    +

  • +
  • reverse (text) +
    + +
    returns (QString)
    static
    + +
    ArgumentTypeDefault
    textQString
    +

  • +
  • reverse (list) +
    + +
    returns (QStringList)
    static
    + +
    ArgumentTypeDefault
    listQStringList
    +

  • +
  • rjust (text, width) +
    + +
    returns (QString)
    static
    + + +
    ArgumentTypeDefault
    textQString
    widthuint
    +

  • +
  • rsqueeze (str, maxlen = 40) +
    + +
    returns (QString)
    static
    + + +
    ArgumentTypeDefault
    strQString
    maxlenuint40
    +

  • +
  • setword (text, word, pos) +
    + +
    returns (QString)
    static
    + + + +
    ArgumentTypeDefault
    textQString
    wordQString
    posuint
    +

  • +
  • tagURLs (text) +
    + + +
    returns (QString)
    In versions KDE 3.1.0 and above only
    static
    + +
    ArgumentTypeDefault
    textQString
    +

  • +
  • word (text, pos) +
    + +
    returns (QString)
    static
    + + +
    ArgumentTypeDefault
    textQString
    posuint
    +

  • +
  • word (text, range) +
    + +
    returns (QString)
    static
    + + +
    ArgumentTypeDefault
    textQString
    rangechar
    +

  • +
+ + + diff --git a/doc/classref/kdecore/KTempDir.html b/doc/classref/kdecore/KTempDir.html new file mode 100644 index 0000000..18c9520 --- /dev/null +++ b/doc/classref/kdecore/KTempDir.html @@ -0,0 +1,99 @@ + + + + + class KTempDir + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KTempDir


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKTempDir
Inherits
+

methods

    +
  • KTempDir (directoryPrefix = QString .null, mode = 448) +
    + +
    returns a KTempDir instance
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    directoryPrefixQStringQString .null
    modeint448
    +

  • +
  • create (directoryPrefix, mode) +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    directoryPrefixQString
    modeint
    +

  • +
  • existing () +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only

  • +
  • name () +
    + +
    returns (QString)
    In versions KDE 3.2.0 and above only

  • +
  • qDir () +
    + +
    returns (QDir)
    In versions KDE 3.2.0 and above only

  • +
  • removeDir (path) +
    + + +
    returns (bool)
    In versions KDE 3.5.2 and above only
    static
    + +
    ArgumentTypeDefault
    pathQString
    +

  • +
  • setAutoDelete (autoDelete) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    autoDeletebool
    +

  • +
  • setError (error) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    errorint
    +

  • +
  • status () +
    + +
    returns (int)
    In versions KDE 3.2.0 and above only

  • +
  • unlink () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
+ + + diff --git a/doc/classref/kdecore/KTempFile.html b/doc/classref/kdecore/KTempFile.html new file mode 100644 index 0000000..4277f51 --- /dev/null +++ b/doc/classref/kdecore/KTempFile.html @@ -0,0 +1,106 @@ + + + + + class KTempFile + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KTempFile


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKTempFile
Inherits
+

methods

    +
  • KTempFile (filePrefix = QString .null, fileExtension = QString .null, mode = 384) +
    +
    returns a KTempFile instance
    + + + +
    ArgumentTypeDefault
    filePrefixQStringQString .null
    fileExtensionQStringQString .null
    modeint384
    +

  • +
  • KTempFile (a0) +
    +
    returns a KTempFile instance
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • close () +
    +
    returns (bool)

  • +
  • create (filePrefix, fileExtension, mode) +
    +
    returns (bool)
    + + + +
    ArgumentTypeDefault
    filePrefixQString
    fileExtensionQString
    modeint
    +

  • +
  • dataStream () +
    +
    returns (QDataStream)

  • +
  • file () +
    +
    returns (QFile)

  • +
  • fstream () +
    Not Implemented
    +

  • +
  • handle () +
    +
    returns (int)

  • +
  • name () +
    +
    returns (QString)

  • +
  • setAutoDelete (autoDelete) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    autoDeletebool
    +

  • +
  • setError (error) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    errorint
    +

  • +
  • status () +
    +
    returns (int)

  • +
  • sync () +
    + +
    returns (bool)
    In versions KDE 3.3.0 and above only

  • +
  • textStream () +
    +
    returns (QTextStream)

  • +
  • unlink () +
    +
    returns nothing

  • +
+ + + diff --git a/doc/classref/kdecore/KTimezone.html b/doc/classref/kdecore/KTimezone.html new file mode 100644 index 0000000..b747a89 --- /dev/null +++ b/doc/classref/kdecore/KTimezone.html @@ -0,0 +1,129 @@ + + + + + class KTimezone + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KTimezone


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKTimezone
Inherits
+

methods

    +
  • KTimezone (db, name, countryCode = QString (), latitude = KTimezone .UNKNOWN, longitude = KTimezone .UNKNOWN, comment = QString ()) +
    + +
    returns a KTimezone instance
    In versions KDE 3.5.0 and above only
    + + + + + + +
    ArgumentTypeDefault
    dbKSharedPtr
    nameQString
    countryCodeQStringQString ()
    latitudefloatKTimezone .UNKNOWN
    longitudefloatKTimezone .UNKNOWN
    commentQStringQString ()
    +

  • +
  • KTimezone (a0) +
    + +
    returns a KTimezone instance
    In versions KDE 3.5.0 and above only
    + +
    ArgumentTypeDefault
    a0KTimezone
    +

  • +
  • comment () +
    + +
    returns (QString)
    In versions KDE 3.5.0 and above only

  • +
  • convert (newZone, dateTime) +
    + +
    returns (QDateTime)
    In versions KDE 3.5.0 and above only
    + + +
    ArgumentTypeDefault
    newZoneKTimezone
    dateTimeQDateTime
    +

  • +
  • countryCode () +
    + +
    returns (QString)
    In versions KDE 3.5.0 and above only

  • +
  • isValidLatitude (latitude) +
    + + +
    returns (bool)
    In versions KDE 3.5.0 and above only
    static
    + +
    ArgumentTypeDefault
    latitudefloat
    +

  • +
  • isValidLongitude (longitude) +
    + + +
    returns (bool)
    In versions KDE 3.5.0 and above only
    static
    + +
    ArgumentTypeDefault
    longitudefloat
    +

  • +
  • latitude () +
    + +
    returns (float)
    In versions KDE 3.5.0 and above only

  • +
  • longitude () +
    + +
    returns (float)
    In versions KDE 3.5.0 and above only

  • +
  • name () +
    + +
    returns (QString)
    In versions KDE 3.5.0 and above only

  • +
  • offset (basisSpec = Qt .UTC) +
    + +
    returns (int)
    In versions KDE 3.5.0 and above only
    + +
    ArgumentTypeDefault
    basisSpecQt.TimeSpecQt .UTC
    +

  • +
  • offset (dateTime) +
    + +
    returns (int)
    In versions KDE 3.5.0 and above only
    + +
    ArgumentTypeDefault
    dateTimeQDateTime
    +

  • +
  • parse (dataReceiver) +
    + +
    returns (bool)
    In versions KDE 3.5.0 and above only
    + +
    ArgumentTypeDefault
    dataReceiverKTimezoneDetails
    +

  • +
+

variables

+ + + diff --git a/doc/classref/kdecore/KTimezoneDetails.html b/doc/classref/kdecore/KTimezoneDetails.html new file mode 100644 index 0000000..cc97444 --- /dev/null +++ b/doc/classref/kdecore/KTimezoneDetails.html @@ -0,0 +1,124 @@ + + + + + class KTimezoneDetails + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KTimezoneDetails


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKTimezoneDetails
Inherits
+

methods

    +
  • KTimezoneDetails () +
    + +
    returns a KTimezoneDetails instance
    In versions KDE 3.5.0 and above only

  • +
  • gotAbbreviation (index, abbr) +
    + +
    returns nothing
    In versions KDE 3.5.0 and above only
    + + +
    ArgumentTypeDefault
    indexint
    abbrQString
    +

  • +
  • gotHeader (ttIsGmtCnt, ttIsStdCnt, leapCnt, timeCnt, typeCnt, charCnt) +
    + +
    returns nothing
    In versions KDE 3.5.0 and above only
    + + + + + + +
    ArgumentTypeDefault
    ttIsGmtCntuint
    ttIsStdCntuint
    leapCntuint
    timeCntuint
    typeCntuint
    charCntuint
    +

  • +
  • gotIsStandard (index, isStandard) +
    + +
    returns nothing
    In versions KDE 3.5.0 and above only
    + + +
    ArgumentTypeDefault
    indexint
    isStandardbool
    +

  • +
  • gotIsUTC (index, isUTC) +
    + +
    returns nothing
    In versions KDE 3.5.0 and above only
    + + +
    ArgumentTypeDefault
    indexint
    isUTCbool
    +

  • +
  • gotLeapAdjustment (index, leapTime, leapSeconds) +
    + +
    returns nothing
    In versions KDE 3.5.0 and above only
    + + + +
    ArgumentTypeDefault
    indexint
    leapTimeuint
    leapSecondsuint
    +

  • +
  • gotLocalTime (index, gmtOff, isDst, abbrIndex) +
    + +
    returns nothing
    In versions KDE 3.5.0 and above only
    + + + + +
    ArgumentTypeDefault
    indexint
    gmtOffint
    isDstbool
    abbrIndexuint
    +

  • +
  • gotLocalTimeIndex (index, localTimeIndex) +
    + +
    returns nothing
    In versions KDE 3.5.0 and above only
    + + +
    ArgumentTypeDefault
    indexint
    localTimeIndexuint
    +

  • +
  • gotTransitionTime (index, transitionTime) +
    + +
    returns nothing
    In versions KDE 3.5.0 and above only
    + + +
    ArgumentTypeDefault
    indexint
    transitionTimeuint
    +

  • +
  • parseEnded () +
    + +
    returns nothing
    In versions KDE 3.5.0 and above only

  • +
  • parseStarted () +
    + +
    returns nothing
    In versions KDE 3.5.0 and above only

  • +
+ + + diff --git a/doc/classref/kdecore/KTimezoneSource.html b/doc/classref/kdecore/KTimezoneSource.html new file mode 100644 index 0000000..1887053 --- /dev/null +++ b/doc/classref/kdecore/KTimezoneSource.html @@ -0,0 +1,60 @@ + + + + + class KTimezoneSource + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KTimezoneSource


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKTimezoneSource
InheritsKShared
+

methods

    +
  • KTimezoneSource (db) +
    + +
    returns a KTimezoneSource instance
    In versions KDE 3.5.0 and above only
    + +
    ArgumentTypeDefault
    dbQString
    +

  • +
  • db () +
    + +
    returns (QString)
    In versions KDE 3.5.0 and above only

  • +
  • parse (zone, dataReceiver) +
    + +
    returns (bool)
    In versions KDE 3.5.0 and above only
    + + +
    ArgumentTypeDefault
    zoneQString
    dataReceiverKTimezoneDetails
    +

  • +
+ + + diff --git a/doc/classref/kdecore/KTimezones.html b/doc/classref/kdecore/KTimezones.html new file mode 100644 index 0000000..caa8d8a --- /dev/null +++ b/doc/classref/kdecore/KTimezones.html @@ -0,0 +1,74 @@ + + + + + class KTimezones + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KTimezones


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKTimezones
Inherits
+

methods

    +
  • KTimezones () +
    + +
    returns a KTimezones instance
    In versions KDE 3.5.0 and above only

  • +
  • KTimezones (a0) +
    + +
    returns a KTimezones instance
    In versions KDE 3.5.0 and above only
    + +
    ArgumentTypeDefault
    a0KTimezones
    +

  • +
  • add (zone) +
    + +
    returns nothing
    In versions KDE 3.5.0 and above only
    + +
    ArgumentTypeDefault
    zoneKTimezone
    +

  • +
  • allZones () +
    + +
    returns (KTimezones.ZoneMap)
    In versions KDE 3.5.0 and above only

  • +
  • local () +
    + +
    returns (KTimezone)
    In versions KDE 3.5.0 and above only

  • +
  • zone (name) +
    + +
    returns (KTimezone)
    In versions KDE 3.5.0 and above only
    + +
    ArgumentTypeDefault
    nameQString
    +

  • +
+ + + diff --git a/doc/classref/kdecore/KURL.List.html b/doc/classref/kdecore/KURL.List.html new file mode 100644 index 0000000..1261d90 --- /dev/null +++ b/doc/classref/kdecore/KURL.List.html @@ -0,0 +1,183 @@ + + + + + class KURL.List + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KURL.List


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKURL.List
Inherits
+

methods

    +
  • List () +
    +
    returns a List instance

  • +
  • List (a0) +
    +
    returns a List instance
    + +
    ArgumentTypeDefault
    a0QStringList
    +

  • +
  • __contains__ (a0) +
    +
    returns (bool),
    + +
    ArgumentTypeDefault
    a0KURL
    +

  • +
  • __delitem__ (index) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    indexint
    +

  • +
  • __delitem__ (range) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    rangea Python slice
    +

  • +
  • __len__ () +
    +
    returns (int),

  • +
  • __setitem__ (index, value) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    indexint
    valueKURL
    +

  • +
  • __setitem__ (range, urlList) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    rangea Python slice
    urlListKURL.List
    +

  • +
  • append (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KURL
    +

  • +
  • clear () +
    +
    returns nothing

  • +
  • contains (a0) +
    +
    returns (uint)
    + +
    ArgumentTypeDefault
    a0KURL
    +

  • +
  • count () +
    +
    returns (uint)

  • +
  • findIndex (a0) +
    +
    returns (int)
    + +
    ArgumentTypeDefault
    a0KURL
    +

  • +
  • first () +
    +
    returns (KURL)

  • +
  • isEmpty () +
    +
    returns (bool)

  • +
  • last () +
    +
    returns (KURL)

  • +
  • prepend (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KURL
    +

  • +
  • remove (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KURL
    +

  • +
  • toStringList () +
    +
    returns (QStringList)

  • +
+

operators

    +
  • operator != (a0) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    a0KURL.List
    +

  • +
  • operator * (a0) +
    +
    returns (KURL.List)
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • operator *= (val) +
    +
    returns (KURL.List),
    + +
    ArgumentTypeDefault
    valint
    +

  • +
  • operator + (listToAdd) +
    +
    returns (KURL.List),
    + +
    ArgumentTypeDefault
    listToAddKURL.List
    +

  • +
  • operator += (a0) +
    +
    returns (KURL.List)
    + +
    ArgumentTypeDefault
    a0KURL.List
    +

  • +
  • operator == (a0) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    a0KURL.List
    +

  • +
  • operator [] (index) +
    +
    returns (KURL),
    + +
    ArgumentTypeDefault
    indexint
    +

  • +
  • operator [] (range) +
    +
    returns (KURL.List),
    + +
    ArgumentTypeDefault
    rangea Python slice
    +

  • +
+ + + diff --git a/doc/classref/kdecore/KURL.html b/doc/classref/kdecore/KURL.html new file mode 100644 index 0000000..9d7f525 --- /dev/null +++ b/doc/classref/kdecore/KURL.html @@ -0,0 +1,562 @@ + + + + + class KURL + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KURL


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKURL
Inherits
+

enums

    +
  • AdjustementFlags = {NoAdjustements, StripFileProtocol +}
  • QueryItemsOptions = {CaseInsensitiveKeys +}
  • URIMode = {Auto, Invalid, RawURI, URL, Mailto +}
+

methods

    +
  • KURL () +
    +
    returns a KURL instance

  • +
  • KURL (url, encoding_hint = 0) +
    +
    returns a KURL instance
    + + +
    ArgumentTypeDefault
    urlQString
    encoding_hintint0
    +

  • +
  • KURL (url, encoding_hint = 0) +
    +
    returns a KURL instance
    + + +
    ArgumentTypeDefault
    urlchar
    encoding_hintint0
    +

  • +
  • KURL (url, encoding_hint = 0) +
    +
    returns a KURL instance
    + + +
    ArgumentTypeDefault
    urlQCString
    encoding_hintint0
    +

  • +
  • KURL (u) +
    +
    returns a KURL instance
    + +
    ArgumentTypeDefault
    uKURL
    +

  • +
  • KURL (u) +
    +
    returns a KURL instance
    + +
    ArgumentTypeDefault
    uQUrl
    +

  • +
  • KURL (_baseurl, _rel_url, encoding_hint = 0) +
    +
    returns a KURL instance
    + + + +
    ArgumentTypeDefault
    _baseurlKURL
    _rel_urlQString
    encoding_hintint0
    +

  • +
  • addPath (txt) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    txtQString
    +

  • +
  • addQueryItem (_item, _value, encoding_hint = 0) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + + + +
    ArgumentTypeDefault
    _itemQString
    _valueQString
    encoding_hintint0
    +

  • +
  • adjustPath (_trailing) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    _trailingint
    +

  • +
  • cd (_dir) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    _dirQString
    +

  • +
  • cleanPath (cleanDirSeparator = 0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    cleanDirSeparatorbool0
    +

  • +
  • cmp (u, ignore_trailing = 0) +
    +
    returns (bool)
    + + +
    ArgumentTypeDefault
    uKURL
    ignore_trailingbool0
    +

  • +
  • decode_string (str, encoding_hint = 0) +
    + +
    returns (QString)
    static
    + + +
    ArgumentTypeDefault
    strQString
    encoding_hintint0
    +

  • +
  • directory (_strip_trailing_slash_from_result = 1, _ignore_trailing_slash_in_path = 1) +
    +
    returns (QString)
    + + +
    ArgumentTypeDefault
    _strip_trailing_slash_from_resultbool1
    _ignore_trailing_slash_in_pathbool1
    +

  • +
  • encode_string (str, encoding_hint = 0) +
    + +
    returns (QString)
    static
    + + +
    ArgumentTypeDefault
    strQString
    encoding_hintint0
    +

  • +
  • encode_string_no_slash (str, encoding_hint = 0) +
    + +
    returns (QString)
    static
    + + +
    ArgumentTypeDefault
    strQString
    encoding_hintint0
    +

  • +
  • encodedHtmlRef () +
    +
    returns (QString)

  • +
  • encodedPathAndQuery (_trailing = 0, _no_empty_path = 0, encoding_hint = 0) +
    +
    returns (QString)
    + + + +
    ArgumentTypeDefault
    _trailingint0
    _no_empty_pathbool0
    encoding_hintint0
    +

  • +
  • equals (u, ignore_trailing = 0) +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above only
    + + +
    ArgumentTypeDefault
    uKURL
    ignore_trailingbool0
    +

  • +
  • fileEncoding () +
    +
    returns (QString)

  • +
  • fileName (_ignore_trailing_slash_in_path = 1) +
    +
    returns (QString)
    + +
    ArgumentTypeDefault
    _ignore_trailing_slash_in_pathbool1
    +

  • +
  • filename (_ignore_trailing_slash_in_path = 1) +
    +
    returns (QString)
    + +
    ArgumentTypeDefault
    _ignore_trailing_slash_in_pathbool1
    +

  • +
  • fromPathOrURL (text) +
    + + +
    returns (KURL)
    In versions KDE 3.1.0 and above only
    static
    + +
    ArgumentTypeDefault
    textQString
    +

  • +
  • hasHTMLRef () +
    +
    returns (bool)

  • +
  • hasHost () +
    +
    returns (bool)

  • +
  • hasPass () +
    +
    returns (bool)

  • +
  • hasPath () +
    +
    returns (bool)

  • +
  • hasRef () +
    +
    returns (bool)

  • +
  • hasSubURL () +
    +
    returns (bool)

  • +
  • hasUser () +
    +
    returns (bool)

  • +
  • host () +
    +
    returns (QString)

  • +
  • htmlRef () +
    +
    returns (QString)

  • +
  • htmlURL () +
    + +
    returns (QString)
    In versions KDE 3.0.1 and above only

  • +
  • isEmpty () +
    +
    returns (bool)

  • +
  • isLocalFile () +
    +
    returns (bool)

  • +
  • isMalformed () +
    +
    returns (bool)

  • +
  • isParentOf (u) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    uKURL
    +

  • +
  • isRelativeURL (_url) +
    + +
    returns (bool)
    static
    + +
    ArgumentTypeDefault
    _urlQString
    +

  • +
  • isValid () +
    +
    returns (bool)

  • +
  • join (_list) +
    + +
    returns (KURL)
    static
    + +
    ArgumentTypeDefault
    _listKURL.List
    +

  • +
  • parse (_url, encoding_hint = 0) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    _urlQString
    encoding_hintint0
    +

  • +
  • parseMailto (_url, encoding_hint = 0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    _urlQString
    encoding_hintint0
    +

  • +
  • parseRawURI (_url, encoding_hint = 0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    _urlQString
    encoding_hintint0
    +

  • +
  • parseURL (_url, encoding_hint = 0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    _urlQString
    encoding_hintint0
    +

  • +
  • pass_ () +
    + +
    returns (QString)
    Renamed: was ' pass +' in C++

  • +
  • path () +
    +
    returns (QString)

  • +
  • path (_trailing) +
    +
    returns (QString)
    + +
    ArgumentTypeDefault
    _trailingint
    +

  • +
  • pathOrURL () +
    + +
    returns (QString)
    In versions KDE 3.4.0 and above only

  • +
  • port () +
    +
    returns (ushort)

  • +
  • prettyURL (_trailing = 0) +
    +
    returns (QString)
    + +
    ArgumentTypeDefault
    _trailingint0
    +

  • +
  • prettyURL (_trailing, _flags) +
    +
    returns (QString)
    + + +
    ArgumentTypeDefault
    _trailingint
    _flagsKURL.AdjustementFlags
    +

  • +
  • protocol () +
    +
    returns (QString)

  • +
  • query () +
    +
    returns (QString)

  • +
  • queryItem (item) +
    +
    returns (QString)
    + +
    ArgumentTypeDefault
    itemQString
    +

  • +
  • queryItem (item, encoding_hint) +
    + +
    returns (QString)
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    itemQString
    encoding_hintint
    +

  • +
  • queryItems (options = 0) +
    + +
    returns (QMap)
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    optionsint0
    +

  • +
  • queryItems (options, encoding_hint) +
    + +
    returns (QMap)
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    optionsint
    encoding_hintint
    +

  • +
  • ref () +
    +
    returns (QString)

  • +
  • relativePath (base_dir, path) +
    + + +
    returns (QString) isParent (bool)
    In versions KDE 3.2.0 and above only
    static
    + + +
    ArgumentTypeDefault
    base_dirQString
    pathQString
    +

  • +
  • relativeURL (base_url, url, encoding_hint = 0) +
    + + +
    returns (QString)
    In versions KDE 3.2.0 and above only
    static
    + + + +
    ArgumentTypeDefault
    base_urlKURL
    urlKURL
    encoding_hintint0
    +

  • +
  • removeQueryItem (_item) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    _itemQString
    +

  • +
  • reset () +
    +
    returns nothing

  • +
  • setDirectory (dir) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    dirQString
    +

  • +
  • setEncodedPath (_txt, encoding_hint = 0) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    _txtQString
    encoding_hintint0
    +

  • +
  • setEncodedPathAndQuery (_txt, encoding_hint = 0) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    _txtQString
    encoding_hintint0
    +

  • +
  • setFileEncoding (encoding) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    encodingQString
    +

  • +
  • setFileName (_txt) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    _txtQString
    +

  • +
  • setHTMLRef (_ref) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    _refQString
    +

  • +
  • setHost (_txt) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    _txtQString
    +

  • +
  • setPass (_txt) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    _txtQString
    +

  • +
  • setPath (path) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    pathQString
    +

  • +
  • setPort (_p) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    _pushort
    +

  • +
  • setProtocol (_txt) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    _txtQString
    +

  • +
  • setQuery (_txt, encoding_hint = 0) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    _txtQString
    encoding_hintint0
    +

  • +
  • setRef (_txt) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    _txtQString
    +

  • +
  • setUser (_txt) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    _txtQString
    +

  • +
  • split (_url) +
    + +
    returns (KURL.List)
    static
    + +
    ArgumentTypeDefault
    _urlQString
    +

  • +
  • split (_url) +
    + +
    returns (KURL.List)
    static
    + +
    ArgumentTypeDefault
    _urlKURL
    +

  • +
  • upURL () +
    +
    returns (KURL)

  • +
  • uriMode () +
    + +
    returns (int)
    In versions KDE 3.2.0 and above only

  • +
  • uriModeForProtocol (protocol) +
    + + +
    returns (KURL.URIMode)
    In versions KDE 3.2.0 and above only
    static
    + +
    ArgumentTypeDefault
    protocolQString
    +

  • +
  • url (_trailing = 0, encoding_hint = 0) +
    +
    returns (QString)
    + + +
    ArgumentTypeDefault
    _trailingint0
    encoding_hintint0
    +

  • +
  • user () +
    +
    returns (QString)

  • +
+

operators

    +
  • operator != (a0) +
    + +
    returns (bool)
    In versions KDE 3.1.4 and above only
    + +
    ArgumentTypeDefault
    a0KURL
    +

  • +
  • operator != (a0) +
    + +
    returns (bool)
    In versions KDE 3.1.4 and above only
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • operator < (a0) +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0KURL
    +

  • +
  • operator == (a0) +
    + +
    returns (bool)
    In versions KDE 3.1.4 and above only
    + +
    ArgumentTypeDefault
    a0KURL
    +

  • +
  • operator == (a0) +
    + +
    returns (bool)
    In versions KDE 3.1.4 and above only
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
+ + + diff --git a/doc/classref/kdecore/KURLDrag.html b/doc/classref/kdecore/KURLDrag.html new file mode 100644 index 0000000..e39e32a --- /dev/null +++ b/doc/classref/kdecore/KURLDrag.html @@ -0,0 +1,165 @@ + + + + + class KURLDrag + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KURLDrag


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKURLDrag
InheritsQUriDrag
+

methods

    +
  • KURLDrag (urls, dragSource, name) +
    + +
    returns a KURLDrag instance
    In versions KDE 3.1.4 and above only
    + + + +
    ArgumentTypeDefault
    urlsKURL.List
    dragSourceQWidget
    namechar
    +

  • +
  • KURLDrag (urls, metaData, dragSource, name) +
    + +
    returns a KURLDrag instance
    In versions KDE 3.1.4 and above only
    + + + + +
    ArgumentTypeDefault
    urlsKURL.List
    metaDataQMap
    dragSourceQWidget
    namechar
    +

  • +
  • KURLDrag (urls, metaData, dragSource, name) +
    + +
    returns a KURLDrag instance
    In versions KDE 3.1.4 and above only
    + + + + +
    ArgumentTypeDefault
    urlsQStrList
    metaDataQMap
    dragSourceQWidget
    namechar
    +

  • +
  • decode (e, urls) +
    + + +
    returns (bool)
    In versions KDE 3.1.4 and above only
    static
    + + +
    ArgumentTypeDefault
    eQMimeSource
    urlsKURL.List
    +

  • +
  • decode (e, urls, metaData) +
    + + +
    returns (bool)
    In versions KDE 3.1.4 and above only
    static
    + + + +
    ArgumentTypeDefault
    eQMimeSource
    urlsKURL.List
    metaDataQMap
    +

  • +
  • encodedData (mime) +
    + +
    returns (QByteArray)
    In versions KDE 3.5.0 and above only
    + +
    ArgumentTypeDefault
    mimechar
    +

  • +
  • encodedData (a0) +
    + +
    returns (QByteArray)
    In versions less than KDE 3.5.0 only
    + +
    ArgumentTypeDefault
    a0char
    +

  • +
  • format (i) +
    + +
    returns (char)
    In versions KDE 3.5.0 and above only
    + +
    ArgumentTypeDefault
    iint
    +

  • +
  • format (a0) +
    + +
    returns (char)
    In versions less than KDE 3.5.0 only
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • metaData () +
    + +
    returns (QMap)
    In versions KDE 3.1.4 and above only

  • +
  • newDrag (urls, dragSource = 0, name = 0) +
    + + +
    returns (KURLDrag)
    In versions KDE 3.1.4 and above only
    static
    + + + +
    ArgumentTypeDefault
    urlsKURL.List
    dragSourceQWidget0
    namechar0
    +

  • +
  • newDrag (urls, metaData, dragSource = 0, name = 0) +
    + + +
    returns (KURLDrag)
    In versions KDE 3.1.4 and above only
    static
    + + + + +
    ArgumentTypeDefault
    urlsKURL.List
    metaDataQMap
    dragSourceQWidget0
    namechar0
    +

  • +
  • setExportAsText (exp) +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only
    + +
    ArgumentTypeDefault
    expbool
    +

  • +
  • stringToUrl (s) +
    + + +
    returns (KURL)
    In versions KDE 3.2.0 and above only
    static
    + +
    ArgumentTypeDefault
    sQCString
    +

  • +
  • urlToString (url) +
    + + +
    returns (QString)
    In versions KDE 3.2.0 and above only
    static
    + +
    ArgumentTypeDefault
    urlKURL
    +

  • +
+ + + diff --git a/doc/classref/kdecore/KUniqueApplication.html b/doc/classref/kdecore/KUniqueApplication.html new file mode 100644 index 0000000..b0e636c --- /dev/null +++ b/doc/classref/kdecore/KUniqueApplication.html @@ -0,0 +1,101 @@ + + + + + class KUniqueApplication + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KUniqueApplication


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKUniqueApplication
InheritsKApplication, DCOPObject
+

methods

    +
  • KUniqueApplication (allowStyles, GUIenabled, configUnique) +
    +
    returns a KUniqueApplication instance
    + + + +
    ArgumentTypeDefault
    allowStylesbool
    GUIenabledbool
    configUniquebool
    +

  • +
  • KUniqueApplication (display, visual = 0, colormap = 0, allowStyles = 1, configUnique = 0) +
    Not Implemented
    +

  • +
  • KUniqueApplication (a0 = 1, a1 = 1) +
    + +
    returns a KUniqueApplication instance
    In versions less than KDE 3.3.0 only
    + + +
    ArgumentTypeDefault
    a0bool1
    a1bool1
    +

  • +
  • addCmdLineOptions () +
    + +
    returns nothing
    static

  • +
  • dcopClient () +
    + +
    returns (DCOPClient)
    In versions less than KDE 3.3.0 only

  • +
  • newInstance () +
    +
    returns (int)

  • +
  • process (fun, data, replyType, replyData) +
    +
    returns (bool)
    + + + + +
    ArgumentTypeDefault
    funQCString
    dataQByteArray
    replyTypeQCString
    replyDataQByteArray
    +

  • +
  • restoringSession () +
    + +
    returns (bool)
    In versions KDE 3.3.0 and above only

  • +
  • setHandleAutoStarted () +
    + + +
    returns nothing
    In versions KDE 3.3.0 and above only
    static

  • +
  • start () +
    + +
    returns (bool)
    static

  • +
  • virtual_hook (id, data) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + + +
    ArgumentTypeDefault
    idint
    datavoid
    +

  • +
+ + + diff --git a/doc/classref/kdecore/KWin.Info.html b/doc/classref/kdecore/KWin.Info.html new file mode 100644 index 0000000..61ed86d --- /dev/null +++ b/doc/classref/kdecore/KWin.Info.html @@ -0,0 +1,66 @@ + + + + + class KWin.Info + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KWin.Info


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKWin.Info
Inherits
+

methods

    +
  • isIconified () +
    +
    returns (bool)

  • +
  • isMinimized () +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only

  • +
  • visibleNameWithState () +
    +
    returns (QString)

  • +
+

variables

  • +variables + + + + + + + + + + + + +
    VariableType
    desktopint
    frameGeometryQRect
    geometryQRect
    mappingStateNET::MappingState
    nameQString
    onAllDesktopsbool
    pidpid_t
    stateulong
    strutNETStrut
    visibleNameQString
    winWId
    windowTypeNET::WindowType
+ + + diff --git a/doc/classref/kdecore/KWin.WindowInfo.html b/doc/classref/kdecore/KWin.WindowInfo.html new file mode 100644 index 0000000..8782a36 --- /dev/null +++ b/doc/classref/kdecore/KWin.WindowInfo.html @@ -0,0 +1,172 @@ + + + + + class KWin.WindowInfo + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KWin.WindowInfo


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKWin.WindowInfo
Inherits
+

methods

    +
  • WindowInfo (window, properties, properties2) +
    + +
    returns a WindowInfo instance
    In versions KDE 3.2.0 and above only
    + + + +
    ArgumentTypeDefault
    windowWId
    propertiesulong
    properties2ulong
    +

  • +
  • WindowInfo () +
    + +
    returns a WindowInfo instance
    In versions KDE 3.2.0 and above only

  • +
  • WindowInfo (a0) +
    + +
    returns a WindowInfo instance
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0KWin.WindowInfo
    +

  • +
  • actionSupported (action) +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    actionNET.Action
    +

  • +
  • desktop () +
    + +
    returns (int)
    In versions KDE 3.2.0 and above only

  • +
  • extendedStrut () +
    + +
    returns (NETExtendedStrut)
    In versions KDE 3.3.0 and above only

  • +
  • frameGeometry () +
    + +
    returns (QRect)
    In versions KDE 3.2.0 and above only

  • +
  • geometry () +
    + +
    returns (QRect)
    In versions KDE 3.2.0 and above only

  • +
  • groupLeader () +
    + +
    returns (WId)
    In versions KDE 3.2.0 and above only

  • +
  • hasState (s) +
    + +
    returns (bool)
    In versions KDE 3.2.1 and above only
    + +
    ArgumentTypeDefault
    sulong
    +

  • +
  • iconName () +
    + +
    returns (QString)
    In versions KDE 3.2.0 and above only

  • +
  • isMinimized () +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only

  • +
  • isOnCurrentDesktop () +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only

  • +
  • isOnDesktop (desktop) +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    desktopint
    +

  • +
  • mappingState () +
    + +
    returns (NET.MappingState)
    In versions KDE 3.2.0 and above only

  • +
  • name () +
    + +
    returns (QString)
    In versions KDE 3.2.0 and above only

  • +
  • onAllDesktops () +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only

  • +
  • state () +
    + +
    returns (ulong)
    In versions KDE 3.2.0 and above only

  • +
  • strut () +
    + +
    returns (NETStrut)
    In versions KDE 3.2.0 and above only

  • +
  • transientFor () +
    + +
    returns (WId)
    In versions KDE 3.2.0 and above only

  • +
  • valid (withdrawn_is_valid = 0) +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    withdrawn_is_validbool0
    +

  • +
  • visibleIconName () +
    + +
    returns (QString)
    In versions KDE 3.2.0 and above only

  • +
  • visibleIconNameWithState () +
    + +
    returns (QString)
    In versions KDE 3.2.0 and above only

  • +
  • visibleName () +
    + +
    returns (QString)
    In versions KDE 3.2.0 and above only

  • +
  • visibleNameWithState () +
    + +
    returns (QString)
    In versions KDE 3.2.0 and above only

  • +
  • win () +
    + +
    returns (WId)
    In versions KDE 3.2.0 and above only

  • +
  • windowType (supported_types) +
    + +
    returns (NET.WindowType)
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    supported_typesint
    +

  • +
+ + + diff --git a/doc/classref/kdecore/KWin.html b/doc/classref/kdecore/KWin.html new file mode 100644 index 0000000..577f7b7 --- /dev/null +++ b/doc/classref/kdecore/KWin.html @@ -0,0 +1,304 @@ + + + + + class KWin + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KWin


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKWin
Inherits
+

enums

    +
  • IconSource = {NETWM = 1, WMHints = 2, ClassHint = 4, XApp = 8 +}
+

methods

    +
  • activateWindow (win, time = 0) +
    + + +
    returns nothing
    In versions KDE 3.2.0 and above only
    static
    + + +
    ArgumentTypeDefault
    winWId
    timelong0
    +

  • +
  • allowedActionsSupported () +
    + + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    static

  • +
  • appStarted () +
    + +
    returns nothing
    static

  • +
  • clearState (win, state) +
    + +
    returns nothing
    static
    + + +
    ArgumentTypeDefault
    winWId
    stateulong
    +

  • +
  • currentDesktop () +
    + +
    returns (int)
    static

  • +
  • deIconifyWindow (win, animation = 1) +
    + +
    returns nothing
    static
    + + +
    ArgumentTypeDefault
    winWId
    animationbool1
    +

  • +
  • demandAttention (win, set = 1) +
    + + +
    returns nothing
    In versions KDE 3.2.0 and above only
    static
    + + +
    ArgumentTypeDefault
    winWId
    setbool1
    +

  • +
  • forceActiveWindow (win, time = 0) +
    + + +
    returns nothing
    In versions KDE 3.2.0 and above only
    static
    + + +
    ArgumentTypeDefault
    winWId
    timelong0
    +

  • +
  • groupLeader (window) +
    + + +
    returns (WId)
    In versions KDE 3.2.0 and above only
    static
    + +
    ArgumentTypeDefault
    windowWId
    +

  • +
  • icccmCompliantMappingState () +
    + + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    static

  • +
  • icon (win, width = -1, height = -1, scale = 0) +
    + +
    returns (QPixmap)
    static
    + + + + +
    ArgumentTypeDefault
    winWId
    widthint-1
    heightint-1
    scalebool0
    +

  • +
  • icon (win, width, height, scale, flags) +
    + + +
    returns (QPixmap)
    In versions KDE 3.2.0 and above only
    static
    + + + + + +
    ArgumentTypeDefault
    winWId
    widthint
    heightint
    scalebool
    flagsint
    +

  • +
  • iconifyWindow (win, animation = 1) +
    + +
    returns nothing
    static
    + + +
    ArgumentTypeDefault
    winWId
    animationbool1
    +

  • +
  • info (win) +
    + +
    returns (KWin.Info)
    static
    + +
    ArgumentTypeDefault
    winWId
    +

  • +
  • invokeContextHelp () +
    + +
    returns nothing
    static

  • +
  • lowerWindow (win) +
    + + +
    returns nothing
    In versions KDE 3.2.0 and above only
    static
    + +
    ArgumentTypeDefault
    winWId
    +

  • +
  • numberOfDesktops () +
    + +
    returns (int)
    static

  • +
  • raiseWindow (win) +
    + + +
    returns nothing
    In versions KDE 3.2.0 and above only
    static
    + +
    ArgumentTypeDefault
    winWId
    +

  • +
  • readNameProperty (window, atom) +
    + + +
    returns (QString)
    In versions KDE 3.2.0 and above only
    static
    + + +
    ArgumentTypeDefault
    windowWId
    atomulong
    +

  • +
  • setActiveWindow (win) +
    + +
    returns nothing
    static
    + +
    ArgumentTypeDefault
    winWId
    +

  • +
  • setCurrentDesktop (desktop) +
    + +
    returns nothing
    static
    + +
    ArgumentTypeDefault
    desktopint
    +

  • +
  • setExtendedStrut (win, left_width, left_start, left_end, right_width, right_start, right_end, top_width, top_start, top_end, bottom_width, bottom_start, bottom_end) +
    + + +
    returns nothing
    In versions KDE 3.3.0 and above only
    static
    + + + + + + + + + + + + + +
    ArgumentTypeDefault
    winWId
    left_widthint
    left_startint
    left_endint
    right_widthint
    right_startint
    right_endint
    top_widthint
    top_startint
    top_endint
    bottom_widthint
    bottom_startint
    bottom_endint
    +

  • +
  • setIcons (win, icon, miniIcon) +
    + +
    returns nothing
    static
    + + + +
    ArgumentTypeDefault
    winWId
    iconQPixmap
    miniIconQPixmap
    +

  • +
  • setOnAllDesktops (win, b) +
    + +
    returns nothing
    static
    + + +
    ArgumentTypeDefault
    winWId
    bbool
    +

  • +
  • setOnDesktop (win, desktop) +
    + +
    returns nothing
    static
    + + +
    ArgumentTypeDefault
    winWId
    desktopint
    +

  • +
  • setState (win, state) +
    + +
    returns nothing
    static
    + + +
    ArgumentTypeDefault
    winWId
    stateulong
    +

  • +
  • setStrut (win, left, right, top, bottom) +
    + +
    returns nothing
    static
    + + + + + +
    ArgumentTypeDefault
    winWId
    leftint
    rightint
    topint
    bottomint
    +

  • +
  • setSystemTrayWindowFor (trayWin, forWin) +
    + +
    returns nothing
    static
    + + +
    ArgumentTypeDefault
    trayWinWId
    forWinWId
    +

  • +
  • setType (win, windowType) +
    + +
    returns nothing
    static
    + + +
    ArgumentTypeDefault
    winWId
    windowTypeNET.WindowType
    +

  • +
  • setUserTime (win, time) +
    + + +
    returns nothing
    In versions KDE 3.2.0 and above only
    static
    + + +
    ArgumentTypeDefault
    winWId
    timelong
    +

  • +
  • transientFor (window) +
    + + +
    returns (WId)
    In versions KDE 3.2.0 and above only
    static
    + +
    ArgumentTypeDefault
    windowWId
    +

  • +
  • windowInfo (win, properties = 0, properties2 = 0) +
    + + +
    returns (KWin.WindowInfo)
    In versions KDE 3.2.0 and above only
    static
    + + + +
    ArgumentTypeDefault
    winWId
    propertiesulong0
    properties2ulong0
    +

  • +
+ + + diff --git a/doc/classref/kdecore/KWinModule.html b/doc/classref/kdecore/KWinModule.html new file mode 100644 index 0000000..6103e4e --- /dev/null +++ b/doc/classref/kdecore/KWinModule.html @@ -0,0 +1,191 @@ + + + + + class KWinModule + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KWinModule


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKWinModule
InheritsQObject
+

enums

    +
  • (anonymous) = {INFO_DESKTOP = 1, INFO_WINDOWS = 2, INFO_ALL = 32767 +}
+

methods

    +
  • KWinModule (parent, what) +
    + +
    returns a KWinModule instance
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    parentQObject
    whatint
    +

  • +
  • KWinModule (parent = 0) +
    +
    returns a KWinModule instance
    + +
    ArgumentTypeDefault
    parentQObject0
    +

  • +
  • activeWindow () +
    +
    returns (WId)

  • +
  • activeWindowChanged (id) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    idWId
    +

  • +
  • connectNotify (signal) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    signalchar
    +

  • +
  • currentDesktop () +
    +
    returns (int)

  • +
  • currentDesktopChanged (desktop) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    desktopint
    +

  • +
  • desktopName (desktop) +
    +
    returns (QString)
    + +
    ArgumentTypeDefault
    desktopint
    +

  • +
  • desktopNamesChanged () +
    +
    returns nothing

  • +
  • doNotManage (title) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    titleQString
    +

  • +
  • hasWId (id) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    idWId
    +

  • +
  • numberOfDesktops () +
    +
    returns (int)

  • +
  • numberOfDesktopsChanged (num) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    numint
    +

  • +
  • setDesktopName (desktop, name) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    desktopint
    nameQString
    +

  • +
  • stackingOrder () +
    +
    returns (QValueList)

  • +
  • stackingOrderChanged () +
    +
    returns nothing

  • +
  • strutChanged () +
    +
    returns nothing

  • +
  • systemTrayWindowAdded (id) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    idWId
    +

  • +
  • systemTrayWindowRemoved (id) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    idWId
    +

  • +
  • systemTrayWindows () +
    +
    returns (QValueList)

  • +
  • windowAdded (id) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    idWId
    +

  • +
  • windowChanged (id) +
    Not Implemented
    +

  • +
  • windowChanged (id, properties) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    idWId
    propertiesuint
    +

  • +
  • windowChanged (id) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    idWId
    +

  • +
  • windowRemoved (id) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    idWId
    +

  • +
  • windows () +
    +
    returns (QValueList)

  • +
  • workArea (desktop = -1) +
    +
    returns (QRect)
    + +
    ArgumentTypeDefault
    desktopint-1
    +

  • +
  • workArea (excludes, desktop = -1) +
    +
    returns (QRect)
    + + +
    ArgumentTypeDefault
    excludesQValueList
    desktopint-1
    +

  • +
  • workAreaChanged () +
    +
    returns nothing

  • +
+ + + diff --git a/doc/classref/kdecore/KWordMacroExpander.html b/doc/classref/kdecore/KWordMacroExpander.html new file mode 100644 index 0000000..66684d5 --- /dev/null +++ b/doc/classref/kdecore/KWordMacroExpander.html @@ -0,0 +1,75 @@ + + + + + class KWordMacroExpander + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KWordMacroExpander


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKWordMacroExpander (abstract)
InheritsKMacroExpanderBase
+

methods

    +
  • KWordMacroExpander (c = '%') +
    + +
    returns a KWordMacroExpander instance
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    cQChar'%'
    +

  • +
  • expandEscapedMacro (str, pos, ret) +
    + +
    returns (int)
    In versions KDE 3.3.0 and above only
    + + + +
    ArgumentTypeDefault
    strQString
    posuint
    retQStringList
    +

  • +
  • expandMacro (str, ret) = 0 +
    + + +
    returns (bool)
    In versions KDE 3.3.0 and above only
    pure virtual
    + + +
    ArgumentTypeDefault
    strQString
    retQStringList
    +

  • +
  • expandPlainMacro (str, pos, ret) +
    + +
    returns (int)
    In versions KDE 3.3.0 and above only
    + + + +
    ArgumentTypeDefault
    strQString
    posuint
    retQStringList
    +

  • +
+ + + diff --git a/doc/classref/kdecore/KZoneAllocator.html b/doc/classref/kdecore/KZoneAllocator.html new file mode 100644 index 0000000..0d3d6d9 --- /dev/null +++ b/doc/classref/kdecore/KZoneAllocator.html @@ -0,0 +1,77 @@ + + + + + class KZoneAllocator + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KZoneAllocator


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassKZoneAllocator
Inherits
+

methods

    +
  • KZoneAllocator (_blockSize = 131072) +
    +
    returns a KZoneAllocator instance
    + +
    ArgumentTypeDefault
    _blockSizelong131072
    +

  • +
  • addBlock (b) +
    Not Implemented
    +

  • +
  • allocate (_size) +
    +
    returns (void)
    + +
    ArgumentTypeDefault
    _sizesize_t
    +

  • +
  • deallocate (ptr) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    ptrvoid
    +

  • +
  • delBlock (b) +
    Not Implemented
    +

  • +
  • free_since (ptr) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    ptrvoid
    +

  • +
  • initHash () +
    +
    returns nothing

  • +
  • insertHash (b) +
    Not Implemented
    +

  • +
+ + + diff --git a/doc/classref/kdecore/NET.html b/doc/classref/kdecore/NET.html new file mode 100644 index 0000000..3c45bd3 --- /dev/null +++ b/doc/classref/kdecore/NET.html @@ -0,0 +1,92 @@ + + + + + class NET + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class NET


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassNET
Inherits
+

enums

    +
  • (anonymous) = {AllTypesMask +}
  • (anonymous) = {OnAllDesktops +}
  • (anonymous) = {AllTypesMask +}
  • Action = {ActionMove, ActionResize, ActionMinimize, ActionShade, ActionStick, ActionMaxVert, ActionMaxHoriz, ActionMax, ActionFullScreen, ActionChangeDesktop, ActionClose +}
  • Direction = {TopLeft, Top, TopRight, Right, BottomRight, Bottom, BottomLeft, Left, Move, KeyboardSize, KeyboardMove, MoveResizeCancel +}
  • Direction = {TopLeft, Top, TopRight, Right, BottomRight, Bottom, BottomLeft, Left, Move, KeyboardSize, KeyboardMove +}
  • Direction = {TopLeft, Top, TopRight, Right, BottomRight, Bottom, BottomLeft, Left, Move +}
  • MappingState = {Visible, Withdrawn, Iconic +}
  • Property = {Supported, ClientList, ClientListStacking, NumberOfDesktops, DesktopGeometry, DesktopViewport, CurrentDesktop, DesktopNames, ActiveWindow, WorkArea, SupportingWMCheck, VirtualRoots, KDESystemTrayWindows, CloseWindow, WMMoveResize, WMName, WMVisibleName, WMDesktop, WMWindowType, WMState, WMStrut, WMIconGeometry, WMIcon, WMPid, WMHandledIcons, WMPing, WMKDESystemTrayWinFor, XAWMState, WMFrameExtents, WMKDEFrameStrut, WMIconName, WMVisibleIconName, WMGeometry +}
  • Property = {Supported, ClientList, ClientListStacking, NumberOfDesktops, DesktopGeometry, DesktopViewport, CurrentDesktop, DesktopNames, ActiveWindow, WorkArea, SupportingWMCheck, VirtualRoots, KDESystemTrayWindows, CloseWindow, WMMoveResize, WMName, WMVisibleName, WMDesktop, WMWindowType, WMState, WMStrut, WMIconGeometry, WMIcon, WMPid, WMHandledIcons, WMPing, WMKDESystemTrayWinFor, XAWMState, WMKDEFrameStrut, WMIconName, WMVisibleIconName, WMGeometry +}
  • Property2 = {WM2UserTime = 1, WM2StartupId = 2, WM2TransientFor = 4, WM2GroupLeader = 8, WM2AllowedActions = 16, WM2RestackWindow = 32, WM2MoveResizeWindow = 64, WM2ExtendedStrut = 128, WM2TakeActivity = 256, WM2KDETemporaryRules = 512, WM2WindowClass = 1024, WM2WindowRole = 2048, WM2ClientMachine = 4096, WM2ShowingDesktop = 8192 +}
  • Property2 = {WM2UserTime, WM2StartupId, WM2TransientFor, WM2GroupLeader, WM2AllowedActions, WM2RestackWindow, WM2MoveResizeWindow, WM2ExtendedStrut, WM2TakeActivity, WM2KDETemporaryRules, WM2WindowClass, WM2WindowRole, WM2ClientMachine +}
  • Property2 = {WM2UserTime, WM2StartupId, WM2TransientFor, WM2GroupLeader, WM2AllowedActions, WM2RestackWindow, WM2MoveResizeWindow, WM2ExtendedStrut, WM2TakeActivity, WM2KDETemporaryRules +}
  • Property2 = {WM2UserTime, WM2StartupId, WM2TransientFor, WM2GroupLeader, WM2AllowedActions, WM2RestackWindow, WM2MoveResizeWindow +}
  • RequestSource = {FromUnknown, FromApplication, FromTool +}
  • Role = {Client, WindowManager +}
  • State = {Modal, Sticky, MaxVert, MaxHoriz, Max, Shaded, SkipTaskbar, KeepAbove, StaysOnTop, SkipPager, Hidden, FullScreen, KeepBelow, DemandsAttention +}
  • State = {Modal, Sticky, MaxVert, MaxHoriz, Max, Shaded, SkipTaskbar, StaysOnTop, SkipPager +}
  • WindowType = {Unknown, Normal, Desktop, Dock, Toolbar, Menu, Dialog, Override, TopMenu, Tool, Utility, Splash +}
  • WindowType = {Unknown, Normal, Desktop, Dock, Toolbar, Menu, Dialog, Override, TopMenu, Tool +}
  • WindowType = {Unknown, Normal, Desktop, Dock, Tool, Menu, Dialog, Override, Toolbar +}
  • WindowTypeMask = {NormalMask, DesktopMask, DockMask, ToolbarMask, MenuMask, DialogMask, OverrideMask, TopMenuMask, UtilityMask, SplashMask +}
+

methods

    +
  • timestampCompare (time1, time2) +
    + + +
    returns (int)
    In versions KDE 3.5.3 and above only
    static
    + + +
    ArgumentTypeDefault
    time1ulong
    time2ulong
    +

  • +
  • timestampDiff (time1_, time2_) +
    + + +
    returns (int)
    In versions KDE 3.5.3 and above only
    static
    + + +
    ArgumentTypeDefault
    time1_ulong
    time2_ulong
    +

  • +
  • typeMatchesMask (type, mask) +
    + + +
    returns (bool)
    In versions KDE 3.3.0 and above only
    static
    + + +
    ArgumentTypeDefault
    typeNET.WindowType
    maskulong
    +

  • +
+ + + diff --git a/doc/classref/kdecore/NETExtendedStrut.html b/doc/classref/kdecore/NETExtendedStrut.html new file mode 100644 index 0000000..d02a704 --- /dev/null +++ b/doc/classref/kdecore/NETExtendedStrut.html @@ -0,0 +1,60 @@ + + + + + class NETExtendedStrut + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class NETExtendedStrut


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassNETExtendedStrut
Inherits
+

methods

    +
  • NETExtendedStrut () +
    + +
    returns a NETExtendedStrut instance
    In versions KDE 3.3.0 and above only

  • +
+

variables

  • +variables + + + + + + + + + + + + +
    VariableType
    bottom_endint
    bottom_startint
    bottom_widthint
    left_endint
    left_startint
    left_widthint
    right_endint
    right_startint
    right_widthint
    top_endint
    top_startint
    top_widthint
+ + + diff --git a/doc/classref/kdecore/NETIcon.html b/doc/classref/kdecore/NETIcon.html new file mode 100644 index 0000000..b4a5f0d --- /dev/null +++ b/doc/classref/kdecore/NETIcon.html @@ -0,0 +1,49 @@ + + + + + class NETIcon + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class NETIcon


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassNETIcon
Inherits
+

methods

    +
  • NETIcon () +
    +
    returns a NETIcon instance

  • +
+

variables

  • +variables + + +
    VariableType
    datauchar*
    sizeNETSize
+ + + diff --git a/doc/classref/kdecore/NETPoint.html b/doc/classref/kdecore/NETPoint.html new file mode 100644 index 0000000..0c44a14 --- /dev/null +++ b/doc/classref/kdecore/NETPoint.html @@ -0,0 +1,49 @@ + + + + + class NETPoint + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class NETPoint


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassNETPoint
Inherits
+

methods

    +
  • NETPoint () +
    +
    returns a NETPoint instance

  • +
+

variables

+ + + diff --git a/doc/classref/kdecore/NETRect.html b/doc/classref/kdecore/NETRect.html new file mode 100644 index 0000000..6c2369d --- /dev/null +++ b/doc/classref/kdecore/NETRect.html @@ -0,0 +1,44 @@ + + + + + class NETRect + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class NETRect


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassNETRect
Inherits
+

variables

  • +variables + + +
    VariableType
    posNETPoint
    sizeNETSize
+ + + diff --git a/doc/classref/kdecore/NETRootInfo.html b/doc/classref/kdecore/NETRootInfo.html new file mode 100644 index 0000000..c192a7e --- /dev/null +++ b/doc/classref/kdecore/NETRootInfo.html @@ -0,0 +1,424 @@ + + + + + class NETRootInfo + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class NETRootInfo


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassNETRootInfo
InheritsNET
+

enums

    +
  • (anonymous) = {PROTOCOLS, WINDOW_TYPES, STATES, PROTOCOLS2, ACTIONS, PROPERTIES_SIZE +}
+

methods

    +
  • NETRootInfo (supportWindow, wmName, properties, screen = -1, doActivate = True) +
    + +
    returns a NETRootInfo instance
    In versions KDE 3.2.0 and above only
    + + + + + +
    ArgumentTypeDefault
    supportWindowWindow
    wmNamea Python string
    propertiesa Python list
    screenint-1
    doActivateboolTrue
    +

  • +
  • NETRootInfo (supportWindow, wmName, properties, screen = -1, doActivate = 1) +
    +
    returns a NETRootInfo instance
    + + + + + +
    ArgumentTypeDefault
    supportWindowWindow
    wmNamea Python string
    propertiesulong
    screenint-1
    doActivatebool1
    +

  • +
  • NETRootInfo (properties, screen = -1, doActivate = 1) +
    + +
    returns a NETRootInfo instance
    In versions KDE 3.2.0 and above only
    + + + +
    ArgumentTypeDefault
    propertiesulong
    screenint-1
    doActivatebool1
    +

  • +
  • NETRootInfo (properties, screen = -1, doActivate = 1) +
    +
    returns a NETRootInfo instance
    + + + +
    ArgumentTypeDefault
    propertiesulong
    screenint-1
    doActivatebool1
    +

  • +
  • NETRootInfo (rootinfo) +
    +
    returns a NETRootInfo instance
    + +
    ArgumentTypeDefault
    rootinfoNETRootInfo
    +

  • +
  • activate () +
    +
    returns nothing

  • +
  • activeWindow () +
    +
    returns (Window)

  • +
  • addClient (window) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    windowWindow
    +

  • +
  • addSystemTrayWin (window) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    windowWindow
    +

  • +
  • changeActiveWindow (window) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    windowWindow
    +

  • +
  • changeCurrentDesktop (desktop) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    desktopint
    +

  • +
  • changeDesktopGeometry (desktop, geom) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    desktopint
    geomNETSize
    +

  • +
  • changeDesktopViewport (desktop, viewport) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    desktopint
    viewportNETPoint
    +

  • +
  • changeNumberOfDesktops (numberOfDesktops) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    numberOfDesktopsint
    +

  • +
  • clientList () +
    +
    returns a Python list of Window,

  • +
  • clientListCount () +
    +
    returns (int)

  • +
  • clientListStacking () +
    +
    returns a Python list of Window,

  • +
  • clientListStackingCount () +
    +
    returns (int)

  • +
  • closeWindow (window) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    windowWindow
    +

  • +
  • closeWindowRequest (window) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    windowWindow
    +

  • +
  • currentDesktop () +
    +
    returns (int)

  • +
  • desktopGeometry (desktop) +
    +
    returns (NETSize)
    + +
    ArgumentTypeDefault
    desktopint
    +

  • +
  • desktopName (desktop) +
    +
    returns (char)
    + +
    ArgumentTypeDefault
    desktopint
    +

  • +
  • desktopViewport (desktop) +
    +
    returns (NETPoint)
    + +
    ArgumentTypeDefault
    desktopint
    +

  • +
  • event (event, properties_size) +
    Not Implemented
    +

  • +
  • event (event) +
    Not Implemented
    +

  • +
  • isSupported (property) +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    propertyNET.Property
    +

  • +
  • isSupported (property) +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    propertyNET.Property2
    +

  • +
  • isSupported (type) +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    typeNET.WindowType
    +

  • +
  • isSupported (state) +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    stateNET.State
    +

  • +
  • isSupported (action) +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    actionNET.Action
    +

  • +
  • kdeSystemTrayWindows () +
    +
    returns a Python list of Window,

  • +
  • kdeSystemTrayWindowsCount () +
    +
    returns (int)

  • +
  • moveResize (window, x_root, y_root, direction) +
    +
    returns nothing
    + + + + +
    ArgumentTypeDefault
    windowWindow
    x_rootint
    y_rootint
    directionulong
    +

  • +
  • moveResizeRequest (window, x_root, y_root, direction) +
    +
    returns nothing
    + + + + +
    ArgumentTypeDefault
    windowWindow
    x_rootint
    y_rootint
    directionDirection
    +

  • +
  • moveResizeWindowRequest (window, flags, x, y, width, height) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + + + + + + +
    ArgumentTypeDefault
    windowWindow
    flagsint
    xint
    yint
    widthint
    heightint
    +

  • +
  • numberOfDesktops () +
    +
    returns (int)

  • +
  • passedProperties () +
    + +
    returns a Python list of ulong,
    In versions KDE 3.2.0 and above only

  • +
  • removeClient (window) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    windowWindow
    +

  • +
  • removeSystemTrayWin (window) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    windowWindow
    +

  • +
  • restackRequest (window, source, above, detail, timestamp) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + + + + + +
    ArgumentTypeDefault
    windowWindow
    sourceRequestSource
    aboveWindow
    detailint
    timestampTime
    +

  • +
  • restackRequest (window, above, detail) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + + + +
    ArgumentTypeDefault
    windowWindow
    aboveWindow
    detailint
    +

  • +
  • rootWindow () +
    +
    returns (Window)

  • +
  • screenNumber () +
    +
    returns (int)

  • +
  • setActiveWindow (window, src, timestamp, active_window) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + + + + +
    ArgumentTypeDefault
    windowWindow
    srcNET.RequestSource
    timestampTime
    active_windowWindow
    +

  • +
  • setActiveWindow (window) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    windowWindow
    +

  • +
  • setClientList (windows) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    windowsa Python list of Window
    +

  • +
  • setClientListStacking (windows) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    windowsa Python list of Window
    +

  • +
  • setCurrentDesktop (desktop) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    desktopint
    +

  • +
  • setDesktopGeometry (desktop, geometry) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    desktopint
    geometryNETSize
    +

  • +
  • setDesktopName (desktop, desktopName) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    desktopint
    desktopNamechar
    +

  • +
  • setDesktopViewport (desktop, viewport) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    desktopint
    viewportNETPoint
    +

  • +
  • setKDESystemTrayWindows (windows) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    windowsa Python list of Window
    +

  • +
  • setNumberOfDesktops (numberOfDesktops) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    numberOfDesktopsint
    +

  • +
  • setShowingDesktop (showing) +
    + +
    returns nothing
    In versions KDE 3.5.0 and above only
    + +
    ArgumentTypeDefault
    showingbool
    +

  • +
  • setVirtualRoots (windows) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    windowsa Python list of Window
    +

  • +
  • setWorkArea (desktop, workArea) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    desktopint
    workAreaNETRect
    +

  • +
  • showingDesktop () +
    + +
    returns (bool)
    In versions KDE 3.5.0 and above only

  • +
  • supportWindow () +
    +
    returns (Window)

  • +
  • supported () +
    +
    returns (ulong)

  • +
  • supportedProperties () +
    + +
    returns a Python list of ulong,
    In versions KDE 3.2.0 and above only

  • +
  • virtualRoots () +
    +
    returns a Python list of Window,

  • +
  • virtualRootsCount () +
    +
    returns (int)

  • +
  • wmName () +
    +
    returns (char)

  • +
  • workArea (desktop) +
    +
    returns (NETRect)
    + +
    ArgumentTypeDefault
    desktopint
    +

  • +
  • x11Display () +
    +
    returns (Display)

  • +
+ + + diff --git a/doc/classref/kdecore/NETRootInfo2.html b/doc/classref/kdecore/NETRootInfo2.html new file mode 100644 index 0000000..dd3adf1 --- /dev/null +++ b/doc/classref/kdecore/NETRootInfo2.html @@ -0,0 +1,102 @@ + + + + + class NETRootInfo2 + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class NETRootInfo2


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassNETRootInfo2
InheritsNETRootInfo
+

methods

    +
  • NETRootInfo2 (window, rootWindow, properties, role, a3 = Client) +
    + +
    returns a NETRootInfo2 instance
    In versions KDE 3.2.0 and above only
    + + + + + +
    ArgumentTypeDefault
    windowWindow
    rootWindowWindow
    propertiesulong
    roleint
    a3RoleClient
    +

  • +
  • NETRootInfo2 (display, properties_size, screen = -1, doActivate = 1) +
    Not Implemented
    +

  • +
  • changeActiveWindow (window, src, timestamp, active_window) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + + + + +
    ArgumentTypeDefault
    windowWindow
    srcNET.RequestSource
    timestampTime
    active_windowWindow
    +

  • +
  • gotPing (window, timestamp) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    windowWindow
    timestampTime
    +

  • +
  • moveResizeWindow (window, flags, x, y, width, height) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + + + + + + +
    ArgumentTypeDefault
    windowWindow
    flagsint
    xint
    yint
    widthint
    heightint
    +

  • +
  • restackWindow (window, above, detail) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + + + +
    ArgumentTypeDefault
    windowWindow
    aboveWindow
    detailint
    +

  • +
  • sendPing (window, timestamp) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    windowWindow
    timestampTime
    +

  • +
+ + + diff --git a/doc/classref/kdecore/NETRootInfo3.html b/doc/classref/kdecore/NETRootInfo3.html new file mode 100644 index 0000000..570f1d6 --- /dev/null +++ b/doc/classref/kdecore/NETRootInfo3.html @@ -0,0 +1,84 @@ + + + + + class NETRootInfo3 + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class NETRootInfo3


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassNETRootInfo3
InheritsNETRootInfo2
+

methods

    +
  • NETRootInfo3 (window, rootWindow, properties, role, a3 = Client) +
    + +
    returns a NETRootInfo3 instance
    In versions KDE 3.3.0 and above only
    + + + + + +
    ArgumentTypeDefault
    windowWindow
    rootWindowWindow
    propertiesulong
    roleint
    a3RoleClient
    +

  • +
  • NETRootInfo3 (display, properties_size, screen = -1, doActivate = 1) +
    Not Implemented
    +

  • +
  • gotTakeActivity (window, timestamp, flags) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + + + +
    ArgumentTypeDefault
    windowWindow
    timestampTime
    flagslong
    +

  • +
  • restackWindow (window, source, above, detail, timestamp) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + + + + + +
    ArgumentTypeDefault
    windowWindow
    sourceRequestSource
    aboveWindow
    detailint
    timestampTime
    +

  • +
  • takeActivity (window, timestamp, flags) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + + + +
    ArgumentTypeDefault
    windowWindow
    timestampTime
    flagslong
    +

  • +
+ + + diff --git a/doc/classref/kdecore/NETRootInfo4.html b/doc/classref/kdecore/NETRootInfo4.html new file mode 100644 index 0000000..cda8e97 --- /dev/null +++ b/doc/classref/kdecore/NETRootInfo4.html @@ -0,0 +1,62 @@ + + + + + class NETRootInfo4 + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class NETRootInfo4


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassNETRootInfo4
InheritsNETRootInfo3
+

methods

    +
  • NETRootInfo4 (window, rootWindow, properties, role, a3 = Client) +
    + +
    returns a NETRootInfo4 instance
    In versions KDE 3.5.0 and above only
    + + + + + +
    ArgumentTypeDefault
    windowWindow
    rootWindowWindow
    propertiesulong
    roleint
    a3RoleClient
    +

  • +
  • NETRootInfo4 (display, properties_size, screen = -1, doActivate = 1) +
    Not Implemented
    +

  • +
  • changeShowingDesktop (showing) +
    + +
    returns nothing
    In versions KDE 3.5.0 and above only
    + +
    ArgumentTypeDefault
    showingbool
    +

  • +
+ + + diff --git a/doc/classref/kdecore/NETSize.html b/doc/classref/kdecore/NETSize.html new file mode 100644 index 0000000..73b9652 --- /dev/null +++ b/doc/classref/kdecore/NETSize.html @@ -0,0 +1,49 @@ + + + + + class NETSize + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class NETSize


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassNETSize
Inherits
+

methods

    +
  • NETSize () +
    +
    returns a NETSize instance

  • +
+

variables

  • +variables + + +
    VariableType
    heightint
    widthint
+ + + diff --git a/doc/classref/kdecore/NETStrut.html b/doc/classref/kdecore/NETStrut.html new file mode 100644 index 0000000..9b6f7aa --- /dev/null +++ b/doc/classref/kdecore/NETStrut.html @@ -0,0 +1,51 @@ + + + + + class NETStrut + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class NETStrut


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassNETStrut
Inherits
+

methods

    +
  • NETStrut () +
    +
    returns a NETStrut instance

  • +
+

variables

  • +variables + + + + +
    VariableType
    bottomint
    leftint
    rightint
    topint
+ + + diff --git a/doc/classref/kdecore/NETWinInfo.html b/doc/classref/kdecore/NETWinInfo.html new file mode 100644 index 0000000..027f8ad --- /dev/null +++ b/doc/classref/kdecore/NETWinInfo.html @@ -0,0 +1,315 @@ + + + + + class NETWinInfo + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class NETWinInfo


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+ + + + + + + + + + +
Modulekdecore
ClassNETWinInfo
InheritsNET
+

enums

    +
  • (anonymous) = {PROTOCOLS, PROTOCOLS2, PROPERTIES_SIZE +}
+

methods

    +
  • NETWinInfo (window, rootWindow, properties, role, a3 = Client) +
    + +
    returns a NETWinInfo instance
    In versions KDE 3.2.0 and above only
    + + + + + +
    ArgumentTypeDefault
    windowWindow
    rootWindowWindow
    propertiesulong
    roleint
    a3RoleClient
    +

  • +
  • NETWinInfo (window (Window), properties (ulong) = Client) +
    +
    returns (),
    + + +
    ArgumentTypeDefault
    window (Window)ootWindow (Window
    properties (ulong)ole (RoleClient
    +

  • +
  • NETWinInfo (wininfo) +
    +
    returns a NETWinInfo instance
    + +
    ArgumentTypeDefault
    wininfoNETWinInfo
    +

  • +
  • allowedActions () +
    + +
    returns (ulong)
    In versions KDE 3.2.0 and above only

  • +
  • changeDesktop (desktop) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    desktopint
    +

  • +
  • changeState (state, mask) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    stateulong
    maskulong
    +

  • +
  • clientMachine () +
    + +
    returns (char)
    In versions KDE 3.3.0 and above only

  • +
  • desktop () +
    +
    returns (int)

  • +
  • event (event, properties_size) +
    Not Implemented
    +

  • +
  • event (event) +
    Not Implemented
    +

  • +
  • extendedStrut () +
    + +
    returns (NETExtendedStrut)
    In versions KDE 3.3.0 and above only

  • +
  • groupLeader () +
    + +
    returns (Window)
    In versions KDE 3.2.0 and above only

  • +
  • handledIcons () +
    +
    returns (Bool)

  • +
  • hasNETSupport () +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only

  • +
  • icon (width = -1, height = -1) +
    Not Implemented
    +

  • +
  • iconGeometry () +
    +
    returns (NETRect)

  • +
  • iconName () +
    +
    returns (char)

  • +
  • kdeGeometry (frame, window) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    frameNETRect
    windowNETRect
    +

  • +
  • kdeSystemTrayWinFor () +
    +
    returns (Window)

  • +
  • mappingState () +
    +
    returns (MappingState)

  • +
  • name () +
    +
    returns (char)

  • +
  • passedProperties () +
    + +
    returns a Python list of ulong,
    In versions KDE 3.2.0 and above only

  • +
  • pid () +
    +
    returns (int)

  • +
  • properties () +
    +
    returns (ulong)

  • +
  • setAllowedActions (actions) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    actionsulong
    +

  • +
  • setDesktop (desktop) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    desktopint
    +

  • +
  • setExtendedStrut (extended_strut) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    extended_strutNETExtendedStrut
    +

  • +
  • setFrameExtents (strut) +
    + +
    returns nothing
    In versions KDE 3.5.0 and above only
    + +
    ArgumentTypeDefault
    strutNETStrut
    +

  • +
  • setHandledIcons (handled) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    handledBool
    +

  • +
  • setIcon (icon, replace = True) +
    Not Implemented
    +

  • +
  • setIconGeometry (geometry) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    geometryNETRect
    +

  • +
  • setIconName (name) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    namechar
    +

  • +
  • setKDEFrameStrut (strut) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    strutNETStrut
    +

  • +
  • setKDESystemTrayWinFor (window) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    windowWindow
    +

  • +
  • setName (name) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    namechar
    +

  • +
  • setPid (pid) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    pidint
    +

  • +
  • setStartupId (startup_id) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    startup_idchar
    +

  • +
  • setState (state, mask) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    stateulong
    maskulong
    +

  • +
  • setStrut (strut) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    strutNETStrut
    +

  • +
  • setUserTime (time) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    timeTime
    +

  • +
  • setVisibleIconName (name) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    namechar
    +

  • +
  • setVisibleName (visibleName) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    visibleNamechar
    +

  • +
  • setWindowType (type) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    typeWindowType
    +

  • +
  • startupId () +
    + +
    returns (char)
    In versions KDE 3.2.0 and above only

  • +
  • state () +
    +
    returns (ulong)

  • +
  • strut () +
    +
    returns (NETStrut)

  • +
  • transientFor () +
    + +
    returns (Window)
    In versions KDE 3.2.0 and above only

  • +
  • userTime () +
    + +
    returns (Time)
    In versions KDE 3.2.0 and above only

  • +
  • visibleIconName () +
    +
    returns (char)

  • +
  • visibleName () +
    +
    returns (char)

  • +
  • windowClassClass () +
    + +
    returns (char)
    In versions KDE 3.3.0 and above only

  • +
  • windowClassName () +
    + +
    returns (char)
    In versions KDE 3.3.0 and above only

  • +
  • windowRole () +
    + +
    returns (char)
    In versions KDE 3.3.0 and above only

  • +
  • windowType (supported_types) +
    + +
    returns (WindowType)
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    supported_typesulong
    +

  • +
  • windowType () +
    +
    returns (WindowType)

  • +
+

variables

+ + + diff --git a/doc/classref/kdecore/index.html b/doc/classref/kdecore/index.html new file mode 100644 index 0000000..af08ab1 --- /dev/null +++ b/doc/classref/kdecore/index.html @@ -0,0 +1,180 @@ + + + + + module kdecore + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

kdecore Class Index


+
+ + + + +
Table of contents
Modules
All Classes
+
+ kdecore Global and Namespace members

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
KAboutData - KConfigSkeleton.ItemSize
KAboutData
KAboutPerson
KAboutTranslator
KAccel
KAccelAction
KAccelActions
KAccelBase
KAccelShortcutList
KApplication
KAsyncIO
KAudioPlayer
KBufferedIO
KCalendarSystem
KCalendarSystemFactory
KCatalogue
KCharMacroExpander
KCharsets
KClipboardSynchronizer
KCmdLineArgs
KCmdLineOptions
KCodecs
KCompletion
KCompletionBase
KConfig
KConfigBackEnd
KConfigBase
KConfigDialogManager
KConfigGroup
KConfigGroupSaver
KConfigINIBackEnd
KConfigSkeleton
KConfigSkeleton.ItemBool
KConfigSkeleton.ItemColor
KConfigSkeleton.ItemDateTime
KConfigSkeleton.ItemDouble
KConfigSkeleton.ItemEnum
KConfigSkeleton.ItemEnum.Choice
KConfigSkeleton.ItemFont
KConfigSkeleton.ItemInt
KConfigSkeleton.ItemInt64
KConfigSkeleton.ItemIntList
KConfigSkeleton.ItemLong
KConfigSkeleton.ItemPassword
KConfigSkeleton.ItemPath
KConfigSkeleton.ItemPathList
KConfigSkeleton.ItemPoint
KConfigSkeleton.ItemProperty
KConfigSkeleton.ItemRect
KConfigSkeleton.ItemSize
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
KConfigSkeleton.ItemString - KProcIO
KConfigSkeleton.ItemString
KConfigSkeleton.ItemStringList
KConfigSkeleton.ItemUInt
KConfigSkeleton.ItemUInt64
KConfigSkeleton.ItemULong
KConfigSkeletonItem
KCrash
KDCOPPropertyProxy
KDE
KDesktopFile
KEntry
KEntryKey
KGlobal
KGlobalAccel
KGlobalSettings
KGlobalSettings.KMouseSettings
KIDNA
KIPC
KIcon
KIconEffect
KIconLoader
KIconTheme
KInstance
KKey
KKeyNative
KKeySequence
KKeyServer
KKeyServer.CodeMod
KKeyServer.Key
KKeyServer.Sym
KKeyServer.Variations
KLibFactory
KLibLoader
KLibrary
KLocale
KLockFile
KMD4
KMD5
KMacroExpander
KMacroExpanderBase
KMimeSourceFactory
KMountPoint
KMultipleDrag
KNotifyClient
KNotifyClient.Instance
KPalette
KPixmapProvider
KProcIO
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
KProcess - NETWinInfo
KProcess
KProcessController
KRFCDate
KRandomSequence
KRegExp
KRootProp
KSaveFile
KSelectionOwner
KSelectionWatcher
KSessionManaged
KShared
KSharedConfig
KShell
KShellProcess
KShortcut
KShortcutList
KSimpleConfig
KStartupInfo
KStartupInfoData
KStartupInfoId
KStaticDeleterBase
KStdAccel
KStdAccel.ShortcutList
KStringHandler
KTempDir
KTempFile
KTimezone
KTimezoneDetails
KTimezoneSource
KTimezones
KURL
KURL.List
KURLDrag
KUniqueApplication
KWordMacroExpander
KZoneAllocator
NET
NETExtendedStrut
NETIcon
NETPoint
NETRect
NETRootInfo
NETRootInfo2
NETRootInfo3
NETRootInfo4
NETSize
NETStrut
NETWinInfo
+ + diff --git a/doc/classref/kdecore/kdecore-globals.html b/doc/classref/kdecore/kdecore-globals.html new file mode 100644 index 0000000..9e76247 --- /dev/null +++ b/doc/classref/kdecore/kdecore-globals.html @@ -0,0 +1,209 @@ + + + + + kdecore globals + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

kdecore Globals


+
+ + + + + +
Table of contents
Modules
kdecore Classes
All Classes
+
+

global methods

    +
  • BarIcon (name, size = 0, state = KIcon .DefaultState, instance = KGlobal .instance ()) +
    +
    returns (QPixmap)
    + + + + +
    ArgumentTypeDefault
    nameQString
    sizeint0
    stateintKIcon .DefaultState
    instanceKInstanceKGlobal .instance ()
    +

  • +
  • BarIcon (name, instance) +
    +
    returns (QPixmap)
    + + +
    ArgumentTypeDefault
    nameQString
    instanceKInstance
    +

  • +
  • BarIconSet (name, size = 0, instance = KGlobal .instance ()) +
    +
    returns (QIconSet)
    + + + +
    ArgumentTypeDefault
    nameQString
    sizeint0
    instanceKInstanceKGlobal .instance ()
    +

  • +
  • DesktopIcon (name, size = 0, state = KIcon .DefaultState, instance = KGlobal .instance ()) +
    +
    returns (QPixmap)
    + + + + +
    ArgumentTypeDefault
    nameQString
    sizeint0
    stateintKIcon .DefaultState
    instanceKInstanceKGlobal .instance ()
    +

  • +
  • DesktopIcon (name, instance) +
    +
    returns (QPixmap)
    + + +
    ArgumentTypeDefault
    nameQString
    instanceKInstance
    +

  • +
  • DesktopIconSet (name, size = 0, instance = KGlobal .instance ()) +
    +
    returns (QIconSet)
    + + + +
    ArgumentTypeDefault
    nameQString
    sizeint0
    instanceKInstanceKGlobal .instance ()
    +

  • +
  • IconSize (group, instance = KGlobal .instance ()) +
    +
    returns (int)
    + + +
    ArgumentTypeDefault
    groupKIcon.Group
    instanceKInstanceKGlobal .instance ()
    +

  • +
  • MainBarIcon (name, size = 0, state = KIcon .DefaultState, instance = KGlobal .instance ()) +
    +
    returns (QPixmap)
    + + + + +
    ArgumentTypeDefault
    nameQString
    sizeint0
    stateintKIcon .DefaultState
    instanceKInstanceKGlobal .instance ()
    +

  • +
  • MainBarIcon (name, instance) +
    +
    returns (QPixmap)
    + + +
    ArgumentTypeDefault
    nameQString
    instanceKInstance
    +

  • +
  • MainBarIconSet (name, size = 0, instance = KGlobal .instance ()) +
    +
    returns (QIconSet)
    + + + +
    ArgumentTypeDefault
    nameQString
    sizeint0
    instanceKInstanceKGlobal .instance ()
    +

  • +
  • SmallIcon (name, size = 0, state = KIcon .DefaultState, instance = KGlobal .instance ()) +
    +
    returns (QPixmap)
    + + + + +
    ArgumentTypeDefault
    nameQString
    sizeint0
    stateintKIcon .DefaultState
    instanceKInstanceKGlobal .instance ()
    +

  • +
  • SmallIcon (name, instance) +
    +
    returns (QPixmap)
    + + +
    ArgumentTypeDefault
    nameQString
    instanceKInstance
    +

  • +
  • SmallIconSet (name, size = 0, instance = KGlobal .instance ()) +
    +
    returns (QIconSet)
    + + + +
    ArgumentTypeDefault
    nameQString
    sizeint0
    instanceKInstanceKGlobal .instance ()
    +

  • +
  • UserIcon (name, state = KIcon .DefaultState, instance = KGlobal .instance ()) +
    +
    returns (QPixmap)
    + + + +
    ArgumentTypeDefault
    nameQString
    stateintKIcon .DefaultState
    instanceKInstanceKGlobal .instance ()
    +

  • +
  • UserIcon (name, instance) +
    +
    returns (QPixmap)
    + + +
    ArgumentTypeDefault
    nameQString
    instanceKInstance
    +

  • +
  • UserIconSet (name, instance = KGlobal .instance ()) +
    +
    returns (QIconSet)
    + + +
    ArgumentTypeDefault
    nameQString
    instanceKInstanceKGlobal .instance ()
    +

  • +
  • checkAccess (pathname, mode) +
    Not Implemented
    +

  • +
  • i18n (text) +
    +
    returns (QString)
    + +
    ArgumentTypeDefault
    textchar
    +

  • +
  • i18n (comment, text) +
    +
    returns (QString)
    + + +
    ArgumentTypeDefault
    commentchar
    textchar
    +

  • +
  • i18n (singular, plural, n) +
    +
    returns (QString)
    + + + +
    ArgumentTypeDefault
    singularchar
    pluralchar
    nulong
    +

  • +
  • kasciistricmp (str1, str2) +
    + +
    returns (int)
    In versions KDE 3.4.0 and above only
    + + +
    ArgumentTypeDefault
    str1char
    str2char
    +

  • +
  • testKEntryMap (dict) +
    +
    returns (QMap
    + +
    ArgumentTypeDefault
    dictKEntryMap
    +

  • +
  • urlcmp (_url1, _url2) +
    +
    returns (bool)
    + + +
    ArgumentTypeDefault
    _url1QString
    _url2QString
    +

  • +
  • urlcmp (_url1, _url2, _ignore_trailing, _ignore_ref) +
    +
    returns (bool)
    + + + + +
    ArgumentTypeDefault
    _url1QString
    _url2QString
    _ignore_trailingbool
    _ignore_refbool
    +

  • +
+ + + diff --git a/doc/classref/kdefx/KCPUInfo.html b/doc/classref/kdefx/KCPUInfo.html new file mode 100644 index 0000000..e39f509 --- /dev/null +++ b/doc/classref/kdefx/KCPUInfo.html @@ -0,0 +1,52 @@ + + + + + class KCPUInfo + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KCPUInfo


+
+ + + + + +
Table of contents
Modules
kdefx Classes
All Classes
+
+ + + + + + + + + + +
Modulekdefx
ClassKCPUInfo
Inherits
+

enums

    +
  • Extensions = {IntelMMX, IntelSSE, IntelSSE2, AMD3DNOW, AltiVec +}
+

methods

    +
  • haveExtension (extension) +
    + + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    static
    + +
    ArgumentTypeDefault
    extensionuint
    +

  • +
+ + + diff --git a/doc/classref/kdefx/KImageEffect.html b/doc/classref/kdefx/KImageEffect.html new file mode 100644 index 0000000..9adb350 --- /dev/null +++ b/doc/classref/kdefx/KImageEffect.html @@ -0,0 +1,523 @@ + + + + + class KImageEffect + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KImageEffect


+
+ + + + + +
Table of contents
Modules
kdefx Classes
All Classes
+
+ + + + + + + + + + +
Modulekdefx
ClassKImageEffect
Inherits
+

enums

    +
  • BumpmapType = {Linear, Spherical, Sinuosidal +}
  • Disposition = {NoImage, Centered, Tiled, CenterTiled, CenteredMaxpect, TiledMaxpect, Scaled, CenteredAutoFit +}
  • GradientType = {VerticalGradient, HorizontalGradient, DiagonalGradient, CrossDiagonalGradient, PyramidGradient, RectangleGradient, PipeCrossGradient, EllipticGradient +}
  • Lighting = {NorthLite, NWLite, WestLite, SWLite, SouthLite, SELite, EastLite, NELite +}
  • ModulationType = {Intensity, Saturation, HueShift, Contrast +}
  • NoiseType = {UniformNoise, GaussianNoise, MultiplicativeGaussianNoise, ImpulseNoise, LaplacianNoise, PoissonNoise +}
  • RGBComponent = {Red, Green, Blue, Gray, All +}
  • RotateDirection = {Rotate90, Rotate180, Rotate270 +}
+

methods

    +
  • addNoise (src, type = GaussianNoise) +
    + +
    returns (QImage)
    static
    + + +
    ArgumentTypeDefault
    srcQImage
    typeKImageEffect.NoiseTypeGaussianNoise
    +

  • +
  • blend (clr, dst, opacity) +
    + +
    returns (QImage)
    static
    + + + +
    ArgumentTypeDefault
    clrQColor
    dstQImage
    opacityfloat
    +

  • +
  • blend (src, dst, opacity) +
    + +
    returns (QImage)
    static
    + + + +
    ArgumentTypeDefault
    srcQImage
    dstQImage
    opacityfloat
    +

  • +
  • blend (image, initial_intensity, bgnd, eff, anti_dir = 0) +
    + +
    returns (QImage)
    static
    + + + + + +
    ArgumentTypeDefault
    imageQImage
    initial_intensityfloat
    bgndQColor
    effKImageEffect.GradientType
    anti_dirbool0
    +

  • +
  • blend (image1, image2, gt, xf = 100, yf = 100) +
    + +
    returns (QImage)
    static
    + + + + + +
    ArgumentTypeDefault
    image1QImage
    image2QImage
    gtKImageEffect.GradientType
    xfint100
    yfint100
    +

  • +
  • blend (image1, image2, blendImage, channel) +
    + +
    returns (QImage)
    static
    + + + + +
    ArgumentTypeDefault
    image1QImage
    image2QImage
    blendImageQImage
    channelKImageEffect.RGBComponent
    +

  • +
  • blend (upper, lower, output) +
    + +
    returns (bool)
    static
    + + + +
    ArgumentTypeDefault
    upperQImage
    lowerQImage
    outputQImage
    +

  • +
  • blend (x, y, upper, lower, output) +
    + +
    returns (bool) x (int) y (int)
    static
    + + + + + +
    ArgumentTypeDefault
    xint
    yint
    upperQImage
    lowerQImage
    outputQImage
    +

  • +
  • blendOnLower (x, y, upper, lower) +
    + +
    returns (bool)
    static
    + + + + +
    ArgumentTypeDefault
    xint
    yint
    upperQImage
    lowerQImage
    +

  • +
  • blendOnLower (upper, upperOffset, lower, lowerRect) +
    + + +
    returns nothing
    In versions KDE 3.2.0 and above only
    static
    + + + + +
    ArgumentTypeDefault
    upperQImage
    upperOffsetQPoint
    lowerQImage
    lowerRectQRect
    +

  • +
  • blendOnLower (upper, upperOffset, lower, lowerRect, opacity) +
    + + +
    returns nothing
    In versions KDE 3.2.0 and above only
    static
    + + + + + +
    ArgumentTypeDefault
    upperQImage
    upperOffsetQPoint
    lowerQImage
    lowerRectQRect
    opacityfloat
    +

  • +
  • blendOnLower (upper, lower, disposition, opacity) +
    + + +
    returns nothing
    In versions KDE 3.2.0 and above only
    static
    + + + + +
    ArgumentTypeDefault
    upperQImage
    lowerQImage
    dispositionKImageEffect.Disposition
    opacityfloat
    +

  • +
  • blur (src, radius, sigma) +
    + + +
    returns (QImage)
    In versions KDE 3.2.0 and above only
    static
    + + + +
    ArgumentTypeDefault
    srcQImage
    radiusdouble
    sigmadouble
    +

  • +
  • blur (src, factor = 50.0) +
    + +
    returns (QImage)
    static
    + + +
    ArgumentTypeDefault
    srcQImage
    factordouble50.0
    +

  • +
  • bumpmap (img, map, azimuth, elevation, depth, xofs, yofs, waterlevel, ambient, compensate, invert, type, tiled) +
    + + +
    returns (QImage)
    In versions KDE 3.3.0 and above only
    static
    + + + + + + + + + + + + + +
    ArgumentTypeDefault
    imgQImage
    mapQImage
    azimuthdouble
    elevationdouble
    depthint
    xofsint
    yofsint
    waterlevelint
    ambientint
    compensatebool
    invertbool
    typeKImageEffect.BumpmapType
    tiledbool
    +

  • +
  • channelIntensity (image, percent, channel) +
    + +
    returns (QImage)
    static
    + + + +
    ArgumentTypeDefault
    imageQImage
    percentfloat
    channelKImageEffect.RGBComponent
    +

  • +
  • charcoal (src, radius, sigma) +
    + + +
    returns (QImage)
    In versions KDE 3.2.0 and above only
    static
    + + + +
    ArgumentTypeDefault
    srcQImage
    radiusdouble
    sigmadouble
    +

  • +
  • charcoal (src, factor = 50.0) +
    + +
    returns (QImage)
    static
    + + +
    ArgumentTypeDefault
    srcQImage
    factordouble50.0
    +

  • +
  • computeDestinationRect (lowerSize, disposition, upper) +
    + + +
    returns (QRect)
    In versions KDE 3.2.0 and above only
    static
    + + + +
    ArgumentTypeDefault
    lowerSizeQSize
    dispositionKImageEffect.Disposition
    upperQImage
    +

  • +
  • contrast (image, c) +
    + +
    returns (QImage)
    static
    + + +
    ArgumentTypeDefault
    imageQImage
    cint
    +

  • +
  • contrastHSV (img, sharpen = 1) +
    + +
    returns nothing
    static
    + + +
    ArgumentTypeDefault
    imgQImage
    sharpenbool1
    +

  • +
  • desaturate (image, desat = 0.3) +
    + +
    returns (QImage)
    static
    + + +
    ArgumentTypeDefault
    imageQImage
    desatfloat0.3
    +

  • +
  • despeckle (src) +
    + +
    returns (QImage)
    static
    + +
    ArgumentTypeDefault
    srcQImage
    +

  • +
  • dither (image, palette, size) +
    Not Implemented
    +

  • +
  • edge (src, radius = 50.0) +
    + +
    returns (QImage)
    static
    + + +
    ArgumentTypeDefault
    srcQImage
    radiusdouble50.0
    +

  • +
  • emboss (src, radius, sigma) +
    + + +
    returns (QImage)
    In versions KDE 3.2.0 and above only
    static
    + + + +
    ArgumentTypeDefault
    srcQImage
    radiusdouble
    sigmadouble
    +

  • +
  • emboss (src) +
    + +
    returns (QImage)
    static
    + +
    ArgumentTypeDefault
    srcQImage
    +

  • +
  • equalize (img) +
    + +
    returns nothing
    static
    + +
    ArgumentTypeDefault
    imgQImage
    +

  • +
  • fade (image, val, color) +
    + +
    returns (QImage)
    static
    + + + +
    ArgumentTypeDefault
    imageQImage
    valfloat
    colorQColor
    +

  • +
  • flatten (image, ca, cb, ncols = 0) +
    + +
    returns (QImage)
    static
    + + + + +
    ArgumentTypeDefault
    imageQImage
    caQColor
    cbQColor
    ncolsint0
    +

  • +
  • gradient (size, ca, cb, type, ncols = 3) +
    + +
    returns (QImage)
    static
    + + + + + +
    ArgumentTypeDefault
    sizeQSize
    caQColor
    cbQColor
    typeKImageEffect.GradientType
    ncolsint3
    +

  • +
  • hash (image, lite = NorthLite, spacing = 0) +
    + +
    returns (QImage)
    static
    + + + +
    ArgumentTypeDefault
    imageQImage
    liteKImageEffect.LightingNorthLite
    spacinguint0
    +

  • +
  • implode (src, factor = 30.0, background = -1) +
    + +
    returns (QImage)
    static
    + + + +
    ArgumentTypeDefault
    srcQImage
    factordouble30.0
    backgrounduint-1
    +

  • +
  • intensity (image, percent) +
    + +
    returns (QImage)
    static
    + + +
    ArgumentTypeDefault
    imageQImage
    percentfloat
    +

  • +
  • modulate (image, modImage, reverse, type, factor, channel) +
    + +
    returns (QImage)
    static
    + + + + + + +
    ArgumentTypeDefault
    imageQImage
    modImageQImage
    reversebool
    typeKImageEffect.ModulationType
    factorint
    channelKImageEffect.RGBComponent
    +

  • +
  • normalize (img) +
    + +
    returns nothing
    static
    + +
    ArgumentTypeDefault
    imgQImage
    +

  • +
  • oilPaint (src, radius = 3) +
    + +
    returns (QImage)
    static
    + + +
    ArgumentTypeDefault
    srcQImage
    radiusint3
    +

  • +
  • oilPaintConvolve (src, radius) +
    + + +
    returns (QImage)
    In versions KDE 3.2.0 and above only
    static
    + + +
    ArgumentTypeDefault
    srcQImage
    radiusdouble
    +

  • +
  • rotate (src, r) +
    + +
    returns (QImage)
    static
    + + +
    ArgumentTypeDefault
    srcQImage
    rKImageEffect.RotateDirection
    +

  • +
  • sample (src, w, h) +
    + +
    returns (QImage)
    static
    + + + +
    ArgumentTypeDefault
    srcQImage
    wint
    hint
    +

  • +
  • selectedImage (img, col) +
    + +
    returns (QImage)
    static
    + + +
    ArgumentTypeDefault
    imgQImage
    colQColor
    +

  • +
  • shade (src, color_shading = 1, azimuth = 30.0, elevation = 30.0) +
    + +
    returns (QImage)
    static
    + + + + +
    ArgumentTypeDefault
    srcQImage
    color_shadingbool1
    azimuthdouble30.0
    elevationdouble30.0
    +

  • +
  • sharpen (src, radius, sigma) +
    + + +
    returns (QImage)
    In versions KDE 3.2.0 and above only
    static
    + + + +
    ArgumentTypeDefault
    srcQImage
    radiusdouble
    sigmadouble
    +

  • +
  • sharpen (src, factor = 30.0) +
    + +
    returns (QImage)
    static
    + + +
    ArgumentTypeDefault
    srcQImage
    factordouble30.0
    +

  • +
  • solarize (img, factor = 50.0) +
    + +
    returns nothing
    static
    + + +
    ArgumentTypeDefault
    imgQImage
    factordouble50.0
    +

  • +
  • spread (src, amount = 3) +
    + +
    returns (QImage)
    static
    + + +
    ArgumentTypeDefault
    srcQImage
    amountuint3
    +

  • +
  • swirl (src, degrees = 50.0, background = -1) +
    + +
    returns (QImage)
    static
    + + + +
    ArgumentTypeDefault
    srcQImage
    degreesdouble50.0
    backgrounduint-1
    +

  • +
  • threshold (img, value = 128) +
    + +
    returns nothing
    static
    + + +
    ArgumentTypeDefault
    imgQImage
    valueuint128
    +

  • +
  • toGray (image, fast = 0) +
    + +
    returns (QImage)
    static
    + + +
    ArgumentTypeDefault
    imageQImage
    fastbool0
    +

  • +
  • unbalancedGradient (size, ca, cb, type, xfactor = 100, yfactor = 100, ncols = 3) +
    + +
    returns (QImage)
    static
    + + + + + + + +
    ArgumentTypeDefault
    sizeQSize
    caQColor
    cbQColor
    typeKImageEffect.GradientType
    xfactorint100
    yfactorint100
    ncolsint3
    +

  • +
  • wave (src, amplitude = 25.0, frequency = 150.0, background = -1) +
    + +
    returns (QImage)
    static
    + + + + +
    ArgumentTypeDefault
    srcQImage
    amplitudedouble25.0
    frequencydouble150.0
    backgrounduint-1
    +

  • +
+ + + diff --git a/doc/classref/kdefx/KPixmap.html b/doc/classref/kdefx/KPixmap.html new file mode 100644 index 0000000..b28f276 --- /dev/null +++ b/doc/classref/kdefx/KPixmap.html @@ -0,0 +1,90 @@ + + + + + class KPixmap + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KPixmap


+
+ + + + + +
Table of contents
Modules
kdefx Classes
All Classes
+
+ + + + + + + + + + +
Modulekdefx
ClassKPixmap
InheritsQPixmap
+

enums

    +
  • ColorMode = {Auto, Color, Mono, LowColor, WebColor +}
  • GradientMode = {Horizontal, Vertical, Diagonal, CrossDiagonal +}
+

methods

    +
  • KPixmap () +
    +
    returns a KPixmap instance

  • +
  • KPixmap (pix) +
    +
    returns a KPixmap instance
    + +
    ArgumentTypeDefault
    pixQPixmap
    +

  • +
  • checkColorTable (image) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    imageQImage
    +

  • +
  • convertFromImage (img, conversion_flags) +
    +
    returns (bool)
    + + +
    ArgumentTypeDefault
    imgQImage
    conversion_flagsint
    +

  • +
  • convertFromImage (img, mode = WebColor) +
    +
    returns (bool)
    + + +
    ArgumentTypeDefault
    imgQImage
    modeColorModeWebColor
    +

  • +
  • load (fileName, format, conversion_flags) +
    +
    returns (bool)
    + + + +
    ArgumentTypeDefault
    fileNameQString
    formatchar
    conversion_flagsint
    +

  • +
  • load (fileName, format = 0, mode = WebColor) +
    +
    returns (bool)
    + + + +
    ArgumentTypeDefault
    fileNameQString
    formatchar0
    modeColorModeWebColor
    +

  • +
+ + + diff --git a/doc/classref/kdefx/KPixmapEffect.html b/doc/classref/kdefx/KPixmapEffect.html new file mode 100644 index 0000000..f84cd9a --- /dev/null +++ b/doc/classref/kdefx/KPixmapEffect.html @@ -0,0 +1,178 @@ + + + + + class KPixmapEffect + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KPixmapEffect


+
+ + + + + +
Table of contents
Modules
kdefx Classes
All Classes
+
+ + + + + + + + + + +
Modulekdefx
ClassKPixmapEffect
Inherits
+

enums

    +
  • GradientType = {VerticalGradient, HorizontalGradient, DiagonalGradient, CrossDiagonalGradient, PyramidGradient, RectangleGradient, PipeCrossGradient, EllipticGradient +}
  • Lighting = {NorthLite, NWLite, WestLite, SWLite, SouthLite, SELite, EastLite, NELite +}
  • RGBComponent = {Red, Green, Blue +}
+

methods

    +
  • blend (pixmap, initial_intensity, bgnd, eff, anti_dir = 0, ncols = 3) +
    + +
    returns (KPixmap)
    static
    + + + + + + +
    ArgumentTypeDefault
    pixmapKPixmap
    initial_intensityfloat
    bgndQColor
    effKPixmapEffect.GradientType
    anti_dirbool0
    ncolsint3
    +

  • +
  • channelIntensity (pixmap, ratio, channel) +
    + +
    returns (KPixmap)
    static
    + + + +
    ArgumentTypeDefault
    pixmapKPixmap
    ratiofloat
    channelKPixmapEffect.RGBComponent
    +

  • +
  • contrast (pixmap, c) +
    + +
    returns (KPixmap)
    static
    + + +
    ArgumentTypeDefault
    pixmapKPixmap
    cint
    +

  • +
  • createTiled (pixmap, size) +
    + +
    returns (KPixmap)
    static
    + + +
    ArgumentTypeDefault
    pixmapKPixmap
    sizeQSize
    +

  • +
  • desaturate (pixmap, desat = 0.3) +
    + +
    returns (KPixmap)
    static
    + + +
    ArgumentTypeDefault
    pixmapKPixmap
    desatfloat0.3
    +

  • +
  • dither (pixmap, palette, size) +
    + +
    returns (KPixmap)
    static
    + + + +
    ArgumentTypeDefault
    pixmapKPixmap
    paletteQColor
    sizeint
    +

  • +
  • fade (pixmap, val, color) +
    + +
    returns (KPixmap)
    static
    + + + +
    ArgumentTypeDefault
    pixmapKPixmap
    valdouble
    colorQColor
    +

  • +
  • gradient (pixmap, ca, cb, type, ncols = 3) +
    + +
    returns (KPixmap)
    static
    + + + + + +
    ArgumentTypeDefault
    pixmapKPixmap
    caQColor
    cbQColor
    typeKPixmapEffect.GradientType
    ncolsint3
    +

  • +
  • hash (pixmap, lite = NorthLite, spacing = 0, ncols = 3) +
    + +
    returns (KPixmap)
    static
    + + + + +
    ArgumentTypeDefault
    pixmapKPixmap
    liteKPixmapEffect.LightingNorthLite
    spacinguint0
    ncolsint3
    +

  • +
  • intensity (pixmap, ratio) +
    + +
    returns (KPixmap)
    static
    + + +
    ArgumentTypeDefault
    pixmapKPixmap
    ratiofloat
    +

  • +
  • pattern (pixmap, size, ca, cb, ncols = 8) +
    + +
    returns (KPixmap)
    static
    + + + + + +
    ArgumentTypeDefault
    pixmapKPixmap
    sizeQSize
    caQColor
    cbQColor
    ncolsint8
    +

  • +
  • selectedPixmap (pixmap, col) +
    + +
    returns (KPixmap)
    static
    + + +
    ArgumentTypeDefault
    pixmapKPixmap
    colQColor
    +

  • +
  • toGray (pixmap, fast = 0) +
    + +
    returns (KPixmap)
    static
    + + +
    ArgumentTypeDefault
    pixmapKPixmap
    fastbool0
    +

  • +
  • unbalancedGradient (pixmap, ca, cb, type, xfactor = 100, yfactor = 100, ncols = 3) +
    + +
    returns (KPixmap)
    static
    + + + + + + + +
    ArgumentTypeDefault
    pixmapKPixmap
    caQColor
    cbQColor
    typeKPixmapEffect.GradientType
    xfactorint100
    yfactorint100
    ncolsint3
    +

  • +
+ + + diff --git a/doc/classref/kdefx/KPixmapSplitter.html b/doc/classref/kdefx/KPixmapSplitter.html new file mode 100644 index 0000000..65d21b4 --- /dev/null +++ b/doc/classref/kdefx/KPixmapSplitter.html @@ -0,0 +1,86 @@ + + + + + class KPixmapSplitter + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KPixmapSplitter


+
+ + + + + +
Table of contents
Modules
kdefx Classes
All Classes
+
+ + + + + + + + + + +
Modulekdefx
ClassKPixmapSplitter
Inherits
+

methods

    +
  • KPixmapSplitter () +
    +
    returns a KPixmapSplitter instance

  • +
  • coordinates (pos) +
    +
    returns (QRect)
    + +
    ArgumentTypeDefault
    posint
    +

  • +
  • coordinates (ch) +
    +
    returns (QRect)
    + +
    ArgumentTypeDefault
    chQChar
    +

  • +
  • itemSize () +
    +
    returns (QSize)

  • +
  • pixmap () +
    +
    returns (QPixmap)

  • +
  • setHSpacing (spacing) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    spacingint
    +

  • +
  • setItemSize (size) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    sizeQSize
    +

  • +
  • setPixmap (pixmap) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    pixmapQPixmap
    +

  • +
  • setVSpacing (spacing) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    spacingint
    +

  • +
+ + + diff --git a/doc/classref/kdefx/KStyle.html b/doc/classref/kdefx/KStyle.html new file mode 100644 index 0000000..82bff4d --- /dev/null +++ b/doc/classref/kdefx/KStyle.html @@ -0,0 +1,212 @@ + + + + + class KStyle + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KStyle


+
+ + + + + +
Table of contents
Modules
kdefx Classes
All Classes
+
+ + + + + + + + + + +
Modulekdefx
ClassKStyle
InheritsQCommonStyle
+

enums

    +
  • KStyleOption = {Default, AllowMenuTransparency, FilledFrameWorkaround +}
  • KStylePixelMetric = {KPM_MenuItemSeparatorHeight, KPM_MenuItemHMargin, KPM_MenuItemVMargin, KPM_MenuItemHFrame, KPM_MenuItemVFrame, KPM_MenuItemCheckMarkHMargin, KPM_MenuItemArrowHMargin, KPM_MenuItemTabSpacing, KPM_ListViewBranchThickness +}
  • KStylePrimitive = {KPE_DockWindowHandle, KPE_ToolBarHandle, KPE_GeneralHandle, KPE_SliderGroove, KPE_SliderHandle, KPE_ListViewExpander, KPE_ListViewBranch +}
  • KStyleScrollBarType = {WindowsStyleScrollBar, PlatinumStyleScrollBar, ThreeButtonScrollBar, NextStyleScrollBar +}
+

methods

    +
  • KStyle (flags = KStyle .Default, sbtype = KStyle .WindowsStyleScrollBar) +
    +
    returns a KStyle instance
    + + +
    ArgumentTypeDefault
    flagsKStyle.KStyleFlagsKStyle .Default
    sbtypeKStyle.KStyleScrollBarTypeKStyle .WindowsStyleScrollBar
    +

  • +
  • KStyle (a0) +
    +
    returns a KStyle instance
    + +
    ArgumentTypeDefault
    a0KStyle
    +

  • +
  • defaultStyle () +
    + + +
    returns (QString)
    In versions KDE 3.1.0 and above only
    static

  • +
  • drawComplexControl (control, p, widget, r, cg, flags = Style_Default, controls = SC_All, active = SC_None, a0 = QStyleOption (QStyleOption .Default )) +
    +
    returns nothing
    + + + + + + + + + +
    ArgumentTypeDefault
    controlComplexControl
    pQPainter
    widgetQWidget
    rQRect
    cgQColorGroup
    flagsSFlagsStyle_Default
    controlsSCFlagsSC_All
    activeSCFlagsSC_None
    a0QStyleOptionQStyleOption (QStyleOption .Default )
    +

  • +
  • drawControl (element, p, widget, r, cg, flags = Style_Default, a0 = QStyleOption (QStyleOption .Default )) +
    +
    returns nothing
    + + + + + + + +
    ArgumentTypeDefault
    elementControlElement
    pQPainter
    widgetQWidget
    rQRect
    cgQColorGroup
    flagsSFlagsStyle_Default
    a0QStyleOptionQStyleOption (QStyleOption .Default )
    +

  • +
  • drawKStylePrimitive (kpe, p, widget, r, cg, flags = Style_Default, a0 = QStyleOption (QStyleOption .Default )) +
    +
    returns nothing
    + + + + + + + +
    ArgumentTypeDefault
    kpeKStyle.KStylePrimitive
    pQPainter
    widgetQWidget
    rQRect
    cgQColorGroup
    flagsSFlagsStyle_Default
    a0QStyleOptionQStyleOption (QStyleOption .Default )
    +

  • +
  • drawPrimitive (pe, p, r, cg, flags = Style_Default, a0 = QStyleOption (QStyleOption .Default )) +
    +
    returns nothing
    + + + + + + +
    ArgumentTypeDefault
    pePrimitiveElement
    pQPainter
    rQRect
    cgQColorGroup
    flagsSFlagsStyle_Default
    a0QStyleOptionQStyleOption (QStyleOption .Default )
    +

  • +
  • eventFilter (object, event) +
    +
    returns (bool)
    + + +
    ArgumentTypeDefault
    objectQObject
    eventQEvent
    +

  • +
  • kPixelMetric (kpm, widget = 0) +
    +
    returns (int)
    + + +
    ArgumentTypeDefault
    kpmKStyle.KStylePixelMetric
    widgetQWidget0
    +

  • +
  • pixelMetric (m, widget = 0) +
    +
    returns (int)
    + + +
    ArgumentTypeDefault
    mPixelMetric
    widgetQWidget0
    +

  • +
  • polish (widget) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    widgetQWidget
    +

  • +
  • polishPopupMenu (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QPopupMenu
    +

  • +
  • querySubControl (control, widget, pos, a0 = QStyleOption (QStyleOption .Default )) +
    +
    returns (SubControl)
    + + + + +
    ArgumentTypeDefault
    controlComplexControl
    widgetQWidget
    posQPoint
    a0QStyleOptionQStyleOption (QStyleOption .Default )
    +

  • +
  • querySubControlMetrics (control, widget, sc, a0 = QStyleOption (QStyleOption .Default )) +
    +
    returns (QRect)
    + + + + +
    ArgumentTypeDefault
    controlComplexControl
    widgetQWidget
    scSubControl
    a0QStyleOptionQStyleOption (QStyleOption .Default )
    +

  • +
  • renderMenuBlendPixmap (pix, cg, popup) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    pixKPixmap
    cgQColorGroup
    popupQPopupMenu
    +

  • +
  • setScrollBarType (sbtype) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    sbtypeKStyle.KStyleScrollBarType
    +

  • +
  • styleFlags () +
    +
    returns (KStyle.KStyleFlags)

  • +
  • styleHint (sh, w = 0, opt = QStyleOption (QStyleOption .Default ), shr = 0) +
    +
    returns (int)
    + + + + +
    ArgumentTypeDefault
    shStyleHint
    wQWidget0
    optQStyleOptionQStyleOption (QStyleOption .Default )
    shrQStyleHintReturn0
    +

  • +
  • stylePixmap (stylepixmap, widget = 0, a0 = QStyleOption (QStyleOption .Default )) +
    +
    returns (QPixmap)
    + + + +
    ArgumentTypeDefault
    stylepixmapStylePixmap
    widgetQWidget0
    a0QStyleOptionQStyleOption (QStyleOption .Default )
    +

  • +
  • subRect (r, widget) +
    +
    returns (QRect)
    + + +
    ArgumentTypeDefault
    rSubRect
    widgetQWidget
    +

  • +
  • unPolish (widget) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    widgetQWidget
    +

  • +
+ + + diff --git a/doc/classref/kdefx/index.html b/doc/classref/kdefx/index.html new file mode 100644 index 0000000..fa1f59d --- /dev/null +++ b/doc/classref/kdefx/index.html @@ -0,0 +1,41 @@ + + + + + module kdefx + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

kdefx Class Index


+
+ + + + +
Table of contents
Modules
All Classes
+
+ kdefx Global and Namespace members

+ +
+ + + +
KCPUInfo - KImageEffect
KCPUInfo
KImageEffect
+ + + +
KPixmap - KPixmapEffect
KPixmap
KPixmapEffect
+ + + +
KPixmapSplitter - KStyle
KPixmapSplitter
KStyle
+ + diff --git a/doc/classref/kdefx/kdefx-globals.html b/doc/classref/kdefx/kdefx-globals.html new file mode 100644 index 0000000..7765ab6 --- /dev/null +++ b/doc/classref/kdefx/kdefx-globals.html @@ -0,0 +1,151 @@ + + + + + kdefx globals + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

kdefx Globals


+
+ + + + + +
Table of contents
Modules
kdefx Classes
All Classes
+
+

global methods

    +
  • kColorBitmaps (p, g, x, y, lightColor = 0, midColor = 0, midlightColor = 0, darkColor = 0, blackColor = 0, whiteColor = 0) +
    +
    returns nothing
    + + + + + + + + + + +
    ArgumentTypeDefault
    pQPainter
    gQColorGroup
    xint
    yint
    lightColorQBitmap0
    midColorQBitmap0
    midlightColorQBitmap0
    darkColorQBitmap0
    blackColorQBitmap0
    whiteColorQBitmap0
    +

  • +
  • kColorBitmaps (p, g, x, y, w, h, isXBitmaps = 1, lightColor = 0, midColor = 0, midlightColor = 0, darkColor = 0, blackColor = 0, whiteColor = 0) +
    +
    returns nothing
    + + + + + + + + + + + + + +
    ArgumentTypeDefault
    pQPainter
    gQColorGroup
    xint
    yint
    wint
    hint
    isXBitmapsbool1
    lightColoruchar0
    midColoruchar0
    midlightColoruchar0
    darkColoruchar0
    blackColoruchar0
    whiteColoruchar0
    +

  • +
  • kDrawBeButton (p, r, g, sunken = 0, fill = 0) +
    +
    returns nothing
    + + + + + +
    ArgumentTypeDefault
    pQPainter
    rQRect
    gQColorGroup
    sunkenbool0
    fillQBrush0
    +

  • +
  • kDrawBeButton (p, x, y, w, h, g, sunken = 0, fill = 0) +
    +
    returns nothing
    + + + + + + + + +
    ArgumentTypeDefault
    pQPainter
    xint
    yint
    wint
    hint
    gQColorGroup
    sunkenbool0
    fillQBrush0
    +

  • +
  • kDrawNextButton (p, r, g, sunken = 0, fill = 0) +
    +
    returns nothing
    + + + + + +
    ArgumentTypeDefault
    pQPainter
    rQRect
    gQColorGroup
    sunkenbool0
    fillQBrush0
    +

  • +
  • kDrawNextButton (p, x, y, w, h, g, sunken = 0, fill = 0) +
    +
    returns nothing
    + + + + + + + + +
    ArgumentTypeDefault
    pQPainter
    xint
    yint
    wint
    hint
    gQColorGroup
    sunkenbool0
    fillQBrush0
    +

  • +
  • kDrawRoundButton (p, r, g, sunken = 0) +
    +
    returns nothing
    + + + + +
    ArgumentTypeDefault
    pQPainter
    rQRect
    gQColorGroup
    sunkenbool0
    +

  • +
  • kDrawRoundButton (p, x, y, w, h, g, sunken = 0) +
    +
    returns nothing
    + + + + + + + +
    ArgumentTypeDefault
    pQPainter
    xint
    yint
    wint
    hint
    gQColorGroup
    sunkenbool0
    +

  • +
  • kDrawRoundMask (p, x, y, w, h, clear = 0) +
    +
    returns nothing
    + + + + + + +
    ArgumentTypeDefault
    pQPainter
    xint
    yint
    wint
    hint
    clearbool0
    +

  • +
  • kRoundMaskRegion (r, x, y, w, h) +
    +
    returns nothing
    + + + + + +
    ArgumentTypeDefault
    rQRegion
    xint
    yint
    wint
    hint
    +

  • +
+ + + diff --git a/doc/classref/kdeprint/DrBase.html b/doc/classref/kdeprint/DrBase.html new file mode 100644 index 0000000..4e94fd0 --- /dev/null +++ b/doc/classref/kdeprint/DrBase.html @@ -0,0 +1,137 @@ + + + + + class DrBase + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DrBase


+
+ + + + + +
Table of contents
Modules
kdeprint Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeprint
ClassDrBase
Inherits
+

enums

    +
  • Type = {Base = 0, Main, ChoiceGroup, Group, String, Integer, Float, List, Boolean +}
+

methods

    +
  • DrBase () +
    + +
    returns a DrBase instance
    In versions KDE 3.1.0 and above only

  • +
  • clone () +
    + +
    returns (DrBase)
    In versions KDE 3.1.0 and above only

  • +
  • conflict () +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above only

  • +
  • createItem (parent, after = 0) +
    Not Implemented
    +

  • +
  • get (key) +
    + +
    returns (QString)
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    keyQString
    +

  • +
  • getOptions (opts, incldef = 0) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + + +
    ArgumentTypeDefault
    optsQMap
    incldefbool0
    +

  • +
  • has (key) +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    keyQString
    +

  • +
  • isOption () +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above only

  • +
  • name () +
    + +
    returns (QString)
    In versions KDE 3.1.0 and above only

  • +
  • prettyText () +
    + +
    returns (QString)
    In versions KDE 3.1.0 and above only

  • +
  • set (key, val) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + + +
    ArgumentTypeDefault
    keyQString
    valQString
    +

  • +
  • setConflict (on) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    onbool
    +

  • +
  • setName (s) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    sQString
    +

  • +
  • setOptions (opts) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    optsQMap
    +

  • +
  • setValueText (a0) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • type () +
    + +
    returns (DrBase.Type)
    In versions KDE 3.1.0 and above only

  • +
  • valueText () +
    + +
    returns (QString)
    In versions KDE 3.1.0 and above only

  • +
+ + + diff --git a/doc/classref/kdeprint/DrBooleanOption.html b/doc/classref/kdeprint/DrBooleanOption.html new file mode 100644 index 0000000..57d6aad --- /dev/null +++ b/doc/classref/kdeprint/DrBooleanOption.html @@ -0,0 +1,45 @@ + + + + + class DrBooleanOption + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DrBooleanOption


+
+ + + + + +
Table of contents
Modules
kdeprint Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeprint
ClassDrBooleanOption
InheritsDrListOption
+

methods

    +
  • DrBooleanOption () +
    + +
    returns a DrBooleanOption instance
    In versions KDE 3.1.0 and above only

  • +
+ + + diff --git a/doc/classref/kdeprint/DrChoiceGroup.html b/doc/classref/kdeprint/DrChoiceGroup.html new file mode 100644 index 0000000..9a2cedc --- /dev/null +++ b/doc/classref/kdeprint/DrChoiceGroup.html @@ -0,0 +1,48 @@ + + + + + class DrChoiceGroup + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DrChoiceGroup


+
+ + + + + +
Table of contents
Modules
kdeprint Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeprint
ClassDrChoiceGroup
InheritsDrGroup
+

methods

    +
  • DrChoiceGroup () +
    + +
    returns a DrChoiceGroup instance
    In versions KDE 3.1.0 and above only

  • +
  • createItem (parent, after = 0) +
    Not Implemented
    +

  • +
+ + + diff --git a/doc/classref/kdeprint/DrConstraint.html b/doc/classref/kdeprint/DrConstraint.html new file mode 100644 index 0000000..ccdc226 --- /dev/null +++ b/doc/classref/kdeprint/DrConstraint.html @@ -0,0 +1,65 @@ + + + + + class DrConstraint + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DrConstraint


+
+ + + + + +
Table of contents
Modules
kdeprint Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeprint
ClassDrConstraint
Inherits
+

methods

    +
  • DrConstraint (o1, o2, c1 = QString .null, c2 = QString .null) +
    + +
    returns a DrConstraint instance
    In versions KDE 3.1.0 and above only
    + + + + +
    ArgumentTypeDefault
    o1QString
    o2QString
    c1QStringQString .null
    c2QStringQString .null
    +

  • +
  • DrConstraint (a0) +
    + +
    returns a DrConstraint instance
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    a0DrConstraint
    +

  • +
  • check (a0) +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    a0DrMain
    +

  • +
+ + + diff --git a/doc/classref/kdeprint/DrFloatOption.html b/doc/classref/kdeprint/DrFloatOption.html new file mode 100644 index 0000000..1e05b81 --- /dev/null +++ b/doc/classref/kdeprint/DrFloatOption.html @@ -0,0 +1,60 @@ + + + + + class DrFloatOption + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DrFloatOption


+
+ + + + + +
Table of contents
Modules
kdeprint Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeprint
ClassDrFloatOption
InheritsDrBase
+

methods

    +
  • DrFloatOption () +
    + +
    returns a DrFloatOption instance
    In versions KDE 3.1.0 and above only

  • +
  • fixedVal () +
    + +
    returns (QString)
    In versions KDE 3.1.0 and above only

  • +
  • setValueText (s) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    sQString
    +

  • +
  • valueText () +
    + +
    returns (QString)
    In versions KDE 3.1.0 and above only

  • +
+ + + diff --git a/doc/classref/kdeprint/DrGroup.html b/doc/classref/kdeprint/DrGroup.html new file mode 100644 index 0000000..a377b70 --- /dev/null +++ b/doc/classref/kdeprint/DrGroup.html @@ -0,0 +1,136 @@ + + + + + class DrGroup + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DrGroup


+
+ + + + + +
Table of contents
Modules
kdeprint Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeprint
ClassDrGroup
InheritsDrBase
+

methods

    +
  • DrGroup () +
    + +
    returns a DrGroup instance
    In versions KDE 3.1.0 and above only

  • +
  • addGroup (grp) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    grpDrGroup
    +

  • +
  • addObject (optgrp) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    optgrpDrBase
    +

  • +
  • addOption (opt) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    optDrBase
    +

  • +
  • clearConflict () +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only

  • +
  • clone () +
    + +
    returns (DrBase)
    In versions KDE 3.1.0 and above only

  • +
  • createItem (parent, after = 0) +
    Not Implemented
    +

  • +
  • createTree (parent) +
    Not Implemented
    +

  • +
  • findGroup (grp) +
    Not Implemented
    +

  • +
  • findOption (name) +
    Not Implemented
    +

  • +
  • flattenGroup (a0) +
    Not Implemented
    +

  • +
  • getOptions (opts, incldef = 0) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + + +
    ArgumentTypeDefault
    optsQMap
    incldefbool0
    +

  • +
  • groupForOption (optname) +
    + + +
    returns (QString)
    In versions KDE 3.2.0 and above only
    static
    + +
    ArgumentTypeDefault
    optnameQString
    +

  • +
  • groups () +
    Not Implemented
    +

  • +
  • isEmpty () +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above only

  • +
  • options () +
    Not Implemented
    +

  • +
  • removeGroup (grp) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    grpDrGroup
    +

  • +
  • removeOption (name) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    nameQString
    +

  • +
  • setOptions (opts) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    optsQMap
    +

  • +
+ + + diff --git a/doc/classref/kdeprint/DrIntegerOption.html b/doc/classref/kdeprint/DrIntegerOption.html new file mode 100644 index 0000000..feae181 --- /dev/null +++ b/doc/classref/kdeprint/DrIntegerOption.html @@ -0,0 +1,60 @@ + + + + + class DrIntegerOption + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DrIntegerOption


+
+ + + + + +
Table of contents
Modules
kdeprint Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeprint
ClassDrIntegerOption
InheritsDrBase
+

methods

    +
  • DrIntegerOption () +
    + +
    returns a DrIntegerOption instance
    In versions KDE 3.1.0 and above only

  • +
  • fixedVal () +
    + +
    returns (QString)
    In versions KDE 3.1.0 and above only

  • +
  • setValueText (s) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    sQString
    +

  • +
  • valueText () +
    + +
    returns (QString)
    In versions KDE 3.1.0 and above only

  • +
+ + + diff --git a/doc/classref/kdeprint/DrListOption.html b/doc/classref/kdeprint/DrListOption.html new file mode 100644 index 0000000..e7bceb7 --- /dev/null +++ b/doc/classref/kdeprint/DrListOption.html @@ -0,0 +1,110 @@ + + + + + class DrListOption + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DrListOption


+
+ + + + + +
Table of contents
Modules
kdeprint Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeprint
ClassDrListOption
InheritsDrBase
+

methods

    +
  • DrListOption () +
    + +
    returns a DrListOption instance
    In versions KDE 3.1.0 and above only

  • +
  • addChoice (ch) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    chDrBase
    +

  • +
  • choices () +
    Not Implemented
    +

  • +
  • clone () +
    + +
    returns (DrBase)
    In versions KDE 3.1.0 and above only

  • +
  • createItem (parent, after = 0) +
    Not Implemented
    +

  • +
  • currentChoice () +
    + +
    returns (DrBase)
    In versions KDE 3.1.0 and above only

  • +
  • findChoice (txt) +
    + +
    returns (DrBase)
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    txtQString
    +

  • +
  • getOptions (opts, incldef = 0) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + + +
    ArgumentTypeDefault
    optsQMap
    incldefbool0
    +

  • +
  • prettyText () +
    + +
    returns (QString)
    In versions KDE 3.1.0 and above only

  • +
  • setChoice (choicenum) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    choicenumint
    +

  • +
  • setOptions (opts) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    optsQMap
    +

  • +
  • setValueText (s) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    sQString
    +

  • +
  • valueText () +
    + +
    returns (QString)
    In versions KDE 3.1.0 and above only

  • +
+ + + diff --git a/doc/classref/kdeprint/DrMain.html b/doc/classref/kdeprint/DrMain.html new file mode 100644 index 0000000..05bf69b --- /dev/null +++ b/doc/classref/kdeprint/DrMain.html @@ -0,0 +1,94 @@ + + + + + class DrMain + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DrMain


+
+ + + + + +
Table of contents
Modules
kdeprint Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeprint
ClassDrMain
InheritsDrGroup
+

methods

    +
  • DrMain () +
    + +
    returns a DrMain instance
    In versions KDE 3.1.0 and above only

  • +
  • addConstraint (c) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    cDrConstraint
    +

  • +
  • addPageSize (sz) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    szDrPageSize
    +

  • +
  • checkConstraints () +
    + +
    returns (int)
    In versions KDE 3.1.0 and above only

  • +
  • cloneDriver () +
    + +
    returns (DrMain)
    In versions KDE 3.1.0 and above only

  • +
  • createTreeView (parent) +
    Not Implemented
    +

  • +
  • findPageSize (name) +
    + +
    returns (DrPageSize)
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    nameQString
    +

  • +
  • flatten () +
    Not Implemented
    +

  • +
  • removeGroupGlobally (grp) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    grpDrGroup
    +

  • +
  • removeOptionGlobally (name) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    nameQString
    +

  • +
+ + + diff --git a/doc/classref/kdeprint/DrPageSize.html b/doc/classref/kdeprint/DrPageSize.html new file mode 100644 index 0000000..76643e5 --- /dev/null +++ b/doc/classref/kdeprint/DrPageSize.html @@ -0,0 +1,105 @@ + + + + + class DrPageSize + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DrPageSize


+
+ + + + + +
Table of contents
Modules
kdeprint Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeprint
ClassDrPageSize
Inherits
+

methods

    +
  • DrPageSize (s, width, height, left, bottom, right, top) +
    + +
    returns a DrPageSize instance
    In versions KDE 3.1.0 and above only
    + + + + + + + +
    ArgumentTypeDefault
    sQString
    widthint
    heightint
    leftint
    bottomint
    rightint
    topint
    +

  • +
  • DrPageSize (a0) +
    + +
    returns a DrPageSize instance
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    a0DrPageSize
    +

  • +
  • bottomMargin () +
    + +
    returns (float)
    In versions KDE 3.2.0 and above only

  • +
  • leftMargin () +
    + +
    returns (float)
    In versions KDE 3.2.0 and above only

  • +
  • margins () +
    + +
    returns (QSize)
    In versions KDE 3.1.0 and above only

  • +
  • name () +
    + +
    returns (QString)
    In versions less than KDE 3.2.0 only

  • +
  • pageHeight () +
    + +
    returns (float)
    In versions KDE 3.2.0 and above only

  • +
  • pageName () +
    + +
    returns (QString)
    In versions KDE 3.2.0 and above only

  • +
  • pageRect () +
    + +
    returns (QRect)
    In versions KDE 3.1.0 and above only

  • +
  • pageSize () +
    + +
    returns (QSize)
    In versions KDE 3.1.0 and above only

  • +
  • pageWidth () +
    + +
    returns (float)
    In versions KDE 3.2.0 and above only

  • +
  • rightMargin () +
    + +
    returns (float)
    In versions KDE 3.2.0 and above only

  • +
  • topMargin () +
    + +
    returns (float)
    In versions KDE 3.2.0 and above only

  • +
+ + + diff --git a/doc/classref/kdeprint/DrStringOption.html b/doc/classref/kdeprint/DrStringOption.html new file mode 100644 index 0000000..2865b90 --- /dev/null +++ b/doc/classref/kdeprint/DrStringOption.html @@ -0,0 +1,56 @@ + + + + + class DrStringOption + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DrStringOption


+
+ + + + + +
Table of contents
Modules
kdeprint Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeprint
ClassDrStringOption
InheritsDrBase
+

methods

    +
  • DrStringOption () +
    + +
    returns a DrStringOption instance
    In versions KDE 3.1.0 and above only

  • +
  • setValueText (s) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    sQString
    +

  • +
  • valueText () +
    + +
    returns (QString)
    In versions KDE 3.1.0 and above only

  • +
+ + + diff --git a/doc/classref/kdeprint/KMJob.html b/doc/classref/kdeprint/KMJob.html new file mode 100644 index 0000000..23f19bd --- /dev/null +++ b/doc/classref/kdeprint/KMJob.html @@ -0,0 +1,242 @@ + + + + + class KMJob + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KMJob


+
+ + + + + +
Table of contents
Modules
kdeprint Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeprint
ClassKMJob
InheritsKMObject
+

enums

    +
  • JobAction = {Remove, Move, Hold, Resume, Restart, ShowCompleted, All +}
  • JobState = {Printing, Queued, Held, Error, Cancelled, Aborted, Completed, Unknown +}
  • JobType = {System, Threaded +}
+

methods

    +
  • KMJob () +
    + +
    returns a KMJob instance
    In versions KDE 3.1.0 and above only

  • +
  • KMJob (j) +
    + +
    returns a KMJob instance
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    jKMJob
    +

  • +
  • attribute (i) +
    + +
    returns (QString)
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    iint
    +

  • +
  • attributeCount () +
    + +
    returns (int)
    In versions KDE 3.1.0 and above only

  • +
  • copy (j) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    jKMJob
    +

  • +
  • id () +
    + +
    returns (int)
    In versions KDE 3.1.0 and above only

  • +
  • init () +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only

  • +
  • isActive () +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above only

  • +
  • isCompleted () +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above only

  • +
  • isRemote () +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above only

  • +
  • name () +
    + +
    returns (QString)
    In versions KDE 3.1.0 and above only

  • +
  • owner () +
    + +
    returns (QString)
    In versions KDE 3.1.0 and above only

  • +
  • pages () +
    + +
    returns (int)
    In versions KDE 3.1.0 and above only

  • +
  • pixmap () +
    + +
    returns (QString)
    In versions KDE 3.1.0 and above only

  • +
  • printer () +
    + +
    returns (QString)
    In versions KDE 3.1.0 and above only

  • +
  • processedPages () +
    + +
    returns (int)
    In versions KDE 3.1.0 and above only

  • +
  • processedSize () +
    + +
    returns (int)
    In versions KDE 3.1.0 and above only

  • +
  • setAttribute (i, att) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + + +
    ArgumentTypeDefault
    iint
    attQString
    +

  • +
  • setAttributeCount (c) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    cint
    +

  • +
  • setId (id) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    idint
    +

  • +
  • setName (s) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    sQString
    +

  • +
  • setOwner (s) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    sQString
    +

  • +
  • setPages (p) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    pint
    +

  • +
  • setPrinter (s) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    sQString
    +

  • +
  • setProcessedPages (p) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    pint
    +

  • +
  • setProcessedSize (s) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    sint
    +

  • +
  • setRemote (on) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    onbool
    +

  • +
  • setSize (s) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    sint
    +

  • +
  • setState (s) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    sint
    +

  • +
  • setType (t) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    tint
    +

  • +
  • setUri (s) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    sQString
    +

  • +
  • size () +
    + +
    returns (int)
    In versions KDE 3.1.0 and above only

  • +
  • state () +
    + +
    returns (int)
    In versions KDE 3.1.0 and above only

  • +
  • stateString () +
    + +
    returns (QString)
    In versions KDE 3.1.0 and above only

  • +
  • type () +
    + +
    returns (int)
    In versions KDE 3.1.0 and above only

  • +
  • uri () +
    + +
    returns (QString)
    In versions KDE 3.1.0 and above only

  • +
+ + + diff --git a/doc/classref/kdeprint/KMJobManager.JobFilter.html b/doc/classref/kdeprint/KMJobManager.JobFilter.html new file mode 100644 index 0000000..836b1b8 --- /dev/null +++ b/doc/classref/kdeprint/KMJobManager.JobFilter.html @@ -0,0 +1,50 @@ + + + + + class KMJobManager.JobFilter + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KMJobManager.JobFilter


+
+ + + + + +
Table of contents
Modules
kdeprint Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeprint
ClassKMJobManager.JobFilter
Inherits
+

methods

    +
  • JobFilter () +
    + +
    returns a JobFilter instance
    In versions KDE 3.1.0 and above only

  • +
+

variables

  • +variables + + +
    VariableType
    m_isspecialbool
    m_type[2]int
+ + + diff --git a/doc/classref/kdeprint/KMJobManager.html b/doc/classref/kdeprint/KMJobManager.html new file mode 100644 index 0000000..e589a1a --- /dev/null +++ b/doc/classref/kdeprint/KMJobManager.html @@ -0,0 +1,204 @@ + + + + + class KMJobManager + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KMJobManager


+
+ + + + + +
Table of contents
Modules
kdeprint Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeprint
ClassKMJobManager
InheritsQObject
+

enums

    +
  • JobType = {ActiveJobs, CompletedJobs +}
+

methods

    +
  • KMJobManager (parent = 0, name = 0) +
    + +
    returns a KMJobManager instance
    In versions KDE 3.1.0 and above only
    + + +
    ArgumentTypeDefault
    parentQObject0
    namechar0
    +

  • +
  • actions () +
    + +
    returns (int)
    In versions KDE 3.1.0 and above only

  • +
  • addJob (a0) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    a0KMJob
    +

  • +
  • addPrinter (pr, type = ActiveJobs, isSpecial = 0) +
    + +
    returns nothing
    In versions KDE 3.2.2 and above only
    + + + +
    ArgumentTypeDefault
    prQString
    typeKMJobManager.JobTypeActiveJobs
    isSpecialbool0
    +

  • +
  • addPrinter (a0, a1 = ActiveJobs) +
    + +
    returns nothing
    In versions less than KDE 3.2.2 only
    + + +
    ArgumentTypeDefault
    a0QString
    a1KMJobManager.JobTypeActiveJobs
    +

  • +
  • clearFilter () +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only

  • +
  • createPluginActions (a0) +
    + +
    returns (QValueList
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    a0KActionCollection
    +

  • +
  • discardAllJobs () +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only

  • +
  • doPluginAction (a0, a1) +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above only
    + + +
    ArgumentTypeDefault
    a0int
    a1QPtrList
    +

  • +
  • filter () +
    Not Implemented
    +

  • +
  • findJob (uri) +
    + +
    returns (KMJob)
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    uriQString
    +

  • +
  • jobList (reload = 1) +
    + +
    returns (QPtrList)
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    reloadbool1
    +

  • +
  • limit () +
    + +
    returns (int)
    In versions KDE 3.1.0 and above only

  • +
  • listJobs (prname, type, limit = 0) +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above only
    + + + +
    ArgumentTypeDefault
    prnameQString
    typeKMJobManager.JobType
    limitint0
    +

  • +
  • removeDiscardedJobs () +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only

  • +
  • removePrinter (pr, type = ActiveJobs) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + + +
    ArgumentTypeDefault
    prQString
    typeKMJobManager.JobTypeActiveJobs
    +

  • +
  • self () +
    + + +
    returns (KMJobManager)
    In versions KDE 3.1.0 and above only
    static

  • +
  • sendCommand (uri, action, arg = QString .null) +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above only
    + + + +
    ArgumentTypeDefault
    uriQString
    actionint
    argQStringQString .null
    +

  • +
  • sendCommand (jobs, action, arg = QString .null) +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above only
    + + + +
    ArgumentTypeDefault
    jobsQPtrList
    actionint
    argQStringQString .null
    +

  • +
  • sendCommandSystemJob (jobs, action, arg = QString .null) +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above only
    + + + +
    ArgumentTypeDefault
    jobsQPtrList
    actionint
    argQStringQString .null
    +

  • +
  • sendCommandThreadJob (jobs, action, arg = QString .null) +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above only
    + + + +
    ArgumentTypeDefault
    jobsQPtrList
    actionint
    argQStringQString .null
    +

  • +
  • setLimit (val) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    valint
    +

  • +
  • threadJob () +
    Not Implemented
    +

  • +
  • validatePluginActions (a0, a1) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + + +
    ArgumentTypeDefault
    a0KActionCollection
    a1QPtrList
    +

  • +
+ + + diff --git a/doc/classref/kdeprint/KMManager.html b/doc/classref/kdeprint/KMManager.html new file mode 100644 index 0000000..97289ff --- /dev/null +++ b/doc/classref/kdeprint/KMManager.html @@ -0,0 +1,363 @@ + + + + + class KMManager + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KMManager


+
+ + + + + +
Table of contents
Modules
kdeprint Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeprint
ClassKMManager
InheritsQObject
+

enums

    +
  • PrinterOperations = {PrinterEnabling, PrinterCreation, PrinterDefault, PrinterTesting, PrinterConfigure, PrinterRemoval, PrinterAll +}
  • ServerOperations = {ServerRestarting, ServerConfigure, ServerAll +}
+

methods

    +
  • KMManager (parent = 0, name = 0) +
    +
    returns a KMManager instance
    + + +
    ArgumentTypeDefault
    parentQObject0
    namechar0
    +

  • +
  • addPrinter (p) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    pKMPrinter
    +

  • +
  • addPrinterWizard (parent = 0) +
    +
    returns (int)
    + +
    ArgumentTypeDefault
    parentQWidget0
    +

  • +
  • checkUpdatePossible () +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only

  • +
  • checkUpdatePossibleInternal () +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only

  • +
  • completePrinter (p) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    pKMPrinter
    +

  • +
  • completePrinter (name) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    nameQString
    +

  • +
  • completePrinterShort (p) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    pKMPrinter
    +

  • +
  • configureServer (parent = 0) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    parentQWidget0
    +

  • +
  • createPluginActions (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KActionCollection
    +

  • +
  • createPrinter (p) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    pKMPrinter
    +

  • +
  • createSpecialPrinter (p) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    pKMPrinter
    +

  • +
  • defaultPrinter () +
    +
    returns (KMPrinter)

  • +
  • detectLocalPrinters () +
    +
    returns (QStringList)

  • +
  • discardAllPrinters (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • driverDbCreationProgram () +
    +
    returns (QString)

  • +
  • driverDirectory () +
    +
    returns (QString)

  • +
  • enableFilter (on) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    onbool
    +

  • +
  • enablePrinter (p, on) +
    +
    returns (bool)
    + + +
    ArgumentTypeDefault
    pKMPrinter
    onbool
    +

  • +
  • enablePrinter (name, state) +
    +
    returns (bool)
    + + +
    ArgumentTypeDefault
    nameQString
    statebool
    +

  • +
  • errorMsg () +
    +
    returns (QString)

  • +
  • findPrinter (name) +
    +
    returns (KMPrinter)
    + +
    ArgumentTypeDefault
    nameQString
    +

  • +
  • hardDefault () +
    +
    returns (KMPrinter)

  • +
  • hasManagement () +
    +
    returns (bool)

  • +
  • invokeOptionsDialog (parent = 0) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    parentQWidget0
    +

  • +
  • isFilterEnabled () +
    +
    returns (bool)

  • +
  • listPrinters () +
    +
    returns nothing

  • +
  • loadDbDriver (entry) +
    Not Implemented
    +

  • +
  • loadDriver (p, config = 0) +
    Not Implemented
    +

  • +
  • loadFileDriver (filename) +
    Not Implemented
    +

  • +
  • loadPrinterDriver (p, config = 0) +
    Not Implemented
    +

  • +
  • modifyPrinter (oldp, newp) +
    +
    returns (bool)
    + + +
    ArgumentTypeDefault
    oldpKMPrinter
    newpKMPrinter
    +

  • +
  • notImplemented () +
    +
    returns (bool)

  • +
  • printerList (reload = 1) +
    +
    returns (QPtrList)
    + +
    ArgumentTypeDefault
    reloadbool1
    +

  • +
  • printerListComplete (reload = 1) +
    +
    returns (QPtrList)
    + +
    ArgumentTypeDefault
    reloadbool1
    +

  • +
  • printerOperationMask () +
    +
    returns (int)

  • +
  • removePrinter (p) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    pKMPrinter
    +

  • +
  • removePrinter (name) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    nameQString
    +

  • +
  • removeSpecialPrinter (p) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    pKMPrinter
    +

  • +
  • restartServer () +
    +
    returns (bool)

  • +
  • savePrinterDriver (p, d) +
    Not Implemented
    +

  • +
  • self () +
    + +
    returns (KMManager)
    static

  • +
  • serverOperationMask () +
    +
    returns (int)

  • +
  • setDefaultPrinter (p) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    pKMPrinter
    +

  • +
  • setDefaultPrinter (name) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    nameQString
    +

  • +
  • setErrorMsg (s) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    sQString
    +

  • +
  • setHardDefault (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KMPrinter
    +

  • +
  • setHasManagement (on) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    onbool
    +

  • +
  • setPrinterOperationMask (m) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    mint
    +

  • +
  • setServerOperationMask (m) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    mint
    +

  • +
  • setSoftDefault (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KMPrinter
    +

  • +
  • setUpdatePossible (a0) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • softDefault () +
    +
    returns (KMPrinter)

  • +
  • startPrinter (p, on) +
    +
    returns (bool)
    + + +
    ArgumentTypeDefault
    pKMPrinter
    onbool
    +

  • +
  • startPrinter (name, state) +
    +
    returns (bool)
    + + +
    ArgumentTypeDefault
    nameQString
    statebool
    +

  • +
  • stateInformation () +
    + +
    returns (QString)
    In versions KDE 3.1.0 and above only

  • +
  • testPage () +
    +
    returns (QString)

  • +
  • testPrinter (p) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    pKMPrinter
    +

  • +
  • uncompressFile (srcname, destname) +
    +
    returns (bool)
    + + +
    ArgumentTypeDefault
    srcnameQString
    destnameQString
    +

  • +
  • upPrinter (p, state) +
    +
    returns (bool)
    + + +
    ArgumentTypeDefault
    pKMPrinter
    statebool
    +

  • +
  • updatePossible (a0) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • validateDbDriver (entry) +
    Not Implemented
    +

  • +
  • validatePluginActions (a0, a1) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    a0KActionCollection
    a1KMPrinter
    +

  • +
+ + + diff --git a/doc/classref/kdeprint/KMObject.html b/doc/classref/kdeprint/KMObject.html new file mode 100644 index 0000000..3b5f474 --- /dev/null +++ b/doc/classref/kdeprint/KMObject.html @@ -0,0 +1,53 @@ + + + + + class KMObject + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KMObject


+
+ + + + + +
Table of contents
Modules
kdeprint Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeprint
ClassKMObject
Inherits
+

methods

    +
  • KMObject () +
    +
    returns a KMObject instance

  • +
  • isDiscarded () +
    +
    returns (bool)

  • +
  • setDiscarded (on = 1) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    onbool1
    +

  • +
+ + + diff --git a/doc/classref/kdeprint/KMPrinter.html b/doc/classref/kdeprint/KMPrinter.html new file mode 100644 index 0000000..54748f4 --- /dev/null +++ b/doc/classref/kdeprint/KMPrinter.html @@ -0,0 +1,420 @@ + + + + + class KMPrinter + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KMPrinter


+
+ + + + + +
Table of contents
Modules
kdeprint Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeprint
ClassKMPrinter
InheritsKMObject
+

enums

    +
  • PrinterCap = {CapBW, CapColor, CapDuplex, CapStaple, CapCopies, CapCollate, CapPunch, CapCover, CapBind, CapSort, CapSmall, CapMedium, CapLarge, CapVariable +}
  • PrinterState = {Idle, Stopped, Processing, Unknown, Rejecting, StateMask +}
  • PrinterType = {Printer, Class, Implicit, Virtual, Remote, Invalid, Special +}
+

methods

    +
  • KMPrinter () +
    +
    returns a KMPrinter instance

  • +
  • KMPrinter (p) +
    +
    returns a KMPrinter instance
    + +
    ArgumentTypeDefault
    pKMPrinter
    +

  • +
  • acceptJobs () +
    +
    returns (bool)

  • +
  • addMember (s) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    sQString
    +

  • +
  • addPrinterCap (c) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    cint
    +

  • +
  • addType (t) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    tint
    +

  • +
  • autoConfigure (prt, parent = 0) +
    +
    returns (bool)
    + + +
    ArgumentTypeDefault
    prtKPrinter
    parentQWidget0
    +

  • +
  • compare (p1, p2) +
    + +
    returns (int)
    static
    + + +
    ArgumentTypeDefault
    p1KMPrinter
    p2KMPrinter
    +

  • +
  • copy (p) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    pKMPrinter
    +

  • +
  • dbEntry () +
    Not Implemented
    +

  • +
  • defaultOption (key) +
    +
    returns (QString)
    + +
    ArgumentTypeDefault
    keyQString
    +

  • +
  • defaultOptions () +
    +
    returns (QMap)

  • +
  • description () +
    +
    returns (QString)

  • +
  • device () +
    + +
    returns (QString)
    In versions KDE 3.2.0 and above only

  • +
  • device () +
    + +
    returns (KURL)
    In versions less than KDE 3.2.0 only

  • +
  • deviceProtocol () +
    + +
    returns (QString)
    In versions KDE 3.2.0 and above only

  • +
  • driver () +
    Not Implemented
    +

  • +
  • driverInfo () +
    +
    returns (QString)

  • +
  • editedOption (key) +
    +
    returns (QString)
    + +
    ArgumentTypeDefault
    keyQString
    +

  • +
  • editedOptions () +
    +
    returns (QMap)

  • +
  • hasOption (key) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    keyQString
    +

  • +
  • instanceName () +
    +
    returns (QString)

  • +
  • isClass (useImplicit = 1) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    useImplicitbool1
    +

  • +
  • isEdited () +
    +
    returns (bool)

  • +
  • isHardDefault () +
    +
    returns (bool)

  • +
  • isImplicit () +
    +
    returns (bool)

  • +
  • isLocal () +
    +
    returns (bool)

  • +
  • isPrinter () +
    +
    returns (bool)

  • +
  • isRemote () +
    +
    returns (bool)

  • +
  • isSoftDefault () +
    +
    returns (bool)

  • +
  • isSpecial () +
    +
    returns (bool)

  • +
  • isValid () +
    +
    returns (bool)

  • +
  • isVirtual () +
    +
    returns (bool)

  • +
  • location () +
    +
    returns (QString)

  • +
  • manufacturer () +
    +
    returns (QString)

  • +
  • members () +
    +
    returns (QStringList)

  • +
  • model () +
    +
    returns (QString)

  • +
  • name () +
    +
    returns (QString)

  • +
  • option (key) +
    +
    returns (QString)
    + +
    ArgumentTypeDefault
    keyQString
    +

  • +
  • options () +
    +
    returns (QMap)

  • +
  • ownSoftDefault () +
    +
    returns (bool)

  • +
  • pixmap () +
    +
    returns (QString)

  • +
  • printerCap () +
    + +
    returns (int)
    In versions KDE 3.2.0 and above only

  • +
  • printerName () +
    +
    returns (QString)

  • +
  • removeOption (key) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    keyQString
    +

  • +
  • setAcceptJobs (on) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    onbool
    +

  • +
  • setDbEntry (e) +
    Not Implemented
    +

  • +
  • setDefaultOption (key, value) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    keyQString
    valueQString
    +

  • +
  • setDefaultOptions (opts) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    optsQMap
    +

  • +
  • setDescription (s) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    sQString
    +

  • +
  • setDevice (d) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    dQString
    +

  • +
  • setDevice (a0) +
    + +
    returns nothing
    In versions less than KDE 3.2.0 only
    + +
    ArgumentTypeDefault
    a0KURL
    +

  • +
  • setDriver (a0) +
    Not Implemented
    +

  • +
  • setDriverInfo (s) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    sQString
    +

  • +
  • setEdited (on) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    onbool
    +

  • +
  • setEditedOption (key, value) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    keyQString
    valueQString
    +

  • +
  • setEditedOptions (opts) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    optsQMap
    +

  • +
  • setHardDefault (on) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    onbool
    +

  • +
  • setInstanceName (s) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    sQString
    +

  • +
  • setLocation (s) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    sQString
    +

  • +
  • setManufacturer (s) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    sQString
    +

  • +
  • setMembers (l) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    lQStringList
    +

  • +
  • setModel (s) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    sQString
    +

  • +
  • setName (s) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    sQString
    +

  • +
  • setOption (key, value) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    keyQString
    valueQString
    +

  • +
  • setOptions (opts) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    optsQMap
    +

  • +
  • setOwnSoftDefault (on) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    onbool
    +

  • +
  • setPixmap (s) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    sQString
    +

  • +
  • setPrinterCap (c) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    cint
    +

  • +
  • setPrinterName (s) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    sQString
    +

  • +
  • setSoftDefault (on) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    onbool
    +

  • +
  • setState (s) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    sKMPrinter.PrinterState
    +

  • +
  • setType (t) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    tint
    +

  • +
  • setUri (u) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    uKURL
    +

  • +
  • state (complete = 0) +
    +
    returns (KMPrinter.PrinterState)
    + +
    ArgumentTypeDefault
    completebool0
    +

  • +
  • stateString () +
    +
    returns (QString)

  • +
  • takeDriver () +
    Not Implemented
    +

  • +
  • type () +
    +
    returns (int)

  • +
  • uri () +
    +
    returns (KURL)

  • +
+ + + diff --git a/doc/classref/kdeprint/KPReloadObject.html b/doc/classref/kdeprint/KPReloadObject.html new file mode 100644 index 0000000..e3b5dc3 --- /dev/null +++ b/doc/classref/kdeprint/KPReloadObject.html @@ -0,0 +1,57 @@ + + + + + class KPReloadObject + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KPReloadObject


+
+ + + + + +
Table of contents
Modules
kdeprint Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeprint
ClassKPReloadObject (abstract)
Inherits
+

methods

    +
  • KPReloadObject (priority = 0) +
    +
    returns a KPReloadObject instance
    + +
    ArgumentTypeDefault
    prioritybool0
    +

  • +
  • aboutToReload () +
    +
    returns nothing

  • +
  • configChanged () +
    +
    returns nothing

  • +
  • reload () = 0 +
    + +
    returns nothing
    pure virtual

  • +
+ + + diff --git a/doc/classref/kdeprint/KPrintAction.html b/doc/classref/kdeprint/KPrintAction.html new file mode 100644 index 0000000..ed763f6 --- /dev/null +++ b/doc/classref/kdeprint/KPrintAction.html @@ -0,0 +1,127 @@ + + + + + class KPrintAction + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KPrintAction


+
+ + + + + +
Table of contents
Modules
kdeprint Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeprint
ClassKPrintAction
InheritsKActionMenu
+

enums

    +
  • PrinterType = {All, Regular, Specials +}
+

methods

    +
  • KPrintAction (text, type = All, parentWidget = 0, parent = 0, name = 0) +
    +
    returns a KPrintAction instance
    + + + + + +
    ArgumentTypeDefault
    textQString
    typeKPrintAction.PrinterTypeAll
    parentWidgetQWidget0
    parentQObject0
    namechar0
    +

  • +
  • KPrintAction (text, icon, type = All, parentWidget = 0, parent = 0, name = 0) +
    +
    returns a KPrintAction instance
    + + + + + + +
    ArgumentTypeDefault
    textQString
    iconQIconSet
    typeKPrintAction.PrinterTypeAll
    parentWidgetQWidget0
    parentQObject0
    namechar0
    +

  • +
  • KPrintAction (text, icon, type = All, parentWidget = 0, parent = 0, name = 0) +
    +
    returns a KPrintAction instance
    + + + + + + +
    ArgumentTypeDefault
    textQString
    iconQString
    typeKPrintAction.PrinterTypeAll
    parentWidgetQWidget0
    parentQObject0
    namechar0
    +

  • +
  • exportAll (parentWidget = 0, parent = 0, name = 0) +
    + +
    returns (KPrintAction)
    static
    + + + +
    ArgumentTypeDefault
    parentWidgetQWidget0
    parentQObject0
    namechar0
    +

  • +
  • exportRegular (parentWidget = 0, parent = 0, name = 0) +
    + +
    returns (KPrintAction)
    static
    + + + +
    ArgumentTypeDefault
    parentWidgetQWidget0
    parentQObject0
    namechar0
    +

  • +
  • exportSpecial (parentWidget = 0, parent = 0, name = 0) +
    + +
    returns (KPrintAction)
    static
    + + + +
    ArgumentTypeDefault
    parentWidgetQWidget0
    parentQObject0
    namechar0
    +

  • +
  • initialize (type, parentWidget) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    typeKPrintAction.PrinterType
    parentWidgetQWidget
    +

  • +
  • print_ (a0) +
    + +
    returns nothing
    Renamed: was ' print +' in C++
    + +
    ArgumentTypeDefault
    a0KPrinter
    +

  • +
  • slotAboutToShow () +
    +
    returns nothing

  • +
  • slotActivated (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
+ + + diff --git a/doc/classref/kdeprint/KPrintDialog.html b/doc/classref/kdeprint/KPrintDialog.html new file mode 100644 index 0000000..e05f693 --- /dev/null +++ b/doc/classref/kdeprint/KPrintDialog.html @@ -0,0 +1,193 @@ + + + + + class KPrintDialog + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KPrintDialog


+
+ + + + + +
Table of contents
Modules
kdeprint Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeprint
ClassKPrintDialog
InheritsKDialog, KPReloadObject
+

methods

    +
  • KPrintDialog (parent = 0, name = 0) +
    +
    returns a KPrintDialog instance
    + + +
    ArgumentTypeDefault
    parentQWidget0
    namechar0
    +

  • +
  • checkOutputFile () +
    +
    returns (bool)

  • +
  • configChanged () +
    +
    returns nothing

  • +
  • done (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • enableDialogPage (index, flag = 1) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + + +
    ArgumentTypeDefault
    indexint
    flagbool1
    +

  • +
  • enableOutputFile (on) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    onbool
    +

  • +
  • enableSpecial (on) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    onbool
    +

  • +
  • expandDialog (on = 1) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    onbool1
    +

  • +
  • init () +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only

  • +
  • initialize (a0) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    a0KPrinter
    +

  • +
  • initialize (a0) +
    + +
    returns nothing
    In versions less than KDE 3.1.0 only
    + +
    ArgumentTypeDefault
    a0KPrinter
    +

  • +
  • printRequested (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KPrinter
    +

  • +
  • printer () +
    +
    returns (KPrinter)

  • +
  • printerDialog (a0, a1, caption = QString .null, forceExpand = 0) +
    + +
    returns (KPrintDialog)
    static
    + + + + +
    ArgumentTypeDefault
    a0KPrinter
    a1QWidget
    captionQStringQString .null
    forceExpandbool0
    +

  • +
  • reload () +
    +
    returns nothing

  • +
  • setDialogPages (pages) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    pagesQPtrList
    +

  • +
  • setFlags (f) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    fint
    +

  • +
  • setOutputFileExtension (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • slotExtensionClicked () +
    +
    returns nothing

  • +
  • slotHelp () +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only

  • +
  • slotOpenFileDialog () +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only

  • +
  • slotOptions () +
    +
    returns nothing

  • +
  • slotOutputFileSelected (a0) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • slotPrinterSelected (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • slotProperties () +
    +
    returns nothing

  • +
  • slotSetDefault () +
    +
    returns nothing

  • +
  • slotToggleFilter (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • slotUpdatePossible (a0) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • slotWizard () +
    +
    returns nothing

  • +
+ + + diff --git a/doc/classref/kdeprint/KPrintDialogPage.html b/doc/classref/kdeprint/KPrintDialogPage.html new file mode 100644 index 0000000..1b7303a --- /dev/null +++ b/doc/classref/kdeprint/KPrintDialogPage.html @@ -0,0 +1,103 @@ + + + + + class KPrintDialogPage + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KPrintDialogPage


+
+ + + + + +
Table of contents
Modules
kdeprint Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeprint
ClassKPrintDialogPage
InheritsQWidget
+

methods

    +
  • KPrintDialogPage (parent = 0, name = 0) +
    +
    returns a KPrintDialogPage instance
    + + +
    ArgumentTypeDefault
    parentQWidget0
    namechar0
    +

  • +
  • KPrintDialogPage (pr, dr = 0, parent = 0, name = 0) +
    Not Implemented
    +

  • +
  • driver () +
    Not Implemented
    +

  • +
  • getOptions (opts, incldef = 0) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    optsQMap
    incldefbool0
    +

  • +
  • id () +
    +
    returns (int)

  • +
  • isValid (msg) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    msgQString
    +

  • +
  • onlyRealPrinters () +
    +
    returns (bool)

  • +
  • printer () +
    Not Implemented
    +

  • +
  • setId (ID) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    IDint
    +

  • +
  • setOnlyRealPrinters (on = 1) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    onbool1
    +

  • +
  • setOptions (opts) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    optsQMap
    +

  • +
  • setTitle (txt) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    txtQString
    +

  • +
  • title () +
    +
    returns (QString)

  • +
+ + + diff --git a/doc/classref/kdeprint/KPrinter.html b/doc/classref/kdeprint/KPrinter.html new file mode 100644 index 0000000..6c638db --- /dev/null +++ b/doc/classref/kdeprint/KPrinter.html @@ -0,0 +1,493 @@ + + + + + class KPrinter + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KPrinter


+
+ + + + + +
Table of contents
Modules
kdeprint Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeprint
ClassKPrinter
InheritsQPaintDevice, KPReloadObject
+

enums

    +
  • ApplicationType = {Dialog, StandAlone, StandAlonePersistent +}
  • CollateType = {Collate, Uncollate +}
  • ColorMode = {GrayScale, Color +}
  • Orientation = {Portrait, Landscape +}
  • PageOrder = {FirstPageFirst, LastPageFirst +}
  • PageSelectionType = {ApplicationSide, SystemSide +}
  • PageSetType = {AllPages, OddPages, EvenPages +}
  • PageSize = {A4, B5, Letter, Legal, Executive, A0, A1, A2, A3, A5, A6, A7, A8, A9, B0, B1, B10, B2, B3, B4, B6, B7, B8, B9, C5E, Comm10E, DLE, Folio, Ledger, Tabloid, NPageSize +}
  • StandardPageType = {CopiesPage, FilesPage, Custom +}
+

methods

    +
  • KPrinter (restore = 1, m = QPrinter .ScreenResolution) +
    +
    returns a KPrinter instance
    + + +
    ArgumentTypeDefault
    restorebool1
    mQPrinter.PrinterModeQPrinter .ScreenResolution
    +

  • +
  • abort () +
    +
    returns (bool)

  • +
  • aborted () +
    +
    returns (bool)

  • +
  • addDialogPage (_page) +
    + +
    returns nothing
    static
    + +
    ArgumentTypeDefault
    _pageKPrintDialogPage
    +

  • +
  • addStandardPage (p) +
    + +
    returns nothing
    static
    + +
    ArgumentTypeDefault
    pint
    +

  • +
  • applicationType () +
    + +
    returns (KPrinter.ApplicationType)
    static

  • +
  • autoConfigure (prname = QString .null, parent = 0) +
    +
    returns (bool)
    + + +
    ArgumentTypeDefault
    prnameQStringQString .null
    parentQWidget0
    +

  • +
  • cmd (a0, a1, a2) +
    Not Implemented
    +

  • +
  • collate () +
    +
    returns (KPrinter.CollateType)

  • +
  • colorMode () +
    +
    returns (KPrinter.ColorMode)

  • +
  • creator () +
    +
    returns (QString)

  • +
  • currentPage () +
    +
    returns (int)

  • +
  • doPreview (file) +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    fileQString
    +

  • +
  • docDirectory () +
    + +
    returns (QString)
    In versions KDE 3.1.0 and above only

  • +
  • docFileName () +
    +
    returns (QString)

  • +
  • docName () +
    +
    returns (QString)

  • +
  • errorMessage () +
    +
    returns (QString)

  • +
  • finishPrinting () +
    +
    returns nothing

  • +
  • fromPage () +
    +
    returns (int)

  • +
  • fullPage () +
    +
    returns (bool)

  • +
  • implementation () +
    Not Implemented
    +

  • +
  • init (restore = 1, m = QPrinter .ScreenResolution) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    restorebool1
    mQPrinter.PrinterModeQPrinter .ScreenResolution
    +

  • +
  • initOptions (opts) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    optsQMap
    +

  • +
  • loadSettings () +
    +
    returns nothing

  • +
  • margins () +
    +
    returns (QSize)

  • +
  • margins () +
    + +
    returns top (uint) left (uint) bottom (uint) right (uint)
    In versions KDE 3.1.0 and above only

  • +
  • maxPage () +
    +
    returns (int)

  • +
  • metric (a0) +
    +
    returns (int)
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • minPage () +
    +
    returns (int)

  • +
  • newPage () +
    +
    returns (bool)

  • +
  • numCopies () +
    +
    returns (int)

  • +
  • option (key) +
    +
    returns (QString)
    + +
    ArgumentTypeDefault
    keyQString
    +

  • +
  • options () +
    +
    returns (QMap)

  • +
  • orientation () +
    +
    returns (KPrinter.Orientation)

  • +
  • outputFileName () +
    +
    returns (QString)

  • +
  • outputToFile () +
    +
    returns (bool)

  • +
  • pageList () +
    +
    returns (QValueList)

  • +
  • pageOrder () +
    +
    returns (KPrinter.PageOrder)

  • +
  • pageSelection () +
    + +
    returns (KPrinter.PageSelectionType)
    static

  • +
  • pageSet () +
    +
    returns (KPrinter.PageSetType)

  • +
  • pageSize () +
    +
    returns (KPrinter.PageSize)

  • +
  • preparePrinting () +
    +
    returns nothing

  • +
  • previewOnly () +
    +
    returns (bool)

  • +
  • printFiles (files, removeafter = 0, startviewer = 1) +
    +
    returns (bool)
    + + + +
    ArgumentTypeDefault
    filesQStringList
    removeafterbool0
    startviewerbool1
    +

  • +
  • printProgram () +
    +
    returns (QString)

  • +
  • printerName () +
    +
    returns (QString)

  • +
  • printerSelectionOption () +
    +
    returns (QString)

  • +
  • realDrawableArea () +
    + +
    returns (QRect)
    In versions KDE 3.1.0 and above only

  • +
  • realPageSize () +
    +
    returns (QSize)

  • +
  • reload () +
    +
    returns nothing

  • +
  • removeStandardPage (p) +
    + +
    returns nothing
    static
    + +
    ArgumentTypeDefault
    pint
    +

  • +
  • resolution () +
    + +
    returns (int)
    In versions KDE 3.1.0 and above only

  • +
  • saveSettings () +
    +
    returns nothing

  • +
  • searchName () +
    +
    returns (QString)

  • +
  • setApplicationType (type) +
    + +
    returns nothing
    static
    + +
    ArgumentTypeDefault
    typeKPrinter.ApplicationType
    +

  • +
  • setCollate (type) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    typeKPrinter.CollateType
    +

  • +
  • setColorMode (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KPrinter.ColorMode
    +

  • +
  • setCreator (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • setCurrentPage (p = 0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    pint0
    +

  • +
  • setDocDirectory (dir) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    dirQString
    +

  • +
  • setDocFileName (filename) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    filenameQString
    +

  • +
  • setDocName (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • setErrorMessage (msg) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    msgQString
    +

  • +
  • setFromTo (a0, a1) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    a0int
    a1int
    +

  • +
  • setFullPage (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • setMargins (m) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    mQSize
    +

  • +
  • setMargins (top, left, bottom, right) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + + + + +
    ArgumentTypeDefault
    topuint
    leftuint
    bottomuint
    rightuint
    +

  • +
  • setMinMax (a0, a1) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    a0int
    a1int
    +

  • +
  • setNumCopies (n) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    nint
    +

  • +
  • setOption (key, value) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    keyQString
    valueQString
    +

  • +
  • setOption (key, value, broadcast) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + + + +
    ArgumentTypeDefault
    keyQString
    valueQString
    broadcastbool
    +

  • +
  • setOptions (opts) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    optsQMap
    +

  • +
  • setOrientation (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KPrinter.Orientation
    +

  • +
  • setOutputFileName (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • setOutputToFile (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • setPageOrder (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KPrinter.PageOrder
    +

  • +
  • setPageSelection (_mode) +
    + +
    returns nothing
    static
    + +
    ArgumentTypeDefault
    _modeKPrinter.PageSelectionType
    +

  • +
  • setPageSize (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KPrinter.PageSize
    +

  • +
  • setPreviewOnly (on) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    onbool
    +

  • +
  • setPrintProgram (cmd) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    cmdQString
    +

  • +
  • setPrinterName (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • setPrinterSelectionOption (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • setRealDrawableArea (r) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    rQRect
    +

  • +
  • setRealPageSize (p) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    pQSize
    +

  • +
  • setRealPageSize (p) +
    Not Implemented
    +

  • +
  • setResolution (dpi) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    dpiint
    +

  • +
  • setSearchName (n) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    nQString
    +

  • +
  • setUsePrinterResolution (on) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    onbool
    +

  • +
  • setup (parent = 0, caption = QString .null, forceExpand = 0) +
    +
    returns (bool)
    + + + +
    ArgumentTypeDefault
    parentQWidget0
    captionQStringQString .null
    forceExpandbool0
    +

  • +
  • toPage () +
    +
    returns (int)

  • +
  • translateQtOptions () +
    +
    returns nothing

  • +
+ + + diff --git a/doc/classref/kdeprint/index.html b/doc/classref/kdeprint/index.html new file mode 100644 index 0000000..21dad9e --- /dev/null +++ b/doc/classref/kdeprint/index.html @@ -0,0 +1,46 @@ + + + + + module kdeprint + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

kdeprint Class Index


+
+ + + + +
Table of contents
Modules
All Classes
+
+ kdeprint Global and Namespace members

+ +
+ + + + + +
KMJob - KMManager
KMJob
KMJobManager
KMJobManager.JobFilter
KMManager
+ + + + + +
KMObject - KPrintAction
KMObject
KMPrinter
KPReloadObject
KPrintAction
+ + + + +
KPrintDialog - KPrinter
KPrintDialog
KPrintDialogPage
KPrinter
+ + diff --git a/doc/classref/kdeprint/kdeprint-globals.html b/doc/classref/kdeprint/kdeprint-globals.html new file mode 100644 index 0000000..321a4f0 --- /dev/null +++ b/doc/classref/kdeprint/kdeprint-globals.html @@ -0,0 +1,45 @@ + + + + + kdeprint globals + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

kdeprint Globals


+
+ + + + + +
Table of contents
Modules
kdeprint Classes
All Classes
+
+

global methods

    +
  • pageNameToPageSize (name) +
    +
    returns (KPrinter.PageSize)
    + +
    ArgumentTypeDefault
    nameQString
    +

  • +
  • pageSizeToPageName (s) +
    +
    returns (char)
    + +
    ArgumentTypeDefault
    sKPrinter.PageSize
    +

  • +
  • rangeToSize (a0) +
    Not Implemented
    +

  • +
+ + + diff --git a/doc/classref/kdeui/KAboutApplication.html b/doc/classref/kdeui/KAboutApplication.html new file mode 100644 index 0000000..05cbc28 --- /dev/null +++ b/doc/classref/kdeui/KAboutApplication.html @@ -0,0 +1,64 @@ + + + + + class KAboutApplication + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KAboutApplication


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKAboutApplication
InheritsKAboutDialog
+

methods

    +
  • KAboutApplication (parent = 0, name = 0, modal = 1) +
    +
    returns a KAboutApplication instance
    + + + +
    ArgumentTypeDefault
    parentQWidget0
    namechar0
    modalbool1
    +

  • +
  • KAboutApplication (aboutData, parent = 0, name = 0, modal = 1) +
    +
    returns a KAboutApplication instance
    + + + + +
    ArgumentTypeDefault
    aboutDataKAboutData
    parentQWidget0
    namechar0
    modalbool1
    +

  • +
  • buildDialog (aboutData) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    aboutDataKAboutData
    +

  • +
+ + + diff --git a/doc/classref/kdeui/KAboutContainer.html b/doc/classref/kdeui/KAboutContainer.html new file mode 100644 index 0000000..4891382 --- /dev/null +++ b/doc/classref/kdeui/KAboutContainer.html @@ -0,0 +1,111 @@ + + + + + class KAboutContainer + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KAboutContainer


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKAboutContainer
InheritsQFrame
+

methods

    +
  • KAboutContainer (parent = 0, name = 0, margin = 0, spacing = 0, childAlignment = AlignCenter, innerAlignment = AlignCenter) +
    +
    returns a KAboutContainer instance
    + + + + + + +
    ArgumentTypeDefault
    parentQWidget0
    namechar0
    marginint0
    spacingint0
    childAlignmentintAlignCenter
    innerAlignmentintAlignCenter
    +

  • +
  • addImage (fileName, alignment = AlignLeft) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    fileNameQString
    alignmentintAlignLeft
    +

  • +
  • addPerson (name, email, url, task, showHeader = 0, showframe = 0, showBold = 0) +
    +
    returns nothing
    + + + + + + + +
    ArgumentTypeDefault
    nameQString
    emailQString
    urlQString
    taskQString
    showHeaderbool0
    showframebool0
    showBoldbool0
    +

  • +
  • addTitle (title, alignment = AlignLeft, showframe = 0, showBold = 0) +
    +
    returns nothing
    + + + + +
    ArgumentTypeDefault
    titleQString
    alignmentintAlignLeft
    showframebool0
    showBoldbool0
    +

  • +
  • addWidget (widget) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    widgetQWidget
    +

  • +
  • childEvent (e) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    eQChildEvent
    +

  • +
  • mailClick (name, address) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    nameQString
    addressQString
    +

  • +
  • minimumSizeHint () +
    +
    returns (QSize)

  • +
  • sizeHint () +
    +
    returns (QSize)

  • +
  • urlClick (url) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    urlQString
    +

  • +
+ + + diff --git a/doc/classref/kdeui/KAboutContributor.html b/doc/classref/kdeui/KAboutContributor.html new file mode 100644 index 0000000..5206b02 --- /dev/null +++ b/doc/classref/kdeui/KAboutContributor.html @@ -0,0 +1,133 @@ + + + + + class KAboutContributor + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KAboutContributor


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKAboutContributor
InheritsQFrame
+

methods

    +
  • KAboutContributor (parent = 0, name = 0, username = QString .null, email = QString .null, url = QString .null, work = QString .null, showHeader = 0, showFrame = 1, showBold = 0) +
    +
    returns a KAboutContributor instance
    + + + + + + + + + +
    ArgumentTypeDefault
    parentQWidget0
    namechar0
    usernameQStringQString .null
    emailQStringQString .null
    urlQStringQString .null
    workQStringQString .null
    showHeaderbool0
    showFramebool1
    showBoldbool0
    +

  • +
  • emailClickedSlot (emailaddress) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    emailaddressQString
    +

  • +
  • fontChange (oldFont) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    oldFontQFont
    +

  • +
  • getEmail () +
    +
    returns (QString)

  • +
  • getName () +
    +
    returns (QString)

  • +
  • getURL () +
    +
    returns (QString)

  • +
  • getWork () +
    +
    returns (QString)

  • +
  • openURL (url) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    urlQString
    +

  • +
  • sendEmail (name, email) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    nameQString
    emailQString
    +

  • +
  • setEmail (text, header = QString .null, update = 1) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    textQString
    headerQStringQString .null
    updatebool1
    +

  • +
  • setName (text, header = QString .null, update = 1) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    textQString
    headerQStringQString .null
    updatebool1
    +

  • +
  • setURL (text, header = QString .null, update = 1) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    textQString
    headerQStringQString .null
    updatebool1
    +

  • +
  • setWork (text, header = QString .null, update = 1) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    textQString
    headerQStringQString .null
    updatebool1
    +

  • +
  • sizeHint () +
    +
    returns (QSize)

  • +
  • urlClickedSlot (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
+ + + diff --git a/doc/classref/kdeui/KAboutDialog.html b/doc/classref/kdeui/KAboutDialog.html new file mode 100644 index 0000000..d49fe33 --- /dev/null +++ b/doc/classref/kdeui/KAboutDialog.html @@ -0,0 +1,263 @@ + + + + + class KAboutDialog + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KAboutDialog


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKAboutDialog
InheritsKDialogBase
+

enums

    +
  • LayoutType = {AbtPlain, AbtTabbed, AbtTitle, AbtImageLeft, AbtImageRight, AbtImageOnly, AbtProduct, AbtKDEStandard, AbtAppStandard, AbtImageAndTitle +}
+

methods

    +
  • KAboutDialog (parent = 0, name = 0, modal = 1) +
    +
    returns a KAboutDialog instance
    + + + +
    ArgumentTypeDefault
    parentQWidget0
    namechar0
    modalbool1
    +

  • +
  • KAboutDialog (dialogLayout, caption, buttonMask, defaultButton, parent = 0, name = 0, modal = 0, separator = 0, user1 = QString .null, user2 = QString .null, user3 = QString .null) +
    +
    returns a KAboutDialog instance
    + + + + + + + + + + + +
    ArgumentTypeDefault
    dialogLayoutint
    captionQString
    buttonMaskint
    defaultButtonButtonCode
    parentQWidget0
    namechar0
    modalbool0
    separatorbool0
    user1QStringQString .null
    user2QStringQString .null
    user3QStringQString .null
    +

  • +
  • addContainer (childAlignment, innerAlignment) +
    +
    returns (KAboutContainer)
    + + +
    ArgumentTypeDefault
    childAlignmentint
    innerAlignmentint
    +

  • +
  • addContainerPage (title, childAlignment = AlignCenter, innerAlignment = AlignCenter) +
    +
    returns (KAboutContainer)
    + + + +
    ArgumentTypeDefault
    titleQString
    childAlignmentintAlignCenter
    innerAlignmentintAlignCenter
    +

  • +
  • addContributor (name, email, url, work) +
    +
    returns nothing
    + + + + +
    ArgumentTypeDefault
    nameQString
    emailQString
    urlQString
    workQString
    +

  • +
  • addLicensePage (title, text, numLines = 10) +
    +
    returns (QFrame)
    + + + +
    ArgumentTypeDefault
    titleQString
    textQString
    numLinesint10
    +

  • +
  • addPage (title) +
    +
    returns (QFrame)
    + +
    ArgumentTypeDefault
    titleQString
    +

  • +
  • addScrolledContainerPage (title, childAlignment = AlignCenter, innerAlignment = AlignCenter) +
    +
    returns (KAboutContainer)
    + + + +
    ArgumentTypeDefault
    titleQString
    childAlignmentintAlignCenter
    innerAlignmentintAlignCenter
    +

  • +
  • addTextPage (title, text, richText = 0, numLines = 10) +
    +
    returns (QFrame)
    + + + + +
    ArgumentTypeDefault
    titleQString
    textQString
    richTextbool0
    numLinesint10
    +

  • +
  • adjust () +
    +
    returns nothing

  • +
  • imageURL (parent, caption, path, imageColor, url) +
    + +
    returns nothing
    static
    + + + + + +
    ArgumentTypeDefault
    parentQWidget
    captionQString
    pathQString
    imageColorQColor
    urlQString
    +

  • +
  • mouseTrackSlot (mode, e) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    modeint
    eQMouseEvent
    +

  • +
  • openURL (url) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    urlQString
    +

  • +
  • openURLSlot (url) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    urlQString
    +

  • +
  • sendEmail (name, email) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    nameQString
    emailQString
    +

  • +
  • sendEmailSlot (name, email) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    nameQString
    emailQString
    +

  • +
  • setAuthor (name, email, url, work) +
    +
    returns nothing
    + + + + +
    ArgumentTypeDefault
    nameQString
    emailQString
    urlQString
    workQString
    +

  • +
  • setIcon (fileName) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    fileNameQString
    +

  • +
  • setImage (fileName) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    fileNameQString
    +

  • +
  • setImageBackgroundColor (color) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    colorQColor
    +

  • +
  • setImageFrame (state) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    statebool
    +

  • +
  • setLogo (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QPixmap
    +

  • +
  • setMaintainer (name, email, url, work) +
    +
    returns nothing
    + + + + +
    ArgumentTypeDefault
    nameQString
    emailQString
    urlQString
    workQString
    +

  • +
  • setProduct (appName, version, author, year) +
    +
    returns nothing
    + + + + +
    ArgumentTypeDefault
    appNameQString
    versionQString
    authorQString
    yearQString
    +

  • +
  • setProgramLogo (fileName) +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only
    + +
    ArgumentTypeDefault
    fileNameQString
    +

  • +
  • setProgramLogo (pixmap) +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only
    + +
    ArgumentTypeDefault
    pixmapQPixmap
    +

  • +
  • setTitle (title) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    titleQString
    +

  • +
  • setVersion (name) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    nameQString
    +

  • +
  • show () +
    +
    returns nothing

  • +
  • show (centerParent) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    centerParentQWidget
    +

  • +
+ + + diff --git a/doc/classref/kdeui/KAboutKDE.html b/doc/classref/kdeui/KAboutKDE.html new file mode 100644 index 0000000..cabbfb8 --- /dev/null +++ b/doc/classref/kdeui/KAboutKDE.html @@ -0,0 +1,49 @@ + + + + + class KAboutKDE + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KAboutKDE


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKAboutKDE
InheritsKAboutDialog
+

methods

    +
  • KAboutKDE (parent = 0, name = 0, modal = 1) +
    +
    returns a KAboutKDE instance
    + + + +
    ArgumentTypeDefault
    parentQWidget0
    namechar0
    modalbool1
    +

  • +
+ + + diff --git a/doc/classref/kdeui/KAboutWidget.html b/doc/classref/kdeui/KAboutWidget.html new file mode 100644 index 0000000..7dddad2 --- /dev/null +++ b/doc/classref/kdeui/KAboutWidget.html @@ -0,0 +1,122 @@ + + + + + class KAboutWidget + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KAboutWidget


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKAboutWidget
InheritsQWidget
+

methods

    +
  • KAboutWidget (parent = 0, name = 0) +
    +
    returns a KAboutWidget instance
    + + +
    ArgumentTypeDefault
    parentQWidget0
    namechar0
    +

  • +
  • addContributor (name, email, url, work) +
    +
    returns nothing
    + + + + +
    ArgumentTypeDefault
    nameQString
    emailQString
    urlQString
    workQString
    +

  • +
  • adjust () +
    +
    returns nothing

  • +
  • openURL (url) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    urlQString
    +

  • +
  • openURLSlot (url) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    urlQString
    +

  • +
  • resizeEvent (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QResizeEvent
    +

  • +
  • sendEmail (name, email) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    nameQString
    emailQString
    +

  • +
  • sendEmailSlot (name, email) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    nameQString
    emailQString
    +

  • +
  • setAuthor (name, email, url, work) +
    +
    returns nothing
    + + + + +
    ArgumentTypeDefault
    nameQString
    emailQString
    urlQString
    workQString
    +

  • +
  • setLogo (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QPixmap
    +

  • +
  • setMaintainer (name, email, url, work) +
    +
    returns nothing
    + + + + +
    ArgumentTypeDefault
    nameQString
    emailQString
    urlQString
    workQString
    +

  • +
  • setVersion (name) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    nameQString
    +

  • +
+ + + diff --git a/doc/classref/kdeui/KAction.html b/doc/classref/kdeui/KAction.html new file mode 100644 index 0000000..c271759 --- /dev/null +++ b/doc/classref/kdeui/KAction.html @@ -0,0 +1,531 @@ + + + + + class KAction + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KAction


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKAction
InheritsQObject
+

enums

    +
  • ActivationReason = {UnknownActivation, EmulatedActivation, AccelActivation, PopupMenuActivation, ToolBarActivation +}
+

methods

    +
  • KAction (text, cut, slot, parent, name) +
    +
    returns a KAction instance
    + + + + + +
    ArgumentTypeDefault
    textQString
    cutKShortcut
    slotSLOT (Python callable)
    parentKActionCollection
    namechar
    +

  • +
  • KAction (text, pix, cut, slot, parent, name) +
    +
    returns a KAction instance
    + + + + + + +
    ArgumentTypeDefault
    textQString
    pixQIconSet
    cutKShortcut
    slotSLOT (Python callable)
    parentKActionCollection
    namechar
    +

  • +
  • KAction (parent = 0, name = 0) +
    +
    returns a KAction instance
    + + +
    ArgumentTypeDefault
    parentQObject0
    namechar0
    +

  • +
  • KAction (text, pix, cut, slot, parent, name) +
    +
    returns a KAction instance
    + + + + + + +
    ArgumentTypeDefault
    textQString
    pixQString
    cutKShortcut
    slotSLOT (Python callable)
    parentKActionCollection
    namechar
    +

  • +
  • KAction (item, cut, slot, parent, name) +
    +
    returns a KAction instance
    + + + + + +
    ArgumentTypeDefault
    itemKGuiItem
    cutKShortcut
    slotSLOT (Python callable)
    parentKActionCollection
    namechar
    +

  • +
  • KAction (text, cut = KShortcut (), parent = 0, name = 0) +
    +
    returns a KAction instance
    + + + + +
    ArgumentTypeDefault
    textQString
    cutKShortcutKShortcut ()
    parentQObject0
    namechar0
    +

  • +
  • KAction (text, cut, slot, parent, name = 0) +
    +
    returns a KAction instance
    + + + + + +
    ArgumentTypeDefault
    textQString
    cutKShortcut
    slotSLOT (Python callable)
    parentQObject
    namechar0
    +

  • +
  • KAction (text, pix, cut = KShortcut (), parent = 0, name = 0) +
    +
    returns a KAction instance
    + + + + + +
    ArgumentTypeDefault
    textQString
    pixQIconSet
    cutKShortcutKShortcut ()
    parentQObject0
    namechar0
    +

  • +
  • KAction (text, pix, cut = KShortcut (), parent = 0, name = 0) +
    +
    returns a KAction instance
    + + + + + +
    ArgumentTypeDefault
    textQString
    pixQString
    cutKShortcutKShortcut ()
    parentQObject0
    namechar0
    +

  • +
  • KAction (text, pix, cut, slot, parent, name = 0) +
    +
    returns a KAction instance
    + + + + + + +
    ArgumentTypeDefault
    textQString
    pixQIconSet
    cutKShortcut
    slotSLOT (Python callable)
    parentQObject
    namechar0
    +

  • +
  • KAction (text, pix, cut, slot, parent, name = 0) +
    +
    returns a KAction instance
    + + + + + + +
    ArgumentTypeDefault
    textQString
    pixQString
    cutKShortcut
    slotSLOT (Python callable)
    parentQObject
    namechar0
    +

  • +
  • accel () +
    +
    returns (int)

  • +
  • activate () +
    +
    returns nothing

  • +
  • activated () +
    +
    returns nothing

  • +
  • activated (reason, state) +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only
    + + +
    ArgumentTypeDefault
    reasonKAction.ActivationReason
    stateQt.ButtonState
    +

  • +
  • addContainer (parent, id) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    parentQWidget
    idint
    +

  • +
  • addContainer (parent, representative) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    parentQWidget
    representativeQWidget
    +

  • +
  • container (index) +
    +
    returns (QWidget)
    + +
    ArgumentTypeDefault
    indexint
    +

  • +
  • containerCount () +
    +
    returns (int)

  • +
  • enabled (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • findContainer (widget) +
    +
    returns (int)
    + +
    ArgumentTypeDefault
    widgetQWidget
    +

  • +
  • findContainer (id) +
    + +
    returns (int)
    In versions KDE 3.4.0 and above only
    + +
    ArgumentTypeDefault
    idint
    +

  • +
  • getToolButtonID () +
    + +
    returns (int)
    static

  • +
  • group () +
    +
    returns (QString)

  • +
  • guiItem () +
    + +
    returns (KGuiItem)
    In versions KDE 3.3.0 and above only

  • +
  • hasIcon () +
    +
    returns (bool)

  • +
  • hasIconSet () +
    +
    returns (bool)

  • +
  • icon () +
    +
    returns (QString)

  • +
  • iconSet (group, size = 0) +
    +
    returns (QIconSet)
    + + +
    ArgumentTypeDefault
    groupKIcon.Group
    sizeint0
    +

  • +
  • iconSet () +
    +
    returns (QIconSet)

  • +
  • isEnabled () +
    +
    returns (bool)

  • +
  • isPlugged () +
    +
    returns (bool)

  • +
  • isPlugged (container) +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    containerQWidget
    +

  • +
  • isPlugged (container, id) +
    +
    returns (bool)
    + + +
    ArgumentTypeDefault
    containerQWidget
    idint
    +

  • +
  • isPlugged (container, _representative) +
    +
    returns (bool)
    + + +
    ArgumentTypeDefault
    containerQWidget
    _representativeQWidget
    +

  • +
  • isShortcutConfigurable () +
    +
    returns (bool)

  • +
  • itemId (index) +
    +
    returns (int)
    + +
    ArgumentTypeDefault
    indexint
    +

  • +
  • kaccelCount () +
    + +
    returns (uint)
    In versions KDE 3.1.0 and above only

  • +
  • menuId (i) +
    +
    returns (int)
    + +
    ArgumentTypeDefault
    iint
    +

  • +
  • parentCollection () +
    +
    returns (KActionCollection)

  • +
  • plainText () +
    +
    returns (QString)

  • +
  • plug (widget, index = -1) +
    +
    returns (int)
    + + +
    ArgumentTypeDefault
    widgetQWidget
    indexint-1
    +

  • +
  • plugAccel (accel, configurable = 1) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    accelKAccel
    configurablebool1
    +

  • +
  • plugMainWindowAccel (w) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    wQWidget
    +

  • +
  • popupMenu (index) +
    +
    returns (QPopupMenu)
    + +
    ArgumentTypeDefault
    indexint
    +

  • +
  • removeContainer (index) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    indexint
    +

  • +
  • representative (index) +
    +
    returns (QWidget)
    + +
    ArgumentTypeDefault
    indexint
    +

  • +
  • setAccel (key) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    keyint
    +

  • +
  • setDisabled (disable) +
    + +
    returns nothing
    In versions KDE 3.5.0 and above only
    + +
    ArgumentTypeDefault
    disablebool
    +

  • +
  • setEnabled (enable) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    enablebool
    +

  • +
  • setGroup (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • setIcon (icon) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    iconQString
    +

  • +
  • setIconSet (iconSet) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    iconSetQIconSet
    +

  • +
  • setShortcut (a0) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    a0KShortcut
    +

  • +
  • setShortcutConfigurable (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • setShortcutText (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • setStatusText (text) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    textQString
    +

  • +
  • setText (text) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    textQString
    +

  • +
  • setToolTip (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • setWhatsThis (text) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    textQString
    +

  • +
  • shortcut () +
    +
    returns (KShortcut)

  • +
  • shortcutDefault () +
    +
    returns (KShortcut)

  • +
  • shortcutText () +
    +
    returns (QString)

  • +
  • slotActivated () +
    +
    returns nothing

  • +
  • slotButtonClicked (a0, state) +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only
    + + +
    ArgumentTypeDefault
    a0int
    stateQt.ButtonState
    +

  • +
  • slotDestroyed () +
    +
    returns nothing

  • +
  • slotKeycodeChanged () +
    +
    returns nothing

  • +
  • slotPopupActivated () +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only

  • +
  • statusText () +
    +
    returns (QString)

  • +
  • text () +
    +
    returns (QString)

  • +
  • toolBar (index) +
    +
    returns (KToolBar)
    + +
    ArgumentTypeDefault
    indexint
    +

  • +
  • toolTip () +
    +
    returns (QString)

  • +
  • unplug (w) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    wQWidget
    +

  • +
  • unplugAccel () +
    +
    returns nothing

  • +
  • unplugAll () +
    +
    returns nothing

  • +
  • updateEnabled (i) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    iint
    +

  • +
  • updateGroup (id) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    idint
    +

  • +
  • updateIcon (i) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    iint
    +

  • +
  • updateIconSet (i) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    iint
    +

  • +
  • updateShortcut (i) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    iint
    +

  • +
  • updateShortcut (menu, id) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    menuQPopupMenu
    idint
    +

  • +
  • updateText (i) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    iint
    +

  • +
  • updateToolTip (id) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    idint
    +

  • +
  • updateWhatsThis (i) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    iint
    +

  • +
  • whatsThis () +
    +
    returns (QString)

  • +
  • whatsThisWithIcon () +
    + +
    returns (QString)
    In versions KDE 3.1.0 and above only

  • +
+ + + diff --git a/doc/classref/kdeui/KActionCollection.html b/doc/classref/kdeui/KActionCollection.html new file mode 100644 index 0000000..d9d8948 --- /dev/null +++ b/doc/classref/kdeui/KActionCollection.html @@ -0,0 +1,574 @@ + + + + + class KActionCollection + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KActionCollection


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKActionCollection
InheritsQObject
+

methods

    +
  • KActionCollection (a0, a1 = 0, a2 = 0) +
    + +
    returns a KActionCollection instance
    In versions less than KDE 3.2.0 only
    + + + +
    ArgumentTypeDefault
    a0QWidget
    a1char0
    a2KInstance0
    +

  • +
  • KActionCollection (a0, a1, a2 = 0, a3 = 0) +
    + +
    returns a KActionCollection instance
    In versions less than KDE 3.2.0 only
    + + + + +
    ArgumentTypeDefault
    a0QWidget
    a1QObject
    a2char0
    a3KInstance0
    +

  • +
  • KActionCollection (a0) +
    + +
    returns a KActionCollection instance
    In versions less than KDE 3.2.0 only
    + +
    ArgumentTypeDefault
    a0KActionCollection
    +

  • +
  • KActionCollection (a0 = 0, a1 = 0, a2 = 0) +
    + +
    returns a KActionCollection instance
    In versions less than KDE 3.2.0 only
    + + + +
    ArgumentTypeDefault
    a0QObject0
    a1char0
    a2KInstance0
    +

  • +
  • KActionCollection (parent, name = 0, instance = 0) +
    + +
    returns a KActionCollection instance
    In versions KDE 3.2.0 and above only
    + + + +
    ArgumentTypeDefault
    parentQWidget
    namechar0
    instanceKInstance0
    +

  • +
  • KActionCollection (watch, parent, name = 0, instance = 0) +
    + +
    returns a KActionCollection instance
    In versions KDE 3.2.0 and above only
    + + + + +
    ArgumentTypeDefault
    watchQWidget
    parentQObject
    namechar0
    instanceKInstance0
    +

  • +
  • KActionCollection (copy) +
    + +
    returns a KActionCollection instance
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    copyKActionCollection
    +

  • +
  • KActionCollection (parent, name = 0, instance = 0) +
    + +
    returns a KActionCollection instance
    In versions KDE 3.2.0 and above only
    + + + +
    ArgumentTypeDefault
    parentQObject
    namechar0
    instanceKInstance0
    +

  • +
  • KActionCollection (name, parent) +
    + +
    returns a KActionCollection instance
    In versions KDE 3.3.0 and above only
    + + +
    ArgumentTypeDefault
    namechar
    parentKXMLGUIClient
    +

  • +
  • accel () +
    + +
    returns (KAccel)
    In versions less than KDE 3.2.0 only

  • +
  • accel () +
    + +
    returns (KAccel)
    In versions KDE 3.2.0 and above only

  • +
  • action (a0) +
    + +
    returns (KAction)
    In versions less than KDE 3.2.0 only
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • action (a0, a1 = 0) +
    + +
    returns (KAction)
    In versions less than KDE 3.2.0 only
    + + +
    ArgumentTypeDefault
    a0char
    a1char0
    +

  • +
  • action (index) +
    + +
    returns (KAction)
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    indexint
    +

  • +
  • action (name, classname = 0) +
    + +
    returns (KAction)
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    namechar
    classnamechar0
    +

  • +
  • actionHighlighted (a0) +
    + +
    returns nothing
    In versions less than KDE 3.2.0 only
    + +
    ArgumentTypeDefault
    a0KAction
    +

  • +
  • actionHighlighted (a0, a1) +
    + +
    returns nothing
    In versions less than KDE 3.2.0 only
    + + +
    ArgumentTypeDefault
    a0KAction
    a1bool
    +

  • +
  • actionHighlighted (action) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    actionKAction
    +

  • +
  • actionHighlighted (action, highlight) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    actionKAction
    highlightbool
    +

  • +
  • actionStatusText (a0) +
    + +
    returns nothing
    In versions less than KDE 3.2.0 only
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • actionStatusText (text) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    textQString
    +

  • +
  • actions (a0) +
    + +
    returns (QValueList
    In versions KDE 3.1.5 and above, but less than KDE 3.5.3
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • actions () +
    + +
    returns (QValueList
    In versions KDE 3.1.5 and above, but less than KDE 3.5.3

  • +
  • actions (group) +
    + +
    returns (KActionPtrList)
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    groupQString
    +

  • +
  • actions () +
    + +
    returns (KActionPtrList)
    In versions KDE 3.2.0 and above only

  • +
  • actions (a0) +
    + +
    returns (QValueList
    In versions less than KDE 3.2.2 only( D MANDRAKE only)
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • actions () +
    + +
    returns (QValueList
    In versions less than KDE 3.2.2 only( D MANDRAKE only)

  • +
  • addDocCollection (a0) +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above, but less than KDE 3.5.3
    + +
    ArgumentTypeDefault
    a0KActionCollection
    +

  • +
  • addDocCollection (pDoc) +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    pDocKActionCollection
    +

  • +
  • builderKAccel () +
    + +
    returns (KAccel)
    In versions KDE 3.1.0 and above, but less than KDE 3.5.3

  • +
  • builderKAccel () +
    + +
    returns (KAccel)
    In versions KDE 3.2.0 and above only

  • +
  • clear () +
    + +
    returns nothing
    In versions less than KDE 3.2.0 only

  • +
  • clear () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • clearStatusText () +
    + +
    returns nothing
    In versions less than KDE 3.2.0 only

  • +
  • clearStatusText () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • connectHighlight (a0, a1) +
    + +
    returns nothing
    In versions less than KDE 3.2.0 only
    + + +
    ArgumentTypeDefault
    a0QWidget
    a1KAction
    +

  • +
  • connectHighlight (container, action) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    containerQWidget
    actionKAction
    +

  • +
  • count () +
    + +
    returns (uint)
    In versions less than KDE 3.2.0 only

  • +
  • count () +
    + +
    returns (uint)
    In versions KDE 3.2.0 and above only

  • +
  • disconnectHighlight (a0, a1) +
    + +
    returns nothing
    In versions less than KDE 3.2.0 only
    + + +
    ArgumentTypeDefault
    a0QWidget
    a1KAction
    +

  • +
  • disconnectHighlight (container, action) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    containerQWidget
    actionKAction
    +

  • +
  • groups () +
    + +
    returns (QStringList)
    In versions less than KDE 3.2.0 only

  • +
  • groups () +
    + +
    returns (QStringList)
    In versions KDE 3.2.0 and above only

  • +
  • highlightingEnabled () +
    + +
    returns (bool)
    In versions less than KDE 3.2.0 only

  • +
  • highlightingEnabled () +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only

  • +
  • insert (a0) +
    + +
    returns nothing
    In versions less than KDE 3.2.0 only
    + +
    ArgumentTypeDefault
    a0KAction
    +

  • +
  • insert (action) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    actionKAction
    +

  • +
  • inserted (a0) +
    + +
    returns nothing
    In versions less than KDE 3.2.0 only
    + +
    ArgumentTypeDefault
    a0KAction
    +

  • +
  • inserted (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0KAction
    +

  • +
  • instance () +
    + +
    returns (KInstance)
    In versions less than KDE 3.2.0 only

  • +
  • instance () +
    + +
    returns (KInstance)
    In versions KDE 3.2.0 and above only

  • +
  • isAutoConnectShortcuts () +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above, but less than KDE 3.5.3

  • +
  • isAutoConnectShortcuts () +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only

  • +
  • isEmpty () +
    + +
    returns (bool)
    In versions less than KDE 3.2.0 only

  • +
  • isEmpty () +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only

  • +
  • kaccel () +
    + +
    returns (KAccel)
    In versions KDE 3.1.0 and above, but less than KDE 3.5.3

  • +
  • kaccel () +
    + +
    returns (KAccel)
    In versions KDE 3.2.0 and above only

  • +
  • parentGUIClient () +
    + +
    returns (KXMLGUIClient)
    In versions KDE 3.3.0 and above only

  • +
  • readShortcutSettings (a0 = QString .null, a1 = 0) +
    + +
    returns (bool)
    In versions less than KDE 3.2.0 only
    + + +
    ArgumentTypeDefault
    a0QStringQString .null
    a1KConfigBase0
    +

  • +
  • readShortcutSettings (sConfigGroup = QString .null, pConfig = 0) +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    sConfigGroupQStringQString .null
    pConfigKConfigBase0
    +

  • +
  • remove (a0) +
    + +
    returns nothing
    In versions less than KDE 3.2.0 only
    + +
    ArgumentTypeDefault
    a0KAction
    +

  • +
  • remove (action) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    actionKAction
    +

  • +
  • removed (a0) +
    + +
    returns nothing
    In versions less than KDE 3.2.0 only
    + +
    ArgumentTypeDefault
    a0KAction
    +

  • +
  • removed (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0KAction
    +

  • +
  • setAutoConnectShortcuts (a0) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above, but less than KDE 3.5.3
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • setAutoConnectShortcuts (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • setHighlightingEnabled (a0) +
    + +
    returns nothing
    In versions less than KDE 3.2.0 only
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • setHighlightingEnabled (enable) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    enablebool
    +

  • +
  • setInstance (a0) +
    + +
    returns nothing
    In versions less than KDE 3.2.0 only
    + +
    ArgumentTypeDefault
    a0KInstance
    +

  • +
  • setInstance (instance) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    instanceKInstance
    +

  • +
  • setWidget (a0) +
    + +
    returns nothing
    In versions less than KDE 3.2.0 only
    + +
    ArgumentTypeDefault
    a0QWidget
    +

  • +
  • setWidget (widget) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    widgetQWidget
    +

  • +
  • setXMLFile (a0) +
    + +
    returns nothing
    In versions less than KDE 3.2.0 only
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • setXMLFile (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • take (a0) +
    + +
    returns (KAction)
    In versions less than KDE 3.2.0 only
    + +
    ArgumentTypeDefault
    a0KAction
    +

  • +
  • take (action) +
    + +
    returns (KAction)
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    actionKAction
    +

  • +
  • writeShortcutSettings (a0 = QString .null, a1 = 0) +
    + +
    returns (bool)
    In versions less than KDE 3.2.0 only
    + + +
    ArgumentTypeDefault
    a0QStringQString .null
    a1KConfigBase0
    +

  • +
  • writeShortcutSettings (sConfigGroup = QString .null, pConfig = 0) +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    sConfigGroupQStringQString .null
    pConfigKConfigBase0
    +

  • +
  • xmlFile () +
    + +
    returns (QString)
    In versions less than KDE 3.2.0 only

  • +
  • xmlFile () +
    + +
    returns (QString)
    In versions KDE 3.2.0 and above only

  • +
+

operators

    +
  • operator + (a0) +
    + +
    returns (KActionCollection)
    In versions KDE 3.1.4 and above, but less than KDE 3.5.3
    + +
    ArgumentTypeDefault
    a0KActionCollection
    +

  • +
  • operator + (a0) +
    + +
    returns (KActionCollection)
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0KActionCollection
    +

  • +
  • operator += (a0) +
    + +
    returns (KActionCollection)
    In versions KDE 3.1.4 and above, but less than KDE 3.5.3
    + +
    ArgumentTypeDefault
    a0KActionCollection
    +

  • +
  • operator += (a0) +
    + +
    returns (KActionCollection)
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0KActionCollection
    +

  • +
+ + + diff --git a/doc/classref/kdeui/KActionMenu.html b/doc/classref/kdeui/KActionMenu.html new file mode 100644 index 0000000..de156fa --- /dev/null +++ b/doc/classref/kdeui/KActionMenu.html @@ -0,0 +1,227 @@ + + + + + class KActionMenu + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KActionMenu


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKActionMenu
InheritsKAction
+

methods

    +
  • KActionMenu (a0, a1 = 0, a2 = 0) +
    + +
    returns a KActionMenu instance
    In versions less than KDE 3.2.0 only
    + + + +
    ArgumentTypeDefault
    a0QString
    a1QObject0
    a2char0
    +

  • +
  • KActionMenu (a0, a1, a2 = 0, a3 = 0) +
    + +
    returns a KActionMenu instance
    In versions less than KDE 3.2.0 only
    + + + + +
    ArgumentTypeDefault
    a0QString
    a1QIconSet
    a2QObject0
    a3char0
    +

  • +
  • KActionMenu (a0, a1, a2 = 0, a3 = 0) +
    + +
    returns a KActionMenu instance
    In versions less than KDE 3.2.0 only
    + + + + +
    ArgumentTypeDefault
    a0QString
    a1QString
    a2QObject0
    a3char0
    +

  • +
  • KActionMenu (a0 = 0, a1 = 0) +
    + +
    returns a KActionMenu instance
    In versions less than KDE 3.2.0 only
    + + +
    ArgumentTypeDefault
    a0QObject0
    a1char0
    +

  • +
  • KActionMenu (text, parent = 0, name = 0) +
    + +
    returns a KActionMenu instance
    In versions KDE 3.2.0 and above only
    + + + +
    ArgumentTypeDefault
    textQString
    parentQObject0
    namechar0
    +

  • +
  • KActionMenu (text, icon, parent = 0, name = 0) +
    + +
    returns a KActionMenu instance
    In versions KDE 3.2.0 and above only
    + + + + +
    ArgumentTypeDefault
    textQString
    iconQIconSet
    parentQObject0
    namechar0
    +

  • +
  • KActionMenu (text, icon, parent = 0, name = 0) +
    + +
    returns a KActionMenu instance
    In versions KDE 3.2.0 and above only
    + + + + +
    ArgumentTypeDefault
    textQString
    iconQString
    parentQObject0
    namechar0
    +

  • +
  • KActionMenu (parent = 0, name = 0) +
    + +
    returns a KActionMenu instance
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    parentQObject0
    namechar0
    +

  • +
  • delayed () +
    + +
    returns (bool)
    In versions less than KDE 3.2.0 only

  • +
  • delayed () +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only

  • +
  • insert (a0, a1 = -1) +
    + +
    returns nothing
    In versions less than KDE 3.2.0 only
    + + +
    ArgumentTypeDefault
    a0KAction
    a1int-1
    +

  • +
  • insert (a0, index = -1) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    a0KAction
    indexint-1
    +

  • +
  • plug (a0, a1 = -1) +
    + +
    returns (int)
    In versions less than KDE 3.2.0 only
    + + +
    ArgumentTypeDefault
    a0QWidget
    a1int-1
    +

  • +
  • plug (widget, index = -1) +
    + +
    returns (int)
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    widgetQWidget
    indexint-1
    +

  • +
  • popup (a0) +
    + +
    returns nothing
    In versions less than KDE 3.2.0 only
    + +
    ArgumentTypeDefault
    a0QPoint
    +

  • +
  • popup (global) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    globalQPoint
    +

  • +
  • popupMenu () +
    + +
    returns (KPopupMenu)
    In versions less than KDE 3.2.0 only

  • +
  • popupMenu () +
    + +
    returns (KPopupMenu)
    In versions KDE 3.2.0 and above only

  • +
  • remove (a0) +
    + +
    returns nothing
    In versions less than KDE 3.2.0 only
    + +
    ArgumentTypeDefault
    a0KAction
    +

  • +
  • remove (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0KAction
    +

  • +
  • setDelayed (a0) +
    + +
    returns nothing
    In versions less than KDE 3.2.0 only
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • setDelayed (_delayed) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    _delayedbool
    +

  • +
  • setStickyMenu (a0) +
    + +
    returns nothing
    In versions less than KDE 3.2.0 only
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • setStickyMenu (sticky) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    stickybool
    +

  • +
  • stickyMenu () +
    + +
    returns (bool)
    In versions less than KDE 3.2.0 only

  • +
  • stickyMenu () +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only

  • +
+ + + diff --git a/doc/classref/kdeui/KActionPtrShortcutList.html b/doc/classref/kdeui/KActionPtrShortcutList.html new file mode 100644 index 0000000..a244dff --- /dev/null +++ b/doc/classref/kdeui/KActionPtrShortcutList.html @@ -0,0 +1,119 @@ + + + + + class KActionPtrShortcutList + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KActionPtrShortcutList


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKActionPtrShortcutList
InheritsKShortcutList
+

methods

    +
  • KActionPtrShortcutList (a0) +
    + +
    returns a KActionPtrShortcutList instance
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0KActionPtrList
    +

  • +
  • KActionPtrShortcutList (a0) +
    + +
    returns a KActionPtrShortcutList instance
    In versions less than KDE 3.2.0 only
    + +
    ArgumentTypeDefault
    a0QValueList
    +

  • +
  • count () +
    +
    returns (uint)

  • +
  • getOther (a0, index) +
    +
    returns (QVariant)
    + + +
    ArgumentTypeDefault
    a0Other
    indexuint
    +

  • +
  • isConfigurable (a0) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    a0uint
    +

  • +
  • label (a0) +
    +
    returns (QString)
    + +
    ArgumentTypeDefault
    a0uint
    +

  • +
  • name (i) +
    +
    returns (QString)
    + +
    ArgumentTypeDefault
    iuint
    +

  • +
  • save () +
    +
    returns (bool)

  • +
  • setOther (a0, index, a1) +
    +
    returns (bool)
    + + + +
    ArgumentTypeDefault
    a0Other
    indexuint
    a1QVariant
    +

  • +
  • setShortcut (a0, a1) +
    +
    returns (bool)
    + + +
    ArgumentTypeDefault
    a0uint
    a1KShortcut
    +

  • +
  • shortcut (a0) +
    +
    returns (KShortcut)
    + +
    ArgumentTypeDefault
    a0uint
    +

  • +
  • shortcutDefault (a0) +
    +
    returns (KShortcut)
    + +
    ArgumentTypeDefault
    a0uint
    +

  • +
  • whatsThis (a0) +
    +
    returns (QString)
    + +
    ArgumentTypeDefault
    a0uint
    +

  • +
+ + + diff --git a/doc/classref/kdeui/KActionSelector.html b/doc/classref/kdeui/KActionSelector.html new file mode 100644 index 0000000..1bffd74 --- /dev/null +++ b/doc/classref/kdeui/KActionSelector.html @@ -0,0 +1,233 @@ + + + + + class KActionSelector + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KActionSelector


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKActionSelector
InheritsQWidget
+

enums

    +
  • ButtonIconSize = {SmallIcon, Small, Medium, Large, XLarge +}
  • InsertionPolicy = {BelowCurrent, Sorted, AtTop, AtBottom +}
  • MoveButton = {ButtonAdd, ButtonRemove, ButtonUp, ButtonDown +}
+

methods

    +
  • KActionSelector (parent = 0, name = 0) +
    + +
    returns a KActionSelector instance
    In versions KDE 3.3.0 and above only
    + + +
    ArgumentTypeDefault
    parentQWidget0
    namechar0
    +

  • +
  • added (item) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    itemQListBoxItem
    +

  • +
  • availableInsertionPolicy () +
    + +
    returns (KActionSelector.InsertionPolicy)
    In versions KDE 3.3.0 and above only

  • +
  • availableLabel () +
    + +
    returns (QString)
    In versions KDE 3.3.0 and above only

  • +
  • availableListBox () +
    + +
    returns (QListBox)
    In versions KDE 3.3.0 and above only

  • +
  • buttonIconSize () +
    + +
    returns (KActionSelector.ButtonIconSize)
    In versions KDE 3.3.0 and above only

  • +
  • eventFilter (a0, a1) +
    + +
    returns (bool)
    In versions KDE 3.3.0 and above only
    + + +
    ArgumentTypeDefault
    a0QObject
    a1QEvent
    +

  • +
  • keyPressEvent (a0) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    a0QKeyEvent
    +

  • +
  • keyboardEnabled () +
    + +
    returns (bool)
    In versions KDE 3.3.0 and above only

  • +
  • moveOnDoubleClick () +
    + +
    returns (bool)
    In versions KDE 3.3.0 and above only

  • +
  • movedDown (item) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    itemQListBoxItem
    +

  • +
  • movedUp (item) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    itemQListBoxItem
    +

  • +
  • polish () +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only

  • +
  • removed (item) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    itemQListBoxItem
    +

  • +
  • selectedInsertionPolicy () +
    + +
    returns (KActionSelector.InsertionPolicy)
    In versions KDE 3.3.0 and above only

  • +
  • selectedLabel () +
    + +
    returns (QString)
    In versions KDE 3.3.0 and above only

  • +
  • selectedListBox () +
    + +
    returns (QListBox)
    In versions KDE 3.3.0 and above only

  • +
  • setAvailableInsertionPolicy (policy) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    policyKActionSelector.InsertionPolicy
    +

  • +
  • setAvailableLabel (text) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    textQString
    +

  • +
  • setButtonIcon (icon, button) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + + +
    ArgumentTypeDefault
    iconQString
    buttonKActionSelector.MoveButton
    +

  • +
  • setButtonIconSet (iconset, button) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + + +
    ArgumentTypeDefault
    iconsetQIconSet
    buttonKActionSelector.MoveButton
    +

  • +
  • setButtonIconSize (size) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    sizeKActionSelector.ButtonIconSize
    +

  • +
  • setButtonTooltip (tip, button) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + + +
    ArgumentTypeDefault
    tipQString
    buttonKActionSelector.MoveButton
    +

  • +
  • setButtonWhatsThis (text, button) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + + +
    ArgumentTypeDefault
    textQString
    buttonKActionSelector.MoveButton
    +

  • +
  • setButtonsEnabled () +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only

  • +
  • setKeyboardEnabled (enable) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    enablebool
    +

  • +
  • setMoveOnDoubleClick (enable) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    enablebool
    +

  • +
  • setSelectedInsertionPolicy (policy) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    policyKActionSelector.InsertionPolicy
    +

  • +
  • setSelectedLabel (text) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    textQString
    +

  • +
  • setShowUpDownButtons (show) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    showbool
    +

  • +
  • showUpDownButtons () +
    + +
    returns (bool)
    In versions KDE 3.3.0 and above only

  • +
+ + + diff --git a/doc/classref/kdeui/KActionSeparator.html b/doc/classref/kdeui/KActionSeparator.html new file mode 100644 index 0000000..773dc12 --- /dev/null +++ b/doc/classref/kdeui/KActionSeparator.html @@ -0,0 +1,73 @@ + + + + + class KActionSeparator + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KActionSeparator


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKActionSeparator
InheritsKAction
+

methods

    +
  • KActionSeparator (a0 = 0, a1 = 0) +
    + +
    returns a KActionSeparator instance
    In versions less than KDE 3.2.0 only
    + + +
    ArgumentTypeDefault
    a0QObject0
    a1char0
    +

  • +
  • KActionSeparator (parent = 0, name = 0) +
    + +
    returns a KActionSeparator instance
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    parentQObject0
    namechar0
    +

  • +
  • plug (a0, a1 = -1) +
    + +
    returns (int)
    In versions less than KDE 3.2.0 only
    + + +
    ArgumentTypeDefault
    a0QWidget
    a1int-1
    +

  • +
  • plug (widget, index = -1) +
    + +
    returns (int)
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    widgetQWidget
    indexint-1
    +

  • +
+ + + diff --git a/doc/classref/kdeui/KActionShortcutList.html b/doc/classref/kdeui/KActionShortcutList.html new file mode 100644 index 0000000..54ed8f5 --- /dev/null +++ b/doc/classref/kdeui/KActionShortcutList.html @@ -0,0 +1,121 @@ + + + + + class KActionShortcutList + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KActionShortcutList


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKActionShortcutList
InheritsKShortcutList
+

methods

    +
  • KActionShortcutList (a0) +
    +
    returns a KActionShortcutList instance
    + +
    ArgumentTypeDefault
    a0KActionCollection
    +

  • +
  • action (a0) +
    + +
    returns (KAction)
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    a0uint
    +

  • +
  • count () +
    +
    returns (uint)

  • +
  • getOther (a0, index) +
    +
    returns (QVariant)
    + + +
    ArgumentTypeDefault
    a0Other
    indexuint
    +

  • +
  • instance () +
    +
    returns (KInstance)

  • +
  • isConfigurable (a0) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    a0uint
    +

  • +
  • label (a0) +
    +
    returns (QString)
    + +
    ArgumentTypeDefault
    a0uint
    +

  • +
  • name (i) +
    +
    returns (QString)
    + +
    ArgumentTypeDefault
    iuint
    +

  • +
  • save () +
    +
    returns (bool)

  • +
  • setOther (a0, index, a1) +
    +
    returns (bool)
    + + + +
    ArgumentTypeDefault
    a0Other
    indexuint
    a1QVariant
    +

  • +
  • setShortcut (a0, a1) +
    +
    returns (bool)
    + + +
    ArgumentTypeDefault
    a0uint
    a1KShortcut
    +

  • +
  • shortcut (a0) +
    +
    returns (KShortcut)
    + +
    ArgumentTypeDefault
    a0uint
    +

  • +
  • shortcutDefault (a0) +
    +
    returns (KShortcut)
    + +
    ArgumentTypeDefault
    a0uint
    +

  • +
  • whatsThis (a0) +
    +
    returns (QString)
    + +
    ArgumentTypeDefault
    a0uint
    +

  • +
+ + + diff --git a/doc/classref/kdeui/KActiveLabel.html b/doc/classref/kdeui/KActiveLabel.html new file mode 100644 index 0000000..3d87f67 --- /dev/null +++ b/doc/classref/kdeui/KActiveLabel.html @@ -0,0 +1,89 @@ + + + + + class KActiveLabel + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KActiveLabel


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKActiveLabel
InheritsQTextBrowser
+

methods

    +
  • KActiveLabel (parent, name = 0) +
    +
    returns a KActiveLabel instance
    + + +
    ArgumentTypeDefault
    parentQWidget
    namechar0
    +

  • +
  • KActiveLabel (text, parent, name = 0) +
    +
    returns a KActiveLabel instance
    + + + +
    ArgumentTypeDefault
    textQString
    parentQWidget
    namechar0
    +

  • +
  • focusInEvent (fe) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    feQFocusEvent
    +

  • +
  • focusOutEvent (fe) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    feQFocusEvent
    +

  • +
  • keyPressEvent (e) +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only
    + +
    ArgumentTypeDefault
    eQKeyEvent
    +

  • +
  • minimumSizeHint () +
    + +
    returns (QSize)
    In versions KDE 3.1.0 and above only

  • +
  • openLink (link) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    linkQString
    +

  • +
  • sizeHint () +
    + +
    returns (QSize)
    In versions KDE 3.1.0 and above only

  • +
+ + + diff --git a/doc/classref/kdeui/KAnimWidget.html b/doc/classref/kdeui/KAnimWidget.html new file mode 100644 index 0000000..de79628 --- /dev/null +++ b/doc/classref/kdeui/KAnimWidget.html @@ -0,0 +1,141 @@ + + + + + class KAnimWidget + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KAnimWidget


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKAnimWidget
InheritsQFrame
+

methods

    +
  • KAnimWidget (icons, size = 0, parent = 0, name = 0) +
    +
    returns a KAnimWidget instance
    + + + + +
    ArgumentTypeDefault
    iconsQString
    sizeint0
    parentQWidget0
    namechar0
    +

  • +
  • KAnimWidget (a0 = 0, a1 = 0) +
    Not Implemented
    +

  • +
  • clicked () +
    +
    returns nothing

  • +
  • drawContents (p) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    pQPainter
    +

  • +
  • enterEvent (e) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    eQEvent
    +

  • +
  • hideEvent (e) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    eQHideEvent
    +

  • +
  • icons () +
    + +
    returns (QString)
    In versions KDE 3.4.0 and above only

  • +
  • leaveEvent (e) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    eQEvent
    +

  • +
  • mousePressEvent (e) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    eQMouseEvent
    +

  • +
  • mouseReleaseEvent (e) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    eQMouseEvent
    +

  • +
  • setIcons (icons) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    iconsQString
    +

  • +
  • setSize (size) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    sizeint
    +

  • +
  • showEvent (e) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    eQShowEvent
    +

  • +
  • size () +
    + +
    returns (int)
    In versions KDE 3.4.0 and above only

  • +
  • slotTimerUpdate () +
    +
    returns nothing

  • +
  • start () +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only

  • +
  • start () +
    + +
    returns nothing
    In versions less than KDE 3.4.0 only

  • +
  • stop () +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only

  • +
  • stop () +
    + +
    returns nothing
    In versions less than KDE 3.4.0 only

  • +
  • updateIcons () +
    +
    returns nothing

  • +
+ + + diff --git a/doc/classref/kdeui/KArrowButton.html b/doc/classref/kdeui/KArrowButton.html new file mode 100644 index 0000000..6aa9b8e --- /dev/null +++ b/doc/classref/kdeui/KArrowButton.html @@ -0,0 +1,79 @@ + + + + + class KArrowButton + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KArrowButton


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKArrowButton
InheritsQPushButton
+

methods

    +
  • KArrowButton (parent = 0, arrow = Qt .UpArrow, name = 0) +
    +
    returns a KArrowButton instance
    + + + +
    ArgumentTypeDefault
    parentQWidget0
    arrowQt.ArrowTypeQt .UpArrow
    namechar0
    +

  • +
  • arrowTp () +
    + +
    returns (int)
    In versions KDE 3.4.0 and above only

  • +
  • arrowType () +
    + +
    returns (Qt.ArrowType)
    In versions KDE 3.4.0 and above only

  • +
  • drawButton (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QPainter
    +

  • +
  • setArrowTp (tp) +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only
    + +
    ArgumentTypeDefault
    tpint
    +

  • +
  • setArrowType (a) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    aQt.ArrowType
    +

  • +
  • sizeHint () +
    +
    returns (QSize)

  • +
+ + + diff --git a/doc/classref/kdeui/KAuthIcon.html b/doc/classref/kdeui/KAuthIcon.html new file mode 100644 index 0000000..f257dc4 --- /dev/null +++ b/doc/classref/kdeui/KAuthIcon.html @@ -0,0 +1,65 @@ + + + + + class KAuthIcon + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KAuthIcon


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKAuthIcon (abstract)
InheritsQWidget
+

methods

    +
  • KAuthIcon (parent = 0, name = 0) +
    +
    returns a KAuthIcon instance
    + + +
    ArgumentTypeDefault
    parentQWidget0
    namechar0
    +

  • +
  • authChanged (authorized) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    authorizedbool
    +

  • +
  • sizeHint () +
    +
    returns (QSize)

  • +
  • status () = 0 +
    + +
    returns (bool)
    pure virtual

  • +
  • updateStatus () = 0 +
    + +
    returns nothing
    pure virtual

  • +
+ + + diff --git a/doc/classref/kdeui/KBugReport.html b/doc/classref/kdeui/KBugReport.html new file mode 100644 index 0000000..f611f30 --- /dev/null +++ b/doc/classref/kdeui/KBugReport.html @@ -0,0 +1,82 @@ + + + + + class KBugReport + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KBugReport


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKBugReport
InheritsKDialogBase
+

methods

    +
  • KBugReport (parent = 0, modal = 1, aboutData = 0) +
    +
    returns a KBugReport instance
    + + + +
    ArgumentTypeDefault
    parentQWidget0
    modalbool1
    aboutDataKAboutData0
    +

  • +
  • appChanged (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • sendBugReport () +
    +
    returns (bool)

  • +
  • slotCancel () +
    +
    returns nothing

  • +
  • slotConfigureEmail () +
    +
    returns nothing

  • +
  • slotOk () +
    +
    returns nothing

  • +
  • slotSetFrom () +
    +
    returns nothing

  • +
  • slotUrlClicked (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • text () +
    +
    returns (QString)

  • +
  • updateURL () +
    +
    returns nothing

  • +
+ + + diff --git a/doc/classref/kdeui/KButtonBox.html b/doc/classref/kdeui/KButtonBox.html new file mode 100644 index 0000000..11592b3 --- /dev/null +++ b/doc/classref/kdeui/KButtonBox.html @@ -0,0 +1,115 @@ + + + + + class KButtonBox + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KButtonBox


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKButtonBox
InheritsQWidget
+

methods

    +
  • KButtonBox (parent, _orientation = Horizontal, border = 0, _autoborder = 6) +
    +
    returns a KButtonBox instance
    + + + + +
    ArgumentTypeDefault
    parentQWidget
    _orientationOrientationHorizontal
    borderint0
    _autoborderint6
    +

  • +
  • addButton (text, noexpand = 0) +
    +
    returns (QPushButton)
    + + +
    ArgumentTypeDefault
    textQString
    noexpandbool0
    +

  • +
  • addButton (text, slot, noexpand = 0) +
    +
    returns (QPushButton)
    + + + +
    ArgumentTypeDefault
    textQString
    slotSLOT (Python callable)
    noexpandbool0
    +

  • +
  • addButton (guiitem, noexpand = 0) +
    + +
    returns (QPushButton)
    In versions KDE 3.3.0 and above only
    + + +
    ArgumentTypeDefault
    guiitemKGuiItem
    noexpandbool0
    +

  • +
  • addButton (guiitem, slot, noexpand = 0) +
    + +
    returns (QPushButton)
    In versions KDE 3.3.0 and above only
    + + + +
    ArgumentTypeDefault
    guiitemKGuiItem
    slotSLOT (Python callable)
    noexpandbool0
    +

  • +
  • addStretch (scale = 1) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    scaleint1
    +

  • +
  • bestButtonSize () +
    +
    returns (QSize)

  • +
  • buttonSizeHint (a0) +
    +
    returns (QSize)
    + +
    ArgumentTypeDefault
    a0QPushButton
    +

  • +
  • layout () +
    +
    returns nothing

  • +
  • placeButtons () +
    +
    returns nothing

  • +
  • resizeEvent (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QResizeEvent
    +

  • +
  • sizeHint () +
    +
    returns (QSize)

  • +
  • sizePolicy () +
    +
    returns (QSizePolicy)

  • +
+ + + diff --git a/doc/classref/kdeui/KCModule.html b/doc/classref/kdeui/KCModule.html new file mode 100644 index 0000000..333e790 --- /dev/null +++ b/doc/classref/kdeui/KCModule.html @@ -0,0 +1,162 @@ + + + + + class KCModule + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KCModule


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKCModule
InheritsQWidget
+

enums

    +
  • Button = {Help, Default, Apply, Reset, Cancel, Ok, SysDefault +}
+

methods

    +
  • KCModule (parent = 0, name = 0, args = QStringList ()) +
    +
    returns a KCModule instance
    + + + +
    ArgumentTypeDefault
    parentQWidget0
    namechar0
    argsQStringListQStringList ()
    +

  • +
  • KCModule (instance, parent = 0, args = QStringList ()) +
    +
    returns a KCModule instance
    + + + +
    ArgumentTypeDefault
    instanceKInstance
    parentQWidget0
    argsQStringListQStringList ()
    +

  • +
  • aboutData () +
    +
    returns (KAboutData)

  • +
  • addConfig (config, widget) +
    + +
    returns (KConfigDialogManager)
    In versions KDE 3.3.0 and above only
    + + +
    ArgumentTypeDefault
    configKConfigSkeleton
    widgetQWidget
    +

  • +
  • buttons () +
    +
    returns (int)

  • +
  • changed (state) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    statebool
    +

  • +
  • changed () +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only

  • +
  • configs () +
    + +
    returns (QPtrList)
    In versions KDE 3.4.0 and above only

  • +
  • defaults () +
    +
    returns nothing

  • +
  • instance () +
    +
    returns (KInstance)

  • +
  • load () +
    +
    returns nothing

  • +
  • managedWidgetChangeState () +
    + +
    returns (bool)
    In versions KDE 3.5.0 and above only

  • +
  • quickHelp () +
    +
    returns (QString)

  • +
  • quickHelpChanged () +
    +
    returns nothing

  • +
  • rootOnlyMsg () +
    +
    returns (QString)

  • +
  • save () +
    +
    returns nothing

  • +
  • setAboutData (about) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    aboutKAboutData
    +

  • +
  • setButtons (btn) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    btnint
    +

  • +
  • setQuickHelp (help) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    helpQString
    +

  • +
  • setRootOnlyMsg (msg) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    msgQString
    +

  • +
  • setUseRootOnlyMsg (on) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    onbool
    +

  • +
  • sysdefaults () +
    +
    returns nothing

  • +
  • unmanagedWidgetChangeState (a0) +
    + +
    returns nothing
    In versions KDE 3.5.0 and above only
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • useRootOnlyMsg () +
    +
    returns (bool)

  • +
  • widgetChanged () +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only

  • +
+ + + diff --git a/doc/classref/kdeui/KCharSelect.html b/doc/classref/kdeui/KCharSelect.html new file mode 100644 index 0000000..c085281 --- /dev/null +++ b/doc/classref/kdeui/KCharSelect.html @@ -0,0 +1,201 @@ + + + + + class KCharSelect + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KCharSelect


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKCharSelect
InheritsQVBox
+

methods

    +
  • KCharSelect (parent, name, font = QString .null, chr = ' ', tableNum = 0) +
    +
    returns a KCharSelect instance
    + + + + + +
    ArgumentTypeDefault
    parentQWidget
    namechar
    fontQStringQString .null
    chrQChar' '
    tableNumint0
    +

  • +
  • activated (c) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    cQChar
    +

  • +
  • activated () +
    +
    returns nothing

  • +
  • charActivated (c) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    cQChar
    +

  • +
  • charActivated () +
    +
    returns nothing

  • +
  • charFocusItemChanged () +
    +
    returns nothing

  • +
  • charFocusItemChanged (c) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    cQChar
    +

  • +
  • charHighlighted (c) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    cQChar
    +

  • +
  • charHighlighted () +
    +
    returns nothing

  • +
  • charTableDown () +
    +
    returns nothing

  • +
  • charTableUp () +
    +
    returns nothing

  • +
  • chr () +
    +
    returns (QChar)

  • +
  • cleanupFontDatabase () +
    + +
    returns nothing
    static

  • +
  • doubleClicked () +
    +
    returns nothing

  • +
  • enableFontCombo (e) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    ebool
    +

  • +
  • enableTableSpinBox (e) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    ebool
    +

  • +
  • fillFontCombo () +
    +
    returns nothing

  • +
  • focusItemChanged () +
    +
    returns nothing

  • +
  • focusItemChanged (c) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    cQChar
    +

  • +
  • font () +
    +
    returns (QString)

  • +
  • fontChanged (_font) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    _fontQString
    +

  • +
  • fontSelected (_font) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    _fontQString
    +

  • +
  • highlighted (c) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    cQChar
    +

  • +
  • highlighted () +
    +
    returns nothing

  • +
  • isFontComboEnabled () +
    +
    returns (bool)

  • +
  • isTableSpinBoxEnabled () +
    +
    returns (bool)

  • +
  • setChar (chr) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    chrQChar
    +

  • +
  • setFont (font) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    fontQString
    +

  • +
  • setTableNum (tableNum) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    tableNumint
    +

  • +
  • sizeHint () +
    +
    returns (QSize)

  • +
  • slotDoubleClicked () +
    +
    returns nothing

  • +
  • slotUnicodeEntered () +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only

  • +
  • slotUpdateUnicode (c) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    cQChar
    +

  • +
  • tableChanged (_value) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    _valueint
    +

  • +
  • tableNum () +
    +
    returns (int)

  • +
+ + + diff --git a/doc/classref/kdeui/KCharSelectTable.html b/doc/classref/kdeui/KCharSelectTable.html new file mode 100644 index 0000000..a29ee1a --- /dev/null +++ b/doc/classref/kdeui/KCharSelectTable.html @@ -0,0 +1,167 @@ + + + + + class KCharSelectTable + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KCharSelectTable


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKCharSelectTable
InheritsQGridView
+

methods

    +
  • KCharSelectTable (parent, name, _font, _chr, _tableNum) +
    +
    returns a KCharSelectTable instance
    + + + + + +
    ArgumentTypeDefault
    parentQWidget
    namechar
    _fontQString
    _chrQChar
    _tableNumint
    +

  • +
  • activated (c) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    cQChar
    +

  • +
  • activated () +
    +
    returns nothing

  • +
  • chr () +
    +
    returns (QChar)

  • +
  • doubleClicked () +
    +
    returns nothing

  • +
  • focusItemChanged () +
    +
    returns nothing

  • +
  • focusItemChanged (c) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    cQChar
    +

  • +
  • gotoDown () +
    +
    returns nothing

  • +
  • gotoLeft () +
    +
    returns nothing

  • +
  • gotoRight () +
    +
    returns nothing

  • +
  • gotoUp () +
    +
    returns nothing

  • +
  • highlighted (c) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    cQChar
    +

  • +
  • highlighted () +
    +
    returns nothing

  • +
  • keyPressEvent (e) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    eQKeyEvent
    +

  • +
  • mouseDoubleClickEvent (e) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    eQMouseEvent
    +

  • +
  • mouseMoveEvent (e) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    eQMouseEvent
    +

  • +
  • mousePressEvent (e) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    eQMouseEvent
    +

  • +
  • mouseReleaseEvent (e) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    eQMouseEvent
    +

  • +
  • paintCell (p, row, col) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    pQPainter
    rowint
    colint
    +

  • +
  • resizeEvent (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QResizeEvent
    +

  • +
  • setChar (_chr) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    _chrQChar
    +

  • +
  • setFont (_font) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    _fontQString
    +

  • +
  • setTableNum (_tableNum) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    _tableNumint
    +

  • +
  • sizeHint () +
    +
    returns (QSize)

  • +
  • tableDown () +
    +
    returns nothing

  • +
  • tableUp () +
    +
    returns nothing

  • +
+ + + diff --git a/doc/classref/kdeui/KColor.html b/doc/classref/kdeui/KColor.html new file mode 100644 index 0000000..f8bda1c --- /dev/null +++ b/doc/classref/kdeui/KColor.html @@ -0,0 +1,87 @@ + + + + + class KColor + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KColor


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKColor
InheritsQColor
+

methods

    +
  • KColor () +
    +
    returns a KColor instance

  • +
  • KColor (col) +
    +
    returns a KColor instance
    + +
    ArgumentTypeDefault
    colKColor
    +

  • +
  • KColor (col) +
    +
    returns a KColor instance
    + +
    ArgumentTypeDefault
    colQColor
    +

  • +
  • hsv () +
    +
    returns _h (int) _s (int) _v (int)

  • +
  • rgb () +
    +
    returns _r (int) _g (int) _b (int)

  • +
  • setHsv (_h, _s, _v) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    _hint
    _sint
    _vint
    +

  • +
  • setRgb (_r, _g, _b) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    _rint
    _gint
    _bint
    +

  • +
+

operators

    +
  • operator == (a0) +
    + +
    returns (bool)
    In versions KDE 3.1.4 and above only
    + +
    ArgumentTypeDefault
    a0KColor
    +

  • +
+ + + diff --git a/doc/classref/kdeui/KColorCells.html b/doc/classref/kdeui/KColorCells.html new file mode 100644 index 0000000..7d0ee7f --- /dev/null +++ b/doc/classref/kdeui/KColorCells.html @@ -0,0 +1,149 @@ + + + + + class KColorCells + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KColorCells


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKColorCells
InheritsQGridView
+

methods

    +
  • KColorCells (parent, rows, cols) +
    +
    returns a KColorCells instance
    + + + +
    ArgumentTypeDefault
    parentQWidget
    rowsint
    colsint
    +

  • +
  • color (indx) +
    +
    returns (QColor)
    + +
    ArgumentTypeDefault
    indxint
    +

  • +
  • colorDoubleClicked (col) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    colint
    +

  • +
  • colorSelected (col) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    colint
    +

  • +
  • dragEnterEvent (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QDragEnterEvent
    +

  • +
  • dropEvent (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QDropEvent
    +

  • +
  • getSelected () +
    +
    returns (int)

  • +
  • mouseDoubleClickEvent (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QMouseEvent
    +

  • +
  • mouseMoveEvent (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QMouseEvent
    +

  • +
  • mousePressEvent (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QMouseEvent
    +

  • +
  • mouseReleaseEvent (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QMouseEvent
    +

  • +
  • numCells () +
    +
    returns (int)

  • +
  • paintCell (painter, row, col) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    painterQPainter
    rowint
    colint
    +

  • +
  • posToCell (pos, ignoreBorders = 0) +
    +
    returns (int)
    + + +
    ArgumentTypeDefault
    posQPoint
    ignoreBordersbool0
    +

  • +
  • resizeEvent (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QResizeEvent
    +

  • +
  • setAcceptDrags (_acceptDrags) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    _acceptDragsbool
    +

  • +
  • setColor (colNum, col) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    colNumint
    colQColor
    +

  • +
  • setShading (_shade) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    _shadebool
    +

  • +
+ + + diff --git a/doc/classref/kdeui/KColorCombo.html b/doc/classref/kdeui/KColorCombo.html new file mode 100644 index 0000000..0c52861 --- /dev/null +++ b/doc/classref/kdeui/KColorCombo.html @@ -0,0 +1,78 @@ + + + + + class KColorCombo + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KColorCombo


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKColorCombo
InheritsQComboBox
+

methods

    +
  • KColorCombo (parent, name = 0) +
    +
    returns a KColorCombo instance
    + + +
    ArgumentTypeDefault
    parentQWidget
    namechar0
    +

  • +
  • activated (col) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    colQColor
    +

  • +
  • color () +
    +
    returns (QColor)

  • +
  • highlighted (col) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    colQColor
    +

  • +
  • resizeEvent (re) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    reQResizeEvent
    +

  • +
  • setColor (col) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    colQColor
    +

  • +
  • showEmptyList () +
    +
    returns nothing

  • +
+ + + diff --git a/doc/classref/kdeui/KColorDialog.html b/doc/classref/kdeui/KColorDialog.html new file mode 100644 index 0000000..3034ed5 --- /dev/null +++ b/doc/classref/kdeui/KColorDialog.html @@ -0,0 +1,117 @@ + + + + + class KColorDialog + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KColorDialog


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKColorDialog
InheritsKDialogBase
+

methods

    +
  • KColorDialog (parent = 0, name = 0, modal = 0) +
    +
    returns a KColorDialog instance
    + + + +
    ArgumentTypeDefault
    parentQWidget0
    namechar0
    modalbool0
    +

  • +
  • color () +
    +
    returns (QColor)

  • +
  • colorSelected (col) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    colQColor
    +

  • +
  • defaultColor () +
    +
    returns (QColor)

  • +
  • eventFilter (obj, ev) +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    objQObject
    evQEvent
    +

  • +
  • getColor (theColor, parent = 0) +
    + +
    returns (int)
    static
    + + +
    ArgumentTypeDefault
    theColorQColor
    parentQWidget0
    +

  • +
  • getColor (theColor, defaultColor, parent = 0) +
    + +
    returns (int)
    static
    + + + +
    ArgumentTypeDefault
    theColorQColor
    defaultColorQColor
    parentQWidget0
    +

  • +
  • grabColor (p) +
    + +
    returns (QColor)
    static
    + +
    ArgumentTypeDefault
    pQPoint
    +

  • +
  • keyPressEvent (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QKeyEvent
    +

  • +
  • mouseReleaseEvent (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QMouseEvent
    +

  • +
  • setColor (col) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    colQColor
    +

  • +
  • setDefaultColor (defaultCol) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    defaultColQColor
    +

  • +
+ + + diff --git a/doc/classref/kdeui/KColorDrag.html b/doc/classref/kdeui/KColorDrag.html new file mode 100644 index 0000000..5d66213 --- /dev/null +++ b/doc/classref/kdeui/KColorDrag.html @@ -0,0 +1,99 @@ + + + + + class KColorDrag + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KColorDrag


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKColorDrag
InheritsQStoredDrag
+

methods

    +
  • KColorDrag (dragsource = 0, name = 0) +
    +
    returns a KColorDrag instance
    + + +
    ArgumentTypeDefault
    dragsourceQWidget0
    namechar0
    +

  • +
  • KColorDrag (col, dragsource = 0, name = 0) +
    +
    returns a KColorDrag instance
    + + + +
    ArgumentTypeDefault
    colQColor
    dragsourceQWidget0
    namechar0
    +

  • +
  • canDecode (e) +
    + +
    returns (bool)
    static
    + +
    ArgumentTypeDefault
    eQMimeSource
    +

  • +
  • decode (e, col) +
    + +
    returns (bool)
    static
    + + +
    ArgumentTypeDefault
    eQMimeSource
    colQColor
    +

  • +
  • encodedData (m) +
    + +
    returns (QByteArray)
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    mchar
    +

  • +
  • format (i) +
    + +
    returns (char)
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    iint
    +

  • +
  • makeDrag (a0, dragsource) +
    + +
    returns (KColorDrag)
    static
    + + +
    ArgumentTypeDefault
    a0QColor
    dragsourceQWidget
    +

  • +
  • setColor (col) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    colQColor
    +

  • +
+ + + diff --git a/doc/classref/kdeui/KColorPatch.html b/doc/classref/kdeui/KColorPatch.html new file mode 100644 index 0000000..501df0e --- /dev/null +++ b/doc/classref/kdeui/KColorPatch.html @@ -0,0 +1,83 @@ + + + + + class KColorPatch + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KColorPatch


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKColorPatch
InheritsQFrame
+

methods

    +
  • KColorPatch (parent) +
    +
    returns a KColorPatch instance
    + +
    ArgumentTypeDefault
    parentQWidget
    +

  • +
  • colorChanged (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QColor
    +

  • +
  • dragEnterEvent (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QDragEnterEvent
    +

  • +
  • drawContents (painter) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    painterQPainter
    +

  • +
  • dropEvent (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QDropEvent
    +

  • +
  • mouseMoveEvent (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QMouseEvent
    +

  • +
  • setColor (col) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    colQColor
    +

  • +
+ + + diff --git a/doc/classref/kdeui/KComboBox.html b/doc/classref/kdeui/KComboBox.html new file mode 100644 index 0000000..c9e9360 --- /dev/null +++ b/doc/classref/kdeui/KComboBox.html @@ -0,0 +1,261 @@ + + + + + class KComboBox + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KComboBox


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKComboBox
InheritsQComboBox, KCompletionBase
+

methods

    +
  • KComboBox (parent = 0, name = 0) +
    +
    returns a KComboBox instance
    + + +
    ArgumentTypeDefault
    parentQWidget0
    namechar0
    +

  • +
  • KComboBox (rw, parent = 0, name = 0) +
    +
    returns a KComboBox instance
    + + + +
    ArgumentTypeDefault
    rwbool
    parentQWidget0
    namechar0
    +

  • +
  • aboutToShowContextMenu (p) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    pQPopupMenu
    +

  • +
  • autoCompletion () +
    +
    returns (bool)

  • +
  • changeURL (url, index) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    urlKURL
    indexint
    +

  • +
  • changeURL (pixmap, url, index) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    pixmapQPixmap
    urlKURL
    indexint
    +

  • +
  • completion (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • completionBox (create) +
    +
    returns (KCompletionBox)
    + +
    ArgumentTypeDefault
    createbool
    +

  • +
  • completionModeChanged (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KGlobalSettings.Completion
    +

  • +
  • contains (text) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    textQString
    +

  • +
  • create (a0 = 0, initializeWindow = 1, destroyOldWindow = 1) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    a0WId0
    initializeWindowbool1
    destroyOldWindowbool1
    +

  • +
  • cursorPosition () +
    +
    returns (int)

  • +
  • eventFilter (a0, a1) +
    +
    returns (bool)
    + + +
    ArgumentTypeDefault
    a0QObject
    a1QEvent
    +

  • +
  • insertURL (url, index = -1) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    urlKURL
    indexint-1
    +

  • +
  • insertURL (pixmap, url, index = -1) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    pixmapQPixmap
    urlKURL
    indexint-1
    +

  • +
  • isContextMenuEnabled () +
    +
    returns (bool)

  • +
  • isURLDropsEnabled () +
    +
    returns (bool)

  • +
  • itemSelected (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QListBoxItem
    +

  • +
  • makeCompletion (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • returnPressed () +
    +
    returns nothing

  • +
  • returnPressed (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • rotateText (type) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    typeKCompletionBase.KeyBindingType
    +

  • +
  • setAutoCompletion (autocomplete) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    autocompletebool
    +

  • +
  • setCompletedItems (items) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    itemsQStringList
    +

  • +
  • setCompletedText (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • setCompletedText (a0, a1) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    a0QString
    a1bool
    +

  • +
  • setContextMenuEnabled (showMenu) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    showMenubool
    +

  • +
  • setCurrentItem (item, insert = 0, index = -1) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    itemQString
    insertbool0
    indexint-1
    +

  • +
  • setCurrentItem (index) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    indexint
    +

  • +
  • setEditURL (url) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    urlKURL
    +

  • +
  • setLineEdit (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QLineEdit
    +

  • +
  • setTrapReturnKey (trap) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    trapbool
    +

  • +
  • setURLDropsEnabled (enable) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    enablebool
    +

  • +
  • substringCompletion (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • textRotation (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KCompletionBase.KeyBindingType
    +

  • +
  • trapReturnKey () +
    +
    returns (bool)

  • +
  • wheelEvent (ev) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    evQWheelEvent
    +

  • +
+ + + diff --git a/doc/classref/kdeui/KCommand.html b/doc/classref/kdeui/KCommand.html new file mode 100644 index 0000000..78de8f9 --- /dev/null +++ b/doc/classref/kdeui/KCommand.html @@ -0,0 +1,56 @@ + + + + + class KCommand + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KCommand


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKCommand (abstract)
Inherits
+

methods

    +
  • KCommand () +
    +
    returns a KCommand instance

  • +
  • execute () = 0 +
    + +
    returns nothing
    pure virtual

  • +
  • name () = 0 +
    + +
    returns (QString)
    pure virtual

  • +
  • unexecute () = 0 +
    + +
    returns nothing
    pure virtual

  • +
+ + + diff --git a/doc/classref/kdeui/KCommandHistory.html b/doc/classref/kdeui/KCommandHistory.html new file mode 100644 index 0000000..830a7d5 --- /dev/null +++ b/doc/classref/kdeui/KCommandHistory.html @@ -0,0 +1,122 @@ + + + + + class KCommandHistory + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KCommandHistory


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKCommandHistory
InheritsQObject
+

methods

    +
  • KCommandHistory () +
    +
    returns a KCommandHistory instance

  • +
  • KCommandHistory (actionCollection, withMenus = 1) +
    +
    returns a KCommandHistory instance
    + + +
    ArgumentTypeDefault
    actionCollectionKActionCollection
    withMenusbool1
    +

  • +
  • addCommand (command, execute = 1) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    commandKCommand
    executebool1
    +

  • +
  • clear () +
    +
    returns nothing

  • +
  • commandExecuted () +
    +
    returns nothing

  • +
  • commandExecuted (command) +
    + +
    returns nothing
    In versions KDE 3.5.0 and above only
    + +
    ArgumentTypeDefault
    commandKCommand
    +

  • +
  • documentRestored () +
    +
    returns nothing

  • +
  • documentSaved () +
    +
    returns nothing

  • +
  • redo () +
    +
    returns nothing

  • +
  • redoLimit () +
    +
    returns (int)

  • +
  • setRedoLimit (limit) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    limitint
    +

  • +
  • setUndoLimit (limit) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    limitint
    +

  • +
  • slotRedoAboutToShow () +
    +
    returns nothing

  • +
  • slotRedoActivated (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • slotUndoAboutToShow () +
    +
    returns nothing

  • +
  • slotUndoActivated (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • undo () +
    +
    returns nothing

  • +
  • undoLimit () +
    +
    returns (int)

  • +
  • updateActions () +
    +
    returns nothing

  • +
+ + + diff --git a/doc/classref/kdeui/KCompletionBox.html b/doc/classref/kdeui/KCompletionBox.html new file mode 100644 index 0000000..4c53ed1 --- /dev/null +++ b/doc/classref/kdeui/KCompletionBox.html @@ -0,0 +1,156 @@ + + + + + class KCompletionBox + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KCompletionBox


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKCompletionBox
InheritsKListBox
+

methods

    +
  • KCompletionBox (parent, name = 0) +
    +
    returns a KCompletionBox instance
    + + +
    ArgumentTypeDefault
    parentQWidget
    namechar0
    +

  • +
  • activateOnSelect () +
    + +
    returns (bool)
    In versions KDE 3.4.3 and above only

  • +
  • activated (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • calculateGeometry () +
    + +
    returns (QRect)
    In versions KDE 3.2.0 and above only

  • +
  • cancelledText () +
    +
    returns (QString)

  • +
  • down () +
    +
    returns nothing

  • +
  • end () +
    +
    returns nothing

  • +
  • eventFilter (a0, a1) +
    +
    returns (bool)
    + + +
    ArgumentTypeDefault
    a0QObject
    a1QEvent
    +

  • +
  • hide () +
    +
    returns nothing

  • +
  • home () +
    +
    returns nothing

  • +
  • insertItems (items, index = -1) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    itemsQStringList
    indexint-1
    +

  • +
  • isTabHandling () +
    +
    returns (bool)

  • +
  • items () +
    +
    returns (QStringList)

  • +
  • pageDown () +
    +
    returns nothing

  • +
  • pageUp () +
    +
    returns nothing

  • +
  • popup () +
    +
    returns nothing

  • +
  • setActivateOnSelect (state) +
    + +
    returns nothing
    In versions KDE 3.4.3 and above only
    + +
    ArgumentTypeDefault
    statebool
    +

  • +
  • setCancelledText (txt) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    txtQString
    +

  • +
  • setItems (items) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    itemsQStringList
    +

  • +
  • setTabHandling (enable) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    enablebool
    +

  • +
  • show () +
    +
    returns nothing

  • +
  • sizeAndPosition () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • sizeHint () +
    +
    returns (QSize)

  • +
  • slotActivated (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QListBoxItem
    +

  • +
  • up () +
    +
    returns nothing

  • +
  • userCancelled (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
+ + + diff --git a/doc/classref/kdeui/KConfigDialog.html b/doc/classref/kdeui/KConfigDialog.html new file mode 100644 index 0000000..478b4f5 --- /dev/null +++ b/doc/classref/kdeui/KConfigDialog.html @@ -0,0 +1,139 @@ + + + + + class KConfigDialog + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KConfigDialog


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKConfigDialog
InheritsKDialogBase
+

methods

    +
  • KConfigDialog (parent, name, config, dialogType = KDialogBase .IconList, dialogButtons = KDialogBase .Default | KDialogBase .Ok | KDialogBase .Apply | KDialogBase .Cancel | KDialogBase .Help, defaultButton = Ok, modal = 0) +
    + +
    returns a KConfigDialog instance
    In versions KDE 3.2.0 and above only
    + + + + + + + +
    ArgumentTypeDefault
    parentQWidget
    namechar
    configKConfigSkeleton
    dialogTypeKDialogBase.DialogTypeKDialogBase .IconList
    dialogButtonsintKDialogBase .Default | KDialogBase .Ok | KDialogBase .Apply | KDialogBase .Cancel | KDialogBase .Help
    defaultButtonKDialogBase.ButtonCodeOk
    modalbool0
    +

  • +
  • addPage (page, itemName, pixmapName, header = QString .null, manage = 1) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + + + + + +
    ArgumentTypeDefault
    pageQWidget
    itemNameQString
    pixmapNameQString
    headerQStringQString .null
    managebool1
    +

  • +
  • addPage (page, config, itemName, pixmapName, header = QString .null) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + + + + + +
    ArgumentTypeDefault
    pageQWidget
    configKConfigSkeleton
    itemNameQString
    pixmapNameQString
    headerQStringQString .null
    +

  • +
  • exists (name) +
    + + +
    returns (KConfigDialog)
    In versions KDE 3.2.0 and above only
    static
    + +
    ArgumentTypeDefault
    namechar
    +

  • +
  • hasChanged () +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only

  • +
  • isDefault () +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only

  • +
  • settingsChanged () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • settingsChanged (dialogName) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    dialogNamechar
    +

  • +
  • settingsChangedSlot () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • show () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • showDialog (name) +
    + + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    static
    + +
    ArgumentTypeDefault
    namechar
    +

  • +
  • updateButtons () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • updateSettings () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • updateWidgets () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • updateWidgetsDefault () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • widgetModified () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
+ + + diff --git a/doc/classref/kdeui/KContextMenuManager.html b/doc/classref/kdeui/KContextMenuManager.html new file mode 100644 index 0000000..af8f862 --- /dev/null +++ b/doc/classref/kdeui/KContextMenuManager.html @@ -0,0 +1,63 @@ + + + + + class KContextMenuManager + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KContextMenuManager


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKContextMenuManager
InheritsQObject
+

methods

    +
  • KContextMenuManager (parent = 0, name = 0) +
    +
    returns a KContextMenuManager instance
    + + +
    ArgumentTypeDefault
    parentQObject0
    namechar0
    +

  • +
  • insert (widget, popup) +
    + +
    returns nothing
    static
    + + +
    ArgumentTypeDefault
    widgetQWidget
    popupQPopupMenu
    +

  • +
  • showOnButtonPress () +
    + +
    returns (bool)
    static

  • +
  • ~KContextMenuManager () +
    +
    returns nothing

  • +
+ + + diff --git a/doc/classref/kdeui/KCursor.html b/doc/classref/kdeui/KCursor.html new file mode 100644 index 0000000..e33d033 --- /dev/null +++ b/doc/classref/kdeui/KCursor.html @@ -0,0 +1,136 @@ + + + + + class KCursor + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KCursor


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKCursor
InheritsQt
+

methods

    +
  • KCursor () +
    +
    returns a KCursor instance

  • +
  • arrowCursor () +
    + +
    returns (QCursor)
    static

  • +
  • autoHideEventFilter (a0, a1) +
    + +
    returns nothing
    static
    + + +
    ArgumentTypeDefault
    a0QObject
    a1QEvent
    +

  • +
  • blankCursor () +
    + +
    returns (QCursor)
    static

  • +
  • crossCursor () +
    + +
    returns (QCursor)
    static

  • +
  • handCursor () +
    + +
    returns (QCursor)
    static

  • +
  • hideCursorDelay () +
    + +
    returns (int)
    static

  • +
  • ibeamCursor () +
    + +
    returns (QCursor)
    static

  • +
  • setAutoHideCursor (w, enable) +
    + +
    returns nothing
    static
    + + +
    ArgumentTypeDefault
    wQWidget
    enablebool
    +

  • +
  • setAutoHideCursor (w, enable, customEventFilter) +
    + +
    returns nothing
    static
    + + + +
    ArgumentTypeDefault
    wQWidget
    enablebool
    customEventFilterbool
    +

  • +
  • setHideCursorDelay (ms) +
    + +
    returns nothing
    static
    + +
    ArgumentTypeDefault
    msint
    +

  • +
  • sizeAllCursor () +
    + +
    returns (QCursor)
    static

  • +
  • sizeBDiagCursor () +
    + +
    returns (QCursor)
    static

  • +
  • sizeFDiagCursor () +
    + +
    returns (QCursor)
    static

  • +
  • sizeHorCursor () +
    + +
    returns (QCursor)
    static

  • +
  • sizeVerCursor () +
    + +
    returns (QCursor)
    static

  • +
  • upArrowCursor () +
    + +
    returns (QCursor)
    static

  • +
  • waitCursor () +
    + +
    returns (QCursor)
    static

  • +
  • whatsThisCursor () +
    + +
    returns (QCursor)
    static

  • +
  • workingCursor () +
    + +
    returns (QCursor)
    static

  • +
+ + + diff --git a/doc/classref/kdeui/KDCOPActionProxy.html b/doc/classref/kdeui/KDCOPActionProxy.html new file mode 100644 index 0000000..994681f --- /dev/null +++ b/doc/classref/kdeui/KDCOPActionProxy.html @@ -0,0 +1,96 @@ + + + + + class KDCOPActionProxy + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KDCOPActionProxy


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKDCOPActionProxy
InheritsDCOPObjectProxy
+

methods

    +
  • KDCOPActionProxy (actionCollection, parent) +
    +
    returns a KDCOPActionProxy instance
    + + +
    ArgumentTypeDefault
    actionCollectionKActionCollection
    parentDCOPObject
    +

  • +
  • KDCOPActionProxy (parent) +
    +
    returns a KDCOPActionProxy instance
    + +
    ArgumentTypeDefault
    parentDCOPObject
    +

  • +
  • action (name) +
    +
    returns (KAction)
    + +
    ArgumentTypeDefault
    namechar
    +

  • +
  • actionMap (appId = QCString ()) +
    +
    returns (QMap)
    + +
    ArgumentTypeDefault
    appIdQCStringQCString ()
    +

  • +
  • actionObjectId (name) +
    +
    returns (QCString)
    + +
    ArgumentTypeDefault
    nameQCString
    +

  • +
  • actions () +
    +
    returns (QValueList

  • +
  • process (obj, fun, data, replyType, replyData) +
    +
    returns (bool)
    + + + + + +
    ArgumentTypeDefault
    objQCString
    funQCString
    dataQByteArray
    replyTypeQCString
    replyDataQByteArray
    +

  • +
  • processAction (obj, fun, data, replyType, replyData, action) +
    +
    returns (bool)
    + + + + + + +
    ArgumentTypeDefault
    objQCString
    funQCString
    dataQByteArray
    replyTypeQCString
    replyDataQByteArray
    actionKAction
    +

  • +
+ + + diff --git a/doc/classref/kdeui/KDateInternalMonthPicker.html b/doc/classref/kdeui/KDateInternalMonthPicker.html new file mode 100644 index 0000000..21f3843 --- /dev/null +++ b/doc/classref/kdeui/KDateInternalMonthPicker.html @@ -0,0 +1,141 @@ + + + + + class KDateInternalMonthPicker + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KDateInternalMonthPicker


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKDateInternalMonthPicker
InheritsQGridView
+

methods

    +
  • KDateInternalMonthPicker (date, parent, name = 0) +
    + +
    returns a KDateInternalMonthPicker instance
    In versions KDE 3.2.0 and above only
    + + + +
    ArgumentTypeDefault
    dateQDate
    parentQWidget
    namechar0
    +

  • +
  • KDateInternalMonthPicker (a0, a1, a2 = 0) +
    + +
    returns a KDateInternalMonthPicker instance
    In versions less than KDE 3.2.0 only
    + + + +
    ArgumentTypeDefault
    a0int
    a1QWidget
    a2char0
    +

  • +
  • closeMe (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • contentsMouseMoveEvent (e) +
    + +
    returns nothing
    In versions KDE 3.0.1 and above only
    + +
    ArgumentTypeDefault
    eQMouseEvent
    +

  • +
  • contentsMouseMoveEvent (a0) +
    + +
    returns nothing
    In versions less than KDE 3.0.1 only
    + +
    ArgumentTypeDefault
    a0QMouseEvent
    +

  • +
  • contentsMousePressEvent (e) +
    + +
    returns nothing
    In versions KDE 3.0.1 and above only
    + +
    ArgumentTypeDefault
    eQMouseEvent
    +

  • +
  • contentsMousePressEvent (a0) +
    + +
    returns nothing
    In versions less than KDE 3.0.1 only
    + +
    ArgumentTypeDefault
    a0QMouseEvent
    +

  • +
  • contentsMouseReleaseEvent (e) +
    + +
    returns nothing
    In versions KDE 3.0.1 and above only
    + +
    ArgumentTypeDefault
    eQMouseEvent
    +

  • +
  • contentsMouseReleaseEvent (a0) +
    + +
    returns nothing
    In versions less than KDE 3.0.1 only
    + +
    ArgumentTypeDefault
    a0QMouseEvent
    +

  • +
  • getResult () +
    +
    returns (int)

  • +
  • paintCell (painter, row, col) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    painterQPainter
    rowint
    colint
    +

  • +
  • setupPainter (p) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    pQPainter
    +

  • +
  • sizeHint () +
    +
    returns (QSize)

  • +
  • viewportResizeEvent (a0) +
    + +
    returns nothing
    In versions KDE 3.0.1 and above only
    + +
    ArgumentTypeDefault
    a0QResizeEvent
    +

  • +
  • viewportResizeEvent (a0) +
    + +
    returns nothing
    In versions less than KDE 3.0.1 only
    + +
    ArgumentTypeDefault
    a0QResizeEvent
    +

  • +
+ + + diff --git a/doc/classref/kdeui/KDateInternalWeekSelector.html b/doc/classref/kdeui/KDateInternalWeekSelector.html new file mode 100644 index 0000000..3e95c88 --- /dev/null +++ b/doc/classref/kdeui/KDateInternalWeekSelector.html @@ -0,0 +1,87 @@ + + + + + class KDateInternalWeekSelector + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KDateInternalWeekSelector


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKDateInternalWeekSelector
InheritsQLineEdit
+

methods

    +
  • KDateInternalWeekSelector (parent = 0, name = 0) +
    + +
    returns a KDateInternalWeekSelector instance
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    parentQWidget0
    namechar0
    +

  • +
  • KDateInternalWeekSelector (a0, a1 = 0, a2 = 0) +
    + +
    returns a KDateInternalWeekSelector instance
    In versions less than KDE 3.2.0 only
    + + + +
    ArgumentTypeDefault
    a0int
    a1QWidget0
    a2char0
    +

  • +
  • closeMe (a0) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • getWeek () +
    + +
    returns (int)
    In versions KDE 3.1.0 and above only

  • +
  • setMaxWeek (max) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    maxint
    +

  • +
  • setWeek (week) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    weekint
    +

  • +
  • weekEnteredSlot () +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only

  • +
+ + + diff --git a/doc/classref/kdeui/KDateInternalYearSelector.html b/doc/classref/kdeui/KDateInternalYearSelector.html new file mode 100644 index 0000000..41f6b99 --- /dev/null +++ b/doc/classref/kdeui/KDateInternalYearSelector.html @@ -0,0 +1,76 @@ + + + + + class KDateInternalYearSelector + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KDateInternalYearSelector


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKDateInternalYearSelector
InheritsQLineEdit
+

methods

    +
  • KDateInternalYearSelector (parent = 0, name = 0) +
    + +
    returns a KDateInternalYearSelector instance
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    parentQWidget0
    namechar0
    +

  • +
  • KDateInternalYearSelector (a0, a1 = 0, a2 = 0) +
    + +
    returns a KDateInternalYearSelector instance
    In versions less than KDE 3.2.0 only
    + + + +
    ArgumentTypeDefault
    a0int
    a1QWidget0
    a2char0
    +

  • +
  • closeMe (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • getYear () +
    +
    returns (int)

  • +
  • setYear (year) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    yearint
    +

  • +
  • yearEnteredSlot () +
    +
    returns nothing

  • +
+ + + diff --git a/doc/classref/kdeui/KDatePicker.html b/doc/classref/kdeui/KDatePicker.html new file mode 100644 index 0000000..db1cf01 --- /dev/null +++ b/doc/classref/kdeui/KDatePicker.html @@ -0,0 +1,200 @@ + + + + + class KDatePicker + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KDatePicker


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKDatePicker
InheritsQFrame
+

methods

    +
  • KDatePicker (parent = 0, a0 = QDate .currentDate (), name = 0) +
    +
    returns a KDatePicker instance
    + + + +
    ArgumentTypeDefault
    parentQWidget0
    a0QDateQDate .currentDate ()
    namechar0
    +

  • +
  • KDatePicker (parent, a0, name, f) +
    + +
    returns a KDatePicker instance
    In versions KDE 3.1.0 and above only
    + + + + +
    ArgumentTypeDefault
    parentQWidget
    a0QDate
    namechar
    fWFlags
    +

  • +
  • KDatePicker (parent, name) +
    + +
    returns a KDatePicker instance
    In versions KDE 3.1.0 and above only
    + + +
    ArgumentTypeDefault
    parentQWidget
    namechar
    +

  • +
  • date () +
    +
    returns (QDate)

  • +
  • dateChanged (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QDate
    +

  • +
  • dateChangedSlot (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QDate
    +

  • +
  • dateEntered (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QDate
    +

  • +
  • dateSelected (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QDate
    +

  • +
  • dateTable () +
    + +
    returns (KDateTable)
    In versions KDE 3.2.0 and above only

  • +
  • eventFilter (o, e) +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above only
    + + +
    ArgumentTypeDefault
    oQObject
    eQEvent
    +

  • +
  • fontSize () +
    +
    returns (int)

  • +
  • getDate () +
    +
    returns (QDate)

  • +
  • hasCloseButton () +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above only

  • +
  • lineEnterPressed () +
    +
    returns nothing

  • +
  • monthBackwardClicked () +
    +
    returns nothing

  • +
  • monthForwardClicked () +
    +
    returns nothing

  • +
  • resizeEvent (a0) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    a0QResizeEvent
    +

  • +
  • resizeEvent (a0) +
    + +
    returns nothing
    In versions less than KDE 3.1.0 only
    + +
    ArgumentTypeDefault
    a0QResizeEvent
    +

  • +
  • selectMonthClicked () +
    +
    returns nothing

  • +
  • selectWeekClicked () +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only

  • +
  • selectYearClicked () +
    +
    returns nothing

  • +
  • setCloseButton (enable) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    enablebool
    +

  • +
  • setDate (a0) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    a0QDate
    +

  • +
  • setEnabled (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • setFontSize (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • sizeHint () +
    +
    returns (QSize)

  • +
  • tableClicked () +
    +
    returns nothing

  • +
  • tableClickedSlot () +
    +
    returns nothing

  • +
  • todayButtonClicked () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • weekSelected (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • yearBackwardClicked () +
    +
    returns nothing

  • +
  • yearForwardClicked () +
    +
    returns nothing

  • +
+ + + diff --git a/doc/classref/kdeui/KDateTable.html b/doc/classref/kdeui/KDateTable.html new file mode 100644 index 0000000..cb74815 --- /dev/null +++ b/doc/classref/kdeui/KDateTable.html @@ -0,0 +1,192 @@ + + + + + class KDateTable + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KDateTable


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKDateTable
InheritsQGridView
+

enums

    +
  • BackgroundMode = {NoBgMode, RectangleMode, CircleMode +}
+

methods

    +
  • KDateTable (parent = 0, date = QDate .currentDate (), name = 0, f = 0) +
    +
    returns a KDateTable instance
    + + + + +
    ArgumentTypeDefault
    parentQWidget0
    dateQDateQDate .currentDate ()
    namechar0
    fWFlags0
    +

  • +
  • KDateTable (parent, name, f = 0) +
    + +
    returns a KDateTable instance
    In versions KDE 3.4.0 and above only
    + + + +
    ArgumentTypeDefault
    parentQWidget
    namechar
    fWFlags0
    +

  • +
  • aboutToShowContextMenu (menu, date) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    menuKPopupMenu
    dateQDate
    +

  • +
  • contentsMousePressEvent (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QMouseEvent
    +

  • +
  • dateChanged (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QDate
    +

  • +
  • dateChanged (cur, old) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    curQDate
    oldQDate
    +

  • +
  • dateFromPos (pos) +
    + +
    returns (QDate)
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    posint
    +

  • +
  • focusInEvent (e) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    eQFocusEvent
    +

  • +
  • focusOutEvent (e) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    eQFocusEvent
    +

  • +
  • getDate () +
    +
    returns (QDate)

  • +
  • keyPressEvent (e) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    eQKeyEvent
    +

  • +
  • paintCell (a0, a1, a2) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    a0QPainter
    a1int
    a2int
    +

  • +
  • popupMenuEnabled () +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only

  • +
  • posFromDate (date) +
    + +
    returns (int)
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    dateQDate
    +

  • +
  • setCustomDatePainting (date, fgColor, bgMode = NoBgMode, bgColor = QColor ()) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + + + + +
    ArgumentTypeDefault
    dateQDate
    fgColorQColor
    bgModeBackgroundModeNoBgMode
    bgColorQColorQColor ()
    +

  • +
  • setDate (a0) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    a0QDate
    +

  • +
  • setFontSize (size) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    sizeint
    +

  • +
  • setPopupMenuEnabled (enable) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    enablebool
    +

  • +
  • sizeHint () +
    +
    returns (QSize)

  • +
  • tableClicked () +
    +
    returns nothing

  • +
  • unsetCustomDatePainting (date) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    dateQDate
    +

  • +
  • viewportResizeEvent (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QResizeEvent
    +

  • +
  • wheelEvent (e) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    eQWheelEvent
    +

  • +
+ + + diff --git a/doc/classref/kdeui/KDateTimeWidget.html b/doc/classref/kdeui/KDateTimeWidget.html new file mode 100644 index 0000000..238e693 --- /dev/null +++ b/doc/classref/kdeui/KDateTimeWidget.html @@ -0,0 +1,76 @@ + + + + + class KDateTimeWidget + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KDateTimeWidget


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKDateTimeWidget
InheritsQWidget
+

methods

    +
  • KDateTimeWidget (parent = 0, name = 0) +
    + +
    returns a KDateTimeWidget instance
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    parentQWidget0
    namechar0
    +

  • +
  • KDateTimeWidget (datetime, parent = 0, name = 0) +
    + +
    returns a KDateTimeWidget instance
    In versions KDE 3.2.0 and above only
    + + + +
    ArgumentTypeDefault
    datetimeQDateTime
    parentQWidget0
    namechar0
    +

  • +
  • dateTime () +
    + +
    returns (QDateTime)
    In versions KDE 3.2.0 and above only

  • +
  • setDateTime (datetime) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    datetimeQDateTime
    +

  • +
  • valueChanged (datetime) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    datetimeQDateTime
    +

  • +
+ + + diff --git a/doc/classref/kdeui/KDateValidator.html b/doc/classref/kdeui/KDateValidator.html new file mode 100644 index 0000000..045becc --- /dev/null +++ b/doc/classref/kdeui/KDateValidator.html @@ -0,0 +1,67 @@ + + + + + class KDateValidator + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KDateValidator


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKDateValidator
InheritsQValidator
+

methods

    +
  • KDateValidator (parent = 0, name = 0) +
    +
    returns a KDateValidator instance
    + + +
    ArgumentTypeDefault
    parentQWidget0
    namechar0
    +

  • +
  • date (a0, a1) +
    +
    returns (State)
    + + +
    ArgumentTypeDefault
    a0QString
    a1QDate
    +

  • +
  • fixup (input) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    inputQString
    +

  • +
  • validate (a0) +
    +
    returns (State) a1 (int)
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
+ + + diff --git a/doc/classref/kdeui/KDateWidget.html b/doc/classref/kdeui/KDateWidget.html new file mode 100644 index 0000000..1448613 --- /dev/null +++ b/doc/classref/kdeui/KDateWidget.html @@ -0,0 +1,84 @@ + + + + + class KDateWidget + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KDateWidget


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKDateWidget
InheritsQWidget
+

methods

    +
  • KDateWidget (parent, name = 0) +
    +
    returns a KDateWidget instance
    + + +
    ArgumentTypeDefault
    parentQWidget
    namechar0
    +

  • +
  • KDateWidget (date, parent, name = 0) +
    +
    returns a KDateWidget instance
    + + + +
    ArgumentTypeDefault
    dateQDate
    parentQWidget
    namechar0
    +

  • +
  • changed (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QDate
    +

  • +
  • date () +
    +
    returns (QDate)

  • +
  • init () +
    +
    returns nothing

  • +
  • init (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0QDate
    +

  • +
  • setDate (date) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    dateQDate
    +

  • +
  • slotDateChanged () +
    +
    returns nothing

  • +
+ + + diff --git a/doc/classref/kdeui/KDialog.html b/doc/classref/kdeui/KDialog.html new file mode 100644 index 0000000..0d2e79b --- /dev/null +++ b/doc/classref/kdeui/KDialog.html @@ -0,0 +1,125 @@ + + + + + class KDialog + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KDialog


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKDialog
InheritsQDialog
+

methods

    +
  • KDialog (parent = 0, name = 0, modal = 0, f = 0) +
    +
    returns a KDialog instance
    + + + + +
    ArgumentTypeDefault
    parentQWidget0
    namechar0
    modalbool0
    fWFlags0
    +

  • +
  • KDialog (a0) +
    +
    returns a KDialog instance
    + +
    ArgumentTypeDefault
    a0KDialog
    +

  • +
  • avoidArea (widget, area, screen = -1) +
    + + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    static
    + + + +
    ArgumentTypeDefault
    widgetQWidget
    areaQRect
    screenint-1
    +

  • +
  • centerOnScreen (widget, screen = -1) +
    + + +
    returns nothing
    In versions KDE 3.1.0 and above only
    static
    + + +
    ArgumentTypeDefault
    widgetQWidget
    screenint-1
    +

  • +
  • keyPressEvent (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QKeyEvent
    +

  • +
  • layoutHintChanged () +
    +
    returns nothing

  • +
  • marginHint () +
    + +
    returns (int)
    static

  • +
  • polish () +
    +
    returns nothing

  • +
  • resizeLayout (widget, margin, spacing) +
    + +
    returns nothing
    static
    + + + +
    ArgumentTypeDefault
    widgetQWidget
    marginint
    spacingint
    +

  • +
  • resizeLayout (lay, margin, spacing) +
    + +
    returns nothing
    static
    + + + +
    ArgumentTypeDefault
    layQLayoutItem
    marginint
    spacingint
    +

  • +
  • setCaption (caption) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    captionQString
    +

  • +
  • setPlainCaption (caption) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    captionQString
    +

  • +
  • spacingHint () +
    + +
    returns (int)
    static

  • +
+ + + diff --git a/doc/classref/kdeui/KDialogBase.html b/doc/classref/kdeui/KDialogBase.html new file mode 100644 index 0000000..22d5221 --- /dev/null +++ b/doc/classref/kdeui/KDialogBase.html @@ -0,0 +1,706 @@ + + + + + class KDialogBase + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KDialogBase


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKDialogBase
InheritsKDialog
+

enums

    +
  • ActionButtonStyle = {ActionStyle0, ActionStyle1, ActionStyle2, ActionStyle3, ActionStyle4, ActionStyleMAX +}
  • ButtonCode = {Help, Default, Ok, Apply, Try, Cancel, Close, User1, User2, User3, No, Yes, Details, Filler, Stretch, NoDefault +}
  • ButtonCode = {Help, Default, Ok, Apply, Try, Cancel, Close, User1, User2, User3, No, Yes, Details, Filler, Stretch +}
  • DialogType = {TreeList, Tabbed, Plain, Swallow, IconList +}
+

methods

    +
  • KDialogBase (parent = 0, name = 0, modal = 1, caption = QString .null, buttonMask = Ok | Apply | Cancel, defaultButton = Ok, separator = 0, user1 = KGuiItem (), user2 = KGuiItem (), user3 = KGuiItem ()) +
    +
    returns a KDialogBase instance
    + + + + + + + + + + +
    ArgumentTypeDefault
    parentQWidget0
    namechar0
    modalbool1
    captionQStringQString .null
    buttonMaskintOk | Apply | Cancel
    defaultButtonKDialogBase.ButtonCodeOk
    separatorbool0
    user1KGuiItemKGuiItem ()
    user2KGuiItemKGuiItem ()
    user3KGuiItemKGuiItem ()
    +

  • +
  • KDialogBase (dialogFace, caption, buttonMask, defaultButton, parent = 0, name = 0, modal = 1, separator = 0, user1 = KGuiItem (), user2 = KGuiItem (), user3 = KGuiItem ()) +
    +
    returns a KDialogBase instance
    + + + + + + + + + + + +
    ArgumentTypeDefault
    dialogFaceint
    captionQString
    buttonMaskint
    defaultButtonKDialogBase.ButtonCode
    parentQWidget0
    namechar0
    modalbool1
    separatorbool0
    user1KGuiItemKGuiItem ()
    user2KGuiItemKGuiItem ()
    user3KGuiItemKGuiItem ()
    +

  • +
  • KDialogBase (dialogFace, f, parent = 0, name = 0, modal = 1, caption = QString .null, buttonMask = Ok | Apply | Cancel, defaultButton = Ok, separator = 0, user1 = KGuiItem (), user2 = KGuiItem (), user3 = KGuiItem ()) +
    + +
    returns a KDialogBase instance
    In versions KDE 3.2.0 and above only
    + + + + + + + + + + + + +
    ArgumentTypeDefault
    dialogFaceKDialogBase.DialogType
    fWFlags
    parentQWidget0
    namechar0
    modalbool1
    captionQStringQString .null
    buttonMaskintOk | Apply | Cancel
    defaultButtonKDialogBase.ButtonCodeOk
    separatorbool0
    user1KGuiItemKGuiItem ()
    user2KGuiItemKGuiItem ()
    user3KGuiItemKGuiItem ()
    +

  • +
  • KDialogBase (caption, buttonMask = Yes | No | Cancel, defaultButton = Yes, escapeButton = Cancel, parent = 0, name = 0, modal = 1, separator = 0, yes = KStdGuiItem .yes (), no = KStdGuiItem .no (), cancel = KStdGuiItem .cancel ()) +
    +
    returns a KDialogBase instance
    + + + + + + + + + + + +
    ArgumentTypeDefault
    captionQString
    buttonMaskintYes | No | Cancel
    defaultButtonKDialogBase.ButtonCodeYes
    escapeButtonKDialogBase.ButtonCodeCancel
    parentQWidget0
    namechar0
    modalbool1
    separatorbool0
    yesKGuiItemKStdGuiItem .yes ()
    noKGuiItemKStdGuiItem .no ()
    cancelKGuiItemKStdGuiItem .cancel ()
    +

  • +
  • aboutToShowDetails () +
    +
    returns nothing

  • +
  • aboutToShowPage (page) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    pageQWidget
    +

  • +
  • actionButton (id) +
    +
    returns (QPushButton)
    + +
    ArgumentTypeDefault
    idKDialogBase.ButtonCode
    +

  • +
  • activePageIndex () +
    +
    returns (int)

  • +
  • addButtonBelowList (text, recv, slot) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + + + +
    ArgumentTypeDefault
    textQString
    recvQObject
    slotchar
    +

  • +
  • addButtonBelowList (guiitem, recv, slot) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + + + +
    ArgumentTypeDefault
    guiitemKGuiItem
    recvQObject
    slotchar
    +

  • +
  • addGridPage (n, dir, itemName, header = QString .null, pixmap = QPixmap ()) +
    +
    returns (QGrid)
    + + + + + +
    ArgumentTypeDefault
    nint
    dirQt.Orientation
    itemNameQString
    headerQStringQString .null
    pixmapQPixmapQPixmap ()
    +

  • +
  • addGridPage (n, dir, items, header = QString .null, pixmap = QPixmap ()) +
    +
    returns (QGrid)
    + + + + + +
    ArgumentTypeDefault
    nint
    dirQt.Orientation
    itemsQStringList
    headerQStringQString .null
    pixmapQPixmapQPixmap ()
    +

  • +
  • addHBoxPage (itemName, header = QString .null, pixmap = QPixmap ()) +
    +
    returns (QHBox)
    + + + +
    ArgumentTypeDefault
    itemNameQString
    headerQStringQString .null
    pixmapQPixmapQPixmap ()
    +

  • +
  • addHBoxPage (items, header = QString .null, pixmap = QPixmap ()) +
    +
    returns (QHBox)
    + + + +
    ArgumentTypeDefault
    itemsQStringList
    headerQStringQString .null
    pixmapQPixmapQPixmap ()
    +

  • +
  • addPage (itemName, header = QString .null, pixmap = QPixmap ()) +
    +
    returns (QFrame)
    + + + +
    ArgumentTypeDefault
    itemNameQString
    headerQStringQString .null
    pixmapQPixmapQPixmap ()
    +

  • +
  • addPage (items, header = QString .null, pixmap = QPixmap ()) +
    +
    returns (QFrame)
    + + + +
    ArgumentTypeDefault
    itemsQStringList
    headerQStringQString .null
    pixmapQPixmapQPixmap ()
    +

  • +
  • addVBoxPage (itemName, header = QString .null, pixmap = QPixmap ()) +
    +
    returns (QVBox)
    + + + +
    ArgumentTypeDefault
    itemNameQString
    headerQStringQString .null
    pixmapQPixmapQPixmap ()
    +

  • +
  • addVBoxPage (items, header = QString .null, pixmap = QPixmap ()) +
    +
    returns (QVBox)
    + + + +
    ArgumentTypeDefault
    itemsQStringList
    headerQStringQString .null
    pixmapQPixmapQPixmap ()
    +

  • +
  • addWidgetBelowList (widget) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    widgetQWidget
    +

  • +
  • adjustSize () +
    +
    returns nothing

  • +
  • apply () +
    +
    returns nothing

  • +
  • applyClicked () +
    +
    returns nothing

  • +
  • applyPressed () +
    +
    returns nothing

  • +
  • backgroundChanged () +
    +
    returns nothing

  • +
  • backgroundTile () +
    + +
    returns (QPixmap)
    static

  • +
  • calculateSize (w, h) +
    +
    returns (QSize)
    + + +
    ArgumentTypeDefault
    wint
    hint
    +

  • +
  • cancel () +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only

  • +
  • cancelClicked () +
    +
    returns nothing

  • +
  • closeClicked () +
    +
    returns nothing

  • +
  • closeEvent (e) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    eQCloseEvent
    +

  • +
  • configDialogSize (groupName) +
    +
    returns (QSize)
    + +
    ArgumentTypeDefault
    groupNameQString
    +

  • +
  • configDialogSize (config, groupName) +
    + +
    returns (QSize)
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    configKConfig
    groupNameQString
    +

  • +
  • defaultClicked () +
    +
    returns nothing

  • +
  • delayedDestruct () +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only

  • +
  • delayedDestruct () +
    + +
    returns nothing
    In versions less than KDE 3.1.0 only

  • +
  • disableResize () +
    +
    returns nothing

  • +
  • enableButton (id, state) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    idKDialogBase.ButtonCode
    statebool
    +

  • +
  • enableButtonApply (state) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    statebool
    +

  • +
  • enableButtonCancel (state) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    statebool
    +

  • +
  • enableButtonOK (state) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    statebool
    +

  • +
  • enableButtonSeparator (state) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    statebool
    +

  • +
  • enableLinkedHelp (state) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    statebool
    +

  • +
  • finished () +
    +
    returns nothing

  • +
  • getBackgroundTile () +
    + +
    returns (QPixmap)
    static

  • +
  • getBorderWidths () +
    +
    returns ulx (int) uly (int) lrx (int) lry (int)

  • +
  • getContentsRect () +
    +
    returns (QRect)

  • +
  • haveBackgroundTile () +
    + +
    returns (bool)
    static

  • +
  • helpClicked () +
    +
    returns nothing

  • +
  • helpClickedSlot (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • helpLinkText () +
    +
    returns (QString)

  • +
  • hidden () +
    +
    returns nothing

  • +
  • hideEvent (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QHideEvent
    +

  • +
  • incInitialSize (s, noResize = 0) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    sQSize
    noResizebool0
    +

  • +
  • keyPressEvent (e) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    eQKeyEvent
    +

  • +
  • mainWidget () +
    +
    returns (QWidget)

  • +
  • makeGridMainWidget (n, dir) +
    +
    returns (QGrid)
    + + +
    ArgumentTypeDefault
    nint
    dirQt.Orientation
    +

  • +
  • makeHBoxMainWidget () +
    +
    returns (QHBox)

  • +
  • makeMainWidget () +
    +
    returns (QFrame)

  • +
  • makeVBoxMainWidget () +
    +
    returns (QVBox)

  • +
  • minimumSizeHint () +
    +
    returns (QSize)

  • +
  • noClicked () +
    +
    returns nothing

  • +
  • okClicked () +
    +
    returns nothing

  • +
  • pageIndex (widget) +
    +
    returns (int)
    + +
    ArgumentTypeDefault
    widgetQWidget
    +

  • +
  • plainPage () +
    +
    returns (QFrame)

  • +
  • saveDialogSize (groupName, global = 0) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    groupNameQString
    globalbool0
    +

  • +
  • saveDialogSize (config, groupName, global = 0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + + + +
    ArgumentTypeDefault
    configKConfig
    groupNameQString
    globalbool0
    +

  • +
  • setBackgroundTile (pix) +
    + +
    returns nothing
    static
    + +
    ArgumentTypeDefault
    pixQPixmap
    +

  • +
  • setButtonApply (item = KStdGuiItem .apply ()) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    itemKGuiItemKStdGuiItem .apply ()
    +

  • +
  • setButtonApplyText (text = QString .null, tooltip = QString .null, quickhelp = QString .null) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    textQStringQString .null
    tooltipQStringQString .null
    quickhelpQStringQString .null
    +

  • +
  • setButtonBoxOrientation (orientation) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    orientationint
    +

  • +
  • setButtonCancel (item = KStdGuiItem .cancel ()) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    itemKGuiItemKStdGuiItem .cancel ()
    +

  • +
  • setButtonCancelText (text = QString .null, tooltip = QString .null, quickhelp = QString .null) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    textQStringQString .null
    tooltipQStringQString .null
    quickhelpQStringQString .null
    +

  • +
  • setButtonGuiItem (id, item) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + + +
    ArgumentTypeDefault
    idKDialogBase.ButtonCode
    itemKGuiItem
    +

  • +
  • setButtonOK (item = KStdGuiItem .ok ()) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    itemKGuiItemKStdGuiItem .ok ()
    +

  • +
  • setButtonOKText (text = QString .null, tooltip = QString .null, quickhelp = QString .null) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    textQStringQString .null
    tooltipQStringQString .null
    quickhelpQStringQString .null
    +

  • +
  • setButtonText (id, text) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    idKDialogBase.ButtonCode
    textQString
    +

  • +
  • setButtonTip (id, text) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    idKDialogBase.ButtonCode
    textQString
    +

  • +
  • setButtonWhatsThis (id, text) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    idKDialogBase.ButtonCode
    textQString
    +

  • +
  • setDetails (showDetails) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    showDetailsbool
    +

  • +
  • setDetailsWidget (detailsWidget) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    detailsWidgetQWidget
    +

  • +
  • setEscapeButton (id) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    idKDialogBase.ButtonCode
    +

  • +
  • setFolderIcon (path, pixmap) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    pathQStringList
    pixmapQPixmap
    +

  • +
  • setHelp (anchor, appname = QString .null) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    anchorQString
    appnameQStringQString .null
    +

  • +
  • setHelpLinkText (text) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    textQString
    +

  • +
  • setIconListAllVisible (state) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    statebool
    +

  • +
  • setInitialSize (s, noResize = 0) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    sQSize
    noResizebool0
    +

  • +
  • setMainWidget (widget) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    widgetQWidget
    +

  • +
  • setRootIsDecorated (state) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    statebool
    +

  • +
  • setShowIconsInTreeList (state) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    statebool
    +

  • +
  • setTreeListAutoResize (state) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    statebool
    +

  • +
  • showButton (id, state) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    idKDialogBase.ButtonCode
    statebool
    +

  • +
  • showButtonApply (state) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    statebool
    +

  • +
  • showButtonCancel (state) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    statebool
    +

  • +
  • showButtonOK (state) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    statebool
    +

  • +
  • showPage (index) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    indexint
    +

  • +
  • showTile (state) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    statebool
    +

  • +
  • sizeHint () +
    +
    returns (QSize)

  • +
  • slotApply () +
    +
    returns nothing

  • +
  • slotCancel () +
    +
    returns nothing

  • +
  • slotClose () +
    +
    returns nothing

  • +
  • slotDefault () +
    +
    returns nothing

  • +
  • slotDelayedDestruct () +
    +
    returns nothing

  • +
  • slotDetails () +
    +
    returns nothing

  • +
  • slotHelp () +
    +
    returns nothing

  • +
  • slotNo () +
    +
    returns nothing

  • +
  • slotOk () +
    +
    returns nothing

  • +
  • slotTry () +
    +
    returns nothing

  • +
  • slotUser1 () +
    +
    returns nothing

  • +
  • slotUser2 () +
    +
    returns nothing

  • +
  • slotUser3 () +
    +
    returns nothing

  • +
  • slotYes () +
    +
    returns nothing

  • +
  • tryClicked () +
    +
    returns nothing

  • +
  • unfoldTreeList (persist = 0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    persistbool0
    +

  • +
  • updateBackground () +
    +
    returns nothing

  • +
  • updateGeometry () +
    +
    returns nothing

  • +
  • user1Clicked () +
    +
    returns nothing

  • +
  • user2Clicked () +
    +
    returns nothing

  • +
  • user3Clicked () +
    +
    returns nothing

  • +
  • yesClicked () +
    +
    returns nothing

  • +
+ + + diff --git a/doc/classref/kdeui/KDialogQueue.html b/doc/classref/kdeui/KDialogQueue.html new file mode 100644 index 0000000..e2ef837 --- /dev/null +++ b/doc/classref/kdeui/KDialogQueue.html @@ -0,0 +1,55 @@ + + + + + class KDialogQueue + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KDialogQueue


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKDialogQueue
InheritsQObject
+

methods

    +
  • KDialogQueue () +
    +
    returns a KDialogQueue instance

  • +
  • queueDialog (a0) +
    + +
    returns nothing
    static
    + +
    ArgumentTypeDefault
    a0QDialog
    +

  • +
  • self () +
    + +
    returns (KDialogQueue)
    static

  • +
+ + + diff --git a/doc/classref/kdeui/KDockArea.html b/doc/classref/kdeui/KDockArea.html new file mode 100644 index 0000000..92f6136 --- /dev/null +++ b/doc/classref/kdeui/KDockArea.html @@ -0,0 +1,135 @@ + + + + + class KDockArea + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KDockArea


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKDockArea
InheritsQWidget
+

methods

    +
  • KDockArea (parent = 0, name = 0) +
    +
    returns a KDockArea instance
    + + +
    ArgumentTypeDefault
    parentQWidget0
    namechar0
    +

  • +
  • activateDock () +
    +
    returns nothing

  • +
  • createDockWidget (name, pixmap, parent = 0, strCaption = 0, strTabPageLabel = " ") +
    +
    returns (KDockWidget)
    + + + + + +
    ArgumentTypeDefault
    nameQString
    pixmapQPixmap
    parentQWidget0
    strCaptionQString0
    strTabPageLabelQString" "
    +

  • +
  • dockHideShowMenu () +
    +
    returns (QPopupMenu)

  • +
  • dockWidgetHasUndocked (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KDockWidget
    +

  • +
  • getMainDockWidget () +
    +
    returns (KDockWidget)

  • +
  • makeDockInvisible (dock) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    dockKDockWidget
    +

  • +
  • makeDockVisible (dock) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    dockKDockWidget
    +

  • +
  • makeWidgetDockVisible (widget) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    widgetQWidget
    +

  • +
  • manager () +
    +
    returns (KDockManager)

  • +
  • readDockConfig (base) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    baseQDomElement
    +

  • +
  • readDockConfig (c = 0, group = QString .null) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    cKConfig0
    groupQStringQString .null
    +

  • +
  • resizeEvent (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QResizeEvent
    +

  • +
  • setMainDockWidget (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KDockWidget
    +

  • +
  • slotDockWidgetUndocked () +
    +
    returns nothing

  • +
  • writeDockConfig (base) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    baseQDomElement
    +

  • +
  • writeDockConfig (c = 0, group = QString .null) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    cKConfig0
    groupQStringQString .null
    +

  • +
+ + + diff --git a/doc/classref/kdeui/KDockMainWindow.html b/doc/classref/kdeui/KDockMainWindow.html new file mode 100644 index 0000000..6342250 --- /dev/null +++ b/doc/classref/kdeui/KDockMainWindow.html @@ -0,0 +1,136 @@ + + + + + class KDockMainWindow + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KDockMainWindow


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKDockMainWindow
InheritsKMainWindow
+

methods

    +
  • KDockMainWindow (parent = 0, name = 0, f = WType_TopLevel | WDestructiveClose) +
    +
    returns a KDockMainWindow instance
    + + + +
    ArgumentTypeDefault
    parentQWidget0
    namechar0
    fWFlagsWType_TopLevel | WDestructiveClose
    +

  • +
  • activateDock () +
    +
    returns nothing

  • +
  • createDockWidget (name, pixmap, parent = 0, strCaption = 0, strTabPageLabel = " ") +
    +
    returns (KDockWidget)
    + + + + + +
    ArgumentTypeDefault
    nameQString
    pixmapQPixmap
    parentQWidget0
    strCaptionQString0
    strTabPageLabelQString" "
    +

  • +
  • dockHideShowMenu () +
    +
    returns (QPopupMenu)

  • +
  • dockWidgetHasUndocked (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KDockWidget
    +

  • +
  • getMainDockWidget () +
    +
    returns (KDockWidget)

  • +
  • makeDockInvisible (dock) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    dockKDockWidget
    +

  • +
  • makeDockVisible (dock) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    dockKDockWidget
    +

  • +
  • makeWidgetDockVisible (widget) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    widgetQWidget
    +

  • +
  • manager () +
    +
    returns (KDockManager)

  • +
  • readDockConfig (base) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    baseQDomElement
    +

  • +
  • readDockConfig (c = 0, group = QString .null) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    cKConfig0
    groupQStringQString .null
    +

  • +
  • setMainDockWidget (dockwidget) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    dockwidgetKDockWidget
    +

  • +
  • setView (widget) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    widgetQWidget
    +

  • +
  • slotDockWidgetUndocked () +
    +
    returns nothing

  • +
  • writeDockConfig (base) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    baseQDomElement
    +

  • +
  • writeDockConfig (c = 0, group = QString .null) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    cKConfig0
    groupQStringQString .null
    +

  • +
+ + + diff --git a/doc/classref/kdeui/KDockManager.html b/doc/classref/kdeui/KDockManager.html new file mode 100644 index 0000000..e78a133 --- /dev/null +++ b/doc/classref/kdeui/KDockManager.html @@ -0,0 +1,208 @@ + + + + + class KDockManager + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KDockManager


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKDockManager
InheritsQObject
+

enums

    +
  • EnReadDockConfigMode = {Unknown, WrapExistingWidgetsOnly, RestoreAllDockwidgets +}
+

methods

    +
  • KDockManager (mainWindow, name = 0) +
    +
    returns a KDockManager instance
    + + +
    ArgumentTypeDefault
    mainWindowQWidget
    namechar0
    +

  • +
  • activate () +
    +
    returns nothing

  • +
  • change () +
    +
    returns nothing

  • +
  • dockHideShowMenu () +
    +
    returns (QPopupMenu)

  • +
  • dumpDockWidgets () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • eventFilter (object, event) +
    +
    returns (bool)
    + + +
    ArgumentTypeDefault
    objectQObject
    eventQEvent
    +

  • +
  • findWidgetParentDock (w) +
    +
    returns (KDockWidget)
    + +
    ArgumentTypeDefault
    wQWidget
    +

  • +
  • finishReadDockConfig () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • getDockWidgetFromName (dockName) +
    +
    returns (KDockWidget)
    + +
    ArgumentTypeDefault
    dockNameQString
    +

  • +
  • makeWidgetDockVisible (w) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    wQWidget
    +

  • +
  • readConfig (c = 0, group = QString .null) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    cKConfig0
    groupQStringQString .null
    +

  • +
  • readConfig (base) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    baseQDomElement
    +

  • +
  • removeFromAutoCreateList (pDockWidget) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    pDockWidgetKDockWidget
    +

  • +
  • replaceDock (oldDock, newDock) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    oldDockKDockWidget
    newDockKDockWidget
    +

  • +
  • setDockDefaultPos (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KDockWidget
    +

  • +
  • setMainDockWidget2 (a0) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    a0KDockWidget
    +

  • +
  • setReadDockConfigMode (mode) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    modeint
    +

  • +
  • setSpecialBottomDockContainer (container) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    containerKDockWidget
    +

  • +
  • setSpecialLeftDockContainer (container) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    containerKDockWidget
    +

  • +
  • setSpecialRightDockContainer (container) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    containerKDockWidget
    +

  • +
  • setSpecialTopDockContainer (container) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    containerKDockWidget
    +

  • +
  • setSplitterHighResolution (b = 1) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    bbool1
    +

  • +
  • setSplitterKeepSize (b = 1) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    bbool1
    +

  • +
  • setSplitterOpaqueResize (b = 1) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    bbool1
    +

  • +
  • splitterHighResolution () +
    +
    returns (bool)

  • +
  • splitterKeepSize () +
    +
    returns (bool)

  • +
  • splitterOpaqueResize () +
    +
    returns (bool)

  • +
  • writeConfig (c = 0, group = QString .null) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    cKConfig0
    groupQStringQString .null
    +

  • +
  • writeConfig (base) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    baseQDomElement
    +

  • +
+ + + diff --git a/doc/classref/kdeui/KDockTabGroup.html b/doc/classref/kdeui/KDockTabGroup.html new file mode 100644 index 0000000..63bb856 --- /dev/null +++ b/doc/classref/kdeui/KDockTabGroup.html @@ -0,0 +1,52 @@ + + + + + class KDockTabGroup + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KDockTabGroup


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKDockTabGroup
InheritsQTabWidget
+

methods

    +
  • KDockTabGroup (parent = 0, name = 0) +
    +
    returns a KDockTabGroup instance
    + + +
    ArgumentTypeDefault
    parentQWidget0
    namechar0
    +

  • +
  • transientTo () +
    + +
    returns (QWidget)
    In versions KDE 3.2.0 and above only

  • +
+ + + diff --git a/doc/classref/kdeui/KDockWidget.html b/doc/classref/kdeui/KDockWidget.html new file mode 100644 index 0000000..74a11d0 --- /dev/null +++ b/doc/classref/kdeui/KDockWidget.html @@ -0,0 +1,320 @@ + + + + + class KDockWidget + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KDockWidget


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKDockWidget
InheritsQWidget
+

enums

    +
  • DockPosition = {DockNone, DockTop, DockLeft, DockRight, DockBottom, DockCenter, DockDesktop, DockToSpecialSites, DockCorner, DockFullSite, DockFullDocking +}
  • DockPosition = {DockNone, DockTop, DockLeft, DockRight, DockBottom, DockCenter, DockDesktop, DockCorner, DockFullSite, DockFullDocking +}
+

methods

    +
  • KDockWidget (dockManager, name, pixmap, parent = 0, strCaption = 0, strTabPageLabel = " ", f = 0) +
    +
    returns a KDockWidget instance
    + + + + + + + +
    ArgumentTypeDefault
    dockManagerKDockManager
    namechar
    pixmapQPixmap
    parentQWidget0
    strCaptionQString0
    strTabPageLabelQString" "
    fWFlags0
    +

  • +
  • changeHideShowState () +
    +
    returns nothing

  • +
  • currentDockPosition () +
    + +
    returns (KDockWidget.DockPosition)
    In versions KDE 3.3.0 and above only

  • +
  • dockBack () +
    +
    returns nothing

  • +
  • dockManager () +
    +
    returns (KDockManager)

  • +
  • dockSite () +
    +
    returns (int)

  • +
  • docking (dw, dp) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    dwKDockWidget
    dpKDockWidget.DockPosition
    +

  • +
  • enableDocking () +
    +
    returns (int)

  • +
  • event (a0) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    a0QEvent
    +

  • +
  • findNearestDockWidget (pos) +
    + +
    returns (KDockWidget)
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    posKDockWidget.DockPosition
    +

  • +
  • forcedFixedHeight () +
    + +
    returns (int)
    In versions KDE 3.1.0 and above only

  • +
  • forcedFixedWidth () +
    + +
    returns (int)
    In versions KDE 3.1.0 and above only

  • +
  • getHeader () +
    + +
    returns (KDockWidgetAbstractHeader)
    In versions KDE 3.2.0 and above only

  • +
  • getWidget () +
    +
    returns (QWidget)

  • +
  • hasUndocked () +
    +
    returns nothing

  • +
  • headerCloseButtonClicked () +
    +
    returns nothing

  • +
  • headerDockbackButtonClicked () +
    +
    returns nothing

  • +
  • iMBeingClosed () +
    +
    returns nothing

  • +
  • isDockBackPossible () +
    +
    returns (bool)

  • +
  • latestKDockContainer () +
    + +
    returns (QWidget)
    In versions KDE 3.1.0 and above only

  • +
  • leaveEvent (a0) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    a0QEvent
    +

  • +
  • loseFormerBrotherDockWidget () +
    +
    returns nothing

  • +
  • makeDockVisible () +
    +
    returns nothing

  • +
  • manualDock (target, dockPos, spliPos = 50, pos = QPoint (0 ,0 ), check = 0, tabIndex = -1) +
    +
    returns (KDockWidget)
    + + + + + + +
    ArgumentTypeDefault
    targetKDockWidget
    dockPosKDockWidget.DockPosition
    spliPosint50
    posQPointQPoint (0 ,0 )
    checkbool0
    tabIndexint-1
    +

  • +
  • mayBeHide () +
    +
    returns (bool)

  • +
  • mayBeShow () +
    +
    returns (bool)

  • +
  • mouseMoveEvent (a0) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    a0QMouseEvent
    +

  • +
  • mousePressEvent (a0) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    a0QMouseEvent
    +

  • +
  • mouseReleaseEvent (a0) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    a0QMouseEvent
    +

  • +
  • paintEvent (a0) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    a0QPaintEvent
    +

  • +
  • parentDockContainer () +
    + +
    returns (QWidget)
    In versions KDE 3.1.0 and above only

  • +
  • parentDockTabGroup () +
    +
    returns (KDockTabGroup)

  • +
  • pixmap () +
    + +
    returns (QPixmap)
    In versions KDE 3.2.0 and above only

  • +
  • restoreFromForcedFixedSize () +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only

  • +
  • setDockDefaultPos () +
    +
    returns nothing

  • +
  • setDockSite (pos) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    posint
    +

  • +
  • setDockWindowTransient (parent, transientEnabled) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    parentQWidget
    transientEnabledbool
    +

  • +
  • setDockWindowType (windowType) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    windowTypeNET.WindowType
    +

  • +
  • setEnableDocking (pos) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    posint
    +

  • +
  • setForcedFixedHeight (a0) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • setForcedFixedWidth (a0) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • setFormerBrotherDockWidget (a0) +
    + +
    returns nothing
    In versions KDE 3.2.1 and above only
    + +
    ArgumentTypeDefault
    a0KDockWidget
    +

  • +
  • setHeader (ah) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    ahKDockWidgetAbstractHeader
    +

  • +
  • setLatestKDockContainer (a0) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    a0QWidget
    +

  • +
  • setPixmap (pixmap = QPixmap ()) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    pixmapQPixmapQPixmap ()
    +

  • +
  • setTabPageLabel (label) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    labelQString
    +

  • +
  • setToolTipString (ttStr) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    ttStrQString
    +

  • +
  • setWidget (w) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    wQWidget
    +

  • +
  • show () +
    +
    returns nothing

  • +
  • tabPageLabel () +
    +
    returns (QString)

  • +
  • toDesktop () +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only

  • +
  • toolTipString () +
    +
    returns (QString)

  • +
  • transientTo () +
    + +
    returns (QWidget)
    In versions KDE 3.2.0 and above only

  • +
  • undock () +
    +
    returns nothing

  • +
  • updateHeader () +
    +
    returns nothing

  • +
  • widgetSet (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0QWidget
    +

  • +
+ + + diff --git a/doc/classref/kdeui/KDockWidgetAbstractHeader.html b/doc/classref/kdeui/KDockWidgetAbstractHeader.html new file mode 100644 index 0000000..4ee31b8 --- /dev/null +++ b/doc/classref/kdeui/KDockWidgetAbstractHeader.html @@ -0,0 +1,66 @@ + + + + + class KDockWidgetAbstractHeader + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KDockWidgetAbstractHeader


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKDockWidgetAbstractHeader
InheritsQFrame
+

methods

    +
  • KDockWidgetAbstractHeader (parent, name = 0) +
    +
    returns a KDockWidgetAbstractHeader instance
    + + +
    ArgumentTypeDefault
    parentKDockWidget
    namechar0
    +

  • +
  • loadConfig (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KConfig
    +

  • +
  • saveConfig (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KConfig
    +

  • +
  • setTopLevel (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
+ + + diff --git a/doc/classref/kdeui/KDockWidgetAbstractHeaderDrag.html b/doc/classref/kdeui/KDockWidgetAbstractHeaderDrag.html new file mode 100644 index 0000000..7776ce5 --- /dev/null +++ b/doc/classref/kdeui/KDockWidgetAbstractHeaderDrag.html @@ -0,0 +1,52 @@ + + + + + class KDockWidgetAbstractHeaderDrag + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KDockWidgetAbstractHeaderDrag


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKDockWidgetAbstractHeaderDrag
InheritsQFrame
+

methods

    +
  • KDockWidgetAbstractHeaderDrag (parent, dock, name = 0) +
    +
    returns a KDockWidgetAbstractHeaderDrag instance
    + + + +
    ArgumentTypeDefault
    parentKDockWidgetAbstractHeader
    dockKDockWidget
    namechar0
    +

  • +
  • dockWidget () +
    +
    returns (KDockWidget)

  • +
+ + + diff --git a/doc/classref/kdeui/KDockWidgetHeader.html b/doc/classref/kdeui/KDockWidgetHeader.html new file mode 100644 index 0000000..fe4b340 --- /dev/null +++ b/doc/classref/kdeui/KDockWidgetHeader.html @@ -0,0 +1,108 @@ + + + + + class KDockWidgetHeader + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KDockWidgetHeader


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKDockWidgetHeader
InheritsKDockWidgetAbstractHeader
+

methods

    +
  • KDockWidgetHeader (parent, name = 0) +
    +
    returns a KDockWidgetHeader instance
    + + +
    ArgumentTypeDefault
    parentKDockWidget
    namechar0
    +

  • +
  • addButton (a0) +
    Not Implemented
    +

  • +
  • dragEnabled () +
    +
    returns (bool)

  • +
  • dragPanel () +
    + +
    returns (KDockWidgetHeaderDrag)
    In versions KDE 3.4.0 and above only

  • +
  • forceCloseButtonHidden (enable = 1) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    enablebool1
    +

  • +
  • loadConfig (c) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    cKConfig
    +

  • +
  • removeButton (a0) +
    Not Implemented
    +

  • +
  • saveConfig (c) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    cKConfig
    +

  • +
  • setDragEnabled (b) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    bbool
    +

  • +
  • setDragPanel (nd) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    ndKDockWidgetHeaderDrag
    +

  • +
  • setTopLevel (t) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    tbool
    +

  • +
  • showUndockButton (show) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    showbool
    +

  • +
  • slotStayClicked () +
    +
    returns nothing

  • +
+ + + diff --git a/doc/classref/kdeui/KDockWidgetHeaderDrag.html b/doc/classref/kdeui/KDockWidgetHeaderDrag.html new file mode 100644 index 0000000..e6e7c96 --- /dev/null +++ b/doc/classref/kdeui/KDockWidgetHeaderDrag.html @@ -0,0 +1,55 @@ + + + + + class KDockWidgetHeaderDrag + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KDockWidgetHeaderDrag


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKDockWidgetHeaderDrag
InheritsKDockWidgetAbstractHeaderDrag
+

methods

    +
  • KDockWidgetHeaderDrag (parent, dock, name = 0) +
    +
    returns a KDockWidgetHeaderDrag instance
    + + + +
    ArgumentTypeDefault
    parentKDockWidgetAbstractHeader
    dockKDockWidget
    namechar0
    +

  • +
  • paintEvent (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QPaintEvent
    +

  • +
+ + + diff --git a/doc/classref/kdeui/KDockWindow.html b/doc/classref/kdeui/KDockWindow.html new file mode 100644 index 0000000..bdb6532 --- /dev/null +++ b/doc/classref/kdeui/KDockWindow.html @@ -0,0 +1,48 @@ + + + + + class KDockWindow + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KDockWindow


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKDockWindow
InheritsKSystemTray
+

methods

    +
  • KDockWindow (parent = 0, name = 0) +
    +
    returns a KDockWindow instance
    + + +
    ArgumentTypeDefault
    parentQWidget0
    namechar0
    +

  • +
+ + + diff --git a/doc/classref/kdeui/KDoubleNumInput.html b/doc/classref/kdeui/KDoubleNumInput.html new file mode 100644 index 0000000..e873cf0 --- /dev/null +++ b/doc/classref/kdeui/KDoubleNumInput.html @@ -0,0 +1,228 @@ + + + + + class KDoubleNumInput + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KDoubleNumInput


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKDoubleNumInput
InheritsKNumInput
+

methods

    +
  • KDoubleNumInput (parent = 0, name = 0) +
    +
    returns a KDoubleNumInput instance
    + + +
    ArgumentTypeDefault
    parentQWidget0
    namechar0
    +

  • +
  • KDoubleNumInput (value, parent = 0, name = 0) +
    +
    returns a KDoubleNumInput instance
    + + + +
    ArgumentTypeDefault
    valuedouble
    parentQWidget0
    namechar0
    +

  • +
  • KDoubleNumInput (lower, upper, value, step = 0.01, precision = 2, parent = 0, name = 0) +
    + +
    returns a KDoubleNumInput instance
    In versions KDE 3.1.0 and above only
    + + + + + + + +
    ArgumentTypeDefault
    lowerdouble
    upperdouble
    valuedouble
    stepdouble0.01
    precisionint2
    parentQWidget0
    namechar0
    +

  • +
  • KDoubleNumInput (below, value, parent = 0, name = 0) +
    +
    returns a KDoubleNumInput instance
    + + + + +
    ArgumentTypeDefault
    belowKNumInput
    valuedouble
    parentQWidget0
    namechar0
    +

  • +
  • KDoubleNumInput (below, lower, upper, value, step = 0.02, precision = 2, parent = 0, name = 0) +
    + +
    returns a KDoubleNumInput instance
    In versions KDE 3.1.0 and above only
    + + + + + + + + +
    ArgumentTypeDefault
    belowKNumInput
    lowerdouble
    upperdouble
    valuedouble
    stepdouble0.02
    precisionint2
    parentQWidget0
    namechar0
    +

  • +
  • doLayout () +
    +
    returns nothing

  • +
  • eventFilter (a0, a1) +
    +
    returns (bool)
    + + +
    ArgumentTypeDefault
    a0QObject
    a1QEvent
    +

  • +
  • maxValue () +
    +
    returns (double)

  • +
  • minValue () +
    +
    returns (double)

  • +
  • minimumSizeHint () +
    +
    returns (QSize)

  • +
  • precision () +
    +
    returns (int)

  • +
  • prefix () +
    +
    returns (QString)

  • +
  • referencePoint () +
    + +
    returns (double)
    In versions KDE 3.1.0 and above only

  • +
  • relativeValue () +
    + +
    returns (double)
    In versions KDE 3.1.0 and above only

  • +
  • relativeValueChanged (a0) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    a0double
    +

  • +
  • resetEditBox () +
    +
    returns nothing

  • +
  • resizeEvent (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QResizeEvent
    +

  • +
  • setLabel (label, a = AlignLeft | AlignTop) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    labelQString
    aintAlignLeft | AlignTop
    +

  • +
  • setMaxValue (max) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    maxdouble
    +

  • +
  • setMinValue (min) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    mindouble
    +

  • +
  • setPrecision (precision) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    precisionint
    +

  • +
  • setPrefix (prefix) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    prefixQString
    +

  • +
  • setRange (min, max, step = 1, slider = 1) +
    +
    returns nothing
    + + + + +
    ArgumentTypeDefault
    mindouble
    maxdouble
    stepdouble1
    sliderbool1
    +

  • +
  • setReferencePoint (ref) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    refdouble
    +

  • +
  • setRelativeValue (a0) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    a0double
    +

  • +
  • setSpecialValueText (text) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    textQString
    +

  • +
  • setSuffix (suffix) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    suffixQString
    +

  • +
  • setValue (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0double
    +

  • +
  • specialValueText () +
    +
    returns (QString)

  • +
  • suffix () +
    +
    returns (QString)

  • +
  • value () +
    +
    returns (double)

  • +
  • valueChanged (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0double
    +

  • +
+ + + diff --git a/doc/classref/kdeui/KDoubleSpinBox.html b/doc/classref/kdeui/KDoubleSpinBox.html new file mode 100644 index 0000000..de370b8 --- /dev/null +++ b/doc/classref/kdeui/KDoubleSpinBox.html @@ -0,0 +1,177 @@ + + + + + class KDoubleSpinBox + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KDoubleSpinBox


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKDoubleSpinBox
InheritsQSpinBox
+

methods

    +
  • KDoubleSpinBox (parent = 0, name = 0) +
    + +
    returns a KDoubleSpinBox instance
    In versions KDE 3.1.0 and above only
    + + +
    ArgumentTypeDefault
    parentQWidget0
    namechar0
    +

  • +
  • KDoubleSpinBox (lower, upper, step, value, precision = 2, parent = 0, name = 0) +
    + +
    returns a KDoubleSpinBox instance
    In versions KDE 3.1.0 and above only
    + + + + + + + +
    ArgumentTypeDefault
    lowerdouble
    upperdouble
    stepdouble
    valuedouble
    precisionint2
    parentQWidget0
    namechar0
    +

  • +
  • acceptLocalizedNumbers () +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above only

  • +
  • lineStep () +
    + +
    returns (double)
    In versions KDE 3.1.0 and above only

  • +
  • mapTextToValue () +
    Not Implemented
    +

  • +
  • mapValueToText (a0) +
    + +
    returns (QString)
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • maxValue () +
    + +
    returns (double)
    In versions KDE 3.1.0 and above only

  • +
  • minValue () +
    + +
    returns (double)
    In versions KDE 3.1.0 and above only

  • +
  • precision () +
    + +
    returns (int)
    In versions KDE 3.1.0 and above only

  • +
  • setAcceptLocalizedNumbers (accept) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    acceptbool
    +

  • +
  • setLineStep (step) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    stepdouble
    +

  • +
  • setMaxValue (value) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    valuedouble
    +

  • +
  • setMinValue (value) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    valuedouble
    +

  • +
  • setPrecision (precision) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    precisionint
    +

  • +
  • setPrecision (precision, force) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + + +
    ArgumentTypeDefault
    precisionint
    forcebool
    +

  • +
  • setRange (lower, upper, step = 0.01, precision = 2) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + + + + +
    ArgumentTypeDefault
    lowerdouble
    upperdouble
    stepdouble0.01
    precisionint2
    +

  • +
  • setValidator (a0) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    a0QValidator
    +

  • +
  • setValue (value) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    valuedouble
    +

  • +
  • slotValueChanged (value) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    valueint
    +

  • +
  • value () +
    + +
    returns (double)
    In versions KDE 3.1.0 and above only

  • +
  • valueChanged (value) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    valuedouble
    +

  • +
+ + + diff --git a/doc/classref/kdeui/KDoubleValidator.html b/doc/classref/kdeui/KDoubleValidator.html new file mode 100644 index 0000000..9ed7610 --- /dev/null +++ b/doc/classref/kdeui/KDoubleValidator.html @@ -0,0 +1,78 @@ + + + + + class KDoubleValidator + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KDoubleValidator


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKDoubleValidator
InheritsQDoubleValidator
+

methods

    +
  • KDoubleValidator (parent, name = 0) +
    + +
    returns a KDoubleValidator instance
    In versions KDE 3.1.0 and above only
    + + +
    ArgumentTypeDefault
    parentQObject
    namechar0
    +

  • +
  • KDoubleValidator (bottom, top, decimals, parent, name = 0) +
    + +
    returns a KDoubleValidator instance
    In versions KDE 3.1.0 and above only
    + + + + + +
    ArgumentTypeDefault
    bottomdouble
    topdouble
    decimalsint
    parentQObject
    namechar0
    +

  • +
  • acceptLocalizedNumbers () +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above only

  • +
  • setAcceptLocalizedNumbers (accept) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    acceptbool
    +

  • +
  • validate (input) +
    + +
    returns (QValidator.State) pos (int)
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    inputQString
    +

  • +
+ + + diff --git a/doc/classref/kdeui/KDualColorButton.html b/doc/classref/kdeui/KDualColorButton.html new file mode 100644 index 0000000..a4bd066 --- /dev/null +++ b/doc/classref/kdeui/KDualColorButton.html @@ -0,0 +1,162 @@ + + + + + class KDualColorButton + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KDualColorButton


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKDualColorButton
InheritsQWidget
+

enums

    +
  • DualColor = {Foreground, Background +}
+

methods

    +
  • KDualColorButton (parent = 0, name = 0, dialogParent = 0) +
    +
    returns a KDualColorButton instance
    + + + +
    ArgumentTypeDefault
    parentQWidget0
    namechar0
    dialogParentQWidget0
    +

  • +
  • KDualColorButton (fgColor, bgColor, parent = 0, name = 0, dialogParent = 0) +
    +
    returns a KDualColorButton instance
    + + + + + +
    ArgumentTypeDefault
    fgColorQColor
    bgColorQColor
    parentQWidget0
    namechar0
    dialogParentQWidget0
    +

  • +
  • background () +
    +
    returns (QColor)

  • +
  • bgChanged (c) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    cQColor
    +

  • +
  • current () +
    +
    returns (KDualColorButton.DualColor)

  • +
  • currentChanged (s) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    sKDualColorButton.DualColor
    +

  • +
  • currentColor () +
    +
    returns (QColor)

  • +
  • dragEnterEvent (ev) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    evQDragEnterEvent
    +

  • +
  • dropEvent (ev) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    evQDropEvent
    +

  • +
  • fgChanged (c) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    cQColor
    +

  • +
  • foreground () +
    +
    returns (QColor)

  • +
  • metrics (fgRect, bgRect) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    fgRectQRect
    bgRectQRect
    +

  • +
  • mouseMoveEvent (ev) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    evQMouseEvent
    +

  • +
  • mousePressEvent (ev) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    evQMouseEvent
    +

  • +
  • mouseReleaseEvent (ev) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    evQMouseEvent
    +

  • +
  • paintEvent (ev) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    evQPaintEvent
    +

  • +
  • setBackground (c) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    cQColor
    +

  • +
  • setCurrent (s) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    sKDualColorButton.DualColor
    +

  • +
  • setCurrentColor (c) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    cQColor
    +

  • +
  • setForeground (c) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    cQColor
    +

  • +
  • sizeHint () +
    +
    returns (QSize)

  • +
+ + + diff --git a/doc/classref/kdeui/KEdFind.html b/doc/classref/kdeui/KEdFind.html new file mode 100644 index 0000000..d38b945 --- /dev/null +++ b/doc/classref/kdeui/KEdFind.html @@ -0,0 +1,103 @@ + + + + + class KEdFind + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KEdFind


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKEdFind
InheritsKDialogBase
+

methods

    +
  • KEdFind (parent = 0, name = 0, modal = 1) +
    +
    returns a KEdFind instance
    + + + +
    ArgumentTypeDefault
    parentQWidget0
    namechar0
    modalbool1
    +

  • +
  • case_sensitive () +
    +
    returns (bool)

  • +
  • done () +
    +
    returns nothing

  • +
  • done (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • getText () +
    +
    returns (QString)

  • +
  • get_direction () +
    +
    returns (bool)

  • +
  • search () +
    +
    returns nothing

  • +
  • searchCombo () +
    +
    returns (KHistoryCombo)

  • +
  • setCaseSensitive (b) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    bbool
    +

  • +
  • setDirection (b) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    bbool
    +

  • +
  • setText (string) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    stringQString
    +

  • +
  • slotCancel () +
    +
    returns nothing

  • +
  • slotUser1 () +
    +
    returns nothing

  • +
  • textSearchChanged (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
+ + + diff --git a/doc/classref/kdeui/KEdGotoLine.html b/doc/classref/kdeui/KEdGotoLine.html new file mode 100644 index 0000000..5a9acb7 --- /dev/null +++ b/doc/classref/kdeui/KEdGotoLine.html @@ -0,0 +1,58 @@ + + + + + class KEdGotoLine + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KEdGotoLine


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKEdGotoLine
InheritsKDialogBase
+

methods

    +
  • KEdGotoLine (parent = 0, name = 0, modal = 1) +
    +
    returns a KEdGotoLine instance
    + + + +
    ArgumentTypeDefault
    parentQWidget0
    namechar0
    modalbool1
    +

  • +
  • getLineNumber () +
    +
    returns (int)

  • +
  • selected (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
+ + + diff --git a/doc/classref/kdeui/KEdReplace.html b/doc/classref/kdeui/KEdReplace.html new file mode 100644 index 0000000..3137e5d --- /dev/null +++ b/doc/classref/kdeui/KEdReplace.html @@ -0,0 +1,112 @@ + + + + + class KEdReplace + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KEdReplace


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKEdReplace
InheritsKDialogBase
+

methods

    +
  • KEdReplace (parent = 0, name = 0, modal = 1) +
    +
    returns a KEdReplace instance
    + + + +
    ArgumentTypeDefault
    parentQWidget0
    namechar0
    modalbool1
    +

  • +
  • case_sensitive () +
    +
    returns (bool)

  • +
  • done () +
    +
    returns nothing

  • +
  • done (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • find () +
    +
    returns nothing

  • +
  • getReplaceText () +
    +
    returns (QString)

  • +
  • getText () +
    +
    returns (QString)

  • +
  • get_direction () +
    +
    returns (bool)

  • +
  • replace () +
    +
    returns nothing

  • +
  • replaceAll () +
    +
    returns nothing

  • +
  • replaceCombo () +
    +
    returns (KHistoryCombo)

  • +
  • searchCombo () +
    +
    returns (KHistoryCombo)

  • +
  • setText (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • slotCancel () +
    +
    returns nothing

  • +
  • slotClose () +
    +
    returns nothing

  • +
  • slotUser1 () +
    +
    returns nothing

  • +
  • slotUser2 () +
    +
    returns nothing

  • +
  • slotUser3 () +
    +
    returns nothing

  • +
  • textSearchChanged (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
+ + + diff --git a/doc/classref/kdeui/KEdit.html b/doc/classref/kdeui/KEdit.html new file mode 100644 index 0000000..c3ff4e4 --- /dev/null +++ b/doc/classref/kdeui/KEdit.html @@ -0,0 +1,264 @@ + + + + + class KEdit + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KEdit


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKEdit
InheritsQMultiLineEdit
+

enums

    +
  • (anonymous) = {NONE, FORWARD, BACKWARD +}
+

methods

    +
  • CursorPositionChanged () +
    +
    returns nothing

  • +
  • KEdit (_parent = 0, name = 0) +
    +
    returns a KEdit instance
    + + +
    ArgumentTypeDefault
    _parentQWidget0
    namechar0
    +

  • +
  • cleanWhiteSpace () +
    +
    returns nothing

  • +
  • computePosition () +
    +
    returns nothing

  • +
  • contentsDragEnterEvent (e) +
    + +
    returns nothing
    In versions KDE 3.1.3 and above only
    + +
    ArgumentTypeDefault
    eQDragEnterEvent
    +

  • +
  • contentsDragMoveEvent (e) +
    + +
    returns nothing
    In versions KDE 3.1.3 and above only
    + +
    ArgumentTypeDefault
    eQDragMoveEvent
    +

  • +
  • contentsDropEvent (e) +
    + +
    returns nothing
    In versions KDE 3.1.3 and above only
    + +
    ArgumentTypeDefault
    eQDropEvent
    +

  • +
  • corrected (originalword, newword, pos) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + + + +
    ArgumentTypeDefault
    originalwordQString
    newwordQString
    posuint
    +

  • +
  • create (a0 = 0, initializeWindow = 1, destroyOldWindow = 1) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    a0WId0
    initializeWindowbool1
    destroyOldWindowbool1
    +

  • +
  • createPopupMenu (pos) +
    + +
    returns (QPopupMenu)
    In versions KDE 3.2.3 and above only
    + +
    ArgumentTypeDefault
    posQPoint
    +

  • +
  • currentColumn () +
    +
    returns (int)

  • +
  • currentLine () +
    +
    returns (int)

  • +
  • doGotoLine () +
    +
    returns nothing

  • +
  • doReplace (s_pattern, case_sensitive, regex, forward, line, col, replace) +
    +
    returns (int)
    + + + + + + + +
    ArgumentTypeDefault
    s_patternQString
    case_sensitivebool
    regexbool
    forwardbool
    lineint
    colint
    replacebool
    +

  • +
  • doSearch (s_pattern, case_sensitive, regex, forward, line, col) +
    +
    returns (int)
    + + + + + + +
    ArgumentTypeDefault
    s_patternQString
    case_sensitivebool
    regexbool
    forwardbool
    lineint
    colint
    +

  • +
  • dragEnterEvent (e) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    eQDragEnterEvent
    +

  • +
  • dragMoveEvent (e) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    eQDragMoveEvent
    +

  • +
  • dropEvent (e) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    eQDropEvent
    +

  • +
  • ensureCursorVisible () +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only

  • +
  • gotUrlDrop (e) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    eQDropEvent
    +

  • +
  • insertText (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QTextStream
    +

  • +
  • installRBPopup (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QPopupMenu
    +

  • +
  • keyPressEvent (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QKeyEvent
    +

  • +
  • misspelling (word, a0, pos) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + + + +
    ArgumentTypeDefault
    wordQString
    a0QStringList
    posuint
    +

  • +
  • posToRowCol (pos) +
    +
    returns line (uint) col (uint)
    + +
    ArgumentTypeDefault
    posuint
    +

  • +
  • repeatSearch () +
    +
    returns (bool)

  • +
  • replace () +
    +
    returns nothing

  • +
  • saveText (a0, softWrap) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + + +
    ArgumentTypeDefault
    a0QTextStream
    softWrapbool
    +

  • +
  • saveText (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QTextStream
    +

  • +
  • search () +
    +
    returns nothing

  • +
  • selectFont () +
    +
    returns nothing

  • +
  • selectWordUnderCursor () +
    + +
    returns (QString)
    In versions KDE 3.2.0 and above only

  • +
  • setAutoUpdate (b) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    bbool
    +

  • +
  • setCursor (a0) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    a0QCursor
    +

  • +
  • setOverwriteEnabled (b) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    bbool
    +

  • +
  • spellcheck_start () +
    +
    returns nothing

  • +
  • spellcheck_stop () +
    +
    returns nothing

  • +
  • toggle_overwrite_signal () +
    +
    returns nothing

  • +
  • viewportPaintEvent (a0) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    a0QPaintEvent
    +

  • +
+ + + diff --git a/doc/classref/kdeui/KEditListBox.CustomEditor.html b/doc/classref/kdeui/KEditListBox.CustomEditor.html new file mode 100644 index 0000000..893e2e9 --- /dev/null +++ b/doc/classref/kdeui/KEditListBox.CustomEditor.html @@ -0,0 +1,82 @@ + + + + + class KEditListBox.CustomEditor + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KEditListBox.CustomEditor


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKEditListBox.CustomEditor
Inherits
+

methods

    +
  • CustomEditor () +
    + +
    returns a CustomEditor instance
    In versions KDE 3.1.0 and above only

  • +
  • CustomEditor (repWidget, edit) +
    + +
    returns a CustomEditor instance
    In versions KDE 3.1.0 and above only
    + + +
    ArgumentTypeDefault
    repWidgetQWidget
    editKLineEdit
    +

  • +
  • CustomEditor (combo) +
    + +
    returns a CustomEditor instance
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    comboKComboBox
    +

  • +
  • lineEdit () +
    + +
    returns (KLineEdit)
    In versions KDE 3.1.0 and above only

  • +
  • representationWidget () +
    + +
    returns (QWidget)
    In versions KDE 3.1.0 and above only

  • +
  • setLineEdit (edit) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    editKLineEdit
    +

  • +
  • setRepresentationWidget (repWidget) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    repWidgetQWidget
    +

  • +
+ + + diff --git a/doc/classref/kdeui/KEditListBox.html b/doc/classref/kdeui/KEditListBox.html new file mode 100644 index 0000000..3735554 --- /dev/null +++ b/doc/classref/kdeui/KEditListBox.html @@ -0,0 +1,210 @@ + + + + + class KEditListBox + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KEditListBox


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKEditListBox
InheritsQGroupBox
+

enums

    +
  • (anonymous) = {All +}
  • Button = {Add, Remove, UpDown +}
  • Button = {Add, Remove, UpDown, All +}
+

methods

    +
  • KEditListBox (parent = 0, name = 0, checkAtEntering = 0, buttons = All) +
    +
    returns a KEditListBox instance
    + + + + +
    ArgumentTypeDefault
    parentQWidget0
    namechar0
    checkAtEnteringbool0
    buttonsintAll
    +

  • +
  • KEditListBox (title, parent = 0, name = 0, checkAtEntering = 0, buttons = All) +
    +
    returns a KEditListBox instance
    + + + + + +
    ArgumentTypeDefault
    titleQString
    parentQWidget0
    namechar0
    checkAtEnteringbool0
    buttonsintAll
    +

  • +
  • KEditListBox (title, customEditor, parent = 0, name = 0, checkAtEntering = 0, buttons = All) +
    + +
    returns a KEditListBox instance
    In versions KDE 3.1.0 and above only
    + + + + + + +
    ArgumentTypeDefault
    titleQString
    customEditorKEditListBox.CustomEditor
    parentQWidget0
    namechar0
    checkAtEnteringbool0
    buttonsintAll
    +

  • +
  • addButton () +
    +
    returns (QPushButton)

  • +
  • addItem () +
    +
    returns nothing

  • +
  • added (text) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    textQString
    +

  • +
  • buttons () +
    + +
    returns (int)
    In versions KDE 3.4.0 and above only

  • +
  • changed () +
    +
    returns nothing

  • +
  • clear () +
    +
    returns nothing

  • +
  • count () +
    +
    returns (int)

  • +
  • currentItem () +
    +
    returns (int)

  • +
  • currentText () +
    +
    returns (QString)

  • +
  • downButton () +
    +
    returns (QPushButton)

  • +
  • enableMoveButtons (index) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    indexint
    +

  • +
  • insertItem (text, index = -1) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    textQString
    indexint-1
    +

  • +
  • insertStrList (list, index = -1) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    listQStrList
    indexint-1
    +

  • +
  • insertStrList (list, index = -1) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    listQStrList
    indexint-1
    +

  • +
  • insertStrList (list, index) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    lista Python list of strings
    indexint
    +

  • +
  • insertStringList (list, index = -1) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    listQStringList
    indexint-1
    +

  • +
  • items () +
    +
    returns (QStringList)

  • +
  • lineEdit () +
    +
    returns (KLineEdit)

  • +
  • listBox () +
    +
    returns (QListBox)

  • +
  • moveItemDown () +
    +
    returns nothing

  • +
  • moveItemUp () +
    +
    returns nothing

  • +
  • removeButton () +
    +
    returns (QPushButton)

  • +
  • removeItem () +
    +
    returns nothing

  • +
  • removed (text) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    textQString
    +

  • +
  • setButtons (buttons) +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only
    + +
    ArgumentTypeDefault
    buttonsuint
    +

  • +
  • setItems (items) +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only
    + +
    ArgumentTypeDefault
    itemsQStringList
    +

  • +
  • text (index) +
    +
    returns (QString)
    + +
    ArgumentTypeDefault
    indexint
    +

  • +
  • typedSomething (text) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    textQString
    +

  • +
  • upButton () +
    +
    returns (QPushButton)

  • +
+ + + diff --git a/doc/classref/kdeui/KEditToolbar.html b/doc/classref/kdeui/KEditToolbar.html new file mode 100644 index 0000000..a8073cc --- /dev/null +++ b/doc/classref/kdeui/KEditToolbar.html @@ -0,0 +1,108 @@ + + + + + class KEditToolbar + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KEditToolbar


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKEditToolbar
InheritsKDialogBase
+

methods

    +
  • KEditToolbar (collection, xmlfile = QString .null, global = 1, parent = 0, name = 0) +
    +
    returns a KEditToolbar instance
    + + + + + +
    ArgumentTypeDefault
    collectionKActionCollection
    xmlfileQStringQString .null
    globalbool1
    parentQWidget0
    namechar0
    +

  • +
  • KEditToolbar (defaultToolbar, collection, xmlfile = QString .null, global = 1, parent = 0, name = 0) +
    + +
    returns a KEditToolbar instance
    In versions KDE 3.2.0 and above only
    + + + + + + +
    ArgumentTypeDefault
    defaultToolbarQString
    collectionKActionCollection
    xmlfileQStringQString .null
    globalbool1
    parentQWidget0
    namechar0
    +

  • +
  • KEditToolbar (factory, parent = 0, name = 0) +
    +
    returns a KEditToolbar instance
    + + + +
    ArgumentTypeDefault
    factoryKXMLGUIFactory
    parentQWidget0
    namechar0
    +

  • +
  • KEditToolbar (defaultToolbar, factory, parent = 0, name = 0) +
    + +
    returns a KEditToolbar instance
    In versions KDE 3.2.0 and above only
    + + + + +
    ArgumentTypeDefault
    defaultToolbarQString
    factoryKXMLGUIFactory
    parentQWidget0
    namechar0
    +

  • +
  • acceptOK (b) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    bbool
    +

  • +
  • newToolbarConfig () +
    +
    returns nothing

  • +
  • setDefaultToolbar (toolbarName) +
    + + +
    returns nothing
    In versions KDE 3.3.0 and above only
    static
    + +
    ArgumentTypeDefault
    toolbarNamechar
    +

  • +
  • slotApply () +
    +
    returns nothing

  • +
  • slotDefault () +
    + +
    returns nothing
    In versions KDE 3.5.0 and above only

  • +
  • slotOk () +
    +
    returns nothing

  • +
+ + + diff --git a/doc/classref/kdeui/KEditToolbarWidget.html b/doc/classref/kdeui/KEditToolbarWidget.html new file mode 100644 index 0000000..65e87c0 --- /dev/null +++ b/doc/classref/kdeui/KEditToolbarWidget.html @@ -0,0 +1,188 @@ + + + + + class KEditToolbarWidget + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KEditToolbarWidget


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKEditToolbarWidget
InheritsQWidget, KXMLGUIClient
+

methods

    +
  • KEditToolbarWidget (collection, xmlfile = QString .null, global = 1, parent = 0) +
    +
    returns a KEditToolbarWidget instance
    + + + + +
    ArgumentTypeDefault
    collectionKActionCollection
    xmlfileQStringQString .null
    globalbool1
    parentQWidget0
    +

  • +
  • KEditToolbarWidget (defaultToolbar, collection, file = QString .null, global = 1, parent = 0) +
    + +
    returns a KEditToolbarWidget instance
    In versions KDE 3.2.0 and above only
    + + + + + +
    ArgumentTypeDefault
    defaultToolbarQString
    collectionKActionCollection
    fileQStringQString .null
    globalbool1
    parentQWidget0
    +

  • +
  • KEditToolbarWidget (factory, parent = 0) +
    +
    returns a KEditToolbarWidget instance
    + + +
    ArgumentTypeDefault
    factoryKXMLGUIFactory
    parentQWidget0
    +

  • +
  • KEditToolbarWidget (defaultToolbar, factory, parent = 0) +
    + +
    returns a KEditToolbarWidget instance
    In versions KDE 3.2.0 and above only
    + + + +
    ArgumentTypeDefault
    defaultToolbarQString
    factoryKXMLGUIFactory
    parentQWidget0
    +

  • +
  • actionCollection () +
    + +
    returns (KActionCollection)
    In versions KDE 3.1.0 and above only

  • +
  • enableOk (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • initKPart (factory) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    factoryKXMLGUIFactory
    +

  • +
  • initNonKPart (collection, file, global) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + + + +
    ArgumentTypeDefault
    collectionKActionCollection
    fileQString
    globalbool
    +

  • +
  • insertActive (item, before, prepend = 0) +
    Not Implemented
    +

  • +
  • loadActionList (elem) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    elemQDomElement
    +

  • +
  • loadToolbarCombo (defaultToolbar = QString .null) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    defaultToolbarQStringQString .null
    +

  • +
  • loadToolbarCombo () +
    + +
    returns nothing
    In versions less than KDE 3.2.0 only

  • +
  • moveActive (item, before) +
    Not Implemented
    +

  • +
  • rebuildKXMLGUIClients () +
    + +
    returns nothing
    In versions KDE 3.5.0 and above only

  • +
  • removeActive (item) +
    Not Implemented
    +

  • +
  • save () +
    +
    returns (bool)

  • +
  • setupLayout () +
    +
    returns nothing

  • +
  • slotActiveSelected (item) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    itemQListViewItem
    +

  • +
  • slotChangeIcon () +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only

  • +
  • slotDownButton () +
    +
    returns nothing

  • +
  • slotDropped (list, e, after) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + + + +
    ArgumentTypeDefault
    listKListView
    eQDropEvent
    afterQListViewItem
    +

  • +
  • slotInactiveSelected (item) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    itemQListViewItem
    +

  • +
  • slotInsertButton () +
    +
    returns nothing

  • +
  • slotRemoveButton () +
    +
    returns nothing

  • +
  • slotToolbarSelected (text) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    textQString
    +

  • +
  • slotUpButton () +
    +
    returns nothing

  • +
  • updateLocal (elem) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    elemQDomElement
    +

  • +
+ + + diff --git a/doc/classref/kdeui/KFloatValidator.html b/doc/classref/kdeui/KFloatValidator.html new file mode 100644 index 0000000..ae556a2 --- /dev/null +++ b/doc/classref/kdeui/KFloatValidator.html @@ -0,0 +1,101 @@ + + + + + class KFloatValidator + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KFloatValidator


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKFloatValidator
InheritsQValidator
+

methods

    +
  • KFloatValidator (parent, name = 0) +
    +
    returns a KFloatValidator instance
    + + +
    ArgumentTypeDefault
    parentQWidget
    namechar0
    +

  • +
  • KFloatValidator (bottom, top, parent, name = 0) +
    +
    returns a KFloatValidator instance
    + + + + +
    ArgumentTypeDefault
    bottomdouble
    topdouble
    parentQWidget
    namechar0
    +

  • +
  • KFloatValidator (bottom, top, localeAware, parent, name = 0) +
    +
    returns a KFloatValidator instance
    + + + + + +
    ArgumentTypeDefault
    bottomdouble
    topdouble
    localeAwarebool
    parentQWidget
    namechar0
    +

  • +
  • acceptLocalizedNumbers () +
    +
    returns (bool)

  • +
  • bottom () +
    +
    returns (double)

  • +
  • fixup (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • setAcceptLocalizedNumbers (b) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    bbool
    +

  • +
  • setRange (bottom, top) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    bottomdouble
    topdouble
    +

  • +
  • top () +
    +
    returns (double)

  • +
  • validate (a0) +
    +
    returns (State) a1 (int)
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
+ + + diff --git a/doc/classref/kdeui/KFontAction.html b/doc/classref/kdeui/KFontAction.html new file mode 100644 index 0000000..6332ba5 --- /dev/null +++ b/doc/classref/kdeui/KFontAction.html @@ -0,0 +1,252 @@ + + + + + class KFontAction + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KFontAction


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKFontAction
InheritsKSelectAction
+

methods

    +
  • KFontAction (a0, a1 = KShortcut (), a2 = 0, a3 = 0) +
    + +
    returns a KFontAction instance
    In versions less than KDE 3.2.0 only
    + + + + +
    ArgumentTypeDefault
    a0QString
    a1KShortcutKShortcut ()
    a2QObject0
    a3char0
    +

  • +
  • KFontAction (a0, a1, slot, a4, a5 = 0) +
    + +
    returns a KFontAction instance
    In versions less than KDE 3.2.0 only
    + + + + + +
    ArgumentTypeDefault
    a0QString
    a1KShortcut
    slotSLOT (Python callable)
    a4QObject
    a5char0
    +

  • +
  • KFontAction (text, pix, cut = KShortcut (), parent = 0, name = 0) +
    + +
    returns a KFontAction instance
    In versions KDE 3.2.0 and above only
    + + + + + +
    ArgumentTypeDefault
    textQString
    pixQString
    cutKShortcutKShortcut ()
    parentQObject0
    namechar0
    +

  • +
  • KFontAction (text, pix, cut, slot, parent, name = 0) +
    + +
    returns a KFontAction instance
    In versions KDE 3.2.0 and above only
    + + + + + + +
    ArgumentTypeDefault
    textQString
    pixQIconSet
    cutKShortcut
    slotSLOT (Python callable)
    parentQObject
    namechar0
    +

  • +
  • KFontAction (text, pix, cut, slot, parent, name = 0) +
    + +
    returns a KFontAction instance
    In versions KDE 3.2.0 and above only
    + + + + + + +
    ArgumentTypeDefault
    textQString
    pixQString
    cutKShortcut
    slotSLOT (Python callable)
    parentQObject
    namechar0
    +

  • +
  • KFontAction (fontListCriteria, text, cut = KShortcut (), parent = 0, name = 0) +
    + +
    returns a KFontAction instance
    In versions KDE 3.3.0 and above only
    + + + + + +
    ArgumentTypeDefault
    fontListCriteriauint
    textQString
    cutKShortcutKShortcut ()
    parentQObject0
    namechar0
    +

  • +
  • KFontAction (fontListCriteria, text, pix, cut = KShortcut (), parent = 0, name = 0) +
    + +
    returns a KFontAction instance
    In versions KDE 3.3.0 and above only
    + + + + + + +
    ArgumentTypeDefault
    fontListCriteriauint
    textQString
    pixQString
    cutKShortcutKShortcut ()
    parentQObject0
    namechar0
    +

  • +
  • KFontAction (parent = 0, name = 0) +
    + +
    returns a KFontAction instance
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    parentQObject0
    namechar0
    +

  • +
  • KFontAction (a0, a1, a2 = KShortcut (), a3 = 0, a4 = 0) +
    + +
    returns a KFontAction instance
    In versions less than KDE 3.2.0 only
    + + + + + +
    ArgumentTypeDefault
    a0QString
    a1QIconSet
    a2KShortcutKShortcut ()
    a3QObject0
    a4char0
    +

  • +
  • KFontAction (a0, a1, a2 = KShortcut (), a3 = 0, a4 = 0) +
    + +
    returns a KFontAction instance
    In versions less than KDE 3.2.0 only
    + + + + + +
    ArgumentTypeDefault
    a0QString
    a1QString
    a2KShortcutKShortcut ()
    a3QObject0
    a4char0
    +

  • +
  • KFontAction (a0, a1, a2, slot, a5, a6 = 0) +
    + +
    returns a KFontAction instance
    In versions less than KDE 3.2.0 only
    + + + + + + +
    ArgumentTypeDefault
    a0QString
    a1QIconSet
    a2KShortcut
    slotSLOT (Python callable)
    a5QObject
    a6char0
    +

  • +
  • KFontAction (a0, a1, a2, slot, a5, a6 = 0) +
    + +
    returns a KFontAction instance
    In versions less than KDE 3.2.0 only
    + + + + + + +
    ArgumentTypeDefault
    a0QString
    a1QString
    a2KShortcut
    slotSLOT (Python callable)
    a5QObject
    a6char0
    +

  • +
  • KFontAction (a0 = 0, a1 = 0) +
    + +
    returns a KFontAction instance
    In versions less than KDE 3.2.0 only
    + + +
    ArgumentTypeDefault
    a0QObject0
    a1char0
    +

  • +
  • KFontAction (text, cut = KShortcut (), parent = 0, name = 0) +
    + +
    returns a KFontAction instance
    In versions KDE 3.2.0 and above only
    + + + + +
    ArgumentTypeDefault
    textQString
    cutKShortcutKShortcut ()
    parentQObject0
    namechar0
    +

  • +
  • KFontAction (text, cut, slot, parent, name = 0) +
    + +
    returns a KFontAction instance
    In versions KDE 3.2.0 and above only
    + + + + + +
    ArgumentTypeDefault
    textQString
    cutKShortcut
    slotSLOT (Python callable)
    parentQObject
    namechar0
    +

  • +
  • KFontAction (text, pix, cut = KShortcut (), parent = 0, name = 0) +
    + +
    returns a KFontAction instance
    In versions KDE 3.2.0 and above only
    + + + + + +
    ArgumentTypeDefault
    textQString
    pixQIconSet
    cutKShortcutKShortcut ()
    parentQObject0
    namechar0
    +

  • +
  • font () +
    + +
    returns (QString)
    In versions less than KDE 3.2.0 only

  • +
  • font () +
    + +
    returns (QString)
    In versions KDE 3.2.0 and above only

  • +
  • plug (a0, a1 = -1) +
    + +
    returns (int)
    In versions less than KDE 3.2.0 only
    + + +
    ArgumentTypeDefault
    a0QWidget
    a1int-1
    +

  • +
  • plug (a0, index = -1) +
    + +
    returns (int)
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    a0QWidget
    indexint-1
    +

  • +
  • setFont (a0) +
    + +
    returns nothing
    In versions less than KDE 3.2.0 only
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • setFont (family) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    familyQString
    +

  • +
+ + + diff --git a/doc/classref/kdeui/KFontChooser.html b/doc/classref/kdeui/KFontChooser.html new file mode 100644 index 0000000..48836d3 --- /dev/null +++ b/doc/classref/kdeui/KFontChooser.html @@ -0,0 +1,147 @@ + + + + + class KFontChooser + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KFontChooser


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKFontChooser
InheritsQWidget
+

enums

    +
  • FontColumn = {FamilyList, StyleList, SizeList +}
  • FontColumn = {FamilyList, StyleList, SizeList, CharsetList +}
  • FontDiff = {FontDiffFamily, FontDiffStyle, FontDiffSize +}
  • FontListCriteria = {FixedWidthFonts, ScalableFonts, SmoothScalableFonts +}
+

methods

    +
  • KFontChooser (parent = 0, name = "", onlyFixed = 0, fontList = QStringList(), makeFrame = 1, visibleListSize = 8, diff = 0, sizeIsRelativeState = 0) +
    +
    returns ,
    + + + + + + + + +
    ArgumentTypeDefault
    parentQWidget0
    namestring""
    onlyFixedbool0
    fontListQStringListQStringList()
    makeFramebool1
    visibleListSizeint8
    diffbool0
    sizeIsRelativeStateQButton.ToggleState0
    +

  • +
  • backgroundColor () +
    +
    returns (QColor)

  • +
  • color () +
    +
    returns (QColor)

  • +
  • enableColumn (column, state) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    columnint
    statebool
    +

  • +
  • font () +
    +
    returns (QFont)

  • +
  • fontDiffFlags () +
    +
    returns (int)

  • +
  • fontSelected (font) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    fontQFont
    +

  • +
  • getFontList (list, fontListCriteria) +
    + +
    returns nothing
    static
    + + +
    ArgumentTypeDefault
    listQStringList
    fontListCriteriabool
    +

  • +
  • getXLFD (theFont) +
    + +
    returns (QString)
    static
    + +
    ArgumentTypeDefault
    theFontQFont
    +

  • +
  • sampleText () +
    +
    returns (QString)

  • +
  • setBackgroundColor (col) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    colQColor
    +

  • +
  • setColor (col) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    colQColor
    +

  • +
  • setFont (font, onlyFixed = 0) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    fontQFont
    onlyFixedbool0
    +

  • +
  • setSampleBoxVisible (visible) +
    + +
    returns nothing
    In versions KDE 3.5.0 and above only
    + +
    ArgumentTypeDefault
    visiblebool
    +

  • +
  • setSampleText (text) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    textQString
    +

  • +
  • setSizeIsRelative (relative) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    relativeQButton.ToggleState
    +

  • +
  • sizeHint () +
    +
    returns (QSize)

  • +
  • sizeIsRelative () +
    +
    returns (QButton.ToggleState)

  • +
+ + + diff --git a/doc/classref/kdeui/KFontCombo.html b/doc/classref/kdeui/KFontCombo.html new file mode 100644 index 0000000..2fbcf87 --- /dev/null +++ b/doc/classref/kdeui/KFontCombo.html @@ -0,0 +1,136 @@ + + + + + class KFontCombo + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KFontCombo


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKFontCombo
InheritsKComboBox
+

methods

    +
  • KFontCombo (parent, name = 0) +
    +
    returns a KFontCombo instance
    + + +
    ArgumentTypeDefault
    parentQWidget
    namechar0
    +

  • +
  • KFontCombo (fonts, parent, name = 0) +
    +
    returns a KFontCombo instance
    + + + +
    ArgumentTypeDefault
    fontsQStringList
    parentQWidget
    namechar0
    +

  • +
  • bold () +
    +
    returns (bool)

  • +
  • currentFont () +
    +
    returns (QString)

  • +
  • displayFonts () +
    + +
    returns (bool)
    static

  • +
  • italic () +
    +
    returns (bool)

  • +
  • setBold (bold) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    boldbool
    +

  • +
  • setCurrentFont (family) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    familyQString
    +

  • +
  • setCurrentItem (i) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    iint
    +

  • +
  • setFonts (fonts) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    fontsQStringList
    +

  • +
  • setItalic (italic) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    italicbool
    +

  • +
  • setSize (size) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    sizeint
    +

  • +
  • setStrikeOut (strikeOut) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    strikeOutbool
    +

  • +
  • setUnderline (underline) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    underlinebool
    +

  • +
  • size () +
    +
    returns (int)

  • +
  • slotModified (i) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    iint
    +

  • +
  • strikeOut () +
    +
    returns (bool)

  • +
  • underline () +
    +
    returns (bool)

  • +
  • updateFonts () +
    +
    returns nothing

  • +
+ + + diff --git a/doc/classref/kdeui/KFontDialog.html b/doc/classref/kdeui/KFontDialog.html new file mode 100644 index 0000000..823f9e5 --- /dev/null +++ b/doc/classref/kdeui/KFontDialog.html @@ -0,0 +1,114 @@ + + + + + class KFontDialog + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KFontDialog


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKFontDialog
InheritsKDialogBase
+

methods

    +
  • KFontDialog (parent = 0, name = "", onlyFixed = 0, modal = 0, fontlist = QStringList(), makeFrame = 1, diff = 0, sizeIsRelativeState = 0) +
    +
    returns a KFontDialog instance
    + + + + + + + + +
    ArgumentTypeDefault
    parentQWidget0
    namestring""
    onlyFixedbool0
    modalbool0
    fontlistQStringListQStringList()
    makeFramebool1
    diffbool0
    sizeIsRelativeStateQButton.ToggleState0
    +

  • +
  • font () +
    +
    returns (QFont)

  • +
  • fontSelected (font) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    fontQFont
    +

  • +
  • getFont (theFont, onlyFixed = False, parent = 0, makeFrame = True, sizeIsRelative = QButton.Off) +
    + +
    returns (int) sizeIsRelative (QButton.ToggleState),
    static
    + + + + + +
    ArgumentTypeDefault
    theFontQFont
    onlyFixedboolFalse
    parentQWidget0
    makeFrameboolTrue
    sizeIsRelativeQButton.ToggleStateQButton.Off
    +

  • +
  • getFontAndText (theFont, theString, onlyFixed = False, parent = 0, makeFrame = true, sizeIsRelative = QButton.Off) +
    + +
    returns (int) sizeIsRelative (QButton.ToggleState),
    static
    + + + + + + +
    ArgumentTypeDefault
    theFontQFont
    theStringQString
    onlyFixedboolFalse
    parentQWidget0
    makeFramebooltrue
    sizeIsRelativeQButton.ToggleStateQButton.Off
    +

  • +
  • getFontDiff (theFont, diffFlags, onlyFixed = False, parent = 0, makeFrame = true, sizeIsRelative = QButton.Off) +
    + +
    returns (int) sizeIsRelative (QButton.ToggleState),
    static
    + + + + + + +
    ArgumentTypeDefault
    theFontQFont
    diffFlagsint
    onlyFixedboolFalse
    parentQWidget0
    makeFramebooltrue
    sizeIsRelativeQButton.ToggleStateQButton.Off
    +

  • +
  • setFont (font, onlyFixed = 0) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    fontQFont
    onlyFixedbool0
    +

  • +
  • setSizeIsRelative (relative) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    relativeQButton.ToggleState
    +

  • +
  • sizeIsRelative () +
    +
    returns (QButton.ToggleState)

  • +
+ + + diff --git a/doc/classref/kdeui/KFontRequester.html b/doc/classref/kdeui/KFontRequester.html new file mode 100644 index 0000000..26a1277 --- /dev/null +++ b/doc/classref/kdeui/KFontRequester.html @@ -0,0 +1,115 @@ + + + + + class KFontRequester + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KFontRequester


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKFontRequester
InheritsQWidget
+

methods

    +
  • KFontRequester (parent = 0, name = 0, onlyFixed = 0) +
    + +
    returns a KFontRequester instance
    In versions KDE 3.2.0 and above only
    + + + +
    ArgumentTypeDefault
    parentQWidget0
    namechar0
    onlyFixedbool0
    +

  • +
  • button () +
    + +
    returns (QPushButton)
    In versions KDE 3.2.0 and above only

  • +
  • buttonClicked () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • displaySampleText () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • font () +
    + +
    returns (QFont)
    In versions KDE 3.2.0 and above only

  • +
  • fontSelected (font) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    fontQFont
    +

  • +
  • isFixedOnly () +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only

  • +
  • label () +
    + +
    returns (QLabel)
    In versions KDE 3.2.0 and above only

  • +
  • sampleText () +
    + +
    returns (QString)
    In versions KDE 3.2.0 and above only

  • +
  • setFont (font, onlyFixed = 0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    fontQFont
    onlyFixedbool0
    +

  • +
  • setSampleText (text) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    textQString
    +

  • +
  • setTitle (title) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    titleQString
    +

  • +
  • setToolTip () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • title () +
    + +
    returns (QString)
    In versions KDE 3.2.0 and above only

  • +
+ + + diff --git a/doc/classref/kdeui/KFontSizeAction.html b/doc/classref/kdeui/KFontSizeAction.html new file mode 100644 index 0000000..04dddf2 --- /dev/null +++ b/doc/classref/kdeui/KFontSizeAction.html @@ -0,0 +1,263 @@ + + + + + class KFontSizeAction + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KFontSizeAction


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKFontSizeAction
InheritsKSelectAction
+

methods

    +
  • KFontSizeAction (a0, a1 = KShortcut (), a2 = 0, a3 = 0) +
    + +
    returns a KFontSizeAction instance
    In versions less than KDE 3.2.0 only
    + + + + +
    ArgumentTypeDefault
    a0QString
    a1KShortcutKShortcut ()
    a2QObject0
    a3char0
    +

  • +
  • KFontSizeAction (a0, a1, slot, a4, a5 = 0) +
    + +
    returns a KFontSizeAction instance
    In versions less than KDE 3.2.0 only
    + + + + + +
    ArgumentTypeDefault
    a0QString
    a1KShortcut
    slotSLOT (Python callable)
    a4QObject
    a5char0
    +

  • +
  • KFontSizeAction (text, pix, cut = KShortcut (), parent = 0, name = 0) +
    + +
    returns a KFontSizeAction instance
    In versions KDE 3.2.0 and above only
    + + + + + +
    ArgumentTypeDefault
    textQString
    pixQString
    cutKShortcutKShortcut ()
    parentQObject0
    namechar0
    +

  • +
  • KFontSizeAction (text, pix, cut, slot, parent, name = 0) +
    + +
    returns a KFontSizeAction instance
    In versions KDE 3.2.0 and above only
    + + + + + + +
    ArgumentTypeDefault
    textQString
    pixQIconSet
    cutKShortcut
    slotSLOT (Python callable)
    parentQObject
    namechar0
    +

  • +
  • KFontSizeAction (text, pix, cut, slot, parent, name = 0) +
    + +
    returns a KFontSizeAction instance
    In versions KDE 3.2.0 and above only
    + + + + + + +
    ArgumentTypeDefault
    textQString
    pixQString
    cutKShortcut
    slotSLOT (Python callable)
    parentQObject
    namechar0
    +

  • +
  • KFontSizeAction (parent = 0, name = 0) +
    + +
    returns a KFontSizeAction instance
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    parentQObject0
    namechar0
    +

  • +
  • KFontSizeAction (a0, a1, a2 = KShortcut (), a3 = 0, a4 = 0) +
    + +
    returns a KFontSizeAction instance
    In versions less than KDE 3.2.0 only
    + + + + + +
    ArgumentTypeDefault
    a0QString
    a1QIconSet
    a2KShortcutKShortcut ()
    a3QObject0
    a4char0
    +

  • +
  • KFontSizeAction (a0, a1, a2 = KShortcut (), a3 = 0, a4 = 0) +
    + +
    returns a KFontSizeAction instance
    In versions less than KDE 3.2.0 only
    + + + + + +
    ArgumentTypeDefault
    a0QString
    a1QString
    a2KShortcutKShortcut ()
    a3QObject0
    a4char0
    +

  • +
  • KFontSizeAction (a0, a1, a2, slot, a5, a6 = 0) +
    + +
    returns a KFontSizeAction instance
    In versions less than KDE 3.2.0 only
    + + + + + + +
    ArgumentTypeDefault
    a0QString
    a1QIconSet
    a2KShortcut
    slotSLOT (Python callable)
    a5QObject
    a6char0
    +

  • +
  • KFontSizeAction (a0, a1, a2, slot, a5, a6 = 0) +
    + +
    returns a KFontSizeAction instance
    In versions less than KDE 3.2.0 only
    + + + + + + +
    ArgumentTypeDefault
    a0QString
    a1QString
    a2KShortcut
    slotSLOT (Python callable)
    a5QObject
    a6char0
    +

  • +
  • KFontSizeAction (a0 = 0, a1 = 0) +
    + +
    returns a KFontSizeAction instance
    In versions less than KDE 3.2.0 only
    + + +
    ArgumentTypeDefault
    a0QObject0
    a1char0
    +

  • +
  • KFontSizeAction (text, cut = KShortcut (), parent = 0, name = 0) +
    + +
    returns a KFontSizeAction instance
    In versions KDE 3.2.0 and above only
    + + + + +
    ArgumentTypeDefault
    textQString
    cutKShortcutKShortcut ()
    parentQObject0
    namechar0
    +

  • +
  • KFontSizeAction (text, cut, slot, parent, name = 0) +
    + +
    returns a KFontSizeAction instance
    In versions KDE 3.2.0 and above only
    + + + + + +
    ArgumentTypeDefault
    textQString
    cutKShortcut
    slotSLOT (Python callable)
    parentQObject
    namechar0
    +

  • +
  • KFontSizeAction (text, pix, cut = KShortcut (), parent = 0, name = 0) +
    + +
    returns a KFontSizeAction instance
    In versions KDE 3.2.0 and above only
    + + + + + +
    ArgumentTypeDefault
    textQString
    pixQIconSet
    cutKShortcutKShortcut ()
    parentQObject0
    namechar0
    +

  • +
  • fontSize () +
    + +
    returns (int)
    In versions less than KDE 3.2.0 only

  • +
  • fontSize () +
    + +
    returns (int)
    In versions KDE 3.2.0 and above only

  • +
  • fontSizeChanged (a0) +
    + +
    returns nothing
    In versions less than KDE 3.2.0 only
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • fontSizeChanged (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • setFontSize (a0) +
    + +
    returns nothing
    In versions less than KDE 3.2.0 only
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • setFontSize (size) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    sizeint
    +

  • +
  • slotActivated (a0) +
    + +
    returns nothing
    In versions less than KDE 3.2.0 only
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • slotActivated (a0) +
    + +
    returns nothing
    In versions less than KDE 3.2.0 only
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • slotActivated () +
    + +
    returns nothing
    In versions less than KDE 3.2.0 only

  • +
  • slotActivated (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • slotActivated (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • slotActivated () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
+ + + diff --git a/doc/classref/kdeui/KGradientSelector.html b/doc/classref/kdeui/KGradientSelector.html new file mode 100644 index 0000000..50f0f4e --- /dev/null +++ b/doc/classref/kdeui/KGradientSelector.html @@ -0,0 +1,115 @@ + + + + + class KGradientSelector + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KGradientSelector


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKGradientSelector
InheritsKSelector
+

methods

    +
  • KGradientSelector (parent = 0, name = 0) +
    +
    returns a KGradientSelector instance
    + + +
    ArgumentTypeDefault
    parentQWidget0
    namechar0
    +

  • +
  • KGradientSelector (o, parent = 0, name = 0) +
    +
    returns a KGradientSelector instance
    + + + +
    ArgumentTypeDefault
    oOrientation
    parentQWidget0
    namechar0
    +

  • +
  • drawContents (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QPainter
    +

  • +
  • firstColor () +
    +
    returns (QColor)

  • +
  • firstText () +
    +
    returns (QString)

  • +
  • minimumSize () +
    +
    returns (QSize)

  • +
  • secondColor () +
    +
    returns (QColor)

  • +
  • secondText () +
    +
    returns (QString)

  • +
  • setColors (col1, col2) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    col1QColor
    col2QColor
    +

  • +
  • setFirstColor (col) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    colQColor
    +

  • +
  • setFirstText (t) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    tQString
    +

  • +
  • setSecondColor (col) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    colQColor
    +

  • +
  • setSecondText (t) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    tQString
    +

  • +
  • setText (t1, t2) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    t1QString
    t2QString
    +

  • +
+ + + diff --git a/doc/classref/kdeui/KGuiItem.html b/doc/classref/kdeui/KGuiItem.html new file mode 100644 index 0000000..8ff2fe0 --- /dev/null +++ b/doc/classref/kdeui/KGuiItem.html @@ -0,0 +1,139 @@ + + + + + class KGuiItem + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KGuiItem


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKGuiItem
Inherits
+

methods

    +
  • KGuiItem () +
    +
    returns a KGuiItem instance

  • +
  • KGuiItem (text, iconName = QString .null, toolTip = QString .null, whatsThis = QString .null) +
    +
    returns a KGuiItem instance
    + + + + +
    ArgumentTypeDefault
    textQString
    iconNameQStringQString .null
    toolTipQStringQString .null
    whatsThisQStringQString .null
    +

  • +
  • KGuiItem (text, iconSet, toolTip = QString .null, whatsThis = QString .null) +
    +
    returns a KGuiItem instance
    + + + + +
    ArgumentTypeDefault
    textQString
    iconSetQIconSet
    toolTipQStringQString .null
    whatsThisQStringQString .null
    +

  • +
  • KGuiItem (rhs) +
    +
    returns a KGuiItem instance
    + +
    ArgumentTypeDefault
    rhsKGuiItem
    +

  • +
  • hasIcon () +
    +
    returns (bool)

  • +
  • hasIconSet () +
    +
    returns (bool)

  • +
  • iconName () +
    +
    returns (QString)

  • +
  • iconSet (a0, size = 0, instance = KGlobal .instance ()) +
    +
    returns (QIconSet)
    + + + +
    ArgumentTypeDefault
    a0KIcon.Group
    sizeint0
    instanceKInstanceKGlobal .instance ()
    +

  • +
  • iconSet () +
    +
    returns (QIconSet)

  • +
  • isEnabled () +
    +
    returns (bool)

  • +
  • plainText () +
    +
    returns (QString)

  • +
  • setEnabled (enable) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    enablebool
    +

  • +
  • setIconName (iconName) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    iconNameQString
    +

  • +
  • setIconSet (iconset) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    iconsetQIconSet
    +

  • +
  • setText (text) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    textQString
    +

  • +
  • setToolTip (tooltip) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    tooltipQString
    +

  • +
  • setWhatsThis (whatsThis) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    whatsThisQString
    +

  • +
  • text () +
    +
    returns (QString)

  • +
  • toolTip () +
    +
    returns (QString)

  • +
  • whatsThis () +
    +
    returns (QString)

  • +
+ + + diff --git a/doc/classref/kdeui/KHSSelector.html b/doc/classref/kdeui/KHSSelector.html new file mode 100644 index 0000000..7adc4ba --- /dev/null +++ b/doc/classref/kdeui/KHSSelector.html @@ -0,0 +1,66 @@ + + + + + class KHSSelector + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KHSSelector


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKHSSelector
InheritsKXYSelector
+

methods

    +
  • KHSSelector (parent = 0, name = 0) +
    +
    returns a KHSSelector instance
    + + +
    ArgumentTypeDefault
    parentQWidget0
    namechar0
    +

  • +
  • drawContents (painter) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    painterQPainter
    +

  • +
  • drawPalette (pixmap) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    pixmapQPixmap
    +

  • +
  • resizeEvent (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QResizeEvent
    +

  • +
+ + + diff --git a/doc/classref/kdeui/KHelpMenu.html b/doc/classref/kdeui/KHelpMenu.html new file mode 100644 index 0000000..2a2ee9d --- /dev/null +++ b/doc/classref/kdeui/KHelpMenu.html @@ -0,0 +1,82 @@ + + + + + class KHelpMenu + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KHelpMenu


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKHelpMenu
InheritsQObject
+

enums

    +
  • MenuId = {menuHelpContents, menuWhatsThis, menuAboutApp, menuAboutKDE, menuReportBug +}
+

methods

    +
  • KHelpMenu (parent = 0, aboutAppText = QString .null, showWhatsThis = 1) +
    +
    returns a KHelpMenu instance
    + + + +
    ArgumentTypeDefault
    parentQWidget0
    aboutAppTextQStringQString .null
    showWhatsThisbool1
    +

  • +
  • KHelpMenu (parent, aboutData, showWhatsThis = 1, actions = 0) +
    +
    returns a KHelpMenu instance
    + + + + +
    ArgumentTypeDefault
    parentQWidget
    aboutDataKAboutData
    showWhatsThisbool1
    actionsKActionCollection0
    +

  • +
  • aboutApplication () +
    +
    returns nothing

  • +
  • aboutKDE () +
    +
    returns nothing

  • +
  • appHelpActivated () +
    +
    returns nothing

  • +
  • contextHelpActivated () +
    +
    returns nothing

  • +
  • menu () +
    +
    returns (KPopupMenu)

  • +
  • reportBug () +
    +
    returns nothing

  • +
  • showAboutApplication () +
    +
    returns nothing

  • +
+ + + diff --git a/doc/classref/kdeui/KHistoryCombo.html b/doc/classref/kdeui/KHistoryCombo.html new file mode 100644 index 0000000..a5528da --- /dev/null +++ b/doc/classref/kdeui/KHistoryCombo.html @@ -0,0 +1,124 @@ + + + + + class KHistoryCombo + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KHistoryCombo


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKHistoryCombo
InheritsKComboBox
+

methods

    +
  • KHistoryCombo (parent = 0, name = 0) +
    +
    returns a KHistoryCombo instance
    + + +
    ArgumentTypeDefault
    parentQWidget0
    namechar0
    +

  • +
  • KHistoryCombo (useCompletion, parent = 0, name = 0) +
    +
    returns a KHistoryCombo instance
    + + + +
    ArgumentTypeDefault
    useCompletionbool
    parentQWidget0
    namechar0
    +

  • +
  • addToHistory (item) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    itemQString
    +

  • +
  • clearHistory () +
    +
    returns nothing

  • +
  • cleared () +
    +
    returns nothing

  • +
  • historyItems () +
    +
    returns (QStringList)

  • +
  • insertItems (items) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    itemsQStringList
    +

  • +
  • keyPressEvent (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QKeyEvent
    +

  • +
  • pixmapProvider () +
    +
    returns (KPixmapProvider)

  • +
  • removeFromHistory (item) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    itemQString
    +

  • +
  • reset () +
    +
    returns nothing

  • +
  • setHistoryItems (items) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    itemsQStringList
    +

  • +
  • setHistoryItems (items, setCompletionList) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    itemsQStringList
    setCompletionListbool
    +

  • +
  • setPixmapProvider (prov) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    provKPixmapProvider
    +

  • +
  • useCompletion () +
    +
    returns (bool)

  • +
  • wheelEvent (ev) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    evQWheelEvent
    +

  • +
+ + + diff --git a/doc/classref/kdeui/KIconView.html b/doc/classref/kdeui/KIconView.html new file mode 100644 index 0000000..6947628 --- /dev/null +++ b/doc/classref/kdeui/KIconView.html @@ -0,0 +1,213 @@ + + + + + class KIconView + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KIconView


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKIconView
InheritsQIconView
+

enums

    +
  • Mode = {Execute, Select +}
+

methods

    +
  • KIconView (parent = 0, name = 0, f = 0) +
    +
    returns a KIconView instance
    + + + +
    ArgumentTypeDefault
    parentQWidget0
    namechar0
    fWFlags0
    +

  • +
  • cancelPendingHeldSignal () +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only

  • +
  • contentsDragEnterEvent (e) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    eQDragEnterEvent
    +

  • +
  • contentsDragLeaveEvent (e) +
    + +
    returns nothing
    In versions KDE 3.5.0 and above only
    + +
    ArgumentTypeDefault
    eQDragLeaveEvent
    +

  • +
  • contentsDragMoveEvent (e) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    eQDragMoveEvent
    +

  • +
  • contentsDropEvent (e) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    eQDropEvent
    +

  • +
  • contentsMouseDoubleClickEvent (e) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    eQMouseEvent
    +

  • +
  • contentsMousePressEvent (e) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    eQMouseEvent
    +

  • +
  • contentsMouseReleaseEvent (e) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    eQMouseEvent
    +

  • +
  • doubleClicked (item, pos) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    itemQIconViewItem
    posQPoint
    +

  • +
  • emitExecute (item, pos) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    itemQIconViewItem
    posQPoint
    +

  • +
  • executed (item) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    itemQIconViewItem
    +

  • +
  • executed (item, pos) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    itemQIconViewItem
    posQPoint
    +

  • +
  • focusOutEvent (fe) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    feQFocusEvent
    +

  • +
  • held (item) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    itemQIconViewItem
    +

  • +
  • iconTextHeight () +
    + +
    returns (int)
    In versions KDE 3.3.0 and above only

  • +
  • leaveEvent (e) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    eQEvent
    +

  • +
  • mode () +
    +
    returns (Mode)

  • +
  • setFont (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QFont
    +

  • +
  • setIconTextHeight (n) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    nint
    +

  • +
  • setMode (m) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    mKIconView.Mode
    +

  • +
  • slotAutoSelect () +
    +
    returns nothing

  • +
  • slotOnItem (item) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    itemQIconViewItem
    +

  • +
  • slotOnViewport () +
    +
    returns nothing

  • +
  • slotSettingsChanged (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • takeItem (item) +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only
    + +
    ArgumentTypeDefault
    itemQIconViewItem
    +

  • +
  • updateDragHoldItem (e) +
    + +
    returns nothing
    In versions KDE 3.5.0 and above only
    + +
    ArgumentTypeDefault
    eQDropEvent
    +

  • +
  • wheelEvent (e) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    eQWheelEvent
    +

  • +
+ + + diff --git a/doc/classref/kdeui/KIconViewItem.html b/doc/classref/kdeui/KIconViewItem.html new file mode 100644 index 0000000..1da8b4b --- /dev/null +++ b/doc/classref/kdeui/KIconViewItem.html @@ -0,0 +1,150 @@ + + + + + class KIconViewItem + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KIconViewItem


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKIconViewItem
InheritsQIconViewItem
+

methods

    +
  • KIconViewItem (parent) +
    +
    returns a KIconViewItem instance
    + +
    ArgumentTypeDefault
    parentQIconView
    +

  • +
  • KIconViewItem (parent, after) +
    +
    returns a KIconViewItem instance
    + + +
    ArgumentTypeDefault
    parentQIconView
    afterQIconViewItem
    +

  • +
  • KIconViewItem (parent, text) +
    +
    returns a KIconViewItem instance
    + + +
    ArgumentTypeDefault
    parentQIconView
    textQString
    +

  • +
  • KIconViewItem (parent, after, text) +
    +
    returns a KIconViewItem instance
    + + + +
    ArgumentTypeDefault
    parentQIconView
    afterQIconViewItem
    textQString
    +

  • +
  • KIconViewItem (parent, text, icon) +
    +
    returns a KIconViewItem instance
    + + + +
    ArgumentTypeDefault
    parentQIconView
    textQString
    iconQPixmap
    +

  • +
  • KIconViewItem (parent, after, text, icon) +
    +
    returns a KIconViewItem instance
    + + + + +
    ArgumentTypeDefault
    parentQIconView
    afterQIconViewItem
    textQString
    iconQPixmap
    +

  • +
  • KIconViewItem (parent, text, picture) +
    +
    returns a KIconViewItem instance
    + + + +
    ArgumentTypeDefault
    parentQIconView
    textQString
    pictureQPicture
    +

  • +
  • KIconViewItem (parent, after, text, picture) +
    +
    returns a KIconViewItem instance
    + + + + +
    ArgumentTypeDefault
    parentQIconView
    afterQIconViewItem
    textQString
    pictureQPicture
    +

  • +
  • calcRect (text_ = QString .null) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    text_QStringQString .null
    +

  • +
  • init () +
    +
    returns nothing

  • +
  • paintItem (p, c) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    pQPainter
    cQColorGroup
    +

  • +
  • paintPixmap (p, c) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    pQPainter
    cQColorGroup
    +

  • +
  • paintText (p, c) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    pQPainter
    cQColorGroup
    +

  • +
  • pixmapSize () +
    + +
    returns (QSize)
    In versions KDE 3.3.0 and above only

  • +
  • setPixmapSize (size) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    sizeQSize
    +

  • +
  • wordWrap () +
    + +
    returns (KWordWrap)
    In versions KDE 3.2.0 and above only

  • +
+ + + diff --git a/doc/classref/kdeui/KIconViewSearchLine.html b/doc/classref/kdeui/KIconViewSearchLine.html new file mode 100644 index 0000000..4028172 --- /dev/null +++ b/doc/classref/kdeui/KIconViewSearchLine.html @@ -0,0 +1,131 @@ + + + + + class KIconViewSearchLine + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KIconViewSearchLine


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKIconViewSearchLine
InheritsKLineEdit
+

methods

    +
  • KIconViewSearchLine (parent = 0, iconView = 0, name = 0) +
    + +
    returns a KIconViewSearchLine instance
    In versions KDE 3.4.0 and above only
    + + + +
    ArgumentTypeDefault
    parentQWidget0
    iconViewQIconView0
    namechar0
    +

  • +
  • KIconViewSearchLine (parent, name) +
    + +
    returns a KIconViewSearchLine instance
    In versions KDE 3.4.0 and above only
    + + +
    ArgumentTypeDefault
    parentQWidget
    namechar
    +

  • +
  • activateSearch () +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only

  • +
  • caseSensitive () +
    + +
    returns (bool)
    In versions KDE 3.4.0 and above only

  • +
  • clear () +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only

  • +
  • hideItem (item) +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only
    + +
    ArgumentTypeDefault
    itemQIconViewItem
    +

  • +
  • iconView () +
    + +
    returns (QIconView)
    In versions KDE 3.4.0 and above only

  • +
  • init (iconView = 0) +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only
    + +
    ArgumentTypeDefault
    iconViewQIconView0
    +

  • +
  • itemMatches (item, s) +
    + +
    returns (bool)
    In versions KDE 3.4.0 and above only
    + + +
    ArgumentTypeDefault
    itemQIconViewItem
    sQString
    +

  • +
  • queueSearch (s) +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only
    + +
    ArgumentTypeDefault
    sQString
    +

  • +
  • setCaseSensitive (cs) +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only
    + +
    ArgumentTypeDefault
    csbool
    +

  • +
  • setIconView (iv) +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only
    + +
    ArgumentTypeDefault
    ivQIconView
    +

  • +
  • showItem (item) +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only
    + +
    ArgumentTypeDefault
    itemQIconViewItem
    +

  • +
  • updateSearch (s = QString .null) +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only
    + +
    ArgumentTypeDefault
    sQStringQString .null
    +

  • +
+ + + diff --git a/doc/classref/kdeui/KInputDialog.html b/doc/classref/kdeui/KInputDialog.html new file mode 100644 index 0000000..9863eca --- /dev/null +++ b/doc/classref/kdeui/KInputDialog.html @@ -0,0 +1,217 @@ + + + + + class KInputDialog + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KInputDialog


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKInputDialog
InheritsKDialogBase
+

methods

    +
  • KInputDialog (caption, label, value, parent, name, validator, mask) +
    + +
    returns a KInputDialog instance
    In versions KDE 3.2.0 and above only
    + + + + + + + +
    ArgumentTypeDefault
    captionQString
    labelQString
    valueQString
    parentQWidget
    namechar
    validatorQValidator
    maskQString
    +

  • +
  • KInputDialog (caption, label, value, parent, name) +
    + +
    returns a KInputDialog instance
    In versions KDE 3.3.0 and above only
    + + + + + +
    ArgumentTypeDefault
    captionQString
    labelQString
    valueQString
    parentQWidget
    namechar
    +

  • +
  • KInputDialog (caption, label, value, minValue, maxValue, step, base, parent, name) +
    + +
    returns a KInputDialog instance
    In versions KDE 3.2.0 and above only
    + + + + + + + + + +
    ArgumentTypeDefault
    captionQString
    labelQString
    valueint
    minValueint
    maxValueint
    stepint
    baseint
    parentQWidget
    namechar
    +

  • +
  • KInputDialog (caption, label, list, current, editable, parent, name) +
    + +
    returns a KInputDialog instance
    In versions KDE 3.2.0 and above only
    + + + + + + + +
    ArgumentTypeDefault
    captionQString
    labelQString
    listQStringList
    currentint
    editablebool
    parentQWidget
    namechar
    +

  • +
  • KInputDialog (caption, label, list, select, editable, parent, name) +
    + +
    returns a KInputDialog instance
    In versions KDE 3.2.0 and above only
    + + + + + + + +
    ArgumentTypeDefault
    captionQString
    labelQString
    listQStringList
    selectQStringList
    editablebool
    parentQWidget
    namechar
    +

  • +
  • getDouble (caption, label, value = 0, minValue = -2147483647, maxValue = 2147483647, step = 0.1, decimals = 1, parent = 0, name = 0) +
    + + +
    returns (double) ok (bool)
    In versions KDE 3.2.0 and above only
    static
    + + + + + + + + + +
    ArgumentTypeDefault
    captionQString
    labelQString
    valuedouble0
    minValuedouble-2147483647
    maxValuedouble2147483647
    stepdouble0.1
    decimalsint1
    parentQWidget0
    namechar0
    +

  • +
  • getDouble (caption, label, value = 0, minValue = -2147483647, maxValue = 2147483647, decimals = 1, parent = 0, name = 0) +
    Not Implemented
    +

  • +
  • getInteger (caption, label, value = 0, minValue = -2147483647, maxValue = 2147483647, step = 1, base = 10, parent = 0, name = 0) +
    + + +
    returns (int) ok (bool)
    In versions KDE 3.2.0 and above only
    static
    + + + + + + + + + +
    ArgumentTypeDefault
    captionQString
    labelQString
    valueint0
    minValueint-2147483647
    maxValueint2147483647
    stepint1
    baseint10
    parentQWidget0
    namechar0
    +

  • +
  • getInteger (caption, label, value = 0, minValue = -2147483647, maxValue = 2147483647, step = 1, parent = 0, name = 0) +
    Not Implemented
    +

  • +
  • getItem (caption, label, list, current = 0, editable = 0, parent = 0, name = 0) +
    + + +
    returns (QString) ok (bool)
    In versions KDE 3.2.0 and above only
    static
    + + + + + + + +
    ArgumentTypeDefault
    captionQString
    labelQString
    listQStringList
    currentint0
    editablebool0
    parentQWidget0
    namechar0
    +

  • +
  • getItemList (caption, label, list = QStringList (), select = QStringList (), multiple = 0, parent = 0, name = 0) +
    + + +
    returns (QStringList) ok (bool)
    In versions KDE 3.2.0 and above only
    static
    + + + + + + + +
    ArgumentTypeDefault
    captionQString
    labelQString
    listQStringListQStringList ()
    selectQStringListQStringList ()
    multiplebool0
    parentQWidget0
    namechar0
    +

  • +
  • getMultiLineText (caption, label, value = QString .null, parent = 0, name = 0) +
    + + +
    returns (QString) ok (bool)
    In versions KDE 3.3.0 and above only
    static
    + + + + + +
    ArgumentTypeDefault
    captionQString
    labelQString
    valueQStringQString .null
    parentQWidget0
    namechar0
    +

  • +
  • getText (caption, label, value = QString .null, parent = 0, name = 0, validator = 0, mask = QString .null) +
    + + +
    returns (QString) ok (bool)
    In versions KDE 3.2.0 and above only
    static
    + + + + + + + +
    ArgumentTypeDefault
    captionQString
    labelQString
    valueQStringQString .null
    parentQWidget0
    namechar0
    validatorQValidator0
    maskQStringQString .null
    +

  • +
  • text (caption, label, value = QString .null, parent = 0, name = 0, validator = 0, mask = QString .null, whatsThis = QString .null) +
    + + +
    returns (QString) ok (bool)
    In versions KDE 3.3.0 and above only
    static
    + + + + + + + + +
    ArgumentTypeDefault
    captionQString
    labelQString
    valueQStringQString .null
    parentQWidget0
    namechar0
    validatorQValidator0
    maskQStringQString .null
    whatsThisQStringQString .null
    +

  • +
  • ~KInputDialog () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
+ + + diff --git a/doc/classref/kdeui/KIntNumInput.html b/doc/classref/kdeui/KIntNumInput.html new file mode 100644 index 0000000..4f58389 --- /dev/null +++ b/doc/classref/kdeui/KIntNumInput.html @@ -0,0 +1,190 @@ + + + + + class KIntNumInput + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KIntNumInput


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKIntNumInput
InheritsKNumInput
+

methods

    +
  • KIntNumInput (parent = 0, name = 0) +
    +
    returns a KIntNumInput instance
    + + +
    ArgumentTypeDefault
    parentQWidget0
    namechar0
    +

  • +
  • KIntNumInput (value, parent = 0, base = 10, name = 0) +
    +
    returns a KIntNumInput instance
    + + + + +
    ArgumentTypeDefault
    valueint
    parentQWidget0
    baseint10
    namechar0
    +

  • +
  • KIntNumInput (below, value, parent = 0, base = 10, name = 0) +
    +
    returns a KIntNumInput instance
    + + + + + +
    ArgumentTypeDefault
    belowKNumInput
    valueint
    parentQWidget0
    baseint10
    namechar0
    +

  • +
  • doLayout () +
    +
    returns nothing

  • +
  • maxValue () +
    +
    returns (int)

  • +
  • minValue () +
    +
    returns (int)

  • +
  • minimumSizeHint () +
    +
    returns (QSize)

  • +
  • prefix () +
    +
    returns (QString)

  • +
  • referencePoint () +
    + +
    returns (int)
    In versions KDE 3.1.0 and above only

  • +
  • relativeValue () +
    + +
    returns (double)
    In versions KDE 3.1.0 and above only

  • +
  • relativeValueChanged (a0) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    a0double
    +

  • +
  • resizeEvent (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QResizeEvent
    +

  • +
  • setEditFocus (mark = 1) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    markbool1
    +

  • +
  • setLabel (label, a = AlignLeft | AlignTop) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    labelQString
    aintAlignLeft | AlignTop
    +

  • +
  • setMaxValue (max) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    maxint
    +

  • +
  • setMinValue (min) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    minint
    +

  • +
  • setPrefix (prefix) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    prefixQString
    +

  • +
  • setRange (min, max, step = 1, slider = 1) +
    +
    returns nothing
    + + + + +
    ArgumentTypeDefault
    minint
    maxint
    stepint1
    sliderbool1
    +

  • +
  • setReferencePoint (a0) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • setRelativeValue (a0) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    a0double
    +

  • +
  • setSpecialValueText (text) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    textQString
    +

  • +
  • setSuffix (suffix) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    suffixQString
    +

  • +
  • setValue (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • specialValueText () +
    +
    returns (QString)

  • +
  • suffix () +
    +
    returns (QString)

  • +
  • value () +
    +
    returns (int)

  • +
  • valueChanged (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
+ + + diff --git a/doc/classref/kdeui/KIntSpinBox.html b/doc/classref/kdeui/KIntSpinBox.html new file mode 100644 index 0000000..3700d2f --- /dev/null +++ b/doc/classref/kdeui/KIntSpinBox.html @@ -0,0 +1,84 @@ + + + + + class KIntSpinBox + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KIntSpinBox


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKIntSpinBox
InheritsQSpinBox
+

methods

    +
  • KIntSpinBox (parent = 0, name = 0) +
    +
    returns a KIntSpinBox instance
    + + +
    ArgumentTypeDefault
    parentQWidget0
    namechar0
    +

  • +
  • KIntSpinBox (lower, upper, step, value, base = 10, parent = 0, name = 0) +
    +
    returns a KIntSpinBox instance
    + + + + + + + +
    ArgumentTypeDefault
    lowerint
    upperint
    stepint
    valueint
    baseint10
    parentQWidget0
    namechar0
    +

  • +
  • base () +
    +
    returns (int)

  • +
  • mapTextToValue () +
    Not Implemented
    +

  • +
  • mapValueToText (a0) +
    +
    returns (QString)
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • setBase (base) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    baseint
    +

  • +
  • setEditFocus (mark) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    markbool
    +

  • +
+ + + diff --git a/doc/classref/kdeui/KIntValidator.html b/doc/classref/kdeui/KIntValidator.html new file mode 100644 index 0000000..c399ab0 --- /dev/null +++ b/doc/classref/kdeui/KIntValidator.html @@ -0,0 +1,93 @@ + + + + + class KIntValidator + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KIntValidator


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKIntValidator
InheritsQValidator
+

methods

    +
  • KIntValidator (parent, base = 10, name = 0) +
    +
    returns a KIntValidator instance
    + + + +
    ArgumentTypeDefault
    parentQWidget
    baseint10
    namechar0
    +

  • +
  • KIntValidator (bottom, top, parent, base = 10, name = 0) +
    +
    returns a KIntValidator instance
    + + + + + +
    ArgumentTypeDefault
    bottomint
    topint
    parentQWidget
    baseint10
    namechar0
    +

  • +
  • base () +
    +
    returns (int)

  • +
  • bottom () +
    +
    returns (int)

  • +
  • fixup (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • setBase (base) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    baseint
    +

  • +
  • setRange (bottom, top) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    bottomint
    topint
    +

  • +
  • top () +
    +
    returns (int)

  • +
  • validate (a0) +
    +
    returns (State) a1 (int)
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
+ + + diff --git a/doc/classref/kdeui/KJanusWidget.html b/doc/classref/kdeui/KJanusWidget.html new file mode 100644 index 0000000..a68363a --- /dev/null +++ b/doc/classref/kdeui/KJanusWidget.html @@ -0,0 +1,288 @@ + + + + + class KJanusWidget + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KJanusWidget


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKJanusWidget
InheritsQWidget
+

enums

    +
  • Face = {TreeList, Tabbed, Plain, Swallow, IconList +}
+

methods

    +
  • FindParent () +
    +
    returns (QWidget)

  • +
  • InsertTreeListItem (items, pixmap, page) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    itemsQStringList
    pixmapQPixmap
    pageQFrame
    +

  • +
  • KJanusWidget (parent = 0, name = 0, face = Plain) +
    +
    returns a KJanusWidget instance
    + + + +
    ArgumentTypeDefault
    parentQWidget0
    namechar0
    faceintPlain
    +

  • +
  • aboutToShowPage (page) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    pageQWidget
    +

  • +
  • activePageIndex () +
    +
    returns (int)

  • +
  • addButtonBelowList (text, recv, slot) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + + + +
    ArgumentTypeDefault
    textQString
    recvQObject
    slotchar
    +

  • +
  • addButtonBelowList (guiitem, recv, slot) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + + + +
    ArgumentTypeDefault
    guiitemKGuiItem
    recvQObject
    slotchar
    +

  • +
  • addGridPage (n, dir, itemName, header = QString .null, pixmap = QPixmap ()) +
    +
    returns (QGrid)
    + + + + + +
    ArgumentTypeDefault
    nint
    dirQt.Orientation
    itemNameQString
    headerQStringQString .null
    pixmapQPixmapQPixmap ()
    +

  • +
  • addGridPage (n, dir, items, header = QString .null, pixmap = QPixmap ()) +
    +
    returns (QGrid)
    + + + + + +
    ArgumentTypeDefault
    nint
    dirQt.Orientation
    itemsQStringList
    headerQStringQString .null
    pixmapQPixmapQPixmap ()
    +

  • +
  • addHBoxPage (itemName, header = QString .null, pixmap = QPixmap ()) +
    +
    returns (QHBox)
    + + + +
    ArgumentTypeDefault
    itemNameQString
    headerQStringQString .null
    pixmapQPixmapQPixmap ()
    +

  • +
  • addHBoxPage (items, header = QString .null, pixmap = QPixmap ()) +
    +
    returns (QHBox)
    + + + +
    ArgumentTypeDefault
    itemsQStringList
    headerQStringQString .null
    pixmapQPixmapQPixmap ()
    +

  • +
  • addPage (item, header = QString .null, pixmap = QPixmap ()) +
    +
    returns (QFrame)
    + + + +
    ArgumentTypeDefault
    itemQString
    headerQStringQString .null
    pixmapQPixmapQPixmap ()
    +

  • +
  • addPage (items, header = QString .null, pixmap = QPixmap ()) +
    +
    returns (QFrame)
    + + + +
    ArgumentTypeDefault
    itemsQStringList
    headerQStringQString .null
    pixmapQPixmapQPixmap ()
    +

  • +
  • addPageWidget (page, items, header, pixmap) +
    +
    returns nothing
    + + + + +
    ArgumentTypeDefault
    pageQFrame
    itemsQStringList
    headerQString
    pixmapQPixmap
    +

  • +
  • addVBoxPage (item, header = QString .null, pixmap = QPixmap ()) +
    +
    returns (QVBox)
    + + + +
    ArgumentTypeDefault
    itemQString
    headerQStringQString .null
    pixmapQPixmapQPixmap ()
    +

  • +
  • addVBoxPage (items, header = QString .null, pixmap = QPixmap ()) +
    +
    returns (QVBox)
    + + + +
    ArgumentTypeDefault
    itemsQStringList
    headerQStringQString .null
    pixmapQPixmapQPixmap ()
    +

  • +
  • addWidgetBelowList (widget) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    widgetQWidget
    +

  • +
  • eventFilter (o, e) +
    +
    returns (bool)
    + + +
    ArgumentTypeDefault
    oQObject
    eQEvent
    +

  • +
  • face () +
    +
    returns (int)

  • +
  • isValid () +
    +
    returns (bool)

  • +
  • minimumSizeHint () +
    +
    returns (QSize)

  • +
  • pageIndex (widget) +
    +
    returns (int)
    + +
    ArgumentTypeDefault
    widgetQWidget
    +

  • +
  • pageTitle (index) +
    + +
    returns (QString)
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    indexint
    +

  • +
  • pageWidget (index) +
    + +
    returns (QWidget)
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    indexint
    +

  • +
  • plainPage () +
    +
    returns (QFrame)

  • +
  • removePage (page) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    pageQWidget
    +

  • +
  • setFocus () +
    +
    returns nothing

  • +
  • setFolderIcon (path, pixmap) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    pathQStringList
    pixmapQPixmap
    +

  • +
  • setIconListAllVisible (state) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    statebool
    +

  • +
  • setRootIsDecorated (state) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    statebool
    +

  • +
  • setShowIconsInTreeList (state) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    statebool
    +

  • +
  • setSwallowedWidget (widget) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    widgetQWidget
    +

  • +
  • setTreeListAutoResize (state) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    statebool
    +

  • +
  • showEvent (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QShowEvent
    +

  • +
  • showPage (index) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    indexint
    +

  • +
  • showPage (w) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    wQWidget
    +

  • +
  • sizeHint () +
    +
    returns (QSize)

  • +
  • unfoldTreeList (persist = 0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    persistbool0
    +

  • +
+ + + diff --git a/doc/classref/kdeui/KKeyButton.html b/doc/classref/kdeui/KKeyButton.html new file mode 100644 index 0000000..1b87d00 --- /dev/null +++ b/doc/classref/kdeui/KKeyButton.html @@ -0,0 +1,86 @@ + + + + + class KKeyButton + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KKeyButton


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKKeyButton
InheritsQPushButton
+

methods

    +
  • KKeyButton (parent = 0, name = 0) +
    +
    returns a KKeyButton instance
    + + +
    ArgumentTypeDefault
    parentQWidget0
    namechar0
    +

  • +
  • captureShortcut () +
    +
    returns nothing

  • +
  • capturedShortcut (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KShortcut
    +

  • +
  • drawButton (_painter) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    _painterQPainter
    +

  • +
  • setShortcut (cut) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    cutKShortcut
    +

  • +
  • setShortcut (cut, bQtShortcut) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + + +
    ArgumentTypeDefault
    cutKShortcut
    bQtShortcutbool
    +

  • +
  • setText (text) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    textQString
    +

  • +
  • shortcut () +
    +
    returns (KShortcut)

  • +
+ + + diff --git a/doc/classref/kdeui/KKeyChooser.html b/doc/classref/kdeui/KKeyChooser.html new file mode 100644 index 0000000..03abf3c --- /dev/null +++ b/doc/classref/kdeui/KKeyChooser.html @@ -0,0 +1,280 @@ + + + + + class KKeyChooser + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KKeyChooser


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKKeyChooser
InheritsQWidget
+

enums

    +
  • ActionType = {Application, ApplicationGlobal, Standard, Global +}
+

methods

    +
  • KKeyChooser (parent, type = Application, bAllowLetterShortcuts = 1) +
    +
    returns a KKeyChooser instance
    + + + +
    ArgumentTypeDefault
    parentQWidget
    typeKKeyChooser.ActionTypeApplication
    bAllowLetterShortcutsbool1
    +

  • +
  • KKeyChooser (coll, parent, bAllowLetterShortcuts = 1) +
    +
    returns a KKeyChooser instance
    + + + +
    ArgumentTypeDefault
    collKActionCollection
    parentQWidget
    bAllowLetterShortcutsbool1
    +

  • +
  • KKeyChooser (actions, parent, bAllowLetterShortcuts = 1) +
    +
    returns a KKeyChooser instance
    + + + +
    ArgumentTypeDefault
    actionsKAccel
    parentQWidget
    bAllowLetterShortcutsbool1
    +

  • +
  • KKeyChooser (actions, parent) +
    +
    returns a KKeyChooser instance
    + + +
    ArgumentTypeDefault
    actionsKGlobalAccel
    parentQWidget
    +

  • +
  • KKeyChooser (a0, parent, type = Application, bAllowLetterShortcuts = 1) +
    +
    returns a KKeyChooser instance
    + + + + +
    ArgumentTypeDefault
    a0KShortcutList
    parentQWidget
    typeKKeyChooser.ActionTypeApplication
    bAllowLetterShortcutsbool1
    +

  • +
  • KKeyChooser (actions, parent, bCheckAgainstStdKeys, bAllowLetterShortcuts, bAllowWinKey = 0) +
    +
    returns a KKeyChooser instance
    + + + + + +
    ArgumentTypeDefault
    actionsKAccel
    parentQWidget
    bCheckAgainstStdKeysbool
    bAllowLetterShortcutsbool
    bAllowWinKeybool0
    +

  • +
  • KKeyChooser (actions, parent, bCheckAgainstStdKeys, bAllowLetterShortcuts, bAllowWinKey = 0) +
    +
    returns a KKeyChooser instance
    + + + + + +
    ArgumentTypeDefault
    actionsKGlobalAccel
    parentQWidget
    bCheckAgainstStdKeysbool
    bAllowLetterShortcutsbool
    bAllowWinKeybool0
    +

  • +
  • _warning (seq, sAction, sTitle) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    seqKKeySequence
    sActionQString
    sTitleQString
    +

  • +
  • allDefault () +
    +
    returns nothing

  • +
  • buildListView (iList, title = QString .null) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + + +
    ArgumentTypeDefault
    iListuint
    titleQStringQString .null
    +

  • +
  • buildListView (a0) +
    + +
    returns nothing
    In versions less than KDE 3.1.0 only
    + +
    ArgumentTypeDefault
    a0uint
    +

  • +
  • capturedShortcut (cut) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    cutKShortcut
    +

  • +
  • checkGlobalShortcutsConflict (cut, warnUser, parent) +
    + + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    static
    + + + +
    ArgumentTypeDefault
    cutKShortcut
    warnUserbool
    parentQWidget
    +

  • +
  • checkStandardShortcutsConflict (cut, warnUser, parent) +
    + + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    static
    + + + +
    ArgumentTypeDefault
    cutKShortcut
    warnUserbool
    parentQWidget
    +

  • +
  • commitChanges () +
    +
    returns nothing

  • +
  • fontChange (_font) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    _fontQFont
    +

  • +
  • initGUI (type, bAllowLetterShortcuts) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    typeKKeyChooser.ActionType
    bAllowLetterShortcutsbool
    +

  • +
  • insert (a0) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    a0KActionCollection
    +

  • +
  • insert (a0, title) +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above only
    + + +
    ArgumentTypeDefault
    a0KActionCollection
    titleQString
    +

  • +
  • insert (a0) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    a0KAccel
    +

  • +
  • insert (a0) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    a0KGlobalAccel
    +

  • +
  • insert (a0) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    a0KShortcutList
    +

  • +
  • isKeyPresent (cut, warnuser = 1) +
    +
    returns (bool)
    + + +
    ArgumentTypeDefault
    cutKShortcut
    warnuserbool1
    +

  • +
  • isKeyPresentLocally (cut, ignoreItem, warnText) +
    Not Implemented
    +

  • +
  • keyChange () +
    +
    returns nothing

  • +
  • listSync () +
    +
    returns nothing

  • +
  • readGlobalKeys () +
    +
    returns nothing

  • +
  • save () +
    +
    returns nothing

  • +
  • setPreferFourModifierKeys (preferFourModifierKeys) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    preferFourModifierKeysbool
    +

  • +
  • setShortcut (cut) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    cutKShortcut
    +

  • +
  • slotCustomKey () +
    +
    returns nothing

  • +
  • slotDefaultKey () +
    +
    returns nothing

  • +
  • slotListItemDoubleClicked (ipoQListViewItem, ipoQPoint, c) +
    + +
    returns nothing
    In versions KDE 3.1.2 and above only
    + + + +
    ArgumentTypeDefault
    ipoQListViewItemQListViewItem
    ipoQPointQPoint
    cint
    +

  • +
  • slotListItemSelected (item) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    itemQListViewItem
    +

  • +
  • slotNoKey () +
    +
    returns nothing

  • +
  • slotSettingsChanged (a0) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • syncToConfig (sConfigGroup, pConfig, bClearUnset) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    sConfigGroupQString
    pConfigKConfigBase
    bClearUnsetbool
    +

  • +
  • updateButtons () +
    +
    returns nothing

  • +
+ + + diff --git a/doc/classref/kdeui/KKeyDialog.html b/doc/classref/kdeui/KKeyDialog.html new file mode 100644 index 0000000..8bea458 --- /dev/null +++ b/doc/classref/kdeui/KKeyDialog.html @@ -0,0 +1,170 @@ + + + + + class KKeyDialog + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KKeyDialog


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKKeyDialog
InheritsKDialogBase
+

methods

    +
  • KKeyDialog (bAllowLetterShortcuts = 1, parent = 0, name = 0) +
    +
    returns a KKeyDialog instance
    + + + +
    ArgumentTypeDefault
    bAllowLetterShortcutsbool1
    parentQWidget0
    namechar0
    +

  • +
  • KKeyDialog (a0, bAllowLetterShortcuts = 1, parent = 0, name = 0) +
    + +
    returns a KKeyDialog instance
    In versions KDE 3.1.0 and above only
    + + + + +
    ArgumentTypeDefault
    a0KKeyChooser.ActionType
    bAllowLetterShortcutsbool1
    parentQWidget0
    namechar0
    +

  • +
  • commitChanges () +
    +
    returns nothing

  • +
  • configure (bSaveSettings = 1) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    bSaveSettingsbool1
    +

  • +
  • configure (coll, parent = 0, bSaveSettings = 1) +
    + +
    returns (int)
    static
    + + + +
    ArgumentTypeDefault
    collKActionCollection
    parentQWidget0
    bSaveSettingsbool1
    +

  • +
  • configure (keys, parent = 0, bSaveSettings = 1) +
    + +
    returns (int)
    static
    + + + +
    ArgumentTypeDefault
    keysKAccel
    parentQWidget0
    bSaveSettingsbool1
    +

  • +
  • configure (keys, parent = 0, bSaveSettings = 1) +
    + +
    returns (int)
    static
    + + + +
    ArgumentTypeDefault
    keysKGlobalAccel
    parentQWidget0
    bSaveSettingsbool1
    +

  • +
  • configure (coll, bAllowLetterShortcuts, parent = 0, bSaveSettings = 1) +
    + + +
    returns (int)
    In versions KDE 3.1.0 and above only
    static
    + + + + +
    ArgumentTypeDefault
    collKActionCollection
    bAllowLetterShortcutsbool
    parentQWidget0
    bSaveSettingsbool1
    +

  • +
  • configure (keys, bAllowLetterShortcuts, parent = 0, bSaveSettings = 1) +
    + + +
    returns (int)
    In versions KDE 3.1.0 and above only
    static
    + + + + +
    ArgumentTypeDefault
    keysKAccel
    bAllowLetterShortcutsbool
    parentQWidget0
    bSaveSettingsbool1
    +

  • +
  • configure (keys, bAllowLetterShortcuts, parent = 0, bSaveSettings = 1) +
    + + +
    returns (int)
    In versions KDE 3.1.0 and above only
    static
    + + + + +
    ArgumentTypeDefault
    keysKGlobalAccel
    bAllowLetterShortcutsbool
    parentQWidget0
    bSaveSettingsbool1
    +

  • +
  • configureKeys (keys, save_settings = 1, parent = 0) +
    + +
    returns (int)
    static
    + + + +
    ArgumentTypeDefault
    keysKAccel
    save_settingsbool1
    parentQWidget0
    +

  • +
  • configureKeys (keys, save_settings = 1, parent = 0) +
    + +
    returns (int)
    static
    + + + +
    ArgumentTypeDefault
    keysKGlobalAccel
    save_settingsbool1
    parentQWidget0
    +

  • +
  • configureKeys (coll, a0, save_settings = 1, parent = 0) +
    + +
    returns (int)
    static
    + + + + +
    ArgumentTypeDefault
    collKActionCollection
    a0QString
    save_settingsbool1
    parentQWidget0
    +

  • +
  • insert (a0) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    a0KActionCollection
    +

  • +
  • insert (a0, title) +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above only
    + + +
    ArgumentTypeDefault
    a0KActionCollection
    titleQString
    +

  • +
+ + + diff --git a/doc/classref/kdeui/KLanguageButton.html b/doc/classref/kdeui/KLanguageButton.html new file mode 100644 index 0000000..d212ca4 --- /dev/null +++ b/doc/classref/kdeui/KLanguageButton.html @@ -0,0 +1,173 @@ + + + + + class KLanguageButton + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KLanguageButton


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKLanguageButton
InheritsQWidget
+

methods

    +
  • KLanguageButton (parent = 0, name = 0) +
    + +
    returns a KLanguageButton instance
    In versions KDE 3.3.0 and above only
    + + +
    ArgumentTypeDefault
    parentQWidget0
    namechar0
    +

  • +
  • KLanguageButton (text, parent = 0, name = 0) +
    + +
    returns a KLanguageButton instance
    In versions KDE 3.3.0 and above only
    + + + +
    ArgumentTypeDefault
    textQString
    parentQWidget0
    namechar0
    +

  • +
  • activated (id) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    idQString
    +

  • +
  • clear () +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only

  • +
  • contains (id) +
    + +
    returns (bool)
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    idQString
    +

  • +
  • count () +
    + +
    returns (int)
    In versions KDE 3.3.0 and above only

  • +
  • current () +
    + +
    returns (QString)
    In versions KDE 3.3.0 and above only

  • +
  • highlighted (id) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    idQString
    +

  • +
  • id (i) +
    + +
    returns (QString)
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    iint
    +

  • +
  • insertItem (icon, text, id, submenu = QString .null, index = -1) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + + + + + +
    ArgumentTypeDefault
    iconQIconSet
    textQString
    idQString
    submenuQStringQString .null
    indexint-1
    +

  • +
  • insertItem (text, id, submenu = QString .null, index = -1) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + + + + +
    ArgumentTypeDefault
    textQString
    idQString
    submenuQStringQString .null
    indexint-1
    +

  • +
  • insertLanguage (path, name, sub = QString .null, submenu = QString .null, index = -1) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + + + + + +
    ArgumentTypeDefault
    pathQString
    nameQString
    subQStringQString .null
    submenuQStringQString .null
    indexint-1
    +

  • +
  • insertSeparator (submenu = QString .null, index = -1) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + + +
    ArgumentTypeDefault
    submenuQStringQString .null
    indexint-1
    +

  • +
  • insertSubmenu (icon, text, id, submenu = QString .null, index = -1) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + + + + + +
    ArgumentTypeDefault
    iconQIconSet
    textQString
    idQString
    submenuQStringQString .null
    indexint-1
    +

  • +
  • insertSubmenu (text, id, submenu = QString .null, index = -1) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + + + + +
    ArgumentTypeDefault
    textQString
    idQString
    submenuQStringQString .null
    indexint-1
    +

  • +
  • setCurrentItem (id) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    idQString
    +

  • +
  • setText (text) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    textQString
    +

  • +
+ + + diff --git a/doc/classref/kdeui/KLed.html b/doc/classref/kdeui/KLed.html new file mode 100644 index 0000000..da8f7a6 --- /dev/null +++ b/doc/classref/kdeui/KLed.html @@ -0,0 +1,162 @@ + + + + + class KLed + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KLed


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKLed
InheritsQWidget
+

enums

    +
  • Look = {Flat, Raised, Sunken +}
  • Shape = {Rectangular, Circular +}
  • State = {Off, On +}
+

methods

    +
  • KLed (parent = 0, name = 0) +
    +
    returns a KLed instance
    + + +
    ArgumentTypeDefault
    parentQWidget0
    namechar0
    +

  • +
  • KLed (col, parent = 0, name = 0) +
    Not Implemented
    +

  • +
  • KLed (col, state, look, shape, parent = 0, name = 0) +
    +
    returns a KLed instance
    + + + + + + +
    ArgumentTypeDefault
    colQColor
    stateKLed.State
    lookKLed.Look
    shapeKLed.Shape
    parentQWidget0
    namechar0
    +

  • +
  • color () +
    +
    returns (QColor)

  • +
  • darkFactor () +
    +
    returns (int)

  • +
  • ensureRoundLed () +
    + +
    returns (int)
    In versions KDE 3.3.0 and above only

  • +
  • look () +
    +
    returns (Look)

  • +
  • minimumSizeHint () +
    +
    returns (QSize)

  • +
  • off () +
    +
    returns nothing

  • +
  • on () +
    +
    returns nothing

  • +
  • paintCachedPixmap () +
    + +
    returns (bool)
    In versions KDE 3.3.0 and above only

  • +
  • paintEvent (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QPaintEvent
    +

  • +
  • paintFlat () +
    +
    returns nothing

  • +
  • paintRect () +
    +
    returns nothing

  • +
  • paintRectFrame (raised) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    raisedbool
    +

  • +
  • paintRound () +
    +
    returns nothing

  • +
  • paintSunken () +
    +
    returns nothing

  • +
  • setColor (color) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    colorQColor
    +

  • +
  • setDarkFactor (darkfactor) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    darkfactorint
    +

  • +
  • setLook (look) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    lookKLed.Look
    +

  • +
  • setShape (s) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    sKLed.Shape
    +

  • +
  • setState (state) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    stateKLed.State
    +

  • +
  • shape () +
    +
    returns (Shape)

  • +
  • sizeHint () +
    +
    returns (QSize)

  • +
  • state () +
    +
    returns (State)

  • +
  • toggle () +
    +
    returns nothing

  • +
  • toggleState () +
    +
    returns nothing

  • +
+ + + diff --git a/doc/classref/kdeui/KLineEdit.html b/doc/classref/kdeui/KLineEdit.html new file mode 100644 index 0000000..7ba2aa8 --- /dev/null +++ b/doc/classref/kdeui/KLineEdit.html @@ -0,0 +1,329 @@ + + + + + class KLineEdit + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KLineEdit


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKLineEdit
InheritsQLineEdit, KCompletionBase
+

methods

    +
  • KLineEdit (string, parent, name = 0) +
    +
    returns a KLineEdit instance
    + + + +
    ArgumentTypeDefault
    stringQString
    parentQWidget
    namechar0
    +

  • +
  • KLineEdit (parent = 0, name = 0) +
    +
    returns a KLineEdit instance
    + + +
    ArgumentTypeDefault
    parentQWidget0
    namechar0
    +

  • +
  • aboutToShowContextMenu (p) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    pQPopupMenu
    +

  • +
  • autoSuggest () +
    + +
    returns (bool)
    In versions KDE 3.4.0 and above only

  • +
  • clear () +
    +
    returns nothing

  • +
  • completion (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • completionBox (create) +
    +
    returns (KCompletionBox)
    + +
    ArgumentTypeDefault
    createbool
    +

  • +
  • completionBoxActivated (a0) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • completionModeChanged (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KGlobalSettings.Completion
    +

  • +
  • contextMenuEvent (a0) +
    + +
    returns nothing
    In versions KDE 3.3.1 and above only
    + +
    ArgumentTypeDefault
    a0QContextMenuEvent
    +

  • +
  • copy () +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only

  • +
  • create (a0 = 0, initializeWindow = 1, destroyOldWindow = 1) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    a0WId0
    initializeWindowbool1
    destroyOldWindowbool1
    +

  • +
  • createPopupMenu () +
    +
    returns (QPopupMenu)

  • +
  • cursorAtEnd () +
    +
    returns nothing

  • +
  • dropEvent (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QDropEvent
    +

  • +
  • eventFilter (a0, a1) +
    +
    returns (bool)
    + + +
    ArgumentTypeDefault
    a0QObject
    a1QEvent
    +

  • +
  • focusInEvent (a0) +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only
    + +
    ArgumentTypeDefault
    a0QFocusEvent
    +

  • +
  • isContextMenuEnabled () +
    +
    returns (bool)

  • +
  • isSqueezedTextEnabled () +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only

  • +
  • isURLDropsEnabled () +
    +
    returns (bool)

  • +
  • keyPressEvent (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QKeyEvent
    +

  • +
  • makeCompletion (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • mouseDoubleClickEvent (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QMouseEvent
    +

  • +
  • mousePressEvent (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QMouseEvent
    +

  • +
  • originalText () +
    + +
    returns (QString)
    In versions KDE 3.2.0 and above only

  • +
  • resizeEvent (a0) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    a0QResizeEvent
    +

  • +
  • returnPressed (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • rotateText (type) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    typeKCompletionBase.KeyBindingType
    +

  • +
  • setCompletedItems (items) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    itemsQStringList
    +

  • +
  • setCompletedItems (items, autoSuggest) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + + +
    ArgumentTypeDefault
    itemsQStringList
    autoSuggestbool
    +

  • +
  • setCompletedText (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • setCompletedText (a0, a1) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    a0QString
    a1bool
    +

  • +
  • setCompletionBox (box) +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only
    + +
    ArgumentTypeDefault
    boxKCompletionBox
    +

  • +
  • setCompletionMode (mode) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    modeKGlobalSettings.Completion
    +

  • +
  • setCompletionObject (a0, hsig = 1) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    a0KCompletion
    hsigbool1
    +

  • +
  • setContextMenuEnabled (showMenu) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    showMenubool
    +

  • +
  • setEnableSqueezedText (enable) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    enablebool
    +

  • +
  • setReadOnly (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • setSqueezedText (text) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    textQString
    +

  • +
  • setText (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • setTrapReturnKey (trap) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    trapbool
    +

  • +
  • setURL (url) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    urlKURL
    +

  • +
  • setURLDropsEnabled (enable) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    enablebool
    +

  • +
  • setUserSelection (userSelection) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    userSelectionbool
    +

  • +
  • slotAboutToShow () +
    +
    returns nothing

  • +
  • slotCancelled () +
    +
    returns nothing

  • +
  • substringCompletion (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • textRotation (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KCompletionBase.KeyBindingType
    +

  • +
  • trapReturnKey () +
    +
    returns (bool)

  • +
  • userCancelled (cancelText) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    cancelTextQString
    +

  • +
+ + + diff --git a/doc/classref/kdeui/KLineEditDlg.html b/doc/classref/kdeui/KLineEditDlg.html new file mode 100644 index 0000000..9e85cd3 --- /dev/null +++ b/doc/classref/kdeui/KLineEditDlg.html @@ -0,0 +1,85 @@ + + + + + class KLineEditDlg + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KLineEditDlg


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKLineEditDlg
InheritsKDialogBase
+

methods

    +
  • KLineEditDlg (_text, _value, parent) +
    +
    returns a KLineEditDlg instance
    + + + +
    ArgumentTypeDefault
    _textQString
    _valueQString
    parentQWidget
    +

  • +
  • getText (text, value, parent, validator = 0) +
    + +
    returns (QString) ok (bool)
    static
    + + + + +
    ArgumentTypeDefault
    textQString
    valueQString
    parentQWidget
    validatorQValidator0
    +

  • +
  • getText (caption, text, value = QString .null, parent = 0, validator = 0) +
    + +
    returns (QString) ok (bool)
    static
    + + + + + +
    ArgumentTypeDefault
    captionQString
    textQString
    valueQStringQString .null
    parentQWidget0
    validatorQValidator0
    +

  • +
  • lineEdit () +
    +
    returns (KLineEdit)

  • +
  • slotClear () +
    +
    returns nothing

  • +
  • slotTextChanged (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • text () +
    +
    returns (QString)

  • +
+ + + diff --git a/doc/classref/kdeui/KListAction.html b/doc/classref/kdeui/KListAction.html new file mode 100644 index 0000000..73284ad --- /dev/null +++ b/doc/classref/kdeui/KListAction.html @@ -0,0 +1,221 @@ + + + + + class KListAction + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KListAction


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKListAction
InheritsKSelectAction
+

methods

    +
  • KListAction (a0, a1 = KShortcut (), a2 = 0, a3 = 0) +
    + +
    returns a KListAction instance
    In versions less than KDE 3.2.0 only
    + + + + +
    ArgumentTypeDefault
    a0QString
    a1KShortcutKShortcut ()
    a2QObject0
    a3char0
    +

  • +
  • KListAction (a0, a1, slot, a4, a5 = 0) +
    + +
    returns a KListAction instance
    In versions less than KDE 3.2.0 only
    + + + + + +
    ArgumentTypeDefault
    a0QString
    a1KShortcut
    slotSLOT (Python callable)
    a4QObject
    a5char0
    +

  • +
  • KListAction (text, pix, cut = KShortcut (), parent = 0, name = 0) +
    + +
    returns a KListAction instance
    In versions KDE 3.2.0 and above only
    + + + + + +
    ArgumentTypeDefault
    textQString
    pixQString
    cutKShortcutKShortcut ()
    parentQObject0
    namechar0
    +

  • +
  • KListAction (text, pix, cut, slot, parent, name = 0) +
    + +
    returns a KListAction instance
    In versions KDE 3.2.0 and above only
    + + + + + + +
    ArgumentTypeDefault
    textQString
    pixQIconSet
    cutKShortcut
    slotSLOT (Python callable)
    parentQObject
    namechar0
    +

  • +
  • KListAction (text, pix, cut, slot, parent, name = 0) +
    + +
    returns a KListAction instance
    In versions KDE 3.2.0 and above only
    + + + + + + +
    ArgumentTypeDefault
    textQString
    pixQString
    cutKShortcut
    slotSLOT (Python callable)
    parentQObject
    namechar0
    +

  • +
  • KListAction (parent = 0, name = 0) +
    + +
    returns a KListAction instance
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    parentQObject0
    namechar0
    +

  • +
  • KListAction (a0, a1, a2 = KShortcut (), a3 = 0, a4 = 0) +
    + +
    returns a KListAction instance
    In versions less than KDE 3.2.0 only
    + + + + + +
    ArgumentTypeDefault
    a0QString
    a1QIconSet
    a2KShortcutKShortcut ()
    a3QObject0
    a4char0
    +

  • +
  • KListAction (a0, a1, a2 = KShortcut (), a3 = 0, a4 = 0) +
    + +
    returns a KListAction instance
    In versions less than KDE 3.2.0 only
    + + + + + +
    ArgumentTypeDefault
    a0QString
    a1QString
    a2KShortcutKShortcut ()
    a3QObject0
    a4char0
    +

  • +
  • KListAction (a0, a1, a2, slot, a5, a6 = 0) +
    + +
    returns a KListAction instance
    In versions less than KDE 3.2.0 only
    + + + + + + +
    ArgumentTypeDefault
    a0QString
    a1QIconSet
    a2KShortcut
    slotSLOT (Python callable)
    a5QObject
    a6char0
    +

  • +
  • KListAction (a0, a1, a2, slot, a5, a6 = 0) +
    + +
    returns a KListAction instance
    In versions less than KDE 3.2.0 only
    + + + + + + +
    ArgumentTypeDefault
    a0QString
    a1QString
    a2KShortcut
    slotSLOT (Python callable)
    a5QObject
    a6char0
    +

  • +
  • KListAction (a0 = 0, a1 = 0) +
    + +
    returns a KListAction instance
    In versions less than KDE 3.2.0 only
    + + +
    ArgumentTypeDefault
    a0QObject0
    a1char0
    +

  • +
  • KListAction (text, cut = KShortcut (), parent = 0, name = 0) +
    + +
    returns a KListAction instance
    In versions KDE 3.2.0 and above only
    + + + + +
    ArgumentTypeDefault
    textQString
    cutKShortcutKShortcut ()
    parentQObject0
    namechar0
    +

  • +
  • KListAction (text, cut, slot, parent, name = 0) +
    + +
    returns a KListAction instance
    In versions KDE 3.2.0 and above only
    + + + + + +
    ArgumentTypeDefault
    textQString
    cutKShortcut
    slotSLOT (Python callable)
    parentQObject
    namechar0
    +

  • +
  • KListAction (text, pix, cut = KShortcut (), parent = 0, name = 0) +
    + +
    returns a KListAction instance
    In versions KDE 3.2.0 and above only
    + + + + + +
    ArgumentTypeDefault
    textQString
    pixQIconSet
    cutKShortcutKShortcut ()
    parentQObject0
    namechar0
    +

  • +
  • currentItem () +
    + +
    returns (int)
    In versions less than KDE 3.2.0 only

  • +
  • currentItem () +
    + +
    returns (int)
    In versions KDE 3.2.0 and above only

  • +
  • currentText () +
    + +
    returns (QString)
    In versions less than KDE 3.2.0 only

  • +
  • currentText () +
    + +
    returns (QString)
    In versions KDE 3.2.0 and above only

  • +
  • setCurrentItem (a0) +
    + +
    returns nothing
    In versions less than KDE 3.2.0 only
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • setCurrentItem (index) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    indexint
    +

  • +
+ + + diff --git a/doc/classref/kdeui/KListBox.html b/doc/classref/kdeui/KListBox.html new file mode 100644 index 0000000..b4845e5 --- /dev/null +++ b/doc/classref/kdeui/KListBox.html @@ -0,0 +1,124 @@ + + + + + class KListBox + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KListBox


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKListBox
InheritsQListBox
+

methods

    +
  • KListBox (parent = 0, name = 0, f = 0) +
    +
    returns a KListBox instance
    + + + +
    ArgumentTypeDefault
    parentQWidget0
    namechar0
    fWFlags0
    +

  • +
  • contentsMouseDoubleClickEvent (e) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    eQMouseEvent
    +

  • +
  • contentsMousePressEvent (e) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    eQMouseEvent
    +

  • +
  • doubleClicked (item, pos) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    itemQListBoxItem
    posQPoint
    +

  • +
  • emitExecute (item, pos) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    itemQListBoxItem
    posQPoint
    +

  • +
  • executed (item) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    itemQListBoxItem
    +

  • +
  • executed (item, pos) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    itemQListBoxItem
    posQPoint
    +

  • +
  • focusOutEvent (fe) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    feQFocusEvent
    +

  • +
  • keyPressEvent (e) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    eQKeyEvent
    +

  • +
  • leaveEvent (e) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    eQEvent
    +

  • +
  • slotAutoSelect () +
    +
    returns nothing

  • +
  • slotOnItem (item) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    itemQListBoxItem
    +

  • +
  • slotOnViewport () +
    +
    returns nothing

  • +
  • slotSettingsChanged (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
+ + + diff --git a/doc/classref/kdeui/KListView.html b/doc/classref/kdeui/KListView.html new file mode 100644 index 0000000..eb4f517 --- /dev/null +++ b/doc/classref/kdeui/KListView.html @@ -0,0 +1,712 @@ + + + + + class KListView + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KListView


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKListView
InheritsQListView
+

enums

    +
  • SelectionModeExt = {Single, Multi, Extended, NoSelection, FileManager +}
+

methods

    +
  • KListView (parent = 0, name = 0) +
    +
    returns a KListView instance
    + + +
    ArgumentTypeDefault
    parentQWidget0
    namechar0
    +

  • +
  • aboutToMove () +
    +
    returns nothing

  • +
  • acceptDrag (event) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    eventQDropEvent
    +

  • +
  • activateAutomaticSelection () +
    +
    returns nothing

  • +
  • addColumn (label, width = -1) +
    + +
    returns (int)
    In versions KDE 3.0.1 and above only
    + + +
    ArgumentTypeDefault
    labelQString
    widthint-1
    +

  • +
  • addColumn (iconset, label, width = -1) +
    + +
    returns (int)
    In versions KDE 3.0.1 and above only
    + + + +
    ArgumentTypeDefault
    iconsetQIconSet
    labelQString
    widthint-1
    +

  • +
  • alternateBackground () +
    +
    returns (QColor)

  • +
  • ascendingSort () +
    +
    returns (bool)

  • +
  • autoOpen () +
    +
    returns (bool)

  • +
  • automaticSelection () +
    +
    returns (bool)

  • +
  • below (rect, p) +
    +
    returns (bool)
    + + +
    ArgumentTypeDefault
    rectQRect
    pQPoint
    +

  • +
  • below (i, p) +
    +
    returns (bool)
    + + +
    ArgumentTypeDefault
    iQListViewItem
    pQPoint
    +

  • +
  • cleanDropVisualizer () +
    +
    returns nothing

  • +
  • cleanItemHighlighter () +
    +
    returns nothing

  • +
  • columnSorted () +
    +
    returns (int)

  • +
  • contentsDragEnterEvent (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QDragEnterEvent
    +

  • +
  • contentsDragLeaveEvent (event) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    eventQDragLeaveEvent
    +

  • +
  • contentsDragMoveEvent (event) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    eventQDragMoveEvent
    +

  • +
  • contentsDropEvent (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QDropEvent
    +

  • +
  • contentsMouseDoubleClickEvent (e) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    eQMouseEvent
    +

  • +
  • contentsMouseMoveEvent (e) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    eQMouseEvent
    +

  • +
  • contentsMousePressEvent (e) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    eQMouseEvent
    +

  • +
  • contentsMouseReleaseEvent (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QMouseEvent
    +

  • +
  • contextMenu (l, i, p) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    lKListView
    iQListViewItem
    pQPoint
    +

  • +
  • createChildren () +
    +
    returns (bool)

  • +
  • deactivateAutomaticSelection () +
    +
    returns nothing

  • +
  • depthToPixels (depth) +
    +
    returns (int)
    + +
    ArgumentTypeDefault
    depthint
    +

  • +
  • disableAutoSelection () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • doneEditing (item, row) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    itemQListViewItem
    rowint
    +

  • +
  • doubleClicked (item, pos, c) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + + + +
    ArgumentTypeDefault
    itemQListViewItem
    posQPoint
    cint
    +

  • +
  • doubleClicked (a0, a1, a2) +
    + +
    returns nothing
    In versions less than KDE 3.3.0 only
    + + + +
    ArgumentTypeDefault
    a0QListViewItem
    a1QPoint
    a2int
    +

  • +
  • dragEnabled () +
    +
    returns (bool)

  • +
  • dragObject () +
    Not Implemented
    +

  • +
  • dragObject () +
    +
    returns (QDragObject)

  • +
  • drawDropVisualizer (p, parent, after) +
    +
    returns (QRect)
    + + + +
    ArgumentTypeDefault
    pQPainter
    parentQListViewItem
    afterQListViewItem
    +

  • +
  • drawItemHighlighter (painter, item) +
    +
    returns (QRect)
    + + +
    ArgumentTypeDefault
    painterQPainter
    itemQListViewItem
    +

  • +
  • dropHighlighter () +
    +
    returns (bool)

  • +
  • dropVisualizer () +
    +
    returns (bool)

  • +
  • dropVisualizerWidth () +
    +
    returns (int)

  • +
  • dropped (e, after) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    eQDropEvent
    afterQListViewItem
    +

  • +
  • dropped (list, e, after) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    listKListView
    eQDropEvent
    afterQListViewItem
    +

  • +
  • dropped (list, e, parent, after) +
    +
    returns nothing
    + + + + +
    ArgumentTypeDefault
    listKListView
    eQDropEvent
    parentQListViewItem
    afterQListViewItem
    +

  • +
  • dropped (e, parent, after) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    eQDropEvent
    parentQListViewItem
    afterQListViewItem
    +

  • +
  • emitContextMenu (a0, a1, a2) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    a0QListViewItem
    a1QPoint
    a2int
    +

  • +
  • emitContextMenu (a0, a1) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    a0KListView
    a1QListViewItem
    +

  • +
  • emitExecute (item, pos, c) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    itemQListViewItem
    posQPoint
    cint
    +

  • +
  • event (a0) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    a0QEvent
    +

  • +
  • executed (item) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    itemQListViewItem
    +

  • +
  • executed (item, pos, c) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    itemQListViewItem
    posQPoint
    cint
    +

  • +
  • fileManagerKeyPressEvent (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QKeyEvent
    +

  • +
  • findDrop (pos, parent, after) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    posQPoint
    parentQListViewItem
    afterQListViewItem
    +

  • +
  • focusInEvent (fe) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    feQFocusEvent
    +

  • +
  • focusOutEvent (fe) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    feQFocusEvent
    +

  • +
  • fullWidth () +
    +
    returns (bool)

  • +
  • isExecuteArea (point) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    pointQPoint
    +

  • +
  • isExecuteArea (x) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    xint
    +

  • +
  • isRenameable (column) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    columnint
    +

  • +
  • itemAdded (item) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    itemQListViewItem
    +

  • +
  • itemAtIndex (index) +
    +
    returns (QListViewItem)
    + +
    ArgumentTypeDefault
    indexint
    +

  • +
  • itemIndex (item) +
    +
    returns (int)
    + +
    ArgumentTypeDefault
    itemQListViewItem
    +

  • +
  • itemRemoved (item) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    itemQListViewItem
    +

  • +
  • itemRenamed (item, str, col) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    itemQListViewItem
    strQString
    colint
    +

  • +
  • itemRenamed (item) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    itemQListViewItem
    +

  • +
  • itemsMovable () +
    +
    returns (bool)

  • +
  • itemsRenameable () +
    +
    returns (bool)

  • +
  • keyPressEvent (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QKeyEvent
    +

  • +
  • lastChild () +
    +
    returns (QListViewItem)

  • +
  • lastItem () +
    +
    returns (QListViewItem)

  • +
  • leaveEvent (e) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    eQEvent
    +

  • +
  • menuShortCutPressed (list, item) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    listKListView
    itemQListViewItem
    +

  • +
  • movableDropEvent (parent, afterme) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    parentQListViewItem
    aftermeQListViewItem
    +

  • +
  • moveItem (item, parent, after) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    itemQListViewItem
    parentQListViewItem
    afterQListViewItem
    +

  • +
  • moved () +
    +
    returns nothing

  • +
  • moved (item, afterFirst, afterNow) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    itemQListViewItem
    afterFirstQListViewItem
    afterNowQListViewItem
    +

  • +
  • moved (items, afterFirst, afterNow) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    itemsQPtrList
    afterFirstQPtrList
    afterNowQPtrList
    +

  • +
  • removeColumn (index) +
    + +
    returns nothing
    In versions KDE 3.0.1 and above only
    + +
    ArgumentTypeDefault
    indexint
    +

  • +
  • rename (item, c) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    itemQListViewItem
    cint
    +

  • +
  • renameLineEdit () +
    + +
    returns (KLineEdit)
    In versions KDE 3.1.0 and above only

  • +
  • resetAutoSelection () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • restoreLayout (config, group) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    configKConfig
    groupQString
    +

  • +
  • saveLayout (config, group) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    configKConfig
    groupQString
    +

  • +
  • selectedItems () +
    +
    returns (QPtrList)

  • +
  • selectedItems (includeHiddenItems) +
    + +
    returns (QPtrList)
    In versions KDE 3.4.0 and above only
    + +
    ArgumentTypeDefault
    includeHiddenItemsbool
    +

  • +
  • selectionModeExt () +
    +
    returns (SelectionModeExt)

  • +
  • setAcceptDrops (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • setAlternateBackground (c) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    cQColor
    +

  • +
  • setAutoOpen (b) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    bbool
    +

  • +
  • setCreateChildren (b) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    bbool
    +

  • +
  • setDragEnabled (b) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    bbool
    +

  • +
  • setDropHighlighter (b) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    bbool
    +

  • +
  • setDropVisualizer (b) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    bbool
    +

  • +
  • setDropVisualizerWidth (w) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    wint
    +

  • +
  • setFullWidth () +
    +
    returns nothing

  • +
  • setFullWidth (fullWidth) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    fullWidthbool
    +

  • +
  • setItemsMovable (b) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    bbool
    +

  • +
  • setItemsRenameable (b) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    bbool
    +

  • +
  • setRenameable (column, yesno = 1) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    columnint
    yesnobool1
    +

  • +
  • setSelectionModeExt (mode) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    modeKListView.SelectionModeExt
    +

  • +
  • setShadeSortColumn (shadeSortColumn) +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only
    + +
    ArgumentTypeDefault
    shadeSortColumnbool
    +

  • +
  • setSorting (column, ascending = 1) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    columnint
    ascendingbool1
    +

  • +
  • setTabOrderedRenaming (b) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    bbool
    +

  • +
  • setTooltipColumn (column) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    columnint
    +

  • +
  • shadeSortColumn () +
    + +
    returns (bool)
    In versions KDE 3.4.0 and above only

  • +
  • showTooltip (item, pos, column) +
    +
    returns (bool)
    + + + +
    ArgumentTypeDefault
    itemQListViewItem
    posQPoint
    columnint
    +

  • +
  • slotAutoSelect () +
    +
    returns nothing

  • +
  • slotDragExpand () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • slotHeaderChanged () +
    +
    returns nothing

  • +
  • slotMouseButtonClicked (btn, item, pos, c) +
    +
    returns nothing
    + + + + +
    ArgumentTypeDefault
    btnint
    itemQListViewItem
    posQPoint
    cint
    +

  • +
  • slotOnItem (item) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    itemQListViewItem
    +

  • +
  • slotOnViewport () +
    +
    returns nothing

  • +
  • slotSettingsChanged (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • startDrag () +
    +
    returns nothing

  • +
  • tabOrderedRenaming () +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above only

  • +
  • takeItem (i) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    iQListViewItem
    +

  • +
  • tooltip (item, column) +
    +
    returns (QString)
    + + +
    ArgumentTypeDefault
    itemQListViewItem
    columnint
    +

  • +
  • tooltipColumn () +
    +
    returns (int)

  • +
  • viewportPaintEvent (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QPaintEvent
    +

  • +
  • viewportResizeEvent (e) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    eQResizeEvent
    +

  • +
+ + + diff --git a/doc/classref/kdeui/KListViewItem.html b/doc/classref/kdeui/KListViewItem.html new file mode 100644 index 0000000..aaf6079 --- /dev/null +++ b/doc/classref/kdeui/KListViewItem.html @@ -0,0 +1,162 @@ + + + + + class KListViewItem + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KListViewItem


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKListViewItem
InheritsQListViewItem
+

methods

    +
  • KListViewItem (parent) +
    +
    returns a KListViewItem instance
    + +
    ArgumentTypeDefault
    parentQListView
    +

  • +
  • KListViewItem (parent) +
    +
    returns a KListViewItem instance
    + +
    ArgumentTypeDefault
    parentQListViewItem
    +

  • +
  • KListViewItem (parent, after) +
    +
    returns a KListViewItem instance
    + + +
    ArgumentTypeDefault
    parentQListView
    afterQListViewItem
    +

  • +
  • KListViewItem (parent, after) +
    +
    returns a KListViewItem instance
    + + +
    ArgumentTypeDefault
    parentQListViewItem
    afterQListViewItem
    +

  • +
  • KListViewItem (parent, a0, a1 = QString .null, a2 = QString .null, a3 = QString .null, a4 = QString .null, a5 = QString .null, a6 = QString .null, a7 = QString .null) +
    +
    returns a KListViewItem instance
    + + + + + + + + + +
    ArgumentTypeDefault
    parentQListView
    a0QString
    a1QStringQString .null
    a2QStringQString .null
    a3QStringQString .null
    a4QStringQString .null
    a5QStringQString .null
    a6QStringQString .null
    a7QStringQString .null
    +

  • +
  • KListViewItem (parent, a0, a1 = QString .null, a2 = QString .null, a3 = QString .null, a4 = QString .null, a5 = QString .null, a6 = QString .null, a7 = QString .null) +
    +
    returns a KListViewItem instance
    + + + + + + + + + +
    ArgumentTypeDefault
    parentQListViewItem
    a0QString
    a1QStringQString .null
    a2QStringQString .null
    a3QStringQString .null
    a4QStringQString .null
    a5QStringQString .null
    a6QStringQString .null
    a7QStringQString .null
    +

  • +
  • KListViewItem (parent, after, a0, a1 = QString .null, a2 = QString .null, a3 = QString .null, a4 = QString .null, a5 = QString .null, a6 = QString .null, a7 = QString .null) +
    +
    returns a KListViewItem instance
    + + + + + + + + + + +
    ArgumentTypeDefault
    parentQListView
    afterQListViewItem
    a0QString
    a1QStringQString .null
    a2QStringQString .null
    a3QStringQString .null
    a4QStringQString .null
    a5QStringQString .null
    a6QStringQString .null
    a7QStringQString .null
    +

  • +
  • KListViewItem (parent, after, a0, a1 = QString .null, a2 = QString .null, a3 = QString .null, a4 = QString .null, a5 = QString .null, a6 = QString .null, a7 = QString .null) +
    +
    returns a KListViewItem instance
    + + + + + + + + + + +
    ArgumentTypeDefault
    parentQListViewItem
    afterQListViewItem
    a0QString
    a1QStringQString .null
    a2QStringQString .null
    a3QStringQString .null
    a4QStringQString .null
    a5QStringQString .null
    a6QStringQString .null
    a7QStringQString .null
    +

  • +
  • backgroundColor () +
    +
    returns (QColor)

  • +
  • backgroundColor (column) +
    + +
    returns (QColor)
    In versions KDE 3.4.0 and above only
    + +
    ArgumentTypeDefault
    columnint
    +

  • +
  • insertItem (item) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    itemQListViewItem
    +

  • +
  • isAlternate () +
    +
    returns (bool)

  • +
  • paintCell (p, cg, column, width, alignment) +
    +
    returns nothing
    + + + + + +
    ArgumentTypeDefault
    pQPainter
    cgQColorGroup
    columnint
    widthint
    alignmentint
    +

  • +
  • takeItem (item) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    itemQListViewItem
    +

  • +
+ + + diff --git a/doc/classref/kdeui/KListViewSearchLine.html b/doc/classref/kdeui/KListViewSearchLine.html new file mode 100644 index 0000000..34024ae --- /dev/null +++ b/doc/classref/kdeui/KListViewSearchLine.html @@ -0,0 +1,132 @@ + + + + + class KListViewSearchLine + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KListViewSearchLine


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKListViewSearchLine
InheritsKLineEdit
+

methods

    +
  • KListViewSearchLine (parent = 0, listView = 0, name = 0) +
    + +
    returns a KListViewSearchLine instance
    In versions KDE 3.3.0 and above only
    + + + +
    ArgumentTypeDefault
    parentQWidget0
    listViewKListView0
    namechar0
    +

  • +
  • KListViewSearchLine (parent, name) +
    + +
    returns a KListViewSearchLine instance
    In versions KDE 3.3.0 and above only
    + + +
    ArgumentTypeDefault
    parentQWidget
    namechar
    +

  • +
  • activateSearch () +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only

  • +
  • caseSensitive () +
    + +
    returns (bool)
    In versions KDE 3.3.0 and above only

  • +
  • createPopupMenu () +
    + +
    returns (QPopupMenu)
    In versions KDE 3.3.0 and above only

  • +
  • itemMatches (item, s) +
    + +
    returns (bool)
    In versions KDE 3.3.0 and above only
    + + +
    ArgumentTypeDefault
    itemQListViewItem
    sQString
    +

  • +
  • keepParentsVisible () +
    + +
    returns (bool)
    In versions KDE 3.3.0 and above only

  • +
  • listView () +
    + +
    returns (KListView)
    In versions KDE 3.3.0 and above only

  • +
  • queueSearch (search) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    searchQString
    +

  • +
  • searchColumns () +
    + +
    returns (QValueList)
    In versions KDE 3.3.0 and above only

  • +
  • setCaseSensitive (cs) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    csbool
    +

  • +
  • setKeepParentsVisible (v) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    vbool
    +

  • +
  • setListView (lv) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    lvKListView
    +

  • +
  • setSearchColumns (columns) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    columnsQValueList
    +

  • +
  • updateSearch (s = QString .null) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    sQStringQString .null
    +

  • +
+ + + diff --git a/doc/classref/kdeui/KListViewSearchLineWidget.html b/doc/classref/kdeui/KListViewSearchLineWidget.html new file mode 100644 index 0000000..c746f46 --- /dev/null +++ b/doc/classref/kdeui/KListViewSearchLineWidget.html @@ -0,0 +1,65 @@ + + + + + class KListViewSearchLineWidget + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KListViewSearchLineWidget


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKListViewSearchLineWidget
InheritsQHBox
+

methods

    +
  • KListViewSearchLineWidget (listView = 0, parent = 0, name = 0) +
    + +
    returns a KListViewSearchLineWidget instance
    In versions KDE 3.4.0 and above only
    + + + +
    ArgumentTypeDefault
    listViewKListView0
    parentQWidget0
    namechar0
    +

  • +
  • createSearchLine (listView) +
    + +
    returns (KListViewSearchLine)
    In versions KDE 3.4.0 and above only
    + +
    ArgumentTypeDefault
    listViewKListView
    +

  • +
  • createWidgets () +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only

  • +
  • searchLine () +
    + +
    returns (KListViewSearchLine)
    In versions KDE 3.4.0 and above only

  • +
+ + + diff --git a/doc/classref/kdeui/KMacroCommand.html b/doc/classref/kdeui/KMacroCommand.html new file mode 100644 index 0000000..aab58db --- /dev/null +++ b/doc/classref/kdeui/KMacroCommand.html @@ -0,0 +1,59 @@ + + + + + class KMacroCommand + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KMacroCommand


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKMacroCommand
InheritsKNamedCommand
+

methods

    +
  • KMacroCommand (name) +
    +
    returns a KMacroCommand instance
    + +
    ArgumentTypeDefault
    nameQString
    +

  • +
  • addCommand (command) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    commandKCommand
    +

  • +
  • execute () +
    +
    returns nothing

  • +
  • unexecute () +
    +
    returns nothing

  • +
+ + + diff --git a/doc/classref/kdeui/KMainWindow.html b/doc/classref/kdeui/KMainWindow.html new file mode 100644 index 0000000..89d5623 --- /dev/null +++ b/doc/classref/kdeui/KMainWindow.html @@ -0,0 +1,421 @@ + + + + + class KMainWindow + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KMainWindow


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKMainWindow
InheritsQMainWindow, KXMLGUIBuilder, KXMLGUIClient
+

enums

    +
  • CreationFlags = {NoDCOPObject +}
  • StandardWindowOptions = {ToolBar, Keys, StatusBar, Save, Create +}
+

methods

    +
  • KMainWindow (parent = 0, name = 0, f = WType_TopLevel | WDestructiveClose) +
    +
    returns a KMainWindow instance
    + + + +
    ArgumentTypeDefault
    parentQWidget0
    namechar0
    fWFlagsWType_TopLevel | WDestructiveClose
    +

  • +
  • KMainWindow (cflags, parent = 0, name = 0, f = WType_TopLevel | WDestructiveClose) +
    + +
    returns a KMainWindow instance
    In versions KDE 3.2.0 and above only
    + + + + +
    ArgumentTypeDefault
    cflagsint
    parentQWidget0
    namechar0
    fWFlagsWType_TopLevel | WDestructiveClose
    +

  • +
  • accel () +
    +
    returns (KAccel)

  • +
  • appHelpActivated () +
    +
    returns nothing

  • +
  • applyMainWindowSettings (config, groupName, force) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + + + +
    ArgumentTypeDefault
    configKConfig
    groupNameQString
    forcebool
    +

  • +
  • applyMainWindowSettings (config, groupName = QString .null) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    configKConfig
    groupNameQStringQString .null
    +

  • +
  • autoSaveGroup () +
    + +
    returns (QString)
    In versions KDE 3.1.0 and above only

  • +
  • autoSaveSettings () +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above only

  • +
  • canBeRestored (number) +
    + +
    returns (bool)
    static
    + +
    ArgumentTypeDefault
    numberint
    +

  • +
  • childEvent (e) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    eQChildEvent
    +

  • +
  • classNameOfToplevel (number) +
    + +
    returns (QString)
    static
    + +
    ArgumentTypeDefault
    numberint
    +

  • +
  • closeEvent (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QCloseEvent
    +

  • +
  • configureToolbars () +
    + +
    returns (int)
    In versions KDE 3.3.0 and above only

  • +
  • createGUI (xmlfile = QString .null, _conserveMemory = 1) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    xmlfileQStringQString .null
    _conserveMemorybool1
    +

  • +
  • createStandardStatusBarAction () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • customHelpMenu (showWhatsThis = 1) +
    +
    returns (KPopupMenu)
    + +
    ArgumentTypeDefault
    showWhatsThisbool1
    +

  • +
  • finalizeGUI (client) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    clientKXMLGUIClient
    +

  • +
  • finalizeGUI (force) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    forcebool
    +

  • +
  • getMemberList () +
    + + +
    returns (QPtrList)
    In versions KDE 3.4.0 and above only
    static

  • +
  • guiFactory () +
    +
    returns (KXMLGUIFactory)

  • +
  • hasMenuBar () +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above only

  • +
  • helpMenu (aboutAppText = QString .null, showWhatsThis = 1) +
    +
    returns (KPopupMenu)
    + + +
    ArgumentTypeDefault
    aboutAppTextQStringQString .null
    showWhatsThisbool1
    +

  • +
  • hide () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • ignoreInitialGeometry () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • initialGeometrySet () +
    +
    returns (bool)

  • +
  • isHelpMenuEnabled () +
    +
    returns (bool)

  • +
  • isStandardToolBarMenuEnabled () +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above only

  • +
  • menuBar () +
    +
    returns (KMenuBar)

  • +
  • paintEvent (e) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    eQPaintEvent
    +

  • +
  • parseGeometry (parsewidth) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    parsewidthbool
    +

  • +
  • queryClose () +
    +
    returns (bool)

  • +
  • queryExit () +
    +
    returns (bool)

  • +
  • readGlobalProperties (sessionConfig) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    sessionConfigKConfig
    +

  • +
  • readProperties (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KConfig
    +

  • +
  • readPropertiesInternal (a0, a1) +
    +
    returns (bool)
    + + +
    ArgumentTypeDefault
    a0KConfig
    a1int
    +

  • +
  • resetAutoSaveSettings () +
    +
    returns nothing

  • +
  • resizeEvent (e) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    eQResizeEvent
    +

  • +
  • restore (number, show = 1) +
    +
    returns (bool)
    + + +
    ArgumentTypeDefault
    numberint
    showbool1
    +

  • +
  • restoreWindowSize (config) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    configKConfig
    +

  • +
  • saveAutoSaveSettings () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • saveGlobalProperties (sessionConfig) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    sessionConfigKConfig
    +

  • +
  • saveMainWindowSettings (config, groupName = QString .null) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    configKConfig
    groupNameQStringQString .null
    +

  • +
  • saveNewToolbarConfig () +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only

  • +
  • saveProperties (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KConfig
    +

  • +
  • savePropertiesInternal (a0, a1) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    a0KConfig
    a1int
    +

  • +
  • saveWindowSize (config) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    configKConfig
    +

  • +
  • setAutoSaveSettings (groupName = QString .fromLatin1 ("MainWindow" ), saveWindowSize = 1) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    groupNameQStringQString .fromLatin1 ("MainWindow" )
    saveWindowSizebool1
    +

  • +
  • setCaption (caption) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    captionQString
    +

  • +
  • setCaption (caption, modified) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    captionQString
    modifiedbool
    +

  • +
  • setFrameBorderWidth (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • setHelpMenuEnabled (showHelpMenu = 1) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    showHelpMenubool1
    +

  • +
  • setIcon (a0) +
    + +
    returns nothing
    In versions KDE 3.3.2 and above only
    + +
    ArgumentTypeDefault
    a0QPixmap
    +

  • +
  • setPlainCaption (caption) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    captionQString
    +

  • +
  • setSettingsDirty () +
    +
    returns nothing

  • +
  • setStandardToolBarMenuEnabled (enable) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    enablebool
    +

  • +
  • settingsDirty () +
    +
    returns (bool)

  • +
  • settingsGroup () +
    +
    returns (QString)

  • +
  • setupGUI (options = ToolBar | Keys | StatusBar | Save | Create, xmlfile = QString .null) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + + +
    ArgumentTypeDefault
    optionsintToolBar | Keys | StatusBar | Save | Create
    xmlfileQStringQString .null
    +

  • +
  • setupGUI (defaultSize, options = ToolBar | Keys | StatusBar | Save | Create, xmlfile = QString .null) +
    + +
    returns nothing
    In versions KDE 3.5.0 and above only
    + + + +
    ArgumentTypeDefault
    defaultSizeQSize
    optionsintToolBar | Keys | StatusBar | Save | Create
    xmlfileQStringQString .null
    +

  • +
  • setupToolbarMenuActions () +
    + +
    returns nothing
    In versions KDE 3.3.1 and above only

  • +
  • show () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • showAboutApplication () +
    +
    returns nothing

  • +
  • sizeForCentralWidgetSize (size) +
    +
    returns (QSize)
    + +
    ArgumentTypeDefault
    sizeQSize
    +

  • +
  • slotStateChanged (newstate) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    newstateQString
    +

  • +
  • slotStateChanged (newstate, a0) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + + +
    ArgumentTypeDefault
    newstateQString
    a0KXMLGUIClient.ReverseStateChange
    +

  • +
  • statusBar () +
    +
    returns (KStatusBar)

  • +
  • toolBar (name = 0) +
    +
    returns (KToolBar)
    + +
    ArgumentTypeDefault
    namechar0
    +

  • +
  • toolBarIterator () +
    Not Implemented
    +

  • +
  • toolBarMenuAction () +
    + +
    returns (KAction)
    In versions KDE 3.1.0 and above only

  • +
+

variables

  • +variables + +
    VariableType
    memberListQPtrList*
+ + + diff --git a/doc/classref/kdeui/KMainWindowInterface.html b/doc/classref/kdeui/KMainWindowInterface.html new file mode 100644 index 0000000..cc5c586 --- /dev/null +++ b/doc/classref/kdeui/KMainWindowInterface.html @@ -0,0 +1,171 @@ + + + + + class KMainWindowInterface + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KMainWindowInterface


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKMainWindowInterface
InheritsDCOPObject
+

methods

    +
  • KMainWindowInterface (mainWindow) +
    +
    returns a KMainWindowInterface instance
    + +
    ArgumentTypeDefault
    mainWindowKMainWindow
    +

  • +
  • action (name) +
    +
    returns (DCOPRef)
    + +
    ArgumentTypeDefault
    nameQCString
    +

  • +
  • actionIsEnabled (action) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    actionQCString
    +

  • +
  • actionMap () +
    +
    returns (QMap)

  • +
  • actionToolTip (action) +
    +
    returns (QCString)
    + +
    ArgumentTypeDefault
    actionQCString
    +

  • +
  • actions () +
    +
    returns (QCStringList)

  • +
  • activateAction (action) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    actionQCString
    +

  • +
  • disableAction (action) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    actionQCString
    +

  • +
  • enableAction (action) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    actionQCString
    +

  • +
  • functions () +
    + +
    returns (QCStringList)
    In versions KDE 3.1.4 and above only

  • +
  • functionsDynamic () +
    +
    returns (QCStringList)

  • +
  • getWinID () +
    +
    returns (int)

  • +
  • grabWindowToClipBoard () +
    +
    returns nothing

  • +
  • hide () +
    +
    returns nothing

  • +
  • interfaces () +
    + +
    returns (QCStringList)
    In versions KDE 3.1.4 and above only

  • +
  • lower () +
    +
    returns nothing

  • +
  • maximize () +
    +
    returns nothing

  • +
  • minimize () +
    +
    returns nothing

  • +
  • move (newX, newY) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    newXint
    newYint
    +

  • +
  • process (fun, data, replyType, replyData) +
    + +
    returns (bool)
    In versions KDE 3.1.4 and above only
    + + + + +
    ArgumentTypeDefault
    funQCString
    dataQByteArray
    replyTypeQCString
    replyDataQByteArray
    +

  • +
  • processDynamic (fun, data, replyType, replyData) +
    +
    returns (bool)
    + + + + +
    ArgumentTypeDefault
    funQCString
    dataQByteArray
    replyTypeQCString
    replyDataQByteArray
    +

  • +
  • raise_ () +
    + +
    returns nothing
    Renamed: was ' raise +' in C++

  • +
  • resize (newWidth, newHeight) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    newWidthint
    newHeightint
    +

  • +
  • restore () +
    +
    returns nothing

  • +
  • setGeometry (newX, newY, newWidth, newHeight) +
    +
    returns nothing
    + + + + +
    ArgumentTypeDefault
    newXint
    newYint
    newWidthint
    newHeightint
    +

  • +
  • show () +
    +
    returns nothing

  • +
+ + + diff --git a/doc/classref/kdeui/KMenuBar.html b/doc/classref/kdeui/KMenuBar.html new file mode 100644 index 0000000..9accbd4 --- /dev/null +++ b/doc/classref/kdeui/KMenuBar.html @@ -0,0 +1,158 @@ + + + + + class KMenuBar + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KMenuBar


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKMenuBar
InheritsQMenuBar
+

methods

    +
  • KMenuBar (parent = 0, name = 0) +
    +
    returns a KMenuBar instance
    + + +
    ArgumentTypeDefault
    parentQWidget0
    namechar0
    +

  • +
  • closeEvent (a0) +
    + +
    returns nothing
    In versions KDE 3.2.3 and above only
    + +
    ArgumentTypeDefault
    a0QCloseEvent
    +

  • +
  • drawContents (a0) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    a0QPainter
    +

  • +
  • eventFilter (a0, a1) +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above only
    + + +
    ArgumentTypeDefault
    a0QObject
    a1QEvent
    +

  • +
  • isTopLevelMenu () +
    +
    returns (bool)

  • +
  • resize (w, h) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    wint
    hint
    +

  • +
  • resize (s) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    sQSize
    +

  • +
  • resizeEvent (a0) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    a0QResizeEvent
    +

  • +
  • setFrameStyle (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • setGeometry (r) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    rQRect
    +

  • +
  • setGeometry (x, y, w, h) +
    +
    returns nothing
    + + + + +
    ArgumentTypeDefault
    xint
    yint
    wint
    hint
    +

  • +
  • setLineWidth (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • setMargin (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • setTopLevelMenu (top_level = 1) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    top_levelbool1
    +

  • +
  • show () +
    +
    returns nothing

  • +
  • showEvent (a0) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    a0QShowEvent
    +

  • +
  • sizeHint () +
    + +
    returns (QSize)
    In versions KDE 3.4.0 and above only

  • +
  • slotReadConfig () +
    +
    returns nothing

  • +
  • x11Event (a0) +
    Not Implemented
    +

  • +
+ + + diff --git a/doc/classref/kdeui/KMessageBox.html b/doc/classref/kdeui/KMessageBox.html new file mode 100644 index 0000000..b5b804c --- /dev/null +++ b/doc/classref/kdeui/KMessageBox.html @@ -0,0 +1,677 @@ + + + + + class KMessageBox + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KMessageBox


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKMessageBox
Inherits
+

enums

    +
  • ButtonCode = {Ok, Cancel, Yes, No, Continue +}
  • DialogType = {QuestionYesNo, WarningYesNo, WarningContinueCancel, WarningYesNoCancel, Information, Sorry, Error, QuestionYesNoCancel +}
  • OptionsType = {Notify, AllowLink, Dangerous, PlainCaption, NoExec +}
  • OptionsType = {Notify, AllowLink, Dangerous +}
  • OptionsType = {Notify, AllowLink +}
+

methods

    +
  • about (parent, text, caption = QString .null, options = 1) +
    + +
    returns nothing
    static
    + + + + +
    ArgumentTypeDefault
    parentQWidget
    textQString
    captionQStringQString .null
    optionsbool1
    +

  • +
  • createKMessageBox (dialog, icon, text, strlist, ask, options, details = QString .null) +
    + + +
    returns (int) checkboxReturn (bool)
    In versions KDE 3.3.0 and above only
    static
    + + + + + + + +
    ArgumentTypeDefault
    dialogKDialogBase
    iconQMessageBox.Icon
    textQString
    strlistQStringList
    askQString
    optionsint
    detailsQStringQString .null
    +

  • +
  • createKMessageBox (dialog, icon, text, strlist, ask, options, details = QString .null, notifyType = QMessageBox .Information) +
    + + +
    returns (int) checkboxReturn (bool)
    In versions KDE 3.3.0 and above only
    static
    + + + + + + + + +
    ArgumentTypeDefault
    dialogKDialogBase
    iconQPixmap
    textQString
    strlistQStringList
    askQString
    optionsint
    detailsQStringQString .null
    notifyTypeQMessageBox.IconQMessageBox .Information
    +

  • +
  • detailedError (parent, text, details, caption = QString .null, options = 1) +
    + +
    returns nothing
    static
    + + + + + +
    ArgumentTypeDefault
    parentQWidget
    textQString
    detailsQString
    captionQStringQString .null
    optionsbool1
    +

  • +
  • detailedErrorWId (parent_id, text, details, caption = QString .null, options = Notify) +
    + + +
    returns nothing
    In versions KDE 3.2.0 and above only
    static
    + + + + + +
    ArgumentTypeDefault
    parent_idWId
    textQString
    detailsQString
    captionQStringQString .null
    optionsintNotify
    +

  • +
  • detailedSorry (parent, text, details, caption = QString .null, options = 1) +
    + +
    returns nothing
    static
    + + + + + +
    ArgumentTypeDefault
    parentQWidget
    textQString
    detailsQString
    captionQStringQString .null
    optionsbool1
    +

  • +
  • detailedSorryWId (parent_id, text, details, caption = QString .null, options = Notify) +
    + + +
    returns nothing
    In versions KDE 3.2.0 and above only
    static
    + + + + + +
    ArgumentTypeDefault
    parent_idWId
    textQString
    detailsQString
    captionQStringQString .null
    optionsintNotify
    +

  • +
  • enableAllMessages () +
    + +
    returns nothing
    static

  • +
  • enableMessage (dontShowAgainName) +
    + + +
    returns nothing
    In versions KDE 3.2.0 and above only
    static
    + +
    ArgumentTypeDefault
    dontShowAgainNameQString
    +

  • +
  • error (parent, text, caption = QString .null, options = 1) +
    + +
    returns nothing
    static
    + + + + +
    ArgumentTypeDefault
    parentQWidget
    textQString
    captionQStringQString .null
    optionsbool1
    +

  • +
  • errorList (parent, text, strlist, caption = QString .null, options = Notify) +
    + + +
    returns nothing
    In versions KDE 3.4.0 and above only
    static
    + + + + + +
    ArgumentTypeDefault
    parentQWidget
    textQString
    strlistQStringList
    captionQStringQString .null
    optionsintNotify
    +

  • +
  • errorListWId (parent_id, text, strlist, caption = QString .null, options = Notify) +
    + + +
    returns nothing
    In versions KDE 3.4.0 and above only
    static
    + + + + + +
    ArgumentTypeDefault
    parent_idWId
    textQString
    strlistQStringList
    captionQStringQString .null
    optionsintNotify
    +

  • +
  • errorWId (parent_id, text, caption = QString .null, options = Notify) +
    + + +
    returns nothing
    In versions KDE 3.2.0 and above only
    static
    + + + + +
    ArgumentTypeDefault
    parent_idWId
    textQString
    captionQStringQString .null
    optionsintNotify
    +

  • +
  • information (parent, text, caption = QString .null, dontShowAgainName = QString .null, options = 1) +
    + +
    returns nothing
    static
    + + + + + +
    ArgumentTypeDefault
    parentQWidget
    textQString
    captionQStringQString .null
    dontShowAgainNameQStringQString .null
    optionsbool1
    +

  • +
  • informationList (parent, text, strlist, caption = QString .null, dontShowAgainName = QString .null, options = Notify) +
    + + +
    returns nothing
    In versions KDE 3.1.0 and above only
    static
    + + + + + + +
    ArgumentTypeDefault
    parentQWidget
    textQString
    strlistQStringList
    captionQStringQString .null
    dontShowAgainNameQStringQString .null
    optionsintNotify
    +

  • +
  • informationListWId (parent_id, text, strlist, caption = QString .null, dontShowAgainName = QString .null, options = Notify) +
    + + +
    returns nothing
    In versions KDE 3.2.0 and above only
    static
    + + + + + + +
    ArgumentTypeDefault
    parent_idWId
    textQString
    strlistQStringList
    captionQStringQString .null
    dontShowAgainNameQStringQString .null
    optionsintNotify
    +

  • +
  • informationWId (parent_id, text, caption = QString .null, dontShowAgainName = QString .null, options = Notify) +
    + + +
    returns nothing
    In versions KDE 3.2.0 and above only
    static
    + + + + + +
    ArgumentTypeDefault
    parent_idWId
    textQString
    captionQStringQString .null
    dontShowAgainNameQStringQString .null
    optionsintNotify
    +

  • +
  • messageBox (parent, type, text, caption, buttonYes, buttonNo, dontShowAskAgainName, options = Notify) +
    + + +
    returns (int)
    In versions KDE 3.2.0 and above only
    static
    + + + + + + + + +
    ArgumentTypeDefault
    parentQWidget
    typeKMessageBox.DialogType
    textQString
    captionQString
    buttonYesKGuiItem
    buttonNoKGuiItem
    dontShowAskAgainNameQString
    optionsintNotify
    +

  • +
  • messageBox (parent, type, text, caption = QString .null, buttonYes = KStdGuiItem .yes (), buttonNo = KStdGuiItem .no (), options = Notify) +
    + +
    returns (int)
    static
    + + + + + + + +
    ArgumentTypeDefault
    parentQWidget
    typeKMessageBox.DialogType
    textQString
    captionQStringQString .null
    buttonYesKGuiItemKStdGuiItem .yes ()
    buttonNoKGuiItemKStdGuiItem .no ()
    optionsintNotify
    +

  • +
  • messageBoxWId (parent_id, type, text, caption = QString .null, buttonYes = KStdGuiItem .yes (), buttonNo = KStdGuiItem .no (), dontShowAskAgainName = QString .null, options = Notify) +
    + + +
    returns (int)
    In versions KDE 3.2.0 and above only
    static
    + + + + + + + + +
    ArgumentTypeDefault
    parent_idWId
    typeKMessageBox.DialogType
    textQString
    captionQStringQString .null
    buttonYesKGuiItemKStdGuiItem .yes ()
    buttonNoKGuiItemKStdGuiItem .no ()
    dontShowAskAgainNameQStringQString .null
    optionsintNotify
    +

  • +
  • questionYesNo (parent, text, caption = QString .null, buttonYes = KStdGuiItem .yes (), buttonNo = KStdGuiItem .no (), dontAskAgainName = QString .null, options = Notify) +
    + +
    returns (int)
    static
    + + + + + + + +
    ArgumentTypeDefault
    parentQWidget
    textQString
    captionQStringQString .null
    buttonYesKGuiItemKStdGuiItem .yes ()
    buttonNoKGuiItemKStdGuiItem .no ()
    dontAskAgainNameQStringQString .null
    optionsintNotify
    +

  • +
  • questionYesNoCancel (parent, text, caption = QString .null, buttonYes = KStdGuiItem .yes (), buttonNo = KStdGuiItem .no (), dontAskAgainName = QString .null, options = Notify) +
    + +
    returns (int)
    static
    + + + + + + + +
    ArgumentTypeDefault
    parentQWidget
    textQString
    captionQStringQString .null
    buttonYesKGuiItemKStdGuiItem .yes ()
    buttonNoKGuiItemKStdGuiItem .no ()
    dontAskAgainNameQStringQString .null
    optionsintNotify
    +

  • +
  • questionYesNoCancelWId (parent_id, text, caption = QString .null, buttonYes = KStdGuiItem .yes (), buttonNo = KStdGuiItem .no (), dontAskAgainName = QString .null, options = Notify) +
    + + +
    returns (int)
    In versions KDE 3.2.0 and above only
    static
    + + + + + + + +
    ArgumentTypeDefault
    parent_idWId
    textQString
    captionQStringQString .null
    buttonYesKGuiItemKStdGuiItem .yes ()
    buttonNoKGuiItemKStdGuiItem .no ()
    dontAskAgainNameQStringQString .null
    optionsintNotify
    +

  • +
  • questionYesNoList (parent, text, strlist, caption = QString .null, buttonYes = KStdGuiItem .yes (), buttonNo = KStdGuiItem .no (), dontAskAgainName = QString .null, options = Notify) +
    + +
    returns (int)
    static
    + + + + + + + + +
    ArgumentTypeDefault
    parentQWidget
    textQString
    strlistQStringList
    captionQStringQString .null
    buttonYesKGuiItemKStdGuiItem .yes ()
    buttonNoKGuiItemKStdGuiItem .no ()
    dontAskAgainNameQStringQString .null
    optionsintNotify
    +

  • +
  • questionYesNoListWId (parent_id, text, strlist, caption = QString .null, buttonYes = KStdGuiItem .yes (), buttonNo = KStdGuiItem .no (), dontAskAgainName = QString .null, options = Notify) +
    + + +
    returns (int)
    In versions KDE 3.2.0 and above only
    static
    + + + + + + + + +
    ArgumentTypeDefault
    parent_idWId
    textQString
    strlistQStringList
    captionQStringQString .null
    buttonYesKGuiItemKStdGuiItem .yes ()
    buttonNoKGuiItemKStdGuiItem .no ()
    dontAskAgainNameQStringQString .null
    optionsintNotify
    +

  • +
  • questionYesNoWId (parent_id, text, caption = QString .null, buttonYes = KStdGuiItem .yes (), buttonNo = KStdGuiItem .no (), dontAskAgainName = QString .null, options = Notify) +
    + + +
    returns (int)
    In versions KDE 3.2.0 and above only
    static
    + + + + + + + +
    ArgumentTypeDefault
    parent_idWId
    textQString
    captionQStringQString .null
    buttonYesKGuiItemKStdGuiItem .yes ()
    buttonNoKGuiItemKStdGuiItem .no ()
    dontAskAgainNameQStringQString .null
    optionsintNotify
    +

  • +
  • queuedDetailedError (parent, text, details, caption = QString .null) +
    + +
    returns nothing
    static
    + + + + +
    ArgumentTypeDefault
    parentQWidget
    textQString
    detailsQString
    captionQStringQString .null
    +

  • +
  • queuedDetailedErrorWId (parent_id, text, details, caption = QString .null) +
    + + +
    returns nothing
    In versions KDE 3.2.0 and above only
    static
    + + + + +
    ArgumentTypeDefault
    parent_idWId
    textQString
    detailsQString
    captionQStringQString .null
    +

  • +
  • queuedMessageBox (parent, type, text, caption, options) +
    + + +
    returns nothing
    In versions KDE 3.1.0 and above only
    static
    + + + + + +
    ArgumentTypeDefault
    parentQWidget
    typeKMessageBox.DialogType
    textQString
    captionQString
    optionsint
    +

  • +
  • queuedMessageBox (parent, type, text, caption = QString .null) +
    + +
    returns nothing
    static
    + + + + +
    ArgumentTypeDefault
    parentQWidget
    typeKMessageBox.DialogType
    textQString
    captionQStringQString .null
    +

  • +
  • queuedMessageBoxWId (parent_id, type, text, caption, options) +
    + + +
    returns nothing
    In versions KDE 3.2.0 and above only
    static
    + + + + + +
    ArgumentTypeDefault
    parent_idWId
    typeKMessageBox.DialogType
    textQString
    captionQString
    optionsint
    +

  • +
  • queuedMessageBoxWId (parent_id, type, text, caption = QString .null) +
    + + +
    returns nothing
    In versions KDE 3.2.0 and above only
    static
    + + + + +
    ArgumentTypeDefault
    parent_idWId
    typeKMessageBox.DialogType
    textQString
    captionQStringQString .null
    +

  • +
  • saveDontShowAgainContinue (dontShowAgainName) +
    + + +
    returns nothing
    In versions KDE 3.2.0 and above only
    static
    + +
    ArgumentTypeDefault
    dontShowAgainNameQString
    +

  • +
  • saveDontShowAgainYesNo (dontShowAgainName, result) +
    + + +
    returns nothing
    In versions KDE 3.2.0 and above only
    static
    + + +
    ArgumentTypeDefault
    dontShowAgainNameQString
    resultKMessageBox.ButtonCode
    +

  • +
  • setDontShowAskAgainConfig (cfg) +
    + + +
    returns nothing
    In versions KDE 3.2.0 and above only
    static
    + +
    ArgumentTypeDefault
    cfgKConfig
    +

  • +
  • shouldBeShownContinue (dontShowAgainName) +
    + + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    static
    + +
    ArgumentTypeDefault
    dontShowAgainNameQString
    +

  • +
  • shouldBeShownYesNo (dontShowAgainName) +
    + + +
    returns (bool) result (KMessageBox.ButtonCode)
    In versions KDE 3.2.0 and above only
    static
    + +
    ArgumentTypeDefault
    dontShowAgainNameQString
    +

  • +
  • sorry (parent, text, caption = QString .null, options = 1) +
    + +
    returns nothing
    static
    + + + + +
    ArgumentTypeDefault
    parentQWidget
    textQString
    captionQStringQString .null
    optionsbool1
    +

  • +
  • sorryWId (parent_id, text, caption = QString .null, options = Notify) +
    + + +
    returns nothing
    In versions KDE 3.2.0 and above only
    static
    + + + + +
    ArgumentTypeDefault
    parent_idWId
    textQString
    captionQStringQString .null
    optionsintNotify
    +

  • +
  • warningContinueCancel (parent, text, caption = QString .null, buttonContinue = KStdGuiItem .cont (), dontAskAgainName = QString .null, options = Notify) +
    + +
    returns (int)
    static
    + + + + + + +
    ArgumentTypeDefault
    parentQWidget
    textQString
    captionQStringQString .null
    buttonContinueKGuiItemKStdGuiItem .cont ()
    dontAskAgainNameQStringQString .null
    optionsintNotify
    +

  • +
  • warningContinueCancelList (parent, text, strlist, caption = QString .null, buttonContinue = KStdGuiItem .cont (), dontAskAgainName = QString .null, options = Notify) +
    + + +
    returns (int)
    In versions KDE 3.1.0 and above only
    static
    + + + + + + + +
    ArgumentTypeDefault
    parentQWidget
    textQString
    strlistQStringList
    captionQStringQString .null
    buttonContinueKGuiItemKStdGuiItem .cont ()
    dontAskAgainNameQStringQString .null
    optionsintNotify
    +

  • +
  • warningContinueCancelList (a0, a1, a2, a3 = QString .null, a4 = QString .null, a5 = QString .null, a6 = Notify) +
    Not Implemented
    +

  • +
  • warningContinueCancelList (a0, a1, a2, a3 = QString .null, a4 = KGuiItem (), a5 = QString .null, a6 = Notify) +
    + + +
    returns (int)
    In versions KDE 3.0.3 and above, but less than KDE 3.1.0
    static
    + + + + + + + +
    ArgumentTypeDefault
    a0QWidget
    a1QString
    a2QStringList
    a3QStringQString .null
    a4KGuiItemKGuiItem ()
    a5QStringQString .null
    a6intNotify
    +

  • +
  • warningContinueCancelListWId (parent_id, text, strlist, caption = QString .null, buttonContinue = KStdGuiItem .cont (), dontAskAgainName = QString .null, options = Notify) +
    + + +
    returns (int)
    In versions KDE 3.2.0 and above only
    static
    + + + + + + + +
    ArgumentTypeDefault
    parent_idWId
    textQString
    strlistQStringList
    captionQStringQString .null
    buttonContinueKGuiItemKStdGuiItem .cont ()
    dontAskAgainNameQStringQString .null
    optionsintNotify
    +

  • +
  • warningContinueCancelWId (parent_id, text, caption = QString .null, buttonContinue = KStdGuiItem .cont (), dontAskAgainName = QString .null, options = Notify) +
    + + +
    returns (int)
    In versions KDE 3.2.0 and above only
    static
    + + + + + + +
    ArgumentTypeDefault
    parent_idWId
    textQString
    captionQStringQString .null
    buttonContinueKGuiItemKStdGuiItem .cont ()
    dontAskAgainNameQStringQString .null
    optionsintNotify
    +

  • +
  • warningYesNo (parent, text, caption = QString .null, buttonYes = KStdGuiItem .yes (), buttonNo = KStdGuiItem .no (), dontAskAgainName = QString .null, options = Notify) +
    + +
    returns (int)
    static
    + + + + + + + +
    ArgumentTypeDefault
    parentQWidget
    textQString
    captionQStringQString .null
    buttonYesKGuiItemKStdGuiItem .yes ()
    buttonNoKGuiItemKStdGuiItem .no ()
    dontAskAgainNameQStringQString .null
    optionsintNotify
    +

  • +
  • warningYesNoCancel (parent, text, caption = QString .null, buttonYes = KStdGuiItem .yes (), buttonNo = KStdGuiItem .no (), dontAskAgainName = QString .null, options = Notify) +
    + +
    returns (int)
    static
    + + + + + + + +
    ArgumentTypeDefault
    parentQWidget
    textQString
    captionQStringQString .null
    buttonYesKGuiItemKStdGuiItem .yes ()
    buttonNoKGuiItemKStdGuiItem .no ()
    dontAskAgainNameQStringQString .null
    optionsintNotify
    +

  • +
  • warningYesNoCancelList (parent, text, strlist, caption = QString .null, buttonYes = KStdGuiItem .yes (), buttonNo = KStdGuiItem .no (), dontAskAgainName = QString .null, options = Notify) +
    + + +
    returns (int)
    In versions KDE 3.2.0 and above only
    static
    + + + + + + + + +
    ArgumentTypeDefault
    parentQWidget
    textQString
    strlistQStringList
    captionQStringQString .null
    buttonYesKGuiItemKStdGuiItem .yes ()
    buttonNoKGuiItemKStdGuiItem .no ()
    dontAskAgainNameQStringQString .null
    optionsintNotify
    +

  • +
  • warningYesNoCancelListWId (parent_id, text, strlist, caption = QString .null, buttonYes = KStdGuiItem .yes (), buttonNo = KStdGuiItem .no (), dontAskAgainName = QString .null, options = Notify) +
    + + +
    returns (int)
    In versions KDE 3.2.0 and above only
    static
    + + + + + + + + +
    ArgumentTypeDefault
    parent_idWId
    textQString
    strlistQStringList
    captionQStringQString .null
    buttonYesKGuiItemKStdGuiItem .yes ()
    buttonNoKGuiItemKStdGuiItem .no ()
    dontAskAgainNameQStringQString .null
    optionsintNotify
    +

  • +
  • warningYesNoCancelWId (parent_id, text, caption = QString .null, buttonYes = KStdGuiItem .yes (), buttonNo = KStdGuiItem .no (), dontAskAgainName = QString .null, options = Notify) +
    + + +
    returns (int)
    In versions KDE 3.2.0 and above only
    static
    + + + + + + + +
    ArgumentTypeDefault
    parent_idWId
    textQString
    captionQStringQString .null
    buttonYesKGuiItemKStdGuiItem .yes ()
    buttonNoKGuiItemKStdGuiItem .no ()
    dontAskAgainNameQStringQString .null
    optionsintNotify
    +

  • +
  • warningYesNoList (parent, text, strlist, caption = QString .null, buttonYes = KStdGuiItem .yes (), buttonNo = KStdGuiItem .no (), dontAskAgainName = QString .null, options = Notify | Dangerous) +
    + + +
    returns (int)
    In versions KDE 3.2.0 and above only
    static
    + + + + + + + + +
    ArgumentTypeDefault
    parentQWidget
    textQString
    strlistQStringList
    captionQStringQString .null
    buttonYesKGuiItemKStdGuiItem .yes ()
    buttonNoKGuiItemKStdGuiItem .no ()
    dontAskAgainNameQStringQString .null
    optionsintNotify | Dangerous
    +

  • +
  • warningYesNoListWId (parent_id, text, strlist, caption = QString .null, buttonYes = KStdGuiItem .yes (), buttonNo = KStdGuiItem .no (), dontAskAgainName = QString .null, options = Notify | Dangerous) +
    + + +
    returns (int)
    In versions KDE 3.2.0 and above only
    static
    + + + + + + + + +
    ArgumentTypeDefault
    parent_idWId
    textQString
    strlistQStringList
    captionQStringQString .null
    buttonYesKGuiItemKStdGuiItem .yes ()
    buttonNoKGuiItemKStdGuiItem .no ()
    dontAskAgainNameQStringQString .null
    optionsintNotify | Dangerous
    +

  • +
  • warningYesNoWId (parent_id, text, caption = QString .null, buttonYes = KStdGuiItem .yes (), buttonNo = KStdGuiItem .no (), dontAskAgainName = QString .null, options = Notify | Dangerous) +
    + + +
    returns (int)
    In versions KDE 3.2.0 and above only
    static
    + + + + + + + +
    ArgumentTypeDefault
    parent_idWId
    textQString
    captionQStringQString .null
    buttonYesKGuiItemKStdGuiItem .yes ()
    buttonNoKGuiItemKStdGuiItem .no ()
    dontAskAgainNameQStringQString .null
    optionsintNotify | Dangerous
    +

  • +
+ + + diff --git a/doc/classref/kdeui/KMimeTypeValidator.html b/doc/classref/kdeui/KMimeTypeValidator.html new file mode 100644 index 0000000..5254af9 --- /dev/null +++ b/doc/classref/kdeui/KMimeTypeValidator.html @@ -0,0 +1,60 @@ + + + + + class KMimeTypeValidator + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KMimeTypeValidator


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKMimeTypeValidator
InheritsQValidator
+

methods

    +
  • KMimeTypeValidator (parent, name = 0) +
    +
    returns a KMimeTypeValidator instance
    + + +
    ArgumentTypeDefault
    parentQObject
    namechar0
    +

  • +
  • fixup (input) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    inputQString
    +

  • +
  • validate (input) +
    +
    returns (State) pos (int)
    + +
    ArgumentTypeDefault
    inputQString
    +

  • +
+ + + diff --git a/doc/classref/kdeui/KNamedCommand.html b/doc/classref/kdeui/KNamedCommand.html new file mode 100644 index 0000000..6a5a8a4 --- /dev/null +++ b/doc/classref/kdeui/KNamedCommand.html @@ -0,0 +1,56 @@ + + + + + class KNamedCommand + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KNamedCommand


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKNamedCommand
InheritsKCommand
+

methods

    +
  • KNamedCommand (name) +
    +
    returns a KNamedCommand instance
    + +
    ArgumentTypeDefault
    nameQString
    +

  • +
  • name () +
    +
    returns (QString)

  • +
  • setName (name) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    nameQString
    +

  • +
+ + + diff --git a/doc/classref/kdeui/KNumInput.html b/doc/classref/kdeui/KNumInput.html new file mode 100644 index 0000000..a7d1540 --- /dev/null +++ b/doc/classref/kdeui/KNumInput.html @@ -0,0 +1,93 @@ + + + + + class KNumInput + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KNumInput


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKNumInput (abstract)
InheritsQWidget
+

methods

    +
  • KNumInput (parent = 0, name = 0) +
    +
    returns a KNumInput instance
    + + +
    ArgumentTypeDefault
    parentQWidget0
    namechar0
    +

  • +
  • KNumInput (below, parent = 0, name = 0) +
    +
    returns a KNumInput instance
    + + + +
    ArgumentTypeDefault
    belowKNumInput
    parentQWidget0
    namechar0
    +

  • +
  • doLayout () = 0 +
    + +
    returns nothing
    pure virtual

  • +
  • label () +
    +
    returns (QString)

  • +
  • layout (deep) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    deepbool
    +

  • +
  • setLabel (label, a = AlignLeft | AlignTop) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    labelQString
    aintAlignLeft | AlignTop
    +

  • +
  • setSteps (minor, major) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    minorint
    majorint
    +

  • +
  • showSlider () +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above only

  • +
  • sizeHint () +
    +
    returns (QSize)

  • +
  • sizePolicy () +
    +
    returns (QSizePolicy)

  • +
+ + + diff --git a/doc/classref/kdeui/KPaletteTable.html b/doc/classref/kdeui/KPaletteTable.html new file mode 100644 index 0000000..f4611c0 --- /dev/null +++ b/doc/classref/kdeui/KPaletteTable.html @@ -0,0 +1,114 @@ + + + + + class KPaletteTable + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KPaletteTable


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKPaletteTable
InheritsQWidget
+

methods

    +
  • KPaletteTable (parent, minWidth = 210, cols = 16) +
    +
    returns a KPaletteTable instance
    + + + +
    ArgumentTypeDefault
    parentQWidget
    minWidthint210
    colsint16
    +

  • +
  • addToCustomColors (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QColor
    +

  • +
  • addToRecentColors (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QColor
    +

  • +
  • colorDoubleClicked (a0, a1) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    a0QColor
    a1QString
    +

  • +
  • colorSelected (a0, a1) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    a0QColor
    a1QString
    +

  • +
  • palette () +
    +
    returns (QString)

  • +
  • readNamedColor () +
    +
    returns nothing

  • +
  • setPalette (paletteName) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    paletteNameQString
    +

  • +
  • slotColorCellDoubleClicked (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • slotColorCellSelected (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • slotColorTextSelected (colorText) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    colorTextQString
    +

  • +
  • slotSetPalette (_paletteName) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    _paletteNameQString
    +

  • +
  • slotShowNamedColorReadError () +
    +
    returns nothing

  • +
+ + + diff --git a/doc/classref/kdeui/KPanelAppMenu.html b/doc/classref/kdeui/KPanelAppMenu.html new file mode 100644 index 0000000..f810b1f --- /dev/null +++ b/doc/classref/kdeui/KPanelAppMenu.html @@ -0,0 +1,113 @@ + + + + + class KPanelAppMenu + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KPanelAppMenu


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKPanelAppMenu
InheritsQObject, DCOPObject
+

methods

    +
  • KPanelAppMenu (title, parent = 0, name = 0) +
    +
    returns a KPanelAppMenu instance
    + + + +
    ArgumentTypeDefault
    titleQString
    parentQObject0
    namechar0
    +

  • +
  • KPanelAppMenu (icon, title, parent, name) +
    +
    returns a KPanelAppMenu instance
    + + + + +
    ArgumentTypeDefault
    iconQPixmap
    titleQString
    parentQObject
    namechar
    +

  • +
  • KPanelAppMenu (parent, name) +
    +
    returns a KPanelAppMenu instance
    + + +
    ArgumentTypeDefault
    parentQObject
    namechar
    +

  • +
  • activated (id) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    idint
    +

  • +
  • clear () +
    +
    returns nothing

  • +
  • init (icon, title) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    iconQPixmap
    titleQString
    +

  • +
  • insertItem (text, id = -1) +
    +
    returns (int)
    + + +
    ArgumentTypeDefault
    textQString
    idint-1
    +

  • +
  • insertItem (icon, text, id = -1) +
    +
    returns (int)
    + + + +
    ArgumentTypeDefault
    iconQPixmap
    textQString
    idint-1
    +

  • +
  • insertMenu (icon, text, id = -1) +
    +
    returns (KPanelAppMenu)
    + + + +
    ArgumentTypeDefault
    iconQPixmap
    textQString
    idint-1
    +

  • +
  • process (fun, data, replyType, reply) +
    +
    returns (bool)
    + + + + +
    ArgumentTypeDefault
    funQCString
    dataQByteArray
    replyTypeQCString
    replyQByteArray
    +

  • +
+ + + diff --git a/doc/classref/kdeui/KPanelApplet.html b/doc/classref/kdeui/KPanelApplet.html new file mode 100644 index 0000000..647540b --- /dev/null +++ b/doc/classref/kdeui/KPanelApplet.html @@ -0,0 +1,197 @@ + + + + + class KPanelApplet + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KPanelApplet


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKPanelApplet
InheritsQFrame
+

enums

    +
  • Action = {About, Help, Preferences, ReportBug +}
  • Alignment = {LeftTop, Center, RightBottom +}
  • Direction = {Up, Down, Left, Right +}
  • Position = {pLeft, pRight, pTop, pBottom +}
  • Type = {Normal, Stretch +}
+

methods

    +
  • KPanelApplet (configFile, t = Normal, actions = 0, parent = 0, name = 0, f = 0) +
    +
    returns a KPanelApplet instance
    + + + + + + +
    ArgumentTypeDefault
    configFileQString
    tKPanelApplet.TypeNormal
    actionsint0
    parentQWidget0
    namechar0
    fWFlags0
    +

  • +
  • about () +
    +
    returns nothing

  • +
  • action (a) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    aKPanelApplet.Action
    +

  • +
  • actions () +
    +
    returns (int)

  • +
  • alignment () +
    +
    returns (KPanelApplet.Alignment)

  • +
  • alignmentChange (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KPanelApplet.Alignment
    +

  • +
  • config () +
    +
    returns (KConfig)

  • +
  • customMenu () +
    + +
    returns (QPopupMenu)
    In versions KDE 3.2.0 and above only

  • +
  • eventFilter (a0, a1) +
    + +
    returns (bool)
    In versions KDE 3.4.0 and above only
    + + +
    ArgumentTypeDefault
    a0QObject
    a1QEvent
    +

  • +
  • heightForWidth (width) +
    +
    returns (int)
    + +
    ArgumentTypeDefault
    widthint
    +

  • +
  • help () +
    +
    returns nothing

  • +
  • needsFocus (focus) +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only
    + +
    ArgumentTypeDefault
    focusbool
    +

  • +
  • orientation () +
    +
    returns (Orientation)

  • +
  • orientationChange (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0Orientation
    +

  • +
  • popupDirection () +
    +
    returns (Direction)

  • +
  • popupDirectionChange (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KPanelApplet.Direction
    +

  • +
  • position () +
    +
    returns (KPanelApplet.Position)

  • +
  • positionChange (p) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    pKPanelApplet.Position
    +

  • +
  • preferences () +
    +
    returns nothing

  • +
  • reportBug () +
    +
    returns nothing

  • +
  • requestFocus () +
    +
    returns nothing

  • +
  • requestFocus (focus) +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only
    + +
    ArgumentTypeDefault
    focusbool
    +

  • +
  • setAlignment (a) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    aKPanelApplet.Alignment
    +

  • +
  • setCustomMenu (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0QPopupMenu
    +

  • +
  • setPosition (p) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    pKPanelApplet.Position
    +

  • +
  • sharedConfig () +
    + +
    returns (KSharedConfig.Ptr)
    In versions KDE 3.2.0 and above only

  • +
  • type () +
    +
    returns (Type)

  • +
  • updateLayout () +
    +
    returns nothing

  • +
  • watchForFocus (widget, watch = 1) +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only
    + + +
    ArgumentTypeDefault
    widgetQWidget
    watchbool1
    +

  • +
  • widthForHeight (height) +
    +
    returns (int)
    + +
    ArgumentTypeDefault
    heightint
    +

  • +
+ + + diff --git a/doc/classref/kdeui/KPanelExtension.html b/doc/classref/kdeui/KPanelExtension.html new file mode 100644 index 0000000..447568b --- /dev/null +++ b/doc/classref/kdeui/KPanelExtension.html @@ -0,0 +1,181 @@ + + + + + class KPanelExtension + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KPanelExtension


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKPanelExtension
InheritsQFrame
+

enums

    +
  • Action = {About, Help, Preferences, ReportBug +}
  • Alignment = {LeftTop, Center, RightBottom +}
  • Position = {Left, Right, Top, Bottom, Floating +}
  • Position = {Left, Right, Top, Bottom +}
  • Size = {SizeTiny, SizeSmall, SizeNormal, SizeLarge, SizeCustom +}
  • Type = {Normal, Stretch +}
+

methods

    +
  • KPanelExtension (configFile, t = Normal, actions = 0, parent = 0, name = 0) +
    +
    returns a KPanelExtension instance
    + + + + + +
    ArgumentTypeDefault
    configFileQString
    tKPanelExtension.TypeNormal
    actionsint0
    parentQWidget0
    namechar0
    +

  • +
  • about () +
    +
    returns nothing

  • +
  • action (a) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    aKPanelExtension.Action
    +

  • +
  • actions () +
    +
    returns (int)

  • +
  • alignment () +
    +
    returns (KPanelExtension.Alignment)

  • +
  • alignmentChange (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KPanelExtension.Alignment
    +

  • +
  • config () +
    +
    returns (KConfig)

  • +
  • customMenu () +
    + +
    returns (QPopupMenu)
    In versions KDE 3.4.0 and above only

  • +
  • customSize () +
    + +
    returns (int)
    In versions KDE 3.1.0 and above only

  • +
  • help () +
    +
    returns nothing

  • +
  • maintainFocus (a0) +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • orientation () +
    +
    returns (Orientation)

  • +
  • position () +
    +
    returns (Position)

  • +
  • positionChange (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KPanelExtension.Position
    +

  • +
  • preferedPosition () +
    +
    returns (Position)

  • +
  • preferences () +
    +
    returns nothing

  • +
  • reportBug () +
    +
    returns nothing

  • +
  • reserveStrut () +
    + +
    returns (bool)
    In versions KDE 3.4.0 and above only

  • +
  • setAlignment (a) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    aKPanelExtension.Alignment
    +

  • +
  • setCustomMenu (a0) +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only
    + +
    ArgumentTypeDefault
    a0QPopupMenu
    +

  • +
  • setPosition (p) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    pKPanelExtension.Position
    +

  • +
  • setReserveStrut (shouldUseStrut) +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only
    + +
    ArgumentTypeDefault
    shouldUseStrutbool
    +

  • +
  • setSize (size, customSize) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + + +
    ArgumentTypeDefault
    sizeKPanelExtension.Size
    customSizeint
    +

  • +
  • sizeHint (a0, maxsize) +
    +
    returns (QSize)
    + + +
    ArgumentTypeDefault
    a0KPanelExtension.Position
    maxsizeQSize
    +

  • +
  • sizeInPixels () +
    + +
    returns (int)
    In versions KDE 3.1.0 and above only

  • +
  • sizeSetting () +
    + +
    returns (KPanelExtension.Size)
    In versions KDE 3.1.0 and above only

  • +
  • type () +
    +
    returns (Type)

  • +
  • updateLayout () +
    +
    returns nothing

  • +
+ + + diff --git a/doc/classref/kdeui/KPanelMenu.html b/doc/classref/kdeui/KPanelMenu.html new file mode 100644 index 0000000..9a4cbff --- /dev/null +++ b/doc/classref/kdeui/KPanelMenu.html @@ -0,0 +1,113 @@ + + + + + class KPanelMenu + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KPanelMenu


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKPanelMenu (abstract)
InheritsKPopupMenu
+

methods

    +
  • KPanelMenu (parent = 0, name = 0) +
    +
    returns a KPanelMenu instance
    + + +
    ArgumentTypeDefault
    parentQWidget0
    namechar0
    +

  • +
  • KPanelMenu (startDir, parent = 0, name = 0) +
    +
    returns a KPanelMenu instance
    + + + +
    ArgumentTypeDefault
    startDirQString
    parentQWidget0
    namechar0
    +

  • +
  • deinitialize () +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only

  • +
  • disableAutoClear () +
    +
    returns nothing

  • +
  • hideEvent (ev) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    evQHideEvent
    +

  • +
  • init (path = QString .null) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    pathQStringQString .null
    +

  • +
  • initialize () = 0 +
    + +
    returns nothing
    pure virtual

  • +
  • initialized () +
    +
    returns (bool)

  • +
  • path () +
    +
    returns (QString)

  • +
  • reinitialize () +
    +
    returns nothing

  • +
  • setInitialized (on) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    onbool
    +

  • +
  • setPath (p) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    pQString
    +

  • +
  • slotAboutToShow () +
    +
    returns nothing

  • +
  • slotClear () +
    +
    returns nothing

  • +
  • slotExec (id) = 0 +
    + +
    returns nothing
    pure virtual
    + +
    ArgumentTypeDefault
    idint
    +

  • +
+ + + diff --git a/doc/classref/kdeui/KPassivePopup.html b/doc/classref/kdeui/KPassivePopup.html new file mode 100644 index 0000000..8676b33 --- /dev/null +++ b/doc/classref/kdeui/KPassivePopup.html @@ -0,0 +1,309 @@ + + + + + class KPassivePopup + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KPassivePopup


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKPassivePopup
InheritsQFrame
+

enums

    +
  • PopupStyle = {Boxed, Balloon, CustomStyle +}
+

methods

    +
  • KPassivePopup (parent = 0, name = 0, f = 0) +
    + +
    returns a KPassivePopup instance
    In versions KDE 3.1.0 and above only
    + + + +
    ArgumentTypeDefault
    parentQWidget0
    namechar0
    fWFlags0
    +

  • +
  • KPassivePopup (parent, name = 0, f = 0) +
    + +
    returns a KPassivePopup instance
    In versions KDE 3.1.0 and above only
    + + + +
    ArgumentTypeDefault
    parentWId
    namechar0
    fWFlags0
    +

  • +
  • KPassivePopup (popupStyle, parent = 0, name = 0, f = 0) +
    + +
    returns a KPassivePopup instance
    In versions KDE 3.5.0 and above only
    + + + + +
    ArgumentTypeDefault
    popupStyleint
    parentQWidget0
    namechar0
    fWFlags0
    +

  • +
  • KPassivePopup (popupStyle, parent, name = 0, f = 0) +
    + +
    returns a KPassivePopup instance
    In versions KDE 3.5.0 and above only
    + + + + +
    ArgumentTypeDefault
    popupStyleint
    parentWId
    namechar0
    fWFlags0
    +

  • +
  • autoDelete () +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above only

  • +
  • clicked () +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only

  • +
  • clicked (pos) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    posQPoint
    +

  • +
  • defaultArea () +
    + +
    returns (QRect)
    In versions KDE 3.1.0 and above only

  • +
  • hideEvent (a0) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    a0QHideEvent
    +

  • +
  • message (text, parent, name = 0) +
    + + +
    returns (KPassivePopup)
    In versions KDE 3.1.0 and above only
    static
    + + + +
    ArgumentTypeDefault
    textQString
    parentQWidget
    namechar0
    +

  • +
  • message (caption, text, parent, name = 0) +
    + + +
    returns (KPassivePopup)
    In versions KDE 3.1.0 and above only
    static
    + + + + +
    ArgumentTypeDefault
    captionQString
    textQString
    parentQWidget
    namechar0
    +

  • +
  • message (caption, text, icon, parent, name = 0, timeout = -1) +
    + + +
    returns (KPassivePopup)
    In versions KDE 3.1.0 and above only
    static
    + + + + + + +
    ArgumentTypeDefault
    captionQString
    textQString
    iconQPixmap
    parentQWidget
    namechar0
    timeoutint-1
    +

  • +
  • message (caption, text, icon, parent, name = 0, timeout = -1) +
    + + +
    returns (KPassivePopup)
    In versions KDE 3.1.0 and above only
    static
    + + + + + + +
    ArgumentTypeDefault
    captionQString
    textQString
    iconQPixmap
    parentWId
    namechar0
    timeoutint-1
    +

  • +
  • message (popupStyle, text, parent, name = 0) +
    + + +
    returns (KPassivePopup)
    In versions KDE 3.5.0 and above only
    static
    + + + + +
    ArgumentTypeDefault
    popupStyleint
    textQString
    parentQWidget
    namechar0
    +

  • +
  • message (popupStyle, caption, text, parent, name = 0) +
    + + +
    returns (KPassivePopup)
    In versions KDE 3.5.0 and above only
    static
    + + + + + +
    ArgumentTypeDefault
    popupStyleint
    captionQString
    textQString
    parentQWidget
    namechar0
    +

  • +
  • message (popupStyle, caption, text, icon, parent, name = 0, timeout = -1) +
    + + +
    returns (KPassivePopup)
    In versions KDE 3.5.0 and above only
    static
    + + + + + + + +
    ArgumentTypeDefault
    popupStyleint
    captionQString
    textQString
    iconQPixmap
    parentQWidget
    namechar0
    timeoutint-1
    +

  • +
  • message (popupStyle, caption, text, icon, parent, name = 0, timeout = -1) +
    + + +
    returns (KPassivePopup)
    In versions KDE 3.5.0 and above only
    static
    + + + + + + + +
    ArgumentTypeDefault
    popupStyleint
    captionQString
    textQString
    iconQPixmap
    parentWId
    namechar0
    timeoutint-1
    +

  • +
  • mouseReleaseEvent (e) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    eQMouseEvent
    +

  • +
  • moveNear (target) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    targetQRect
    +

  • +
  • paintEvent (pe) +
    + +
    returns nothing
    In versions KDE 3.5.0 and above only
    + +
    ArgumentTypeDefault
    peQPaintEvent
    +

  • +
  • positionSelf () +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only

  • +
  • setAnchor (anchor) +
    + +
    returns nothing
    In versions KDE 3.5.0 and above only
    + +
    ArgumentTypeDefault
    anchorQPoint
    +

  • +
  • setAutoDelete (autoDelete) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    autoDeletebool
    +

  • +
  • setTimeout (delay) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    delayint
    +

  • +
  • setView (child) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    childQWidget
    +

  • +
  • setView (caption, text = QString .null) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + + +
    ArgumentTypeDefault
    captionQString
    textQStringQString .null
    +

  • +
  • setView (caption, text, icon) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + + + +
    ArgumentTypeDefault
    captionQString
    textQString
    iconQPixmap
    +

  • +
  • show () +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only

  • +
  • show (p) +
    + +
    returns nothing
    In versions KDE 3.5.0 and above only
    + +
    ArgumentTypeDefault
    pQPoint
    +

  • +
  • standardView (caption, text, icon, parent = 0) +
    + +
    returns (QVBox)
    In versions KDE 3.1.0 and above only
    + + + + +
    ArgumentTypeDefault
    captionQString
    textQString
    iconQPixmap
    parentQWidget0
    +

  • +
  • timeout () +
    + +
    returns (int)
    In versions KDE 3.1.0 and above only

  • +
  • updateMask () +
    + +
    returns nothing
    In versions KDE 3.5.0 and above only

  • +
  • view () +
    + +
    returns (QWidget)
    In versions KDE 3.1.0 and above only

  • +
+ + + diff --git a/doc/classref/kdeui/KPasswordDialog.html b/doc/classref/kdeui/KPasswordDialog.html new file mode 100644 index 0000000..7bf173d --- /dev/null +++ b/doc/classref/kdeui/KPasswordDialog.html @@ -0,0 +1,194 @@ + + + + + class KPasswordDialog + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KPasswordDialog


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKPasswordDialog
InheritsKDialogBase
+

enums

    +
  • Types = {Password, NewPassword +}
+

methods

    +
  • KPasswordDialog (type, enableKeep, extraBttn, parent = 0, name = 0) +
    +
    returns a KPasswordDialog instance
    + + + + + +
    ArgumentTypeDefault
    typeKPasswordDialog.Types
    enableKeepbool
    extraBttnint
    parentQWidget0
    namechar0
    +

  • +
  • KPasswordDialog (type, prompt, enableKeep = 0, extraBttn = 0) +
    +
    returns a KPasswordDialog instance
    + + + + +
    ArgumentTypeDefault
    typeint
    promptQString
    enableKeepbool0
    extraBttnint0
    +

  • +
  • KPasswordDialog (type, enableKeep, extraBttn, iconName, parent = 0, name = 0) +
    + +
    returns a KPasswordDialog instance
    In versions KDE 3.3.0 and above only
    + + + + + + +
    ArgumentTypeDefault
    typeKPasswordDialog.Types
    enableKeepbool
    extraBttnint
    iconNameQString
    parentQWidget0
    namechar0
    +

  • +
  • addLine (key, value) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    keyQString
    valueQString
    +

  • +
  • allowEmptyPasswords () +
    + +
    returns (bool)
    In versions KDE 3.4.0 and above only

  • +
  • checkPassword (a0) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    a0char
    +

  • +
  • clearPassword () +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only

  • +
  • disableCoreDumps () +
    + +
    returns nothing
    static

  • +
  • getNewPassword (password, prompt) +
    + +
    returns (int)
    static
    + + +
    ArgumentTypeDefault
    passwordQCString
    promptQString
    +

  • +
  • getPassword (password, prompt) +
    + +
    returns (int) keep (int)
    static
    + + +
    ArgumentTypeDefault
    passwordQCString
    promptQString
    +

  • +
  • keep () +
    +
    returns (bool)

  • +
  • maximumPasswordLength () +
    + +
    returns (int)
    In versions KDE 3.4.0 and above only

  • +
  • minimumPasswordLength () +
    + +
    returns (int)
    In versions KDE 3.4.0 and above only

  • +
  • password () +
    +
    returns (char)

  • +
  • passwordStrengthWarningLevel () +
    + +
    returns (int)
    In versions KDE 3.4.0 and above only

  • +
  • prompt () +
    +
    returns (QString)

  • +
  • reasonablePasswordLength () +
    + +
    returns (int)
    In versions KDE 3.4.0 and above only

  • +
  • setAllowEmptyPasswords (allowed) +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only
    + +
    ArgumentTypeDefault
    allowedbool
    +

  • +
  • setMaximumPasswordLength (maxLength) +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only
    + +
    ArgumentTypeDefault
    maxLengthint
    +

  • +
  • setMinimumPasswordLength (minLength) +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only
    + +
    ArgumentTypeDefault
    minLengthint
    +

  • +
  • setPasswordStrengthWarningLevel (warningLevel) +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only
    + +
    ArgumentTypeDefault
    warningLevelint
    +

  • +
  • setPrompt (prompt) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    promptQString
    +

  • +
  • setReasonablePasswordLength (reasonableLength) +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only
    + +
    ArgumentTypeDefault
    reasonableLengthint
    +

  • +
  • slotCancel () +
    +
    returns nothing

  • +
  • slotKeep (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • slotOk () +
    +
    returns nothing

  • +
+ + + diff --git a/doc/classref/kdeui/KPasswordEdit.html b/doc/classref/kdeui/KPasswordEdit.html new file mode 100644 index 0000000..4580668 --- /dev/null +++ b/doc/classref/kdeui/KPasswordEdit.html @@ -0,0 +1,122 @@ + + + + + class KPasswordEdit + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KPasswordEdit


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKPasswordEdit
InheritsQLineEdit
+

enums

    +
  • EchoModes = {OneStar, ThreeStars, NoEcho +}
+

methods

    +
  • KPasswordEdit (parent = 0, name = 0) +
    +
    returns a KPasswordEdit instance
    + + +
    ArgumentTypeDefault
    parentQWidget0
    namechar0
    +

  • +
  • KPasswordEdit (echoMode, parent, name) +
    +
    returns a KPasswordEdit instance
    + + + +
    ArgumentTypeDefault
    echoModeEchoMode
    parentQWidget
    namechar
    +

  • +
  • KPasswordEdit (echoMode, parent, name) +
    + +
    returns a KPasswordEdit instance
    In versions KDE 3.2.0 and above only
    + + + +
    ArgumentTypeDefault
    echoModeKPasswordEdit.EchoModes
    parentQWidget
    namechar
    +

  • +
  • KPasswordEdit (parent, name, echoMode) +
    +
    returns a KPasswordEdit instance
    + + + +
    ArgumentTypeDefault
    parentQWidget
    namechar
    echoModeint
    +

  • +
  • erase () +
    +
    returns nothing

  • +
  • event (e) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    eQEvent
    +

  • +
  • focusInEvent (e) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    eQFocusEvent
    +

  • +
  • insert (a0) +
    + +
    returns nothing
    In versions KDE 3.1.2 and above only
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • keyPressEvent (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QKeyEvent
    +

  • +
  • maxPasswordLength () +
    + +
    returns (int)
    In versions KDE 3.4.0 and above only

  • +
  • password () +
    +
    returns (char)

  • +
  • setMaxPasswordLength (newLength) +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only
    + +
    ArgumentTypeDefault
    newLengthint
    +

  • +
+

variables

+ + + diff --git a/doc/classref/kdeui/KPasteTextAction.html b/doc/classref/kdeui/KPasteTextAction.html new file mode 100644 index 0000000..03da441 --- /dev/null +++ b/doc/classref/kdeui/KPasteTextAction.html @@ -0,0 +1,83 @@ + + + + + class KPasteTextAction + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KPasteTextAction


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKPasteTextAction
InheritsKAction
+

methods

    +
  • KPasteTextAction (text, icon, cut, slot, parent = 0, name = 0) +
    + +
    returns a KPasteTextAction instance
    In versions KDE 3.2.0 and above only
    + + + + + + +
    ArgumentTypeDefault
    textQString
    iconQString
    cutKShortcut
    slotSLOT (Python callable)
    parentQObject0
    namechar0
    +

  • +
  • menuAboutToShow () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • menuItemActivated (id) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    idint
    +

  • +
  • plug (widget, index = -1) +
    + +
    returns (int)
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    widgetQWidget
    indexint-1
    +

  • +
  • setMixedMode (mode) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    modebool
    +

  • +
  • slotActivated () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
+ + + diff --git a/doc/classref/kdeui/KPixmapIO.html b/doc/classref/kdeui/KPixmapIO.html new file mode 100644 index 0000000..5d7339b --- /dev/null +++ b/doc/classref/kdeui/KPixmapIO.html @@ -0,0 +1,105 @@ + + + + + class KPixmapIO + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KPixmapIO


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKPixmapIO
Inherits
+

enums

    +
  • ShmPolicies = {ShmDontKeep, ShmKeepAndGrow +}
+

methods

    +
  • KPixmapIO () +
    +
    returns a KPixmapIO instance

  • +
  • convertToImage (pixmap) +
    +
    returns (QImage)
    + +
    ArgumentTypeDefault
    pixmapQPixmap
    +

  • +
  • convertToPixmap (image) +
    +
    returns (QPixmap)
    + +
    ArgumentTypeDefault
    imageQImage
    +

  • +
  • getImage (src, sx, sy, sw, sh) +
    +
    returns (QImage)
    + + + + + +
    ArgumentTypeDefault
    srcQPixmap
    sxint
    syint
    swint
    shint
    +

  • +
  • getImage (src, rect) +
    +
    returns (QImage)
    + + +
    ArgumentTypeDefault
    srcQPixmap
    rectQRect
    +

  • +
  • preAllocShm (size) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    sizeint
    +

  • +
  • putImage (dst, dx, dy, src) +
    +
    returns nothing
    + + + + +
    ArgumentTypeDefault
    dstQPixmap
    dxint
    dyint
    srcQImage
    +

  • +
  • putImage (dst, offset, src) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    dstQPixmap
    offsetQPoint
    srcQImage
    +

  • +
  • setShmPolicy (policy) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    policyint
    +

  • +
+ + + diff --git a/doc/classref/kdeui/KPixmapRegionSelectorDialog.html b/doc/classref/kdeui/KPixmapRegionSelectorDialog.html new file mode 100644 index 0000000..33fcb2e --- /dev/null +++ b/doc/classref/kdeui/KPixmapRegionSelectorDialog.html @@ -0,0 +1,94 @@ + + + + + class KPixmapRegionSelectorDialog + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KPixmapRegionSelectorDialog


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKPixmapRegionSelectorDialog
InheritsKDialogBase
+

methods

    +
  • KPixmapRegionSelectorDialog (parent = 0, name = 0, modal = 0) +
    + +
    returns a KPixmapRegionSelectorDialog instance
    In versions KDE 3.4.0 and above only
    + + + +
    ArgumentTypeDefault
    parentQWidget0
    namechar0
    modalbool0
    +

  • +
  • getSelectedImage (pixmap, parent = 0) +
    + + +
    returns (QImage)
    In versions KDE 3.4.0 and above only
    static
    + + +
    ArgumentTypeDefault
    pixmapQPixmap
    parentQWidget0
    +

  • +
  • getSelectedImage (pixmap, aspectRatioWidth, aspectRatioHeight, parent = 0) +
    + + +
    returns (QImage)
    In versions KDE 3.4.0 and above only
    static
    + + + + +
    ArgumentTypeDefault
    pixmapQPixmap
    aspectRatioWidthint
    aspectRatioHeightint
    parentQWidget0
    +

  • +
  • getSelectedRegion (pixmap, parent = 0) +
    + + +
    returns (QRect)
    In versions KDE 3.4.0 and above only
    static
    + + +
    ArgumentTypeDefault
    pixmapQPixmap
    parentQWidget0
    +

  • +
  • getSelectedRegion (pixmap, aspectRatioWidth, aspectRatioHeight, parent = 0) +
    + + +
    returns (QRect)
    In versions KDE 3.4.0 and above only
    static
    + + + + +
    ArgumentTypeDefault
    pixmapQPixmap
    aspectRatioWidthint
    aspectRatioHeightint
    parentQWidget0
    +

  • +
  • pixmapRegionSelectorWidget () +
    + +
    returns (KPixmapRegionSelectorWidget)
    In versions KDE 3.4.0 and above only

  • +
+ + + diff --git a/doc/classref/kdeui/KPixmapRegionSelectorWidget.html b/doc/classref/kdeui/KPixmapRegionSelectorWidget.html new file mode 100644 index 0000000..5e0449f --- /dev/null +++ b/doc/classref/kdeui/KPixmapRegionSelectorWidget.html @@ -0,0 +1,122 @@ + + + + + class KPixmapRegionSelectorWidget + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KPixmapRegionSelectorWidget


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKPixmapRegionSelectorWidget
InheritsQWidget
+

methods

    +
  • KPixmapRegionSelectorWidget (parent = 0, name = 0) +
    + +
    returns a KPixmapRegionSelectorWidget instance
    In versions KDE 3.4.0 and above only
    + + +
    ArgumentTypeDefault
    parentQWidget0
    namechar0
    +

  • +
  • createPopupMenu () +
    + +
    returns (KPopupMenu)
    In versions KDE 3.4.0 and above only

  • +
  • pixmap () +
    + +
    returns (QPixmap)
    In versions KDE 3.4.0 and above only

  • +
  • resetSelection () +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only

  • +
  • rotate (direction) +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only
    + +
    ArgumentTypeDefault
    directionKImageEffect.RotateDirection
    +

  • +
  • rotateClockwise () +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only

  • +
  • rotateCounterclockwise () +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only

  • +
  • selectedImage () +
    + +
    returns (QImage)
    In versions KDE 3.4.0 and above only

  • +
  • selectedRegion () +
    + +
    returns (QRect)
    In versions KDE 3.4.0 and above only

  • +
  • setFreeSelectionAspectRatio () +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only

  • +
  • setMaximumWidgetSize (width, height) +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only
    + + +
    ArgumentTypeDefault
    widthint
    heightint
    +

  • +
  • setPixmap (pixmap) +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only
    + +
    ArgumentTypeDefault
    pixmapQPixmap
    +

  • +
  • setSelectedRegion (rect) +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only
    + +
    ArgumentTypeDefault
    rectQRect
    +

  • +
  • setSelectionAspectRatio (width, height) +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only
    + + +
    ArgumentTypeDefault
    widthint
    heightint
    +

  • +
  • unzoomedSelectedRegion () +
    + +
    returns (QRect)
    In versions KDE 3.4.0 and above only

  • +
+ + + diff --git a/doc/classref/kdeui/KPopupFrame.html b/doc/classref/kdeui/KPopupFrame.html new file mode 100644 index 0000000..4e09378 --- /dev/null +++ b/doc/classref/kdeui/KPopupFrame.html @@ -0,0 +1,115 @@ + + + + + class KPopupFrame + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KPopupFrame


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKPopupFrame
InheritsQFrame
+

methods

    +
  • KPopupFrame (parent = 0, name = 0) +
    +
    returns a KPopupFrame instance
    + + +
    ArgumentTypeDefault
    parentQWidget0
    namechar0
    +

  • +
  • close (r) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    rint
    +

  • +
  • exec_ (p) +
    + +
    returns (int)
    Renamed: was ' exec +' in C++
    + +
    ArgumentTypeDefault
    pQPoint
    +

  • +
  • exec_ (x, y) +
    + +
    returns (int)
    Renamed: was ' exec +' in C++
    + + +
    ArgumentTypeDefault
    xint
    yint
    +

  • +
  • hide () +
    + +
    returns nothing
    In versions KDE 3.5.0 and above only

  • +
  • keyPressEvent (e) +
    + +
    returns nothing
    In versions KDE 3.0.1 and above only
    + +
    ArgumentTypeDefault
    eQKeyEvent
    +

  • +
  • keyPressEvent (a0) +
    + +
    returns nothing
    In versions less than KDE 3.0.1 only
    + +
    ArgumentTypeDefault
    a0QKeyEvent
    +

  • +
  • popup (pos) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    posQPoint
    +

  • +
  • resizeEvent (a0) +
    + +
    returns nothing
    In versions KDE 3.0.1 and above only
    + +
    ArgumentTypeDefault
    a0QResizeEvent
    +

  • +
  • resizeEvent (a0) +
    + +
    returns nothing
    In versions less than KDE 3.0.1 only
    + +
    ArgumentTypeDefault
    a0QResizeEvent
    +

  • +
  • setMainWidget (m) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    mQWidget
    +

  • +
+ + + diff --git a/doc/classref/kdeui/KPopupMenu.html b/doc/classref/kdeui/KPopupMenu.html new file mode 100644 index 0000000..a28c4ea --- /dev/null +++ b/doc/classref/kdeui/KPopupMenu.html @@ -0,0 +1,244 @@ + + + + + class KPopupMenu + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KPopupMenu


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKPopupMenu
InheritsQPopupMenu
+

methods

    +
  • KPopupMenu (parent = 0, name = 0) +
    +
    returns a KPopupMenu instance
    + + +
    ArgumentTypeDefault
    parentQWidget0
    namechar0
    +

  • +
  • KPopupMenu (title, parent = 0, name = 0) +
    +
    returns a KPopupMenu instance
    + + + +
    ArgumentTypeDefault
    titleQString
    parentQWidget0
    namechar0
    +

  • +
  • aboutToShowContextMenu (menu, menuItem, ctxMenu) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + + + +
    ArgumentTypeDefault
    menuKPopupMenu
    menuItemint
    ctxMenuQPopupMenu
    +

  • +
  • activateItemAt (index) +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only
    + +
    ArgumentTypeDefault
    indexint
    +

  • +
  • changeTitle (id, text) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    idint
    textQString
    +

  • +
  • changeTitle (id, icon, text) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    idint
    iconQPixmap
    textQString
    +

  • +
  • closeEvent (a0) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    a0QCloseEvent
    +

  • +
  • contextMenu () +
    + +
    returns (QPopupMenu)
    In versions KDE 3.2.0 and above only

  • +
  • contextMenuEvent (e) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    eQContextMenuEvent
    +

  • +
  • contextMenuFocus () +
    + + +
    returns (KPopupMenu)
    In versions KDE 3.2.0 and above only
    static

  • +
  • contextMenuFocusItem () +
    + + +
    returns (int)
    In versions KDE 3.2.0 and above only
    static

  • +
  • ctxMenuHideShowingMenu () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • ctxMenuHiding () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • focusNextPrevChild (next) +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    nextbool
    +

  • +
  • hideContextMenu () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • hideEvent (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0QHideEvent
    +

  • +
  • insertTitle (text, id = -1, index = -1) +
    +
    returns (int)
    + + + +
    ArgumentTypeDefault
    textQString
    idint-1
    indexint-1
    +

  • +
  • insertTitle (icon, text, id = -1, index = -1) +
    +
    returns (int)
    + + + + +
    ArgumentTypeDefault
    iconQPixmap
    textQString
    idint-1
    indexint-1
    +

  • +
  • itemHighlighted (whichItem) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    whichItemint
    +

  • +
  • keyPressEvent (e) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    eQKeyEvent
    +

  • +
  • mousePressEvent (e) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    eQMouseEvent
    +

  • +
  • mouseReleaseEvent (e) +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only
    + +
    ArgumentTypeDefault
    eQMouseEvent
    +

  • +
  • resetKeyboardVars (noMatches = 0) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    noMatchesbool0
    +

  • +
  • setKeyboardShortcutsEnabled (enable) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    enablebool
    +

  • +
  • setKeyboardShortcutsExecute (enable) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    enablebool
    +

  • +
  • setTitle (title) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    titleQString
    +

  • +
  • showCtxMenu (pos) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    posQPoint
    +

  • +
  • state () +
    + +
    returns (Qt.ButtonState)
    In versions KDE 3.4.0 and above only

  • +
  • title (id = -1) +
    +
    returns (QString)
    + +
    ArgumentTypeDefault
    idint-1
    +

  • +
  • titlePixmap (id) +
    +
    returns (QPixmap)
    + +
    ArgumentTypeDefault
    idint
    +

  • +
  • underlineText (text, length) +
    + +
    returns (QString)
    In versions KDE 3.1.0 and above only
    + + +
    ArgumentTypeDefault
    textQString
    lengthuint
    +

  • +
+ + + diff --git a/doc/classref/kdeui/KPopupTitle.html b/doc/classref/kdeui/KPopupTitle.html new file mode 100644 index 0000000..36c13f3 --- /dev/null +++ b/doc/classref/kdeui/KPopupTitle.html @@ -0,0 +1,108 @@ + + + + + class KPopupTitle + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KPopupTitle


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKPopupTitle
InheritsQWidget
+

methods

    +
  • KPopupTitle (parent = 0, name = 0) +
    +
    returns a KPopupTitle instance
    + + +
    ArgumentTypeDefault
    parentQWidget0
    namechar0
    +

  • +
  • KPopupTitle (gradient, color, textColor, parent = 0, name = 0) +
    +
    returns a KPopupTitle instance
    + + + + + +
    ArgumentTypeDefault
    gradientKPixmapEffect.GradientType
    colorQColor
    textColorQColor
    parentQWidget0
    namechar0
    +

  • +
  • KPopupTitle (background, color, textColor, parent = 0, name = 0) +
    +
    returns a KPopupTitle instance
    + + + + + +
    ArgumentTypeDefault
    backgroundKPixmap
    colorQColor
    textColorQColor
    parentQWidget0
    namechar0
    +

  • +
  • calcSize () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • icon () +
    +
    returns (QPixmap)

  • +
  • paintEvent (ev) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    evQPaintEvent
    +

  • +
  • setIcon (pix) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    pixQPixmap
    +

  • +
  • setText (text) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    textQString
    +

  • +
  • setTitle (text, icon = 0) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    textQString
    iconQPixmap0
    +

  • +
  • sizeHint () +
    +
    returns (QSize)

  • +
  • title () +
    +
    returns (QString)

  • +
+ + + diff --git a/doc/classref/kdeui/KProgress.html b/doc/classref/kdeui/KProgress.html new file mode 100644 index 0000000..c814e7e --- /dev/null +++ b/doc/classref/kdeui/KProgress.html @@ -0,0 +1,127 @@ + + + + + class KProgress + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KProgress


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKProgress
InheritsQProgressBar
+

methods

    +
  • KProgress (parent = 0, name = 0, f = 0) +
    +
    returns a KProgress instance
    + + + +
    ArgumentTypeDefault
    parentQWidget0
    namechar0
    fWFlags0
    +

  • +
  • KProgress (totalSteps, parent = 0, name = 0, f = 0) +
    +
    returns a KProgress instance
    + + + + +
    ArgumentTypeDefault
    totalStepsint
    parentQWidget0
    namechar0
    fWFlags0
    +

  • +
  • advance (offset) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    offsetint
    +

  • +
  • format () +
    +
    returns (QString)

  • +
  • maxValue () +
    +
    returns (int)

  • +
  • percentageChanged (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • setFormat (format) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    formatQString
    +

  • +
  • setIndicator (indicator, progress, totalSteps) +
    +
    returns (bool)
    + + + +
    ArgumentTypeDefault
    indicatorQString
    progressint
    totalStepsint
    +

  • +
  • setProgress (progress) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    progressint
    +

  • +
  • setRange (min, max) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    minint
    maxint
    +

  • +
  • setTextEnabled (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • setTotalSteps (totalSteps) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    totalStepsint
    +

  • +
  • setValue (progress) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    progressint
    +

  • +
  • textEnabled () +
    +
    returns (bool)

  • +
  • value () +
    +
    returns (int)

  • +
+ + + diff --git a/doc/classref/kdeui/KProgressDialog.html b/doc/classref/kdeui/KProgressDialog.html new file mode 100644 index 0000000..c22c468 --- /dev/null +++ b/doc/classref/kdeui/KProgressDialog.html @@ -0,0 +1,133 @@ + + + + + class KProgressDialog + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KProgressDialog


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKProgressDialog
InheritsKDialogBase
+

methods

    +
  • KProgressDialog (parent = 0, name = 0, caption = QString .null, text = QString .null, modal = 0) +
    +
    returns a KProgressDialog instance
    + + + + + +
    ArgumentTypeDefault
    parentQWidget0
    namechar0
    captionQStringQString .null
    textQStringQString .null
    modalbool0
    +

  • +
  • allowCancel () +
    +
    returns (bool)

  • +
  • autoClose () +
    +
    returns (bool)

  • +
  • autoReset () +
    +
    returns (bool)

  • +
  • buttonText () +
    +
    returns (QString)

  • +
  • labelText () +
    +
    returns (QString)

  • +
  • minimumDuration () +
    +
    returns (int)

  • +
  • progressBar () +
    +
    returns (KProgress)

  • +
  • setAllowCancel (allowCancel) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    allowCancelbool
    +

  • +
  • setAutoClose (close) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    closebool
    +

  • +
  • setAutoReset (autoReset) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    autoResetbool
    +

  • +
  • setButtonText (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • setLabel (text) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    textQString
    +

  • +
  • setMinimumDuration (ms) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    msint
    +

  • +
  • show () +
    + +
    returns nothing
    In versions KDE 3.5.3 and above only

  • +
  • showCancelButton (show) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    showbool
    +

  • +
  • slotAutoActions (percentage) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    percentageint
    +

  • +
  • slotAutoShow () +
    +
    returns nothing

  • +
  • slotCancel () +
    +
    returns nothing

  • +
  • wasCancelled () +
    +
    returns (bool)

  • +
+ + + diff --git a/doc/classref/kdeui/KPushButton.html b/doc/classref/kdeui/KPushButton.html new file mode 100644 index 0000000..b45451c --- /dev/null +++ b/doc/classref/kdeui/KPushButton.html @@ -0,0 +1,142 @@ + + + + + class KPushButton + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KPushButton


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKPushButton
InheritsQPushButton
+

methods

    +
  • KPushButton (parent, name = 0) +
    +
    returns a KPushButton instance
    + + +
    ArgumentTypeDefault
    parentQWidget
    namechar0
    +

  • +
  • KPushButton (text, parent, name = 0) +
    +
    returns a KPushButton instance
    + + + +
    ArgumentTypeDefault
    textQString
    parentQWidget
    namechar0
    +

  • +
  • KPushButton (icon, text, parent, name = 0) +
    +
    returns a KPushButton instance
    + + + + +
    ArgumentTypeDefault
    iconQIconSet
    textQString
    parentQWidget
    namechar0
    +

  • +
  • KPushButton (item, parent, name = 0) +
    +
    returns a KPushButton instance
    + + + +
    ArgumentTypeDefault
    itemKGuiItem
    parentQWidget
    namechar0
    +

  • +
  • dragObject () +
    +
    returns (QDragObject)

  • +
  • guiItem () +
    + +
    returns (KStdGuiItem.StdItem)
    In versions KDE 3.4.0 and above only

  • +
  • guiItm () +
    + +
    returns (int)
    In versions KDE 3.4.0 and above only

  • +
  • isDragEnabled () +
    +
    returns (bool)

  • +
  • mouseMoveEvent (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QMouseEvent
    +

  • +
  • mousePressEvent (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QMouseEvent
    +

  • +
  • setDragEnabled (enable) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    enablebool
    +

  • +
  • setGuiItem (item) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    itemKGuiItem
    +

  • +
  • setGuiItem (item) +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only
    + +
    ArgumentTypeDefault
    itemKStdGuiItem.StdItem
    +

  • +
  • setGuiItm (itm) +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only
    + +
    ArgumentTypeDefault
    itmint
    +

  • +
  • setIconSet (iconSet) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    iconSetQIconSet
    +

  • +
  • setText (text) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    textQString
    +

  • +
  • startDrag () +
    +
    returns nothing

  • +
+ + + diff --git a/doc/classref/kdeui/KRadioAction.html b/doc/classref/kdeui/KRadioAction.html new file mode 100644 index 0000000..e94f021 --- /dev/null +++ b/doc/classref/kdeui/KRadioAction.html @@ -0,0 +1,199 @@ + + + + + class KRadioAction + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KRadioAction


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKRadioAction
InheritsKToggleAction
+

methods

    +
  • KRadioAction (a0, a1 = KShortcut (), a2 = 0, a3 = 0) +
    + +
    returns a KRadioAction instance
    In versions less than KDE 3.2.0 only
    + + + + +
    ArgumentTypeDefault
    a0QString
    a1KShortcutKShortcut ()
    a2QObject0
    a3char0
    +

  • +
  • KRadioAction (a0, a1, slot, a4, a5 = 0) +
    + +
    returns a KRadioAction instance
    In versions less than KDE 3.2.0 only
    + + + + + +
    ArgumentTypeDefault
    a0QString
    a1KShortcut
    slotSLOT (Python callable)
    a4QObject
    a5char0
    +

  • +
  • KRadioAction (text, pix, cut = KShortcut (), parent = 0, name = 0) +
    + +
    returns a KRadioAction instance
    In versions KDE 3.2.0 and above only
    + + + + + +
    ArgumentTypeDefault
    textQString
    pixQString
    cutKShortcutKShortcut ()
    parentQObject0
    namechar0
    +

  • +
  • KRadioAction (text, pix, cut, slot, parent, name = 0) +
    + +
    returns a KRadioAction instance
    In versions KDE 3.2.0 and above only
    + + + + + + +
    ArgumentTypeDefault
    textQString
    pixQIconSet
    cutKShortcut
    slotSLOT (Python callable)
    parentQObject
    namechar0
    +

  • +
  • KRadioAction (text, pix, cut, slot, parent, name = 0) +
    + +
    returns a KRadioAction instance
    In versions KDE 3.2.0 and above only
    + + + + + + +
    ArgumentTypeDefault
    textQString
    pixQString
    cutKShortcut
    slotSLOT (Python callable)
    parentQObject
    namechar0
    +

  • +
  • KRadioAction (parent = 0, name = 0) +
    + +
    returns a KRadioAction instance
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    parentQObject0
    namechar0
    +

  • +
  • KRadioAction (a0, a1, a2 = KShortcut (), a3 = 0, a4 = 0) +
    + +
    returns a KRadioAction instance
    In versions less than KDE 3.2.0 only
    + + + + + +
    ArgumentTypeDefault
    a0QString
    a1QIconSet
    a2KShortcutKShortcut ()
    a3QObject0
    a4char0
    +

  • +
  • KRadioAction (a0, a1, a2 = KShortcut (), a3 = 0, a4 = 0) +
    + +
    returns a KRadioAction instance
    In versions less than KDE 3.2.0 only
    + + + + + +
    ArgumentTypeDefault
    a0QString
    a1QString
    a2KShortcutKShortcut ()
    a3QObject0
    a4char0
    +

  • +
  • KRadioAction (a0, a1, a2, slot, a5, a6 = 0) +
    + +
    returns a KRadioAction instance
    In versions less than KDE 3.2.0 only
    + + + + + + +
    ArgumentTypeDefault
    a0QString
    a1QIconSet
    a2KShortcut
    slotSLOT (Python callable)
    a5QObject
    a6char0
    +

  • +
  • KRadioAction (a0, a1, a2, slot, a5, a6 = 0) +
    + +
    returns a KRadioAction instance
    In versions less than KDE 3.2.0 only
    + + + + + + +
    ArgumentTypeDefault
    a0QString
    a1QString
    a2KShortcut
    slotSLOT (Python callable)
    a5QObject
    a6char0
    +

  • +
  • KRadioAction (a0 = 0, a1 = 0) +
    + +
    returns a KRadioAction instance
    In versions less than KDE 3.2.0 only
    + + +
    ArgumentTypeDefault
    a0QObject0
    a1char0
    +

  • +
  • KRadioAction (text, cut = KShortcut (), parent = 0, name = 0) +
    + +
    returns a KRadioAction instance
    In versions KDE 3.2.0 and above only
    + + + + +
    ArgumentTypeDefault
    textQString
    cutKShortcutKShortcut ()
    parentQObject0
    namechar0
    +

  • +
  • KRadioAction (text, cut, slot, parent, name = 0) +
    + +
    returns a KRadioAction instance
    In versions KDE 3.2.0 and above only
    + + + + + +
    ArgumentTypeDefault
    textQString
    cutKShortcut
    slotSLOT (Python callable)
    parentQObject
    namechar0
    +

  • +
  • KRadioAction (text, pix, cut = KShortcut (), parent = 0, name = 0) +
    + +
    returns a KRadioAction instance
    In versions KDE 3.2.0 and above only
    + + + + + +
    ArgumentTypeDefault
    textQString
    pixQIconSet
    cutKShortcutKShortcut ()
    parentQObject0
    namechar0
    +

  • +
  • slotActivated () +
    + +
    returns nothing
    In versions less than KDE 3.2.0 only

  • +
  • slotActivated () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
+ + + diff --git a/doc/classref/kdeui/KRecentFilesAction.html b/doc/classref/kdeui/KRecentFilesAction.html new file mode 100644 index 0000000..1afeef1 --- /dev/null +++ b/doc/classref/kdeui/KRecentFilesAction.html @@ -0,0 +1,380 @@ + + + + + class KRecentFilesAction + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KRecentFilesAction


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKRecentFilesAction
InheritsKListAction
+

methods

    +
  • KRecentFilesAction (a0, a1, a2, a3 = 0, a4 = 10) +
    + +
    returns a KRecentFilesAction instance
    In versions less than KDE 3.2.0 only
    + + + + + +
    ArgumentTypeDefault
    a0QString
    a1KShortcut
    a2QObject
    a3char0
    a4uint10
    +

  • +
  • KRecentFilesAction (a0, a1, slot, a4, a5 = 0, a6 = 10) +
    + +
    returns a KRecentFilesAction instance
    In versions less than KDE 3.2.0 only
    + + + + + + +
    ArgumentTypeDefault
    a0QString
    a1KShortcut
    slotSLOT (Python callable)
    a4QObject
    a5char0
    a6uint10
    +

  • +
  • KRecentFilesAction (text, pix, cut, parent, name = 0, maxItems = 10) +
    + +
    returns a KRecentFilesAction instance
    In versions KDE 3.2.0 and above only
    + + + + + + +
    ArgumentTypeDefault
    textQString
    pixQString
    cutKShortcut
    parentQObject
    namechar0
    maxItemsuint10
    +

  • +
  • KRecentFilesAction (text, pix, cut, slot, parent, name = 0, maxItems = 10) +
    + +
    returns a KRecentFilesAction instance
    In versions KDE 3.2.0 and above only
    + + + + + + + +
    ArgumentTypeDefault
    textQString
    pixQIconSet
    cutKShortcut
    slotSLOT (Python callable)
    parentQObject
    namechar0
    maxItemsuint10
    +

  • +
  • KRecentFilesAction (text, pix, cut, slot, parent, name = 0, maxItems = 10) +
    + +
    returns a KRecentFilesAction instance
    In versions KDE 3.2.0 and above only
    + + + + + + + +
    ArgumentTypeDefault
    textQString
    pixQString
    cutKShortcut
    slotSLOT (Python callable)
    parentQObject
    namechar0
    maxItemsuint10
    +

  • +
  • KRecentFilesAction (parent = 0, name = 0, maxItems = 10) +
    + +
    returns a KRecentFilesAction instance
    In versions KDE 3.2.0 and above only
    + + + +
    ArgumentTypeDefault
    parentQObject0
    namechar0
    maxItemsuint10
    +

  • +
  • KRecentFilesAction (a0, a1, a2, a3, a4 = 0, a5 = 10) +
    + +
    returns a KRecentFilesAction instance
    In versions less than KDE 3.2.0 only
    + + + + + + +
    ArgumentTypeDefault
    a0QString
    a1QIconSet
    a2KShortcut
    a3QObject
    a4char0
    a5uint10
    +

  • +
  • KRecentFilesAction (a0, a1, a2, a3, a4 = 0, a5 = 10) +
    + +
    returns a KRecentFilesAction instance
    In versions less than KDE 3.2.0 only
    + + + + + + +
    ArgumentTypeDefault
    a0QString
    a1QString
    a2KShortcut
    a3QObject
    a4char0
    a5uint10
    +

  • +
  • KRecentFilesAction (a0, a1, a2, slot, a5, a6 = 0, a7 = 10) +
    + +
    returns a KRecentFilesAction instance
    In versions less than KDE 3.2.0 only
    + + + + + + + +
    ArgumentTypeDefault
    a0QString
    a1QIconSet
    a2KShortcut
    slotSLOT (Python callable)
    a5QObject
    a6char0
    a7uint10
    +

  • +
  • KRecentFilesAction (a0, a1, a2, slot, a5, a6 = 0, a7 = 10) +
    + +
    returns a KRecentFilesAction instance
    In versions less than KDE 3.2.0 only
    + + + + + + + +
    ArgumentTypeDefault
    a0QString
    a1QString
    a2KShortcut
    slotSLOT (Python callable)
    a5QObject
    a6char0
    a7uint10
    +

  • +
  • KRecentFilesAction (a0 = 0, a1 = 0, a2 = 10) +
    + +
    returns a KRecentFilesAction instance
    In versions less than KDE 3.2.0 only
    + + + +
    ArgumentTypeDefault
    a0QObject0
    a1char0
    a2uint10
    +

  • +
  • KRecentFilesAction (text, cut, parent, name = 0, maxItems = 10) +
    + +
    returns a KRecentFilesAction instance
    In versions KDE 3.2.0 and above only
    + + + + + +
    ArgumentTypeDefault
    textQString
    cutKShortcut
    parentQObject
    namechar0
    maxItemsuint10
    +

  • +
  • KRecentFilesAction (text, cut, slot, parent, name = 0, maxItems = 10) +
    + +
    returns a KRecentFilesAction instance
    In versions KDE 3.2.0 and above only
    + + + + + + +
    ArgumentTypeDefault
    textQString
    cutKShortcut
    slotSLOT (Python callable)
    parentQObject
    namechar0
    maxItemsuint10
    +

  • +
  • KRecentFilesAction (text, pix, cut, parent, name = 0, maxItems = 10) +
    + +
    returns a KRecentFilesAction instance
    In versions KDE 3.2.0 and above only
    + + + + + + +
    ArgumentTypeDefault
    textQString
    pixQIconSet
    cutKShortcut
    parentQObject
    namechar0
    maxItemsuint10
    +

  • +
  • addURL (a0) +
    + +
    returns nothing
    In versions less than KDE 3.2.0 only
    + +
    ArgumentTypeDefault
    a0KURL
    +

  • +
  • addURL (url) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    urlKURL
    +

  • +
  • addURL (url, name) +
    + +
    returns nothing
    In versions KDE 3.5.0 and above only
    + + +
    ArgumentTypeDefault
    urlKURL
    nameQString
    +

  • +
  • clearURLList () +
    + +
    returns nothing
    In versions less than KDE 3.2.0 only

  • +
  • clearURLList () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • completeItems () +
    + +
    returns (QStringList)
    In versions KDE 3.5.0 and above only

  • +
  • itemSelected (a0) +
    + +
    returns nothing
    In versions less than KDE 3.2.0 only
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • itemSelected (string) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    stringQString
    +

  • +
  • items () +
    + +
    returns (QStringList)
    In versions KDE 3.5.0 and above only

  • +
  • loadEntries (a0, a1 = QString .null) +
    + +
    returns nothing
    In versions less than KDE 3.2.0 only
    + + +
    ArgumentTypeDefault
    a0KConfig
    a1QStringQString .null
    +

  • +
  • loadEntries (config, groupname = QString .null) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    configKConfig
    groupnameQStringQString .null
    +

  • +
  • maxItems () +
    + +
    returns (uint)
    In versions less than KDE 3.2.0 only

  • +
  • maxItems () +
    + +
    returns (uint)
    In versions KDE 3.2.0 and above only

  • +
  • menuAboutToShow () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • menuItemActivated (id) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    idint
    +

  • +
  • plug (widget, index = -1) +
    + +
    returns (int)
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    widgetQWidget
    indexint-1
    +

  • +
  • removeURL (a0) +
    + +
    returns nothing
    In versions less than KDE 3.2.0 only
    + +
    ArgumentTypeDefault
    a0KURL
    +

  • +
  • removeURL (url) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    urlKURL
    +

  • +
  • saveEntries (a0, a1 = QString .null) +
    + +
    returns nothing
    In versions less than KDE 3.2.0 only
    + + +
    ArgumentTypeDefault
    a0KConfig
    a1QStringQString .null
    +

  • +
  • saveEntries (config, groupname = QString .null) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    configKConfig
    groupnameQStringQString .null
    +

  • +
  • setMaxItems (a0) +
    + +
    returns nothing
    In versions less than KDE 3.2.0 only
    + +
    ArgumentTypeDefault
    a0uint
    +

  • +
  • setMaxItems (maxItems) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    maxItemsuint
    +

  • +
  • slotActivated (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • slotActivated (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • slotActivated () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • slotClicked () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • urlSelected (a0) +
    + +
    returns nothing
    In versions less than KDE 3.2.0 only
    + +
    ArgumentTypeDefault
    a0KURL
    +

  • +
  • urlSelected (url) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    urlKURL
    +

  • +
+ + + diff --git a/doc/classref/kdeui/KRestrictedLine.html b/doc/classref/kdeui/KRestrictedLine.html new file mode 100644 index 0000000..17efb11 --- /dev/null +++ b/doc/classref/kdeui/KRestrictedLine.html @@ -0,0 +1,70 @@ + + + + + class KRestrictedLine + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KRestrictedLine


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKRestrictedLine
InheritsKLineEdit
+

methods

    +
  • KRestrictedLine (parent = 0, name = 0, valid = QString .null) +
    +
    returns a KRestrictedLine instance
    + + + +
    ArgumentTypeDefault
    parentQWidget0
    namechar0
    validQStringQString .null
    +

  • +
  • invalidChar (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • keyPressEvent (e) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    eQKeyEvent
    +

  • +
  • setValidChars (valid) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    validQString
    +

  • +
  • validChars () +
    +
    returns (QString)

  • +
+ + + diff --git a/doc/classref/kdeui/KRootPermsIcon.html b/doc/classref/kdeui/KRootPermsIcon.html new file mode 100644 index 0000000..fb99293 --- /dev/null +++ b/doc/classref/kdeui/KRootPermsIcon.html @@ -0,0 +1,54 @@ + + + + + class KRootPermsIcon + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KRootPermsIcon


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKRootPermsIcon
InheritsKAuthIcon
+

methods

    +
  • KRootPermsIcon (parent = 0, name = 0) +
    +
    returns a KRootPermsIcon instance
    + + +
    ArgumentTypeDefault
    parentQWidget0
    namechar0
    +

  • +
  • status () +
    +
    returns (bool)

  • +
  • updateStatus () +
    +
    returns nothing

  • +
+ + + diff --git a/doc/classref/kdeui/KRootPixmap.html b/doc/classref/kdeui/KRootPixmap.html new file mode 100644 index 0000000..bfb8278 --- /dev/null +++ b/doc/classref/kdeui/KRootPixmap.html @@ -0,0 +1,132 @@ + + + + + class KRootPixmap + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KRootPixmap


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKRootPixmap
InheritsQObject
+

methods

    +
  • KRootPixmap (target, name = 0) +
    +
    returns a KRootPixmap instance
    + + +
    ArgumentTypeDefault
    targetQWidget
    namechar0
    +

  • +
  • KRootPixmap (target, parent, name = 0) +
    +
    returns a KRootPixmap instance
    + + + +
    ArgumentTypeDefault
    targetQWidget
    parentQObject
    namechar0
    +

  • +
  • backgroundUpdated (pm) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    pmQPixmap
    +

  • +
  • checkAvailable (a0) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • color () +
    + +
    returns (QColor)
    In versions KDE 3.2.0 and above only

  • +
  • currentDesktop () +
    +
    returns (int)

  • +
  • customPainting () +
    +
    returns (bool)

  • +
  • enableExports () +
    +
    returns nothing

  • +
  • eventFilter (a0, a1) +
    +
    returns (bool)
    + + +
    ArgumentTypeDefault
    a0QObject
    a1QEvent
    +

  • +
  • isActive () +
    +
    returns (bool)

  • +
  • isAvailable () +
    +
    returns (bool)

  • +
  • opacity () +
    + +
    returns (double)
    In versions KDE 3.2.0 and above only

  • +
  • pixmapName (desk) +
    Not Implemented
    +

  • +
  • repaint (force) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    forcebool
    +

  • +
  • repaint () +
    +
    returns nothing

  • +
  • setCustomPainting (enable) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    enablebool
    +

  • +
  • setFadeEffect (opacity, color) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    opacitydouble
    colorQColor
    +

  • +
  • start () +
    +
    returns nothing

  • +
  • stop () +
    +
    returns nothing

  • +
  • updateBackground (a0) +
    Not Implemented
    +

  • +
+ + + diff --git a/doc/classref/kdeui/KRuler.html b/doc/classref/kdeui/KRuler.html new file mode 100644 index 0000000..8f11ffe --- /dev/null +++ b/doc/classref/kdeui/KRuler.html @@ -0,0 +1,311 @@ + + + + + class KRuler + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KRuler


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKRuler
InheritsQFrame
+

enums

    +
  • MetricStyle = {Custom, Pixel, Inch, Millimetres, Centimetres, Metres +}
+

methods

    +
  • KRuler (parent = 0, name = 0) +
    +
    returns a KRuler instance
    + + +
    ArgumentTypeDefault
    parentQWidget0
    namechar0
    +

  • +
  • KRuler (orient, parent = 0, name = 0, f = 0) +
    +
    returns a KRuler instance
    + + + + +
    ArgumentTypeDefault
    orientOrientation
    parentQWidget0
    namechar0
    fWFlags0
    +

  • +
  • KRuler (orient, widgetWidth, parent = 0, name = 0, f = 0) +
    +
    returns a KRuler instance
    + + + + + +
    ArgumentTypeDefault
    orientOrientation
    widgetWidthint
    parentQWidget0
    namechar0
    fWFlags0
    +

  • +
  • bigMarkDistance () +
    +
    returns (int)

  • +
  • drawContents (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QPainter
    +

  • +
  • endLabel () +
    +
    returns (QString)

  • +
  • endOffset () +
    +
    returns (int)

  • +
  • length () +
    +
    returns (int)

  • +
  • lengthFixed () +
    +
    returns (bool)

  • +
  • littleMarkDistance () +
    +
    returns (int)

  • +
  • maxValue () +
    +
    returns (int)

  • +
  • mediumMarkDistance () +
    +
    returns (int)

  • +
  • minValue () +
    +
    returns (int)

  • +
  • offset () +
    +
    returns (int)

  • +
  • pixelPerMark () +
    +
    returns (double)

  • +
  • setBigMarkDistance (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • setEndLabel (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • setLength (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • setLengthFixed (fix) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    fixbool
    +

  • +
  • setLittleMarkDistance (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • setMaxValue (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • setMediumMarkDistance (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • setMinValue (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • setOffset (offset) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    offsetint
    +

  • +
  • setPixelPerMark (rate) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    ratedouble
    +

  • +
  • setRange (min, max) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    minint
    maxint
    +

  • +
  • setRulerMetricStyle (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KRuler.MetricStyle
    +

  • +
  • setShowBigMarks (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • setShowEndLabel (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • setShowEndMarks (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • setShowLittleMarks (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • setShowMediumMarks (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • setShowPointer (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • setShowTinyMarks (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • setTinyMarkDistance (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • setValue (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • setValuePerBigMark (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • setValuePerLittleMark (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • setValuePerMediumMark (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • showBigMarks () +
    +
    returns (bool)

  • +
  • showEndLabel () +
    +
    returns (bool)

  • +
  • showEndMarks () +
    +
    returns (bool)

  • +
  • showLittleMarks () +
    +
    returns (bool)

  • +
  • showMediumMarks () +
    +
    returns (bool)

  • +
  • showPointer () +
    +
    returns (bool)

  • +
  • showTinyMarks () +
    +
    returns (bool)

  • +
  • slideDown (count = 1) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    countint1
    +

  • +
  • slideUp (count = 1) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    countint1
    +

  • +
  • slotEndOffset (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • slotNewOffset (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • slotNewValue (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • tinyMarkDistance () +
    +
    returns (int)

  • +
  • value () +
    +
    returns (int)

  • +
+ + + diff --git a/doc/classref/kdeui/KScrollView.html b/doc/classref/kdeui/KScrollView.html new file mode 100644 index 0000000..bf82478 --- /dev/null +++ b/doc/classref/kdeui/KScrollView.html @@ -0,0 +1,77 @@ + + + + + class KScrollView + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KScrollView


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKScrollView
InheritsQScrollView
+

methods

    +
  • KScrollView (parent = 0, name = 0, f = 0) +
    + +
    returns a KScrollView instance
    In versions KDE 3.5.0 and above only
    + + + +
    ArgumentTypeDefault
    parentQWidget0
    namechar0
    fQt.WFlags0
    +

  • +
  • scrollBy (dx, dy) +
    + +
    returns nothing
    In versions KDE 3.5.0 and above only
    + + +
    ArgumentTypeDefault
    dxint
    dyint
    +

  • +
  • scrollTick () +
    + +
    returns nothing
    In versions KDE 3.5.0 and above only

  • +
  • startScrolling () +
    + +
    returns nothing
    In versions KDE 3.5.0 and above only

  • +
  • stopScrolling () +
    + +
    returns nothing
    In versions KDE 3.5.0 and above only

  • +
  • wheelEvent (e) +
    + +
    returns nothing
    In versions KDE 3.5.0 and above only
    + +
    ArgumentTypeDefault
    eQWheelEvent
    +

  • +
+ + + diff --git a/doc/classref/kdeui/KSelectAction.html b/doc/classref/kdeui/KSelectAction.html new file mode 100644 index 0000000..022ff9b --- /dev/null +++ b/doc/classref/kdeui/KSelectAction.html @@ -0,0 +1,536 @@ + + + + + class KSelectAction + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KSelectAction


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKSelectAction
InheritsKAction
+

methods

    +
  • KSelectAction (a0, a1 = KShortcut (), a2 = 0, a3 = 0) +
    + +
    returns a KSelectAction instance
    In versions less than KDE 3.2.0 only
    + + + + +
    ArgumentTypeDefault
    a0QString
    a1KShortcutKShortcut ()
    a2QObject0
    a3char0
    +

  • +
  • KSelectAction (a0, a1, slot, a4, a5 = 0) +
    + +
    returns a KSelectAction instance
    In versions less than KDE 3.2.0 only
    + + + + + +
    ArgumentTypeDefault
    a0QString
    a1KShortcut
    slotSLOT (Python callable)
    a4QObject
    a5char0
    +

  • +
  • KSelectAction (text, pix, cut = KShortcut (), parent = 0, name = 0) +
    + +
    returns a KSelectAction instance
    In versions KDE 3.2.0 and above only
    + + + + + +
    ArgumentTypeDefault
    textQString
    pixQString
    cutKShortcutKShortcut ()
    parentQObject0
    namechar0
    +

  • +
  • KSelectAction (text, pix, cut, slot, parent, name = 0) +
    + +
    returns a KSelectAction instance
    In versions KDE 3.2.0 and above only
    + + + + + + +
    ArgumentTypeDefault
    textQString
    pixQIconSet
    cutKShortcut
    slotSLOT (Python callable)
    parentQObject
    namechar0
    +

  • +
  • KSelectAction (text, pix, cut, slot, parent, name = 0) +
    + +
    returns a KSelectAction instance
    In versions KDE 3.2.0 and above only
    + + + + + + +
    ArgumentTypeDefault
    textQString
    pixQString
    cutKShortcut
    slotSLOT (Python callable)
    parentQObject
    namechar0
    +

  • +
  • KSelectAction (parent = 0, name = 0) +
    + +
    returns a KSelectAction instance
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    parentQObject0
    namechar0
    +

  • +
  • KSelectAction (a0, a1, a2 = KShortcut (), a3 = 0, a4 = 0) +
    + +
    returns a KSelectAction instance
    In versions less than KDE 3.2.0 only
    + + + + + +
    ArgumentTypeDefault
    a0QString
    a1QIconSet
    a2KShortcutKShortcut ()
    a3QObject0
    a4char0
    +

  • +
  • KSelectAction (a0, a1, a2 = KShortcut (), a3 = 0, a4 = 0) +
    + +
    returns a KSelectAction instance
    In versions less than KDE 3.2.0 only
    + + + + + +
    ArgumentTypeDefault
    a0QString
    a1QString
    a2KShortcutKShortcut ()
    a3QObject0
    a4char0
    +

  • +
  • KSelectAction (a0, a1, a2, slot, a5, a6 = 0) +
    + +
    returns a KSelectAction instance
    In versions less than KDE 3.2.0 only
    + + + + + + +
    ArgumentTypeDefault
    a0QString
    a1QIconSet
    a2KShortcut
    slotSLOT (Python callable)
    a5QObject
    a6char0
    +

  • +
  • KSelectAction (a0, a1, a2, slot, a5, a6 = 0) +
    + +
    returns a KSelectAction instance
    In versions less than KDE 3.2.0 only
    + + + + + + +
    ArgumentTypeDefault
    a0QString
    a1QString
    a2KShortcut
    slotSLOT (Python callable)
    a5QObject
    a6char0
    +

  • +
  • KSelectAction (a0 = 0, a1 = 0) +
    + +
    returns a KSelectAction instance
    In versions less than KDE 3.2.0 only
    + + +
    ArgumentTypeDefault
    a0QObject0
    a1char0
    +

  • +
  • KSelectAction (text, cut = KShortcut (), parent = 0, name = 0) +
    + +
    returns a KSelectAction instance
    In versions KDE 3.2.0 and above only
    + + + + +
    ArgumentTypeDefault
    textQString
    cutKShortcutKShortcut ()
    parentQObject0
    namechar0
    +

  • +
  • KSelectAction (text, cut, slot, parent, name = 0) +
    + +
    returns a KSelectAction instance
    In versions KDE 3.2.0 and above only
    + + + + + +
    ArgumentTypeDefault
    textQString
    cutKShortcut
    slotSLOT (Python callable)
    parentQObject
    namechar0
    +

  • +
  • KSelectAction (text, pix, cut = KShortcut (), parent = 0, name = 0) +
    + +
    returns a KSelectAction instance
    In versions KDE 3.2.0 and above only
    + + + + + +
    ArgumentTypeDefault
    textQString
    pixQIconSet
    cutKShortcutKShortcut ()
    parentQObject0
    namechar0
    +

  • +
  • activated (a0) +
    + +
    returns nothing
    In versions less than KDE 3.2.0 only
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • activated (a0) +
    + +
    returns nothing
    In versions less than KDE 3.2.0 only
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • activated (index) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    indexint
    +

  • +
  • activated (text) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    textQString
    +

  • +
  • changeItem (a0, a1) +
    + +
    returns nothing
    In versions less than KDE 3.2.0 only
    + + +
    ArgumentTypeDefault
    a0int
    a1QString
    +

  • +
  • changeItem (a0, a1, a2) +
    + +
    returns nothing
    In versions less than KDE 3.2.0 only
    + + + +
    ArgumentTypeDefault
    a0int
    a1int
    a2QString
    +

  • +
  • changeItem (index, text) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    indexint
    textQString
    +

  • +
  • changeItem (id, index, text) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + + + +
    ArgumentTypeDefault
    idint
    indexint
    textQString
    +

  • +
  • clear () +
    + +
    returns nothing
    In versions less than KDE 3.2.0 only

  • +
  • clear () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • comboItems () +
    + +
    returns (QStringList)
    In versions KDE 3.1.0 and above, but less than KDE 3.5.3

  • +
  • comboItems () +
    + +
    returns (QStringList)
    In versions KDE 3.2.0 and above only

  • +
  • comboWidth () +
    + +
    returns (int)
    In versions less than KDE 3.2.0 only

  • +
  • comboWidth () +
    + +
    returns (int)
    In versions KDE 3.2.0 and above only

  • +
  • currentItem () +
    + +
    returns (int)
    In versions less than KDE 3.2.0 only

  • +
  • currentItem () +
    + +
    returns (int)
    In versions KDE 3.2.0 and above only

  • +
  • currentText () +
    + +
    returns (QString)
    In versions less than KDE 3.2.0 only

  • +
  • currentText () +
    + +
    returns (QString)
    In versions KDE 3.2.0 and above only

  • +
  • isEditable () +
    + +
    returns (bool)
    In versions less than KDE 3.2.0 only

  • +
  • isEditable () +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only

  • +
  • isShortcutConfigurable () +
    + +
    returns (bool)
    In versions KDE 3.5.0 and above only

  • +
  • items () +
    + +
    returns (QStringList)
    In versions less than KDE 3.2.0 only

  • +
  • items () +
    + +
    returns (QStringList)
    In versions KDE 3.2.0 and above only

  • +
  • menuAccelsEnabled () +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above, but less than KDE 3.5.3

  • +
  • menuAccelsEnabled () +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only

  • +
  • plug (a0, a1 = -1) +
    + +
    returns (int)
    In versions less than KDE 3.2.0 only
    + + +
    ArgumentTypeDefault
    a0QWidget
    a1int-1
    +

  • +
  • plug (widget, index = -1) +
    + +
    returns (int)
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    widgetQWidget
    indexint-1
    +

  • +
  • popupMenu () +
    + +
    returns (QPopupMenu)
    In versions less than KDE 3.2.0 only

  • +
  • popupMenu () +
    + +
    returns (QPopupMenu)
    In versions KDE 3.2.0 and above only

  • +
  • removeAmpersandsInCombo () +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above, but less than KDE 3.5.3

  • +
  • removeAmpersandsInCombo () +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only

  • +
  • setComboWidth (a0) +
    + +
    returns nothing
    In versions less than KDE 3.2.0 only
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • setComboWidth (width) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    widthint
    +

  • +
  • setCurrentItem (a0) +
    + +
    returns nothing
    In versions less than KDE 3.2.0 only
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • setCurrentItem (index) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    indexint
    +

  • +
  • setEditable (a0) +
    + +
    returns nothing
    In versions less than KDE 3.2.0 only
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • setEditable (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • setItems (a0) +
    + +
    returns nothing
    In versions less than KDE 3.2.0 only
    + +
    ArgumentTypeDefault
    a0QStringList
    +

  • +
  • setItems (lst) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    lstQStringList
    +

  • +
  • setMaxComboViewCount (n) +
    + +
    returns nothing
    In versions KDE 3.5.0 and above only
    + +
    ArgumentTypeDefault
    nint
    +

  • +
  • setMenuAccelsEnabled (a0) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above, but less than KDE 3.5.3
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • setMenuAccelsEnabled (b) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    bbool
    +

  • +
  • setRemoveAmpersandsInCombo (a0) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above, but less than KDE 3.5.3
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • setRemoveAmpersandsInCombo (b) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    bbool
    +

  • +
  • slotActivated (a0) +
    + +
    returns nothing
    In versions less than KDE 3.2.0 only
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • slotActivated (a0) +
    + +
    returns nothing
    In versions less than KDE 3.2.0 only
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • slotActivated () +
    + +
    returns nothing
    In versions less than KDE 3.2.0 only

  • +
  • slotActivated (id) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    idint
    +

  • +
  • slotActivated (text) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    textQString
    +

  • +
  • slotActivated () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • updateClear (a0) +
    + +
    returns nothing
    In versions less than KDE 3.2.0 only
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • updateClear (id) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    idint
    +

  • +
  • updateComboWidth (a0) +
    + +
    returns nothing
    In versions less than KDE 3.2.0 only
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • updateComboWidth (id) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    idint
    +

  • +
  • updateCurrentItem (a0) +
    + +
    returns nothing
    In versions less than KDE 3.2.0 only
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • updateCurrentItem (id) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    idint
    +

  • +
  • updateItems (a0) +
    + +
    returns nothing
    In versions less than KDE 3.2.0 only
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • updateItems (id) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    idint
    +

  • +
+ + + diff --git a/doc/classref/kdeui/KSelector.html b/doc/classref/kdeui/KSelector.html new file mode 100644 index 0000000..8042a14 --- /dev/null +++ b/doc/classref/kdeui/KSelector.html @@ -0,0 +1,146 @@ + + + + + class KSelector + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KSelector


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKSelector
InheritsQWidget, QRangeControl
+

methods

    +
  • KSelector (parent = 0, name = 0) +
    +
    returns a KSelector instance
    + + +
    ArgumentTypeDefault
    parentQWidget0
    namechar0
    +

  • +
  • KSelector (o, parent = 0, name = 0) +
    +
    returns a KSelector instance
    + + + +
    ArgumentTypeDefault
    oOrientation
    parentQWidget0
    namechar0
    +

  • +
  • contentsRect () +
    +
    returns (QRect)

  • +
  • drawArrow (painter, show, pos) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    painterQPainter
    showbool
    posQPoint
    +

  • +
  • drawContents (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QPainter
    +

  • +
  • indent () +
    +
    returns (bool)

  • +
  • maxValue () +
    +
    returns (int)

  • +
  • minValue () +
    +
    returns (int)

  • +
  • mouseMoveEvent (e) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    eQMouseEvent
    +

  • +
  • mousePressEvent (e) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    eQMouseEvent
    +

  • +
  • orientation () +
    +
    returns (Orientation)

  • +
  • paintEvent (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QPaintEvent
    +

  • +
  • setIndent (i) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    ibool
    +

  • +
  • setMaxValue (value) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    valueint
    +

  • +
  • setMinValue (value) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    valueint
    +

  • +
  • setValue (value) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    valueint
    +

  • +
  • value () +
    +
    returns (int)

  • +
  • valueChange () +
    +
    returns nothing

  • +
  • valueChanged (value) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    valueint
    +

  • +
  • wheelEvent (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0QWheelEvent
    +

  • +
+ + + diff --git a/doc/classref/kdeui/KSeparator.html b/doc/classref/kdeui/KSeparator.html new file mode 100644 index 0000000..54cee76 --- /dev/null +++ b/doc/classref/kdeui/KSeparator.html @@ -0,0 +1,76 @@ + + + + + class KSeparator + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KSeparator


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKSeparator
InheritsQFrame
+

methods

    +
  • KSeparator (parent = 0, name = 0, f = 0) +
    +
    returns a KSeparator instance
    + + + +
    ArgumentTypeDefault
    parentQWidget0
    namechar0
    fWFlags0
    +

  • +
  • KSeparator (orientation, parent = 0, name = 0, f = 0) +
    +
    returns a KSeparator instance
    + + + + +
    ArgumentTypeDefault
    orientationint
    parentQWidget0
    namechar0
    fWFlags0
    +

  • +
  • drawFrame (p) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    pQPainter
    +

  • +
  • orientation () +
    +
    returns (int)

  • +
  • setOrientation (orient) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    orientint
    +

  • +
  • sizeHint () +
    +
    returns (QSize)

  • +
+ + + diff --git a/doc/classref/kdeui/KSharedPixmap.html b/doc/classref/kdeui/KSharedPixmap.html new file mode 100644 index 0000000..de2b238 --- /dev/null +++ b/doc/classref/kdeui/KSharedPixmap.html @@ -0,0 +1,82 @@ + + + + + class KSharedPixmap + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KSharedPixmap


+
+ + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKSharedPixmap
InheritsQWidget, KPixmap
+

methods

    +
  • KSharedPixmap () +
    +
    returns a KSharedPixmap instance

  • +
  • done (success) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    successbool
    +

  • +
  • isAvailable (name) +
    + +
    returns (bool)
    In versions KDE 3.1.2 and above only
    + +
    ArgumentTypeDefault
    nameQString
    +

  • +
  • isAvailable (a0) +
    + +
    returns (bool)
    In versions less than KDE 3.1.2 only
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • loadFromShared (name, rect = QRect ()) +
    + +
    returns (bool)
    In versions KDE 3.1.2 and above only
    + + +
    ArgumentTypeDefault
    nameQString
    rectQRectQRect ()
    +

  • +
  • loadFromShared (a0, a1 = QRect ()) +
    + +
    returns (bool)
    In versions less than KDE 3.1.2 only
    + + +
    ArgumentTypeDefault
    a0QString
    a1QRectQRect ()
    +

  • +
  • x11Event (a0) +
    Not Implemented
    +

  • +
+ + + diff --git a/doc/classref/kdeui/KShortcutDialog.html b/doc/classref/kdeui/KShortcutDialog.html new file mode 100644 index 0000000..af5d695 --- /dev/null +++ b/doc/classref/kdeui/KShortcutDialog.html @@ -0,0 +1,93 @@ + + + + + class KShortcutDialog + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KShortcutDialog


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKShortcutDialog
InheritsKDialogBase
+

methods

    +
  • KShortcutDialog (shortcut, bQtShortcut, parent = 0, name = 0) +
    + +
    returns a KShortcutDialog instance
    In versions KDE 3.4.0 and above only
    + + + + +
    ArgumentTypeDefault
    shortcutKShortcut
    bQtShortcutbool
    parentQWidget0
    namechar0
    +

  • +
  • setShortcut (shortcut) +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only
    + +
    ArgumentTypeDefault
    shortcutKShortcut
    +

  • +
  • shortcut () +
    + +
    returns (KShortcut)
    In versions KDE 3.4.0 and above only

  • +
  • slotClearAlternate () +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only

  • +
  • slotClearPrimary () +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only

  • +
  • slotClearShortcut () +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only

  • +
  • slotDetails () +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only

  • +
  • slotMultiKeyMode (bOn) +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only
    + +
    ArgumentTypeDefault
    bOnbool
    +

  • +
  • slotSelectAlternate () +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only

  • +
  • slotSelectPrimary () +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only

  • +
+ + + diff --git a/doc/classref/kdeui/KSplashScreen.html b/doc/classref/kdeui/KSplashScreen.html new file mode 100644 index 0000000..325c544 --- /dev/null +++ b/doc/classref/kdeui/KSplashScreen.html @@ -0,0 +1,49 @@ + + + + + class KSplashScreen + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KSplashScreen


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKSplashScreen
InheritsQSplashScreen
+

methods

    +
  • KSplashScreen (pixmap, f = 0) +
    + +
    returns a KSplashScreen instance
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    pixmapQPixmap
    fWFlags0
    +

  • +
+ + + diff --git a/doc/classref/kdeui/KSqueezedTextLabel.html b/doc/classref/kdeui/KSqueezedTextLabel.html new file mode 100644 index 0000000..ab23ae2 --- /dev/null +++ b/doc/classref/kdeui/KSqueezedTextLabel.html @@ -0,0 +1,85 @@ + + + + + class KSqueezedTextLabel + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KSqueezedTextLabel


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKSqueezedTextLabel
InheritsQLabel
+

methods

    +
  • KSqueezedTextLabel (parent, name = 0) +
    +
    returns a KSqueezedTextLabel instance
    + + +
    ArgumentTypeDefault
    parentQWidget
    namechar0
    +

  • +
  • KSqueezedTextLabel (text, parent, name = 0) +
    +
    returns a KSqueezedTextLabel instance
    + + + +
    ArgumentTypeDefault
    textQString
    parentQWidget
    namechar0
    +

  • +
  • minimumSizeHint () +
    +
    returns (QSize)

  • +
  • resizeEvent (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QResizeEvent
    +

  • +
  • setAlignment (a0) +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • setText (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • sizeHint () +
    + +
    returns (QSize)
    In versions KDE 3.3.0 and above only

  • +
  • squeezeTextToLabel () +
    +
    returns nothing

  • +
+ + + diff --git a/doc/classref/kdeui/KStatusBar.html b/doc/classref/kdeui/KStatusBar.html new file mode 100644 index 0000000..b3494c1 --- /dev/null +++ b/doc/classref/kdeui/KStatusBar.html @@ -0,0 +1,114 @@ + + + + + class KStatusBar + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KStatusBar


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKStatusBar
InheritsQStatusBar
+

enums

    +
  • BarStatus = {Toggle, Show, Hide +}
+

methods

    +
  • KStatusBar (parent = 0, name = 0) +
    +
    returns a KStatusBar instance
    + + +
    ArgumentTypeDefault
    parentQWidget0
    namechar0
    +

  • +
  • changeItem (text, id) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    textQString
    idint
    +

  • +
  • hasItem (id) +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    idint
    +

  • +
  • insertFixedItem (text, id, permanent = 0) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    textQString
    idint
    permanentbool0
    +

  • +
  • insertItem (text, id, stretch = 0, permanent = 0) +
    +
    returns nothing
    + + + + +
    ArgumentTypeDefault
    textQString
    idint
    stretchint0
    permanentbool0
    +

  • +
  • pressed (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • released (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • removeItem (id) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    idint
    +

  • +
  • setItemAlignment (id, align) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    idint
    alignint
    +

  • +
  • setItemFixed (id, width = -1) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    idint
    widthint-1
    +

  • +
+ + + diff --git a/doc/classref/kdeui/KStatusBarLabel.html b/doc/classref/kdeui/KStatusBarLabel.html new file mode 100644 index 0000000..da425f3 --- /dev/null +++ b/doc/classref/kdeui/KStatusBarLabel.html @@ -0,0 +1,74 @@ + + + + + class KStatusBarLabel + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KStatusBarLabel


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKStatusBarLabel
InheritsQLabel
+

methods

    +
  • KStatusBarLabel (text, _id, parent = 0, name = 0) +
    +
    returns a KStatusBarLabel instance
    + + + + +
    ArgumentTypeDefault
    textQString
    _idint
    parentKStatusBar0
    namechar0
    +

  • +
  • itemPressed (id) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    idint
    +

  • +
  • itemReleased (id) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    idint
    +

  • +
  • mousePressEvent (_event) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    _eventQMouseEvent
    +

  • +
  • mouseReleaseEvent (_event) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    _eventQMouseEvent
    +

  • +
+ + + diff --git a/doc/classref/kdeui/KStdAction.html b/doc/classref/kdeui/KStdAction.html new file mode 100644 index 0000000..ade4b02 --- /dev/null +++ b/doc/classref/kdeui/KStdAction.html @@ -0,0 +1,579 @@ + + + + + class KStdAction + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KStdAction


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKStdAction
Inherits
+

enums

    +
  • StdAction = {ActionNone, New, Open, OpenRecent, Save, SaveAs, Revert, Close, Print, PrintPreview, Mail, Quit, Undo, Redo, Cut, Copy, Paste, SelectAll, Deselect, Find, FindNext, FindPrev, Replace, ActualSize, FitToPage, FitToWidth, FitToHeight, ZoomIn, ZoomOut, Zoom, Redisplay, Up, Back, Forward, Home, Prior, Next, Goto, GotoPage, GotoLine, FirstPage, LastPage, AddBookmark, EditBookmarks, Spelling, ShowMenubar, ShowToolbar, ShowStatusbar, SaveOptions, KeyBindings, Preferences, ConfigureToolbars, Help, HelpContents, WhatsThis, ReportBug, AboutApp, AboutKDE +}
  • StdAction = {ActionNone, New, Open, OpenRecent, Save, SaveAs, Revert, Close, Print, PrintPreview, Mail, Quit, Undo, Redo, Cut, Copy, Paste, SelectAll, Deselect, Find, FindNext, FindPrev, Replace, ActualSize, FitToPage, FitToWidth, FitToHeight, ZoomIn, ZoomOut, Zoom, Redisplay, Up, Back, Forward, Home, Prior, Next, Goto, GotoPage, GotoLine, FirstPage, LastPage, AddBookmark, EditBookmarks, Spelling, ShowMenubar, ShowToolbar, ShowStatusbar, SaveOptions, KeyBindings, Preferences, ConfigureToolbars, Help, HelpContents, WhatsThis, ReportBug, AboutApp, AboutKDE +}
  • StdAction = {ActionNone, New, Open, OpenRecent, Save, SaveAs, Revert, Close, Print, PrintPreview, Mail, Quit, Undo, Redo, Cut, Copy, Paste, SelectAll, Deselect, Find, FindNext, FindPrev, Replace, ActualSize, FitToPage, FitToWidth, FitToHeight, ZoomIn, ZoomOut, Zoom, Redisplay, Up, Back, Forward, Home, Prior, Next, Goto, GotoPage, GotoLine, FirstPage, LastPage, AddBookmark, EditBookmarks, Spelling, ShowMenubar, ShowToolbar, ShowStatusbar, SaveOptions, KeyBindings, Preferences, ConfigureToolbars, Help, HelpContents, WhatsThis, ReportBug, AboutApp, AboutKDE +}
+

methods

    +
  • aboutApp (slot, parent, name = 0) +
    +
    returns (KAction)
    + + + +
    ArgumentTypeDefault
    slotSLOT (Python callable)
    parentKActionCollection
    namechar0
    +

  • +
  • aboutKDE (slot, parent, name = 0) +
    +
    returns (KAction)
    + + + +
    ArgumentTypeDefault
    slotSLOT (Python callable)
    parentKActionCollection
    namechar0
    +

  • +
  • actualSize (slot, parent, name = 0) +
    +
    returns (KAction)
    + + + +
    ArgumentTypeDefault
    slotSLOT (Python callable)
    parentKActionCollection
    namechar0
    +

  • +
  • addBookmark (slot, parent, name = 0) +
    +
    returns (KAction)
    + + + +
    ArgumentTypeDefault
    slotSLOT (Python callable)
    parentKActionCollection
    namechar0
    +

  • +
  • back (slot, parent, name = 0) +
    +
    returns (KAction)
    + + + +
    ArgumentTypeDefault
    slotSLOT (Python callable)
    parentKActionCollection
    namechar0
    +

  • +
  • clear (slot, parent, name = 0) +
    + +
    returns (KAction)
    In versions KDE 3.2.0 and above only
    + + + +
    ArgumentTypeDefault
    slotSLOT (Python callable)
    parentKActionCollection
    namechar0
    +

  • +
  • close (slot, parent, name = 0) +
    +
    returns (KAction)
    + + + +
    ArgumentTypeDefault
    slotSLOT (Python callable)
    parentKActionCollection
    namechar0
    +

  • +
  • configureNotifications (slot, parent, name = 0) +
    + +
    returns (KAction)
    In versions KDE 3.1.0 and above only
    + + + +
    ArgumentTypeDefault
    slotSLOT (Python callable)
    parentKActionCollection
    namechar0
    +

  • +
  • configureToolbars (slot, parent, name = 0) +
    +
    returns (KAction)
    + + + +
    ArgumentTypeDefault
    slotSLOT (Python callable)
    parentKActionCollection
    namechar0
    +

  • +
  • copy (slot, parent, name = 0) +
    +
    returns (KAction)
    + + + +
    ArgumentTypeDefault
    slotSLOT (Python callable)
    parentKActionCollection
    namechar0
    +

  • +
  • create (id, name, slot, parent) +
    +
    returns (KAction)
    + + + + +
    ArgumentTypeDefault
    idKStdAction.StdAction
    namechar
    slotSLOT (Python callable)
    parentKActionCollection
    +

  • +
  • cut (slot, parent, name = 0) +
    +
    returns (KAction)
    + + + +
    ArgumentTypeDefault
    slotSLOT (Python callable)
    parentKActionCollection
    namechar0
    +

  • +
  • deselect (slot, parent, name = 0) +
    +
    returns (KAction)
    + + + +
    ArgumentTypeDefault
    slotSLOT (Python callable)
    parentKActionCollection
    namechar0
    +

  • +
  • editBookmarks (slot, parent, name = 0) +
    +
    returns (KAction)
    + + + +
    ArgumentTypeDefault
    slotSLOT (Python callable)
    parentKActionCollection
    namechar0
    +

  • +
  • find (slot, parent, name = 0) +
    +
    returns (KAction)
    + + + +
    ArgumentTypeDefault
    slotSLOT (Python callable)
    parentKActionCollection
    namechar0
    +

  • +
  • findNext (slot, parent, name = 0) +
    +
    returns (KAction)
    + + + +
    ArgumentTypeDefault
    slotSLOT (Python callable)
    parentKActionCollection
    namechar0
    +

  • +
  • findPrev (slot, parent, name = 0) +
    +
    returns (KAction)
    + + + +
    ArgumentTypeDefault
    slotSLOT (Python callable)
    parentKActionCollection
    namechar0
    +

  • +
  • firstPage (slot, parent, name = 0) +
    +
    returns (KAction)
    + + + +
    ArgumentTypeDefault
    slotSLOT (Python callable)
    parentKActionCollection
    namechar0
    +

  • +
  • fitToHeight (slot, parent, name = 0) +
    +
    returns (KAction)
    + + + +
    ArgumentTypeDefault
    slotSLOT (Python callable)
    parentKActionCollection
    namechar0
    +

  • +
  • fitToPage (slot, parent, name = 0) +
    +
    returns (KAction)
    + + + +
    ArgumentTypeDefault
    slotSLOT (Python callable)
    parentKActionCollection
    namechar0
    +

  • +
  • fitToWidth (slot, parent, name = 0) +
    +
    returns (KAction)
    + + + +
    ArgumentTypeDefault
    slotSLOT (Python callable)
    parentKActionCollection
    namechar0
    +

  • +
  • forward (slot, parent, name = 0) +
    +
    returns (KAction)
    + + + +
    ArgumentTypeDefault
    slotSLOT (Python callable)
    parentKActionCollection
    namechar0
    +

  • +
  • fullScreen (slot, parent, window, name = 0) +
    + +
    returns (KToggleFullScreenAction)
    In versions KDE 3.2.0 and above only
    + + + + +
    ArgumentTypeDefault
    slotSLOT (Python callable)
    parentKActionCollection
    windowQWidget
    namechar0
    +

  • +
  • goTo (slot, parent, name = 0) +
    +
    returns (KAction)
    + + + +
    ArgumentTypeDefault
    slotSLOT (Python callable)
    parentKActionCollection
    namechar0
    +

  • +
  • gotoLine (slot, parent, name = 0) +
    +
    returns (KAction)
    + + + +
    ArgumentTypeDefault
    slotSLOT (Python callable)
    parentKActionCollection
    namechar0
    +

  • +
  • gotoPage (slot, parent, name = 0) +
    +
    returns (KAction)
    + + + +
    ArgumentTypeDefault
    slotSLOT (Python callable)
    parentKActionCollection
    namechar0
    +

  • +
  • help (slot, parent, name = 0) +
    +
    returns (KAction)
    + + + +
    ArgumentTypeDefault
    slotSLOT (Python callable)
    parentKActionCollection
    namechar0
    +

  • +
  • helpContents (slot, parent, name = 0) +
    +
    returns (KAction)
    + + + +
    ArgumentTypeDefault
    slotSLOT (Python callable)
    parentKActionCollection
    namechar0
    +

  • +
  • home (slot, parent, name = 0) +
    +
    returns (KAction)
    + + + +
    ArgumentTypeDefault
    slotSLOT (Python callable)
    parentKActionCollection
    namechar0
    +

  • +
  • keyBindings (slot, parent, name = 0) +
    +
    returns (KAction)
    + + + +
    ArgumentTypeDefault
    slotSLOT (Python callable)
    parentKActionCollection
    namechar0
    +

  • +
  • lastPage (slot, parent, name = 0) +
    +
    returns (KAction)
    + + + +
    ArgumentTypeDefault
    slotSLOT (Python callable)
    parentKActionCollection
    namechar0
    +

  • +
  • mail (slot, parent, name = 0) +
    +
    returns (KAction)
    + + + +
    ArgumentTypeDefault
    slotSLOT (Python callable)
    parentKActionCollection
    namechar0
    +

  • +
  • name (id) +
    +
    returns (char)
    + +
    ArgumentTypeDefault
    idKStdAction.StdAction
    +

  • +
  • next (slot, parent, name = 0) +
    +
    returns (KAction)
    + + + +
    ArgumentTypeDefault
    slotSLOT (Python callable)
    parentKActionCollection
    namechar0
    +

  • +
  • open (slot, parent, name = 0) +
    +
    returns (KAction)
    + + + +
    ArgumentTypeDefault
    slotSLOT (Python callable)
    parentKActionCollection
    namechar0
    +

  • +
  • openNew (slot, parent, name = 0) +
    +
    returns (KAction)
    + + + +
    ArgumentTypeDefault
    slotSLOT (Python callable)
    parentKActionCollection
    namechar0
    +

  • +
  • openRecent (slot, parent, name = 0) +
    +
    returns (KRecentFilesAction)
    + + + +
    ArgumentTypeDefault
    slotSLOT (Python callable)
    parentKActionCollection
    namechar0
    +

  • +
  • paste (slot, parent, name = 0) +
    +
    returns (KAction)
    + + + +
    ArgumentTypeDefault
    slotSLOT (Python callable)
    parentKActionCollection
    namechar0
    +

  • +
  • pasteText (slot, parent, name = 0) +
    + +
    returns (KAction)
    In versions KDE 3.2.0 and above only
    + + + +
    ArgumentTypeDefault
    slotSLOT (Python callable)
    parentKActionCollection
    namechar0
    +

  • +
  • preferences (slot, parent, name = 0) +
    +
    returns (KAction)
    + + + +
    ArgumentTypeDefault
    slotSLOT (Python callable)
    parentKActionCollection
    namechar0
    +

  • +
  • printPreview (slot, parent, name = 0) +
    +
    returns (KAction)
    + + + +
    ArgumentTypeDefault
    slotSLOT (Python callable)
    parentKActionCollection
    namechar0
    +

  • +
  • print_ (slot, parent, name = 0) +
    + +
    returns (KAction)
    Renamed: was ' print +' in C++
    + + + +
    ArgumentTypeDefault
    slotSLOT (Python callable)
    parentKActionCollection
    namechar0
    +

  • +
  • prior (slot, parent, name = 0) +
    +
    returns (KAction)
    + + + +
    ArgumentTypeDefault
    slotSLOT (Python callable)
    parentKActionCollection
    namechar0
    +

  • +
  • quit (slot, parent, name = 0) +
    +
    returns (KAction)
    + + + +
    ArgumentTypeDefault
    slotSLOT (Python callable)
    parentKActionCollection
    namechar0
    +

  • +
  • redisplay (slot, parent, name = 0) +
    +
    returns (KAction)
    + + + +
    ArgumentTypeDefault
    slotSLOT (Python callable)
    parentKActionCollection
    namechar0
    +

  • +
  • redo (slot, parent, name = 0) +
    +
    returns (KAction)
    + + + +
    ArgumentTypeDefault
    slotSLOT (Python callable)
    parentKActionCollection
    namechar0
    +

  • +
  • replace (slot, parent, name = 0) +
    +
    returns (KAction)
    + + + +
    ArgumentTypeDefault
    slotSLOT (Python callable)
    parentKActionCollection
    namechar0
    +

  • +
  • reportBug (slot, parent, name = 0) +
    +
    returns (KAction)
    + + + +
    ArgumentTypeDefault
    slotSLOT (Python callable)
    parentKActionCollection
    namechar0
    +

  • +
  • revert (slot, parent, name = 0) +
    +
    returns (KAction)
    + + + +
    ArgumentTypeDefault
    slotSLOT (Python callable)
    parentKActionCollection
    namechar0
    +

  • +
  • save (slot, parent, name = 0) +
    +
    returns (KAction)
    + + + +
    ArgumentTypeDefault
    slotSLOT (Python callable)
    parentKActionCollection
    namechar0
    +

  • +
  • saveAs (slot, parent, name = 0) +
    +
    returns (KAction)
    + + + +
    ArgumentTypeDefault
    slotSLOT (Python callable)
    parentKActionCollection
    namechar0
    +

  • +
  • saveOptions (slot, parent, name = 0) +
    +
    returns (KAction)
    + + + +
    ArgumentTypeDefault
    slotSLOT (Python callable)
    parentKActionCollection
    namechar0
    +

  • +
  • selectAll (slot, parent, name = 0) +
    +
    returns (KAction)
    + + + +
    ArgumentTypeDefault
    slotSLOT (Python callable)
    parentKActionCollection
    namechar0
    +

  • +
  • showMenubar (slot, parent, name = 0) +
    +
    returns (KToggleAction)
    + + + +
    ArgumentTypeDefault
    slotSLOT (Python callable)
    parentKActionCollection
    namechar0
    +

  • +
  • showStatusbar (slot, parent, name = 0) +
    +
    returns (KToggleAction)
    + + + +
    ArgumentTypeDefault
    slotSLOT (Python callable)
    parentKActionCollection
    namechar0
    +

  • +
  • showToolbar (toolBarName, parent, name = 0) +
    + +
    returns (KToggleToolBarAction)
    In versions KDE 3.1.0 and above only
    + + + +
    ArgumentTypeDefault
    toolBarNamechar
    parentKActionCollection
    namechar0
    +

  • +
  • showToolbar (toolBarName, parent, name = 0) +
    + +
    returns (KToggleToolBarAction)
    In versions KDE 3.1.0 and above only
    + + + +
    ArgumentTypeDefault
    toolBarNamechar
    parentKActionCollection
    namechar0
    +

  • +
  • spelling (slot, parent, name = 0) +
    +
    returns (KAction)
    + + + +
    ArgumentTypeDefault
    slotSLOT (Python callable)
    parentKActionCollection
    namechar0
    +

  • +
  • stdNames () +
    + +
    returns (QStringList)
    In versions KDE 3.1.0 and above only

  • +
  • tipOfDay (slot, parent, name = 0) +
    + +
    returns (KAction)
    In versions KDE 3.1.0 and above only
    + + + +
    ArgumentTypeDefault
    slotSLOT (Python callable)
    parentKActionCollection
    namechar0
    +

  • +
  • undo (slot, parent, name = 0) +
    +
    returns (KAction)
    + + + +
    ArgumentTypeDefault
    slotSLOT (Python callable)
    parentKActionCollection
    namechar0
    +

  • +
  • up (slot, parent, name = 0) +
    +
    returns (KAction)
    + + + +
    ArgumentTypeDefault
    slotSLOT (Python callable)
    parentKActionCollection
    namechar0
    +

  • +
  • whatsThis (slot, parent, name = 0) +
    +
    returns (KAction)
    + + + +
    ArgumentTypeDefault
    slotSLOT (Python callable)
    parentKActionCollection
    namechar0
    +

  • +
  • zoom (slot, parent, name = 0) +
    +
    returns (KAction)
    + + + +
    ArgumentTypeDefault
    slotSLOT (Python callable)
    parentKActionCollection
    namechar0
    +

  • +
  • zoomIn (slot, parent, name = 0) +
    +
    returns (KAction)
    + + + +
    ArgumentTypeDefault
    slotSLOT (Python callable)
    parentKActionCollection
    namechar0
    +

  • +
  • zoomOut (slot, parent, name = 0) +
    +
    returns (KAction)
    + + + +
    ArgumentTypeDefault
    slotSLOT (Python callable)
    parentKActionCollection
    namechar0
    +

  • +
+ + + diff --git a/doc/classref/kdeui/KStdGuiItem.html b/doc/classref/kdeui/KStdGuiItem.html new file mode 100644 index 0000000..1a1635d --- /dev/null +++ b/doc/classref/kdeui/KStdGuiItem.html @@ -0,0 +1,213 @@ + + + + + class KStdGuiItem + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KStdGuiItem


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKStdGuiItem
Inherits
+

enums

    +
  • BidiMode = {UseRTL, IgnoreRTL +}
  • StdItem = {Ok, Cancel, Yes, No, Discard, Save, DontSave, SaveAs, Apply, Clear, Help, Defaults, Close, Back, Forward, Print, Continue, Open, Quit, AdminMode, Reset, Delete, Insert, Configure, Find, Stop, Add, Remove, Test, Properties, Overwrite +}
  • StdItem = {Ok, Cancel, Yes, No, Discard, Save, DontSave, SaveAs, Apply, Clear, Help, Defaults, Close, Back, Forward, Print, Continue, Open, Quit, AdminMode, Reset, Delete, Insert, Configure, Find, Stop, Add, Remove, Test, Properties +}
  • StdItem = {Ok, Cancel, Yes, No, Discard, Save, DontSave, SaveAs, Apply, Clear, Help, Defaults, Close, Back, Forward, Print, Continue, Open, Quit, AdminMode, Reset, Delete, Insert +}
  • StdItem = {Ok, Cancel, Yes, No, Discard, Save, DontSave, SaveAs, Apply, Clear, Help, Defaults, Close, Back, Forward, Print, Continue, Open, Quit +}
  • StdItem = {Ok, Cancel, Yes, No, Discard, Save, DontSave, SaveAs, Apply, Clear, Help, Defaults, Close, Back, Forward, Print, Continue +}
+

methods

    +
  • add () +
    + + +
    returns (KGuiItem)
    In versions KDE 3.4.0 and above only
    static

  • +
  • adminMode () +
    + + +
    returns (KGuiItem)
    In versions KDE 3.3.0 and above only
    static

  • +
  • apply () +
    + +
    returns (KGuiItem)
    static

  • +
  • back (useBidi = IgnoreRTL) +
    + +
    returns (KGuiItem)
    static
    + +
    ArgumentTypeDefault
    useBidiKStdGuiItem.BidiModeIgnoreRTL
    +

  • +
  • backAndForward () +
    + +
    returns (QPair)
    static

  • +
  • cancel () +
    + +
    returns (KGuiItem)
    static

  • +
  • clear () +
    + +
    returns (KGuiItem)
    static

  • +
  • close () +
    + +
    returns (KGuiItem)
    static

  • +
  • configure () +
    + + +
    returns (KGuiItem)
    In versions KDE 3.4.0 and above only
    static

  • +
  • cont () +
    + +
    returns (KGuiItem)
    static

  • +
  • defaults () +
    + +
    returns (KGuiItem)
    static

  • +
  • del_ () +
    + + + +
    returns (KGuiItem)
    Renamed: was ' del' in C++
    In versions KDE 3.3.0 and above only
    static

  • +
  • discard () +
    + +
    returns (KGuiItem)
    static

  • +
  • dontSave () +
    + +
    returns (KGuiItem)
    static

  • +
  • find () +
    + + +
    returns (KGuiItem)
    In versions KDE 3.4.0 and above only
    static

  • +
  • forward (useBidi = IgnoreRTL) +
    + +
    returns (KGuiItem)
    static
    + +
    ArgumentTypeDefault
    useBidiKStdGuiItem.BidiModeIgnoreRTL
    +

  • +
  • guiItem (ui_enum) +
    + +
    returns (KGuiItem)
    static
    + +
    ArgumentTypeDefault
    ui_enumKStdGuiItem.StdItem
    +

  • +
  • help () +
    + +
    returns (KGuiItem)
    static

  • +
  • insert () +
    + + +
    returns (KGuiItem)
    In versions KDE 3.3.0 and above only
    static

  • +
  • no () +
    + +
    returns (KGuiItem)
    static

  • +
  • ok () +
    + +
    returns (KGuiItem)
    static

  • +
  • open () +
    + + +
    returns (KGuiItem)
    In versions KDE 3.2.0 and above only
    static

  • +
  • overwrite () +
    + + +
    returns (KGuiItem)
    In versions KDE 3.5.0 and above only
    static

  • +
  • print_ () +
    + + +
    returns (KGuiItem)
    Renamed: was ' print' in C++
    static

  • +
  • properties () +
    + + +
    returns (KGuiItem)
    In versions KDE 3.4.0 and above only
    static

  • +
  • quit () +
    + + +
    returns (KGuiItem)
    In versions KDE 3.2.0 and above only
    static

  • +
  • remove () +
    + + +
    returns (KGuiItem)
    In versions KDE 3.4.0 and above only
    static

  • +
  • reset () +
    + + +
    returns (KGuiItem)
    In versions KDE 3.3.0 and above only
    static

  • +
  • save () +
    + +
    returns (KGuiItem)
    static

  • +
  • saveAs () +
    + +
    returns (KGuiItem)
    static

  • +
  • stdItem (ui_enum) +
    + +
    returns (QString)
    static
    + +
    ArgumentTypeDefault
    ui_enumKStdGuiItem.StdItem
    +

  • +
  • stop () +
    + + +
    returns (KGuiItem)
    In versions KDE 3.4.0 and above only
    static

  • +
  • test () +
    + + +
    returns (KGuiItem)
    In versions KDE 3.4.0 and above only
    static

  • +
  • yes () +
    + +
    returns (KGuiItem)
    static

  • +
+ + + diff --git a/doc/classref/kdeui/KStringListValidator.html b/doc/classref/kdeui/KStringListValidator.html new file mode 100644 index 0000000..36eadc9 --- /dev/null +++ b/doc/classref/kdeui/KStringListValidator.html @@ -0,0 +1,90 @@ + + + + + class KStringListValidator + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KStringListValidator


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKStringListValidator
InheritsQValidator
+

methods

    +
  • KStringListValidator (list = QStringList (), rejecting = 1, fixupEnabled = 0, parent = 0, name = 0) +
    +
    returns a KStringListValidator instance
    + + + + + +
    ArgumentTypeDefault
    listQStringListQStringList ()
    rejectingbool1
    fixupEnabledbool0
    parentQObject0
    namechar0
    +

  • +
  • fixup (input) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    inputQString
    +

  • +
  • isFixupEnabled () +
    +
    returns (bool)

  • +
  • isRejecting () +
    +
    returns (bool)

  • +
  • setFixupEnabled (fixupEnabled) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    fixupEnabledbool
    +

  • +
  • setRejecting (rejecting) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    rejectingbool
    +

  • +
  • setStringList (list) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    listQStringList
    +

  • +
  • stringList () +
    +
    returns (QStringList)

  • +
  • validate (input) +
    +
    returns (State) pos (int)
    + +
    ArgumentTypeDefault
    inputQString
    +

  • +
+ + + diff --git a/doc/classref/kdeui/KSystemTray.html b/doc/classref/kdeui/KSystemTray.html new file mode 100644 index 0000000..f035e23 --- /dev/null +++ b/doc/classref/kdeui/KSystemTray.html @@ -0,0 +1,129 @@ + + + + + class KSystemTray + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KSystemTray


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKSystemTray
InheritsQLabel
+

methods

    +
  • KSystemTray (parent = 0, name = 0) +
    +
    returns a KSystemTray instance
    + + +
    ArgumentTypeDefault
    parentQWidget0
    namechar0
    +

  • +
  • actionCollection () +
    + +
    returns (KActionCollection)
    In versions KDE 3.2.0 and above only

  • +
  • contextMenu () +
    + +
    returns (KPopupMenu)
    In versions KDE 3.2.0 and above only

  • +
  • contextMenu () +
    + +
    returns (KPopupMenu)
    In versions less than KDE 3.2.0 only

  • +
  • contextMenuAboutToShow (menu) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    menuKPopupMenu
    +

  • +
  • enterEvent (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QEvent
    +

  • +
  • loadIcon (icon, instance = KGlobal .instance ()) +
    + + +
    returns (QPixmap)
    In versions KDE 3.2.0 and above only
    static
    + + +
    ArgumentTypeDefault
    iconQString
    instanceKInstanceKGlobal .instance ()
    +

  • +
  • mousePressEvent (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QMouseEvent
    +

  • +
  • mouseReleaseEvent (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QMouseEvent
    +

  • +
  • quitSelected () +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only

  • +
  • setActive () +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only

  • +
  • setCaption (title) +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only
    + +
    ArgumentTypeDefault
    titleQString
    +

  • +
  • setInactive () +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only

  • +
  • setPixmap (icon) +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only
    + +
    ArgumentTypeDefault
    iconQPixmap
    +

  • +
  • showEvent (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QShowEvent
    +

  • +
  • toggleActive () +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only

  • +
+ + + diff --git a/doc/classref/kdeui/KTabBar.html b/doc/classref/kdeui/KTabBar.html new file mode 100644 index 0000000..51f3532 --- /dev/null +++ b/doc/classref/kdeui/KTabBar.html @@ -0,0 +1,268 @@ + + + + + class KTabBar + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KTabBar


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKTabBar
InheritsQTabBar
+

methods

    +
  • KTabBar (parent = 0, name = 0) +
    + +
    returns a KTabBar instance
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    parentQWidget0
    namechar0
    +

  • +
  • activateDragSwitchTab () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • closeButtonClicked () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • closeRequest (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • contextMenu (a0, a1) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    a0int
    a1QPoint
    +

  • +
  • dragMoveEvent (e) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    eQDragMoveEvent
    +

  • +
  • dropEvent (e) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    eQDropEvent
    +

  • +
  • enableCloseButton () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • hoverCloseButton () +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only

  • +
  • hoverCloseButtonDelayed () +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only

  • +
  • initiateDrag (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • insertTab (a0, index = -1) +
    + +
    returns (int)
    In versions KDE 3.3.0 and above only
    + + +
    ArgumentTypeDefault
    a0QTab
    indexint-1
    +

  • +
  • isTabReorderingEnabled () +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only

  • +
  • mouseDoubleClick (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • mouseDoubleClickEvent (e) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    eQMouseEvent
    +

  • +
  • mouseMiddleClick (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • mouseMoveEvent (e) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    eQMouseEvent
    +

  • +
  • mousePressEvent (e) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    eQMouseEvent
    +

  • +
  • mouseReleaseEvent (e) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    eQMouseEvent
    +

  • +
  • moveTab (a0, a1) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    a0int
    a1int
    +

  • +
  • onLayoutChange () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • paintLabel (a0, a1, a2, a3) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + + + + +
    ArgumentTypeDefault
    a0QPainter
    a1QRect
    a2QTab
    a3bool
    +

  • +
  • receivedDropEvent (a0, a1) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    a0int
    a1QDropEvent
    +

  • +
  • removeTab (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0QTab
    +

  • +
  • setHoverCloseButton (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • setHoverCloseButtonDelayed (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • setTabCloseActivatePrevious (a0) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • setTabColor (a0, a1) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    a0int
    a1QColor
    +

  • +
  • setTabEnabled (a0, a1) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    a0int
    a1bool
    +

  • +
  • setTabReorderingEnabled (enable) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    enablebool
    +

  • +
  • tabCloseActivatePrevious () +
    + +
    returns (bool)
    In versions KDE 3.3.0 and above only

  • +
  • tabColor (a0) +
    + +
    returns (QColor)
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • testCanDecode (e) +
    Not Implemented
    +

  • +
  • wheelDelta (a0) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • wheelEvent (e) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    eQWheelEvent
    +

  • +
+ + + diff --git a/doc/classref/kdeui/KTabCtl.html b/doc/classref/kdeui/KTabCtl.html new file mode 100644 index 0000000..6caa3d8 --- /dev/null +++ b/doc/classref/kdeui/KTabCtl.html @@ -0,0 +1,128 @@ + + + + + class KTabCtl + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KTabCtl


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKTabCtl
InheritsQWidget
+

methods

    +
  • KTabCtl (parent = 0, name = 0) +
    +
    returns a KTabCtl instance
    + + +
    ArgumentTypeDefault
    parentQWidget0
    namechar0
    +

  • +
  • addTab (a0, a1) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    a0QWidget
    a1QString
    +

  • +
  • getChildRect () +
    +
    returns (QRect)

  • +
  • isTabEnabled (a0) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • paintEvent (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QPaintEvent
    +

  • +
  • resizeEvent (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QResizeEvent
    +

  • +
  • setBorder (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • setFont (font) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    fontQFont
    +

  • +
  • setShape (shape) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    shapeQTabBar.Shape
    +

  • +
  • setSizes () +
    +
    returns nothing

  • +
  • setTabEnabled (a0, a1) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    a0QString
    a1bool
    +

  • +
  • setTabFont (font) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    fontQFont
    +

  • +
  • show () +
    +
    returns nothing

  • +
  • showTab (i) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    iint
    +

  • +
  • sizeHint () +
    +
    returns (QSize)

  • +
  • tabSelected (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
+ + + diff --git a/doc/classref/kdeui/KTabWidget.html b/doc/classref/kdeui/KTabWidget.html new file mode 100644 index 0000000..29d5728 --- /dev/null +++ b/doc/classref/kdeui/KTabWidget.html @@ -0,0 +1,360 @@ + + + + + class KTabWidget + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KTabWidget


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKTabWidget
InheritsQTabWidget
+

methods

    +
  • KTabWidget (parent = 0, name = 0, f = 0) +
    + +
    returns a KTabWidget instance
    In versions KDE 3.2.0 and above only
    + + + +
    ArgumentTypeDefault
    parentQWidget0
    namechar0
    fWFlags0
    +

  • +
  • automaticResizeTabs () +
    + +
    returns (bool)
    In versions KDE 3.4.0 and above only

  • +
  • changeTab (a0, a1) +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only
    + + +
    ArgumentTypeDefault
    a0QWidget
    a1QString
    +

  • +
  • changeTab (child, iconset, label) +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only
    + + + +
    ArgumentTypeDefault
    childQWidget
    iconsetQIconSet
    labelQString
    +

  • +
  • closeRequest (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0QWidget
    +

  • +
  • closeRequest (a0) +
    Not Implemented
    +

  • +
  • contextMenu (a0) +
    Not Implemented
    +

  • +
  • contextMenu (a0, a1) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    a0QWidget
    a1QPoint
    +

  • +
  • contextMenu (a0, a1) +
    Not Implemented
    +

  • +
  • dragMoveEvent (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0QDragMoveEvent
    +

  • +
  • dropEvent (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0QDropEvent
    +

  • +
  • hoverCloseButton () +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only

  • +
  • hoverCloseButtonDelayed () +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only

  • +
  • initiateDrag (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0QWidget
    +

  • +
  • initiateDrag (a0) +
    Not Implemented
    +

  • +
  • insertTab (a0, a1, index = -1) +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only
    + + + +
    ArgumentTypeDefault
    a0QWidget
    a1QString
    indexint-1
    +

  • +
  • insertTab (child, iconset, label, index = -1) +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only
    + + + + +
    ArgumentTypeDefault
    childQWidget
    iconsetQIconSet
    labelQString
    indexint-1
    +

  • +
  • insertTab (a0, a1, index = -1) +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only
    + + + +
    ArgumentTypeDefault
    a0QWidget
    a1QTab
    indexint-1
    +

  • +
  • isTabBarHidden () +
    + +
    returns (bool)
    In versions KDE 3.4.0 and above only

  • +
  • isTabReorderingEnabled () +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only

  • +
  • label (a0) +
    + +
    returns (QString)
    In versions KDE 3.4.0 and above only
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • mouseDoubleClick () +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only

  • +
  • mouseDoubleClick (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0QWidget
    +

  • +
  • mouseDoubleClick (a0) +
    Not Implemented
    +

  • +
  • mouseDoubleClickEvent (e) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    eQMouseEvent
    +

  • +
  • mouseMiddleClick () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • mouseMiddleClick (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0QWidget
    +

  • +
  • mouseMiddleClick (a0) +
    Not Implemented
    +

  • +
  • mousePressEvent (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0QMouseEvent
    +

  • +
  • moveTab (a0, a1) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    a0int
    a1int
    +

  • +
  • movedTab (a0, a1) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    a0int
    a1int
    +

  • +
  • receivedDropEvent (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0QDropEvent
    +

  • +
  • receivedDropEvent (a0, a1) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    a0QWidget
    a1QDropEvent
    +

  • +
  • receivedDropEvent (a0, a1) +
    Not Implemented
    +

  • +
  • removePage (w) +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only
    + +
    ArgumentTypeDefault
    wQWidget
    +

  • +
  • resizeEvent (a0) +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only
    + +
    ArgumentTypeDefault
    a0QResizeEvent
    +

  • +
  • setAutomaticResizeTabs (enable) +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only
    + +
    ArgumentTypeDefault
    enablebool
    +

  • +
  • setHoverCloseButton (enable) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    enablebool
    +

  • +
  • setHoverCloseButtonDelayed (delayed) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    delayedbool
    +

  • +
  • setTabBarHidden (hide) +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only
    + +
    ArgumentTypeDefault
    hidebool
    +

  • +
  • setTabCloseActivatePrevious (previous) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    previousbool
    +

  • +
  • setTabColor (a0, color) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    a0QWidget
    colorQColor
    +

  • +
  • setTabLabel (a0, a1) +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only
    + + +
    ArgumentTypeDefault
    a0QWidget
    a1QString
    +

  • +
  • setTabReorderingEnabled (enable) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    enablebool
    +

  • +
  • tabBarWidthForMaxChars (maxLength) +
    + +
    returns (uint)
    In versions KDE 3.4.0 and above only
    + +
    ArgumentTypeDefault
    maxLengthuint
    +

  • +
  • tabCloseActivatePrevious () +
    + +
    returns (bool)
    In versions KDE 3.3.0 and above only

  • +
  • tabColor (a0) +
    + +
    returns (QColor)
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0QWidget
    +

  • +
  • tabLabel (a0) +
    + +
    returns (QString)
    In versions KDE 3.4.0 and above only
    + +
    ArgumentTypeDefault
    a0QWidget
    +

  • +
  • testCanDecode (e) +
    Not Implemented
    +

  • +
  • wheelDelta (a0) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • wheelEvent (e) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    eQWheelEvent
    +

  • +
+ + + diff --git a/doc/classref/kdeui/KTextBrowser.html b/doc/classref/kdeui/KTextBrowser.html new file mode 100644 index 0000000..7c7d9fb --- /dev/null +++ b/doc/classref/kdeui/KTextBrowser.html @@ -0,0 +1,102 @@ + + + + + class KTextBrowser + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KTextBrowser


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKTextBrowser
InheritsQTextBrowser
+

methods

    +
  • KTextBrowser (parent = 0, name = 0, notifyClick = 0) +
    +
    returns a KTextBrowser instance
    + + + +
    ArgumentTypeDefault
    parentQWidget0
    namechar0
    notifyClickbool0
    +

  • +
  • contentsWheelEvent (e) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    eQWheelEvent
    +

  • +
  • createPopupMenu (pos) +
    + +
    returns (QPopupMenu)
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    posQPoint
    +

  • +
  • isNotifyClick () +
    +
    returns (bool)

  • +
  • keyPressEvent (e) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    eQKeyEvent
    +

  • +
  • mailClick (name, address) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    nameQString
    addressQString
    +

  • +
  • setNotifyClick (notifyClick) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    notifyClickbool
    +

  • +
  • setSource (name) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    nameQString
    +

  • +
  • urlClick (url) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    urlQString
    +

  • +
  • viewportMouseMoveEvent (e) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    eQMouseEvent
    +

  • +
+ + + diff --git a/doc/classref/kdeui/KTextEdit.html b/doc/classref/kdeui/KTextEdit.html new file mode 100644 index 0000000..959bfd9 --- /dev/null +++ b/doc/classref/kdeui/KTextEdit.html @@ -0,0 +1,139 @@ + + + + + class KTextEdit + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KTextEdit


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKTextEdit
InheritsQTextEdit
+

methods

    +
  • KTextEdit (text, context = QString .null, parent = 0, name = 0) +
    + +
    returns a KTextEdit instance
    In versions KDE 3.1.0 and above only
    + + + + +
    ArgumentTypeDefault
    textQString
    contextQStringQString .null
    parentQWidget0
    namechar0
    +

  • +
  • KTextEdit (parent = 0, name = 0) +
    + +
    returns a KTextEdit instance
    In versions KDE 3.1.0 and above only
    + + +
    ArgumentTypeDefault
    parentQWidget0
    namechar0
    +

  • +
  • checkSpelling () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • checkSpellingEnabled () +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only

  • +
  • contentsWheelEvent (a0) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    a0QWheelEvent
    +

  • +
  • createPopupMenu (pos) +
    + +
    returns (QPopupMenu)
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    posQPoint
    +

  • +
  • createPopupMenu () +
    + +
    returns (QPopupMenu)
    In versions KDE 3.2.0 and above only

  • +
  • deleteWordBack () +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only

  • +
  • deleteWordForward () +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only

  • +
  • focusInEvent (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0QFocusEvent
    +

  • +
  • highLightWord (length, pos) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    lengthuint
    posuint
    +

  • +
  • keyPressEvent (a0) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    a0QKeyEvent
    +

  • +
  • setCheckSpellingEnabled (check) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    checkbool
    +

  • +
  • setPalette (palette) +
    + +
    returns nothing
    In versions KDE 3.1.1 and above only
    + +
    ArgumentTypeDefault
    paletteQPalette
    +

  • +
  • setReadOnly (readOnly) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    readOnlybool
    +

  • +
  • virtual_hook (id, data) +
    Not Implemented
    +

  • +
+ + + diff --git a/doc/classref/kdeui/KTimeWidget.html b/doc/classref/kdeui/KTimeWidget.html new file mode 100644 index 0000000..f500583 --- /dev/null +++ b/doc/classref/kdeui/KTimeWidget.html @@ -0,0 +1,76 @@ + + + + + class KTimeWidget + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KTimeWidget


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKTimeWidget
InheritsQWidget
+

methods

    +
  • KTimeWidget (parent = 0, name = 0) +
    + +
    returns a KTimeWidget instance
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    parentQWidget0
    namechar0
    +

  • +
  • KTimeWidget (time, parent = 0, name = 0) +
    + +
    returns a KTimeWidget instance
    In versions KDE 3.2.0 and above only
    + + + +
    ArgumentTypeDefault
    timeQTime
    parentQWidget0
    namechar0
    +

  • +
  • setTime (time) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    timeQTime
    +

  • +
  • time () +
    + +
    returns (QTime)
    In versions KDE 3.2.0 and above only

  • +
  • valueChanged (time) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    timeQTime
    +

  • +
+ + + diff --git a/doc/classref/kdeui/KTimezoneWidget.html b/doc/classref/kdeui/KTimezoneWidget.html new file mode 100644 index 0000000..35bc6b0 --- /dev/null +++ b/doc/classref/kdeui/KTimezoneWidget.html @@ -0,0 +1,70 @@ + + + + + class KTimezoneWidget + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KTimezoneWidget


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKTimezoneWidget
InheritsKListView
+

methods

    +
  • KTimezoneWidget (parent = 0, name = 0, db = 0) +
    + +
    returns a KTimezoneWidget instance
    In versions KDE 3.5.0 and above only
    + + + +
    ArgumentTypeDefault
    parentQWidget0
    namechar0
    dbKTimezones0
    +

  • +
  • displayName (zone) +
    + + +
    returns (QString)
    In versions KDE 3.5.0 and above only
    static
    + +
    ArgumentTypeDefault
    zoneKTimezone
    +

  • +
  • selection () +
    + +
    returns (QStringList)
    In versions KDE 3.5.0 and above only

  • +
  • setSelected (zone, selected) +
    + +
    returns nothing
    In versions KDE 3.5.0 and above only
    + + +
    ArgumentTypeDefault
    zoneQString
    selectedbool
    +

  • +
+ + + diff --git a/doc/classref/kdeui/KTipDatabase.html b/doc/classref/kdeui/KTipDatabase.html new file mode 100644 index 0000000..eacb3a9 --- /dev/null +++ b/doc/classref/kdeui/KTipDatabase.html @@ -0,0 +1,63 @@ + + + + + class KTipDatabase + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KTipDatabase


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKTipDatabase
Inherits
+

methods

    +
  • KTipDatabase (tipFile = QString .null) +
    +
    returns a KTipDatabase instance
    + +
    ArgumentTypeDefault
    tipFileQStringQString .null
    +

  • +
  • KTipDatabase (tipFiles) +
    + +
    returns a KTipDatabase instance
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    tipFilesQStringList
    +

  • +
  • nextTip () +
    +
    returns nothing

  • +
  • prevTip () +
    +
    returns nothing

  • +
  • tip () +
    +
    returns (QString)

  • +
+ + + diff --git a/doc/classref/kdeui/KTipDialog.html b/doc/classref/kdeui/KTipDialog.html new file mode 100644 index 0000000..2df2603 --- /dev/null +++ b/doc/classref/kdeui/KTipDialog.html @@ -0,0 +1,100 @@ + + + + + class KTipDialog + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KTipDialog


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKTipDialog
InheritsKDialog
+

methods

    +
  • KTipDialog (db, parent = 0, name = 0) +
    + +
    returns a KTipDialog instance
    In versions KDE 3.1.0 and above only
    + + + +
    ArgumentTypeDefault
    dbKTipDatabase
    parentQWidget0
    namechar0
    +

  • +
  • KTipDialog (a0, a1 = 0, a2 = 0) +
    + +
    returns a KTipDialog instance
    In versions less than KDE 3.1.0 only
    + + + +
    ArgumentTypeDefault
    a0KTipDatabase
    a1QWidget0
    a2char0
    +

  • +
  • eventFilter (a0, a1) +
    +
    returns (bool)
    + + +
    ArgumentTypeDefault
    a0QObject
    a1QEvent
    +

  • +
  • setShowOnStart (show) +
    + +
    returns nothing
    static
    + +
    ArgumentTypeDefault
    showbool
    +

  • +
  • showMultiTip (parent, tipFiles, force = 0) +
    + + +
    returns nothing
    In versions KDE 3.2.0 and above only
    static
    + + + +
    ArgumentTypeDefault
    parentQWidget
    tipFilesQStringList
    forcebool0
    +

  • +
  • showTip (parent, tipFile = QString .null, force = 0) +
    + +
    returns nothing
    static
    + + + +
    ArgumentTypeDefault
    parentQWidget
    tipFileQStringQString .null
    forcebool0
    +

  • +
  • showTip (tipFile = QString .null, force = 0) +
    + +
    returns nothing
    static
    + + +
    ArgumentTypeDefault
    tipFileQStringQString .null
    forcebool0
    +

  • +
+ + + diff --git a/doc/classref/kdeui/KToggleAction.html b/doc/classref/kdeui/KToggleAction.html new file mode 100644 index 0000000..8652e1d --- /dev/null +++ b/doc/classref/kdeui/KToggleAction.html @@ -0,0 +1,298 @@ + + + + + class KToggleAction + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KToggleAction


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKToggleAction
InheritsKAction
+

methods

    +
  • KToggleAction (a0, a1 = KShortcut (), a2 = 0, a3 = 0) +
    + +
    returns a KToggleAction instance
    In versions less than KDE 3.2.0 only
    + + + + +
    ArgumentTypeDefault
    a0QString
    a1KShortcutKShortcut ()
    a2QObject0
    a3char0
    +

  • +
  • KToggleAction (a0, a1, slot, a4, a5 = 0) +
    + +
    returns a KToggleAction instance
    In versions less than KDE 3.2.0 only
    + + + + + +
    ArgumentTypeDefault
    a0QString
    a1KShortcut
    slotSLOT (Python callable)
    a4QObject
    a5char0
    +

  • +
  • KToggleAction (text, pix, cut = KShortcut (), parent = 0, name = 0) +
    + +
    returns a KToggleAction instance
    In versions KDE 3.2.0 and above only
    + + + + + +
    ArgumentTypeDefault
    textQString
    pixQString
    cutKShortcutKShortcut ()
    parentQObject0
    namechar0
    +

  • +
  • KToggleAction (text, pix, cut, slot, parent, name = 0) +
    + +
    returns a KToggleAction instance
    In versions KDE 3.2.0 and above only
    + + + + + + +
    ArgumentTypeDefault
    textQString
    pixQIconSet
    cutKShortcut
    slotSLOT (Python callable)
    parentQObject
    namechar0
    +

  • +
  • KToggleAction (text, pix, cut, slot, parent, name = 0) +
    + +
    returns a KToggleAction instance
    In versions KDE 3.2.0 and above only
    + + + + + + +
    ArgumentTypeDefault
    textQString
    pixQString
    cutKShortcut
    slotSLOT (Python callable)
    parentQObject
    namechar0
    +

  • +
  • KToggleAction (parent = 0, name = 0) +
    + +
    returns a KToggleAction instance
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    parentQObject0
    namechar0
    +

  • +
  • KToggleAction (a0, a1, a2 = KShortcut (), a3 = 0, a4 = 0) +
    + +
    returns a KToggleAction instance
    In versions less than KDE 3.2.0 only
    + + + + + +
    ArgumentTypeDefault
    a0QString
    a1QIconSet
    a2KShortcutKShortcut ()
    a3QObject0
    a4char0
    +

  • +
  • KToggleAction (a0, a1, a2 = KShortcut (), a3 = 0, a4 = 0) +
    + +
    returns a KToggleAction instance
    In versions less than KDE 3.2.0 only
    + + + + + +
    ArgumentTypeDefault
    a0QString
    a1QString
    a2KShortcutKShortcut ()
    a3QObject0
    a4char0
    +

  • +
  • KToggleAction (a0, a1, a2, slot, a5, a6 = 0) +
    + +
    returns a KToggleAction instance
    In versions less than KDE 3.2.0 only
    + + + + + + +
    ArgumentTypeDefault
    a0QString
    a1QIconSet
    a2KShortcut
    slotSLOT (Python callable)
    a5QObject
    a6char0
    +

  • +
  • KToggleAction (a0, a1, a2, slot, a5, a6 = 0) +
    + +
    returns a KToggleAction instance
    In versions less than KDE 3.2.0 only
    + + + + + + +
    ArgumentTypeDefault
    a0QString
    a1QString
    a2KShortcut
    slotSLOT (Python callable)
    a5QObject
    a6char0
    +

  • +
  • KToggleAction (a0 = 0, a1 = 0) +
    + +
    returns a KToggleAction instance
    In versions less than KDE 3.2.0 only
    + + +
    ArgumentTypeDefault
    a0QObject0
    a1char0
    +

  • +
  • KToggleAction (text, cut = KShortcut (), parent = 0, name = 0) +
    + +
    returns a KToggleAction instance
    In versions KDE 3.2.0 and above only
    + + + + +
    ArgumentTypeDefault
    textQString
    cutKShortcutKShortcut ()
    parentQObject0
    namechar0
    +

  • +
  • KToggleAction (text, cut, slot, parent, name = 0) +
    + +
    returns a KToggleAction instance
    In versions KDE 3.2.0 and above only
    + + + + + +
    ArgumentTypeDefault
    textQString
    cutKShortcut
    slotSLOT (Python callable)
    parentQObject
    namechar0
    +

  • +
  • KToggleAction (text, pix, cut = KShortcut (), parent = 0, name = 0) +
    + +
    returns a KToggleAction instance
    In versions KDE 3.2.0 and above only
    + + + + + +
    ArgumentTypeDefault
    textQString
    pixQIconSet
    cutKShortcutKShortcut ()
    parentQObject0
    namechar0
    +

  • +
  • exclusiveGroup () +
    + +
    returns (QString)
    In versions less than KDE 3.2.0 only

  • +
  • exclusiveGroup () +
    + +
    returns (QString)
    In versions KDE 3.2.0 and above only

  • +
  • isChecked () +
    + +
    returns (bool)
    In versions less than KDE 3.2.0 only

  • +
  • isChecked () +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only

  • +
  • plug (a0, a1 = -1) +
    + +
    returns (int)
    In versions less than KDE 3.2.0 only
    + + +
    ArgumentTypeDefault
    a0QWidget
    a1int-1
    +

  • +
  • plug (widget, index = -1) +
    + +
    returns (int)
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    widgetQWidget
    indexint-1
    +

  • +
  • setChecked (a0) +
    + +
    returns nothing
    In versions less than KDE 3.2.0 only
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • setChecked (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • setCheckedState (checkedItem) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    checkedItemKGuiItem
    +

  • +
  • setExclusiveGroup (a0) +
    + +
    returns nothing
    In versions less than KDE 3.2.0 only
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • setExclusiveGroup (name) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    nameQString
    +

  • +
  • slotActivated () +
    + +
    returns nothing
    In versions less than KDE 3.2.0 only

  • +
  • slotActivated () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • toggled (a0) +
    + +
    returns nothing
    In versions less than KDE 3.2.0 only
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • toggled (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • toolTip () +
    + +
    returns (QString)
    In versions KDE 3.3.0 and above only

  • +
  • updateChecked (a0) +
    + +
    returns nothing
    In versions less than KDE 3.2.0 only
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • updateChecked (id) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    idint
    +

  • +
+ + + diff --git a/doc/classref/kdeui/KToggleFullScreenAction.html b/doc/classref/kdeui/KToggleFullScreenAction.html new file mode 100644 index 0000000..f1992ed --- /dev/null +++ b/doc/classref/kdeui/KToggleFullScreenAction.html @@ -0,0 +1,74 @@ + + + + + class KToggleFullScreenAction + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KToggleFullScreenAction


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKToggleFullScreenAction
InheritsKToggleAction
+

methods

    +
  • KToggleFullScreenAction (cut, slot, parent, window, name) +
    + +
    returns a KToggleFullScreenAction instance
    In versions KDE 3.2.0 and above only
    + + + + + +
    ArgumentTypeDefault
    cutKShortcut
    slotSLOT (Python callable)
    parentQObject
    windowQWidget
    namechar
    +

  • +
  • eventFilter (o, e) +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    oQObject
    eQEvent
    +

  • +
  • setChecked (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • setWindow (window) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    windowQWidget
    +

  • +
+ + + diff --git a/doc/classref/kdeui/KToggleToolBarAction.html b/doc/classref/kdeui/KToggleToolBarAction.html new file mode 100644 index 0000000..1026940 --- /dev/null +++ b/doc/classref/kdeui/KToggleToolBarAction.html @@ -0,0 +1,127 @@ + + + + + class KToggleToolBarAction + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KToggleToolBarAction


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKToggleToolBarAction
InheritsKToggleAction
+

methods

    +
  • KToggleToolBarAction (a0, a1, a2, a3) +
    + +
    returns a KToggleToolBarAction instance
    In versions KDE 3.1.0 and above, but less than KDE 3.2.0
    + + + + +
    ArgumentTypeDefault
    a0char
    a1QString
    a2KActionCollection
    a3char
    +

  • +
  • KToggleToolBarAction (a0, a1, a2, a3) +
    + +
    returns a KToggleToolBarAction instance
    In versions KDE 3.1.0 and above, but less than KDE 3.2.0
    + + + + +
    ArgumentTypeDefault
    a0KToolBar
    a1QString
    a2KActionCollection
    a3char
    +

  • +
  • KToggleToolBarAction (toolBarName, text, parent, name) +
    + +
    returns a KToggleToolBarAction instance
    In versions KDE 3.2.0 and above only
    + + + + +
    ArgumentTypeDefault
    toolBarNamechar
    textQString
    parentKActionCollection
    namechar
    +

  • +
  • KToggleToolBarAction (toolBar, text, parent, name) +
    + +
    returns a KToggleToolBarAction instance
    In versions KDE 3.2.0 and above only
    + + + + +
    ArgumentTypeDefault
    toolBarKToolBar
    textQString
    parentKActionCollection
    namechar
    +

  • +
  • plug (a0, a1 = -1) +
    + +
    returns (int)
    In versions KDE 3.1.0 and above, but less than KDE 3.2.0
    + + +
    ArgumentTypeDefault
    a0QWidget
    a1int-1
    +

  • +
  • plug (widget, index = -1) +
    + +
    returns (int)
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    widgetQWidget
    indexint-1
    +

  • +
  • setChecked (a0) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above, but less than KDE 3.2.0
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • setChecked (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • toolBar () +
    + +
    returns (KToolBar)
    In versions KDE 3.1.0 and above, but less than KDE 3.2.0

  • +
  • toolBar () +
    + +
    returns (KToolBar)
    In versions KDE 3.2.0 and above only

  • +
  • virtual_hook (a0, a1) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above, but less than KDE 3.2.0
    + + +
    ArgumentTypeDefault
    a0int
    a1void
    +

  • +
+ + + diff --git a/doc/classref/kdeui/KToolBar.html b/doc/classref/kdeui/KToolBar.html new file mode 100644 index 0000000..301cad6 --- /dev/null +++ b/doc/classref/kdeui/KToolBar.html @@ -0,0 +1,797 @@ + + + + + class KToolBar + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KToolBar


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKToolBar
InheritsQToolBar
+

enums

    +
  • BarPosition = {Unmanaged, Floating, Top, Bottom, Right, Left, Flat +}
  • BarStatus = {Toggle, Show, Hide +}
  • IconText = {IconOnly, IconTextRight, TextOnly, IconTextBottom +}
+

methods

    +
  • KToolBar (parent, name = 0, honorStyle = 0, readConfig = 1) +
    +
    returns a KToolBar instance
    + + + + +
    ArgumentTypeDefault
    parentQWidget
    namechar0
    honorStylebool0
    readConfigbool1
    +

  • +
  • KToolBar (parentWindow, dock, newLine = 0, name = 0, honorStyle = 0, readConfig = 1) +
    Not Implemented
    +

  • +
  • KToolBar (parentWindow, dock, newLine = 0, name = 0, honorStyle = 0, readConfig = 1) +
    +
    returns a KToolBar instance
    + + + + + + +
    ArgumentTypeDefault
    parentWindowQMainWindow
    dockQWidget
    newLinebool0
    namechar0
    honorStylebool0
    readConfigbool1
    +

  • +
  • addConnection (id, signal, slot) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    idint
    signalchar
    slotSLOT (Python callable)
    +

  • +
  • alignItemRight (id, right = 1) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    idint
    rightbool1
    +

  • +
  • animatedWidget (id) +
    +
    returns (KAnimWidget)
    + +
    ArgumentTypeDefault
    idint
    +

  • +
  • applyAppearanceSettings (config, _configGroup, forceGlobal = 0) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    configKConfig
    _configGroupQString
    forceGlobalbool0
    +

  • +
  • applySettings (config, configGroup, force) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + + + +
    ArgumentTypeDefault
    configKConfig
    configGroupQString
    forcebool
    +

  • +
  • applySettings (config, configGroup) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    configKConfig
    configGroupQString
    +

  • +
  • barPos () +
    +
    returns (BarPosition)

  • +
  • changeComboItem (id, text, index = -1) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    idint
    textQString
    indexint-1
    +

  • +
  • childEvent (e) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    eQChildEvent
    +

  • +
  • clear () +
    +
    returns nothing

  • +
  • clearCombo (id) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    idint
    +

  • +
  • clicked (id) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    idint
    +

  • +
  • contextMenuEnabled () +
    +
    returns (bool)

  • +
  • count () +
    +
    returns (int)

  • +
  • doubleClicked (id) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    idint
    +

  • +
  • enable (stat) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    statKToolBar.BarStatus
    +

  • +
  • enableFloating (flag) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    flagbool
    +

  • +
  • enableMoving (flag = 1) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    flagbool1
    +

  • +
  • event (e) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    eQEvent
    +

  • +
  • fullSize () +
    +
    returns (bool)

  • +
  • getButton (id) +
    +
    returns (KToolBarButton)
    + +
    ArgumentTypeDefault
    idint
    +

  • +
  • getCombo (id) +
    +
    returns (KComboBox)
    + +
    ArgumentTypeDefault
    idint
    +

  • +
  • getComboItem (id, index = -1) +
    +
    returns (QString)
    + + +
    ArgumentTypeDefault
    idint
    indexint-1
    +

  • +
  • getLined (id) +
    +
    returns (KLineEdit)
    + +
    ArgumentTypeDefault
    idint
    +

  • +
  • getLinedText (id) +
    +
    returns (QString)
    + +
    ArgumentTypeDefault
    idint
    +

  • +
  • getWidget (id) +
    +
    returns (QWidget)
    + +
    ArgumentTypeDefault
    idint
    +

  • +
  • hide () +
    +
    returns nothing

  • +
  • hideItem (id) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    idint
    +

  • +
  • highlight () +
    +
    returns (bool)

  • +
  • highlightSetting () +
    + + +
    returns (bool)
    In versions KDE 3.1.0 and above only
    static

  • +
  • highlightSetting () +
    Not Implemented
    +

  • +
  • highlighted (id, isHighlighted) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    idint
    isHighlightedbool
    +

  • +
  • highlighted (id) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    idint
    +

  • +
  • iconSize () +
    +
    returns (int)

  • +
  • iconSizeDefault () +
    + +
    returns (int)
    In versions KDE 3.4.0 and above only

  • +
  • iconText () +
    +
    returns (IconText)

  • +
  • iconTextSetting () +
    + + +
    returns (KToolBar.IconText)
    In versions KDE 3.1.0 and above only
    static

  • +
  • iconTextSetting () +
    Not Implemented
    +

  • +
  • idAt (index) +
    + +
    returns (int)
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    indexint
    +

  • +
  • insertAnimatedWidget (id, slot, icons, index = -1) +
    +
    returns (int)
    + + + + +
    ArgumentTypeDefault
    idint
    slotSLOT (Python callable)
    iconsQString
    indexint-1
    +

  • +
  • insertButton (icon, id, enabled = 1, text = QString .null, index = -1, _instance = KGlobal .instance ()) +
    +
    returns (int)
    + + + + + + +
    ArgumentTypeDefault
    iconQString
    idint
    enabledbool1
    textQStringQString .null
    indexint-1
    _instanceKInstanceKGlobal .instance ()
    +

  • +
  • insertButton (icon, id, signal, slot, enabled = 1, text = QString .null, index = -1, _instance = KGlobal .instance ()) +
    +
    returns (int)
    + + + + + + + + +
    ArgumentTypeDefault
    iconQString
    idint
    signalchar
    slotSLOT (Python callable)
    enabledbool1
    textQStringQString .null
    indexint-1
    _instanceKInstanceKGlobal .instance ()
    +

  • +
  • insertButton (pixmap, id, enabled = 1, text = QString .null, index = -1) +
    +
    returns (int)
    + + + + + +
    ArgumentTypeDefault
    pixmapQPixmap
    idint
    enabledbool1
    textQStringQString .null
    indexint-1
    +

  • +
  • insertButton (pixmap, id, signal, slot, enabled = 1, text = QString .null, index = -1) +
    +
    returns (int)
    + + + + + + + +
    ArgumentTypeDefault
    pixmapQPixmap
    idint
    signalchar
    slotSLOT (Python callable)
    enabledbool1
    textQStringQString .null
    indexint-1
    +

  • +
  • insertButton (icon, id, popup, enabled, _text, index = -1) +
    +
    returns (int)
    + + + + + + +
    ArgumentTypeDefault
    iconQString
    idint
    popupQPopupMenu
    enabledbool
    _textQString
    indexint-1
    +

  • +
  • insertButton (pixmap, id, popup, enabled, _text, index = -1) +
    +
    returns (int)
    + + + + + + +
    ArgumentTypeDefault
    pixmapQPixmap
    idint
    popupQPopupMenu
    enabledbool
    _textQString
    indexint-1
    +

  • +
  • insertCombo (list, id, writable, signal, slot, enabled = 1, tooltiptext = QString .null, size = 70, index = -1, policy = QComboBox .AtBottom) +
    +
    returns (int)
    + + + + + + + + + + +
    ArgumentTypeDefault
    listQStringList
    idint
    writablebool
    signalchar
    slotSLOT (Python callable)
    enabledbool1
    tooltiptextQStringQString .null
    sizeint70
    indexint-1
    policyQComboBox.PolicyQComboBox .AtBottom
    +

  • +
  • insertCombo (text, id, writable, signal, slot, enabled = 1, tooltiptext = QString .null, size = 70, index = -1, policy = QComboBox .AtBottom) +
    + +
    returns (int)
    In versions KDE 3.2.0 and above only
    + + + + + + + + + + +
    ArgumentTypeDefault
    textQString
    idint
    writablebool
    signalchar
    slotSLOT (Python callable)
    enabledbool1
    tooltiptextQStringQString .null
    sizeint70
    indexint-1
    policyQComboBox.PolicyQComboBox .AtBottom
    +

  • +
  • insertCombo (a0, a1, a2, a3, a4, a5, a6 = 1, a7 = QString .null, a8 = 70, a9 = -1, a10 = QComboBox .AtBottom) +
    + +
    returns (int)
    In versions less than KDE 3.2.0 only
    + + + + + + + + + + + +
    ArgumentTypeDefault
    a0QString
    a1int
    a2bool
    a3char
    a4QObject
    a5char
    a6bool1
    a7QStringQString .null
    a8int70
    a9int-1
    a10QComboBox.PolicyQComboBox .AtBottom
    +

  • +
  • insertComboItem (id, text, index) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    idint
    textQString
    indexint
    +

  • +
  • insertComboList (id, list, index) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    idint
    listQStringList
    indexint
    +

  • +
  • insertLineSeparator (index, id) +
    +
    returns (int)
    + + +
    ArgumentTypeDefault
    indexint
    idint
    +

  • +
  • insertLined (text, id, signal, slot, enabled = 1, toolTipText = QString .null, size = 70, index = -1) +
    +
    returns (int)
    + + + + + + + + +
    ArgumentTypeDefault
    textQString
    idint
    signalchar
    slotSLOT (Python callable)
    enabledbool1
    toolTipTextQStringQString .null
    sizeint70
    indexint-1
    +

  • +
  • insertSeparator (index, id) +
    +
    returns (int)
    + + +
    ArgumentTypeDefault
    indexint
    idint
    +

  • +
  • insertWidget (id, width, _widget, index = -1) +
    +
    returns (int)
    + + + + +
    ArgumentTypeDefault
    idint
    widthint
    _widgetQWidget
    indexint-1
    +

  • +
  • isButtonOn (id) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    idint
    +

  • +
  • itemIndex (id) +
    + +
    returns (int)
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    idint
    +

  • +
  • loadState (e) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    eQDomElement
    +

  • +
  • maxHeight () +
    +
    returns (int)

  • +
  • maxWidth () +
    +
    returns (int)

  • +
  • minimumSize () +
    +
    returns (QSize)

  • +
  • minimumSizeHint () +
    +
    returns (QSize)

  • +
  • modechange () +
    +
    returns nothing

  • +
  • mousePressEvent (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QMouseEvent
    +

  • +
  • moved (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KToolBar.BarPosition
    +

  • +
  • positionYourself (force) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    forcebool
    +

  • +
  • pressed (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • released (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • removeComboItem (id, index) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    idint
    indexint
    +

  • +
  • removeItem (id) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    idint
    +

  • +
  • removeItemDelayed (id) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    idint
    +

  • +
  • resizeEvent (e) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    eQResizeEvent
    +

  • +
  • saveSettings (config, configGroup) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    configKConfig
    configGroupQString
    +

  • +
  • saveState () +
    +
    returns nothing

  • +
  • saveState (e) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    eQDomElement
    +

  • +
  • setAutoRepeat (id, flag = 1) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    idint
    flagbool1
    +

  • +
  • setBarPos (bpos) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    bposKToolBar.BarPosition
    +

  • +
  • setButton (id, flag) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    idint
    flagbool
    +

  • +
  • setButtonIcon (id, _icon) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    idint
    _iconQString
    +

  • +
  • setButtonIconSet (id, iconset) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    idint
    iconsetQIconSet
    +

  • +
  • setButtonPixmap (id, _pixmap) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    idint
    _pixmapQPixmap
    +

  • +
  • setCurrentComboItem (id, index) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    idint
    indexint
    +

  • +
  • setDelayedPopup (id, _popup, toggle = 0) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    idint
    _popupQPopupMenu
    togglebool0
    +

  • +
  • setEnableContextMenu (enable = 1) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    enablebool1
    +

  • +
  • setFlat (flag) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    flagbool
    +

  • +
  • setFullSize (flag = 1) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    flagbool1
    +

  • +
  • setIconSize (size) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    sizeint
    +

  • +
  • setIconSize (size, update) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    sizeint
    updatebool
    +

  • +
  • setIconText (it) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    itKToolBar.IconText
    +

  • +
  • setIconText (it, update) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    itKToolBar.IconText
    updatebool
    +

  • +
  • setIconText (txt) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    txtQString
    +

  • +
  • setItemAutoSized (id, yes = 1) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    idint
    yesbool1
    +

  • +
  • setItemEnabled (id, enabled) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    idint
    enabledbool
    +

  • +
  • setItemNoStyle (id, no_style = 1) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    idint
    no_stylebool1
    +

  • +
  • setLinedText (id, text) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    idint
    textQString
    +

  • +
  • setMaxHeight (h) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    hint
    +

  • +
  • setMaxWidth (dw) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    dwint
    +

  • +
  • setStretchableWidget (w) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    wQWidget
    +

  • +
  • setText (txt) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    txtQString
    +

  • +
  • setTitle (_title) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    _titleQString
    +

  • +
  • setToggle (id, flag = 1) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    idint
    flagbool1
    +

  • +
  • setXMLGUIClient (client) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    clientKXMLGUIClient
    +

  • +
  • settingsGroup () +
    +
    returns (QString)

  • +
  • show () +
    +
    returns nothing

  • +
  • showEvent (e) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    eQShowEvent
    +

  • +
  • showItem (id) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    idint
    +

  • +
  • sizeHint () +
    +
    returns (QSize)

  • +
  • sizePolicy () +
    +
    returns (QSizePolicy)

  • +
  • text () +
    +
    returns (QString)

  • +
  • toggleButton (id) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    idint
    +

  • +
  • toggled (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • toolbarDestroyed () +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only

  • +
  • transparentSetting () +
    + + +
    returns (bool)
    In versions KDE 3.1.0 and above only
    static

  • +
  • transparentSetting () +
    Not Implemented
    +

  • +
  • updateRects (a0 = 0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0bool0
    +

  • +
+ + + diff --git a/doc/classref/kdeui/KToolBarButton.html b/doc/classref/kdeui/KToolBarButton.html new file mode 100644 index 0000000..8f03053 --- /dev/null +++ b/doc/classref/kdeui/KToolBarButton.html @@ -0,0 +1,325 @@ + + + + + class KToolBarButton + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KToolBarButton


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKToolBarButton
InheritsQToolButton
+

methods

    +
  • KToolBarButton (icon, id, parent, name = 0, txt = QString .null, _instance = KGlobal .instance ()) +
    +
    returns a KToolBarButton instance
    + + + + + + +
    ArgumentTypeDefault
    iconQString
    idint
    parentQWidget
    namechar0
    txtQStringQString .null
    _instanceKInstanceKGlobal .instance ()
    +

  • +
  • KToolBarButton (pixmap, id, parent, name = 0, txt = QString .null) +
    +
    returns a KToolBarButton instance
    + + + + + +
    ArgumentTypeDefault
    pixmapQPixmap
    idint
    parentQWidget
    namechar0
    txtQStringQString .null
    +

  • +
  • KToolBarButton (parent = 0, name = 0) +
    +
    returns a KToolBarButton instance
    + + +
    ArgumentTypeDefault
    parentQWidget0
    namechar0
    +

  • +
  • buttonClicked (a0, state) +
    + +
    returns nothing
    In versions KDE 3.4.2 and above only
    + + +
    ArgumentTypeDefault
    a0int
    stateQt.ButtonState
    +

  • +
  • clicked (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • doubleClicked (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • drawButton (p) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    pQPainter
    +

  • +
  • enterEvent (e) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    eQEvent
    +

  • +
  • event (e) +
    + +
    returns (bool)
    In versions KDE 3.5.0 and above only
    + +
    ArgumentTypeDefault
    eQEvent
    +

  • +
  • eventFilter (o, e) +
    +
    returns (bool)
    + + +
    ArgumentTypeDefault
    oQObject
    eQEvent
    +

  • +
  • highlighted (a0, a1) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    a0int
    a1bool
    +

  • +
  • iconTextMode () +
    + +
    returns (int)
    In versions KDE 3.0.1 and above only

  • +
  • id () +
    + +
    returns (int)
    In versions KDE 3.2.0 and above only

  • +
  • isActive () +
    + +
    returns (bool)
    In versions KDE 3.0.1 and above only

  • +
  • isRaised () +
    + +
    returns (bool)
    In versions KDE 3.0.1 and above only

  • +
  • leaveEvent (e) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    eQEvent
    +

  • +
  • minimumSize () +
    +
    returns (QSize)

  • +
  • minimumSizeHint () +
    +
    returns (QSize)

  • +
  • modeChange () +
    +
    returns nothing

  • +
  • mousePressEvent (a0) +
    + +
    returns nothing
    In versions KDE 3.4.2 and above only
    + +
    ArgumentTypeDefault
    a0QMouseEvent
    +

  • +
  • mouseReleaseEvent (a0) +
    + +
    returns nothing
    In versions KDE 3.4.2 and above only
    + +
    ArgumentTypeDefault
    a0QMouseEvent
    +

  • +
  • on (flag = 1) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    flagbool1
    +

  • +
  • paletteChange (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QPalette
    +

  • +
  • popup () +
    +
    returns (QPopupMenu)

  • +
  • pressed (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • released (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • setDefaultIcon (icon) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    iconQString
    +

  • +
  • setDefaultPixmap (pixmap) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    pixmapQPixmap
    +

  • +
  • setDelayedPopup (p, unused = 0) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    pQPopupMenu
    unusedbool0
    +

  • +
  • setDisabledIcon (icon) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    iconQString
    +

  • +
  • setDisabledPixmap (pixmap) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    pixmapQPixmap
    +

  • +
  • setIcon (icon) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    iconQString
    +

  • +
  • setIcon (pixmap) +
    + +
    returns nothing
    In versions KDE 3.0.1 and above only
    + +
    ArgumentTypeDefault
    pixmapQPixmap
    +

  • +
  • setIcon (icon, generate) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    iconQString
    generatebool
    +

  • +
  • setIconSet (iconset) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    iconsetQIconSet
    +

  • +
  • setNoStyle (no_style = 1) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    no_stylebool1
    +

  • +
  • setPixmap (pixmap) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    pixmapQPixmap
    +

  • +
  • setPopup (p, unused) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    pQPopupMenu
    unusedbool
    +

  • +
  • setRadio (f = 1) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    fbool1
    +

  • +
  • setText (text) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    textQString
    +

  • +
  • setTextLabel (a0, tipToo) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    a0QString
    tipToobool
    +

  • +
  • setToggle (toggle = 1) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    togglebool1
    +

  • +
  • showMenu () +
    +
    returns nothing

  • +
  • sizeHint () +
    +
    returns (QSize)

  • +
  • slotClicked () +
    +
    returns nothing

  • +
  • slotDelayTimeout () +
    +
    returns nothing

  • +
  • slotPressed () +
    +
    returns nothing

  • +
  • slotReleased () +
    +
    returns nothing

  • +
  • slotToggled () +
    +
    returns nothing

  • +
  • toggle () +
    +
    returns nothing

  • +
  • toggled (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
+ + + diff --git a/doc/classref/kdeui/KToolBarLabelAction.html b/doc/classref/kdeui/KToolBarLabelAction.html new file mode 100644 index 0000000..0d7f22b --- /dev/null +++ b/doc/classref/kdeui/KToolBarLabelAction.html @@ -0,0 +1,108 @@ + + + + + class KToolBarLabelAction + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KToolBarLabelAction


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKToolBarLabelAction
InheritsKWidgetAction
+

methods

    +
  • KToolBarLabelAction (text, cut, receiver, slot, parent, name) +
    + +
    returns a KToolBarLabelAction instance
    In versions KDE 3.4.0 and above only
    + + + + + + +
    ArgumentTypeDefault
    textQString
    cutKShortcut
    receiverQObject
    slotchar
    parentKActionCollection
    namechar
    +

  • +
  • KToolBarLabelAction (buddy, text, cut, receiver, slot, parent, name) +
    + +
    returns a KToolBarLabelAction instance
    In versions KDE 3.4.0 and above only
    + + + + + + + +
    ArgumentTypeDefault
    buddyQWidget
    textQString
    cutKShortcut
    receiverQObject
    slotchar
    parentKActionCollection
    namechar
    +

  • +
  • KToolBarLabelAction (label, cut, receiver, slot, parent, name) +
    + +
    returns a KToolBarLabelAction instance
    In versions KDE 3.4.0 and above only
    + + + + + + +
    ArgumentTypeDefault
    labelQLabel
    cutKShortcut
    receiverQObject
    slotchar
    parentKActionCollection
    namechar
    +

  • +
  • buddy () +
    + +
    returns (QWidget)
    In versions KDE 3.4.0 and above only

  • +
  • label () +
    + +
    returns (QLabel)
    In versions KDE 3.4.0 and above only

  • +
  • setBuddy (buddy) +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only
    + +
    ArgumentTypeDefault
    buddyQWidget
    +

  • +
  • setText (text) +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only
    + +
    ArgumentTypeDefault
    textQString
    +

  • +
  • virtual_hook (id, data) +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only
    + + +
    ArgumentTypeDefault
    idint
    datavoid
    +

  • +
+ + + diff --git a/doc/classref/kdeui/KToolBarPopupAction.html b/doc/classref/kdeui/KToolBarPopupAction.html new file mode 100644 index 0000000..9f89e1a --- /dev/null +++ b/doc/classref/kdeui/KToolBarPopupAction.html @@ -0,0 +1,177 @@ + + + + + class KToolBarPopupAction + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KToolBarPopupAction


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKToolBarPopupAction
InheritsKAction
+

methods

    +
  • KToolBarPopupAction (a0, a1, a2 = KShortcut (), a3 = 0, a4 = 0) +
    + +
    returns a KToolBarPopupAction instance
    In versions less than KDE 3.2.0 only
    + + + + + +
    ArgumentTypeDefault
    a0QString
    a1QString
    a2KShortcutKShortcut ()
    a3QObject0
    a4char0
    +

  • +
  • KToolBarPopupAction (a0, a1, a2, slot, a5 = 0, a6 = 0) +
    + +
    returns a KToolBarPopupAction instance
    In versions less than KDE 3.2.0 only
    + + + + + + +
    ArgumentTypeDefault
    a0QString
    a1QString
    a2KShortcut
    slotSLOT (Python callable)
    a5QObject0
    a6char0
    +

  • +
  • KToolBarPopupAction (a0, a1, slot, a4, a5) +
    + +
    returns a KToolBarPopupAction instance
    In versions less than KDE 3.2.0 only
    + + + + + +
    ArgumentTypeDefault
    a0KGuiItem
    a1KShortcut
    slotSLOT (Python callable)
    a4KActionCollection
    a5char
    +

  • +
  • KToolBarPopupAction (text, icon, cut = KShortcut (), parent = 0, name = 0) +
    + +
    returns a KToolBarPopupAction instance
    In versions KDE 3.2.0 and above only
    + + + + + +
    ArgumentTypeDefault
    textQString
    iconQString
    cutKShortcutKShortcut ()
    parentQObject0
    namechar0
    +

  • +
  • KToolBarPopupAction (text, icon, cut, slot, parent = 0, name = 0) +
    + +
    returns a KToolBarPopupAction instance
    In versions KDE 3.2.0 and above only
    + + + + + + +
    ArgumentTypeDefault
    textQString
    iconQString
    cutKShortcut
    slotSLOT (Python callable)
    parentQObject0
    namechar0
    +

  • +
  • KToolBarPopupAction (item, cut, slot, parent, name) +
    + +
    returns a KToolBarPopupAction instance
    In versions KDE 3.2.0 and above only
    + + + + + +
    ArgumentTypeDefault
    itemKGuiItem
    cutKShortcut
    slotSLOT (Python callable)
    parentKActionCollection
    namechar
    +

  • +
  • delayed () +
    + +
    returns (bool)
    In versions less than KDE 3.2.0 only

  • +
  • delayed () +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only

  • +
  • plug (a0, a1 = -1) +
    + +
    returns (int)
    In versions less than KDE 3.2.0 only
    + + +
    ArgumentTypeDefault
    a0QWidget
    a1int-1
    +

  • +
  • plug (widget, index = -1) +
    + +
    returns (int)
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    widgetQWidget
    indexint-1
    +

  • +
  • popupMenu () +
    + +
    returns (KPopupMenu)
    In versions less than KDE 3.2.0 only

  • +
  • popupMenu () +
    + +
    returns (KPopupMenu)
    In versions KDE 3.2.0 and above only

  • +
  • setDelayed (a0) +
    + +
    returns nothing
    In versions less than KDE 3.2.0 only
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • setDelayed (delayed) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    delayedbool
    +

  • +
  • setStickyMenu (a0) +
    + +
    returns nothing
    In versions less than KDE 3.2.0 only
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • setStickyMenu (sticky) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    stickybool
    +

  • +
  • stickyMenu () +
    + +
    returns (bool)
    In versions less than KDE 3.2.0 only

  • +
  • stickyMenu () +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only

  • +
+ + + diff --git a/doc/classref/kdeui/KToolBarRadioGroup.html b/doc/classref/kdeui/KToolBarRadioGroup.html new file mode 100644 index 0000000..69a6c03 --- /dev/null +++ b/doc/classref/kdeui/KToolBarRadioGroup.html @@ -0,0 +1,66 @@ + + + + + class KToolBarRadioGroup + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KToolBarRadioGroup


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKToolBarRadioGroup
InheritsQObject
+

methods

    +
  • KToolBarRadioGroup (_parent, _name = 0) +
    +
    returns a KToolBarRadioGroup instance
    + + +
    ArgumentTypeDefault
    _parentKToolBar
    _namechar0
    +

  • +
  • addButton (id) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    idint
    +

  • +
  • removeButton (id) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    idint
    +

  • +
  • slotToggled (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
+ + + diff --git a/doc/classref/kdeui/KToolBarSeparator.html b/doc/classref/kdeui/KToolBarSeparator.html new file mode 100644 index 0000000..e5b638b --- /dev/null +++ b/doc/classref/kdeui/KToolBarSeparator.html @@ -0,0 +1,81 @@ + + + + + class KToolBarSeparator + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KToolBarSeparator


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKToolBarSeparator
InheritsQFrame
+

methods

    +
  • KToolBarSeparator (a0, l, parent, name = 0) +
    +
    returns a KToolBarSeparator instance
    + + + + +
    ArgumentTypeDefault
    a0Orientation
    lbool
    parentQToolBar
    namechar0
    +

  • +
  • drawContents (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0QPainter
    +

  • +
  • orientation () +
    +
    returns (Orientation)

  • +
  • setOrientation (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0Orientation
    +

  • +
  • showLine () +
    +
    returns (bool)

  • +
  • sizeHint () +
    +
    returns (QSize)

  • +
  • sizePolicy () +
    +
    returns (QSizePolicy)

  • +
  • styleChange (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QStyle
    +

  • +
+ + + diff --git a/doc/classref/kdeui/KURLLabel.html b/doc/classref/kdeui/KURLLabel.html new file mode 100644 index 0000000..30fb02a --- /dev/null +++ b/doc/classref/kdeui/KURLLabel.html @@ -0,0 +1,263 @@ + + + + + class KURLLabel + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KURLLabel


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKURLLabel
InheritsQLabel
+

methods

    +
  • KURLLabel (parent = 0, name = 0) +
    +
    returns a KURLLabel instance
    + + +
    ArgumentTypeDefault
    parentQWidget0
    namechar0
    +

  • +
  • KURLLabel (url, text = QString .null, parent = 0, name = 0) +
    +
    returns a KURLLabel instance
    + + + + +
    ArgumentTypeDefault
    urlQString
    textQStringQString .null
    parentQWidget0
    namechar0
    +

  • +
  • activeRect () +
    + +
    returns (QRect)
    In versions KDE 3.5.1 and above only

  • +
  • altPixmap () +
    +
    returns (QPixmap)

  • +
  • enterEvent (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QEvent
    +

  • +
  • enteredURL (url) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    urlQString
    +

  • +
  • enteredURL () +
    +
    returns nothing

  • +
  • event (e) +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    eQEvent
    +

  • +
  • isFloatEnabled () +
    +
    returns (bool)

  • +
  • isGlowEnabled () +
    +
    returns (bool)

  • +
  • leaveEvent (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QEvent
    +

  • +
  • leftClickedURL (url) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    urlQString
    +

  • +
  • leftClickedURL () +
    +
    returns nothing

  • +
  • leftURL (url) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    urlQString
    +

  • +
  • leftURL () +
    +
    returns nothing

  • +
  • middleClickedURL (url) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    urlQString
    +

  • +
  • middleClickedURL () +
    +
    returns nothing

  • +
  • mouseReleaseEvent (e) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    eQMouseEvent
    +

  • +
  • rightClickedURL (url) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    urlQString
    +

  • +
  • rightClickedURL () +
    +
    returns nothing

  • +
  • setAltPixmap (altPix) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    altPixQPixmap
    +

  • +
  • setCursor (cursor) +
    + +
    returns nothing
    In versions KDE 3.5.1 and above only
    + +
    ArgumentTypeDefault
    cursorQCursor
    +

  • +
  • setFloat (do_float = 1) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    do_floatbool1
    +

  • +
  • setFocusPolicy (policy) +
    + +
    returns nothing
    In versions KDE 3.5.1 and above only
    + +
    ArgumentTypeDefault
    policyFocusPolicy
    +

  • +
  • setFont (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QFont
    +

  • +
  • setGlow (glow = 1) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    glowbool1
    +

  • +
  • setHighlightedColor (highcolor) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    highcolorQColor
    +

  • +
  • setHighlightedColor (highcolor) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    highcolorQString
    +

  • +
  • setMargin (margin) +
    + +
    returns nothing
    In versions KDE 3.5.1 and above only
    + +
    ArgumentTypeDefault
    marginint
    +

  • +
  • setSelectedColor (selcolor) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    selcolorQColor
    +

  • +
  • setSelectedColor (selcolor) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    selcolorQString
    +

  • +
  • setSizePolicy (a0) +
    + +
    returns nothing
    In versions KDE 3.5.2 and above only
    + +
    ArgumentTypeDefault
    a0QSizePolicy
    +

  • +
  • setTipText (tip) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    tipQString
    +

  • +
  • setURL (url) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    urlQString
    +

  • +
  • setUnderline (on = 1) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    onbool1
    +

  • +
  • setUseCursor (on, cursor = 0) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    onbool
    cursorQCursor0
    +

  • +
  • setUseTips (on = 1) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    onbool1
    +

  • +
  • tipText () +
    +
    returns (QString)

  • +
  • unsetCursor () +
    + +
    returns nothing
    In versions KDE 3.5.1 and above only

  • +
  • url () +
    +
    returns (QString)

  • +
  • useCursor () +
    +
    returns (bool)

  • +
  • useTips () +
    +
    returns (bool)

  • +
+ + + diff --git a/doc/classref/kdeui/KValueSelector.html b/doc/classref/kdeui/KValueSelector.html new file mode 100644 index 0000000..7a175a4 --- /dev/null +++ b/doc/classref/kdeui/KValueSelector.html @@ -0,0 +1,95 @@ + + + + + class KValueSelector + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KValueSelector


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKValueSelector
InheritsKSelector
+

methods

    +
  • KValueSelector (parent = 0, name = 0) +
    +
    returns a KValueSelector instance
    + + +
    ArgumentTypeDefault
    parentQWidget0
    namechar0
    +

  • +
  • KValueSelector (o, parent = 0, name = 0) +
    +
    returns a KValueSelector instance
    + + + +
    ArgumentTypeDefault
    oOrientation
    parentQWidget0
    namechar0
    +

  • +
  • drawContents (painter) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    painterQPainter
    +

  • +
  • drawPalette (pixmap) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    pixmapQPixmap
    +

  • +
  • hue () +
    +
    returns (int)

  • +
  • resizeEvent (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QResizeEvent
    +

  • +
  • saturation () +
    +
    returns (int)

  • +
  • setHue (h) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    hint
    +

  • +
  • setSaturation (s) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    sint
    +

  • +
  • updateContents () +
    +
    returns nothing

  • +
+ + + diff --git a/doc/classref/kdeui/KWidgetAction.html b/doc/classref/kdeui/KWidgetAction.html new file mode 100644 index 0000000..0b94496 --- /dev/null +++ b/doc/classref/kdeui/KWidgetAction.html @@ -0,0 +1,133 @@ + + + + + class KWidgetAction + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KWidgetAction


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKWidgetAction
InheritsKAction
+

methods

    +
  • KWidgetAction (a0, a1, a2, slot, a5, a6) +
    + +
    returns a KWidgetAction instance
    In versions KDE 3.1.0 and above, but less than KDE 3.2.0
    + + + + + + +
    ArgumentTypeDefault
    a0QWidget
    a1QString
    a2KShortcut
    slotSLOT (Python callable)
    a5KActionCollection
    a6char
    +

  • +
  • KWidgetAction (widget, text, cut, slot, parent, name) +
    + +
    returns a KWidgetAction instance
    In versions KDE 3.2.0 and above only
    + + + + + + +
    ArgumentTypeDefault
    widgetQWidget
    textQString
    cutKShortcut
    slotSLOT (Python callable)
    parentKActionCollection
    namechar
    +

  • +
  • plug (a0, a1 = -1) +
    + +
    returns (int)
    In versions KDE 3.1.0 and above, but less than KDE 3.2.0
    + + +
    ArgumentTypeDefault
    a0QWidget
    a1int-1
    +

  • +
  • plug (widget, index = -1) +
    + +
    returns (int)
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    widgetQWidget
    indexint-1
    +

  • +
  • setAutoSized (a0) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above, but less than KDE 3.2.0
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • setAutoSized (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • slotToolbarDestroyed () +
    + +
    returns nothing
    In versions KDE 3.1.0 and above, but less than KDE 3.2.0

  • +
  • slotToolbarDestroyed () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • unplug (a0) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above, but less than KDE 3.2.0
    + +
    ArgumentTypeDefault
    a0QWidget
    +

  • +
  • unplug (w) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    wQWidget
    +

  • +
  • virtual_hook (a0, a1) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above, but less than KDE 3.2.0
    + + +
    ArgumentTypeDefault
    a0int
    a1void
    +

  • +
  • widget () +
    + +
    returns (QWidget)
    In versions KDE 3.1.0 and above, but less than KDE 3.2.0

  • +
  • widget () +
    + +
    returns (QWidget)
    In versions KDE 3.2.0 and above only

  • +
+ + + diff --git a/doc/classref/kdeui/KWindowInfo.html b/doc/classref/kdeui/KWindowInfo.html new file mode 100644 index 0000000..ce058f9 --- /dev/null +++ b/doc/classref/kdeui/KWindowInfo.html @@ -0,0 +1,144 @@ + + + + + class KWindowInfo + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KWindowInfo


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKWindowInfo
InheritsQObject
+

methods

    +
  • KWindowInfo (parent, name = 0) +
    + +
    returns a KWindowInfo instance
    In versions KDE 3.1.0 and above only
    + + +
    ArgumentTypeDefault
    parentQWidget
    namechar0
    +

  • +
  • autoDelete () +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above only

  • +
  • display (text, pix) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + + +
    ArgumentTypeDefault
    textQString
    pixQPixmap
    +

  • +
  • message (text) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    textQString
    +

  • +
  • message (text, pix) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + + +
    ArgumentTypeDefault
    textQString
    pixQPixmap
    +

  • +
  • message (text, timeout) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + + +
    ArgumentTypeDefault
    textQString
    timeoutint
    +

  • +
  • message (text, pix, timeout) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + + + +
    ArgumentTypeDefault
    textQString
    pixQPixmap
    timeoutint
    +

  • +
  • permanent (text) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    textQString
    +

  • +
  • permanent (text, pix) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + + +
    ArgumentTypeDefault
    textQString
    pixQPixmap
    +

  • +
  • restore () +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only

  • +
  • save () +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only

  • +
  • setAutoDelete (enable) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    enablebool
    +

  • +
  • showMessage (window, text, timeout = -1) +
    + + +
    returns nothing
    In versions KDE 3.1.0 and above only
    static
    + + + +
    ArgumentTypeDefault
    windowQWidget
    textQString
    timeoutint-1
    +

  • +
  • showMessage (window, text, pix, timeout = -1) +
    + + +
    returns nothing
    In versions KDE 3.1.0 and above only
    static
    + + + + +
    ArgumentTypeDefault
    windowQWidget
    textQString
    pixQPixmap
    timeoutint-1
    +

  • +
+ + + diff --git a/doc/classref/kdeui/KWindowListMenu.html b/doc/classref/kdeui/KWindowListMenu.html new file mode 100644 index 0000000..fd96cc9 --- /dev/null +++ b/doc/classref/kdeui/KWindowListMenu.html @@ -0,0 +1,67 @@ + + + + + class KWindowListMenu + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KWindowListMenu


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKWindowListMenu
InheritsKPopupMenu
+

methods

    +
  • KWindowListMenu (parent = 0, name = 0) +
    +
    returns a KWindowListMenu instance
    + + +
    ArgumentTypeDefault
    parentQWidget0
    namechar0
    +

  • +
  • init () +
    +
    returns nothing

  • +
  • selectActiveWindow () +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only

  • +
  • slotCascadeWindows () +
    +
    returns nothing

  • +
  • slotExec (id) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    idint
    +

  • +
  • slotUnclutterWindows () +
    +
    returns nothing

  • +
+ + + diff --git a/doc/classref/kdeui/KWizard.html b/doc/classref/kdeui/KWizard.html new file mode 100644 index 0000000..b284886 --- /dev/null +++ b/doc/classref/kdeui/KWizard.html @@ -0,0 +1,50 @@ + + + + + class KWizard + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KWizard


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKWizard
InheritsQWizard
+

methods

    +
  • KWizard (parent = 0, name = 0, modal = 0, f = 0) +
    +
    returns a KWizard instance
    + + + + +
    ArgumentTypeDefault
    parentQWidget0
    namechar0
    modalbool0
    fWFlags0
    +

  • +
+ + + diff --git a/doc/classref/kdeui/KWordWrap.html b/doc/classref/kdeui/KWordWrap.html new file mode 100644 index 0000000..6721f90 --- /dev/null +++ b/doc/classref/kdeui/KWordWrap.html @@ -0,0 +1,108 @@ + + + + + class KWordWrap + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KWordWrap


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKWordWrap
Inherits
+

enums

    +
  • (anonymous) = {FadeOut, Truncate +}
  • (anonymous) = {FadeOut +}
+

methods

    +
  • KWordWrap (r) +
    + +
    returns a KWordWrap instance
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    rQRect
    +

  • +
  • boundingRect () +
    +
    returns (QRect)

  • +
  • drawFadeoutText (p, x, y, maxW, t) +
    + + +
    returns nothing
    In versions KDE 3.2.0 and above only
    static
    + + + + + +
    ArgumentTypeDefault
    pQPainter
    xint
    yint
    maxWint
    tQString
    +

  • +
  • drawText (painter, x, y, flags = Qt .AlignAuto) +
    +
    returns nothing
    + + + + +
    ArgumentTypeDefault
    painterQPainter
    xint
    yint
    flagsintQt .AlignAuto
    +

  • +
  • drawTruncateText (p, x, y, maxW, t) +
    + + +
    returns nothing
    In versions KDE 3.3.0 and above only
    static
    + + + + + +
    ArgumentTypeDefault
    pQPainter
    xint
    yint
    maxWint
    tQString
    +

  • +
  • formatText (fm, r, flags, str, len = -1) +
    + +
    returns (KWordWrap)
    static
    + + + + + +
    ArgumentTypeDefault
    fmQFontMetrics
    rQRect
    flagsint
    strQString
    lenint-1
    +

  • +
  • truncatedString (dots = 1) +
    +
    returns (QString)
    + +
    ArgumentTypeDefault
    dotsbool1
    +

  • +
  • wrappedString () +
    +
    returns (QString)

  • +
+ + + diff --git a/doc/classref/kdeui/KWritePermsIcon.html b/doc/classref/kdeui/KWritePermsIcon.html new file mode 100644 index 0000000..9c3ab08 --- /dev/null +++ b/doc/classref/kdeui/KWritePermsIcon.html @@ -0,0 +1,65 @@ + + + + + class KWritePermsIcon + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KWritePermsIcon


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKWritePermsIcon
InheritsKAuthIcon
+

methods

    +
  • KWritePermsIcon (fileName, parent = 0, name = 0) +
    +
    returns a KWritePermsIcon instance
    + + + +
    ArgumentTypeDefault
    fileNameQString
    parentQWidget0
    namechar0
    +

  • +
  • fileName () +
    + +
    returns (QString)
    In versions KDE 3.4.0 and above only

  • +
  • setFileName (fileName) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    fileNameQString
    +

  • +
  • status () +
    +
    returns (bool)

  • +
  • updateStatus () +
    +
    returns nothing

  • +
+ + + diff --git a/doc/classref/kdeui/KXMLGUIBuilder.html b/doc/classref/kdeui/KXMLGUIBuilder.html new file mode 100644 index 0000000..b5d880b --- /dev/null +++ b/doc/classref/kdeui/KXMLGUIBuilder.html @@ -0,0 +1,107 @@ + + + + + class KXMLGUIBuilder + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KXMLGUIBuilder


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKXMLGUIBuilder
Inherits
+

methods

    +
  • KXMLGUIBuilder (widget) +
    +
    returns a KXMLGUIBuilder instance
    + +
    ArgumentTypeDefault
    widgetQWidget
    +

  • +
  • builderClient () +
    +
    returns (KXMLGUIClient)

  • +
  • builderInstance () +
    +
    returns (KInstance)

  • +
  • containerTags () +
    +
    returns (QStringList)

  • +
  • createContainer (parent, index, element) +
    Not Implemented
    +

  • +
  • createCustomElement (parent, index, element) +
    +
    returns (int)
    + + + +
    ArgumentTypeDefault
    parentQWidget
    indexint
    elementQDomElement
    +

  • +
  • customTags () +
    +
    returns (QStringList)

  • +
  • finalizeGUI (client) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    clientKXMLGUIClient
    +

  • +
  • removeContainer (container, parent, element, id) +
    +
    returns nothing
    + + + + +
    ArgumentTypeDefault
    containerQWidget
    parentQWidget
    elementQDomElement
    idint
    +

  • +
  • removeCustomElement (parent, id) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    parentQWidget
    idint
    +

  • +
  • setBuilderClient (client) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    clientKXMLGUIClient
    +

  • +
  • setBuilderInstance (instance) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    instanceKInstance
    +

  • +
  • widget () +
    +
    returns (QWidget)

  • +
+ + + diff --git a/doc/classref/kdeui/KXMLGUIClient.StateChange.html b/doc/classref/kdeui/KXMLGUIClient.StateChange.html new file mode 100644 index 0000000..dc53727 --- /dev/null +++ b/doc/classref/kdeui/KXMLGUIClient.StateChange.html @@ -0,0 +1,44 @@ + + + + + class KXMLGUIClient.StateChange + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KXMLGUIClient.StateChange


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKXMLGUIClient.StateChange
Inherits
+

variables

  • +variables + + +
    VariableType
    actionsToDisableQStringList
    actionsToEnableQStringList
+ + + diff --git a/doc/classref/kdeui/KXMLGUIClient.html b/doc/classref/kdeui/KXMLGUIClient.html new file mode 100644 index 0000000..40729f6 --- /dev/null +++ b/doc/classref/kdeui/KXMLGUIClient.html @@ -0,0 +1,231 @@ + + + + + class KXMLGUIClient + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KXMLGUIClient


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKXMLGUIClient
Inherits
+

enums

    +
  • ReverseStateChange = {StateNoReverse, StateReverse +}
+

methods

    +
  • KXMLGUIClient () +
    +
    returns a KXMLGUIClient instance

  • +
  • KXMLGUIClient (parent) +
    +
    returns a KXMLGUIClient instance
    + +
    ArgumentTypeDefault
    parentKXMLGUIClient
    +

  • +
  • action (name) +
    +
    returns (KAction)
    + +
    ArgumentTypeDefault
    namechar
    +

  • +
  • action (element) +
    +
    returns (KAction)
    + +
    ArgumentTypeDefault
    elementQDomElement
    +

  • +
  • actionCollection () +
    +
    returns (KActionCollection)

  • +
  • addStateActionDisabled (state, action) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    stateQString
    actionQString
    +

  • +
  • addStateActionEnabled (state, action) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    stateQString
    actionQString
    +

  • +
  • beginXMLPlug (a0) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    a0QWidget
    +

  • +
  • childClients () +
    +
    returns (QPtrList)

  • +
  • clientBuilder () +
    +
    returns (KXMLGUIBuilder)

  • +
  • conserveMemory () +
    +
    returns nothing

  • +
  • domDocument () +
    +
    returns (QDomDocument)

  • +
  • endXMLPlug () +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only

  • +
  • factory () +
    +
    returns (KXMLGUIFactory)

  • +
  • findMostRecentXMLFile (files, doc) +
    + +
    returns (QString)
    static
    + + +
    ArgumentTypeDefault
    filesQStringList
    docQString
    +

  • +
  • getActionsToChangeForState (state) +
    +
    returns (KXMLGUIClient.StateChange)
    + +
    ArgumentTypeDefault
    stateQString
    +

  • +
  • insertChildClient (child) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    childKXMLGUIClient
    +

  • +
  • instance () +
    +
    returns (KInstance)

  • +
  • localXMLFile () +
    +
    returns (QString)

  • +
  • parentClient () +
    +
    returns (KXMLGUIClient)

  • +
  • plugActionList (name, actionList) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    nameQString
    actionListQPtrList
    +

  • +
  • prepareXMLUnplug (a0) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    a0QWidget
    +

  • +
  • reloadXML () +
    +
    returns nothing

  • +
  • removeChildClient (child) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    childKXMLGUIClient
    +

  • +
  • setClientBuilder (builder) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    builderKXMLGUIBuilder
    +

  • +
  • setDOMDocument (document, merge = 0) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    documentQDomDocument
    mergebool0
    +

  • +
  • setFactory (factory) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    factoryKXMLGUIFactory
    +

  • +
  • setInstance (instance) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    instanceKInstance
    +

  • +
  • setLocalXMLFile (file) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    fileQString
    +

  • +
  • setXML (document, merge = 0) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    documentQString
    mergebool0
    +

  • +
  • setXMLFile (file, merge = 0, setXMLDoc = 1) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    fileQString
    mergebool0
    setXMLDocbool1
    +

  • +
  • setXMLGUIBuildDocument (doc) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    docQDomDocument
    +

  • +
  • stateChanged (newstate, reverse = StateNoReverse) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    newstateQString
    reverseKXMLGUIClient.ReverseStateChangeStateNoReverse
    +

  • +
  • unplugActionList (name) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    nameQString
    +

  • +
  • xmlFile () +
    +
    returns (QString)

  • +
  • xmlguiBuildDocument () +
    +
    returns (QDomDocument)

  • +
+ + + diff --git a/doc/classref/kdeui/KXMLGUIFactory.html b/doc/classref/kdeui/KXMLGUIFactory.html new file mode 100644 index 0000000..4614b72 --- /dev/null +++ b/doc/classref/kdeui/KXMLGUIFactory.html @@ -0,0 +1,188 @@ + + + + + class KXMLGUIFactory + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KXMLGUIFactory


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKXMLGUIFactory
InheritsQObject
+

methods

    +
  • KXMLGUIFactory (builder, parent = 0, name = 0) +
    +
    returns a KXMLGUIFactory instance
    + + + +
    ArgumentTypeDefault
    builderKXMLGUIBuilder
    parentQObject0
    namechar0
    +

  • +
  • actionPropertiesElement (doc) +
    + + +
    returns (QDomElement)
    In versions KDE 3.3.0 and above only
    static
    + +
    ArgumentTypeDefault
    docQDomDocument
    +

  • +
  • addClient (client) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    clientKXMLGUIClient
    +

  • +
  • clientAdded (client) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    clientKXMLGUIClient
    +

  • +
  • clientRemoved (client) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    clientKXMLGUIClient
    +

  • +
  • clients () +
    +
    returns (QPtrList)

  • +
  • configureShortcuts (bAllowLetterShortcuts = 1, bSaveSettings = 1) +
    + +
    returns (int)
    In versions KDE 3.3.0 and above only
    + + +
    ArgumentTypeDefault
    bAllowLetterShortcutsbool1
    bSaveSettingsbool1
    +

  • +
  • container (containerName, client, useTagName = 0) +
    +
    returns (QWidget)
    + + + +
    ArgumentTypeDefault
    containerNameQString
    clientKXMLGUIClient
    useTagNamebool0
    +

  • +
  • containers (tagName) +
    +
    returns (QPtrList)
    + +
    ArgumentTypeDefault
    tagNameQString
    +

  • +
  • documentToXML (doc) +
    + +
    returns (QString)
    static
    + +
    ArgumentTypeDefault
    docQDomDocument
    +

  • +
  • elementToXML (elem) +
    + +
    returns (QString)
    static
    + +
    ArgumentTypeDefault
    elemQDomElement
    +

  • +
  • findActionByName (elem, sName, create) +
    + + +
    returns (QDomElement)
    In versions KDE 3.3.0 and above only
    static
    + + + +
    ArgumentTypeDefault
    elemQDomElement
    sNameQString
    createbool
    +

  • +
  • plugActionList (client, name, actionList) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    clientKXMLGUIClient
    nameQString
    actionListQPtrList
    +

  • +
  • readConfigFile (filename, never_null, instance = 0) +
    + +
    returns (QString)
    static
    + + + +
    ArgumentTypeDefault
    filenameQString
    never_nullbool
    instanceKInstance0
    +

  • +
  • readConfigFile (filename, instance = 0) +
    + +
    returns (QString)
    static
    + + +
    ArgumentTypeDefault
    filenameQString
    instanceKInstance0
    +

  • +
  • removeClient (client) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    clientKXMLGUIClient
    +

  • +
  • removeDOMComments (node) +
    + +
    returns nothing
    static
    + +
    ArgumentTypeDefault
    nodeQDomNode
    +

  • +
  • reset () +
    +
    returns nothing

  • +
  • resetContainer (containerName, useTagName = 0) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    containerNameQString
    useTagNamebool0
    +

  • +
  • saveConfigFile (doc, filename, instance = 0) +
    + +
    returns (bool)
    static
    + + + +
    ArgumentTypeDefault
    docQDomDocument
    filenameQString
    instanceKInstance0
    +

  • +
  • unplugActionList (client, name) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    clientKXMLGUIClient
    nameQString
    +

  • +
+ + + diff --git a/doc/classref/kdeui/KXYSelector.html b/doc/classref/kdeui/KXYSelector.html new file mode 100644 index 0000000..3152d99 --- /dev/null +++ b/doc/classref/kdeui/KXYSelector.html @@ -0,0 +1,141 @@ + + + + + class KXYSelector + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KXYSelector


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassKXYSelector
InheritsQWidget
+

methods

    +
  • KXYSelector (parent = 0, name = 0) +
    +
    returns a KXYSelector instance
    + + +
    ArgumentTypeDefault
    parentQWidget0
    namechar0
    +

  • +
  • contentsRect () +
    +
    returns (QRect)

  • +
  • drawContents (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QPainter
    +

  • +
  • drawCursor (p, xp, yp) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    pQPainter
    xpint
    ypint
    +

  • +
  • mouseMoveEvent (e) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    eQMouseEvent
    +

  • +
  • mousePressEvent (e) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    eQMouseEvent
    +

  • +
  • paintEvent (e) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    eQPaintEvent
    +

  • +
  • setRange (minX, minY, maxX, maxY) +
    +
    returns nothing
    + + + + +
    ArgumentTypeDefault
    minXint
    minYint
    maxXint
    maxYint
    +

  • +
  • setValues (xPos, yPos) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    xPosint
    yPosint
    +

  • +
  • setXValue (xPos) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    xPosint
    +

  • +
  • setYValue (yPos) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    yPosint
    +

  • +
  • valueChanged (x, y) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    xint
    yint
    +

  • +
  • valuesFromPosition (x, y) +
    + +
    returns xVal (int) yVal (int)
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    xint
    yint
    +

  • +
  • wheelEvent (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0QWheelEvent
    +

  • +
  • xValue () +
    +
    returns (int)

  • +
  • yValue () +
    +
    returns (int)

  • +
+ + + diff --git a/doc/classref/kdeui/QXEmbed.html b/doc/classref/kdeui/QXEmbed.html new file mode 100644 index 0000000..086a23e --- /dev/null +++ b/doc/classref/kdeui/QXEmbed.html @@ -0,0 +1,196 @@ + + + + + class QXEmbed + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class QXEmbed


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+ + + + + + + + + + +
Modulekdeui
ClassQXEmbed
InheritsQWidget
+

enums

    +
  • Protocol = {XEMBED, XPLAIN +}
+

methods

    +
  • QXEmbed (parent = 0, name = 0, f = 0) +
    +
    returns a QXEmbed instance
    + + + +
    ArgumentTypeDefault
    parentQWidget0
    namechar0
    fWFlags0
    +

  • +
  • autoDelete () +
    +
    returns (bool)

  • +
  • customWhatsThis () +
    +
    returns (bool)

  • +
  • embed (w) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    wWId
    +

  • +
  • embedClientIntoWindow (client, window) +
    + +
    returns nothing
    static
    + + +
    ArgumentTypeDefault
    clientQWidget
    windowWId
    +

  • +
  • embeddedWinId () +
    +
    returns (WId)

  • +
  • embeddedWindowDestroyed () +
    +
    returns nothing

  • +
  • enterWhatsThisMode () +
    +
    returns nothing

  • +
  • event (a0) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    a0QEvent
    +

  • +
  • eventFilter (a0, a1) +
    +
    returns (bool)
    + + +
    ArgumentTypeDefault
    a0QObject
    a1QEvent
    +

  • +
  • focusInEvent (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QFocusEvent
    +

  • +
  • focusNextPrevChild (next) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    nextbool
    +

  • +
  • focusOutEvent (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QFocusEvent
    +

  • +
  • initialize () +
    + +
    returns nothing
    static

  • +
  • keyPressEvent (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QKeyEvent
    +

  • +
  • keyReleaseEvent (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QKeyEvent
    +

  • +
  • minimumSizeHint () +
    +
    returns (QSize)

  • +
  • processClientCmdline (list (a Python list of strings)) +
    + +
    returns ,
    static
    + +
    ArgumentTypeDefault
    list (a Python list of strings)ndex (int
    +

  • +
  • protocol () +
    + +
    returns (QXEmbed.Protocol)
    In versions KDE 3.1.1 and above only

  • +
  • reparent (parent, f, p, showIt = 0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + + + + +
    ArgumentTypeDefault
    parentQWidget
    fWFlags
    pQPoint
    showItbool0
    +

  • +
  • resizeEvent (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QResizeEvent
    +

  • +
  • sendDelete () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • setAutoDelete (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • setProtocol (proto) +
    + +
    returns nothing
    In versions KDE 3.1.1 and above only
    + +
    ArgumentTypeDefault
    protoQXEmbed.Protocol
    +

  • +
  • showEvent (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QShowEvent
    +

  • +
  • sizeHint () +
    +
    returns (QSize)

  • +
  • sizePolicy () +
    +
    returns (QSizePolicy)

  • +
  • windowChanged (w) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    wWId
    +

  • +
  • x11Event (a0) +
    Not Implemented
    +

  • +
+ + + diff --git a/doc/classref/kdeui/index.html b/doc/classref/kdeui/index.html new file mode 100644 index 0000000..73b5c5a --- /dev/null +++ b/doc/classref/kdeui/index.html @@ -0,0 +1,213 @@ + + + + + module kdeui + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

kdeui Class Index


+
+ + + + +
Table of contents
Modules
All Classes
+
+ kdeui Global and Namespace members

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
KAboutApplication - KDualColorButton
KAboutApplication
KAboutContainer
KAboutContributor
KAboutDialog
KAboutKDE
KAboutWidget
KAction
KActionCollection
KActionMenu
KActionPtrShortcutList
KActionSelector
KActionSeparator
KActionShortcutList
KActiveLabel
KAnimWidget
KArrowButton
KAuthIcon
KBugReport
KButtonBox
KCModule
KCharSelect
KCharSelectTable
KColor
KColorCells
KColorCombo
KColorDialog
KColorDrag
KColorPatch
KComboBox
KCommand
KCommandHistory
KCompletionBox
KConfigDialog
KContextMenuManager
KCursor
KDCOPActionProxy
KDateInternalMonthPicker
KDateInternalWeekSelector
KDateInternalYearSelector
KDatePicker
KDateTable
KDateTimeWidget
KDateValidator
KDateWidget
KDialog
KDialogBase
KDialogQueue
KDockArea
KDockMainWindow
KDockManager
KDockTabGroup
KDockWidget
KDockWidgetAbstractHeader
KDockWidgetAbstractHeaderDrag
KDockWidgetHeader
KDockWidgetHeaderDrag
KDoubleNumInput
KDoubleSpinBox
KDoubleValidator
KDualColorButton
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
KEdFind - KPixmapIO
KEdFind
KEdGotoLine
KEdReplace
KEdit
KEditListBox
KEditListBox.CustomEditor
KEditToolbar
KEditToolbarWidget
KFloatValidator
KFontAction
KFontChooser
KFontCombo
KFontDialog
KFontRequester
KFontSizeAction
KGradientSelector
KGuiItem
KHSSelector
KHelpMenu
KHistoryCombo
KIconView
KIconViewItem
KIconViewSearchLine
KInputDialog
KIntNumInput
KIntSpinBox
KIntValidator
KJanusWidget
KKeyButton
KKeyChooser
KKeyDialog
KLanguageButton
KLed
KLineEdit
KLineEditDlg
KListAction
KListBox
KListView
KListViewItem
KListViewSearchLine
KListViewSearchLineWidget
KMacroCommand
KMainWindow
KMainWindowInterface
KMenuBar
KMessageBox
KMimeTypeValidator
KNamedCommand
KNumInput
KPaletteTable
KPanelAppMenu
KPanelApplet
KPanelExtension
KPanelMenu
KPassivePopup
KPasswordDialog
KPasswordEdit
KPasteTextAction
KPixmapIO
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
KPixmapRegionSelectorDialog - QXEmbed
KPixmapRegionSelectorDialog
KPixmapRegionSelectorWidget
KPopupFrame
KPopupMenu
KPopupTitle
KProgress
KProgressDialog
KPushButton
KRadioAction
KRecentFilesAction
KRestrictedLine
KRootPermsIcon
KRootPixmap
KRuler
KScrollView
KSelectAction
KSelector
KSeparator
KShortcutDialog
KSplashScreen
KSqueezedTextLabel
KStatusBar
KStatusBarLabel
KStdAction
KStdGuiItem
KStringListValidator
KSystemTray
KTabBar
KTabCtl
KTabWidget
KTextBrowser
KTextEdit
KTimeWidget
KTimezoneWidget
KTipDatabase
KTipDialog
KToggleAction
KToggleFullScreenAction
KToggleToolBarAction
KToolBar
KToolBarButton
KToolBarLabelAction
KToolBarPopupAction
KToolBarRadioGroup
KToolBarSeparator
KURLLabel
KValueSelector
KWidgetAction
KWindowInfo
KWindowListMenu
KWizard
KWordWrap
KWritePermsIcon
KXMLGUIBuilder
KXMLGUIClient
KXMLGUIClient.StateChange
KXMLGUIFactory
KXYSelector
QXEmbed
+ + diff --git a/doc/classref/kdeui/kdeui-globals.html b/doc/classref/kdeui/kdeui-globals.html new file mode 100644 index 0000000..43aa5f2 --- /dev/null +++ b/doc/classref/kdeui/kdeui-globals.html @@ -0,0 +1,36 @@ + + + + + kdeui globals + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

kdeui Globals


+
+ + + + + +
Table of contents
Modules
kdeui Classes
All Classes
+
+

global methods

    +
  • testKActionList (list) +
    +
    returns (QPtrList),
    + +
    ArgumentTypeDefault
    listQPtrList
    +

  • +
+ + + diff --git a/doc/classref/kfile/KAppTreeListItem.html b/doc/classref/kfile/KAppTreeListItem.html new file mode 100644 index 0000000..c814901 --- /dev/null +++ b/doc/classref/kfile/KAppTreeListItem.html @@ -0,0 +1,101 @@ + + + + + class KAppTreeListItem + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KAppTreeListItem


+
+ + + + + +
Table of contents
Modules
kfile Classes
All Classes
+
+ + + + + + + + + + +
Modulekfile
ClassKAppTreeListItem
InheritsQListViewItem
+

methods

    +
  • KAppTreeListItem (a0, a1, a2, a3, a4, a5, a6) +
    + +
    returns a KAppTreeListItem instance
    In versions less than KDE 3.1.0 only
    + + + + + + + +
    ArgumentTypeDefault
    a0KListView
    a1QString
    a2QPixmap
    a3bool
    a4bool
    a5QString
    a6QString
    +

  • +
  • KAppTreeListItem (a0, a1, a2, a3, a4, a5, a6) +
    + +
    returns a KAppTreeListItem instance
    In versions less than KDE 3.1.0 only
    + + + + + + + +
    ArgumentTypeDefault
    a0QListViewItem
    a1QString
    a2QPixmap
    a3bool
    a4bool
    a5QString
    a6QString
    +

  • +
  • activate () +
    + +
    returns nothing
    In versions less than KDE 3.1.0 only

  • +
  • init (a0, a1, a2, a3, a4) +
    + +
    returns nothing
    In versions less than KDE 3.1.0 only
    + + + + + +
    ArgumentTypeDefault
    a0QPixmap
    a1bool
    a2bool
    a3QString
    a4QString
    +

  • +
  • isDirectory () +
    + +
    returns (bool)
    In versions less than KDE 3.1.0 only

  • +
  • key (a0, a1) +
    + +
    returns (QString)
    In versions less than KDE 3.1.0 only
    + + +
    ArgumentTypeDefault
    a0int
    a1bool
    +

  • +
  • setOpen (a0) +
    + +
    returns nothing
    In versions less than KDE 3.1.0 only
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
+ + + diff --git a/doc/classref/kfile/KApplicationPropsPlugin.html b/doc/classref/kfile/KApplicationPropsPlugin.html new file mode 100644 index 0000000..5005f80 --- /dev/null +++ b/doc/classref/kfile/KApplicationPropsPlugin.html @@ -0,0 +1,63 @@ + + + + + class KApplicationPropsPlugin + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KApplicationPropsPlugin


+
+ + + + + +
Table of contents
Modules
kfile Classes
All Classes
+
+ + + + + + + + + + +
Modulekfile
ClassKApplicationPropsPlugin
InheritsKPropsDlgPlugin
+

methods

    +
  • KApplicationPropsPlugin (_props) +
    +
    returns a KApplicationPropsPlugin instance
    + +
    ArgumentTypeDefault
    _propsKPropertiesDialog
    +

  • +
  • applyChanges () +
    +
    returns nothing

  • +
  • slotAddExtension () +
    +
    returns nothing

  • +
  • slotDelExtension () +
    +
    returns nothing

  • +
  • supports (_items) +
    + +
    returns (bool)
    static
    + +
    ArgumentTypeDefault
    _itemsKFileItemList
    +

  • +
+ + + diff --git a/doc/classref/kfile/KApplicationTree.html b/doc/classref/kfile/KApplicationTree.html new file mode 100644 index 0000000..650fff0 --- /dev/null +++ b/doc/classref/kfile/KApplicationTree.html @@ -0,0 +1,101 @@ + + + + + class KApplicationTree + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KApplicationTree


+
+ + + + + +
Table of contents
Modules
kfile Classes
All Classes
+
+ + + + + + + + + + +
Modulekfile
ClassKApplicationTree
InheritsKListView
+

methods

    +
  • KApplicationTree (a0) +
    + +
    returns a KApplicationTree instance
    In versions less than KDE 3.1.0 only
    + +
    ArgumentTypeDefault
    a0QWidget
    +

  • +
  • addDesktopGroup (a0, a1 = 0) +
    + +
    returns nothing
    In versions less than KDE 3.1.0 only
    + + +
    ArgumentTypeDefault
    a0QString
    a1KAppTreeListItem0
    +

  • +
  • highlighted (a0, a1) +
    + +
    returns nothing
    In versions less than KDE 3.1.0 only
    + + +
    ArgumentTypeDefault
    a0QString
    a1QString
    +

  • +
  • isDirSel () +
    + +
    returns (bool)
    In versions less than KDE 3.1.0 only

  • +
  • resizeEvent (a0) +
    + +
    returns nothing
    In versions less than KDE 3.1.0 only
    + +
    ArgumentTypeDefault
    a0QResizeEvent
    +

  • +
  • selected (a0, a1) +
    + +
    returns nothing
    In versions less than KDE 3.1.0 only
    + + +
    ArgumentTypeDefault
    a0QString
    a1QString
    +

  • +
  • slotItemHighlighted (a0) +
    + +
    returns nothing
    In versions less than KDE 3.1.0 only
    + +
    ArgumentTypeDefault
    a0QListViewItem
    +

  • +
  • slotSelectionChanged (a0) +
    + +
    returns nothing
    In versions less than KDE 3.1.0 only
    + +
    ArgumentTypeDefault
    a0QListViewItem
    +

  • +
+

variables

  • +variables + +
    VariableType
    itKAppTreeListItem*
+ + + diff --git a/doc/classref/kfile/KBindingPropsPlugin.html b/doc/classref/kfile/KBindingPropsPlugin.html new file mode 100644 index 0000000..2120862 --- /dev/null +++ b/doc/classref/kfile/KBindingPropsPlugin.html @@ -0,0 +1,57 @@ + + + + + class KBindingPropsPlugin + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KBindingPropsPlugin


+
+ + + + + +
Table of contents
Modules
kfile Classes
All Classes
+
+ + + + + + + + + + +
Modulekfile
ClassKBindingPropsPlugin
InheritsKPropsDlgPlugin
+

methods

    +
  • KBindingPropsPlugin (_props) +
    +
    returns a KBindingPropsPlugin instance
    + +
    ArgumentTypeDefault
    _propsKPropertiesDialog
    +

  • +
  • applyChanges () +
    +
    returns nothing

  • +
  • supports (_items) +
    + +
    returns (bool)
    static
    + +
    ArgumentTypeDefault
    _itemsKFileItemList
    +

  • +
+ + + diff --git a/doc/classref/kfile/KCombiView.html b/doc/classref/kfile/KCombiView.html new file mode 100644 index 0000000..77cb74e --- /dev/null +++ b/doc/classref/kfile/KCombiView.html @@ -0,0 +1,202 @@ + + + + + class KCombiView + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KCombiView


+
+ + + + + +
Table of contents
Modules
kfile Classes
All Classes
+
+ + + + + + + + + + +
Modulekfile
ClassKCombiView
InheritsQSplitter, KFileView
+

methods

    +
  • KCombiView (parent, name) +
    +
    returns a KCombiView instance
    + + +
    ArgumentTypeDefault
    parentQWidget
    namechar
    +

  • +
  • actionCollection () +
    + +
    returns (KActionCollection)
    In versions KDE 3.1.0 and above only

  • +
  • clear () +
    +
    returns nothing

  • +
  • clearSelection () +
    +
    returns nothing

  • +
  • clearView () +
    +
    returns nothing

  • +
  • currentFileItem () +
    +
    returns (KFileItem)

  • +
  • ensureItemVisible (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KFileItem
    +

  • +
  • eventFilter (o, e) +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    oQObject
    eQEvent
    +

  • +
  • firstFileItem () +
    +
    returns (KFileItem)

  • +
  • insertItem (i) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    iKFileItem
    +

  • +
  • invertSelection () +
    +
    returns nothing

  • +
  • isSelected (a0) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    a0KFileItem
    +

  • +
  • listingCompleted () +
    +
    returns nothing

  • +
  • nextItem (a0) +
    +
    returns (KFileItem)
    + +
    ArgumentTypeDefault
    a0KFileItem
    +

  • +
  • prevItem (a0) +
    +
    returns (KFileItem)
    + +
    ArgumentTypeDefault
    a0KFileItem
    +

  • +
  • readConfig (a0, group = QString .null) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + + +
    ArgumentTypeDefault
    a0KConfig
    groupQStringQString .null
    +

  • +
  • removeItem (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KFileItem
    +

  • +
  • selectAll () +
    +
    returns nothing

  • +
  • setAcceptDrops (b) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    bbool
    +

  • +
  • setCurrentItem (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KFileItem
    +

  • +
  • setDropOptions_impl (options) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    optionsint
    +

  • +
  • setRight (view) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    viewKFileView
    +

  • +
  • setSelected (a0, a1) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    a0KFileItem
    a1bool
    +

  • +
  • setSelectionMode (sm) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    smKFile.SelectionMode
    +

  • +
  • setSorting (sort) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    sortQDir.SortSpec
    +

  • +
  • slotSortingChanged (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QDir.SortSpec
    +

  • +
  • updateView (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • updateView (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KFileItem
    +

  • +
  • widget () +
    +
    returns (QWidget)

  • +
  • writeConfig (a0, group = QString .null) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + + +
    ArgumentTypeDefault
    a0KConfig
    groupQStringQString .null
    +

  • +
+ + + diff --git a/doc/classref/kfile/KCustomMenuEditor.html b/doc/classref/kfile/KCustomMenuEditor.html new file mode 100644 index 0000000..0f8ce6e --- /dev/null +++ b/doc/classref/kfile/KCustomMenuEditor.html @@ -0,0 +1,82 @@ + + + + + class KCustomMenuEditor + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KCustomMenuEditor


+
+ + + + + +
Table of contents
Modules
kfile Classes
All Classes
+
+ + + + + + + + + + +
Modulekfile
ClassKCustomMenuEditor
InheritsKDialogBase
+

methods

    +
  • KCustomMenuEditor (parent) +
    + +
    returns a KCustomMenuEditor instance
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    parentQWidget
    +

  • +
  • load (a0) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    a0KConfigBase
    +

  • +
  • refreshButton () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • save (a0) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    a0KConfigBase
    +

  • +
  • slotMoveDown () +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only

  • +
  • slotMoveUp () +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only

  • +
  • slotNewItem () +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only

  • +
  • slotRemoveItem () +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only

  • +
+ + + diff --git a/doc/classref/kfile/KDesktopPropsPlugin.html b/doc/classref/kfile/KDesktopPropsPlugin.html new file mode 100644 index 0000000..4179cc1 --- /dev/null +++ b/doc/classref/kfile/KDesktopPropsPlugin.html @@ -0,0 +1,80 @@ + + + + + class KDesktopPropsPlugin + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KDesktopPropsPlugin


+
+ + + + + +
Table of contents
Modules
kfile Classes
All Classes
+
+ + + + + + + + + + +
Modulekfile
ClassKDesktopPropsPlugin
InheritsKPropsDlgPlugin
+

methods

    +
  • KDesktopPropsPlugin (_props) +
    + +
    returns a KDesktopPropsPlugin instance
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    _propsKPropertiesDialog
    +

  • +
  • applyChanges () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • slotAddFiletype () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • slotAdvanced () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • slotBrowseExec () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • slotDelFiletype () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • slotSelectMimetype () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • supports (_items) +
    + + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    static
    + +
    ArgumentTypeDefault
    _itemsKFileItemList
    +

  • +
+ + + diff --git a/doc/classref/kfile/KDevicePropsPlugin.html b/doc/classref/kfile/KDevicePropsPlugin.html new file mode 100644 index 0000000..d4c4440 --- /dev/null +++ b/doc/classref/kfile/KDevicePropsPlugin.html @@ -0,0 +1,57 @@ + + + + + class KDevicePropsPlugin + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KDevicePropsPlugin


+
+ + + + + +
Table of contents
Modules
kfile Classes
All Classes
+
+ + + + + + + + + + +
Modulekfile
ClassKDevicePropsPlugin
InheritsKPropsDlgPlugin
+

methods

    +
  • KDevicePropsPlugin (_props) +
    +
    returns a KDevicePropsPlugin instance
    + +
    ArgumentTypeDefault
    _propsKPropertiesDialog
    +

  • +
  • applyChanges () +
    +
    returns nothing

  • +
  • supports (_items) +
    + +
    returns (bool)
    static
    + +
    ArgumentTypeDefault
    _itemsKFileItemList
    +

  • +
+ + + diff --git a/doc/classref/kfile/KDirOperator.html b/doc/classref/kfile/KDirOperator.html new file mode 100644 index 0000000..227fff1 --- /dev/null +++ b/doc/classref/kfile/KDirOperator.html @@ -0,0 +1,520 @@ + + + + + class KDirOperator + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KDirOperator


+
+ + + + + +
Table of contents
Modules
kfile Classes
All Classes
+
+ + + + + + + + + + +
Modulekfile
ClassKDirOperator
InheritsQWidget
+

enums

    +
  • ActionTypes = {SortActions, ViewActions, NavActions, FileActions, AllActions +}
+

methods

    +
  • KDirOperator (urlName = KURL (), parent = 0, name = 0) +
    +
    returns a KDirOperator instance
    + + + +
    ArgumentTypeDefault
    urlNameKURLKURL ()
    parentQWidget0
    namechar0
    +

  • +
  • actionCollection () +
    +
    returns (KActionCollection)

  • +
  • activatedMenu (a0, pos) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    a0KFileItem
    posQPoint
    +

  • +
  • back () +
    +
    returns nothing

  • +
  • cdUp () +
    +
    returns nothing

  • +
  • checkPreviewSupport () +
    +
    returns (bool)

  • +
  • clearFilter () +
    + +
    returns nothing
    In versions KDE 3.1.2 and above only

  • +
  • clearHistory () +
    +
    returns nothing

  • +
  • close () +
    +
    returns nothing

  • +
  • close (alsoDelete) +
    + +
    returns (bool)
    In versions KDE 3.4.0 and above only
    + +
    ArgumentTypeDefault
    alsoDeletebool
    +

  • +
  • completion (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • completionObject () +
    +
    returns (KCompletion)

  • +
  • createView (parent, view) +
    +
    returns (KFileView)
    + + +
    ArgumentTypeDefault
    parentQWidget
    viewKFile.FileView
    +

  • +
  • del_ (items, ask = 1, showProgress = 1) +
    + +
    returns (KIO.DeleteJob)
    Renamed: was ' del +' in C++
    + + + +
    ArgumentTypeDefault
    itemsKFileItemList
    askbool1
    showProgressbool1
    +

  • +
  • del_ (items, parent, ask = 1, showProgress = 1) +
    + + +
    returns (KIO.DeleteJob)
    Renamed: was ' del' in C++
    In versions KDE 3.0.3 and above only
    + + + + +
    ArgumentTypeDefault
    itemsKFileItemList
    parentQWidget
    askbool1
    showProgressbool1
    +

  • +
  • deleteSelected () +
    +
    returns nothing

  • +
  • dirActivated (item) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    itemKFileItem
    +

  • +
  • dirCompletionObject () +
    +
    returns (KCompletion)

  • +
  • dirHighlighting () +
    +
    returns (bool)

  • +
  • dirLister () +
    +
    returns (KDirLister)

  • +
  • dirOnlyMode () +
    +
    returns (bool)

  • +
  • dirOnlyMode (mode) +
    + +
    returns (bool)
    static
    + +
    ArgumentTypeDefault
    modeuint
    +

  • +
  • dropped (item, event, urls) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + + + +
    ArgumentTypeDefault
    itemKFileItem
    eventQDropEvent
    urlsKURL.List
    +

  • +
  • fileHighlighted (item) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    itemKFileItem
    +

  • +
  • fileSelected (item) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    itemKFileItem
    +

  • +
  • finishedLoading () +
    +
    returns nothing

  • +
  • forward () +
    +
    returns nothing

  • +
  • highlightFile (i) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    iKFileItem
    +

  • +
  • home () +
    +
    returns nothing

  • +
  • insertNewFiles (newone) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    newoneKFileItemList
    +

  • +
  • isRoot () +
    +
    returns (bool)

  • +
  • isSelected (item) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    itemKFileItem
    +

  • +
  • itemDeleted (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KFileItem
    +

  • +
  • makeCompletion (a0) +
    +
    returns (QString)
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • makeDirCompletion (a0) +
    +
    returns (QString)
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • mimeFilter () +
    + +
    returns (QStringList)
    In versions KDE 3.1.2 and above only

  • +
  • mkdir (directory, enterDirectory = 1) +
    +
    returns (bool)
    + + +
    ArgumentTypeDefault
    directoryQString
    enterDirectorybool1
    +

  • +
  • mkdir () +
    +
    returns nothing

  • +
  • mode () +
    +
    returns (KFile.Mode)

  • +
  • nameFilter () +
    +
    returns (QString)

  • +
  • numDirs () +
    +
    returns (int)

  • +
  • numFiles () +
    +
    returns (int)

  • +
  • onlyDoubleClickSelectsFiles () +
    +
    returns (bool)

  • +
  • pathChanged () +
    +
    returns nothing

  • +
  • prepareCompletionObjects () +
    +
    returns nothing

  • +
  • progressBar () +
    +
    returns (KProgress)

  • +
  • readConfig (a0, group = QString .null) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    a0KConfig
    groupQStringQString .null
    +

  • +
  • rereadDir () +
    +
    returns nothing

  • +
  • resetCursor () +
    +
    returns nothing

  • +
  • resizeEvent (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0QResizeEvent
    +

  • +
  • resizeEvent (a0) +
    + +
    returns nothing
    In versions less than KDE 3.2.0 only
    + +
    ArgumentTypeDefault
    a0QResizeEvent
    +

  • +
  • selectDir (item) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    itemKFileItem
    +

  • +
  • selectFile (item) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    itemKFileItem
    +

  • +
  • selectedItems () +
    +
    returns (KFileItemList)

  • +
  • setAcceptDrops (b) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    bbool
    +

  • +
  • setCurrentItem (filename) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    filenameQString
    +

  • +
  • setDirLister (lister) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    listerKDirLister
    +

  • +
  • setDropOptions (options) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    optionsint
    +

  • +
  • setEnableDirHighlighting (enable) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    enablebool
    +

  • +
  • setMimeFilter (mimetypes) +
    + +
    returns nothing
    In versions KDE 3.1.2 and above only
    + +
    ArgumentTypeDefault
    mimetypesQStringList
    +

  • +
  • setMode (m) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    mKFile.Mode
    +

  • +
  • setNameFilter (filter) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    filterQString
    +

  • +
  • setOnlyDoubleClickSelectsFiles (enable) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    enablebool
    +

  • +
  • setPreviewWidget (w) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    wQWidget
    +

  • +
  • setShowHiddenFiles (s) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    sbool
    +

  • +
  • setSorting (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QDir.SortSpec
    +

  • +
  • setURL (url, clearforward) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    urlKURL
    clearforwardbool
    +

  • +
  • setView (view) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    viewKFileView
    +

  • +
  • setView (view) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    viewKFile.FileView
    +

  • +
  • setViewConfig (config, group) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + + +
    ArgumentTypeDefault
    configKConfig
    groupQString
    +

  • +
  • setupActions () +
    +
    returns nothing

  • +
  • setupMenu (whichActions) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    whichActionsint
    +

  • +
  • setupMenu () +
    +
    returns nothing

  • +
  • showHiddenFiles () +
    +
    returns (bool)

  • +
  • slotCompletionMatch (match) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    matchQString
    +

  • +
  • sortByDate () +
    +
    returns nothing

  • +
  • sortByName () +
    +
    returns nothing

  • +
  • sortBySize () +
    +
    returns nothing

  • +
  • sortReversed () +
    +
    returns nothing

  • +
  • sorting () +
    +
    returns (QDir.SortSpec)

  • +
  • toggleDirsFirst () +
    +
    returns nothing

  • +
  • toggleIgnoreCase () +
    +
    returns nothing

  • +
  • trash (items, parent, ask = 1, showProgress = 1) +
    + +
    returns (KIO.CopyJob)
    In versions KDE 3.4.0 and above only
    + + + + +
    ArgumentTypeDefault
    itemsKFileItemList
    parentQWidget
    askbool1
    showProgressbool1
    +

  • +
  • trashSelected (a0, a1) +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only
    + + +
    ArgumentTypeDefault
    a0KAction.ActivationReason
    a1Qt.ButtonState
    +

  • +
  • updateDir () +
    +
    returns nothing

  • +
  • updateInformation (files, dirs) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    filesint
    dirsint
    +

  • +
  • updateSelectionDependentActions () +
    +
    returns nothing

  • +
  • updateSortActions () +
    +
    returns nothing

  • +
  • updateViewActions () +
    +
    returns nothing

  • +
  • url () +
    +
    returns (KURL)

  • +
  • urlEntered (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KURL
    +

  • +
  • view () +
    +
    returns (KFileView)

  • +
  • viewChanged (newView) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    newViewKFileView
    +

  • +
  • viewConfig () +
    + +
    returns (KConfig)
    In versions KDE 3.1.0 and above only

  • +
  • viewConfigGroup () +
    + +
    returns (QString)
    In versions KDE 3.1.0 and above only

  • +
  • viewWidget () +
    +
    returns (QWidget)

  • +
  • writeConfig (a0, group = QString .null) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    a0KConfig
    groupQStringQString .null
    +

  • +
+ + + diff --git a/doc/classref/kfile/KDirSelectDialog.html b/doc/classref/kfile/KDirSelectDialog.html new file mode 100644 index 0000000..a8f802b --- /dev/null +++ b/doc/classref/kfile/KDirSelectDialog.html @@ -0,0 +1,89 @@ + + + + + class KDirSelectDialog + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KDirSelectDialog


+
+ + + + + +
Table of contents
Modules
kfile Classes
All Classes
+
+ + + + + + + + + + +
Modulekfile
ClassKDirSelectDialog
InheritsKDialogBase
+

methods

    +
  • KDirSelectDialog (startDir = QString .null, localOnly = 0, parent = 0, name = 0, modal = 0) +
    +
    returns a KDirSelectDialog instance
    + + + + + +
    ArgumentTypeDefault
    startDirQStringQString .null
    localOnlybool0
    parentQWidget0
    namechar0
    modalbool0
    +

  • +
  • accept () +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only

  • +
  • localOnly () +
    +
    returns (bool)

  • +
  • selectDirectory (startDir = QString .null, localOnly = 0, parent = 0, caption = QString .null) +
    + +
    returns (KURL)
    static
    + + + + +
    ArgumentTypeDefault
    startDirQStringQString .null
    localOnlybool0
    parentQWidget0
    captionQStringQString .null
    +

  • +
  • setCurrentURL (url) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    urlKURL
    +

  • +
  • slotUser1 () +
    + +
    returns nothing
    In versions KDE 3.5.0 and above only

  • +
  • startDir () +
    + +
    returns (QString)
    In versions KDE 3.1.0 and above only

  • +
  • url () +
    +
    returns (KURL)

  • +
  • view () +
    +
    returns (KFileTreeView)

  • +
+ + + diff --git a/doc/classref/kfile/KDirSize.html b/doc/classref/kfile/KDirSize.html new file mode 100644 index 0000000..186a180 --- /dev/null +++ b/doc/classref/kfile/KDirSize.html @@ -0,0 +1,128 @@ + + + + + class KDirSize + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KDirSize


+
+ + + + + +
Table of contents
Modules
kfile Classes
All Classes
+
+ + + + + + + + + + +
Modulekfile
ClassKDirSize
InheritsKIO.Job
+

methods

    +
  • KDirSize (directory) +
    +
    returns a KDirSize instance
    + +
    ArgumentTypeDefault
    directoryKURL
    +

  • +
  • KDirSize (lstItems) +
    +
    returns a KDirSize instance
    + +
    ArgumentTypeDefault
    lstItemsKFileItemList
    +

  • +
  • dirSize (directory) +
    + + +
    returns (KIO.filesize_t)
    In versions KDE 3.1.2 and above only
    static
    + +
    ArgumentTypeDefault
    directoryKURL
    +

  • +
  • dirSize (a0) +
    + + +
    returns (ulong)
    In versions less than KDE 3.1.2 only
    static
    + +
    ArgumentTypeDefault
    a0KURL
    +

  • +
  • dirSize64 (a0) +
    Not Implemented
    +

  • +
  • dirSizeJob (directory) +
    + +
    returns (KDirSize)
    static
    + +
    ArgumentTypeDefault
    directoryKURL
    +

  • +
  • dirSizeJob (lstItems) +
    + +
    returns (KDirSize)
    static
    + +
    ArgumentTypeDefault
    lstItemsKFileItemList
    +

  • +
  • processList () +
    +
    returns nothing

  • +
  • setSync () +
    +
    returns nothing

  • +
  • slotEntries (a0, a1) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    a0KIO.Job
    a1KIO.UDSEntryList
    +

  • +
  • slotResult (job) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    jobKIO.Job
    +

  • +
  • startNextJob (url) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    urlKURL
    +

  • +
  • totalFiles () +
    + +
    returns (KIO.filesize_t)
    In versions KDE 3.3.0 and above only

  • +
  • totalSize () +
    +
    returns (KIO.filesize_t)

  • +
  • totalSize64 () +
    Not Implemented
    +

  • +
  • totalSubdirs () +
    + +
    returns (KIO.filesize_t)
    In versions KDE 3.3.0 and above only

  • +
  • ~KDirSize () +
    +
    returns nothing

  • +
+ + + diff --git a/doc/classref/kfile/KDiskFreeSp.html b/doc/classref/kfile/KDiskFreeSp.html new file mode 100644 index 0000000..dbc3d06 --- /dev/null +++ b/doc/classref/kfile/KDiskFreeSp.html @@ -0,0 +1,81 @@ + + + + + class KDiskFreeSp + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KDiskFreeSp


+
+ + + + + +
Table of contents
Modules
kfile Classes
All Classes
+
+ + + + + + + + + + +
Modulekfile
ClassKDiskFreeSp
InheritsQObject
+

methods

    +
  • KDiskFreeSp (parent = 0, name = 0) +
    + +
    returns a KDiskFreeSp instance
    In versions KDE 3.1.0 and above only
    + + +
    ArgumentTypeDefault
    parentQObject0
    namechar0
    +

  • +
  • done () +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only

  • +
  • findUsageInfo (path) +
    + + +
    returns (KDiskFreeSp)
    In versions KDE 3.1.0 and above only
    static
    + +
    ArgumentTypeDefault
    pathQString
    +

  • +
  • foundMountPoint (mountPoint, kBSize, kBUsed, kBAvail) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + + + + +
    ArgumentTypeDefault
    mountPointQString
    kBSizeulong
    kBUsedulong
    kBAvailulong
    +

  • +
  • foundMountPoint (a3) +
    Not Implemented
    +

  • +
  • readDF (mountPoint) +
    + +
    returns (int)
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    mountPointQString
    +

  • +
+ + + diff --git a/doc/classref/kfile/KEncodingFileDialog.Result.html b/doc/classref/kfile/KEncodingFileDialog.Result.html new file mode 100644 index 0000000..eb401c9 --- /dev/null +++ b/doc/classref/kfile/KEncodingFileDialog.Result.html @@ -0,0 +1,45 @@ + + + + + class KEncodingFileDialog.Result + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KEncodingFileDialog.Result


+
+ + + + + +
Table of contents
Modules
kfile Classes
All Classes
+
+ + + + + + + + + + +
Modulekfile
ClassKEncodingFileDialog.Result
Inherits
+

variables

  • +variables + + + +
    VariableType
    URLsKURL::List
    encodingQString
    fileNamesQStringList
+ + + diff --git a/doc/classref/kfile/KEncodingFileDialog.html b/doc/classref/kfile/KEncodingFileDialog.html new file mode 100644 index 0000000..2603aca --- /dev/null +++ b/doc/classref/kfile/KEncodingFileDialog.html @@ -0,0 +1,139 @@ + + + + + class KEncodingFileDialog + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KEncodingFileDialog


+
+ + + + + +
Table of contents
Modules
kfile Classes
All Classes
+
+ + + + + + + + + + +
Modulekfile
ClassKEncodingFileDialog
InheritsKFileDialog
+

methods

    +
  • KEncodingFileDialog (startDir = QString .null, encoding = QString .null, filter = QString .null, caption = QString .null, type = KFileDialog .Opening, parent = 0, name = "", modal = 1) +
    + +
    returns a KEncodingFileDialog instance
    In versions KDE 3.2.0 and above only
    + + + + + + + + +
    ArgumentTypeDefault
    startDirQStringQString .null
    encodingQStringQString .null
    filterQStringQString .null
    captionQStringQString .null
    typeKFileDialog.OperationModeKFileDialog .Opening
    parentQWidget0
    namechar""
    modalbool1
    +

  • +
  • getOpenFileNameAndEncoding (encoding = QString .null, startDir = QString .null, filter = QString .null, parent = 0, caption = QString .null) +
    + + +
    returns (KEncodingFileDialog.Result)
    In versions KDE 3.2.0 and above only
    static
    + + + + + +
    ArgumentTypeDefault
    encodingQStringQString .null
    startDirQStringQString .null
    filterQStringQString .null
    parentQWidget0
    captionQStringQString .null
    +

  • +
  • getOpenFileNamesAndEncoding (encoding = QString .null, startDir = QString .null, filter = QString .null, parent = 0, caption = QString .null) +
    + + +
    returns (KEncodingFileDialog.Result)
    In versions KDE 3.2.0 and above only
    static
    + + + + + +
    ArgumentTypeDefault
    encodingQStringQString .null
    startDirQStringQString .null
    filterQStringQString .null
    parentQWidget0
    captionQStringQString .null
    +

  • +
  • getOpenURLAndEncoding (encoding = QString .null, startDir = QString .null, filter = QString .null, parent = 0, caption = QString .null) +
    + + +
    returns (KEncodingFileDialog.Result)
    In versions KDE 3.2.0 and above only
    static
    + + + + + +
    ArgumentTypeDefault
    encodingQStringQString .null
    startDirQStringQString .null
    filterQStringQString .null
    parentQWidget0
    captionQStringQString .null
    +

  • +
  • getOpenURLsAndEncoding (encoding = QString .null, startDir = QString .null, filter = QString .null, parent = 0, caption = QString .null) +
    + + +
    returns (KEncodingFileDialog.Result)
    In versions KDE 3.2.0 and above only
    static
    + + + + + +
    ArgumentTypeDefault
    encodingQStringQString .null
    startDirQStringQString .null
    filterQStringQString .null
    parentQWidget0
    captionQStringQString .null
    +

  • +
  • getSaveFileNameAndEncoding (encoding = QString .null, startDir = QString .null, filter = QString .null, parent = 0, caption = QString .null) +
    + + +
    returns (KEncodingFileDialog.Result)
    In versions KDE 3.2.0 and above only
    static
    + + + + + +
    ArgumentTypeDefault
    encodingQStringQString .null
    startDirQStringQString .null
    filterQStringQString .null
    parentQWidget0
    captionQStringQString .null
    +

  • +
  • getSaveURLAndEncoding (encoding = QString .null, startDir = QString .null, filter = QString .null, parent = 0, caption = QString .null) +
    + + +
    returns (KEncodingFileDialog.Result)
    In versions KDE 3.2.0 and above only
    static
    + + + + + +
    ArgumentTypeDefault
    encodingQStringQString .null
    startDirQStringQString .null
    filterQStringQString .null
    parentQWidget0
    captionQStringQString .null
    +

  • +
  • selectedEncoding () +
    + +
    returns (QString)
    In versions KDE 3.2.0 and above only

  • +
  • virtual_hook (id, data) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    idint
    datavoid
    +

  • +
+ + + diff --git a/doc/classref/kfile/KExecPropsPlugin.html b/doc/classref/kfile/KExecPropsPlugin.html new file mode 100644 index 0000000..2e5f55a --- /dev/null +++ b/doc/classref/kfile/KExecPropsPlugin.html @@ -0,0 +1,60 @@ + + + + + class KExecPropsPlugin + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KExecPropsPlugin


+
+ + + + + +
Table of contents
Modules
kfile Classes
All Classes
+
+ + + + + + + + + + +
Modulekfile
ClassKExecPropsPlugin
InheritsKPropsDlgPlugin
+

methods

    +
  • KExecPropsPlugin (_props) +
    +
    returns a KExecPropsPlugin instance
    + +
    ArgumentTypeDefault
    _propsKPropertiesDialog
    +

  • +
  • applyChanges () +
    +
    returns nothing

  • +
  • slotBrowseExec () +
    +
    returns nothing

  • +
  • supports (_items) +
    + +
    returns (bool)
    static
    + +
    ArgumentTypeDefault
    _itemsKFileItemList
    +

  • +
+ + + diff --git a/doc/classref/kfile/KFile.html b/doc/classref/kfile/KFile.html new file mode 100644 index 0000000..9248330 --- /dev/null +++ b/doc/classref/kfile/KFile.html @@ -0,0 +1,108 @@ + + + + + class KFile + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KFile


+
+ + + + + +
Table of contents
Modules
kfile Classes
All Classes
+
+ + + + + + + + + + +
Modulekfile
ClassKFile
Inherits
+

enums

    +
  • FileView = {Default, Simple, Detail, SeparateDirs, PreviewContents, PreviewInfo, FileViewMax +}
  • FileView = {Default, Simple, Detail, SeparateDirs, PreviewContents, PreviewInfo +}
  • Mode = {File, Directory, Files, ExistingOnly, LocalOnly, ModeMax +}
  • Mode = {File, Directory, Files, ExistingOnly, LocalOnly +}
  • SelectionMode = {Single, Multi, Extended, NoSelection +}
+

methods

    +
  • isDefaultView () +
    + +
    returns (bool) view (KFile.FileView)
    static

  • +
  • isDetailView () +
    + +
    returns (bool) view (KFile.FileView)
    static

  • +
  • isPreviewContents () +
    + +
    returns (bool) view (KFile.FileView)
    static

  • +
  • isPreviewInfo () +
    + + +
    returns (bool) view (KFile.FileView)
    In versions KDE 3.1.0 and above only
    static

  • +
  • isSeparateDirs () +
    + +
    returns (bool) view (KFile.FileView)
    static

  • +
  • isSimpleView () +
    + +
    returns (bool) view (KFile.FileView)
    static

  • +
  • isSortByDate (sort) +
    + +
    returns (bool)
    static
    + +
    ArgumentTypeDefault
    sortQDir.SortSpec
    +

  • +
  • isSortByName (sort) +
    + +
    returns (bool)
    static
    + +
    ArgumentTypeDefault
    sortQDir.SortSpec
    +

  • +
  • isSortBySize (sort) +
    + +
    returns (bool)
    static
    + +
    ArgumentTypeDefault
    sortQDir.SortSpec
    +

  • +
  • isSortCaseInsensitive (sort) +
    + +
    returns (bool)
    static
    + +
    ArgumentTypeDefault
    sortQDir.SortSpec
    +

  • +
  • isSortDirsFirst (sort) +
    + +
    returns (bool)
    static
    + +
    ArgumentTypeDefault
    sortQDir.SortSpec
    +

  • +
+ + + diff --git a/doc/classref/kfile/KFileDetailView.html b/doc/classref/kfile/KFileDetailView.html new file mode 100644 index 0000000..6180498 --- /dev/null +++ b/doc/classref/kfile/KFileDetailView.html @@ -0,0 +1,274 @@ + + + + + class KFileDetailView + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KFileDetailView


+
+ + + + + +
Table of contents
Modules
kfile Classes
All Classes
+
+ + + + + + + + + + +
Modulekfile
ClassKFileDetailView
InheritsKListView, KFileView
+

methods

    +
  • KFileDetailView (parent, name) +
    +
    returns a KFileDetailView instance
    + + +
    ArgumentTypeDefault
    parentQWidget
    namechar
    +

  • +
  • acceptDrag (e) +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    eQDropEvent
    +

  • +
  • clearSelection () +
    +
    returns nothing

  • +
  • clearView () +
    +
    returns nothing

  • +
  • contentsDragEnterEvent (e) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    eQDragEnterEvent
    +

  • +
  • contentsDragLeaveEvent (e) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    eQDragLeaveEvent
    +

  • +
  • contentsDragMoveEvent (e) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    eQDragMoveEvent
    +

  • +
  • contentsDropEvent (ev) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    evQDropEvent
    +

  • +
  • currentFileItem () +
    +
    returns (KFileItem)

  • +
  • determineIcon (item) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    itemKFileListViewItem
    +

  • +
  • dragObject () +
    + +
    returns (QDragObject)
    In versions KDE 3.2.0 and above only

  • +
  • dropped (event, fileItem) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    eventQDropEvent
    fileItemKFileItem
    +

  • +
  • dropped (event, urls, url) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + + + +
    ArgumentTypeDefault
    eventQDropEvent
    urlsKURL.List
    urlKURL
    +

  • +
  • ensureItemVisible (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KFileItem
    +

  • +
  • firstFileItem () +
    +
    returns (KFileItem)

  • +
  • highlighted (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QListViewItem
    +

  • +
  • insertItem (i) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    iKFileItem
    +

  • +
  • invertSelection () +
    +
    returns nothing

  • +
  • isSelected (i) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    iKFileItem
    +

  • +
  • keyPressEvent (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QKeyEvent
    +

  • +
  • listingCompleted () +
    +
    returns nothing

  • +
  • mimeTypeDeterminationFinished () +
    +
    returns nothing

  • +
  • nextItem (a0) +
    +
    returns (KFileItem)
    + +
    ArgumentTypeDefault
    a0KFileItem
    +

  • +
  • prevItem (a0) +
    +
    returns (KFileItem)
    + +
    ArgumentTypeDefault
    a0KFileItem
    +

  • +
  • readConfig (a0, group = QString .null) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    a0KConfig
    groupQStringQString .null
    +

  • +
  • removeItem (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KFileItem
    +

  • +
  • rightButtonPressed (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QListViewItem
    +

  • +
  • scrollWidget () +
    +
    returns (QScrollView)

  • +
  • selectAll () +
    +
    returns nothing

  • +
  • selected (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QListViewItem
    +

  • +
  • setAutoUpdate (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • setCurrentItem (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KFileItem
    +

  • +
  • setSelected (a0, a1) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    a0KFileItem
    a1bool
    +

  • +
  • setSelectionMode (sm) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    smKFile.SelectionMode
    +

  • +
  • setSorting (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QDir.SortSpec
    +

  • +
  • slotDoubleClicked (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QListViewItem
    +

  • +
  • slotSelectionChanged () +
    +
    returns nothing

  • +
  • slotSortingChanged (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • updateView (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • updateView (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KFileItem
    +

  • +
  • widget () +
    +
    returns (QWidget)

  • +
  • writeConfig (a0, group = QString .null) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    a0KConfig
    groupQStringQString .null
    +

  • +
+ + + diff --git a/doc/classref/kfile/KFileDialog.html b/doc/classref/kfile/KFileDialog.html new file mode 100644 index 0000000..87ab88c --- /dev/null +++ b/doc/classref/kfile/KFileDialog.html @@ -0,0 +1,543 @@ + + + + + class KFileDialog + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KFileDialog


+
+ + + + + +
Table of contents
Modules
kfile Classes
All Classes
+
+ + + + + + + + + + +
Modulekfile
ClassKFileDialog
InheritsKDialogBase
+

enums

    +
  • OperationMode = {Other, Opening, Saving +}
+

methods

    +
  • KFileDialog (startDir, filter, parent, name, modal) +
    +
    returns a KFileDialog instance
    + + + + + +
    ArgumentTypeDefault
    startDirQString
    filterQString
    parentQWidget
    namechar
    modalbool
    +

  • +
  • KFileDialog (startDir, filter, parent, name, modal, widget) +
    + +
    returns a KFileDialog instance
    In versions KDE 3.1.0 and above only
    + + + + + + +
    ArgumentTypeDefault
    startDirQString
    filterQString
    parentQWidget
    namechar
    modalbool
    widgetQWidget
    +

  • +
  • KFileDialog (a0) +
    +
    returns a KFileDialog instance
    + +
    ArgumentTypeDefault
    a0KFileDialog
    +

  • +
  • accept () +
    +
    returns nothing

  • +
  • actionCollection () +
    +
    returns (KActionCollection)

  • +
  • addDirEntry (a0, a1) +
    Not Implemented
    +

  • +
  • addToRecentDocuments () +
    +
    returns nothing

  • +
  • baseURL () +
    +
    returns (KURL)

  • +
  • cancelButton () +
    +
    returns (KPushButton)

  • +
  • clearFilter () +
    +
    returns nothing

  • +
  • currentFilter () +
    +
    returns (QString)

  • +
  • currentFilterExtension () +
    + +
    returns (QString)
    In versions KDE 3.2.0 and above only

  • +
  • currentFilterMimeType () +
    +
    returns (KMimeType.Ptr)

  • +
  • currentMimeFilter () +
    +
    returns (QString)

  • +
  • dirCompletion (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • enterURL (url) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    urlKURL
    +

  • +
  • enterURL (url) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    urlQString
    +

  • +
  • fileCompletion (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • fileHighlighted (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • fileHighlighted (i) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    iKFileItem
    +

  • +
  • fileSelected (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • fileSelected (i) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    iKFileItem
    +

  • +
  • filterChanged (filter) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    filterQString
    +

  • +
  • getCompleteURL (a0) +
    + +
    returns (KURL)
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • getExistingDirectory (startDir = QString .null, parent = 0, caption = QString .null) +
    + +
    returns (QString)
    static
    + + + +
    ArgumentTypeDefault
    startDirQStringQString .null
    parentQWidget0
    captionQStringQString .null
    +

  • +
  • getExistingURL (startDir = QString .null, parent = 0, caption = QString .null) +
    + + +
    returns (KURL)
    In versions KDE 3.1.0 and above only
    static
    + + + +
    ArgumentTypeDefault
    startDirQStringQString .null
    parentQWidget0
    captionQStringQString .null
    +

  • +
  • getImageOpenURL (startDir = QString .null, parent = 0, caption = QString .null) +
    + +
    returns (KURL)
    static
    + + + +
    ArgumentTypeDefault
    startDirQStringQString .null
    parentQWidget0
    captionQStringQString .null
    +

  • +
  • getOpenFileName (startDir = QString .null, filter = QString .null, parent = 0, caption = QString .null) +
    + +
    returns (QString)
    static
    + + + + +
    ArgumentTypeDefault
    startDirQStringQString .null
    filterQStringQString .null
    parentQWidget0
    captionQStringQString .null
    +

  • +
  • getOpenFileNameWId (startDir, filter, parent_id, caption) +
    + + +
    returns (QString)
    In versions KDE 3.4.0 and above only
    static
    + + + + +
    ArgumentTypeDefault
    startDirQString
    filterQString
    parent_idWId
    captionQString
    +

  • +
  • getOpenFileNames (startDir = QString .null, filter = QString .null, parent = 0, caption = QString .null) +
    + +
    returns (QStringList)
    static
    + + + + +
    ArgumentTypeDefault
    startDirQStringQString .null
    filterQStringQString .null
    parentQWidget0
    captionQStringQString .null
    +

  • +
  • getOpenURL (startDir = QString .null, filter = QString .null, parent = 0, caption = QString .null) +
    + +
    returns (KURL)
    static
    + + + + +
    ArgumentTypeDefault
    startDirQStringQString .null
    filterQStringQString .null
    parentQWidget0
    captionQStringQString .null
    +

  • +
  • getOpenURLs (startDir = QString .null, filter = QString .null, parent = 0, caption = QString .null) +
    + +
    returns (KURL.List)
    static
    + + + + +
    ArgumentTypeDefault
    startDirQStringQString .null
    filterQStringQString .null
    parentQWidget0
    captionQStringQString .null
    +

  • +
  • getSaveFileName (startDir = QString .null, filter = QString .null, parent = 0, caption = QString .null) +
    + +
    returns (QString)
    static
    + + + + +
    ArgumentTypeDefault
    startDirQStringQString .null
    filterQStringQString .null
    parentQWidget0
    captionQStringQString .null
    +

  • +
  • getSaveFileNameWId (dir, filter, parent_id, caption) +
    + + +
    returns (QString)
    In versions KDE 3.4.0 and above only
    static
    + + + + +
    ArgumentTypeDefault
    dirQString
    filterQString
    parent_idWId
    captionQString
    +

  • +
  • getSaveURL (startDir = QString .null, filter = QString .null, parent = 0, caption = QString .null) +
    + +
    returns (KURL)
    static
    + + + + +
    ArgumentTypeDefault
    startDirQStringQString .null
    filterQStringQString .null
    parentQWidget0
    captionQStringQString .null
    +

  • +
  • getStartURL (startDir, recentDirClass) +
    + + +
    returns (KURL)
    In versions KDE 3.1.0 and above only
    static
    + + +
    ArgumentTypeDefault
    startDirQString
    recentDirClassQString
    +

  • +
  • init (startDir, filter, widget) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + + + +
    ArgumentTypeDefault
    startDirQString
    filterQString
    widgetQWidget
    +

  • +
  • initGUI () +
    +
    returns nothing

  • +
  • initSpeedbar () +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only

  • +
  • keepsLocation () +
    +
    returns (bool)

  • +
  • keyPressEvent (e) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    eQKeyEvent
    +

  • +
  • locationActivated (url) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    urlQString
    +

  • +
  • mode () +
    +
    returns (KFile.Mode)

  • +
  • multiSelectionChanged () +
    +
    returns nothing

  • +
  • okButton () +
    +
    returns (KPushButton)

  • +
  • operationMode () +
    +
    returns (KFileDialog.OperationMode)

  • +
  • parseSelectedURLs () +
    +
    returns (KURL.List)

  • +
  • pathComboChanged (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • pathComboIndex () +
    + +
    returns (int)
    In versions KDE 3.1.0 and above only

  • +
  • readConfig (a0, group = QString .null) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    a0KConfig
    groupQStringQString .null
    +

  • +
  • readRecentFiles (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KConfig
    +

  • +
  • saveRecentFiles (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KConfig
    +

  • +
  • selectedFile () +
    +
    returns (QString)

  • +
  • selectedFiles () +
    +
    returns (QStringList)

  • +
  • selectedURL () +
    +
    returns (KURL)

  • +
  • selectedURLs () +
    +
    returns (KURL.List)

  • +
  • selectionChanged () +
    +
    returns nothing

  • +
  • setFilter (filter) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    filterQString
    +

  • +
  • setFilterMimeType (label, types, defaultType) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    labelQString
    typesKMimeType.List
    defaultTypeKMimeType.Ptr
    +

  • +
  • setKeepLocation (keep) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    keepbool
    +

  • +
  • setLocationLabel (text) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    textQString
    +

  • +
  • setMimeFilter (types, defaultType = QString .null) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    typesQStringList
    defaultTypeQStringQString .null
    +

  • +
  • setMode (m) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    mKFile.Mode
    +

  • +
  • setMode (m) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    muint
    +

  • +
  • setOperationMode (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KFileDialog.OperationMode
    +

  • +
  • setPreviewWidget (w) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    wQWidget
    +

  • +
  • setPreviewWidget (w) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    wKPreviewWidgetBase
    +

  • +
  • setSelection (name) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    nameQString
    +

  • +
  • setStartDir (directory) +
    + + +
    returns nothing
    In versions KDE 3.2.0 and above only
    static
    + +
    ArgumentTypeDefault
    directoryKURL
    +

  • +
  • setURL (url, clearforward = 1) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    urlKURL
    clearforwardbool1
    +

  • +
  • show () +
    +
    returns nothing

  • +
  • slotAutoSelectExtClicked () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • slotCancel () +
    +
    returns nothing

  • +
  • slotFilterChanged () +
    +
    returns nothing

  • +
  • slotLoadingFinished () +
    +
    returns nothing

  • +
  • slotOk () +
    +
    returns nothing

  • +
  • slotStatResult (job) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    jobKIO.Job
    +

  • +
  • speedBar () +
    + +
    returns (KURLBar)
    In versions KDE 3.2.0 and above only

  • +
  • toggleBookmarks (show) +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only
    + +
    ArgumentTypeDefault
    showbool
    +

  • +
  • toggleSpeedbar (a0) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • tokenize (line) +
    +
    returns (KURL.List)
    + +
    ArgumentTypeDefault
    lineQString
    +

  • +
  • toolBar () +
    +
    returns (KToolBar)

  • +
  • toolbarCallback (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • updateAutoSelectExtension () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • updateStatusLine (dirs, files) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    dirsint
    filesint
    +

  • +
  • urlEntered (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KURL
    +

  • +
  • writeConfig (a0, group = QString .null) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    a0KConfig
    groupQStringQString .null
    +

  • +
+ + + diff --git a/doc/classref/kfile/KFileFilterCombo.html b/doc/classref/kfile/KFileFilterCombo.html new file mode 100644 index 0000000..e90d631 --- /dev/null +++ b/doc/classref/kfile/KFileFilterCombo.html @@ -0,0 +1,93 @@ + + + + + class KFileFilterCombo + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KFileFilterCombo


+
+ + + + + +
Table of contents
Modules
kfile Classes
All Classes
+
+ + + + + + + + + + +
Modulekfile
ClassKFileFilterCombo
InheritsKComboBox
+

methods

    +
  • KFileFilterCombo (parent = 0, name = 0) +
    +
    returns a KFileFilterCombo instance
    + + +
    ArgumentTypeDefault
    parentQWidget0
    namechar0
    +

  • +
  • currentFilter () +
    +
    returns (QString)

  • +
  • defaultFilter () +
    +
    returns (QString)

  • +
  • eventFilter (o, e) +
    +
    returns (bool)
    + + +
    ArgumentTypeDefault
    oQObject
    eQEvent
    +

  • +
  • filterChanged () +
    +
    returns nothing

  • +
  • setCurrentFilter (filter) +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only
    + +
    ArgumentTypeDefault
    filterQString
    +

  • +
  • setDefaultFilter (filter) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    filterQString
    +

  • +
  • setFilter (filter) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    filterQString
    +

  • +
  • setMimeFilter (types, defaultType) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    typesQStringList
    defaultTypeQString
    +

  • +
  • showsAllTypes () +
    +
    returns (bool)

  • +
+ + + diff --git a/doc/classref/kfile/KFileIconView.html b/doc/classref/kfile/KFileIconView.html new file mode 100644 index 0000000..da25fb1 --- /dev/null +++ b/doc/classref/kfile/KFileIconView.html @@ -0,0 +1,306 @@ + + + + + class KFileIconView + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KFileIconView


+
+ + + + + +
Table of contents
Modules
kfile Classes
All Classes
+
+ + + + + + + + + + +
Modulekfile
ClassKFileIconView
InheritsKIconView, KFileView
+

methods

    +
  • KFileIconView (parent, name) +
    +
    returns a KFileIconView instance
    + + +
    ArgumentTypeDefault
    parentQWidget
    namechar
    +

  • +
  • acceptDrag (e) +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    eQDropEvent
    +

  • +
  • arrangeItemsInGrid (updated = 1) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    updatedbool1
    +

  • +
  • clearSelection () +
    +
    returns nothing

  • +
  • clearView () +
    +
    returns nothing

  • +
  • contentsDragEnterEvent (e) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    eQDragEnterEvent
    +

  • +
  • contentsDragLeaveEvent (e) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    eQDragLeaveEvent
    +

  • +
  • contentsDragMoveEvent (e) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    eQDragMoveEvent
    +

  • +
  • contentsDropEvent (ev) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    evQDropEvent
    +

  • +
  • currentFileItem () +
    +
    returns (KFileItem)

  • +
  • determineIcon (item) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    itemKFileIconViewItem
    +

  • +
  • dragObject () +
    + +
    returns (QDragObject)
    In versions KDE 3.2.0 and above only

  • +
  • dropped (event, fileItem) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    eventQDropEvent
    fileItemKFileItem
    +

  • +
  • dropped (event, urls, url) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + + + +
    ArgumentTypeDefault
    eventQDropEvent
    urlsKURL.List
    urlKURL
    +

  • +
  • ensureItemVisible (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KFileItem
    +

  • +
  • eventFilter (o, e) +
    + +
    returns (bool)
    In versions KDE 3.0.1 and above only
    + + +
    ArgumentTypeDefault
    oQObject
    eQEvent
    +

  • +
  • firstFileItem () +
    +
    returns (KFileItem)

  • +
  • hideEvent (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QHideEvent
    +

  • +
  • iconSize () +
    +
    returns (int)

  • +
  • insertItem (i) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    iKFileItem
    +

  • +
  • invertSelection () +
    +
    returns nothing

  • +
  • isSelected (i) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    iKFileItem
    +

  • +
  • keyPressEvent (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QKeyEvent
    +

  • +
  • listingCompleted () +
    +
    returns nothing

  • +
  • mimeTypeDeterminationFinished () +
    +
    returns nothing

  • +
  • nextItem (a0) +
    +
    returns (KFileItem)
    + +
    ArgumentTypeDefault
    a0KFileItem
    +

  • +
  • prevItem (a0) +
    +
    returns (KFileItem)
    + +
    ArgumentTypeDefault
    a0KFileItem
    +

  • +
  • readConfig (a0, group = QString .null) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    a0KConfig
    groupQStringQString .null
    +

  • +
  • removeItem (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KFileItem
    +

  • +
  • scrollWidget () +
    +
    returns (QScrollView)

  • +
  • selectAll () +
    +
    returns nothing

  • +
  • setAcceptDrops (b) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    bbool
    +

  • +
  • setAutoUpdate (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • setCurrentItem (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KFileItem
    +

  • +
  • setIconSize (size) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    sizeint
    +

  • +
  • setIgnoreMaximumSize (ignoreSize = 1) +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only
    + +
    ArgumentTypeDefault
    ignoreSizebool1
    +

  • +
  • setPreviewSize (size) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    sizeint
    +

  • +
  • setSelected (a0, a1) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    a0KFileItem
    a1bool
    +

  • +
  • setSelectionMode (sm) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    smKFile.SelectionMode
    +

  • +
  • setSorting (sort) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    sortQDir.SortSpec
    +

  • +
  • showEvent (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QShowEvent
    +

  • +
  • showPreviews () +
    +
    returns nothing

  • +
  • updateView (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • updateView (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KFileItem
    +

  • +
  • widget () +
    +
    returns (QWidget)

  • +
  • writeConfig (a0, group = QString .null) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    a0KConfig
    groupQStringQString .null
    +

  • +
  • zoomIn () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • zoomOut () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
+ + + diff --git a/doc/classref/kfile/KFileIconViewItem.html b/doc/classref/kfile/KFileIconViewItem.html new file mode 100644 index 0000000..937556e --- /dev/null +++ b/doc/classref/kfile/KFileIconViewItem.html @@ -0,0 +1,61 @@ + + + + + class KFileIconViewItem + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KFileIconViewItem


+
+ + + + + +
Table of contents
Modules
kfile Classes
All Classes
+
+ + + + + + + + + + +
Modulekfile
ClassKFileIconViewItem
InheritsKIconViewItem
+

methods

    +
  • KFileIconViewItem (parent, text, pixmap, fi) +
    +
    returns a KFileIconViewItem instance
    + + + + +
    ArgumentTypeDefault
    parentQIconView
    textQString
    pixmapQPixmap
    fiKFileItem
    +

  • +
  • KFileIconViewItem (parent, fi) +
    + +
    returns a KFileIconViewItem instance
    In versions KDE 3.0.1 and above only
    + + +
    ArgumentTypeDefault
    parentQIconView
    fiKFileItem
    +

  • +
  • fileInfo () +
    +
    returns (KFileItem)

  • +
+ + + diff --git a/doc/classref/kfile/KFileListViewItem.html b/doc/classref/kfile/KFileListViewItem.html new file mode 100644 index 0000000..bde63f7 --- /dev/null +++ b/doc/classref/kfile/KFileListViewItem.html @@ -0,0 +1,91 @@ + + + + + class KFileListViewItem + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KFileListViewItem


+
+ + + + + +
Table of contents
Modules
kfile Classes
All Classes
+
+ + + + + + + + + + +
Modulekfile
ClassKFileListViewItem
InheritsKListViewItem
+

methods

    +
  • KFileListViewItem (parent, text, icon, fi) +
    +
    returns a KFileListViewItem instance
    + + + + +
    ArgumentTypeDefault
    parentQListView
    textQString
    iconQPixmap
    fiKFileItem
    +

  • +
  • KFileListViewItem (parent, fi) +
    + +
    returns a KFileListViewItem instance
    In versions KDE 3.0.1 and above only
    + + +
    ArgumentTypeDefault
    parentQListView
    fiKFileItem
    +

  • +
  • KFileListViewItem (parent, text, icon, fi, after) +
    +
    returns a KFileListViewItem instance
    + + + + + +
    ArgumentTypeDefault
    parentQListView
    textQString
    iconQPixmap
    fiKFileItem
    afterQListViewItem
    +

  • +
  • fileInfo () +
    +
    returns (KFileItem)

  • +
  • init () +
    + +
    returns nothing
    In versions KDE 3.0.1 and above only

  • +
  • key (a0, a1) +
    +
    returns (QString)
    + + +
    ArgumentTypeDefault
    a0int
    a1bool
    +

  • +
  • rect () +
    +
    returns (QRect)

  • +
  • setKey (key) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    keyQString
    +

  • +
+ + + diff --git a/doc/classref/kfile/KFileOpenWithHandler.html b/doc/classref/kfile/KFileOpenWithHandler.html new file mode 100644 index 0000000..ef4b6f5 --- /dev/null +++ b/doc/classref/kfile/KFileOpenWithHandler.html @@ -0,0 +1,50 @@ + + + + + class KFileOpenWithHandler + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KFileOpenWithHandler


+
+ + + + + +
Table of contents
Modules
kfile Classes
All Classes
+
+ + + + + + + + + + +
Modulekfile
ClassKFileOpenWithHandler
InheritsKOpenWithHandler
+

methods

    +
  • KFileOpenWithHandler () +
    +
    returns a KFileOpenWithHandler instance

  • +
  • displayOpenWithDialog (urls) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    urlsKURL.List
    +

  • +
+ + + diff --git a/doc/classref/kfile/KFilePermissionsPropsPlugin.html b/doc/classref/kfile/KFilePermissionsPropsPlugin.html new file mode 100644 index 0000000..75115f3 --- /dev/null +++ b/doc/classref/kfile/KFilePermissionsPropsPlugin.html @@ -0,0 +1,61 @@ + + + + + class KFilePermissionsPropsPlugin + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KFilePermissionsPropsPlugin


+
+ + + + + +
Table of contents
Modules
kfile Classes
All Classes
+
+ + + + + + + + + + +
Modulekfile
ClassKFilePermissionsPropsPlugin
InheritsKPropsDlgPlugin
+

enums

    +
  • PermissionsMode = {PermissionsOnlyFiles, PermissionsOnlyDirs, PermissionsOnlyLinks, PermissionsMixed +}
  • PermissionsTarget = {PermissionsOwner, PermissionsGroup, PermissionsOthers +}
+

methods

    +
  • KFilePermissionsPropsPlugin (_props) +
    +
    returns a KFilePermissionsPropsPlugin instance
    + +
    ArgumentTypeDefault
    _propsKPropertiesDialog
    +

  • +
  • applyChanges () +
    +
    returns nothing

  • +
  • supports (_items) +
    + +
    returns (bool)
    static
    + +
    ArgumentTypeDefault
    _itemsKFileItemList
    +

  • +
+ + + diff --git a/doc/classref/kfile/KFilePreview.html b/doc/classref/kfile/KFilePreview.html new file mode 100644 index 0000000..915a377 --- /dev/null +++ b/doc/classref/kfile/KFilePreview.html @@ -0,0 +1,206 @@ + + + + + class KFilePreview + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KFilePreview


+
+ + + + + +
Table of contents
Modules
kfile Classes
All Classes
+
+ + + + + + + + + + +
Modulekfile
ClassKFilePreview
InheritsQSplitter, KFileView
+

methods

    +
  • KFilePreview (parent, name) +
    +
    returns a KFilePreview instance
    + + +
    ArgumentTypeDefault
    parentQWidget
    namechar
    +

  • +
  • KFilePreview (view, parent, name) +
    +
    returns a KFilePreview instance
    + + + +
    ArgumentTypeDefault
    viewKFileView
    parentQWidget
    namechar
    +

  • +
  • actionCollection () +
    +
    returns (KActionCollection)

  • +
  • clear () +
    +
    returns nothing

  • +
  • clearPreview () +
    +
    returns nothing

  • +
  • clearSelection () +
    +
    returns nothing

  • +
  • clearView () +
    +
    returns nothing

  • +
  • currentFileItem () +
    +
    returns (KFileItem)

  • +
  • ensureItemVisible (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KFileItem
    +

  • +
  • fileView () +
    +
    returns (KFileView)

  • +
  • firstFileItem () +
    +
    returns (KFileItem)

  • +
  • insertItem (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KFileItem
    +

  • +
  • invertSelection () +
    +
    returns nothing

  • +
  • isSelected (a0) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    a0KFileItem
    +

  • +
  • listingCompleted () +
    +
    returns nothing

  • +
  • nextItem (a0) +
    +
    returns (KFileItem)
    + +
    ArgumentTypeDefault
    a0KFileItem
    +

  • +
  • prevItem (a0) +
    +
    returns (KFileItem)
    + +
    ArgumentTypeDefault
    a0KFileItem
    +

  • +
  • readConfig (a0, group = QString .null) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + + +
    ArgumentTypeDefault
    a0KConfig
    groupQStringQString .null
    +

  • +
  • removeItem (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KFileItem
    +

  • +
  • selectAll () +
    +
    returns nothing

  • +
  • setCurrentItem (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KFileItem
    +

  • +
  • setFileView (view) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    viewKFileView
    +

  • +
  • setPreviewWidget (w, u) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    wQWidget
    uKURL
    +

  • +
  • setSelected (a0, a1) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    a0KFileItem
    a1bool
    +

  • +
  • setSelectionMode (sm) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    smKFile.SelectionMode
    +

  • +
  • setSorting (sort) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    sortQDir.SortSpec
    +

  • +
  • showPreview (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KURL
    +

  • +
  • slotHighlighted (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KFileItem
    +

  • +
  • updateView (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • updateView (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KFileItem
    +

  • +
  • widget () +
    +
    returns (QWidget)

  • +
  • writeConfig (a0, group = QString .null) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + + +
    ArgumentTypeDefault
    a0KConfig
    groupQStringQString .null
    +

  • +
+ + + diff --git a/doc/classref/kfile/KFilePropsPlugin.html b/doc/classref/kfile/KFilePropsPlugin.html new file mode 100644 index 0000000..acc5fb5 --- /dev/null +++ b/doc/classref/kfile/KFilePropsPlugin.html @@ -0,0 +1,110 @@ + + + + + class KFilePropsPlugin + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KFilePropsPlugin


+
+ + + + + +
Table of contents
Modules
kfile Classes
All Classes
+
+ + + + + + + + + + +
Modulekfile
ClassKFilePropsPlugin
InheritsKPropsDlgPlugin
+

methods

    +
  • KFilePropsPlugin (_props) +
    +
    returns a KFilePropsPlugin instance
    + +
    ArgumentTypeDefault
    _propsKPropertiesDialog
    +

  • +
  • applyChanges () +
    +
    returns nothing

  • +
  • postApplyChanges () +
    +
    returns nothing

  • +
  • setFileNameReadOnly (ro) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    robool
    +

  • +
  • slotCopyFinished (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KIO.Job
    +

  • +
  • slotDirSizeFinished (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KIO.Job
    +

  • +
  • slotDirSizeUpdate () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • slotEditFileType () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • slotFileRenamed (a0, a1, a2) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    a0KIO.Job
    a1KURL
    a2KURL
    +

  • +
  • slotFoundMountPoint (mp, kBSize, kBUsed, kBAvail) +
    +
    returns nothing
    + + + + +
    ArgumentTypeDefault
    mpQString
    kBSizeulong
    kBUsedulong
    kBAvailulong
    +

  • +
  • slotSizeDetermine () +
    +
    returns nothing

  • +
  • slotSizeStop () +
    +
    returns nothing

  • +
  • supports (_items) +
    + +
    returns (bool)
    static
    + +
    ArgumentTypeDefault
    _itemsKFileItemList
    +

  • +
+ + + diff --git a/doc/classref/kfile/KFileSharePropsPlugin.html b/doc/classref/kfile/KFileSharePropsPlugin.html new file mode 100644 index 0000000..d6d6948 --- /dev/null +++ b/doc/classref/kfile/KFileSharePropsPlugin.html @@ -0,0 +1,72 @@ + + + + + class KFileSharePropsPlugin + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KFileSharePropsPlugin


+
+ + + + + +
Table of contents
Modules
kfile Classes
All Classes
+
+ + + + + + + + + + +
Modulekfile
ClassKFileSharePropsPlugin
InheritsKPropsDlgPlugin
+

methods

    +
  • KFileSharePropsPlugin (_props) +
    + +
    returns a KFileSharePropsPlugin instance
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    _propsKPropertiesDialog
    +

  • +
  • applyChanges () +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only

  • +
  • page () +
    + +
    returns (QWidget)
    In versions KDE 3.1.0 and above only

  • +
  • slotConfigureFileSharing () +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only

  • +
  • slotConfigureFileSharingDone () +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only

  • +
  • supports (items) +
    + + +
    returns (bool)
    In versions KDE 3.1.0 and above only
    static
    + +
    ArgumentTypeDefault
    itemsKFileItemList
    +

  • +
+ + + diff --git a/doc/classref/kfile/KFileTreeBranch.html b/doc/classref/kfile/KFileTreeBranch.html new file mode 100644 index 0000000..55ed407 --- /dev/null +++ b/doc/classref/kfile/KFileTreeBranch.html @@ -0,0 +1,157 @@ + + + + + class KFileTreeBranch + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KFileTreeBranch


+
+ + + + + +
Table of contents
Modules
kfile Classes
All Classes
+
+ + + + + + + + + + +
Modulekfile
ClassKFileTreeBranch
InheritsKDirLister
+

methods

    +
  • KFileTreeBranch (a0, url, name, pix, showHidden = 0, branchRoot = 0) +
    +
    returns a KFileTreeBranch instance
    + + + + + + +
    ArgumentTypeDefault
    a0KFileTreeView
    urlKURL
    nameQString
    pixQPixmap
    showHiddenbool0
    branchRootKFileTreeViewItem0
    +

  • +
  • childRecurse () +
    +
    returns (bool)

  • +
  • createTreeViewItem (parent, fileItem) +
    +
    returns (KFileTreeViewItem)
    + + +
    ArgumentTypeDefault
    parentKFileTreeViewItem
    fileItemKFileItem
    +

  • +
  • directoryChildCount (item, count) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    itemKFileTreeViewItem
    countint
    +

  • +
  • findTVIByURL (a0) +
    + +
    returns (KFileTreeViewItem)
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    a0KURL
    +

  • +
  • findTVIByURL (a0) +
    + +
    returns (KFileTreeViewItem)
    In versions less than KDE 3.1.0 only
    + +
    ArgumentTypeDefault
    a0KURL
    +

  • +
  • name () +
    +
    returns (QString)

  • +
  • newTreeViewItems (a0, a1) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    a0KFileTreeBranch
    a1KFileTreeViewItemList
    +

  • +
  • openPixmap () +
    +
    returns (QPixmap)

  • +
  • pixmap () +
    +
    returns (QPixmap)

  • +
  • populate (url, currItem) +
    +
    returns (bool)
    + + +
    ArgumentTypeDefault
    urlKURL
    currItemKFileTreeViewItem
    +

  • +
  • populateFinished (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KFileTreeViewItem
    +

  • +
  • root () +
    +
    returns (KFileTreeViewItem)

  • +
  • rootUrl () +
    +
    returns (KURL)

  • +
  • setChildRecurse (t = 1) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    tbool1
    +

  • +
  • setName (n) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    nQString
    +

  • +
  • setOpen (setopen = 1) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    setopenbool1
    +

  • +
  • setOpenPixmap (pix) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    pixQPixmap
    +

  • +
  • setRoot (r) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    rKFileTreeViewItem
    +

  • +
  • setShowExtensions (visible = 1) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    visiblebool1
    +

  • +
  • showExtensions () +
    +
    returns (bool)

  • +
+ + + diff --git a/doc/classref/kfile/KFileTreeView.html b/doc/classref/kfile/KFileTreeView.html new file mode 100644 index 0000000..14be565 --- /dev/null +++ b/doc/classref/kfile/KFileTreeView.html @@ -0,0 +1,265 @@ + + + + + class KFileTreeView + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KFileTreeView


+
+ + + + + +
Table of contents
Modules
kfile Classes
All Classes
+
+ + + + + + + + + + +
Modulekfile
ClassKFileTreeView
InheritsKListView
+

methods

    +
  • KFileTreeView (parent, name = 0) +
    +
    returns a KFileTreeView instance
    + + +
    ArgumentTypeDefault
    parentQWidget
    namechar0
    +

  • +
  • acceptDrag (event) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    eventQDropEvent
    +

  • +
  • addBranch (path, name, showHidden = 0) +
    +
    returns (KFileTreeBranch)
    + + + +
    ArgumentTypeDefault
    pathKURL
    nameQString
    showHiddenbool0
    +

  • +
  • addBranch (path, name, pix, showHidden = 0) +
    +
    returns (KFileTreeBranch)
    + + + + +
    ArgumentTypeDefault
    pathKURL
    nameQString
    pixQPixmap
    showHiddenbool0
    +

  • +
  • addBranch (a0) +
    +
    returns (KFileTreeBranch)
    + +
    ArgumentTypeDefault
    a0KFileTreeBranch
    +

  • +
  • branch (searchName) +
    +
    returns (KFileTreeBranch)
    + +
    ArgumentTypeDefault
    searchNameQString
    +

  • +
  • branches () +
    +
    returns (KFileTreeBranchList)

  • +
  • contentsDragEnterEvent (e) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    eQDragEnterEvent
    +

  • +
  • contentsDragLeaveEvent (e) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    eQDragLeaveEvent
    +

  • +
  • contentsDragMoveEvent (e) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    eQDragMoveEvent
    +

  • +
  • contentsDropEvent (ev) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    evQDropEvent
    +

  • +
  • currentKFileTreeViewItem () +
    +
    returns (KFileTreeViewItem)

  • +
  • currentURL () +
    +
    returns (KURL)

  • +
  • dragObject () +
    +
    returns (QDragObject)

  • +
  • dropped (a0, a1) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    a0QWidget
    a1QDropEvent
    +

  • +
  • dropped (a0, a1, a2) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    a0QWidget
    a1QDropEvent
    a2KURL.List
    +

  • +
  • dropped (a0, a1) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    a0KURL.List
    a1KURL
    +

  • +
  • dropped (a0, a1, a2, a3) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + + + + +
    ArgumentTypeDefault
    a0QWidget
    a1QDropEvent
    a2KURL.List
    a3KURL
    +

  • +
  • dropped (a0, a1) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    a0QDropEvent
    a1QListViewItem
    +

  • +
  • dropped (a0, a1, a2) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    a0KFileTreeView
    a1QDropEvent
    a2QListViewItem
    +

  • +
  • dropped (a0, a1, a2) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    a0QDropEvent
    a1QListViewItem
    a2QListViewItem
    +

  • +
  • dropped (a0, a1, a2, a3) +
    +
    returns nothing
    + + + + +
    ArgumentTypeDefault
    a0KFileTreeView
    a1QDropEvent
    a2QListViewItem
    a3QListViewItem
    +

  • +
  • findItem (brnch, relUrl) +
    +
    returns (KFileTreeViewItem)
    + + +
    ArgumentTypeDefault
    brnchKFileTreeBranch
    relUrlQString
    +

  • +
  • findItem (branchName, relUrl) +
    +
    returns (KFileTreeViewItem)
    + + +
    ArgumentTypeDefault
    branchNameQString
    relUrlQString
    +

  • +
  • itemIcon (a0, gap = 0) +
    +
    returns (QPixmap)
    + + +
    ArgumentTypeDefault
    a0KFileTreeViewItem
    gapint0
    +

  • +
  • onItem (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • removeBranch (branch) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    branchKFileTreeBranch
    +

  • +
  • setDirOnlyMode (branch, a0) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    branchKFileTreeBranch
    a0bool
    +

  • +
  • setShowFolderOpenPixmap (showIt = 1) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    showItbool1
    +

  • +
  • showFolderOpenPixmap () +
    +
    returns (bool)

  • +
  • slotNewTreeViewItems (a0, a1) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    a0KFileTreeBranch
    a1KFileTreeViewItemList
    +

  • +
  • slotOnItem (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QListViewItem
    +

  • +
  • slotSetNextUrlToSelect (url) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    urlKURL
    +

  • +
  • startAnimation (item, iconBaseName = "kde", iconCount = 6) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    itemKFileTreeViewItem
    iconBaseNamechar"kde"
    iconCountuint6
    +

  • +
  • stopAnimation (item) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    itemKFileTreeViewItem
    +

  • +
+ + + diff --git a/doc/classref/kfile/KFileTreeViewItem.html b/doc/classref/kfile/KFileTreeViewItem.html new file mode 100644 index 0000000..4141604 --- /dev/null +++ b/doc/classref/kfile/KFileTreeViewItem.html @@ -0,0 +1,81 @@ + + + + + class KFileTreeViewItem + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KFileTreeViewItem


+
+ + + + + +
Table of contents
Modules
kfile Classes
All Classes
+
+ + + + + + + + + + +
Modulekfile
ClassKFileTreeViewItem
InheritsKListViewItem
+

methods

    +
  • KFileTreeViewItem (a0, a1, a2) +
    +
    returns a KFileTreeViewItem instance
    + + + +
    ArgumentTypeDefault
    a0KFileTreeViewItem
    a1KFileItem
    a2KFileTreeBranch
    +

  • +
  • KFileTreeViewItem (a0, a1, a2) +
    +
    returns a KFileTreeViewItem instance
    + + + +
    ArgumentTypeDefault
    a0KFileTreeView
    a1KFileItem
    a2KFileTreeBranch
    +

  • +
  • alreadyListed () +
    +
    returns (bool)

  • +
  • branch () +
    +
    returns (KFileTreeBranch)

  • +
  • fileItem () +
    +
    returns (KFileItem)

  • +
  • isDir () +
    +
    returns (bool)

  • +
  • path () +
    +
    returns (QString)

  • +
  • setListed (wasListed) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    wasListedbool
    +

  • +
  • url () +
    +
    returns (KURL)

  • +
+ + + diff --git a/doc/classref/kfile/KFileTreeViewToolTip.html b/doc/classref/kfile/KFileTreeViewToolTip.html new file mode 100644 index 0000000..c433276 --- /dev/null +++ b/doc/classref/kfile/KFileTreeViewToolTip.html @@ -0,0 +1,53 @@ + + + + + class KFileTreeViewToolTip + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KFileTreeViewToolTip


+
+ + + + + +
Table of contents
Modules
kfile Classes
All Classes
+
+ + + + + + + + + + +
Modulekfile
ClassKFileTreeViewToolTip
InheritsQToolTip
+

methods

    +
  • KFileTreeViewToolTip (view) +
    +
    returns a KFileTreeViewToolTip instance
    + +
    ArgumentTypeDefault
    viewQListView
    +

  • +
  • maybeTip (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QPoint
    +

  • +
+ + + diff --git a/doc/classref/kfile/KFileView.html b/doc/classref/kfile/KFileView.html new file mode 100644 index 0000000..2e259c7 --- /dev/null +++ b/doc/classref/kfile/KFileView.html @@ -0,0 +1,301 @@ + + + + + class KFileView + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KFileView


+
+ + + + + +
Table of contents
Modules
kfile Classes
All Classes
+
+ + + + + + + + + + +
Modulekfile
ClassKFileView (abstract)
Inherits
+

enums

    +
  • DropOptions = {AutoOpenDirs +}
  • ViewMode = {Files, Directories, All +}
+

methods

    +
  • KFileView () +
    +
    returns a KFileView instance

  • +
  • actionCollection () +
    +
    returns (KActionCollection)

  • +
  • addItemList (list) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    listKFileItemList
    +

  • +
  • autoOpenDelay () +
    + + +
    returns (int)
    In versions KDE 3.2.0 and above only
    static

  • +
  • clear () +
    +
    returns nothing

  • +
  • clearSelection () = 0 +
    + +
    returns nothing
    pure virtual

  • +
  • clearView () = 0 +
    + +
    returns nothing
    pure virtual

  • +
  • count () +
    +
    returns (uint)

  • +
  • currentFileItem () = 0 +
    + +
    returns (KFileItem)
    pure virtual

  • +
  • dropOptions () +
    + +
    returns (int)
    In versions KDE 3.2.0 and above only

  • +
  • ensureItemVisible (i) = 0 +
    + +
    returns nothing
    pure virtual
    + +
    ArgumentTypeDefault
    iKFileItem
    +

  • +
  • firstFileItem () = 0 +
    + +
    returns (KFileItem)
    pure virtual

  • +
  • insertItem (i) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    iKFileItem
    +

  • +
  • invertSelection () +
    +
    returns nothing

  • +
  • isReversed () +
    +
    returns (bool)

  • +
  • isSelected (a0) = 0 +
    + +
    returns (bool)
    pure virtual
    + +
    ArgumentTypeDefault
    a0KFileItem
    +

  • +
  • items () +
    +
    returns (KFileItemList)

  • +
  • listingCompleted () +
    +
    returns nothing

  • +
  • nextItem (a0) = 0 +
    + +
    returns (KFileItem)
    pure virtual
    + +
    ArgumentTypeDefault
    a0KFileItem
    +

  • +
  • numDirs () +
    +
    returns (uint)

  • +
  • numFiles () +
    +
    returns (uint)

  • +
  • onlyDoubleClickSelectsFiles () +
    +
    returns (bool)

  • +
  • prevItem (a0) = 0 +
    + +
    returns (KFileItem)
    pure virtual
    + +
    ArgumentTypeDefault
    a0KFileItem
    +

  • +
  • readConfig (a0, group = QString .null) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    a0KConfig
    groupQStringQString .null
    +

  • +
  • removeItem (item) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    itemKFileItem
    +

  • +
  • selectAll () +
    +
    returns nothing

  • +
  • selectedItems () +
    +
    returns (KFileItemList)

  • +
  • selectionMode () +
    +
    returns (KFile.SelectionMode)

  • +
  • setCurrentItem (filename) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    filenameQString
    +

  • +
  • setCurrentItem (item) = 0 +
    + +
    returns nothing
    pure virtual
    + +
    ArgumentTypeDefault
    itemKFileItem
    +

  • +
  • setDropOptions (options) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    optionsint
    +

  • +
  • setDropOptions_impl (options) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    optionsint
    +

  • +
  • setOnlyDoubleClickSelectsFiles (enable) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    enablebool
    +

  • +
  • setParentView (parent) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    parentKFileView
    +

  • +
  • setSelected (a0, enable) = 0 +
    + +
    returns nothing
    pure virtual
    + + +
    ArgumentTypeDefault
    a0KFileItem
    enablebool
    +

  • +
  • setSelectionMode (sm) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    smKFile.SelectionMode
    +

  • +
  • setSorting (sort) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    sortQDir.SortSpec
    +

  • +
  • setViewMode (vm) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    vmKFileView.ViewMode
    +

  • +
  • setViewName (name) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    nameQString
    +

  • +
  • signaler () +
    +
    returns (KFileViewSignaler)

  • +
  • sortReversed () +
    +
    returns nothing

  • +
  • sorting () +
    +
    returns (QDir.SortSpec)

  • +
  • sortingKey (value, isDir, sortSpec) +
    + +
    returns (QString)
    static
    + + + +
    ArgumentTypeDefault
    valueQString
    isDirbool
    sortSpecint
    +

  • +
  • sortingKey (value, isDir, sortSpec) +
    + +
    returns (QString)
    static
    + + + +
    ArgumentTypeDefault
    valueKIO.filesize_t
    isDirbool
    sortSpecint
    +

  • +
  • updateNumbers (i) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    iKFileItem
    +

  • +
  • updateView (f = 1) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    fbool1
    +

  • +
  • updateView (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KFileItem
    +

  • +
  • viewMode () +
    +
    returns (ViewMode)

  • +
  • viewName () +
    +
    returns (QString)

  • +
  • widget () = 0 +
    + +
    returns (QWidget)
    pure virtual

  • +
  • widget () +
    Not Implemented
    +

  • +
  • writeConfig (a0, group = QString .null) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    a0KConfig
    groupQStringQString .null
    +

  • +
+ + + diff --git a/doc/classref/kfile/KFileViewSignaler.html b/doc/classref/kfile/KFileViewSignaler.html new file mode 100644 index 0000000..bbebe48 --- /dev/null +++ b/doc/classref/kfile/KFileViewSignaler.html @@ -0,0 +1,115 @@ + + + + + class KFileViewSignaler + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KFileViewSignaler


+
+ + + + + +
Table of contents
Modules
kfile Classes
All Classes
+
+ + + + + + + + + + +
Modulekfile
ClassKFileViewSignaler
InheritsQObject
+

methods

    +
  • activate (item) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    itemKFileItem
    +

  • +
  • activateMenu (i, pos) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    iKFileItem
    posQPoint
    +

  • +
  • activatedMenu (i, a0) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    iKFileItem
    a0QPoint
    +

  • +
  • changeSorting (sorting) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    sortingQDir.SortSpec
    +

  • +
  • dirActivated (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KFileItem
    +

  • +
  • dropURLs (i, e, urls) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + + + +
    ArgumentTypeDefault
    iKFileItem
    eQDropEvent
    urlsKURL.List
    +

  • +
  • dropped (a0, a1, a2) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + + + +
    ArgumentTypeDefault
    a0KFileItem
    a1QDropEvent
    a2KURL.List
    +

  • +
  • fileHighlighted (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KFileItem
    +

  • +
  • fileSelected (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KFileItem
    +

  • +
  • highlightFile (i) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    iKFileItem
    +

  • +
  • sortingChanged (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QDir.SortSpec
    +

  • +
+ + + diff --git a/doc/classref/kfile/KIconButton.html b/doc/classref/kfile/KIconButton.html new file mode 100644 index 0000000..282a7bd --- /dev/null +++ b/doc/classref/kfile/KIconButton.html @@ -0,0 +1,97 @@ + + + + + class KIconButton + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KIconButton


+
+ + + + + +
Table of contents
Modules
kfile Classes
All Classes
+
+ + + + + + + + + + +
Modulekfile
ClassKIconButton
InheritsQPushButton
+

methods

    +
  • KIconButton (parent = 0, name = 0) +
    +
    returns a KIconButton instance
    + + +
    ArgumentTypeDefault
    parentQWidget0
    namechar0
    +

  • +
  • KIconButton (loader, parent, name = 0) +
    +
    returns a KIconButton instance
    + + + +
    ArgumentTypeDefault
    loaderKIconLoader
    parentQWidget
    namechar0
    +

  • +
  • icon () +
    +
    returns (QString)

  • +
  • iconChanged (icon) +
    Not Implemented
    +

  • +
  • iconSize () +
    +
    returns (int)

  • +
  • resetIcon () +
    +
    returns nothing

  • +
  • setIcon (icon) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    iconQString
    +

  • +
  • setIconSize (size) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    sizeint
    +

  • +
  • setIconType (group, context, user = 0) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    groupKIcon.Group
    contextKIcon.Context
    userbool0
    +

  • +
  • setStrictIconSize (b) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    bbool
    +

  • +
  • strictIconSize () +
    +
    returns (bool)

  • +
+ + + diff --git a/doc/classref/kfile/KIconCanvas.html b/doc/classref/kfile/KIconCanvas.html new file mode 100644 index 0000000..fd655dd --- /dev/null +++ b/doc/classref/kfile/KIconCanvas.html @@ -0,0 +1,78 @@ + + + + + class KIconCanvas + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KIconCanvas


+
+ + + + + +
Table of contents
Modules
kfile Classes
All Classes
+
+ + + + + + + + + + +
Modulekfile
ClassKIconCanvas
InheritsKIconView
+

methods

    +
  • KIconCanvas (parent = 0, name = 0) +
    +
    returns a KIconCanvas instance
    + + +
    ArgumentTypeDefault
    parentQWidget0
    namechar0
    +

  • +
  • finished () +
    +
    returns nothing

  • +
  • getCurrent () +
    +
    returns (QString)

  • +
  • loadFiles (files) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    filesQStringList
    +

  • +
  • nameChanged (a0) +
    Not Implemented
    +

  • +
  • progress (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • startLoading (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • stopLoading () +
    +
    returns nothing

  • +
+ + + diff --git a/doc/classref/kfile/KIconDialog.html b/doc/classref/kfile/KIconDialog.html new file mode 100644 index 0000000..a95965e --- /dev/null +++ b/doc/classref/kfile/KIconDialog.html @@ -0,0 +1,143 @@ + + + + + class KIconDialog + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KIconDialog


+
+ + + + + +
Table of contents
Modules
kfile Classes
All Classes
+
+ + + + + + + + + + +
Modulekfile
ClassKIconDialog
InheritsKDialogBase
+

methods

    +
  • KIconDialog (parent = 0, name = 0) +
    +
    returns a KIconDialog instance
    + + +
    ArgumentTypeDefault
    parentQWidget0
    namechar0
    +

  • +
  • KIconDialog (loader, parent = 0, name = 0) +
    +
    returns a KIconDialog instance
    + + + +
    ArgumentTypeDefault
    loaderKIconLoader
    parentQWidget0
    namechar0
    +

  • +
  • getIcon (group = KIcon .Desktop, context = KIcon .Application, strictIconSize = 0, iconSize = 0, user = 0, parent = 0, caption = QString .null) +
    + +
    returns (QString)
    static
    + + + + + + + +
    ArgumentTypeDefault
    groupKIcon.GroupKIcon .Desktop
    contextKIcon.ContextKIcon .Application
    strictIconSizebool0
    iconSizeint0
    userbool0
    parentQWidget0
    captionQStringQString .null
    +

  • +
  • iconSize () +
    +
    returns (int)

  • +
  • newIconName (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • openDialog () +
    +
    returns (QString)

  • +
  • selectIcon (group = KIcon .Desktop, context = KIcon .Application, user = 0) +
    +
    returns (QString)
    + + + +
    ArgumentTypeDefault
    groupKIcon.GroupKIcon .Desktop
    contextKIcon.ContextKIcon .Application
    userbool0
    +

  • +
  • setCustomLocation (location) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    locationQString
    +

  • +
  • setIconSize (size) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    sizeint
    +

  • +
  • setStrictIconSize (b) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    bbool
    +

  • +
  • setup (group, context = KIcon .Application, strictIconSize = 0, iconSize = 0, user = 0) +
    +
    returns nothing
    + + + + + +
    ArgumentTypeDefault
    groupKIcon.Group
    contextKIcon.ContextKIcon .Application
    strictIconSizebool0
    iconSizeint0
    userbool0
    +

  • +
  • setup (group, context, strictIconSize, iconSize, user, lockUser, lockCustomDir) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + + + + + + + +
    ArgumentTypeDefault
    groupKIcon.Group
    contextKIcon.Context
    strictIconSizebool
    iconSizeint
    userbool
    lockUserbool
    lockCustomDirbool
    +

  • +
  • showDialog () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • slotOk () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • strictIconSize () +
    +
    returns (bool)

  • +
+ + + diff --git a/doc/classref/kfile/KImageFilePreview.html b/doc/classref/kfile/KImageFilePreview.html new file mode 100644 index 0000000..18b2936 --- /dev/null +++ b/doc/classref/kfile/KImageFilePreview.html @@ -0,0 +1,96 @@ + + + + + class KImageFilePreview + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KImageFilePreview


+
+ + + + + +
Table of contents
Modules
kfile Classes
All Classes
+
+ + + + + + + + + + +
Modulekfile
ClassKImageFilePreview
InheritsKPreviewWidgetBase
+

methods

    +
  • KImageFilePreview (parent) +
    +
    returns a KImageFilePreview instance
    + +
    ArgumentTypeDefault
    parentQWidget
    +

  • +
  • clearPreview () +
    +
    returns nothing

  • +
  • createJob (url, w, h) +
    +
    returns (KIO.PreviewJob)
    + + + +
    ArgumentTypeDefault
    urlKURL
    wint
    hint
    +

  • +
  • gotPreview (a0, a1) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    a0KFileItem
    a1QPixmap
    +

  • +
  • resizeEvent (e) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    eQResizeEvent
    +

  • +
  • showPreview (url) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    urlKURL
    +

  • +
  • showPreview () +
    +
    returns nothing

  • +
  • showPreview (url, force) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    urlKURL
    forcebool
    +

  • +
  • sizeHint () +
    +
    returns (QSize)

  • +
  • toggleAuto (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
+ + + diff --git a/doc/classref/kfile/KNotify.Application.html b/doc/classref/kfile/KNotify.Application.html new file mode 100644 index 0000000..580a489 --- /dev/null +++ b/doc/classref/kfile/KNotify.Application.html @@ -0,0 +1,75 @@ + + + + + class KNotify.Application + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KNotify.Application


+
+ + + + + +
Table of contents
Modules
kfile Classes
All Classes
+
+ + + + + + + + + + +
Modulekfile
ClassKNotify.Application
Inherits
+

methods

    +
  • Application (path) +
    + +
    returns a Application instance
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    pathQString
    +

  • +
  • appName () +
    + +
    returns (QString)
    In versions KDE 3.1.0 and above only

  • +
  • eventList () +
    + +
    returns (KNotify.EventList)
    In versions KDE 3.1.0 and above only

  • +
  • icon () +
    + +
    returns (QString)
    In versions KDE 3.1.0 and above only

  • +
  • reloadEvents (revertToDefaults = 0) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    revertToDefaultsbool0
    +

  • +
  • save () +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only

  • +
  • text () +
    + +
    returns (QString)
    In versions KDE 3.1.0 and above only

  • +
+ + + diff --git a/doc/classref/kfile/KNotify.ApplicationList.html b/doc/classref/kfile/KNotify.ApplicationList.html new file mode 100644 index 0000000..6d63509 --- /dev/null +++ b/doc/classref/kfile/KNotify.ApplicationList.html @@ -0,0 +1,39 @@ + + + + + class KNotify.ApplicationList + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KNotify.ApplicationList


+
+ + + + + +
Table of contents
Modules
kfile Classes
All Classes
+
+ + + + + + + + + + +
Modulekfile
ClassKNotify.ApplicationList
Inherits
+ + + diff --git a/doc/classref/kfile/KNotify.Event.html b/doc/classref/kfile/KNotify.Event.html new file mode 100644 index 0000000..6048b6c --- /dev/null +++ b/doc/classref/kfile/KNotify.Event.html @@ -0,0 +1,64 @@ + + + + + class KNotify.Event + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KNotify.Event


+
+ + + + + +
Table of contents
Modules
kfile Classes
All Classes
+
+ + + + + + + + + + +
Modulekfile
ClassKNotify.Event
Inherits
+

methods

    +
  • Event (app) +
    + +
    returns a Event instance
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    appKNotify.Application
    +

  • +
  • application () +
    + +
    returns (KNotify.Application)
    In versions KDE 3.1.0 and above only

  • +
  • text () +
    + +
    returns (QString)
    In versions KDE 3.1.0 and above only

  • +
+

variables

  • +variables + + + + + +
    VariableType
    commandlineQString
    dontShowint
    logfileQString
    presentationint
    soundfileQString
+ + + diff --git a/doc/classref/kfile/KNotify.KNotifyWidget.html b/doc/classref/kfile/KNotify.KNotifyWidget.html new file mode 100644 index 0000000..76f55b8 --- /dev/null +++ b/doc/classref/kfile/KNotify.KNotifyWidget.html @@ -0,0 +1,150 @@ + + + + + class KNotify.KNotifyWidget + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KNotify.KNotifyWidget


+
+ + + + + +
Table of contents
Modules
kfile Classes
All Classes
+
+ + + + + + + + + + +
Modulekfile
ClassKNotify.KNotifyWidget
InheritsKNotifyWidgetBase
+

methods

    +
  • KNotifyWidget (a0 = 0, a1 = 0, a2 = 0) +
    + +
    returns a KNotifyWidget instance
    In versions less than KDE 3.2.0 only
    + + + +
    ArgumentTypeDefault
    a0QWidget0
    a1char0
    a2bool0
    +

  • +
  • addApplicationEvents (a0) +
    + +
    returns (KNotify.Application)
    In versions less than KDE 3.2.0 only
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • addVisibleApp (a0) +
    + +
    returns nothing
    In versions less than KDE 3.2.0 only
    + +
    ArgumentTypeDefault
    a0KNotify.Application
    +

  • +
  • allApps () +
    + +
    returns (a Python list of KNotify.Application),
    In versions less than KDE 3.2.0 only

  • +
  • changed (a0) +
    + +
    returns nothing
    In versions less than KDE 3.2.0 only
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • clear () +
    + +
    returns nothing
    In versions less than KDE 3.2.0 only

  • +
  • clearVisible () +
    + +
    returns nothing
    In versions less than KDE 3.2.0 only

  • +
  • currentEvent () +
    + +
    returns (KNotify.Event)
    In versions less than KDE 3.2.0 only

  • +
  • enableAll (a0, a1) +
    + +
    returns nothing
    In versions less than KDE 3.2.0 only
    + + +
    ArgumentTypeDefault
    a0int
    a1bool
    +

  • +
  • eventsView () +
    + +
    returns (KListView)
    In versions less than KDE 3.2.0 only

  • +
  • playSound () +
    + +
    returns nothing
    In versions less than KDE 3.2.0 only

  • +
  • reload (a0 = 0) +
    + +
    returns nothing
    In versions less than KDE 3.2.0 only
    + +
    ArgumentTypeDefault
    a0bool0
    +

  • +
  • resetDefaults (a0) +
    + +
    returns nothing
    In versions less than KDE 3.2.0 only
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • save () +
    + +
    returns nothing
    In versions less than KDE 3.2.0 only

  • +
  • showAdvanced (a0) +
    + +
    returns nothing
    In versions less than KDE 3.2.0 only
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • showEvent (a0) +
    + +
    returns nothing
    In versions less than KDE 3.2.0 only
    + +
    ArgumentTypeDefault
    a0QShowEvent
    +

  • +
  • sort (a0 = 1) +
    + +
    returns nothing
    In versions less than KDE 3.2.0 only
    + +
    ArgumentTypeDefault
    a0bool1
    +

  • +
  • toggleAdvanced () +
    + +
    returns nothing
    In versions less than KDE 3.2.0 only

  • +
  • visibleApps () +
    + +
    returns (a Python list of KNotify.Application),
    In versions less than KDE 3.2.0 only

  • +
+ + + diff --git a/doc/classref/kfile/KNotify.ListViewItem.html b/doc/classref/kfile/KNotify.ListViewItem.html new file mode 100644 index 0000000..183148b --- /dev/null +++ b/doc/classref/kfile/KNotify.ListViewItem.html @@ -0,0 +1,62 @@ + + + + + class KNotify.ListViewItem + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KNotify.ListViewItem


+
+ + + + + +
Table of contents
Modules
kfile Classes
All Classes
+
+ + + + + + + + + + +
Modulekfile
ClassKNotify.ListViewItem
InheritsQListViewItem
+

methods

    +
  • ListViewItem (view, event) +
    + +
    returns a ListViewItem instance
    In versions KDE 3.1.0 and above only
    + + +
    ArgumentTypeDefault
    viewQListView
    eventKNotify.Event
    +

  • +
  • compare (i, col, ascending) +
    + +
    returns (int)
    In versions KDE 3.1.0 and above only
    + + + +
    ArgumentTypeDefault
    iQListViewItem
    colint
    ascendingbool
    +

  • +
  • event () +
    + +
    returns (KNotify.Event)
    In versions KDE 3.1.0 and above only

  • +
+ + + diff --git a/doc/classref/kfile/KNotify.html b/doc/classref/kfile/KNotify.html new file mode 100644 index 0000000..c43b05a --- /dev/null +++ b/doc/classref/kfile/KNotify.html @@ -0,0 +1,41 @@ + + + + + class KNotify + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KNotify


+
+ + + + + +
Table of contents
Modules
kfile Classes
All Classes
+
+ + + + + + + + + + +
Modulekfile
ClassKNotify
Inherits
+

classes

+ + + diff --git a/doc/classref/kfile/KNotifyDialog.html b/doc/classref/kfile/KNotifyDialog.html new file mode 100644 index 0000000..7174ab5 --- /dev/null +++ b/doc/classref/kfile/KNotifyDialog.html @@ -0,0 +1,89 @@ + + + + + class KNotifyDialog + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KNotifyDialog


+
+ + + + + +
Table of contents
Modules
kfile Classes
All Classes
+
+ + + + + + + + + + +
Modulekfile
ClassKNotifyDialog
InheritsKDialogBase
+

methods

    +
  • KNotifyDialog (parent = 0, name = 0, modal = 1, aboutData = see note) +
    + +
    returns a KNotifyDialog instance
    In versions KDE 3.1.0 and above only
    + + + + +
    ArgumentTypeDefault
    parentQWidget0
    namechar0
    modalbool1
    aboutDataKAboutDatasee note
    +
    The default value for aboutData in C++ is KGlobal::instance()->aboutData() +which sip is unable to parse. Since it's the last arg in the list, it has +to have a default value, and since the C++ code will fail if the default +value really is zero, the sip code silently substitutes the real default +value for a default value of 0 supplied from Python. +

  • +
  • addApplicationEvents (appName) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    appNamechar
    +

  • +
  • addApplicationEvents (path) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    pathQString
    +

  • +
  • clearApplicationEvents () +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only

  • +
  • configure (parent = 0, name = "", aboutData = see note) +
    + + +
    returns (int),
    In versions KDE 3.1.0 and above only
    static
    + + + +
    ArgumentTypeDefault
    parentQWidget0
    namea Python string""
    aboutDataKAboutDatasee note
    +
    The default value for aboutData in C++ is KGlobal::instance()->aboutData() +which sip is unable to parse. Since it's the last arg in the list, it has +to have a default value, and since the C++ code will fail if the default +value really is zero, the sip code silently substitutes the real default +value for a default value of 0 supplied from Python. +

  • +
+ + + diff --git a/doc/classref/kfile/KOpenWithDlg.html b/doc/classref/kfile/KOpenWithDlg.html new file mode 100644 index 0000000..11bdb52 --- /dev/null +++ b/doc/classref/kfile/KOpenWithDlg.html @@ -0,0 +1,141 @@ + + + + + class KOpenWithDlg + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KOpenWithDlg


+
+ + + + + +
Table of contents
Modules
kfile Classes
All Classes
+
+ + + + + + + + + + +
Modulekfile
ClassKOpenWithDlg
InheritsQDialog
+

methods

    +
  • KOpenWithDlg (urls, parent = 0) +
    +
    returns a KOpenWithDlg instance
    + + +
    ArgumentTypeDefault
    urlsKURL.List
    parentQWidget0
    +

  • +
  • KOpenWithDlg (urls, text, value, parent = 0) +
    +
    returns a KOpenWithDlg instance
    + + + + +
    ArgumentTypeDefault
    urlsKURL.List
    textQString
    valueQString
    parentQWidget0
    +

  • +
  • KOpenWithDlg (serviceType, value, parent = 0) +
    +
    returns a KOpenWithDlg instance
    + + + +
    ArgumentTypeDefault
    serviceTypeQString
    valueQString
    parentQWidget0
    +

  • +
  • KOpenWithDlg (parent = 0) +
    + +
    returns a KOpenWithDlg instance
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    parentQWidget0
    +

  • +
  • accept () +
    +
    returns nothing

  • +
  • hideNoCloseOnExit () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • hideRunInTerminal () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • init (text, value) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    textQString
    valueQString
    +

  • +
  • service () +
    +
    returns (KService.Ptr)

  • +
  • setSaveNewApplications (b) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    bbool
    +

  • +
  • setServiceType (_urls) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    _urlsKURL.List
    +

  • +
  • slotClear () +
    +
    returns nothing

  • +
  • slotDbClick () +
    +
    returns nothing

  • +
  • slotHighlighted (_name, _exec) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    _nameQString
    _execQString
    +

  • +
  • slotOK () +
    +
    returns nothing

  • +
  • slotSelected (_name, _exec) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    _nameQString
    _execQString
    +

  • +
  • slotTerminalToggled (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • slotTextChanged () +
    +
    returns nothing

  • +
  • text () +
    +
    returns (QString)

  • +
+ + + diff --git a/doc/classref/kfile/KPreviewWidgetBase.html b/doc/classref/kfile/KPreviewWidgetBase.html new file mode 100644 index 0000000..f1cd4cb --- /dev/null +++ b/doc/classref/kfile/KPreviewWidgetBase.html @@ -0,0 +1,70 @@ + + + + + class KPreviewWidgetBase + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KPreviewWidgetBase


+
+ + + + + +
Table of contents
Modules
kfile Classes
All Classes
+
+ + + + + + + + + + +
Modulekfile
ClassKPreviewWidgetBase (abstract)
InheritsQWidget
+

methods

    +
  • KPreviewWidgetBase (parent, name = 0) +
    +
    returns a KPreviewWidgetBase instance
    + + +
    ArgumentTypeDefault
    parentQWidget
    namechar0
    +

  • +
  • clearPreview () = 0 +
    + +
    returns nothing
    pure virtual

  • +
  • setSupportedMimeTypes (mimeTypes) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    mimeTypesQStringList
    +

  • +
  • showPreview (url) = 0 +
    + +
    returns nothing
    pure virtual
    + +
    ArgumentTypeDefault
    urlKURL
    +

  • +
  • supportedMimeTypes () +
    + +
    returns (QStringList)
    In versions KDE 3.2.0 and above only

  • +
+ + + diff --git a/doc/classref/kfile/KPropertiesDialog.html b/doc/classref/kfile/KPropertiesDialog.html new file mode 100644 index 0000000..0cb6a16 --- /dev/null +++ b/doc/classref/kfile/KPropertiesDialog.html @@ -0,0 +1,223 @@ + + + + + class KPropertiesDialog + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KPropertiesDialog


+
+ + + + + +
Table of contents
Modules
kfile Classes
All Classes
+
+ + + + + + + + + + +
Modulekfile
ClassKPropertiesDialog
InheritsKDialogBase
+

methods

    +
  • KPropertiesDialog (item, parent = 0, name = 0, modal = 0, autoShow = 1) +
    +
    returns a KPropertiesDialog instance
    + + + + + +
    ArgumentTypeDefault
    itemKFileItem
    parentQWidget0
    namechar0
    modalbool0
    autoShowbool1
    +

  • +
  • KPropertiesDialog (_items, parent = 0, name = 0, modal = 0, autoShow = 1) +
    +
    returns a KPropertiesDialog instance
    + + + + + +
    ArgumentTypeDefault
    _itemsKFileItemList
    parentQWidget0
    namechar0
    modalbool0
    autoShowbool1
    +

  • +
  • KPropertiesDialog (_url, _mode, parent = 0, name = 0, modal = 0, autoShow = 1) +
    +
    returns a KPropertiesDialog instance
    + + + + + + +
    ArgumentTypeDefault
    _urlKURL
    _modemode_t
    parentQWidget0
    namechar0
    modalbool0
    autoShowbool1
    +

  • +
  • KPropertiesDialog (_url, parent = 0, name = 0, modal = 0, autoShow = 1) +
    +
    returns a KPropertiesDialog instance
    + + + + + +
    ArgumentTypeDefault
    _urlKURL
    parentQWidget0
    namechar0
    modalbool0
    autoShowbool1
    +

  • +
  • KPropertiesDialog (_tempUrl, _currentDir, _defaultName, parent = 0, name = 0, modal = 0, autoShow = 1) +
    +
    returns a KPropertiesDialog instance
    + + + + + + + +
    ArgumentTypeDefault
    _tempUrlKURL
    _currentDirKURL
    _defaultNameQString
    parentQWidget0
    namechar0
    modalbool0
    autoShowbool1
    +

  • +
  • KPropertiesDialog (title, parent = 0, name = 0, modal = 0) +
    +
    returns a KPropertiesDialog instance
    + + + + +
    ArgumentTypeDefault
    titleQString
    parentQWidget0
    namechar0
    modalbool0
    +

  • +
  • abortApplying () +
    +
    returns nothing

  • +
  • applied () +
    +
    returns nothing

  • +
  • canDisplay (_items) +
    + +
    returns (bool)
    static
    + +
    ArgumentTypeDefault
    _itemsKFileItemList
    +

  • +
  • canceled () +
    +
    returns nothing

  • +
  • currentDir () +
    +
    returns (KURL)

  • +
  • defaultName () +
    +
    returns (QString)

  • +
  • dialog () +
    +
    returns (KDialogBase)

  • +
  • insertPlugin (plugin) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    pluginKPropsDlgPlugin
    +

  • +
  • item () +
    +
    returns (KFileItem)

  • +
  • items () +
    +
    returns (KFileItemList)

  • +
  • kurl () +
    +
    returns (KURL)

  • +
  • propertiesClosed () +
    +
    returns nothing

  • +
  • rename (_name) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    _nameQString
    +

  • +
  • saveAs (oldUrl, newUrl) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    oldUrlKURL
    newUrlKURL
    +

  • +
  • setFileNameReadOnly (ro) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    robool
    +

  • +
  • setFileSharingPage (page) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    pageQWidget
    +

  • +
  • showDialog (item, parent = 0, name = 0, modal = 0) +
    + + +
    returns (bool)
    In versions KDE 3.4.0 and above only
    static
    + + + + +
    ArgumentTypeDefault
    itemKFileItem
    parentQWidget0
    namechar0
    modalbool0
    +

  • +
  • showDialog (_url, parent = 0, name = 0, modal = 0) +
    + + +
    returns (bool)
    In versions KDE 3.4.0 and above only
    static
    + + + + +
    ArgumentTypeDefault
    _urlKURL
    parentQWidget0
    namechar0
    modalbool0
    +

  • +
  • showDialog (_items, parent = 0, name = 0, modal = 0) +
    + + +
    returns (bool)
    In versions KDE 3.4.0 and above only
    static
    + + + + +
    ArgumentTypeDefault
    _itemsKFileItemList
    parentQWidget0
    namechar0
    modalbool0
    +

  • +
  • showFileSharingPage () +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only

  • +
  • slotCancel () +
    +
    returns nothing

  • +
  • slotOk () +
    +
    returns nothing

  • +
  • updateUrl (_newUrl) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    _newUrlKURL
    +

  • +
+ + + diff --git a/doc/classref/kfile/KPropsDlgPlugin.html b/doc/classref/kfile/KPropsDlgPlugin.html new file mode 100644 index 0000000..9498fa2 --- /dev/null +++ b/doc/classref/kfile/KPropsDlgPlugin.html @@ -0,0 +1,72 @@ + + + + + class KPropsDlgPlugin + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KPropsDlgPlugin


+
+ + + + + +
Table of contents
Modules
kfile Classes
All Classes
+
+ + + + + + + + + + +
Modulekfile
ClassKPropsDlgPlugin
InheritsQObject
+

methods

    +
  • KPropsDlgPlugin (_props) +
    +
    returns a KPropsDlgPlugin instance
    + +
    ArgumentTypeDefault
    _propsKPropertiesDialog
    +

  • +
  • applyChanges () +
    +
    returns nothing

  • +
  • changed () +
    +
    returns nothing

  • +
  • isDesktopFile (_item) +
    + +
    returns (bool)
    static
    + +
    ArgumentTypeDefault
    _itemKFileItem
    +

  • +
  • isDirty () +
    +
    returns (bool)

  • +
  • setDirty (b) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    bbool
    +

  • +
  • setDirty () +
    +
    returns nothing

  • +
+ + + diff --git a/doc/classref/kfile/KRecentDirs.html b/doc/classref/kfile/KRecentDirs.html new file mode 100644 index 0000000..c5509f7 --- /dev/null +++ b/doc/classref/kfile/KRecentDirs.html @@ -0,0 +1,62 @@ + + + + + class KRecentDirs + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KRecentDirs


+
+ + + + +
Table of contents
Modules
kfile Classes
All Classes
+
+ + + + + + + + + + +
Modulekfile
ClassKRecentDirs
Inherits
+

methods

    +
  • add (fileClass, directory) +
    + +
    returns nothing
    static
    + + +
    ArgumentTypeDefault
    fileClassQString
    directoryQString
    +

  • +
  • dir (fileClass) +
    + +
    returns (QString)
    static
    + +
    ArgumentTypeDefault
    fileClassQString
    +

  • +
  • list (fileClass) +
    + +
    returns (QStringList)
    static
    + +
    ArgumentTypeDefault
    fileClassQString
    +

  • +
+ + + diff --git a/doc/classref/kfile/KRecentDocument.html b/doc/classref/kfile/KRecentDocument.html new file mode 100644 index 0000000..5e03c24 --- /dev/null +++ b/doc/classref/kfile/KRecentDocument.html @@ -0,0 +1,80 @@ + + + + + class KRecentDocument + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KRecentDocument


+
+ + + + + +
Table of contents
Modules
kfile Classes
All Classes
+
+ + + + + + + + + + +
Modulekfile
ClassKRecentDocument
Inherits
+

methods

    +
  • add (url) +
    + +
    returns nothing
    static
    + +
    ArgumentTypeDefault
    urlKURL
    +

  • +
  • add (url, desktopEntryName) +
    + +
    returns nothing
    static
    + + +
    ArgumentTypeDefault
    urlKURL
    desktopEntryNameQString
    +

  • +
  • add (documentStr, isURL = 0) +
    + +
    returns nothing
    static
    + + +
    ArgumentTypeDefault
    documentStrQString
    isURLbool0
    +

  • +
  • clear () +
    + +
    returns nothing
    static

  • +
  • maximumItems () +
    + +
    returns (int)
    static

  • +
  • recentDocumentDirectory () +
    + +
    returns (QString)
    static

  • +
  • recentDocuments () +
    + +
    returns (QStringList)
    static

  • +
+ + + diff --git a/doc/classref/kfile/KURLBar.html b/doc/classref/kfile/KURLBar.html new file mode 100644 index 0000000..148a49b --- /dev/null +++ b/doc/classref/kfile/KURLBar.html @@ -0,0 +1,211 @@ + + + + + class KURLBar + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KURLBar


+
+ + + + + +
Table of contents
Modules
kfile Classes
All Classes
+
+ + + + + + + + + + +
Modulekfile
ClassKURLBar
InheritsQFrame
+

methods

    +
  • KURLBar (useGlobalItems, parent = 0, name = 0, f = 0) +
    +
    returns a KURLBar instance
    + + + + +
    ArgumentTypeDefault
    useGlobalItemsbool
    parentQWidget0
    namechar0
    fWFlags0
    +

  • +
  • activated (url) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    urlKURL
    +

  • +
  • addNewItem () +
    +
    returns (bool)

  • +
  • clear () +
    +
    returns nothing

  • +
  • currentItem () +
    +
    returns (KURLBarItem)

  • +
  • currentURL () +
    +
    returns (KURL)

  • +
  • editItem (item) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    itemKURLBarItem
    +

  • +
  • iconSize () +
    +
    returns (int)

  • +
  • insertDynamicItem (url, description, icon = QString .null, group = KIcon .Panel) +
    + +
    returns (KURLBarItem)
    In versions KDE 3.2.0 and above only
    + + + + +
    ArgumentTypeDefault
    urlKURL
    descriptionQString
    iconQStringQString .null
    groupKIcon.GroupKIcon .Panel
    +

  • +
  • insertItem (url, description, applicationLocal = 1, icon = QString .null, group = KIcon .Panel) +
    +
    returns (KURLBarItem)
    + + + + + +
    ArgumentTypeDefault
    urlKURL
    descriptionQString
    applicationLocalbool1
    iconQStringQString .null
    groupKIcon.GroupKIcon .Panel
    +

  • +
  • isImmutable () +
    + +
    returns (bool)
    In versions KDE 3.1.1 and above only

  • +
  • isModified () +
    +
    returns (bool)

  • +
  • isVertical () +
    + +
    returns (bool)
    In versions KDE 3.0.1 and above only

  • +
  • isVertical () +
    + +
    returns (bool)
    In versions less than KDE 3.0.1 only

  • +
  • listBox () +
    +
    returns (KURLBarListBox)

  • +
  • minimumSizeHint () +
    +
    returns (QSize)

  • +
  • orientation () +
    +
    returns (Qt.Orientation)

  • +
  • paletteChange (a0) +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only
    + +
    ArgumentTypeDefault
    a0QPalette
    +

  • +
  • readConfig (config, itemGroup) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    configKConfig
    itemGroupQString
    +

  • +
  • readItem (i, config, applicationLocal) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    iint
    configKConfig
    applicationLocalbool
    +

  • +
  • resizeEvent (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QResizeEvent
    +

  • +
  • setCurrentItem (url) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    urlKURL
    +

  • +
  • setIconSize (size) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    sizeint
    +

  • +
  • setListBox (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KURLBarListBox
    +

  • +
  • setOrientation (orient) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    orientQt.Orientation
    +

  • +
  • sizeHint () +
    +
    returns (QSize)

  • +
  • slotContextMenuRequested (a0, pos) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    a0QListBoxItem
    posQPoint
    +

  • +
  • slotDropped (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QDropEvent
    +

  • +
  • slotSelected (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QListBoxItem
    +

  • +
  • writeConfig (config, itemGroup) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    configKConfig
    itemGroupQString
    +

  • +
  • writeItem (item, i, a0, global) +
    +
    returns nothing
    + + + + +
    ArgumentTypeDefault
    itemKURLBarItem
    iint
    a0KConfig
    globalbool
    +

  • +
+ + + diff --git a/doc/classref/kfile/KURLBarItem.html b/doc/classref/kfile/KURLBarItem.html new file mode 100644 index 0000000..382c904 --- /dev/null +++ b/doc/classref/kfile/KURLBarItem.html @@ -0,0 +1,141 @@ + + + + + class KURLBarItem + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KURLBarItem


+
+ + + + + +
Table of contents
Modules
kfile Classes
All Classes
+
+ + + + + + + + + + +
Modulekfile
ClassKURLBarItem
InheritsQListBoxPixmap
+

methods

    +
  • KURLBarItem (parent, url, persistent, description = QString .null, icon = QString .null, group = KIcon .Panel) +
    + +
    returns a KURLBarItem instance
    In versions KDE 3.2.0 and above only
    + + + + + + +
    ArgumentTypeDefault
    parentKURLBar
    urlKURL
    persistentbool
    descriptionQStringQString .null
    iconQStringQString .null
    groupKIcon.GroupKIcon .Panel
    +

  • +
  • KURLBarItem (parent, url, description = QString .null, icon = QString .null, group = KIcon .Panel) +
    +
    returns a KURLBarItem instance
    + + + + + +
    ArgumentTypeDefault
    parentKURLBar
    urlKURL
    descriptionQStringQString .null
    iconQStringQString .null
    groupKIcon.GroupKIcon .Panel
    +

  • +
  • applicationLocal () +
    +
    returns (bool)

  • +
  • description () +
    +
    returns (QString)

  • +
  • height (a0) +
    +
    returns (int)
    + +
    ArgumentTypeDefault
    a0QListBox
    +

  • +
  • icon () +
    +
    returns (QString)

  • +
  • iconGroup () +
    +
    returns (KIcon.Group)

  • +
  • isPersistent () +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only

  • +
  • paint (p) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    pQPainter
    +

  • +
  • pixmap () +
    +
    returns (QPixmap)

  • +
  • setApplicationLocal (local) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    localbool
    +

  • +
  • setDescription (desc) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    descQString
    +

  • +
  • setIcon (icon, group = KIcon .Panel) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    iconQString
    groupKIcon.GroupKIcon .Panel
    +

  • +
  • setToolTip (tip) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    tipQString
    +

  • +
  • setURL (url) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    urlKURL
    +

  • +
  • sizeHint () +
    + +
    returns (QSize)
    In versions KDE 3.0.1 and above only

  • +
  • toolTip () +
    +
    returns (QString)

  • +
  • url () +
    +
    returns (KURL)

  • +
  • width (a0) +
    +
    returns (int)
    + +
    ArgumentTypeDefault
    a0QListBox
    +

  • +
+ + + diff --git a/doc/classref/kfile/KURLBarItemDialog.html b/doc/classref/kfile/KURLBarItemDialog.html new file mode 100644 index 0000000..82153e7 --- /dev/null +++ b/doc/classref/kfile/KURLBarItemDialog.html @@ -0,0 +1,84 @@ + + + + + class KURLBarItemDialog + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KURLBarItemDialog


+
+ + + + + +
Table of contents
Modules
kfile Classes
All Classes
+
+ + + + + + + + + + +
Modulekfile
ClassKURLBarItemDialog
InheritsKDialogBase
+

methods

    +
  • KURLBarItemDialog (allowGlobal, url, description, icon, appLocal = 1, iconSize = KIcon .SizeMedium, parent = 0, name = 0) +
    +
    returns a KURLBarItemDialog instance
    + + + + + + + + +
    ArgumentTypeDefault
    allowGlobalbool
    urlKURL
    descriptionQString
    iconQString
    appLocalbool1
    iconSizeintKIcon .SizeMedium
    parentQWidget0
    namechar0
    +

  • +
  • applicationLocal () +
    +
    returns (bool)

  • +
  • description () +
    +
    returns (QString)

  • +
  • getInformation (allowGlobal, url, description, icon, iconSize, parent = 0) +
    + +
    returns (bool) appLocal (bool)
    static
    + + + + + + +
    ArgumentTypeDefault
    allowGlobalbool
    urlKURL
    descriptionQString
    iconQString
    iconSizeint
    parentQWidget0
    +

  • +
  • icon () +
    +
    returns (QString)

  • +
  • url () +
    +
    returns (KURL)

  • +
  • urlChanged (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
+ + + diff --git a/doc/classref/kfile/KURLBarListBox.html b/doc/classref/kfile/KURLBarListBox.html new file mode 100644 index 0000000..0f9a2de --- /dev/null +++ b/doc/classref/kfile/KURLBarListBox.html @@ -0,0 +1,96 @@ + + + + + class KURLBarListBox + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KURLBarListBox


+
+ + + + + +
Table of contents
Modules
kfile Classes
All Classes
+
+ + + + + + + + + + +
Modulekfile
ClassKURLBarListBox
InheritsKListBox
+

methods

    +
  • KURLBarListBox (parent = 0, name = 0) +
    +
    returns a KURLBarListBox instance
    + + +
    ArgumentTypeDefault
    parentQWidget0
    namechar0
    +

  • +
  • contentsDragEnterEvent (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QDragEnterEvent
    +

  • +
  • contentsDropEvent (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QDropEvent
    +

  • +
  • contextMenuEvent (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0QContextMenuEvent
    +

  • +
  • dragObject () +
    +
    returns (QDragObject)

  • +
  • dropped (e) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    eQDropEvent
    +

  • +
  • isVertical () +
    + +
    returns (bool)
    In versions KDE 3.0.1 and above only

  • +
  • orientation () +
    +
    returns (Qt.Orientation)

  • +
  • paintEvent (a0) +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only
    + +
    ArgumentTypeDefault
    a0QPaintEvent
    +

  • +
  • setOrientation (orient) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    orientQt.Orientation
    +

  • +
+ + + diff --git a/doc/classref/kfile/KURLComboBox.html b/doc/classref/kfile/KURLComboBox.html new file mode 100644 index 0000000..69c4854 --- /dev/null +++ b/doc/classref/kfile/KURLComboBox.html @@ -0,0 +1,148 @@ + + + + + class KURLComboBox + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KURLComboBox


+
+ + + + + +
Table of contents
Modules
kfile Classes
All Classes
+
+ + + + + + + + + + +
Modulekfile
ClassKURLComboBox
InheritsKComboBox
+

enums

    +
  • Mode = {Files, Directories, Both +}
  • OverLoadResolving = {RemoveTop, RemoveBottom +}
+

methods

    +
  • KURLComboBox (mode, parent = 0, name = 0) +
    +
    returns a KURLComboBox instance
    + + + +
    ArgumentTypeDefault
    modeKURLComboBox.Mode
    parentQWidget0
    namechar0
    +

  • +
  • KURLComboBox (mode, rw, parent = 0, name = 0) +
    +
    returns a KURLComboBox instance
    + + + + +
    ArgumentTypeDefault
    modeKURLComboBox.Mode
    rwbool
    parentQWidget0
    namechar0
    +

  • +
  • addDefaultURL (url, text = QString .null) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    urlKURL
    textQStringQString .null
    +

  • +
  • addDefaultURL (url, pix, text = QString .null) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    urlKURL
    pixQPixmap
    textQStringQString .null
    +

  • +
  • getPixmap (url) +
    +
    returns (QPixmap)
    + +
    ArgumentTypeDefault
    urlKURL
    +

  • +
  • init (mode) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    modeKURLComboBox.Mode
    +

  • +
  • insertURLItem (a0) +
    Not Implemented
    +

  • +
  • maxItems () +
    +
    returns (int)

  • +
  • removeURL (url, checkDefaultURLs = 1) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    urlKURL
    checkDefaultURLsbool1
    +

  • +
  • setDefaults () +
    +
    returns nothing

  • +
  • setMaxItems (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • setURL (url) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    urlKURL
    +

  • +
  • setURLs (urls) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    urlsQStringList
    +

  • +
  • setURLs (urls, remove) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    urlsQStringList
    removeKURLComboBox.OverLoadResolving
    +

  • +
  • slotActivated (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • updateItem (item, index, pix) +
    Not Implemented
    +

  • +
  • urlActivated (url) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    urlKURL
    +

  • +
  • urls () +
    +
    returns (QStringList)

  • +
+ + + diff --git a/doc/classref/kfile/KURLComboRequester.html b/doc/classref/kfile/KURLComboRequester.html new file mode 100644 index 0000000..1f504ec --- /dev/null +++ b/doc/classref/kfile/KURLComboRequester.html @@ -0,0 +1,49 @@ + + + + + class KURLComboRequester + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KURLComboRequester


+
+ + + + + +
Table of contents
Modules
kfile Classes
All Classes
+
+ + + + + + + + + + +
Modulekfile
ClassKURLComboRequester
InheritsKURLRequester
+

methods

    +
  • KURLComboRequester (parent = 0, name = 0) +
    + +
    returns a KURLComboRequester instance
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    parentQWidget0
    namechar0
    +

  • +
+ + + diff --git a/doc/classref/kfile/KURLPropsPlugin.html b/doc/classref/kfile/KURLPropsPlugin.html new file mode 100644 index 0000000..60e8ced --- /dev/null +++ b/doc/classref/kfile/KURLPropsPlugin.html @@ -0,0 +1,57 @@ + + + + + class KURLPropsPlugin + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KURLPropsPlugin


+
+ + + + + +
Table of contents
Modules
kfile Classes
All Classes
+
+ + + + + + + + + + +
Modulekfile
ClassKURLPropsPlugin
InheritsKPropsDlgPlugin
+

methods

    +
  • KURLPropsPlugin (_props) +
    +
    returns a KURLPropsPlugin instance
    + +
    ArgumentTypeDefault
    _propsKPropertiesDialog
    +

  • +
  • applyChanges () +
    +
    returns nothing

  • +
  • supports (_items) +
    + +
    returns (bool)
    static
    + +
    ArgumentTypeDefault
    _itemsKFileItemList
    +

  • +
+ + + diff --git a/doc/classref/kfile/KURLRequester.html b/doc/classref/kfile/KURLRequester.html new file mode 100644 index 0000000..9ed14a6 --- /dev/null +++ b/doc/classref/kfile/KURLRequester.html @@ -0,0 +1,171 @@ + + + + + class KURLRequester + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KURLRequester


+
+ + + + + +
Table of contents
Modules
kfile Classes
All Classes
+
+ + + + + + + + + + +
Modulekfile
ClassKURLRequester
InheritsQHBox
+

methods

    +
  • KURLRequester (parent = 0, name = 0) +
    +
    returns a KURLRequester instance
    + + +
    ArgumentTypeDefault
    parentQWidget0
    namechar0
    +

  • +
  • KURLRequester (url, parent = 0, name = 0) +
    +
    returns a KURLRequester instance
    + + + +
    ArgumentTypeDefault
    urlQString
    parentQWidget0
    namechar0
    +

  • +
  • KURLRequester (editWidget, parent, name = 0) +
    +
    returns a KURLRequester instance
    + + + +
    ArgumentTypeDefault
    editWidgetQWidget
    parentQWidget
    namechar0
    +

  • +
  • button () +
    +
    returns (KPushButton)

  • +
  • clear () +
    +
    returns nothing

  • +
  • comboBox () +
    +
    returns (KComboBox)

  • +
  • completionObject () +
    +
    returns (KURLCompletion)

  • +
  • customEditor () +
    + +
    returns (KEditListBox.CustomEditor)
    In versions KDE 3.1.0 and above only

  • +
  • fileDialog () +
    +
    returns (KFileDialog)

  • +
  • filter () +
    + +
    returns (QString)
    In versions KDE 3.3.0 and above only

  • +
  • init () +
    +
    returns nothing

  • +
  • lineEdit () +
    +
    returns (KLineEdit)

  • +
  • mode () +
    + +
    returns (uint)
    In versions KDE 3.3.0 and above only

  • +
  • openFileDialog (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KURLRequester
    +

  • +
  • returnPressed () +
    +
    returns nothing

  • +
  • returnPressed (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • setCaption (caption) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    captionQString
    +

  • +
  • setFilter (filter) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    filterQString
    +

  • +
  • setKURL (url) +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only
    + +
    ArgumentTypeDefault
    urlKURL
    +

  • +
  • setMode (m) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    muint
    +

  • +
  • setShowLocalProtocol (b) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    bbool
    +

  • +
  • setURL (url) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    urlQString
    +

  • +
  • showLocalProtocol () +
    +
    returns (bool)

  • +
  • slotOpenDialog () +
    +
    returns nothing

  • +
  • textChanged (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • url () +
    +
    returns (QString)

  • +
  • urlSelected (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
+ + + diff --git a/doc/classref/kfile/KURLRequesterDlg.html b/doc/classref/kfile/KURLRequesterDlg.html new file mode 100644 index 0000000..68ae248 --- /dev/null +++ b/doc/classref/kfile/KURLRequesterDlg.html @@ -0,0 +1,78 @@ + + + + + class KURLRequesterDlg + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KURLRequesterDlg


+
+ + + + + +
Table of contents
Modules
kfile Classes
All Classes
+
+ + + + + + + + + + +
Modulekfile
ClassKURLRequesterDlg
InheritsKDialogBase
+

methods

    +
  • KURLRequesterDlg (url, parent, name, modal = 1) +
    +
    returns a KURLRequesterDlg instance
    + + + + +
    ArgumentTypeDefault
    urlQString
    parentQWidget
    namechar
    modalbool1
    +

  • +
  • KURLRequesterDlg (url, text, parent, name, modal = 1) +
    +
    returns a KURLRequesterDlg instance
    + + + + + +
    ArgumentTypeDefault
    urlQString
    textQString
    parentQWidget
    namechar
    modalbool1
    +

  • +
  • fileDialog () +
    +
    returns (KFileDialog)

  • +
  • getURL (url = QString .null, parent = 0, caption = QString .null) +
    + +
    returns (KURL)
    static
    + + + +
    ArgumentTypeDefault
    urlQStringQString .null
    parentQWidget0
    captionQStringQString .null
    +

  • +
  • selectedURL () +
    +
    returns (KURL)

  • +
  • urlRequester () +
    +
    returns (KURLRequester)

  • +
+ + + diff --git a/doc/classref/kfile/index.html b/doc/classref/kfile/index.html new file mode 100644 index 0000000..1c3ac8d --- /dev/null +++ b/doc/classref/kfile/index.html @@ -0,0 +1,91 @@ + + + + + module kfile + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

kfile Class Index


+
+ + + + +
Table of contents
Modules
All Classes
+
+ +
+ + + + + + + + + + + + + + + + + + + + +
KAppTreeListItem - KFileFilterCombo
KAppTreeListItem
KApplicationPropsPlugin
KApplicationTree
KBindingPropsPlugin
KCombiView
KCustomMenuEditor
KDesktopPropsPlugin
KDevicePropsPlugin
KDirOperator
KDirSelectDialog
KDirSize
KDiskFreeSp
KEncodingFileDialog
KEncodingFileDialog.Result
KExecPropsPlugin
KFile
KFileDetailView
KFileDialog
KFileFilterCombo
+ + + + + + + + + + + + + + + + + + + + +
KFileIconView - KNotify
KFileIconView
KFileIconViewItem
KFileListViewItem
KFileOpenWithHandler
KFilePermissionsPropsPlugin
KFilePreview
KFilePropsPlugin
KFileSharePropsPlugin
KFileTreeBranch
KFileTreeView
KFileTreeViewItem
KFileTreeViewToolTip
KFileView
KFileViewSignaler
KIconButton
KIconCanvas
KIconDialog
KImageFilePreview
KNotify
+ + + + + + + + + + + + + + + + + + + + +
KNotify.Application - KURLRequesterDlg
KNotify.Application
KNotify.ApplicationList
KNotify.Event
KNotify.KNotifyWidget
KNotifyDialog
KOpenWithDlg
KPreviewWidgetBase
KPropertiesDialog
KPropsDlgPlugin
KRecentDocument
KURLBar
KURLBarItem
KURLBarItemDialog
KURLBarListBox
KURLComboBox
KURLComboRequester
KURLPropsPlugin
KURLRequester
KURLRequesterDlg
+ + diff --git a/doc/classref/khtml/DOM.AbstractView.html b/doc/classref/khtml/DOM.AbstractView.html new file mode 100644 index 0000000..72349b8 --- /dev/null +++ b/doc/classref/khtml/DOM.AbstractView.html @@ -0,0 +1,69 @@ + + + + + class DOM.AbstractView + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.AbstractView


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.AbstractView
Inherits
+

methods

    +
  • AbstractView () +
    +
    returns a AbstractView instance

  • +
  • AbstractView (other) +
    +
    returns a AbstractView instance
    + +
    ArgumentTypeDefault
    otherDOM.AbstractView
    +

  • +
  • AbstractView (i) +
    Not Implemented
    +

  • +
  • document () +
    +
    returns (DOM.Document)

  • +
  • getComputedStyle (elt, pseudoElt) +
    +
    returns (DOM.CSSStyleDeclaration)
    + + +
    ArgumentTypeDefault
    eltDOM.Element
    pseudoEltDOM.DOMString
    +

  • +
  • handle () +
    Not Implemented
    +

  • +
  • isNull () +
    +
    returns (bool)

  • +
+ + + diff --git a/doc/classref/khtml/DOM.Attr.html b/doc/classref/khtml/DOM.Attr.html new file mode 100644 index 0000000..631082d --- /dev/null +++ b/doc/classref/khtml/DOM.Attr.html @@ -0,0 +1,77 @@ + + + + + class DOM.Attr + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.Attr


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.Attr
InheritsDOM.Node
+

methods

    +
  • Attr () +
    +
    returns a Attr instance

  • +
  • Attr (other) +
    +
    returns a Attr instance
    + +
    ArgumentTypeDefault
    otherDOM.Node
    +

  • +
  • Attr (other) +
    +
    returns a Attr instance
    + +
    ArgumentTypeDefault
    otherDOM.Attr
    +

  • +
  • Attr (_impl) +
    Not Implemented
    +

  • +
  • name () +
    +
    returns (DOM.DOMString)

  • +
  • ownerElement () +
    +
    returns (DOM.Element)

  • +
  • setValue (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • specified () +
    +
    returns (bool)

  • +
  • value () +
    +
    returns (DOM.DOMString)

  • +
+ + + diff --git a/doc/classref/khtml/DOM.CDATASection.html b/doc/classref/khtml/DOM.CDATASection.html new file mode 100644 index 0000000..d2519ca --- /dev/null +++ b/doc/classref/khtml/DOM.CDATASection.html @@ -0,0 +1,59 @@ + + + + + class DOM.CDATASection + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.CDATASection


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.CDATASection
InheritsDOM.Text
+

methods

    +
  • CDATASection () +
    +
    returns a CDATASection instance

  • +
  • CDATASection (other) +
    +
    returns a CDATASection instance
    + +
    ArgumentTypeDefault
    otherDOM.CDATASection
    +

  • +
  • CDATASection (other) +
    +
    returns a CDATASection instance
    + +
    ArgumentTypeDefault
    otherDOM.Node
    +

  • +
  • CDATASection (i) +
    Not Implemented
    +

  • +
+ + + diff --git a/doc/classref/khtml/DOM.CSSCharsetRule.html b/doc/classref/khtml/DOM.CSSCharsetRule.html new file mode 100644 index 0000000..34e716a --- /dev/null +++ b/doc/classref/khtml/DOM.CSSCharsetRule.html @@ -0,0 +1,68 @@ + + + + + class DOM.CSSCharsetRule + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.CSSCharsetRule


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.CSSCharsetRule
InheritsDOM.CSSRule
+

methods

    +
  • CSSCharsetRule () +
    +
    returns a CSSCharsetRule instance

  • +
  • CSSCharsetRule (other) +
    +
    returns a CSSCharsetRule instance
    + +
    ArgumentTypeDefault
    otherDOM.CSSCharsetRule
    +

  • +
  • CSSCharsetRule (other) +
    +
    returns a CSSCharsetRule instance
    + +
    ArgumentTypeDefault
    otherDOM.CSSRule
    +

  • +
  • CSSCharsetRule (impl) +
    Not Implemented
    +

  • +
  • encoding () +
    +
    returns (DOM.DOMString)

  • +
  • setEncoding (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
+ + + diff --git a/doc/classref/khtml/DOM.CSSException.html b/doc/classref/khtml/DOM.CSSException.html new file mode 100644 index 0000000..dac4e99 --- /dev/null +++ b/doc/classref/khtml/DOM.CSSException.html @@ -0,0 +1,60 @@ + + + + + class DOM.CSSException + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.CSSException


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.CSSException
Inherits
+

enums

    +
  • ExceptionCode = {SYNTAX_ERR, INVALID_MODIFICATION_ERR, _EXCEPTION_OFFSET +}
+

methods

    +
  • CSSException (_code) +
    +
    returns a CSSException instance
    + +
    ArgumentTypeDefault
    _codeushort
    +

  • +
  • CSSException (other) +
    +
    returns a CSSException instance
    + +
    ArgumentTypeDefault
    otherDOM.CSSException
    +

  • +
+

variables

+ + + diff --git a/doc/classref/khtml/DOM.CSSFontFaceRule.html b/doc/classref/khtml/DOM.CSSFontFaceRule.html new file mode 100644 index 0000000..3059e87 --- /dev/null +++ b/doc/classref/khtml/DOM.CSSFontFaceRule.html @@ -0,0 +1,62 @@ + + + + + class DOM.CSSFontFaceRule + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.CSSFontFaceRule


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.CSSFontFaceRule
InheritsDOM.CSSRule
+

methods

    +
  • CSSFontFaceRule () +
    +
    returns a CSSFontFaceRule instance

  • +
  • CSSFontFaceRule (other) +
    +
    returns a CSSFontFaceRule instance
    + +
    ArgumentTypeDefault
    otherDOM.CSSFontFaceRule
    +

  • +
  • CSSFontFaceRule (other) +
    +
    returns a CSSFontFaceRule instance
    + +
    ArgumentTypeDefault
    otherDOM.CSSRule
    +

  • +
  • CSSFontFaceRule (impl) +
    Not Implemented
    +

  • +
  • style () +
    +
    returns (DOM.CSSStyleDeclaration)

  • +
+ + + diff --git a/doc/classref/khtml/DOM.CSSImportRule.html b/doc/classref/khtml/DOM.CSSImportRule.html new file mode 100644 index 0000000..15245c4 --- /dev/null +++ b/doc/classref/khtml/DOM.CSSImportRule.html @@ -0,0 +1,68 @@ + + + + + class DOM.CSSImportRule + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.CSSImportRule


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.CSSImportRule
InheritsDOM.CSSRule
+

methods

    +
  • CSSImportRule () +
    +
    returns a CSSImportRule instance

  • +
  • CSSImportRule (other) +
    +
    returns a CSSImportRule instance
    + +
    ArgumentTypeDefault
    otherDOM.CSSImportRule
    +

  • +
  • CSSImportRule (other) +
    +
    returns a CSSImportRule instance
    + +
    ArgumentTypeDefault
    otherDOM.CSSRule
    +

  • +
  • CSSImportRule (impl) +
    Not Implemented
    +

  • +
  • href () +
    +
    returns (DOM.DOMString)

  • +
  • media () +
    +
    returns (DOM.MediaList)

  • +
  • styleSheet () +
    +
    returns (DOM.CSSStyleSheet)

  • +
+ + + diff --git a/doc/classref/khtml/DOM.CSSMediaRule.html b/doc/classref/khtml/DOM.CSSMediaRule.html new file mode 100644 index 0000000..f7733aa --- /dev/null +++ b/doc/classref/khtml/DOM.CSSMediaRule.html @@ -0,0 +1,78 @@ + + + + + class DOM.CSSMediaRule + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.CSSMediaRule


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.CSSMediaRule
InheritsDOM.CSSRule
+

methods

    +
  • CSSMediaRule () +
    +
    returns a CSSMediaRule instance

  • +
  • CSSMediaRule (other) +
    +
    returns a CSSMediaRule instance
    + +
    ArgumentTypeDefault
    otherDOM.CSSMediaRule
    +

  • +
  • CSSMediaRule (other) +
    +
    returns a CSSMediaRule instance
    + +
    ArgumentTypeDefault
    otherDOM.CSSRule
    +

  • +
  • CSSMediaRule (impl) +
    Not Implemented
    +

  • +
  • cssRules () +
    +
    returns (DOM.CSSRuleList)

  • +
  • deleteRule (index) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    indexulong
    +

  • +
  • insertRule (rule, index) +
    +
    returns (ulong)
    + + +
    ArgumentTypeDefault
    ruleDOM.DOMString
    indexulong
    +

  • +
  • media () +
    +
    returns (DOM.MediaList)

  • +
+ + + diff --git a/doc/classref/khtml/DOM.CSSPageRule.html b/doc/classref/khtml/DOM.CSSPageRule.html new file mode 100644 index 0000000..5634a75 --- /dev/null +++ b/doc/classref/khtml/DOM.CSSPageRule.html @@ -0,0 +1,71 @@ + + + + + class DOM.CSSPageRule + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.CSSPageRule


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.CSSPageRule
InheritsDOM.CSSRule
+

methods

    +
  • CSSPageRule () +
    +
    returns a CSSPageRule instance

  • +
  • CSSPageRule (other) +
    +
    returns a CSSPageRule instance
    + +
    ArgumentTypeDefault
    otherDOM.CSSPageRule
    +

  • +
  • CSSPageRule (other) +
    +
    returns a CSSPageRule instance
    + +
    ArgumentTypeDefault
    otherDOM.CSSRule
    +

  • +
  • CSSPageRule (impl) +
    Not Implemented
    +

  • +
  • selectorText () +
    +
    returns (DOM.DOMString)

  • +
  • setSelectorText (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • style () +
    +
    returns (DOM.CSSStyleDeclaration)

  • +
+ + + diff --git a/doc/classref/khtml/DOM.CSSPrimitiveValue.html b/doc/classref/khtml/DOM.CSSPrimitiveValue.html new file mode 100644 index 0000000..78a4f70 --- /dev/null +++ b/doc/classref/khtml/DOM.CSSPrimitiveValue.html @@ -0,0 +1,98 @@ + + + + + class DOM.CSSPrimitiveValue + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.CSSPrimitiveValue


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.CSSPrimitiveValue
InheritsDOM.CSSValue
+

enums

    +
  • UnitTypes = {CSS_UNKNOWN, CSS_NUMBER, CSS_PERCENTAGE, CSS_EMS, CSS_EXS, CSS_PX, CSS_CM, CSS_MM, CSS_IN, CSS_PT, CSS_PC, CSS_DEG, CSS_RAD, CSS_GRAD, CSS_MS, CSS_S, CSS_HZ, CSS_KHZ, CSS_DIMENSION, CSS_STRING, CSS_URI, CSS_IDENT, CSS_ATTR, CSS_COUNTER, CSS_RECT, CSS_RGBCOLOR, CSS_HTML_RELATIVE +}
  • UnitTypes = {CSS_UNKNOWN, CSS_NUMBER, CSS_PERCENTAGE, CSS_EMS, CSS_EXS, CSS_PX, CSS_CM, CSS_MM, CSS_IN, CSS_PT, CSS_PC, CSS_DEG, CSS_RAD, CSS_GRAD, CSS_MS, CSS_S, CSS_HZ, CSS_KHZ, CSS_DIMENSION, CSS_STRING, CSS_URI, CSS_IDENT, CSS_ATTR, CSS_COUNTER, CSS_RECT, CSS_RGBCOLOR +}
+

methods

    +
  • CSSPrimitiveValue () +
    +
    returns a CSSPrimitiveValue instance

  • +
  • CSSPrimitiveValue (other) +
    +
    returns a CSSPrimitiveValue instance
    + +
    ArgumentTypeDefault
    otherDOM.CSSPrimitiveValue
    +

  • +
  • CSSPrimitiveValue (other) +
    +
    returns a CSSPrimitiveValue instance
    + +
    ArgumentTypeDefault
    otherDOM.CSSValue
    +

  • +
  • CSSPrimitiveValue (impl) +
    Not Implemented
    +

  • +
  • getCounterValue () +
    +
    returns (DOM.Counter)

  • +
  • getFloatValue (unitType) +
    +
    returns (float)
    + +
    ArgumentTypeDefault
    unitTypeushort
    +

  • +
  • getRGBColorValue () +
    +
    returns (DOM.RGBColor)

  • +
  • getRectValue () +
    +
    returns (DOM.Rect)

  • +
  • getStringValue () +
    +
    returns (DOM.DOMString)

  • +
  • primitiveType () +
    +
    returns (ushort)

  • +
  • setFloatValue (unitType, floatValue) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    unitTypeushort
    floatValuefloat
    +

  • +
  • setStringValue (stringType, stringValue) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    stringTypeushort
    stringValueDOM.DOMString
    +

  • +
+ + + diff --git a/doc/classref/khtml/DOM.CSSRule.html b/doc/classref/khtml/DOM.CSSRule.html new file mode 100644 index 0000000..4e89126 --- /dev/null +++ b/doc/classref/khtml/DOM.CSSRule.html @@ -0,0 +1,89 @@ + + + + + class DOM.CSSRule + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.CSSRule


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.CSSRule
Inherits
+

enums

    +
  • RuleType = {UNKNOWN_RULE, STYLE_RULE, CHARSET_RULE, IMPORT_RULE, MEDIA_RULE, FONT_FACE_RULE, PAGE_RULE, QUIRKS_RULE +}
  • RuleType = {UNKNOWN_RULE, STYLE_RULE, CHARSET_RULE, IMPORT_RULE, MEDIA_RULE, FONT_FACE_RULE, PAGE_RULE +}
+

methods

    +
  • CSSRule () +
    +
    returns a CSSRule instance

  • +
  • CSSRule (other) +
    +
    returns a CSSRule instance
    + +
    ArgumentTypeDefault
    otherDOM.CSSRule
    +

  • +
  • CSSRule (impl) +
    Not Implemented
    +

  • +
  • assignOther (other, thisType) +
    + +
    returns nothing
    In versions KDE 3.0.1 and above only
    + + +
    ArgumentTypeDefault
    otherDOM.CSSRule
    thisTypeDOM.CSSRule.RuleType
    +

  • +
  • cssText () +
    +
    returns (DOM.DOMString)

  • +
  • handle () +
    Not Implemented
    +

  • +
  • isNull () +
    +
    returns (bool)

  • +
  • parentRule () +
    +
    returns (DOM.CSSRule)

  • +
  • parentStyleSheet () +
    +
    returns (DOM.CSSStyleSheet)

  • +
  • setCssText (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • type () +
    +
    returns (ushort)

  • +
+ + + diff --git a/doc/classref/khtml/DOM.CSSRuleList.html b/doc/classref/khtml/DOM.CSSRuleList.html new file mode 100644 index 0000000..1a0f852 --- /dev/null +++ b/doc/classref/khtml/DOM.CSSRuleList.html @@ -0,0 +1,71 @@ + + + + + class DOM.CSSRuleList + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.CSSRuleList


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.CSSRuleList
Inherits
+

methods

    +
  • CSSRuleList () +
    +
    returns a CSSRuleList instance

  • +
  • CSSRuleList (other) +
    +
    returns a CSSRuleList instance
    + +
    ArgumentTypeDefault
    otherDOM.CSSRuleList
    +

  • +
  • CSSRuleList (i) +
    Not Implemented
    +

  • +
  • CSSRuleList (i) +
    Not Implemented
    +

  • +
  • handle () +
    Not Implemented
    +

  • +
  • isNull () +
    +
    returns (bool)

  • +
  • item (index) +
    +
    returns (DOM.CSSRule)
    + +
    ArgumentTypeDefault
    indexulong
    +

  • +
  • length () +
    +
    returns (ulong)

  • +
+ + + diff --git a/doc/classref/khtml/DOM.CSSStyleDeclaration.html b/doc/classref/khtml/DOM.CSSStyleDeclaration.html new file mode 100644 index 0000000..763ec61 --- /dev/null +++ b/doc/classref/khtml/DOM.CSSStyleDeclaration.html @@ -0,0 +1,112 @@ + + + + + class DOM.CSSStyleDeclaration + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.CSSStyleDeclaration


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.CSSStyleDeclaration
Inherits
+

methods

    +
  • CSSStyleDeclaration () +
    +
    returns a CSSStyleDeclaration instance

  • +
  • CSSStyleDeclaration (other) +
    +
    returns a CSSStyleDeclaration instance
    + +
    ArgumentTypeDefault
    otherDOM.CSSStyleDeclaration
    +

  • +
  • CSSStyleDeclaration (impl) +
    Not Implemented
    +

  • +
  • cssText () +
    +
    returns (DOM.DOMString)

  • +
  • getPropertyCSSValue (propertyName) +
    +
    returns (DOM.CSSValue)
    + +
    ArgumentTypeDefault
    propertyNameDOM.DOMString
    +

  • +
  • getPropertyPriority (propertyName) +
    +
    returns (DOM.DOMString)
    + +
    ArgumentTypeDefault
    propertyNameDOM.DOMString
    +

  • +
  • getPropertyValue (propertyName) +
    +
    returns (DOM.DOMString)
    + +
    ArgumentTypeDefault
    propertyNameDOM.DOMString
    +

  • +
  • handle () +
    Not Implemented
    +

  • +
  • isNull () +
    +
    returns (bool)

  • +
  • item (index) +
    +
    returns (DOM.DOMString)
    + +
    ArgumentTypeDefault
    indexulong
    +

  • +
  • length () +
    +
    returns (ulong)

  • +
  • parentRule () +
    +
    returns (DOM.CSSRule)

  • +
  • removeProperty (propertyName) +
    +
    returns (DOM.DOMString)
    + +
    ArgumentTypeDefault
    propertyNameDOM.DOMString
    +

  • +
  • setCssText (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setProperty (propertyName, value, priority) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    propertyNameDOM.DOMString
    valueDOM.DOMString
    priorityDOM.DOMString
    +

  • +
+ + + diff --git a/doc/classref/khtml/DOM.CSSStyleRule.html b/doc/classref/khtml/DOM.CSSStyleRule.html new file mode 100644 index 0000000..823498d --- /dev/null +++ b/doc/classref/khtml/DOM.CSSStyleRule.html @@ -0,0 +1,71 @@ + + + + + class DOM.CSSStyleRule + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.CSSStyleRule


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.CSSStyleRule
InheritsDOM.CSSRule
+

methods

    +
  • CSSStyleRule () +
    +
    returns a CSSStyleRule instance

  • +
  • CSSStyleRule (other) +
    +
    returns a CSSStyleRule instance
    + +
    ArgumentTypeDefault
    otherDOM.CSSStyleRule
    +

  • +
  • CSSStyleRule (other) +
    +
    returns a CSSStyleRule instance
    + +
    ArgumentTypeDefault
    otherDOM.CSSRule
    +

  • +
  • CSSStyleRule (impl) +
    Not Implemented
    +

  • +
  • selectorText () +
    +
    returns (DOM.DOMString)

  • +
  • setSelectorText (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • style () +
    +
    returns (DOM.CSSStyleDeclaration)

  • +
+ + + diff --git a/doc/classref/khtml/DOM.CSSStyleSheet.html b/doc/classref/khtml/DOM.CSSStyleSheet.html new file mode 100644 index 0000000..83b4b8b --- /dev/null +++ b/doc/classref/khtml/DOM.CSSStyleSheet.html @@ -0,0 +1,78 @@ + + + + + class DOM.CSSStyleSheet + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.CSSStyleSheet


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.CSSStyleSheet
InheritsDOM.StyleSheet
+

methods

    +
  • CSSStyleSheet () +
    +
    returns a CSSStyleSheet instance

  • +
  • CSSStyleSheet (other) +
    +
    returns a CSSStyleSheet instance
    + +
    ArgumentTypeDefault
    otherDOM.CSSStyleSheet
    +

  • +
  • CSSStyleSheet (other) +
    +
    returns a CSSStyleSheet instance
    + +
    ArgumentTypeDefault
    otherDOM.StyleSheet
    +

  • +
  • CSSStyleSheet (impl) +
    Not Implemented
    +

  • +
  • cssRules () +
    +
    returns (DOM.CSSRuleList)

  • +
  • deleteRule (index) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    indexulong
    +

  • +
  • insertRule (rule, index) +
    +
    returns (ulong)
    + + +
    ArgumentTypeDefault
    ruleDOM.DOMString
    indexulong
    +

  • +
  • ownerRule () +
    +
    returns (DOM.CSSRule)

  • +
+ + + diff --git a/doc/classref/khtml/DOM.CSSUnknownRule.html b/doc/classref/khtml/DOM.CSSUnknownRule.html new file mode 100644 index 0000000..963db0e --- /dev/null +++ b/doc/classref/khtml/DOM.CSSUnknownRule.html @@ -0,0 +1,59 @@ + + + + + class DOM.CSSUnknownRule + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.CSSUnknownRule


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.CSSUnknownRule
InheritsDOM.CSSRule
+

methods

    +
  • CSSUnknownRule () +
    +
    returns a CSSUnknownRule instance

  • +
  • CSSUnknownRule (other) +
    +
    returns a CSSUnknownRule instance
    + +
    ArgumentTypeDefault
    otherDOM.CSSUnknownRule
    +

  • +
  • CSSUnknownRule (other) +
    +
    returns a CSSUnknownRule instance
    + +
    ArgumentTypeDefault
    otherDOM.CSSRule
    +

  • +
  • CSSUnknownRule (impl) +
    Not Implemented
    +

  • +
+ + + diff --git a/doc/classref/khtml/DOM.CSSValue.html b/doc/classref/khtml/DOM.CSSValue.html new file mode 100644 index 0000000..b8bbec4 --- /dev/null +++ b/doc/classref/khtml/DOM.CSSValue.html @@ -0,0 +1,81 @@ + + + + + class DOM.CSSValue + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.CSSValue


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.CSSValue
Inherits
+

enums

    +
  • UnitTypes = {CSS_INHERIT, CSS_PRIMITIVE_VALUE, CSS_VALUE_LIST, CSS_CUSTOM, CSS_INITIAL +}
  • UnitTypes = {CSS_INHERIT, CSS_PRIMITIVE_VALUE, CSS_VALUE_LIST, CSS_CUSTOM +}
+

methods

    +
  • CSSValue () +
    +
    returns a CSSValue instance

  • +
  • CSSValue (other) +
    +
    returns a CSSValue instance
    + +
    ArgumentTypeDefault
    otherDOM.CSSValue
    +

  • +
  • CSSValue (impl) +
    Not Implemented
    +

  • +
  • cssText () +
    +
    returns (DOM.DOMString)

  • +
  • cssValueType () +
    +
    returns (ushort)

  • +
  • handle () +
    Not Implemented
    +

  • +
  • isCSSPrimitiveValue () +
    +
    returns (bool)

  • +
  • isCSSValueList () +
    +
    returns (bool)

  • +
  • isNull () +
    +
    returns (bool)

  • +
  • setCssText (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
+ + + diff --git a/doc/classref/khtml/DOM.CSSValueList.html b/doc/classref/khtml/DOM.CSSValueList.html new file mode 100644 index 0000000..0b3e226 --- /dev/null +++ b/doc/classref/khtml/DOM.CSSValueList.html @@ -0,0 +1,68 @@ + + + + + class DOM.CSSValueList + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.CSSValueList


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.CSSValueList
InheritsDOM.CSSValue
+

methods

    +
  • CSSValueList () +
    +
    returns a CSSValueList instance

  • +
  • CSSValueList (other) +
    +
    returns a CSSValueList instance
    + +
    ArgumentTypeDefault
    otherDOM.CSSValueList
    +

  • +
  • CSSValueList (other) +
    +
    returns a CSSValueList instance
    + +
    ArgumentTypeDefault
    otherDOM.CSSValue
    +

  • +
  • CSSValueList (impl) +
    Not Implemented
    +

  • +
  • item (index) +
    +
    returns (DOM.CSSValue)
    + +
    ArgumentTypeDefault
    indexulong
    +

  • +
  • length () +
    +
    returns (ulong)

  • +
+ + + diff --git a/doc/classref/khtml/DOM.CharacterData.html b/doc/classref/khtml/DOM.CharacterData.html new file mode 100644 index 0000000..26e7951 --- /dev/null +++ b/doc/classref/khtml/DOM.CharacterData.html @@ -0,0 +1,106 @@ + + + + + class DOM.CharacterData + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.CharacterData


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.CharacterData
InheritsDOM.Node
+

methods

    +
  • CharacterData () +
    +
    returns a CharacterData instance

  • +
  • CharacterData (other) +
    +
    returns a CharacterData instance
    + +
    ArgumentTypeDefault
    otherDOM.CharacterData
    +

  • +
  • CharacterData (other) +
    +
    returns a CharacterData instance
    + +
    ArgumentTypeDefault
    otherDOM.Node
    +

  • +
  • CharacterData (i) +
    Not Implemented
    +

  • +
  • appendData (arg) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    argDOM.DOMString
    +

  • +
  • data () +
    +
    returns (DOM.DOMString)

  • +
  • deleteData (offset, count) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    offsetulong
    countulong
    +

  • +
  • insertData (offset, arg) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    offsetulong
    argDOM.DOMString
    +

  • +
  • length () +
    +
    returns (ulong)

  • +
  • replaceData (offset, count, arg) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    offsetulong
    countulong
    argDOM.DOMString
    +

  • +
  • setData (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • substringData (offset, count) +
    +
    returns (DOM.DOMString)
    + + +
    ArgumentTypeDefault
    offsetulong
    countulong
    +

  • +
+ + + diff --git a/doc/classref/khtml/DOM.Comment.html b/doc/classref/khtml/DOM.Comment.html new file mode 100644 index 0000000..526f868 --- /dev/null +++ b/doc/classref/khtml/DOM.Comment.html @@ -0,0 +1,59 @@ + + + + + class DOM.Comment + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.Comment


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.Comment
InheritsDOM.CharacterData
+

methods

    +
  • Comment () +
    +
    returns a Comment instance

  • +
  • Comment (other) +
    +
    returns a Comment instance
    + +
    ArgumentTypeDefault
    otherDOM.Comment
    +

  • +
  • Comment (other) +
    +
    returns a Comment instance
    + +
    ArgumentTypeDefault
    otherDOM.Node
    +

  • +
  • Comment (i) +
    Not Implemented
    +

  • +
+ + + diff --git a/doc/classref/khtml/DOM.Counter.html b/doc/classref/khtml/DOM.Counter.html new file mode 100644 index 0000000..1bc741c --- /dev/null +++ b/doc/classref/khtml/DOM.Counter.html @@ -0,0 +1,68 @@ + + + + + class DOM.Counter + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.Counter


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.Counter
Inherits
+

methods

    +
  • Counter () +
    +
    returns a Counter instance

  • +
  • Counter (other) +
    +
    returns a Counter instance
    + +
    ArgumentTypeDefault
    otherDOM.Counter
    +

  • +
  • Counter (i) +
    Not Implemented
    +

  • +
  • handle () +
    Not Implemented
    +

  • +
  • identifier () +
    +
    returns (DOM.DOMString)

  • +
  • isNull () +
    +
    returns (bool)

  • +
  • listStyle () +
    +
    returns (DOM.DOMString)

  • +
  • separator () +
    +
    returns (DOM.DOMString)

  • +
+ + + diff --git a/doc/classref/khtml/DOM.CustomNodeFilter.html b/doc/classref/khtml/DOM.CustomNodeFilter.html new file mode 100644 index 0000000..e48c617 --- /dev/null +++ b/doc/classref/khtml/DOM.CustomNodeFilter.html @@ -0,0 +1,56 @@ + + + + + class DOM.CustomNodeFilter + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.CustomNodeFilter


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.CustomNodeFilter
InheritsDOM.DomShared
+

methods

    +
  • CustomNodeFilter () +
    +
    returns a CustomNodeFilter instance

  • +
  • acceptNode (n) +
    +
    returns (short)
    + +
    ArgumentTypeDefault
    nDOM.Node
    +

  • +
  • customNodeFilterType () +
    +
    returns (DOM.DOMString)

  • +
  • isNull () +
    +
    returns (bool)

  • +
+ + + diff --git a/doc/classref/khtml/DOM.DOMException.html b/doc/classref/khtml/DOM.DOMException.html new file mode 100644 index 0000000..cb254cb --- /dev/null +++ b/doc/classref/khtml/DOM.DOMException.html @@ -0,0 +1,60 @@ + + + + + class DOM.DOMException + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.DOMException


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.DOMException
Inherits
+

enums

    +
  • ExceptionCode = {INDEX_SIZE_ERR, DOMSTRING_SIZE_ERR, HIERARCHY_REQUEST_ERR, WRONG_DOCUMENT_ERR, INVALID_CHARACTER_ERR, NO_DATA_ALLOWED_ERR, NO_MODIFICATION_ALLOWED_ERR, NOT_FOUND_ERR, NOT_SUPPORTED_ERR, INUSE_ATTRIBUTE_ERR, INVALID_STATE_ERR, SYNTAX_ERR, INVALID_MODIFICATION_ERR, NAMESPACE_ERR, INVALID_ACCESS_ERR +}
+

methods

    +
  • DOMException (_code) +
    +
    returns a DOMException instance
    + +
    ArgumentTypeDefault
    _codeushort
    +

  • +
  • DOMException (other) +
    +
    returns a DOMException instance
    + +
    ArgumentTypeDefault
    otherDOM.DOMException
    +

  • +
+

variables

+ + + diff --git a/doc/classref/khtml/DOM.DOMImplementation.html b/doc/classref/khtml/DOM.DOMImplementation.html new file mode 100644 index 0000000..1ddd503 --- /dev/null +++ b/doc/classref/khtml/DOM.DOMImplementation.html @@ -0,0 +1,101 @@ + + + + + class DOM.DOMImplementation + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.DOMImplementation


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.DOMImplementation
Inherits
+

methods

    +
  • DOMImplementation () +
    +
    returns a DOMImplementation instance

  • +
  • DOMImplementation (other) +
    +
    returns a DOMImplementation instance
    + +
    ArgumentTypeDefault
    otherDOM.DOMImplementation
    +

  • +
  • DOMImplementation (i) +
    Not Implemented
    +

  • +
  • createCSSStyleSheet (title, media) +
    +
    returns (DOM.CSSStyleSheet)
    + + +
    ArgumentTypeDefault
    titleDOM.DOMString
    mediaDOM.DOMString
    +

  • +
  • createDocument (namespaceURI, qualifiedName, doctype) +
    +
    returns (DOM.Document)
    + + + +
    ArgumentTypeDefault
    namespaceURIDOM.DOMString
    qualifiedNameDOM.DOMString
    doctypeDOM.DocumentType
    +

  • +
  • createDocumentType (qualifiedName, publicId, systemId) +
    +
    returns (DOM.DocumentType)
    + + + +
    ArgumentTypeDefault
    qualifiedNameDOM.DOMString
    publicIdDOM.DOMString
    systemIdDOM.DOMString
    +

  • +
  • createHTMLDocument (title) +
    +
    returns (DOM.HTMLDocument)
    + +
    ArgumentTypeDefault
    titleDOM.DOMString
    +

  • +
  • getInterface (feature) +
    +
    returns (DOM.DOMImplementation)
    + +
    ArgumentTypeDefault
    featureDOM.DOMString
    +

  • +
  • handle () +
    Not Implemented
    +

  • +
  • hasFeature (feature, version) +
    +
    returns (bool)
    + + +
    ArgumentTypeDefault
    featureDOM.DOMString
    versionDOM.DOMString
    +

  • +
  • isNull () +
    +
    returns (bool)

  • +
+ + + diff --git a/doc/classref/khtml/DOM.DOMString.html b/doc/classref/khtml/DOM.DOMString.html new file mode 100644 index 0000000..8e9ad41 --- /dev/null +++ b/doc/classref/khtml/DOM.DOMString.html @@ -0,0 +1,158 @@ + + + + + class DOM.DOMString + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.DOMString


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.DOMString
Inherits
+

methods

    +
  • DOMString () +
    +
    returns a DOMString instance

  • +
  • DOMString (str, len) +
    +
    returns a DOMString instance
    + + +
    ArgumentTypeDefault
    strQChar
    lenuint
    +

  • +
  • DOMString (a0) +
    +
    returns a DOMString instance
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • DOMString (str) +
    +
    returns a DOMString instance
    + +
    ArgumentTypeDefault
    strchar
    +

  • +
  • DOMString (i) +
    Not Implemented
    +

  • +
  • DOMString (str) +
    +
    returns a DOMString instance
    + +
    ArgumentTypeDefault
    strDOM.DOMString
    +

  • +
  • copy () +
    +
    returns (DOM.DOMString)

  • +
  • find (c, start = 0) +
    +
    returns (int)
    + + +
    ArgumentTypeDefault
    cQChar
    startint0
    +

  • +
  • implementation () +
    Not Implemented
    +

  • +
  • insert (str, pos) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    strDOM.DOMString
    posuint
    +

  • +
  • isEmpty () +
    +
    returns (bool)

  • +
  • isNull () +
    +
    returns (bool)

  • +
  • length () +
    +
    returns (uint)

  • +
  • lower () +
    +
    returns (DOM.DOMString)

  • +
  • percentage () +
    +
    returns (bool) _percentage (int)

  • +
  • remove (pos, len = 1) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    posuint
    lenint1
    +

  • +
  • split (pos) +
    +
    returns (DOM.DOMString)
    + +
    ArgumentTypeDefault
    posuint
    +

  • +
  • string () +
    +
    returns (QString)

  • +
  • toInt () +
    +
    returns (int)

  • +
  • truncate (len) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    lenuint
    +

  • +
  • unicode () +
    +
    returns (QChar)

  • +
  • upper () +
    +
    returns (DOM.DOMString)

  • +
+

operators

    +
  • operator + (a0) +
    +
    returns (DOM.DOMString)
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • operator += (a0) +
    +
    returns (DOM.DOMString)
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • operator [] (index) +
    +
    returns (QChar),
    + +
    ArgumentTypeDefault
    indexin
    +

  • +
+ + + diff --git a/doc/classref/khtml/DOM.Document.html b/doc/classref/khtml/DOM.Document.html new file mode 100644 index 0000000..dd12a98 --- /dev/null +++ b/doc/classref/khtml/DOM.Document.html @@ -0,0 +1,292 @@ + + + + + class DOM.Document + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.Document


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.Document
InheritsDOM.Node
+

methods

    +
  • Document () +
    +
    returns a Document instance

  • +
  • Document (a0) +
    +
    returns a Document instance
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • Document (other) +
    +
    returns a Document instance
    + +
    ArgumentTypeDefault
    otherDOM.Document
    +

  • +
  • Document (other) +
    +
    returns a Document instance
    + +
    ArgumentTypeDefault
    otherDOM.Node
    +

  • +
  • Document (i) +
    Not Implemented
    +

  • +
  • Document (a0) +
    Not Implemented
    +

  • +
  • abort () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • addStyleSheet (sheet) +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only
    + +
    ArgumentTypeDefault
    sheetDOM.StyleSheet
    +

  • +
  • async () +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only

  • +
  • completeURL (url) +
    +
    returns (DOM.DOMString)
    + +
    ArgumentTypeDefault
    urlDOM.DOMString
    +

  • +
  • createAttribute (name) +
    +
    returns (DOM.Attr)
    + +
    ArgumentTypeDefault
    nameDOM.DOMString
    +

  • +
  • createAttributeNS (namespaceURI, qualifiedName) +
    +
    returns (DOM.Attr)
    + + +
    ArgumentTypeDefault
    namespaceURIDOM.DOMString
    qualifiedNameDOM.DOMString
    +

  • +
  • createCDATASection (data) +
    +
    returns (DOM.CDATASection)
    + +
    ArgumentTypeDefault
    dataDOM.DOMString
    +

  • +
  • createComment (data) +
    +
    returns (DOM.Comment)
    + +
    ArgumentTypeDefault
    dataDOM.DOMString
    +

  • +
  • createDocumentFragment () +
    +
    returns (DOM.DocumentFragment)

  • +
  • createElement (tagName) +
    +
    returns (DOM.Element)
    + +
    ArgumentTypeDefault
    tagNameDOM.DOMString
    +

  • +
  • createElementNS (namespaceURI, qualifiedName) +
    +
    returns (DOM.Element)
    + + +
    ArgumentTypeDefault
    namespaceURIDOM.DOMString
    qualifiedNameDOM.DOMString
    +

  • +
  • createEntityReference (name) +
    +
    returns (DOM.EntityReference)
    + +
    ArgumentTypeDefault
    nameDOM.DOMString
    +

  • +
  • createEvent (eventType) +
    +
    returns (DOM.Event)
    + +
    ArgumentTypeDefault
    eventTypeDOM.DOMString
    +

  • +
  • createNodeIterator (root, whatToShow, filter, entityReferenceExpansion) +
    +
    returns (DOM.NodeIterator)
    + + + + +
    ArgumentTypeDefault
    rootDOM.Node
    whatToShowulong
    filterDOM.NodeFilter
    entityReferenceExpansionbool
    +

  • +
  • createProcessingInstruction (target, data) +
    +
    returns (DOM.ProcessingInstruction)
    + + +
    ArgumentTypeDefault
    targetDOM.DOMString
    dataDOM.DOMString
    +

  • +
  • createRange () +
    +
    returns (DOM.Range)

  • +
  • createTextNode (data) +
    +
    returns (DOM.Text)
    + +
    ArgumentTypeDefault
    dataDOM.DOMString
    +

  • +
  • createTreeWalker (root, whatToShow, filter, entityReferenceExpansion) +
    +
    returns (DOM.TreeWalker)
    + + + + +
    ArgumentTypeDefault
    rootDOM.Node
    whatToShowulong
    filterDOM.NodeFilter
    entityReferenceExpansionbool
    +

  • +
  • defaultView () +
    +
    returns (DOM.AbstractView)

  • +
  • designMode () +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only

  • +
  • doctype () +
    +
    returns (DOM.DocumentType)

  • +
  • documentElement () +
    +
    returns (DOM.Element)

  • +
  • getElementById (elementId) +
    +
    returns (DOM.Element)
    + +
    ArgumentTypeDefault
    elementIdDOM.DOMString
    +

  • +
  • getElementsByTagName (tagname) +
    +
    returns (DOM.NodeList)
    + +
    ArgumentTypeDefault
    tagnameDOM.DOMString
    +

  • +
  • getElementsByTagNameNS (namespaceURI, localName) +
    +
    returns (DOM.NodeList)
    + + +
    ArgumentTypeDefault
    namespaceURIDOM.DOMString
    localNameDOM.DOMString
    +

  • +
  • getOverrideStyle (elt, pseudoElt) +
    +
    returns (DOM.CSSStyleDeclaration)
    + + +
    ArgumentTypeDefault
    eltDOM.Element
    pseudoEltDOM.DOMString
    +

  • +
  • implementation () +
    +
    returns (DOM.DOMImplementation)

  • +
  • importNode (importedNode, deep) +
    +
    returns (DOM.Node)
    + + +
    ArgumentTypeDefault
    importedNodeDOM.Node
    deepbool
    +

  • +
  • isHTMLDocument () +
    +
    returns (bool)

  • +
  • load (uri) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    uriDOM.DOMString
    +

  • +
  • loadXML (source) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    sourceDOM.DOMString
    +

  • +
  • preferredStylesheetSet () +
    + +
    returns (DOM.DOMString)
    In versions KDE 3.2.0 and above only

  • +
  • removeStyleSheet (sheet) +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only
    + +
    ArgumentTypeDefault
    sheetDOM.StyleSheet
    +

  • +
  • selectedStylesheetSet () +
    + +
    returns (DOM.DOMString)
    In versions KDE 3.2.0 and above only

  • +
  • setAsync (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • setDesignMode (enable) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    enablebool
    +

  • +
  • setSelectedStylesheetSet (aString) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    aStringDOM.DOMString
    +

  • +
  • styleSheets () +
    +
    returns (DOM.StyleSheetList)

  • +
  • toString () +
    + +
    returns (DOM.DOMString)
    In versions KDE 3.3.0 and above only

  • +
  • updateRendering () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • view () +
    +
    returns (KHTMLView)

  • +
+ + + diff --git a/doc/classref/khtml/DOM.DocumentFragment.html b/doc/classref/khtml/DOM.DocumentFragment.html new file mode 100644 index 0000000..d35a07a --- /dev/null +++ b/doc/classref/khtml/DOM.DocumentFragment.html @@ -0,0 +1,59 @@ + + + + + class DOM.DocumentFragment + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.DocumentFragment


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.DocumentFragment
InheritsDOM.Node
+

methods

    +
  • DocumentFragment () +
    +
    returns a DocumentFragment instance

  • +
  • DocumentFragment (other) +
    +
    returns a DocumentFragment instance
    + +
    ArgumentTypeDefault
    otherDOM.DocumentFragment
    +

  • +
  • DocumentFragment (other) +
    +
    returns a DocumentFragment instance
    + +
    ArgumentTypeDefault
    otherDOM.Node
    +

  • +
  • DocumentFragment (i) +
    Not Implemented
    +

  • +
+ + + diff --git a/doc/classref/khtml/DOM.DocumentStyle.html b/doc/classref/khtml/DOM.DocumentStyle.html new file mode 100644 index 0000000..1b2df6e --- /dev/null +++ b/doc/classref/khtml/DOM.DocumentStyle.html @@ -0,0 +1,71 @@ + + + + + class DOM.DocumentStyle + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.DocumentStyle


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.DocumentStyle
Inherits
+

methods

    +
  • DocumentStyle () +
    +
    returns a DocumentStyle instance

  • +
  • DocumentStyle (other) +
    +
    returns a DocumentStyle instance
    + +
    ArgumentTypeDefault
    otherDOM.DocumentStyle
    +

  • +
  • isNull () +
    +
    returns (bool)

  • +
  • preferredStylesheetSet () +
    + +
    returns (DOM.DOMString)
    In versions KDE 3.2.0 and above only

  • +
  • selectedStylesheetSet () +
    + +
    returns (DOM.DOMString)
    In versions KDE 3.2.0 and above only

  • +
  • setSelectedStylesheetSet (aString) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    aStringDOM.DOMString
    +

  • +
  • styleSheets () +
    +
    returns (DOM.StyleSheetList)

  • +
+ + + diff --git a/doc/classref/khtml/DOM.DocumentType.html b/doc/classref/khtml/DOM.DocumentType.html new file mode 100644 index 0000000..3c7911e --- /dev/null +++ b/doc/classref/khtml/DOM.DocumentType.html @@ -0,0 +1,77 @@ + + + + + class DOM.DocumentType + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.DocumentType


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.DocumentType
InheritsDOM.Node
+

methods

    +
  • DocumentType () +
    +
    returns a DocumentType instance

  • +
  • DocumentType (other) +
    +
    returns a DocumentType instance
    + +
    ArgumentTypeDefault
    otherDOM.DocumentType
    +

  • +
  • DocumentType (other) +
    +
    returns a DocumentType instance
    + +
    ArgumentTypeDefault
    otherDOM.Node
    +

  • +
  • DocumentType (impl) +
    Not Implemented
    +

  • +
  • entities () +
    +
    returns (DOM.NamedNodeMap)

  • +
  • internalSubset () +
    +
    returns (DOM.DOMString)

  • +
  • name () +
    +
    returns (DOM.DOMString)

  • +
  • notations () +
    +
    returns (DOM.NamedNodeMap)

  • +
  • publicId () +
    +
    returns (DOM.DOMString)

  • +
  • systemId () +
    +
    returns (DOM.DOMString)

  • +
+ + + diff --git a/doc/classref/khtml/DOM.DomShared.html b/doc/classref/khtml/DOM.DomShared.html new file mode 100644 index 0000000..885a8ac --- /dev/null +++ b/doc/classref/khtml/DOM.DomShared.html @@ -0,0 +1,59 @@ + + + + + class DOM.DomShared + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.DomShared


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.DomShared
Inherits
+

methods

    +
  • DomShared () +
    +
    returns a DomShared instance

  • +
  • deleteMe () +
    +
    returns (bool)

  • +
  • deref () +
    +
    returns nothing

  • +
  • hasOneRef () +
    +
    returns (bool)

  • +
  • ref () +
    +
    returns nothing

  • +
  • refCount () +
    +
    returns (uint)

  • +
+ + + diff --git a/doc/classref/khtml/DOM.Element.html b/doc/classref/khtml/DOM.Element.html new file mode 100644 index 0000000..c7fd5be --- /dev/null +++ b/doc/classref/khtml/DOM.Element.html @@ -0,0 +1,220 @@ + + + + + class DOM.Element + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.Element


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.Element
InheritsDOM.Node
+

methods

    +
  • Element () +
    +
    returns a Element instance

  • +
  • Element (other) +
    +
    returns a Element instance
    + +
    ArgumentTypeDefault
    otherDOM.Node
    +

  • +
  • Element (other) +
    +
    returns a Element instance
    + +
    ArgumentTypeDefault
    otherDOM.Element
    +

  • +
  • Element (_impl) +
    Not Implemented
    +

  • +
  • contentEditable () +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only

  • +
  • form () +
    + +
    returns (DOM.Element)
    In versions KDE 3.1.0 and above only

  • +
  • getAttribute (name) +
    +
    returns (DOM.DOMString)
    + +
    ArgumentTypeDefault
    nameDOM.DOMString
    +

  • +
  • getAttributeNS (namespaceURI, localName) +
    +
    returns (DOM.DOMString)
    + + +
    ArgumentTypeDefault
    namespaceURIDOM.DOMString
    localNameDOM.DOMString
    +

  • +
  • getAttributeNode (name) +
    +
    returns (DOM.Attr)
    + +
    ArgumentTypeDefault
    nameDOM.DOMString
    +

  • +
  • getAttributeNodeNS (namespaceURI, localName) +
    +
    returns (DOM.Attr)
    + + +
    ArgumentTypeDefault
    namespaceURIDOM.DOMString
    localNameDOM.DOMString
    +

  • +
  • getElementsByTagName (name) +
    +
    returns (DOM.NodeList)
    + +
    ArgumentTypeDefault
    nameDOM.DOMString
    +

  • +
  • getElementsByTagNameNS (namespaceURI, localName) +
    +
    returns (DOM.NodeList)
    + + +
    ArgumentTypeDefault
    namespaceURIDOM.DOMString
    localNameDOM.DOMString
    +

  • +
  • hasAttribute (name) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    nameDOM.DOMString
    +

  • +
  • hasAttributeNS (namespaceURI, localName) +
    +
    returns (bool)
    + + +
    ArgumentTypeDefault
    namespaceURIDOM.DOMString
    localNameDOM.DOMString
    +

  • +
  • isHTMLElement () +
    +
    returns (bool)

  • +
  • khtmlMalformedPrefix (name) +
    + +
    returns (bool)
    static
    + +
    ArgumentTypeDefault
    nameDOM.DOMString
    +

  • +
  • khtmlMalformedQualifiedName (name) +
    + +
    returns (bool)
    static
    + +
    ArgumentTypeDefault
    nameDOM.DOMString
    +

  • +
  • khtmlValidAttrName (name) +
    + +
    returns (bool)
    static
    + +
    ArgumentTypeDefault
    nameDOM.DOMString
    +

  • +
  • khtmlValidPrefix (name) +
    + +
    returns (bool)
    static
    + +
    ArgumentTypeDefault
    nameDOM.DOMString
    +

  • +
  • khtmlValidQualifiedName (name) +
    + +
    returns (bool)
    static
    + +
    ArgumentTypeDefault
    nameDOM.DOMString
    +

  • +
  • normalize () +
    + +
    returns nothing
    In versions less than KDE 3.1.2 only

  • +
  • removeAttribute (name) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    nameDOM.DOMString
    +

  • +
  • removeAttributeNS (namespaceURI, localName) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    namespaceURIDOM.DOMString
    localNameDOM.DOMString
    +

  • +
  • removeAttributeNode (oldAttr) +
    +
    returns (DOM.Attr)
    + +
    ArgumentTypeDefault
    oldAttrDOM.Attr
    +

  • +
  • setAttribute (name, value) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    nameDOM.DOMString
    valueDOM.DOMString
    +

  • +
  • setAttributeNS (namespaceURI, qualifiedName, value) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    namespaceURIDOM.DOMString
    qualifiedNameDOM.DOMString
    valueDOM.DOMString
    +

  • +
  • setAttributeNode (newAttr) +
    +
    returns (DOM.Attr)
    + +
    ArgumentTypeDefault
    newAttrDOM.Attr
    +

  • +
  • setAttributeNodeNS (newAttr) +
    +
    returns (DOM.Attr)
    + +
    ArgumentTypeDefault
    newAttrDOM.Attr
    +

  • +
  • setContentEditable (enabled) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    enabledbool
    +

  • +
  • style () +
    +
    returns (DOM.CSSStyleDeclaration)

  • +
  • tagName () +
    +
    returns (DOM.DOMString)

  • +
+ + + diff --git a/doc/classref/khtml/DOM.Entity.html b/doc/classref/khtml/DOM.Entity.html new file mode 100644 index 0000000..c264e3c --- /dev/null +++ b/doc/classref/khtml/DOM.Entity.html @@ -0,0 +1,68 @@ + + + + + class DOM.Entity + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.Entity


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.Entity
InheritsDOM.Node
+

methods

    +
  • Entity () +
    +
    returns a Entity instance

  • +
  • Entity (other) +
    +
    returns a Entity instance
    + +
    ArgumentTypeDefault
    otherDOM.Entity
    +

  • +
  • Entity (other) +
    +
    returns a Entity instance
    + +
    ArgumentTypeDefault
    otherDOM.Node
    +

  • +
  • Entity (i) +
    Not Implemented
    +

  • +
  • notationName () +
    +
    returns (DOM.DOMString)

  • +
  • publicId () +
    +
    returns (DOM.DOMString)

  • +
  • systemId () +
    +
    returns (DOM.DOMString)

  • +
+ + + diff --git a/doc/classref/khtml/DOM.EntityReference.html b/doc/classref/khtml/DOM.EntityReference.html new file mode 100644 index 0000000..de2a1d7 --- /dev/null +++ b/doc/classref/khtml/DOM.EntityReference.html @@ -0,0 +1,59 @@ + + + + + class DOM.EntityReference + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.EntityReference


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.EntityReference
InheritsDOM.Node
+

methods

    +
  • EntityReference () +
    +
    returns a EntityReference instance

  • +
  • EntityReference (other) +
    +
    returns a EntityReference instance
    + +
    ArgumentTypeDefault
    otherDOM.EntityReference
    +

  • +
  • EntityReference (other) +
    +
    returns a EntityReference instance
    + +
    ArgumentTypeDefault
    otherDOM.Node
    +

  • +
  • EntityReference (i) +
    Not Implemented
    +

  • +
+ + + diff --git a/doc/classref/khtml/DOM.Event.html b/doc/classref/khtml/DOM.Event.html new file mode 100644 index 0000000..1dd15f6 --- /dev/null +++ b/doc/classref/khtml/DOM.Event.html @@ -0,0 +1,101 @@ + + + + + class DOM.Event + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.Event


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.Event
Inherits
+

enums

    +
  • PhaseType = {CAPTURING_PHASE, AT_TARGET, BUBBLING_PHASE +}
+

methods

    +
  • Event () +
    +
    returns a Event instance

  • +
  • Event (other) +
    +
    returns a Event instance
    + +
    ArgumentTypeDefault
    otherDOM.Event
    +

  • +
  • Event (i) +
    Not Implemented
    +

  • +
  • bubbles () +
    +
    returns (bool)

  • +
  • cancelable () +
    +
    returns (bool)

  • +
  • currentTarget () +
    +
    returns (DOM.Node)

  • +
  • eventModuleName () +
    + +
    returns (DOM.DOMString)
    In versions less than KDE 3.2.0 only

  • +
  • eventPhase () +
    +
    returns (ushort)

  • +
  • handle () +
    Not Implemented
    +

  • +
  • initEvent (eventTypeArg, canBubbleArg, cancelableArg) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    eventTypeArgDOM.DOMString
    canBubbleArgbool
    cancelableArgbool
    +

  • +
  • isNull () +
    +
    returns (bool)

  • +
  • preventDefault () +
    +
    returns nothing

  • +
  • stopPropagation () +
    +
    returns nothing

  • +
  • target () +
    +
    returns (DOM.Node)

  • +
  • timeStamp () +
    +
    returns (DOMTimeStamp)

  • +
  • type () +
    +
    returns (DOM.DOMString)

  • +
+ + + diff --git a/doc/classref/khtml/DOM.EventException.html b/doc/classref/khtml/DOM.EventException.html new file mode 100644 index 0000000..de6744a --- /dev/null +++ b/doc/classref/khtml/DOM.EventException.html @@ -0,0 +1,60 @@ + + + + + class DOM.EventException + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.EventException


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.EventException
Inherits
+

enums

    +
  • EventExceptionCode = {UNSPECIFIED_EVENT_TYPE_ERR +}
+

methods

    +
  • EventException (_code) +
    +
    returns a EventException instance
    + +
    ArgumentTypeDefault
    _codeushort
    +

  • +
  • EventException (other) +
    +
    returns a EventException instance
    + +
    ArgumentTypeDefault
    otherDOM.EventException
    +

  • +
+

variables

+ + + diff --git a/doc/classref/khtml/DOM.EventListener.html b/doc/classref/khtml/DOM.EventListener.html new file mode 100644 index 0000000..54257ce --- /dev/null +++ b/doc/classref/khtml/DOM.EventListener.html @@ -0,0 +1,53 @@ + + + + + class DOM.EventListener + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.EventListener


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.EventListener
InheritsDOM.DomShared
+

methods

    +
  • EventListener () +
    +
    returns a EventListener instance

  • +
  • eventListenerType () +
    +
    returns (DOM.DOMString)

  • +
  • handleEvent (evt) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    evtDOM.Event
    +

  • +
+ + + diff --git a/doc/classref/khtml/DOM.HTMLAnchorElement.html b/doc/classref/khtml/DOM.HTMLAnchorElement.html new file mode 100644 index 0000000..7ecfb86 --- /dev/null +++ b/doc/classref/khtml/DOM.HTMLAnchorElement.html @@ -0,0 +1,173 @@ + + + + + class DOM.HTMLAnchorElement + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.HTMLAnchorElement


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.HTMLAnchorElement
InheritsDOM.HTMLElement
+

methods

    +
  • HTMLAnchorElement () +
    +
    returns a HTMLAnchorElement instance

  • +
  • HTMLAnchorElement (other) +
    +
    returns a HTMLAnchorElement instance
    + +
    ArgumentTypeDefault
    otherDOM.HTMLAnchorElement
    +

  • +
  • HTMLAnchorElement (other) +
    +
    returns a HTMLAnchorElement instance
    + +
    ArgumentTypeDefault
    otherDOM.Node
    +

  • +
  • HTMLAnchorElement (impl) +
    Not Implemented
    +

  • +
  • accessKey () +
    +
    returns (DOM.DOMString)

  • +
  • blur () +
    +
    returns nothing

  • +
  • charset () +
    +
    returns (DOM.DOMString)

  • +
  • coords () +
    +
    returns (DOM.DOMString)

  • +
  • focus () +
    +
    returns nothing

  • +
  • href () +
    +
    returns (DOM.DOMString)

  • +
  • hreflang () +
    +
    returns (DOM.DOMString)

  • +
  • name () +
    +
    returns (DOM.DOMString)

  • +
  • rel () +
    +
    returns (DOM.DOMString)

  • +
  • rev () +
    +
    returns (DOM.DOMString)

  • +
  • setAccessKey (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setCharset (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setCoords (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setHref (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setHreflang (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setName (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setRel (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setRev (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setShape (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setTabIndex (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0long
    +

  • +
  • setTarget (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setType (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • shape () +
    +
    returns (DOM.DOMString)

  • +
  • tabIndex () +
    +
    returns (long)

  • +
  • target () +
    +
    returns (DOM.DOMString)

  • +
  • type () +
    +
    returns (DOM.DOMString)

  • +
+ + + diff --git a/doc/classref/khtml/DOM.HTMLAppletElement.html b/doc/classref/khtml/DOM.HTMLAppletElement.html new file mode 100644 index 0000000..b217715 --- /dev/null +++ b/doc/classref/khtml/DOM.HTMLAppletElement.html @@ -0,0 +1,180 @@ + + + + + class DOM.HTMLAppletElement + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.HTMLAppletElement


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.HTMLAppletElement
InheritsDOM.HTMLElement
+

methods

    +
  • HTMLAppletElement () +
    +
    returns a HTMLAppletElement instance

  • +
  • HTMLAppletElement (other) +
    +
    returns a HTMLAppletElement instance
    + +
    ArgumentTypeDefault
    otherDOM.HTMLAppletElement
    +

  • +
  • HTMLAppletElement (other) +
    +
    returns a HTMLAppletElement instance
    + +
    ArgumentTypeDefault
    otherDOM.Node
    +

  • +
  • HTMLAppletElement (impl) +
    Not Implemented
    +

  • +
  • align () +
    +
    returns (DOM.DOMString)

  • +
  • alt () +
    +
    returns (DOM.DOMString)

  • +
  • archive () +
    +
    returns (DOM.DOMString)

  • +
  • code () +
    +
    returns (DOM.DOMString)

  • +
  • codeBase () +
    +
    returns (DOM.DOMString)

  • +
  • getHspace () +
    + +
    returns (long)
    In versions KDE 3.1.0 and above only

  • +
  • getVspace () +
    + +
    returns (long)
    In versions KDE 3.1.0 and above only

  • +
  • height () +
    +
    returns (DOM.DOMString)

  • +
  • hspace () +
    +
    returns (DOM.DOMString)

  • +
  • name () +
    +
    returns (DOM.DOMString)

  • +
  • object () +
    +
    returns (DOM.DOMString)

  • +
  • setAlign (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setAlt (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setArchive (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setCode (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setCodeBase (value) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    valueDOM.DOMString
    +

  • +
  • setHeight (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setHspace (a0) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    a0long
    +

  • +
  • setHspace (value) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    valueDOM.DOMString
    +

  • +
  • setName (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setObject (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setVspace (a0) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    a0long
    +

  • +
  • setVspace (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setWidth (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • vspace () +
    +
    returns (DOM.DOMString)

  • +
  • width () +
    +
    returns (DOM.DOMString)

  • +
+ + + diff --git a/doc/classref/khtml/DOM.HTMLAreaElement.html b/doc/classref/khtml/DOM.HTMLAreaElement.html new file mode 100644 index 0000000..9f7b5db --- /dev/null +++ b/doc/classref/khtml/DOM.HTMLAreaElement.html @@ -0,0 +1,131 @@ + + + + + class DOM.HTMLAreaElement + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.HTMLAreaElement


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.HTMLAreaElement
InheritsDOM.HTMLElement
+

methods

    +
  • HTMLAreaElement () +
    +
    returns a HTMLAreaElement instance

  • +
  • HTMLAreaElement (other) +
    +
    returns a HTMLAreaElement instance
    + +
    ArgumentTypeDefault
    otherDOM.HTMLAreaElement
    +

  • +
  • HTMLAreaElement (other) +
    +
    returns a HTMLAreaElement instance
    + +
    ArgumentTypeDefault
    otherDOM.Node
    +

  • +
  • HTMLAreaElement (impl) +
    Not Implemented
    +

  • +
  • accessKey () +
    +
    returns (DOM.DOMString)

  • +
  • alt () +
    +
    returns (DOM.DOMString)

  • +
  • coords () +
    +
    returns (DOM.DOMString)

  • +
  • href () +
    +
    returns (DOM.DOMString)

  • +
  • noHref () +
    +
    returns (bool)

  • +
  • setAccessKey (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setAlt (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setCoords (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setHref (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setNoHref (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • setShape (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setTabIndex (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0long
    +

  • +
  • setTarget (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • shape () +
    +
    returns (DOM.DOMString)

  • +
  • tabIndex () +
    +
    returns (long)

  • +
  • target () +
    +
    returns (DOM.DOMString)

  • +
+ + + diff --git a/doc/classref/khtml/DOM.HTMLBRElement.html b/doc/classref/khtml/DOM.HTMLBRElement.html new file mode 100644 index 0000000..18b9b13 --- /dev/null +++ b/doc/classref/khtml/DOM.HTMLBRElement.html @@ -0,0 +1,68 @@ + + + + + class DOM.HTMLBRElement + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.HTMLBRElement


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.HTMLBRElement
InheritsDOM.HTMLElement
+

methods

    +
  • HTMLBRElement () +
    +
    returns a HTMLBRElement instance

  • +
  • HTMLBRElement (other) +
    +
    returns a HTMLBRElement instance
    + +
    ArgumentTypeDefault
    otherDOM.HTMLBRElement
    +

  • +
  • HTMLBRElement (other) +
    +
    returns a HTMLBRElement instance
    + +
    ArgumentTypeDefault
    otherDOM.Node
    +

  • +
  • HTMLBRElement (impl) +
    Not Implemented
    +

  • +
  • clear () +
    +
    returns (DOM.DOMString)

  • +
  • setClear (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
+ + + diff --git a/doc/classref/khtml/DOM.HTMLBaseElement.html b/doc/classref/khtml/DOM.HTMLBaseElement.html new file mode 100644 index 0000000..60ca3e9 --- /dev/null +++ b/doc/classref/khtml/DOM.HTMLBaseElement.html @@ -0,0 +1,77 @@ + + + + + class DOM.HTMLBaseElement + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.HTMLBaseElement


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.HTMLBaseElement
InheritsDOM.HTMLElement
+

methods

    +
  • HTMLBaseElement () +
    +
    returns a HTMLBaseElement instance

  • +
  • HTMLBaseElement (other) +
    +
    returns a HTMLBaseElement instance
    + +
    ArgumentTypeDefault
    otherDOM.HTMLBaseElement
    +

  • +
  • HTMLBaseElement (other) +
    +
    returns a HTMLBaseElement instance
    + +
    ArgumentTypeDefault
    otherDOM.Node
    +

  • +
  • HTMLBaseElement (impl) +
    Not Implemented
    +

  • +
  • href () +
    +
    returns (DOM.DOMString)

  • +
  • setHref (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setTarget (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • target () +
    +
    returns (DOM.DOMString)

  • +
+ + + diff --git a/doc/classref/khtml/DOM.HTMLBaseFontElement.html b/doc/classref/khtml/DOM.HTMLBaseFontElement.html new file mode 100644 index 0000000..3218d92 --- /dev/null +++ b/doc/classref/khtml/DOM.HTMLBaseFontElement.html @@ -0,0 +1,97 @@ + + + + + class DOM.HTMLBaseFontElement + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.HTMLBaseFontElement


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.HTMLBaseFontElement
InheritsDOM.HTMLElement
+

methods

    +
  • HTMLBaseFontElement () +
    +
    returns a HTMLBaseFontElement instance

  • +
  • HTMLBaseFontElement (other) +
    +
    returns a HTMLBaseFontElement instance
    + +
    ArgumentTypeDefault
    otherDOM.HTMLBaseFontElement
    +

  • +
  • HTMLBaseFontElement (other) +
    +
    returns a HTMLBaseFontElement instance
    + +
    ArgumentTypeDefault
    otherDOM.Node
    +

  • +
  • HTMLBaseFontElement (impl) +
    Not Implemented
    +

  • +
  • color () +
    +
    returns (DOM.DOMString)

  • +
  • face () +
    +
    returns (DOM.DOMString)

  • +
  • getSize () +
    + +
    returns (long)
    In versions KDE 3.1.0 and above only

  • +
  • setColor (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setFace (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setSize (a0) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    a0long
    +

  • +
  • setSize (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • size () +
    +
    returns (DOM.DOMString)

  • +
+ + + diff --git a/doc/classref/khtml/DOM.HTMLBlockquoteElement.html b/doc/classref/khtml/DOM.HTMLBlockquoteElement.html new file mode 100644 index 0000000..a34399d --- /dev/null +++ b/doc/classref/khtml/DOM.HTMLBlockquoteElement.html @@ -0,0 +1,71 @@ + + + + + class DOM.HTMLBlockquoteElement + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.HTMLBlockquoteElement


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.HTMLBlockquoteElement
InheritsDOM.HTMLElement
+

methods

    +
  • HTMLBlockquoteElement () +
    +
    returns a HTMLBlockquoteElement instance

  • +
  • HTMLBlockquoteElement (other) +
    +
    returns a HTMLBlockquoteElement instance
    + +
    ArgumentTypeDefault
    otherDOM.HTMLBlockquoteElement
    +

  • +
  • HTMLBlockquoteElement (other) +
    +
    returns a HTMLBlockquoteElement instance
    + +
    ArgumentTypeDefault
    otherDOM.Node
    +

  • +
  • HTMLBlockquoteElement (impl) +
    Not Implemented
    +

  • +
  • HTMLBlockquoteElement (a0) +
    Not Implemented
    +

  • +
  • cite () +
    +
    returns (DOM.DOMString)

  • +
  • setCite (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
+ + + diff --git a/doc/classref/khtml/DOM.HTMLBodyElement.html b/doc/classref/khtml/DOM.HTMLBodyElement.html new file mode 100644 index 0000000..30686b4 --- /dev/null +++ b/doc/classref/khtml/DOM.HTMLBodyElement.html @@ -0,0 +1,113 @@ + + + + + class DOM.HTMLBodyElement + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.HTMLBodyElement


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.HTMLBodyElement
InheritsDOM.HTMLElement
+

methods

    +
  • HTMLBodyElement () +
    +
    returns a HTMLBodyElement instance

  • +
  • HTMLBodyElement (other) +
    +
    returns a HTMLBodyElement instance
    + +
    ArgumentTypeDefault
    otherDOM.HTMLBodyElement
    +

  • +
  • HTMLBodyElement (other) +
    +
    returns a HTMLBodyElement instance
    + +
    ArgumentTypeDefault
    otherDOM.Node
    +

  • +
  • HTMLBodyElement (impl) +
    Not Implemented
    +

  • +
  • aLink () +
    +
    returns (DOM.DOMString)

  • +
  • background () +
    +
    returns (DOM.DOMString)

  • +
  • bgColor () +
    +
    returns (DOM.DOMString)

  • +
  • link () +
    +
    returns (DOM.DOMString)

  • +
  • setALink (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setBackground (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setBgColor (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setLink (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setText (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setVLink (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • text () +
    +
    returns (DOM.DOMString)

  • +
  • vLink () +
    +
    returns (DOM.DOMString)

  • +
+ + + diff --git a/doc/classref/khtml/DOM.HTMLButtonElement.html b/doc/classref/khtml/DOM.HTMLButtonElement.html new file mode 100644 index 0000000..5b3d372 --- /dev/null +++ b/doc/classref/khtml/DOM.HTMLButtonElement.html @@ -0,0 +1,118 @@ + + + + + class DOM.HTMLButtonElement + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.HTMLButtonElement


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.HTMLButtonElement
InheritsDOM.HTMLElement
+

methods

    +
  • HTMLButtonElement () +
    +
    returns a HTMLButtonElement instance

  • +
  • HTMLButtonElement (other) +
    +
    returns a HTMLButtonElement instance
    + +
    ArgumentTypeDefault
    otherDOM.HTMLButtonElement
    +

  • +
  • HTMLButtonElement (other) +
    +
    returns a HTMLButtonElement instance
    + +
    ArgumentTypeDefault
    otherDOM.Node
    +

  • +
  • HTMLButtonElement (impl) +
    Not Implemented
    +

  • +
  • accessKey () +
    +
    returns (DOM.DOMString)

  • +
  • blur () +
    + +
    returns nothing
    In versions KDE 3.5.0 and above only

  • +
  • disabled () +
    +
    returns (bool)

  • +
  • focus () +
    + +
    returns nothing
    In versions KDE 3.5.0 and above only

  • +
  • form () +
    +
    returns (DOM.HTMLFormElement)

  • +
  • name () +
    +
    returns (DOM.DOMString)

  • +
  • setAccessKey (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setDisabled (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • setName (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setTabIndex (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0long
    +

  • +
  • setValue (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • tabIndex () +
    +
    returns (long)

  • +
  • type () +
    +
    returns (DOM.DOMString)

  • +
  • value () +
    +
    returns (DOM.DOMString)

  • +
+ + + diff --git a/doc/classref/khtml/DOM.HTMLCollection.html b/doc/classref/khtml/DOM.HTMLCollection.html new file mode 100644 index 0000000..475cb69 --- /dev/null +++ b/doc/classref/khtml/DOM.HTMLCollection.html @@ -0,0 +1,89 @@ + + + + + class DOM.HTMLCollection + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.HTMLCollection


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.HTMLCollection
Inherits
+

methods

    +
  • HTMLCollection () +
    +
    returns a HTMLCollection instance

  • +
  • HTMLCollection (other) +
    +
    returns a HTMLCollection instance
    + +
    ArgumentTypeDefault
    otherDOM.HTMLCollection
    +

  • +
  • HTMLCollection (base, type) +
    Not Implemented
    +

  • +
  • base () +
    +
    returns (DOM.Node)

  • +
  • firstItem () +
    +
    returns (DOM.Node)

  • +
  • handle () +
    Not Implemented
    +

  • +
  • isNull () +
    +
    returns (bool)

  • +
  • item (index) +
    +
    returns (DOM.Node)
    + +
    ArgumentTypeDefault
    indexulong
    +

  • +
  • length () +
    +
    returns (ulong)

  • +
  • namedItem (name) +
    +
    returns (DOM.Node)
    + +
    ArgumentTypeDefault
    nameDOM.DOMString
    +

  • +
  • nextItem () +
    +
    returns (DOM.Node)

  • +
  • nextNamedItem (name) +
    +
    returns (DOM.Node)
    + +
    ArgumentTypeDefault
    nameDOM.DOMString
    +

  • +
+ + + diff --git a/doc/classref/khtml/DOM.HTMLDListElement.html b/doc/classref/khtml/DOM.HTMLDListElement.html new file mode 100644 index 0000000..ab14426 --- /dev/null +++ b/doc/classref/khtml/DOM.HTMLDListElement.html @@ -0,0 +1,68 @@ + + + + + class DOM.HTMLDListElement + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.HTMLDListElement


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.HTMLDListElement
InheritsDOM.HTMLElement
+

methods

    +
  • HTMLDListElement () +
    +
    returns a HTMLDListElement instance

  • +
  • HTMLDListElement (other) +
    +
    returns a HTMLDListElement instance
    + +
    ArgumentTypeDefault
    otherDOM.HTMLDListElement
    +

  • +
  • HTMLDListElement (other) +
    +
    returns a HTMLDListElement instance
    + +
    ArgumentTypeDefault
    otherDOM.Node
    +

  • +
  • HTMLDListElement (impl) +
    Not Implemented
    +

  • +
  • compact () +
    +
    returns (bool)

  • +
  • setCompact (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
+ + + diff --git a/doc/classref/khtml/DOM.HTMLDirectoryElement.html b/doc/classref/khtml/DOM.HTMLDirectoryElement.html new file mode 100644 index 0000000..1e5825f --- /dev/null +++ b/doc/classref/khtml/DOM.HTMLDirectoryElement.html @@ -0,0 +1,68 @@ + + + + + class DOM.HTMLDirectoryElement + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.HTMLDirectoryElement


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.HTMLDirectoryElement
InheritsDOM.HTMLElement
+

methods

    +
  • HTMLDirectoryElement () +
    +
    returns a HTMLDirectoryElement instance

  • +
  • HTMLDirectoryElement (other) +
    +
    returns a HTMLDirectoryElement instance
    + +
    ArgumentTypeDefault
    otherDOM.HTMLDirectoryElement
    +

  • +
  • HTMLDirectoryElement (other) +
    +
    returns a HTMLDirectoryElement instance
    + +
    ArgumentTypeDefault
    otherDOM.Node
    +

  • +
  • HTMLDirectoryElement (impl) +
    Not Implemented
    +

  • +
  • compact () +
    +
    returns (bool)

  • +
  • setCompact (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
+ + + diff --git a/doc/classref/khtml/DOM.HTMLDivElement.html b/doc/classref/khtml/DOM.HTMLDivElement.html new file mode 100644 index 0000000..7b2cdcc --- /dev/null +++ b/doc/classref/khtml/DOM.HTMLDivElement.html @@ -0,0 +1,68 @@ + + + + + class DOM.HTMLDivElement + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.HTMLDivElement


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.HTMLDivElement
InheritsDOM.HTMLElement
+

methods

    +
  • HTMLDivElement () +
    +
    returns a HTMLDivElement instance

  • +
  • HTMLDivElement (other) +
    +
    returns a HTMLDivElement instance
    + +
    ArgumentTypeDefault
    otherDOM.HTMLDivElement
    +

  • +
  • HTMLDivElement (other) +
    +
    returns a HTMLDivElement instance
    + +
    ArgumentTypeDefault
    otherDOM.Node
    +

  • +
  • HTMLDivElement (impl) +
    Not Implemented
    +

  • +
  • align () +
    +
    returns (DOM.DOMString)

  • +
  • setAlign (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
+ + + diff --git a/doc/classref/khtml/DOM.HTMLDocument.html b/doc/classref/khtml/DOM.HTMLDocument.html new file mode 100644 index 0000000..ae8d21b --- /dev/null +++ b/doc/classref/khtml/DOM.HTMLDocument.html @@ -0,0 +1,156 @@ + + + + + class DOM.HTMLDocument + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.HTMLDocument


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.HTMLDocument
InheritsDOM.Document
+

methods

    +
  • HTMLDocument () +
    +
    returns a HTMLDocument instance

  • +
  • HTMLDocument (parent) +
    +
    returns a HTMLDocument instance
    + +
    ArgumentTypeDefault
    parentKHTMLView
    +

  • +
  • HTMLDocument (other) +
    +
    returns a HTMLDocument instance
    + +
    ArgumentTypeDefault
    otherDOM.HTMLDocument
    +

  • +
  • HTMLDocument (other) +
    +
    returns a HTMLDocument instance
    + +
    ArgumentTypeDefault
    otherDOM.Node
    +

  • +
  • HTMLDocument (impl) +
    Not Implemented
    +

  • +
  • URL () +
    +
    returns (DOM.DOMString)

  • +
  • all () +
    +
    returns (DOM.HTMLCollection)

  • +
  • anchors () +
    +
    returns (DOM.HTMLCollection)

  • +
  • applets () +
    +
    returns (DOM.HTMLCollection)

  • +
  • body () +
    +
    returns (DOM.HTMLElement)

  • +
  • close () +
    +
    returns nothing

  • +
  • completeURL (url) +
    +
    returns (DOM.DOMString)
    + +
    ArgumentTypeDefault
    urlDOM.DOMString
    +

  • +
  • cookie () +
    +
    returns (DOM.DOMString)

  • +
  • domain () +
    +
    returns (DOM.DOMString)

  • +
  • forms () +
    +
    returns (DOM.HTMLCollection)

  • +
  • getElementsByName (elementName) +
    +
    returns (DOM.NodeList)
    + +
    ArgumentTypeDefault
    elementNameDOM.DOMString
    +

  • +
  • images () +
    +
    returns (DOM.HTMLCollection)

  • +
  • lastModified () +
    +
    returns (DOM.DOMString)

  • +
  • layers () +
    + +
    returns (DOM.HTMLCollection)
    In versions KDE 3.3.2 and above only

  • +
  • links () +
    +
    returns (DOM.HTMLCollection)

  • +
  • open () +
    +
    returns nothing

  • +
  • referrer () +
    +
    returns (DOM.DOMString)

  • +
  • setBody (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.HTMLElement
    +

  • +
  • setCookie (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setTitle (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • title () +
    +
    returns (DOM.DOMString)

  • +
  • write (text) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    textDOM.DOMString
    +

  • +
  • writeln (text) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    textDOM.DOMString
    +

  • +
+ + + diff --git a/doc/classref/khtml/DOM.HTMLElement.html b/doc/classref/khtml/DOM.HTMLElement.html new file mode 100644 index 0000000..07cf854 --- /dev/null +++ b/doc/classref/khtml/DOM.HTMLElement.html @@ -0,0 +1,150 @@ + + + + + class DOM.HTMLElement + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.HTMLElement


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.HTMLElement
InheritsDOM.Element
+

methods

    +
  • HTMLElement () +
    +
    returns a HTMLElement instance

  • +
  • HTMLElement (other) +
    +
    returns a HTMLElement instance
    + +
    ArgumentTypeDefault
    otherDOM.HTMLElement
    +

  • +
  • HTMLElement (other) +
    +
    returns a HTMLElement instance
    + +
    ArgumentTypeDefault
    otherDOM.Node
    +

  • +
  • HTMLElement (impl) +
    Not Implemented
    +

  • +
  • addCSSProperty (property, value) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    propertyDOM.DOMString
    valueDOM.DOMString
    +

  • +
  • all () +
    + +
    returns (DOM.HTMLCollection)
    In versions KDE 3.1.0 and above only

  • +
  • assignOther (other, elementId) +
    + +
    returns nothing
    In versions KDE 3.0.1 and above only
    + + +
    ArgumentTypeDefault
    otherDOM.Node
    elementIdint
    +

  • +
  • children () +
    +
    returns (DOM.HTMLCollection)

  • +
  • className () +
    +
    returns (DOM.DOMString)

  • +
  • dir () +
    +
    returns (DOM.DOMString)

  • +
  • id () +
    +
    returns (DOM.DOMString)

  • +
  • innerHTML () +
    +
    returns (DOM.DOMString)

  • +
  • innerText () +
    +
    returns (DOM.DOMString)

  • +
  • lang () +
    +
    returns (DOM.DOMString)

  • +
  • removeCSSProperty (property) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    propertyDOM.DOMString
    +

  • +
  • setClassName (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setDir (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setId (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setInnerHTML (html) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    htmlDOM.DOMString
    +

  • +
  • setInnerText (text) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    textDOM.DOMString
    +

  • +
  • setLang (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setTitle (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • title () +
    +
    returns (DOM.DOMString)

  • +
+ + + diff --git a/doc/classref/khtml/DOM.HTMLFieldSetElement.html b/doc/classref/khtml/DOM.HTMLFieldSetElement.html new file mode 100644 index 0000000..86d49c4 --- /dev/null +++ b/doc/classref/khtml/DOM.HTMLFieldSetElement.html @@ -0,0 +1,62 @@ + + + + + class DOM.HTMLFieldSetElement + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.HTMLFieldSetElement


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.HTMLFieldSetElement
InheritsDOM.HTMLElement
+

methods

    +
  • HTMLFieldSetElement () +
    +
    returns a HTMLFieldSetElement instance

  • +
  • HTMLFieldSetElement (other) +
    +
    returns a HTMLFieldSetElement instance
    + +
    ArgumentTypeDefault
    otherDOM.HTMLFieldSetElement
    +

  • +
  • HTMLFieldSetElement (other) +
    +
    returns a HTMLFieldSetElement instance
    + +
    ArgumentTypeDefault
    otherDOM.Node
    +

  • +
  • HTMLFieldSetElement (impl) +
    Not Implemented
    +

  • +
  • form () +
    +
    returns (DOM.HTMLFormElement)

  • +
+ + + diff --git a/doc/classref/khtml/DOM.HTMLFontElement.html b/doc/classref/khtml/DOM.HTMLFontElement.html new file mode 100644 index 0000000..8b793e7 --- /dev/null +++ b/doc/classref/khtml/DOM.HTMLFontElement.html @@ -0,0 +1,86 @@ + + + + + class DOM.HTMLFontElement + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.HTMLFontElement


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.HTMLFontElement
InheritsDOM.HTMLElement
+

methods

    +
  • HTMLFontElement () +
    +
    returns a HTMLFontElement instance

  • +
  • HTMLFontElement (other) +
    +
    returns a HTMLFontElement instance
    + +
    ArgumentTypeDefault
    otherDOM.HTMLFontElement
    +

  • +
  • HTMLFontElement (other) +
    +
    returns a HTMLFontElement instance
    + +
    ArgumentTypeDefault
    otherDOM.Node
    +

  • +
  • HTMLFontElement (impl) +
    Not Implemented
    +

  • +
  • color () +
    +
    returns (DOM.DOMString)

  • +
  • face () +
    +
    returns (DOM.DOMString)

  • +
  • setColor (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setFace (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setSize (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • size () +
    +
    returns (DOM.DOMString)

  • +
+ + + diff --git a/doc/classref/khtml/DOM.HTMLFormElement.html b/doc/classref/khtml/DOM.HTMLFormElement.html new file mode 100644 index 0000000..04215c4 --- /dev/null +++ b/doc/classref/khtml/DOM.HTMLFormElement.html @@ -0,0 +1,125 @@ + + + + + class DOM.HTMLFormElement + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.HTMLFormElement


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.HTMLFormElement
InheritsDOM.HTMLElement
+

methods

    +
  • HTMLFormElement () +
    +
    returns a HTMLFormElement instance

  • +
  • HTMLFormElement (other) +
    +
    returns a HTMLFormElement instance
    + +
    ArgumentTypeDefault
    otherDOM.HTMLFormElement
    +

  • +
  • HTMLFormElement (other) +
    +
    returns a HTMLFormElement instance
    + +
    ArgumentTypeDefault
    otherDOM.Node
    +

  • +
  • HTMLFormElement (impl) +
    Not Implemented
    +

  • +
  • acceptCharset () +
    +
    returns (DOM.DOMString)

  • +
  • action () +
    +
    returns (DOM.DOMString)

  • +
  • elements () +
    +
    returns (DOM.HTMLCollection)

  • +
  • enctype () +
    +
    returns (DOM.DOMString)

  • +
  • length () +
    +
    returns (long)

  • +
  • method () +
    +
    returns (DOM.DOMString)

  • +
  • name () +
    +
    returns (DOM.DOMString)

  • +
  • reset () +
    +
    returns nothing

  • +
  • setAcceptCharset (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setAction (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setEnctype (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setMethod (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setName (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setTarget (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • submit () +
    +
    returns nothing

  • +
  • target () +
    +
    returns (DOM.DOMString)

  • +
+ + + diff --git a/doc/classref/khtml/DOM.HTMLFrameElement.html b/doc/classref/khtml/DOM.HTMLFrameElement.html new file mode 100644 index 0000000..2e53b4f --- /dev/null +++ b/doc/classref/khtml/DOM.HTMLFrameElement.html @@ -0,0 +1,134 @@ + + + + + class DOM.HTMLFrameElement + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.HTMLFrameElement


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.HTMLFrameElement
InheritsDOM.HTMLElement
+

methods

    +
  • HTMLFrameElement () +
    +
    returns a HTMLFrameElement instance

  • +
  • HTMLFrameElement (other) +
    +
    returns a HTMLFrameElement instance
    + +
    ArgumentTypeDefault
    otherDOM.HTMLFrameElement
    +

  • +
  • HTMLFrameElement (other) +
    +
    returns a HTMLFrameElement instance
    + +
    ArgumentTypeDefault
    otherDOM.Node
    +

  • +
  • HTMLFrameElement (impl) +
    Not Implemented
    +

  • +
  • contentDocument () +
    +
    returns (DOM.Document)

  • +
  • frameBorder () +
    +
    returns (DOM.DOMString)

  • +
  • longDesc () +
    +
    returns (DOM.DOMString)

  • +
  • marginHeight () +
    +
    returns (DOM.DOMString)

  • +
  • marginWidth () +
    +
    returns (DOM.DOMString)

  • +
  • name () +
    +
    returns (DOM.DOMString)

  • +
  • noResize () +
    +
    returns (bool)

  • +
  • scrolling () +
    +
    returns (DOM.DOMString)

  • +
  • setFrameBorder (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setLongDesc (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setMarginHeight (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setMarginWidth (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setName (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setNoResize (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • setScrolling (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setSrc (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • src () +
    +
    returns (DOM.DOMString)

  • +
+ + + diff --git a/doc/classref/khtml/DOM.HTMLFrameSetElement.html b/doc/classref/khtml/DOM.HTMLFrameSetElement.html new file mode 100644 index 0000000..e88fb21 --- /dev/null +++ b/doc/classref/khtml/DOM.HTMLFrameSetElement.html @@ -0,0 +1,77 @@ + + + + + class DOM.HTMLFrameSetElement + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.HTMLFrameSetElement


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.HTMLFrameSetElement
InheritsDOM.HTMLElement
+

methods

    +
  • HTMLFrameSetElement () +
    +
    returns a HTMLFrameSetElement instance

  • +
  • HTMLFrameSetElement (other) +
    +
    returns a HTMLFrameSetElement instance
    + +
    ArgumentTypeDefault
    otherDOM.HTMLFrameSetElement
    +

  • +
  • HTMLFrameSetElement (other) +
    +
    returns a HTMLFrameSetElement instance
    + +
    ArgumentTypeDefault
    otherDOM.Node
    +

  • +
  • HTMLFrameSetElement (impl) +
    Not Implemented
    +

  • +
  • cols () +
    +
    returns (DOM.DOMString)

  • +
  • rows () +
    +
    returns (DOM.DOMString)

  • +
  • setCols (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setRows (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
+ + + diff --git a/doc/classref/khtml/DOM.HTMLHRElement.html b/doc/classref/khtml/DOM.HTMLHRElement.html new file mode 100644 index 0000000..abef8ca --- /dev/null +++ b/doc/classref/khtml/DOM.HTMLHRElement.html @@ -0,0 +1,95 @@ + + + + + class DOM.HTMLHRElement + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.HTMLHRElement


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.HTMLHRElement
InheritsDOM.HTMLElement
+

methods

    +
  • HTMLHRElement () +
    +
    returns a HTMLHRElement instance

  • +
  • HTMLHRElement (other) +
    +
    returns a HTMLHRElement instance
    + +
    ArgumentTypeDefault
    otherDOM.HTMLHRElement
    +

  • +
  • HTMLHRElement (other) +
    +
    returns a HTMLHRElement instance
    + +
    ArgumentTypeDefault
    otherDOM.Node
    +

  • +
  • HTMLHRElement (impl) +
    Not Implemented
    +

  • +
  • align () +
    +
    returns (DOM.DOMString)

  • +
  • noShade () +
    +
    returns (bool)

  • +
  • setAlign (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setNoShade (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • setSize (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setWidth (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • size () +
    +
    returns (DOM.DOMString)

  • +
  • width () +
    +
    returns (DOM.DOMString)

  • +
+ + + diff --git a/doc/classref/khtml/DOM.HTMLHeadElement.html b/doc/classref/khtml/DOM.HTMLHeadElement.html new file mode 100644 index 0000000..fe32927 --- /dev/null +++ b/doc/classref/khtml/DOM.HTMLHeadElement.html @@ -0,0 +1,68 @@ + + + + + class DOM.HTMLHeadElement + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.HTMLHeadElement


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.HTMLHeadElement
InheritsDOM.HTMLElement
+

methods

    +
  • HTMLHeadElement () +
    +
    returns a HTMLHeadElement instance

  • +
  • HTMLHeadElement (other) +
    +
    returns a HTMLHeadElement instance
    + +
    ArgumentTypeDefault
    otherDOM.HTMLHeadElement
    +

  • +
  • HTMLHeadElement (other) +
    +
    returns a HTMLHeadElement instance
    + +
    ArgumentTypeDefault
    otherDOM.Node
    +

  • +
  • HTMLHeadElement (impl) +
    Not Implemented
    +

  • +
  • profile () +
    +
    returns (DOM.DOMString)

  • +
  • setProfile (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
+ + + diff --git a/doc/classref/khtml/DOM.HTMLHeadingElement.html b/doc/classref/khtml/DOM.HTMLHeadingElement.html new file mode 100644 index 0000000..0d4f824 --- /dev/null +++ b/doc/classref/khtml/DOM.HTMLHeadingElement.html @@ -0,0 +1,71 @@ + + + + + class DOM.HTMLHeadingElement + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.HTMLHeadingElement


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.HTMLHeadingElement
InheritsDOM.HTMLElement
+

methods

    +
  • HTMLHeadingElement () +
    +
    returns a HTMLHeadingElement instance

  • +
  • HTMLHeadingElement (other) +
    +
    returns a HTMLHeadingElement instance
    + +
    ArgumentTypeDefault
    otherDOM.HTMLHeadingElement
    +

  • +
  • HTMLHeadingElement (other) +
    +
    returns a HTMLHeadingElement instance
    + +
    ArgumentTypeDefault
    otherDOM.Node
    +

  • +
  • HTMLHeadingElement (impl) +
    Not Implemented
    +

  • +
  • HTMLHeadingElement (a0) +
    Not Implemented
    +

  • +
  • align () +
    +
    returns (DOM.DOMString)

  • +
  • setAlign (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
+ + + diff --git a/doc/classref/khtml/DOM.HTMLHtmlElement.html b/doc/classref/khtml/DOM.HTMLHtmlElement.html new file mode 100644 index 0000000..66ff63e --- /dev/null +++ b/doc/classref/khtml/DOM.HTMLHtmlElement.html @@ -0,0 +1,68 @@ + + + + + class DOM.HTMLHtmlElement + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.HTMLHtmlElement


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.HTMLHtmlElement
InheritsDOM.HTMLElement
+

methods

    +
  • HTMLHtmlElement () +
    +
    returns a HTMLHtmlElement instance

  • +
  • HTMLHtmlElement (other) +
    +
    returns a HTMLHtmlElement instance
    + +
    ArgumentTypeDefault
    otherDOM.HTMLHtmlElement
    +

  • +
  • HTMLHtmlElement (other) +
    +
    returns a HTMLHtmlElement instance
    + +
    ArgumentTypeDefault
    otherDOM.Node
    +

  • +
  • HTMLHtmlElement (impl) +
    Not Implemented
    +

  • +
  • setVersion (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • version () +
    +
    returns (DOM.DOMString)

  • +
+ + + diff --git a/doc/classref/khtml/DOM.HTMLIFrameElement.html b/doc/classref/khtml/DOM.HTMLIFrameElement.html new file mode 100644 index 0000000..3d22a8a --- /dev/null +++ b/doc/classref/khtml/DOM.HTMLIFrameElement.html @@ -0,0 +1,152 @@ + + + + + class DOM.HTMLIFrameElement + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.HTMLIFrameElement


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.HTMLIFrameElement
InheritsDOM.HTMLElement
+

methods

    +
  • HTMLIFrameElement () +
    +
    returns a HTMLIFrameElement instance

  • +
  • HTMLIFrameElement (other) +
    +
    returns a HTMLIFrameElement instance
    + +
    ArgumentTypeDefault
    otherDOM.HTMLIFrameElement
    +

  • +
  • HTMLIFrameElement (other) +
    +
    returns a HTMLIFrameElement instance
    + +
    ArgumentTypeDefault
    otherDOM.Node
    +

  • +
  • HTMLIFrameElement (impl) +
    Not Implemented
    +

  • +
  • align () +
    +
    returns (DOM.DOMString)

  • +
  • contentDocument () +
    +
    returns (DOM.Document)

  • +
  • frameBorder () +
    +
    returns (DOM.DOMString)

  • +
  • height () +
    +
    returns (DOM.DOMString)

  • +
  • longDesc () +
    +
    returns (DOM.DOMString)

  • +
  • marginHeight () +
    +
    returns (DOM.DOMString)

  • +
  • marginWidth () +
    +
    returns (DOM.DOMString)

  • +
  • name () +
    +
    returns (DOM.DOMString)

  • +
  • scrolling () +
    +
    returns (DOM.DOMString)

  • +
  • setAlign (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setFrameBorder (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setHeight (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setLongDesc (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setMarginHeight (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setMarginWidth (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setName (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setScrolling (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setSrc (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setWidth (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • src () +
    +
    returns (DOM.DOMString)

  • +
  • width () +
    +
    returns (DOM.DOMString)

  • +
+ + + diff --git a/doc/classref/khtml/DOM.HTMLImageElement.html b/doc/classref/khtml/DOM.HTMLImageElement.html new file mode 100644 index 0000000..ed00f02 --- /dev/null +++ b/doc/classref/khtml/DOM.HTMLImageElement.html @@ -0,0 +1,186 @@ + + + + + class DOM.HTMLImageElement + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.HTMLImageElement


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.HTMLImageElement
InheritsDOM.HTMLElement
+

methods

    +
  • HTMLImageElement () +
    +
    returns a HTMLImageElement instance

  • +
  • HTMLImageElement (other) +
    +
    returns a HTMLImageElement instance
    + +
    ArgumentTypeDefault
    otherDOM.HTMLImageElement
    +

  • +
  • HTMLImageElement (other) +
    +
    returns a HTMLImageElement instance
    + +
    ArgumentTypeDefault
    otherDOM.Node
    +

  • +
  • HTMLImageElement (impl) +
    Not Implemented
    +

  • +
  • align () +
    +
    returns (DOM.DOMString)

  • +
  • alt () +
    +
    returns (DOM.DOMString)

  • +
  • border () +
    +
    returns (long)

  • +
  • getBorder () +
    + +
    returns (DOM.DOMString)
    In versions KDE 3.1.0 and above only

  • +
  • height () +
    +
    returns (long)

  • +
  • hspace () +
    +
    returns (long)

  • +
  • isMap () +
    +
    returns (bool)

  • +
  • longDesc () +
    +
    returns (DOM.DOMString)

  • +
  • name () +
    +
    returns (DOM.DOMString)

  • +
  • setAlign (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setAlt (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setBorder (a0) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setBorder (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0long
    +

  • +
  • setHeight (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0long
    +

  • +
  • setHspace (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0long
    +

  • +
  • setIsMap (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • setLongDesc (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setName (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setSrc (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setUseMap (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setVspace (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0long
    +

  • +
  • setWidth (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0long
    +

  • +
  • src () +
    +
    returns (DOM.DOMString)

  • +
  • useMap () +
    +
    returns (DOM.DOMString)

  • +
  • vspace () +
    +
    returns (long)

  • +
  • width () +
    +
    returns (long)

  • +
  • x () +
    + +
    returns (long)
    In versions KDE 3.2.0 and above only

  • +
  • y () +
    + +
    returns (long)
    In versions KDE 3.2.0 and above only

  • +
+ + + diff --git a/doc/classref/khtml/DOM.HTMLInputElement.html b/doc/classref/khtml/DOM.HTMLInputElement.html new file mode 100644 index 0000000..5dfa038 --- /dev/null +++ b/doc/classref/khtml/DOM.HTMLInputElement.html @@ -0,0 +1,279 @@ + + + + + class DOM.HTMLInputElement + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.HTMLInputElement


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.HTMLInputElement
InheritsDOM.HTMLElement
+

methods

    +
  • HTMLInputElement () +
    +
    returns a HTMLInputElement instance

  • +
  • HTMLInputElement (other) +
    +
    returns a HTMLInputElement instance
    + +
    ArgumentTypeDefault
    otherDOM.HTMLInputElement
    +

  • +
  • HTMLInputElement (other) +
    +
    returns a HTMLInputElement instance
    + +
    ArgumentTypeDefault
    otherDOM.Node
    +

  • +
  • HTMLInputElement (impl) +
    Not Implemented
    +

  • +
  • accept () +
    +
    returns (DOM.DOMString)

  • +
  • accessKey () +
    +
    returns (DOM.DOMString)

  • +
  • align () +
    +
    returns (DOM.DOMString)

  • +
  • alt () +
    +
    returns (DOM.DOMString)

  • +
  • blur () +
    +
    returns nothing

  • +
  • checked () +
    +
    returns (bool)

  • +
  • click () +
    +
    returns nothing

  • +
  • defaultChecked () +
    +
    returns (bool)

  • +
  • defaultValue () +
    +
    returns (DOM.DOMString)

  • +
  • disabled () +
    +
    returns (bool)

  • +
  • focus () +
    +
    returns nothing

  • +
  • form () +
    +
    returns (DOM.HTMLFormElement)

  • +
  • getSize () +
    + +
    returns (long)
    In versions KDE 3.1.0 and above only

  • +
  • indeterminate () +
    + +
    returns (bool)
    In versions KDE 3.5.3 and above only

  • +
  • maxLength () +
    +
    returns (long)

  • +
  • name () +
    +
    returns (DOM.DOMString)

  • +
  • readOnly () +
    +
    returns (bool)

  • +
  • select () +
    +
    returns nothing

  • +
  • selectionEnd () +
    + +
    returns (long)
    In versions KDE 3.5.2 and above only

  • +
  • selectionStart () +
    + +
    returns (long)
    In versions KDE 3.5.2 and above only

  • +
  • setAccept (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setAccessKey (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setAlign (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setAlt (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setChecked (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • setDefaultChecked (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • setDefaultValue (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setDisabled (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • setIndeterminate (a0) +
    + +
    returns nothing
    In versions KDE 3.5.3 and above only
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • setMaxLength (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0long
    +

  • +
  • setName (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setReadOnly (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • setSelectionEnd (offset) +
    + +
    returns nothing
    In versions KDE 3.5.2 and above only
    + +
    ArgumentTypeDefault
    offsetlong
    +

  • +
  • setSelectionRange (start, end) +
    + +
    returns nothing
    In versions KDE 3.5.2 and above only
    + + +
    ArgumentTypeDefault
    startlong
    endlong
    +

  • +
  • setSelectionStart (offset) +
    + +
    returns nothing
    In versions KDE 3.5.2 and above only
    + +
    ArgumentTypeDefault
    offsetlong
    +

  • +
  • setSize (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setSize (a0) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    a0long
    +

  • +
  • setSrc (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setTabIndex (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0long
    +

  • +
  • setType (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setUseMap (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setValue (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • size () +
    +
    returns (DOM.DOMString)

  • +
  • src () +
    +
    returns (DOM.DOMString)

  • +
  • tabIndex () +
    +
    returns (long)

  • +
  • type () +
    +
    returns (DOM.DOMString)

  • +
  • useMap () +
    +
    returns (DOM.DOMString)

  • +
  • value () +
    +
    returns (DOM.DOMString)

  • +
+ + + diff --git a/doc/classref/khtml/DOM.HTMLIsIndexElement.html b/doc/classref/khtml/DOM.HTMLIsIndexElement.html new file mode 100644 index 0000000..24ba7a6 --- /dev/null +++ b/doc/classref/khtml/DOM.HTMLIsIndexElement.html @@ -0,0 +1,71 @@ + + + + + class DOM.HTMLIsIndexElement + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.HTMLIsIndexElement


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.HTMLIsIndexElement
InheritsDOM.HTMLElement
+

methods

    +
  • HTMLIsIndexElement () +
    +
    returns a HTMLIsIndexElement instance

  • +
  • HTMLIsIndexElement (other) +
    +
    returns a HTMLIsIndexElement instance
    + +
    ArgumentTypeDefault
    otherDOM.HTMLIsIndexElement
    +

  • +
  • HTMLIsIndexElement (other) +
    +
    returns a HTMLIsIndexElement instance
    + +
    ArgumentTypeDefault
    otherDOM.Node
    +

  • +
  • HTMLIsIndexElement (impl) +
    Not Implemented
    +

  • +
  • form () +
    +
    returns (DOM.HTMLFormElement)

  • +
  • prompt () +
    +
    returns (DOM.DOMString)

  • +
  • setPrompt (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
+ + + diff --git a/doc/classref/khtml/DOM.HTMLLIElement.html b/doc/classref/khtml/DOM.HTMLLIElement.html new file mode 100644 index 0000000..aa868ad --- /dev/null +++ b/doc/classref/khtml/DOM.HTMLLIElement.html @@ -0,0 +1,77 @@ + + + + + class DOM.HTMLLIElement + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.HTMLLIElement


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.HTMLLIElement
InheritsDOM.HTMLElement
+

methods

    +
  • HTMLLIElement () +
    +
    returns a HTMLLIElement instance

  • +
  • HTMLLIElement (other) +
    +
    returns a HTMLLIElement instance
    + +
    ArgumentTypeDefault
    otherDOM.HTMLLIElement
    +

  • +
  • HTMLLIElement (other) +
    +
    returns a HTMLLIElement instance
    + +
    ArgumentTypeDefault
    otherDOM.Node
    +

  • +
  • HTMLLIElement (impl) +
    Not Implemented
    +

  • +
  • setType (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setValue (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0long
    +

  • +
  • type () +
    +
    returns (DOM.DOMString)

  • +
  • value () +
    +
    returns (long)

  • +
+ + + diff --git a/doc/classref/khtml/DOM.HTMLLabelElement.html b/doc/classref/khtml/DOM.HTMLLabelElement.html new file mode 100644 index 0000000..9e89da4 --- /dev/null +++ b/doc/classref/khtml/DOM.HTMLLabelElement.html @@ -0,0 +1,81 @@ + + + + + class DOM.HTMLLabelElement + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.HTMLLabelElement


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.HTMLLabelElement
InheritsDOM.HTMLElement
+

methods

    +
  • HTMLLabelElement () +
    +
    returns a HTMLLabelElement instance

  • +
  • HTMLLabelElement (other) +
    +
    returns a HTMLLabelElement instance
    + +
    ArgumentTypeDefault
    otherDOM.HTMLLabelElement
    +

  • +
  • HTMLLabelElement (other) +
    +
    returns a HTMLLabelElement instance
    + +
    ArgumentTypeDefault
    otherDOM.Node
    +

  • +
  • HTMLLabelElement (impl) +
    Not Implemented
    +

  • +
  • accessKey () +
    +
    returns (DOM.DOMString)

  • +
  • form () +
    + +
    returns (DOM.HTMLFormElement)
    In versions less than KDE 3.1.0 only

  • +
  • htmlFor () +
    +
    returns (DOM.DOMString)

  • +
  • setAccessKey (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setHtmlFor (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
+ + + diff --git a/doc/classref/khtml/DOM.HTMLLayerElement.html b/doc/classref/khtml/DOM.HTMLLayerElement.html new file mode 100644 index 0000000..71c0a9f --- /dev/null +++ b/doc/classref/khtml/DOM.HTMLLayerElement.html @@ -0,0 +1,107 @@ + + + + + class DOM.HTMLLayerElement + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.HTMLLayerElement


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.HTMLLayerElement
InheritsDOM.HTMLElement
+

methods

    +
  • HTMLLayerElement () +
    + +
    returns a HTMLLayerElement instance
    In versions KDE 3.3.2 and above only

  • +
  • HTMLLayerElement (other) +
    + +
    returns a HTMLLayerElement instance
    In versions KDE 3.3.2 and above only
    + +
    ArgumentTypeDefault
    otherDOM.HTMLLayerElement
    +

  • +
  • HTMLLayerElement (other) +
    + +
    returns a HTMLLayerElement instance
    In versions KDE 3.3.2 and above only
    + +
    ArgumentTypeDefault
    otherDOM.Node
    +

  • +
  • bgColor () +
    + +
    returns (DOM.DOMString)
    In versions KDE 3.3.2 and above only

  • +
  • layers () +
    + +
    returns (DOM.HTMLCollection)
    In versions KDE 3.3.2 and above only

  • +
  • left () +
    + +
    returns (long)
    In versions KDE 3.3.2 and above only

  • +
  • setBgColor (a0) +
    + +
    returns nothing
    In versions KDE 3.3.2 and above only
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setLeft (a0) +
    + +
    returns nothing
    In versions KDE 3.3.2 and above only
    + +
    ArgumentTypeDefault
    a0long
    +

  • +
  • setTop (a0) +
    + +
    returns nothing
    In versions KDE 3.3.2 and above only
    + +
    ArgumentTypeDefault
    a0long
    +

  • +
  • setVisibility (a0) +
    + +
    returns nothing
    In versions KDE 3.3.2 and above only
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • top () +
    + +
    returns (long)
    In versions KDE 3.3.2 and above only

  • +
  • visibility () +
    + +
    returns (DOM.DOMString)
    In versions KDE 3.3.2 and above only

  • +
+ + + diff --git a/doc/classref/khtml/DOM.HTMLLegendElement.html b/doc/classref/khtml/DOM.HTMLLegendElement.html new file mode 100644 index 0000000..d1fc749 --- /dev/null +++ b/doc/classref/khtml/DOM.HTMLLegendElement.html @@ -0,0 +1,80 @@ + + + + + class DOM.HTMLLegendElement + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.HTMLLegendElement


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.HTMLLegendElement
InheritsDOM.HTMLElement
+

methods

    +
  • HTMLLegendElement () +
    +
    returns a HTMLLegendElement instance

  • +
  • HTMLLegendElement (other) +
    +
    returns a HTMLLegendElement instance
    + +
    ArgumentTypeDefault
    otherDOM.HTMLLegendElement
    +

  • +
  • HTMLLegendElement (other) +
    +
    returns a HTMLLegendElement instance
    + +
    ArgumentTypeDefault
    otherDOM.Node
    +

  • +
  • HTMLLegendElement (impl) +
    Not Implemented
    +

  • +
  • accessKey () +
    +
    returns (DOM.DOMString)

  • +
  • align () +
    +
    returns (DOM.DOMString)

  • +
  • form () +
    +
    returns (DOM.HTMLFormElement)

  • +
  • setAccessKey (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setAlign (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
+ + + diff --git a/doc/classref/khtml/DOM.HTMLLinkElement.html b/doc/classref/khtml/DOM.HTMLLinkElement.html new file mode 100644 index 0000000..9facd14 --- /dev/null +++ b/doc/classref/khtml/DOM.HTMLLinkElement.html @@ -0,0 +1,143 @@ + + + + + class DOM.HTMLLinkElement + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.HTMLLinkElement


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.HTMLLinkElement
InheritsDOM.HTMLElement
+

methods

    +
  • HTMLLinkElement () +
    +
    returns a HTMLLinkElement instance

  • +
  • HTMLLinkElement (other) +
    +
    returns a HTMLLinkElement instance
    + +
    ArgumentTypeDefault
    otherDOM.HTMLLinkElement
    +

  • +
  • HTMLLinkElement (other) +
    +
    returns a HTMLLinkElement instance
    + +
    ArgumentTypeDefault
    otherDOM.Node
    +

  • +
  • HTMLLinkElement (impl) +
    Not Implemented
    +

  • +
  • charset () +
    +
    returns (DOM.DOMString)

  • +
  • disabled () +
    +
    returns (bool)

  • +
  • href () +
    +
    returns (DOM.DOMString)

  • +
  • hreflang () +
    +
    returns (DOM.DOMString)

  • +
  • media () +
    +
    returns (DOM.DOMString)

  • +
  • rel () +
    +
    returns (DOM.DOMString)

  • +
  • rev () +
    +
    returns (DOM.DOMString)

  • +
  • setCharset (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setDisabled (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • setHref (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setHreflang (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setMedia (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setRel (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setRev (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setTarget (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setType (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • sheet () +
    +
    returns (DOM.StyleSheet)

  • +
  • target () +
    +
    returns (DOM.DOMString)

  • +
  • type () +
    +
    returns (DOM.DOMString)

  • +
+ + + diff --git a/doc/classref/khtml/DOM.HTMLMapElement.html b/doc/classref/khtml/DOM.HTMLMapElement.html new file mode 100644 index 0000000..4abbb14 --- /dev/null +++ b/doc/classref/khtml/DOM.HTMLMapElement.html @@ -0,0 +1,71 @@ + + + + + class DOM.HTMLMapElement + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.HTMLMapElement


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.HTMLMapElement
InheritsDOM.HTMLElement
+

methods

    +
  • HTMLMapElement () +
    +
    returns a HTMLMapElement instance

  • +
  • HTMLMapElement (other) +
    +
    returns a HTMLMapElement instance
    + +
    ArgumentTypeDefault
    otherDOM.HTMLMapElement
    +

  • +
  • HTMLMapElement (other) +
    +
    returns a HTMLMapElement instance
    + +
    ArgumentTypeDefault
    otherDOM.Node
    +

  • +
  • HTMLMapElement (impl) +
    Not Implemented
    +

  • +
  • areas () +
    +
    returns (DOM.HTMLCollection)

  • +
  • name () +
    +
    returns (DOM.DOMString)

  • +
  • setName (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
+ + + diff --git a/doc/classref/khtml/DOM.HTMLMenuElement.html b/doc/classref/khtml/DOM.HTMLMenuElement.html new file mode 100644 index 0000000..5df6303 --- /dev/null +++ b/doc/classref/khtml/DOM.HTMLMenuElement.html @@ -0,0 +1,68 @@ + + + + + class DOM.HTMLMenuElement + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.HTMLMenuElement


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.HTMLMenuElement
InheritsDOM.HTMLElement
+

methods

    +
  • HTMLMenuElement () +
    +
    returns a HTMLMenuElement instance

  • +
  • HTMLMenuElement (other) +
    +
    returns a HTMLMenuElement instance
    + +
    ArgumentTypeDefault
    otherDOM.HTMLMenuElement
    +

  • +
  • HTMLMenuElement (other) +
    +
    returns a HTMLMenuElement instance
    + +
    ArgumentTypeDefault
    otherDOM.Node
    +

  • +
  • HTMLMenuElement (impl) +
    Not Implemented
    +

  • +
  • compact () +
    +
    returns (bool)

  • +
  • setCompact (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
+ + + diff --git a/doc/classref/khtml/DOM.HTMLMetaElement.html b/doc/classref/khtml/DOM.HTMLMetaElement.html new file mode 100644 index 0000000..e20d07f --- /dev/null +++ b/doc/classref/khtml/DOM.HTMLMetaElement.html @@ -0,0 +1,95 @@ + + + + + class DOM.HTMLMetaElement + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.HTMLMetaElement


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.HTMLMetaElement
InheritsDOM.HTMLElement
+

methods

    +
  • HTMLMetaElement () +
    +
    returns a HTMLMetaElement instance

  • +
  • HTMLMetaElement (other) +
    +
    returns a HTMLMetaElement instance
    + +
    ArgumentTypeDefault
    otherDOM.HTMLMetaElement
    +

  • +
  • HTMLMetaElement (other) +
    +
    returns a HTMLMetaElement instance
    + +
    ArgumentTypeDefault
    otherDOM.Node
    +

  • +
  • HTMLMetaElement (impl) +
    Not Implemented
    +

  • +
  • content () +
    +
    returns (DOM.DOMString)

  • +
  • httpEquiv () +
    +
    returns (DOM.DOMString)

  • +
  • name () +
    +
    returns (DOM.DOMString)

  • +
  • scheme () +
    +
    returns (DOM.DOMString)

  • +
  • setContent (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setHttpEquiv (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setName (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setScheme (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
+ + + diff --git a/doc/classref/khtml/DOM.HTMLModElement.html b/doc/classref/khtml/DOM.HTMLModElement.html new file mode 100644 index 0000000..5240472 --- /dev/null +++ b/doc/classref/khtml/DOM.HTMLModElement.html @@ -0,0 +1,77 @@ + + + + + class DOM.HTMLModElement + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.HTMLModElement


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.HTMLModElement
InheritsDOM.HTMLElement
+

methods

    +
  • HTMLModElement () +
    +
    returns a HTMLModElement instance

  • +
  • HTMLModElement (other) +
    +
    returns a HTMLModElement instance
    + +
    ArgumentTypeDefault
    otherDOM.HTMLModElement
    +

  • +
  • HTMLModElement (other) +
    +
    returns a HTMLModElement instance
    + +
    ArgumentTypeDefault
    otherDOM.Node
    +

  • +
  • HTMLModElement (impl) +
    Not Implemented
    +

  • +
  • cite () +
    +
    returns (DOM.DOMString)

  • +
  • dateTime () +
    +
    returns (DOM.DOMString)

  • +
  • setCite (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setDateTime (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
+ + + diff --git a/doc/classref/khtml/DOM.HTMLOListElement.html b/doc/classref/khtml/DOM.HTMLOListElement.html new file mode 100644 index 0000000..b71ed54 --- /dev/null +++ b/doc/classref/khtml/DOM.HTMLOListElement.html @@ -0,0 +1,86 @@ + + + + + class DOM.HTMLOListElement + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.HTMLOListElement


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.HTMLOListElement
InheritsDOM.HTMLElement
+

methods

    +
  • HTMLOListElement () +
    +
    returns a HTMLOListElement instance

  • +
  • HTMLOListElement (other) +
    +
    returns a HTMLOListElement instance
    + +
    ArgumentTypeDefault
    otherDOM.HTMLOListElement
    +

  • +
  • HTMLOListElement (other) +
    +
    returns a HTMLOListElement instance
    + +
    ArgumentTypeDefault
    otherDOM.Node
    +

  • +
  • HTMLOListElement (impl) +
    Not Implemented
    +

  • +
  • compact () +
    +
    returns (bool)

  • +
  • setCompact (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • setStart (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0long
    +

  • +
  • setType (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • start () +
    +
    returns (long)

  • +
  • type () +
    +
    returns (DOM.DOMString)

  • +
+ + + diff --git a/doc/classref/khtml/DOM.HTMLObjectElement.html b/doc/classref/khtml/DOM.HTMLObjectElement.html new file mode 100644 index 0000000..8c868c2 --- /dev/null +++ b/doc/classref/khtml/DOM.HTMLObjectElement.html @@ -0,0 +1,240 @@ + + + + + class DOM.HTMLObjectElement + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.HTMLObjectElement


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.HTMLObjectElement
InheritsDOM.HTMLElement
+

methods

    +
  • HTMLObjectElement () +
    +
    returns a HTMLObjectElement instance

  • +
  • HTMLObjectElement (other) +
    +
    returns a HTMLObjectElement instance
    + +
    ArgumentTypeDefault
    otherDOM.HTMLObjectElement
    +

  • +
  • HTMLObjectElement (other) +
    +
    returns a HTMLObjectElement instance
    + +
    ArgumentTypeDefault
    otherDOM.Node
    +

  • +
  • HTMLObjectElement (impl) +
    Not Implemented
    +

  • +
  • align () +
    +
    returns (DOM.DOMString)

  • +
  • archive () +
    +
    returns (DOM.DOMString)

  • +
  • border () +
    +
    returns (DOM.DOMString)

  • +
  • code () +
    +
    returns (DOM.DOMString)

  • +
  • codeBase () +
    +
    returns (DOM.DOMString)

  • +
  • codeType () +
    +
    returns (DOM.DOMString)

  • +
  • contentDocument () +
    +
    returns (DOM.Document)

  • +
  • data () +
    +
    returns (DOM.DOMString)

  • +
  • declare () +
    +
    returns (bool)

  • +
  • form () +
    +
    returns (DOM.HTMLFormElement)

  • +
  • getHspace () +
    + +
    returns (long)
    In versions KDE 3.1.0 and above only

  • +
  • getVspace () +
    + +
    returns (long)
    In versions KDE 3.1.0 and above only

  • +
  • height () +
    +
    returns (DOM.DOMString)

  • +
  • hspace () +
    +
    returns (DOM.DOMString)

  • +
  • name () +
    +
    returns (DOM.DOMString)

  • +
  • setAlign (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setArchive (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setBorder (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setCode (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setCodeBase (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setCodeType (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setData (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setDeclare (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • setHeight (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setHspace (a0) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    a0long
    +

  • +
  • setHspace (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setName (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setStandby (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setTabIndex (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0long
    +

  • +
  • setType (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setUseMap (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setVspace (a0) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    a0long
    +

  • +
  • setVspace (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setWidth (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • standby () +
    +
    returns (DOM.DOMString)

  • +
  • tabIndex () +
    +
    returns (long)

  • +
  • type () +
    +
    returns (DOM.DOMString)

  • +
  • useMap () +
    +
    returns (DOM.DOMString)

  • +
  • vspace () +
    +
    returns (DOM.DOMString)

  • +
  • width () +
    +
    returns (DOM.DOMString)

  • +
+ + + diff --git a/doc/classref/khtml/DOM.HTMLOptGroupElement.html b/doc/classref/khtml/DOM.HTMLOptGroupElement.html new file mode 100644 index 0000000..82de37f --- /dev/null +++ b/doc/classref/khtml/DOM.HTMLOptGroupElement.html @@ -0,0 +1,77 @@ + + + + + class DOM.HTMLOptGroupElement + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.HTMLOptGroupElement


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.HTMLOptGroupElement
InheritsDOM.HTMLElement
+

methods

    +
  • HTMLOptGroupElement () +
    +
    returns a HTMLOptGroupElement instance

  • +
  • HTMLOptGroupElement (other) +
    +
    returns a HTMLOptGroupElement instance
    + +
    ArgumentTypeDefault
    otherDOM.HTMLOptGroupElement
    +

  • +
  • HTMLOptGroupElement (other) +
    +
    returns a HTMLOptGroupElement instance
    + +
    ArgumentTypeDefault
    otherDOM.Node
    +

  • +
  • HTMLOptGroupElement (impl) +
    Not Implemented
    +

  • +
  • disabled () +
    +
    returns (bool)

  • +
  • label () +
    +
    returns (DOM.DOMString)

  • +
  • setDisabled (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • setLabel (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
+ + + diff --git a/doc/classref/khtml/DOM.HTMLOptionElement.html b/doc/classref/khtml/DOM.HTMLOptionElement.html new file mode 100644 index 0000000..4da1c41 --- /dev/null +++ b/doc/classref/khtml/DOM.HTMLOptionElement.html @@ -0,0 +1,119 @@ + + + + + class DOM.HTMLOptionElement + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.HTMLOptionElement


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.HTMLOptionElement
InheritsDOM.HTMLElement
+

methods

    +
  • HTMLOptionElement () +
    +
    returns a HTMLOptionElement instance

  • +
  • HTMLOptionElement (other) +
    +
    returns a HTMLOptionElement instance
    + +
    ArgumentTypeDefault
    otherDOM.HTMLOptionElement
    +

  • +
  • HTMLOptionElement (other) +
    +
    returns a HTMLOptionElement instance
    + +
    ArgumentTypeDefault
    otherDOM.Node
    +

  • +
  • HTMLOptionElement (impl) +
    Not Implemented
    +

  • +
  • defaultSelected () +
    +
    returns (bool)

  • +
  • disabled () +
    +
    returns (bool)

  • +
  • form () +
    +
    returns (DOM.HTMLFormElement)

  • +
  • index () +
    +
    returns (long)

  • +
  • label () +
    +
    returns (DOM.DOMString)

  • +
  • selected () +
    +
    returns (bool)

  • +
  • setDefaultSelected (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • setDisabled (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • setIndex (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0long
    +

  • +
  • setLabel (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setSelected (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • setValue (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • text () +
    +
    returns (DOM.DOMString)

  • +
  • value () +
    +
    returns (DOM.DOMString)

  • +
+ + + diff --git a/doc/classref/khtml/DOM.HTMLParagraphElement.html b/doc/classref/khtml/DOM.HTMLParagraphElement.html new file mode 100644 index 0000000..8cd2b7f --- /dev/null +++ b/doc/classref/khtml/DOM.HTMLParagraphElement.html @@ -0,0 +1,71 @@ + + + + + class DOM.HTMLParagraphElement + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.HTMLParagraphElement


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.HTMLParagraphElement
InheritsDOM.HTMLElement
+

methods

    +
  • HTMLParagraphElement () +
    +
    returns a HTMLParagraphElement instance

  • +
  • HTMLParagraphElement (other) +
    +
    returns a HTMLParagraphElement instance
    + +
    ArgumentTypeDefault
    otherDOM.HTMLParagraphElement
    +

  • +
  • HTMLParagraphElement (other) +
    +
    returns a HTMLParagraphElement instance
    + +
    ArgumentTypeDefault
    otherDOM.Node
    +

  • +
  • HTMLParagraphElement (impl) +
    Not Implemented
    +

  • +
  • HTMLParagraphElement (a0) +
    Not Implemented
    +

  • +
  • align () +
    +
    returns (DOM.DOMString)

  • +
  • setAlign (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
+ + + diff --git a/doc/classref/khtml/DOM.HTMLParamElement.html b/doc/classref/khtml/DOM.HTMLParamElement.html new file mode 100644 index 0000000..1b06ca0 --- /dev/null +++ b/doc/classref/khtml/DOM.HTMLParamElement.html @@ -0,0 +1,95 @@ + + + + + class DOM.HTMLParamElement + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.HTMLParamElement


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.HTMLParamElement
InheritsDOM.HTMLElement
+

methods

    +
  • HTMLParamElement () +
    +
    returns a HTMLParamElement instance

  • +
  • HTMLParamElement (other) +
    +
    returns a HTMLParamElement instance
    + +
    ArgumentTypeDefault
    otherDOM.HTMLParamElement
    +

  • +
  • HTMLParamElement (other) +
    +
    returns a HTMLParamElement instance
    + +
    ArgumentTypeDefault
    otherDOM.Node
    +

  • +
  • HTMLParamElement (impl) +
    Not Implemented
    +

  • +
  • name () +
    +
    returns (DOM.DOMString)

  • +
  • setName (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setType (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setValue (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setValueType (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • type () +
    +
    returns (DOM.DOMString)

  • +
  • value () +
    +
    returns (DOM.DOMString)

  • +
  • valueType () +
    +
    returns (DOM.DOMString)

  • +
+ + + diff --git a/doc/classref/khtml/DOM.HTMLPreElement.html b/doc/classref/khtml/DOM.HTMLPreElement.html new file mode 100644 index 0000000..0bd3a4f --- /dev/null +++ b/doc/classref/khtml/DOM.HTMLPreElement.html @@ -0,0 +1,68 @@ + + + + + class DOM.HTMLPreElement + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.HTMLPreElement


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.HTMLPreElement
InheritsDOM.HTMLElement
+

methods

    +
  • HTMLPreElement () +
    +
    returns a HTMLPreElement instance

  • +
  • HTMLPreElement (other) +
    +
    returns a HTMLPreElement instance
    + +
    ArgumentTypeDefault
    otherDOM.HTMLPreElement
    +

  • +
  • HTMLPreElement (other) +
    +
    returns a HTMLPreElement instance
    + +
    ArgumentTypeDefault
    otherDOM.Node
    +

  • +
  • HTMLPreElement (impl) +
    Not Implemented
    +

  • +
  • setWidth (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0long
    +

  • +
  • width () +
    +
    returns (long)

  • +
+ + + diff --git a/doc/classref/khtml/DOM.HTMLQuoteElement.html b/doc/classref/khtml/DOM.HTMLQuoteElement.html new file mode 100644 index 0000000..478c13d --- /dev/null +++ b/doc/classref/khtml/DOM.HTMLQuoteElement.html @@ -0,0 +1,68 @@ + + + + + class DOM.HTMLQuoteElement + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.HTMLQuoteElement


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.HTMLQuoteElement
InheritsDOM.HTMLElement
+

methods

    +
  • HTMLQuoteElement () +
    +
    returns a HTMLQuoteElement instance

  • +
  • HTMLQuoteElement (other) +
    +
    returns a HTMLQuoteElement instance
    + +
    ArgumentTypeDefault
    otherDOM.HTMLQuoteElement
    +

  • +
  • HTMLQuoteElement (other) +
    +
    returns a HTMLQuoteElement instance
    + +
    ArgumentTypeDefault
    otherDOM.Node
    +

  • +
  • HTMLQuoteElement (impl) +
    Not Implemented
    +

  • +
  • cite () +
    +
    returns (DOM.DOMString)

  • +
  • setCite (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
+ + + diff --git a/doc/classref/khtml/DOM.HTMLScriptElement.html b/doc/classref/khtml/DOM.HTMLScriptElement.html new file mode 100644 index 0000000..82b2e08 --- /dev/null +++ b/doc/classref/khtml/DOM.HTMLScriptElement.html @@ -0,0 +1,122 @@ + + + + + class DOM.HTMLScriptElement + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.HTMLScriptElement


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.HTMLScriptElement
InheritsDOM.HTMLElement
+

methods

    +
  • HTMLScriptElement () +
    +
    returns a HTMLScriptElement instance

  • +
  • HTMLScriptElement (other) +
    +
    returns a HTMLScriptElement instance
    + +
    ArgumentTypeDefault
    otherDOM.HTMLScriptElement
    +

  • +
  • HTMLScriptElement (other) +
    +
    returns a HTMLScriptElement instance
    + +
    ArgumentTypeDefault
    otherDOM.Node
    +

  • +
  • HTMLScriptElement (impl) +
    Not Implemented
    +

  • +
  • charset () +
    +
    returns (DOM.DOMString)

  • +
  • defer () +
    +
    returns (bool)

  • +
  • event () +
    +
    returns (DOM.DOMString)

  • +
  • htmlFor () +
    +
    returns (DOM.DOMString)

  • +
  • setCharset (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setDefer (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • setEvent (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setHtmlFor (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setSrc (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setText (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setType (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • src () +
    +
    returns (DOM.DOMString)

  • +
  • text () +
    +
    returns (DOM.DOMString)

  • +
  • type () +
    +
    returns (DOM.DOMString)

  • +
+ + + diff --git a/doc/classref/khtml/DOM.HTMLSelectElement.html b/doc/classref/khtml/DOM.HTMLSelectElement.html new file mode 100644 index 0000000..e6492bf --- /dev/null +++ b/doc/classref/khtml/DOM.HTMLSelectElement.html @@ -0,0 +1,153 @@ + + + + + class DOM.HTMLSelectElement + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.HTMLSelectElement


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.HTMLSelectElement
InheritsDOM.HTMLElement
+

methods

    +
  • HTMLSelectElement () +
    +
    returns a HTMLSelectElement instance

  • +
  • HTMLSelectElement (other) +
    +
    returns a HTMLSelectElement instance
    + +
    ArgumentTypeDefault
    otherDOM.HTMLSelectElement
    +

  • +
  • HTMLSelectElement (other) +
    +
    returns a HTMLSelectElement instance
    + +
    ArgumentTypeDefault
    otherDOM.Node
    +

  • +
  • HTMLSelectElement (impl) +
    Not Implemented
    +

  • +
  • add (element, before) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    elementDOM.HTMLElement
    beforeDOM.HTMLElement
    +

  • +
  • blur () +
    +
    returns nothing

  • +
  • disabled () +
    +
    returns (bool)

  • +
  • focus () +
    +
    returns nothing

  • +
  • form () +
    +
    returns (DOM.HTMLFormElement)

  • +
  • length () +
    +
    returns (long)

  • +
  • multiple () +
    +
    returns (bool)

  • +
  • name () +
    +
    returns (DOM.DOMString)

  • +
  • options () +
    +
    returns (DOM.HTMLCollection)

  • +
  • remove (index) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    indexlong
    +

  • +
  • selectedIndex () +
    +
    returns (long)

  • +
  • setDisabled (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • setMultiple (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • setName (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setSelectedIndex (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0long
    +

  • +
  • setSize (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0long
    +

  • +
  • setTabIndex (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0long
    +

  • +
  • setValue (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • size () +
    +
    returns (long)

  • +
  • tabIndex () +
    +
    returns (long)

  • +
  • type () +
    +
    returns (DOM.DOMString)

  • +
  • value () +
    +
    returns (DOM.DOMString)

  • +
+ + + diff --git a/doc/classref/khtml/DOM.HTMLStyleElement.html b/doc/classref/khtml/DOM.HTMLStyleElement.html new file mode 100644 index 0000000..778ded7 --- /dev/null +++ b/doc/classref/khtml/DOM.HTMLStyleElement.html @@ -0,0 +1,89 @@ + + + + + class DOM.HTMLStyleElement + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.HTMLStyleElement


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.HTMLStyleElement
InheritsDOM.HTMLElement
+

methods

    +
  • HTMLStyleElement () +
    +
    returns a HTMLStyleElement instance

  • +
  • HTMLStyleElement (other) +
    +
    returns a HTMLStyleElement instance
    + +
    ArgumentTypeDefault
    otherDOM.HTMLStyleElement
    +

  • +
  • HTMLStyleElement (other) +
    +
    returns a HTMLStyleElement instance
    + +
    ArgumentTypeDefault
    otherDOM.Node
    +

  • +
  • HTMLStyleElement (impl) +
    Not Implemented
    +

  • +
  • disabled () +
    +
    returns (bool)

  • +
  • media () +
    +
    returns (DOM.DOMString)

  • +
  • setDisabled (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • setMedia (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setType (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • sheet () +
    +
    returns (DOM.StyleSheet)

  • +
  • type () +
    +
    returns (DOM.DOMString)

  • +
+ + + diff --git a/doc/classref/khtml/DOM.HTMLTableCaptionElement.html b/doc/classref/khtml/DOM.HTMLTableCaptionElement.html new file mode 100644 index 0000000..66c0cf2 --- /dev/null +++ b/doc/classref/khtml/DOM.HTMLTableCaptionElement.html @@ -0,0 +1,68 @@ + + + + + class DOM.HTMLTableCaptionElement + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.HTMLTableCaptionElement


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.HTMLTableCaptionElement
InheritsDOM.HTMLElement
+

methods

    +
  • HTMLTableCaptionElement () +
    +
    returns a HTMLTableCaptionElement instance

  • +
  • HTMLTableCaptionElement (other) +
    +
    returns a HTMLTableCaptionElement instance
    + +
    ArgumentTypeDefault
    otherDOM.HTMLTableCaptionElement
    +

  • +
  • HTMLTableCaptionElement (other) +
    +
    returns a HTMLTableCaptionElement instance
    + +
    ArgumentTypeDefault
    otherDOM.Node
    +

  • +
  • HTMLTableCaptionElement (impl) +
    Not Implemented
    +

  • +
  • align () +
    +
    returns (DOM.DOMString)

  • +
  • setAlign (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
+ + + diff --git a/doc/classref/khtml/DOM.HTMLTableCellElement.html b/doc/classref/khtml/DOM.HTMLTableCellElement.html new file mode 100644 index 0000000..0a67afe --- /dev/null +++ b/doc/classref/khtml/DOM.HTMLTableCellElement.html @@ -0,0 +1,194 @@ + + + + + class DOM.HTMLTableCellElement + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.HTMLTableCellElement


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.HTMLTableCellElement
InheritsDOM.HTMLElement
+

methods

    +
  • HTMLTableCellElement () +
    +
    returns a HTMLTableCellElement instance

  • +
  • HTMLTableCellElement (other) +
    +
    returns a HTMLTableCellElement instance
    + +
    ArgumentTypeDefault
    otherDOM.HTMLTableCellElement
    +

  • +
  • HTMLTableCellElement (other) +
    +
    returns a HTMLTableCellElement instance
    + +
    ArgumentTypeDefault
    otherDOM.Node
    +

  • +
  • HTMLTableCellElement (impl) +
    Not Implemented
    +

  • +
  • abbr () +
    +
    returns (DOM.DOMString)

  • +
  • align () +
    +
    returns (DOM.DOMString)

  • +
  • axis () +
    +
    returns (DOM.DOMString)

  • +
  • bgColor () +
    +
    returns (DOM.DOMString)

  • +
  • cellIndex () +
    +
    returns (long)

  • +
  • ch () +
    +
    returns (DOM.DOMString)

  • +
  • chOff () +
    +
    returns (DOM.DOMString)

  • +
  • colSpan () +
    +
    returns (long)

  • +
  • headers () +
    +
    returns (DOM.DOMString)

  • +
  • height () +
    +
    returns (DOM.DOMString)

  • +
  • noWrap () +
    +
    returns (bool)

  • +
  • rowSpan () +
    +
    returns (long)

  • +
  • scope () +
    +
    returns (DOM.DOMString)

  • +
  • setAbbr (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setAlign (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setAxis (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setBgColor (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setCellIndex (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0long
    +

  • +
  • setCh (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setChOff (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setColSpan (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0long
    +

  • +
  • setHeaders (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setHeight (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setNoWrap (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • setRowSpan (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0long
    +

  • +
  • setScope (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setVAlign (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setWidth (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • vAlign () +
    +
    returns (DOM.DOMString)

  • +
  • width () +
    +
    returns (DOM.DOMString)

  • +
+ + + diff --git a/doc/classref/khtml/DOM.HTMLTableColElement.html b/doc/classref/khtml/DOM.HTMLTableColElement.html new file mode 100644 index 0000000..e8476ff --- /dev/null +++ b/doc/classref/khtml/DOM.HTMLTableColElement.html @@ -0,0 +1,113 @@ + + + + + class DOM.HTMLTableColElement + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.HTMLTableColElement


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.HTMLTableColElement
InheritsDOM.HTMLElement
+

methods

    +
  • HTMLTableColElement () +
    +
    returns a HTMLTableColElement instance

  • +
  • HTMLTableColElement (other) +
    +
    returns a HTMLTableColElement instance
    + +
    ArgumentTypeDefault
    otherDOM.HTMLTableColElement
    +

  • +
  • HTMLTableColElement (other) +
    +
    returns a HTMLTableColElement instance
    + +
    ArgumentTypeDefault
    otherDOM.Node
    +

  • +
  • HTMLTableColElement (impl) +
    Not Implemented
    +

  • +
  • align () +
    +
    returns (DOM.DOMString)

  • +
  • ch () +
    +
    returns (DOM.DOMString)

  • +
  • chOff () +
    +
    returns (DOM.DOMString)

  • +
  • setAlign (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setCh (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setChOff (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setSpan (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0long
    +

  • +
  • setVAlign (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setWidth (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • span () +
    +
    returns (long)

  • +
  • vAlign () +
    +
    returns (DOM.DOMString)

  • +
  • width () +
    +
    returns (DOM.DOMString)

  • +
+ + + diff --git a/doc/classref/khtml/DOM.HTMLTableElement.html b/doc/classref/khtml/DOM.HTMLTableElement.html new file mode 100644 index 0000000..aab07f0 --- /dev/null +++ b/doc/classref/khtml/DOM.HTMLTableElement.html @@ -0,0 +1,203 @@ + + + + + class DOM.HTMLTableElement + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.HTMLTableElement


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.HTMLTableElement
InheritsDOM.HTMLElement
+

methods

    +
  • HTMLTableElement () +
    +
    returns a HTMLTableElement instance

  • +
  • HTMLTableElement (other) +
    +
    returns a HTMLTableElement instance
    + +
    ArgumentTypeDefault
    otherDOM.HTMLTableElement
    +

  • +
  • HTMLTableElement (other) +
    +
    returns a HTMLTableElement instance
    + +
    ArgumentTypeDefault
    otherDOM.Node
    +

  • +
  • HTMLTableElement (impl) +
    Not Implemented
    +

  • +
  • align () +
    +
    returns (DOM.DOMString)

  • +
  • bgColor () +
    +
    returns (DOM.DOMString)

  • +
  • border () +
    +
    returns (DOM.DOMString)

  • +
  • caption () +
    +
    returns (DOM.HTMLTableCaptionElement)

  • +
  • cellPadding () +
    +
    returns (DOM.DOMString)

  • +
  • cellSpacing () +
    +
    returns (DOM.DOMString)

  • +
  • createCaption () +
    +
    returns (DOM.HTMLElement)

  • +
  • createTFoot () +
    +
    returns (DOM.HTMLElement)

  • +
  • createTHead () +
    +
    returns (DOM.HTMLElement)

  • +
  • deleteCaption () +
    +
    returns nothing

  • +
  • deleteRow (index) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    indexlong
    +

  • +
  • deleteTFoot () +
    +
    returns nothing

  • +
  • deleteTHead () +
    +
    returns nothing

  • +
  • frame () +
    +
    returns (DOM.DOMString)

  • +
  • insertRow (index) +
    +
    returns (DOM.HTMLElement)
    + +
    ArgumentTypeDefault
    indexlong
    +

  • +
  • rows () +
    +
    returns (DOM.HTMLCollection)

  • +
  • rules () +
    +
    returns (DOM.DOMString)

  • +
  • setAlign (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setBgColor (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setBorder (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setCaption (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.HTMLTableCaptionElement
    +

  • +
  • setCellPadding (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setCellSpacing (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setFrame (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setRules (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setSummary (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setTFoot (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.HTMLTableSectionElement
    +

  • +
  • setTHead (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.HTMLTableSectionElement
    +

  • +
  • setWidth (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • summary () +
    +
    returns (DOM.DOMString)

  • +
  • tBodies () +
    +
    returns (DOM.HTMLCollection)

  • +
  • tFoot () +
    +
    returns (DOM.HTMLTableSectionElement)

  • +
  • tHead () +
    +
    returns (DOM.HTMLTableSectionElement)

  • +
  • width () +
    +
    returns (DOM.DOMString)

  • +
+ + + diff --git a/doc/classref/khtml/DOM.HTMLTableRowElement.html b/doc/classref/khtml/DOM.HTMLTableRowElement.html new file mode 100644 index 0000000..2383f76 --- /dev/null +++ b/doc/classref/khtml/DOM.HTMLTableRowElement.html @@ -0,0 +1,143 @@ + + + + + class DOM.HTMLTableRowElement + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.HTMLTableRowElement


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.HTMLTableRowElement
InheritsDOM.HTMLElement
+

methods

    +
  • HTMLTableRowElement () +
    +
    returns a HTMLTableRowElement instance

  • +
  • HTMLTableRowElement (other) +
    +
    returns a HTMLTableRowElement instance
    + +
    ArgumentTypeDefault
    otherDOM.HTMLTableRowElement
    +

  • +
  • HTMLTableRowElement (other) +
    +
    returns a HTMLTableRowElement instance
    + +
    ArgumentTypeDefault
    otherDOM.Node
    +

  • +
  • HTMLTableRowElement (impl) +
    Not Implemented
    +

  • +
  • align () +
    +
    returns (DOM.DOMString)

  • +
  • bgColor () +
    +
    returns (DOM.DOMString)

  • +
  • cells () +
    +
    returns (DOM.HTMLCollection)

  • +
  • ch () +
    +
    returns (DOM.DOMString)

  • +
  • chOff () +
    +
    returns (DOM.DOMString)

  • +
  • deleteCell (index) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    indexlong
    +

  • +
  • insertCell (index) +
    +
    returns (DOM.HTMLElement)
    + +
    ArgumentTypeDefault
    indexlong
    +

  • +
  • rowIndex () +
    +
    returns (long)

  • +
  • sectionRowIndex () +
    +
    returns (long)

  • +
  • setAlign (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setBgColor (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setCells (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.HTMLCollection
    +

  • +
  • setCh (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setChOff (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setRowIndex (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0long
    +

  • +
  • setSectionRowIndex (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0long
    +

  • +
  • setVAlign (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • vAlign () +
    +
    returns (DOM.DOMString)

  • +
+ + + diff --git a/doc/classref/khtml/DOM.HTMLTableSectionElement.html b/doc/classref/khtml/DOM.HTMLTableSectionElement.html new file mode 100644 index 0000000..d21647a --- /dev/null +++ b/doc/classref/khtml/DOM.HTMLTableSectionElement.html @@ -0,0 +1,110 @@ + + + + + class DOM.HTMLTableSectionElement + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.HTMLTableSectionElement


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.HTMLTableSectionElement
InheritsDOM.HTMLElement
+

methods

    +
  • HTMLTableSectionElement () +
    +
    returns a HTMLTableSectionElement instance

  • +
  • HTMLTableSectionElement (other) +
    +
    returns a HTMLTableSectionElement instance
    + +
    ArgumentTypeDefault
    otherDOM.HTMLTableSectionElement
    +

  • +
  • HTMLTableSectionElement (other) +
    +
    returns a HTMLTableSectionElement instance
    + +
    ArgumentTypeDefault
    otherDOM.Node
    +

  • +
  • HTMLTableSectionElement (impl) +
    Not Implemented
    +

  • +
  • align () +
    +
    returns (DOM.DOMString)

  • +
  • ch () +
    +
    returns (DOM.DOMString)

  • +
  • chOff () +
    +
    returns (DOM.DOMString)

  • +
  • deleteRow (index) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    indexlong
    +

  • +
  • insertRow (index) +
    +
    returns (DOM.HTMLElement)
    + +
    ArgumentTypeDefault
    indexlong
    +

  • +
  • rows () +
    +
    returns (DOM.HTMLCollection)

  • +
  • setAlign (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setCh (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setChOff (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setVAlign (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • vAlign () +
    +
    returns (DOM.DOMString)

  • +
+ + + diff --git a/doc/classref/khtml/DOM.HTMLTextAreaElement.html b/doc/classref/khtml/DOM.HTMLTextAreaElement.html new file mode 100644 index 0000000..ba158ad --- /dev/null +++ b/doc/classref/khtml/DOM.HTMLTextAreaElement.html @@ -0,0 +1,189 @@ + + + + + class DOM.HTMLTextAreaElement + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.HTMLTextAreaElement


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.HTMLTextAreaElement
InheritsDOM.HTMLElement
+

methods

    +
  • HTMLTextAreaElement () +
    +
    returns a HTMLTextAreaElement instance

  • +
  • HTMLTextAreaElement (other) +
    +
    returns a HTMLTextAreaElement instance
    + +
    ArgumentTypeDefault
    otherDOM.HTMLTextAreaElement
    +

  • +
  • HTMLTextAreaElement (other) +
    +
    returns a HTMLTextAreaElement instance
    + +
    ArgumentTypeDefault
    otherDOM.Node
    +

  • +
  • HTMLTextAreaElement (impl) +
    Not Implemented
    +

  • +
  • accessKey () +
    +
    returns (DOM.DOMString)

  • +
  • blur () +
    +
    returns nothing

  • +
  • cols () +
    +
    returns (long)

  • +
  • defaultValue () +
    +
    returns (DOM.DOMString)

  • +
  • disabled () +
    +
    returns (bool)

  • +
  • focus () +
    +
    returns nothing

  • +
  • form () +
    +
    returns (DOM.HTMLFormElement)

  • +
  • name () +
    +
    returns (DOM.DOMString)

  • +
  • readOnly () +
    +
    returns (bool)

  • +
  • rows () +
    +
    returns (long)

  • +
  • select () +
    +
    returns nothing

  • +
  • selectionEnd () +
    + +
    returns (long)
    In versions KDE 3.5.2 and above only

  • +
  • selectionStart () +
    + +
    returns (long)
    In versions KDE 3.5.2 and above only

  • +
  • setAccessKey (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setCols (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0long
    +

  • +
  • setDefaultValue (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setDisabled (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • setName (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setReadOnly (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • setRows (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0long
    +

  • +
  • setSelectionEnd (offset) +
    + +
    returns nothing
    In versions KDE 3.5.2 and above only
    + +
    ArgumentTypeDefault
    offsetlong
    +

  • +
  • setSelectionRange (start, end) +
    + +
    returns nothing
    In versions KDE 3.5.2 and above only
    + + +
    ArgumentTypeDefault
    startlong
    endlong
    +

  • +
  • setSelectionStart (offset) +
    + +
    returns nothing
    In versions KDE 3.5.2 and above only
    + +
    ArgumentTypeDefault
    offsetlong
    +

  • +
  • setTabIndex (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0long
    +

  • +
  • setValue (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • tabIndex () +
    +
    returns (long)

  • +
  • textLength () +
    + +
    returns (long)
    In versions KDE 3.5.2 and above only

  • +
  • type () +
    +
    returns (DOM.DOMString)

  • +
  • value () +
    +
    returns (DOM.DOMString)

  • +
+ + + diff --git a/doc/classref/khtml/DOM.HTMLTitleElement.html b/doc/classref/khtml/DOM.HTMLTitleElement.html new file mode 100644 index 0000000..1a08e65 --- /dev/null +++ b/doc/classref/khtml/DOM.HTMLTitleElement.html @@ -0,0 +1,68 @@ + + + + + class DOM.HTMLTitleElement + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.HTMLTitleElement


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.HTMLTitleElement
InheritsDOM.HTMLElement
+

methods

    +
  • HTMLTitleElement () +
    +
    returns a HTMLTitleElement instance

  • +
  • HTMLTitleElement (other) +
    +
    returns a HTMLTitleElement instance
    + +
    ArgumentTypeDefault
    otherDOM.HTMLTitleElement
    +

  • +
  • HTMLTitleElement (other) +
    +
    returns a HTMLTitleElement instance
    + +
    ArgumentTypeDefault
    otherDOM.Node
    +

  • +
  • HTMLTitleElement (impl) +
    Not Implemented
    +

  • +
  • setText (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • text () +
    +
    returns (DOM.DOMString)

  • +
+ + + diff --git a/doc/classref/khtml/DOM.HTMLUListElement.html b/doc/classref/khtml/DOM.HTMLUListElement.html new file mode 100644 index 0000000..21e71d4 --- /dev/null +++ b/doc/classref/khtml/DOM.HTMLUListElement.html @@ -0,0 +1,77 @@ + + + + + class DOM.HTMLUListElement + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.HTMLUListElement


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.HTMLUListElement
InheritsDOM.HTMLElement
+

methods

    +
  • HTMLUListElement () +
    +
    returns a HTMLUListElement instance

  • +
  • HTMLUListElement (other) +
    +
    returns a HTMLUListElement instance
    + +
    ArgumentTypeDefault
    otherDOM.HTMLUListElement
    +

  • +
  • HTMLUListElement (other) +
    +
    returns a HTMLUListElement instance
    + +
    ArgumentTypeDefault
    otherDOM.Node
    +

  • +
  • HTMLUListElement (impl) +
    Not Implemented
    +

  • +
  • compact () +
    +
    returns (bool)

  • +
  • setCompact (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • setType (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • type () +
    +
    returns (DOM.DOMString)

  • +
+ + + diff --git a/doc/classref/khtml/DOM.LinkStyle.html b/doc/classref/khtml/DOM.LinkStyle.html new file mode 100644 index 0000000..db3004e --- /dev/null +++ b/doc/classref/khtml/DOM.LinkStyle.html @@ -0,0 +1,56 @@ + + + + + class DOM.LinkStyle + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.LinkStyle


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.LinkStyle
Inherits
+

methods

    +
  • LinkStyle () +
    +
    returns a LinkStyle instance

  • +
  • LinkStyle (other) +
    +
    returns a LinkStyle instance
    + +
    ArgumentTypeDefault
    otherDOM.LinkStyle
    +

  • +
  • isNull () +
    +
    returns (bool)

  • +
  • sheet () +
    +
    returns (DOM.StyleSheet)

  • +
+ + + diff --git a/doc/classref/khtml/DOM.MediaList.html b/doc/classref/khtml/DOM.MediaList.html new file mode 100644 index 0000000..4fe4224 --- /dev/null +++ b/doc/classref/khtml/DOM.MediaList.html @@ -0,0 +1,89 @@ + + + + + class DOM.MediaList + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.MediaList


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.MediaList
Inherits
+

methods

    +
  • MediaList () +
    +
    returns a MediaList instance

  • +
  • MediaList (other) +
    +
    returns a MediaList instance
    + +
    ArgumentTypeDefault
    otherDOM.MediaList
    +

  • +
  • MediaList (impl) +
    Not Implemented
    +

  • +
  • appendMedium (newMedium) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    newMediumDOM.DOMString
    +

  • +
  • deleteMedium (oldMedium) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    oldMediumDOM.DOMString
    +

  • +
  • handle () +
    Not Implemented
    +

  • +
  • isNull () +
    +
    returns (bool)

  • +
  • item (index) +
    +
    returns (DOM.DOMString)
    + +
    ArgumentTypeDefault
    indexulong
    +

  • +
  • length () +
    +
    returns (ulong)

  • +
  • mediaText () +
    +
    returns (DOM.DOMString)

  • +
  • setMediaText (value) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    valueDOM.DOMString
    +

  • +
+ + + diff --git a/doc/classref/khtml/DOM.MouseEvent.html b/doc/classref/khtml/DOM.MouseEvent.html new file mode 100644 index 0000000..5341488 --- /dev/null +++ b/doc/classref/khtml/DOM.MouseEvent.html @@ -0,0 +1,109 @@ + + + + + class DOM.MouseEvent + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.MouseEvent


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.MouseEvent
InheritsDOM.UIEvent
+

methods

    +
  • MouseEvent () +
    +
    returns a MouseEvent instance

  • +
  • MouseEvent (other) +
    +
    returns a MouseEvent instance
    + +
    ArgumentTypeDefault
    otherDOM.MouseEvent
    +

  • +
  • MouseEvent (other) +
    +
    returns a MouseEvent instance
    + +
    ArgumentTypeDefault
    otherDOM.Event
    +

  • +
  • MouseEvent (impl) +
    Not Implemented
    +

  • +
  • altKey () +
    +
    returns (bool)

  • +
  • button () +
    +
    returns (ushort)

  • +
  • clientX () +
    +
    returns (long)

  • +
  • clientY () +
    +
    returns (long)

  • +
  • ctrlKey () +
    +
    returns (bool)

  • +
  • initMouseEvent (typeArg, canBubbleArg, cancelableArg, viewArg, detailArg, screenXArg, screenYArg, clientXArg, clientYArg, ctrlKeyArg, altKeyArg, shiftKeyArg, metaKeyArg, buttonArg, relatedTargetArg) +
    +
    returns nothing
    + + + + + + + + + + + + + + + +
    ArgumentTypeDefault
    typeArgDOM.DOMString
    canBubbleArgbool
    cancelableArgbool
    viewArgDOM.AbstractView
    detailArglong
    screenXArglong
    screenYArglong
    clientXArglong
    clientYArglong
    ctrlKeyArgbool
    altKeyArgbool
    shiftKeyArgbool
    metaKeyArgbool
    buttonArgushort
    relatedTargetArgDOM.Node
    +

  • +
  • metaKey () +
    +
    returns (bool)

  • +
  • relatedTarget () +
    +
    returns (DOM.Node)

  • +
  • screenX () +
    +
    returns (long)

  • +
  • screenY () +
    +
    returns (long)

  • +
  • shiftKey () +
    +
    returns (bool)

  • +
+ + + diff --git a/doc/classref/khtml/DOM.MutationEvent.html b/doc/classref/khtml/DOM.MutationEvent.html new file mode 100644 index 0000000..9d5b60d --- /dev/null +++ b/doc/classref/khtml/DOM.MutationEvent.html @@ -0,0 +1,99 @@ + + + + + class DOM.MutationEvent + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.MutationEvent


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.MutationEvent
InheritsDOM.Event
+

enums

    +
  • attrChangeType = {MODIFICATION, ADDITION, REMOVAL +}
+

methods

    +
  • MutationEvent () +
    + +
    returns a MutationEvent instance
    In versions KDE 3.1.0 and above only

  • +
  • MutationEvent (other) +
    + +
    returns a MutationEvent instance
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    otherDOM.MutationEvent
    +

  • +
  • MutationEvent (other) +
    + +
    returns a MutationEvent instance
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    otherDOM.Event
    +

  • +
  • MutationEvent (impl) +
    Not Implemented
    +

  • +
  • attrChange () +
    + +
    returns (ushort)
    In versions KDE 3.1.0 and above only

  • +
  • attrName () +
    + +
    returns (DOM.DOMString)
    In versions KDE 3.1.0 and above only

  • +
  • initMutationEvent (typeArg, canBubbleArg, cancelableArg, relatedNodeArg, prevValueArg, newValueArg, attrNameArg, attrChangeArg) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + + + + + + + + +
    ArgumentTypeDefault
    typeArgDOM.DOMString
    canBubbleArgbool
    cancelableArgbool
    relatedNodeArgDOM.Node
    prevValueArgDOM.DOMString
    newValueArgDOM.DOMString
    attrNameArgDOM.DOMString
    attrChangeArgushort
    +

  • +
  • newValue () +
    + +
    returns (DOM.DOMString)
    In versions KDE 3.1.0 and above only

  • +
  • prevValue () +
    + +
    returns (DOM.DOMString)
    In versions KDE 3.1.0 and above only

  • +
  • relatedNode () +
    + +
    returns (DOM.Node)
    In versions KDE 3.1.0 and above only

  • +
+ + + diff --git a/doc/classref/khtml/DOM.NamedNodeMap.html b/doc/classref/khtml/DOM.NamedNodeMap.html new file mode 100644 index 0000000..6f377c9 --- /dev/null +++ b/doc/classref/khtml/DOM.NamedNodeMap.html @@ -0,0 +1,106 @@ + + + + + class DOM.NamedNodeMap + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.NamedNodeMap


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.NamedNodeMap
Inherits
+

methods

    +
  • NamedNodeMap () +
    +
    returns a NamedNodeMap instance

  • +
  • NamedNodeMap (other) +
    +
    returns a NamedNodeMap instance
    + +
    ArgumentTypeDefault
    otherDOM.NamedNodeMap
    +

  • +
  • NamedNodeMap (i) +
    Not Implemented
    +

  • +
  • getNamedItem (name) +
    +
    returns (DOM.Node)
    + +
    ArgumentTypeDefault
    nameDOM.DOMString
    +

  • +
  • getNamedItemNS (namespaceURI, localName) +
    +
    returns (DOM.Node)
    + + +
    ArgumentTypeDefault
    namespaceURIDOM.DOMString
    localNameDOM.DOMString
    +

  • +
  • handle () +
    Not Implemented
    +

  • +
  • isNull () +
    +
    returns (bool)

  • +
  • item (index) +
    +
    returns (DOM.Node)
    + +
    ArgumentTypeDefault
    indexulong
    +

  • +
  • length () +
    +
    returns (ulong)

  • +
  • removeNamedItem (name) +
    +
    returns (DOM.Node)
    + +
    ArgumentTypeDefault
    nameDOM.DOMString
    +

  • +
  • removeNamedItemNS (namespaceURI, localName) +
    +
    returns (DOM.Node)
    + + +
    ArgumentTypeDefault
    namespaceURIDOM.DOMString
    localNameDOM.DOMString
    +

  • +
  • setNamedItem (arg) +
    +
    returns (DOM.Node)
    + +
    ArgumentTypeDefault
    argDOM.Node
    +

  • +
  • setNamedItemNS (arg) +
    +
    returns (DOM.Node)
    + +
    ArgumentTypeDefault
    argDOM.Node
    +

  • +
+ + + diff --git a/doc/classref/khtml/DOM.Node.html b/doc/classref/khtml/DOM.Node.html new file mode 100644 index 0000000..f0bd2c9 --- /dev/null +++ b/doc/classref/khtml/DOM.Node.html @@ -0,0 +1,221 @@ + + + + + class DOM.Node + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.Node


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.Node
Inherits
+

enums

    +
  • NodeType = {ELEMENT_NODE, ATTRIBUTE_NODE, TEXT_NODE, CDATA_SECTION_NODE, ENTITY_REFERENCE_NODE, ENTITY_NODE, PROCESSING_INSTRUCTION_NODE, COMMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, DOCUMENT_FRAGMENT_NODE, NOTATION_NODE +}
+

methods

    +
  • Node () +
    +
    returns a Node instance

  • +
  • Node (other) +
    +
    returns a Node instance
    + +
    ArgumentTypeDefault
    otherDOM.Node
    +

  • +
  • Node (_impl) +
    Not Implemented
    +

  • +
  • addEventListener (type, listener, useCapture) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    typeDOM.DOMString
    listenerDOM.EventListener
    useCapturebool
    +

  • +
  • appendChild (newChild) +
    +
    returns (DOM.Node)
    + +
    ArgumentTypeDefault
    newChildDOM.Node
    +

  • +
  • applyChanges () +
    +
    returns nothing

  • +
  • attributes () +
    +
    returns (DOM.NamedNodeMap)

  • +
  • childNodes () +
    +
    returns (DOM.NodeList)

  • +
  • cloneNode (deep) +
    +
    returns (DOM.Node)
    + +
    ArgumentTypeDefault
    deepbool
    +

  • +
  • dispatchEvent (evt) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    evtDOM.Event
    +

  • +
  • elementId () +
    +
    returns (ulong)

  • +
  • firstChild () +
    +
    returns (DOM.Node)

  • +
  • getCursor (offset) +
    +
    returns _x (int) _y (int) height (int)
    + +
    ArgumentTypeDefault
    offsetint
    +

  • +
  • getRect () +
    +
    returns (QRect)

  • +
  • handle () +
    Not Implemented
    +

  • +
  • hasAttributes () +
    +
    returns (bool)

  • +
  • hasChildNodes () +
    +
    returns (bool)

  • +
  • index () +
    +
    returns (ulong)

  • +
  • insertBefore (newChild, refChild) +
    +
    returns (DOM.Node)
    + + +
    ArgumentTypeDefault
    newChildDOM.Node
    refChildDOM.Node
    +

  • +
  • isNull () +
    +
    returns (bool)

  • +
  • isSupported (feature, version) +
    +
    returns (bool)
    + + +
    ArgumentTypeDefault
    featureDOM.DOMString
    versionDOM.DOMString
    +

  • +
  • lastChild () +
    +
    returns (DOM.Node)

  • +
  • localName () +
    +
    returns (DOM.DOMString)

  • +
  • namespaceURI () +
    +
    returns (DOM.DOMString)

  • +
  • nextSibling () +
    +
    returns (DOM.Node)

  • +
  • nodeName () +
    +
    returns (DOM.DOMString)

  • +
  • nodeType () +
    +
    returns (ushort)

  • +
  • nodeValue () +
    +
    returns (DOM.DOMString)

  • +
  • normalize () +
    +
    returns nothing

  • +
  • ownerDocument () +
    +
    returns (DOM.Document)

  • +
  • parentNode () +
    +
    returns (DOM.Node)

  • +
  • prefix () +
    +
    returns (DOM.DOMString)

  • +
  • previousSibling () +
    +
    returns (DOM.Node)

  • +
  • removeChild (oldChild) +
    +
    returns (DOM.Node)
    + +
    ArgumentTypeDefault
    oldChildDOM.Node
    +

  • +
  • removeEventListener (type, listener, useCapture) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    typeDOM.DOMString
    listenerDOM.EventListener
    useCapturebool
    +

  • +
  • replaceChild (newChild, oldChild) +
    +
    returns (DOM.Node)
    + + +
    ArgumentTypeDefault
    newChildDOM.Node
    oldChildDOM.Node
    +

  • +
  • setNodeValue (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • setPrefix (prefix) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    prefixDOM.DOMString
    +

  • +
  • toHTML () +
    +
    returns (QString)

  • +
+

operators

    +
  • operator != (a0) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    a0DOM.Node
    +

  • +
  • operator == (a0) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    a0DOM.Node
    +

  • +
+ + + diff --git a/doc/classref/khtml/DOM.NodeFilter.html b/doc/classref/khtml/DOM.NodeFilter.html new file mode 100644 index 0000000..8eed4a1 --- /dev/null +++ b/doc/classref/khtml/DOM.NodeFilter.html @@ -0,0 +1,88 @@ + + + + + class DOM.NodeFilter + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.NodeFilter


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.NodeFilter
Inherits
+

enums

    +
  • AcceptCode = {FILTER_ACCEPT, FILTER_REJECT, FILTER_SKIP +}
  • ShowCode = {SHOW_ALL, SHOW_ELEMENT, SHOW_ATTRIBUTE, SHOW_TEXT, SHOW_CDATA_SECTION, SHOW_ENTITY_REFERENCE, SHOW_ENTITY, SHOW_PROCESSING_INSTRUCTION, SHOW_COMMENT, SHOW_DOCUMENT, SHOW_DOCUMENT_TYPE, SHOW_DOCUMENT_FRAGMENT, SHOW_NOTATION +}
+

methods

    +
  • NodeFilter () +
    +
    returns a NodeFilter instance

  • +
  • NodeFilter (other) +
    +
    returns a NodeFilter instance
    + +
    ArgumentTypeDefault
    otherDOM.NodeFilter
    +

  • +
  • NodeFilter (i) +
    Not Implemented
    +

  • +
  • NodeFilter (a0) +
    Not Implemented
    +

  • +
  • acceptNode (n) +
    +
    returns (short)
    + +
    ArgumentTypeDefault
    nDOM.Node
    +

  • +
  • createCustom (custom) +
    + +
    returns (DOM.NodeFilter)
    static
    + +
    ArgumentTypeDefault
    customDOM.CustomNodeFilter
    +

  • +
  • customNodeFilter () +
    +
    returns (DOM.CustomNodeFilter)

  • +
  • handle () +
    Not Implemented
    +

  • +
  • isNull () +
    +
    returns (bool)

  • +
  • setCustomNodeFilter (custom) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    customDOM.CustomNodeFilter
    +

  • +
+ + + diff --git a/doc/classref/khtml/DOM.NodeIterator.html b/doc/classref/khtml/DOM.NodeIterator.html new file mode 100644 index 0000000..10c7c51 --- /dev/null +++ b/doc/classref/khtml/DOM.NodeIterator.html @@ -0,0 +1,80 @@ + + + + + class DOM.NodeIterator + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.NodeIterator


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.NodeIterator
Inherits
+

methods

    +
  • NodeIterator () +
    +
    returns a NodeIterator instance

  • +
  • NodeIterator (other) +
    +
    returns a NodeIterator instance
    + +
    ArgumentTypeDefault
    otherDOM.NodeIterator
    +

  • +
  • NodeIterator (i) +
    Not Implemented
    +

  • +
  • detach () +
    +
    returns nothing

  • +
  • expandEntityReferences () +
    +
    returns (bool)

  • +
  • filter () +
    +
    returns (DOM.NodeFilter)

  • +
  • handle () +
    Not Implemented
    +

  • +
  • isNull () +
    +
    returns (bool)

  • +
  • nextNode () +
    +
    returns (DOM.Node)

  • +
  • previousNode () +
    +
    returns (DOM.Node)

  • +
  • root () +
    +
    returns (DOM.Node)

  • +
  • whatToShow () +
    +
    returns (ulong)

  • +
+ + + diff --git a/doc/classref/khtml/DOM.NodeList.html b/doc/classref/khtml/DOM.NodeList.html new file mode 100644 index 0000000..3b089c8 --- /dev/null +++ b/doc/classref/khtml/DOM.NodeList.html @@ -0,0 +1,68 @@ + + + + + class DOM.NodeList + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.NodeList


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.NodeList
Inherits
+

methods

    +
  • NodeList () +
    +
    returns a NodeList instance

  • +
  • NodeList (other) +
    +
    returns a NodeList instance
    + +
    ArgumentTypeDefault
    otherDOM.NodeList
    +

  • +
  • NodeList (i) +
    Not Implemented
    +

  • +
  • handle () +
    Not Implemented
    +

  • +
  • isNull () +
    +
    returns (bool)

  • +
  • item (index) +
    +
    returns (DOM.Node)
    + +
    ArgumentTypeDefault
    indexulong
    +

  • +
  • length () +
    +
    returns (ulong)

  • +
+ + + diff --git a/doc/classref/khtml/DOM.Notation.html b/doc/classref/khtml/DOM.Notation.html new file mode 100644 index 0000000..6e333af --- /dev/null +++ b/doc/classref/khtml/DOM.Notation.html @@ -0,0 +1,65 @@ + + + + + class DOM.Notation + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.Notation


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.Notation
InheritsDOM.Node
+

methods

    +
  • Notation () +
    +
    returns a Notation instance

  • +
  • Notation (other) +
    +
    returns a Notation instance
    + +
    ArgumentTypeDefault
    otherDOM.Notation
    +

  • +
  • Notation (other) +
    +
    returns a Notation instance
    + +
    ArgumentTypeDefault
    otherDOM.Node
    +

  • +
  • Notation (i) +
    Not Implemented
    +

  • +
  • publicId () +
    +
    returns (DOM.DOMString)

  • +
  • systemId () +
    +
    returns (DOM.DOMString)

  • +
+ + + diff --git a/doc/classref/khtml/DOM.ProcessingInstruction.html b/doc/classref/khtml/DOM.ProcessingInstruction.html new file mode 100644 index 0000000..1ae2ff7 --- /dev/null +++ b/doc/classref/khtml/DOM.ProcessingInstruction.html @@ -0,0 +1,74 @@ + + + + + class DOM.ProcessingInstruction + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.ProcessingInstruction


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.ProcessingInstruction
InheritsDOM.Node
+

methods

    +
  • ProcessingInstruction () +
    +
    returns a ProcessingInstruction instance

  • +
  • ProcessingInstruction (other) +
    +
    returns a ProcessingInstruction instance
    + +
    ArgumentTypeDefault
    otherDOM.ProcessingInstruction
    +

  • +
  • ProcessingInstruction (other) +
    +
    returns a ProcessingInstruction instance
    + +
    ArgumentTypeDefault
    otherDOM.Node
    +

  • +
  • ProcessingInstruction (i) +
    Not Implemented
    +

  • +
  • data () +
    +
    returns (DOM.DOMString)

  • +
  • setData (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.DOMString
    +

  • +
  • sheet () +
    +
    returns (DOM.StyleSheet)

  • +
  • target () +
    +
    returns (DOM.DOMString)

  • +
+ + + diff --git a/doc/classref/khtml/DOM.RGBColor.html b/doc/classref/khtml/DOM.RGBColor.html new file mode 100644 index 0000000..c2c08db --- /dev/null +++ b/doc/classref/khtml/DOM.RGBColor.html @@ -0,0 +1,80 @@ + + + + + class DOM.RGBColor + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.RGBColor


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.RGBColor
Inherits
+

methods

    +
  • RGBColor () +
    +
    returns a RGBColor instance

  • +
  • RGBColor (c) +
    +
    returns a RGBColor instance
    + +
    ArgumentTypeDefault
    cQColor
    +

  • +
  • RGBColor (color) +
    + +
    returns a RGBColor instance
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    colorQRgb
    +

  • +
  • RGBColor (other) +
    +
    returns a RGBColor instance
    + +
    ArgumentTypeDefault
    otherDOM.RGBColor
    +

  • +
  • blue () +
    +
    returns (DOM.CSSPrimitiveValue)

  • +
  • color () +
    + +
    returns (QRgb)
    In versions KDE 3.1.0 and above only

  • +
  • color () +
    + +
    returns (QColor)
    In versions less than KDE 3.1.0 only

  • +
  • green () +
    +
    returns (DOM.CSSPrimitiveValue)

  • +
  • red () +
    +
    returns (DOM.CSSPrimitiveValue)

  • +
+ + + diff --git a/doc/classref/khtml/DOM.Range.html b/doc/classref/khtml/DOM.Range.html new file mode 100644 index 0000000..56d53f4 --- /dev/null +++ b/doc/classref/khtml/DOM.Range.html @@ -0,0 +1,204 @@ + + + + + class DOM.Range + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.Range


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.Range
Inherits
+

enums

    +
  • CompareHow = {START_TO_START, START_TO_END, END_TO_END, END_TO_START +}
+

methods

    +
  • Range () +
    +
    returns a Range instance

  • +
  • Range (rootContainer) +
    +
    returns a Range instance
    + +
    ArgumentTypeDefault
    rootContainerDOM.Document
    +

  • +
  • Range (other) +
    +
    returns a Range instance
    + +
    ArgumentTypeDefault
    otherDOM.Range
    +

  • +
  • Range (startContainer, startOffset, endContainer, endOffset) +
    +
    returns a Range instance
    + + + + +
    ArgumentTypeDefault
    startContainerDOM.Node
    startOffsetlong
    endContainerDOM.Node
    endOffsetlong
    +

  • +
  • Range (i) +
    Not Implemented
    +

  • +
  • boundaryPointsValid () +
    +
    returns (bool)

  • +
  • cloneContents () +
    +
    returns (DOM.DocumentFragment)

  • +
  • cloneRange () +
    +
    returns (DOM.Range)

  • +
  • collapse (toStart) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    toStartbool
    +

  • +
  • collapsed () +
    +
    returns (bool)

  • +
  • commonAncestorContainer () +
    +
    returns (DOM.Node)

  • +
  • compareBoundaryPoints (how, sourceRange) +
    +
    returns (short)
    + + +
    ArgumentTypeDefault
    howDOM.Range.CompareHow
    sourceRangeDOM.Range
    +

  • +
  • createContextualFragment (html) +
    + +
    returns (DOM.DocumentFragment)
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    htmlDOM.DOMString
    +

  • +
  • deleteContents () +
    +
    returns nothing

  • +
  • detach () +
    +
    returns nothing

  • +
  • endContainer () +
    +
    returns (DOM.Node)

  • +
  • endOffset () +
    +
    returns (long)

  • +
  • extractContents () +
    +
    returns (DOM.DocumentFragment)

  • +
  • handle () +
    Not Implemented
    +

  • +
  • insertNode (newNode) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    newNodeDOM.Node
    +

  • +
  • isDetached () +
    +
    returns (bool)

  • +
  • isNull () +
    +
    returns (bool)

  • +
  • selectNode (refNode) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    refNodeDOM.Node
    +

  • +
  • selectNodeContents (refNode) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    refNodeDOM.Node
    +

  • +
  • setEnd (refNode, offset) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    refNodeDOM.Node
    offsetlong
    +

  • +
  • setEndAfter (refNode) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    refNodeDOM.Node
    +

  • +
  • setEndBefore (refNode) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    refNodeDOM.Node
    +

  • +
  • setStart (refNode, offset) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    refNodeDOM.Node
    offsetlong
    +

  • +
  • setStartAfter (refNode) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    refNodeDOM.Node
    +

  • +
  • setStartBefore (refNode) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    refNodeDOM.Node
    +

  • +
  • startContainer () +
    +
    returns (DOM.Node)

  • +
  • startOffset () +
    +
    returns (long)

  • +
  • surroundContents (newParent) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    newParentDOM.Node
    +

  • +
  • toHTML () +
    +
    returns (DOM.DOMString)

  • +
  • toString () +
    +
    returns (DOM.DOMString)

  • +
+ + + diff --git a/doc/classref/khtml/DOM.RangeException.html b/doc/classref/khtml/DOM.RangeException.html new file mode 100644 index 0000000..a660b95 --- /dev/null +++ b/doc/classref/khtml/DOM.RangeException.html @@ -0,0 +1,60 @@ + + + + + class DOM.RangeException + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.RangeException


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.RangeException
Inherits
+

enums

    +
  • RangeExceptionCode = {BAD_BOUNDARYPOINTS_ERR, INVALID_NODE_TYPE_ERR, _EXCEPTION_OFFSET, _EXCEPTION_MAX +}
+

methods

    +
  • RangeException (_code) +
    +
    returns a RangeException instance
    + +
    ArgumentTypeDefault
    _codeushort
    +

  • +
  • RangeException (other) +
    +
    returns a RangeException instance
    + +
    ArgumentTypeDefault
    otherDOM.RangeException
    +

  • +
+

variables

+ + + diff --git a/doc/classref/khtml/DOM.Rect.html b/doc/classref/khtml/DOM.Rect.html new file mode 100644 index 0000000..b9149c7 --- /dev/null +++ b/doc/classref/khtml/DOM.Rect.html @@ -0,0 +1,71 @@ + + + + + class DOM.Rect + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.Rect


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.Rect
Inherits
+

methods

    +
  • Rect () +
    +
    returns a Rect instance

  • +
  • Rect (other) +
    +
    returns a Rect instance
    + +
    ArgumentTypeDefault
    otherDOM.Rect
    +

  • +
  • Rect (i) +
    Not Implemented
    +

  • +
  • bottom () +
    +
    returns (DOM.CSSPrimitiveValue)

  • +
  • handle () +
    Not Implemented
    +

  • +
  • isNull () +
    +
    returns (bool)

  • +
  • left () +
    +
    returns (DOM.CSSPrimitiveValue)

  • +
  • right () +
    +
    returns (DOM.CSSPrimitiveValue)

  • +
  • top () +
    +
    returns (DOM.CSSPrimitiveValue)

  • +
+ + + diff --git a/doc/classref/khtml/DOM.StyleSheet.html b/doc/classref/khtml/DOM.StyleSheet.html new file mode 100644 index 0000000..8a2317f --- /dev/null +++ b/doc/classref/khtml/DOM.StyleSheet.html @@ -0,0 +1,89 @@ + + + + + class DOM.StyleSheet + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.StyleSheet


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.StyleSheet
Inherits
+

methods

    +
  • StyleSheet () +
    +
    returns a StyleSheet instance

  • +
  • StyleSheet (other) +
    +
    returns a StyleSheet instance
    + +
    ArgumentTypeDefault
    otherDOM.StyleSheet
    +

  • +
  • StyleSheet (impl) +
    Not Implemented
    +

  • +
  • disabled () +
    +
    returns (bool)

  • +
  • handle () +
    Not Implemented
    +

  • +
  • href () +
    +
    returns (DOM.DOMString)

  • +
  • isCSSStyleSheet () +
    +
    returns (bool)

  • +
  • isNull () +
    +
    returns (bool)

  • +
  • media () +
    +
    returns (DOM.MediaList)

  • +
  • ownerNode () +
    +
    returns (DOM.Node)

  • +
  • parentStyleSheet () +
    +
    returns (DOM.StyleSheet)

  • +
  • setDisabled (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • title () +
    +
    returns (DOM.DOMString)

  • +
  • type () +
    +
    returns (DOM.DOMString)

  • +
+ + + diff --git a/doc/classref/khtml/DOM.StyleSheetList.html b/doc/classref/khtml/DOM.StyleSheetList.html new file mode 100644 index 0000000..4872d73 --- /dev/null +++ b/doc/classref/khtml/DOM.StyleSheetList.html @@ -0,0 +1,68 @@ + + + + + class DOM.StyleSheetList + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.StyleSheetList


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.StyleSheetList
Inherits
+

methods

    +
  • StyleSheetList () +
    +
    returns a StyleSheetList instance

  • +
  • StyleSheetList (other) +
    +
    returns a StyleSheetList instance
    + +
    ArgumentTypeDefault
    otherDOM.StyleSheetList
    +

  • +
  • StyleSheetList (impl) +
    Not Implemented
    +

  • +
  • handle () +
    Not Implemented
    +

  • +
  • isNull () +
    +
    returns (bool)

  • +
  • item (index) +
    +
    returns (DOM.StyleSheet)
    + +
    ArgumentTypeDefault
    indexulong
    +

  • +
  • length () +
    +
    returns (ulong)

  • +
+ + + diff --git a/doc/classref/khtml/DOM.Text.html b/doc/classref/khtml/DOM.Text.html new file mode 100644 index 0000000..6e74165 --- /dev/null +++ b/doc/classref/khtml/DOM.Text.html @@ -0,0 +1,65 @@ + + + + + class DOM.Text + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.Text


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.Text
InheritsDOM.CharacterData
+

methods

    +
  • Text () +
    +
    returns a Text instance

  • +
  • Text (other) +
    +
    returns a Text instance
    + +
    ArgumentTypeDefault
    otherDOM.Text
    +

  • +
  • Text (other) +
    +
    returns a Text instance
    + +
    ArgumentTypeDefault
    otherDOM.Node
    +

  • +
  • Text (i) +
    Not Implemented
    +

  • +
  • splitText (offset) +
    +
    returns (DOM.Text)
    + +
    ArgumentTypeDefault
    offsetulong
    +

  • +
+ + + diff --git a/doc/classref/khtml/DOM.TextEvent.html b/doc/classref/khtml/DOM.TextEvent.html new file mode 100644 index 0000000..6c16128 --- /dev/null +++ b/doc/classref/khtml/DOM.TextEvent.html @@ -0,0 +1,113 @@ + + + + + class DOM.TextEvent + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.TextEvent


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.TextEvent
InheritsDOM.UIEvent
+

methods

    +
  • TextEvent () +
    + +
    returns a TextEvent instance
    In versions KDE 3.1.0 and above only

  • +
  • TextEvent (other) +
    + +
    returns a TextEvent instance
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    otherDOM.TextEvent
    +

  • +
  • TextEvent (other) +
    + +
    returns a TextEvent instance
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    otherDOM.Event
    +

  • +
  • TextEvent (impl) +
    Not Implemented
    +

  • +
  • checkModifier (modifierArg) +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    modifierArgulong
    +

  • +
  • initModifier (modifierArg, valueArg) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + + +
    ArgumentTypeDefault
    modifierArgulong
    valueArgbool
    +

  • +
  • initTextEvent (typeArg, canBubbleArg, cancelableArg, viewArg, detailArg, outputStringArg, keyValArg, virtKeyValArg, inputGeneratedArg, numPadArg) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + + + + + + + + + + +
    ArgumentTypeDefault
    typeArgDOM.DOMString
    canBubbleArgbool
    cancelableArgbool
    viewArgDOM.AbstractView
    detailArglong
    outputStringArgDOM.DOMString
    keyValArgulong
    virtKeyValArgulong
    inputGeneratedArgbool
    numPadArgbool
    +

  • +
  • inputGenerated () +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above only

  • +
  • keyVal () +
    + +
    returns (ulong)
    In versions KDE 3.1.0 and above only

  • +
  • numPad () +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above only

  • +
  • outputString () +
    + +
    returns (DOM.DOMString)
    In versions KDE 3.1.0 and above only

  • +
  • virtKeyVal () +
    + +
    returns (ulong)
    In versions KDE 3.1.0 and above only

  • +
+ + + diff --git a/doc/classref/khtml/DOM.TreeWalker.html b/doc/classref/khtml/DOM.TreeWalker.html new file mode 100644 index 0000000..a1d6a96 --- /dev/null +++ b/doc/classref/khtml/DOM.TreeWalker.html @@ -0,0 +1,109 @@ + + + + + class DOM.TreeWalker + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.TreeWalker


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.TreeWalker
Inherits
+

methods

    +
  • TreeWalker () +
    +
    returns a TreeWalker instance

  • +
  • TreeWalker (other) +
    +
    returns a TreeWalker instance
    + +
    ArgumentTypeDefault
    otherDOM.TreeWalker
    +

  • +
  • TreeWalker (i) +
    Not Implemented
    +

  • +
  • currentNode () +
    +
    returns (DOM.Node)

  • +
  • expandEntityReferences () +
    +
    returns (bool)

  • +
  • filter () +
    +
    returns (DOM.NodeFilter)

  • +
  • firstChild () +
    +
    returns (DOM.Node)

  • +
  • handle () +
    Not Implemented
    +

  • +
  • isNull () +
    +
    returns (bool)

  • +
  • lastChild () +
    +
    returns (DOM.Node)

  • +
  • nextNode () +
    +
    returns (DOM.Node)

  • +
  • nextSibling () +
    +
    returns (DOM.Node)

  • +
  • parentNode () +
    +
    returns (DOM.Node)

  • +
  • previousNode () +
    +
    returns (DOM.Node)

  • +
  • previousSibling () +
    +
    returns (DOM.Node)

  • +
  • root () +
    +
    returns (DOM.Node)

  • +
  • setCurrentNode (_currentNode) +
    + +
    returns nothing
    In versions KDE 3.2.1 and above only
    + +
    ArgumentTypeDefault
    _currentNodeDOM.Node
    +

  • +
  • setCurrentNode (a0) +
    + +
    returns nothing
    In versions less than KDE 3.2.1 only
    + +
    ArgumentTypeDefault
    a0DOM.Node
    +

  • +
  • whatToShow () +
    +
    returns (ulong)

  • +
+ + + diff --git a/doc/classref/khtml/DOM.UIEvent.html b/doc/classref/khtml/DOM.UIEvent.html new file mode 100644 index 0000000..1605f5c --- /dev/null +++ b/doc/classref/khtml/DOM.UIEvent.html @@ -0,0 +1,103 @@ + + + + + class DOM.UIEvent + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM.UIEvent


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM.UIEvent
InheritsDOM.Event
+

methods

    +
  • UIEvent () +
    +
    returns a UIEvent instance

  • +
  • UIEvent (other) +
    +
    returns a UIEvent instance
    + +
    ArgumentTypeDefault
    otherDOM.UIEvent
    +

  • +
  • UIEvent (other) +
    +
    returns a UIEvent instance
    + +
    ArgumentTypeDefault
    otherDOM.Event
    +

  • +
  • UIEvent (impl) +
    Not Implemented
    +

  • +
  • charCode () +
    + +
    returns (int)
    In versions KDE 3.4.0 and above only

  • +
  • detail () +
    +
    returns (long)

  • +
  • initUIEvent (typeArg, canBubbleArg, cancelableArg, viewArg, detailArg) +
    +
    returns nothing
    + + + + + +
    ArgumentTypeDefault
    typeArgDOM.DOMString
    canBubbleArgbool
    cancelableArgbool
    viewArgDOM.AbstractView
    detailArglong
    +

  • +
  • keyCode () +
    + +
    returns (int)
    In versions KDE 3.2.0 and above only

  • +
  • layerX () +
    + +
    returns (int)
    In versions KDE 3.2.0 and above only

  • +
  • layerY () +
    + +
    returns (int)
    In versions KDE 3.2.0 and above only

  • +
  • pageX () +
    + +
    returns (int)
    In versions KDE 3.2.1 and above only

  • +
  • pageY () +
    + +
    returns (int)
    In versions KDE 3.2.1 and above only

  • +
  • view () +
    +
    returns (DOM.AbstractView)

  • +
  • which () +
    + +
    returns (int)
    In versions KDE 3.2.0 and above only

  • +
+ + + diff --git a/doc/classref/khtml/DOM.html b/doc/classref/khtml/DOM.html new file mode 100644 index 0000000..89a13c9 --- /dev/null +++ b/doc/classref/khtml/DOM.html @@ -0,0 +1,57 @@ + + + + + class DOM + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class DOM


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassDOM
Inherits
+

classes

+

methods

    +
  • strcasecmp (a, b) +
    +
    returns (bool)
    + + +
    ArgumentTypeDefault
    aDOM.DOMString
    bchar
    +

  • +
  • strcasecmp (a, b) +
    +
    returns (bool)
    + + +
    ArgumentTypeDefault
    aDOM.DOMString
    bchar
    +

  • +
+ + + diff --git a/doc/classref/khtml/KHTMLPart.html b/doc/classref/khtml/KHTMLPart.html new file mode 100644 index 0000000..e87fb0e --- /dev/null +++ b/doc/classref/khtml/KHTMLPart.html @@ -0,0 +1,807 @@ + + + + + class KHTMLPart + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KHTMLPart


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassKHTMLPart
InheritsKParts.ReadOnlyPart
+

enums

    +
  • CaretDisplayPolicy = {CaretVisible, CaretInvisible, CaretBlink +}
  • FindOptions = {FindLinksOnly, FindNoPopups +}
  • FormNotification = {NoNotification = 0, Before, Only, Unused = 255 +}
  • GUIProfile = {DefaultGUI, BrowserViewGUI +}
+

methods

    +
  • KHTMLPart (parentWidget = 0, widgetname = 0, parent = 0, name = 0, prof = DefaultGUI) +
    +
    returns a KHTMLPart instance
    + + + + + +
    ArgumentTypeDefault
    parentWidgetQWidget0
    widgetnamechar0
    parentQObject0
    namechar0
    profKHTMLPart.GUIProfileDefaultGUI
    +

  • +
  • KHTMLPart (view, parent = 0, name = 0, prof = DefaultGUI) +
    +
    returns a KHTMLPart instance
    + + + + +
    ArgumentTypeDefault
    viewKHTMLView
    parentQObject0
    namechar0
    profKHTMLPart.GUIProfileDefaultGUI
    +

  • +
  • activeNode () +
    +
    returns (DOM.Node)

  • +
  • autoloadImages () +
    +
    returns (bool)

  • +
  • autoloadImages (e) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    ebool
    +

  • +
  • backgroundURL () +
    +
    returns (KURL)

  • +
  • baseTarget () +
    +
    returns (QString)

  • +
  • baseURL () +
    +
    returns (KURL)

  • +
  • begin (url = KURL (), xOffset = 0, yOffset = 0) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    urlKURLKURL ()
    xOffsetint0
    yOffsetint0
    +

  • +
  • browserExtension () +
    +
    returns (KParts.BrowserExtension)

  • +
  • browserHostExtension () +
    +
    returns (KParts.BrowserHostExtension)

  • +
  • caretDisplayPolicyNonFocused () +
    + +
    returns (KHTMLPart.CaretDisplayPolicy)
    In versions KDE 3.2.0 and above only

  • +
  • caretPositionChanged (node, offset) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    nodeDOM.Node
    offsetlong
    +

  • +
  • closeURL () +
    +
    returns (bool)

  • +
  • completeURL (url) +
    +
    returns (KURL)
    + +
    ArgumentTypeDefault
    urlQString
    +

  • +
  • createJavaContext () +
    Not Implemented
    +

  • +
  • createPart (parentWidget, widgetName, parent, name, mimetype, serviceName, serviceTypes, params) +
    +
    returns (KParts.ReadOnlyPart)
    + + + + + + + + +
    ArgumentTypeDefault
    parentWidgetQWidget
    widgetNamechar
    parentQObject
    namechar
    mimetypeQString
    serviceNameQString
    serviceTypesQStringList
    paramsQStringList
    +

  • +
  • currentFrame () +
    +
    returns (KParts.ReadOnlyPart)

  • +
  • customEvent (event) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    eventQCustomEvent
    +

  • +
  • dcopObjectId () +
    +
    returns (QCString)

  • +
  • dndEnabled () +
    +
    returns (bool)

  • +
  • doCloseStream () +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only

  • +
  • doOpenStream (mimeType) +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    mimeTypeQString
    +

  • +
  • doWriteStream (data) +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    dataQByteArray
    +

  • +
  • docCreated () +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only

  • +
  • document () +
    +
    returns (DOM.Document)

  • +
  • documentSource () +
    +
    returns (QString)

  • +
  • enableJScript (e) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    ebool
    +

  • +
  • enableJava (e) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    ebool
    +

  • +
  • enableMetaRefresh (e) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    ebool
    +

  • +
  • enablePlugins (e) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    ebool
    +

  • +
  • encoding () +
    +
    returns (QString)

  • +
  • end () +
    +
    returns nothing

  • +
  • executeScript (n, script) +
    +
    returns (QVariant)
    + + +
    ArgumentTypeDefault
    nDOM.Node
    scriptQString
    +

  • +
  • executeScript (script) +
    + +
    returns (QVariant)
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    scriptQString
    +

  • +
  • executeScript (a0) +
    + +
    returns (QVariant)
    In versions less than KDE 3.2.0 only
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • findFrame (f) +
    +
    returns (KHTMLPart)
    + +
    ArgumentTypeDefault
    fQString
    +

  • +
  • findFrameParent (callingPart, f) +
    +
    returns (KHTMLPart) childFrame (khtml.ChildFrame)
    + + +
    ArgumentTypeDefault
    callingPartKParts.ReadOnlyPart
    fQString
    +

  • +
  • findFramePart (f) +
    +
    returns (KParts.ReadOnlyPart)
    + +
    ArgumentTypeDefault
    fQString
    +

  • +
  • findText () +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only

  • +
  • findText (str, options, parent = 0, findDialog = 0) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + + + + +
    ArgumentTypeDefault
    strQString
    optionslong
    parentQWidget0
    findDialogKFindDialog0
    +

  • +
  • findTextBegin () +
    +
    returns nothing

  • +
  • findTextNext (str, forward, caseSensitive, isRegExp) +
    +
    returns (bool)
    + + + + +
    ArgumentTypeDefault
    strQString
    forwardbool
    caseSensitivebool
    isRegExpbool
    +

  • +
  • findTextNext () +
    + +
    returns (bool)
    In versions KDE 3.3.0 and above only

  • +
  • findTextNext (reverse) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    reversebool
    +

  • +
  • formNotification () +
    + +
    returns (KHTMLPart.FormNotification)
    In versions KDE 3.2.0 and above only

  • +
  • formSubmitNotification (action, url, formData, target, contentType, boundary) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + + + + + + +
    ArgumentTypeDefault
    actionchar
    urlQString
    formDataQByteArray
    targetQString
    contentTypeQString
    boundaryQString
    +

  • +
  • frameExists (frameName) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    frameNameQString
    +

  • +
  • frameNames () +
    +
    returns (QStringList)

  • +
  • framejScript (framePart) +
    +
    returns (KJSProxy)
    + +
    ArgumentTypeDefault
    framePartKParts.ReadOnlyPart
    +

  • +
  • frames () +
    +
    returns (QPtrList)

  • +
  • gotoAnchor (name) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    nameQString
    +

  • +
  • guiActivateEvent (event) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    eventKParts.GUIActivateEvent
    +

  • +
  • hasSelection () +
    +
    returns (bool)

  • +
  • hide () +
    +
    returns nothing

  • +
  • htmlDocument () +
    +
    returns (DOM.HTMLDocument)

  • +
  • htmlError (errorCode, text, reqUrl) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    errorCodeint
    textQString
    reqUrlKURL
    +

  • +
  • inProgress () +
    +
    returns (bool)

  • +
  • isCaretMode () +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only

  • +
  • isEditable () +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only

  • +
  • isModified () +
    + +
    returns (bool)
    In versions KDE 3.3.0 and above only

  • +
  • jScriptEnabled () +
    +
    returns (bool)

  • +
  • jScriptInterpreter () +
    Not Implemented
    +

  • +
  • javaContext () +
    Not Implemented
    +

  • +
  • javaEnabled () +
    +
    returns (bool)

  • +
  • jsDefaultStatusBarText () +
    +
    returns (QString)

  • +
  • jsStatusBarText () +
    +
    returns (QString)

  • +
  • khtmlDrawContentsEvent (a0) +
    Not Implemented
    +

  • +
  • khtmlMouseDoubleClickEvent (a0) +
    Not Implemented
    +

  • +
  • khtmlMouseMoveEvent (event) +
    Not Implemented
    +

  • +
  • khtmlMousePressEvent (event) +
    Not Implemented
    +

  • +
  • khtmlMouseReleaseEvent (event) +
    Not Implemented
    +

  • +
  • lastModified () +
    +
    returns (QString)

  • +
  • liveConnectExtension (a0) +
    Not Implemented
    +

  • +
  • metaRefreshEnabled () +
    +
    returns (bool)

  • +
  • nextAnchor () +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only

  • +
  • nodeActivated (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.Node
    +

  • +
  • nodeUnderMouse () +
    +
    returns (DOM.Node)

  • +
  • nonSharedNodeUnderMouse () +
    +
    returns (DOM.Node)

  • +
  • onURL (url) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    urlQString
    +

  • +
  • onlyLocalReferences () +
    +
    returns (bool)

  • +
  • openFile () +
    +
    returns (bool)

  • +
  • openURL (url) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    urlKURL
    +

  • +
  • pageReferrer () +
    + +
    returns (QString)
    In versions KDE 3.1.3 and above only

  • +
  • paint (a0, a1, a2 = 0) +
    +
    returns a3 (bool)
    + + + +
    ArgumentTypeDefault
    a0QPainter
    a1QRect
    a2int0
    +

  • +
  • parentPart () +
    +
    returns (KHTMLPart)

  • +
  • partManager () +
    +
    returns (KParts.PartManager)

  • +
  • pluginPageQuestionAsked (mimetype) +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    mimetypeQString
    +

  • +
  • pluginsEnabled () +
    +
    returns (bool)

  • +
  • popupMenu (url, point) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    urlQString
    pointQPoint
    +

  • +
  • preloadScript (url, script) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    urlQString
    scriptQString
    +

  • +
  • preloadStyleSheet (url, stylesheet) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    urlQString
    stylesheetQString
    +

  • +
  • prevAnchor () +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only

  • +
  • referrer () +
    +
    returns (QString)

  • +
  • restoreState (stream) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    streamQDataStream
    +

  • +
  • restored () +
    +
    returns (bool)

  • +
  • saveState (stream) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    streamQDataStream
    +

  • +
  • scheduleRedirection (delay, url, lockHistory = 1) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    delayint
    urlQString
    lockHistorybool1
    +

  • +
  • selectAll () +
    +
    returns nothing

  • +
  • selectedText () +
    +
    returns (QString)

  • +
  • selectedTextAsHTML () +
    +
    returns (QString)

  • +
  • selection () +
    +
    returns (DOM.Range)

  • +
  • selection (startNode, endNode) +
    + +
    returns startOffset (long) endOffset (long)
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    startNodeDOM.Node
    endNodeDOM.Node
    +

  • +
  • selectionChanged () +
    +
    returns nothing

  • +
  • setActiveNode (node) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    nodeDOM.Node
    +

  • +
  • setAutoloadImages (enable) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    enablebool
    +

  • +
  • setCaretDisplayPolicyNonFocused (policy) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    policyKHTMLPart.CaretDisplayPolicy
    +

  • +
  • setCaretMode (enable) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    enablebool
    +

  • +
  • setCaretPosition (node, offset, extendSelection = 0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + + + +
    ArgumentTypeDefault
    nodeDOM.Node
    offsetlong
    extendSelectionbool0
    +

  • +
  • setCaretVisible (show) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    showbool
    +

  • +
  • setCharset (a0, a1 = 0) +
    +
    returns (bool)
    + + +
    ArgumentTypeDefault
    a0QString
    a1bool0
    +

  • +
  • setDNDEnabled (b) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    bbool
    +

  • +
  • setEditable (enable) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    enablebool
    +

  • +
  • setEncoding (name, override = 0) +
    +
    returns (bool)
    + + +
    ArgumentTypeDefault
    nameQString
    overridebool0
    +

  • +
  • setFixedFont (name) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    nameQString
    +

  • +
  • setFormNotification (fn) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    fnKHTMLPart.FormNotification
    +

  • +
  • setJSDefaultStatusBarText (text) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    textQString
    +

  • +
  • setJSStatusBarText (text) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    textQString
    +

  • +
  • setJScriptEnabled (enable) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    enablebool
    +

  • +
  • setJavaEnabled (enable) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    enablebool
    +

  • +
  • setMetaRefreshEnabled (enable) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    enablebool
    +

  • +
  • setOnlyLocalReferences (enable) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    enablebool
    +

  • +
  • setPageSecurity (sec) +
    Not Implemented
    +

  • +
  • setPluginPageQuestionAsked (mimetype) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    mimetypeQString
    +

  • +
  • setPluginsEnabled (enable) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    enablebool
    +

  • +
  • setSelection (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0DOM.Range
    +

  • +
  • setStandardFont (name) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    nameQString
    +

  • +
  • setStatusBarText (a0, a1) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    a0QString
    a1int
    +

  • +
  • setStatusMessagesEnabled (enable) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    enablebool
    +

  • +
  • setSuppressedPopupIndicator (enable) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    enablebool
    +

  • +
  • setSuppressedPopupIndicator (enable, originPart) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    enablebool
    originPartKHTMLPart
    +

  • +
  • setURLCursor (c) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    cQCursor
    +

  • +
  • setUserStyleSheet (url) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    urlKURL
    +

  • +
  • setUserStyleSheet (styleSheet) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    styleSheetQString
    +

  • +
  • setZoomFactor (percent) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    percentint
    +

  • +
  • settings () +
    +
    returns (KHTMLSettings)

  • +
  • show () +
    +
    returns nothing

  • +
  • showError (job) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    jobKIO.Job
    +

  • +
  • statusMessagesEnabled () +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only

  • +
  • stopAnimations () +
    +
    returns nothing

  • +
  • submitFormProxy (action, url, formData, target, contentType = QString .null, boundary = QString .null) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + + + + + + +
    ArgumentTypeDefault
    actionchar
    urlQString
    formDataQByteArray
    targetQString
    contentTypeQStringQString .null
    boundaryQStringQString .null
    +

  • +
  • toplevelURL () +
    + +
    returns (KURL)
    In versions KDE 3.2.0 and above only

  • +
  • urlCursor () +
    +
    returns (QCursor)

  • +
  • urlSelected (url, button, state, _target, args = KParts .URLArgs ()) +
    +
    returns nothing
    + + + + + +
    ArgumentTypeDefault
    urlQString
    buttonint
    stateint
    _targetQString
    argsKParts.URLArgsKParts .URLArgs ()
    +

  • +
  • view () +
    +
    returns (KHTMLView)

  • +
  • write (str, len = -1) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    strchar
    lenint-1
    +

  • +
  • write (str) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    strQString
    +

  • +
  • zoomFactor () +
    +
    returns (int)

  • +
+ + + diff --git a/doc/classref/khtml/KHTMLSettings.html b/doc/classref/khtml/KHTMLSettings.html new file mode 100644 index 0000000..731c17b --- /dev/null +++ b/doc/classref/khtml/KHTMLSettings.html @@ -0,0 +1,318 @@ + + + + + class KHTMLSettings + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KHTMLSettings


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassKHTMLSettings
Inherits
+

enums

    +
  • KAnimationAdvice = {KAnimationDisabled, KAnimationLoopOnce, KAnimationEnabled +}
  • KJSWindowFocusPolicy = {KJSWindowFocusAllow, KJSWindowFocusIgnore +}
  • KJSWindowMovePolicy = {KJSWindowMoveAllow, KJSWindowMoveIgnore +}
  • KJSWindowOpenPolicy = {KJSWindowOpenAllow, KJSWindowOpenAsk, KJSWindowOpenDeny, KJSWindowOpenSmart +}
  • KJSWindowResizePolicy = {KJSWindowResizeAllow, KJSWindowResizeIgnore +}
  • KJSWindowStatusPolicy = {KJSWindowStatusAllow, KJSWindowStatusIgnore +}
  • KJavaScriptAdvice = {KJavaScriptDunno, KJavaScriptAccept, KJavaScriptReject +}
+

methods

    +
  • KHTMLSettings () +
    +
    returns a KHTMLSettings instance

  • +
  • KHTMLSettings (other) +
    +
    returns a KHTMLSettings instance
    + +
    ArgumentTypeDefault
    otherKHTMLSettings
    +

  • +
  • accessKeysEnabled () +
    + +
    returns (bool)
    In versions KDE 3.5.0 and above only

  • +
  • addAdFilter (url) +
    + +
    returns nothing
    In versions KDE 3.5.0 and above only
    + +
    ArgumentTypeDefault
    urlQString
    +

  • +
  • adviceToStr (_advice) +
    + +
    returns (char)
    static
    + +
    ArgumentTypeDefault
    _adviceKHTMLSettings.KJavaScriptAdvice
    +

  • +
  • allowTabulation () +
    + +
    returns (bool)
    In versions KDE 3.4.0 and above only

  • +
  • autoLoadImages () +
    +
    returns (bool)

  • +
  • autoSpellCheck () +
    + +
    returns (bool)
    In versions KDE 3.4.0 and above only

  • +
  • availableFamilies () +
    + +
    returns (QString)
    static

  • +
  • baseColor () +
    + +
    returns (QColor)
    In versions KDE 3.4.0 and above only

  • +
  • changeCursor () +
    +
    returns (bool)

  • +
  • cursiveFontName () +
    +
    returns (QString)

  • +
  • encoding () +
    +
    returns (QString)

  • +
  • fallbackAccessKeysAssignments () +
    + +
    returns (QValueList>)
    In versions KDE 3.5.0 and above only

  • +
  • fantasyFontName () +
    +
    returns (QString)

  • +
  • fixedFontName () +
    +
    returns (QString)

  • +
  • followSystemColors () +
    + +
    returns (bool)
    In versions KDE 3.4.0 and above only

  • +
  • hoverLink () +
    +
    returns (bool)

  • +
  • init () +
    +
    returns nothing

  • +
  • init (config, reset = 1) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    configKConfig
    resetbool1
    +

  • +
  • isAdFilterEnabled () +
    + +
    returns (bool)
    In versions KDE 3.5.0 and above only

  • +
  • isAdFiltered (url) +
    + +
    returns (bool)
    In versions KDE 3.5.0 and above only
    + +
    ArgumentTypeDefault
    urlQString
    +

  • +
  • isAutoDelayedActionsEnabled () +
    + +
    returns (bool)
    In versions KDE 3.1.1 and above only

  • +
  • isBackRightClickEnabled () +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above only

  • +
  • isFormCompletionEnabled () +
    +
    returns (bool)

  • +
  • isHideAdsEnabled () +
    + +
    returns (bool)
    In versions KDE 3.5.0 and above only

  • +
  • isJavaEnabled (hostname = QString .null) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    hostnameQStringQString .null
    +

  • +
  • isJavaScriptDebugEnabled (hostname = QString .null) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    hostnameQStringQString .null
    +

  • +
  • isJavaScriptEnabled (hostname = QString .null) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    hostnameQStringQString .null
    +

  • +
  • isJavaScriptErrorReportingEnabled (hostname = QString .null) +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    hostnameQStringQString .null
    +

  • +
  • isOpenMiddleClickEnabled () +
    + +
    returns (bool)
    In versions KDE 3.3.0 and above only

  • +
  • isPluginsEnabled (hostname = QString .null) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    hostnameQStringQString .null
    +

  • +
  • jsErrorsEnabled () +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only

  • +
  • jsPopupBlockerPassivePopup () +
    + +
    returns (bool)
    In versions KDE 3.5.0 and above only

  • +
  • linkColor () +
    +
    returns (QColor)

  • +
  • maxFormCompletionItems () +
    +
    returns (int)

  • +
  • mediumFontSize () +
    +
    returns (int)

  • +
  • minFontSize () +
    +
    returns (int)

  • +
  • readDomainSettings (config, reset, global, pd_settings) +
    Not Implemented
    +

  • +
  • sansSerifFontName () +
    +
    returns (QString)

  • +
  • serifFontName () +
    +
    returns (QString)

  • +
  • setFixedFontName (n) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    nQString
    +

  • +
  • setJSErrorsEnabled (enabled) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    enabledbool
    +

  • +
  • setJSPopupBlockerPassivePopup (enabled) +
    + +
    returns nothing
    In versions KDE 3.5.0 and above only
    + +
    ArgumentTypeDefault
    enabledbool
    +

  • +
  • setStdFontName (n) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    nQString
    +

  • +
  • settingsToCSS () +
    +
    returns (QString)

  • +
  • showAnimations () +
    +
    returns (KHTMLSettings.KAnimationAdvice)

  • +
  • splitDomainAdvice (configStr, domain) +
    Not Implemented
    +

  • +
  • stdFontName () +
    +
    returns (QString)

  • +
  • strToAdvice (_str) +
    + +
    returns (KJavaScriptAdvice)
    static
    + +
    ArgumentTypeDefault
    _strQString
    +

  • +
  • textColor () +
    +
    returns (QColor)

  • +
  • underlineLink () +
    +
    returns (bool)

  • +
  • unfinishedImageFrame () +
    + +
    returns (bool)
    In versions KDE 3.4.0 and above only

  • +
  • userStyleSheet () +
    +
    returns (QString)

  • +
  • vLinkColor () +
    +
    returns (QColor)

  • +
  • windowFocusPolicy (hostname = QString .null) +
    + +
    returns (KHTMLSettings.KJSWindowFocusPolicy)
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    hostnameQStringQString .null
    +

  • +
  • windowMovePolicy (hostname = QString .null) +
    + +
    returns (KHTMLSettings.KJSWindowMovePolicy)
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    hostnameQStringQString .null
    +

  • +
  • windowOpenPolicy (hostname = QString .null) +
    + +
    returns (KHTMLSettings.KJSWindowOpenPolicy)
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    hostnameQStringQString .null
    +

  • +
  • windowResizePolicy (hostname = QString .null) +
    + +
    returns (KHTMLSettings.KJSWindowResizePolicy)
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    hostnameQStringQString .null
    +

  • +
  • windowStatusPolicy (hostname = QString .null) +
    + +
    returns (KHTMLSettings.KJSWindowStatusPolicy)
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    hostnameQStringQString .null
    +

  • +
+ + + diff --git a/doc/classref/khtml/KHTMLView.html b/doc/classref/khtml/KHTMLView.html new file mode 100644 index 0000000..62af9fa --- /dev/null +++ b/doc/classref/khtml/KHTMLView.html @@ -0,0 +1,287 @@ + + + + + class KHTMLView + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KHTMLView


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + + + + + + + + +
Modulekhtml
ClassKHTMLView
InheritsQScrollView
+

methods

    +
  • KHTMLView (part, parent, name = 0) +
    +
    returns a KHTMLView instance
    + + + +
    ArgumentTypeDefault
    partKHTMLPart
    parentQWidget
    namechar0
    +

  • +
  • clear () +
    +
    returns nothing

  • +
  • cleared () +
    +
    returns nothing

  • +
  • closeEvent (a0) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    a0QCloseEvent
    +

  • +
  • contentsContextMenuEvent (_ce) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    _ceQContextMenuEvent
    +

  • +
  • displayAccessKeys () +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only

  • +
  • doAutoScroll () +
    +
    returns nothing

  • +
  • dragEnterEvent (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QDragEnterEvent
    +

  • +
  • drawContents (p, clipx, clipy, clipw, cliph) +
    +
    returns nothing
    + + + + + +
    ArgumentTypeDefault
    pQPainter
    clipxint
    clipyint
    clipwint
    cliphint
    +

  • +
  • drawContents (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QPainter
    +

  • +
  • dropEvent (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QDropEvent
    +

  • +
  • eventFilter (a0, a1) +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    a0QObject
    a1QEvent
    +

  • +
  • findAheadActive (a0) +
    + +
    returns nothing
    In versions KDE 3.5.0 and above only
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • finishedLayout () +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only

  • +
  • focusInEvent (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0QFocusEvent
    +

  • +
  • focusNextPrevChild (next) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    nextbool
    +

  • +
  • focusOutEvent (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QFocusEvent
    +

  • +
  • frameWidth () +
    +
    returns (int)

  • +
  • hideAccessKeys () +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only

  • +
  • hideEvent (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QHideEvent
    +

  • +
  • keyPressEvent (_ke) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    _keQKeyEvent
    +

  • +
  • keyReleaseEvent (_ke) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    _keQKeyEvent
    +

  • +
  • layout () +
    +
    returns nothing

  • +
  • marginHeight () +
    +
    returns (int)

  • +
  • marginWidth () +
    +
    returns (int)

  • +
  • part () +
    +
    returns (KHTMLPart)

  • +
  • print_ () +
    + +
    returns nothing
    Renamed: was ' print +' in C++

  • +
  • print_ (quick) +
    + + +
    returns nothing
    Renamed: was ' print' in C++
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    quickbool
    +

  • +
  • repaintAccessKeys () +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only

  • +
  • resizeEvent (event) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    eventQResizeEvent
    +

  • +
  • setHScrollBarMode (mode) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    modeScrollBarMode
    +

  • +
  • setMarginHeight (y) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    yint
    +

  • +
  • setMarginWidth (x) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    xint
    +

  • +
  • setVScrollBarMode (mode) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    modeScrollBarMode
    +

  • +
  • showEvent (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QShowEvent
    +

  • +
  • slotPaletteChanged () +
    +
    returns nothing

  • +
  • slotScrollBarMoved () +
    +
    returns nothing

  • +
  • timerEvent (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QTimerEvent
    +

  • +
  • viewportMouseDoubleClickEvent (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QMouseEvent
    +

  • +
  • viewportMouseMoveEvent (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QMouseEvent
    +

  • +
  • viewportMousePressEvent (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QMouseEvent
    +

  • +
  • viewportMouseReleaseEvent (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QMouseEvent
    +

  • +
  • viewportResizeEvent (a0) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    a0QResizeEvent
    +

  • +
  • viewportWheelEvent (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QWheelEvent
    +

  • +
  • zoomView (a0) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
+ + + diff --git a/doc/classref/khtml/index.html b/doc/classref/khtml/index.html new file mode 100644 index 0000000..601c9c1 --- /dev/null +++ b/doc/classref/khtml/index.html @@ -0,0 +1,153 @@ + + + + + module khtml + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

khtml Class Index


+
+ + + + +
Table of contents
Modules
All Classes
+
+ khtml Global and Namespace members

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
DOM - DOM.HTMLAreaElement
DOM
DOM.AbstractView
DOM.Attr
DOM.CDATASection
DOM.CSSCharsetRule
DOM.CSSException
DOM.CSSFontFaceRule
DOM.CSSImportRule
DOM.CSSMediaRule
DOM.CSSPageRule
DOM.CSSPrimitiveValue
DOM.CSSRule
DOM.CSSRuleList
DOM.CSSStyleDeclaration
DOM.CSSStyleRule
DOM.CSSStyleSheet
DOM.CSSUnknownRule
DOM.CSSValue
DOM.CSSValueList
DOM.CharacterData
DOM.Comment
DOM.Counter
DOM.CustomNodeFilter
DOM.DOMException
DOM.DOMImplementation
DOM.DOMString
DOM.Document
DOM.DocumentFragment
DOM.DocumentStyle
DOM.DocumentType
DOM.DomShared
DOM.Element
DOM.Entity
DOM.EntityReference
DOM.Event
DOM.EventException
DOM.EventListener
DOM.HTMLAnchorElement
DOM.HTMLAppletElement
DOM.HTMLAreaElement
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
DOM.HTMLBRElement - DOM.HTMLParagraphElement
DOM.HTMLBRElement
DOM.HTMLBaseElement
DOM.HTMLBaseFontElement
DOM.HTMLBlockquoteElement
DOM.HTMLBodyElement
DOM.HTMLButtonElement
DOM.HTMLCollection
DOM.HTMLDListElement
DOM.HTMLDirectoryElement
DOM.HTMLDivElement
DOM.HTMLDocument
DOM.HTMLElement
DOM.HTMLFieldSetElement
DOM.HTMLFontElement
DOM.HTMLFormElement
DOM.HTMLFrameElement
DOM.HTMLFrameSetElement
DOM.HTMLHRElement
DOM.HTMLHeadElement
DOM.HTMLHeadingElement
DOM.HTMLHtmlElement
DOM.HTMLIFrameElement
DOM.HTMLImageElement
DOM.HTMLInputElement
DOM.HTMLIsIndexElement
DOM.HTMLLIElement
DOM.HTMLLabelElement
DOM.HTMLLayerElement
DOM.HTMLLegendElement
DOM.HTMLLinkElement
DOM.HTMLMapElement
DOM.HTMLMenuElement
DOM.HTMLMetaElement
DOM.HTMLModElement
DOM.HTMLOListElement
DOM.HTMLObjectElement
DOM.HTMLOptGroupElement
DOM.HTMLOptionElement
DOM.HTMLParagraphElement
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
DOM.HTMLParamElement - KHTMLView
DOM.HTMLParamElement
DOM.HTMLPreElement
DOM.HTMLQuoteElement
DOM.HTMLScriptElement
DOM.HTMLSelectElement
DOM.HTMLStyleElement
DOM.HTMLTableCaptionElement
DOM.HTMLTableCellElement
DOM.HTMLTableColElement
DOM.HTMLTableElement
DOM.HTMLTableRowElement
DOM.HTMLTableSectionElement
DOM.HTMLTextAreaElement
DOM.HTMLTitleElement
DOM.HTMLUListElement
DOM.LinkStyle
DOM.MediaList
DOM.MouseEvent
DOM.MutationEvent
DOM.NamedNodeMap
DOM.Node
DOM.NodeFilter
DOM.NodeIterator
DOM.NodeList
DOM.Notation
DOM.ProcessingInstruction
DOM.RGBColor
DOM.Range
DOM.RangeException
DOM.Rect
DOM.StyleSheet
DOM.StyleSheetList
DOM.Text
DOM.TextEvent
DOM.TreeWalker
DOM.UIEvent
KHTMLPart
KHTMLSettings
KHTMLView
+ + diff --git a/doc/classref/khtml/khtml-globals.html b/doc/classref/khtml/khtml-globals.html new file mode 100644 index 0000000..817eb1e --- /dev/null +++ b/doc/classref/khtml/khtml-globals.html @@ -0,0 +1,28 @@ + + + + + khtml globals + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

khtml Globals


+
+ + + + + +
Table of contents
Modules
khtml Classes
All Classes
+
+ + + diff --git a/doc/classref/kio/KACL.html b/doc/classref/kio/KACL.html new file mode 100644 index 0000000..7188e62 --- /dev/null +++ b/doc/classref/kio/KACL.html @@ -0,0 +1,209 @@ + + + + + class KACL + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KACL


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKACL
Inherits
+

methods

    +
  • KACL (aclString) +
    + +
    returns a KACL instance
    In versions KDE 3.5.0 and above only
    + +
    ArgumentTypeDefault
    aclStringQString
    +

  • +
  • KACL (rhs) +
    + +
    returns a KACL instance
    In versions KDE 3.5.0 and above only
    + +
    ArgumentTypeDefault
    rhsKACL
    +

  • +
  • KACL (basicPermissions) +
    + +
    returns a KACL instance
    In versions KDE 3.5.0 and above only
    + +
    ArgumentTypeDefault
    basicPermissionsmode_t
    +

  • +
  • KACL () +
    + +
    returns a KACL instance
    In versions KDE 3.5.0 and above only

  • +
  • allGroupPermissions () +
    + +
    returns (ACLGroupPermissionsList)
    In versions KDE 3.5.0 and above only

  • +
  • allUserPermissions () +
    + +
    returns (ACLUserPermissionsList)
    In versions KDE 3.5.0 and above only

  • +
  • asString () +
    + +
    returns (QString)
    In versions KDE 3.5.0 and above only

  • +
  • basePermissions () +
    + +
    returns (mode_t)
    In versions KDE 3.5.0 and above only

  • +
  • isExtended () +
    + +
    returns (bool)
    In versions KDE 3.5.0 and above only

  • +
  • isValid () +
    + +
    returns (bool)
    In versions KDE 3.5.0 and above only

  • +
  • maskPermissions () +
    + +
    returns (ushort) exists (bool)
    In versions KDE 3.5.0 and above only

  • +
  • namedGroupPermissions (name) +
    + +
    returns (ushort) exists (bool)
    In versions KDE 3.5.0 and above only
    + +
    ArgumentTypeDefault
    nameQString
    +

  • +
  • namedUserPermissions (name) +
    + +
    returns (ushort) exists (bool)
    In versions KDE 3.5.0 and above only
    + +
    ArgumentTypeDefault
    nameQString
    +

  • +
  • othersPermissions () +
    + +
    returns (ushort)
    In versions KDE 3.5.0 and above only

  • +
  • ownerPermissions () +
    + +
    returns (ushort)
    In versions KDE 3.5.0 and above only

  • +
  • owningGroupPermissions () +
    + +
    returns (ushort)
    In versions KDE 3.5.0 and above only

  • +
  • setACL (aclStr) +
    + +
    returns (bool)
    In versions KDE 3.5.0 and above only
    + +
    ArgumentTypeDefault
    aclStrQString
    +

  • +
  • setAllGroupPermissions (a0) +
    + +
    returns (bool)
    In versions KDE 3.5.0 and above only
    + +
    ArgumentTypeDefault
    a0ACLGroupPermissionsList
    +

  • +
  • setAllUserPermissions (list) +
    + +
    returns (bool)
    In versions KDE 3.5.0 and above only
    + +
    ArgumentTypeDefault
    listACLUserPermissionsList
    +

  • +
  • setMaskPermissions (a0) +
    + +
    returns (bool)
    In versions KDE 3.5.0 and above only
    + +
    ArgumentTypeDefault
    a0ushort
    +

  • +
  • setNamedGroupPermissions (name, a0) +
    + +
    returns (bool)
    In versions KDE 3.5.0 and above only
    + + +
    ArgumentTypeDefault
    nameQString
    a0ushort
    +

  • +
  • setNamedUserPermissions (name, a0) +
    + +
    returns (bool)
    In versions KDE 3.5.0 and above only
    + + +
    ArgumentTypeDefault
    nameQString
    a0ushort
    +

  • +
  • setOthersPermissions (a0) +
    + +
    returns (bool)
    In versions KDE 3.5.0 and above only
    + +
    ArgumentTypeDefault
    a0ushort
    +

  • +
  • setOwnerPermissions (a0) +
    + +
    returns (bool)
    In versions KDE 3.5.0 and above only
    + +
    ArgumentTypeDefault
    a0ushort
    +

  • +
  • setOwningGroupPermissions (a0) +
    + +
    returns (bool)
    In versions KDE 3.5.0 and above only
    + +
    ArgumentTypeDefault
    a0ushort
    +

  • +
  • virtual_hook (id, data) +
    + +
    returns nothing
    In versions KDE 3.5.0 and above only
    + + +
    ArgumentTypeDefault
    idint
    datavoid
    +

  • +
+

operators

    +
  • operator != (a0) +
    + +
    returns (bool)
    In versions KDE 3.5.0 and above only
    + +
    ArgumentTypeDefault
    a0KACL
    +

  • +
  • operator == (a0) +
    + +
    returns (bool)
    In versions KDE 3.5.0 and above only
    + +
    ArgumentTypeDefault
    a0KACL
    +

  • +
+ + + diff --git a/doc/classref/kio/KAr.html b/doc/classref/kio/KAr.html new file mode 100644 index 0000000..ee776e4 --- /dev/null +++ b/doc/classref/kio/KAr.html @@ -0,0 +1,104 @@ + + + + + class KAr + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KAr


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKAr
InheritsKArchive
+

methods

    +
  • KAr (filename) +
    + +
    returns a KAr instance
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    filenameQString
    +

  • +
  • KAr (dev) +
    + +
    returns a KAr instance
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    devQIODevice
    +

  • +
  • closeArchive () +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above only

  • +
  • doneWriting (size) +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    sizeuint
    +

  • +
  • fileName () +
    + +
    returns (QString)
    In versions KDE 3.1.0 and above only

  • +
  • openArchive (mode) +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    modeint
    +

  • +
  • prepareWriting (name, user, group, size) +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above only
    + + + + +
    ArgumentTypeDefault
    nameQString
    userQString
    groupQString
    sizeuint
    +

  • +
  • virtual_hook (id, data) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + + +
    ArgumentTypeDefault
    idint
    datavoid
    +

  • +
  • writeDir (name, user, group) +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above only
    + + + +
    ArgumentTypeDefault
    nameQString
    userQString
    groupQString
    +

  • +
+ + + diff --git a/doc/classref/kio/KArchive.html b/doc/classref/kio/KArchive.html new file mode 100644 index 0000000..99669d7 --- /dev/null +++ b/doc/classref/kio/KArchive.html @@ -0,0 +1,288 @@ + + + + + class KArchive + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KArchive


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKArchive (abstract)
Inherits
+

methods

    +
  • KArchive (dev) +
    +
    returns a KArchive instance
    + +
    ArgumentTypeDefault
    devQIODevice
    +

  • +
  • addLocalDirectory (path, destName) +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    pathQString
    destNameQString
    +

  • +
  • addLocalFile (fileName, destName) +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    fileNameQString
    destNameQString
    +

  • +
  • close () +
    +
    returns nothing

  • +
  • closeArchive () = 0 +
    + +
    returns (bool)
    pure virtual

  • +
  • closeSucceeded () +
    + +
    returns (bool)
    In versions KDE 3.5.0 and above only

  • +
  • device () +
    +
    returns (QIODevice)

  • +
  • directory () +
    +
    returns (KArchiveDirectory)

  • +
  • doneWriting (size) = 0 +
    + +
    returns (bool)
    pure virtual
    + +
    ArgumentTypeDefault
    sizeuint
    +

  • +
  • findOrCreate (path) +
    +
    returns (KArchiveDirectory)
    + +
    ArgumentTypeDefault
    pathQString
    +

  • +
  • isOpened () +
    +
    returns (bool)

  • +
  • mode () +
    +
    returns (int)

  • +
  • open (mode) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    modeint
    +

  • +
  • openArchive (mode) = 0 +
    + +
    returns (bool)
    pure virtual
    + +
    ArgumentTypeDefault
    modeint
    +

  • +
  • prepareWriting (name, user, group, size) = 0 +
    + +
    returns (bool)
    pure virtual
    + + + + +
    ArgumentTypeDefault
    nameQString
    userQString
    groupQString
    sizeuint
    +

  • +
  • prepareWriting (name, user, group, size, perm, atime, mtime, ctime) +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    + + + + + + + + +
    ArgumentTypeDefault
    nameQString
    userQString
    groupQString
    sizeuint
    permmode_t
    atimetime_t
    mtimetime_t
    ctimetime_t
    +

  • +
  • prepareWriting_impl (name, user, group, size, perm, atime, mtime, ctime) +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    + + + + + + + + +
    ArgumentTypeDefault
    nameQString
    userQString
    groupQString
    sizeuint
    permmode_t
    atimetime_t
    mtimetime_t
    ctimetime_t
    +

  • +
  • rootDir () +
    +
    returns (KArchiveDirectory)

  • +
  • setDevice (dev) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    devQIODevice
    +

  • +
  • setRootDir (rootDir) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    rootDirKArchiveDirectory
    +

  • +
  • writeData (data, size) +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    datachar
    sizeuint
    +

  • +
  • writeData_impl (data, size) +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    datachar
    sizeuint
    +

  • +
  • writeDir (name, user, group) = 0 +
    + +
    returns (bool)
    pure virtual
    + + + +
    ArgumentTypeDefault
    nameQString
    userQString
    groupQString
    +

  • +
  • writeDir (name, user, group, perm, atime, mtime, ctime) +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    + + + + + + + +
    ArgumentTypeDefault
    nameQString
    userQString
    groupQString
    permmode_t
    atimetime_t
    mtimetime_t
    ctimetime_t
    +

  • +
  • writeDir_impl (name, user, group, perm, atime, mtime, ctime) +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    + + + + + + + +
    ArgumentTypeDefault
    nameQString
    userQString
    groupQString
    permmode_t
    atimetime_t
    mtimetime_t
    ctimetime_t
    +

  • +
  • writeFile (name, user, group, size, data) +
    +
    returns (bool)
    + + + + + +
    ArgumentTypeDefault
    nameQString
    userQString
    groupQString
    sizeuint
    datachar
    +

  • +
  • writeFile (name, user, group, size, perm, atime, mtime, ctime, data) +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    + + + + + + + + + +
    ArgumentTypeDefault
    nameQString
    userQString
    groupQString
    sizeuint
    permmode_t
    atimetime_t
    mtimetime_t
    ctimetime_t
    datachar
    +

  • +
  • writeFile_impl (name, user, group, size, perm, atime, mtime, ctime, data) +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    + + + + + + + + + +
    ArgumentTypeDefault
    nameQString
    userQString
    groupQString
    sizeuint
    permmode_t
    atimetime_t
    mtimetime_t
    ctimetime_t
    datachar
    +

  • +
  • writeSymLink (name, target, user, group, perm, atime, mtime, ctime) +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    + + + + + + + + +
    ArgumentTypeDefault
    nameQString
    targetQString
    userQString
    groupQString
    permmode_t
    atimetime_t
    mtimetime_t
    ctimetime_t
    +

  • +
  • writeSymLink_impl (name, target, user, group, perm, atime, mtime, ctime) +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    + + + + + + + + +
    ArgumentTypeDefault
    nameQString
    targetQString
    userQString
    groupQString
    permmode_t
    atimetime_t
    mtimetime_t
    ctimetime_t
    +

  • +
  • ~KArchive () +
    + +
    returns nothing
    In versions less than KDE 3.1.0 only

  • +
+ + + diff --git a/doc/classref/kio/KArchiveDirectory.html b/doc/classref/kio/KArchiveDirectory.html new file mode 100644 index 0000000..fe68485 --- /dev/null +++ b/doc/classref/kio/KArchiveDirectory.html @@ -0,0 +1,79 @@ + + + + + class KArchiveDirectory + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KArchiveDirectory


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKArchiveDirectory
InheritsKArchiveEntry
+

methods

    +
  • KArchiveDirectory (archive, name, access, date, user, group, symlink) +
    +
    returns a KArchiveDirectory instance
    + + + + + + + +
    ArgumentTypeDefault
    archiveKArchive
    nameQString
    accessint
    dateint
    userQString
    groupQString
    symlinkQString
    +

  • +
  • addEntry (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KArchiveEntry
    +

  • +
  • copyTo (dest, recursive = 1) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + + +
    ArgumentTypeDefault
    destQString
    recursivebool1
    +

  • +
  • entries () +
    +
    returns (QStringList)

  • +
  • entry (name) +
    +
    returns (KArchiveEntry)
    + +
    ArgumentTypeDefault
    nameQString
    +

  • +
  • isDirectory () +
    +
    returns (bool)

  • +
+ + + diff --git a/doc/classref/kio/KArchiveEntry.html b/doc/classref/kio/KArchiveEntry.html new file mode 100644 index 0000000..d4a40e4 --- /dev/null +++ b/doc/classref/kio/KArchiveEntry.html @@ -0,0 +1,83 @@ + + + + + class KArchiveEntry + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KArchiveEntry


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKArchiveEntry
Inherits
+

methods

    +
  • KArchiveEntry (archive, name, access, date, user, group, symlink) +
    +
    returns a KArchiveEntry instance
    + + + + + + + +
    ArgumentTypeDefault
    archiveKArchive
    nameQString
    accessint
    dateint
    userQString
    groupQString
    symlinkQString
    +

  • +
  • archive () +
    +
    returns (KArchive)

  • +
  • date () +
    +
    returns (int)

  • +
  • datetime () +
    +
    returns (QDateTime)

  • +
  • group () +
    +
    returns (QString)

  • +
  • isDirectory () +
    +
    returns (bool)

  • +
  • isFile () +
    +
    returns (bool)

  • +
  • name () +
    +
    returns (QString)

  • +
  • permissions () +
    +
    returns (mode_t)

  • +
  • symlink () +
    +
    returns (QString)

  • +
  • user () +
    +
    returns (QString)

  • +
+ + + diff --git a/doc/classref/kio/KArchiveFile.html b/doc/classref/kio/KArchiveFile.html new file mode 100644 index 0000000..6fcca35 --- /dev/null +++ b/doc/classref/kio/KArchiveFile.html @@ -0,0 +1,84 @@ + + + + + class KArchiveFile + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KArchiveFile


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKArchiveFile
InheritsKArchiveEntry
+

methods

    +
  • KArchiveFile (archive, name, access, date, user, group, symlink, pos, size) +
    +
    returns a KArchiveFile instance
    + + + + + + + + + +
    ArgumentTypeDefault
    archiveKArchive
    nameQString
    accessint
    dateint
    userQString
    groupQString
    symlinkQString
    posint
    sizeint
    +

  • +
  • copyTo (dest) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    destQString
    +

  • +
  • data () +
    +
    returns (QByteArray)

  • +
  • device () +
    +
    returns (QIODevice)

  • +
  • isFile () +
    +
    returns (bool)

  • +
  • position () +
    +
    returns (int)

  • +
  • setSize (s) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    sint
    +

  • +
  • size () +
    +
    returns (int)

  • +
+ + + diff --git a/doc/classref/kio/KAutoMount.html b/doc/classref/kio/KAutoMount.html new file mode 100644 index 0000000..ad7d650 --- /dev/null +++ b/doc/classref/kio/KAutoMount.html @@ -0,0 +1,67 @@ + + + + + class KAutoMount + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KAutoMount


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKAutoMount
InheritsQObject
+

methods

    +
  • KAutoMount (readonly, format, device, mountpoint, desktopFile, show_filemanager_window = 1) +
    +
    returns a KAutoMount instance
    + + + + + + +
    ArgumentTypeDefault
    readonlybool
    formatQString
    deviceQString
    mountpointQString
    desktopFileQString
    show_filemanager_windowbool1
    +

  • +
  • error () +
    +
    returns nothing

  • +
  • finished () +
    +
    returns nothing

  • +
  • slotResult (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KIO.Job
    +

  • +
  • ~KAutoMount () +
    +
    returns nothing

  • +
+ + + diff --git a/doc/classref/kio/KAutoUnmount.html b/doc/classref/kio/KAutoUnmount.html new file mode 100644 index 0000000..6c2d594 --- /dev/null +++ b/doc/classref/kio/KAutoUnmount.html @@ -0,0 +1,63 @@ + + + + + class KAutoUnmount + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KAutoUnmount


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKAutoUnmount
InheritsQObject
+

methods

    +
  • KAutoUnmount (mountpoint, desktopFile) +
    +
    returns a KAutoUnmount instance
    + + +
    ArgumentTypeDefault
    mountpointQString
    desktopFileQString
    +

  • +
  • error () +
    +
    returns nothing

  • +
  • finished () +
    +
    returns nothing

  • +
  • slotResult (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KIO.Job
    +

  • +
  • ~KAutoUnmount () +
    +
    returns nothing

  • +
+ + + diff --git a/doc/classref/kio/KDCOPServiceStarter.html b/doc/classref/kio/KDCOPServiceStarter.html new file mode 100644 index 0000000..da9e6b6 --- /dev/null +++ b/doc/classref/kio/KDCOPServiceStarter.html @@ -0,0 +1,78 @@ + + + + + class KDCOPServiceStarter + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KDCOPServiceStarter


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKDCOPServiceStarter
Inherits
+

methods

    +
  • KDCOPServiceStarter () +
    + +
    returns a KDCOPServiceStarter instance
    In versions KDE 3.2.0 and above only

  • +
  • findServiceFor (serviceType, constraint = QString .null, preferences = QString .null, error = 0, dcopService = 0, flags = 0) +
    + +
    returns (int)
    In versions KDE 3.2.0 and above only
    + + + + + + +
    ArgumentTypeDefault
    serviceTypeQString
    constraintQStringQString .null
    preferencesQStringQString .null
    errorQString0
    dcopServiceQCString0
    flagsint0
    +

  • +
  • self () +
    + + +
    returns (KDCOPServiceStarter)
    In versions KDE 3.2.0 and above only
    static

  • +
  • startServiceFor (serviceType, constraint = QString .null, preferences = QString .null, error = 0, dcopService = 0, flags = 0) +
    + +
    returns (int)
    In versions KDE 3.2.0 and above only
    + + + + + + +
    ArgumentTypeDefault
    serviceTypeQString
    constraintQStringQString .null
    preferencesQStringQString .null
    errorQString0
    dcopServiceQCString0
    flagsint0
    +

  • +
  • ~KDCOPServiceStarter () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
+ + + diff --git a/doc/classref/kio/KDEDesktopMimeType.Service.html b/doc/classref/kio/KDEDesktopMimeType.Service.html new file mode 100644 index 0000000..ece5ff0 --- /dev/null +++ b/doc/classref/kio/KDEDesktopMimeType.Service.html @@ -0,0 +1,56 @@ + + + + + class KDEDesktopMimeType.Service + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KDEDesktopMimeType.Service


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKDEDesktopMimeType.Service
Inherits
+

methods

    +
  • Service () +
    +
    returns a Service instance

  • +
  • isEmpty () +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only

  • +
+

variables

  • +variables + + + + + +
    VariableType
    m_displaybool
    m_strExecQString
    m_strIconQString
    m_strNameQString
    m_typeKDEDesktopMimeType::ServiceType
+ + + diff --git a/doc/classref/kio/KDEDesktopMimeType.html b/doc/classref/kio/KDEDesktopMimeType.html new file mode 100644 index 0000000..cbb4b70 --- /dev/null +++ b/doc/classref/kio/KDEDesktopMimeType.html @@ -0,0 +1,196 @@ + + + + + class KDEDesktopMimeType + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KDEDesktopMimeType


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKDEDesktopMimeType
InheritsKMimeType
+

enums

    +
  • ServiceType = {ST_MOUNT, ST_UNMOUNT, ST_USER_DEFINED +}
+

methods

    +
  • KDEDesktopMimeType (config) +
    +
    returns a KDEDesktopMimeType instance
    + +
    ArgumentTypeDefault
    configKDesktopFile
    +

  • +
  • KDEDesktopMimeType (_str, offset) +
    +
    returns a KDEDesktopMimeType instance
    + + +
    ArgumentTypeDefault
    _strQDataStream
    offsetint
    +

  • +
  • builtinServices (_url) +
    + +
    returns (QValueList)
    static
    + +
    ArgumentTypeDefault
    _urlKURL
    +

  • +
  • comment (_url, _is_local) +
    +
    returns (QString)
    + + +
    ArgumentTypeDefault
    _urlQString
    _is_localbool
    +

  • +
  • comment (_url, _is_local) +
    +
    returns (QString)
    + + +
    ArgumentTypeDefault
    _urlKURL
    _is_localbool
    +

  • +
  • executeService (path, service) +
    + +
    returns nothing
    static
    + + +
    ArgumentTypeDefault
    pathQString
    serviceKDEDesktopMimeType.Service
    +

  • +
  • executeService (urls, service) +
    + +
    returns nothing
    static
    + + +
    ArgumentTypeDefault
    urlsKURL.List
    serviceKDEDesktopMimeType.Service
    +

  • +
  • icon (_url, _is_local) +
    +
    returns (QString)
    + + +
    ArgumentTypeDefault
    _urlQString
    _is_localbool
    +

  • +
  • icon (_url, _is_local) +
    +
    returns (QString)
    + + +
    ArgumentTypeDefault
    _urlKURL
    _is_localbool
    +

  • +
  • pixmap (_url, _group, _force_size = 0, _state = 0, _path = 0) +
    +
    returns (QPixmap)
    + + + + + +
    ArgumentTypeDefault
    _urlKURL
    _groupKIcon.Group
    _force_sizeint0
    _stateint0
    _pathQString0
    +

  • +
  • pixmap (group, force_size, state, path) +
    +
    returns (QPixmap)
    + + + + +
    ArgumentTypeDefault
    groupKIcon.Group
    force_sizeint
    stateint
    pathQString
    +

  • +
  • run (_url, _is_local) +
    + +
    returns (pid_t)
    static
    + + +
    ArgumentTypeDefault
    _urlKURL
    _is_localbool
    +

  • +
  • runApplication (_url, _serviceFile) +
    + +
    returns (pid_t)
    static
    + + +
    ArgumentTypeDefault
    _urlKURL
    _serviceFileQString
    +

  • +
  • runFSDevice (_url, cfg) +
    + +
    returns (pid_t)
    static
    + + +
    ArgumentTypeDefault
    _urlKURL
    cfgKSimpleConfig
    +

  • +
  • runLink (_url, cfg) +
    + +
    returns (pid_t)
    static
    + + +
    ArgumentTypeDefault
    _urlKURL
    cfgKSimpleConfig
    +

  • +
  • runMimeType (_url, cfg) +
    + +
    returns (pid_t)
    static
    + + +
    ArgumentTypeDefault
    _urlKURL
    cfgKSimpleConfig
    +

  • +
  • userDefinedServices (path, bLocalFiles) +
    + +
    returns (QValueList)
    static
    + + +
    ArgumentTypeDefault
    pathQString
    bLocalFilesbool
    +

  • +
  • userDefinedServices (path, config, bLocalFiles) +
    + + +
    returns (QValueList)
    In versions KDE 3.4.0 and above only
    static
    + + + +
    ArgumentTypeDefault
    pathQString
    configKConfig
    bLocalFilesbool
    +

  • +
  • userDefinedServices (path, config, bLocalFiles, file_list) +
    + + +
    returns (QValueList)
    In versions KDE 3.5.0 and above only
    static
    + + + + +
    ArgumentTypeDefault
    pathQString
    configKConfig
    bLocalFilesbool
    file_listKURL.List
    +

  • +
+ + + diff --git a/doc/classref/kio/KDataTool.html b/doc/classref/kio/KDataTool.html new file mode 100644 index 0000000..5dc43dd --- /dev/null +++ b/doc/classref/kio/KDataTool.html @@ -0,0 +1,67 @@ + + + + + class KDataTool + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KDataTool


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKDataTool (abstract)
InheritsQObject
+

methods

    +
  • KDataTool (parent = 0, name = 0) +
    +
    returns a KDataTool instance
    + + +
    ArgumentTypeDefault
    parentQObject0
    namechar0
    +

  • +
  • instance () +
    +
    returns (KInstance)

  • +
  • run (command, data, datatype, mimetype) = 0 +
    + +
    returns (bool)
    pure virtual
    + + + + +
    ArgumentTypeDefault
    commandQString
    datavoid
    datatypeQString
    mimetypeQString
    +

  • +
  • setInstance (instance) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    instanceKInstance
    +

  • +
+ + + diff --git a/doc/classref/kio/KDataToolAction.html b/doc/classref/kio/KDataToolAction.html new file mode 100644 index 0000000..e290a26 --- /dev/null +++ b/doc/classref/kio/KDataToolAction.html @@ -0,0 +1,70 @@ + + + + + class KDataToolAction + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KDataToolAction


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKDataToolAction
InheritsKAction
+

methods

    +
  • KDataToolAction (text, info, command, parent = 0, name = 0) +
    +
    returns a KDataToolAction instance
    + + + + + +
    ArgumentTypeDefault
    textQString
    infoKDataToolInfo
    commandQString
    parentQObject0
    namechar0
    +

  • +
  • dataToolActionList (tools, receiver, slot) +
    + +
    returns (QPtrList)
    static
    + + + +
    ArgumentTypeDefault
    toolsQValueList
    receiverQObject
    slotchar
    +

  • +
  • slotActivated () +
    +
    returns nothing

  • +
  • toolActivated (info, command) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    infoKDataToolInfo
    commandQString
    +

  • +
+ + + diff --git a/doc/classref/kio/KDataToolInfo.html b/doc/classref/kio/KDataToolInfo.html new file mode 100644 index 0000000..d4cc91d --- /dev/null +++ b/doc/classref/kio/KDataToolInfo.html @@ -0,0 +1,106 @@ + + + + + class KDataToolInfo + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KDataToolInfo


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKDataToolInfo
Inherits
+

methods

    +
  • KDataToolInfo () +
    +
    returns a KDataToolInfo instance

  • +
  • KDataToolInfo (service, instance) +
    +
    returns a KDataToolInfo instance
    + + +
    ArgumentTypeDefault
    serviceKService.Ptr
    instanceKInstance
    +

  • +
  • KDataToolInfo (info) +
    +
    returns a KDataToolInfo instance
    + +
    ArgumentTypeDefault
    infoKDataToolInfo
    +

  • +
  • commands () +
    +
    returns (QStringList)

  • +
  • createTool (parent = 0, name = 0) +
    +
    returns (KDataTool)
    + + +
    ArgumentTypeDefault
    parentQObject0
    namechar0
    +

  • +
  • dataType () +
    +
    returns (QString)

  • +
  • icon () +
    +
    returns (QPixmap)

  • +
  • iconName () +
    +
    returns (QString)

  • +
  • instance () +
    +
    returns (KInstance)

  • +
  • isReadOnly () +
    +
    returns (bool)

  • +
  • isValid () +
    +
    returns (bool)

  • +
  • mimeTypes () +
    +
    returns (QStringList)

  • +
  • miniIcon () +
    +
    returns (QPixmap)

  • +
  • query (datatype, mimetype, instance) +
    + +
    returns (QValueList)
    static
    + + + +
    ArgumentTypeDefault
    datatypeQString
    mimetypeQString
    instanceKInstance
    +

  • +
  • service () +
    +
    returns (KService.Ptr)

  • +
  • userCommands () +
    +
    returns (QStringList)

  • +
+ + + diff --git a/doc/classref/kio/KDirLister.html b/doc/classref/kio/KDirLister.html new file mode 100644 index 0000000..9945d0e --- /dev/null +++ b/doc/classref/kio/KDirLister.html @@ -0,0 +1,356 @@ + + + + + class KDirLister + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KDirLister


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKDirLister
InheritsQObject
+

enums

    +
  • WhichItems = {AllItems, FilteredItems +}
+

methods

    +
  • KDirLister (_delayedMimeTypes = 0) +
    +
    returns a KDirLister instance
    + +
    ArgumentTypeDefault
    _delayedMimeTypesbool0
    +

  • +
  • autoErrorHandlingEnabled () +
    +
    returns (bool)

  • +
  • autoUpdate () +
    +
    returns (bool)

  • +
  • canceled () +
    +
    returns nothing

  • +
  • canceled (_url) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    _urlKURL
    +

  • +
  • clear () +
    +
    returns nothing

  • +
  • clear (_url) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    _urlKURL
    +

  • +
  • clearMimeFilter () +
    +
    returns nothing

  • +
  • completed () +
    +
    returns nothing

  • +
  • completed (_url) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    _urlKURL
    +

  • +
  • deleteItem (_fileItem) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    _fileItemKFileItem
    +

  • +
  • dirOnlyMode () +
    +
    returns (bool)

  • +
  • directories () +
    + +
    returns (KURL.List)
    In versions KDE 3.4.0 and above only

  • +
  • doMimeExcludeFilter (mimeExclude, filters) +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above only
    + + +
    ArgumentTypeDefault
    mimeExcludeQString
    filtersQStringList
    +

  • +
  • doMimeFilter (mime, filters) +
    +
    returns (bool)
    + + +
    ArgumentTypeDefault
    mimeQString
    filtersQStringList
    +

  • +
  • doNameFilter (name, filters) +
    +
    returns (bool)
    + + +
    ArgumentTypeDefault
    nameQString
    filtersQPtrList
    +

  • +
  • emitChanges () +
    +
    returns nothing

  • +
  • find (_url) +
    +
    returns (KFileItem)
    + +
    ArgumentTypeDefault
    _urlKURL
    +

  • +
  • findByName (name) +
    +
    returns (KFileItem)
    + +
    ArgumentTypeDefault
    nameQString
    +

  • +
  • findByURL (_url) +
    +
    returns (KFileItem)
    + +
    ArgumentTypeDefault
    _urlKURL
    +

  • +
  • handleError (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KIO.Job
    +

  • +
  • infoMessage (msg) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    msgQString
    +

  • +
  • isFinished () +
    +
    returns (bool)

  • +
  • items (which = FilteredItems) +
    + +
    returns (KFileItemList)
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    whichKDirLister.WhichItemsFilteredItems
    +

  • +
  • itemsFilteredByMime (items) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    itemsKFileItemList
    +

  • +
  • itemsForDir (dir, which = FilteredItems) +
    + +
    returns (KFileItemList)
    In versions KDE 3.1.0 and above only
    + + +
    ArgumentTypeDefault
    dirKURL
    whichKDirLister.WhichItemsFilteredItems
    +

  • +
  • mainWindow () +
    + +
    returns (QWidget)
    In versions KDE 3.1.0 and above only

  • +
  • matchesFilter (name) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    nameQString
    +

  • +
  • matchesFilter (a0) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    a0KFileItem
    +

  • +
  • matchesMimeFilter (mime) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    mimeQString
    +

  • +
  • matchesMimeFilter (a0) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    a0KFileItem
    +

  • +
  • mimeFilters () +
    +
    returns (QStringList)

  • +
  • nameFilter () +
    +
    returns (QString)

  • +
  • newItems (items) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    itemsKFileItemList
    +

  • +
  • openURL (_url, _keep = 0, _reload = 0) +
    +
    returns (bool)
    + + + +
    ArgumentTypeDefault
    _urlKURL
    _keepbool0
    _reloadbool0
    +

  • +
  • percent (percent) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    percentint
    +

  • +
  • processedSize (size) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    sizeKIO.filesize_t
    +

  • +
  • redirection (_url) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    _urlKURL
    +

  • +
  • redirection (oldUrl, newUrl) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    oldUrlKURL
    newUrlKURL
    +

  • +
  • refreshItems (items) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    itemsKFileItemList
    +

  • +
  • rootItem () +
    +
    returns (KFileItem)

  • +
  • setAutoErrorHandlingEnabled (enable, parent) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    enablebool
    parentQWidget
    +

  • +
  • setAutoUpdate (enable) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    enablebool
    +

  • +
  • setDirOnlyMode (dirsOnly) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    dirsOnlybool
    +

  • +
  • setMainWindow (window) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    windowQWidget
    +

  • +
  • setMimeExcludeFilter (mimeList) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    mimeListQStringList
    +

  • +
  • setMimeFilter (mimeList) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    mimeListQStringList
    +

  • +
  • setNameFilter (filter) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    filterQString
    +

  • +
  • setShowingDotFiles (_showDotFiles) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    _showDotFilesbool
    +

  • +
  • showingDotFiles () +
    +
    returns (bool)

  • +
  • speed (bytes_per_second) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    bytes_per_secondint
    +

  • +
  • started (_url) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    _urlKURL
    +

  • +
  • stop () +
    +
    returns nothing

  • +
  • stop (_url) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    _urlKURL
    +

  • +
  • totalSize (size) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    sizeKIO.filesize_t
    +

  • +
  • updateDirectory (_dir) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    _dirKURL
    +

  • +
  • url () +
    +
    returns (KURL)

  • +
  • validURL (a0) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    a0KURL
    +

  • +
+ + + diff --git a/doc/classref/kio/KDirNotify.html b/doc/classref/kio/KDirNotify.html new file mode 100644 index 0000000..b40fd0d --- /dev/null +++ b/doc/classref/kio/KDirNotify.html @@ -0,0 +1,93 @@ + + + + + class KDirNotify + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KDirNotify


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKDirNotify (abstract)
InheritsDCOPObject
+

methods

    +
  • FileRenamed (src, dst) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    srcKURL
    dstKURL
    +

  • +
  • FilesAdded (directory) = 0 +
    + +
    returns nothing
    pure virtual
    + +
    ArgumentTypeDefault
    directoryKURL
    +

  • +
  • FilesChanged (fileList) = 0 +
    + +
    returns nothing
    pure virtual
    + +
    ArgumentTypeDefault
    fileListKURL.List
    +

  • +
  • FilesRemoved (fileList) = 0 +
    + +
    returns nothing
    pure virtual
    + +
    ArgumentTypeDefault
    fileListKURL.List
    +

  • +
  • KDirNotify () +
    +
    returns a KDirNotify instance

  • +
  • functions () +
    + +
    returns (QCStringList)
    In versions KDE 3.1.4 and above only

  • +
  • interfaces () +
    + +
    returns (QCStringList)
    In versions KDE 3.1.4 and above only

  • +
  • process (fun, data, replyType, replyData) +
    + +
    returns (bool)
    In versions KDE 3.1.4 and above only
    + + + + +
    ArgumentTypeDefault
    funQCString
    dataQByteArray
    replyTypeQCString
    replyDataQByteArray
    +

  • +
  • ~KDirNotify () +
    +
    returns nothing

  • +
+ + + diff --git a/doc/classref/kio/KDirWatch.html b/doc/classref/kio/KDirWatch.html new file mode 100644 index 0000000..cd9f244 --- /dev/null +++ b/doc/classref/kio/KDirWatch.html @@ -0,0 +1,168 @@ + + + + + class KDirWatch + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KDirWatch


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKDirWatch
InheritsQObject
+

enums

    +
  • Method = {FAM, DNotify, Stat, INotify +}
  • Method = {FAM, DNotify, Stat +}
+

methods

    +
  • KDirWatch (parent = 0, name = 0) +
    +
    returns a KDirWatch instance
    + + +
    ArgumentTypeDefault
    parentQObject0
    namechar0
    +

  • +
  • addDir (path, watchFiles = 0, recursive = 0) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    pathQString
    watchFilesbool0
    recursivebool0
    +

  • +
  • addFile (file) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    fileQString
    +

  • +
  • contains (path) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    pathQString
    +

  • +
  • created (path) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    pathQString
    +

  • +
  • ctime (path) +
    +
    returns (QDateTime)
    + +
    ArgumentTypeDefault
    pathQString
    +

  • +
  • deleted (path) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    pathQString
    +

  • +
  • dirty (path) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    pathQString
    +

  • +
  • exists () +
    + + +
    returns (bool)
    In versions KDE 3.1.0 and above only
    static

  • +
  • internalMethod () +
    + +
    returns (KDirWatch.Method)
    In versions KDE 3.2.0 and above only

  • +
  • isStopped () +
    +
    returns (bool)

  • +
  • removeDir (path) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    pathQString
    +

  • +
  • removeFile (file) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    fileQString
    +

  • +
  • restartDirScan (path) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    pathQString
    +

  • +
  • self () +
    + +
    returns (KDirWatch)
    static

  • +
  • setCreated (path) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    pathQString
    +

  • +
  • setDeleted (path) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    pathQString
    +

  • +
  • setDirty (path) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    pathQString
    +

  • +
  • startScan (notify = 0, skippedToo = 0) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    notifybool0
    skippedToobool0
    +

  • +
  • statistics () +
    + +
    returns nothing
    static

  • +
  • stopDirScan (path) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    pathQString
    +

  • +
  • stopScan () +
    +
    returns nothing

  • +
+ + + diff --git a/doc/classref/kio/KEMailSettings.html b/doc/classref/kio/KEMailSettings.html new file mode 100644 index 0000000..0cf19bd --- /dev/null +++ b/doc/classref/kio/KEMailSettings.html @@ -0,0 +1,88 @@ + + + + + class KEMailSettings + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KEMailSettings


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKEMailSettings
Inherits
+

enums

    +
  • Extension = {POP3, SMTP, OTHER +}
  • Setting = {ClientProgram, ClientTerminal, RealName, EmailAddress, ReplyToAddress, Organization, OutServer, OutServerLogin, OutServerPass, OutServerType, OutServerCommand, OutServerTLS, InServer, InServerLogin, InServerPass, InServerType, InServerMBXType, InServerTLS +}
+

methods

    +
  • KEMailSettings () +
    +
    returns a KEMailSettings instance

  • +
  • currentProfileName () +
    +
    returns (QString)

  • +
  • defaultProfileName () +
    +
    returns (QString)

  • +
  • getExtendedSetting (a0, a1) +
    Not Implemented
    +

  • +
  • getSetting (s) +
    +
    returns (QString)
    + +
    ArgumentTypeDefault
    sKEMailSettings.Setting
    +

  • +
  • profiles () +
    +
    returns (QStringList)

  • +
  • setDefault (def) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    defQString
    +

  • +
  • setExtendedSetting (a0, a1, a2) +
    Not Implemented
    +

  • +
  • setProfile (s) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    sQString
    +

  • +
  • setSetting (s, v) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    sKEMailSettings.Setting
    vQString
    +

  • +
+ + + diff --git a/doc/classref/kio/KExecMimeType.html b/doc/classref/kio/KExecMimeType.html new file mode 100644 index 0000000..a2c3cb6 --- /dev/null +++ b/doc/classref/kio/KExecMimeType.html @@ -0,0 +1,54 @@ + + + + + class KExecMimeType + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KExecMimeType


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKExecMimeType
InheritsKMimeType
+

methods

    +
  • KExecMimeType (config) +
    +
    returns a KExecMimeType instance
    + +
    ArgumentTypeDefault
    configKDesktopFile
    +

  • +
  • KExecMimeType (_str, offset) +
    +
    returns a KExecMimeType instance
    + + +
    ArgumentTypeDefault
    _strQDataStream
    offsetint
    +

  • +
+ + + diff --git a/doc/classref/kio/KFileFilter.html b/doc/classref/kio/KFileFilter.html new file mode 100644 index 0000000..df1e7eb --- /dev/null +++ b/doc/classref/kio/KFileFilter.html @@ -0,0 +1,48 @@ + + + + + class KFileFilter + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KFileFilter


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKFileFilter (abstract)
Inherits
+

methods

    +
  • passesFilter (item) = 0 +
    + +
    returns (bool)
    pure virtual
    + +
    ArgumentTypeDefault
    itemKFileItem
    +

  • +
+ + + diff --git a/doc/classref/kio/KFileItem.html b/doc/classref/kio/KFileItem.html new file mode 100644 index 0000000..d12aa2a --- /dev/null +++ b/doc/classref/kio/KFileItem.html @@ -0,0 +1,326 @@ + + + + + class KFileItem + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KFileItem


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKFileItem
Inherits
+

enums

    +
  • (anonymous) = {Unknown +}
+

methods

    +
  • ACL () +
    + +
    returns (KACL)
    In versions KDE 3.5.0 and above only

  • +
  • KFileItem (_entry, _url, _determineMimeTypeOnDemand = 0, _urlIsDirectory = 0) +
    +
    returns a KFileItem instance
    + + + + +
    ArgumentTypeDefault
    _entryKIO.UDSEntry
    _urlKURL
    _determineMimeTypeOnDemandbool0
    _urlIsDirectorybool0
    +

  • +
  • KFileItem (_mode, _permissions, _url, _determineMimeTypeOnDemand = 0) +
    +
    returns a KFileItem instance
    + + + + +
    ArgumentTypeDefault
    _modemode_t
    _permissionsmode_t
    _urlKURL
    _determineMimeTypeOnDemandbool0
    +

  • +
  • KFileItem (url, mimeType, mode) +
    +
    returns a KFileItem instance
    + + + +
    ArgumentTypeDefault
    urlKURL
    mimeTypeQString
    modemode_t
    +

  • +
  • KFileItem (item) +
    +
    returns a KFileItem instance
    + +
    ArgumentTypeDefault
    itemKFileItem
    +

  • +
  • acceptsDrops () +
    +
    returns (bool)

  • +
  • assign (item) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    itemKFileItem
    +

  • +
  • cmp (item) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    itemKFileItem
    +

  • +
  • defaultACL () +
    + +
    returns (KACL)
    In versions KDE 3.5.0 and above only

  • +
  • determineMimeType () +
    +
    returns (KMimeType.Ptr)

  • +
  • entry () +
    +
    returns (KIO.UDSEntry)

  • +
  • extraData (key) +
    Not Implemented
    +

  • +
  • getStatusBarInfo () +
    +
    returns (QString)

  • +
  • getToolTipText (maxcount = 6) +
    +
    returns (QString)
    + +
    ArgumentTypeDefault
    maxcountint6
    +

  • +
  • group () +
    +
    returns (QString)

  • +
  • hasExtendedACL () +
    + +
    returns (bool)
    In versions KDE 3.5.0 and above only

  • +
  • iconName () +
    +
    returns (QString)

  • +
  • init (_determineMimeTypeOnDemand) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    _determineMimeTypeOnDemandbool
    +

  • +
  • isDir () +
    +
    returns (bool)

  • +
  • isFile () +
    +
    returns (bool)

  • +
  • isHidden () +
    + +
    returns (bool)
    In versions KDE 3.3.0 and above only

  • +
  • isLink () +
    +
    returns (bool)

  • +
  • isLocalFile () +
    +
    returns (bool)

  • +
  • isMarked () +
    +
    returns (bool)

  • +
  • isMimeTypeKnown () +
    +
    returns (bool)

  • +
  • isReadable () +
    +
    returns (bool)

  • +
  • isWritable () +
    + +
    returns (bool)
    In versions KDE 3.4.0 and above only

  • +
  • linkDest () +
    +
    returns (QString)

  • +
  • localPath () +
    + +
    returns (QString)
    In versions KDE 3.4.0 and above only

  • +
  • mark () +
    +
    returns nothing

  • +
  • metaInfo (autoget = 1, what = KFileMetaInfo .Fastest) +
    +
    returns (KFileMetaInfo)
    + + +
    ArgumentTypeDefault
    autogetbool1
    whatintKFileMetaInfo .Fastest
    +

  • +
  • mimeComment () +
    +
    returns (QString)

  • +
  • mimeTypePtr () +
    +
    returns (KMimeType.Ptr)

  • +
  • mimetype () +
    +
    returns (QString)

  • +
  • mode () +
    +
    returns (mode_t)

  • +
  • mostLocalURL () +
    + +
    returns (KURL) local (bool)
    In versions KDE 3.4.0 and above only

  • +
  • name (lowerCase = 0) +
    +
    returns (QString)
    + +
    ArgumentTypeDefault
    lowerCasebool0
    +

  • +
  • overlays () +
    +
    returns (int)

  • +
  • parsePermissions (perm) +
    +
    returns (QString)
    + +
    ArgumentTypeDefault
    permmode_t
    +

  • +
  • permissions () +
    +
    returns (mode_t)

  • +
  • permissionsString () +
    +
    returns (QString)

  • +
  • pixmap (_size, _state = 0) +
    +
    returns (QPixmap)
    + + +
    ArgumentTypeDefault
    _sizeint
    _stateint0
    +

  • +
  • readUDSEntry (_urlIsDirectory) +
    + +
    returns nothing
    In versions KDE 3.4.3 and above only
    + +
    ArgumentTypeDefault
    _urlIsDirectorybool
    +

  • +
  • refresh () +
    +
    returns nothing

  • +
  • refreshMimeType () +
    +
    returns nothing

  • +
  • removeExtraData (key) +
    Not Implemented
    +

  • +
  • run () +
    +
    returns nothing

  • +
  • setExtraData (key, value) +
    Not Implemented
    +

  • +
  • setFileMode (m) +
    + +
    returns nothing
    In versions KDE 3.5.0 and above only
    + +
    ArgumentTypeDefault
    mmode_t
    +

  • +
  • setMetaInfo (info) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    infoKFileMetaInfo
    +

  • +
  • setMimeType (mimetype) +
    + +
    returns nothing
    In versions KDE 3.5.0 and above only
    + +
    ArgumentTypeDefault
    mimetypeQString
    +

  • +
  • setName (name) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    nameQString
    +

  • +
  • setUDSEntry (entry, url, determineMimeTypeOnDemand = 0, urlIsDirectory = 0) +
    + +
    returns nothing
    In versions KDE 3.4.3 and above only
    + + + + +
    ArgumentTypeDefault
    entryKIO.UDSEntry
    urlKURL
    determineMimeTypeOnDemandbool0
    urlIsDirectorybool0
    +

  • +
  • setURL (url) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    urlKURL
    +

  • +
  • size () +
    +
    returns (KIO.filesize_t)

  • +
  • size () +
    + +
    returns (KIO.filesize_t) hasSize (bool)
    In versions KDE 3.5.0 and above only

  • +
  • text () +
    +
    returns (QString)

  • +
  • time (which) +
    +
    returns (time_t)
    + +
    ArgumentTypeDefault
    whichuint
    +

  • +
  • time (which) +
    + +
    returns (time_t) hasTime (bool)
    In versions KDE 3.5.0 and above only
    + +
    ArgumentTypeDefault
    whichuint
    +

  • +
  • timeString (which = KIO .UDS_MODIFICATION_TIME) +
    +
    returns (QString)
    + +
    ArgumentTypeDefault
    whichuintKIO .UDS_MODIFICATION_TIME
    +

  • +
  • unmark () +
    +
    returns nothing

  • +
  • url () +
    +
    returns (KURL)

  • +
  • user () +
    +
    returns (QString)

  • +
+ + + diff --git a/doc/classref/kio/KFileMetaInfo.html b/doc/classref/kio/KFileMetaInfo.html new file mode 100644 index 0000000..5a403cc --- /dev/null +++ b/doc/classref/kio/KFileMetaInfo.html @@ -0,0 +1,197 @@ + + + + + class KFileMetaInfo + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KFileMetaInfo


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKFileMetaInfo
Inherits
+

enums

    +
  • What = {Fastest, DontCare, TechnicalInfo, ContentInfo, ExtenedAttr, Thumbnail, Preferred, Everything +}
+

methods

    +
  • KFileMetaInfo (path, mimeType = QString .null, what = Fastest) +
    +
    returns a KFileMetaInfo instance
    + + + +
    ArgumentTypeDefault
    pathQString
    mimeTypeQStringQString .null
    whatuintFastest
    +

  • +
  • KFileMetaInfo (url, mimeType = QString .null, what = Fastest) +
    + +
    returns a KFileMetaInfo instance
    In versions KDE 3.2.0 and above only
    + + + +
    ArgumentTypeDefault
    urlKURL
    mimeTypeQStringQString .null
    whatuintFastest
    +

  • +
  • KFileMetaInfo () +
    +
    returns a KFileMetaInfo instance

  • +
  • KFileMetaInfo (original) +
    +
    returns a KFileMetaInfo instance
    + +
    ArgumentTypeDefault
    originalKFileMetaInfo
    +

  • +
  • addGroup (name) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    nameQString
    +

  • +
  • appendGroup (name) +
    +
    returns (KFileMetaInfoGroup)
    + +
    ArgumentTypeDefault
    nameQString
    +

  • +
  • applyChanges () +
    +
    returns (bool)

  • +
  • applyChanges (path) +
    + +
    returns (bool)
    In versions KDE 3.5.3 and above only
    + +
    ArgumentTypeDefault
    pathQString
    +

  • +
  • contains (key) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    keyQString
    +

  • +
  • containsGroup (key) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    keyQString
    +

  • +
  • deref () +
    +
    returns nothing

  • +
  • editableGroups () +
    +
    returns (QStringList)

  • +
  • group (key) +
    +
    returns (KFileMetaInfoGroup)
    + +
    ArgumentTypeDefault
    keyQString
    +

  • +
  • groups () +
    +
    returns (QStringList)

  • +
  • isEmpty () +
    +
    returns (bool)

  • +
  • isValid () +
    +
    returns (bool)

  • +
  • item (key) +
    +
    returns (KFileMetaInfoItem)
    + +
    ArgumentTypeDefault
    keyQString
    +

  • +
  • item (hint) +
    +
    returns (KFileMetaInfoItem)
    + +
    ArgumentTypeDefault
    hintHint
    +

  • +
  • mimeType () +
    +
    returns (QString)

  • +
  • path () +
    +
    returns (QString)

  • +
  • plugin () +
    +
    returns (KFilePlugin)

  • +
  • preferredGroups () +
    +
    returns (QStringList)

  • +
  • preferredKeys () +
    +
    returns (QStringList)

  • +
  • ref () +
    +
    returns nothing

  • +
  • removeGroup (name) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    nameQString
    +

  • +
  • removedGroups () +
    +
    returns (QStringList)

  • +
  • saveItem (key, preferredGroup = QString .null, createGroup = 1) +
    +
    returns (KFileMetaInfoItem)
    + + + +
    ArgumentTypeDefault
    keyQString
    preferredGroupQStringQString .null
    createGroupbool1
    +

  • +
  • supportedGroups () +
    +
    returns (QStringList)

  • +
  • supportedKeys () +
    +
    returns (QStringList)

  • +
  • url () +
    + +
    returns (KURL)
    In versions KDE 3.2.0 and above only

  • +
  • value (key) +
    +
    returns (QVariant)
    + +
    ArgumentTypeDefault
    keyQString
    +

  • +
+

operators

    +
  • operator [] (key) +
    + +
    returns (KFileMetaInfoGroup),
    In versions KDE 3.1.4 and above only
    + +
    ArgumentTypeDefault
    keyQString
    +

  • +
+ + + diff --git a/doc/classref/kio/KFileMetaInfoGroup.html b/doc/classref/kio/KFileMetaInfoGroup.html new file mode 100644 index 0000000..613f6d2 --- /dev/null +++ b/doc/classref/kio/KFileMetaInfoGroup.html @@ -0,0 +1,153 @@ + + + + + class KFileMetaInfoGroup + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KFileMetaInfoGroup


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKFileMetaInfoGroup
Inherits
+

methods

    +
  • KFileMetaInfoGroup (name, info) +
    +
    returns a KFileMetaInfoGroup instance
    + + +
    ArgumentTypeDefault
    nameQString
    infoKFileMimeTypeInfo
    +

  • +
  • KFileMetaInfoGroup (original) +
    +
    returns a KFileMetaInfoGroup instance
    + +
    ArgumentTypeDefault
    originalKFileMetaInfoGroup
    +

  • +
  • KFileMetaInfoGroup () +
    +
    returns a KFileMetaInfoGroup instance

  • +
  • addItem (key) +
    +
    returns (KFileMetaInfoItem)
    + +
    ArgumentTypeDefault
    keyQString
    +

  • +
  • appendItem (key, value) +
    +
    returns (KFileMetaInfoItem)
    + + +
    ArgumentTypeDefault
    keyQString
    valueQVariant
    +

  • +
  • attributes () +
    +
    returns (uint)

  • +
  • contains (key) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    keyQString
    +

  • +
  • deref () +
    +
    returns nothing

  • +
  • isEmpty () +
    +
    returns (bool)

  • +
  • isModified () +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above only

  • +
  • isValid () +
    +
    returns (bool)

  • +
  • item (key) +
    +
    returns (KFileMetaInfoItem)
    + +
    ArgumentTypeDefault
    keyQString
    +

  • +
  • item (hint) +
    +
    returns (KFileMetaInfoItem)
    + +
    ArgumentTypeDefault
    hintuint
    +

  • +
  • keys () +
    +
    returns (QStringList)

  • +
  • name () +
    +
    returns (QString)

  • +
  • preferredKeys () +
    +
    returns (QStringList)

  • +
  • ref () +
    +
    returns nothing

  • +
  • removeItem (key) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    keyQString
    +

  • +
  • removedItems () +
    +
    returns (QStringList)

  • +
  • setAdded () +
    +
    returns nothing

  • +
  • supportedKeys () +
    +
    returns (QStringList)

  • +
  • supportsVariableKeys () +
    +
    returns (bool)

  • +
  • translatedName () +
    + +
    returns (QString)
    In versions KDE 3.2.0 and above only

  • +
  • value (key) +
    +
    returns (QVariant)
    + +
    ArgumentTypeDefault
    keyQString
    +

  • +
+

operators

    +
  • operator [] (key) +
    + +
    returns (KFileMetaInfoItem),
    In versions KDE 3.1.4 and above only
    + +
    ArgumentTypeDefault
    keyQString
    +

  • +
+ + + diff --git a/doc/classref/kio/KFileMetaInfoItem.html b/doc/classref/kio/KFileMetaInfoItem.html new file mode 100644 index 0000000..628034e --- /dev/null +++ b/doc/classref/kio/KFileMetaInfoItem.html @@ -0,0 +1,122 @@ + + + + + class KFileMetaInfoItem + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KFileMetaInfoItem


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKFileMetaInfoItem
Inherits
+

methods

    +
  • KFileMetaInfoItem (mti, key, value) +
    +
    returns a KFileMetaInfoItem instance
    + + + +
    ArgumentTypeDefault
    mtiKFileMimeTypeInfo.ItemInfo
    keyQString
    valueQVariant
    +

  • +
  • KFileMetaInfoItem (item) +
    +
    returns a KFileMetaInfoItem instance
    + +
    ArgumentTypeDefault
    itemKFileMetaInfoItem
    +

  • +
  • KFileMetaInfoItem () +
    +
    returns a KFileMetaInfoItem instance

  • +
  • attributes () +
    +
    returns (uint)

  • +
  • deref () +
    +
    returns nothing

  • +
  • hint () +
    +
    returns (uint)

  • +
  • isEditable () +
    +
    returns (bool)

  • +
  • isModified () +
    +
    returns (bool)

  • +
  • isRemoved () +
    +
    returns (bool)

  • +
  • isValid () +
    +
    returns (bool)

  • +
  • key () +
    +
    returns (QString)

  • +
  • prefix () +
    +
    returns (QString)

  • +
  • ref () +
    +
    returns nothing

  • +
  • setAdded () +
    +
    returns nothing

  • +
  • setRemoved () +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only

  • +
  • setValue (value) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    valueQVariant
    +

  • +
  • string (mangle = 1) +
    +
    returns (QString)
    + +
    ArgumentTypeDefault
    manglebool1
    +

  • +
  • suffix () +
    +
    returns (QString)

  • +
  • translatedKey () +
    +
    returns (QString)

  • +
  • type () +
    +
    returns (QVariant.Type)

  • +
  • unit () +
    Not Implemented
    +

  • +
  • value () +
    +
    returns (QVariant)

  • +
+ + + diff --git a/doc/classref/kio/KFileMetaInfoProvider.html b/doc/classref/kio/KFileMetaInfoProvider.html new file mode 100644 index 0000000..df9afad --- /dev/null +++ b/doc/classref/kio/KFileMetaInfoProvider.html @@ -0,0 +1,95 @@ + + + + + class KFileMetaInfoProvider + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KFileMetaInfoProvider


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKFileMetaInfoProvider
InheritsQObject
+

methods

    +
  • KFileMetaInfoProvider () +
    Not Implemented
    +

  • +
  • KFileMetaInfoProvider () +
    +
    returns a KFileMetaInfoProvider instance

  • +
  • mimeTypeInfo (mimeType) +
    +
    returns (KFileMimeTypeInfo)
    + +
    ArgumentTypeDefault
    mimeTypeQString
    +

  • +
  • mimeTypeInfo (mimeType, protocol) +
    + +
    returns (KFileMimeTypeInfo)
    In versions KDE 3.4.0 and above only
    + + +
    ArgumentTypeDefault
    mimeTypeQString
    protocolQString
    +

  • +
  • plugin (mimeType) +
    +
    returns (KFilePlugin)
    + +
    ArgumentTypeDefault
    mimeTypeQString
    +

  • +
  • plugin (mimeType, protocol) +
    + +
    returns (KFilePlugin)
    In versions KDE 3.4.0 and above only
    + + +
    ArgumentTypeDefault
    mimeTypeQString
    protocolQString
    +

  • +
  • preferredGroups (mimeType) +
    +
    returns (QStringList)
    + +
    ArgumentTypeDefault
    mimeTypeQString
    +

  • +
  • preferredKeys (mimeType) +
    +
    returns (QStringList)
    + +
    ArgumentTypeDefault
    mimeTypeQString
    +

  • +
  • self () +
    + +
    returns (KFileMetaInfoProvider)
    static

  • +
  • supportedMimeTypes () +
    + +
    returns (QStringList)
    In versions KDE 3.1.0 and above only

  • +
+ + + diff --git a/doc/classref/kio/KFileMimeTypeInfo.GroupInfo.html b/doc/classref/kio/KFileMimeTypeInfo.GroupInfo.html new file mode 100644 index 0000000..5a6459a --- /dev/null +++ b/doc/classref/kio/KFileMimeTypeInfo.GroupInfo.html @@ -0,0 +1,72 @@ + + + + + class KFileMimeTypeInfo.GroupInfo + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KFileMimeTypeInfo.GroupInfo


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKFileMimeTypeInfo.GroupInfo
Inherits
+

methods

    +
  • GroupInfo (name, translatedName) +
    +
    returns a GroupInfo instance
    + + +
    ArgumentTypeDefault
    nameQString
    translatedNameQString
    +

  • +
  • attributes () +
    +
    returns (uint)

  • +
  • itemInfo (key) +
    +
    returns (KFileMimeTypeInfo.ItemInfo)
    + +
    ArgumentTypeDefault
    keyQString
    +

  • +
  • name () +
    +
    returns (QString)

  • +
  • supportedKeys () +
    +
    returns (QStringList)

  • +
  • supportsVariableKeys () +
    +
    returns (bool)

  • +
  • translatedName () +
    +
    returns (QString)

  • +
  • variableItemInfo () +
    +
    returns (KFileMimeTypeInfo.ItemInfo)

  • +
+ + + diff --git a/doc/classref/kio/KFileMimeTypeInfo.ItemInfo.html b/doc/classref/kio/KFileMimeTypeInfo.ItemInfo.html new file mode 100644 index 0000000..f465f90 --- /dev/null +++ b/doc/classref/kio/KFileMimeTypeInfo.ItemInfo.html @@ -0,0 +1,87 @@ + + + + + class KFileMimeTypeInfo.ItemInfo + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KFileMimeTypeInfo.ItemInfo


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKFileMimeTypeInfo.ItemInfo
Inherits
+

methods

    +
  • ItemInfo () +
    +
    returns a ItemInfo instance

  • +
  • ItemInfo (key, translatedKey, type) +
    +
    returns a ItemInfo instance
    + + + +
    ArgumentTypeDefault
    keyQString
    translatedKeyQString
    typeQVariant.Type
    +

  • +
  • attributes () +
    +
    returns (uint)

  • +
  • hint () +
    +
    returns (uint)

  • +
  • isVariableItem () +
    +
    returns (bool)

  • +
  • key () +
    +
    returns (QString)

  • +
  • prefix () +
    +
    returns (QString)

  • +
  • string (value, mangle = 1) +
    + +
    returns (QString)
    In versions KDE 3.1.0 and above only
    + + +
    ArgumentTypeDefault
    valueQVariant
    manglebool1
    +

  • +
  • suffix () +
    +
    returns (QString)

  • +
  • translatedKey () +
    +
    returns (QString)

  • +
  • type () +
    +
    returns (QVariant.Type)

  • +
  • unit () +
    +
    returns (uint)

  • +
+ + + diff --git a/doc/classref/kio/KFileMimeTypeInfo.html b/doc/classref/kio/KFileMimeTypeInfo.html new file mode 100644 index 0000000..88b7fec --- /dev/null +++ b/doc/classref/kio/KFileMimeTypeInfo.html @@ -0,0 +1,104 @@ + + + + + class KFileMimeTypeInfo + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KFileMimeTypeInfo


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKFileMimeTypeInfo
Inherits
+

enums

    +
  • Attributes = {Addable, Removable, Modifiable, Cumulative, Cummulative, Averaged, MultiLine, SqueezeText +}
  • Attributes = {Addable, Removable, Modifiable, Cummulative, Averaged, MultiLine, SqueezeText +}
  • Attributes = {Addable, Removable, Modifiable, Cummulative, Averaged +}
  • Hint = {NoHint, Name, Author, Description, Width, Height, Size, Bitrate, Length, Hidden, Thumbnail +}
  • Unit = {NoUnit, Seconds, MilliSeconds, BitsPerSecond, Pixels, Inches, Centimeters, Bytes, FramesPerSecond, DotsPerInch, BitsPerPixel, Hertz, KiloBytes, Millimeters +}
+

methods

    +
  • KFileMimeTypeInfo () +
    +
    returns a KFileMimeTypeInfo instance

  • +
  • KFileMimeTypeInfo (mimeType) +
    +
    returns a KFileMimeTypeInfo instance
    + +
    ArgumentTypeDefault
    mimeTypeQString
    +

  • +
  • addGroupInfo (name, translatedName) +
    +
    returns (KFileMimeTypeInfo.GroupInfo)
    + + +
    ArgumentTypeDefault
    nameQString
    translatedNameQString
    +

  • +
  • createValidator (group, key, parent = 0, name = 0) +
    +
    returns (QValidator)
    + + + + +
    ArgumentTypeDefault
    groupQString
    keyQString
    parentQObject0
    namechar0
    +

  • +
  • groupInfo (group) +
    +
    returns (KFileMimeTypeInfo.GroupInfo)
    + +
    ArgumentTypeDefault
    groupQString
    +

  • +
  • mimeType () +
    +
    returns (QString)

  • +
  • preferredGroups () +
    +
    returns (QStringList)

  • +
  • preferredKeys () +
    +
    returns (QStringList)

  • +
  • supportedGroups () +
    +
    returns (QStringList)

  • +
  • supportedKeys () +
    +
    returns (QStringList)

  • +
  • translatedGroups () +
    +
    returns (QStringList)

  • +
+

variables

  • +variables + + + + +
    VariableType
    m_attruint
    m_itemDictQDict
    m_supportedKeysQStringList
    m_translatedNameQString
+ + + diff --git a/doc/classref/kio/KFilePlugin.html b/doc/classref/kio/KFilePlugin.html new file mode 100644 index 0000000..9a54b6f --- /dev/null +++ b/doc/classref/kio/KFilePlugin.html @@ -0,0 +1,161 @@ + + + + + class KFilePlugin + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KFilePlugin


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKFilePlugin (abstract)
InheritsQObject
+

methods

    +
  • KFilePlugin (parent, name, args) +
    +
    returns a KFilePlugin instance
    + + + +
    ArgumentTypeDefault
    parentQObject
    namechar
    argsQStringList
    +

  • +
  • addGroupInfo (info, key, translatedKey) +
    +
    returns (KFileMimeTypeInfo.GroupInfo)
    + + + +
    ArgumentTypeDefault
    infoKFileMimeTypeInfo
    keyQString
    translatedKeyQString
    +

  • +
  • addItemInfo (gi, key, translatedKey, type) +
    +
    returns (KFileMimeTypeInfo.ItemInfo)
    + + + + +
    ArgumentTypeDefault
    giKFileMimeTypeInfo.GroupInfo
    keyQString
    translatedKeyQString
    typeQVariant.Type
    +

  • +
  • addMimeTypeInfo (mimeType) +
    +
    returns (KFileMimeTypeInfo)
    + +
    ArgumentTypeDefault
    mimeTypeQString
    +

  • +
  • addVariableInfo (gi, type, attr) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    giKFileMimeTypeInfo.GroupInfo
    typeQVariant.Type
    attruint
    +

  • +
  • appendGroup (info, key) +
    +
    returns (KFileMetaInfoGroup)
    + + +
    ArgumentTypeDefault
    infoKFileMetaInfo
    keyQString
    +

  • +
  • appendItem (group, key, value) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    groupKFileMetaInfoGroup
    keyQString
    valueQVariant
    +

  • +
  • createValidator (mimeType, group, key, parent, name) +
    +
    returns (QValidator)
    + + + + + +
    ArgumentTypeDefault
    mimeTypeQString
    groupQString
    keyQString
    parentQObject
    namechar
    +

  • +
  • readInfo (info, what = KFileMetaInfo .Fastest) = 0 +
    + +
    returns (bool)
    pure virtual
    + + +
    ArgumentTypeDefault
    infoKFileMetaInfo
    whatuintKFileMetaInfo .Fastest
    +

  • +
  • setAttributes (gi, attr) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    giKFileMimeTypeInfo.GroupInfo
    attruint
    +

  • +
  • setAttributes (item, attr) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    itemKFileMimeTypeInfo.ItemInfo
    attruint
    +

  • +
  • setHint (item, hint) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    itemKFileMimeTypeInfo.ItemInfo
    hintuint
    +

  • +
  • setPrefix (item, prefix) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    itemKFileMimeTypeInfo.ItemInfo
    prefixQString
    +

  • +
  • setSuffix (item, suffix) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    itemKFileMimeTypeInfo.ItemInfo
    suffixQString
    +

  • +
  • setUnit (item, unit) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    itemKFileMimeTypeInfo.ItemInfo
    unituint
    +

  • +
  • writeInfo (info) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    infoKFileMetaInfo
    +

  • +
+ + + diff --git a/doc/classref/kio/KFileShare.html b/doc/classref/kio/KFileShare.html new file mode 100644 index 0000000..9bd4844 --- /dev/null +++ b/doc/classref/kio/KFileShare.html @@ -0,0 +1,118 @@ + + + + + class KFileShare + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KFileShare


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKFileShare
Inherits
+

enums

    +
  • Authorization = {NotInitialized, ErrorNotFound, Authorized, UserNotAllowed +}
  • ShareMode = {Simple, Advanced +}
+

methods

    +
  • authorization () +
    + + +
    returns (KFileShare.Authorization)
    In versions KDE 3.1.0 and above only
    static

  • +
  • fileShareGroup () +
    + + +
    returns (QString)
    In versions KDE 3.3.0 and above only
    static

  • +
  • findExe (exeName) +
    + + +
    returns (QString)
    In versions KDE 3.1.0 and above only
    static
    + +
    ArgumentTypeDefault
    exeNamechar
    +

  • +
  • isDirectoryShared (path) +
    + + +
    returns (bool)
    In versions KDE 3.1.0 and above only
    static
    + +
    ArgumentTypeDefault
    pathQString
    +

  • +
  • isRestricted () +
    + + +
    returns (bool)
    In versions KDE 3.3.0 and above only
    static

  • +
  • nfsEnabled () +
    + + +
    returns (bool)
    In versions KDE 3.3.0 and above only
    static

  • +
  • readConfig () +
    + + +
    returns nothing
    In versions KDE 3.1.0 and above only
    static

  • +
  • readShareList () +
    + + +
    returns nothing
    In versions KDE 3.3.0 and above only
    static

  • +
  • sambaEnabled () +
    + + +
    returns (bool)
    In versions KDE 3.3.0 and above only
    static

  • +
  • setShared (path, shared) +
    + + +
    returns (bool)
    In versions KDE 3.1.0 and above only
    static
    + + +
    ArgumentTypeDefault
    pathQString
    sharedbool
    +

  • +
  • setShared (a0, a1, a2) +
    Not Implemented
    +

  • +
  • shareMode () +
    + + +
    returns (KFileShare.ShareMode)
    In versions KDE 3.3.0 and above only
    static

  • +
  • sharingEnabled () +
    + + +
    returns (bool)
    In versions KDE 3.3.0 and above only
    static

  • +
+ + + diff --git a/doc/classref/kio/KFileSharePrivate.html b/doc/classref/kio/KFileSharePrivate.html new file mode 100644 index 0000000..4aadacb --- /dev/null +++ b/doc/classref/kio/KFileSharePrivate.html @@ -0,0 +1,62 @@ + + + + + class KFileSharePrivate + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KFileSharePrivate


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKFileSharePrivate
InheritsQObject
+

methods

    +
  • KFileSharePrivate () +
    + +
    returns a KFileSharePrivate instance
    In versions KDE 3.1.0 and above only

  • +
  • self () +
    + + +
    returns (KFileSharePrivate)
    In versions KDE 3.1.0 and above only
    static

  • +
  • slotFileChange (a0) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
+

variables

  • +variables + + +
    VariableType
    _selfKFileSharePrivate*
    m_watchFileKDirWatch*
+ + + diff --git a/doc/classref/kio/KFilterBase.html b/doc/classref/kio/KFilterBase.html new file mode 100644 index 0000000..70f04d2 --- /dev/null +++ b/doc/classref/kio/KFilterBase.html @@ -0,0 +1,141 @@ + + + + + class KFilterBase + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KFilterBase


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKFilterBase (abstract)
InheritsQObject
+

enums

    +
  • Result = {OK, END, ERROR +}
+

methods

    +
  • KFilterBase () +
    +
    returns a KFilterBase instance

  • +
  • compress (finish) = 0 +
    + +
    returns (KFilterBase.Result)
    pure virtual
    + +
    ArgumentTypeDefault
    finishbool
    +

  • +
  • device () +
    +
    returns (QIODevice)

  • +
  • findFilterByFileName (fileName) +
    + +
    returns (KFilterBase)
    static
    + +
    ArgumentTypeDefault
    fileNameQString
    +

  • +
  • findFilterByMimeType (mimeType) +
    + +
    returns (KFilterBase)
    static
    + +
    ArgumentTypeDefault
    mimeTypeQString
    +

  • +
  • inBufferAvailable () = 0 +
    + +
    returns (int)
    pure virtual

  • +
  • inBufferEmpty () +
    +
    returns (bool)

  • +
  • init (mode) = 0 +
    + +
    returns nothing
    pure virtual
    + +
    ArgumentTypeDefault
    modeint
    +

  • +
  • mode () = 0 +
    + +
    returns (int)
    pure virtual

  • +
  • outBufferAvailable () = 0 +
    + +
    returns (int)
    pure virtual

  • +
  • outBufferFull () +
    +
    returns (bool)

  • +
  • readHeader () = 0 +
    + +
    returns (bool)
    pure virtual

  • +
  • reset () +
    +
    returns nothing

  • +
  • setDevice (dev, autodelete = 0) +
    + +
    returns nothing
    In versions KDE 3.1.2 and above only
    + + +
    ArgumentTypeDefault
    devQIODevice
    autodeletebool0
    +

  • +
  • setInBuffer (data, size) = 0 +
    + +
    returns nothing
    pure virtual
    + + +
    ArgumentTypeDefault
    datachar
    sizeuint
    +

  • +
  • setOutBuffer (data, maxlen) = 0 +
    + +
    returns nothing
    pure virtual
    + + +
    ArgumentTypeDefault
    datachar
    maxlenuint
    +

  • +
  • terminate () +
    +
    returns nothing

  • +
  • uncompress () = 0 +
    + +
    returns (Result)
    pure virtual

  • +
  • writeHeader (filename) = 0 +
    + +
    returns (bool)
    pure virtual
    + +
    ArgumentTypeDefault
    filenameQCString
    +

  • +
+ + + diff --git a/doc/classref/kio/KFilterDev.html b/doc/classref/kio/KFilterDev.html new file mode 100644 index 0000000..d394f91 --- /dev/null +++ b/doc/classref/kio/KFilterDev.html @@ -0,0 +1,149 @@ + + + + + class KFilterDev + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KFilterDev


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKFilterDev
InheritsQIODevice
+

methods

    +
  • KFilterDev (filter, autoDeleteFilterBase) +
    +
    returns a KFilterDev instance
    + + +
    ArgumentTypeDefault
    filterKFilterBase
    autoDeleteFilterBasebool
    +

  • +
  • at () +
    +
    returns (QIODevice.Offset)

  • +
  • at (a0) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    a0QIODevice.Offset
    +

  • +
  • atEnd () +
    +
    returns (bool)

  • +
  • close () +
    +
    returns nothing

  • +
  • createFilterDevice (base, file) +
    + +
    returns (QIODevice)
    static
    + + +
    ArgumentTypeDefault
    baseKFilterBase
    fileQFile
    +

  • +
  • device (inDevice, mimetype) +
    + +
    returns (QIODevice)
    static
    + + +
    ArgumentTypeDefault
    inDeviceQIODevice
    mimetypeQString
    +

  • +
  • device (inDevice, mimetype, autoDeleteInDevice) +
    + + +
    returns (QIODevice)
    In versions KDE 3.1.0 and above only
    static
    + + + +
    ArgumentTypeDefault
    inDeviceQIODevice
    mimetypeQString
    autoDeleteInDevicebool
    +

  • +
  • deviceForFile (fileName, mimetype = QString .null, forceFilter = 0) +
    + +
    returns (QIODevice)
    static
    + + + +
    ArgumentTypeDefault
    fileNameQString
    mimetypeQStringQString .null
    forceFilterbool0
    +

  • +
  • flush () +
    +
    returns nothing

  • +
  • getch () +
    +
    returns (int)

  • +
  • open (mode) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    modeint
    +

  • +
  • putch (a0) +
    +
    returns (int)
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • readBlock (data, maxlen) +
    Not Implemented
    +

  • +
  • setOrigFileName (fileName) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    fileNameQCString
    +

  • +
  • setSkipHeaders () +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only

  • +
  • size () +
    +
    returns (QIODevice.Offset)

  • +
  • ungetch (a0) +
    +
    returns (int)
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • writeBlock (data, len) +
    Not Implemented
    +

  • +
  • writeBlock (a0, a1) +
    + +
    returns (long)
    In versions less than KDE 3.2.2 only
    + + +
    ArgumentTypeDefault
    a0char
    a1ulong
    +

  • +
+ + + diff --git a/doc/classref/kio/KFolderType.html b/doc/classref/kio/KFolderType.html new file mode 100644 index 0000000..e8a80a8 --- /dev/null +++ b/doc/classref/kio/KFolderType.html @@ -0,0 +1,82 @@ + + + + + class KFolderType + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KFolderType


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKFolderType
InheritsKMimeType
+

methods

    +
  • KFolderType (config) +
    +
    returns a KFolderType instance
    + +
    ArgumentTypeDefault
    configKDesktopFile
    +

  • +
  • KFolderType (_str, offset) +
    +
    returns a KFolderType instance
    + + +
    ArgumentTypeDefault
    _strQDataStream
    offsetint
    +

  • +
  • comment (_url, _is_local) +
    +
    returns (QString)
    + + +
    ArgumentTypeDefault
    _urlQString
    _is_localbool
    +

  • +
  • comment (_url, _is_local) +
    +
    returns (QString)
    + + +
    ArgumentTypeDefault
    _urlKURL
    _is_localbool
    +

  • +
  • icon (_url, _is_local) +
    +
    returns (QString)
    + + +
    ArgumentTypeDefault
    _urlQString
    _is_localbool
    +

  • +
  • icon (_url, _is_local) +
    +
    returns (QString)
    + + +
    ArgumentTypeDefault
    _urlKURL
    _is_localbool
    +

  • +
+ + + diff --git a/doc/classref/kio/KIO.AuthInfo.html b/doc/classref/kio/KIO.AuthInfo.html new file mode 100644 index 0000000..9d890eb --- /dev/null +++ b/doc/classref/kio/KIO.AuthInfo.html @@ -0,0 +1,74 @@ + + + + + class KIO.AuthInfo + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KIO.AuthInfo


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKIO.AuthInfo
Inherits
+

methods

    +
  • AuthInfo () +
    +
    returns a AuthInfo instance

  • +
  • AuthInfo (info) +
    +
    returns a AuthInfo instance
    + +
    ArgumentTypeDefault
    infoKIO.AuthInfo
    +

  • +
  • isModified () +
    +
    returns (bool)

  • +
  • setModified (flag) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    flagbool
    +

  • +
+

variables

  • +variables + + + + + + + + + + + + +
    VariableType
    captionQString
    commentQString
    commentLabelQString
    digestInfoQString
    keepPasswordbool
    passwordQString
    promptQString
    readOnlybool
    realmValueQString
    urlKURL
    usernameQString
    verifyPathbool
+ + + diff --git a/doc/classref/kio/KIO.ChmodJob.html b/doc/classref/kio/KIO.ChmodJob.html new file mode 100644 index 0000000..bfb8c06 --- /dev/null +++ b/doc/classref/kio/KIO.ChmodJob.html @@ -0,0 +1,72 @@ + + + + + class KIO.ChmodJob + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KIO.ChmodJob


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKIO.ChmodJob
InheritsKIO.Job
+

methods

    +
  • ChmodJob (lstItems, permissions, mask, newOwner, newGroup, recursive, showProgressInfo) +
    +
    returns a ChmodJob instance
    + + + + + + + +
    ArgumentTypeDefault
    lstItemsKFileItemList
    permissionsint
    maskint
    newOwnerint
    newGroupint
    recursivebool
    showProgressInfobool
    +

  • +
  • chmodNextFile () +
    +
    returns nothing

  • +
  • processList () +
    +
    returns nothing

  • +
  • slotEntries (a0, a1) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    a0KIO.Job
    a1KIO.UDSEntryList
    +

  • +
  • slotResult (job) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    jobKIO.Job
    +

  • +
+ + + diff --git a/doc/classref/kio/KIO.Connection.html b/doc/classref/kio/KIO.Connection.html new file mode 100644 index 0000000..7937064 --- /dev/null +++ b/doc/classref/kio/KIO.Connection.html @@ -0,0 +1,105 @@ + + + + + class KIO.Connection + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KIO.Connection


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKIO.Connection
InheritsQObject
+

methods

    +
  • Connection () +
    +
    returns a Connection instance

  • +
  • close () +
    +
    returns nothing

  • +
  • connect (receiver = 0, member = 0) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    receiverQObject0
    memberchar0
    +

  • +
  • dequeue () +
    +
    returns nothing

  • +
  • fd_from () +
    +
    returns (int)

  • +
  • fd_to () +
    +
    returns (int)

  • +
  • init (sock) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    sockKSocket
    +

  • +
  • init (fd_in, fd_out) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    fd_inint
    fd_outint
    +

  • +
  • inited () +
    +
    returns (bool)

  • +
  • read (data) +
    Not Implemented
    +

  • +
  • resume () +
    +
    returns nothing

  • +
  • send (cmd, arr = QByteArray ()) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    cmdint
    arrQByteArrayQByteArray ()
    +

  • +
  • sendnow (_cmd, data) +
    +
    returns (bool)
    + + +
    ArgumentTypeDefault
    _cmdint
    dataQByteArray
    +

  • +
  • suspend () +
    +
    returns nothing

  • +
  • suspended () +
    +
    returns (bool)

  • +
+ + + diff --git a/doc/classref/kio/KIO.CopyInfo.html b/doc/classref/kio/KIO.CopyInfo.html new file mode 100644 index 0000000..6e7678f --- /dev/null +++ b/doc/classref/kio/KIO.CopyInfo.html @@ -0,0 +1,49 @@ + + + + + class KIO.CopyInfo + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KIO.CopyInfo


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKIO.CopyInfo
Inherits
+

variables

  • +variables + + + + + + + +
    VariableType
    ctimetime_t
    linkDestQString
    mtimetime_t
    permissionsmode_t
    sizeoff_t
    uDestKURL
    uSourceKURL
+ + + diff --git a/doc/classref/kio/KIO.CopyJob.html b/doc/classref/kio/KIO.CopyJob.html new file mode 100644 index 0000000..b772133 --- /dev/null +++ b/doc/classref/kio/KIO.CopyJob.html @@ -0,0 +1,276 @@ + + + + + class KIO.CopyJob + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KIO.CopyJob


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKIO.CopyJob
InheritsKIO.Job
+

enums

    +
  • CopyMode = {Copy, Move, Link +}
+

methods

    +
  • CopyJob (src, dest, mode, asMethod, showProgressInfo) +
    +
    returns a CopyJob instance
    + + + + + +
    ArgumentTypeDefault
    srcKURL.List
    destKURL
    modeKIO.CopyJob.CopyMode
    asMethodbool
    showProgressInfobool
    +

  • +
  • aboutToCreate (job, files) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    jobKIO.Job
    filesQValueList
    +

  • +
  • copyNextFile () +
    +
    returns nothing

  • +
  • copying (job, from, to) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    jobKIO.Job
    fromKURL
    toKURL
    +

  • +
  • copyingDone (job, from, to, directory, renamed) +
    +
    returns nothing
    + + + + + +
    ArgumentTypeDefault
    jobKIO.Job
    fromKURL
    toKURL
    directorybool
    renamedbool
    +

  • +
  • copyingLinkDone (job, from, target, to) +
    +
    returns nothing
    + + + + +
    ArgumentTypeDefault
    jobKIO.Job
    fromKURL
    targetQString
    toKURL
    +

  • +
  • createNextDir () +
    +
    returns nothing

  • +
  • creatingDir (job, dir) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    jobKIO.Job
    dirKURL
    +

  • +
  • deleteNextDir () +
    +
    returns nothing

  • +
  • destURL () +
    +
    returns (KURL)

  • +
  • linking (job, target, to) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    jobKIO.Job
    targetQString
    toKURL
    +

  • +
  • moving (job, from, to) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    jobKIO.Job
    fromKURL
    toKURL
    +

  • +
  • processedDirs (job, dirs) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    jobKIO.Job
    dirsulong
    +

  • +
  • processedFiles (job, files) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    jobKIO.Job
    filesulong
    +

  • +
  • renamed (job, from, to) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    jobKIO.Job
    fromKURL
    toKURL
    +

  • +
  • setDefaultPermissions (b) +
    + +
    returns nothing
    In versions KDE 3.2.3 and above only
    + +
    ArgumentTypeDefault
    bbool
    +

  • +
  • setInteractive (b) +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only
    + +
    ArgumentTypeDefault
    bbool
    +

  • +
  • setNextDirAttribute () +
    + +
    returns nothing
    In versions KDE 3.5.2 and above only

  • +
  • skip (sourceURL) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    sourceURLKURL
    +

  • +
  • slotEntries (a0, list) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    a0KIO.Job
    listKIO.UDSEntryList
    +

  • +
  • slotProcessedSize (a0, data_size) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    a0KIO.Job
    data_sizeKIO.filesize_t
    +

  • +
  • slotReport () +
    +
    returns nothing

  • +
  • slotResult (job) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    jobKIO.Job
    +

  • +
  • slotResultConflictCopyingFiles (job) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    jobKIO.Job
    +

  • +
  • slotResultConflictCreatingDirs (job) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    jobKIO.Job
    +

  • +
  • slotResultCopyingFiles (job) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    jobKIO.Job
    +

  • +
  • slotResultCreatingDirs (job) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    jobKIO.Job
    +

  • +
  • slotResultDeletingDirs (job) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    jobKIO.Job
    +

  • +
  • slotResultRenaming (job) +
    + +
    returns nothing
    In versions KDE 3.3.2 and above only
    + +
    ArgumentTypeDefault
    jobKIO.Job
    +

  • +
  • slotResultStating (job) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    jobKIO.Job
    +

  • +
  • slotStart () +
    +
    returns nothing

  • +
  • slotTotalSize (a0, size) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    a0KIO.Job
    sizeKIO.filesize_t
    +

  • +
  • srcURLs () +
    +
    returns (KURL.List)

  • +
  • startListing (src) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    srcKURL
    +

  • +
  • statCurrentSrc () +
    + +
    returns nothing
    In versions KDE 3.2.3 and above only

  • +
  • statNextSrc () +
    +
    returns nothing

  • +
  • totalDirs (job, dirs) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    jobKIO.Job
    dirsulong
    +

  • +
  • totalFiles (job, files) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    jobKIO.Job
    filesulong
    +

  • +
+ + + diff --git a/doc/classref/kio/KIO.DavJob.html b/doc/classref/kio/KIO.DavJob.html new file mode 100644 index 0000000..4e1841c --- /dev/null +++ b/doc/classref/kio/KIO.DavJob.html @@ -0,0 +1,66 @@ + + + + + class KIO.DavJob + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KIO.DavJob


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKIO.DavJob
InheritsKIO.TransferJob
+

methods

    +
  • DavJob (url, method, request, showProgressInfo) +
    + +
    returns a DavJob instance
    In versions KDE 3.1.0 and above only
    + + + + +
    ArgumentTypeDefault
    urlKURL
    methodint
    requestQString
    showProgressInfobool
    +

  • +
  • response () +
    + +
    returns (QDomDocument)
    In versions KDE 3.1.0 and above only

  • +
  • slotData (data) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    dataQByteArray
    +

  • +
  • slotFinished () +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only

  • +
+ + + diff --git a/doc/classref/kio/KIO.DefaultProgress.html b/doc/classref/kio/KIO.DefaultProgress.html new file mode 100644 index 0000000..d93be7e --- /dev/null +++ b/doc/classref/kio/KIO.DefaultProgress.html @@ -0,0 +1,223 @@ + + + + + class KIO.DefaultProgress + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KIO.DefaultProgress


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKIO.DefaultProgress
InheritsKIO.ProgressBase
+

methods

    +
  • DefaultProgress (showNow = 1) +
    +
    returns a DefaultProgress instance
    + +
    ArgumentTypeDefault
    showNowbool1
    +

  • +
  • DefaultProgress (parent, name = 0) +
    + +
    returns a DefaultProgress instance
    In versions KDE 3.1.0 and above only
    + + +
    ArgumentTypeDefault
    parentQWidget
    namechar0
    +

  • +
  • checkDestination (dest) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    destKURL
    +

  • +
  • init () +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only

  • +
  • keepOpen () +
    + +
    returns (bool)
    In versions KDE 3.2.1 and above only

  • +
  • makePercentString (percent, totalSize, totalFiles) +
    + + +
    returns (QString)
    In versions KDE 3.4.0 and above only
    static
    + + + +
    ArgumentTypeDefault
    percentulong
    totalSizeKIO.filesize_t
    totalFilesulong
    +

  • +
  • setDestVisible (visible) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    visiblebool
    +

  • +
  • showTotals () +
    +
    returns nothing

  • +
  • slotCanResume (a0, a1) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    a0KIO.Job
    a1KIO.filesize_t
    +

  • +
  • slotClean () +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only

  • +
  • slotCopying (a0, src, dest) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    a0KIO.Job
    srcKURL
    destKURL
    +

  • +
  • slotCreatingDir (a0, dir) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    a0KIO.Job
    dirKURL
    +

  • +
  • slotDeleting (a0, url) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    a0KIO.Job
    urlKURL
    +

  • +
  • slotInfoMessage (job, msg) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    jobKIO.Job
    msgQString
    +

  • +
  • slotMounting (a0, dev, point) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    a0KIO.Job
    devQString
    pointQString
    +

  • +
  • slotMoving (a0, src, dest) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    a0KIO.Job
    srcKURL
    destKURL
    +

  • +
  • slotPercent (a0, percent) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    a0KIO.Job
    percentulong
    +

  • +
  • slotProcessedDirs (a0, dirs) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    a0KIO.Job
    dirsulong
    +

  • +
  • slotProcessedFiles (a0, files) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    a0KIO.Job
    filesulong
    +

  • +
  • slotProcessedSize (a0, bytes) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    a0KIO.Job
    bytesKIO.filesize_t
    +

  • +
  • slotSpeed (a0, speed) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    a0KIO.Job
    speedulong
    +

  • +
  • slotStating (a0, dir) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    a0KIO.Job
    dirKURL
    +

  • +
  • slotTotalDirs (a0, dirs) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    a0KIO.Job
    dirsulong
    +

  • +
  • slotTotalFiles (a0, files) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    a0KIO.Job
    filesulong
    +

  • +
  • slotTotalSize (a0, size) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    a0KIO.Job
    sizeKIO.filesize_t
    +

  • +
  • slotTransferring (a0, url) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + + +
    ArgumentTypeDefault
    a0KIO.Job
    urlKURL
    +

  • +
  • slotUnmounting (a0, point) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    a0KIO.Job
    pointQString
    +

  • +
+ + + diff --git a/doc/classref/kio/KIO.DeleteJob.html b/doc/classref/kio/KIO.DeleteJob.html new file mode 100644 index 0000000..6682f91 --- /dev/null +++ b/doc/classref/kio/KIO.DeleteJob.html @@ -0,0 +1,125 @@ + + + + + class KIO.DeleteJob + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KIO.DeleteJob


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKIO.DeleteJob
InheritsKIO.Job
+

methods

    +
  • DeleteJob (src, shred, showProgressInfo) +
    +
    returns a DeleteJob instance
    + + + +
    ArgumentTypeDefault
    srcKURL.List
    shredbool
    showProgressInfobool
    +

  • +
  • deleteNextDir () +
    + +
    returns nothing
    In versions less than KDE 3.1.0 only

  • +
  • deleteNextFile () +
    + +
    returns nothing
    In versions less than KDE 3.1.0 only

  • +
  • deleting (job, file) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    jobKIO.Job
    fileKURL
    +

  • +
  • processedDirs (job, dirs) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    jobKIO.Job
    dirsulong
    +

  • +
  • processedFiles (job, files) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    jobKIO.Job
    filesulong
    +

  • +
  • slotEntries (a0, list) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    a0KIO.Job
    listKIO.UDSEntryList
    +

  • +
  • slotProcessedSize (a0, data_size) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    a0KIO.Job
    data_sizeKIO.filesize_t
    +

  • +
  • slotReport () +
    +
    returns nothing

  • +
  • slotResult (job) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    jobKIO.Job
    +

  • +
  • slotStart () +
    +
    returns nothing

  • +
  • startNextJob () +
    + +
    returns nothing
    In versions less than KDE 3.1.0 only

  • +
  • totalDirs (job, dirs) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    jobKIO.Job
    dirsulong
    +

  • +
  • totalFiles (job, files) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    jobKIO.Job
    filesulong
    +

  • +
  • urls () +
    +
    returns (KURL.List)

  • +
+ + + diff --git a/doc/classref/kio/KIO.DirectCopyJob.html b/doc/classref/kio/KIO.DirectCopyJob.html new file mode 100644 index 0000000..0b4e164 --- /dev/null +++ b/doc/classref/kio/KIO.DirectCopyJob.html @@ -0,0 +1,66 @@ + + + + + class KIO.DirectCopyJob + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KIO.DirectCopyJob


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKIO.DirectCopyJob
InheritsKIO.SimpleJob
+

methods

    +
  • DirectCopyJob (url, command, packedArgs, showProgressInfo) +
    + +
    returns a DirectCopyJob instance
    In versions KDE 3.3.0 and above only
    + + + + +
    ArgumentTypeDefault
    urlKURL
    commandint
    packedArgsQByteArray
    showProgressInfobool
    +

  • +
  • canResume (job, offset) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + + +
    ArgumentTypeDefault
    jobKIO.Job
    offsetKIO.filesize_t
    +

  • +
  • start (slave) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    slaveKIO.Slave
    +

  • +
+ + + diff --git a/doc/classref/kio/KIO.FileCopyJob.html b/doc/classref/kio/KIO.FileCopyJob.html new file mode 100644 index 0000000..418e02d --- /dev/null +++ b/doc/classref/kio/KIO.FileCopyJob.html @@ -0,0 +1,152 @@ + + + + + class KIO.FileCopyJob + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KIO.FileCopyJob


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKIO.FileCopyJob
InheritsKIO.Job
+

methods

    +
  • FileCopyJob (src, dest, permissions, move, overwrite, resume, showProgressInfo) +
    +
    returns a FileCopyJob instance
    + + + + + + + +
    ArgumentTypeDefault
    srcKURL
    destKURL
    permissionsint
    movebool
    overwritebool
    resumebool
    showProgressInfobool
    +

  • +
  • connectSubjob (job) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    jobKIO.SimpleJob
    +

  • +
  • destURL () +
    +
    returns (KURL)

  • +
  • setModificationTime (mtime) +
    + +
    returns nothing
    In versions KDE 3.5.2 and above only
    + +
    ArgumentTypeDefault
    mtimetime_t
    +

  • +
  • setSourceSize (size) +
    Not Implemented
    +

  • +
  • setSourceSize64 (size) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    sizeKIO.filesize_t
    +

  • +
  • slotCanResume (job, offset) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    jobKIO.Job
    offsetKIO.filesize_t
    +

  • +
  • slotData (a0, data) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    a0KIO.Job
    dataQByteArray
    +

  • +
  • slotDataReq (a0, data) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    a0KIO.Job
    dataQByteArray
    +

  • +
  • slotPercent (job, pct) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    jobKIO.Job
    pctulong
    +

  • +
  • slotProcessedSize (job, size) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    jobKIO.Job
    sizeKIO.filesize_t
    +

  • +
  • slotResult (job) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    jobKIO.Job
    +

  • +
  • slotStart () +
    +
    returns nothing

  • +
  • slotTotalSize (job, size) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    jobKIO.Job
    sizeKIO.filesize_t
    +

  • +
  • srcURL () +
    +
    returns (KURL)

  • +
  • startCopyJob () +
    +
    returns nothing

  • +
  • startCopyJob (slave_url) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    slave_urlKURL
    +

  • +
  • startDataPump () +
    +
    returns nothing

  • +
  • startRenameJob (slave_url) +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only
    + +
    ArgumentTypeDefault
    slave_urlKURL
    +

  • +
+ + + diff --git a/doc/classref/kio/KIO.ForwardingSlaveBase.html b/doc/classref/kio/KIO.ForwardingSlaveBase.html new file mode 100644 index 0000000..2d128f0 --- /dev/null +++ b/doc/classref/kio/KIO.ForwardingSlaveBase.html @@ -0,0 +1,166 @@ + + + + + class KIO.ForwardingSlaveBase + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KIO.ForwardingSlaveBase


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKIO.ForwardingSlaveBase (abstract)
InheritsQObject, KIO.SlaveBase
+

methods

    +
  • ForwardingSlaveBase (protocol, poolSocket, appSocket) +
    + +
    returns a ForwardingSlaveBase instance
    In versions KDE 3.4.0 and above only
    + + + +
    ArgumentTypeDefault
    protocolQCString
    poolSocketQCString
    appSocketQCString
    +

  • +
  • chmod (url, permissions) +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only
    + + +
    ArgumentTypeDefault
    urlKURL
    permissionsint
    +

  • +
  • copy (src, dest, permissions, overwrite) +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only
    + + + + +
    ArgumentTypeDefault
    srcKURL
    destKURL
    permissionsint
    overwritebool
    +

  • +
  • del_ (url, isfile) +
    + + +
    returns nothing
    Renamed: was ' del' in C++
    In versions KDE 3.4.0 and above only
    + + +
    ArgumentTypeDefault
    urlKURL
    isfilebool
    +

  • +
  • get (url) +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only
    + +
    ArgumentTypeDefault
    urlKURL
    +

  • +
  • listDir (url) +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only
    + +
    ArgumentTypeDefault
    urlKURL
    +

  • +
  • mimetype (url) +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only
    + +
    ArgumentTypeDefault
    urlKURL
    +

  • +
  • mkdir (url, permissions) +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only
    + + +
    ArgumentTypeDefault
    urlKURL
    permissionsint
    +

  • +
  • prepareUDSEntry (entry, listing = 0) +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only
    + + +
    ArgumentTypeDefault
    entryKIO.UDSEntry
    listingbool0
    +

  • +
  • processedURL () +
    + +
    returns (KURL)
    In versions KDE 3.4.0 and above only

  • +
  • put (url, permissions, overwrite, resume) +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only
    + + + + +
    ArgumentTypeDefault
    urlKURL
    permissionsint
    overwritebool
    resumebool
    +

  • +
  • rename (src, dest, overwrite) +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only
    + + + +
    ArgumentTypeDefault
    srcKURL
    destKURL
    overwritebool
    +

  • +
  • requestedURL () +
    + +
    returns (KURL)
    In versions KDE 3.4.0 and above only

  • +
  • rewriteURL (url, newURL) = 0 +
    + + +
    returns (bool)
    In versions KDE 3.4.0 and above only
    pure virtual
    + + +
    ArgumentTypeDefault
    urlKURL
    newURLKURL
    +

  • +
  • stat (url) +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only
    + +
    ArgumentTypeDefault
    urlKURL
    +

  • +
  • symlink (target, dest, overwrite) +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only
    + + + +
    ArgumentTypeDefault
    targetQString
    destKURL
    overwritebool
    +

  • +
+ + + diff --git a/doc/classref/kio/KIO.Job.html b/doc/classref/kio/KIO.Job.html new file mode 100644 index 0000000..316aa49 --- /dev/null +++ b/doc/classref/kio/KIO.Job.html @@ -0,0 +1,307 @@ + + + + + class KIO.Job + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KIO.Job


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKIO.Job
InheritsQObject
+

methods

    +
  • Job (showProgressInfo) +
    +
    returns a Job instance
    + +
    ArgumentTypeDefault
    showProgressInfobool
    +

  • +
  • addMetaData (key, value) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    keyQString
    valueQString
    +

  • +
  • addMetaData (values) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    valuesQMap
    +

  • +
  • addSubjob (job, inheritMetaData = 1) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    jobKIO.Job
    inheritMetaDatabool1
    +

  • +
  • canceled (job) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    jobKIO.Job
    +

  • +
  • connected (job) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    jobKIO.Job
    +

  • +
  • detailedErrorStrings (reqUrl = 0, method = -1) +
    +
    returns (QStringList)
    + + +
    ArgumentTypeDefault
    reqUrlKURL0
    methodint-1
    +

  • +
  • emitPercent (processedSize, totalSize) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    processedSizeKIO.filesize_t
    totalSizeKIO.filesize_t
    +

  • +
  • emitResult () +
    +
    returns nothing

  • +
  • emitSpeed (speed) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    speedulong
    +

  • +
  • error () +
    +
    returns (int)

  • +
  • errorString () +
    +
    returns (QString)

  • +
  • errorText () +
    +
    returns (QString)

  • +
  • extraFlags () +
    Not Implemented
    +

  • +
  • extraFlags () +
    + +
    returns (int),
    In versions KDE 3.2.0 and above, but less than KDE 3.2.2

  • +
  • getProcessedSize () +
    + +
    returns (KIO.filesize_t)
    In versions KDE 3.2.0 and above only

  • +
  • infoMessage (job, msg) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    jobKIO.Job
    msgQString
    +

  • +
  • isAutoErrorHandlingEnabled () +
    +
    returns (bool)

  • +
  • isAutoWarningHandlingEnabled () +
    + +
    returns (bool)
    In versions KDE 3.5.0 and above only

  • +
  • isInteractive () +
    + +
    returns (bool)
    In versions KDE 3.4.3 and above only

  • +
  • kill (quietly = 1) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    quietlybool1
    +

  • +
  • mergeMetaData (values) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    valuesQMap
    +

  • +
  • metaData () +
    +
    returns (KIO.MetaData)

  • +
  • outgoingMetaData () +
    +
    returns (KIO.MetaData)

  • +
  • parentJob () +
    + +
    returns (KIO.Job)
    In versions KDE 3.1.0 and above only

  • +
  • percent (job, percent) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    jobKIO.Job
    percentulong
    +

  • +
  • processedSize (job, size) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    jobKIO.Job
    sizeKIO.filesize_t
    +

  • +
  • progressId () +
    +
    returns (int)

  • +
  • queryMetaData (key) +
    +
    returns (QString)
    + +
    ArgumentTypeDefault
    keyQString
    +

  • +
  • removeSubjob (job) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    jobKIO.Job
    +

  • +
  • removeSubjob (job, mergeMetaData, emitResultIfLast) +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only
    + + + +
    ArgumentTypeDefault
    jobKIO.Job
    mergeMetaDatabool
    emitResultIfLastbool
    +

  • +
  • result (job) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    jobKIO.Job
    +

  • +
  • setAutoErrorHandlingEnabled (enable, parentWidget = 0) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    enablebool
    parentWidgetQWidget0
    +

  • +
  • setAutoWarningHandlingEnabled (enable) +
    + +
    returns nothing
    In versions KDE 3.5.0 and above only
    + +
    ArgumentTypeDefault
    enablebool
    +

  • +
  • setInteractive (enable) +
    + +
    returns nothing
    In versions KDE 3.4.3 and above only
    + +
    ArgumentTypeDefault
    enablebool
    +

  • +
  • setMetaData (metaData) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    metaDataKIO.MetaData
    +

  • +
  • setParentJob (parentJob) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    parentJobKIO.Job
    +

  • +
  • setProcessedSize (size) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    sizeKIO.filesize_t
    +

  • +
  • setWindow (window) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    windowQWidget
    +

  • +
  • showErrorDialog (parent = 0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    parentQWidget0
    +

  • +
  • slotInfoMessage (job, msg) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    jobKIO.Job
    msgQString
    +

  • +
  • slotResult (job) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    jobKIO.Job
    +

  • +
  • slotSpeed (job, speed) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    jobKIO.Job
    speedulong
    +

  • +
  • slotSpeedTimeout () +
    +
    returns nothing

  • +
  • speed (job, speed) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    jobKIO.Job
    speedulong
    +

  • +
  • totalSize (job, size) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    jobKIO.Job
    sizeKIO.filesize_t
    +

  • +
  • warning (job, msg) +
    + +
    returns nothing
    In versions KDE 3.5.0 and above only
    + + +
    ArgumentTypeDefault
    jobKIO.Job
    msgQString
    +

  • +
  • window () +
    +
    returns (QWidget)

  • +
+ + + diff --git a/doc/classref/kio/KIO.ListJob.html b/doc/classref/kio/KIO.ListJob.html new file mode 100644 index 0000000..eceb611 --- /dev/null +++ b/doc/classref/kio/KIO.ListJob.html @@ -0,0 +1,126 @@ + + + + + class KIO.ListJob + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KIO.ListJob


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKIO.ListJob
InheritsKIO.SimpleJob
+

methods

    +
  • ListJob (url, showProgressInfo, recursive = 0, prefix = QString .null, includeHidden = 1) +
    +
    returns a ListJob instance
    + + + + + +
    ArgumentTypeDefault
    urlKURL
    showProgressInfobool
    recursivebool0
    prefixQStringQString .null
    includeHiddenbool1
    +

  • +
  • entries (job, list) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    jobKIO.Job
    listKIO.UDSEntryList
    +

  • +
  • gotEntries (subjob, list) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    subjobKIO.Job
    listKIO.UDSEntryList
    +

  • +
  • permanentRedirection (job, fromUrl, toUrl) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + + + +
    ArgumentTypeDefault
    jobKIO.Job
    fromUrlKURL
    toUrlKURL
    +

  • +
  • redirection (job, url) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    jobKIO.Job
    urlKURL
    +

  • +
  • redirectionURL () +
    + +
    returns (KURL)
    In versions KDE 3.4.3 and above only

  • +
  • setUnrestricted (unrestricted) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    unrestrictedbool
    +

  • +
  • slotFinished () +
    +
    returns nothing

  • +
  • slotListEntries (list) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    listKIO.UDSEntryList
    +

  • +
  • slotMetaData (_metaData) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    _metaDataKIO.MetaData
    +

  • +
  • slotRedirection (url) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    urlKURL
    +

  • +
  • slotResult (job) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    jobKIO.Job
    +

  • +
  • start (slave) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    slaveKIO.Slave
    +

  • +
+ + + diff --git a/doc/classref/kio/KIO.MetaInfoJob.html b/doc/classref/kio/KIO.MetaInfoJob.html new file mode 100644 index 0000000..1d5ae90 --- /dev/null +++ b/doc/classref/kio/KIO.MetaInfoJob.html @@ -0,0 +1,91 @@ + + + + + class KIO.MetaInfoJob + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KIO.MetaInfoJob


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKIO.MetaInfoJob
InheritsKIO.Job
+

methods

    +
  • MetaInfoJob (items, deleteItems = 0) +
    + +
    returns a MetaInfoJob instance
    In versions KDE 3.1.0 and above only
    + + +
    ArgumentTypeDefault
    itemsKFileItemList
    deleteItemsbool0
    +

  • +
  • availablePlugins () +
    + + +
    returns (QStringList)
    In versions KDE 3.1.0 and above only
    static

  • +
  • failed (item) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    itemKFileItem
    +

  • +
  • getMetaInfo () +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only

  • +
  • gotMetaInfo (item) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    itemKFileItem
    +

  • +
  • removeItem (item) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    itemKFileItem
    +

  • +
  • slotResult (job) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    jobKIO.Job
    +

  • +
  • supportedMimeTypes () +
    + + +
    returns (QStringList)
    In versions KDE 3.1.0 and above only
    static

  • +
+ + + diff --git a/doc/classref/kio/KIO.MimetypeJob.html b/doc/classref/kio/KIO.MimetypeJob.html new file mode 100644 index 0000000..aa3e480 --- /dev/null +++ b/doc/classref/kio/KIO.MimetypeJob.html @@ -0,0 +1,62 @@ + + + + + class KIO.MimetypeJob + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KIO.MimetypeJob


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKIO.MimetypeJob
InheritsKIO.TransferJob
+

methods

    +
  • MimetypeJob (url, command, packedArgs, showProgressInfo) +
    +
    returns a MimetypeJob instance
    + + + + +
    ArgumentTypeDefault
    urlKURL
    commandint
    packedArgsQByteArray
    showProgressInfobool
    +

  • +
  • mimetype () +
    +
    returns (QString)

  • +
  • slotFinished () +
    +
    returns nothing

  • +
  • start (slave) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    slaveKIO.Slave
    +

  • +
+ + + diff --git a/doc/classref/kio/KIO.MkdirJob.html b/doc/classref/kio/KIO.MkdirJob.html new file mode 100644 index 0000000..0f3d44e --- /dev/null +++ b/doc/classref/kio/KIO.MkdirJob.html @@ -0,0 +1,94 @@ + + + + + class KIO.MkdirJob + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KIO.MkdirJob


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKIO.MkdirJob
InheritsKIO.SimpleJob
+

methods

    +
  • MkdirJob (url, command, packedArgs, showProgressInfo) +
    + +
    returns a MkdirJob instance
    In versions KDE 3.3.0 and above only
    + + + + +
    ArgumentTypeDefault
    urlKURL
    commandint
    packedArgsQByteArray
    showProgressInfobool
    +

  • +
  • permanentRedirection (job, fromUrl, toUrl) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + + + +
    ArgumentTypeDefault
    jobKIO.Job
    fromUrlKURL
    toUrlKURL
    +

  • +
  • redirection (job, url) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + + +
    ArgumentTypeDefault
    jobKIO.Job
    urlKURL
    +

  • +
  • slotFinished () +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only

  • +
  • slotRedirection (url) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    urlKURL
    +

  • +
  • start (slave) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    slaveKIO.Slave
    +

  • +
  • virtual_hook (id, data) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + + +
    ArgumentTypeDefault
    idint
    datavoid
    +

  • +
+ + + diff --git a/doc/classref/kio/KIO.MultiGetJob.html b/doc/classref/kio/KIO.MultiGetJob.html new file mode 100644 index 0000000..b6cb0aa --- /dev/null +++ b/doc/classref/kio/KIO.MultiGetJob.html @@ -0,0 +1,103 @@ + + + + + class KIO.MultiGetJob + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KIO.MultiGetJob


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKIO.MultiGetJob
InheritsKIO.TransferJob
+

methods

    +
  • MultiGetJob (url, showProgressInfo) +
    +
    returns a MultiGetJob instance
    + + +
    ArgumentTypeDefault
    urlKURL
    showProgressInfobool
    +

  • +
  • data (id, data) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    idlong
    dataQByteArray
    +

  • +
  • get (id, url, metaData) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    idlong
    urlKURL
    metaDataKIO.MetaData
    +

  • +
  • mimetype (id, type) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    idlong
    typeQString
    +

  • +
  • result (id) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    idlong
    +

  • +
  • slotData (data) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    dataQByteArray
    +

  • +
  • slotFinished () +
    +
    returns nothing

  • +
  • slotMimetype (mimetype) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    mimetypeQString
    +

  • +
  • slotRedirection (url) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    urlKURL
    +

  • +
  • start (slave) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    slaveKIO.Slave
    +

  • +
+ + + diff --git a/doc/classref/kio/KIO.NetAccess.html b/doc/classref/kio/KIO.NetAccess.html new file mode 100644 index 0000000..dbe0304 --- /dev/null +++ b/doc/classref/kio/KIO.NetAccess.html @@ -0,0 +1,323 @@ + + + + + class KIO.NetAccess + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KIO.NetAccess


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKIO.NetAccess
InheritsQObject
+

methods

    +
  • NetAccess () +
    +
    returns a NetAccess instance

  • +
  • copy (src, target, window) +
    + + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    static
    + + + +
    ArgumentTypeDefault
    srcKURL
    targetKURL
    windowQWidget
    +

  • +
  • copy (src, target) +
    + +
    returns (bool)
    static
    + + +
    ArgumentTypeDefault
    srcKURL
    targetKURL
    +

  • +
  • del_ (url, window) +
    + + + +
    returns (bool)
    Renamed: was ' del' in C++
    In versions KDE 3.2.0 and above only
    static
    + + +
    ArgumentTypeDefault
    urlKURL
    windowQWidget
    +

  • +
  • del_ (url) +
    + + +
    returns (bool)
    Renamed: was ' del' in C++
    static
    + +
    ArgumentTypeDefault
    urlKURL
    +

  • +
  • dircopy (src, target, window) +
    + + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    static
    + + + +
    ArgumentTypeDefault
    srcKURL
    targetKURL
    windowQWidget
    +

  • +
  • dircopy (src, target) +
    + +
    returns (bool)
    static
    + + +
    ArgumentTypeDefault
    srcKURL
    targetKURL
    +

  • +
  • dircopy (src, target, window = 0) +
    + + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    static
    + + + +
    ArgumentTypeDefault
    srcKURL.List
    targetKURL
    windowQWidget0
    +

  • +
  • download (src, target, window) +
    + + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    static
    + + + +
    ArgumentTypeDefault
    srcKURL
    targetQString
    windowQWidget
    +

  • +
  • download (src, target) +
    + +
    returns (bool)
    static
    + + +
    ArgumentTypeDefault
    srcKURL
    targetQString
    +

  • +
  • exists (url, source, window) +
    + + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    static
    + + + +
    ArgumentTypeDefault
    urlKURL
    sourcebool
    windowQWidget
    +

  • +
  • exists (url, window) +
    + + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    static
    + + +
    ArgumentTypeDefault
    urlKURL
    windowQWidget
    +

  • +
  • exists (url) +
    + +
    returns (bool)
    static
    + +
    ArgumentTypeDefault
    urlKURL
    +

  • +
  • exists (url, source) +
    + + +
    returns (bool)
    In versions KDE 3.1.0 and above only
    static
    + + +
    ArgumentTypeDefault
    urlKURL
    sourcebool
    +

  • +
  • file_copy (src, dest, permissions = -1, overwrite = 0, resume = 0, window = 0) +
    + + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    static
    + + + + + + +
    ArgumentTypeDefault
    srcKURL
    destKURL
    permissionsint-1
    overwritebool0
    resumebool0
    windowQWidget0
    +

  • +
  • file_move (src, target, permissions = -1, overwrite = 0, resume = 0, window = 0) +
    + + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    static
    + + + + + + +
    ArgumentTypeDefault
    srcKURL
    targetKURL
    permissionsint-1
    overwritebool0
    resumebool0
    windowQWidget0
    +

  • +
  • fish_execute (url, command, window) +
    + + +
    returns (QString)
    In versions KDE 3.2.0 and above only
    static
    + + + +
    ArgumentTypeDefault
    urlKURL
    commandQString
    windowQWidget
    +

  • +
  • lastError () +
    + + +
    returns (int)
    In versions KDE 3.3.0 and above only
    static

  • +
  • lastErrorString () +
    + +
    returns (QString)
    static

  • +
  • mimetype (url, window) +
    + + +
    returns (QString)
    In versions KDE 3.2.0 and above only
    static
    + + +
    ArgumentTypeDefault
    urlKURL
    windowQWidget
    +

  • +
  • mimetype (url) +
    Not Implemented
    +

  • +
  • mkdir (url, window, permissions = -1) +
    + + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    static
    + + + +
    ArgumentTypeDefault
    urlKURL
    windowQWidget
    permissionsint-1
    +

  • +
  • mkdir (url, permissions = -1) +
    + +
    returns (bool)
    static
    + + +
    ArgumentTypeDefault
    urlKURL
    permissionsint-1
    +

  • +
  • mostLocalURL (url, window) +
    + + +
    returns (KURL)
    In versions KDE 3.5.0 and above only
    static
    + + +
    ArgumentTypeDefault
    urlKURL
    windowQWidget
    +

  • +
  • move (src, target, window = 0) +
    + + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    static
    + + + +
    ArgumentTypeDefault
    srcKURL
    targetKURL
    windowQWidget0
    +

  • +
  • move (src, target, window = 0) +
    + + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    static
    + + + +
    ArgumentTypeDefault
    srcKURL.List
    targetKURL
    windowQWidget0
    +

  • +
  • removeTempFile (name) +
    + +
    returns nothing
    static
    + +
    ArgumentTypeDefault
    nameQString
    +

  • +
  • stat (url, entry, window) +
    + + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    static
    + + + +
    ArgumentTypeDefault
    urlKURL
    entryKIO.UDSEntry
    windowQWidget
    +

  • +
  • stat (url, entry) +
    + +
    returns (bool)
    static
    + + +
    ArgumentTypeDefault
    urlKURL
    entryKIO.UDSEntry
    +

  • +
  • synchronousRun (job, window, data = 0, finalURL = 0, metaData = 0) +
    + + +
    returns (bool)
    In versions KDE 3.3.1 and above only
    static
    + + + + + +
    ArgumentTypeDefault
    jobKIO.Job
    windowQWidget
    dataQByteArray0
    finalURLKURL0
    metaDataQMap0
    +

  • +
  • upload (src, target, window) +
    + + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    static
    + + + +
    ArgumentTypeDefault
    srcQString
    targetKURL
    windowQWidget
    +

  • +
  • upload (src, target) +
    + +
    returns (bool)
    static
    + + +
    ArgumentTypeDefault
    srcQString
    targetKURL
    +

  • +
  • ~NetAccess () +
    +
    returns nothing

  • +
+ + + diff --git a/doc/classref/kio/KIO.NetRC.AutoLogin.html b/doc/classref/kio/KIO.NetRC.AutoLogin.html new file mode 100644 index 0000000..a7ee15a --- /dev/null +++ b/doc/classref/kio/KIO.NetRC.AutoLogin.html @@ -0,0 +1,47 @@ + + + + + class KIO.NetRC.AutoLogin + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KIO.NetRC.AutoLogin


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKIO.NetRC.AutoLogin
Inherits
+

variables

  • +variables + + + + + +
    VariableType
    loginQString
    macdefKStringListMap
    machineQString
    passwordQString
    typeQString
+ + + diff --git a/doc/classref/kio/KIO.NetRC.html b/doc/classref/kio/KIO.NetRC.html new file mode 100644 index 0000000..6f38e58 --- /dev/null +++ b/doc/classref/kio/KIO.NetRC.html @@ -0,0 +1,90 @@ + + + + + class KIO.NetRC + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KIO.NetRC


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKIO.NetRC
Inherits
+

enums

    +
  • LookUpMode = {exactOnly, defaultOnly, presetOnly +}
+

methods

    +
  • NetRC () +
    +
    returns a NetRC instance

  • +
  • extract (a0, a1) +
    Not Implemented
    +

  • +
  • lookup (url, login, userealnetrc = 0, type = QString .null, mode = 6) +
    +
    returns (bool)
    + + + + + +
    ArgumentTypeDefault
    urlKURL
    loginKIO.NetRC.AutoLogin
    userealnetrcbool0
    typeQStringQString .null
    modeint6
    +

  • +
  • openf (a0) +
    +
    returns (int)
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • parse (a0) +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • parse (a0) +
    + +
    returns nothing
    In versions less than KDE 3.2.0 only
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • reload () +
    +
    returns nothing

  • +
  • self () +
    + +
    returns (KIO.NetRC)
    static

  • +
  • ~NetRC () +
    +
    returns nothing

  • +
+ + + diff --git a/doc/classref/kio/KIO.PasswordDialog.html b/doc/classref/kio/KIO.PasswordDialog.html new file mode 100644 index 0000000..da5d171 --- /dev/null +++ b/doc/classref/kio/KIO.PasswordDialog.html @@ -0,0 +1,120 @@ + + + + + class KIO.PasswordDialog + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KIO.PasswordDialog


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKIO.PasswordDialog
InheritsKDialogBase
+

methods

    +
  • PasswordDialog (prompt, user, enableKeep = 0, modal = 1, parent = 0, name = 0) +
    +
    returns a PasswordDialog instance
    + + + + + + +
    ArgumentTypeDefault
    promptQString
    userQString
    enableKeepbool0
    modalbool1
    parentQWidget0
    namechar0
    +

  • +
  • addCommentLine (label, comment) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    labelQString
    commentQString
    +

  • +
  • getNameAndPassword (keep, prompt = QString .null, readOnly = 0, caption = QString .null, comment = QString .null, label = QString .null) +
    + +
    returns (int) user (QString) pass (QString) keep (bool)
    static
    + + + + + + +
    ArgumentTypeDefault
    keepbool
    promptQStringQString .null
    readOnlybool0
    captionQStringQString .null
    commentQStringQString .null
    labelQStringQString .null
    +

  • +
  • keepPassword () +
    +
    returns (bool)

  • +
  • password () +
    +
    returns (QString)

  • +
  • setEnableUserField (enable, a0 = 0) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    enablebool
    a0bool0
    +

  • +
  • setKeepPassword (b) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    bbool
    +

  • +
  • setKnownLogins (knownLogins) +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only
    + +
    ArgumentTypeDefault
    knownLoginsQMap
    +

  • +
  • setPassword (password) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    passwordQString
    +

  • +
  • setPrompt (prompt) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    promptQString
    +

  • +
  • setUserReadOnly (readOnly) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    readOnlybool
    +

  • +
  • username () +
    +
    returns (QString)

  • +
+ + + diff --git a/doc/classref/kio/KIO.PreviewJob.html b/doc/classref/kio/KIO.PreviewJob.html new file mode 100644 index 0000000..6be978d --- /dev/null +++ b/doc/classref/kio/KIO.PreviewJob.html @@ -0,0 +1,114 @@ + + + + + class KIO.PreviewJob + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KIO.PreviewJob


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKIO.PreviewJob
InheritsKIO.Job
+

methods

    +
  • PreviewJob (items, width, height, iconSize, iconAlpha, scale, save, enabledPlugins, deleteItems = 0) +
    +
    returns a PreviewJob instance
    + + + + + + + + + +
    ArgumentTypeDefault
    itemsKFileItemList
    widthint
    heightint
    iconSizeint
    iconAlphaint
    scalebool
    savebool
    enabledPluginsQStringList
    deleteItemsbool0
    +

  • +
  • availablePlugins () +
    + +
    returns (QStringList)
    static

  • +
  • createThumbnail (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • failed (item) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    itemKFileItem
    +

  • +
  • getOrCreateThumbnail () +
    +
    returns nothing

  • +
  • gotPreview (item, preview) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    itemKFileItem
    previewQPixmap
    +

  • +
  • kill (quietly = 1) +
    + +
    returns nothing
    In versions KDE 3.5.1 and above only
    + +
    ArgumentTypeDefault
    quietlybool1
    +

  • +
  • removeItem (item) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    itemKFileItem
    +

  • +
  • setIgnoreMaximumSize (ignoreSize = 1) +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only
    + +
    ArgumentTypeDefault
    ignoreSizebool1
    +

  • +
  • slotResult (job) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    jobKIO.Job
    +

  • +
  • statResultThumbnail () +
    +
    returns (bool)

  • +
  • supportedMimeTypes () +
    + +
    returns (QStringList)
    static

  • +
+ + + diff --git a/doc/classref/kio/KIO.ProgressBase.html b/doc/classref/kio/KIO.ProgressBase.html new file mode 100644 index 0000000..dac6443 --- /dev/null +++ b/doc/classref/kio/KIO.ProgressBase.html @@ -0,0 +1,201 @@ + + + + + class KIO.ProgressBase + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KIO.ProgressBase


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKIO.ProgressBase
InheritsQWidget
+

methods

    +
  • ProgressBase (parent) +
    +
    returns a ProgressBase instance
    + +
    ArgumentTypeDefault
    parentQWidget
    +

  • +
  • closeEvent (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QCloseEvent
    +

  • +
  • finished () +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only

  • +
  • onlyClean () +
    +
    returns (bool)

  • +
  • setJob (job) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    jobKIO.Job
    +

  • +
  • setJob (job) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    jobKIO.CopyJob
    +

  • +
  • setJob (job) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    jobKIO.DeleteJob
    +

  • +
  • setOnlyClean (onlyClean) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    onlyCleanbool
    +

  • +
  • setStopOnClose (stopOnClose) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    stopOnClosebool
    +

  • +
  • slotCanResume (job, from) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    jobKIO.Job
    fromKIO.filesize_t
    +

  • +
  • slotClean () +
    +
    returns nothing

  • +
  • slotCopying (job, src, dest) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    jobKIO.Job
    srcKURL
    destKURL
    +

  • +
  • slotCreatingDir (job, dir) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    jobKIO.Job
    dirKURL
    +

  • +
  • slotDeleting (job, url) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    jobKIO.Job
    urlKURL
    +

  • +
  • slotFinished (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KIO.Job
    +

  • +
  • slotMoving (job, src, dest) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    jobKIO.Job
    srcKURL
    destKURL
    +

  • +
  • slotPercent (job, percent) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    jobKIO.Job
    percentulong
    +

  • +
  • slotProcessedDirs (job, dirs) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    jobKIO.Job
    dirsulong
    +

  • +
  • slotProcessedFiles (job, files) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    jobKIO.Job
    filesulong
    +

  • +
  • slotProcessedSize (job, bytes) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    jobKIO.Job
    bytesKIO.filesize_t
    +

  • +
  • slotSpeed (job, speed) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    jobKIO.Job
    speedulong
    +

  • +
  • slotStop () +
    +
    returns nothing

  • +
  • slotTotalDirs (job, dirs) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    jobKIO.Job
    dirsulong
    +

  • +
  • slotTotalFiles (job, files) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    jobKIO.Job
    filesulong
    +

  • +
  • slotTotalSize (job, size) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    jobKIO.Job
    sizeKIO.filesize_t
    +

  • +
  • stopOnClose () +
    +
    returns (bool)

  • +
  • stopped () +
    +
    returns nothing

  • +
+ + + diff --git a/doc/classref/kio/KIO.Scheduler.html b/doc/classref/kio/KIO.Scheduler.html new file mode 100644 index 0000000..2eb5c09 --- /dev/null +++ b/doc/classref/kio/KIO.Scheduler.html @@ -0,0 +1,267 @@ + + + + + class KIO.Scheduler + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KIO.Scheduler


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKIO.Scheduler
InheritsQObject, DCOPObject
+

methods

    +
  • Scheduler () +
    +
    returns a Scheduler instance

  • +
  • Scheduler (a0) +
    +
    returns a Scheduler instance
    + +
    ArgumentTypeDefault
    a0KIO.Scheduler
    +

  • +
  • assignJobToSlave (slave, job) +
    + +
    returns (bool)
    static
    + + +
    ArgumentTypeDefault
    slaveKIO.Slave
    jobKIO.SimpleJob
    +

  • +
  • cancelJob (job) +
    + +
    returns nothing
    static
    + +
    ArgumentTypeDefault
    jobKIO.SimpleJob
    +

  • +
  • checkSlaveOnHold (b) +
    + +
    returns nothing
    static
    + +
    ArgumentTypeDefault
    bbool
    +

  • +
  • connect (signal, receiver, member) +
    + +
    returns (bool)
    static
    + + + +
    ArgumentTypeDefault
    signalchar
    receiverQObject
    memberchar
    +

  • +
  • connect (sender, signal, receiver, member) +
    + +
    returns (bool)
    static
    + + + + +
    ArgumentTypeDefault
    senderQObject
    signalchar
    receiverQObject
    memberchar
    +

  • +
  • connect (sender, signal, member) +
    +
    returns (bool)
    + + + +
    ArgumentTypeDefault
    senderQObject
    signalchar
    memberchar
    +

  • +
  • debug_info () +
    +
    returns nothing

  • +
  • disconnect (sender, signal, receiver, member) +
    + +
    returns (bool)
    static
    + + + + +
    ArgumentTypeDefault
    senderQObject
    signalchar
    receiverQObject
    memberchar
    +

  • +
  • disconnectSlave (slave) +
    + +
    returns (bool)
    static
    + +
    ArgumentTypeDefault
    slaveKIO.Slave
    +

  • +
  • doJob (job) +
    + +
    returns nothing
    static
    + +
    ArgumentTypeDefault
    jobKIO.SimpleJob
    +

  • +
  • functions () +
    +
    returns (QCStringList)

  • +
  • getConnectedSlave (url, config) +
    + +
    returns (KIO.Slave)
    static
    + + +
    ArgumentTypeDefault
    urlKURL
    configKIO.MetaData
    +
    There is no default value for config (KIO.MetaData) - pass an +empty Python dict if you need the default value +

  • +
  • jobFinished (job, slave) +
    + +
    returns nothing
    static
    + + +
    ArgumentTypeDefault
    jobKIO.SimpleJob
    slaveKIO.Slave
    +

  • +
  • process (fun, data, replyType, replyData) +
    +
    returns (bool)
    + + + + +
    ArgumentTypeDefault
    funQCString
    dataQByteArray
    replyTypeQCString
    replyDataQByteArray
    +

  • +
  • publishSlaveOnHold () +
    + +
    returns nothing
    static

  • +
  • putSlaveOnHold (job, url) +
    + +
    returns nothing
    static
    + + +
    ArgumentTypeDefault
    jobKIO.SimpleJob
    urlKURL
    +

  • +
  • registerWindow (wid) +
    + + +
    returns nothing
    In versions KDE 3.1.0 and above only
    static
    + +
    ArgumentTypeDefault
    widQWidget
    +

  • +
  • removeSlaveOnHold () +
    + +
    returns nothing
    static

  • +
  • scheduleJob (job) +
    + +
    returns nothing
    static
    + +
    ArgumentTypeDefault
    jobKIO.SimpleJob
    +

  • +
  • setupSlave (slave, url, protocol, proxy, newSlave, config = 0) +
    +
    returns nothing
    + + + + + + +
    ArgumentTypeDefault
    slaveKIO.Slave
    urlKURL
    protocolQString
    proxyQString
    newSlavebool
    configKIO.MetaData0
    +

  • +
  • slaveConnected (slave) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    slaveKIO.Slave
    +

  • +
  • slaveError (slave, error, errorMsg) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    slaveKIO.Slave
    errorint
    errorMsgQString
    +

  • +
  • slotCleanIdleSlaves () +
    +
    returns nothing

  • +
  • slotScheduleCoSlave () +
    +
    returns nothing

  • +
  • slotSlaveConnected () +
    +
    returns nothing

  • +
  • slotSlaveDied (slave) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    slaveKIO.Slave
    +

  • +
  • slotSlaveError (error, errorMsg) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    errorint
    errorMsgQString
    +

  • +
  • slotSlaveStatus (pid, protocol, host, connected) +
    +
    returns nothing
    + + + + +
    ArgumentTypeDefault
    pidpid_t
    protocolQCString
    hostQString
    connectedbool
    +

  • +
  • slotUnregisterWindow (a0) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    a0QObject
    +

  • +
  • startJobDirect () +
    +
    returns (bool)

  • +
  • startJobScheduled (protInfo) +
    Not Implemented
    +

  • +
  • startStep () +
    +
    returns nothing

  • +
  • unregisterWindow (wid) +
    + + +
    returns nothing
    In versions KDE 3.2.0 and above only
    static
    + +
    ArgumentTypeDefault
    widQObject
    +

  • +
+ + + diff --git a/doc/classref/kio/KIO.SessionData.html b/doc/classref/kio/KIO.SessionData.html new file mode 100644 index 0000000..befffc2 --- /dev/null +++ b/doc/classref/kio/KIO.SessionData.html @@ -0,0 +1,69 @@ + + + + + class KIO.SessionData + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KIO.SessionData


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKIO.SessionData
InheritsQObject
+

methods

    +
  • SessionData () +
    +
    returns a SessionData instance

  • +
  • configDataFor (configData, proto, host) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    configDataKIO.MetaData
    protoQString
    hostQString
    +

  • +
  • reset () +
    +
    returns nothing

  • +
  • slotAuthData (a0, a1, a2) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    a0QCString
    a1QCString
    a2bool
    +

  • +
  • slotDelAuthData (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QCString
    +

  • +
+ + + diff --git a/doc/classref/kio/KIO.SimpleJob.html b/doc/classref/kio/KIO.SimpleJob.html new file mode 100644 index 0000000..afbe23e --- /dev/null +++ b/doc/classref/kio/KIO.SimpleJob.html @@ -0,0 +1,148 @@ + + + + + class KIO.SimpleJob + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KIO.SimpleJob


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKIO.SimpleJob
InheritsKIO.Job
+

methods

    +
  • SimpleJob (url, command, packedArgs, showProgressInfo) +
    +
    returns a SimpleJob instance
    + + + + +
    ArgumentTypeDefault
    urlKURL
    commandint
    packedArgsQByteArray
    showProgressInfobool
    +

  • +
  • command () +
    +
    returns (int)

  • +
  • kill (quietly = 1) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    quietlybool1
    +

  • +
  • putOnHold () +
    +
    returns nothing

  • +
  • removeOnHold () +
    + +
    returns nothing
    static

  • +
  • slave () +
    +
    returns (KIO.Slave)

  • +
  • slaveDone () +
    +
    returns nothing

  • +
  • slotConnected () +
    +
    returns nothing

  • +
  • slotError (a0, a1) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    a0int
    a1QString
    +

  • +
  • slotFinished () +
    +
    returns nothing

  • +
  • slotInfoMessage (s) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    sQString
    +

  • +
  • slotMetaData (_metaData) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    _metaDataKIO.MetaData
    +

  • +
  • slotNeedProgressId () +
    +
    returns nothing

  • +
  • slotProcessedSize (data_size) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    data_sizeKIO.filesize_t
    +

  • +
  • slotSpeed (speed) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    speedulong
    +

  • +
  • slotTotalSize (data_size) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    data_sizeKIO.filesize_t
    +

  • +
  • slotTotalSize (a0) +
    + +
    returns nothing
    In versions less than KDE 3.1.0 only
    + +
    ArgumentTypeDefault
    a0KIO.filesize_t
    +

  • +
  • slotWarning (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • start (slave) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    slaveKIO.Slave
    +

  • +
  • storeSSLSessionFromJob (m_redirectionURL) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    m_redirectionURLKURL
    +

  • +
  • url () +
    +
    returns (KURL)

  • +
+ + + diff --git a/doc/classref/kio/KIO.Slave.html b/doc/classref/kio/KIO.Slave.html new file mode 100644 index 0000000..101eb66 --- /dev/null +++ b/doc/classref/kio/KIO.Slave.html @@ -0,0 +1,200 @@ + + + + + class KIO.Slave + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KIO.Slave


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKIO.Slave
InheritsKIO.SlaveInterface
+

methods

    +
  • Slave (derived, unixdomain, protocol, socketname) +
    + +
    returns a Slave instance
    In versions KDE 3.2.0 and above only
    + + + + +
    ArgumentTypeDefault
    derivedbool
    unixdomainKServerSocket
    protocolQString
    socketnameQString
    +

  • +
  • Slave (unixdomain, protocol, socketname) +
    +
    returns a Slave instance
    + + + +
    ArgumentTypeDefault
    unixdomainKServerSocket
    protocolQString
    socketnameQString
    +

  • +
  • accept (socket) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    socketKSocket
    +

  • +
  • connection () +
    +
    returns (KIO.Connection)

  • +
  • createSlave (protocol, url) +
    + +
    returns (KIO.Slave) error (int) error_text (QString)
    static
    + + +
    ArgumentTypeDefault
    protocolQString
    urlKURL
    +

  • +
  • deref () +
    +
    returns nothing

  • +
  • gotInput () +
    +
    returns nothing

  • +
  • hold (url) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    urlKURL
    +

  • +
  • holdSlave (protocol, url) +
    + +
    returns (KIO.Slave)
    static
    + + +
    ArgumentTypeDefault
    protocolQString
    urlKURL
    +

  • +
  • host () +
    +
    returns (QString)

  • +
  • idleTime () +
    +
    returns (time_t)

  • +
  • isAlive () +
    +
    returns (bool)

  • +
  • isConnected () +
    +
    returns (bool)

  • +
  • kill () +
    +
    returns nothing

  • +
  • passwd () +
    +
    returns (QString)

  • +
  • port () +
    +
    returns (int)

  • +
  • protocol () +
    +
    returns (QString)

  • +
  • ref () +
    +
    returns nothing

  • +
  • resetHost () +
    +
    returns nothing

  • +
  • resume () +
    +
    returns nothing

  • +
  • send (cmd, data = QByteArray ()) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    cmdint
    dataQByteArrayQByteArray ()
    +

  • +
  • setConfig (config) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    configKIO.MetaData
    +

  • +
  • setConnected (c) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    cbool
    +

  • +
  • setHost (host, port, user, passwd) +
    +
    returns nothing
    + + + + +
    ArgumentTypeDefault
    hostQString
    portint
    userQString
    passwdQString
    +

  • +
  • setIdle () +
    +
    returns nothing

  • +
  • setPID (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0pid_t
    +

  • +
  • setProtocol (protocol) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    protocolQString
    +

  • +
  • slaveDied (slave) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    slaveKIO.Slave
    +

  • +
  • slaveProtocol () +
    +
    returns (QString)

  • +
  • slave_pid () +
    +
    returns (int)

  • +
  • suspend () +
    +
    returns nothing

  • +
  • suspended () +
    +
    returns (bool)

  • +
  • timeout () +
    +
    returns nothing

  • +
  • unlinkSocket () +
    +
    returns nothing

  • +
  • user () +
    +
    returns (QString)

  • +
+ + + diff --git a/doc/classref/kio/KIO.SlaveBase.html b/doc/classref/kio/KIO.SlaveBase.html new file mode 100644 index 0000000..581d1bb --- /dev/null +++ b/doc/classref/kio/KIO.SlaveBase.html @@ -0,0 +1,631 @@ + + + + + class KIO.SlaveBase + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KIO.SlaveBase


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKIO.SlaveBase
Inherits
+

enums

    +
  • MessageBoxType = {QuestionYesNo, WarningYesNo, WarningContinueCancel, WarningYesNoCancel, Information, SSLMessageBox +}
+

methods

    +
  • SlaveBase (protocol, pool_socket, app_socket) +
    +
    returns a SlaveBase instance
    + + + +
    ArgumentTypeDefault
    protocolQCString
    pool_socketQCString
    app_socketQCString
    +

  • +
  • allMetaData () +
    + +
    returns (KIO.MetaData)
    In versions KDE 3.5.2 and above only

  • +
  • cacheAuthentication (info) +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    infoKIO.AuthInfo
    +

  • +
  • cacheAuthentication (a0) +
    + +
    returns (bool)
    In versions less than KDE 3.1.0 only
    + +
    ArgumentTypeDefault
    a0KIO.AuthInfo
    +

  • +
  • canResume (offset) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    offsetKIO.filesize_t
    +

  • +
  • canResume () +
    +
    returns nothing

  • +
  • checkCachedAuthentication (info) +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    infoKIO.AuthInfo
    +

  • +
  • checkCachedAuthentication (a0) +
    + +
    returns (bool)
    In versions less than KDE 3.1.0 only
    + +
    ArgumentTypeDefault
    a0KIO.AuthInfo
    +

  • +
  • chmod (url, permissions) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    urlKURL
    permissionsint
    +

  • +
  • closeConnection () +
    +
    returns nothing

  • +
  • config () +
    +
    returns (KConfigBase)

  • +
  • connectSlave (path) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    pathQString
    +

  • +
  • connectSlave (a0) +
    + +
    returns nothing
    In versions less than KDE 3.1.0 only
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • connectTimeout () +
    +
    returns (int)

  • +
  • connected () +
    +
    returns nothing

  • +
  • connection () +
    +
    returns (KIO.Connection)

  • +
  • copy (src, dest, permissions, overwrite) +
    +
    returns nothing
    + + + + +
    ArgumentTypeDefault
    srcKURL
    destKURL
    permissionsint
    overwritebool
    +

  • +
  • createAuthCacheKey (url) +
    + +
    returns (QString)
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    urlKURL
    +

  • +
  • createAuthCacheKey (a0) +
    + +
    returns (QString)
    In versions less than KDE 3.1.0 only
    + +
    ArgumentTypeDefault
    a0KURL
    +

  • +
  • data (data) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    dataQByteArray
    +

  • +
  • dataReq () +
    +
    returns nothing

  • +
  • dcopClient () +
    + +
    returns (DCOPClient)
    In versions KDE 3.1.0 and above only

  • +
  • delCachedAuthentication (key) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    keyQString
    +

  • +
  • delCachedAuthentication (a0) +
    + +
    returns nothing
    In versions less than KDE 3.1.0 only
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • del_ (url, isfile) +
    + +
    returns nothing
    Renamed: was ' del +' in C++
    + + +
    ArgumentTypeDefault
    urlKURL
    isfilebool
    +

  • +
  • disconnectSlave () +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only

  • +
  • disconnectSlave () +
    + +
    returns nothing
    In versions less than KDE 3.1.0 only

  • +
  • dispatch () +
    +
    returns (bool)

  • +
  • dispatch (command, data) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    commandint
    dataQByteArray
    +

  • +
  • dispatchLoop () +
    +
    returns nothing

  • +
  • dropNetwork (host = QString .null) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    hostQStringQString .null
    +

  • +
  • dropNetwork (a0 = QString .null) +
    + +
    returns nothing
    In versions less than KDE 3.1.0 only
    + +
    ArgumentTypeDefault
    a0QStringQString .null
    +

  • +
  • error (_errid, _text) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    _erridint
    _textQString
    +

  • +
  • errorPage () +
    +
    returns nothing

  • +
  • exit () +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only

  • +
  • finished () +
    +
    returns nothing

  • +
  • get (url) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    urlKURL
    +

  • +
  • hasMetaData (key) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    keyQString
    +

  • +
  • infoMessage (msg) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    msgQString
    +

  • +
  • listDir (url) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    urlKURL
    +

  • +
  • listEntries (_entry) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    _entryKIO.UDSEntryList
    +

  • +
  • listEntry (_entry, ready) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + + +
    ArgumentTypeDefault
    _entryKIO.UDSEntry
    readybool
    +

  • +
  • listEntry (a0, a1) +
    + +
    returns nothing
    In versions less than KDE 3.1.0 only
    + + +
    ArgumentTypeDefault
    a0KIO.UDSEntry
    a1bool
    +

  • +
  • messageBox (type, text, caption = QString .null, buttonYes = QString .null, buttonNo = QString .null) +
    +
    returns (int)
    + + + + + +
    ArgumentTypeDefault
    typeKIO.SlaveBase.MessageBoxType
    textQString
    captionQStringQString .null
    buttonYesQStringQString .null
    buttonNoQStringQString .null
    +

  • +
  • messageBox (text, type, caption = QString .null, buttonYes = QString .null, buttonNo = QString .null, dontAskAgainName = QString .null) +
    + +
    returns (int)
    In versions KDE 3.3.0 and above only
    + + + + + + +
    ArgumentTypeDefault
    textQString
    typeKIO.SlaveBase.MessageBoxType
    captionQStringQString .null
    buttonYesQStringQString .null
    buttonNoQStringQString .null
    dontAskAgainNameQStringQString .null
    +

  • +
  • metaData (key) +
    +
    returns (QString)
    + +
    ArgumentTypeDefault
    keyQString
    +

  • +
  • mimeType (_type) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    _typeQString
    +

  • +
  • mimetype (url) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    urlKURL
    +

  • +
  • mkdir (url, permissions) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    urlKURL
    permissionsint
    +

  • +
  • multiGet (data) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    dataQByteArray
    +

  • +
  • multipleAuthCaching () +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above only

  • +
  • multipleAuthCaching () +
    + +
    returns (bool)
    In versions less than KDE 3.1.0 only

  • +
  • needSubURLData () +
    +
    returns nothing

  • +
  • openConnection () +
    +
    returns nothing

  • +
  • openPassDlg (info, errorMsg) +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above only
    + + +
    ArgumentTypeDefault
    infoKIO.AuthInfo
    errorMsgQString
    +

  • +
  • openPassDlg (info) +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    infoKIO.AuthInfo
    +

  • +
  • openPassDlg (a0) +
    + +
    returns (bool)
    In versions less than KDE 3.1.0 only
    + +
    ArgumentTypeDefault
    a0KIO.AuthInfo
    +

  • +
  • pingCacheDaemon () +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above only

  • +
  • pingCacheDaemon () +
    + +
    returns (bool)
    In versions less than KDE 3.1.0 only

  • +
  • processedPercent (percent) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    percentfloat
    +

  • +
  • processedSize (_bytes) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    _bytesKIO.filesize_t
    +

  • +
  • proxyConnectTimeout () +
    +
    returns (int)

  • +
  • put (url, permissions, overwrite, a0) +
    +
    returns nothing
    + + + + +
    ArgumentTypeDefault
    urlKURL
    permissionsint
    overwritebool
    a0bool
    +

  • +
  • readData (buffer) +
    +
    returns (int)
    + +
    ArgumentTypeDefault
    bufferQByteArray
    +

  • +
  • readTimeout () +
    +
    returns (int)

  • +
  • redirection (_url) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    _urlKURL
    +

  • +
  • remoteEncoding () +
    + +
    returns (KRemoteEncoding)
    In versions KDE 3.3.0 and above only

  • +
  • rename (src, dest, overwrite) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    srcKURL
    destKURL
    overwritebool
    +

  • +
  • reparseConfiguration () +
    +
    returns nothing

  • +
  • requestNetwork (host = QString .null) +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    hostQStringQString .null
    +

  • +
  • requestNetwork (a0 = QString .null) +
    + +
    returns (bool)
    In versions less than KDE 3.1.0 only
    + +
    ArgumentTypeDefault
    a0QStringQString .null
    +

  • +
  • responseTimeout () +
    +
    returns (int)

  • +
  • sendAuthenticationKey (gKey, key, keep) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + + + +
    ArgumentTypeDefault
    gKeyQCString
    keyQCString
    keepbool
    +

  • +
  • sendAuthenticationKey (a0, a1, a2) +
    + +
    returns nothing
    In versions less than KDE 3.1.0 only
    + + + +
    ArgumentTypeDefault
    a0QCString
    a1QCString
    a2bool
    +

  • +
  • sendMetaData () +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only

  • +
  • sendMetaData () +
    + +
    returns nothing
    In versions less than KDE 3.1.0 only

  • +
  • setConnection (connection) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    connectionKIO.Connection
    +

  • +
  • setHost (host, port, user, pass) +
    +
    returns nothing
    + + + + +
    ArgumentTypeDefault
    hostQString
    portint
    userQString
    passQString
    +

  • +
  • setKillFlag () +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only

  • +
  • setMetaData (key, value) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    keyQString
    valueQString
    +

  • +
  • setMultipleAuthCaching (a0) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • setMultipleAuthCaching (a0) +
    + +
    returns nothing
    In versions less than KDE 3.1.0 only
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • setSubURL (url) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    urlKURL
    +

  • +
  • setTimeoutSpecialCommand (timeout, data = QByteArray ()) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + + +
    ArgumentTypeDefault
    timeoutint
    dataQByteArrayQByteArray ()
    +

  • +
  • sigpipe_handler (a0) +
    + +
    returns nothing
    static
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • sigsegv_handler (a0) +
    + +
    returns nothing
    static
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • slaveStatus (host, connected) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    hostQString
    connectedbool
    +

  • +
  • slave_status () +
    +
    returns nothing

  • +
  • special (data) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    dataQByteArray
    +

  • +
  • speed (_bytes_per_second) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    _bytes_per_secondulong
    +

  • +
  • stat (url) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    urlKURL
    +

  • +
  • statEntry (_entry) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    _entryKIO.UDSEntry
    +

  • +
  • symlink (target, dest, overwrite) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    targetQString
    destKURL
    overwritebool
    +

  • +
  • totalSize (_bytes) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    _bytesKIO.filesize_t
    +

  • +
  • waitForAnswer (expected1, expected2, data) +
    + +
    returns (int) pCmd (int)
    In versions KDE 3.1.0 and above only
    + + + +
    ArgumentTypeDefault
    expected1int
    expected2int
    dataQByteArray
    +

  • +
  • waitForAnswer (a0, a1, a2) +
    + +
    returns (int) a3 (int)
    In versions less than KDE 3.1.0 only
    + + + +
    ArgumentTypeDefault
    a0int
    a1int
    a2QByteArray
    +

  • +
  • warning (msg) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    msgQString
    +

  • +
  • wasKilled () +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above only

  • +
+

variables

  • +variables + + + + +
    VariableType
    mIncomingMetaDataKIO::MetaData
    mOutgoingMetaDataKIO::MetaData
    mProtocolQCString
    m_pConnectionKIO::Connection*
+ + + diff --git a/doc/classref/kio/KIO.SlaveConfig.html b/doc/classref/kio/KIO.SlaveConfig.html new file mode 100644 index 0000000..7a4a2d4 --- /dev/null +++ b/doc/classref/kio/KIO.SlaveConfig.html @@ -0,0 +1,90 @@ + + + + + class KIO.SlaveConfig + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KIO.SlaveConfig


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKIO.SlaveConfig
InheritsQObject
+

methods

    +
  • SlaveConfig () +
    +
    returns a SlaveConfig instance

  • +
  • configData (protocol, host) +
    +
    returns (KIO.MetaData)
    + + +
    ArgumentTypeDefault
    protocolQString
    hostQString
    +

  • +
  • configData (protocol, host, key) +
    +
    returns (QString)
    + + + +
    ArgumentTypeDefault
    protocolQString
    hostQString
    keyQString
    +

  • +
  • configNeeded (protocol, host) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    protocolQString
    hostQString
    +

  • +
  • reset () +
    +
    returns nothing

  • +
  • self () +
    + +
    returns (KIO.SlaveConfig)
    static

  • +
  • setConfigData (protocol, host, key, value) +
    +
    returns nothing
    + + + + +
    ArgumentTypeDefault
    protocolQString
    hostQString
    keyQString
    valueQString
    +

  • +
  • setConfigData (protocol, host, config) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    protocolQString
    hostQString
    configKIO.MetaData
    +

  • +
+ + + diff --git a/doc/classref/kio/KIO.SlaveInterface.html b/doc/classref/kio/KIO.SlaveInterface.html new file mode 100644 index 0000000..1c9f36b --- /dev/null +++ b/doc/classref/kio/KIO.SlaveInterface.html @@ -0,0 +1,284 @@ + + + + + class KIO.SlaveInterface + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KIO.SlaveInterface


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKIO.SlaveInterface
InheritsQObject
+

methods

    +
  • SlaveInterface (connection) +
    +
    returns a SlaveInterface instance
    + +
    ArgumentTypeDefault
    connectionKIO.Connection
    +

  • +
  • authorizationKey (a0, a1, a2) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    a0QCString
    a1QCString
    a2bool
    +

  • +
  • calcSpeed () +
    +
    returns nothing

  • +
  • canResume (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KIO.filesize_t
    +

  • +
  • connectFinished () +
    +
    returns nothing

  • +
  • connected () +
    +
    returns nothing

  • +
  • connection () +
    +
    returns (KIO.Connection)

  • +
  • data (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QByteArray
    +

  • +
  • dataReq () +
    +
    returns nothing

  • +
  • delAuthorization (grpkey) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    grpkeyQCString
    +

  • +
  • dispatch () +
    +
    returns (bool)

  • +
  • dispatch (_cmd, data) +
    +
    returns (bool)
    + + +
    ArgumentTypeDefault
    _cmdint
    dataQByteArray
    +

  • +
  • dropNetwork (a0, a1) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    a0QString
    a1QString
    +

  • +
  • error (a0, a1) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    a0int
    a1QString
    +

  • +
  • errorPage () +
    +
    returns nothing

  • +
  • finished () +
    +
    returns nothing

  • +
  • infoMessage (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • listEntries (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KIO.UDSEntryList
    +

  • +
  • messageBox (type, text, caption, buttonYes, buttonNo) +
    +
    returns nothing
    + + + + + +
    ArgumentTypeDefault
    typeint
    textQString
    captionQString
    buttonYesQString
    buttonNoQString
    +

  • +
  • messageBox (type, text, caption, buttonYes, buttonNo, dontAskAgainName) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + + + + + + +
    ArgumentTypeDefault
    typeint
    textQString
    captionQString
    buttonYesQString
    buttonNoQString
    dontAskAgainNameQString
    +

  • +
  • metaData (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KIO.MetaData
    +

  • +
  • mimeType (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • needProgressId () +
    +
    returns nothing

  • +
  • needSubURLData () +
    +
    returns nothing

  • +
  • offset () +
    +
    returns (KIO.filesize_t)

  • +
  • openPassDlg (info) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    infoKIO.AuthInfo
    +

  • +
  • openPassDlg (prompt, user, caption, comment, label, readOnly) +
    +
    returns nothing
    + + + + + + +
    ArgumentTypeDefault
    promptQString
    userQString
    captionQString
    commentQString
    labelQString
    readOnlybool
    +

  • +
  • openPassDlg (prompt, user, readOnly) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    promptQString
    userQString
    readOnlybool
    +

  • +
  • processedSize (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KIO.filesize_t
    +

  • +
  • progressId () +
    +
    returns (int)

  • +
  • redirection (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KURL
    +

  • +
  • requestNetwork (a0, a1) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    a0QString
    a1QString
    +

  • +
  • sendResumeAnswer (resume) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    resumebool
    +

  • +
  • setConnection (connection) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    connectionKIO.Connection
    +

  • +
  • setOffset (offset) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    offsetKIO.filesize_t
    +

  • +
  • setProgressId (id) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    idint
    +

  • +
  • sigpipe_handler (a0) +
    + +
    returns nothing
    static
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • slaveStatus (a0, a1, a2, a3) +
    +
    returns nothing
    + + + + +
    ArgumentTypeDefault
    a0pid_t
    a1QCString
    a2QString
    a3bool
    +

  • +
  • speed (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0ulong
    +

  • +
  • statEntry (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KIO.UDSEntry
    +

  • +
  • totalSize (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KIO.filesize_t
    +

  • +
  • warning (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
+ + + diff --git a/doc/classref/kio/KIO.StatJob.html b/doc/classref/kio/KIO.StatJob.html new file mode 100644 index 0000000..6076c92 --- /dev/null +++ b/doc/classref/kio/KIO.StatJob.html @@ -0,0 +1,109 @@ + + + + + class KIO.StatJob + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KIO.StatJob


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKIO.StatJob
InheritsKIO.SimpleJob
+

methods

    +
  • StatJob (url, command, packedArgs, showProgressInfo) +
    +
    returns a StatJob instance
    + + + + +
    ArgumentTypeDefault
    urlKURL
    commandint
    packedArgsQByteArray
    showProgressInfobool
    +

  • +
  • permanentRedirection (job, fromUrl, toUrl) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + + + +
    ArgumentTypeDefault
    jobKIO.Job
    fromUrlKURL
    toUrlKURL
    +

  • +
  • redirection (job, url) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    jobKIO.Job
    urlKURL
    +

  • +
  • setDetails (details) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    detailsshort
    +

  • +
  • setSide (source) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    sourcebool
    +

  • +
  • slotFinished () +
    +
    returns nothing

  • +
  • slotMetaData (_metaData) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    _metaDataKIO.MetaData
    +

  • +
  • slotRedirection (url) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    urlKURL
    +

  • +
  • slotStatEntry (entry) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    entryKIO.UDSEntry
    +

  • +
  • start (slave) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    slaveKIO.Slave
    +

  • +
  • statResult () +
    +
    returns (KIO.UDSEntry)

  • +
+ + + diff --git a/doc/classref/kio/KIO.StatusbarProgress.html b/doc/classref/kio/KIO.StatusbarProgress.html new file mode 100644 index 0000000..b314b59 --- /dev/null +++ b/doc/classref/kio/KIO.StatusbarProgress.html @@ -0,0 +1,88 @@ + + + + + class KIO.StatusbarProgress + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KIO.StatusbarProgress


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKIO.StatusbarProgress
InheritsKIO.ProgressBase
+

methods

    +
  • StatusbarProgress (parent, button = 1) +
    +
    returns a StatusbarProgress instance
    + + +
    ArgumentTypeDefault
    parentQWidget
    buttonbool1
    +

  • +
  • eventFilter (a0, a1) +
    +
    returns (bool)
    + + +
    ArgumentTypeDefault
    a0QObject
    a1QEvent
    +

  • +
  • setJob (job) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    jobKIO.Job
    +

  • +
  • setMode () +
    +
    returns nothing

  • +
  • slotClean () +
    +
    returns nothing

  • +
  • slotPercent (job, percent) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    jobKIO.Job
    percentulong
    +

  • +
  • slotSpeed (job, speed) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    jobKIO.Job
    speedulong
    +

  • +
  • slotTotalSize (job, size) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    jobKIO.Job
    sizeKIO.filesize_t
    +

  • +
+ + + diff --git a/doc/classref/kio/KIO.StoredTransferJob.html b/doc/classref/kio/KIO.StoredTransferJob.html new file mode 100644 index 0000000..313bc74 --- /dev/null +++ b/doc/classref/kio/KIO.StoredTransferJob.html @@ -0,0 +1,63 @@ + + + + + class KIO.StoredTransferJob + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KIO.StoredTransferJob


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKIO.StoredTransferJob
InheritsKIO.TransferJob
+

methods

    +
  • StoredTransferJob (url, command, packedArgs, _staticData, showProgressInfo) +
    + +
    returns a StoredTransferJob instance
    In versions KDE 3.3.0 and above only
    + + + + + +
    ArgumentTypeDefault
    urlKURL
    commandint
    packedArgsQByteArray
    _staticDataQByteArray
    showProgressInfobool
    +

  • +
  • data () +
    + +
    returns (QByteArray)
    In versions KDE 3.3.0 and above only

  • +
  • setData (arr) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    arrQByteArray
    +

  • +
+ + + diff --git a/doc/classref/kio/KIO.TCPSlaveBase.html b/doc/classref/kio/KIO.TCPSlaveBase.html new file mode 100644 index 0000000..4d75e40 --- /dev/null +++ b/doc/classref/kio/KIO.TCPSlaveBase.html @@ -0,0 +1,230 @@ + + + + + class KIO.TCPSlaveBase + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KIO.TCPSlaveBase


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKIO.TCPSlaveBase
InheritsKIO.SlaveBase
+

methods

    +
  • AtEOF () +
    +
    returns (bool)

  • +
  • CleanSSL () +
    +
    returns nothing

  • +
  • CloseDescriptor () +
    +
    returns nothing

  • +
  • ConnectToHost (host, port, sendError) +
    +
    returns (bool)
    + + + +
    ArgumentTypeDefault
    hostQString
    portuint
    sendErrorbool
    +

  • +
  • GetPort (p) +
    +
    returns (ushort)
    + +
    ArgumentTypeDefault
    pushort
    +

  • +
  • InitializeSSL () +
    +
    returns (bool)

  • +
  • Read (data, len) +
    +
    returns (ssize_t)
    + + +
    ArgumentTypeDefault
    datavoid
    lenssize_t
    +

  • +
  • ReadLine (data, len) +
    +
    returns (ssize_t)
    + + +
    ArgumentTypeDefault
    datachar
    lenssize_t
    +

  • +
  • TCPSlaveBase (defaultPort, protocol, poolSocket, appSocket) +
    +
    returns a TCPSlaveBase instance
    + + + + +
    ArgumentTypeDefault
    defaultPortushort
    protocolQCString
    poolSocketQCString
    appSocketQCString
    +

  • +
  • TCPSlaveBase (defaultPort, protocol, poolSocket, appSocket, useSSL) +
    +
    returns a TCPSlaveBase instance
    + + + + + +
    ArgumentTypeDefault
    defaultPortushort
    protocolQCString
    poolSocketQCString
    appSocketQCString
    useSSLbool
    +

  • +
  • Write (data, len) +
    +
    returns (ssize_t)
    + + +
    ArgumentTypeDefault
    datavoid
    lenssize_t
    +

  • +
  • atEnd () +
    +
    returns (bool)

  • +
  • canUseTLS () +
    +
    returns (bool)

  • +
  • certificatePrompt () +
    +
    returns nothing

  • +
  • cleanSSL () +
    +
    returns nothing

  • +
  • closeDescriptor () +
    +
    returns nothing

  • +
  • connectResult () +
    +
    returns (int)

  • +
  • connectToHost (host, port, sendError = 1) +
    +
    returns (bool)
    + + + +
    ArgumentTypeDefault
    hostQString
    portuint
    sendErrorbool1
    +

  • +
  • doConstructorStuff () +
    +
    returns nothing

  • +
  • initializeSSL () +
    +
    returns (bool)

  • +
  • isConnectionValid () +
    +
    returns (bool)

  • +
  • isSSLTunnelEnabled () +
    +
    returns (bool)

  • +
  • port (_port) +
    +
    returns (ushort)
    + +
    ArgumentTypeDefault
    _portushort
    +

  • +
  • read (data, len) +
    +
    returns (ssize_t)
    + + +
    ArgumentTypeDefault
    datavoid
    lenssize_t
    +

  • +
  • readLine (data, len) +
    +
    returns (ssize_t)
    + + +
    ArgumentTypeDefault
    datachar
    lenssize_t
    +

  • +
  • setBlockConnection (b) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    bbool
    +

  • +
  • setBlockSize (sz) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    szint
    +

  • +
  • setConnectTimeout (t) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    tint
    +

  • +
  • setEnableSSLTunnel (enable) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    enablebool
    +

  • +
  • setRealHost (realHost) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    realHostQString
    +

  • +
  • setSSLMetaData () +
    +
    returns nothing

  • +
  • startTLS () +
    +
    returns (int)

  • +
  • stopTLS () +
    +
    returns nothing

  • +
  • userAborted () +
    +
    returns (bool)

  • +
  • usingSSL () +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only

  • +
  • usingTLS () +
    +
    returns (bool)

  • +
  • verifyCertificate () +
    +
    returns (int)

  • +
  • waitForResponse (t) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    tint
    +

  • +
  • write (data, len) +
    +
    returns (ssize_t)
    + + +
    ArgumentTypeDefault
    datavoid
    lenssize_t
    +

  • +
+ + + diff --git a/doc/classref/kio/KIO.Task.html b/doc/classref/kio/KIO.Task.html new file mode 100644 index 0000000..3e13f17 --- /dev/null +++ b/doc/classref/kio/KIO.Task.html @@ -0,0 +1,44 @@ + + + + + class KIO.Task + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KIO.Task


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKIO.Task
Inherits
+

variables

  • +variables + + +
    VariableType
    cmdint
    dataQByteArray
+ + + diff --git a/doc/classref/kio/KIO.TransferJob.html b/doc/classref/kio/KIO.TransferJob.html new file mode 100644 index 0000000..20138dc --- /dev/null +++ b/doc/classref/kio/KIO.TransferJob.html @@ -0,0 +1,198 @@ + + + + + class KIO.TransferJob + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KIO.TransferJob


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKIO.TransferJob
InheritsKIO.SimpleJob
+

methods

    +
  • TransferJob (url, command, packedArgs, _staticData, showProgressInfo) +
    +
    returns a TransferJob instance
    + + + + + +
    ArgumentTypeDefault
    urlKURL
    commandint
    packedArgsQByteArray
    _staticDataQByteArray
    showProgressInfobool
    +

  • +
  • canResume (job, offset) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    jobKIO.Job
    offsetKIO.filesize_t
    +

  • +
  • data (job, data) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    jobKIO.Job
    dataQByteArray
    +

  • +
  • dataReq (job, data) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    jobKIO.Job
    dataQByteArray
    +

  • +
  • isErrorPage () +
    +
    returns (bool)

  • +
  • isSuspended () +
    +
    returns (bool)

  • +
  • mimetype (job, type) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    jobKIO.Job
    typeQString
    +

  • +
  • permanentRedirection (job, fromUrl, toUrl) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + + + +
    ArgumentTypeDefault
    jobKIO.Job
    fromUrlKURL
    toUrlKURL
    +

  • +
  • redirection (job, url) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    jobKIO.Job
    urlKURL
    +

  • +
  • reportDataSent () +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only

  • +
  • resume () +
    +
    returns nothing

  • +
  • sendAsyncData (data) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    dataQByteArray
    +

  • +
  • setAsyncDataEnabled (enabled) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    enabledbool
    +

  • +
  • setReportDataSent (enabled) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    enabledbool
    +

  • +
  • slotCanResume (offset) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    offsetKIO.filesize_t
    +

  • +
  • slotData (data) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    dataQByteArray
    +

  • +
  • slotDataReq () +
    +
    returns nothing

  • +
  • slotErrorPage () +
    +
    returns nothing

  • +
  • slotFinished () +
    +
    returns nothing

  • +
  • slotMetaData (_metaData) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    _metaDataKIO.MetaData
    +

  • +
  • slotMimetype (mimetype) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    mimetypeQString
    +

  • +
  • slotNeedSubURLData () +
    +
    returns nothing

  • +
  • slotPostRedirection () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • slotRedirection (url) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    urlKURL
    +

  • +
  • slotResult (job) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    jobKIO.Job
    +

  • +
  • slotSubURLData (a0, a1) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    a0KIO.Job
    a1QByteArray
    +

  • +
  • start (slave) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    slaveKIO.Slave
    +

  • +
  • suspend () +
    +
    returns nothing

  • +
+ + + diff --git a/doc/classref/kio/KIO.UDSAtom.html b/doc/classref/kio/KIO.UDSAtom.html new file mode 100644 index 0000000..d38dddb --- /dev/null +++ b/doc/classref/kio/KIO.UDSAtom.html @@ -0,0 +1,45 @@ + + + + + class KIO.UDSAtom + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KIO.UDSAtom


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKIO.UDSAtom
Inherits
+

variables

  • +variables + + + +
    VariableType
    m_longlong
    m_strQString
    m_udsuint
+ + + diff --git a/doc/classref/kio/KIO.html b/doc/classref/kio/KIO.html new file mode 100644 index 0000000..7abaed1 --- /dev/null +++ b/doc/classref/kio/KIO.html @@ -0,0 +1,645 @@ + + + + + class KIO + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KIO


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKIO
Inherits
+

classes

+

enums

    +
  • CacheControl = {CC_CacheOnly, CC_Cache, CC_Verify, CC_Reload +}
  • CacheControl = {CC_CacheOnly, CC_Cache, CC_Verify, CC_Reload +}
  • Command = {CMD_HOST, CMD_CONNECT, CMD_DISCONNECT, CMD_SLAVE_STATUS, CMD_SLAVE_CONNECT, CMD_SLAVE_HOLD, CMD_NONE, CMD_TESTDIR, CMD_GET, CMD_PUT, CMD_STAT, CMD_MIMETYPE, CMD_LISTDIR, CMD_MKDIR, CMD_RENAME, CMD_COPY, CMD_DEL, CMD_CHMOD, CMD_SPECIAL, CMD_USERPASS, CMD_REPARSECONFIGURATION, CMD_META_DATA, CMD_SYMLINK, CMD_SUBURL, CMD_MESSAGEBOXANSWER, CMD_RESUMEANSWER, CMD_CONFIG, CMD_MULTI_GET +}
  • Command = {CMD_HOST, CMD_CONNECT, CMD_DISCONNECT, CMD_SLAVE_STATUS, CMD_SLAVE_CONNECT, CMD_SLAVE_HOLD, CMD_NONE, CMD_TESTDIR, CMD_GET, CMD_PUT, CMD_STAT, CMD_MIMETYPE, CMD_LISTDIR, CMD_MKDIR, CMD_RENAME, CMD_COPY, CMD_DEL, CMD_CHMOD, CMD_SPECIAL, CMD_USERPASS, CMD_REPARSECONFIGURATION, CMD_META_DATA, CMD_SYMLINK, CMD_SUBURL, CMD_MESSAGEBOXANSWER, CMD_RESUMEANSWER, CMD_CONFIG, CMD_MULTI_GET +}
  • Error = {ERR_CANNOT_OPEN_FOR_READING, ERR_CANNOT_OPEN_FOR_WRITING, ERR_CANNOT_LAUNCH_PROCESS, ERR_INTERNAL, ERR_MALFORMED_URL, ERR_UNSUPPORTED_PROTOCOL, ERR_NO_SOURCE_PROTOCOL, ERR_UNSUPPORTED_ACTION, ERR_IS_DIRECTORY, ERR_IS_FILE, ERR_DOES_NOT_EXIST, ERR_FILE_ALREADY_EXIST, ERR_DIR_ALREADY_EXIST, ERR_UNKNOWN_HOST, ERR_ACCESS_DENIED, ERR_WRITE_ACCESS_DENIED, ERR_CANNOT_ENTER_DIRECTORY, ERR_PROTOCOL_IS_NOT_A_FILESYSTEM, ERR_CYCLIC_LINK, ERR_USER_CANCELED, ERR_CYCLIC_COPY, ERR_COULD_NOT_CREATE_SOCKET, ERR_COULD_NOT_CONNECT, ERR_CONNECTION_BROKEN, ERR_NOT_FILTER_PROTOCOL, ERR_COULD_NOT_MOUNT, ERR_COULD_NOT_UNMOUNT, ERR_COULD_NOT_READ, ERR_COULD_NOT_WRITE, ERR_COULD_NOT_BIND, ERR_COULD_NOT_LISTEN, ERR_COULD_NOT_ACCEPT, ERR_COULD_NOT_LOGIN, ERR_COULD_NOT_STAT, ERR_COULD_NOT_CLOSEDIR, ERR_COULD_NOT_MKDIR, ERR_COULD_NOT_RMDIR, ERR_CANNOT_RESUME, ERR_CANNOT_RENAME, ERR_CANNOT_CHMOD, ERR_CANNOT_DELETE, ERR_SLAVE_DIED, ERR_OUT_OF_MEMORY, ERR_UNKNOWN_PROXY_HOST, ERR_COULD_NOT_AUTHENTICATE, ERR_ABORTED, ERR_INTERNAL_SERVER, ERR_SERVER_TIMEOUT, ERR_SERVICE_NOT_AVAILABLE, ERR_UNKNOWN, ERR_UNKNOWN_INTERRUPT, ERR_CANNOT_DELETE_ORIGINAL, ERR_CANNOT_DELETE_PARTIAL, ERR_CANNOT_RENAME_ORIGINAL, ERR_CANNOT_RENAME_PARTIAL, ERR_NEED_PASSWD, ERR_CANNOT_SYMLINK, ERR_NO_CONTENT, ERR_DISK_FULL, ERR_IDENTICAL_FILES, ERR_SLAVE_DEFINED +}
  • Error = {ERR_CANNOT_OPEN_FOR_READING, ERR_CANNOT_OPEN_FOR_WRITING, ERR_CANNOT_LAUNCH_PROCESS, ERR_INTERNAL, ERR_MALFORMED_URL, ERR_UNSUPPORTED_PROTOCOL, ERR_NO_SOURCE_PROTOCOL, ERR_UNSUPPORTED_ACTION, ERR_IS_DIRECTORY, ERR_IS_FILE, ERR_DOES_NOT_EXIST, ERR_FILE_ALREADY_EXIST, ERR_DIR_ALREADY_EXIST, ERR_UNKNOWN_HOST, ERR_ACCESS_DENIED, ERR_WRITE_ACCESS_DENIED, ERR_CANNOT_ENTER_DIRECTORY, ERR_PROTOCOL_IS_NOT_A_FILESYSTEM, ERR_CYCLIC_LINK, ERR_USER_CANCELED, ERR_CYCLIC_COPY, ERR_COULD_NOT_CREATE_SOCKET, ERR_COULD_NOT_CONNECT, ERR_CONNECTION_BROKEN, ERR_NOT_FILTER_PROTOCOL, ERR_COULD_NOT_MOUNT, ERR_COULD_NOT_UNMOUNT, ERR_COULD_NOT_READ, ERR_COULD_NOT_WRITE, ERR_COULD_NOT_BIND, ERR_COULD_NOT_LISTEN, ERR_COULD_NOT_ACCEPT, ERR_COULD_NOT_LOGIN, ERR_COULD_NOT_STAT, ERR_COULD_NOT_CLOSEDIR, ERR_COULD_NOT_MKDIR, ERR_COULD_NOT_RMDIR, ERR_CANNOT_RESUME, ERR_CANNOT_RENAME, ERR_CANNOT_CHMOD, ERR_CANNOT_DELETE, ERR_SLAVE_DIED, ERR_OUT_OF_MEMORY, ERR_UNKNOWN_PROXY_HOST, ERR_COULD_NOT_AUTHENTICATE, ERR_ABORTED, ERR_INTERNAL_SERVER, ERR_SERVER_TIMEOUT, ERR_SERVICE_NOT_AVAILABLE, ERR_UNKNOWN, ERR_UNKNOWN_INTERRUPT, ERR_CANNOT_DELETE_ORIGINAL, ERR_CANNOT_DELETE_PARTIAL, ERR_CANNOT_RENAME_ORIGINAL, ERR_CANNOT_RENAME_PARTIAL, ERR_NEED_PASSWD, ERR_CANNOT_SYMLINK, ERR_NO_CONTENT, ERR_DISK_FULL, ERR_IDENTICAL_FILES, ERR_SLAVE_DEFINED +}
  • FileSystemFlag = {SupportsChmod, SupportsChown, SupportsUTime, SupportsSymlinks, CaseInsensitive +}
  • Info = {INF_TOTAL_SIZE, INF_PROCESSED_SIZE, INF_SPEED, INF_REDIRECTION, INF_MIME_TYPE, INF_ERROR_PAGE, INF_WARNING, INF_GETTING_FILE, INF_NEED_PASSWD, INF_INFOMESSAGE, INF_META_DATA, INF_NETWORK_STATUS, INF_MESSAGEBOX +}
  • Message = {MSG_DATA, MSG_DATA_REQ, MSG_ERROR, MSG_CONNECTED, MSG_FINISHED, MSG_STAT_ENTRY, MSG_LIST_ENTRIES, MSG_RENAMED, MSG_RESUME, MSG_SLAVE_STATUS, MSG_SLAVE_ACK, MSG_NET_REQUEST, MSG_NET_DROP, MSG_NEED_SUBURL_DATA, MSG_CANRESUME, MSG_AUTH_KEY, MSG_DEL_AUTH_KEY +}
  • Progress = {DEFAULT, STATUSBAR, LIST +}
  • RenameDlg_Mode = {M_OVERWRITE, M_OVERWRITE_ITSELF, M_SKIP, M_SINGLE, M_MULTI, M_RESUME, M_NORENAME +}
  • RenameDlg_Result = {R_RESUME, R_RESUME_ALL, R_OVERWRITE, R_OVERWRITE_ALL, R_SKIP, R_AUTO_SKIP, R_RENAME, R_CANCEL +}
  • SkipDlg_Result = {S_SKIP, S_AUTO_SKIP, S_CANCEL +}
  • UDSAtomTypes = {UDS_STRING, UDS_LONG, UDS_TIME, UDS_SIZE, UDS_SIZE_LARGE, UDS_USER, UDS_GROUP, UDS_NAME, UDS_ACCESS, UDS_MODIFICATION_TIME, UDS_ACCESS_TIME, UDS_CREATION_TIME, UDS_FILE_TYPE, UDS_LINK_DEST, UDS_URL, UDS_MIME_TYPE, UDS_GUESSED_MIME_TYPE +}
  • UDSAtomTypes = {UDS_STRING, UDS_LONG, UDS_TIME, UDS_SIZE, UDS_SIZE_LARGE, UDS_USER, UDS_GROUP, UDS_NAME, UDS_ACCESS, UDS_MODIFICATION_TIME, UDS_ACCESS_TIME, UDS_CREATION_TIME, UDS_FILE_TYPE, UDS_LINK_DEST, UDS_URL, UDS_MIME_TYPE, UDS_GUESSED_MIME_TYPE +}
  • UDSAtomTypes = {UDS_STRING, UDS_LONG, UDS_TIME, UDS_SIZE, UDS_SIZE_LARGE, UDS_USER, UDS_GROUP, UDS_NAME, UDS_ACCESS, UDS_MODIFICATION_TIME, UDS_ACCESS_TIME, UDS_CREATION_TIME, UDS_FILE_TYPE, UDS_LINK_DEST, UDS_URL, UDS_MIME_TYPE, UDS_GUESSED_MIME_TYPE +}
  • UDSAtomTypes = {UDS_STRING, UDS_LONG, UDS_TIME, UDS_SIZE, UDS_SIZE_LARGE, UDS_USER, UDS_GROUP, UDS_NAME, UDS_ACCESS, UDS_MODIFICATION_TIME, UDS_ACCESS_TIME, UDS_CREATION_TIME, UDS_FILE_TYPE, UDS_LINK_DEST, UDS_URL, UDS_MIME_TYPE, UDS_GUESSED_MIME_TYPE +}
  • UDSAtomTypes = {UDS_STRING, UDS_LONG, UDS_TIME, UDS_SIZE, UDS_SIZE_LARGE, UDS_USER, UDS_GROUP, UDS_NAME, UDS_ACCESS, UDS_MODIFICATION_TIME, UDS_ACCESS_TIME, UDS_CREATION_TIME, UDS_FILE_TYPE, UDS_LINK_DEST, UDS_URL, UDS_MIME_TYPE, UDS_GUESSED_MIME_TYPE +}
+

methods

    +
  • buildErrorString (errorCode, errorText) +
    +
    returns (QString)
    + + +
    ArgumentTypeDefault
    errorCodeint
    errorTextQString
    +

  • +
  • buildHTMLErrorString (errorCode, errorText, reqUrl = 0, method = -1) +
    Not Implemented
    +

  • +
  • calculateRemaining (totalSize, processedSize, speed) +
    +
    returns (QTime)
    + + + +
    ArgumentTypeDefault
    totalSizeKIO.filesize_t
    processedSizeKIO.filesize_t
    speedKIO.filesize_t
    +

  • +
  • calculateRemainingSeconds (totalSize, processedSize, speed) +
    + +
    returns (uint)
    In versions KDE 3.4.0 and above only
    + + + +
    ArgumentTypeDefault
    totalSizeKIO.filesize_t
    processedSizeKIO.filesize_t
    speedKIO.filesize_t
    +

  • +
  • chmod (url, permissions) +
    +
    returns (KIO.SimpleJob)
    + + +
    ArgumentTypeDefault
    urlKURL
    permissionsint
    +

  • +
  • chmod (url, permissions) +
    +
    returns (KIO.SimpleJob)
    + + +
    ArgumentTypeDefault
    urlKURL
    permissionsint
    +

  • +
  • convertSeconds (seconds) +
    + +
    returns (QString)
    In versions KDE 3.4.0 and above only
    + +
    ArgumentTypeDefault
    secondsuint
    +

  • +
  • convertSize (size) +
    +
    returns (QString)
    + +
    ArgumentTypeDefault
    sizeKIO.filesize_t
    +

  • +
  • convertSizeFromKB (kbSize) +
    +
    returns (QString)
    + +
    ArgumentTypeDefault
    kbSizeKIO.filesize_t
    +

  • +
  • convertSizeWithBytes (size) +
    + +
    returns (QString)
    In versions KDE 3.5.0 and above only
    + +
    ArgumentTypeDefault
    sizeKIO.filesize_t
    +

  • +
  • copy (src, dest, showProgressInfo = 1) +
    +
    returns (KIO.CopyJob)
    + + + +
    ArgumentTypeDefault
    srcKURL.List
    destKURL
    showProgressInfobool1
    +

  • +
  • copy (src, dest, showProgressInfo = 1) +
    +
    returns (KIO.CopyJob)
    + + + +
    ArgumentTypeDefault
    srcKURL.List
    destKURL
    showProgressInfobool1
    +

  • +
  • copyAs (src, dest, showProgressInfo = 1) +
    +
    returns (KIO.CopyJob)
    + + + +
    ArgumentTypeDefault
    srcKURL
    destKURL
    showProgressInfobool1
    +

  • +
  • davPropFind (url, properties, depth, showProgressInfo = 1) +
    + +
    returns (KIO.DavJob)
    In versions KDE 3.1.0 and above only
    + + + + +
    ArgumentTypeDefault
    urlKURL
    propertiesQDomDocument
    depthQString
    showProgressInfobool1
    +

  • +
  • davPropPatch (url, properties, showProgressInfo = 1) +
    + +
    returns (KIO.DavJob)
    In versions KDE 3.1.0 and above only
    + + + +
    ArgumentTypeDefault
    urlKURL
    propertiesQDomDocument
    showProgressInfobool1
    +

  • +
  • davSearch (url, nsURI, qName, query, showProgressInfo = 1) +
    + +
    returns (KIO.DavJob)
    In versions KDE 3.1.0 and above only
    + + + + + +
    ArgumentTypeDefault
    urlKURL
    nsURIQString
    qNameQString
    queryQString
    showProgressInfobool1
    +

  • +
  • decodeFileName (str) +
    +
    returns (QString)
    + +
    ArgumentTypeDefault
    strQString
    +

  • +
  • del_ (src, shred = 0, showProgressInfo = 1) +
    + +
    returns (KIO.DeleteJob)
    Renamed: was ' del +' in C++
    + + + +
    ArgumentTypeDefault
    srcKURL.List
    shredbool0
    showProgressInfobool1
    +

  • +
  • del_ (src, shred = 0, showProgressInfo = 1) +
    + +
    returns (KIO.DeleteJob)
    Renamed: was ' del +' in C++
    + + + +
    ArgumentTypeDefault
    srcKURL.List
    shredbool0
    showProgressInfobool1
    +

  • +
  • encodeFileName (str) +
    +
    returns (QString)
    + +
    ArgumentTypeDefault
    strQString
    +

  • +
  • fileMetaInfo (items) +
    + +
    returns (KIO.MetaInfoJob)
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    itemsKURL.List
    +

  • +
  • fileMetaInfo (items) +
    + +
    returns (KIO.MetaInfoJob)
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    itemsKURL.List
    +

  • +
  • filePreview (items, width, height = 0, iconSize = 0, iconAlpha = 70, scale = 1, save = 1, enabledPlugins = 0) +
    +
    returns (KIO.PreviewJob)
    + + + + + + + + +
    ArgumentTypeDefault
    itemsKURL.List
    widthint
    heightint0
    iconSizeint0
    iconAlphaint70
    scalebool1
    savebool1
    enabledPluginsQStringList0
    +

  • +
  • filePreview (items, width, height = 0, iconSize = 0, iconAlpha = 70, scale = 1, save = 1, enabledPlugins = 0) +
    +
    returns (KIO.PreviewJob)
    + + + + + + + + +
    ArgumentTypeDefault
    itemsKURL.List
    widthint
    heightint0
    iconSizeint0
    iconAlphaint70
    scalebool1
    savebool1
    enabledPluginsQStringList0
    +

  • +
  • file_copy (src, dest, permissions = -1, overwrite = 0, resume = 0, showProgressInfo = 1) +
    +
    returns (KIO.FileCopyJob)
    + + + + + + +
    ArgumentTypeDefault
    srcKURL
    destKURL
    permissionsint-1
    overwritebool0
    resumebool0
    showProgressInfobool1
    +

  • +
  • file_delete (src, showProgressInfo = 1) +
    +
    returns (KIO.SimpleJob)
    + + +
    ArgumentTypeDefault
    srcKURL
    showProgressInfobool1
    +

  • +
  • file_move (src, dest, permissions = -1, overwrite = 0, resume = 0, showProgressInfo = 1) +
    +
    returns (KIO.FileCopyJob)
    + + + + + + +
    ArgumentTypeDefault
    srcKURL
    destKURL
    permissionsint-1
    overwritebool0
    resumebool0
    showProgressInfobool1
    +

  • +
  • findDeviceMountPoint (device) +
    +
    returns (QString)
    + +
    ArgumentTypeDefault
    deviceQString
    +

  • +
  • findPathMountPoint (filename) +
    +
    returns (QString)
    + +
    ArgumentTypeDefault
    filenameQString
    +

  • +
  • get (url, reload = 0, showProgressInfo = 1) +
    +
    returns (KIO.TransferJob)
    + + + +
    ArgumentTypeDefault
    urlKURL
    reloadbool0
    showProgressInfobool1
    +

  • +
  • getCacheControlString (cacheControl) +
    +
    returns (QString)
    + +
    ArgumentTypeDefault
    cacheControlKIO.CacheControl
    +

  • +
  • http_post (url, postData, showProgressInfo = 1) +
    +
    returns (KIO.TransferJob)
    + + + +
    ArgumentTypeDefault
    urlKURL
    postDataQByteArray
    showProgressInfobool1
    +

  • +
  • http_update_cache (url, no_cache, expireDate) +
    +
    returns (KIO.SimpleJob)
    + + + +
    ArgumentTypeDefault
    urlKURL
    no_cachebool
    expireDatetime_t
    +

  • +
  • isClipboardEmpty () +
    +
    returns (bool)

  • +
  • itemsSummaryString (items, files, dirs, size, showSize) +
    +
    returns (QString)
    + + + + + +
    ArgumentTypeDefault
    itemsuint
    filesuint
    dirsuint
    sizeKIO.filesize_t
    showSizebool
    +

  • +
  • link (src, destDir, showProgressInfo = 1) +
    +
    returns (KIO.CopyJob)
    + + + +
    ArgumentTypeDefault
    srcKURL.List
    destDirKURL
    showProgressInfobool1
    +

  • +
  • link (src, destDir, showProgressInfo = 1) +
    +
    returns (KIO.CopyJob)
    + + + +
    ArgumentTypeDefault
    srcKURL.List
    destDirKURL
    showProgressInfobool1
    +

  • +
  • linkAs (src, dest, showProgressInfo = 1) +
    +
    returns (KIO.CopyJob)
    + + + +
    ArgumentTypeDefault
    srcKURL
    destKURL
    showProgressInfobool1
    +

  • +
  • listDir (url, showProgressInfo = 1, includeHidden = 1) +
    +
    returns (KIO.ListJob)
    + + + +
    ArgumentTypeDefault
    urlKURL
    showProgressInfobool1
    includeHiddenbool1
    +

  • +
  • listRecursive (url, showProgressInfo = 1, includeHidden = 1) +
    +
    returns (KIO.ListJob)
    + + + +
    ArgumentTypeDefault
    urlKURL
    showProgressInfobool1
    includeHiddenbool1
    +

  • +
  • manually_mounted (filename) +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    filenameQString
    +

  • +
  • mimetype (url, showProgressInfo = 1) +
    +
    returns (KIO.MimetypeJob)
    + + +
    ArgumentTypeDefault
    urlKURL
    showProgressInfobool1
    +

  • +
  • mkdir (url, permissions = -1) +
    +
    returns (KIO.SimpleJob)
    + + +
    ArgumentTypeDefault
    urlKURL
    permissionsint-1
    +

  • +
  • mount (ro, fstype, dev, point, showProgressInfo = 1) +
    +
    returns (KIO.SimpleJob)
    + + + + + +
    ArgumentTypeDefault
    robool
    fstypechar
    devQString
    pointQString
    showProgressInfobool1
    +

  • +
  • move (src, dest, showProgressInfo = 1) +
    +
    returns (KIO.CopyJob)
    + + + +
    ArgumentTypeDefault
    srcKURL.List
    destKURL
    showProgressInfobool1
    +

  • +
  • move (src, dest, showProgressInfo = 1) +
    +
    returns (KIO.CopyJob)
    + + + +
    ArgumentTypeDefault
    srcKURL.List
    destKURL
    showProgressInfobool1
    +

  • +
  • moveAs (src, dest, showProgressInfo = 1) +
    +
    returns (KIO.CopyJob)
    + + + +
    ArgumentTypeDefault
    srcKURL
    destKURL
    showProgressInfobool1
    +

  • +
  • multi_get (id, url, metaData) +
    +
    returns (KIO.MultiGetJob)
    + + + +
    ArgumentTypeDefault
    idlong
    urlKURL
    metaDataKIO.MetaData
    +

  • +
  • number (size) +
    +
    returns (QString)
    + +
    ArgumentTypeDefault
    sizeKIO.filesize_t
    +

  • +
  • open_RenameDlg (a0, a1, a2, a3, a4, a5 = -1, a6 = -1, a7 = -1, a8 = -1, a9 = -1, a10 = -1) +
    Not Implemented
    +

  • +
  • open_RenameDlg (a0, a1, a2, a3, a4, a5 = -1, a6 = -1, a7 = -1, a8 = -1, a9 = -1, a10 = -1) +
    Not Implemented
    +

  • +
  • open_SkipDlg (_multi, _error_text = QString .null) +
    Not Implemented
    +

  • +
  • parseCacheControl (cacheControl) +
    +
    returns (KIO.CacheControl)
    + +
    ArgumentTypeDefault
    cacheControlQString
    +

  • +
  • pasteActionText () +
    + +
    returns (QString)
    In versions KDE 3.5.0 and above only

  • +
  • pasteClipboard (destURL, move = 0) +
    +
    returns (KIO.Job)
    + + +
    ArgumentTypeDefault
    destURLKURL
    movebool0
    +

  • +
  • pasteData (destURL, data) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    destURLKURL
    dataQByteArray
    +

  • +
  • pasteDataAsync (destURL, data, dialogText) +
    + +
    returns (KIO.CopyJob)
    In versions KDE 3.3.0 and above only
    + + + +
    ArgumentTypeDefault
    destURLKURL
    dataQByteArray
    dialogTextQString
    +

  • +
  • pasteDataAsync (destURL, data, dialogText) +
    + +
    returns (KIO.CopyJob)
    In versions KDE 3.3.0 and above only
    + + + +
    ArgumentTypeDefault
    destURLKURL
    dataQByteArray
    dialogTextQString
    +

  • +
  • pasteMimeSource (data, destURL, dialogText, widget, clipboard = 0) +
    + +
    returns (KIO.CopyJob)
    In versions KDE 3.5.0 and above only
    + + + + + +
    ArgumentTypeDefault
    dataQMimeSource
    destURLKURL
    dialogTextQString
    widgetQWidget
    clipboardbool0
    +

  • +
  • probably_slow_mounted (filename) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    filenameQString
    +

  • +
  • put (url, permissions, overwrite, resume, showProgressInfo = 1) +
    +
    returns (KIO.TransferJob)
    + + + + + +
    ArgumentTypeDefault
    urlKURL
    permissionsint
    overwritebool
    resumebool
    showProgressInfobool1
    +

  • +
  • rawErrorDetail (errorCode, errorText, reqUrl = 0, method = -1) +
    +
    returns (QByteArray)
    + + + + +
    ArgumentTypeDefault
    errorCodeint
    errorTextQString
    reqUrlKURL0
    methodint-1
    +

  • +
  • rename (src, dest, overwrite) +
    +
    returns (KIO.SimpleJob)
    + + + +
    ArgumentTypeDefault
    srcKURL
    destKURL
    overwritebool
    +

  • +
  • rmdir (url) +
    +
    returns (KIO.SimpleJob)
    + +
    ArgumentTypeDefault
    urlKURL
    +

  • +
  • special (url, data, showProgressInfo = 1) +
    +
    returns (KIO.SimpleJob)
    + + + +
    ArgumentTypeDefault
    urlKURL
    dataQByteArray
    showProgressInfobool1
    +

  • +
  • stat (url, sideIsSource, details, showProgressInfo = 1) +
    +
    returns (KIO.StatJob)
    + + + + +
    ArgumentTypeDefault
    urlKURL
    sideIsSourcebool
    detailsshort
    showProgressInfobool1
    +

  • +
  • stat (url, sideIsSource, details, showProgressInfo = 1) +
    +
    returns (KIO.StatJob)
    + + + + +
    ArgumentTypeDefault
    urlKURL
    sideIsSourcebool
    detailsshort
    showProgressInfobool1
    +

  • +
  • storedGet (url, reload = 0, showProgressInfo = 1) +
    + +
    returns (KIO.StoredTransferJob)
    In versions KDE 3.3.0 and above only
    + + + +
    ArgumentTypeDefault
    urlKURL
    reloadbool0
    showProgressInfobool1
    +

  • +
  • storedPut (arr, url, permissions, overwrite, resume, showProgressInfo = 1) +
    + +
    returns (KIO.StoredTransferJob)
    In versions KDE 3.3.0 and above only
    + + + + + + +
    ArgumentTypeDefault
    arrQByteArray
    urlKURL
    permissionsint
    overwritebool
    resumebool
    showProgressInfobool1
    +

  • +
  • symlink (target, dest, overwrite, showProgressInfo = 1) +
    +
    returns (KIO.SimpleJob)
    + + + + +
    ArgumentTypeDefault
    targetQString
    destKURL
    overwritebool
    showProgressInfobool1
    +

  • +
  • testFileSystemFlag (filename, flag) +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    filenameQString
    flagKIO.FileSystemFlag
    +

  • +
  • trash (src, showProgressInfo = 1) +
    + +
    returns (KIO.CopyJob)
    In versions KDE 3.4.0 and above only
    + + +
    ArgumentTypeDefault
    srcKURL.List
    showProgressInfobool1
    +

  • +
  • trash (src, showProgressInfo = 1) +
    + +
    returns (KIO.CopyJob)
    In versions KDE 3.4.0 and above only
    + + +
    ArgumentTypeDefault
    srcKURL.List
    showProgressInfobool1
    +

  • +
  • unmount (point, showProgressInfo = 1) +
    +
    returns (KIO.SimpleJob)
    + + +
    ArgumentTypeDefault
    pointQString
    showProgressInfobool1
    +

  • +
  • unsupportedActionErrorString (protocol, cmd) +
    + +
    returns (QString)
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    protocolQString
    cmdint
    +

  • +
+ + + diff --git a/doc/classref/kio/KImageIO.html b/doc/classref/kio/KImageIO.html new file mode 100644 index 0000000..f7b8f63 --- /dev/null +++ b/doc/classref/kio/KImageIO.html @@ -0,0 +1,120 @@ + + + + + class KImageIO + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KImageIO


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKImageIO
Inherits
+

enums

    +
  • Mode = {Reading, Writing +}
+

methods

    +
  • canRead (type) +
    + +
    returns (bool)
    static
    + +
    ArgumentTypeDefault
    typeQString
    +

  • +
  • canWrite (type) +
    + +
    returns (bool)
    static
    + +
    ArgumentTypeDefault
    typeQString
    +

  • +
  • isSupported (_mimeType, _mode = Writing) +
    + +
    returns (bool)
    static
    + + +
    ArgumentTypeDefault
    _mimeTypeQString
    _modeKImageIO.ModeWriting
    +

  • +
  • mimeType (_filename) +
    + +
    returns (QString)
    static
    + +
    ArgumentTypeDefault
    _filenameQString
    +

  • +
  • mimeTypes (mode = Writing) +
    + +
    returns (QStringList)
    static
    + +
    ArgumentTypeDefault
    modeKImageIO.ModeWriting
    +

  • +
  • pattern (mode = Reading) +
    + +
    returns (QString)
    static
    + +
    ArgumentTypeDefault
    modeKImageIO.ModeReading
    +

  • +
  • registerFormats () +
    + +
    returns nothing
    static

  • +
  • suffix (type) +
    + +
    returns (QString)
    static
    + +
    ArgumentTypeDefault
    typeQString
    +

  • +
  • type (filename) +
    + +
    returns (QString)
    static
    + +
    ArgumentTypeDefault
    filenameQString
    +

  • +
  • typeForMime (mimeType) +
    + + +
    returns (QString)
    In versions KDE 3.1.0 and above only
    static
    + +
    ArgumentTypeDefault
    mimeTypeQString
    +

  • +
  • types (mode = Writing) +
    + +
    returns (QStringList)
    static
    + +
    ArgumentTypeDefault
    modeKImageIO.ModeWriting
    +

  • +
+ + + diff --git a/doc/classref/kio/KMimeMagic.html b/doc/classref/kio/KMimeMagic.html new file mode 100644 index 0000000..71707d6 --- /dev/null +++ b/doc/classref/kio/KMimeMagic.html @@ -0,0 +1,96 @@ + + + + + class KMimeMagic + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KMimeMagic


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKMimeMagic
Inherits
+

methods

    +
  • KMimeMagic () +
    + +
    returns a KMimeMagic instance
    In versions KDE 3.1.0 and above only

  • +
  • KMimeMagic (configFile) +
    +
    returns a KMimeMagic instance
    + +
    ArgumentTypeDefault
    configFileQString
    +

  • +
  • findBufferFileType (a0, filename) +
    +
    returns (KMimeMagicResult)
    + + +
    ArgumentTypeDefault
    a0QByteArray
    filenameQString
    +

  • +
  • findBufferType (p) +
    +
    returns (KMimeMagicResult)
    + +
    ArgumentTypeDefault
    pQByteArray
    +

  • +
  • findFileType (_filename) +
    +
    returns (KMimeMagicResult)
    + +
    ArgumentTypeDefault
    _filenameQString
    +

  • +
  • initStatic () +
    + +
    returns nothing
    static

  • +
  • mergeBufConfig (a0) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    a0char
    +

  • +
  • mergeConfig (configFile) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    configFileQString
    +

  • +
  • self () +
    + +
    returns (KMimeMagic)
    static

  • +
  • setFollowLinks (_enable) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    _enablebool
    +

  • +
+ + + diff --git a/doc/classref/kio/KMimeMagicResult.html b/doc/classref/kio/KMimeMagicResult.html new file mode 100644 index 0000000..1480a4d --- /dev/null +++ b/doc/classref/kio/KMimeMagicResult.html @@ -0,0 +1,68 @@ + + + + + class KMimeMagicResult + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KMimeMagicResult


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKMimeMagicResult
Inherits
+

methods

    +
  • KMimeMagicResult () +
    +
    returns a KMimeMagicResult instance

  • +
  • accuracy () +
    +
    returns (int)

  • +
  • isValid () +
    +
    returns (bool)

  • +
  • mimeType () +
    +
    returns (QString)

  • +
  • setAccuracy (_accuracy) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    _accuracyint
    +

  • +
  • setInvalid () +
    +
    returns nothing

  • +
  • setMimeType (_mime) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    _mimeQString
    +

  • +
+ + + diff --git a/doc/classref/kio/KMimeType.Format.html b/doc/classref/kio/KMimeType.Format.html new file mode 100644 index 0000000..738029d --- /dev/null +++ b/doc/classref/kio/KMimeType.Format.html @@ -0,0 +1,48 @@ + + + + + class KMimeType.Format + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KMimeType.Format


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKMimeType.Format
Inherits
+

enums

    +
  • (anonymous) = {NoCompression, GZipCompression +}
+

variables

  • +variables + + + +
    VariableType
    compressionint
    dummyint
    textbool
+ + + diff --git a/doc/classref/kio/KMimeType.html b/doc/classref/kio/KMimeType.html new file mode 100644 index 0000000..4040e50 --- /dev/null +++ b/doc/classref/kio/KMimeType.html @@ -0,0 +1,290 @@ + + + + + class KMimeType + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KMimeType


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKMimeType
InheritsKServiceType
+

methods

    +
  • KMimeType (_fullpath, _type, _icon, _comment, _patterns) +
    +
    returns a KMimeType instance
    + + + + + +
    ArgumentTypeDefault
    _fullpathQString
    _typeQString
    _iconQString
    _commentQString
    _patternsQStringList
    +

  • +
  • KMimeType (_fullpath) +
    +
    returns a KMimeType instance
    + +
    ArgumentTypeDefault
    _fullpathQString
    +

  • +
  • KMimeType (config) +
    +
    returns a KMimeType instance
    + +
    ArgumentTypeDefault
    configKDesktopFile
    +

  • +
  • KMimeType (_str, offset) +
    +
    returns a KMimeType instance
    + + +
    ArgumentTypeDefault
    _strQDataStream
    offsetint
    +

  • +
  • allMimeTypes () +
    + +
    returns (KMimeType.List)
    static

  • +
  • buildDefaultType () +
    + +
    returns nothing
    static

  • +
  • checkEssentialMimeTypes () +
    + +
    returns nothing
    static

  • +
  • comment () +
    +
    returns (QString)

  • +
  • comment (a0, a1) +
    +
    returns (QString)
    + + +
    ArgumentTypeDefault
    a0QString
    a1bool
    +

  • +
  • comment (a0, a1) +
    +
    returns (QString)
    + + +
    ArgumentTypeDefault
    a0KURL
    a1bool
    +

  • +
  • defaultMimeType () +
    + +
    returns (QString)
    static

  • +
  • defaultMimeTypePtr () +
    + + +
    returns (KMimeType.Ptr)
    In versions KDE 3.2.0 and above only
    static

  • +
  • diagnoseFileName (file, pattern) +
    + + +
    returns (KMimeType.Ptr)
    In versions KDE 3.2.0 and above only
    static
    + + +
    ArgumentTypeDefault
    fileQString
    patternQString
    +

  • +
  • errorMissingMimeType (_type) +
    + +
    returns nothing
    static
    + +
    ArgumentTypeDefault
    _typeQString
    +

  • +
  • favIconForURL (url) +
    + +
    returns (QString)
    static
    + +
    ArgumentTypeDefault
    urlKURL
    +

  • +
  • findByContent (data) +
    + +
    returns (KMimeType.Ptr) accuracy (int)
    static
    + +
    ArgumentTypeDefault
    dataQByteArray
    +

  • +
  • findByFileContent (fileName) +
    + +
    returns (KMimeType.Ptr) accuracy (int)
    static
    + +
    ArgumentTypeDefault
    fileNameQString
    +

  • +
  • findByPath (path, mode = 0, fast_mode = 0) +
    + +
    returns (KMimeType.Ptr)
    static
    + + + +
    ArgumentTypeDefault
    pathQString
    modemode_t0
    fast_modebool0
    +

  • +
  • findByURL (_url, _mode = 0, _is_local_file = 0, _fast_mode = 0) +
    + +
    returns (KMimeType.Ptr)
    static
    + + + + +
    ArgumentTypeDefault
    _urlKURL
    _modemode_t0
    _is_local_filebool0
    _fast_modebool0
    +

  • +
  • findByURL (_url, _mode, _is_local_file, _fast_mode) +
    + + +
    returns (KMimeType.Ptr) accurate (bool)
    In versions KDE 3.2.0 and above only
    static
    + + + + +
    ArgumentTypeDefault
    _urlKURL
    _modemode_t
    _is_local_filebool
    _fast_modebool
    +

  • +
  • findFormatByFileContent (fileName) +
    Not Implemented
    +

  • +
  • icon (a0, a1) +
    +
    returns (QString)
    + + +
    ArgumentTypeDefault
    a0QString
    a1bool
    +

  • +
  • icon (a0, a1) +
    +
    returns (QString)
    + + +
    ArgumentTypeDefault
    a0KURL
    a1bool
    +

  • +
  • iconForURL (_url, _mode = 0) +
    + +
    returns (QString)
    static
    + + +
    ArgumentTypeDefault
    _urlKURL
    _modemode_t0
    +

  • +
  • init (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KDesktopFile
    +

  • +
  • is_ (mimeTypeName) +
    + + +
    returns (bool)
    Renamed: was ' is' in C++
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    mimeTypeNameQString
    +

  • +
  • load (qs) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    qsQDataStream
    +

  • +
  • loadInternal (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QDataStream
    +

  • +
  • mimeType (_name) +
    + +
    returns (KMimeType.Ptr)
    static
    + +
    ArgumentTypeDefault
    _nameQString
    +

  • +
  • parentMimeType () +
    + +
    returns (QString)
    In versions KDE 3.2.0 and above only

  • +
  • patterns () +
    +
    returns (QStringList)

  • +
  • patternsAccuracy () +
    + +
    returns (int)
    In versions KDE 3.2.0 and above only

  • +
  • pixmap (group, force_size = 0, state = 0, path = 0) +
    +
    returns (QPixmap)
    + + + + +
    ArgumentTypeDefault
    groupKIcon.Group
    force_sizeint0
    stateint0
    pathQString0
    +

  • +
  • pixmap (_url, _group, _force_size = 0, _state = 0, _path = 0) +
    +
    returns (QPixmap)
    + + + + + +
    ArgumentTypeDefault
    _urlKURL
    _groupKIcon.Group
    _force_sizeint0
    _stateint0
    _pathQString0
    +

  • +
  • pixmapForURL (_url, _mode = 0, _group = KIcon .Desktop, _force_size = 0, _state = 0, _path = 0) +
    + +
    returns (QPixmap)
    static
    + + + + + + +
    ArgumentTypeDefault
    _urlKURL
    _modemode_t0
    _groupKIcon.GroupKIcon .Desktop
    _force_sizeint0
    _stateint0
    _pathQString0
    +

  • +
  • property (_name) +
    +
    returns (QVariant)
    + +
    ArgumentTypeDefault
    _nameQString
    +

  • +
  • propertyNames () +
    +
    returns (QStringList)

  • +
  • save (qs) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    qsQDataStream
    +

  • +
+ + + diff --git a/doc/classref/kio/KMimeTypeChooser.html b/doc/classref/kio/KMimeTypeChooser.html new file mode 100644 index 0000000..48d3819 --- /dev/null +++ b/doc/classref/kio/KMimeTypeChooser.html @@ -0,0 +1,69 @@ + + + + + class KMimeTypeChooser + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KMimeTypeChooser


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKMimeTypeChooser
InheritsQVBox
+

enums

    +
  • Visuals = {Comments, Patterns, EditButton +}
+

methods

    +
  • KMimeTypeChooser (text = QString .null, selectedMimeTypes = 0, defaultGroup = QString .null, groupsToShow = QStringList (), visuals = Comments | Patterns | EditButton, parent = 0, name = 0) +
    + +
    returns a KMimeTypeChooser instance
    In versions KDE 3.3.0 and above only
    + + + + + + + +
    ArgumentTypeDefault
    textQStringQString .null
    selectedMimeTypesQStringList0
    defaultGroupQStringQString .null
    groupsToShowQStringListQStringList ()
    visualsintComments | Patterns | EditButton
    parentQWidget0
    namechar0
    +

  • +
  • editMimeType () +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only

  • +
  • mimeTypes () +
    + +
    returns (QStringList)
    In versions KDE 3.3.0 and above only

  • +
  • patterns () +
    + +
    returns (QStringList)
    In versions KDE 3.3.0 and above only

  • +
+ + + diff --git a/doc/classref/kio/KMimeTypeChooserDialog.html b/doc/classref/kio/KMimeTypeChooserDialog.html new file mode 100644 index 0000000..9c88bc2 --- /dev/null +++ b/doc/classref/kio/KMimeTypeChooserDialog.html @@ -0,0 +1,71 @@ + + + + + class KMimeTypeChooserDialog + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KMimeTypeChooserDialog


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKMimeTypeChooserDialog
InheritsKDialogBase
+

methods

    +
  • KMimeTypeChooserDialog (caption = QString .null, text = QString .null, selectedMimeTypes = QStringList (), defaultGroup = QString .null, groupsToShow = QStringList (), visuals = KMimeTypeChooser .Comments | KMimeTypeChooser .Patterns | KMimeTypeChooser .EditButton, parent = 0, name = 0) +
    + +
    returns a KMimeTypeChooserDialog instance
    In versions KDE 3.3.0 and above only
    + + + + + + + + +
    ArgumentTypeDefault
    captionQStringQString .null
    textQStringQString .null
    selectedMimeTypesQStringListQStringList ()
    defaultGroupQStringQString .null
    groupsToShowQStringListQStringList ()
    visualsintKMimeTypeChooser .Comments | KMimeTypeChooser .Patterns | KMimeTypeChooser .EditButton
    parentQWidget0
    namechar0
    +

  • +
  • KMimeTypeChooserDialog (caption, text, selectedMimeTypes, defaultGroup, parent = 0, name = 0) +
    + +
    returns a KMimeTypeChooserDialog instance
    In versions KDE 3.3.0 and above only
    + + + + + + +
    ArgumentTypeDefault
    captionQString
    textQString
    selectedMimeTypesQStringList
    defaultGroupQString
    parentQWidget0
    namechar0
    +

  • +
  • chooser () +
    + +
    returns (KMimeTypeChooser)
    In versions KDE 3.3.0 and above only

  • +
+ + + diff --git a/doc/classref/kio/KNFSShare.html b/doc/classref/kio/KNFSShare.html new file mode 100644 index 0000000..b599a5d --- /dev/null +++ b/doc/classref/kio/KNFSShare.html @@ -0,0 +1,69 @@ + + + + + class KNFSShare + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KNFSShare


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKNFSShare
InheritsQObject
+

methods

    +
  • KNFSShare () +
    + +
    returns a KNFSShare instance
    In versions KDE 3.3.0 and above only

  • +
  • changed () +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only

  • +
  • exportsPath () +
    + +
    returns (QString)
    In versions KDE 3.3.0 and above only

  • +
  • instance () +
    + + +
    returns (KNFSShare)
    In versions KDE 3.3.0 and above only
    static

  • +
  • isDirectoryShared (path) +
    + +
    returns (bool)
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    pathQString
    +

  • +
  • sharedDirectories () +
    + +
    returns (QStringList)
    In versions KDE 3.3.0 and above only

  • +
+ + + diff --git a/doc/classref/kio/KOCRDialog.html b/doc/classref/kio/KOCRDialog.html new file mode 100644 index 0000000..8fc2130 --- /dev/null +++ b/doc/classref/kio/KOCRDialog.html @@ -0,0 +1,73 @@ + + + + + class KOCRDialog + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KOCRDialog


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKOCRDialog
InheritsKDialogBase
+

methods

    +
  • KOCRDialog (dialogFace = Tabbed, buttonMask = Close | Help, parent = 0, name = 0, modal = 0) +
    +
    returns a KOCRDialog instance
    + + + + + +
    ArgumentTypeDefault
    dialogFaceintTabbed
    buttonMaskintClose | Help
    parentQWidget0
    namechar0
    modalbool0
    +

  • +
  • getOCRDialog (parent = 0, name = 0, modal = 0) +
    + +
    returns (KOCRDialog)
    static
    + + + +
    ArgumentTypeDefault
    parentQWidget0
    namechar0
    modalbool0
    +

  • +
  • id () +
    +
    returns (int)

  • +
  • nextId () +
    +
    returns (int)

  • +
  • textRecognized (text, id) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    textQString
    idint
    +

  • +
+ + + diff --git a/doc/classref/kio/KOCRDialogFactory.html b/doc/classref/kio/KOCRDialogFactory.html new file mode 100644 index 0000000..49bb0e6 --- /dev/null +++ b/doc/classref/kio/KOCRDialogFactory.html @@ -0,0 +1,75 @@ + + + + + class KOCRDialogFactory + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KOCRDialogFactory


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKOCRDialogFactory (abstract)
InheritsKLibFactory
+

methods

    +
  • KOCRDialogFactory (parent = 0, name = 0) +
    +
    returns a KOCRDialogFactory instance
    + + +
    ArgumentTypeDefault
    parentQObject0
    namechar0
    +

  • +
  • createDialog (parent = 0, name = 0, modal = 0) = 0 +
    + +
    returns (KOCRDialog)
    pure virtual
    + + + +
    ArgumentTypeDefault
    parentQWidget0
    namechar0
    modalbool0
    +

  • +
  • createObject (parent = 0, name = 0, classname = "QObject", args = QStringList ()) +
    +
    returns (QObject)
    + + + + +
    ArgumentTypeDefault
    parentQObject0
    namechar0
    classnamechar"QObject"
    argsQStringListQStringList ()
    +

  • +
  • instance () +
    +
    returns (KInstance)

  • +
  • setName (instanceName) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    instanceNameQCString
    +

  • +
+ + + diff --git a/doc/classref/kio/KOpenWithHandler.html b/doc/classref/kio/KOpenWithHandler.html new file mode 100644 index 0000000..33db6f5 --- /dev/null +++ b/doc/classref/kio/KOpenWithHandler.html @@ -0,0 +1,48 @@ + + + + + class KOpenWithHandler + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KOpenWithHandler


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKOpenWithHandler
Inherits
+

methods

    +
  • KOpenWithHandler () +
    +
    returns a KOpenWithHandler instance

  • +
  • exists () +
    + +
    returns (bool)
    static

  • +
+ + + diff --git a/doc/classref/kio/KProcessRunner.html b/doc/classref/kio/KProcessRunner.html new file mode 100644 index 0000000..0be3ee5 --- /dev/null +++ b/doc/classref/kio/KProcessRunner.html @@ -0,0 +1,87 @@ + + + + + class KProcessRunner + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KProcessRunner


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKProcessRunner
InheritsQObject
+

methods

    +
  • KProcessRunner (a0, binName) +
    +
    returns a KProcessRunner instance
    + + +
    ArgumentTypeDefault
    a0KProcess
    binNameQString
    +

  • +
  • KProcessRunner (a0, binName, id) +
    + +
    returns a KProcessRunner instance
    In versions KDE 3.1.4 and above only
    + + + +
    ArgumentTypeDefault
    a0KProcess
    binNameQString
    idKStartupInfoId
    +

  • +
  • KProcessRunner () +
    +
    returns a KProcessRunner instance

  • +
  • pid () +
    +
    returns (pid_t)

  • +
  • run (a0, binName) +
    + +
    returns (pid_t)
    static
    + + +
    ArgumentTypeDefault
    a0KProcess
    binNameQString
    +

  • +
  • run (a0, binName, id) +
    + + +
    returns (pid_t)
    In versions KDE 3.1.4 and above only
    static
    + + + +
    ArgumentTypeDefault
    a0KProcess
    binNameQString
    idKStartupInfoId
    +

  • +
  • slotProcessExited (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KProcess
    +

  • +
+ + + diff --git a/doc/classref/kio/KProtocolInfo.ExtraField.html b/doc/classref/kio/KProtocolInfo.ExtraField.html new file mode 100644 index 0000000..ad48f93 --- /dev/null +++ b/doc/classref/kio/KProtocolInfo.ExtraField.html @@ -0,0 +1,58 @@ + + + + + class KProtocolInfo.ExtraField + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KProtocolInfo.ExtraField


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKProtocolInfo.ExtraField
Inherits
+

methods

    +
  • ExtraField () +
    + +
    returns a ExtraField instance
    In versions KDE 3.2.0 and above only

  • +
  • ExtraField (_name, _type) +
    + +
    returns a ExtraField instance
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    _nameQString
    _typeQString
    +

  • +
+

variables

  • +variables + + +
    VariableType
    nameQString
    typeQString
+ + + diff --git a/doc/classref/kio/KProtocolInfo.html b/doc/classref/kio/KProtocolInfo.html new file mode 100644 index 0000000..f9c2fc2 --- /dev/null +++ b/doc/classref/kio/KProtocolInfo.html @@ -0,0 +1,466 @@ + + + + + class KProtocolInfo + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KProtocolInfo


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKProtocolInfo
InheritsKSycocaEntry
+

enums

    +
  • FileNameUsedForCopying = {Name, FromURL +}
  • Type = {T_STREAM, T_FILESYSTEM, T_NONE, T_ERROR +}
+

methods

    +
  • KProtocolInfo (path) +
    +
    returns a KProtocolInfo instance
    + +
    ArgumentTypeDefault
    pathQString
    +

  • +
  • KProtocolInfo (_str, offset) +
    +
    returns a KProtocolInfo instance
    + + +
    ArgumentTypeDefault
    _strQDataStream
    offsetint
    +

  • +
  • canCopyFromFile (url) +
    + +
    returns (bool)
    static
    + +
    ArgumentTypeDefault
    urlKURL
    +

  • +
  • canCopyFromFile (protocol) +
    + +
    returns (bool)
    static
    + +
    ArgumentTypeDefault
    protocolQString
    +

  • +
  • canCopyToFile (url) +
    + +
    returns (bool)
    static
    + +
    ArgumentTypeDefault
    urlKURL
    +

  • +
  • canCopyToFile (protocol) +
    + +
    returns (bool)
    static
    + +
    ArgumentTypeDefault
    protocolQString
    +

  • +
  • canDeleteRecursive (url) +
    + + +
    returns (bool)
    In versions KDE 3.4.0 and above only
    static
    + +
    ArgumentTypeDefault
    urlKURL
    +

  • +
  • canDeleteRecursive () +
    + +
    returns (bool)
    In versions KDE 3.5.1 and above only

  • +
  • canRenameFromFile (url) +
    + + +
    returns (bool)
    In versions KDE 3.4.0 and above only
    static
    + +
    ArgumentTypeDefault
    urlKURL
    +

  • +
  • canRenameFromFile () +
    + +
    returns (bool)
    In versions KDE 3.5.1 and above only

  • +
  • canRenameToFile (url) +
    + + +
    returns (bool)
    In versions KDE 3.4.0 and above only
    static
    + +
    ArgumentTypeDefault
    urlKURL
    +

  • +
  • canRenameToFile () +
    + +
    returns (bool)
    In versions KDE 3.5.1 and above only

  • +
  • capabilities (protocol) +
    + + +
    returns (QStringList)
    In versions KDE 3.3.0 and above only
    static
    + +
    ArgumentTypeDefault
    protocolQString
    +

  • +
  • config (protocol) +
    + +
    returns (QString)
    static
    + +
    ArgumentTypeDefault
    protocolQString
    +

  • +
  • defaultMimetype (url) +
    + +
    returns (QString)
    static
    + +
    ArgumentTypeDefault
    urlKURL
    +

  • +
  • defaultMimetype (protocol) +
    + +
    returns (QString)
    static
    + +
    ArgumentTypeDefault
    protocolQString
    +

  • +
  • determineMimetypeFromExtension (protocol) +
    + +
    returns (bool)
    static
    + +
    ArgumentTypeDefault
    protocolQString
    +

  • +
  • docPath (protocol) +
    + + +
    returns (QString)
    In versions KDE 3.2.0 and above only
    static
    + +
    ArgumentTypeDefault
    protocolQString
    +

  • +
  • exec_ (protocol) +
    + + +
    returns (QString)
    Renamed: was ' exec' in C++
    static
    + +
    ArgumentTypeDefault
    protocolQString
    +

  • +
  • extraFields (url) +
    + + +
    returns (KProtocolInfo.ExtraFieldList)
    In versions KDE 3.2.0 and above only
    static
    + +
    ArgumentTypeDefault
    urlKURL
    +

  • +
  • fileNameUsedForCopying (url) +
    + + +
    returns (KProtocolInfo.FileNameUsedForCopying)
    In versions KDE 3.4.0 and above only
    static
    + +
    ArgumentTypeDefault
    urlKURL
    +

  • +
  • fileNameUsedForCopying () +
    + +
    returns (KProtocolInfo.FileNameUsedForCopying)
    In versions KDE 3.5.1 and above only

  • +
  • findProtocol (url) +
    + + +
    returns (KProtocolInfo)
    In versions KDE 3.4.0 and above only
    static
    + +
    ArgumentTypeDefault
    urlKURL
    +

  • +
  • icon (protocol) +
    + +
    returns (QString)
    static
    + +
    ArgumentTypeDefault
    protocolQString
    +

  • +
  • inputType (url) +
    + +
    returns (KProtocolInfo.Type)
    static
    + +
    ArgumentTypeDefault
    urlKURL
    +

  • +
  • inputType (protocol) +
    + +
    returns (Type)
    static
    + +
    ArgumentTypeDefault
    protocolQString
    +

  • +
  • isFilterProtocol (url) +
    + +
    returns (bool)
    static
    + +
    ArgumentTypeDefault
    urlKURL
    +

  • +
  • isFilterProtocol (protocol) +
    + +
    returns (bool)
    static
    + +
    ArgumentTypeDefault
    protocolQString
    +

  • +
  • isHelperProtocol (url) +
    + +
    returns (bool)
    static
    + +
    ArgumentTypeDefault
    urlKURL
    +

  • +
  • isHelperProtocol (protocol) +
    + +
    returns (bool)
    static
    + +
    ArgumentTypeDefault
    protocolQString
    +

  • +
  • isKnownProtocol (url) +
    + +
    returns (bool)
    static
    + +
    ArgumentTypeDefault
    urlKURL
    +

  • +
  • isKnownProtocol (protocol) +
    + +
    returns (bool)
    static
    + +
    ArgumentTypeDefault
    protocolQString
    +

  • +
  • isSourceProtocol (url) +
    + +
    returns (bool)
    static
    + +
    ArgumentTypeDefault
    urlKURL
    +

  • +
  • isSourceProtocol (protocol) +
    + +
    returns (bool)
    static
    + +
    ArgumentTypeDefault
    protocolQString
    +

  • +
  • isValid () +
    +
    returns (bool)

  • +
  • listing (url) +
    + +
    returns (QStringList)
    static
    + +
    ArgumentTypeDefault
    urlKURL
    +

  • +
  • listing (protocol) +
    + +
    returns (QStringList)
    static
    + +
    ArgumentTypeDefault
    protocolQString
    +

  • +
  • load (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QDataStream
    +

  • +
  • maxSlaves (protocol) +
    + +
    returns (int)
    static
    + +
    ArgumentTypeDefault
    protocolQString
    +

  • +
  • name () +
    +
    returns (QString)

  • +
  • outputType (url) +
    + +
    returns (KProtocolInfo.Type)
    static
    + +
    ArgumentTypeDefault
    urlKURL
    +

  • +
  • outputType (protocol) +
    + +
    returns (Type)
    static
    + +
    ArgumentTypeDefault
    protocolQString
    +

  • +
  • protocolClass (protocol) +
    + + +
    returns (QString)
    In versions KDE 3.2.0 and above only
    static
    + +
    ArgumentTypeDefault
    protocolQString
    +

  • +
  • protocols () +
    + +
    returns (QStringList)
    static

  • +
  • proxiedBy (protocol) +
    + + +
    returns (QString)
    In versions KDE 3.3.0 and above only
    static
    + +
    ArgumentTypeDefault
    protocolQString
    +

  • +
  • save (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QDataStream
    +

  • +
  • showFilePreview (protocol) +
    + + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    static
    + +
    ArgumentTypeDefault
    protocolQString
    +

  • +
  • supportsDeleting (url) +
    + +
    returns (bool)
    static
    + +
    ArgumentTypeDefault
    urlKURL
    +

  • +
  • supportsDeleting (protocol) +
    + +
    returns (bool)
    static
    + +
    ArgumentTypeDefault
    protocolQString
    +

  • +
  • supportsLinking (url) +
    + +
    returns (bool)
    static
    + +
    ArgumentTypeDefault
    urlKURL
    +

  • +
  • supportsLinking (protocol) +
    + +
    returns (bool)
    static
    + +
    ArgumentTypeDefault
    protocolQString
    +

  • +
  • supportsListing (url) +
    + +
    returns (bool)
    static
    + +
    ArgumentTypeDefault
    urlKURL
    +

  • +
  • supportsListing (protocol) +
    + +
    returns (bool)
    static
    + +
    ArgumentTypeDefault
    protocolQString
    +

  • +
  • supportsMakeDir (url) +
    + +
    returns (bool)
    static
    + +
    ArgumentTypeDefault
    urlKURL
    +

  • +
  • supportsMakeDir (protocol) +
    + +
    returns (bool)
    static
    + +
    ArgumentTypeDefault
    protocolQString
    +

  • +
  • supportsMoving (url) +
    + +
    returns (bool)
    static
    + +
    ArgumentTypeDefault
    urlKURL
    +

  • +
  • supportsMoving (protocol) +
    + +
    returns (bool)
    static
    + +
    ArgumentTypeDefault
    protocolQString
    +

  • +
  • supportsReading (url) +
    + +
    returns (bool)
    static
    + +
    ArgumentTypeDefault
    urlKURL
    +

  • +
  • supportsReading (protocol) +
    + +
    returns (bool)
    static
    + +
    ArgumentTypeDefault
    protocolQString
    +

  • +
  • supportsWriting (url) +
    + +
    returns (bool)
    static
    + +
    ArgumentTypeDefault
    urlKURL
    +

  • +
  • supportsWriting (protocol) +
    + +
    returns (bool)
    static
    + +
    ArgumentTypeDefault
    protocolQString
    +

  • +
  • uriParseMode (protocol) +
    + + +
    returns (KURL.URIMode)
    In versions KDE 3.2.0 and above only
    static
    + +
    ArgumentTypeDefault
    protocolQString
    +

  • +
+ + + diff --git a/doc/classref/kio/KProtocolManager.html b/doc/classref/kio/KProtocolManager.html new file mode 100644 index 0000000..c585176 --- /dev/null +++ b/doc/classref/kio/KProtocolManager.html @@ -0,0 +1,189 @@ + + + + + class KProtocolManager + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KProtocolManager


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKProtocolManager
Inherits
+

enums

    +
  • ProxyAuthMode = {Prompt, Automatic +}
  • ProxyType = {NoProxy, ManualProxy, PACProxy, WPADProxy, EnvVarProxy +}
+

methods

    +
  • autoResume () +
    + +
    returns (bool)
    static

  • +
  • badProxy (proxy) +
    + +
    returns nothing
    static
    + +
    ArgumentTypeDefault
    proxyQString
    +

  • +
  • cacheControl () +
    + +
    returns (KIO.CacheControl)
    static

  • +
  • cacheDir () +
    + +
    returns (QString)
    static

  • +
  • config () +
    + +
    returns (KConfig)
    static

  • +
  • connectTimeout () +
    + +
    returns (int)
    static

  • +
  • defaultConnectTimeout () +
    Not Implemented
    +

  • +
  • defaultUserAgent () +
    + +
    returns (QString)
    static

  • +
  • defaultUserAgent (keys) +
    + +
    returns (QString)
    static
    + +
    ArgumentTypeDefault
    keysQString
    +

  • +
  • markPartial () +
    + +
    returns (bool)
    static

  • +
  • maxCacheAge () +
    + +
    returns (int)
    static

  • +
  • maxCacheSize () +
    + +
    returns (int)
    static

  • +
  • minimumKeepSize () +
    + +
    returns (int)
    static

  • +
  • noProxyFor () +
    + +
    returns (QString)
    static

  • +
  • noProxyForRaw () +
    + + +
    returns (QString)
    In versions KDE 3.5.1 and above only
    static

  • +
  • persistentConnections () +
    + +
    returns (bool)
    static

  • +
  • persistentProxyConnection () +
    + + +
    returns (bool)
    In versions KDE 3.1.0 and above only
    static

  • +
  • proxyAuthMode () +
    + +
    returns (KProtocolManager.ProxyAuthMode)
    static

  • +
  • proxyConfigScript () +
    + +
    returns (QString)
    static

  • +
  • proxyConnectTimeout () +
    + +
    returns (int)
    static

  • +
  • proxyFor (protocol) +
    + +
    returns (QString)
    static
    + +
    ArgumentTypeDefault
    protocolQString
    +

  • +
  • proxyForURL (url) +
    + +
    returns (QString)
    static
    + +
    ArgumentTypeDefault
    urlKURL
    +

  • +
  • proxyType () +
    + +
    returns (KProtocolManager.ProxyType)
    static

  • +
  • readTimeout () +
    + +
    returns (int)
    static

  • +
  • reparseConfiguration () +
    + +
    returns nothing
    static

  • +
  • responseTimeout () +
    + +
    returns (int)
    static

  • +
  • slaveProtocol (url, proxy) +
    + +
    returns (QString)
    static
    + + +
    ArgumentTypeDefault
    urlKURL
    proxyQString
    +

  • +
  • useCache () +
    + +
    returns (bool)
    static

  • +
  • useProxy () +
    + +
    returns (bool)
    static

  • +
  • useReverseProxy () +
    + +
    returns (bool)
    static

  • +
  • userAgentForHost (hostname) +
    + +
    returns (QString)
    static
    + +
    ArgumentTypeDefault
    hostnameQString
    +

  • +
+ + + diff --git a/doc/classref/kio/KRemoteEncoding.html b/doc/classref/kio/KRemoteEncoding.html new file mode 100644 index 0000000..63cd674 --- /dev/null +++ b/doc/classref/kio/KRemoteEncoding.html @@ -0,0 +1,114 @@ + + + + + class KRemoteEncoding + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KRemoteEncoding


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKRemoteEncoding
Inherits
+

methods

    +
  • KRemoteEncoding (name = 0) +
    + +
    returns a KRemoteEncoding instance
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    namechar0
    +

  • +
  • KRemoteEncoding (a0) +
    + +
    returns a KRemoteEncoding instance
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    a0KRemoteEncoding
    +

  • +
  • decode (name) +
    + +
    returns (QString)
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    nameQCString
    +

  • +
  • directory (url, ignore_trailing_slash = 1) +
    + +
    returns (QCString)
    In versions KDE 3.3.0 and above only
    + + +
    ArgumentTypeDefault
    urlKURL
    ignore_trailing_slashbool1
    +

  • +
  • encode (name) +
    + +
    returns (QCString)
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    nameQString
    +

  • +
  • encode (url) +
    + +
    returns (QCString)
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    urlKURL
    +

  • +
  • encoding () +
    + +
    returns (char)
    In versions KDE 3.3.0 and above only

  • +
  • encodingMib () +
    + +
    returns (int)
    In versions KDE 3.5.0 and above only

  • +
  • fileName (url) +
    + +
    returns (QCString)
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    urlKURL
    +

  • +
  • setEncoding (name) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    namechar
    +

  • +
  • virtual_hook (id, data) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + + +
    ArgumentTypeDefault
    idint
    datavoid
    +

  • +
+ + + diff --git a/doc/classref/kio/KRun.html b/doc/classref/kio/KRun.html new file mode 100644 index 0000000..403f973 --- /dev/null +++ b/doc/classref/kio/KRun.html @@ -0,0 +1,360 @@ + + + + + class KRun + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KRun


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKRun
InheritsQObject
+

methods

    +
  • KRun (url, mode = 0, isLocalFile = 0, showProgressInfo = 1) +
    +
    returns a KRun instance
    + + + + +
    ArgumentTypeDefault
    urlKURL
    modemode_t0
    isLocalFilebool0
    showProgressInfobool1
    +

  • +
  • KRun (url, window, mode = 0, isLocalFile = 0, showProgressInfo = 1) +
    + +
    returns a KRun instance
    In versions KDE 3.2.0 and above only
    + + + + + +
    ArgumentTypeDefault
    urlKURL
    windowQWidget
    modemode_t0
    isLocalFilebool0
    showProgressInfobool1
    +

  • +
  • abort () +
    +
    returns nothing

  • +
  • autoDelete () +
    +
    returns (bool)

  • +
  • binaryName (execLine, removePath) +
    + + +
    returns (QString)
    In versions KDE 3.1.0 and above only
    static
    + + +
    ArgumentTypeDefault
    execLineQString
    removePathbool
    +

  • +
  • checkStartupNotify (binName, service, wmclass_arg) +
    + + +
    returns (bool) silent_arg (bool)
    In versions KDE 3.4.0 and above only
    static
    + + + +
    ArgumentTypeDefault
    binNameQString
    serviceKService
    wmclass_argQCString
    +

  • +
  • displayOpenWithDialog (lst, tempFiles) +
    + + +
    returns (bool)
    In versions KDE 3.1.0 and above only
    static
    + + +
    ArgumentTypeDefault
    lstKURL.List
    tempFilesbool
    +

  • +
  • displayOpenWithDialog (lst) +
    + +
    returns (bool)
    static
    + +
    ArgumentTypeDefault
    lstKURL.List
    +

  • +
  • displayOpenWithDialog (lst, tempFiles, suggestedFileName) +
    + + +
    returns (bool)
    In versions KDE 3.5.3 and above only
    static
    + + + +
    ArgumentTypeDefault
    lstKURL.List
    tempFilesbool
    suggestedFileNameQString
    +

  • +
  • error () +
    +
    returns nothing

  • +
  • finished () +
    +
    returns nothing

  • +
  • foundMimeType (_type) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    _typeQString
    +

  • +
  • hasError () +
    +
    returns (bool)

  • +
  • hasFinished () +
    +
    returns (bool)

  • +
  • init () +
    +
    returns nothing

  • +
  • isExecutable (serviceType) +
    + + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    static
    + +
    ArgumentTypeDefault
    serviceTypeQString
    +

  • +
  • isExecutableFile (url, mimetype) +
    + + +
    returns (bool)
    In versions KDE 3.3.0 and above only
    static
    + + +
    ArgumentTypeDefault
    urlKURL
    mimetypeQString
    +

  • +
  • killJob () +
    +
    returns nothing

  • +
  • processDesktopExec (_service, _urls, has_shell, tempFiles) +
    + + +
    returns (QStringList)
    In versions KDE 3.1.0 and above only
    static
    + + + + +
    ArgumentTypeDefault
    _serviceKService
    _urlsKURL.List
    has_shellbool
    tempFilesbool
    +

  • +
  • processDesktopExec (_service, _urls, has_shell) +
    + +
    returns (QStringList)
    static
    + + + +
    ArgumentTypeDefault
    _serviceKService
    _urlsKURL.List
    has_shellbool
    +

  • +
  • processDesktopExec (_service, _urls, has_shell, tempFiles, suggestedFileName) +
    + + +
    returns (QStringList)
    In versions KDE 3.5.3 and above only
    static
    + + + + + +
    ArgumentTypeDefault
    _serviceKService
    _urlsKURL.List
    has_shellbool
    tempFilesbool
    suggestedFileNameQString
    +

  • +
  • run (_service, _urls, window, tempFiles = 0) +
    + + +
    returns (pid_t)
    In versions KDE 3.5.2 and above only
    static
    + + + + +
    ArgumentTypeDefault
    _serviceKService
    _urlsKURL.List
    windowQWidget
    tempFilesbool0
    +

  • +
  • run (_service, _urls, tempFiles) +
    + + +
    returns (pid_t)
    In versions KDE 3.1.0 and above only
    static
    + + + +
    ArgumentTypeDefault
    _serviceKService
    _urlsKURL.List
    tempFilesbool
    +

  • +
  • run (_service, _urls) +
    + +
    returns (pid_t)
    static
    + + +
    ArgumentTypeDefault
    _serviceKService
    _urlsKURL.List
    +

  • +
  • run (_service, _urls, window, tempFiles, suggestedFileName) +
    + + +
    returns (pid_t)
    In versions KDE 3.5.3 and above only
    static
    + + + + + +
    ArgumentTypeDefault
    _serviceKService
    _urlsKURL.List
    windowQWidget
    tempFilesbool
    suggestedFileNameQString
    +

  • +
  • run (_exec, _urls, _name = QString .null, _icon = QString .null, _obsolete1 = QString .null, _obsolete2 = QString .null) +
    + +
    returns (pid_t)
    static
    + + + + + + +
    ArgumentTypeDefault
    _execQString
    _urlsKURL.List
    _nameQStringQString .null
    _iconQStringQString .null
    _obsolete1QStringQString .null
    _obsolete2QStringQString .null
    +

  • +
  • runCommand (cmd) +
    + +
    returns (pid_t)
    static
    + +
    ArgumentTypeDefault
    cmdQString
    +

  • +
  • runCommand (cmd, execName, icon) +
    + +
    returns (pid_t)
    static
    + + + +
    ArgumentTypeDefault
    cmdQString
    execNameQString
    iconQString
    +

  • +
  • runURL (_url, _mimetype, tempFile, runExecutables) +
    + + +
    returns (pid_t)
    In versions KDE 3.2.0 and above only
    static
    + + + + +
    ArgumentTypeDefault
    _urlKURL
    _mimetypeQString
    tempFilebool
    runExecutablesbool
    +

  • +
  • runURL (_url, _mimetype, tempFile) +
    + + +
    returns (pid_t)
    In versions KDE 3.1.0 and above only
    static
    + + + +
    ArgumentTypeDefault
    _urlKURL
    _mimetypeQString
    tempFilebool
    +

  • +
  • runURL (_url, _mimetype) +
    + +
    returns (pid_t)
    static
    + + +
    ArgumentTypeDefault
    _urlKURL
    _mimetypeQString
    +

  • +
  • runURL (_url, _mimetype, tempFile, runExecutables, suggestedFileName) +
    + + +
    returns (pid_t)
    In versions KDE 3.5.3 and above only
    static
    + + + + + +
    ArgumentTypeDefault
    _urlKURL
    _mimetypeQString
    tempFilebool
    runExecutablesbool
    suggestedFileNameQString
    +

  • +
  • scanFile () +
    +
    returns nothing

  • +
  • setAutoDelete (b) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    bbool
    +

  • +
  • setEnableExternalBrowser (b) +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only
    + +
    ArgumentTypeDefault
    bbool
    +

  • +
  • setPreferredService (desktopEntryName) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    desktopEntryNameQString
    +

  • +
  • setRunExecutables (b) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    bbool
    +

  • +
  • setSuggestedFileName (fileName) +
    + +
    returns nothing
    In versions KDE 3.5.3 and above only
    + +
    ArgumentTypeDefault
    fileNameQString
    +

  • +
  • shellQuote (_str) +
    + +
    returns nothing
    static
    + +
    ArgumentTypeDefault
    _strQString
    +

  • +
  • slotScanFinished (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KIO.Job
    +

  • +
  • slotScanMimeType (a0, type) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    a0KIO.Job
    typeQString
    +

  • +
  • slotStatResult (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KIO.Job
    +

  • +
  • slotTimeout () +
    +
    returns nothing

  • +
+ + + diff --git a/doc/classref/kio/KSambaShare.html b/doc/classref/kio/KSambaShare.html new file mode 100644 index 0000000..b6f8bed --- /dev/null +++ b/doc/classref/kio/KSambaShare.html @@ -0,0 +1,69 @@ + + + + + class KSambaShare + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KSambaShare


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKSambaShare
InheritsQObject
+

methods

    +
  • KSambaShare () +
    + +
    returns a KSambaShare instance
    In versions KDE 3.3.0 and above only

  • +
  • changed () +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only

  • +
  • instance () +
    + + +
    returns (KSambaShare)
    In versions KDE 3.3.0 and above only
    static

  • +
  • isDirectoryShared (path) +
    + +
    returns (bool)
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    pathQString
    +

  • +
  • sharedDirectories () +
    + +
    returns (QStringList)
    In versions KDE 3.3.0 and above only

  • +
  • smbConfPath () +
    + +
    returns (QString)
    In versions KDE 3.3.0 and above only

  • +
+ + + diff --git a/doc/classref/kio/KScanDialog.html b/doc/classref/kio/KScanDialog.html new file mode 100644 index 0000000..7e83299 --- /dev/null +++ b/doc/classref/kio/KScanDialog.html @@ -0,0 +1,90 @@ + + + + + class KScanDialog + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KScanDialog


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKScanDialog
InheritsKDialogBase
+

methods

    +
  • KScanDialog (dialogFace = Tabbed, buttonMask = Close | Help, parent = 0, name = 0, modal = 0) +
    +
    returns a KScanDialog instance
    + + + + + +
    ArgumentTypeDefault
    dialogFaceintTabbed
    buttonMaskintClose | Help
    parentQWidget0
    namechar0
    modalbool0
    +

  • +
  • finalImage (img, id) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    imgQImage
    idint
    +

  • +
  • getScanDialog (parent = 0, name = 0, modal = 0) +
    + +
    returns (KScanDialog)
    static
    + + + +
    ArgumentTypeDefault
    parentQWidget0
    namechar0
    modalbool0
    +

  • +
  • id () +
    +
    returns (int)

  • +
  • nextId () +
    +
    returns (int)

  • +
  • preview (img, id) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    imgQImage
    idint
    +

  • +
  • setup () +
    +
    returns (bool)

  • +
  • textRecognized (text, id) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    textQString
    idint
    +

  • +
+ + + diff --git a/doc/classref/kio/KScanDialogFactory.html b/doc/classref/kio/KScanDialogFactory.html new file mode 100644 index 0000000..1f0fb92 --- /dev/null +++ b/doc/classref/kio/KScanDialogFactory.html @@ -0,0 +1,75 @@ + + + + + class KScanDialogFactory + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KScanDialogFactory


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKScanDialogFactory (abstract)
InheritsKLibFactory
+

methods

    +
  • KScanDialogFactory (parent = 0, name = 0) +
    +
    returns a KScanDialogFactory instance
    + + +
    ArgumentTypeDefault
    parentQObject0
    namechar0
    +

  • +
  • createDialog (parent = 0, name = 0, modal = 0) = 0 +
    + +
    returns (KScanDialog)
    pure virtual
    + + + +
    ArgumentTypeDefault
    parentQWidget0
    namechar0
    modalbool0
    +

  • +
  • createObject (parent = 0, name = 0, classname = "QObject", args = QStringList ()) +
    +
    returns (QObject)
    + + + + +
    ArgumentTypeDefault
    parentQObject0
    namechar0
    classnamechar"QObject"
    argsQStringListQStringList ()
    +

  • +
  • instance () +
    +
    returns (KInstance)

  • +
  • setName (instanceName) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    instanceNameQCString
    +

  • +
+ + + diff --git a/doc/classref/kio/KService.html b/doc/classref/kio/KService.html new file mode 100644 index 0000000..e13cb2e --- /dev/null +++ b/doc/classref/kio/KService.html @@ -0,0 +1,324 @@ + + + + + class KService + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KService


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKService
InheritsKSycocaEntry
+

enums

    +
  • DCOPServiceType_t = {DCOP_None, DCOP_Unique, DCOP_Multi, DCOP_Wait +}
+

methods

    +
  • DCOPServiceType () +
    +
    returns (DCOPServiceType_t)

  • +
  • KService (_name, _exec, _icon) +
    +
    returns a KService instance
    + + + +
    ArgumentTypeDefault
    _nameQString
    _execQString
    _iconQString
    +

  • +
  • KService (_fullpath) +
    +
    returns a KService instance
    + +
    ArgumentTypeDefault
    _fullpathQString
    +

  • +
  • KService (config) +
    +
    returns a KService instance
    + +
    ArgumentTypeDefault
    configKDesktopFile
    +

  • +
  • KService (_str, offset) +
    +
    returns a KService instance
    + + +
    ArgumentTypeDefault
    _strQDataStream
    offsetint
    +

  • +
  • KService (a0) +
    + +
    returns a KService instance
    In versions KDE 3.1.1 and above only
    + +
    ArgumentTypeDefault
    a0KService
    +

  • +
  • accessServiceTypes () +
    +
    returns (QStringList)

  • +
  • allInitServices () +
    + +
    returns (KService.List)
    static

  • +
  • allServices () +
    + +
    returns (KService.List)
    static

  • +
  • allowAsDefault () +
    +
    returns (bool)

  • +
  • allowMultipleFiles () +
    +
    returns (bool)

  • +
  • categories () +
    + +
    returns (QStringList)
    In versions KDE 3.1.0 and above only

  • +
  • comment () +
    +
    returns (QString)

  • +
  • desktopEntryName () +
    +
    returns (QString)

  • +
  • desktopEntryPath () +
    +
    returns (QString)

  • +
  • exec_ () +
    + +
    returns (QString)
    Renamed: was ' exec +' in C++

  • +
  • genericName () +
    +
    returns (QString)

  • +
  • hasServiceType (_service) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    _serviceQString
    +

  • +
  • icon () +
    +
    returns (QString)

  • +
  • init () +
    +
    returns (QString)

  • +
  • init (config) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    configKDesktopFile
    +

  • +
  • initialPreference () +
    +
    returns (int)

  • +
  • initialPreferenceForMimeType (mimeType) +
    + +
    returns (int)
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    mimeTypeQString
    +

  • +
  • isValid () +
    +
    returns (bool)

  • +
  • keywords () +
    +
    returns (QStringList)

  • +
  • library () +
    +
    returns (QString)

  • +
  • load (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QDataStream
    +

  • +
  • locateLocal () +
    + +
    returns (QString)
    In versions KDE 3.2.0 and above only

  • +
  • menuId () +
    + +
    returns (QString)
    In versions KDE 3.2.0 and above only

  • +
  • name () +
    +
    returns (QString)

  • +
  • newServicePath (showInMenu, suggestedName, menuId = 0, reservedMenuIds = 0) +
    + + +
    returns (QString)
    In versions KDE 3.2.0 and above only
    static
    + + + + +
    ArgumentTypeDefault
    showInMenubool
    suggestedNameQString
    menuIdQString0
    reservedMenuIdsQStringList0
    +

  • +
  • noDisplay () +
    +
    returns (bool)

  • +
  • parentApp () +
    + +
    returns (QString)
    In versions KDE 3.1.0 and above only

  • +
  • path () +
    +
    returns (QString)

  • +
  • pixmap (_group, _force_size = 0, _state = 0, _path = 0) +
    +
    returns (QPixmap)
    + + + + +
    ArgumentTypeDefault
    _groupKIcon.Group
    _force_sizeint0
    _stateint0
    _pathQString0
    +

  • +
  • property (_name) +
    +
    returns (QVariant)
    + +
    ArgumentTypeDefault
    _nameQString
    +

  • +
  • property (_name, t) +
    + +
    returns (QVariant)
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    _nameQString
    tQVariant.Type
    +

  • +
  • propertyNames () +
    +
    returns (QStringList)

  • +
  • rebuildKSycoca (parent) +
    + + +
    returns nothing
    In versions KDE 3.2.0 and above only
    static
    + +
    ArgumentTypeDefault
    parentQWidget
    +

  • +
  • save (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QDataStream
    +

  • +
  • serviceByDesktopName (_name) +
    + +
    returns (KService.Ptr)
    static
    + +
    ArgumentTypeDefault
    _nameQString
    +

  • +
  • serviceByDesktopPath (_path) +
    + +
    returns (KService.Ptr)
    static
    + +
    ArgumentTypeDefault
    _pathQString
    +

  • +
  • serviceByMenuId (_menuId) +
    + + +
    returns (KService.Ptr)
    In versions KDE 3.2.0 and above only
    static
    + +
    ArgumentTypeDefault
    _menuIdQString
    +

  • +
  • serviceByName (_name) +
    + +
    returns (KService.Ptr)
    static
    + +
    ArgumentTypeDefault
    _nameQString
    +

  • +
  • serviceByStorageId (_storageId) +
    + + +
    returns (KService.Ptr)
    In versions KDE 3.2.0 and above only
    static
    + +
    ArgumentTypeDefault
    _storageIdQString
    +

  • +
  • serviceTypes () +
    +
    returns (QStringList)

  • +
  • setInitialPreference (i) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    iint
    +

  • +
  • setMenuId (menuId) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    menuIdQString
    +

  • +
  • setTerminal (b) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    bbool
    +

  • +
  • setTerminalOptions (options) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    optionsQString
    +

  • +
  • storageId () +
    + +
    returns (QString)
    In versions KDE 3.2.0 and above only

  • +
  • substituteUid () +
    +
    returns (bool)

  • +
  • terminal () +
    +
    returns (bool)

  • +
  • terminalOptions () +
    +
    returns (QString)

  • +
  • type () +
    +
    returns (QString)

  • +
  • untranslatedGenericName () +
    + +
    returns (QString)
    In versions KDE 3.2.0 and above only

  • +
  • username () +
    +
    returns (QString)

  • +
+ + + diff --git a/doc/classref/kio/KServiceGroup.html b/doc/classref/kio/KServiceGroup.html new file mode 100644 index 0000000..2de756f --- /dev/null +++ b/doc/classref/kio/KServiceGroup.html @@ -0,0 +1,240 @@ + + + + + class KServiceGroup + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KServiceGroup


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKServiceGroup
InheritsKSycocaEntry
+

methods

    +
  • KServiceGroup (name) +
    + +
    returns a KServiceGroup instance
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    nameQString
    +

  • +
  • KServiceGroup (_fullpath, _relpath) +
    +
    returns a KServiceGroup instance
    + + +
    ArgumentTypeDefault
    _fullpathQString
    _relpathQString
    +

  • +
  • KServiceGroup (_str, offset, deep) +
    +
    returns a KServiceGroup instance
    + + + +
    ArgumentTypeDefault
    _strQDataStream
    offsetint
    deepbool
    +

  • +
  • addEntry (entry) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    entryKSycocaEntry
    +

  • +
  • allowInline () +
    + +
    returns (bool)
    In versions KDE 3.5.0 and above only

  • +
  • baseGroup (baseGroupName) +
    + +
    returns (KServiceGroup.Ptr)
    static
    + +
    ArgumentTypeDefault
    baseGroupNameQString
    +

  • +
  • baseGroupName () +
    +
    returns (QString)

  • +
  • caption () +
    +
    returns (QString)

  • +
  • childCount () +
    +
    returns (int)

  • +
  • childGroup (parent) +
    + + +
    returns (KServiceGroup.Ptr)
    In versions KDE 3.1.0 and above only
    static
    + +
    ArgumentTypeDefault
    parentQString
    +

  • +
  • comment () +
    +
    returns (QString)

  • +
  • directoryEntryPath () +
    + +
    returns (QString)
    In versions KDE 3.2.0 and above only

  • +
  • entries (sorted, excludeNoDisplay, allowSeparators, sortByGenericName = 0) +
    + +
    returns (KServiceGroup.List)
    In versions KDE 3.2.0 and above only
    + + + + +
    ArgumentTypeDefault
    sortedbool
    excludeNoDisplaybool
    allowSeparatorsbool
    sortByGenericNamebool0
    +

  • +
  • entries (sorted, excludeNoDisplay) +
    +
    returns (KSycocaEntry.List)
    + + +
    ArgumentTypeDefault
    sortedbool
    excludeNoDisplaybool
    +

  • +
  • entries (sorted = 0) +
    + +
    returns (KServiceGroup.List)
    In versions KDE 3.1.2 and above only
    + +
    ArgumentTypeDefault
    sortedbool0
    +

  • +
  • group (relPath) +
    + +
    returns (KServiceGroup.Ptr)
    static
    + +
    ArgumentTypeDefault
    relPathQString
    +

  • +
  • icon () +
    +
    returns (QString)

  • +
  • inlineAlias () +
    + +
    returns (bool)
    In versions KDE 3.5.0 and above only

  • +
  • inlineValue () +
    + +
    returns (int)
    In versions KDE 3.5.0 and above only

  • +
  • isValid () +
    +
    returns (bool)

  • +
  • layoutInfo () +
    + +
    returns (QStringList)
    In versions KDE 3.3.0 and above only

  • +
  • load (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QDataStream
    +

  • +
  • name () +
    +
    returns (QString)

  • +
  • noDisplay () +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above only

  • +
  • parseAttribute (item) +
    + +
    returns showEmptyMenu (bool) showInline (bool) showInlineHeader (bool) showInlineAlias (bool) inlineValue (int)
    In versions KDE 3.5.0 and above only
    + +
    ArgumentTypeDefault
    itemQString
    +

  • +
  • relPath () +
    +
    returns (QString)

  • +
  • root () +
    + +
    returns (KServiceGroup.Ptr)
    static

  • +
  • save (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QDataStream
    +

  • +
  • setAllowInline (_b) +
    + +
    returns nothing
    In versions KDE 3.5.0 and above only
    + +
    ArgumentTypeDefault
    _bbool
    +

  • +
  • setInlineAlias (_b) +
    + +
    returns nothing
    In versions KDE 3.5.0 and above only
    + +
    ArgumentTypeDefault
    _bbool
    +

  • +
  • setInlineValue (_val) +
    + +
    returns nothing
    In versions KDE 3.5.0 and above only
    + +
    ArgumentTypeDefault
    _valint
    +

  • +
  • setLayoutInfo (layout) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    layoutQStringList
    +

  • +
  • setShowEmptyMenu (b) +
    + +
    returns nothing
    In versions KDE 3.5.0 and above only
    + +
    ArgumentTypeDefault
    bbool
    +

  • +
  • setShowInlineHeader (_b) +
    + +
    returns nothing
    In versions KDE 3.5.0 and above only
    + +
    ArgumentTypeDefault
    _bbool
    +

  • +
  • showEmptyMenu () +
    + +
    returns (bool)
    In versions KDE 3.5.0 and above only

  • +
  • showInlineHeader () +
    + +
    returns (bool)
    In versions KDE 3.5.0 and above only

  • +
  • suppressGenericNames () +
    + +
    returns (QStringList)
    In versions KDE 3.2.0 and above only

  • +
+ + + diff --git a/doc/classref/kio/KServiceOffer.html b/doc/classref/kio/KServiceOffer.html new file mode 100644 index 0000000..630baa1 --- /dev/null +++ b/doc/classref/kio/KServiceOffer.html @@ -0,0 +1,79 @@ + + + + + class KServiceOffer + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KServiceOffer


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKServiceOffer
Inherits
+

methods

    +
  • KServiceOffer () +
    +
    returns a KServiceOffer instance

  • +
  • KServiceOffer (a0) +
    +
    returns a KServiceOffer instance
    + +
    ArgumentTypeDefault
    a0KServiceOffer
    +

  • +
  • KServiceOffer (_service, _pref, _default) +
    +
    returns a KServiceOffer instance
    + + + +
    ArgumentTypeDefault
    _serviceKService.Ptr
    _prefint
    _defaultbool
    +

  • +
  • allowAsDefault () +
    +
    returns (bool)

  • +
  • isValid () +
    +
    returns (bool)

  • +
  • preference () +
    +
    returns (int)

  • +
  • service () +
    +
    returns (KService.Ptr)

  • +
+

operators

    +
  • operator < (a0) +
    + +
    returns (bool)
    In versions KDE 3.1.4 and above only
    + +
    ArgumentTypeDefault
    a0KServiceOffer
    +

  • +
+ + + diff --git a/doc/classref/kio/KServiceSeparator.html b/doc/classref/kio/KServiceSeparator.html new file mode 100644 index 0000000..f4bc263 --- /dev/null +++ b/doc/classref/kio/KServiceSeparator.html @@ -0,0 +1,67 @@ + + + + + class KServiceSeparator + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KServiceSeparator


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKServiceSeparator
InheritsKSycocaEntry
+

methods

    +
  • KServiceSeparator () +
    + +
    returns a KServiceSeparator instance
    In versions KDE 3.2.0 and above only

  • +
  • isValid () +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only

  • +
  • load (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0QDataStream
    +

  • +
  • name () +
    + +
    returns (QString)
    In versions KDE 3.2.0 and above only

  • +
  • save (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0QDataStream
    +

  • +
+ + + diff --git a/doc/classref/kio/KServiceType.html b/doc/classref/kio/KServiceType.html new file mode 100644 index 0000000..bd48ce6 --- /dev/null +++ b/doc/classref/kio/KServiceType.html @@ -0,0 +1,169 @@ + + + + + class KServiceType + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KServiceType


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKServiceType
InheritsKSycocaEntry
+

methods

    +
  • KServiceType (_fullpath, _name, _icon, _comment) +
    +
    returns a KServiceType instance
    + + + + +
    ArgumentTypeDefault
    _fullpathQString
    _nameQString
    _iconQString
    _commentQString
    +

  • +
  • KServiceType (_fullpath) +
    +
    returns a KServiceType instance
    + +
    ArgumentTypeDefault
    _fullpathQString
    +

  • +
  • KServiceType (config) +
    +
    returns a KServiceType instance
    + +
    ArgumentTypeDefault
    configKDesktopFile
    +

  • +
  • KServiceType (_str, offset) +
    +
    returns a KServiceType instance
    + + +
    ArgumentTypeDefault
    _strQDataStream
    offsetint
    +

  • +
  • addService (service) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    serviceKService.Ptr
    +

  • +
  • allServiceTypes () +
    + +
    returns (KServiceType.List)
    static

  • +
  • comment () +
    +
    returns (QString)

  • +
  • desktopEntryPath () +
    +
    returns (QString)

  • +
  • icon () +
    +
    returns (QString)

  • +
  • inherits (servTypeName) +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    servTypeNameQString
    +

  • +
  • init (config) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    configKDesktopFile
    +

  • +
  • isDerived () +
    +
    returns (bool)

  • +
  • isValid () +
    +
    returns (bool)

  • +
  • load (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QDataStream
    +

  • +
  • name () +
    +
    returns (QString)

  • +
  • offers (_servicetype) +
    + +
    returns (KService.List)
    static
    + +
    ArgumentTypeDefault
    _servicetypeQString
    +

  • +
  • parentServiceType () +
    +
    returns (QString)

  • +
  • parentType () +
    + +
    returns (KServiceType.Ptr)
    In versions KDE 3.2.0 and above only

  • +
  • property (_name) +
    +
    returns (QVariant)
    + +
    ArgumentTypeDefault
    _nameQString
    +

  • +
  • propertyDef (_name) +
    +
    returns (QVariant.Type)
    + +
    ArgumentTypeDefault
    _nameQString
    +

  • +
  • propertyDefNames () +
    +
    returns (QStringList)

  • +
  • propertyDefs () +
    +
    returns (QMap)

  • +
  • propertyNames () +
    +
    returns (QStringList)

  • +
  • save (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QDataStream
    +

  • +
  • serviceType (_name) +
    + +
    returns (KServiceType.Ptr)
    static
    + +
    ArgumentTypeDefault
    _nameQString
    +

  • +
  • services () +
    + +
    returns (KService.List)
    In versions KDE 3.2.0 and above only

  • +
+ + + diff --git a/doc/classref/kio/KServiceTypeProfile.html b/doc/classref/kio/KServiceTypeProfile.html new file mode 100644 index 0000000..a53ffe8 --- /dev/null +++ b/doc/classref/kio/KServiceTypeProfile.html @@ -0,0 +1,111 @@ + + + + + class KServiceTypeProfile + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KServiceTypeProfile


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKServiceTypeProfile
Inherits
+

methods

    +
  • KServiceTypeProfile (serviceType, genericServiceType = QString .null) +
    +
    returns a KServiceTypeProfile instance
    + + +
    ArgumentTypeDefault
    serviceTypeQString
    genericServiceTypeQStringQString .null
    +

  • +
  • addService (_service, _preference = 1, _allow_as_default = 1) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    _serviceQString
    _preferenceint1
    _allow_as_defaultbool1
    +

  • +
  • allowAsDefault (_service) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    _serviceQString
    +

  • +
  • clear () +
    + +
    returns nothing
    static

  • +
  • configurationMode () +
    + +
    returns (bool)
    static

  • +
  • offers () +
    +
    returns (KServiceTypeProfile.OfferList)

  • +
  • offers (servicetype, genericServiceType) +
    + +
    returns (KServiceTypeProfile.OfferList)
    static
    + + +
    ArgumentTypeDefault
    servicetypeQString
    genericServiceTypeQString
    +

  • +
  • preference (_service) +
    +
    returns (int)
    + +
    ArgumentTypeDefault
    _serviceQString
    +

  • +
  • preferredService (serviceType, genericServiceType) +
    + +
    returns (KService.Ptr)
    static
    + + +
    ArgumentTypeDefault
    serviceTypeQString
    genericServiceTypeQString
    +

  • +
  • serviceTypeProfile (servicetype, genericServiceType) +
    + +
    returns (KServiceTypeProfile)
    static
    + + +
    ArgumentTypeDefault
    servicetypeQString
    genericServiceTypeQString
    +

  • +
  • serviceTypeProfiles () +
    + +
    returns (QPtrList)
    static

  • +
  • setConfigurationMode () +
    + +
    returns nothing
    static

  • +
+ + + diff --git a/doc/classref/kio/KShellCompletion.html b/doc/classref/kio/KShellCompletion.html new file mode 100644 index 0000000..6dac1a7 --- /dev/null +++ b/doc/classref/kio/KShellCompletion.html @@ -0,0 +1,65 @@ + + + + + class KShellCompletion + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KShellCompletion


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKShellCompletion
InheritsKURLCompletion
+

methods

    +
  • KShellCompletion () +
    +
    returns a KShellCompletion instance

  • +
  • makeCompletion (text) +
    +
    returns (QString)
    + +
    ArgumentTypeDefault
    textQString
    +

  • +
  • postProcessMatch (match) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    matchQString
    +

  • +
  • postProcessMatches (matches) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    matchesQStringList
    +

  • +
  • postProcessMatches (matches) +
    Not Implemented
    +

  • +
+ + + diff --git a/doc/classref/kio/KShred.html b/doc/classref/kio/KShred.html new file mode 100644 index 0000000..25edbc0 --- /dev/null +++ b/doc/classref/kio/KShred.html @@ -0,0 +1,91 @@ + + + + + class KShred + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KShred


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKShred
InheritsQObject
+

methods

    +
  • KShred (fileName) +
    +
    returns a KShred instance
    + +
    ArgumentTypeDefault
    fileNameQString
    +

  • +
  • fill0s () +
    +
    returns (bool)

  • +
  • fill1s () +
    +
    returns (bool)

  • +
  • fillbyte (byte) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    byteuint
    +

  • +
  • fillpattern (pattern, size) +
    +
    returns (bool)
    + + +
    ArgumentTypeDefault
    patternuchar
    sizeuint
    +

  • +
  • fillrandom () +
    +
    returns (bool)

  • +
  • infoMessage (message) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    messageQString
    +

  • +
  • processedSize (bytes) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    bytesKIO.filesize_t
    +

  • +
  • shred () +
    +
    returns (bool)

  • +
  • shred (fileName) +
    + +
    returns (bool)
    static
    + +
    ArgumentTypeDefault
    fileNameQString
    +

  • +
+ + + diff --git a/doc/classref/kio/KSimpleFileFilter.html b/doc/classref/kio/KSimpleFileFilter.html new file mode 100644 index 0000000..6992f02 --- /dev/null +++ b/doc/classref/kio/KSimpleFileFilter.html @@ -0,0 +1,104 @@ + + + + + class KSimpleFileFilter + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KSimpleFileFilter


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKSimpleFileFilter
InheritsKFileFilter
+

methods

    +
  • KSimpleFileFilter () +
    +
    returns a KSimpleFileFilter instance

  • +
  • filterDotFiles () +
    +
    returns (bool)

  • +
  • filterSpecials () +
    +
    returns (bool)

  • +
  • mimeFilters () +
    +
    returns (QStringList)

  • +
  • modeFilter () +
    +
    returns (mode_t)

  • +
  • nameFilters () +
    Not Implemented
    +

  • +
  • passesFilter (item) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    itemKFileItem
    +

  • +
  • setFilterDotFiles (filter) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    filterbool
    +

  • +
  • setFilterSpecials (filter) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    filterbool
    +

  • +
  • setMimeFilters (mimeFilters) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    mimeFiltersQStringList
    +

  • +
  • setModeFilter (mode) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    modemode_t
    +

  • +
  • setNameFilters (nameFilters, caseSensitive, separator = ' ') +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + + + +
    ArgumentTypeDefault
    nameFiltersQString
    caseSensitivebool
    separatorQChar' '
    +

  • +
  • setNameFilters (nameFilters) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    nameFiltersQString
    +

  • +
+ + + diff --git a/doc/classref/kio/KSycoca.html b/doc/classref/kio/KSycoca.html new file mode 100644 index 0000000..db03022 --- /dev/null +++ b/doc/classref/kio/KSycoca.html @@ -0,0 +1,172 @@ + + + + + class KSycoca + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KSycoca


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKSycoca
InheritsQObject, DCOPObject
+

methods

    +
  • KSycoca (a0) +
    +
    returns a KSycoca instance
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • KSycoca () +
    +
    returns a KSycoca instance

  • +
  • addFactory (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KSycocaFactory
    +

  • +
  • allResourceDirs () +
    + +
    returns (QStringList)
    In versions KDE 3.2.0 and above only

  • +
  • checkVersion (abortOnError = 1) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    abortOnErrorbool1
    +

  • +
  • closeDatabase () +
    +
    returns nothing

  • +
  • databaseChanged () +
    +
    returns nothing

  • +
  • determineRelativePath (_fullpath, _resource) +
    + +
    returns (QString)
    static
    + + +
    ArgumentTypeDefault
    _fullpathQString
    _resourcechar
    +

  • +
  • disableAutoRebuild () +
    + +
    returns nothing
    In versions KDE 3.1.2 and above only

  • +
  • findEntry (offset) +
    +
    returns (QDataStream) type (KSycocaType)
    + +
    ArgumentTypeDefault
    offsetint
    +

  • +
  • findFactory (id) +
    +
    returns (QDataStream)
    + +
    ArgumentTypeDefault
    idKSycocaFactoryId
    +

  • +
  • flagError () +
    + + +
    returns nothing
    In versions KDE 3.1.0 and above only
    static

  • +
  • functions () +
    + +
    returns (QCStringList)
    In versions KDE 3.1.4 and above only

  • +
  • interfaces () +
    + +
    returns (QCStringList)
    In versions KDE 3.1.4 and above only

  • +
  • isBuilding () +
    +
    returns (bool)

  • +
  • isChanged (type) +
    + +
    returns (bool)
    static
    + +
    ArgumentTypeDefault
    typechar
    +

  • +
  • kfsstnd_prefixes () +
    +
    returns (QString)

  • +
  • language () +
    +
    returns (QString)

  • +
  • notifyDatabaseChanged (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QStringList
    +

  • +
  • openDatabase (openDummyIfNotFound = 1) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    openDummyIfNotFoundbool1
    +

  • +
  • process (fun, data, replyType, replyData) +
    + +
    returns (bool)
    In versions KDE 3.1.4 and above only
    + + + + +
    ArgumentTypeDefault
    funQCString
    dataQByteArray
    replyTypeQCString
    replyDataQByteArray
    +

  • +
  • readError () +
    + + +
    returns (bool)
    In versions KDE 3.1.0 and above only
    static

  • +
  • self () +
    + +
    returns (KSycoca)
    static

  • +
  • timeStamp () +
    +
    returns (ulong)

  • +
  • updateSignature () +
    + +
    returns (ulong)
    In versions KDE 3.1.0 and above only

  • +
  • version () +
    + + +
    returns (int)
    In versions KDE 3.2.0 and above only
    static

  • +
+

variables

+ + + diff --git a/doc/classref/kio/KSycocaDict.html b/doc/classref/kio/KSycocaDict.html new file mode 100644 index 0000000..578ef0a --- /dev/null +++ b/doc/classref/kio/KSycocaDict.html @@ -0,0 +1,96 @@ + + + + + class KSycocaDict + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KSycocaDict


+
+ + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKSycocaDict
Inherits
+

methods

    +
  • KSycocaDict () +
    + +
    returns a KSycocaDict instance
    In versions KDE 3.3.0 and above only

  • +
  • KSycocaDict (str, offset) +
    + +
    returns a KSycocaDict instance
    In versions KDE 3.3.0 and above only
    + + +
    ArgumentTypeDefault
    strQDataStream
    offsetint
    +

  • +
  • add (key, payload) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + + +
    ArgumentTypeDefault
    keyQString
    payloadKSycocaEntry
    +

  • +
  • clear () +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only

  • +
  • count () +
    + +
    returns (uint)
    In versions KDE 3.3.0 and above only

  • +
  • find_string (key) +
    + +
    returns (int)
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    keyQString
    +

  • +
  • hashKey (a0) +
    + +
    returns (Q_UINT32)
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • remove (key) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    keyQString
    +

  • +
  • save (str) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    strQDataStream
    +

  • +
+ + + diff --git a/doc/classref/kio/KSycocaEntry.html b/doc/classref/kio/KSycocaEntry.html new file mode 100644 index 0000000..eaad2a1 --- /dev/null +++ b/doc/classref/kio/KSycocaEntry.html @@ -0,0 +1,111 @@ + + + + + class KSycocaEntry + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KSycocaEntry


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKSycocaEntry (abstract)
InheritsKShared
+

methods

    +
  • KSycocaEntry (path) +
    +
    returns a KSycocaEntry instance
    + +
    ArgumentTypeDefault
    pathQString
    +

  • +
  • KSycocaEntry (_str, offset) +
    +
    returns a KSycocaEntry instance
    + + +
    ArgumentTypeDefault
    _strQDataStream
    offsetint
    +

  • +
  • entryPath () +
    +
    returns (QString)

  • +
  • isDeleted () +
    +
    returns (bool)

  • +
  • isType (t) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    tKSycocaType
    +

  • +
  • isValid () = 0 +
    + +
    returns (bool)
    pure virtual

  • +
  • load (a0) = 0 +
    + +
    returns nothing
    pure virtual
    + +
    ArgumentTypeDefault
    a0QDataStream
    +

  • +
  • name () = 0 +
    + +
    returns (QString)
    pure virtual

  • +
  • offset () +
    +
    returns (int)

  • +
  • read (s, str) +
    + + +
    returns nothing
    In versions KDE 3.1.0 and above only
    static
    + + +
    ArgumentTypeDefault
    sQDataStream
    strQString
    +

  • +
  • read (s, list) +
    + + +
    returns nothing
    In versions KDE 3.1.0 and above only
    static
    + + +
    ArgumentTypeDefault
    sQDataStream
    listQStringList
    +

  • +
  • save (s) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    sQDataStream
    +

  • +
  • sycocaType () +
    +
    returns (KSycocaType)

  • +
+ + + diff --git a/doc/classref/kio/KSycocaFactory.html b/doc/classref/kio/KSycocaFactory.html new file mode 100644 index 0000000..5ac0af2 --- /dev/null +++ b/doc/classref/kio/KSycocaFactory.html @@ -0,0 +1,104 @@ + + + + + class KSycocaFactory + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KSycocaFactory


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKSycocaFactory (abstract)
Inherits
+

methods

    +
  • KSycocaFactory (factory_id) +
    +
    returns a KSycocaFactory instance
    + +
    ArgumentTypeDefault
    factory_idKSycocaFactoryId
    +

  • +
  • addEntry (newEntry, resource) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    newEntryKSycocaEntry
    resourcechar
    +

  • +
  • allEntries () +
    +
    returns (KSycocaEntry.List)

  • +
  • createEntry (file, resource) = 0 +
    + +
    returns (KSycocaEntry)
    pure virtual
    + + +
    ArgumentTypeDefault
    fileQString
    resourcechar
    +

  • +
  • createEntry (offset) = 0 +
    + +
    returns (KSycocaEntry)
    pure virtual
    + +
    ArgumentTypeDefault
    offsetint
    +

  • +
  • entryDict () +
    Not Implemented
    +

  • +
  • factoryId () = 0 +
    + +
    returns (KSycocaFactoryId)
    pure virtual

  • +
  • offset () +
    +
    returns (int)

  • +
  • removeEntry (newEntry) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    newEntryKSycocaEntry
    +

  • +
  • resourceList () +
    Not Implemented
    +

  • +
  • save (str) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    strQDataStream
    +

  • +
  • saveHeader (str) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    strQDataStream
    +

  • +
+ + + diff --git a/doc/classref/kio/KTar.html b/doc/classref/kio/KTar.html new file mode 100644 index 0000000..ff8ae3a --- /dev/null +++ b/doc/classref/kio/KTar.html @@ -0,0 +1,177 @@ + + + + + class KTar + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KTar


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKTar
InheritsKArchive
+

methods

    +
  • KTar (filename, mimetype = QString .null) +
    +
    returns a KTar instance
    + + +
    ArgumentTypeDefault
    filenameQString
    mimetypeQStringQString .null
    +

  • +
  • KTar (dev) +
    +
    returns a KTar instance
    + +
    ArgumentTypeDefault
    devQIODevice
    +

  • +
  • closeArchive () +
    +
    returns (bool)

  • +
  • doneWriting (size) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    sizeuint
    +

  • +
  • fileName () +
    +
    returns (QString)

  • +
  • openArchive (mode) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    modeint
    +

  • +
  • prepareWriting (name, user, group, size) +
    +
    returns (bool)
    + + + + +
    ArgumentTypeDefault
    nameQString
    userQString
    groupQString
    sizeuint
    +

  • +
  • prepareWriting (name, user, group, size, perm, atime, mtime, ctime) +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    + + + + + + + + +
    ArgumentTypeDefault
    nameQString
    userQString
    groupQString
    sizeuint
    permmode_t
    atimetime_t
    mtimetime_t
    ctimetime_t
    +

  • +
  • prepareWriting_impl (name, user, group, size, perm, atime, mtime, ctime) +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    + + + + + + + + +
    ArgumentTypeDefault
    nameQString
    userQString
    groupQString
    sizeuint
    permmode_t
    atimetime_t
    mtimetime_t
    ctimetime_t
    +

  • +
  • setOrigFileName (fileName) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    fileNameQCString
    +

  • +
  • writeDir (name, user, group) +
    +
    returns (bool)
    + + + +
    ArgumentTypeDefault
    nameQString
    userQString
    groupQString
    +

  • +
  • writeDir (name, user, group, perm, atime, mtime, ctime) +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    + + + + + + + +
    ArgumentTypeDefault
    nameQString
    userQString
    groupQString
    permmode_t
    atimetime_t
    mtimetime_t
    ctimetime_t
    +

  • +
  • writeDir_impl (name, user, group, perm, atime, mtime, ctime) +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    + + + + + + + +
    ArgumentTypeDefault
    nameQString
    userQString
    groupQString
    permmode_t
    atimetime_t
    mtimetime_t
    ctimetime_t
    +

  • +
  • writeSymLink (name, target, user, group, perm, atime, mtime, ctime) +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    + + + + + + + + +
    ArgumentTypeDefault
    nameQString
    targetQString
    userQString
    groupQString
    permmode_t
    atimetime_t
    mtimetime_t
    ctimetime_t
    +

  • +
  • writeSymLink_impl (name, target, user, group, perm, atime, mtime, ctime) +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    + + + + + + + + +
    ArgumentTypeDefault
    nameQString
    targetQString
    userQString
    groupQString
    permmode_t
    atimetime_t
    mtimetime_t
    ctimetime_t
    +

  • +
+ + + diff --git a/doc/classref/kio/KTrader.html b/doc/classref/kio/KTrader.html new file mode 100644 index 0000000..f6f26c0 --- /dev/null +++ b/doc/classref/kio/KTrader.html @@ -0,0 +1,65 @@ + + + + + class KTrader + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KTrader


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKTrader
InheritsQObject
+

methods

    +
  • KTrader () +
    +
    returns a KTrader instance

  • +
  • query (servicetype, constraint = QString .null, preferences = QString .null) +
    +
    returns (KTrader.OfferList)
    + + + +
    ArgumentTypeDefault
    servicetypeQString
    constraintQStringQString .null
    preferencesQStringQString .null
    +

  • +
  • query (servicetype, genericServiceType, constraint, preferences) +
    +
    returns (KTrader.OfferList)
    + + + + +
    ArgumentTypeDefault
    servicetypeQString
    genericServiceTypeQString
    constraintQString
    preferencesQString
    +

  • +
  • self () +
    + +
    returns (KTrader)
    static

  • +
+ + + diff --git a/doc/classref/kio/KURIFilter.html b/doc/classref/kio/KURIFilter.html new file mode 100644 index 0000000..a7dc88c --- /dev/null +++ b/doc/classref/kio/KURIFilter.html @@ -0,0 +1,93 @@ + + + + + class KURIFilter + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KURIFilter


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKURIFilter
Inherits
+

methods

    +
  • KURIFilter () +
    +
    returns a KURIFilter instance

  • +
  • filterURI (data, filters = QStringList ()) +
    +
    returns (bool)
    + + +
    ArgumentTypeDefault
    dataKURIFilterData
    filtersQStringListQStringList ()
    +

  • +
  • filterURI (uri, filters = QStringList ()) +
    +
    returns (bool)
    + + +
    ArgumentTypeDefault
    uriKURL
    filtersQStringListQStringList ()
    +

  • +
  • filterURI (uri, filters = QStringList ()) +
    +
    returns (bool)
    + + +
    ArgumentTypeDefault
    uriQString
    filtersQStringListQStringList ()
    +

  • +
  • filteredURI (uri, filters = QStringList ()) +
    +
    returns (KURL)
    + + +
    ArgumentTypeDefault
    uriKURL
    filtersQStringListQStringList ()
    +

  • +
  • filteredURI (uri, filters = QStringList ()) +
    +
    returns (QString)
    + + +
    ArgumentTypeDefault
    uriQString
    filtersQStringListQStringList ()
    +

  • +
  • loadPlugins () +
    +
    returns nothing

  • +
  • pluginNames () +
    + +
    returns (QStringList)
    In versions KDE 3.1.0 and above only

  • +
  • pluginsIterator () +
    Not Implemented
    +

  • +
  • self () +
    + +
    returns (KURIFilter)
    static

  • +
+ + + diff --git a/doc/classref/kio/KURIFilterData.html b/doc/classref/kio/KURIFilterData.html new file mode 100644 index 0000000..6bbcd41 --- /dev/null +++ b/doc/classref/kio/KURIFilterData.html @@ -0,0 +1,137 @@ + + + + + class KURIFilterData + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KURIFilterData


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKURIFilterData
Inherits
+

enums

    +
  • URITypes = {NET_PROTOCOL, LOCAL_FILE, LOCAL_DIR, EXECUTABLE, HELP, SHELL, BLOCKED, ERROR, UNKNOWN +}
+

methods

    +
  • KURIFilterData () +
    +
    returns a KURIFilterData instance

  • +
  • KURIFilterData (url) +
    +
    returns a KURIFilterData instance
    + +
    ArgumentTypeDefault
    urlKURL
    +

  • +
  • KURIFilterData (url) +
    +
    returns a KURIFilterData instance
    + +
    ArgumentTypeDefault
    urlQString
    +

  • +
  • KURIFilterData (data) +
    +
    returns a KURIFilterData instance
    + +
    ArgumentTypeDefault
    dataKURIFilterData
    +

  • +
  • absolutePath () +
    +
    returns (QString)

  • +
  • argsAndOptions () +
    +
    returns (QString)

  • +
  • checkForExecutables () +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only

  • +
  • errorMsg () +
    +
    returns (QString)

  • +
  • hasAbsolutePath () +
    +
    returns (bool)

  • +
  • hasArgsAndOptions () +
    +
    returns (bool)

  • +
  • hasBeenFiltered () +
    +
    returns (bool)

  • +
  • iconName () +
    +
    returns (QString)

  • +
  • init (url) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    urlKURL
    +

  • +
  • init (url = KURL(QString.null)) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    urlKURLKURL(QString.null)
    +

  • +
  • setAbsolutePath (abs_path) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    abs_pathQString
    +

  • +
  • setCheckForExecutables (check) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    checkbool
    +

  • +
  • setData (url) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    urlQString
    +

  • +
  • setData (url) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    urlKURL
    +

  • +
  • typedString () +
    + +
    returns (QString)
    In versions KDE 3.2.0 and above only

  • +
  • uri () +
    +
    returns (KURL)

  • +
  • uriType () +
    +
    returns (URITypes)

  • +
+ + + diff --git a/doc/classref/kio/KURIFilterPlugin.html b/doc/classref/kio/KURIFilterPlugin.html new file mode 100644 index 0000000..d0a6b67 --- /dev/null +++ b/doc/classref/kio/KURIFilterPlugin.html @@ -0,0 +1,100 @@ + + + + + class KURIFilterPlugin + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KURIFilterPlugin


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKURIFilterPlugin (abstract)
InheritsQObject
+

methods

    +
  • KURIFilterPlugin (parent = 0, name = 0, pri = 1.0) +
    +
    returns a KURIFilterPlugin instance
    + + + +
    ArgumentTypeDefault
    parentQObject0
    namechar0
    pridouble1.0
    +

  • +
  • configModule (a0, a1) +
    +
    returns (KCModule)
    + + +
    ArgumentTypeDefault
    a0QWidget
    a1char
    +

  • +
  • configName () +
    +
    returns (QString)

  • +
  • filterURI (data) = 0 +
    + +
    returns (bool)
    pure virtual
    + +
    ArgumentTypeDefault
    dataKURIFilterData
    +

  • +
  • name () +
    +
    returns (QString)

  • +
  • priority () +
    +
    returns (double)

  • +
  • setArguments (data, args) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    dataKURIFilterData
    argsQString
    +

  • +
  • setErrorMsg (data, errmsg) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    dataKURIFilterData
    errmsgQString
    +

  • +
  • setFilteredURI (data, uri) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    dataKURIFilterData
    uriKURL
    +

  • +
  • setURIType (data, type) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    dataKURIFilterData
    typeKURIFilterData.URITypes
    +

  • +
+ + + diff --git a/doc/classref/kio/KURLCompletion.html b/doc/classref/kio/KURLCompletion.html new file mode 100644 index 0000000..5597732 --- /dev/null +++ b/doc/classref/kio/KURLCompletion.html @@ -0,0 +1,152 @@ + + + + + class KURLCompletion + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KURLCompletion


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKURLCompletion
InheritsKCompletion
+

enums

    +
  • Mode = {ExeCompletion, FileCompletion, DirCompletion +}
+

methods

    +
  • KURLCompletion () +
    +
    returns a KURLCompletion instance

  • +
  • KURLCompletion (a0) +
    +
    returns a KURLCompletion instance
    + +
    ArgumentTypeDefault
    a0KURLCompletion.Mode
    +

  • +
  • customEvent (e) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    eQCustomEvent
    +

  • +
  • dir () +
    +
    returns (QString)

  • +
  • isRunning () +
    +
    returns (bool)

  • +
  • makeCompletion (text) +
    +
    returns (QString)
    + +
    ArgumentTypeDefault
    textQString
    +

  • +
  • mode () +
    +
    returns (Mode)

  • +
  • postProcessMatch (match) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    matchQString
    +

  • +
  • postProcessMatches (matches) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    matchesQStringList
    +

  • +
  • postProcessMatches (matches) +
    Not Implemented
    +

  • +
  • replaceEnv () +
    +
    returns (bool)

  • +
  • replaceHome () +
    +
    returns (bool)

  • +
  • replacedPath (text) +
    +
    returns (QString)
    + +
    ArgumentTypeDefault
    textQString
    +

  • +
  • replacedPath (text, replaceHome, replaceEnv = 1) +
    + + +
    returns (QString)
    In versions KDE 3.2.0 and above only
    static
    + + + +
    ArgumentTypeDefault
    textQString
    replaceHomebool
    replaceEnvbool1
    +

  • +
  • setDir (dir) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    dirQString
    +

  • +
  • setMode (mode) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    modeKURLCompletion.Mode
    +

  • +
  • setReplaceEnv (replace) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    replacebool
    +

  • +
  • setReplaceHome (replace) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    replacebool
    +

  • +
  • slotEntries (a0, a1) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    a0KIO.Job
    a1KIO.UDSEntryList
    +

  • +
  • slotIOFinished (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KIO.Job
    +

  • +
  • stop () +
    +
    returns nothing

  • +
+ + + diff --git a/doc/classref/kio/KURLPixmapProvider.html b/doc/classref/kio/KURLPixmapProvider.html new file mode 100644 index 0000000..5855172 --- /dev/null +++ b/doc/classref/kio/KURLPixmapProvider.html @@ -0,0 +1,48 @@ + + + + + class KURLPixmapProvider + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KURLPixmapProvider


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKURLPixmapProvider
InheritsKPixmapProvider
+

methods

    +
  • pixmapFor (url, size = 0) +
    +
    returns (QPixmap)
    + + +
    ArgumentTypeDefault
    urlQString
    sizeint0
    +

  • +
+ + + diff --git a/doc/classref/kio/KZip.html b/doc/classref/kio/KZip.html new file mode 100644 index 0000000..61d9d64 --- /dev/null +++ b/doc/classref/kio/KZip.html @@ -0,0 +1,228 @@ + + + + + class KZip + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KZip


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKZip
InheritsKArchive
+

enums

    +
  • Compression = {NoCompression, DeflateCompression +}
  • ExtraField = {NoExtraField, ModificationTime, DefaultExtraField +}
+

methods

    +
  • KZip (filename) +
    + +
    returns a KZip instance
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    filenameQString
    +

  • +
  • KZip (dev) +
    + +
    returns a KZip instance
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    devQIODevice
    +

  • +
  • closeArchive () +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above only

  • +
  • compression () +
    + +
    returns (KZip.Compression)
    In versions KDE 3.1.0 and above only

  • +
  • doneWriting (size) +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    sizeuint
    +

  • +
  • extraField () +
    + +
    returns (KZip.ExtraField)
    In versions KDE 3.2.0 and above only

  • +
  • fileName () +
    + +
    returns (QString)
    In versions KDE 3.1.0 and above only

  • +
  • openArchive (mode) +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    modeint
    +

  • +
  • prepareWriting (name, user, group, size) +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above only
    + + + + +
    ArgumentTypeDefault
    nameQString
    userQString
    groupQString
    sizeuint
    +

  • +
  • prepareWriting (name, user, group, size, perm, atime, mtime, ctime) +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    + + + + + + + + +
    ArgumentTypeDefault
    nameQString
    userQString
    groupQString
    sizeuint
    permmode_t
    atimetime_t
    mtimetime_t
    ctimetime_t
    +

  • +
  • prepareWriting_impl (name, user, group, size, perm, atime, mtime, ctime) +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    + + + + + + + + +
    ArgumentTypeDefault
    nameQString
    userQString
    groupQString
    sizeuint
    permmode_t
    atimetime_t
    mtimetime_t
    ctimetime_t
    +

  • +
  • setCompression (c) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    cKZip.Compression
    +

  • +
  • setExtraField (ef) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    efKZip.ExtraField
    +

  • +
  • virtual_hook (id, data) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + + +
    ArgumentTypeDefault
    idint
    datavoid
    +

  • +
  • writeData (data, size) +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above only
    + + +
    ArgumentTypeDefault
    datachar
    sizeuint
    +

  • +
  • writeData_impl (data, size) +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    datachar
    sizeuint
    +

  • +
  • writeDir (name, user, group) +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above only
    + + + +
    ArgumentTypeDefault
    nameQString
    userQString
    groupQString
    +

  • +
  • writeFile (name, user, group, size, data) +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above only
    + + + + + +
    ArgumentTypeDefault
    nameQString
    userQString
    groupQString
    sizeuint
    datachar
    +

  • +
  • writeFile (name, user, group, size, perm, atime, mtime, ctime, data) +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    + + + + + + + + + +
    ArgumentTypeDefault
    nameQString
    userQString
    groupQString
    sizeuint
    permmode_t
    atimetime_t
    mtimetime_t
    ctimetime_t
    datachar
    +

  • +
  • writeSymLink (name, target, user, group, perm, atime, mtime, ctime) +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    + + + + + + + + +
    ArgumentTypeDefault
    nameQString
    targetQString
    userQString
    groupQString
    permmode_t
    atimetime_t
    mtimetime_t
    ctimetime_t
    +

  • +
  • writeSymLink_impl (name, target, user, group, perm, atime, mtime, ctime) +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    + + + + + + + + +
    ArgumentTypeDefault
    nameQString
    targetQString
    userQString
    groupQString
    permmode_t
    atimetime_t
    mtimetime_t
    ctimetime_t
    +

  • +
+ + + diff --git a/doc/classref/kio/KZipFileEntry.html b/doc/classref/kio/KZipFileEntry.html new file mode 100644 index 0000000..e6124a2 --- /dev/null +++ b/doc/classref/kio/KZipFileEntry.html @@ -0,0 +1,108 @@ + + + + + class KZipFileEntry + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KZipFileEntry


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassKZipFileEntry
InheritsKArchiveFile
+

methods

    +
  • KZipFileEntry (zip, name, access, date, user, group, symlink, path, start, uncompressedSize, encoding, compressedSize) +
    + +
    returns a KZipFileEntry instance
    In versions KDE 3.1.0 and above only
    + + + + + + + + + + + + +
    ArgumentTypeDefault
    zipKZip
    nameQString
    accessint
    dateint
    userQString
    groupQString
    symlinkQString
    pathQString
    startQ_LONG
    uncompressedSizeQ_LONG
    encodingint
    compressedSizeQ_LONG
    +

  • +
  • compressedSize () +
    + +
    returns (Q_LONG)
    In versions KDE 3.1.0 and above only

  • +
  • crc32 () +
    + +
    returns (ulong)
    In versions KDE 3.1.0 and above only

  • +
  • data () +
    + +
    returns (QByteArray)
    In versions KDE 3.1.0 and above only

  • +
  • device () +
    + +
    returns (QIODevice)
    In versions KDE 3.1.0 and above only

  • +
  • encoding () +
    + +
    returns (int)
    In versions KDE 3.1.0 and above only

  • +
  • headerStart () +
    + +
    returns (Q_LONG)
    In versions KDE 3.1.0 and above only

  • +
  • path () +
    + +
    returns (QString)
    In versions KDE 3.1.0 and above only

  • +
  • setCRC32 (crc32) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    crc32ulong
    +

  • +
  • setCompressedSize (compressedSize) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    compressedSizeQ_LONG
    +

  • +
  • setHeaderStart (headerstart) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    headerstartQ_LONG
    +

  • +
+ + + diff --git a/doc/classref/kio/Observer.html b/doc/classref/kio/Observer.html new file mode 100644 index 0000000..b1717f9 --- /dev/null +++ b/doc/classref/kio/Observer.html @@ -0,0 +1,289 @@ + + + + + class Observer + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class Observer


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassObserver
InheritsQObject, DCOPObject
+

methods

    +
  • Observer () +
    +
    returns a Observer instance

  • +
  • functions () +
    + +
    returns (QCStringList)
    In versions KDE 3.1.4 and above only

  • +
  • interfaces () +
    + +
    returns (QCStringList)
    In versions KDE 3.1.4 and above only

  • +
  • jobFinished (progressId) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    progressIdint
    +

  • +
  • killJob (progressId) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    progressIdint
    +

  • +
  • messageBox (progressId, type, text, caption, buttonYes, buttonNo) +
    +
    returns (int)
    + + + + + + +
    ArgumentTypeDefault
    progressIdint
    typeint
    textQString
    captionQString
    buttonYesQString
    buttonNoQString
    +

  • +
  • messageBox (progressId, type, text, caption, buttonYes, buttonNo, dontAskAgainName) +
    + + +
    returns (int)
    In versions KDE 3.3.0 and above only
    static
    + + + + + + + +
    ArgumentTypeDefault
    progressIdint
    typeint
    textQString
    captionQString
    buttonYesQString
    buttonNoQString
    dontAskAgainNameQString
    +

  • +
  • metadata (progressId) +
    +
    returns (KIO.MetaData)
    + +
    ArgumentTypeDefault
    progressIdint
    +

  • +
  • mounting (a0, dev, point) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    a0KIO.Job
    devQString
    pointQString
    +

  • +
  • newJob (job, showProgress) +
    +
    returns (int)
    + + +
    ArgumentTypeDefault
    jobKIO.Job
    showProgressbool
    +

  • +
  • openPassDlg (prompt, user, pass, readOnly) +
    +
    returns (bool)
    + + + + +
    ArgumentTypeDefault
    promptQString
    userQString
    passQString
    readOnlybool
    +

  • +
  • openPassDlg (info) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    infoKIO.AuthInfo
    +

  • +
  • open_RenameDlg (job, caption, src, dest, mode, newDest, sizeSrc = -1, sizeDest = -1, ctimeSrc = -1, ctimeDest = -1, mtimeSrc = -1, mtimeDest = -1) +
    +
    returns (KIO.RenameDlg_Result)
    + + + + + + + + + + + + +
    ArgumentTypeDefault
    jobKIO.Job
    captionQString
    srcQString
    destQString
    modeKIO.RenameDlg_Mode
    newDestQString
    sizeSrcKIO.filesize_t-1
    sizeDestKIO.filesize_t-1
    ctimeSrctime_t-1
    ctimeDesttime_t-1
    mtimeSrctime_t-1
    mtimeDesttime_t-1
    +

  • +
  • open_SkipDlg (job, multi, error_text) +
    +
    returns (KIO.SkipDlg_Result)
    + + + +
    ArgumentTypeDefault
    jobKIO.Job
    multibool
    error_textQString
    +

  • +
  • process (fun, data, replyType, replyData) +
    + +
    returns (bool)
    In versions KDE 3.1.4 and above only
    + + + + +
    ArgumentTypeDefault
    funQCString
    dataQByteArray
    replyTypeQCString
    replyDataQByteArray
    +

  • +
  • self () +
    + +
    returns (Observer)
    static

  • +
  • slotCanResume (a0, offset) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    a0KIO.Job
    offsetKIO.filesize_t
    +

  • +
  • slotCopying (a0, from, to) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    a0KIO.Job
    fromKURL
    toKURL
    +

  • +
  • slotCreatingDir (a0, dir) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    a0KIO.Job
    dirKURL
    +

  • +
  • slotDeleting (a0, url) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    a0KIO.Job
    urlKURL
    +

  • +
  • slotInfoMessage (a0, msg) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    a0KIO.Job
    msgQString
    +

  • +
  • slotMoving (a0, from, to) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    a0KIO.Job
    fromKURL
    toKURL
    +

  • +
  • slotPercent (a0, percent) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    a0KIO.Job
    percentulong
    +

  • +
  • slotProcessedDirs (a0, dirs) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    a0KIO.Job
    dirsulong
    +

  • +
  • slotProcessedFiles (a0, files) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    a0KIO.Job
    filesulong
    +

  • +
  • slotProcessedSize (a0, size) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    a0KIO.Job
    sizeKIO.filesize_t
    +

  • +
  • slotSpeed (a0, speed) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    a0KIO.Job
    speedulong
    +

  • +
  • slotTotalDirs (a0, dirs) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    a0KIO.Job
    dirsulong
    +

  • +
  • slotTotalFiles (a0, files) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    a0KIO.Job
    filesulong
    +

  • +
  • slotTotalSize (a0, size) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    a0KIO.Job
    sizeKIO.filesize_t
    +

  • +
  • slotTransferring (a0, url) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + + +
    ArgumentTypeDefault
    a0KIO.Job
    urlKURL
    +

  • +
  • stating (a0, url) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    a0KIO.Job
    urlKURL
    +

  • +
  • unmounting (a0, point) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    a0KIO.Job
    pointQString
    +

  • +
  • ~Observer () +
    +
    returns nothing

  • +
+ + + diff --git a/doc/classref/kio/RenameDlgPlugin.html b/doc/classref/kio/RenameDlgPlugin.html new file mode 100644 index 0000000..9790839 --- /dev/null +++ b/doc/classref/kio/RenameDlgPlugin.html @@ -0,0 +1,65 @@ + + + + + class RenameDlgPlugin + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class RenameDlgPlugin


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassRenameDlgPlugin
InheritsQWidget
+

methods

    +
  • RenameDlgPlugin (dialog, name, a0 = QStringList ()) +
    +
    returns a RenameDlgPlugin instance
    + + + +
    ArgumentTypeDefault
    dialogQDialog
    namechar
    a0QStringListQStringList ()
    +

  • +
  • initialize (a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10) +
    +
    returns (bool)
    + + + + + + + + + + + +
    ArgumentTypeDefault
    a0KIO.RenameDlg_Mode
    a1QString
    a2QString
    a3QString
    a4QString
    a5KIO.filesize_t
    a6KIO.filesize_t
    a7time_t
    a8time_t
    a9time_t
    a10time_t
    +

  • +
+ + + diff --git a/doc/classref/kio/ThumbCreator.html b/doc/classref/kio/ThumbCreator.html new file mode 100644 index 0000000..e75f3f9 --- /dev/null +++ b/doc/classref/kio/ThumbCreator.html @@ -0,0 +1,57 @@ + + + + + class ThumbCreator + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class ThumbCreator


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+ + + + + + + + + + +
Modulekio
ClassThumbCreator (abstract)
Inherits
+

enums

    +
  • Flags = {None, DrawFrame, BlendIcon +}
+

methods

    +
  • create (path, width, height, img) = 0 +
    + +
    returns (bool)
    pure virtual
    + + + + +
    ArgumentTypeDefault
    pathQString
    widthint
    heightint
    imgQImage
    +

  • +
  • flags () +
    +
    returns (ThumbCreator.Flags)

  • +
+ + + diff --git a/doc/classref/kio/index.html b/doc/classref/kio/index.html new file mode 100644 index 0000000..e573f53 --- /dev/null +++ b/doc/classref/kio/index.html @@ -0,0 +1,148 @@ + + + + + module kio + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

kio Class Index


+
+ + + + +
Table of contents
Modules
All Classes
+
+ kio Global and Namespace members

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
KACL - KIO.DavJob
KACL
KAr
KArchive
KArchiveDirectory
KArchiveEntry
KArchiveFile
KDCOPServiceStarter
KDEDesktopMimeType
KDEDesktopMimeType.Service
KDataTool
KDataToolAction
KDataToolInfo
KDirLister
KDirNotify
KDirWatch
KEMailSettings
KExecMimeType
KFileFilter
KFileItem
KFileMetaInfo
KFileMetaInfoGroup
KFileMetaInfoItem
KFileMetaInfoProvider
KFileMimeTypeInfo
KFileMimeTypeInfo.GroupInfo
KFileMimeTypeInfo.ItemInfo
KFilePlugin
KFileShare
KFilterBase
KFilterDev
KFolderType
KIO
KIO.AuthInfo
KIO.ChmodJob
KIO.Connection
KIO.CopyInfo
KIO.CopyJob
KIO.DavJob
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
KIO.DefaultProgress - KMimeTypeChooserDialog
KIO.DefaultProgress
KIO.DeleteJob
KIO.DirectCopyJob
KIO.FileCopyJob
KIO.ForwardingSlaveBase
KIO.Job
KIO.ListJob
KIO.MetaInfoJob
KIO.MimetypeJob
KIO.MkdirJob
KIO.MultiGetJob
KIO.NetAccess
KIO.NetRC
KIO.NetRC.AutoLogin
KIO.PasswordDialog
KIO.PreviewJob
KIO.ProgressBase
KIO.Scheduler
KIO.SessionData
KIO.SimpleJob
KIO.Slave
KIO.SlaveBase
KIO.SlaveConfig
KIO.SlaveInterface
KIO.StatJob
KIO.StatusbarProgress
KIO.StoredTransferJob
KIO.TCPSlaveBase
KIO.Task
KIO.TransferJob
KIO.UDSAtom
KImageIO
KMimeMagic
KMimeMagicResult
KMimeType
KMimeType.Format
KMimeTypeChooser
KMimeTypeChooserDialog
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
KNFSShare - ThumbCreator
KNFSShare
KOCRDialog
KOCRDialogFactory
KOpenWithHandler
KProcessRunner
KProtocolInfo
KProtocolInfo.ExtraField
KProtocolManager
KRemoteEncoding
KRun
KSambaShare
KScanDialog
KScanDialogFactory
KService
KServiceGroup
KServiceOffer
KServiceSeparator
KServiceType
KServiceTypeProfile
KShellCompletion
KShred
KSimpleFileFilter
KSycoca
KSycocaEntry
KSycocaFactory
KTar
KTrader
KURIFilter
KURIFilterData
KURIFilterPlugin
KURLCompletion
KURLPixmapProvider
KZip
KZipFileEntry
Observer
RenameDlgPlugin
ThumbCreator
+ + diff --git a/doc/classref/kio/kio-globals.html b/doc/classref/kio/kio-globals.html new file mode 100644 index 0000000..3c245a5 --- /dev/null +++ b/doc/classref/kio/kio-globals.html @@ -0,0 +1,53 @@ + + + + + kio globals + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

kio Globals


+
+ + + + + +
Table of contents
Modules
kio Classes
All Classes
+
+

enums

    +
  • KSycocaFactoryId = {KST_KServiceFactory, KST_KServiceTypeFactory, KST_KServiceGroupFactory, KST_KImageIO, KST_KProtocolInfoFactory, KST_CTimeInfo +}
  • KSycocaType = {KST_KSycocaEntry, KST_KService, KST_KServiceType, KST_KMimeType, KST_KFolderType, KST_KDEDesktopMimeType, KST_KExecMimeType, KST_KServiceGroup, KST_KImageIOFormat, KST_KProtocolInfo, KST_KServiceSeparator, KST_KCustom +}
  • KSycocaType = {KST_KSycocaEntry, KST_KService, KST_KServiceType, KST_KMimeType, KST_KFolderType, KST_KDEDesktopMimeType, KST_KExecMimeType, KST_KServiceGroup, KST_KImageIOFormat, KST_KProtocolInfo, KST_KCustom +}
+

global methods

    +
  • testKIOMetaData (dict) +
    +
    returns (KIO.MetaData),
    + +
    ArgumentTypeDefault
    dictKIO.MetaData
    +

  • +
  • testKIOUDSEntry (list) +
    +
    returns (KIO.UDSEntry),
    + +
    ArgumentTypeDefault
    listKIO.UDSEntry
    +

  • +
  • testKIOUDSEntryList (list) +
    +
    returns (KIO.UDSEntryList),
    + +
    ArgumentTypeDefault
    listKIO.UDSEntryList
    +

  • +
+ + + diff --git a/doc/classref/kmdi/KMdi.html b/doc/classref/kmdi/KMdi.html new file mode 100644 index 0000000..45f32a1 --- /dev/null +++ b/doc/classref/kmdi/KMdi.html @@ -0,0 +1,47 @@ + + + + + class KMdi + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KMdi


+
+ + + + + +
Table of contents
Modules
kmdi Classes
All Classes
+
+ + + + + + + + + + +
Modulekmdi
ClassKMdi
Inherits
+

enums

    +
  • AddWindowFlags = {StandardAdd, Maximize, Minimize, Hide, Detach, ToolWindow, UseKMdiSizeHint +}
  • AddWindowFlags = {StandardAdd, Maximize, Minimize, Hide, Detach, ToolWindow, UseKMdiSizeHint +}
  • EventType = {EV_Move, EV_DragBegin, EV_DragEnd, EV_ResizeBegin, EV_ResizeEnd +}
  • MdiMode = {UndefinedMode, ToplevelMode, ChildframeMode, TabPageMode, IDEAlMode +}
  • TabWidgetVisibility = {AlwaysShowTabs, ShowWhenMoreThanOneTab, NeverShowTabs +}
  • ToolviewStyle = {IconOnly, TextOnly, TextAndIcon +}
+ + + diff --git a/doc/classref/kmdi/KMdiChildArea.html b/doc/classref/kmdi/KMdiChildArea.html new file mode 100644 index 0000000..1445e77 --- /dev/null +++ b/doc/classref/kmdi/KMdiChildArea.html @@ -0,0 +1,214 @@ + + + + + class KMdiChildArea + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KMdiChildArea


+
+ + + + + +
Table of contents
Modules
kmdi Classes
All Classes
+
+ + + + + + + + + + +
Modulekmdi
ClassKMdiChildArea
InheritsQFrame
+

methods

    +
  • KMdiChildArea (parent) +
    +
    returns a KMdiChildArea instance
    + +
    ArgumentTypeDefault
    parentQWidget
    +

  • +
  • cascadeMaximized () +
    +
    returns nothing

  • +
  • cascadeWindows () +
    +
    returns nothing

  • +
  • childMinimized (lpC, bWasMaximized) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    lpCKMdiChildFrm
    bWasMaximizedbool
    +

  • +
  • destroyChild (child, focusTopChild = 1) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    childKMdiChildFrm
    focusTopChildbool1
    +

  • +
  • destroyChildButNotItsView (lpC, bFocusTopChild = 1) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    lpCKMdiChildFrm
    bFocusTopChildbool1
    +

  • +
  • expandHorizontal () +
    +
    returns nothing

  • +
  • expandVertical () +
    +
    returns nothing

  • +
  • focusTopChild () +
    +
    returns nothing

  • +
  • getCaptionColors (pal, activeBG, activeFG, inactiveBG, inactiveFG) +
    + +
    returns nothing
    static
    + + + + + +
    ArgumentTypeDefault
    palQPalette
    activeBGQColor
    activeFGQColor
    inactiveBGQColor
    inactiveFGQColor
    +

  • +
  • getCascadePoint (indexOfWindow = -1) +
    +
    returns (QPoint)
    + +
    ArgumentTypeDefault
    indexOfWindowint-1
    +

  • +
  • getVisibleChildCount () +
    +
    returns (int)

  • +
  • lastChildFrmClosed () +
    +
    returns nothing

  • +
  • layoutMinimizedChildren () +
    +
    returns nothing

  • +
  • manageChild (lpC, bShow = 1, bCascade = 1) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    lpCKMdiChildFrm
    bShowbool1
    bCascadebool1
    +

  • +
  • mousePressEvent (e) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    eQMouseEvent
    +

  • +
  • noMaximizedChildFrmLeft (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KMdiChildFrm
    +

  • +
  • nowMaximized (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • popupWindowMenu (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QPoint
    +

  • +
  • resizeEvent (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QResizeEvent
    +

  • +
  • setMdiCaptionActiveBackColor (clr) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    clrQColor
    +

  • +
  • setMdiCaptionActiveForeColor (clr) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    clrQColor
    +

  • +
  • setMdiCaptionFont (fnt) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    fntQFont
    +

  • +
  • setMdiCaptionInactiveBackColor (clr) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    clrQColor
    +

  • +
  • setMdiCaptionInactiveForeColor (clr) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    clrQColor
    +

  • +
  • setTopChild (child, setFocus = 0) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    childKMdiChildFrm
    setFocusbool0
    +

  • +
  • sysButtonConnectionsMustChange (a0, a1) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    a0KMdiChildFrm
    a1KMdiChildFrm
    +

  • +
  • tileAllInternal (maxWnds) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    maxWndsint
    +

  • +
  • tileAnodine () +
    +
    returns nothing

  • +
  • tilePragma () +
    +
    returns nothing

  • +
  • tileVertically () +
    +
    returns nothing

  • +
  • topChild () +
    +
    returns (KMdiChildFrm)

  • +
+

variables

  • +variables + + +
    VariableType
    m_defaultChildFrmSizeQSize
    m_pZQPtrList*
+ + + diff --git a/doc/classref/kmdi/KMdiChildFrm.html b/doc/classref/kmdi/KMdiChildFrm.html new file mode 100644 index 0000000..9c92fd5 --- /dev/null +++ b/doc/classref/kmdi/KMdiChildFrm.html @@ -0,0 +1,254 @@ + + + + + class KMdiChildFrm + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KMdiChildFrm


+
+ + + + + +
Table of contents
Modules
kmdi Classes
All Classes
+
+ + + + + + + + + + +
Modulekmdi
ClassKMdiChildFrm
InheritsQFrame
+

enums

    +
  • MdiWindowState = {Normal, Maximized, Minimized +}
+

methods

    +
  • KMdiChildFrm (parent) +
    +
    returns a KMdiChildFrm instance
    + +
    ArgumentTypeDefault
    parentKMdiChildArea
    +

  • +
  • caption () +
    +
    returns (QString)

  • +
  • captionHeight () +
    +
    returns (int)

  • +
  • closePressed () +
    +
    returns nothing

  • +
  • doResize () +
    +
    returns nothing

  • +
  • doResize (captionOnly) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    captionOnlybool
    +

  • +
  • enableClose (bEnable) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    bEnablebool
    +

  • +
  • eventFilter (a0, a1) +
    +
    returns (bool)
    + + +
    ArgumentTypeDefault
    a0QObject
    a1QEvent
    +

  • +
  • getResizeCorner (ax, ay) +
    +
    returns (int)
    + + +
    ArgumentTypeDefault
    axint
    ayint
    +

  • +
  • icon () +
    +
    returns (QPixmap)

  • +
  • isInDrag () +
    +
    returns (bool)

  • +
  • isInResize () +
    +
    returns (bool)

  • +
  • leaveEvent (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QEvent
    +

  • +
  • linkChildren (pFocPolDict) +
    Not Implemented
    +

  • +
  • linkChildren (a0) +
    + +
    returns nothing
    In versions less than KDE 3.2.2 only
    + +
    ArgumentTypeDefault
    a0QDict
    +

  • +
  • maximizePressed () +
    +
    returns nothing

  • +
  • mdiAreaContentsRect () +
    +
    returns (QRect)

  • +
  • minimizePressed () +
    +
    returns nothing

  • +
  • mouseMoveEvent (e) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    eQMouseEvent
    +

  • +
  • mousePressEvent (e) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    eQMouseEvent
    +

  • +
  • mouseReleaseEvent (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QMouseEvent
    +

  • +
  • moveEvent (me) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    meQMoveEvent
    +

  • +
  • raiseAndActivate () +
    +
    returns nothing

  • +
  • redecorateButtons () +
    +
    returns nothing

  • +
  • resizeEvent (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QResizeEvent
    +

  • +
  • resizeWindow (resizeCorner, x, y) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    resizeCornerint
    xint
    yint
    +

  • +
  • restoreGeometry () +
    +
    returns (QRect)

  • +
  • restorePressed () +
    +
    returns nothing

  • +
  • setCaption (text) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    textQString
    +

  • +
  • setClient (w, bAutomaticResize = 0) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    wKMdiChildView
    bAutomaticResizebool0
    +

  • +
  • setIcon (pxm) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    pxmQPixmap
    +

  • +
  • setMinimumSize (minw, minh) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    minwint
    minhint
    +

  • +
  • setResizeCursor (resizeCorner) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    resizeCornerint
    +

  • +
  • setRestoreGeometry (newRestGeo) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    newRestGeoQRect
    +

  • +
  • setState (state, bAnimate = 1) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    stateKMdiChildFrm.MdiWindowState
    bAnimatebool1
    +

  • +
  • showSystemMenu () +
    +
    returns nothing

  • +
  • slot_resizeViaSystemMenu () +
    +
    returns nothing

  • +
  • state () +
    +
    returns (KMdiChildFrm.MdiWindowState)

  • +
  • switchToMinimizeLayout () +
    +
    returns nothing

  • +
  • systemMenu () +
    +
    returns (QPopupMenu)

  • +
  • undockPressed () +
    +
    returns nothing

  • +
  • unlinkChildren () +
    +
    returns (QDict)

  • +
  • unsetClient (positionOffset = QPoint (0 ,0 )) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    positionOffsetQPointQPoint (0 ,0 )
    +

  • +
  • unsetResizeCursor () +
    +
    returns nothing

  • +
  • updateRects () +
    +
    returns nothing

  • +
+

variables

  • +variables + +
    VariableType
    m_pClientKMdiChildView*
+ + + diff --git a/doc/classref/kmdi/KMdiChildFrmCaption.html b/doc/classref/kmdi/KMdiChildFrmCaption.html new file mode 100644 index 0000000..b6a2fce --- /dev/null +++ b/doc/classref/kmdi/KMdiChildFrmCaption.html @@ -0,0 +1,106 @@ + + + + + class KMdiChildFrmCaption + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KMdiChildFrmCaption


+
+ + + + + +
Table of contents
Modules
kmdi Classes
All Classes
+
+ + + + + + + + + + +
Modulekmdi
ClassKMdiChildFrmCaption
InheritsQWidget
+

methods

    +
  • KMdiChildFrmCaption (parent) +
    +
    returns a KMdiChildFrmCaption instance
    + +
    ArgumentTypeDefault
    parentKMdiChildFrm
    +

  • +
  • abbreviateText (origStr, maxWidth) +
    +
    returns (QString)
    + + +
    ArgumentTypeDefault
    origStrQString
    maxWidthint
    +

  • +
  • heightHint () +
    +
    returns (int)

  • +
  • mouseDoubleClickEvent (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QMouseEvent
    +

  • +
  • mouseMoveEvent (e) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    eQMouseEvent
    +

  • +
  • mousePressEvent (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QMouseEvent
    +

  • +
  • mouseReleaseEvent (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QMouseEvent
    +

  • +
  • paintEvent (e) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    eQPaintEvent
    +

  • +
  • setActive (bActive) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    bActivebool
    +

  • +
  • setCaption (text) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    textQString
    +

  • +
  • slot_moveViaSystemMenu () +
    +
    returns nothing

  • +
+

variables

  • +variables + +
    VariableType
    m_szCaptionQString
+ + + diff --git a/doc/classref/kmdi/KMdiChildFrmDragBeginEvent.html b/doc/classref/kmdi/KMdiChildFrmDragBeginEvent.html new file mode 100644 index 0000000..ea23bf7 --- /dev/null +++ b/doc/classref/kmdi/KMdiChildFrmDragBeginEvent.html @@ -0,0 +1,47 @@ + + + + + class KMdiChildFrmDragBeginEvent + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KMdiChildFrmDragBeginEvent


+
+ + + + + +
Table of contents
Modules
kmdi Classes
All Classes
+
+ + + + + + + + + + +
Modulekmdi
ClassKMdiChildFrmDragBeginEvent
InheritsQCustomEvent
+

methods

    +
  • KMdiChildFrmDragBeginEvent (e) +
    +
    returns a KMdiChildFrmDragBeginEvent instance
    + +
    ArgumentTypeDefault
    eQMouseEvent
    +

  • +
+ + + diff --git a/doc/classref/kmdi/KMdiChildFrmDragEndEvent.html b/doc/classref/kmdi/KMdiChildFrmDragEndEvent.html new file mode 100644 index 0000000..4482c67 --- /dev/null +++ b/doc/classref/kmdi/KMdiChildFrmDragEndEvent.html @@ -0,0 +1,47 @@ + + + + + class KMdiChildFrmDragEndEvent + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KMdiChildFrmDragEndEvent


+
+ + + + + +
Table of contents
Modules
kmdi Classes
All Classes
+
+ + + + + + + + + + +
Modulekmdi
ClassKMdiChildFrmDragEndEvent
InheritsQCustomEvent
+

methods

    +
  • KMdiChildFrmDragEndEvent (e) +
    +
    returns a KMdiChildFrmDragEndEvent instance
    + +
    ArgumentTypeDefault
    eQMouseEvent
    +

  • +
+ + + diff --git a/doc/classref/kmdi/KMdiChildFrmMoveEvent.html b/doc/classref/kmdi/KMdiChildFrmMoveEvent.html new file mode 100644 index 0000000..1b5fb0d --- /dev/null +++ b/doc/classref/kmdi/KMdiChildFrmMoveEvent.html @@ -0,0 +1,47 @@ + + + + + class KMdiChildFrmMoveEvent + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KMdiChildFrmMoveEvent


+
+ + + + + +
Table of contents
Modules
kmdi Classes
All Classes
+
+ + + + + + + + + + +
Modulekmdi
ClassKMdiChildFrmMoveEvent
InheritsQCustomEvent
+

methods

    +
  • KMdiChildFrmMoveEvent (e) +
    +
    returns a KMdiChildFrmMoveEvent instance
    + +
    ArgumentTypeDefault
    eQMoveEvent
    +

  • +
+ + + diff --git a/doc/classref/kmdi/KMdiChildFrmResizeBeginEvent.html b/doc/classref/kmdi/KMdiChildFrmResizeBeginEvent.html new file mode 100644 index 0000000..8cbaa80 --- /dev/null +++ b/doc/classref/kmdi/KMdiChildFrmResizeBeginEvent.html @@ -0,0 +1,47 @@ + + + + + class KMdiChildFrmResizeBeginEvent + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KMdiChildFrmResizeBeginEvent


+
+ + + + + +
Table of contents
Modules
kmdi Classes
All Classes
+
+ + + + + + + + + + +
Modulekmdi
ClassKMdiChildFrmResizeBeginEvent
InheritsQCustomEvent
+

methods

    +
  • KMdiChildFrmResizeBeginEvent (e) +
    +
    returns a KMdiChildFrmResizeBeginEvent instance
    + +
    ArgumentTypeDefault
    eQMouseEvent
    +

  • +
+ + + diff --git a/doc/classref/kmdi/KMdiChildFrmResizeEndEvent.html b/doc/classref/kmdi/KMdiChildFrmResizeEndEvent.html new file mode 100644 index 0000000..4559862 --- /dev/null +++ b/doc/classref/kmdi/KMdiChildFrmResizeEndEvent.html @@ -0,0 +1,47 @@ + + + + + class KMdiChildFrmResizeEndEvent + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KMdiChildFrmResizeEndEvent


+
+ + + + + +
Table of contents
Modules
kmdi Classes
All Classes
+
+ + + + + + + + + + +
Modulekmdi
ClassKMdiChildFrmResizeEndEvent
InheritsQCustomEvent
+

methods

    +
  • KMdiChildFrmResizeEndEvent (e) +
    +
    returns a KMdiChildFrmResizeEndEvent instance
    + +
    ArgumentTypeDefault
    eQMouseEvent
    +

  • +
+ + + diff --git a/doc/classref/kmdi/KMdiChildView.html b/doc/classref/kmdi/KMdiChildView.html new file mode 100644 index 0000000..2a98f36 --- /dev/null +++ b/doc/classref/kmdi/KMdiChildView.html @@ -0,0 +1,385 @@ + + + + + class KMdiChildView + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KMdiChildView


+
+ + + + + +
Table of contents
Modules
kmdi Classes
All Classes
+
+ + + + + + + + + + +
Modulekmdi
ClassKMdiChildView
InheritsQWidget
+

methods

    +
  • KMdiChildView (caption, parentWidget = 0, name = 0, f = 0) +
    +
    returns a KMdiChildView instance
    + + + + +
    ArgumentTypeDefault
    captionQString
    parentWidgetQWidget0
    namechar0
    fWFlags0
    +

  • +
  • KMdiChildView (parentWidget = 0, name = 0, f = 0) +
    +
    returns a KMdiChildView instance
    + + + +
    ArgumentTypeDefault
    parentWidgetQWidget0
    namechar0
    fWFlags0
    +

  • +
  • activate () +
    +
    returns nothing

  • +
  • activated (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KMdiChildView
    +

  • +
  • attach () +
    +
    returns nothing

  • +
  • attachWindow (a0, a1) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    a0KMdiChildView
    a1bool
    +

  • +
  • caption () +
    +
    returns (QString)

  • +
  • captionUpdated (a0, a1) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    a0QWidget
    a1QString
    +

  • +
  • childWindowCloseRequest (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KMdiChildView
    +

  • +
  • clickedInDockMenu (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • clickedInWindowMenu (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • closeEvent (e) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    eQCloseEvent
    +

  • +
  • deactivated (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KMdiChildView
    +

  • +
  • detach () +
    +
    returns nothing

  • +
  • detachWindow (a0, a1) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    a0KMdiChildView
    a1bool
    +

  • +
  • eventFilter (obj, e) +
    +
    returns (bool)
    + + +
    ArgumentTypeDefault
    objQObject
    eQEvent
    +

  • +
  • externalGeometry () +
    +
    returns (QRect)

  • +
  • focusInEvent (e) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    eQFocusEvent
    +

  • +
  • focusInEventOccurs (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KMdiChildView
    +

  • +
  • focusOutEvent (e) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    eQFocusEvent
    +

  • +
  • focusedChildWidget () +
    +
    returns (QWidget)

  • +
  • getTimeStamp () +
    +
    returns (QDateTime)

  • +
  • gotFocus (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KMdiChildView
    +

  • +
  • hide () +
    +
    returns nothing

  • +
  • iconUpdated (a0, a1) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    a0QWidget
    a1QPixmap
    +

  • +
  • internalGeometry () +
    +
    returns (QRect)

  • +
  • isAttached () +
    +
    returns (bool)

  • +
  • isAttachedNow () +
    +
    returns nothing

  • +
  • isDetachedNow () +
    +
    returns nothing

  • +
  • isMaximized () +
    +
    returns (bool)

  • +
  • isMaximizedNow () +
    +
    returns nothing

  • +
  • isMinimized () +
    +
    returns (bool)

  • +
  • isMinimizedNow () +
    +
    returns nothing

  • +
  • isRestoredNow () +
    +
    returns nothing

  • +
  • isToolView () +
    +
    returns (bool)

  • +
  • lostFocus (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KMdiChildView
    +

  • +
  • maximize (bAnimate) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    bAnimatebool
    +

  • +
  • maximize () +
    +
    returns nothing

  • +
  • mdiParent () +
    +
    returns (KMdiChildFrm)

  • +
  • mdiParentNowMaximized (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • minimize (bAnimate) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    bAnimatebool
    +

  • +
  • minimize () +
    +
    returns nothing

  • +
  • myIconPtr () +
    +
    returns (QPixmap)

  • +
  • raise_ () +
    + +
    returns nothing
    Renamed: was ' raise +' in C++

  • +
  • removeEventFilterForAllChildren () +
    +
    returns nothing

  • +
  • resizeEvent (e) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    eQResizeEvent
    +

  • +
  • restore () +
    +
    returns nothing

  • +
  • restoreGeometry () +
    +
    returns (QRect)

  • +
  • setCaption (szCaption) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    szCaptionQString
    +

  • +
  • setExternalGeometry (newGeomety) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    newGeometyQRect
    +

  • +
  • setFirstFocusableChildWidget (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QWidget
    +

  • +
  • setInternalGeometry (newGeomety) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    newGeometyQRect
    +

  • +
  • setLastFocusableChildWidget (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QWidget
    +

  • +
  • setMDICaption (caption) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    captionQString
    +

  • +
  • setMaximumSize (maxw, maxh) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    maxwint
    maxhint
    +

  • +
  • setMinimumSize (minw, minh) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    minwint
    minhint
    +

  • +
  • setRestoreGeometry (newRestGeo) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    newRestGeoQRect
    +

  • +
  • setTabCaption (caption) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    captionQString
    +

  • +
  • setWindowMenuID (id) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    idint
    +

  • +
  • show () +
    +
    returns nothing

  • +
  • showMaximized () +
    +
    returns nothing

  • +
  • showMinimized () +
    +
    returns nothing

  • +
  • showNormal () +
    +
    returns nothing

  • +
  • slot_childDestroyed () +
    +
    returns nothing

  • +
  • slot_clickedInDockMenu () +
    +
    returns nothing

  • +
  • slot_clickedInWindowMenu () +
    +
    returns nothing

  • +
  • tabCaption () +
    +
    returns (QString)

  • +
  • tabCaptionChanged (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • trackIconAndCaptionChanges (view) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    viewQWidget
    +

  • +
  • updateTimeStamp () +
    +
    returns nothing

  • +
  • windowCaptionChanged (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • youAreAttached (lpC) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    lpCKMdiChildFrm
    +

  • +
  • youAreDetached () +
    +
    returns nothing

  • +
+ + + diff --git a/doc/classref/kmdi/KMdiMainFrm.html b/doc/classref/kmdi/KMdiMainFrm.html new file mode 100644 index 0000000..72c004f --- /dev/null +++ b/doc/classref/kmdi/KMdiMainFrm.html @@ -0,0 +1,580 @@ + + + + + class KMdiMainFrm + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KMdiMainFrm


+
+ + + + + +
Table of contents
Modules
kmdi Classes
All Classes
+
+ + + + + + + + + + +
Modulekmdi
ClassKMdiMainFrm
InheritsKParts.DockMainWindow
+

enums

    +
  • ExistsAs = {DocumentView, ToolView, AnyView +}
+

methods

    +
  • KMdiMainFrm (parentWidget, name = "", mdiMode = KMdi .ChildframeMode, flags = WType_TopLevel | WDestructiveClose) +
    +
    returns a KMdiMainFrm instance
    + + + + +
    ArgumentTypeDefault
    parentWidgetQWidget
    namechar""
    mdiModeKMdi.MdiModeKMdi .ChildframeMode
    flagsWFlagsWType_TopLevel | WDestructiveClose
    +

  • +
  • activateFirstWin () +
    +
    returns nothing

  • +
  • activateLastWin () +
    +
    returns nothing

  • +
  • activateNextWin () +
    +
    returns nothing

  • +
  • activatePrevWin () +
    +
    returns nothing

  • +
  • activateView (index) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    indexint
    +

  • +
  • activateView (pWnd) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    pWndKMdiChildView
    +

  • +
  • activeWindow () +
    +
    returns (KMdiChildView)

  • +
  • addToolWindow (pWnd, pos = KDockWidget .DockNone, pTargetWnd = 0, percent = 50, tabToolTip = 0, tabCaption = 0) +
    +
    returns (KMdiToolViewAccessor)
    + + + + + + +
    ArgumentTypeDefault
    pWndQWidget
    posKDockWidget.DockPositionKDockWidget .DockNone
    pTargetWndQWidget0
    percentint50
    tabToolTipQString0
    tabCaptionQString0
    +

  • +
  • addWindow (pWnd, flags = KMdi .StandardAdd) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    pWndKMdiChildView
    flagsintKMdi .StandardAdd
    +

  • +
  • addWindow (pWnd, flags, index) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + + + +
    ArgumentTypeDefault
    pWndKMdiChildView
    flagsint
    indexint
    +

  • +
  • addWindow (pWnd, pos, flags = KMdi .StandardAdd) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    pWndKMdiChildView
    posQPoint
    flagsintKMdi .StandardAdd
    +

  • +
  • addWindow (pWnd, rectNormal, flags = KMdi .StandardAdd) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    pWndKMdiChildView
    rectNormalQRect
    flagsintKMdi .StandardAdd
    +

  • +
  • applyOptions () +
    +
    returns nothing

  • +
  • attachWindow (pWnd, bShow = 1, bAutomaticResize = 0) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    pWndKMdiChildView
    bShowbool1
    bAutomaticResizebool0
    +

  • +
  • blockClearingOfWindowMenu (bBlocked) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    bBlockedbool
    +

  • +
  • cascadeMaximized () +
    +
    returns nothing

  • +
  • cascadeWindows () +
    +
    returns nothing

  • +
  • childFrameModeHeight () +
    +
    returns (int)

  • +
  • childViewIsDetachedNow (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QWidget
    +

  • +
  • childWindowCloseRequest (pWnd) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    pWndKMdiChildView
    +

  • +
  • closeActiveView () +
    +
    returns nothing

  • +
  • closeAllViews () +
    +
    returns nothing

  • +
  • closeViewButtonPressed () +
    +
    returns nothing

  • +
  • closeWindow (pWnd, layoutTaskBar = 1) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    pWndKMdiChildView
    layoutTaskBarbool1
    +

  • +
  • collapseOverlapContainers () +
    +
    returns nothing

  • +
  • createIterator () +
    Not Implemented
    +

  • +
  • createMdiManager () +
    +
    returns nothing

  • +
  • createTaskBar () +
    +
    returns nothing

  • +
  • createToolWindow () +
    +
    returns (KMdiToolViewAccessor)

  • +
  • createWrapper (view, name, shortName) +
    +
    returns (KMdiChildView)
    + + + +
    ArgumentTypeDefault
    viewQWidget
    nameQString
    shortNameQString
    +

  • +
  • defaultChildFrmSize () +
    +
    returns (QSize)

  • +
  • deleteIterator (pIt) +
    Not Implemented
    +

  • +
  • deleteToolWindow (pWnd) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    pWndQWidget
    +

  • +
  • deleteToolWindow (accessor) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    accessorKMdiToolViewAccessor
    +

  • +
  • detachWindow (pWnd, bShow = 1) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    pWndKMdiChildView
    bShowbool1
    +

  • +
  • dockMenuItemActivated (id) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    idint
    +

  • +
  • dockToolViewsIntoContainers (widgetsToReparent, container) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    widgetsToReparentQPtrList
    containerKDockWidget
    +

  • +
  • dragEndTimeOut () +
    +
    returns nothing

  • +
  • event (e) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    eQEvent
    +

  • +
  • eventFilter (obj, e) +
    +
    returns (bool)
    + + +
    ArgumentTypeDefault
    objQObject
    eQEvent
    +

  • +
  • expandHorizontal () +
    +
    returns nothing

  • +
  • expandVertical () +
    +
    returns nothing

  • +
  • fakeSDIApplication () +
    +
    returns nothing

  • +
  • fillWindowMenu () +
    +
    returns nothing

  • +
  • findRootDockWidgets (pRootDockWidgetList, pPositionList) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    pRootDockWidgetListQPtrList
    pPositionListQValueList
    +

  • +
  • findToolViewsDockedToMain (list, dprtmw) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    listQPtrList
    dprtmwKDockWidget.DockPosition
    +

  • +
  • findWindow (caption) +
    +
    returns (KMdiChildView)
    + +
    ArgumentTypeDefault
    captionQString
    +

  • +
  • finishChildframeMode () +
    +
    returns nothing

  • +
  • finishIDEAlMode (full = 1) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    fullbool1
    +

  • +
  • finishTabPageMode () +
    +
    returns nothing

  • +
  • finishToplevelMode () +
    +
    returns nothing

  • +
  • frameDecorOfAttachedViews () +
    + +
    returns (int)
    static

  • +
  • hideViewTaskBar () +
    +
    returns nothing

  • +
  • iconifyAllViews () +
    +
    returns nothing

  • +
  • idealToolViewsToStandardTabs (widgetNames, pos, sizee) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    widgetNamesQStringList
    posKDockWidget.DockPosition
    sizeeint
    +

  • +
  • isFakingSDIApplication () +
    +
    returns (bool)

  • +
  • isInMaximizedChildFrmMode () +
    +
    returns (bool)

  • +
  • isViewTaskBarOn () +
    +
    returns (bool)

  • +
  • lastChildFrmClosed () +
    +
    returns nothing

  • +
  • lastChildViewClosed () +
    +
    returns nothing

  • +
  • leftTopLevelMode () +
    +
    returns nothing

  • +
  • mdiMode () +
    +
    returns (KMdi.MdiMode)

  • +
  • mdiModeHasBeenChangedTo (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KMdi.MdiMode
    +

  • +
  • nextToolViewInDock () +
    +
    returns nothing

  • +
  • popupWindowMenu (p) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    pQPoint
    +

  • +
  • prepareIdealToTabs (container) +
    +
    returns (QStringList)
    + +
    ArgumentTypeDefault
    containerKDockWidget
    +

  • +
  • prevToolViewInDock () +
    +
    returns nothing

  • +
  • removeWindowFromMdi (pWnd) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    pWndKMdiChildView
    +

  • +
  • resizeEvent (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QResizeEvent
    +

  • +
  • setBackgroundColor (c) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    cQColor
    +

  • +
  • setBackgroundPixmap (pm) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    pmQPixmap
    +

  • +
  • setDefaultChildFrmSize (sz) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    szQSize
    +

  • +
  • setEnableMaximizedChildFrmMode (bEnable) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    bEnablebool
    +

  • +
  • setFrameDecorOfAttachedViews (frameDecor) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    frameDecorint
    +

  • +
  • setIDEAlModeStyle (flags) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    flagsint
    +

  • +
  • setManagedDockPositionModeEnabled (enabled) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    enabledbool
    +

  • +
  • setMenuForSDIModeSysButtons (menuBar = 0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    menuBarKMenuBar0
    +

  • +
  • setMinimumSize (minw, minh) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    minwint
    minhint
    +

  • +
  • setStandardMDIMenuEnabled (showModeMenu = 1) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    showModeMenubool1
    +

  • +
  • setSwitching (switching) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    switchingbool
    +

  • +
  • setSysButtonsAtMenuPosition () +
    +
    returns nothing

  • +
  • setTabWidgetVisibility (a0) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    a0KMdi.TabWidgetVisibility
    +

  • +
  • setToolviewStyle (flags) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    flagsint
    +

  • +
  • setUndockPositioningOffset (offset) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    offsetQPoint
    +

  • +
  • showViewTaskBar () +
    +
    returns nothing

  • +
  • slot_toggleTaskBar () +
    +
    returns nothing

  • +
  • switchOffMaximizeModeForMenu (oldChild) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    oldChildKMdiChildFrm
    +

  • +
  • switchToChildframeMode () +
    +
    returns nothing

  • +
  • switchToIDEAlMode () +
    +
    returns nothing

  • +
  • switchToTabPageMode () +
    +
    returns nothing

  • +
  • switchToToplevelMode () +
    +
    returns nothing

  • +
  • switching () +
    +
    returns (bool)

  • +
  • tabWidget () +
    + +
    returns (KTabWidget)
    In versions KDE 3.4.0 and above only

  • +
  • tabWidgetVisibility () +
    + +
    returns (KMdi.TabWidgetVisibility)
    In versions KDE 3.3.0 and above only

  • +
  • taskBarHeight () +
    +
    returns (int)

  • +
  • taskBarPopup (pWnd, bIncludeWindowPopup = 0) +
    +
    returns (QPopupMenu)
    + + +
    ArgumentTypeDefault
    pWndKMdiChildView
    bIncludeWindowPopupbool0
    +

  • +
  • taskbarButtonRightClicked (pWnd) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    pWndKMdiChildView
    +

  • +
  • tileAnodine () +
    +
    returns nothing

  • +
  • tilePragma () +
    +
    returns nothing

  • +
  • tileVertically () +
    +
    returns nothing

  • +
  • toggleBottom () +
    +
    returns nothing

  • +
  • toggleLeft () +
    +
    returns nothing

  • +
  • toggleRight () +
    +
    returns nothing

  • +
  • toggleTop () +
    +
    returns nothing

  • +
  • updateSysButtonConnections (oldChild, newChild) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    oldChildKMdiChildFrm
    newChildKMdiChildFrm
    +

  • +
  • viewActivated (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KMdiChildView
    +

  • +
  • viewDeactivated (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KMdiChildView
    +

  • +
  • windowExists (pWnd, as) +
    +
    returns (bool)
    + + +
    ArgumentTypeDefault
    pWndKMdiChildView
    asKMdiMainFrm.ExistsAs
    +

  • +
  • windowMenu () +
    +
    returns (QPopupMenu)

  • +
  • windowMenuItemActivated (id) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    idint
    +

  • +
  • windowPopup (pWnd, bIncludeTaskbarPopup = 1) +
    +
    returns (QPopupMenu)
    + + +
    ArgumentTypeDefault
    pWndKMdiChildView
    bIncludeTaskbarPopupbool1
    +

  • +
+ + + diff --git a/doc/classref/kmdi/KMdiTaskBar.html b/doc/classref/kmdi/KMdiTaskBar.html new file mode 100644 index 0000000..d454194 --- /dev/null +++ b/doc/classref/kmdi/KMdiTaskBar.html @@ -0,0 +1,101 @@ + + + + + class KMdiTaskBar + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KMdiTaskBar


+
+ + + + + +
Table of contents
Modules
kmdi Classes
All Classes
+
+ + + + + + + + + + +
Modulekmdi
ClassKMdiTaskBar
InheritsKToolBar
+

methods

    +
  • KMdiTaskBar (parent, dock) +
    +
    returns a KMdiTaskBar instance
    + + +
    ArgumentTypeDefault
    parentKMdiMainFrm
    dockQt.Dock
    +

  • +
  • addWinButton (win_ptr) +
    +
    returns (KMdiTaskBarButton)
    + +
    ArgumentTypeDefault
    win_ptrKMdiChildView
    +

  • +
  • getButton (win_ptr) +
    +
    returns (KMdiTaskBarButton)
    + +
    ArgumentTypeDefault
    win_ptrKMdiChildView
    +

  • +
  • getNextWindowButton (bRight, win_ptr) +
    +
    returns (KMdiTaskBarButton)
    + + +
    ArgumentTypeDefault
    bRightbool
    win_ptrKMdiChildView
    +

  • +
  • isSwitchedOn () +
    +
    returns (bool)

  • +
  • layoutTaskBar (taskBarWidth = 0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    taskBarWidthint0
    +

  • +
  • removeWinButton (win_ptr, haveToLayoutTaskBar = 1) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    win_ptrKMdiChildView
    haveToLayoutTaskBarbool1
    +

  • +
  • resizeEvent (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QResizeEvent
    +

  • +
  • setActiveButton (win_ptr) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    win_ptrKMdiChildView
    +

  • +
  • switchOn (bOn) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    bOnbool
    +

  • +
+ + + diff --git a/doc/classref/kmdi/KMdiTaskBarButton.html b/doc/classref/kmdi/KMdiTaskBarButton.html new file mode 100644 index 0000000..ffdbe57 --- /dev/null +++ b/doc/classref/kmdi/KMdiTaskBarButton.html @@ -0,0 +1,104 @@ + + + + + class KMdiTaskBarButton + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KMdiTaskBarButton


+
+ + + + + +
Table of contents
Modules
kmdi Classes
All Classes
+
+ + + + + + + + + + +
Modulekmdi
ClassKMdiTaskBarButton
InheritsQPushButton
+

methods

    +
  • KMdiTaskBarButton (pTaskBar, win_ptr) +
    +
    returns a KMdiTaskBarButton instance
    + + +
    ArgumentTypeDefault
    pTaskBarKMdiTaskBar
    win_ptrKMdiChildView
    +

  • +
  • actualText () +
    +
    returns (QString)

  • +
  • buttonTextChanged (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • clicked (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KMdiChildView
    +

  • +
  • fitText (a0, newWidth) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    a0QString
    newWidthint
    +

  • +
  • leftMouseButtonClicked (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KMdiChildView
    +

  • +
  • mousePressEvent (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QMouseEvent
    +

  • +
  • rightMouseButtonClicked (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KMdiChildView
    +

  • +
  • setNewText (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • setText (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
+

variables

  • +variables + +
    VariableType
    m_pWindowKMdiChildView*
+ + + diff --git a/doc/classref/kmdi/KMdiToolViewAccessor.html b/doc/classref/kmdi/KMdiToolViewAccessor.html new file mode 100644 index 0000000..d9e1af8 --- /dev/null +++ b/doc/classref/kmdi/KMdiToolViewAccessor.html @@ -0,0 +1,99 @@ + + + + + class KMdiToolViewAccessor + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KMdiToolViewAccessor


+
+ + + + + +
Table of contents
Modules
kmdi Classes
All Classes
+
+ + + + + + + + + + +
Modulekmdi
ClassKMdiToolViewAccessor
InheritsQObject
+

methods

    +
  • KMdiToolViewAccessor (parent, widgetToWrap, tabToolTip = 0, tabCaption = 0) +
    +
    returns a KMdiToolViewAccessor instance
    + + + + +
    ArgumentTypeDefault
    parentKMdiMainFrm
    widgetToWrapQWidget
    tabToolTipQString0
    tabCaptionQString0
    +

  • +
  • KMdiToolViewAccessor (parent) +
    +
    returns a KMdiToolViewAccessor instance
    + +
    ArgumentTypeDefault
    parentKMdiMainFrm
    +

  • +
  • eventFilter (o, e) +
    +
    returns (bool)
    + + +
    ArgumentTypeDefault
    oQObject
    eQEvent
    +

  • +
  • hide () +
    +
    returns nothing

  • +
  • place (pos = KDockWidget .DockNone, pTargetWnd = 0, percent = 50) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    posKDockWidget.DockPositionKDockWidget .DockNone
    pTargetWndQWidget0
    percentint50
    +

  • +
  • placeAndShow (pos = KDockWidget .DockNone, pTargetWnd = 0, percent = 50) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    posKDockWidget.DockPositionKDockWidget .DockNone
    pTargetWndQWidget0
    percentint50
    +

  • +
  • setWidgetToWrap (widgetToWrap, tabToolTip = 0, tabCaption = 0) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    widgetToWrapQWidget
    tabToolTipQString0
    tabCaptionQString0
    +

  • +
  • show () +
    +
    returns nothing

  • +
  • wrappedWidget () +
    +
    returns (QWidget)

  • +
  • wrapperWidget () +
    +
    returns (QWidget)

  • +
+ + + diff --git a/doc/classref/kmdi/KMdiViewCloseEvent.html b/doc/classref/kmdi/KMdiViewCloseEvent.html new file mode 100644 index 0000000..a32968c --- /dev/null +++ b/doc/classref/kmdi/KMdiViewCloseEvent.html @@ -0,0 +1,47 @@ + + + + + class KMdiViewCloseEvent + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KMdiViewCloseEvent


+
+ + + + + +
Table of contents
Modules
kmdi Classes
All Classes
+
+ + + + + + + + + + +
Modulekmdi
ClassKMdiViewCloseEvent
InheritsQCustomEvent
+

methods

    +
  • KMdiViewCloseEvent (pWnd) +
    +
    returns a KMdiViewCloseEvent instance
    + +
    ArgumentTypeDefault
    pWndKMdiChildView
    +

  • +
+ + + diff --git a/doc/classref/kmdi/KMdiWin32IconButton.html b/doc/classref/kmdi/KMdiWin32IconButton.html new file mode 100644 index 0000000..382efc1 --- /dev/null +++ b/doc/classref/kmdi/KMdiWin32IconButton.html @@ -0,0 +1,57 @@ + + + + + class KMdiWin32IconButton + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KMdiWin32IconButton


+
+ + + + + +
Table of contents
Modules
kmdi Classes
All Classes
+
+ + + + + + + + + + +
Modulekmdi
ClassKMdiWin32IconButton
InheritsQLabel
+

methods

    +
  • KMdiWin32IconButton (parent, name = 0) +
    +
    returns a KMdiWin32IconButton instance
    + + +
    ArgumentTypeDefault
    parentQWidget
    namechar0
    +

  • +
  • mousePressEvent (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QMouseEvent
    +

  • +
  • pressed () +
    +
    returns nothing

  • +
+ + + diff --git a/doc/classref/kmdi/index.html b/doc/classref/kmdi/index.html new file mode 100644 index 0000000..6e69f64 --- /dev/null +++ b/doc/classref/kmdi/index.html @@ -0,0 +1,51 @@ + + + + + module kmdi + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

kmdi Class Index


+
+ + + + +
Table of contents
Modules
All Classes
+
+ kmdi Global and Namespace members

+ +
+ + + + + + + +
KMdi - KMdiChildFrmDragEndEvent
KMdi
KMdiChildArea
KMdiChildFrm
KMdiChildFrmCaption
KMdiChildFrmDragBeginEvent
KMdiChildFrmDragEndEvent
+ + + + + + +
KMdiChildFrmMoveEvent - KMdiMainFrm
KMdiChildFrmMoveEvent
KMdiChildFrmResizeBeginEvent
KMdiChildFrmResizeEndEvent
KMdiChildView
KMdiMainFrm
+ + + + + + +
KMdiTaskBar - KMdiWin32IconButton
KMdiTaskBar
KMdiTaskBarButton
KMdiToolViewAccessor
KMdiViewCloseEvent
KMdiWin32IconButton
+ + diff --git a/doc/classref/kmdi/kmdi-globals.html b/doc/classref/kmdi/kmdi-globals.html new file mode 100644 index 0000000..111b4e7 --- /dev/null +++ b/doc/classref/kmdi/kmdi-globals.html @@ -0,0 +1,28 @@ + + + + + kmdi globals + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

kmdi Globals


+
+ + + + + +
Table of contents
Modules
kmdi Classes
All Classes
+
+ + + diff --git a/doc/classref/kparts/ExtTerminalInterface.html b/doc/classref/kparts/ExtTerminalInterface.html new file mode 100644 index 0000000..498cc1b --- /dev/null +++ b/doc/classref/kparts/ExtTerminalInterface.html @@ -0,0 +1,82 @@ + + + + + class ExtTerminalInterface + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class ExtTerminalInterface


+
+ + + + + +
Table of contents
Modules
kparts Classes
All Classes
+
+ + + + + + + + + + +
Modulekparts
ClassExtTerminalInterface (abstract)
Inherits
+

methods

    +
  • sendInput (a0) = 0 +
    + + +
    returns nothing
    In versions KDE 3.5.0 and above only
    pure virtual
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • setAutoDestroy (a0) = 0 +
    + + +
    returns nothing
    In versions KDE 3.5.0 and above only
    pure virtual
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • setAutoStartShell (a0) = 0 +
    + + +
    returns nothing
    In versions KDE 3.5.0 and above only
    pure virtual
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • showShellInDir (a0) = 0 +
    + + +
    returns nothing
    In versions KDE 3.5.0 and above only
    pure virtual
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • startProgram (a0, a1) = 0 +
    + + +
    returns nothing
    In versions KDE 3.5.0 and above only
    pure virtual
    + + +
    ArgumentTypeDefault
    a0QString
    a1QStrList
    +

  • +
+ + + diff --git a/doc/classref/kparts/KParts.BrowserExtension.html b/doc/classref/kparts/KParts.BrowserExtension.html new file mode 100644 index 0000000..2342c41 --- /dev/null +++ b/doc/classref/kparts/KParts.BrowserExtension.html @@ -0,0 +1,322 @@ + + + + + class KParts.BrowserExtension + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KParts.BrowserExtension


+
+ + + + + +
Table of contents
Modules
kparts Classes
All Classes
+
+ + + + + + + + + + +
Modulekparts
ClassKParts.BrowserExtension
InheritsQObject
+

enums

    +
  • (anonymous) = {DefaultPopupItems, ShowNavigationItems, ShowUp, ShowReload, ShowBookmark, ShowCreateDirectory, ShowTextSelectionItems, NoDeletion +}
  • (anonymous) = {DefaultPopupItems, ShowNavigationItems, ShowUp, ShowReload, ShowBookmark, ShowCreateDirectory, ShowTextSelectionItems +}
  • (anonymous) = {DefaultPopupItems, ShowNavigationItems, ShowUp, ShowReload, ShowBookmark, ShowCreateDirectory +}
+

methods

    +
  • BrowserExtension (parent, name = 0) +
    +
    returns a BrowserExtension instance
    + + +
    ArgumentTypeDefault
    parentKParts.ReadOnlyPart
    namechar0
    +

  • +
  • actionSlotMap () +
    + +
    returns (KParts.BrowserExtension.ActionSlotMap)
    static

  • +
  • actionSlotMapPtr () +
    + +
    returns (KParts.BrowserExtension.ActionSlotMap)
    static

  • +
  • actionText (name) +
    + +
    returns (QString)
    In versions KDE 3.5.0 and above only
    + +
    ArgumentTypeDefault
    namechar
    +

  • +
  • addWebSideBar (url, name) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    urlKURL
    nameQString
    +

  • +
  • browserInterface () +
    +
    returns (KParts.BrowserInterface)

  • +
  • childObject (obj) +
    + +
    returns (KParts.BrowserExtension)
    static
    + +
    ArgumentTypeDefault
    objQObject
    +

  • +
  • createNewWindow (url, args = KParts .URLArgs ()) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    urlKURL
    argsKParts.URLArgsKParts .URLArgs ()
    +

  • +
  • createNewWindow (url, args, windowArgs, part) +
    Not Implemented
    +

  • +
  • enableAction (name, enabled) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    namechar
    enabledbool
    +

  • +
  • infoMessage (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • isActionEnabled (name) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    namechar
    +

  • +
  • isURLDropHandlingEnabled () +
    +
    returns (bool)

  • +
  • loadingProgress (percent) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    percentint
    +

  • +
  • mouseOverInfo (item) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    itemKFileItem
    +

  • +
  • moveTopLevelWidget (x, y) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    xint
    yint
    +

  • +
  • openURLNotify () +
    +
    returns nothing

  • +
  • openURLRequest (url, args = KParts .URLArgs ()) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    urlKURL
    argsKParts.URLArgsKParts .URLArgs ()
    +

  • +
  • openURLRequestDelayed (url, args = KParts .URLArgs ()) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    urlKURL
    argsKParts.URLArgsKParts .URLArgs ()
    +

  • +
  • pasteRequest () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • popupMenu (global, items) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    globalQPoint
    itemsKFileItemList
    +

  • +
  • popupMenu (client, global, items) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    clientKXMLGUIClient
    globalQPoint
    itemsKFileItemList
    +

  • +
  • popupMenu (client, global, items, args, i) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + + + + + +
    ArgumentTypeDefault
    clientKXMLGUIClient
    globalQPoint
    itemsKFileItemList
    argsKParts.URLArgs
    iKParts.BrowserExtension.PopupFlags
    +

  • +
  • popupMenu (global, url, mimeType, mode = -1) +
    +
    returns nothing
    + + + + +
    ArgumentTypeDefault
    globalQPoint
    urlKURL
    mimeTypeQString
    modemode_t-1
    +

  • +
  • popupMenu (client, global, url, mimeType, mode = -1) +
    +
    returns nothing
    + + + + + +
    ArgumentTypeDefault
    clientKXMLGUIClient
    globalQPoint
    urlKURL
    mimeTypeQString
    modemode_t-1
    +

  • +
  • popupMenu (client, global, url, args, i, mode = -1) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + + + + + + +
    ArgumentTypeDefault
    clientKXMLGUIClient
    globalQPoint
    urlKURL
    argsKParts.URLArgs
    iKParts.BrowserExtension.PopupFlags
    modemode_t-1
    +

  • +
  • requestFocus (part) +
    + +
    returns nothing
    In versions KDE 3.3.1 and above only
    + +
    ArgumentTypeDefault
    partKParts.ReadOnlyPart
    +

  • +
  • resizeTopLevelWidget (w, h) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    wint
    hint
    +

  • +
  • restoreState (stream) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    streamQDataStream
    +

  • +
  • saveState (stream) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    streamQDataStream
    +

  • +
  • selectionInfo (items) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    itemsKFileItemList
    +

  • +
  • selectionInfo (text) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    textQString
    +

  • +
  • selectionInfo (urls) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    urlsKURL.List
    +

  • +
  • setActionText (name, text) +
    + +
    returns nothing
    In versions KDE 3.5.0 and above only
    + + +
    ArgumentTypeDefault
    namechar
    textQString
    +

  • +
  • setBrowserInterface (impl) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    implKParts.BrowserInterface
    +

  • +
  • setIconURL (url) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    urlKURL
    +

  • +
  • setLocationBarURL (url) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    urlQString
    +

  • +
  • setPageSecurity (a0) +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • setURLArgs (args) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    argsKParts.URLArgs
    +

  • +
  • setURLDropHandlingEnabled (enable) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    enablebool
    +

  • +
  • speedProgress (bytesPerSecond) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    bytesPerSecondint
    +

  • +
  • urlArgs () +
    +
    returns (KParts.URLArgs)

  • +
  • xOffset () +
    +
    returns (int)

  • +
  • yOffset () +
    +
    returns (int)

  • +
+ + + diff --git a/doc/classref/kparts/KParts.BrowserHostExtension.html b/doc/classref/kparts/KParts.BrowserHostExtension.html new file mode 100644 index 0000000..5cab390 --- /dev/null +++ b/doc/classref/kparts/KParts.BrowserHostExtension.html @@ -0,0 +1,76 @@ + + + + + class KParts.BrowserHostExtension + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KParts.BrowserHostExtension


+
+ + + + + +
Table of contents
Modules
kparts Classes
All Classes
+
+ + + + + + + + + + +
Modulekparts
ClassKParts.BrowserHostExtension
InheritsQObject
+

methods

    +
  • BrowserHostExtension (parent, name = 0) +
    +
    returns a BrowserHostExtension instance
    + + +
    ArgumentTypeDefault
    parentKParts.ReadOnlyPart
    namechar0
    +

  • +
  • childObject (obj) +
    + +
    returns (KParts.BrowserHostExtension)
    static
    + +
    ArgumentTypeDefault
    objQObject
    +

  • +
  • findFrameParent (callingPart, frame) +
    + +
    returns (KParts.BrowserHostExtension)
    In versions KDE 3.3.0 and above only
    + + +
    ArgumentTypeDefault
    callingPartKParts.ReadOnlyPart
    frameQString
    +

  • +
  • frameNames () +
    +
    returns (QStringList)

  • +
  • frames () +
    +
    returns (QPtrList)

  • +
  • openURLInFrame (url, urlArgs) +
    +
    returns (bool)
    + + +
    ArgumentTypeDefault
    urlKURL
    urlArgsKParts.URLArgs
    +

  • +
+ + + diff --git a/doc/classref/kparts/KParts.BrowserInterface.html b/doc/classref/kparts/KParts.BrowserInterface.html new file mode 100644 index 0000000..369c378 --- /dev/null +++ b/doc/classref/kparts/KParts.BrowserInterface.html @@ -0,0 +1,55 @@ + + + + + class KParts.BrowserInterface + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KParts.BrowserInterface


+
+ + + + + +
Table of contents
Modules
kparts Classes
All Classes
+
+ + + + + + + + + + +
Modulekparts
ClassKParts.BrowserInterface
InheritsQObject
+

methods

    +
  • BrowserInterface (parent, name = 0) +
    +
    returns a BrowserInterface instance
    + + +
    ArgumentTypeDefault
    parentQObject
    namechar0
    +

  • +
  • callMethod (name, argument) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    namechar
    argumentQVariant
    +

  • +
+ + + diff --git a/doc/classref/kparts/KParts.BrowserRun.html b/doc/classref/kparts/KParts.BrowserRun.html new file mode 100644 index 0000000..aa76968 --- /dev/null +++ b/doc/classref/kparts/KParts.BrowserRun.html @@ -0,0 +1,197 @@ + + + + + class KParts.BrowserRun + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KParts.BrowserRun


+
+ + + + + +
Table of contents
Modules
kparts Classes
All Classes
+
+ + + + + + + + + + +
Modulekparts
ClassKParts.BrowserRun
InheritsKRun
+

enums

    +
  • AskEmbedOrSaveFlags = {InlineDisposition, AttachmentDisposition +}
  • AskSaveResult = {Save, Open, Cancel +}
+

methods

    +
  • BrowserRun (url, args, part, window, removeReferrer, trustedSource) +
    +
    returns a BrowserRun instance
    + + + + + + +
    ArgumentTypeDefault
    urlKURL
    argsKParts.URLArgs
    partKParts.ReadOnlyPart
    windowQWidget
    removeReferrerbool
    trustedSourcebool
    +

  • +
  • BrowserRun (url, args, part, window, removeReferrer, trustedSource, hideErrorDialog) +
    + +
    returns a BrowserRun instance
    In versions KDE 3.1.0 and above only
    + + + + + + + +
    ArgumentTypeDefault
    urlKURL
    argsKParts.URLArgs
    partKParts.ReadOnlyPart
    windowQWidget
    removeReferrerbool
    trustedSourcebool
    hideErrorDialogbool
    +

  • +
  • allowExecution (serviceType, url) +
    + +
    returns (bool)
    static
    + + +
    ArgumentTypeDefault
    serviceTypeQString
    urlKURL
    +

  • +
  • askEmbedOrSave (url, mimeType, suggestedFilename = QString .null, flags = 0) +
    + + +
    returns (KParts.BrowserRun.AskSaveResult)
    In versions KDE 3.2.0 and above only
    static
    + + + + +
    ArgumentTypeDefault
    urlKURL
    mimeTypeQString
    suggestedFilenameQStringQString .null
    flagsint0
    +

  • +
  • askSave (url, offer, mimeType, suggestedFilename = QString .null) +
    + +
    returns (KParts.BrowserRun.AskSaveResult)
    static
    + + + + +
    ArgumentTypeDefault
    urlKURL
    offerKService.Ptr
    mimeTypeQString
    suggestedFilenameQStringQString .null
    +

  • +
  • contentDisposition () +
    + +
    returns (QString)
    In versions KDE 3.5.2 and above only

  • +
  • handleError (job) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    jobKIO.Job
    +

  • +
  • handleNonEmbeddable (mimeType) +
    Not Implemented
    +

  • +
  • hideErrorDialog () +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above only

  • +
  • init () +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only

  • +
  • isExecutable (serviceType) +
    + +
    returns (bool)
    static
    + +
    ArgumentTypeDefault
    serviceTypeQString
    +

  • +
  • isTextExecutable (serviceType) +
    + +
    returns (bool)
    static
    + +
    ArgumentTypeDefault
    serviceTypeQString
    +

  • +
  • save (url, suggestedFilename) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    urlKURL
    suggestedFilenameQString
    +

  • +
  • scanFile () +
    +
    returns nothing

  • +
  • serverSuggestsSave () +
    + +
    returns (bool)
    In versions KDE 3.5.2 and above only

  • +
  • simpleSave (url, suggestedFilename, window) +
    + + +
    returns nothing
    In versions KDE 3.2.0 and above only
    static
    + + + +
    ArgumentTypeDefault
    urlKURL
    suggestedFilenameQString
    windowQWidget
    +

  • +
  • simpleSave (url, suggestedFilename) +
    + +
    returns nothing
    static
    + + +
    ArgumentTypeDefault
    urlKURL
    suggestedFilenameQString
    +

  • +
  • slotBrowserMimetype (job, type) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    jobKIO.Job
    typeQString
    +

  • +
  • slotBrowserScanFinished (job) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    jobKIO.Job
    +

  • +
  • slotCopyToTempFileResult (job) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    jobKIO.Job
    +

  • +
  • slotStatResult (job) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    jobKIO.Job
    +

  • +
  • suggestedFilename () +
    + +
    returns (QString)
    In versions KDE 3.2.0 and above only

  • +
  • url () +
    +
    returns (KURL)

  • +
+ + + diff --git a/doc/classref/kparts/KParts.DockMainWindow.html b/doc/classref/kparts/KParts.DockMainWindow.html new file mode 100644 index 0000000..97a943b --- /dev/null +++ b/doc/classref/kparts/KParts.DockMainWindow.html @@ -0,0 +1,67 @@ + + + + + class KParts.DockMainWindow + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KParts.DockMainWindow


+
+ + + + + +
Table of contents
Modules
kparts Classes
All Classes
+
+ + + + + + + + + + +
Modulekparts
ClassKParts.DockMainWindow
InheritsKDockMainWindow, KParts.PartBase
+

methods

    +
  • DockMainWindow (parent = 0, name = 0, f = WDestructiveClose) +
    +
    returns a DockMainWindow instance
    + + + +
    ArgumentTypeDefault
    parentQWidget0
    namechar0
    fWFlagsWDestructiveClose
    +

  • +
  • createGUI (part) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    partKParts.Part
    +

  • +
  • createShellGUI (create = 1) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    createbool1
    +

  • +
  • slotSetStatusBarText (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
+ + + diff --git a/doc/classref/kparts/KParts.Event.html b/doc/classref/kparts/KParts.Event.html new file mode 100644 index 0000000..072a677 --- /dev/null +++ b/doc/classref/kparts/KParts.Event.html @@ -0,0 +1,65 @@ + + + + + class KParts.Event + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KParts.Event


+
+ + + + + +
Table of contents
Modules
kparts Classes
All Classes
+
+ + + + + + + + + + +
Modulekparts
ClassKParts.Event
InheritsQCustomEvent
+

methods

    +
  • Event (eventName) +
    +
    returns a Event instance
    + +
    ArgumentTypeDefault
    eventNamechar
    +

  • +
  • eventName () +
    +
    returns (char)

  • +
  • test (event) +
    + +
    returns (bool)
    static
    + +
    ArgumentTypeDefault
    eventQEvent
    +

  • +
  • test (event, name) +
    + +
    returns (bool)
    static
    + + +
    ArgumentTypeDefault
    eventQEvent
    namechar
    +

  • +
+ + + diff --git a/doc/classref/kparts/KParts.Factory.html b/doc/classref/kparts/KParts.Factory.html new file mode 100644 index 0000000..6f3b14a --- /dev/null +++ b/doc/classref/kparts/KParts.Factory.html @@ -0,0 +1,91 @@ + + + + + class KParts.Factory + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KParts.Factory


+
+ + + + + +
Table of contents
Modules
kparts Classes
All Classes
+
+ + + + + + + + + + +
Modulekparts
ClassKParts.Factory
InheritsKLibFactory
+

methods

    +
  • Factory (parent = 0, name = 0) +
    +
    returns a Factory instance
    + + +
    ArgumentTypeDefault
    parentQObject0
    namechar0
    +

  • +
  • createObject (parent = 0, name = 0, classname = "QObject", args = QStringList ()) +
    +
    returns (QObject)
    + + + + +
    ArgumentTypeDefault
    parentQObject0
    namechar0
    classnamechar"QObject"
    argsQStringListQStringList ()
    +

  • +
  • createPart (parentWidget = 0, widgetName = 0, parent = 0, name = 0, classname = "KParts.Part", args = QStringList ()) +
    +
    returns (KParts.Part)
    + + + + + + +
    ArgumentTypeDefault
    parentWidgetQWidget0
    widgetNamechar0
    parentQObject0
    namechar0
    classnamechar"KParts.Part"
    argsQStringListQStringList ()
    +

  • +
  • createPartObject (parentWidget = 0, widgetName = 0, parent = 0, name = 0, classname = "KParts.Part", args = QStringList ()) +
    +
    returns (KParts.Part)
    + + + + + + +
    ArgumentTypeDefault
    parentWidgetQWidget0
    widgetNamechar0
    parentQObject0
    namechar0
    classnamechar"KParts.Part"
    argsQStringListQStringList ()
    +

  • +
  • partInstance () +
    + +
    returns (KInstance)
    In versions KDE 3.2.0 and above only

  • +
  • partInstanceFromLibrary (libraryName) +
    + + +
    returns (KInstance)
    In versions KDE 3.2.0 and above only
    static
    + +
    ArgumentTypeDefault
    libraryNameQCString
    +

  • +
+ + + diff --git a/doc/classref/kparts/KParts.GUIActivateEvent.html b/doc/classref/kparts/KParts.GUIActivateEvent.html new file mode 100644 index 0000000..7fcac1a --- /dev/null +++ b/doc/classref/kparts/KParts.GUIActivateEvent.html @@ -0,0 +1,57 @@ + + + + + class KParts.GUIActivateEvent + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KParts.GUIActivateEvent


+
+ + + + + +
Table of contents
Modules
kparts Classes
All Classes
+
+ + + + + + + + + + +
Modulekparts
ClassKParts.GUIActivateEvent
InheritsKParts.Event
+

methods

    +
  • GUIActivateEvent (activated) +
    +
    returns a GUIActivateEvent instance
    + +
    ArgumentTypeDefault
    activatedbool
    +

  • +
  • activated () +
    +
    returns (bool)

  • +
  • test (event) +
    + +
    returns (bool)
    static
    + +
    ArgumentTypeDefault
    eventQEvent
    +

  • +
+ + + diff --git a/doc/classref/kparts/KParts.HistoryProvider.html b/doc/classref/kparts/KParts.HistoryProvider.html new file mode 100644 index 0000000..ad4ebb8 --- /dev/null +++ b/doc/classref/kparts/KParts.HistoryProvider.html @@ -0,0 +1,82 @@ + + + + + class KParts.HistoryProvider + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KParts.HistoryProvider


+
+ + + + + +
Table of contents
Modules
kparts Classes
All Classes
+
+ + + + + + + + + + +
Modulekparts
ClassKParts.HistoryProvider
InheritsQObject
+

methods

    +
  • HistoryProvider (parent = 0, name = 0) +
    +
    returns a HistoryProvider instance
    + + +
    ArgumentTypeDefault
    parentQObject0
    namechar0
    +

  • +
  • clear () +
    +
    returns nothing

  • +
  • cleared () +
    +
    returns nothing

  • +
  • contains (item) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    itemQString
    +

  • +
  • insert (item) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    itemQString
    +

  • +
  • remove (item) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    itemQString
    +

  • +
  • self () +
    + +
    returns (KParts.HistoryProvider)
    static

  • +
  • updated (items) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    itemsQStringList
    +

  • +
+ + + diff --git a/doc/classref/kparts/KParts.LiveConnectExtension.html b/doc/classref/kparts/KParts.LiveConnectExtension.html new file mode 100644 index 0000000..a405842 --- /dev/null +++ b/doc/classref/kparts/KParts.LiveConnectExtension.html @@ -0,0 +1,98 @@ + + + + + class KParts.LiveConnectExtension + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KParts.LiveConnectExtension


+
+ + + + + +
Table of contents
Modules
kparts Classes
All Classes
+
+ + + + + + + + + + +
Modulekparts
ClassKParts.LiveConnectExtension
InheritsQObject
+

enums

    +
  • Type = {TypeVoid, TypeBool, TypeFunction, TypeNumber, TypeObject, TypeString +}
+

methods

    +
  • LiveConnectExtension (parent, name = 0) +
    + +
    returns a LiveConnectExtension instance
    In versions KDE 3.1.0 and above only
    + + +
    ArgumentTypeDefault
    parentKParts.ReadOnlyPart
    namechar0
    +

  • +
  • call (objid, func, args, value) +
    + +
    returns (bool) type (KParts.LiveConnectExtension.Type) retobjid (ulong)
    In versions KDE 3.1.0 and above only
    + + + + +
    ArgumentTypeDefault
    objidulong
    funcQString
    argsQStringList
    valueQString
    +

  • +
  • childObject (obj) +
    + + +
    returns (KParts.LiveConnectExtension)
    In versions KDE 3.1.0 and above only
    static
    + +
    ArgumentTypeDefault
    objQObject
    +

  • +
  • get (objid, field, value) +
    + +
    returns (bool) type (KParts.LiveConnectExtension.Type) retobjid (ulong)
    In versions KDE 3.1.0 and above only
    + + + +
    ArgumentTypeDefault
    objidulong
    fieldQString
    valueQString
    +

  • +
  • partEvent (objid, event, args) +
    Not Implemented
    +

  • +
  • put (objid, field, value) +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above only
    + + + +
    ArgumentTypeDefault
    objidulong
    fieldQString
    valueQString
    +

  • +
  • unregister (objid) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    objidulong
    +

  • +
+ + + diff --git a/doc/classref/kparts/KParts.MainWindow.html b/doc/classref/kparts/KParts.MainWindow.html new file mode 100644 index 0000000..f6bf365 --- /dev/null +++ b/doc/classref/kparts/KParts.MainWindow.html @@ -0,0 +1,88 @@ + + + + + class KParts.MainWindow + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KParts.MainWindow


+
+ + + + + +
Table of contents
Modules
kparts Classes
All Classes
+
+ + + + + + + + + + +
Modulekparts
ClassKParts.MainWindow
InheritsKMainWindow, KParts.PartBase
+

methods

    +
  • MainWindow (parent, name = 0, f = WType_TopLevel | WDestructiveClose) +
    +
    returns a MainWindow instance
    + + + +
    ArgumentTypeDefault
    parentQWidget
    namechar0
    fWFlagsWType_TopLevel | WDestructiveClose
    +

  • +
  • MainWindow (name = 0, f = WDestructiveClose) +
    +
    returns a MainWindow instance
    + + +
    ArgumentTypeDefault
    namechar0
    fWFlagsWDestructiveClose
    +

  • +
  • MainWindow (cflags, parent, name = 0, f = WType_TopLevel | WDestructiveClose) +
    + +
    returns a MainWindow instance
    In versions KDE 3.2.0 and above only
    + + + + +
    ArgumentTypeDefault
    cflagsint
    parentQWidget
    namechar0
    fWFlagsWType_TopLevel | WDestructiveClose
    +

  • +
  • createGUI (part) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    partKParts.Part
    +

  • +
  • createShellGUI (create = 1) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    createbool1
    +

  • +
  • saveNewToolbarConfig () +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only

  • +
  • slotSetStatusBarText (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
+ + + diff --git a/doc/classref/kparts/KParts.OpenURLEvent.html b/doc/classref/kparts/KParts.OpenURLEvent.html new file mode 100644 index 0000000..c280a6f --- /dev/null +++ b/doc/classref/kparts/KParts.OpenURLEvent.html @@ -0,0 +1,65 @@ + + + + + class KParts.OpenURLEvent + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KParts.OpenURLEvent


+
+ + + + + +
Table of contents
Modules
kparts Classes
All Classes
+
+ + + + + + + + + + +
Modulekparts
ClassKParts.OpenURLEvent
InheritsKParts.Event
+

methods

    +
  • OpenURLEvent (part, url, args = KParts .URLArgs ()) +
    +
    returns a OpenURLEvent instance
    + + + +
    ArgumentTypeDefault
    partKParts.ReadOnlyPart
    urlKURL
    argsKParts.URLArgsKParts .URLArgs ()
    +

  • +
  • args () +
    +
    returns (KParts.URLArgs)

  • +
  • part () +
    +
    returns (KParts.ReadOnlyPart)

  • +
  • test (event) +
    + +
    returns (bool)
    static
    + +
    ArgumentTypeDefault
    eventQEvent
    +

  • +
  • url () +
    +
    returns (KURL)

  • +
+ + + diff --git a/doc/classref/kparts/KParts.Part.html b/doc/classref/kparts/KParts.Part.html new file mode 100644 index 0000000..9b6a433 --- /dev/null +++ b/doc/classref/kparts/KParts.Part.html @@ -0,0 +1,130 @@ + + + + + class KParts.Part + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KParts.Part


+
+ + + + + +
Table of contents
Modules
kparts Classes
All Classes
+
+ + + + + + + + + + +
Modulekparts
ClassKParts.Part
InheritsQObject, KParts.PartBase
+

methods

    +
  • Part (parent = 0, name = 0) +
    +
    returns a Part instance
    + + +
    ArgumentTypeDefault
    parentQObject0
    namechar0
    +

  • +
  • customEvent (event) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    eventQCustomEvent
    +

  • +
  • embed (parentWidget) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    parentWidgetQWidget
    +

  • +
  • guiActivateEvent (event) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    eventKParts.GUIActivateEvent
    +

  • +
  • hitTest (widget, globalPos) +
    +
    returns (KParts.Part)
    + + +
    ArgumentTypeDefault
    widgetQWidget
    globalPosQPoint
    +

  • +
  • hostContainer (containerName) +
    +
    returns (QWidget)
    + +
    ArgumentTypeDefault
    containerNameQString
    +

  • +
  • isSelectable () +
    +
    returns (bool)

  • +
  • manager () +
    +
    returns (KParts.PartManager)

  • +
  • partActivateEvent (event) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    eventKParts.PartActivateEvent
    +

  • +
  • partSelectEvent (event) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    eventKParts.PartSelectEvent
    +

  • +
  • setManager (manager) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    managerKParts.PartManager
    +

  • +
  • setSelectable (selectable) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    selectablebool
    +

  • +
  • setStatusBarText (text) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    textQString
    +

  • +
  • setWidget (widget) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    widgetQWidget
    +

  • +
  • setWindowCaption (caption) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    captionQString
    +

  • +
  • widget () +
    +
    returns (QWidget)

  • +
+ + + diff --git a/doc/classref/kparts/KParts.PartActivateEvent.html b/doc/classref/kparts/KParts.PartActivateEvent.html new file mode 100644 index 0000000..e3b5cdf --- /dev/null +++ b/doc/classref/kparts/KParts.PartActivateEvent.html @@ -0,0 +1,65 @@ + + + + + class KParts.PartActivateEvent + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KParts.PartActivateEvent


+
+ + + + + +
Table of contents
Modules
kparts Classes
All Classes
+
+ + + + + + + + + + +
Modulekparts
ClassKParts.PartActivateEvent
InheritsKParts.Event
+

methods

    +
  • PartActivateEvent (activated, part, widget) +
    +
    returns a PartActivateEvent instance
    + + + +
    ArgumentTypeDefault
    activatedbool
    partKParts.Part
    widgetQWidget
    +

  • +
  • activated () +
    +
    returns (bool)

  • +
  • part () +
    +
    returns (KParts.Part)

  • +
  • test (event) +
    + +
    returns (bool)
    static
    + +
    ArgumentTypeDefault
    eventQEvent
    +

  • +
  • widget () +
    +
    returns (QWidget)

  • +
+ + + diff --git a/doc/classref/kparts/KParts.PartBase.html b/doc/classref/kparts/KParts.PartBase.html new file mode 100644 index 0000000..5634ba7 --- /dev/null +++ b/doc/classref/kparts/KParts.PartBase.html @@ -0,0 +1,78 @@ + + + + + class KParts.PartBase + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KParts.PartBase


+
+ + + + + +
Table of contents
Modules
kparts Classes
All Classes
+
+ + + + + + + + + + +
Modulekparts
ClassKParts.PartBase
InheritsKXMLGUIClient
+

methods

    +
  • PartBase () +
    +
    returns a PartBase instance

  • +
  • loadPlugins (parent, parentGUIClient, instance) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + + + +
    ArgumentTypeDefault
    parentQObject
    parentGUIClientKXMLGUIClient
    instanceKInstance
    +

  • +
  • partObject () +
    +
    returns (QObject)

  • +
  • setInstance (instance) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    instanceKInstance
    +

  • +
  • setInstance (instance, loadPlugins) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    instanceKInstance
    loadPluginsbool
    +

  • +
  • setPartObject (object) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    objectQObject
    +

  • +
  • setPluginLoadingMode (loadingMode) +
    Not Implemented
    +

  • +
+ + + diff --git a/doc/classref/kparts/KParts.PartManager.html b/doc/classref/kparts/KParts.PartManager.html new file mode 100644 index 0000000..d088af0 --- /dev/null +++ b/doc/classref/kparts/KParts.PartManager.html @@ -0,0 +1,204 @@ + + + + + class KParts.PartManager + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KParts.PartManager


+
+ + + + + +
Table of contents
Modules
kparts Classes
All Classes
+
+ + + + + + + + + + +
Modulekparts
ClassKParts.PartManager
InheritsQObject
+

enums

    +
  • Reason = {ReasonLeftClick, ReasonMidClick, ReasonRightClick, NoReason +}
  • SelectionPolicy = {Direct, TriState +}
+

methods

    +
  • PartManager (parent, name = 0) +
    +
    returns a PartManager instance
    + + +
    ArgumentTypeDefault
    parentQWidget
    namechar0
    +

  • +
  • PartManager (topLevel, parent, name = 0) +
    +
    returns a PartManager instance
    + + + +
    ArgumentTypeDefault
    topLevelQWidget
    parentQObject
    namechar0
    +

  • +
  • activationButtonMask () +
    + +
    returns (short)
    In versions KDE 3.1.0 and above only

  • +
  • activePart () +
    +
    returns (KParts.Part)

  • +
  • activePartChanged (newPart) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    newPartKParts.Part
    +

  • +
  • activeWidget () +
    +
    returns (QWidget)

  • +
  • addManagedTopLevelWidget (topLevel) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    topLevelQWidget
    +

  • +
  • addPart (part, setActive = 1) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    partKParts.Part
    setActivebool1
    +

  • +
  • allowNestedParts () +
    +
    returns (bool)

  • +
  • eventFilter (obj, ev) +
    +
    returns (bool)
    + + +
    ArgumentTypeDefault
    objQObject
    evQEvent
    +

  • +
  • ignoreScrollBars () +
    +
    returns (bool)

  • +
  • partAdded (part) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    partKParts.Part
    +

  • +
  • partRemoved (part) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    partKParts.Part
    +

  • +
  • parts () +
    +
    returns (QPtrList)

  • +
  • reason () +
    + +
    returns (int)
    In versions KDE 3.3.0 and above only

  • +
  • removeManagedTopLevelWidget (topLevel) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    topLevelQWidget
    +

  • +
  • removePart (part) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    partKParts.Part
    +

  • +
  • replacePart (oldPart, newPart, setActive = 1) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    oldPartKParts.Part
    newPartKParts.Part
    setActivebool1
    +

  • +
  • selectedPart () +
    +
    returns (KParts.Part)

  • +
  • selectedWidget () +
    +
    returns (QWidget)

  • +
  • selectionPolicy () +
    +
    returns (KParts.PartManager.SelectionPolicy)

  • +
  • setActivationButtonMask (buttonMask) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    buttonMaskshort
    +

  • +
  • setActiveInstance (instance) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    instanceKInstance
    +

  • +
  • setActivePart (part, widget = 0) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    partKParts.Part
    widgetQWidget0
    +

  • +
  • setAllowNestedParts (allow) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    allowbool
    +

  • +
  • setIgnoreScrollBars (ignore) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    ignorebool
    +

  • +
  • setSelectedPart (part, widget = 0) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    partKParts.Part
    widgetQWidget0
    +

  • +
  • setSelectionPolicy (policy) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    policyKParts.PartManager.SelectionPolicy
    +

  • +
  • slotManagedTopLevelWidgetDestroyed () +
    +
    returns nothing

  • +
  • slotObjectDestroyed () +
    +
    returns nothing

  • +
  • slotWidgetDestroyed () +
    +
    returns nothing

  • +
+ + + diff --git a/doc/classref/kparts/KParts.PartSelectEvent.html b/doc/classref/kparts/KParts.PartSelectEvent.html new file mode 100644 index 0000000..c02a11c --- /dev/null +++ b/doc/classref/kparts/KParts.PartSelectEvent.html @@ -0,0 +1,65 @@ + + + + + class KParts.PartSelectEvent + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KParts.PartSelectEvent


+
+ + + + + +
Table of contents
Modules
kparts Classes
All Classes
+
+ + + + + + + + + + +
Modulekparts
ClassKParts.PartSelectEvent
InheritsKParts.Event
+

methods

    +
  • PartSelectEvent (selected, part, widget) +
    +
    returns a PartSelectEvent instance
    + + + +
    ArgumentTypeDefault
    selectedbool
    partKParts.Part
    widgetQWidget
    +

  • +
  • part () +
    +
    returns (KParts.Part)

  • +
  • selected () +
    +
    returns (bool)

  • +
  • test (event) +
    + +
    returns (bool)
    static
    + +
    ArgumentTypeDefault
    eventQEvent
    +

  • +
  • widget () +
    +
    returns (QWidget)

  • +
+ + + diff --git a/doc/classref/kparts/KParts.Plugin.PluginInfo.html b/doc/classref/kparts/KParts.Plugin.PluginInfo.html new file mode 100644 index 0000000..092f214 --- /dev/null +++ b/doc/classref/kparts/KParts.Plugin.PluginInfo.html @@ -0,0 +1,45 @@ + + + + + class KParts.Plugin.PluginInfo + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KParts.Plugin.PluginInfo


+
+ + + + + +
Table of contents
Modules
kparts Classes
All Classes
+
+ + + + + + + + + + +
Modulekparts
ClassKParts.Plugin.PluginInfo
Inherits
+

variables

  • +variables + + + +
    VariableType
    m_absXMLFileNameQString
    m_documentQDomDocument
    m_relXMLFileNameQString
+ + + diff --git a/doc/classref/kparts/KParts.Plugin.html b/doc/classref/kparts/KParts.Plugin.html new file mode 100644 index 0000000..ca89982 --- /dev/null +++ b/doc/classref/kparts/KParts.Plugin.html @@ -0,0 +1,118 @@ + + + + + class KParts.Plugin + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KParts.Plugin


+
+ + + + + +
Table of contents
Modules
kparts Classes
All Classes
+
+ + + + + + + + + + +
Modulekparts
ClassKParts.Plugin
InheritsQObject, KXMLGUIClient
+

methods

    +
  • Plugin (parent = 0, name = 0) +
    +
    returns a Plugin instance
    + + +
    ArgumentTypeDefault
    parentQObject0
    namechar0
    +

  • +
  • loadPlugin (parent, libname) +
    + +
    returns (KParts.Plugin)
    static
    + + +
    ArgumentTypeDefault
    parentQObject
    libnamechar
    +

  • +
  • loadPlugins (parent, instance) +
    + +
    returns nothing
    static
    + + +
    ArgumentTypeDefault
    parentQObject
    instanceKInstance
    +

  • +
  • loadPlugins (parent, pluginInfos) +
    + +
    returns nothing
    static
    + + +
    ArgumentTypeDefault
    parentQObject
    pluginInfosQValueList
    +

  • +
  • loadPlugins (parent, pluginInfos, instance) +
    + +
    returns nothing
    static
    + + + +
    ArgumentTypeDefault
    parentQObject
    pluginInfosQValueList
    instanceKInstance
    +

  • +
  • loadPlugins (parent, parentGUIClient, instance, enableNewPluginsByDefault = 1) +
    + + +
    returns nothing
    In versions KDE 3.1.0 and above only
    static
    + + + + +
    ArgumentTypeDefault
    parentQObject
    parentGUIClientKXMLGUIClient
    instanceKInstance
    enableNewPluginsByDefaultbool1
    +

  • +
  • localXMLFile () +
    +
    returns (QString)

  • +
  • pluginInfos (instance) +
    + +
    returns (QValueList)
    static
    + +
    ArgumentTypeDefault
    instanceKInstance
    +

  • +
  • pluginObjects (parent) +
    + +
    returns (QPtrList)
    static
    + +
    ArgumentTypeDefault
    parentQObject
    +

  • +
  • setInstance (instance) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    instanceKInstance
    +

  • +
  • xmlFile () +
    +
    returns (QString)

  • +
+ + + diff --git a/doc/classref/kparts/KParts.ReadOnlyPart.html b/doc/classref/kparts/KParts.ReadOnlyPart.html new file mode 100644 index 0000000..766b454 --- /dev/null +++ b/doc/classref/kparts/KParts.ReadOnlyPart.html @@ -0,0 +1,131 @@ + + + + + class KParts.ReadOnlyPart + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KParts.ReadOnlyPart


+
+ + + + + +
Table of contents
Modules
kparts Classes
All Classes
+
+ + + + + + + + + + +
Modulekparts
ClassKParts.ReadOnlyPart (abstract)
InheritsKParts.Part
+

methods

    +
  • ReadOnlyPart (parent = 0, name = 0) +
    +
    returns a ReadOnlyPart instance
    + + +
    ArgumentTypeDefault
    parentQObject0
    namechar0
    +

  • +
  • abortLoad () +
    +
    returns nothing

  • +
  • canceled (errMsg) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    errMsgQString
    +

  • +
  • closeStream () +
    +
    returns (bool)

  • +
  • closeURL () +
    +
    returns (bool)

  • +
  • completed () +
    +
    returns nothing

  • +
  • completed (pendingAction) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    pendingActionbool
    +

  • +
  • guiActivateEvent (event) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    eventKParts.GUIActivateEvent
    +

  • +
  • isProgressInfoEnabled () +
    +
    returns (bool)

  • +
  • openFile () = 0 +
    + +
    returns (bool)
    pure virtual

  • +
  • openStream (mimeType, url) +
    +
    returns (bool)
    + + +
    ArgumentTypeDefault
    mimeTypeQString
    urlKURL
    +

  • +
  • openURL (url) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    urlKURL
    +

  • +
  • setProgressInfoEnabled (show) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    showbool
    +

  • +
  • showProgressInfo (show) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    showbool
    +

  • +
  • slotJobFinished (job) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    jobKIO.Job
    +

  • +
  • started (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KIO.Job
    +

  • +
  • url () +
    +
    returns (KURL)

  • +
  • writeStream (data) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    dataQByteArray
    +

  • +
+ + + diff --git a/doc/classref/kparts/KParts.ReadWritePart.html b/doc/classref/kparts/KParts.ReadWritePart.html new file mode 100644 index 0000000..38f2fa3 --- /dev/null +++ b/doc/classref/kparts/KParts.ReadWritePart.html @@ -0,0 +1,112 @@ + + + + + class KParts.ReadWritePart + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KParts.ReadWritePart


+
+ + + + + +
Table of contents
Modules
kparts Classes
All Classes
+
+ + + + + + + + + + +
Modulekparts
ClassKParts.ReadWritePart (abstract)
InheritsKParts.ReadOnlyPart
+

methods

    +
  • ReadWritePart (parent = 0, name = 0) +
    +
    returns a ReadWritePart instance
    + + +
    ArgumentTypeDefault
    parentQObject0
    namechar0
    +

  • +
  • closeURL () +
    +
    returns (bool)

  • +
  • closeURL (promptToSave) +
    + +
    returns (bool)
    In versions KDE 3.1.3 and above only
    + +
    ArgumentTypeDefault
    promptToSavebool
    +

  • +
  • isModified () +
    +
    returns (bool)

  • +
  • isReadWrite () +
    +
    returns (bool)

  • +
  • queryClose () +
    + +
    returns (bool)
    In versions KDE 3.1.3 and above only

  • +
  • save () +
    +
    returns (bool)

  • +
  • saveAs (url) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    urlKURL
    +

  • +
  • saveFile () = 0 +
    + +
    returns (bool)
    pure virtual

  • +
  • saveToURL () +
    +
    returns (bool)

  • +
  • setModified (modified) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    modifiedbool
    +

  • +
  • setModified () +
    +
    returns nothing

  • +
  • setReadWrite (readwrite = 1) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    readwritebool1
    +

  • +
  • sigQueryClose () +
    Not Implemented
    +

  • +
  • slotUploadFinished (job) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    jobKIO.Job
    +

  • +
  • waitSaveComplete () +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only

  • +
+ + + diff --git a/doc/classref/kparts/KParts.StatusBarExtension.html b/doc/classref/kparts/KParts.StatusBarExtension.html new file mode 100644 index 0000000..4944b09 --- /dev/null +++ b/doc/classref/kparts/KParts.StatusBarExtension.html @@ -0,0 +1,92 @@ + + + + + class KParts.StatusBarExtension + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KParts.StatusBarExtension


+
+ + + + + +
Table of contents
Modules
kparts Classes
All Classes
+
+ + + + + + + + + + +
Modulekparts
ClassKParts.StatusBarExtension
InheritsQObject
+

methods

    +
  • StatusBarExtension (parent, name = 0) +
    + +
    returns a StatusBarExtension instance
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    parentKParts.ReadOnlyPart
    namechar0
    +

  • +
  • addStatusBarItem (widget, stretch, permanent) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + + + +
    ArgumentTypeDefault
    widgetQWidget
    stretchint
    permanentbool
    +

  • +
  • childObject (obj) +
    + + +
    returns (KParts.StatusBarExtension)
    In versions KDE 3.2.0 and above only
    static
    + +
    ArgumentTypeDefault
    objQObject
    +

  • +
  • eventFilter (watched, ev) +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    watchedQObject
    evQEvent
    +

  • +
  • removeStatusBarItem (widget) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    widgetQWidget
    +

  • +
  • setStatusBar (status) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    statusKStatusBar
    +

  • +
  • statusBar () +
    + +
    returns (KStatusBar)
    In versions KDE 3.2.0 and above only

  • +
+ + + diff --git a/doc/classref/kparts/KParts.URLArgs.html b/doc/classref/kparts/KParts.URLArgs.html new file mode 100644 index 0000000..de307be --- /dev/null +++ b/doc/classref/kparts/KParts.URLArgs.html @@ -0,0 +1,134 @@ + + + + + class KParts.URLArgs + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KParts.URLArgs


+
+ + + + + +
Table of contents
Modules
kparts Classes
All Classes
+
+ + + + + + + + + + +
Modulekparts
ClassKParts.URLArgs
Inherits
+

methods

    +
  • URLArgs () +
    +
    returns a URLArgs instance

  • +
  • URLArgs (args) +
    +
    returns a URLArgs instance
    + +
    ArgumentTypeDefault
    argsKParts.URLArgs
    +

  • +
  • URLArgs (reload, xOffset, yOffset, serviceType = QString .null) +
    +
    returns a URLArgs instance
    + + + + +
    ArgumentTypeDefault
    reloadbool
    xOffsetint
    yOffsetint
    serviceTypeQStringQString .null
    +

  • +
  • contentType () +
    +
    returns (QString)

  • +
  • doPost () +
    +
    returns (bool)

  • +
  • forcesNewWindow () +
    + +
    returns (bool)
    In versions KDE 3.4.0 and above only

  • +
  • lockHistory () +
    +
    returns (bool)

  • +
  • metaData () +
    +
    returns (QMap)

  • +
  • newTab () +
    + +
    returns (bool)
    In versions KDE 3.1.0 and above only

  • +
  • redirectedRequest () +
    + +
    returns (bool)
    In versions KDE 3.1.3 and above only

  • +
  • setContentType (contentType) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    contentTypeQString
    +

  • +
  • setDoPost (enable) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    enablebool
    +

  • +
  • setForcesNewWindow (forcesNewWindow) +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only
    + +
    ArgumentTypeDefault
    forcesNewWindowbool
    +

  • +
  • setLockHistory (lock) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    lockbool
    +

  • +
  • setNewTab (newTab) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    newTabbool
    +

  • +
  • setRedirectedRequest (redirected) +
    + +
    returns nothing
    In versions KDE 3.1.3 and above only
    + +
    ArgumentTypeDefault
    redirectedbool
    +

  • +
+

variables

  • +variables + + + + + + + + + +
    VariableType
    dURLArgsPrivate*
    docStateQStringList
    frameNameQString
    postDataQByteArray
    reloadbool
    serviceTypeQString
    trustedSourcebool
    xOffsetint
    yOffsetint
+ + + diff --git a/doc/classref/kparts/KParts.WindowArgs.html b/doc/classref/kparts/KParts.WindowArgs.html new file mode 100644 index 0000000..974aa5b --- /dev/null +++ b/doc/classref/kparts/KParts.WindowArgs.html @@ -0,0 +1,90 @@ + + + + + class KParts.WindowArgs + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KParts.WindowArgs


+
+ + + + + +
Table of contents
Modules
kparts Classes
All Classes
+
+ + + + + + + + + + +
Modulekparts
ClassKParts.WindowArgs
Inherits
+

methods

    +
  • WindowArgs () +
    +
    returns a WindowArgs instance

  • +
  • WindowArgs (args) +
    +
    returns a WindowArgs instance
    + +
    ArgumentTypeDefault
    argsKParts.WindowArgs
    +

  • +
  • WindowArgs (_geometry, _fullscreen, _menuBarVisible, _toolBarsVisible, _statusBarVisible, _resizable) +
    +
    returns a WindowArgs instance
    + + + + + + +
    ArgumentTypeDefault
    _geometryQRect
    _fullscreenbool
    _menuBarVisiblebool
    _toolBarsVisiblebool
    _statusBarVisiblebool
    _resizablebool
    +

  • +
  • WindowArgs (_x, _y, _width, _height, _fullscreen, _menuBarVisible, _toolBarsVisible, _statusBarVisible, _resizable) +
    +
    returns a WindowArgs instance
    + + + + + + + + + +
    ArgumentTypeDefault
    _xint
    _yint
    _widthint
    _heightint
    _fullscreenbool
    _menuBarVisiblebool
    _toolBarsVisiblebool
    _statusBarVisiblebool
    _resizablebool
    +

  • +
+

variables

  • +variables + + + + + + + + + + + + +
    VariableType
    dWindowArgsPrivate*
    fullscreenbool
    heightint
    lowerWindowbool
    menuBarVisiblebool
    resizablebool
    scrollBarsVisiblebool
    statusBarVisiblebool
    toolBarsVisiblebool
    widthint
    xint
    yint
+ + + diff --git a/doc/classref/kparts/KParts.html b/doc/classref/kparts/KParts.html new file mode 100644 index 0000000..4256d83 --- /dev/null +++ b/doc/classref/kparts/KParts.html @@ -0,0 +1,41 @@ + + + + + class KParts + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KParts


+
+ + + + + +
Table of contents
Modules
kparts Classes
All Classes
+
+ + + + + + + + + + +
Modulekparts
ClassKParts
Inherits
+

classes

+ + + diff --git a/doc/classref/kparts/TerminalInterface.html b/doc/classref/kparts/TerminalInterface.html new file mode 100644 index 0000000..742a0a4 --- /dev/null +++ b/doc/classref/kparts/TerminalInterface.html @@ -0,0 +1,63 @@ + + + + + class TerminalInterface + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class TerminalInterface


+
+ + + + + +
Table of contents
Modules
kparts Classes
All Classes
+
+ + + + + + + + + + +
Modulekparts
ClassTerminalInterface (abstract)
Inherits
+

methods

    +
  • sendInput (a0) = 0 +
    + +
    returns nothing
    pure virtual
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • showShellInDir (a0) = 0 +
    + +
    returns nothing
    pure virtual
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • startProgram (a0, a1) = 0 +
    + +
    returns nothing
    pure virtual
    + + +
    ArgumentTypeDefault
    a0QString
    a1QStrList
    +

  • +
+ + + diff --git a/doc/classref/kparts/index.html b/doc/classref/kparts/index.html new file mode 100644 index 0000000..2ad94c2 --- /dev/null +++ b/doc/classref/kparts/index.html @@ -0,0 +1,65 @@ + + + + + module kparts + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

kparts Class Index


+
+ + + + +
Table of contents
Modules
All Classes
+
+ kparts Global and Namespace members

+ +
+ + + + + + + + + + + +
ExtTerminalInterface - KParts.GUIActivateEvent
ExtTerminalInterface
KParts
KParts.BrowserExtension
KParts.BrowserHostExtension
KParts.BrowserInterface
KParts.BrowserRun
KParts.DockMainWindow
KParts.Event
KParts.Factory
KParts.GUIActivateEvent
+ + + + + + + + + + + +
KParts.HistoryProvider - KParts.Plugin
KParts.HistoryProvider
KParts.LiveConnectExtension
KParts.MainWindow
KParts.OpenURLEvent
KParts.Part
KParts.PartActivateEvent
KParts.PartBase
KParts.PartManager
KParts.PartSelectEvent
KParts.Plugin
+ + + + + + + + + + + +
KParts.Plugin.PluginInfo - konsolePart
KParts.Plugin.PluginInfo
KParts.ReadOnlyPart
KParts.ReadWritePart
KParts.StatusBarExtension
KParts.URLArgs
KParts.WindowArgs
TerminalInterface
konsoleBrowserExtension
konsoleFactory
konsolePart
+ + diff --git a/doc/classref/kparts/konsoleBrowserExtension.html b/doc/classref/kparts/konsoleBrowserExtension.html new file mode 100644 index 0000000..41229e3 --- /dev/null +++ b/doc/classref/kparts/konsoleBrowserExtension.html @@ -0,0 +1,53 @@ + + + + + class konsoleBrowserExtension + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class konsoleBrowserExtension


+
+ + + + + +
Table of contents
Modules
kparts Classes
All Classes
+
+ + + + + + + + + + +
Modulekparts
ClasskonsoleBrowserExtension
InheritsKParts.BrowserExtension
+

methods

    +
  • emitOpenURLRequest (url) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    urlKURL
    +

  • +
  • konsoleBrowserExtension (parent) +
    +
    returns a konsoleBrowserExtension instance
    + +
    ArgumentTypeDefault
    parentkonsolePart
    +

  • +
+ + + diff --git a/doc/classref/kparts/konsoleFactory.html b/doc/classref/kparts/konsoleFactory.html new file mode 100644 index 0000000..e599d49 --- /dev/null +++ b/doc/classref/kparts/konsoleFactory.html @@ -0,0 +1,59 @@ + + + + + class konsoleFactory + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class konsoleFactory


+
+ + + + + +
Table of contents
Modules
kparts Classes
All Classes
+
+ + + + + + + + + + +
Modulekparts
ClasskonsoleFactory
InheritsKParts.Factory
+

methods

    +
  • createPartObject (parentWidget = 0, widgetName = 0, parent = 0, name = 0, classname = "KParts.Part", args = QStringList ()) +
    +
    returns (KParts.Part)
    + + + + + + +
    ArgumentTypeDefault
    parentWidgetQWidget0
    widgetNamechar0
    parentQObject0
    namechar0
    classnamechar"KParts.Part"
    argsQStringListQStringList ()
    +

  • +
  • instance () +
    + +
    returns (KInstance)
    static

  • +
  • konsoleFactory () +
    +
    returns a konsoleFactory instance

  • +
+ + + diff --git a/doc/classref/kparts/konsolePart.html b/doc/classref/kparts/konsolePart.html new file mode 100644 index 0000000..02c30d4 --- /dev/null +++ b/doc/classref/kparts/konsolePart.html @@ -0,0 +1,237 @@ + + + + + class konsolePart + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class konsolePart


+
+ + + + + +
Table of contents
Modules
kparts Classes
All Classes
+
+ + + + + + + + + + +
Modulekparts
ClasskonsolePart
InheritsKParts.ReadOnlyPart, TerminalInterface
+

methods

    +
  • closeURL () +
    + +
    returns (bool)
    In versions KDE 3.5.0 and above only

  • +
  • closeURL () +
    + +
    returns (bool)
    In versions less than KDE 3.5.0 only

  • +
  • enableMasterModeConnections () +
    + +
    returns nothing
    In versions KDE 3.5.0 and above only

  • +
  • enableMasterModeConnections () +
    + +
    returns nothing
    In versions less than KDE 3.5.0 only

  • +
  • forkedChild () +
    + +
    returns nothing
    In versions KDE 3.5.0 and above only

  • +
  • guiActivateEvent (event) +
    + +
    returns nothing
    In versions KDE 3.5.0 and above only
    + +
    ArgumentTypeDefault
    eventKParts.GUIActivateEvent
    +

  • +
  • guiActivateEvent (a0) +
    + +
    returns nothing
    In versions less than KDE 3.5.0 only
    + +
    ArgumentTypeDefault
    a0KParts.GUIActivateEvent
    +

  • +
  • konsolePart (parentWidget, widgetName, parent, name, classname = 0) +
    + +
    returns a konsolePart instance
    In versions KDE 3.5.0 and above only
    + + + + + +
    ArgumentTypeDefault
    parentWidgetQWidget
    widgetNamechar
    parentQObject
    namechar
    classnamechar0
    +

  • +
  • konsolePart (a0, a1, a2, a3, a4 = 0) +
    + +
    returns a konsolePart instance
    In versions less than KDE 3.5.0 only
    + + + + + +
    ArgumentTypeDefault
    a0QWidget
    a1char
    a2QObject
    a3char
    a4char0
    +

  • +
  • newSession () +
    + +
    returns nothing
    In versions KDE 3.5.0 and above only

  • +
  • openFile () +
    + +
    returns (bool)
    In versions KDE 3.5.0 and above only

  • +
  • openFile () +
    + +
    returns (bool)
    In versions less than KDE 3.5.0 only

  • +
  • openURL (url) +
    + +
    returns (bool)
    In versions KDE 3.5.0 and above only
    + +
    ArgumentTypeDefault
    urlKURL
    +

  • +
  • openURL (a0) +
    + +
    returns (bool)
    In versions less than KDE 3.5.0 only
    + +
    ArgumentTypeDefault
    a0KURL
    +

  • +
  • processExited (a0) +
    + +
    returns nothing
    In versions KDE 3.5.0 and above only
    + +
    ArgumentTypeDefault
    a0KProcess
    +

  • +
  • processExited () +
    + +
    returns nothing
    In versions less than KDE 3.5.0 only

  • +
  • receivedData (s) +
    + +
    returns nothing
    In versions KDE 3.5.0 and above only
    + +
    ArgumentTypeDefault
    sQString
    +

  • +
  • receivedData (a0) +
    + +
    returns nothing
    In versions less than KDE 3.5.0 only
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • sendInput (text) +
    + +
    returns nothing
    In versions KDE 3.5.0 and above only
    + +
    ArgumentTypeDefault
    textQString
    +

  • +
  • sendInput (a0) +
    + +
    returns nothing
    In versions less than KDE 3.5.0 only
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • sessionDestroyed () +
    + +
    returns nothing
    In versions KDE 3.5.0 and above only

  • +
  • sessionDestroyed () +
    + +
    returns nothing
    In versions less than KDE 3.5.0 only

  • +
  • setAutoDestroy (a0) +
    + +
    returns nothing
    In versions KDE 3.5.0 and above only
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • setAutoStartShell (a0) +
    + +
    returns nothing
    In versions KDE 3.5.0 and above only
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • showShell () +
    + +
    returns nothing
    In versions KDE 3.5.0 and above only

  • +
  • showShell () +
    + +
    returns nothing
    In versions less than KDE 3.5.0 only

  • +
  • showShellInDir (dir) +
    + +
    returns nothing
    In versions KDE 3.5.0 and above only
    + +
    ArgumentTypeDefault
    dirQString
    +

  • +
  • showShellInDir (a0) +
    + +
    returns nothing
    In versions less than KDE 3.5.0 only
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • slotProcessExited () +
    + +
    returns nothing
    In versions less than KDE 3.5.0 only

  • +
  • slotReceivedData (a0) +
    + +
    returns nothing
    In versions less than KDE 3.5.0 only
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • startProgram (program, args) +
    + +
    returns nothing
    In versions KDE 3.5.0 and above only
    + + +
    ArgumentTypeDefault
    programQString
    argsQStrList
    +

  • +
  • startProgram (a0, a1) +
    + +
    returns nothing
    In versions less than KDE 3.5.0 only
    + + +
    ArgumentTypeDefault
    a0QString
    a1QStrList
    +

  • +
  • updateTitle () +
    + +
    returns nothing
    In versions less than KDE 3.5.0 only

  • +
+ + + diff --git a/doc/classref/kparts/kparts-globals.html b/doc/classref/kparts/kparts-globals.html new file mode 100644 index 0000000..b765aee --- /dev/null +++ b/doc/classref/kparts/kparts-globals.html @@ -0,0 +1,110 @@ + + + + + kparts globals + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

kparts Globals


+
+ + + + + +
Table of contents
Modules
kparts Classes
All Classes
+
+

global methods

    +
  • createReadOnlyPart (a0, a1 = 0, a2 = QString .null, a3 = "KParts.ReadOnlyPart", a4 = QStringList ()) +
    +
    returns (KParts.ReadOnlyPart)
    + + + + + +
    ArgumentTypeDefault
    a0QString
    a1QObject0
    a2QStringQString .null
    a3char"KParts.ReadOnlyPart"
    a4QStringListQStringList ()
    +
    +This is a PyKDE-only function that handles the machinery necessary +to create a KParts::ReadOnlyPart. It executes the following C++ code: + +
    +KParts::ReadOnlyPart *createReadOnlyPart (const QString& lib, QObject *parent,
    +                                          const QString& name, const char *className,
    +                                          const QStringList &args)
    +{
    +   KLibFactory *factory = KLibLoader::self ()->factory ((const char *)lib);
    +   if (factory)
    +           return static_cast<KParts::ReadOnlyPart*> (factory->create (parent,
    +                                              (const char *)name, className, args));
    +       else
    +               return NULL;
    +
    + +Notice that it takes care of creating the KLibFactory for you, and +returns the part cast to type KParts::ReadOnlyPart. The actual +part has a different class (derived from KParts::ReadOnlyPart), +and calls to openURL or openFile will use the part's overloaded +methods. Currently it isn't possible to call KParts::ReadOnlyPart::openURL +if it has been overloaded. + + +Usage: KParts.createReadOnlyPart (lib, parent, name, className, args) + +

  • +
  • createReadWritePart (a0, a1 = 0, a2 = QString .null, a3 = "KParts.ReadWritePart", a4 = QStringList ()) +
    +
    returns (KParts.ReadWritePart)
    + + + + + +
    ArgumentTypeDefault
    a0QString
    a1QObject0
    a2QStringQString .null
    a3char"KParts.ReadWritePart"
    a4QStringListQStringList ()
    +
    +This is a PyKDE-only function that handles the machinery necessary +to create a KParts::ReadWritePart. It executes the following C++ code: + +
    +KParts::ReadWritePart *createReadWritePart (const QString& lib, QObject *parent,
    +                                          const QString& name, const char *className,
    +                                          const QStringList &args)
    +{
    +    KLibFactory *factory = KLibLoader::self ()->factory ((const char *)lib);
    +    if (factory)
    +            return static_cast<KParts::ReadWritePart*> (factory->create (parent,
    +                                               (const char *)name, className, args));
    +        else
    +                return NULL;
    +
    + +Notice that it takes care of creating the KLibFactory for you, and +returns the part cast to type KParts::ReadWritePart. The actual +part has a different class (derived from KParts::ReadWritePart), +and calls to openURL or openFile will use the part's overloaded +methods. Currently it isn't possible to call KParts::ReadWritePart::openURL +if it has been overloaded. + + +Usage: KParts.createReadWritePart (lib, parent, name, className, args) + +

  • +
  • testQMapQCStringInt (dict) +
    +
    returns (QMap),
    + +
    ArgumentTypeDefault
    dictQMap
    +

  • +
+ + + diff --git a/doc/classref/kresources/KRES.ConfigDialog.html b/doc/classref/kresources/KRES.ConfigDialog.html new file mode 100644 index 0000000..be5e221 --- /dev/null +++ b/doc/classref/kresources/KRES.ConfigDialog.html @@ -0,0 +1,76 @@ + + + + + class KRES.ConfigDialog + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KRES.ConfigDialog


+
+ + + + + +
Table of contents
Modules
kresources Classes
All Classes
+
+ + + + + + + + + + +
Modulekresources
ClassKRES.ConfigDialog
InheritsKDialogBase
+

methods

    +
  • ConfigDialog (parent, resourceFamily, resource, name = 0) +
    + +
    returns a ConfigDialog instance
    In versions KDE 3.2.0 and above only
    + + + + +
    ArgumentTypeDefault
    parentQWidget
    resourceFamilyQString
    resourceKRES.Resource
    namechar0
    +

  • +
  • accept () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • setInEditMode (value) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    valuebool
    +

  • +
  • setReadOnly (value) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    valuebool
    +

  • +
  • slotNameChanged (text) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    textQString
    +

  • +
+ + + diff --git a/doc/classref/kresources/KRES.ConfigWidget.html b/doc/classref/kresources/KRES.ConfigWidget.html new file mode 100644 index 0000000..a3ba41a --- /dev/null +++ b/doc/classref/kresources/KRES.ConfigWidget.html @@ -0,0 +1,79 @@ + + + + + class KRES.ConfigWidget + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KRES.ConfigWidget


+
+ + + + + +
Table of contents
Modules
kresources Classes
All Classes
+
+ + + + + + + + + + +
Modulekresources
ClassKRES.ConfigWidget (abstract)
InheritsQWidget
+

methods

    +
  • ConfigWidget (parent = 0, name = 0) +
    + +
    returns a ConfigWidget instance
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    parentQWidget0
    namechar0
    +

  • +
  • loadSettings (resource) = 0 +
    + + +
    returns nothing
    In versions KDE 3.2.0 and above only
    pure virtual
    + +
    ArgumentTypeDefault
    resourceKRES.Resource
    +

  • +
  • saveSettings (resource) = 0 +
    + + +
    returns nothing
    In versions KDE 3.2.0 and above only
    pure virtual
    + +
    ArgumentTypeDefault
    resourceKRES.Resource
    +

  • +
  • setInEditMode (value) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    valuebool
    +

  • +
  • setReadOnly (value) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    valuebool
    +

  • +
+ + + diff --git a/doc/classref/kresources/KRES.Factory.html b/doc/classref/kresources/KRES.Factory.html new file mode 100644 index 0000000..3a3ce44 --- /dev/null +++ b/doc/classref/kresources/KRES.Factory.html @@ -0,0 +1,90 @@ + + + + + class KRES.Factory + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KRES.Factory


+
+ + + + + +
Table of contents
Modules
kresources Classes
All Classes
+
+ + + + + + + + + + +
Modulekresources
ClassKRES.Factory
Inherits
+

methods

    +
  • Factory (resourceFamily) +
    + +
    returns a Factory instance
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    resourceFamilyQString
    +

  • +
  • configWidget (type, parent = 0) +
    + +
    returns (KRES.ConfigWidget)
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    typeQString
    parentQWidget0
    +

  • +
  • resource (type, config) +
    + +
    returns (KRES.Resource)
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    typeQString
    configKConfig
    +

  • +
  • self (resourceFamily) +
    + + +
    returns (KRES.Factory)
    In versions KDE 3.2.0 and above only
    static
    + +
    ArgumentTypeDefault
    resourceFamilyQString
    +

  • +
  • typeDescription (type) +
    + +
    returns (QString)
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    typeQString
    +

  • +
  • typeName (type) +
    + +
    returns (QString)
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    typeQString
    +

  • +
  • typeNames () +
    + +
    returns (QStringList)
    In versions KDE 3.2.0 and above only

  • +
+ + + diff --git a/doc/classref/kresources/KRES.PluginFactoryBase.html b/doc/classref/kresources/KRES.PluginFactoryBase.html new file mode 100644 index 0000000..04ea2d3 --- /dev/null +++ b/doc/classref/kresources/KRES.PluginFactoryBase.html @@ -0,0 +1,67 @@ + + + + + class KRES.PluginFactoryBase + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KRES.PluginFactoryBase


+
+ + + + + +
Table of contents
Modules
kresources Classes
All Classes
+
+ + + + + + + + + + +
Modulekresources
ClassKRES.PluginFactoryBase (abstract)
InheritsKLibFactory
+

methods

    +
  • configWidget (parent) = 0 +
    + + +
    returns (KRES.ConfigWidget)
    In versions KDE 3.2.0 and above only
    pure virtual
    + +
    ArgumentTypeDefault
    parentQWidget
    +

  • +
  • createObject (a0, a1, a2, a3) +
    + +
    returns (QObject)
    In versions KDE 3.2.0 and above only
    + + + + +
    ArgumentTypeDefault
    a0QObject
    a1char
    a2char
    a3QStringList
    +

  • +
  • resource (config) = 0 +
    + + +
    returns (KRES.Resource)
    In versions KDE 3.2.0 and above only
    pure virtual
    + +
    ArgumentTypeDefault
    configKConfig
    +

  • +
+ + + diff --git a/doc/classref/kresources/KRES.Resource.html b/doc/classref/kresources/KRES.Resource.html new file mode 100644 index 0000000..f0e33d4 --- /dev/null +++ b/doc/classref/kresources/KRES.Resource.html @@ -0,0 +1,134 @@ + + + + + class KRES.Resource + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KRES.Resource


+
+ + + + + +
Table of contents
Modules
kresources Classes
All Classes
+
+ + + + + + + + + + +
Modulekresources
ClassKRES.Resource
InheritsQObject
+

methods

    +
  • Resource (config) +
    + +
    returns a Resource instance
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    configKConfig
    +

  • +
  • close () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • doClose () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • doOpen () +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only

  • +
  • dump () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • identifier () +
    + +
    returns (QString)
    In versions KDE 3.2.0 and above only

  • +
  • isActive () +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only

  • +
  • isOpen () +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only

  • +
  • open () +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only

  • +
  • readOnly () +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only

  • +
  • resourceName () +
    + +
    returns (QString)
    In versions KDE 3.2.0 and above only

  • +
  • setActive (active) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    activebool
    +

  • +
  • setIdentifier (identifier) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    identifierQString
    +

  • +
  • setReadOnly (value) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    valuebool
    +

  • +
  • setResourceName (name) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    nameQString
    +

  • +
  • setType (type) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    typeQString
    +

  • +
  • type () +
    + +
    returns (QString)
    In versions KDE 3.2.0 and above only

  • +
  • writeConfig (config) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    configKConfig
    +

  • +
+ + + diff --git a/doc/classref/kresources/KRES.ResourcePageInfo.html b/doc/classref/kresources/KRES.ResourcePageInfo.html new file mode 100644 index 0000000..f7578e2 --- /dev/null +++ b/doc/classref/kresources/KRES.ResourcePageInfo.html @@ -0,0 +1,50 @@ + + + + + class KRES.ResourcePageInfo + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KRES.ResourcePageInfo


+
+ + + + + +
Table of contents
Modules
kresources Classes
All Classes
+
+ + + + + + + + + + +
Modulekresources
ClassKRES.ResourcePageInfo
InheritsKShared
+

methods

    +
  • ResourcePageInfo () +
    + +
    returns a ResourcePageInfo instance
    In versions KDE 3.2.0 and above only

  • +
+

variables

  • +variables + + +
    VariableType
    mConfigKConfig*
    mManagerManager*
+ + + diff --git a/doc/classref/kresources/KRES.SelectDialog.html b/doc/classref/kresources/KRES.SelectDialog.html new file mode 100644 index 0000000..5602f57 --- /dev/null +++ b/doc/classref/kresources/KRES.SelectDialog.html @@ -0,0 +1,70 @@ + + + + + class KRES.SelectDialog + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KRES.SelectDialog


+
+ + + + + +
Table of contents
Modules
kresources Classes
All Classes
+
+ + + + + + + + + + +
Modulekresources
ClassKRES.SelectDialog
Inherits
+

methods

    +
  • SelectDialog (list, parent = 0, name = 0) +
    + +
    returns a SelectDialog instance
    In versions KDE 3.2.0 and above only
    + + + +
    ArgumentTypeDefault
    listQPtrList
    parentQWidget0
    namechar0
    +

  • +
  • SelectDialog (a0) +
    + +
    returns a SelectDialog instance
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0KRES.SelectDialog
    +

  • +
  • getResource (list, parent = 0) +
    + + +
    returns (KRES.Resource)
    In versions KDE 3.2.0 and above only
    static
    + + +
    ArgumentTypeDefault
    listQPtrList
    parentQWidget0
    +

  • +
  • resource () +
    + +
    returns (KRES.Resource)
    In versions KDE 3.2.0 and above only

  • +
+ + + diff --git a/doc/classref/kresources/KRES.html b/doc/classref/kresources/KRES.html new file mode 100644 index 0000000..ade3154 --- /dev/null +++ b/doc/classref/kresources/KRES.html @@ -0,0 +1,41 @@ + + + + + class KRES + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KRES


+
+ + + + + +
Table of contents
Modules
kresources Classes
All Classes
+
+ + + + + + + + + + +
Modulekresources
ClassKRES
Inherits
+

classes

+ + + diff --git a/doc/classref/kresources/index.html b/doc/classref/kresources/index.html new file mode 100644 index 0000000..9896b14 --- /dev/null +++ b/doc/classref/kresources/index.html @@ -0,0 +1,42 @@ + + + + + module kresources + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

kresources Class Index


+
+ + + + +
Table of contents
Modules
All Classes
+
+ +
+ + + + +
KRES - KRES.ConfigWidget
KRES
KRES.ConfigDialog
KRES.ConfigWidget
+ + + + +
KRES.Factory - KRES.Resource
KRES.Factory
KRES.PluginFactoryBase
KRES.Resource
+ + + +
KRES.ResourcePageInfo - KRES.SelectDialog
KRES.ResourcePageInfo
KRES.SelectDialog
+ + diff --git a/doc/classref/kspell/KDictSpellingHighlighter.html b/doc/classref/kspell/KDictSpellingHighlighter.html new file mode 100644 index 0000000..65a4540 --- /dev/null +++ b/doc/classref/kspell/KDictSpellingHighlighter.html @@ -0,0 +1,168 @@ + + + + + class KDictSpellingHighlighter + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KDictSpellingHighlighter


+
+ + + + + +
Table of contents
Modules
kspell Classes
All Classes
+
+ + + + + + + + + + +
Modulekspell
ClassKDictSpellingHighlighter
InheritsQObject, KSpellingHighlighter
+

methods

    +
  • KDictSpellingHighlighter (textEdit, spellCheckingActive = 1, autoEnable = 1, spellColor = Qt .red, colorQuoting = 0, QuoteColor0 = Qt .black, QuoteColor1 = QColor (0x00 ,0x80 ,0x00 ), QuoteColor2 = QColor (0x00 ,0x70 ,0x00 ), QuoteColor3 = QColor (0x00 ,0x60 ,0x00 ), spellConfig = 0) +
    + +
    returns a KDictSpellingHighlighter instance
    In versions KDE 3.2.0 and above only
    + + + + + + + + + + +
    ArgumentTypeDefault
    textEditQTextEdit
    spellCheckingActivebool1
    autoEnablebool1
    spellColorQColorQt .red
    colorQuotingbool0
    QuoteColor0QColorQt .black
    QuoteColor1QColorQColor (0x00 ,0x80 ,0x00 )
    QuoteColor2QColorQColor (0x00 ,0x70 ,0x00 )
    QuoteColor3QColorQColor (0x00 ,0x60 ,0x00 )
    spellConfigKSpellConfig0
    +

  • +
  • activeChanged (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • automatic () +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only

  • +
  • dictionaryChanged () +
    + + +
    returns nothing
    In versions KDE 3.2.0 and above only
    static

  • +
  • eventFilter (o, e) +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    oQObject
    eQEvent
    +

  • +
  • isActive () +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only

  • +
  • isMisspelled (word) +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    wordQString
    +

  • +
  • newSuggestions (originalword, suggestions, pos) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + + + +
    ArgumentTypeDefault
    originalwordQString
    suggestionsQStringList
    posuint
    +

  • +
  • restartBackgroundSpellCheck () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • setActive (active) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    activebool
    +

  • +
  • setAutomatic (automatic) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    automaticbool
    +

  • +
  • slotAutoDetection () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • slotCorrected (originalWord, a0, a1) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + + + +
    ArgumentTypeDefault
    originalWordQString
    a0QString
    a1uint
    +

  • +
  • slotDictionaryChanged () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • slotKSpellNotResponding () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • slotLocalSpellConfigChanged () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • slotMisspelling (originalWord, suggestions, pos) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + + + +
    ArgumentTypeDefault
    originalWordQString
    suggestionsQStringList
    posuint
    +

  • +
  • slotRehighlight () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • slotSpellReady (spell) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    spellKSpell
    +

  • +
  • spellKey () +
    + +
    returns (QString)
    In versions KDE 3.2.0 and above only

  • +
+ + + diff --git a/doc/classref/kspell/KSpell.html b/doc/classref/kspell/KSpell.html new file mode 100644 index 0000000..9f013a3 --- /dev/null +++ b/doc/classref/kspell/KSpell.html @@ -0,0 +1,408 @@ + + + + + class KSpell + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KSpell


+
+ + + + + +
Table of contents
Modules
kspell Classes
All Classes
+
+ + + + + + + + + + +
Modulekspell
ClassKSpell
InheritsQObject
+

enums

    +
  • SpellerType = {Text, HTML, TeX, Nroff +}
  • spellStatus = {Starting, Running, Cleaning, Finished, Error, Crashed, FinishedNoMisspellingsEncountered +}
  • spellStatus = {Starting, Running, Cleaning, Finished, Error, Crashed +}
+

methods

    +
  • KSpell (parent, caption, receiver, slot, kcs = 0, progressbar = 1, modal = 0) +
    +
    returns a KSpell instance
    + + + + + + + +
    ArgumentTypeDefault
    parentQWidget
    captionQString
    receiverQObject
    slotchar
    kcsKSpellConfig0
    progressbarbool1
    modalbool0
    +

  • +
  • KSpell (parent, caption, receiver, slot, kcs, progressbar, modal, type) +
    + +
    returns a KSpell instance
    In versions KDE 3.2.0 and above only
    + + + + + + + + +
    ArgumentTypeDefault
    parentQWidget
    captionQString
    receiverQObject
    slotchar
    kcsKSpellConfig
    progressbarbool
    modalbool
    typeKSpell.SpellerType
    +

  • +
  • KSpell2 (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KProcIO
    +

  • +
  • addPersonal (word) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    wordQString
    +

  • +
  • addword (originalword) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    originalwordQString
    +

  • +
  • check (_buffer, usedialog = 1) +
    +
    returns (bool)
    + + +
    ArgumentTypeDefault
    _bufferQString
    usedialogbool1
    +

  • +
  • check2 (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KProcIO
    +

  • +
  • check3 () +
    +
    returns nothing

  • +
  • checkList (_wordlist, usedialog = 1) +
    +
    returns (bool)
    + + +
    ArgumentTypeDefault
    _wordlistQStringList
    usedialogbool1
    +

  • +
  • checkList2 () +
    +
    returns nothing

  • +
  • checkList3a (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KProcIO
    +

  • +
  • checkList4 () +
    +
    returns nothing

  • +
  • checkListReplaceCurrent () +
    +
    returns nothing

  • +
  • checkNext () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • checkWord (_buffer, usedialog = 0) +
    +
    returns (bool)
    + + +
    ArgumentTypeDefault
    _bufferQString
    usedialogbool0
    +

  • +
  • checkWord (buffer, _usedialog, suggest) +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    + + + +
    ArgumentTypeDefault
    bufferQString
    _usedialogbool
    suggestbool
    +

  • +
  • checkWord2 (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KProcIO
    +

  • +
  • checkWord3 () +
    +
    returns nothing

  • +
  • cleanFputs (s, appendCR = 1) +
    +
    returns (bool)
    + + +
    ArgumentTypeDefault
    sQString
    appendCRbool1
    +

  • +
  • cleanFputsWord (s, appendCR = 1) +
    +
    returns (bool)
    + + +
    ArgumentTypeDefault
    sQString
    appendCRbool1
    +

  • +
  • cleanUp () +
    +
    returns nothing

  • +
  • corrected (originalword, newword, pos) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    originalwordQString
    newwordQString
    posuint
    +

  • +
  • death () +
    +
    returns nothing

  • +
  • dialog (word, sugg, _slot) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    wordQString
    suggQStringList
    _slotchar
    +

  • +
  • dialog2 (dlgresult) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    dlgresultint
    +

  • +
  • dialog3 () +
    +
    returns nothing

  • +
  • dlgResult () +
    +
    returns (int)

  • +
  • done (buffer) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    bufferQString
    +

  • +
  • done (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • emitDeath () +
    +
    returns nothing

  • +
  • emitProgress () +
    +
    returns nothing

  • +
  • funnyWord (word) +
    +
    returns (QString)
    + +
    ArgumentTypeDefault
    wordQString
    +

  • +
  • heightDlg () +
    +
    returns (int)

  • +
  • hide () +
    +
    returns nothing

  • +
  • ignore (word) +
    +
    returns (bool)
    + +
    ArgumentTypeDefault
    wordQString
    +

  • +
  • ignoreall (originalword) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    originalwordQString
    +

  • +
  • ignoreword (originalword) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    originalwordQString
    +

  • +
  • initialize (_parent, _caption, slot, _ksc, _progressbar, _modal, type) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + + + + + + + +
    ArgumentTypeDefault
    _parentQWidget
    _captionQString
    slotSLOT (Python callable)
    _kscKSpellConfig
    _progressbarbool
    _modalbool
    typeKSpell.SpellerType
    +

  • +
  • intermediateBuffer () +
    +
    returns (QString)

  • +
  • ispellErrors (a0, a1, a2) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    a0KProcess
    a1char
    a2int
    +

  • +
  • ispellExit (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KProcess
    +

  • +
  • ksConfig () +
    +
    returns (KSpellConfig)

  • +
  • lastPosition () +
    +
    returns (int)

  • +
  • misspelling (originalword, suggestions, pos) +
    +
    returns nothing
    + + + +
    ArgumentTypeDefault
    originalwordQString
    suggestionsQStringList
    posuint
    +

  • +
  • modalCheck (text) +
    + +
    returns (int)
    static
    + +
    ArgumentTypeDefault
    textQString
    +

  • +
  • modalCheck (text, kcs) +
    + +
    returns (int)
    static
    + + +
    ArgumentTypeDefault
    textQString
    kcsKSpellConfig
    +

  • +
  • moveDlg (x, y) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    xint
    yint
    +

  • +
  • parseOneResponse (_buffer, word, sugg) +
    +
    returns (int)
    + + + +
    ArgumentTypeDefault
    _bufferQString
    wordQString
    suggQStringList
    +

  • +
  • progress (i) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    iuint
    +

  • +
  • ready (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0KSpell
    +

  • +
  • replaceall (origword, replacement) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + + +
    ArgumentTypeDefault
    origwordQString
    replacementQString
    +

  • +
  • replacement () +
    +
    returns (QString)

  • +
  • setAutoDelete (_autoDelete) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    _autoDeletebool
    +

  • +
  • setIgnoreTitleCase (b) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    bbool
    +

  • +
  • setIgnoreUpperWords (b) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    bbool
    +

  • +
  • setProgressResolution (res) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    resuint
    +

  • +
  • setUpDialog (reallyusedialogbox = 1) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    reallyusedialogboxbool1
    +

  • +
  • slotStopCancel (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • startIspell () +
    +
    returns nothing

  • +
  • status () +
    +
    returns (spellStatus)

  • +
  • suggestWord (a0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    a0KProcIO
    +

  • +
  • suggestions () +
    +
    returns (QStringList)

  • +
  • widthDlg () +
    +
    returns (int)

  • +
  • writePersonalDictionary () +
    +
    returns (bool)

  • +
+ + + diff --git a/doc/classref/kspell/KSpellConfig.html b/doc/classref/kspell/KSpellConfig.html new file mode 100644 index 0000000..e821792 --- /dev/null +++ b/doc/classref/kspell/KSpellConfig.html @@ -0,0 +1,211 @@ + + + + + class KSpellConfig + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KSpellConfig


+
+ + + + + +
Table of contents
Modules
kspell Classes
All Classes
+
+ + + + + + + + + + +
Modulekspell
ClassKSpellConfig
InheritsQWidget
+

methods

    +
  • KSpellConfig (parent = 0, name = 0, spellConfig = 0, addHelpButton = 1) +
    +
    returns a KSpellConfig instance
    + + + + +
    ArgumentTypeDefault
    parentQWidget0
    namechar0
    spellConfigKSpellConfig0
    addHelpButtonbool1
    +

  • +
  • KSpellConfig (a0) +
    +
    returns a KSpellConfig instance
    + +
    ArgumentTypeDefault
    a0KSpellConfig
    +

  • +
  • activateHelp () +
    +
    returns nothing

  • +
  • client () +
    +
    returns (int)

  • +
  • configChanged () +
    +
    returns nothing

  • +
  • dictFromList () +
    +
    returns (bool)

  • +
  • dictionary () +
    +
    returns (QString)

  • +
  • encoding () +
    +
    returns (int)

  • +
  • fillDicts (box, dictionaries = 0) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    boxQComboBox
    dictionariesQStringList0
    +

  • +
  • fillInDialog () +
    +
    returns nothing

  • +
  • ignoreList () +
    +
    returns (QStringList)

  • +
  • interpret (fname, lname, hname) +
    +
    returns (bool)
    + + + +
    ArgumentTypeDefault
    fnameQString
    lnameQString
    hnameQString
    +

  • +
  • noRootAffix () +
    +
    returns (bool)

  • +
  • readGlobalSettings () +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only

  • +
  • readGlobalSettings () +
    + +
    returns (bool)
    In versions less than KDE 3.2.0 only

  • +
  • replaceAllList () +
    + +
    returns (QStringList)
    In versions KDE 3.1.0 and above only

  • +
  • runTogether () +
    +
    returns (bool)

  • +
  • sChangeClient (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • sChangeEncoding (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • sDictionary (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • sHelp () +
    +
    returns nothing

  • +
  • sNoAff (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • sPathDictionary (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • sRunTogether (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • sSetDictionary (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • setClient (client) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    clientint
    +

  • +
  • setDictFromList (dfl) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    dflbool
    +

  • +
  • setDictionary (qs) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    qsQString
    +

  • +
  • setEncoding (enctype) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    enctypeint
    +

  • +
  • setIgnoreList (_ignorelist) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    _ignorelistQStringList
    +

  • +
  • setNoRootAffix (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • setReplaceAllList (_replaceAllList) +
    + +
    returns nothing
    In versions KDE 3.1.0 and above only
    + +
    ArgumentTypeDefault
    _replaceAllListQStringList
    +

  • +
  • setRunTogether (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • writeGlobalSettings () +
    +
    returns (bool)

  • +
+ + + diff --git a/doc/classref/kspell/KSpellDlg.html b/doc/classref/kspell/KSpellDlg.html new file mode 100644 index 0000000..33a87f3 --- /dev/null +++ b/doc/classref/kspell/KSpellDlg.html @@ -0,0 +1,158 @@ + + + + + class KSpellDlg + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KSpellDlg


+
+ + + + + +
Table of contents
Modules
kspell Classes
All Classes
+
+ + + + + + + + + + +
Modulekspell
ClassKSpellDlg
InheritsKDialogBase
+

methods

    +
  • KSpellDlg (parent, name, _progressbar = 0, _modal = 0) +
    +
    returns a KSpellDlg instance
    + + + + +
    ArgumentTypeDefault
    parentQWidget
    namechar
    _progressbarbool0
    _modalbool0
    +

  • +
  • add () +
    +
    returns nothing

  • +
  • cancel () +
    +
    returns nothing

  • +
  • closeEvent (e) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    eQCloseEvent
    +

  • +
  • command (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • done (i) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    iint
    +

  • +
  • highlighted (a0) +
    + +
    returns nothing
    In versions less than KDE 3.2.0 only
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • ignore () +
    +
    returns nothing

  • +
  • ignoreAll () +
    +
    returns nothing

  • +
  • init (_word, _sugg) +
    +
    returns nothing
    + + +
    ArgumentTypeDefault
    _wordQString
    _suggQStringList
    +

  • +
  • init (_word, _sugg, context) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + + + +
    ArgumentTypeDefault
    _wordQString
    _suggQStringList
    contextQString
    +

  • +
  • ready (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • replace () +
    +
    returns nothing

  • +
  • replaceAll () +
    +
    returns nothing

  • +
  • replacement () +
    +
    returns (QString)

  • +
  • selected (a0) +
    + +
    returns nothing
    In versions less than KDE 3.2.0 only
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • slotConfigChanged () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • slotProgress (p) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    puint
    +

  • +
  • slotSelectionChanged (item) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    itemQListViewItem
    +

  • +
  • standby () +
    +
    returns nothing

  • +
  • stop () +
    +
    returns nothing

  • +
  • suggest () +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only

  • +
  • textChanged (a0) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
+ + + diff --git a/doc/classref/kspell/KSpellingHighlighter.html b/doc/classref/kspell/KSpellingHighlighter.html new file mode 100644 index 0000000..91d3921 --- /dev/null +++ b/doc/classref/kspell/KSpellingHighlighter.html @@ -0,0 +1,86 @@ + + + + + class KSpellingHighlighter + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KSpellingHighlighter


+
+ + + + + +
Table of contents
Modules
kspell Classes
All Classes
+
+ + + + + + + + + + +
Modulekspell
ClassKSpellingHighlighter (abstract)
InheritsKSyntaxHighlighter
+

methods

    +
  • KSpellingHighlighter (textEdit, spellColor = Qt .red, colorQuoting = 0, QuoteColor0 = Qt .black, QuoteColor1 = QColor (0x00 ,0x80 ,0x00 ), QuoteColor2 = QColor (0x00 ,0x80 ,0x00 ), QuoteColor3 = QColor (0x00 ,0x80 ,0x00 )) +
    + +
    returns a KSpellingHighlighter instance
    In versions KDE 3.2.0 and above only
    + + + + + + + +
    ArgumentTypeDefault
    textEditQTextEdit
    spellColorQColorQt .red
    colorQuotingbool0
    QuoteColor0QColorQt .black
    QuoteColor1QColorQColor (0x00 ,0x80 ,0x00 )
    QuoteColor2QColorQColor (0x00 ,0x80 ,0x00 )
    QuoteColor3QColorQColor (0x00 ,0x80 ,0x00 )
    +

  • +
  • highlightParagraph (text, endStateOfLastPara) +
    + +
    returns (int)
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    textQString
    endStateOfLastParaint
    +

  • +
  • intraWordEditing () +
    + +
    returns (bool)
    In versions KDE 3.2.0 and above only

  • +
  • isMisspelled (word) = 0 +
    + + +
    returns (bool)
    In versions KDE 3.2.0 and above only
    pure virtual
    + +
    ArgumentTypeDefault
    wordQString
    +

  • +
  • personalWords () +
    + + +
    returns (QStringList)
    In versions KDE 3.2.0 and above only
    static

  • +
  • setIntraWordEditing (editing) +
    + +
    returns nothing
    In versions KDE 3.2.0 and above only
    + +
    ArgumentTypeDefault
    editingbool
    +

  • +
+ + + diff --git a/doc/classref/kspell/KSyntaxHighlighter.html b/doc/classref/kspell/KSyntaxHighlighter.html new file mode 100644 index 0000000..ba00bf1 --- /dev/null +++ b/doc/classref/kspell/KSyntaxHighlighter.html @@ -0,0 +1,65 @@ + + + + + class KSyntaxHighlighter + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KSyntaxHighlighter


+
+ + + + + +
Table of contents
Modules
kspell Classes
All Classes
+
+ + + + + + + + + + +
Modulekspell
ClassKSyntaxHighlighter
InheritsQSyntaxHighlighter
+

enums

    +
  • SyntaxMode = {PlainTextMode, RichTextMode +}
+

methods

    +
  • KSyntaxHighlighter (textEdit, colorQuoting = 0, QuoteColor0 = Qt .black, QuoteColor1 = QColor (0x00 ,0x80 ,0x00 ), QuoteColor2 = QColor (0x00 ,0x80 ,0x00 ), QuoteColor3 = QColor (0x00 ,0x80 ,0x00 ), mode = PlainTextMode) +
    + +
    returns a KSyntaxHighlighter instance
    In versions KDE 3.2.0 and above only
    + + + + + + + +
    ArgumentTypeDefault
    textEditQTextEdit
    colorQuotingbool0
    QuoteColor0QColorQt .black
    QuoteColor1QColorQColor (0x00 ,0x80 ,0x00 )
    QuoteColor2QColorQColor (0x00 ,0x80 ,0x00 )
    QuoteColor3QColorQColor (0x00 ,0x80 ,0x00 )
    modeKSyntaxHighlighter.SyntaxModePlainTextMode
    +

  • +
  • highlightParagraph (text, endStateOfLastPara) +
    + +
    returns (int)
    In versions KDE 3.2.0 and above only
    + + +
    ArgumentTypeDefault
    textQString
    endStateOfLastParaint
    +

  • +
+ + + diff --git a/doc/classref/kspell/index.html b/doc/classref/kspell/index.html new file mode 100644 index 0000000..e9487c5 --- /dev/null +++ b/doc/classref/kspell/index.html @@ -0,0 +1,41 @@ + + + + + module kspell + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

kspell Class Index


+
+ + + + +
Table of contents
Modules
All Classes
+
+ kspell Global and Namespace members

+ +
+ + + +
KDictSpellingHighlighter - KSpell
KDictSpellingHighlighter
KSpell
+ + + +
KSpellConfig - KSpellDlg
KSpellConfig
KSpellDlg
+ + + +
KSpellingHighlighter - KSyntaxHighlighter
KSpellingHighlighter
KSyntaxHighlighter
+ + diff --git a/doc/classref/kspell/kspell-globals.html b/doc/classref/kspell/kspell-globals.html new file mode 100644 index 0000000..906321c --- /dev/null +++ b/doc/classref/kspell/kspell-globals.html @@ -0,0 +1,38 @@ + + + + + kspell globals + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

kspell Globals


+
+ + + + + +
Table of contents
Modules
kspell Classes
All Classes
+
+

enums

    +
  • Encoding = {KS_E_ASCII, KS_E_LATIN1, KS_E_LATIN2, KS_E_LATIN3, KS_E_LATIN4, KS_E_LATIN5, KS_E_LATIN7, KS_E_LATIN8, KS_E_LATIN9, KS_E_LATIN13, KS_E_LATIN15, KS_E_UTF8, KS_E_KOI8R, KS_E_KOI8U, KS_E_CP1251, KS_E_CP1255 +}
  • Encoding = {KS_E_ASCII, KS_E_LATIN1, KS_E_LATIN2, KS_E_LATIN3, KS_E_LATIN4, KS_E_LATIN5, KS_E_LATIN7, KS_E_LATIN8, KS_E_LATIN9, KS_E_LATIN13, KS_E_LATIN15, KS_E_UTF8, KS_E_KOI8R, KS_E_KOI8U, KS_E_CP1251 +}
  • Encoding = {KS_E_ASCII, KS_E_LATIN1, KS_E_LATIN2, KS_E_LATIN3, KS_E_LATIN4, KS_E_LATIN5, KS_E_LATIN7, KS_E_LATIN8, KS_E_LATIN9, KS_E_LATIN15, KS_E_UTF8, KS_E_KOI8R, KS_E_KOI8U, KS_E_CP1251, KS_E_LATIN13 +}
  • KS_RESULT = {KS_CANCEL, KS_REPLACE, KS_REPLACEALL, KS_IGNORE, KS_IGNOREALL, KS_ADD, KS_STOP, KS_SUGGEST, KS_CONFIG +}
  • KS_RESULT = {KS_CANCEL, KS_REPLACE, KS_REPLACEALL, KS_IGNORE, KS_IGNOREALL, KS_ADD, KS_STOP +}
  • KSpellClients = {KS_CLIENT_ISPELL, KS_CLIENT_ASPELL, KS_CLIENT_HSPELL, KS_CLIENT_ZEMBEREK +}
  • KSpellClients = {KS_CLIENT_ISPELL, KS_CLIENT_ASPELL, KS_CLIENT_HSPELL +}
  • KSpellClients = {KS_CLIENT_ISPELL, KS_CLIENT_ASPELL +}
+ + + diff --git a/doc/classref/kutils/KCModuleContainer.html b/doc/classref/kutils/KCModuleContainer.html new file mode 100644 index 0000000..78e2b72 --- /dev/null +++ b/doc/classref/kutils/KCModuleContainer.html @@ -0,0 +1,74 @@ + + + + + class KCModuleContainer + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KCModuleContainer


+
+ + + + +
Table of contents
Modules
kutils Classes
All Classes
+
+ + + + + + + + + + +
Modulekutils
ClassKCModuleContainer
InheritsKCModule
+

methods

    +
  • KCModuleContainer (parent, name, mods) +
    +
    returns a KCModuleContainer instance
    + + + +
    ArgumentTypeDefault
    parentQWidget
    namechar
    modsQStringList
    +

  • +
  • KCModuleContainer (parent, name, mods = QString ()) +
    +
    returns a KCModuleContainer instance
    + + + +
    ArgumentTypeDefault
    parentQWidget
    namechar
    modsQStringQString ()
    +

  • +
  • addModule (module) +
    +
    returns nothing
    + +
    ArgumentTypeDefault
    moduleQString
    +

  • +
  • defaults () +
    +
    returns nothing

  • +
  • finalize () +
    +
    returns nothing

  • +
  • load () +
    +
    returns nothing

  • +
  • save () +
    +
    returns nothing

  • +
+ + + diff --git a/doc/classref/kutils/KCModuleInfo.html b/doc/classref/kutils/KCModuleInfo.html new file mode 100644 index 0000000..8b57498 --- /dev/null +++ b/doc/classref/kutils/KCModuleInfo.html @@ -0,0 +1,219 @@ + + + + + class KCModuleInfo + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KCModuleInfo


+
+ + + + + +
Table of contents
Modules
kutils Classes
All Classes
+
+ + + + + + + + + + +
Modulekutils
ClassKCModuleInfo
Inherits
+

methods

    +
  • KCModuleInfo (desktopFile) +
    + +
    returns a KCModuleInfo instance
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    desktopFileQString
    +

  • +
  • KCModuleInfo (moduleInfo) +
    + +
    returns a KCModuleInfo instance
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    moduleInfoKService.Ptr
    +

  • +
  • KCModuleInfo (rhs) +
    + +
    returns a KCModuleInfo instance
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    rhsKCModuleInfo
    +

  • +
  • KCModuleInfo () +
    + +
    returns a KCModuleInfo instance
    In versions KDE 3.4.0 and above only

  • +
  • comment () +
    + +
    returns (QString)
    In versions KDE 3.3.0 and above only

  • +
  • docPath () +
    + +
    returns (QString)
    In versions KDE 3.3.0 and above only

  • +
  • factoryName () +
    + +
    returns (QString)
    In versions KDE 3.4.0 and above only

  • +
  • fileName () +
    + +
    returns (QString)
    In versions KDE 3.3.0 and above only

  • +
  • handle () +
    + +
    returns (QString)
    In versions KDE 3.3.0 and above only

  • +
  • icon () +
    + +
    returns (QString)
    In versions KDE 3.3.0 and above only

  • +
  • isHiddenByDefault () +
    + +
    returns (bool)
    In versions KDE 3.3.0 and above only

  • +
  • keywords () +
    + +
    returns (QStringList)
    In versions KDE 3.3.0 and above only

  • +
  • library () +
    + +
    returns (QString)
    In versions KDE 3.3.0 and above only

  • +
  • loadAll () +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only

  • +
  • moduleName () +
    + +
    returns (QString)
    In versions KDE 3.3.0 and above only

  • +
  • needsRootPrivileges () +
    + +
    returns (bool)
    In versions KDE 3.3.0 and above only

  • +
  • needsTest () +
    + +
    returns (bool)
    In versions KDE 3.4.0 and above only

  • +
  • service () +
    + +
    returns (KService.Ptr)
    In versions KDE 3.3.0 and above only

  • +
  • setComment (comment) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    commentQString
    +

  • +
  • setDocPath (p) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    pQString
    +

  • +
  • setHandle (handle) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    handleQString
    +

  • +
  • setIcon (icon) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    iconQString
    +

  • +
  • setIsHiddenByDefault (isHiddenByDefault) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    isHiddenByDefaultbool
    +

  • +
  • setKeywords (keyword) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    keywordQStringList
    +

  • +
  • setLibrary (lib) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    libQString
    +

  • +
  • setName (name) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    nameQString
    +

  • +
  • setNeedsRootPrivileges (needsRootPrivileges) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    needsRootPrivilegesbool
    +

  • +
  • setNeedsTest (val) +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only
    + +
    ArgumentTypeDefault
    valbool
    +

  • +
  • setWeight (weight) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    weightint
    +

  • +
  • weight () +
    + +
    returns (int)
    In versions KDE 3.3.0 and above only

  • +
+

operators

    +
  • operator != (a0) +
    + +
    returns (bool)
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    a0KCModuleInfo
    +

  • +
  • operator == (a0) +
    + +
    returns (bool)
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    a0KCModuleInfo
    +

  • +
+ + + diff --git a/doc/classref/kutils/KCModuleLoader.html b/doc/classref/kutils/KCModuleLoader.html new file mode 100644 index 0000000..a96b45a --- /dev/null +++ b/doc/classref/kutils/KCModuleLoader.html @@ -0,0 +1,135 @@ + + + + + class KCModuleLoader + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KCModuleLoader


+
+ + + + + +
Table of contents
Modules
kutils Classes
All Classes
+
+ + + + + + + + + + +
Modulekutils
ClassKCModuleLoader
Inherits
+

enums

    +
  • ErrorReporting = {None, Inline, Dialog, Both +}
+

methods

    +
  • loadModule (module, withFallback = 1, parent = 0, name = 0, args = QStringList ()) +
    + + +
    returns (KCModule)
    In versions KDE 3.3.0 and above only
    static
    + + + + + +
    ArgumentTypeDefault
    moduleKCModuleInfo
    withFallbackbool1
    parentQWidget0
    namechar0
    argsQStringListQStringList ()
    +

  • +
  • loadModule (module, parent = 0, name = 0, args = QStringList ()) +
    + + +
    returns (KCModule)
    In versions KDE 3.3.0 and above only
    static
    + + + + +
    ArgumentTypeDefault
    moduleQString
    parentQWidget0
    namechar0
    argsQStringListQStringList ()
    +

  • +
  • loadModule (module, report, withFallback = 1, parent = 0, name = 0, args = QStringList ()) +
    + + +
    returns (KCModule)
    In versions KDE 3.4.0 and above only
    static
    + + + + + + +
    ArgumentTypeDefault
    moduleKCModuleInfo
    reportKCModuleLoader.ErrorReporting
    withFallbackbool1
    parentQWidget0
    namechar0
    argsQStringListQStringList ()
    +

  • +
  • loadModule (module, report, parent = 0, name = 0, args = QStringList ()) +
    + + +
    returns (KCModule)
    In versions KDE 3.4.0 and above only
    static
    + + + + + +
    ArgumentTypeDefault
    moduleQString
    reportKCModuleLoader.ErrorReporting
    parentQWidget0
    namechar0
    argsQStringListQStringList ()
    +

  • +
  • reportError (report, text, details, parent) +
    + + +
    returns (KCModule)
    In versions KDE 3.4.0 and above only
    static
    + + + + +
    ArgumentTypeDefault
    reportKCModuleLoader.ErrorReporting
    textQString
    detailsQString
    parentQWidget
    +

  • +
  • showLastLoaderError (parent) +
    + + +
    returns nothing
    In versions KDE 3.3.0 and above only
    static
    + +
    ArgumentTypeDefault
    parentQWidget
    +

  • +
  • testModule (module) +
    + + +
    returns (bool)
    In versions KDE 3.4.0 and above only
    static
    + +
    ArgumentTypeDefault
    moduleQString
    +

  • +
  • testModule (module) +
    + + +
    returns (bool)
    In versions KDE 3.4.0 and above only
    static
    + +
    ArgumentTypeDefault
    moduleKCModuleInfo
    +

  • +
  • unloadModule (mod) +
    + + +
    returns nothing
    In versions KDE 3.3.0 and above only
    static
    + +
    ArgumentTypeDefault
    modKCModuleInfo
    +

  • +
+ + + diff --git a/doc/classref/kutils/KCModuleProxy.html b/doc/classref/kutils/KCModuleProxy.html new file mode 100644 index 0000000..2a8ceaa --- /dev/null +++ b/doc/classref/kutils/KCModuleProxy.html @@ -0,0 +1,182 @@ + + + + + class KCModuleProxy + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KCModuleProxy


+
+ + + + + +
Table of contents
Modules
kutils Classes
All Classes
+
+ + + + + + + + + + +
Modulekutils
ClassKCModuleProxy
InheritsQWidget
+

methods

    +
  • KCModuleProxy (info, withFallback = 0, parent = 0, name = 0, args = QStringList ()) +
    + +
    returns a KCModuleProxy instance
    In versions KDE 3.3.0 and above only
    + + + + + +
    ArgumentTypeDefault
    infoKCModuleInfo
    withFallbackbool0
    parentQWidget0
    namechar0
    argsQStringListQStringList ()
    +

  • +
  • KCModuleProxy (serviceName, withFallback = 1, parent = 0, name = 0, args = QStringList ()) +
    + +
    returns a KCModuleProxy instance
    In versions KDE 3.4.0 and above only
    + + + + + +
    ArgumentTypeDefault
    serviceNameQString
    withFallbackbool1
    parentQWidget0
    namechar0
    argsQStringListQStringList ()
    +

  • +
  • KCModuleProxy (service, withFallback = 1, parent = 0, name = 0, args = QStringList ()) +
    + +
    returns a KCModuleProxy instance
    In versions KDE 3.4.0 and above only
    + + + + + +
    ArgumentTypeDefault
    serviceKService.Ptr
    withFallbackbool1
    parentQWidget0
    namechar0
    argsQStringListQStringList ()
    +

  • +
  • aboutData () +
    + +
    returns (KAboutData)
    In versions KDE 3.3.0 and above only

  • +
  • buttons () +
    + +
    returns (int)
    In versions KDE 3.3.0 and above only

  • +
  • changed () +
    + +
    returns (bool)
    In versions KDE 3.3.0 and above only

  • +
  • changed (state) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    statebool
    +

  • +
  • changed (mod) +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only
    + +
    ArgumentTypeDefault
    modKCModuleProxy
    +

  • +
  • childClosed () +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only

  • +
  • dcopName () +
    + +
    returns (QCString)
    In versions KDE 3.4.0 and above only

  • +
  • defaults () +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only

  • +
  • defaults () +
    + +
    returns nothing
    In versions less than KDE 3.4.0 only

  • +
  • deleteClient () +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only

  • +
  • emitQuickHelpChanged () +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only

  • +
  • init (info) +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only
    + +
    ArgumentTypeDefault
    infoKCModuleInfo
    +

  • +
  • instance () +
    + +
    returns (KInstance)
    In versions KDE 3.3.0 and above only

  • +
  • load () +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only

  • +
  • moduleInfo () +
    + +
    returns (KCModuleInfo)
    In versions KDE 3.3.0 and above only

  • +
  • quickHelp () +
    + +
    returns (QString)
    In versions KDE 3.3.0 and above only

  • +
  • quickHelpChanged () +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only

  • +
  • realModule () +
    + +
    returns (KCModule)
    In versions KDE 3.3.0 and above only

  • +
  • rootMode () +
    + +
    returns (bool)
    In versions KDE 3.4.0 and above only

  • +
  • rootOnlyMsg () +
    + +
    returns (QString)
    In versions KDE 3.3.0 and above only

  • +
  • runAsRoot () +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only

  • +
  • save () +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only

  • +
  • showEvent (a0) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    a0QShowEvent
    +

  • +
  • useRootOnlyMsg () +
    + +
    returns (bool)
    In versions KDE 3.3.0 and above only

  • +
+ + + diff --git a/doc/classref/kutils/KCMultiDialog.html b/doc/classref/kutils/KCMultiDialog.html new file mode 100644 index 0000000..9e4863d --- /dev/null +++ b/doc/classref/kutils/KCMultiDialog.html @@ -0,0 +1,135 @@ + + + + + class KCMultiDialog + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KCMultiDialog


+
+ + + + + +
Table of contents
Modules
kutils Classes
All Classes
+
+ + + + + + + + + + +
Modulekutils
ClassKCMultiDialog
InheritsKDialogBase
+

methods

    +
  • KCMultiDialog (parent = 0, name = 0, modal = 0) +
    + +
    returns a KCMultiDialog instance
    In versions KDE 3.3.0 and above only
    + + + +
    ArgumentTypeDefault
    parentQWidget0
    namechar0
    modalbool0
    +

  • +
  • KCMultiDialog (dialogFace, caption, parent = 0, name = 0, modal = 0) +
    + +
    returns a KCMultiDialog instance
    In versions KDE 3.3.0 and above only
    + + + + + +
    ArgumentTypeDefault
    dialogFaceint
    captionQString
    parentQWidget0
    namechar0
    modalbool0
    +

  • +
  • KCMultiDialog (dialogFace, user2, user3 = KGuiItem (), buttonMask = User2, caption = i18n ("Configure" ), parent = 0, name = 0, modal = 0) +
    + +
    returns a KCMultiDialog instance
    In versions KDE 3.3.0 and above only
    + + + + + + + + +
    ArgumentTypeDefault
    dialogFaceint
    user2KGuiItem
    user3KGuiItemKGuiItem ()
    buttonMaskintUser2
    captionQStringi18n ("Configure" )
    parentQWidget0
    namechar0
    modalbool0
    +

  • +
  • addModule (module, withfallback = 1) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + + +
    ArgumentTypeDefault
    moduleQString
    withfallbackbool1
    +

  • +
  • addModule (moduleinfo, parentmodulenames = QStringList (), withfallback = 0) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + + + +
    ArgumentTypeDefault
    moduleinfoKCModuleInfo
    parentmodulenamesQStringListQStringList ()
    withfallbackbool0
    +

  • +
  • apply () +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only

  • +
  • configCommitted () +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only

  • +
  • configCommitted (instanceName) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    instanceNameQCString
    +

  • +
  • removeAllModules () +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only

  • +
  • show () +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only

  • +
  • slotApply () +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only

  • +
  • slotDefault () +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only

  • +
  • slotHelp () +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only

  • +
  • slotOk () +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only

  • +
  • slotUser1 () +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only

  • +
+ + + diff --git a/doc/classref/kutils/KFind.html b/doc/classref/kutils/KFind.html new file mode 100644 index 0000000..317a5e3 --- /dev/null +++ b/doc/classref/kutils/KFind.html @@ -0,0 +1,222 @@ + + + + + class KFind + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KFind


+
+ + + + + +
Table of contents
Modules
kutils Classes
All Classes
+
+ + + + + + + + + + +
Modulekutils
ClassKFind
InheritsQObject
+

enums

    +
  • Result = {NoMatch, Match +}
+

methods

    +
  • KFind (pattern, options, parent) +
    + +
    returns a KFind instance
    In versions KDE 3.3.0 and above only
    + + + +
    ArgumentTypeDefault
    patternQString
    optionslong
    parentQWidget
    +

  • +
  • KFind (pattern, options, parent, findDialog) +
    + +
    returns a KFind instance
    In versions KDE 3.3.0 and above only
    + + + + +
    ArgumentTypeDefault
    patternQString
    optionslong
    parentQWidget
    findDialogQWidget
    +

  • +
  • closeFindNextDialog () +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only

  • +
  • dialogClosed () +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only

  • +
  • dialogsParent () +
    + +
    returns (QWidget)
    In versions KDE 3.3.0 and above only

  • +
  • displayFinalDialog () +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only

  • +
  • find () +
    + +
    returns (KFind.Result)
    In versions KDE 3.3.0 and above only

  • +
  • find (text, pattern, index, options) +
    + + +
    returns (int) matchedlength (int)
    In versions KDE 3.3.0 and above only
    static
    + + + + +
    ArgumentTypeDefault
    textQString
    patternQString
    indexint
    optionslong
    +

  • +
  • find (text, pattern, index, options) +
    + + +
    returns (int) matchedlength (int)
    In versions KDE 3.3.0 and above only
    static
    + + + + +
    ArgumentTypeDefault
    textQString
    patternQRegExp
    indexint
    optionslong
    +

  • +
  • findNext () +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only

  • +
  • findNextDialog (create = 0) +
    + +
    returns (KDialogBase)
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    createbool0
    +

  • +
  • highlight (text, matchingIndex, matchedLength) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + + + +
    ArgumentTypeDefault
    textQString
    matchingIndexint
    matchedLengthint
    +

  • +
  • highlight (id, matchingIndex, matchedLength) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + + + +
    ArgumentTypeDefault
    idint
    matchingIndexint
    matchedLengthint
    +

  • +
  • index () +
    + +
    returns (int)
    In versions KDE 3.3.0 and above only

  • +
  • needData () +
    + +
    returns (bool)
    In versions KDE 3.3.0 and above only

  • +
  • numMatches () +
    + +
    returns (int)
    In versions KDE 3.3.0 and above only

  • +
  • options () +
    + +
    returns (long)
    In versions KDE 3.3.0 and above only

  • +
  • optionsChanged () +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only

  • +
  • parentWidget () +
    + +
    returns (QWidget)
    In versions KDE 3.3.0 and above only

  • +
  • pattern () +
    + +
    returns (QString)
    In versions KDE 3.3.0 and above only

  • +
  • resetCounts () +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only

  • +
  • setData (data, startPos = -1) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + + +
    ArgumentTypeDefault
    dataQString
    startPosint-1
    +

  • +
  • setData (id, data, startPos = -1) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + + + +
    ArgumentTypeDefault
    idint
    dataQString
    startPosint-1
    +

  • +
  • setOptions (options) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    optionslong
    +

  • +
  • setPattern (pattern) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    patternQString
    +

  • +
  • shouldRestart (forceAsking = 0, showNumMatches = 1) +
    + +
    returns (bool)
    In versions KDE 3.3.0 and above only
    + + +
    ArgumentTypeDefault
    forceAskingbool0
    showNumMatchesbool1
    +

  • +
  • slotDialogClosed () +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only

  • +
  • slotFindNext () +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only

  • +
  • validateMatch (text, index, matchedlength) +
    + +
    returns (bool)
    In versions KDE 3.3.0 and above only
    + + + +
    ArgumentTypeDefault
    textQString
    indexint
    matchedlengthint
    +

  • +
+ + + diff --git a/doc/classref/kutils/KFindDialog.html b/doc/classref/kutils/KFindDialog.html new file mode 100644 index 0000000..72979b1 --- /dev/null +++ b/doc/classref/kutils/KFindDialog.html @@ -0,0 +1,188 @@ + + + + + class KFindDialog + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KFindDialog


+
+ + + + + +
Table of contents
Modules
kutils Classes
All Classes
+
+ + + + + + + + + + +
Modulekutils
ClassKFindDialog
InheritsKDialogBase
+

enums

    +
  • Options = {WholeWordsOnly, FromCursor, SelectedText, CaseSensitive, FindBackwards, RegularExpression, FindIncremental, MinimumUserOption +}
+

methods

    +
  • KFindDialog (parent = 0, name = 0, options = 0, findStrings = QStringList (), hasSelection = 0) +
    + +
    returns a KFindDialog instance
    In versions KDE 3.3.0 and above only
    + + + + + +
    ArgumentTypeDefault
    parentQWidget0
    namechar0
    optionslong0
    findStringsQStringListQStringList ()
    hasSelectionbool0
    +

  • +
  • KFindDialog (modal, parent = 0, name = 0, options = 0, findStrings = QStringList (), hasSelection = 0) +
    + +
    returns a KFindDialog instance
    In versions KDE 3.3.0 and above only
    + + + + + + +
    ArgumentTypeDefault
    modalbool
    parentQWidget0
    namechar0
    optionslong0
    findStringsQStringListQStringList ()
    hasSelectionbool0
    +

  • +
  • KFindDialog (parent, name, forReplace) +
    + +
    returns a KFindDialog instance
    In versions KDE 3.3.0 and above only
    + + + +
    ArgumentTypeDefault
    parentQWidget
    namechar
    forReplacebool
    +

  • +
  • findExtension () +
    + +
    returns (QWidget)
    In versions KDE 3.3.0 and above only

  • +
  • findHistory () +
    + +
    returns (QStringList)
    In versions KDE 3.3.0 and above only

  • +
  • options () +
    + +
    returns (long)
    In versions KDE 3.3.0 and above only

  • +
  • pattern () +
    + +
    returns (QString)
    In versions KDE 3.3.0 and above only

  • +
  • setFindHistory (history) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    historyQStringList
    +

  • +
  • setHasCursor (hasCursor) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    hasCursorbool
    +

  • +
  • setHasSelection (hasSelection) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    hasSelectionbool
    +

  • +
  • setOptions (options) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    optionslong
    +

  • +
  • setPattern (pattern) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    patternQString
    +

  • +
  • setSupportsBackwardsFind (supports) +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only
    + +
    ArgumentTypeDefault
    supportsbool
    +

  • +
  • setSupportsCaseSensitiveFind (supports) +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only
    + +
    ArgumentTypeDefault
    supportsbool
    +

  • +
  • setSupportsRegularExpressionFind (supports) +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only
    + +
    ArgumentTypeDefault
    supportsbool
    +

  • +
  • setSupportsWholeWordsFind (supports) +
    + +
    returns nothing
    In versions KDE 3.4.0 and above only
    + +
    ArgumentTypeDefault
    supportsbool
    +

  • +
  • showEvent (a0) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    a0QShowEvent
    +

  • +
  • showPatterns () +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only

  • +
  • showPlaceholders () +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only

  • +
  • slotOk () +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only

  • +
  • slotSelectedTextToggled (a0) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • textSearchChanged (a0) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
+ + + diff --git a/doc/classref/kutils/KMultiTabBar.html b/doc/classref/kutils/KMultiTabBar.html new file mode 100644 index 0000000..8ffe152 --- /dev/null +++ b/doc/classref/kutils/KMultiTabBar.html @@ -0,0 +1,163 @@ + + + + + class KMultiTabBar + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KMultiTabBar


+
+ + + + + +
Table of contents
Modules
kutils Classes
All Classes
+
+ + + + + + + + + + +
Modulekutils
ClassKMultiTabBar
InheritsQWidget
+

enums

    +
  • KMultiTabBarMode = {Horizontal, Vertical +}
  • KMultiTabBarPosition = {Left, Right, Top, Bottom +}
  • KMultiTabBarStyle = {VSNET, KDEV3, KONQSBC, KDEV3ICON, STYLELAST +}
+

methods

    +
  • KMultiTabBar (bm, parent = 0, name = 0) +
    + +
    returns a KMultiTabBar instance
    In versions KDE 3.3.0 and above only
    + + + +
    ArgumentTypeDefault
    bmKMultiTabBar.KMultiTabBarMode
    parentQWidget0
    namechar0
    +

  • +
  • appendButton (pic, id = -1, popup = 0, not_used_yet = QString .null) +
    + +
    returns (int)
    In versions KDE 3.3.0 and above only
    + + + + +
    ArgumentTypeDefault
    picQPixmap
    idint-1
    popupQPopupMenu0
    not_used_yetQStringQString .null
    +

  • +
  • appendTab (pic, id = -1, text = QString .null) +
    + +
    returns (int)
    In versions KDE 3.3.0 and above only
    + + + +
    ArgumentTypeDefault
    picQPixmap
    idint-1
    textQStringQString .null
    +

  • +
  • button (id) +
    + +
    returns (KMultiTabBarButton)
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    idint
    +

  • +
  • buttons () +
    Not Implemented
    +

  • +
  • fontChange (a0) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    a0QFont
    +

  • +
  • isTabRaised (id) +
    + +
    returns (bool)
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    idint
    +

  • +
  • position () +
    + +
    returns (KMultiTabBar.KMultiTabBarPosition)
    In versions KDE 3.5.0 and above only

  • +
  • removeButton (id) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    idint
    +

  • +
  • removeTab (id) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    idint
    +

  • +
  • setPosition (pos) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    posKMultiTabBar.KMultiTabBarPosition
    +

  • +
  • setStyle (style) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    styleKMultiTabBar.KMultiTabBarStyle
    +

  • +
  • setTab (id, state) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + + +
    ArgumentTypeDefault
    idint
    statebool
    +

  • +
  • showActiveTabTexts (show = 1) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    showbool1
    +

  • +
  • tab (id) +
    + +
    returns (KMultiTabBarTab)
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    idint
    +

  • +
  • tabStyle () +
    + +
    returns (KMultiTabBar.KMultiTabBarStyle)
    In versions KDE 3.5.0 and above only

  • +
  • tabs () +
    Not Implemented
    +

  • +
  • updateSeparator () +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only

  • +
+ + + diff --git a/doc/classref/kutils/KMultiTabBarButton.html b/doc/classref/kutils/KMultiTabBarButton.html new file mode 100644 index 0000000..8db9681 --- /dev/null +++ b/doc/classref/kutils/KMultiTabBarButton.html @@ -0,0 +1,120 @@ + + + + + class KMultiTabBarButton + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KMultiTabBarButton


+
+ + + + + +
Table of contents
Modules
kutils Classes
All Classes
+
+ + + + + + + + + + +
Modulekutils
ClassKMultiTabBarButton
InheritsQPushButton
+

methods

    +
  • KMultiTabBarButton (pic, a0, popup, id, parent, pos, style) +
    + +
    returns a KMultiTabBarButton instance
    In versions KDE 3.3.0 and above only
    + + + + + + + +
    ArgumentTypeDefault
    picQPixmap
    a0QString
    popupQPopupMenu
    idint
    parentQWidget
    posKMultiTabBar.KMultiTabBarPosition
    styleKMultiTabBar.KMultiTabBarStyle
    +

  • +
  • KMultiTabBarButton (a0, popup, id, parent, pos, style) +
    + +
    returns a KMultiTabBarButton instance
    In versions KDE 3.3.0 and above only
    + + + + + + +
    ArgumentTypeDefault
    a0QString
    popupQPopupMenu
    idint
    parentQWidget
    posKMultiTabBar.KMultiTabBarPosition
    styleKMultiTabBar.KMultiTabBarStyle
    +

  • +
  • clicked (id) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    idint
    +

  • +
  • hideEvent (a0) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    a0QHideEvent
    +

  • +
  • id () +
    + +
    returns (int)
    In versions KDE 3.3.0 and above only

  • +
  • setPosition (a0) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    a0KMultiTabBar.KMultiTabBarPosition
    +

  • +
  • setStyle (a0) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    a0KMultiTabBar.KMultiTabBarStyle
    +

  • +
  • setText (a0) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • showEvent (a0) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    a0QShowEvent
    +

  • +
  • sizeHint () +
    + +
    returns (QSize)
    In versions KDE 3.3.0 and above only

  • +
  • slotClicked () +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only

  • +
+ + + diff --git a/doc/classref/kutils/KMultiTabBarTab.html b/doc/classref/kutils/KMultiTabBarTab.html new file mode 100644 index 0000000..58ad75f --- /dev/null +++ b/doc/classref/kutils/KMultiTabBarTab.html @@ -0,0 +1,139 @@ + + + + + class KMultiTabBarTab + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KMultiTabBarTab


+
+ + + + + +
Table of contents
Modules
kutils Classes
All Classes
+
+ + + + + + + + + + +
Modulekutils
ClassKMultiTabBarTab
InheritsKMultiTabBarButton
+

methods

    +
  • KMultiTabBarTab (pic, a0, id, parent, pos, style) +
    + +
    returns a KMultiTabBarTab instance
    In versions KDE 3.3.0 and above only
    + + + + + + +
    ArgumentTypeDefault
    picQPixmap
    a0QString
    idint
    parentQWidget
    posKMultiTabBar.KMultiTabBarPosition
    styleKMultiTabBar.KMultiTabBarStyle
    +

  • +
  • drawButton (a0) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    a0QPainter
    +

  • +
  • drawButtonClassic (a0) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    a0QPainter
    +

  • +
  • drawButtonLabel (a0) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    a0QPainter
    +

  • +
  • drawButtonStyled (a0) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    a0QPainter
    +

  • +
  • neededSize () +
    + +
    returns (int)
    In versions KDE 3.3.0 and above only

  • +
  • resize () +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only

  • +
  • setIcon (a0) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    a0QString
    +

  • +
  • setIcon (a0) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    a0QPixmap
    +

  • +
  • setSize (a0) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    a0int
    +

  • +
  • setState (state) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    statebool
    +

  • +
  • setTabsPosition (a0) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    a0KMultiTabBar.KMultiTabBarPosition
    +

  • +
  • showActiveTabText (show) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    showbool
    +

  • +
  • slotClicked () +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only

  • +
  • updateState () +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only

  • +
+ + + diff --git a/doc/classref/kutils/KPluginInfo.html b/doc/classref/kutils/KPluginInfo.html new file mode 100644 index 0000000..1484271 --- /dev/null +++ b/doc/classref/kutils/KPluginInfo.html @@ -0,0 +1,213 @@ + + + + + class KPluginInfo + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KPluginInfo


+
+ + + + + +
Table of contents
Modules
kutils Classes
All Classes
+
+ + + + + + + + + + +
Modulekutils
ClassKPluginInfo
Inherits
+

methods

    +
  • KPluginInfo (filename, resource = 0) +
    + +
    returns a KPluginInfo instance
    In versions KDE 3.3.0 and above only
    + + +
    ArgumentTypeDefault
    filenameQString
    resourcechar0
    +

  • +
  • KPluginInfo (service) +
    + +
    returns a KPluginInfo instance
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    serviceKService.Ptr
    +

  • +
  • KPluginInfo (a0) +
    + +
    returns a KPluginInfo instance
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    a0KPluginInfo
    +

  • +
  • author () +
    + +
    returns (QString)
    In versions KDE 3.3.0 and above only

  • +
  • category () +
    + +
    returns (QString)
    In versions KDE 3.3.0 and above only

  • +
  • comment () +
    + +
    returns (QString)
    In versions KDE 3.3.0 and above only

  • +
  • config () +
    + +
    returns (KConfig)
    In versions KDE 3.3.0 and above only

  • +
  • configgroup () +
    + +
    returns (QString)
    In versions KDE 3.3.0 and above only

  • +
  • defaults () +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only

  • +
  • dependencies () +
    + +
    returns (QStringList)
    In versions KDE 3.3.0 and above only

  • +
  • email () +
    + +
    returns (QString)
    In versions KDE 3.3.0 and above only

  • +
  • fromFiles (files, config = 0, group = QString .null) +
    + + +
    returns (KPluginInfo.List)
    In versions KDE 3.3.0 and above only
    static
    + + + +
    ArgumentTypeDefault
    filesQStringList
    configKConfig0
    groupQStringQString .null
    +

  • +
  • fromKPartsInstanceName (a0, config = 0, group = QString .null) +
    + + +
    returns (KPluginInfo.List)
    In versions KDE 3.3.0 and above only
    static
    + + + +
    ArgumentTypeDefault
    a0QString
    configKConfig0
    groupQStringQString .null
    +

  • +
  • fromServices (services, config = 0, group = QString .null) +
    + + +
    returns (KPluginInfo.List)
    In versions KDE 3.3.0 and above only
    static
    + + + +
    ArgumentTypeDefault
    servicesKService.List
    configKConfig0
    groupQStringQString .null
    +

  • +
  • icon () +
    + +
    returns (QString)
    In versions KDE 3.3.0 and above only

  • +
  • isHidden () +
    + +
    returns (bool)
    In versions KDE 3.3.0 and above only

  • +
  • isPluginEnabled () +
    + +
    returns (bool)
    In versions KDE 3.3.0 and above only

  • +
  • isPluginEnabledByDefault () +
    + +
    returns (bool)
    In versions KDE 3.3.0 and above only

  • +
  • kcmServices () +
    Not Implemented
    +

  • +
  • license () +
    + +
    returns (QString)
    In versions KDE 3.3.0 and above only

  • +
  • load (config = 0) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    configKConfigGroup0
    +

  • +
  • name () +
    + +
    returns (QString)
    In versions KDE 3.3.0 and above only

  • +
  • pluginName () +
    + +
    returns (QString)
    In versions KDE 3.3.0 and above only

  • +
  • property (key) +
    + +
    returns (QVariant)
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    keyQString
    +

  • +
  • save (config = 0) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    configKConfigGroup0
    +

  • +
  • service () +
    + +
    returns (KService.Ptr)
    In versions KDE 3.3.0 and above only

  • +
  • setConfig (config, group) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + + +
    ArgumentTypeDefault
    configKConfig
    groupQString
    +

  • +
  • setPluginEnabled (enabled) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    enabledbool
    +

  • +
  • specfile () +
    + +
    returns (QString)
    In versions KDE 3.3.0 and above only

  • +
  • version () +
    + +
    returns (QString)
    In versions KDE 3.3.0 and above only

  • +
  • website () +
    + +
    returns (QString)
    In versions KDE 3.3.0 and above only

  • +
+

operators

    +
  • operator [] (a0) +
    Not Implemented
    +

  • +
+ + + diff --git a/doc/classref/kutils/KPluginSelector.html b/doc/classref/kutils/KPluginSelector.html new file mode 100644 index 0000000..a303c56 --- /dev/null +++ b/doc/classref/kutils/KPluginSelector.html @@ -0,0 +1,105 @@ + + + + + class KPluginSelector + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KPluginSelector


+
+ + + + + +
Table of contents
Modules
kutils Classes
All Classes
+
+ + + + + + + + + + +
Modulekutils
ClassKPluginSelector
InheritsQWidget
+

methods

    +
  • KPluginSelector (parent, name = 0) +
    + +
    returns a KPluginSelector instance
    In versions KDE 3.3.0 and above only
    + + +
    ArgumentTypeDefault
    parentQWidget
    namechar0
    +

  • +
  • addPlugins (instanceName, catname = QString .null, category = QString .null, config = 0) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + + + + +
    ArgumentTypeDefault
    instanceNameQString
    catnameQStringQString .null
    categoryQStringQString .null
    configKConfig0
    +

  • +
  • addPlugins (instance, catname = QString .null, category = QString .null, config = 0) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + + + + +
    ArgumentTypeDefault
    instanceKInstance
    catnameQStringQString .null
    categoryQStringQString .null
    configKConfig0
    +

  • +
  • addPlugins (plugininfos, catname = QString .null, category = QString .null, config = 0) +
    Not Implemented
    +

  • +
  • changed (a0) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
  • configCommitted (instanceName) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    instanceNameQCString
    +

  • +
  • defaults () +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only

  • +
  • load () +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only

  • +
  • save () +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only

  • +
  • setShowEmptyConfigPage (a0) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    a0bool
    +

  • +
+ + + diff --git a/doc/classref/kutils/KReplace.html b/doc/classref/kutils/KReplace.html new file mode 100644 index 0000000..0f81d1f --- /dev/null +++ b/doc/classref/kutils/KReplace.html @@ -0,0 +1,143 @@ + + + + + class KReplace + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KReplace


+
+ + + + + +
Table of contents
Modules
kutils Classes
All Classes
+
+ + + + + + + + + + +
Modulekutils
ClassKReplace
InheritsKFind
+

methods

    +
  • KReplace (pattern, replacement, options, parent = 0) +
    + +
    returns a KReplace instance
    In versions KDE 3.3.0 and above only
    + + + + +
    ArgumentTypeDefault
    patternQString
    replacementQString
    optionslong
    parentQWidget0
    +

  • +
  • KReplace (pattern, replacement, options, parent, replaceDialog) +
    + +
    returns a KReplace instance
    In versions KDE 3.3.0 and above only
    + + + + + +
    ArgumentTypeDefault
    patternQString
    replacementQString
    optionslong
    parentQWidget
    replaceDialogQWidget
    +

  • +
  • closeReplaceNextDialog () +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only

  • +
  • displayFinalDialog () +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only

  • +
  • numReplacements () +
    + +
    returns (int)
    In versions KDE 3.3.0 and above only

  • +
  • replace () +
    + +
    returns (Result)
    In versions KDE 3.3.0 and above only

  • +
  • replace (text, pattern, replacement, index, options) +
    + + +
    returns (int) replacedLength (int)
    In versions KDE 3.3.0 and above only
    static
    + + + + + +
    ArgumentTypeDefault
    textQString
    patternQString
    replacementQString
    indexint
    optionslong
    +

  • +
  • replace (text, pattern, replacement, index, options) +
    + + +
    returns (int) replacedLength (int)
    In versions KDE 3.3.0 and above only
    static
    + + + + + +
    ArgumentTypeDefault
    textQString
    patternQRegExp
    replacementQString
    indexint
    optionslong
    +

  • +
  • replace (text, replacementIndex, replacedLength, matchedLength) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + + + + +
    ArgumentTypeDefault
    textQString
    replacementIndexint
    replacedLengthint
    matchedLengthint
    +

  • +
  • replaceNextDialog (create = 0) +
    + +
    returns (KDialogBase)
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    createbool0
    +

  • +
  • resetCounts () +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only

  • +
  • shouldRestart (forceAsking = 0, showNumMatches = 1) +
    + +
    returns (bool)
    In versions KDE 3.3.0 and above only
    + + +
    ArgumentTypeDefault
    forceAskingbool0
    showNumMatchesbool1
    +

  • +
  • slotReplace () +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only

  • +
  • slotReplaceAll () +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only

  • +
  • slotSkip () +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only

  • +
+ + + diff --git a/doc/classref/kutils/KReplaceDialog.html b/doc/classref/kutils/KReplaceDialog.html new file mode 100644 index 0000000..89ed043 --- /dev/null +++ b/doc/classref/kutils/KReplaceDialog.html @@ -0,0 +1,97 @@ + + + + + class KReplaceDialog + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class KReplaceDialog


+
+ + + + + +
Table of contents
Modules
kutils Classes
All Classes
+
+ + + + + + + + + + +
Modulekutils
ClassKReplaceDialog
InheritsKFindDialog
+

enums

    +
  • Options = {PromptOnReplace, BackReference +}
+

methods

    +
  • KReplaceDialog (parent = 0, name = 0, options = 0, findStrings = QStringList (), replaceStrings = QStringList (), hasSelection = 1) +
    + +
    returns a KReplaceDialog instance
    In versions KDE 3.3.0 and above only
    + + + + + + +
    ArgumentTypeDefault
    parentQWidget0
    namechar0
    optionslong0
    findStringsQStringListQStringList ()
    replaceStringsQStringListQStringList ()
    hasSelectionbool1
    +

  • +
  • options () +
    + +
    returns (long)
    In versions KDE 3.3.0 and above only

  • +
  • replaceExtension () +
    + +
    returns (QWidget)
    In versions KDE 3.3.0 and above only

  • +
  • replacement () +
    + +
    returns (QString)
    In versions KDE 3.3.0 and above only

  • +
  • replacementHistory () +
    + +
    returns (QStringList)
    In versions KDE 3.3.0 and above only

  • +
  • setOptions (options) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    optionslong
    +

  • +
  • setReplacementHistory (history) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    historyQStringList
    +

  • +
  • showEvent (a0) +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only
    + +
    ArgumentTypeDefault
    a0QShowEvent
    +

  • +
  • slotOk () +
    + +
    returns nothing
    In versions KDE 3.3.0 and above only

  • +
+ + + diff --git a/doc/classref/kutils/index.html b/doc/classref/kutils/index.html new file mode 100644 index 0000000..020f293 --- /dev/null +++ b/doc/classref/kutils/index.html @@ -0,0 +1,47 @@ + + + + + module kutils + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

kutils Class Index


+
+ + + + +
Table of contents
Modules
All Classes
+
+ +
+ + + + + + +
KCModuleInfo - KFind
KCModuleInfo
KCModuleLoader
KCModuleProxy
KCMultiDialog
KFind
+ + + + + +
KFindDialog - KMultiTabBarTab
KFindDialog
KMultiTabBar
KMultiTabBarButton
KMultiTabBarTab
+ + + + + +
KPluginInfo - KReplaceDialog
KPluginInfo
KPluginSelector
KReplace
KReplaceDialog
+ + diff --git a/doc/dcopext.html b/doc/dcopext.html new file mode 100644 index 0000000..b9eef07 --- /dev/null +++ b/doc/dcopext.html @@ -0,0 +1,378 @@ + +p + + Examples + + + +

+

+ + + + + +
Python Bindings for KDE (PyKDE-3.16.0)
PrevNext

+ +

DCOP and Extensions

+

+DCOP is KDE's acronym for it's "Desktop Communications-Oriented Protocol" - basically a +lightweight and simple mechanism for inter-process communications (IPC). DCOP allows two +running applications to exchange messages or other information or exercise control over +each other. +

+

+While the DCOP implementation is convenient for C++ programmers, it presents some difficulties +for Python programmers. The DCOP extensions that have been added to PyKDE should make most +DCOP applications (either DCOP-client or DCOP-enabled applications) simple to write and +reliable to run +

+

What Extensions?

+There are three basic extensions added to PyKDE that are not part of KDE itself: +
+
Packing/Unpacking QByteArrays
+
+DCOP passes data between applications using QByteArrays. QByteArrays can be difficult to +pack or unpack using PyQt or PyKDE, so PyKDE has additional methods (dcop_add and dcop_next) +to make these operations simpler in Python +
+
Client Extensions
+
+PyKDE's DCOP client extensions make it easy and natural to call DCOP methods in other +DCOP-enabled applications - the application or DCOP object being referenced look like +Python classes, and the method being called looks to the programmer like a Python method. +
+
DCOP Enabling (Export) Extensions
+
+Another set of extensions makes it trivial to expose an application's methods via DCOP to +other applications. All that is required is to subclass a pre-written Python class and +provide a list of the methods to expose, along with a method signature listing the name +of the method, it's return type, and the the types of its arguments. +
+
+

+The methods for packing/unpacking QByteArrays are available to the programmer, but are +primarily used transparently by the other PyKDE DCOP extensions. The client and export extensions +are two Python modules that are included and installed as part of PyKDE. +

+ +

Calling DCOP Methods

+

+Accessing a DCOP method in another application requires 3 pieces of information: the name of +the application to be accessed, the name of the DCOP object which holds the method to be +called, and the name of the method itself. +

+ +

Collection the Information

+

+The easiest way to collect the required information is to use the kdcop application that +comes with PyKDE. kdcop is graphical application that looks like the image shown. +

+ +

Application/Object/Method Information

+

+Look at the entry for kicker, which has been expanded in the image. Underneath kicker (the +application name - kicker is the panel on the standard KDE screen) is a list of DCOP objects, +for example, Panel. Under each object is a list of methods the application/object exposes, for +example, "int panelPosition ()". This indicates the method panelPosition takes no arguments +and returns an integer. +

+

Writing the Code

+

+There are two ways to use the DCOP extensions to call the panelPosition method. The first is +from the application level, the second is from the object level. We can use the "application +level" in this case, because the object name "Panel" can be valid Python identifier (not all +object names have this property). +

+ +
+import dcopext
+# ! other imports not shown !
+
+app  = KApplication ()
+dcop = app.dcopClient ()
+
+d = dcopext.DCOPApp ("kicker", dcop)
+ok, panelPos = d.Panel.panelPosition ()
+
+
+

+That's all there's to it in this case. We import dcopext, which contains the client extension +classes; from the KApplication instance, we "borrow" the DCOPClient instance (dcop); we create a +DCOPApp instance, passing it the name of the app ("kicker") and the DCOPClient instance; we +call kicker's Panel object's panelPosition method (d.Panel.panelPosition); lastly, the integer +value is returned to our application (panelPos) as the second item in a tuple - the first element +of the tuple (ok) is a boolean value indicating whether the call succeeded (True) or failed (False). +

+

+Many of the DCOP object names can't be used as Python identifiers (for example,"0x8239ae0" or +KIO::Scheduler in kicker, or EditInterface#1, which kwrite exports). In that case, it's +necessary to write the code at the object level, constructing a DCOPObj instead of a +DCOPApp (DCOPApp actually constructs a DCOPObj behind the scenese in the example above). +

+ +
+import dcopext
+# ! other imports not shown !
+
+o = dcopext.DCOPObj ("kicker", dcop, "Panel")
+ok, panelPos = o.panelPosition ()
+
+
+

+In this example, 'o' is a DCOPObj. In constructing 'o', we add a string representation of +the name of the object ("Panel") to the application name and DCOPClient object. We then +use the DCOPObj 'o' to call the the method (panelPosition) that the object supports. +

+

More on Application Names

+

+In the example above, kicker was the name of the application and the id we used to reference +the application as well. kicker is an example of a unique application - only one instance of +kicker can be running at any time. +

+

+Many applications (konqueror, for example) can have several instances running at the same +time. kdcop would display multiple instances like this: +

+ +

+kdcop shows 3 instances of konqueror running in the example above. To perform a DCOP call in +this case, we'd need to know which instance of konqueror we want to send the call to. The +suffix on each instance of konqueror is the PID of the instance running. We simply pass the +full id (app name + pid - eg konqueror-14409) when constructing DCOPApp or DCOPObj. +

+

+If you instantiate the application you want to communicate with from your own application (that +will be making the DCOP calls), methods like KApplication.startServiceByDesktopName will +let you start the app and also return both the PID of the started app and the complete +identifier string needed to initiate DCOP communications. The identifier's name portion may or +may not be the same as the name of the application (see the example_dcopexport.py example program, +whose ID is "petshop-####" (#### is the PID of the application instance). +

+

Data Types

+The DCOP extensions will support any of the following C++ data types: + + + + + + + + + + + + + + + + +
charshortint
longunsigned charunsigned short
unsigned intunsigned longuchar
ushsortuintulong
Q_INT32pid_tfloat
doubleQStringQStringList
QCStringKURLKURL::List
QSizeQRectQRegion
QFontQCursorQPixmap
QColorQColorGroupQPalette
QBrushQWidget::FocusPolicyDCOPRef
QVariantQDateQTime
QDateTimeQImageQKeySequence
QPenQPictureQPointArray
QValueList<DCOPRef>QValueList<QCString>QMap<QCString,DCOPRef>
QMap<QCString,DCOPRef>
+

+Data conversion between C++ and Python types is done transparently. The integer types +map to Python int or Python long, the decimal types to Python double. A Python string +can be used for any argument that requires a QString or QCString (return types will +always be the Qt object type). The QValueList types take or return a Python list of the +indicated object. The QMap types take or return a Python dict with the first type as +the key and the second type as data. All other types use the same object type in +Python and Qt (for instance, QPoint or QStringList). +

+

+It's possible to add support for more types in the future. To be added, a type requires +a pair of overloaded QDataStream operators ("<<" and ">>"). Types must also +exist in the libs that PyQt and PyKDE support - types specific to applications (like +konqueror) cannot be supported at this time. +

+

Other Extension Features

+

+The dcopext module consists of 3 classes (DCOPApp, DCOPObj and DCOPMeth) corresponding to +applications, objects and methods respectively. These classes have additional variables and methods: +

    +
  • DCOPApp.objects - returns a list of the applications DCOP objects. example: d.objects
  • +
  • DCOPApp.object(objname) - returns a DCOPObj for the DCOPObject. example: d.object ("Panel")
  • +
  • DCOPObj.methods - returns a list of the methods and object has. example: o.methods
  • +
  • DCOPObj.method (methname) - returns an DCOPMeth instance corresponding to the method, which +can be called. example: o.method("panelPosition")
  • +
  • DCOPMeth.valid - returns whether the method is valid or not (True/False). example: +d.Panel.panelPosition.valid
  • +
  • DCOPMeth.rtype - a method's return type. example d.Panel.panelPosition.rtype
  • +
  • DCOPMeth.argtypes - a list of the method's argument types. example d.Panel.panelPosition.argtypes
  • +
  • DCOPMeth.argnames - a list of the method's argument names. example d.Panel.panelPosition.argnames
  • +
+

+If a method isn't valid, it's rtype, argtypes and argnames values will all be None. +

+

+

DCOP Enabling a Python Application

+

+Enabling a Python application to handle DCOP calls is even simpler than making calls as a +DCOP client. Suppose a Python application has two methods we want to appear as int getValue() +and void setValue(int). The corresponding Python methods are get_value() set_value(i). + We want to export these methods under the object "Value". Here's the code: +

+ +
+from dcopexport import DCOPExObj
+# ! other imports not shown !
+
+class ValueObject (DCOPExObj):
+    def __init__ (self, id="Value"):
+        DCOPExObj.__init__ (self, id)
+        self.value = 0
+
+        self.addMethod ("int getValue()", self.get_value)
+        self.addMethod ("void setValue(int)", self.set_value)
+
+    def get_value(self):
+        return self.value
+
+    def set_value (self, i):
+        self.value = i
+
+
+

+Note that the module for the DCOPExObj class is "dcopexport". The Python methods may be +part of the DCOPExObj subclass, part of another class, or global Python functions. They +must be callable from the DCOPExObj subclass being created. The dcopexport extension takes +care of everything else, including the "functions()" method which applications (yours or +kdcop, for example) can call to find out which methods are available and their return +and argument types. You can have multiple instances of DCOPExObj in a program. All of +the data types listed above are supported transparently - you don't have to pack or +unpack QByteArrays. +

+

Packing and Unpacking QByteArrays

+

+NOTE: It isn't necessary to use the dcop_add and dcop_next functions or worry about +QByteArrays at all when using dcopext or dcopexport as shown above. Those modules +handle the packing and unpacking details automatically behind the scenes. +

+

+The dcop_add and dcop_next functions are available in the PyKDE kdecore module (they +may be relocated to a different module in the future). They use a QDataStream to operate +on a QByteArray. The QByteArray can be thought of as a stack (a FIFO stack though) - +dcop_add pushes objects onto the stack, dcop_next pops objects off the stack. The first +object popped off will be the first object pushed on, etc. +

+

+The dcop_add function is actually a group of overloaded functions, some of which take +different argument counts. Here are some examples: +

+ +
+from kdecore import dcop_add, dcop_next
+from qt import QByteArray, QDataStream, IO_ReadOnly, IO_WriteOnly, QString,\
+    QCString, QValueList<QCString>
+from dcopext import numericTypes, stringTypes    
+    
+b = QByteArray ()
+s = QDataStream (b, IO_WriteOnly)
+
+i = 6
+d = 3.14
+t = QString ("Hello, World")
+x = QCString ("One")
+y = QCString ("Two")
+z = QCString ("Three")
+l = [x, y, z]
+
+dcop_add (s, i, "long")
+dcop_add (s, d, "double")
+dcop_add (s, t)
+dcop_add (s, x)
+dcop_add (s, l, "QValueList<QCString>")
+
+
+

+Notice that for numeric types (integer or decimal) an additional string is needed to +specify the C++ type of the object - that's because Python has only 3 basic numeric +types, while C++ has at least 10 basic numeric types plus variations via typedefs. +

+

+Also, the QValueList (and QMap - not shown) type needs a qualifier - a Python list +type doesn't know (or care) what the type of its elements is. +

+

+Other types (QString, QCString) are uniquely typed, so no modifier is needed. +

+

+While it may change in the future, dcop_add right now retains the variable argument lists. +You can handle this in your own code easily if you import "numericTypes" and +"stringTypes" from dcopext as shown above. The following code will sort things out: +

+ + +
+# atype is the type of the argument being processed (as a string)
+# value is the object being packed into the QByteArray
+
+if atype in numericTypes:
+	dcop_add (s, value, atype)
+elif atype in stringTypes and isinstance (value, str):
+	dcop_add (s, eval ("%s('%s')" % (atype, value)))
+elif atype.startswith ("QMap") or atype.startswith ("QValueList"):
+	dcop_add (params, value, atype)
+else:            
+	dcop_add (s, value)
+	
+
+

+At least in DCOP related applications, all of the necessary type information is always +easily available. The first if clause above processes numeric types; the second if +clause allows you to use Python strings in place of Qt's QString or QCString types; the +third if clause handles QValueList and QMap based types; the else clause handles +everything else. +

+

+Unpacking a QByteArray is simpler - dcop_next always takes a QDataStream instance and +a type name string. The code below assumes the same set of imports as above: +

+ +
+
+# b is a QByteArray to be unpacked
+s = QDataStream (b, IO_ReadOnly)
+
+i1 = dcop_next (s, "long")
+d1 = dcop_next (s, "double")
+t1 = dcop_next (s, "QString")
+x1 = dcop_next (s, "QCString")
+l1 = dcop_next (s, "QValueList<QCString>")
+
+
+

+Of course the type specified in dcop_next to unpack the object must match the type of +the object originally packed, and must happen in the same order (you can't use this to cast or convert types). i1, d1, etc +should contain the same values as i, d, etc above. +

+

+The types that dcop_add/dcop_next can handle are the same types listed in the dcopext +section above. +

+

Thanks

+

+The code for dcopext and dcopexport is based on pydcop.py and pcop.cpp written by Torben Weis +and Julian Rockey. It's available in the dcoppython/ section of the kde-bindings source code, +and can be used to implement DCOP communication without using PyQt or PyKDE. +

+ + + + + diff --git a/doc/examples.html b/doc/examples.html new file mode 100644 index 0000000..33d3b3c --- /dev/null +++ b/doc/examples.html @@ -0,0 +1,125 @@ + + + + Examples + + + + +
+ + + + + +
Python Bindings for KDE (PyKDE-3.16.0)
PrevNext

+

Templates and Example programs

+

Templates

+

+PyKDE includes a number of examples or "templates" that you can use as frameworks for +building your own apps or experimenting with PyKDE. The templates are executable +programs which usually construct an application with a main window, and in some cases +with menus, toolbar and status bar, but have no other functionality. You can use these +to get a quick start on creating a program, for exploring PyKDE, or for testing various +ideas using PyKDE. +

+

+There are a number of template examples in the templates/ subdirectory. The same +files a duplicated in templates/annotated/ and templates/basic/. The files in +annotated/ have extensive comments, the files in basic/ have the comments stripped +to make the templates easier to use in constructing your own programs. +

+

+The current set of templates provide basic applications using different UI construction +strategies, an panel applet template, and a systray program template. +

+ +

Examples

+

+Example programs are located in the examples/ directory (contributions are always welcome). +All examples are run as "python <example name>.py", eg "python uisampler.py". +

+

uisampler.py

+

+uisampler.py demonstrates a number of widgets and UI features of PyKDE. +

+ +

+For widgets, the panel on the right displays sample widgets. The widgets or other items for +display are selected from the tree view on the left. A number of the examples are UI related +items like KAction, KXMLGUI releated things, etc.These use either menudemo.py or xmlmenudemo.py +to display examples of usage. +

+

menudemo.py

+

+menudemo.py is a simple menu based example "application" that does nothing, but displays +a UI (toolbar, status bar, menus) constructed using KAction and related classes. It runs +as part of uisampler.py or will run stand-alone. +

+

xmlmenudemo.py

+

+xmlmenudemo.py is a simple menu based example "application" that does nothing, but displays +a UI (toolbar, status bar, menus) constructed using an XML 'desktop' file. It runs +as part of uisampler.py or will run stand-alone. +

+ +

kurldemo.py

+

+kurldemo.py displays the results of a number of KURL and KURL.List operations in a window. +It's probably more instructive to look at the code for this example then to actually run +it, but it is working code. +

+ +

mimetype.py

+

+mimetype.py displays several tabs of KMimeType/KService/KTrader related data +

+ +

+The output will vary with KDE version running or from machine to machine. +

+ + +

pyKHTMLPart.py

+

+pyKHTMLPart.py demonstrates importing KHTMLPart as a KPart. +

+ +

+The program is hard-coded to display the KDE website's main page, and requires +an active internet connection to do the display (it will be blank if no internet +connection is active). +

+

+The program is not designed as a complete browser example, and none of the links +are "clickable" (it wouldn't be hard to extend it to do this however - see the +KHTMLPart docs). +

+ +

systray.py

+

+systray.py is a simple example of a system tray based application. +

+ + + + + + diff --git a/doc/images/kdcop1.png b/doc/images/kdcop1.png new file mode 100644 index 0000000000000000000000000000000000000000..b0e6e5e5bb61d3d020631b61e97b656a03126968 GIT binary patch literal 28836 zcmZ^~WmH^2vjs|m1_>4%gFc4DXQd zyZ5bi-+Di0tur&{boW$O@2b74Cj6_s6b330DjXafhV*9%B{;YjzQ7BHf&_fxpu0*3 z2S))XEg`1jk#XGaZ$mQEeD*Xrvpw^6yDd#@BatAa+$KTgT(9H|A4^Z>%8Wss_Zs64 zhxc<2L$wuh$9s8CRh!>dxFw6hdUzRXO}uul&5mWV;jsY-r3QOtZ;IddR-w-CcO8Aw zr{ZamNSz^Ouo*nzsQh6dWR={+ryt>2tS*eQ~9?nzuOud!*EbA;Ax4Ex9 zXTbxnY~Hc(@UXC;4K{HJGRpWhw;9cnJZyBf)gp%@e4yw`_sv~mfW8=vs}-oe7#3dp z-SJAAq0=DeVvbfc*;p%mhp3PZO|p0q#0O2J1vO}neT7+Hi{7Zoo6&T^r6L-lsEB+f zXl(y*{wwD~0Q7LNmF@Kt5uGi>U@uxNPCshhypyXW&FI6l8B#pK*YVCelIp42Bh7wp zVrYE#xw?EA3@4CU^q>o$f(GS9m5CU1L$oEs=j5HAU$@Lp(erP^>%?@H3&$1M-%-Fj z+?i{_Y25=c@e4jyCZ!c?F>8_Y^LNxwerX+hE$2m@$s$E;1k9wFDJI)%{rlck)}IDN zAI9NrmX51B;ZhR`O~hm{O?NzwJN%7Tjhc27vxJymV8W%kzQFpP+5{6b^Ua)t;>9+F zL}e#(*+x5E*Kt*hTAwhMfUFD5=RO)6Q=c!%Rk*Unz1*vi?RQJ>!6)SX($_axH#A}S zIJc~4Ues*{QoMTEeJva8OZ{gh{>{tHiK3AT_w znb+r{ndsoF^^WSqMz9sNXL{P?&t`-{+ML0nqkC}@kFqF_HyNe$bZaDKva43|NA0^} zn&USq4_u=&9yRDjJA>nQDP5bFbW}|zYVJ{#Gy|5H-{8cdySUo9{OO<{NCOn3m~d4i z_luCF6($L0LTG!BGfme32rGTeJ?Mp#7W6)K7Ff<(&x@om4j+!Ug&ydpBzStaYVz1W z+c4xau48f1z&rFdm z%CBFF(WZBDRD6<^3;F?xd4zyd8CyY*UMmoSG^5W^E?uE-##N4DTeXfNi>ykbzs{JOA)?|^|$y5*F`l?5l9N00mgS=^Fqk^-UZI9 zz_S~pSLH?`p7uBaBMDOdZt*D??U{;qdNT1AN;}^E4kQ8M3Vr5@O^X-K{77G`u)9AJ z;mC4PVT5Bv#3L&z!hBL99ya_}hSym^ooAra%7qTAonXTaQ(<|3qQSR~h8xIRCaaUx zGU4Q-!Lm6dQtuNN9tLdSpc4ci2m@nzF%!d_SZ}}h#N|CDV(auPQ=xO~vKVO}FDJh9 zbjOVi!%(NlbbR|n(Ys;X9pV%#DL^hC_dEa95|5*9_5`L9iMJ`jULZjdvG9z#QWN+d z7^vt;y}JNJpTH4{@F3~M)b#h?B|FDls4oQ!A z<5rfMv1%%YyBvl$x*6E3iGEO4yPGwZm`-^Dg`9WJj_X0tp_egMb zPo9{-o4d$s4491qz4i$~;hq@vYJKR&o)p2i$(6z>rU;Zb9e1awYpiXQWBT5%oWy0s zfltG4y}U^nXwJ3s-!=7GHn)cR-p9nsw|;(yt?jT)w<2Lz>&Wsu!^8OvCBk4e&jidM z5SIM?McDG2jeP}y8r%56gzf<_oy8(i;R%c{Trh2Z$r-)hRc4Xx@|th8{+*+DLQf`p z9x;`RkRKsL{ezl?^ErDBGxlrYhV<*PJu|>;P%LB4qrBjmlwQ* zt@BkSq#%)a+Xe@%oqT1TN8k7JAa1nf5Q*JQC5R5aaK#jv5o_a@+2hr|?FGHwGDma8 z%+8{4?K8YhSig;Em!RT_)u!@LX7R(f5l3i~IQ>h7I$gc;H3B-x>eT z&LC?JqKO_W1&t^uuw9FxPEhQ_cICC~VvMRd9a(Q9eSYQv$7RE3C%U@nZ;P;4{X}1~ zh%tEq|3kUqz>wyWwjbH-U1%s`L8EiEy?IvNPwHQ?homcfZ1wbFs0_ z^jNj+D!MEn3!*zZb{9Op(b}VX<&%3T6!Mj|kEy#Vt!TXH8=;_k&;H{9{RFdO1}n*H zVY0njOLFusNWY%*{wiK4&dg5b^_!B`iqKF~)IW5SSe=P1*fk!dQe}BQ2J%;`jQVnZ zKixzw@cUnv-5>`&-C_u2dq#8yA%?6$N3`d=vK%wE_%$%_SL^%ro0afIT*iKAGW)Kn z^V%A0v`(sa)H7QBVN*oy8<+VaKB9spxe@f^+nhW+))Ee-Q7O63W;88aG>DxDcJ^4| zRnrJYhBxehUR%JBh4mofq$0wvKWttXy+zeQ^6X}^8Bv3+Q|B0abGEwE96YMwJjE&a z>*c-~ZkSt&gfa9ED&wXg9Y3@pti-&-{=VMBU~1ZEA2ao6!C3Ud7}pYRGd({AsmES@ zZ$!(YgBumaNP9Yp{al(zv^+rzvPxK5_cj{DKh%@TC6`WZ=)Lq*m3rEr@X2#?O=|Fq zCx8O`P_?6q6WswRPPjqubjv0De$ck_eu&tzWwX(J`vZ0P88*LtrmRolZN%iM)RKiS zTe$7Q#x*>Mkj@SFQaCloTPj#QrvI&6_dqK(O@BWE7C{nc??}BCf4}k?%6#Kn zJIww0i9kVS>E+xv{kQ#=ZI(?=!k%$Un>2H|&_;UW>;l8dlh|;kVg?#ZY`TqBT0TM?ov8Cq&F}?^ zFk6)%IL$Mi!TotcbIvL+2v%UGAP!u?xIh4f?-&hH)L$p}Hy3kxX5Pcq_BY*?Zxn(B zulp=|{ZK5{s;U$PwqnnRs`g}#Zt}QXPJ%^z1%-+Yb{L4o9`M)kEn1ns!K0I;_go0I z_zTG7HNTxO;9zGD7d$ClL&K^evRomf&H}5ocD~+89G>$$6rnXX`Sk^D%Auwb#ZC=} zo$9a^&3FT91yRkOWv$kNdM&Lv--^G!@u6ws5e^lVARM7*ty3c1EB)3p-13m9bc={a z|8*KhLteGbd{2RSJLTt>R-}D)fP6aU@Q3Y{URWX~m04^|{lt5papq<0hI?p|K`&aI;xIUrc^TMlFg$Xs|a0cy94iLJ+1z0DLCo@_UPe8Y@eyN5Y!quxCD%`F zm&6Gqzq()ay!V=xM5#c!>NV~U8luX280j1ioH5`ymrgT@P}0FQAEzo5&_fX$^ zsEgM?GHjl`$1NB$`KhT|b>&xBKr12_dWAsZ0Yd-|IqDJow>PwEBKjFgO}wrwxOP7@ z@DHe1Q&uPj-V8eGk}vUu+x{9b5lSOMv%e889dka8=c*|}A;qLMVE$5&FkI~Gow2<# zG!uKrgyGrzSe;=elvrdbn{Yde5*sF$$3JwAfh{zSc699R7#6NDhVN@Q6nXS@brn*- z6%PB+pPY=w2i>JFpAdX6T3qT4Oie~tX-2;G7LfeL`d6c8p7#}z_X6q#^%QQ z`89|uynU?b3QQ#-_gR7xJL;w45dWnT5&Gv2Q1xAn?XI$X8EABo35q z%aIjiDdA8|g3g*^R@#Rc=y_LHxwr1clJ8G~QJEX4s*(aviO!hKYB4Zt>*#ZUvqVTk z)Nt;*gM|H^NKif_EeASFKVcEv0e0npNfRmO=ozG$`3YpA5BH{1k=&ii(~b-D@JNP9 zQvXi&kQRW9ZFNr6*yUj5-NL&@M|X-k6YaK~O?E98X#PKU0P^R3P}ook;K zM%>|SX54d^vf(lHsUbY5+D{~3M0Va|QjBY!FbYGhgQMKw0Df0M8G6Q8sE!%~I%!?p zKy`T%C&wYCtY|CL_h7KW6SZohAMS78<`jtCy-nXb#9qVFK=PQ1+w*gao3$O~S|cj7 z)kd!h;N0PW^sD&o27TRud8TCE^joeje&!l00)mu}yi~KexSw4WbaZU{`f)hJZPq$dY?*<;aJbl+)+}Cw2n1x<>G5vNY)V)~f zK~@AZDwZs zpDokTW1H&JGoQQ|RpWN1Z;KvU;i_8;f)z-DieZA85A>c*Dw^)O?4Qhsr!p55v`D!nUV+ z2ZAc-$rF%s^!{xHD~(XY#qL>_2qZlMMeO&}fIUks_#5#HkKJ5366k1e+*T%ImRH&( z$?P$UrYWvlqeea0O8w$YuFgfzPjR(9hv~6L9rt+2pO7dop`z^7h>oc;gF8U-6Mqs& zQs;G!Ji##s(_kGP8_aUF3sRxC9Z?Ij-fB)~o-SikzRXAo7~wY`>#r_K;7<^K>|?9c zSD>=t##`Z$kiMISN9@&%$nPd#B=f(E!qx(1rBFVVBHQhTtYu^?c4%o;`Y=OZG#r+y zMa%w7l@V7nNT>)>=p@BygF|0EPue?4pWf#1dy}}$%d~U+v0;l|M-^O}pDFj?X&`#6gj3m6;&Gjx=-$RZ(D;A(91WviMQop>@RX6jq znT4;fHLr|23pHNTWbuG3$e&3w6>A-p&Qfpfw2NHLYMzFxgx!z74Z6+WkXGHK1q=1R zA%k896fv_e&IsB_f&yZv;%V-OhmU+Z74*UE#vtJWaAq-f-(x5~Vm)DRx!} ziOq(YX?#9l^lvNJ{^So}Hhe#cmw>U$iak8f76FB?B=oWpDWa&-jE|fg5+p8=Ii4s_ z@)w%wX&~RPQ553bDMq*+(lV%@;IrYjUi8ZQUsB!)Ctg3+^OH2X;zh`w2N^Zd&_7ItM znA9O(tpu#Bp-`XZ)4H4>1)`)+kkr~m;Zd|T7t!dD*{=FuEs;x+l?ZGTow-U?wfqSS zE=Iy7wYm|QRrpda@Gi|dOzn;+O0w?9Um1PiYc*`GgXd@8e`NHHlFZlqWKmcR+*XcK zdC5%_WrnAiJb6yg#(>+h|vVK!AHSNAzhF!3;Y4Npo&v*x&n zwUp;glN>U8O|2oA2c&>-knlj zNn25>s`m2lIjpU%Nhqn4$h|8V#KGpOAMX{X|<$^I?9aB!za&`Q1<rB`BwzZqeKn^4Zvs^2W+n$b2$Pm%pkm;JA zZpTlney7&$G0`ie=#OS7loA$D0_tFT#oL^RvrvDplyikX$_UhYVTI^Ra>LD_SCajb zZ(%EJ?N5J)Vc?VEqlv0dC%BXdqwe&*q#*9-c*l>aLDd+O?i$S@$36z<>nV>4C&lG; zXyX?a9qp;&q5=|Am2#ZhbK;)*2=I6#CotTPSSuCyO;+t7Zl9M^7FFtpYIn|5py`AC zffB8_YpYo1o=aUN^g08CknD%@n~IyZ53DaA6^*owKb(j#*dO^+t5?F#iiBPRd#O}rJvBY; zGV|tG=TtP68C@l)8a=Mf|Fnub%8bU*mC1K~zb5}uWT9NoNk;nUvGO8Gb-37ndrxZq z=2nD_qLE+i+yhW=9@Oa0JxC@fc2Ab7r=!KkNsMk!3|EOgG0`nnR)<#mZy*p^*5qk^ z4xtOgN(-z@p&4-|GI10|2##A-7*b&g?w~};m#wCLe#iy2VJhH$2X`a0*H&+CfWzT2 zk3T{2xlpO6gQUBbiRy@&1lk*`SumRI1r}wXxoKDp72LsDBHG%IkgC>7=Sti8la^KN z<>Whlb8vOZ9WmB}j7#DL!=lp@u9=oA{mdqQa4{~be^_L}rB1rkC>vBVz1c@>U-A2K zvo|7Qv7~w0xAIWm?xaMr^18FZI)Bfz9&FQ}=~lzsx-D&7qrtLQHc=sQsB|X_rPg8* zUEi6Ewqi=Y)=cUZq*lKXuj&<0w{9=2^cgJ^uWo;a>ils z3)v{<-~y3$fpP;YE&!Vkr0Yv)=As}N0G#JH`@Kr+fKj7X zMupKY$_)Q9V%c=)R%%P*h`I9Yh@#~a!~JTT`eZzDBm^BusLfeR zUQl#!kIl~$Hkyv>Y2<76s;GJb;1GILHZFPG`0=wyRX{c({|WqGCv#l7HA2(9pgGtl z$3v1xA13MScoU#76hO)5_=_pNNb>V4t;OQ+Kdviv>tFbD<8F$5v4-fXkqEuV>_U%d zQbPR)`*qC6J`*G|uFLSYnPmY&gnItONKW1)<{Ma>1{y5|23AUdR4q;CATMoIYA@Ks z0iruNK!<}aX5vdt%$wFjEzw*WYK#DL`6#LILnqzSmxZKg@3cJ z6P0id7o{0u&1vM))2;L#|5~+o{g4+vFyu+$ob(*7{53j$hZ5X)$(<&UqIxjCG-Dhv za_6D6DesK}{|d4L(a=5e-ujJ-CWGl{&dOZW%=_|!h_LYR zbl2)^>!JyrPw(XyGHxxXT#n!_UcYByJ1@RSs;0DP=8SfhPkIo9_VpYG9#XizmK2TU zvVZfgsqBT6%r6Y-sa=#BW}cc7Ih%YrpZur-Xx}pDVBF6Xo>djl|y!oYZwu|JZtV1!)0Xhje=Ue$t4s}s{KJ4(T z|I-VgOdG9k{A+l(a%f!#Lq=~k$>4*DuY}yv8!K1`O~qG7e)G&9p&@G47)P_oB3XMA zK2pxV+jq*DT|^gkjUL@x-LWJ3!)$&yY*ymtW?U|Cg_{IgFv&2H89(HoA1aWWo|Kr` zCfj2o!5}VGP7f8LoOg}Gl<+*YI&>!BH@3{<48aB}cO!^wBB z3xpOCI22QErD}Ynx`09UzqgIAgl>V{r85Ee5}Mq5SNec#>IPrGW;+EiG5rk74=H?E zF`QHL%s|omv_670QDKeiOB+LV*<}5!b_#~s;D>z~?)&1&DV6i#^$&iYt8Zup-A}d| z-F-vgMfv`mt4D|0(l^$(f)+-%Z{PLn3ynFCix3PQcoYOtkCRhAl3VI|z!0y6o9(|} zktoeZ%bb+fw=aUMcI7kuxKd{>iOs_C3E&dyX3{6_`tA2lR{1_(8x>8Z-4Sl%PBltDIC)^ zQ&2yj^A#4Qt95gY{FNftdMN3n^<~jjJrA8@)1d!?LNv##rlQ8dh^BzWJ(>UHl#tI# z_DLgfV+{lM-YF91e}Y+QK#6ePx^=6WU8J4<*?iJ~o?vD^yU)VEAag%C|Jd7zd^JJ+ zu1ARrZe%vvs+6w%hh+lV+WPhG4^OKBUKnV~psbt>pGoK47Xx_h2{yA2}INm$X=xx8) zE!BQ8@Wu2O@reV^*8nyIzggCru=1UBum!E7`^#E3Sf=A5xmEG~(hB05Pvf*Y*!=Nf z*p-l+REjGM$Fq0m<@*`!O5xt6L3}g55Y9}i#A=CHRj@J__4{m8@pkXYqz*|=!3ZAj z{+o*quYvK4DG0X z)1Ib=>gGr0uZkYVB{?m-^l%^kRZR`LkXiRyzVFrCcI*_+L8%y3N+W&npDUf^krC5M zQ?>VnY9=#Ddpik`Iq%fK5D^|8NgHdMKEdxeh|#Y;V(j00U6(S%WXakqfJdB6`w5!z zweDpak*CxmCS`WS)#VXqmvhX(DoVGsMbF62|Er|V{iUq_Z0+T+*$oQiPfc!vk-5nx z=3h*oJw@v})H>!vQ-}Qua z>MN?Shjcm9BL|`qPb-}VQ?e$%z3dv!-)WQshPNGmgrGIjKAaMEfffjNWJvmHDMw~x zU|9$%ipeZxix>t~-GGxgvR^4;;J$5J3~(6tqn_x)K@+;PrZN>HxD=enDsk# zVj=m^)%gy*$BS`gsCLdhWx+M0dA2Bs3oa(~_Sez8hH|_8m`W1d3hAP$^Zv4P4tu>NnBEh*s?Q6 z(%ht+S0M#Z{BP}gzN6N}ahLT{Q<9%;c#ga#Yi6}?C+Xq`DS|&}e1slT)@S9qSR%PE zV$6kySFn1qewBn0G&6E1s+;uI&pIYQIi(WA?lE*=!#k7igq~Y}l7}WSlayzlH`cFe zbx{zH{u+vV`w+F>-|}-o@JHqi>SUJeVTQu+?uQ9fC4G+q&X=CO)S{xuhNw!>$jUDd zWGCNBOZ=|qMZ2Q0%j{I8BBru>!9G1XI2l(kRwTpZ?XFc>Wyw1~-=+3Lzr^*re8#z5 zqtd9dBxS5`2c(n5Fif8Y(Mllr{-?Xut}0d1nY+2n8l3Qzt5u4SHgFUA03`>%WbzFd z@Y-K6oSHY_xGs%Icxf2eF3;fTo%v^MFXTld!$V9Eh zS8}v)q-UF9+f+BzFc%&NHJFz*yS_BjsMdVHoBVifH6rDgSbNBzSY2B>F)cn5Q-?p* zg-M^)kNK@vKZO89SneP>i`L?flE#x3ndO-B*^`ezh&v-#miDvIoH5rna~j%x@4!VS+hlcH%EoQP_FJc^m5W6H$uX6w@AQD0^8140UY!hL%A)E$tq! zeH{hJp?Jgc!(C;CivV*mGd-s^SM4ljYYlxX;){Pg#Y($KKmU|ta2dG{WFQBTgZstN zX*BWf%&)rX7EuJj!9^HDSG8Y5FavU{vN?AG5T-a(dzj$Uz!tBIOUJ%rz1+)y&+7~Q z@(rzYA92rVc(~$@Cs!ylS?GP+NUw^5!UD9HYSu!HxNdA!lfG{BltF<210E+Gu||^E zTxRpjphGL$w2;rR5_~L{kt3cYY^zdcT3aEHrgJ-0dH~-fq})qQGoi!h-f2LJSJF|~ zU9#mXlxB_!t#n)|%+-@OR}Drar+Vn4%kOWNzT&LP{-+ipiN<2Ft@fp<_7Ss@WaLDR zB8PmDiRSK1+Dp8fSCm*sD$6ecjt9^=<)HGaOYV#QTBfu{u8^q@+zo)At7iWKnA}Ik zM^ky1IxPx$M%W@#ON4xWv;3<>zr(3%rAF~*UZ@@`5%Hsn;QeE_s9>8(6z~br=*(76 zIb9b>c3F@Wvn{gO&ap`DA1ibu6yUD6sFg_oo_}+`wDlft5YMG$nqfExLtw_YW_faE zp5TLxbL4)~p;(U0@4O@r@_T~{t^r(AnKip#Gif_e#LAyg%pey(X^7$9Sku2rGg))K zH9nB?8rFcoF3?B9@G6tS1)&Xshp9LVe`C5Bs}&nW=P4Hn?9R$UiHN>?z*|F?g5ZN~))VG?p4> zbKfi8aWIfCF5W!c|B3vY$Ghy&jV=p{>(!r`WR+LWF8I9xTKfQot^T+_k_O~h-lwb4 zfeJ0tb3iP+h@-B<;b#WKD%KHJl~pIXWN~7bvU{WE!r@#D+1Qu4SD;jx*RVXJZAQm5P}?1lBLirVc9URVrqx3NrgWx-{TV*NV@DK#fZL;SP4WixDc>)wrm zkox62v3*CZz0f5Fz!9KBy84v9Je5p$>Gr$Cn7%>ty6hcJbLtLb0)^C93EO~h$v@)# zw)(5cIi8pIH0~#Z&VKL@+=zZc=pzb{-NS5g0RHc$9;qS3Bd&Kh#dYIzLS}SMXp31- zDO|dEKgV0U7c0E%JSS}P!`28`0N%KJ^Y;Jj>wmVmN>${~_}#V>ztdANl(RdUPgg#mTm~2F8JU@$=6H4jQrFf(oQXVcHk!3Cn0|E z)vW&OUr+bi%AMV1gf^!qKn?`tgVT)VF)B8IwDIkuncEH0%zX zEV>)y;eYtvC87+CEljeKQ6lNTHQ5UijMW?*Lw0w9jK;q=1ImZN6fKIrY`<)mc=|+% zs+-#<2ev%P05SU*wtE`)$WgvZbL?q?dEUC|B0L+yxiiAo5!ZH^$~E|uijd#*|?7}Lv&!{WI{zhKaCZvgiRFmVQAsX0-yg1)%O}FJw zXzpTC4>?bSByK0p=(FqV`IY|f0r<~Zn0rtD^}!u+*Y1E?m8JyS=ysZIw26lkN*@0u zy4)Yx-{WhuM<6z@=ueXSEB3e>I?8nNsEZAJWPjn$5SWQ!&tMYwBv$?M%Eu?rb-7nD z4YHpDoc*G>j5K8R9U&VB4-Oe?@K*(5rLlx${~q6+Cg2T>L<^#RWiPG@}D{CJg8b zv6qzDCiOk1f7ZLfQ|$l?f9v6B(6^ogU??L7F78ttIni7f7UGK5Wx@yiHcR{O^2i#1 z=&Dc!hKf9A@q2>8T()*E^C{S{RI=PTfQFV6GLh_uHWN_td6+-**!H%`=$30ow9o2F zBhxeZw6G>A_~Bjm?o0jS{1q`2#WYne-3{(vzW6{aC*lJ#k_tF2gR$yu?csB74pvdE z!P~Y^e+g7*$U8n&)wPX{Q~w_n!?-A7a~$L6Q-1x~L0G+T>XT(s;L=jSHS!WeKmAy6 zozr0|kLfF5Q9hDTt0h-~n>QMe|9YCbu|C{SK&VHEeBijfh;&!Yy9}XBdf0Z+`uvT? zK1kkGpQ*`(`}$K(C492N`k3ag$z;vuZMx#AkErG2d74$Frx82xRec?B6y;`gFE7+? zITJbrcQ|039tYY6nJl_P92WoYAh5MO?YqHhy0?DL9(sX5T$6Nm{bg56fflMy+&?b! z;e%QrCEV2}PezyKrHJdg6e*`kBE9cYq^Esv-Ho)9y=kHHF?WfFxQ#JZ9TB_z8X>l>||Om-E0N|gQG6yS*&L- z*c7M_$}xt3O;vSt+!woRiOdI5YqI==Ekd44TXXm?ekThBGyGx0_KaV_;Y`*AbcIGN z4?MMxCBu{Cq{NvGU-D=a9b32fdW_h0+|5+3-|hf{a{JfTWh2t!XUBP^d6}#sYjH4K zk!Htgx;hiDAcpZ~XZmEdv}iiFLrm;BW?x9baU4<4rVTLWbc{h{-?We9>7B~F9lK^Q z*E`Kz=yILOd+c=c%05M;$dr$_kj7fUDLnbs80U20lD6IW4rnnnYU(A-CS+YuKjC{8 zc*$Y|23Y;6XJ6hzzrnFdSez3m*kU9*(HrT>_;sBvESJ#IwT1FdlNm;(fUi{C&P$l48TKx62ynj@!nzu zL|K3N_ncq1XNqi)mWFOTvrxl01bBXI@kvm{cGc$2uo*mzZ_PLA)_Trv0nV{2U?S~% z=iFP%6b*98SOs5B&MtljRN6*cB3`cV_}+){DjKUg=950&obAFxH(-6pfnOeR&aUIL zU$xh2h&+1oOYI6OfbPTXG9ty7;B6xx+=9OmAn$t=z$>S4+1kEm@ZOxk1@QUPb`pw- zVlLsuw17OYHC0kC5m{$Zw-X=Qd?4gzgB;l%2vY`zB9Bn{;YbN88s|&Q$J?*B?oQfq zE&{sezb&|i29~JtZf5@bbXBPWXqM!;S~{WQt9C5(?`kAdM#Pu?<{)0*SDCcV;^OjZ zQSf=Cwy&6ca|R|^>F;o4K^AypPWAultBe6Ok5tc^*z+x#6|7DT|NR)UAh>Z&g$A0R zfoFP%ScbFxSDkI3IXl37s3nhlSk8RQ?y9=qGmG3>HnutuTlZWEK*YMe#1vXW{$5&S zPeg0-_!fE|Ll?F z`q+N?)aI|}^j!1h2S)SGJ}I}_K!y&s6@nGbO{R2h?@*12{VS-6?$sxbEg@ zWjNFy#zunhq1pZY%+$pSnUQ{UEUeN#4D+B-hH;mED|Yo}^kr2^dM?1vrCFa&h3;VUqpkm` zL*_d>egQnz@8=rXp6UITh^$Owyp7>5K@-@wq%@kVgYiTPC$*>XdrNEEt#;8ib(|NB zj`n$0+ZEr8;b}M>meE+o+s{alv-!iC#|jP_i_)%u24W={pS6B2xe-@dpse~`9%G`h zJ!-3(gs!;~D<=df3lQF3!BsA4SNHA!3rf?}jJ>!dpms{a3Y_j|uv>NEOfto`j64JC zaB~&UGM3HVB<(R$`r!1tYRrx?z;M67;l78TPS;<-?>C<;A5s>Xo0ub3~p? z%T*T7;EwxEz_HOHIC+DHRxT#JU9pZ>?aVTIYO8kpy6)yckCa~)u#VbG0jF6iWwK$Q zjAN06>m~f3_Jw_*koVlTP@{2lU@iNv!vRh}^7$M9)ij0wbUZ8;|EI;_Wa?jat;Yy@ znat!g>(ddy91~aw%9{ZyaUo9Getd9%pXaeUSwkpGJF#^GAAxN7 zi=WWoxpBYe?)`YMY0$pf!FU4X^yI+w5;GsD&`o9+n$vH~C^p|^fvF!g(+INszxgU0 z!{;1Lu*i3~0S(?>T!&A4el4IWQps&EXkl{d7dZ|WnNXQ&3$EeN-n8~Qli0cs%<&{3 z6EUe+Zcd@8s>EK*COIK z?$d5JfzJux#(6Jx^D|_Y9{BP_dyjQqkpy411SuNP{7ULdj?HJ zhU-J&7Wc5)4?EK;PT4$zc20==rv-q6loEL|KKDap_}y?#lt7l|aATicGARx|h8F81 z1rb7#<(RDG3J{m4IELp+MK8C+H`aQWsAEx1Lq2wR^vSUUaXGP#poA8P5gd@~&ogeB zK3nfX{Z#1fftk!OEdhcLaLPz!xOgaoPl@t@zI|+6-x_)UMcdn15a7&A+K@WuV9K-e zy~*_R`{PN^ZGwg z<^9Kh0SIUX0wm{u2jt(^D%XD3DFs5but8$odw>7 zIi}5|=O;aqAQ8(USQ1T6B*i8R#(QX?jik2EzRuf!;MdlASo2kwBWa5-<>-q5*#U){ zc7=&B+4ItBn4bT3P;N7pyt%Iyy_Ilm4Yb2V+qiZE_@18I%4WV7G$}Qli~w zFDe{2&d-Q4JZDDuOmT&x-~r7SXyF-n>-vz?TZ_E1R&$ovnh((S`Yzy*&*9B27Gu_p zFQ&S0R}fXED3~xkKX|GkE%LbV4C&It>e~BHpG4t0z*F}o_A|!j5s`(@h(s#OuK=W1 zq7!mQ*J_Jo7C|-#9YB)7ci#6ZPdm?MvHq3$P^sTB9^d)lt4aNW@MRoBAZl%Ru5t_E zK2Oo7GwgZia0TdK5iZEBsQzK`3_I9ZqT-)}AcgK*f43;z<=EB$8}0E`}P7e3kOyQ?L#gWk?B zQNbX|RW^G_?(Z+OJa=!x8v9w|q?L1QyFY%T0|?ZcqmD*$&%{r*15Unp3cw#~q9~jd z993&X-PAoq%|FeSKo3HfOw%PUb9mX4S^m*E%e820_NBRH8rWvHnINlNYxc$$2;QN& z8OLgMA?COGV9NAfZZb>tu(Y`}VJH0|cIeQ`4uL8|UM>{#%DjaSb%7yO=XxeHgLUQwN^=&~t91lHmK0xK(dw zpIIZ^LL);PZwL`hI06#ehV6@WM<7pvTbJ{sVGLSyqeME}Z_PjUwPCdd2;HF~s4O%6 z`EUap5TpaQ%irPNr7kJRO4VbM=aues{Pl0&Ui<%;h z!H5;$*!-$!TiQomPHu|D;>W|EHi*k59?LxK0L#19rKvC2G`EJ}+GoHS zoHdAPfz?@3fm96eYEK|&S^AggepQBs%>)f=1v3R9kOG*~RE z?kVNx7cAU*^B0KhfW$4|<`tOB8%pTu9eget)2+qVzQqMJ1$Kw?$~yqO;@I1VyyG(5 zCd>f{61f$=Pu}Fjyms%h=zn_yR(}C>Aw8!}!IWWk(McqGdJf@qnu4~V=HHqKv0g}DCM{VG-8!^|W?rHchRKU=wyI@I=oTR5ev=(1r-AnIrA zFddh9qPnpf`p4IzXCD3$g9?HFaFPGT`~RPC5SD0j!1~S!!0$q|MBQ(VC$=QFuooo# zhNEfR8${PYvJ;I-R{g#lpYyO8Nu`{VuNwF%GL3X#1*0_=+a-?%AkB%utA&oQ_(9{o_dweL+3lT326~Ni{ub$(P6clAzfN?@R69 zrwG`O`ziCO`6IM^D1ecM4-4CmgKR@;4JW5V zKdrV7t>G|)$Eh+0s?qPoz6RJk-{n?nE`E@JSk#$rjGNkI_xDjI&*DhR;?3s$M)M8FgLUvsbL})KwAi~p>9qntf@yYkomg@{2K3oQU|atH5`Si{pH{jT z&8ywcwo^8cCAWG8O*wYJL(A=|UH$5G?>CQh=Y-WZvQWn;C*n~2>2?&}>?l}W!M+E4 zs=EZ1N|!vm;{>!AjOa4168l!a!<=5$9|202&Pk>_dbfjU%}Ldb+fGlaEtmtg%WdpU zj$3^hSX4K+P2}UcZ655;PXjGod#gl#jL+A|*@7uY4{GK!Ct||QIxJ21>8;M4t^)or zA9)n)#`9;26X$Qfov8ybtHkkpOz;lSkD53D6@5DQH_Om26kr}6dLDP~cP_g-OmuuN z&E8&ZX-?a9?rI}jRK@n;M6h{x$=u$UC3)CYWHHqndOHlvlYIYhF)n*(4YiV`zo^`3 zQt?;eZ_={4zia$DW@B49tL}UdZ*@{Nos}ae21@vpl?OqFD!P&JE#Ax7GwtSa(I=sQD`$bNMKlj5v#JaA%OLE<0mcD3J-2rYFNYH^ zbzb?s`4j2Cb3c59_U68^+J0CwNmbPnsqHMDU>f5*d6=J4;`bxaoj7j0{JZAx`h(hD ze&)vd*V1T+ybxf_s+t=15r00Ip&ihE+gwyB*BnL6`~CiXLqnDT`P22*zmI@k3m3_i zt65chVpjc*3|x%7?cX^afHJE?XmIhAW@lTbq5r{g!6>!Uv97_jv7>ByOopSZp;gIy zXi4P+yl_}a+u9Zl=>YzZP&n{@hCSPv|F%1*IVzoZmuXl@#^IscbB#Rl&Qrv;Ox>>m z_PSAB5F~Ro+p>DKYD{yZk|LQp}SyHm4{ zv`d9kb2Dme9R+xej4T)IK>q)<_tkGvz3sk3r-afSA`Jpcw}eO|12V)Q-6g% z-3>!Y3`h=$g3?GgNOuf5)LDGrectQreeLU<{RbR=VrD&S&9k1kKXKo)=Dw11MfZHj zLvpTj69-Z8SvCD?<6&^Vm$#uP&vQvJ=f)KH)^zMU3N`TYvT(?mcQd& zzq%p)esnufVT)+!%@3TR9ypV7&56_X)O1>G$>>>X^D{lLN`_dBHLteaplIG0?}Os~~B1Qpjf@bW32(2jzT*24r0vwb|9qc?}IF}Z&-1dEv~7FAMqN` zO+yuu@VPbMnw|KpIxVXlbKEY~H&W5D04b%)8YTNNje;=%%h1Yq{Zy4xOQiuYY7ZiZQbo1q&H-`ucIjun^b`bE zy5Ytrj|)6E;hXp9z?)>nLV@o-WwlZALqbaK7}`L1hW|>Ks4+kyYL=c6*nHLyXC-;cwKY^`q829o?In8p~!{ z^6X|Q%NN3Q>_dL~8K~v718Sh`(@yi;dE+^A2^)|&Jg%8Ze%p4@KJ;sAO(?Kc$2Uau zm(Hu$>yuykz3u5djrIhplf`TAdDjP63{XfN6hTb9FMQ3Gf_S!pIuOx*j^W<A4!&8K?B1?SaV!!Te`vs=$8Gne*C4^y3JBLWpm&u4d zP=G}q5E13SUO|18l?T&llPyQSwZ{XbAlF~t*SP2XCqlHRh`Q$CDJDm zHl+bJ`#>|HfEBKvGE=p%MD;1Ei}BeyKFvAIb^^?i0n>8U)uMn$#4sJlMy%1tC#~O@ zOV%N*tOMUWR{OUzauP~NxUcuC9q*e z2DX5UL&rPlz*#4fo_KYqwq|dP8!u%R%Tg}5YwhWFqEC``RmB?x-6#E-Y$oeGU@&;` z+<*H=+NTP+EVum^N;+}%m`q~rug8xqf3oDSaa*rfJg4_%hlf?)1==;CJOvxs`vi*@ zGn6h0o~~E*7oB>PcpiXcmlQz8^v0>8Qo)BwPt%EQ#FSnLYYT=@V5;1bK3d;p^L|P5vc%F0 z|3pD=gTR6@7P44}r;~T}G9Jkpbsi|5>MJ`Ga{)PxGtB#;!G=~Uz3ujOQ63Bg8i&ABVM}i zXSuuVxpbO1;=qE^w`s^`rew|s#a04x?n(n4vq!CE*;%+A=8UqlJjA^^`4oX!8=t-K zRy8MrgSg@T<@aQ1(sVK zFLjR@hPC-;a=sJ89FiucBf{BkH^4cc->*MH62RO);r~ts5AKm_W4&GHQMX&?0pZ>X z;7&T}qYiudv7g?YJ>$dX&o3@kQYCRiP-f;Z5q#04yP%qPSLGb#1|ezv53;Pspe*?R6h z;x8(OZg~RLekL>QV5Ggd$ccxQ6)wKq%qr2MSH%NHdHJkYuH$65PYi5x1sQye5C&Nd z_6}xR`sE~$+8vcEf)ffW+^S64U=x#*B|}#|+qYe>K^;=VE!@(LV|CK>{?5- z>BXKWfZ0_NqSbUa7Nx3%=hFJClDJiqZs&j8WeoRTTDvU@3Kgn ziwPcJqz*{9qoO?*m*q)D?}TEqb52ZMOiAW7Jy-)+fy{E7!;BQ0%ELLY7BtYHv4%pm zEuKzAt?p0f9|Bh!2AKRjN&4TX%_w;CALOg0)lF1r%D^*?WLWI7`wh&iW8Na1W#m)j zOUuiJ=0EP~(e8Rmtbcd6HSY}v9)oqI;iYnV_RJ^R_hDWibA3a-or+SVXu2(ReR8d? zr6>Q^jhB_%fJjn-9}7fTSSKf-27e&4Xve>qQYze+BWI;|yt61gz}@6~yJww>x( zFuwJw<*j4gw99o$&$4IBvRkvu*8Iedx`+scx_H#dB#HrzRQsoS z&ix*kKu$?;8#9oOeC+z~_k_dNBT_sIsm7C(3^CQA=(TV2XwHe0@h{I(#n!Z5VsqVT z%b?;;H%t&gYWkqzzzQhshr9hh*ug>#jk?e}0ncsNd^5fh((rPb|vwg`~S zl<8~a0rAgjA;Z8kE0WwtCUncISm1nluD18nVuU%c_WvSXmy(ai)J;AMT%sOpw0)tg zw*Gs9Y1CqTD7CZ_k)g0Npyb2qB?e)zk-LZ#Mp^Js2-T_qF^X!sESgZ;ai+uar$tq* z;K>{bkhfLONZ}q$8uv7EqWpq|MWpZcS+v}r^Rc zHmsI|TQ6E03R_at(Ehubl|25@n?S))0ezi)YNSz&cFsR>73f&0EUz32YxZe{+cj~N{S z2LaLT;*k?Vl@TU!-{BHoG#&DS`s96FqhRgXnyHk0K`YXc?oR2OcRu!0S5o{gQOQI# zBt=%qe=xju``*m78l_c5PREY7lcfvvnK*{$b42uvGVb9AKKxi9EkXH|6#OmbBr`y4 z$_bw5oJ-7?;#uJ7=hwRAp*p~`c9qS~Z4Rzd)BowvV+X|_NVRMk|G3ZIQUgTqQ8x@t zgw%sYG^pH_vI2Q1uv<+wZ%Bwd>5R@;Gs@X0qB`NTVNHmEqj>dv58yCY=#`U*ACBLq z%tRc3HIvQa-t>OEOz1Dru>JB+OV#{Q_NbG=S4oZO=0c zS}E3WqF)WPecqEC;N3^iN)^<%^`}<<`8R=6y|dZh8w+AML(*{qPY^Agj*=ye&2%Bw zIXFb&FRu2T8U?Tem{%@;v`6z^6~T?t+VMFhp!5Wl&^&WW15Ra%8XZe3dGiJV7}buq zvH{S*r~+!cvPTT?9Sc#w8;H(@;PPHkMU*cT0Zps4cQOafmZd9heFoQd+DR}r@Qu$jm~#dvMOrJXCDRtU zzOgYrGiw)vpjEKX%Usz?Av-}MGnw_!GTC#4Z!d1#W(yw-h%D&(-z^JCOL&R9Kk@qK zN{=}=K9w$NSEFm~c#V|40w)U3jhm(`uz}aFflA8zbHu&G{~=D}fkp$c0x-4SsSx+Z_IUX}gMgwx zg}JA^zF|6%^AY3hVfOH!zrJprd9PWZZM9u-hOvz+w*r2`}8m|oVPK}{th5w zhPQQ!^z^g?Gv^DeZQDms1`(-7h4N*uQN-)&+ZCAj-DPX?x3a@jXm&0leiKb%bi7=D z9EI}fv($m#Xb}Vf0QQ=FP^~m4@V4p5*lI_AX!Z0QaUEEO0twk;9S>i1ff)@#A3(VQ<+TGDNkpZS|tQ;emZ zy*-i$Z_oCmBXBHEsAOpAx@Ch@)S$g{>V%O=Q9J0zaql*;?|$`=`rQrda}4sT%y4VQ}i2TU;k0#7>;8wX1#O;LdiIWApQ9E9*FE5^!IA zh|a0Joq=@O_0WauMOjz3;0FYqg1)l;OkCGoxVw$Bz4C4!l{m2n&2$CG)YFrq${0c* ztWQy{Gd4D6BP07{x(T23N)UL2nhbEGU+3*UAc?FEc2W&A%F=$n(=+(-A1IqJ4xsEs z;CADjRn?71Uug0DPQ$hI@v&BSU)6i%eOmx=aXA=)oJ~r%d>px>dH#?XBztAP_u1hg zk+dg?fEc!-wpJsY$T6-#4wf7g+Rz@LBN@Y>7Oe?-Ib;TYZTtZ#w2=Z2G+%*u@?{ia zRgUp77$lD}%)Z-yXSVHdeDqo+f#mjSwBu}Jr&D7=RRhtZ6875dRPVLd9CdC0jg#NV z(-`xwBYFv1xN22QDzPSgLB7<)eN!`1qu(>^UHT|E5siZ&Qrol2aeXF`DGjf(u0Y6< zwqIC@JWp+93%Qj=7zMQzLG?Rrg7c#~qhJSD?bif4CVm!)Twt-Bh3R2`R1q*fF91{1 zWzVy-u3AvY@28o-w}T0{)icTQ50o0MUnjsbBsxNQTd9uGTuN!E6Oofqi6Z<=T-|p{ z73t|Tp$o)o(9e;{-V13!1MHjygSO*{hzYuX|D!x@^sjdeQRVsoEl4+44Lt2-Wr4W= zJEA(TR^5lzBqkqTe6~C$2>J7cL3nyP8_UD?B1AfMUhhwy7kbQT2%RL>*ZKlIkKL!; z92iZDxgSQAcNVp!ra3qFVQpxzTirfQ1b;mAM?JqYN%T5V1AV5nP-~ZN%CxIY?TA8C zLrBE{gAn0I*Eu%Lc@c+-k(=%(YhKig6nm1^mu!BOcm5(Zz?$a65D^XXiH2s!;)V$J z5bF#FT_gVkl-DC!Bm0+Iqhm5PZwPC`s4NUV76|+1$}StC$|~1wp5f0{3fDKnX}w)e zB^$F3-ZMc{mcPx%OI}c~-Q(V6u$8EjSI62r=HnV+Y+s&YxZSD8sbFOTj!l8TPev=m z+v^)iv%@XLKA<_HTLsN_!@HJcmzqEyH3*BGH)=e;?Yq1^Z0f8i4>OwOI!j%hne4X| zYLq!&rki`&h-1EWSg?T3S)Awgtfl9`~!TJJS@Gx2$mRb#K@6TK@t zk86jdG&g<;lVOE*F{nwU>4!D`Ps}C}Z9JrIF1%AV;FKffw#4exQ$0NW# z?$AEy7+cj{(327}j(33_i`X^#nG>udQgKWd{w$997V1C9#LYd8*HdeId*jep^GAGZ z6skUAL&ld96^CDyKYYbZw=0^Od?NX8Y9(-l=ST%`nDBLsfry@!uhR}4>d1*(0BMiN z;&j=VuT`i7#H{A{k&LHEF@Fdmbt_UKai+vsN!|zAZlD_YLZ+=QeS3R*suzmU|4va} zMb=kCCS3ks;@PI{*QlB`pp?iGR~6F^Q~f53-S<6OD4@a?vM ztFz>vvcz9QY5(*r#4{DaPhOXlU1Um=j`-A&)ws6-{sR))U#AINjdl3yWV{;8goc#9 z!MvC2!kA}UDS54@*<#!@F=oJ{OS(l*7oPC5#Q#-JRg)s>cT?2O>m4rP_frjIwHU0O z-2%$*N^r1=9W4B0@WZqPQZY5h*Ca}(%O0>t-s#*a0Q zSHe?!o@3(^Z~vZzuC)vHk!xEH=Zxwj^wbx7jWeOonmqyI0HO^D`xt|&h*u@ngYtAi z4!EK*|4*<@L1b)_s%fwQPBP6kS&AQb>rtXUFqy9c21Pib|>=0FeDK5@Is2A^Rr z{YjMoX8(o3uyh}ufv=EAo~-tldUh<2UBI$|-~bZdWlWr@&kZG2U&M~J@=4U;D|7NN zP0n#hbShn6$gc!T7!qSd*=8q43j#EC-t6?*9`Bz)6aI~qY5yhFsF%Mr2gIp$#UI@EEM zGtPBQQ)r0vZ|U^5>{281iOh2FV_T6$(aL^Xwb;(_uP0CZ1!`QW|9%psYZU8cI2mA^ zZvC`+L4>8Y@`|oEB%hv65$z#&ifXc6W>Z zooe+KqM)R74*|2dOjK{o*e1i^_ZYzR1IE?l5j=ZL| zs!FjNU01i=;lyL(Wp`>yJ=@yxrgR7Mxi{4VdH%?egm@T8HiN698D+$I%2AkYwP?G+ zTBMk>;?A}g^>Tw_`p;w_Luo=$!%5Vq7#~$Bq&r`Ruye0Tb-x?H#V`AkMs-vL;ESrC z>=Ds3+#L^3M1m(LH(r$~-}K#5dFilr_V4HHz}jLG+=3pp zk;PT|)t_{g?&qm5H2Lm(sZQaU6&X2gUTQ!?K5-mjg;`E}wiWl{;Fbh4SS5nZ>?!KR zc^eTOSrc}8-lVgw{YI*;U6n(X*Jq~;Q+K#M!Xws9H8_Y1x?P&2_)}>mlJCZy4|Vvf zEN071=mDzxk*LB0kuB_CnL$?Lns#7uJW%v4%H+A#%(~3z- zu!L7pG2o8t4P^2nhN=t=HBz6e=iNk%(aqjWe@uzqE0w}PM#Bhd=T$pIsOt|3i>YMK zh|#1hJ$ZUjc(&Ex>n~KfU$YP<9C$^AQ*VB480~OJqI=8nU9}e$sqVgS#dxmsVB2no z#PH24T%BK2ETH_!e4Bums=vokW1Lfaa4j7}RB_5$X0m0kxzXilzdNREa)GGG0`x3! ztX?oA5SN0HHbnqT_LGV@u&KaddwT0y`DS`vLV)e#R0*3!P(s2BAuqa8&B4d{barBx z7vit)<4*;yaW@NrdZdPe!cGe5iFplGNFaWdrEx@r4c7bpQz~OgrD5V*&WLrK^vMbx z1qI!J&S_JK-;fv~1}UkdWN{;&Sq-?|Ku$rSoP~E2$9lR%Q=vYdT5i$3I$XpJz*(lD zw%;4qD)rX{bp>p?5IN?90`0%|y{^8yxr25A-&(&0TOoHvt!V>&+6L1Cp zFHLoHhEuBhrfMw-=6vT|4qVOeZmvk%9}c!;*XDNI2?cUy@Nfe-xVN}qGGUog=bYqb z6k)T%-BjeYTH9Jrc$+hneo-NEr zY{E;A#83ug1H{5zd!FXi*8JZYZS~O>uG#>1wVOP|&$#<+@3-DNyK+c7pZRQKLtaS> zj<1xjfS=n`>g4zc);WU+;3%eE-l#3?Z7=R20%d^y+V~fay9HJxCs|Hk47T;eq}^o+ z%!`y;3Rzb9Zm+#QJbz+%yBznu`)H=Yk(Q`|KGZj^Ar1f|?{g`nsNrv~=q~;5QwQ_J zjk7Tm$$GzPTPu+A3gzWIa)H-y*Y_E%-5XUejHx7rBeXa|SBB`r?@B2;tQN9@{q2wO znX55}Z&sX)2u&0KnfKc}yagDJ@4r-8sor}s9eAD|h%+820HXtFPaY9_c*VR^4`3Lv zH{SKj4*K`O9g6!sW&@{UfdLDv%>{upZq~_~b2f#OWo~y}L;1pnj}&mQV;`)}dtK>C z3=U;B&TTyNj&)rW^2ZI6Kioy;-cjCQRVJ1@DbzQ^j`__rk}V5Px8~M*GfI#=Q12?@G@}3S+=&=y;`Dc;1CSK^ z2&GfnEFk#|TE!BxHu%Yt(d*RM<<${hGub_SYa>y-n5G0|kvItOAFG4_X)w@I%TV}o zViy*@yK-AWt|JCT&wDw!)kNIZ#nFHzLk2rJd)4w&am(u~S%p4*x8cdFlP<=vk-0z7 zzt~Adfv2p8>e;zG!7YPunS+sEXPnSK!|*Gj#%u9%FFUQGuYE8Js$=bB{20!UQ=X4p zDzF3Q1Ug>s-m>t^1dIA>k5}>|+s%4Ctt3fCA}naUExtWXeV;n2(QO>hk8j z)yKH@pJDUcPUK8@ET>Jz5lPVsq#no=1t4KUl>Jw&1aF(>?eO4mIPR?&E(p>$o1baa zx9xE*>I0w2BwujL_PAakL|o4*>kgm!99Jb)0~6%a`=?~_Sc_nW(NP)5l4+4)6|59Q+;Zbj zI#C)qrHse}X5l-@1++%rEh}sC;d7+)UiT7%*USJyXLW`T6y5qPB)d!Mesf-ryY{)c z@p6MzH>Lg%0EtoH3QwRpYFB(7ixtTOUp$PG>m|oRx_xOzo2|$cI|Fh&S)T(2_6Lj) z-si@^&O&$vqA5Q`jOZ%?nO2ZfBW)*v93jzzb!boi{Ynx(W!M5^u%k!(G_yCR?EQLo zd$Z|VOuTSl=f8=1B&}aZwMOzvH$r^dOWDX z-=6jh*3VkHdqkXV4b~n90XRZP&v=h#$-IU@ws7M1+x+I% zzT8Qj%?!%6kLO1F%dY$Dm)^~3i$l57lZ5}mwW+JDHY#Z`2fsi7wv@zt5p|TK2WlD4 zJ$p((o<72l<~QO%p`PU!`=+?~3FaN$GwC6t)Zlq1n#kM7}*bl~-Fa3ki( z{H0w(YkkKyGY=21&SjTeAT`gE0MFC&MzQF2!N|k#x1f%)J74_K19kKDd1~O$;reRE=E08Um4vwiJDGgn3*N)K z`U^$~3s+pL9Advg{AEJuA^9HT&A`n9ebDtn!wBHYRbHLa=_BRCjN@%qC z;o~rlPIxsL-SdDEkHdunAj}Ix%9YOD93sExEx5{H%yFnoZ?(Jf$))P-r%RP!ta8 zs8_W*)v4Pnhj>}D{~W5q(Ji*HGadD-gmh)@{N1@}HM@7%ThHw703oYusmK6|pAC+) z(dC&y0zZZ^|M%pRn#np!fWQDbgL2ok_#MeL7{-W?u2xQanEcLDh9Q-&oQLDH zrPv-08i?k=Nnx`<>kJ>y^ty57a35(E*m&Z<7%vTc@_!H)Dr8IG+`TUhJV})@=+gUG z*jqrN{JGL#yFbNQrDs7orym>PkTCEp%{z%p&Y_ zSnJ}c8EVf~l#U4Ck+?lX;S=JoK=+`N?JEhYcZ&PpM91u&=u{j7Nn?QVZThte*$4cK zhlJcOR2xTIED%5%Fc~L_C=0j03`rPA_)&1eh^#6aay0F3=33?=Ornx?84Z$2TS*iy zUQsP;es|e_M^W#ewUDHva>B?00sx)lBI$BG>aj{Uam0ai&PaapW6nL%RdG$gI+9b1 zl}ol%LkPtH%jl_?7+%R}StS(fCHNsK_9U;a;88740YD%Kr6ulfV$Hj^0$2~=H^Yk? zVRzO6!0o-?A4hM!(h#{fJqs4%cZD=;*s!fbCj76l9N`LK6K~;U28?Bp?*PF|y*^L@ zswDmb32eXzS~Ch*Z=-%sBV}3cWaq5|#{?K7-`!fRtvwW$e82NAA16%A`Tmd zZ|DR>dUJmSzTM9Fs8MirzH#uS03d`pZMb1#aqu>92 zxrIzRJ^yGEMmE-FzG$aBKOvs!eG^Se0&Hxvi&dAIqUL{7Elby`67$C@@+(p?R9Abc z4Vn4(O!YGip1jb1XLqw~y(n(@PL{i#$VUnwVa+o5^8xEVYcS$mxWeh}=^10g3QpX0 zho1!A(r#eR&%?g1O^H7#jSSvv9L_*7N>;c8a5tAf)PV^ymf1!Jy_1;+3RTXi&ZYBn z6a_A>nTQz0joy)e2{n@>7Y51^TF=wGFbuNT586x!rDY-}aO%0AIVXzj9hCVQE8X#< z@;D+Ve7wW~!L69Xo_`8k682hYSL!!OeeN{neeUgAc>Z!m-3UZQ&lq-B67bElC6@!= z@BC8jpL{g%PNvT#**%#wE2xgn-*KV5CI}GSrl+E1RF!6cgR(r+YE}e!7SO^E=NxjTOYePstNT=I3^sd}s)t1=-xp0Wt49VDEYw=0HV9^{fgvDq+~^n^Lvn z^3-xi+L4f0;2Za>5&$wzt_yM6aq7+I02cZLnxW8@HIo#n%ganh)CHf#YB9F&2X;{RJg8FBQ>N?m;bGVviILJ#dQK<_-Ro^K)WdYBuH z@&SS9aWtWijb1M7FGadqAUp8>eoXO|CLDUDMQGxhsP|mW-&L@6Aaw_I?2z`U<+ ziQ4^3^t|`Lnt1-K*4xJ7p9=@i%FleiggA5t4wx@Sa|YUdDAxYM&F;35IiqD}(jneQ zxY(fcfPWHqw}E~cJ=mBI*-hlQP3DhOw6!i}FE&+2em@L8DVaMoH0ppqje@}lb#Kwv z!XPERAhOimG&wdXG}!TP?@G+BFsOTruA)KS9(xw_i74;<^Zkr_6FAx>MEe4K?+G`? zd;h7z>Qh3bO&#(nmzhb!ug2d*W{6?4C zMTk!i`rB_!Y;M~8X{Cf-W{21dbLb+7o(K;+@s0x8eC@3>@r-!4}u75VVD&#>6~Jo0ue{m z&c_3%dMOkvA|a7?@={{N{aL)dq43T5QLq;nE+-;#@6A%ekYUI&8#p%Mg9js^4_arPr7wPxaw80Ub;8r~MMh7&h z=Tiy0Eix4zgijYg^0=$6&54<)Bqg-tA%aUNF6zQ`hk%fii%aBk#&Ou|Fl9M2EpS;~ z`;g1}wd89%fyQ#*NDkmZAiw*)LhDGnJQTzg5U>ia^zjab)j!=j^2T^I`i)gsKu4-2 zb2OSn5~A@+hq6Axp9a|F51&b^7;FuZ0|(nK*v1?dlHGXRyt{HIn=QY5DHf&xekjZI zymRfRbtI#!%yeAsTz&a&onTAXY~e}7@rO}lxP=!7fb0HF{&n>!N6}FKCm8NGE#ate zmn;2CBaUe|np{0&`xOkxDBzDfujVW5mItk0f({c7#cT#nHLtZn02I`2Ws-N0HHOPX z)$;m8i-8Yz$Y$AJ%D!$1uerjCBQG~=rV5RfhKo2W$u5NWra@ny;BVQcrS#Q?kpMwkP z=xig`aP1Ez8Ez~gnaPKdy)A7*LKTS6%H5O zE$;H*Q~rp7A4X{EcP3^uQd{*SNQEvz|Li#fCi1B7a4KTK+H2~wXSwNg0a5?q;s`ZE|k~wWb z|C`T-9>0QQS?aQXoY+$V_=afybMY>KQVxC&nVvh(p1_H6TLXKG;C(X+pn4VFttwgn~! zo;FZIf!nIz=%FKQ`Tiyz4}4$%b=SYq0c-m?$t}MipY6x~QMVSuB4TfM2f56u%&!p5 zE0SN93?LSN+53p9u5Vvj_z$fJn6XQU^5p0mOL5du>0lXQ{|H!+^c^K{-9RyDAPCBi$%-achK78J)-3ZowqQiIqS8NE|K zI)YE6|20&-I>p;%Wq^Fr`+ORZ1=(Iw^8G;UX5~5mxj%VDF;?^Rlk9JN-TSM*k>5Jb zCwe|De+OBT}v_l`ygOK1&H7vp~$m&%NmgP}CzaO_epuY(Sav zG?-r_whGaCz6c#osu09}{4Ne%5sj|bPjs*^lV6XCv&zI5`Rb5L_s0Q%9_DE%R4H6u zrf2)e{j3gZJ?UC}b9@$y#9O`mg^hRwZovI?vcWOUT&;SGcZ~s&Pu9RT=){Aba2_-D zx;8$e9QfW2U#`DphA-PUvYZ6$Y+lF|=?!>)`;72E{zf&qleCfVUKCa-f`USGZZqYO z^*{=pYn1o_8cGugA>;4cVpIeAQa6%duuMRoMY6cq>>(2xC3j8sV778&njvI>b9MFi zc8X7hR$F1UR7$=B)p=9`Tk=yx%|pb9(r}DExq+Q3D!!0`mp6Lp^w1n4R^EXx*$|sp+Qx8Ned4iZ`X}gl{%?kLm;@n@z zJfnSQqE22vrEPAJ{1ZczLpydoC*9ZlPGK)$*5_hT-D65??Ma^oL2qv^Lx_u*epIm? zV4S!ZZCp3-;$bHKKrmLf3g3Sxc3O1C20a6}u}PJ2P$z{w=mA_+$PT>F#bc#oV`!VC zV9eP_&MbNgE}y2)9al!AQXN{K4yI-^&&>=oIUZ71pP{CqdH>K(%+#6tuz{|}mYg<) z!|9qw?6H8-6w#CFntEku+S@<#jFp6tavJcEkalTUz3&*Ylci6bCGT$dNvBK5>aYDM zw_<{t8aB$IgW6=THzdy440T?0do`@(#!N#(BT|}l1%Ebbu{xP*%@JCIl7Wv4Is zHpWEd^5vf2_L8iJuro%^!k!=&b55U3?_AG3$8_H_%e!P{y}Ks%@ou(I&2Jl?D}-LL znh)#x#^IyT4yOH&t$>E~kP%SSX~fdumgVpY*NNT3?fyER>KS|4Llpb`Ab{4{nH!jN z{KP)bm85E0wqWOkWQRrP*vRP#GCYd9u%a&su7i|Eq`90%Z;W7x+2=2?qkj!vG_9oN?s$~9La9muZ6Pn=r2ZuI2~^~BkM zX>am!+LD?nQ~dKA3AM6f!iolA-GE}+V_g+z#$)xqX(*hlDJKS6mvVM+vHit8q;uHe3p60_IozTD=%ik#QJzUIT@4Kl zy*oF;*fw@q0-LSv{iNc=5mPE=uJYc$t3ML$Jw0_&Z^JEhA|CMouE2M}1fR7@i;)uC zqaK+7CwTCLGmH1b_q|d54^4{F4;P^J1)^#sw{G;yeAd^&^DrQ_{&MvJ`S5d&;r*{% z{VWK#MQ$9@Wug57i52zLOc(Zj%I(4pyU^M*rfxLBR#*yo)d4&t8!1>iHSZ5C;G&<^ znE+cgIcPlNkT##3n32q6MD-T2=ZAL|;9Ju0xiD>CDk;N0g)c-^o4K?tUw@W^>Cn2e z!f83Xou*$2=9`q;RT`)V(~IqmS1zUUXdBVR-mi5yZ$!vxo|j^hhlq0p(T1FWi1w4w z?p|7lmtNYZVPt^3+{tV>&;A7i18FwQ%oAHX^j>`@P5q}!a^XamQ=jbKO!li#p-?-~ zf|bs-CtsLB!(buxTf7Ci+i({&V2;_mmi85W5_eVUZs}paxD??U5rN-IYJr^oPwk0A zvXhOU7OU(>n?F?WrT0xrz3IAdApGv#>974~*KHQeu&*)r1;q|et$9d}MO}`>8 z==$)y;>Na9;@t~Izi|=8((n`)zUIfpCKRNJc6`m-k|BPlXBIvcZJ%lD9R$4;*C@Zl zb&>WsxA(XTD+^|dT%dd6>e+!51-G(^so=yu=Dw{5GzA6*vGG0|B~}IUSfPSOIw-B* z-i{hjYV12T;l*e$ukh#GB{jnk)qf{E43J)`|IB&w-x><*iYfvdiq^3`EYzxxxm!LD zG=H)7Ej!l{f@sDB$1=!Qg;F|yeE3xumOdv#PMX--;l7rBwD*C)d+9UI3&}vcQ^eo( zq+~8~jJoH*aL;k9RLCAToBMr$6|D~ax5a`f4WgkaZD}H>%G;2!KWq(*A3rOUlF_E% zbcT1jO8t5Zt^(Lg>guOK(E}+!NFZK}inZ@=6YdHk2Re|Mn$$yGDThpr`#^j3_>yHr z^h$9{-OEY<;3YXSC=Trq@;dTsecq@(;8eo3oX`?q6u1;XEhVn1bFx-E4=(1-7tJTb zzDlo#kB&<@iMw*i`l_P|T?AU){Ve}g$5G;3n}V`(z_C*$Mg(eDT;!7rD;X)83j9N6 zp{l8wRE?R?5|NfJXjwwuOvDGI1dOK|D&tR1EwY1P$zW3$YS7^@7xtPVxu7ghSS;sX zraN2R*{lUc{U|1fXey&?_g^_Nd?ISO{mMk5=+(VvrX;%{^8@4SXL8thr~?)Z5mXk{ zc+M151~kwcNx!&C!%M@$V#i1Ix6wabB>yJb$fTx#t)^|}zUuOA;<*R{{B%`1-RIoS zF|&Q$OxFqD9ou311Js(aNSCalqJ#J)yF~O8$y;Fn!KI;qh?zJzSC6;LO!}7Nn97?{ z3AuYjC3n)eD$?vu9Nu^ZJ-rt25-`uJdgKSsGY|!C=IX@}X{en*D=H%f7LMvrMK!aZ zS=LpK>L=dr3TtU;QL>%5enXtT5fsO?Jl?Ip2NWghrY@#?!O9)7K20i_9xJ z;eCmu?B!~)%tHlP0$ej?; z4~hNjdHze6{&hhD-jIn=eQg%QvnuX$O-Y%EHnpOL{e{2@o#- zt``heQ1;U)VYns}@70MI`e>dm+BMebJgm4Hty$a^0UXGxnbjpHA;Ag6@TtUXe}Dg# zgfNSfO38=J(ko{z5IM(tj;oAQJCEUg-}&|nTYh(Y`j0zZbn2zq!oBL;f2)pyzO4`+dt)U)EMksIpHAPW5ZKTujJvzsj=>CdHz(c>GT z%vlh-6Q2rcFBNF~5*Oe~r7kV&K9B1AIYy#LLr+s;&YMgh1dC<2&jJP@6BdZ|1+klO zErKpuB&R@cG=EZa%qS@PBLM`~Urk-TaXa)43j^f)dr>ht3IpZ4$U~tx3I8t=Mkt2V zg>d=JnjD9G?VPODQO&oS$sF2w{APbl{y0GycG}k|h!G5?6aJQ!Z=`4;Ffce+KoJcy0gM_b zrI0}jU!d78bxg9lTDK&Mz}oHjDLI9J8w8#us`7pWMLkALQ+EuIKfwr{Je}&igP%*XRz41| z`R$#fdjXbweGh($ literal 0 HcmV?d00001 diff --git a/doc/images/khtmlpart.png b/doc/images/khtmlpart.png new file mode 100644 index 0000000000000000000000000000000000000000..a1bb08bc5231aebf3e83350e34980ccc9433a17b GIT binary patch literal 72815 zcmeFYRajh269za)Ah-pBGrRzgb#Qmr-~^Y!gIjQS_nq%wx!dc# z+2=WP)2F+-Pj&TM^;Y$SD=SK&Arm44001-@X>k<*09F+G!}|yeZDC(_ZUz8=02y%+ zHMh)@PTwe!A?N+)A{CQN$8Vi$s|35vsjFFc6xVJ;KXM7=B6ynNtxX>#3ZuQrbKtZZ z(JIT}Yw1kmIXeFgQXqy&A`!>4m2?&b8lvwCahpO#Un}hxTnc+{(k?GAer4VyhROf~) z3m1mK* zZ9fwmoMKwYpn?IgWTApzuHT!nZ2B#vXR&amt52;3uK(<-c@cQJ40rNjx;bvN)bs#9 z;1ah)NbC9z74dvsfV&aoDq;nSDfAu2awN zTo*1N1jK@10QU`&FMEHy>e1q=Yzpu?zx1~Ibk(&XGsf*4eYmSBg-sE&$jcPL({*@C zN;xm+=Z$K;j{ixZj%cTUUx`}duzOK4IjUwnCl-36+WhYjbSb6lqe;WlM$?KJkhcc2 zBv+-E*9uZ(5? z3MUBOiy-}b&^~sif~dw5qrm(FYgU`d9zGBV`hc{zu^(u~$;Wpm$pJte@!k%$Lfmgd z%hgeHv|T|@`3=@F&LVa`>%V!l+U4sy-jT6mzkw<{a@dSwZU^5mMyEnmxLtHe`1Fq& zoDHIbRTz!0R&VL$d5)Xk56#B+`!+NUU&1nfOHrrp>X{VbP%HTCMXffG;JC^aIV^Bx z5ja(Tu5RFA4r#E7O1UoM?1=Ae&GRQ&NURo!aiSL7j13MxS>JTf`yjx=?f_QcvOD_r z+m+iRGFOy3-|Zy|r;LyIoMAOAA|~57xU1)9q7<3)C0FQnR@n96|3IUUn{DsE(@#1G zX8GTVXSSCvJAk&J59x-fe&vOBDror$`X59HM6sDbfoAi-IFrB$+CvIs8i3t7wMcgp|f1-=9V<+&l@BQ1c)0hADSC1^){SLgNa;1^FIuyKgM>DPc@`$=8g`wE3oJEzMC>^qW&a3t&H*hd73QFVgi1kj-6{ zK+V*$3!Z!ckh&=j&~-};=;7=-y3B9cPTrh90`3IL@{eBxc{NuIOk%aHPZB*beq!o#hlHHN5*|;yn@a-xUK-oh`8TMy_2x`p70pabhb+*cK zVN7s@nD{FZiThYwHGf8=$n=?-jdrc7a~!L2wCKsLi#Tl-{U8ZtRM(o+BLCOWI$Hp< zJD%$PTrU;n>f2IRh2*nc$|m41Ht5^dg-kO0lGh#__nkJ<@U&Fo1f#_*0^}*4z)Uay zfimX>VSURq!$leqHp9r1bA&Dj#7(HF85Cd8kDd7#5@rZbgWJlv>nr_f5}Q zEx178+$##v(5>M|?buv?;wljvC&Y+>py76qf3uq)xP$kEPvVib_1;PNY9UMnmKSsZv36Y1Ohf$)(s*HHODLZ0sMaxrxo+PMsM~Vb@ga$ zHjA~JbH0yM$IhulPO=hEL>miaDm^THsOiRf4q@?Wu|>S!V1U8j=;3A-gYnAm+-SBN z{bQc2eZD%Ae2HUqb3Ed2jtf`{&4mScHp>Bq_G+IqM$YV;iHYvudLXbdot01nUAv9m zIpR>8{KV0-*hhneLeuZFX#cx&ge>=`DvT#m5WR^x2AUjMRz`9>nV8vam^g1 zC?*QUlWtb%vg7s#*I%n$h(L=s*=Ur*Cr)$09edpNkWIIJ>=LgF9%_+IfYs|_lRo-~ zMIMWHE4@S`ld&)2OH$9tIQp>cd*5m=@#PB+?cx1KJW^|(%dQvo`xZH)Y!d;+6C;;6 znu$X?t?Bd)M+(fz5nEe2fKgniONj{q#L+UZJT>RSAP#OWidkhMJ>hwh!6zkcQKMuGi{w;@7!TRK-iO~ zBrQCcDgrk7bwl->=Y3-4eBt7Lq1gH!m_UGe@$vpWIYK3a)bqqQm2M0gn8s11jOxx0 z|8+lE^S|WVebY77wX=D;_UV<}K?8(~dhI^Ns8?tgH{j8)25}gyWjbw7~)NdLCsb8KWYI-IZt#^i_(s>b^;A5e$?AWQe?~w7K{fwVrp)p`pE?Mi5Rmx%I z05X?xbd;~51QGx;$nBOtru2Iqfb}=wQPEq~XB)a?x$ZjjD35{N!D>H!j%B9?;wwKv z@l=NsGY)O0v!@HZW!FgJv(Th4CKHc8ZFFOnx|+D~HC_X_JH6JIKIp4wu_4NG+z&RM z0Jd1OSi6EyLGn;o==a5DZcUI>KicXQ=;2o&#k7wGYhn`A0Ba34bz-;zx1Cm-I3~fB zPLHmsY_9(IK9QR1Drd2C^IR1#h9FWQV+>-nkqD#=fWwZOzeA! z5lK2`rA=U>9RS;|a@frNYjuPQtBn4l;q9)7=sECyyNy*9$N`#N`FRz3ZgXuX<;EM# z0RD#!b?=``uO*Y0#{QS>yVX^+@4v>7m*FPMTT%2UYBNV&6q0omzIBwVwLph`h`&UJ zJ?0ns+kuoDP@q>H_b7(u_d{XCk?j zwStc27vX3X24g?bw1o;Z`QK!OPC`$_@|m4Ur4*a)4?HL;bF5q(t5}y7%3}%uNVN#? zT7iw~*v!JhuyKA&Fmwy?OwD%VX;>k9`U1t|CmY(O5(;wOFY>9vk4MY%6>a~g((mo> zU?rP-Hp0a2hY_>&E%$Xe|LKC8;Biycm#SM;=!b(fQ;%E{QED!L8kky!PQfh&G{4^u zxt5V@%ypY!HPudzm4}w+m-~Eq>jtydyi6*LcJfTV#C(GV|KPCSPzZ9+9N&uzKo+<` za(_3Z(h6*L<`KCV)ztG>SAPywD&J(}b}J!X3V>^Q9{g}<%3cUZmI9!jG-$xcs;E}m zm(fT*Y90yJbi<_oSh?~0_YyRE;+P&tVx#hYJgz(T@ZLmj*XXdUL}7C|FhH`+Xoa$z zx>>IiDrYF{_?E0XHHdRgj@QWpJ#VNud|Fnyq6D}e=~}!xYI1G$wJ|%ca5aq>%U`$6 ze`_SSTQ71&c?1^A@~n&9%L;p#QrI`J#AMr9{u$#kzpAu)J|5L`F49q~Pye6c1tZo4 z^gKmJW{||JZ|NwYIVnu^rDJ#<_UPR4Uk%6K8VmS2{}>!~8KywGxMYJ6O4cDX%AHUj zXR@BPYtNT|B#{yPaOfww}RoAAVM>%eH4HCXS+xVH34ApqePloN($-II?kVU6N)aT7->2ED^ z&c|q|_8~gGJKDrNX0|)X7+b?pS2AbBjj-0UIk5{ajG^1(CUf%1O20O$9Bt?WqM?Bo z9*cWdyMynkUPYO)hTtS2Um79H>y4a@@@?N&Y=p*f!onz17Gt2ke6mKPSNYph158ha zkniny7v#0u)7NW%+x||Scmd3nojb7|ZDQD+qU{~J{Z;GH`!1aHJ&8RhdBm(10n6)A zQdMI?cK4?Oh=NEVhxeigPL*kJ&WCA{L1r=52UIJ$DlH9c!!-bzeSc31`KJDLk88xEV8smP*jA*;fY>kL1(SL5J z{=4r8{??#B+2C@8^b_4T+K)lH z)`fc=br1pO-*Dub?c$s>|LJm$bFg6Qm@`;^TbySsUMbAPH-wNGN5H(fTnm}Ds*s@9 zWKAp9Srtva%IuO94v7Fzjzr0ScXu4;e)zRz)B#W# z-{=ynoi}!pj(JL7Osl#NV`QV-&INL1{)!RrX~Hbaro*Ke_dkkQ$2*GxaQN59deVYW ziZ`{LQx6*dHAFnd3vXyiHhwjw=$eH!*N)(;-i}XR{6x?`81~ ziRuOi!Tj6&oDeu!W9MtUFNIvbU&`c|wuB?d`Ok0lZmA^ij`JDT*Oiw!WY zFSd;7JB~DR2E>!E-92n(pKSRx@e&bmg(2|q8Y#iv zoKD&@1r{?Yhla-29DpeU`tT(jQ;lCOEXbX#p6b(==SR!o6aIP7@tvWV@z}FpQA|XcPQ9#I7f1;=#mbT* z85kswPx%sri<#CO6+~k2K@`{a=lpW<9a|9FSdw=dGq5*!;BSRnrRrYc(Fd^=F>C-O z9A)7pgOhdKoT6x;+&X2vsgqhdKrmxHSRsxk(lY=rCqd2tRLAbzQq>*cckVAOns$m! z$nb)1G&0cWr4Vopc|7BHn-My} z;nez~2Gf`p4*gD+_M%mL`P|Ei6E2V!-6D)4{s7~40u|dz@@vIJsy400XEF7B=iDT5 z`h%0N%%lnKs1eelwB%YD7DG0ijG#RUqyTSbd2s+_rm;%Ml z>1)=;>d%JvMP_z1(tcmN^l1*=2QwNy_waf>Dt67zPQ!nYVdqA$$4D=|h61>-II!(l z1La&7wF)3UEjkp}TYJwL`x1cT#zi~1VcTZBs+DV}e6J+GO9}<&XmgN&+-Qff=`Q5Q zFs8gXCIb>?oH*u^Dn&r;J>>xgKSpCf^a#ZaEV9HeLW?@%dD-ODgId$!6tk3-Glxn~ zkH(F~TQ(EUKGT(-CTx%ysZGSRhlEQxuMl{zd0I!4B2L~GV^HO%vZB{f&~W`d91?;h zQc7VF2eS^0AVi&=wmqUr7y@8{TZY4F98!RFFGE1ODmUOhAR-!Kp2q^#3U}GbOP^`( z+Sbw8E;kY-)A1}3e<64-+zg+=#wLWfTo}V%T+LQ5RBD}sAFaxj> zXko_#kjPtTZuTY3hKA61Igv>NFT7%fz5ngDXN`)oXKL3lsGudC zXk;wRrM~vD;(ar3Jw+dCD>8q86rD?C+%M-#lSXZ{~irKQ1+C6DhqiHVn`C%H9I^WmHeCv zoId)#>ysQw%e#ISmwPG1-JdC{9N#km2Ld=DW2$%58m43vx1=1K4^|fZSOJ>U4S%IG zy7}b(ld_TAn#gn=VHe!c>x7MsN>}LYJpMNPhU_P&0S|;J5+Q^{ppXQ?np!0%%H%y5 z?ck;UF+xZ9r~VOjQmpMG^VCKH2K|Xf3EJ4X-(?SA07$(pvWFKbYXCZ%Wb_nba}Lbe zAe-=F1u9HiP(~*q8MsVBqkwVX)=ZYUUt@U99`9#U&YG|d(7ye&_ow5XWDb%k)J@#c z&mt0CXajSnN)m41A0NOmeQ;X6TC4@Pe)=uua?+SKNy%(v=#Y6a+mY6kt}lf_I$wAD zu8QEJTpHOBn;X*+_Z&JHjmB{d1%9Up#PU0uzU~ZGm#Ea;wzp?sGg-SLJ8SRlE;33g z!R+vGZhMNr%7hMBg$wMxMMzprMAhe*CndTs8I6quE2Xd#ZSGld(^7r0qs^hbm7C}d zwEa23pR2dy&MKE;Ast`^3qaxAEs-aizVcU9Y;@61*8vFke!Qy4h{Q^g>_`*E`3Ny$ z<)phVl}%|GR@>!Vd6KN^$`$Co?L>}^(CwgKT-9pdntoVSGbLwhqGWxa%rrE$kDUI6 zfBZqk2uV0~5&$RzOBCB2XMC@Wy=BkA%g_!X(mpnLhoYK0R z+^N^%#vCE#kFw4JH zv0+ujV7e|Fl^ruH!%x=6?k3qIYFhy5;ZbCg0MAxDvVkS7h7mWj=RTV{!JJb@ zWmyJugMvEYF7Fulag`ODjBsqYJ)4VTeBK;hD48zJ0BEtAXA_U zk9i^bdyQWmiHA?rdhuL$ijZhr!`)oGaV{FnBoHU$B+gw8OvSd2O+=+Toip^SUsV}f zrRm|DI~l9CX`wis;CzBf;Hhn~@sp5<`L1b*5q7Bu6cWXNmZCZ`dFn4T3cH$=D8gcO z0dWz@Q1sB5z*Z`L9iKIdP@s(a1Jx#wara`>_9sf#D-L&siHxn*PSD9hpt{dq>qxJL z_O3DB{jBZSi^0$J$XsRS6z3=~S%@AIc)#i$ftKBTDji;bo9JsHyl1{Sd_7fdlVyXxW{(bxH zm{zcVK`y>JADLjOg<2*cfhe+?>Kj)xa?u@2?1Nb=OP0ARYY{n(ctS?FlpqRb9H%OF z|M;igK;};EFC(QmMXUyj^NPEj!73V*lrRaEHG`bT#lonwno(@txwuD|?4G@dN#V#L zuLjNyNr3c=5BLf77GJRZAR#b567|h;IP(pi@$A^PJ1)&I$%G7m{3M*EbFux`%=&ra zVg3@8Yz9^4J-nD<*^sN0=!m@IOZXtrSg8iAOGV^L^{8eK~8EKY5RT~el0`0MM4Ngkj~OJ-EE zWi;Pv@W)bEPMvPjqgCd9-xWl46K$u6Tx8IwFw-NzhRG%*h=X#Fno408rR<}Mm?af` z0>`J8C{Ea(&o1vNZ_TJV0A{uf%&hQKJdYrBB8`c=B|V*H{oQ6pO*Rl`?g`^AL1n#T z{}HzigYx5%M2%qMlNRkR*4VKGbtV6VG@iY9wOZrl$O#<-j_%$6eHUQIK0tpjrFbp` zNf^_~>M7zeo54zd9;T_xW=`pv+sj_B(aUdTWxVd*S@BQFqR7Gt<~I=<#(!qM@>Pb6mmg`MK3c|HNT6*4o9IzBm;U8af+dPr{&Ec} zc(rnXG|ot+uqCAeGaO+tVl8YBvbOkl4qOzXOSZ1htWAYKj_E{+Cd08q4C|Eo4hCB1 z?nNIBn#%Dj?f(EP%qGuV_N-yuGi%44zM2nTO#>rYzBF{C3J~o^h=01TGV7>Ln5nNd zx3~cs#!C`CoMklq(VBspiPvB45X>U=+;#&u2Qx=3P-Y1 zs*E3l)1_z#U9nj!6}KOf4I*;CU={OL+s1F+G4qm*Psqov@)Ap6`7xso33Bs4U&(Ka zCb64UaiS&|IpC<#Nqj!-i$j%IW;-rE$Ks}f6-UlXQ;i+|906?21IB$THt?O2#{D?= zrmRsoqw$A{<5Pxo@eL9r43FGGA{#@N%H2JOGbbV}e;Q^PRl~*CaqMsP!a-Z(8y;Yo zK~r-FV#8$br0G2$VKXseG7cXbUxRZ+j2l;#DtS9DhHTsV4N&yCQ-CX^{;Y9MiFLmY zkG7$nu&ap{zSaiG0<+SJ{fh`?p&`t!kNHU3XF=_Zi4T6wI`h>&X>AdtCY>gI0Okf* zX$mt5T=PB;g0(t5Hbx4@T2_-|hiWmW);e{|ciwL=4GiXREBFKB+@%OU|KQ@fh%ZCy zA8-SJi?88;o~dTwBJl)7o<91uyJ6ux5Y}ZwpxCeM^WH4zXo+*dhc&G-O@DGb!kvKC zupj4>O;tilf^yZO3o}NHQciYGg_K{VhN$UVC_$ALj0%OZLwYHQ)p1Pv^~G!TU#nZn za0v`D*Me4HklLk zU^&#ijbIe~Wycix`-in)Wu^)JmS?}TaTW07dl72NxJW=1FU#!NK50g)x%)Y6!ML$T z^ShV~$?O18Ac-OOWCU&s!#S0U1h_W)YA^w$GnZLEF3@n7lz{1iUT~NF&#pBlHB-C5 z%lmZb2VHCyEr5;kS_4#Ac{;x!&tAuivS ze#&?uk7q@IR&QNN4q3Y=1AZI@UqBg7bo{1qH->E4NC}OUJsDcB(M|D1S&4avZUyGd zo#PMTVH>rt*XWe+vxbb34M>w>M}blSTYOEgk?O$KMPY7o7%EoWZ~zK0_{I-}%?LSt zeZYUhL`4M$CWsH9d^a)v+Lcr<$?@@vg~hRSzDV!zI}iz=rix3zx)@_uD96YOH9;Di zSat;Iv7joBCRqt#E4P1YeS^omNjJleMpN<^j^0KiY!k0v9YD^=5`2qY2h@Sd-DeWT zjAUkY143gb3L_}&0)3@774)&o@&J5=V&uo{#x`-&=5q4Zlk28OW2)01@y=tmT81t0 zd=6A5G(p&#N(_IZs74@K2_UF$LH;7t!$~+b$v@qeK&3|ekRm=T>Es7$M#k!o9Jv`|qpZ7MUjyKm+M&Zp)7|@6eSV@e zqM_fUX7dMv)l*dCD{99ux?4~Uafkng`||tcjo3535N_^%gZ*$_ew_k5K%bGeVLJ@j|rpOegN@S z>_TEWy>DmB#kG?;I*|sAaTF~K(E`WVmM7Y*=Xz${d^MSLCy?fpmX2qAA|KZGL03V8h5v#n*YB3}q0RMms>Eb{3{MegJ&6nye ztrCMrIMronHkrs=5Z)8DYdo}(4{1x?FcCBU;)s@KHy5JTLr4nd=?pV|a@%#UXNXNU zE39X%A{dn)*LqM1_8xt5{?nE~+C&`8KQw<7+7!JMuRjK-m7YBTZ<;d4bW6wX3Z>&c zF&nX7t8~wLysR}#hGxa(Qato2x01A;CRy3q-&D_>i4gpl%>5~BeZwv09Eu}H`YAA! z1fL!_S3&@B$4hfQ3#RI`OPSTcLhY4MoX<%BiZa*0~ zUTuzRTk^PhvB?%>@y{l9R|lb~NOUPVDH4w?C~FkOAj5woYfI^rmeff9@A!jegbH3{Ulv%QgE#a zzTliTNThb*N1=(?QJlJkyQ4Eqg26wTq8Te6FsttK=ICwPg&tLs*V`O5Ahnrf^X;#F zDHN8)wPHJqNj`#aD1MDtvFj|X9?y$)?{{9@_|%by5Xj$nd*ZHhA!6oGC(cR3N6i;b zJ%icw6mv;-UFc0qYv3coWDY0JUR*}RQnjIWSv^*~k%_*2=<1?#rah#28e0M-+0&%9 zfd&Ohx<+&krp6$)SaE!)?g!dOCaeDMg-82DbK@Ka3DZ0rhDyMW5!HsFcMp#{`QBd5 zURA=|;Kc(GFBsN{-yOIUp8o=5m?Q2!0m2GT$vROhVd6y3P|^!}#wm45V|{+_xv~Yw z(#;ai8-_z?pri}<3_>Kv`At*95a0)j zbyOO@d-&GD62A~kdmN=O(2-=bA27o4IruE;BarP`bBx##-2I{XISKTMzJs^+lX8H< zJM%~2WChlhTbJf#czt}96IuSP-Hu^Ft2%u%#dYVEnTxOK$gvKU*!*#A=e{f(l1dRC z8X*owbnGho)x*1cWwUdbG{T(GB+dQnKYP%)Aq=ta-Gjbsl+ALZu_K5$h%;eu;g)J|$~2+3DmOg-){SJT$y2*D&?a zGyDu=<1rbsb;Q-Rl41qE&e)2MLS52*RY`3Z8MuZx0!g0JBKO{}PWQqqQc6)%yN0T` zTn?D1(Mht?9*+Km*Tg7!-Tuq#+r}{@5&GrkwRQ1eB85)E%gS;&7g*2|YoJ79VODJ@ z0+BbGLWUh?Ro6JTGqHHY_VEQW{Wag;D^^tWz|9eX5YHV0hOhI34;Dq?{XV=z2zh(7 z`GC-IM=82RoENY8lZ%p+Bf@c=e(b&>o-lkF7Fy>Ui_w!A#t!b9z)x#!eY%KY#y=oc zOqwyh{reZf&c%aYId8>rMJemfgki*{*ljn*lv`^|yE~{1EwJuck4EA4R%)#()E-?8CJ=x z^&-=_nnZ0S3n6a{n~3LI@A66evK!?0x1$rRB$@ju0zM`u&Ff@(Xcik@ocC7Kt^rsu|_Wk|$r7k&_J@}K( z`!2+8FNdq=$ygt^BzTg?F)>%4U#U0z^H#0aFh{j{y2X!O>Vdkxq!b}jy%z#!hVg79oG|%m#IA+rD^>^M#nXCX}FX_V|49zt-qctSH)pL{FEpq$b99)=Hc2bu=C@28>l=$_FfR^X^>6&c(Iu6 zd6#BQ@;Vo| zr4w0M47l@s8*8fCbmZXBjrniBg4oauv5#Jlv1E@^w&zMJcLKam;}kfC-Zlq&S$niX zp7#k!v0mGoBRGlCkyu=(n)To>>m^&&pnV#rHzOzMrAHpKtB*aY?-zMS%#{A#_h-Ia zM27bCUy!8ZnMNvI&t@ep$*8qrS38hU8{JI+qb=mt2N5?xk0KmXyQ22E(Cp^eP(sU? z{L-HY_#_Q@t;r}DC=~+i-O0?C%VI0+-XkKh-6F2aSLlkCE2kH)0|H=}WK`xy@4XVl zaRcho3F&Bz3R6`r0w`;?GPJY>zvf=n@socXwA%Qr2hsdN=HPAT^S3&cis#oOf2guL#sG$VqQ!eh+NoEjgjhJ{i;iF~Ck=$68h8GXV}Y77{b zj2o4_6y9vXrI6qAWt41^I&5?IsVL-uR7!J_%HEC9v08z%4g4F3am}7nZ-CV34F6O$ zytC-|bjGF#@0s!|mvqg&Ypy&lgO))ie^%y+t>qYFU<}nUtg>^M9Q+0S zGU^P?J<@#cOyT~CSgA^`GRSN35Coo8^*meCUoIL5DH}uXd1-aCE3O9iEoc4No4WQ| znQs{PhXJ3f`+tgq_4z<4oNSX8d%`!oGXwkt8K%g0o1<0rNk57IUj4k2=qHr`UnvW_ z7fl)KWyktU*7O-3g{CU#cw~)idr9jpynkK(u0TSt4;-fY&S6aB3pB+!+XHE$D}Kk=&c zb~+OJwlj5rI27kzNW-DFsB zNw<@Q%6P!yI0#zDQghGVy{gZ2udk{Ns56DfzW6$0`p_UrtgUOQV}+DZPj1$IuIYt2 zVzY1YMfP*zbVg|36h_NKyN|W&?}C(KekTv=&ZNTePonjQj2iy?{t}#$r>vOYXTpkV zJrz2+JFn-zZx|N;)K+mUi2Bx_NJBkaOt@@NVTaxkfngfky;G}8HukasL9=~{T`f|Muh?okk*MGlj=%Dax1ow0#;acwDTs$G|u>8Yf`FHCH1VF}v;8n5$N_B2$ z29h{5p92Sf^c~lLyr(O@S-atzN6deKW`B6#*4P*sd9b4h$IVm%1{i`*8xmNFqA?m| zGroTQwYaR=qeGC>^!=zD35~pPeCBoYgw~((JFt|huz25oKvOOb`=Ei02$W7WKw`4u zT3;`qd$d>u`8u=kLOGVvekHN6MdA_}Ry^MCWiHLv-aDdw!cd%kp;r zCNtYQ%ck~a@;Z6XJ7>xFAwIN3QIX1$*SFc{BJy4eCB9SR_zH?FLRaGyx0*-oXKM{s z1PCqjP$vS(yuQd0NITz9NsTdkTM)QE<9iwIyBwgk>)$qXznIuqrlK!oKY#xF79KhX zC2?};hcEO_&qD1BCqmrZ-0nYAINaY(R{L`VEGEQoVVPfN8fUBpd{;=$bac8hX~z$D zDGlvc_GyG(_nWzTZCECCmfRA?6B2;4tc$F!*Mlc148NE@Bt1qMaIG&oL!yz&8n1%Y zIO$WEVEB5>svl_OJ4dV<&CXYn=6&eWcQor8Dd}gdcJ`Q8eG*bAn!*kz=cWu}a*ql}ntR`2+2W`TojlMj8fzAAku_xO)=l-U`j=D@2Ozp(};`C{y$~GN?(b z*i3UAzE?A8%_#w(Rvm6+rpG%2$@DPY+6G^QmmcIypem@>j0!KyBUH?>n{6k;6c35A zaHYLAGZ%2c7SnJvUbbD)GQgbRutddD5y&{Q$nr#gqqi@RXQBbb`?XAm`c=BgI%%Qx zjSJ!|KGe|qfGRiDPhOj|7CyWPmQp=*sUZVSlt1{L1gdD%ScsFU;K2pCj>LUo`=amN zG?B%3ukGx4Xshk=UO^P4MK|oIxUi>)Uj|;%TP9eOwhYSXGw-_ZEAV~1=z6~6#3K@C z_qv`C$XR7-ICmvNoCo#GwF|x#gzBvQ$X{gJ(f6&qy2x;JG=2Ea^KObsiD8T*-MXDxf4FFH1*c^J#G z_;)L1Hbpic652N|M!TCk>VN~-`h}-JEmAKkD`r)e zTPWO-Huzm&k(2l?bUio6+=q1y3ra4?Ws)!ZUVLCjzKTGzCF+7$a4S){K^mO&gVDL& zgiQ4t=QNhEzy%M#hA+twG=l;{9 z`UIk)wn|E9b(MfuN*U6!0s)KWG>*lTY@AjdEIKhh|B5N=K01h5L$1AVxfi&($YWQK z|5~(6CcKDOrI}*nWwhhHA@Jt)yR(^e^jd?_Tv6e?!@IFV&u;R*`@B==@leRMHIXoS z0H08N$NeqPQ1Aib%LiIdycFVTd%wSLp~F?R4HN^bu&66Xv(dm1KaKkDsAy`h-kLz~ zVpg|sQCDHtTnyS6EWB}C&oy4L5fwugceK07X5IEpw073z)urc+VDK&kgr@7P$`8R7 zze-4|kZZ@q@t>ai>dIqp9IQ5@-M>{yt3s%t72t-+C|?xj0sHcfj%--i-<|QVyjU&E}`me02@sv}h2}_$G`(OK0$gZ!8 zPE%E)^%B%W7bi!T9^%=oAaRup_v@_N&XTLy{= zjMwsv^GFQ^HH*=$zX~g^8~<+FI~O_Sd|No>FV~7LaJ#edzS%Qot9QA)ZSJQg&hjnW z*|<8m@SNXIDcBIiwyO$W2`#c^nb$|EnZ(1U{18t&pUPK$5}GW)lWbikEeenuC~?-b zuVkQaXsuIGHWhHtcQR?+YRx1PbFl`RR)d1#Bn)%pche?IqWHx^@`V^O=EtL!V0JyT zDdlt0W43?Oiszu!NPI`_J(#GgTagNcAsYozo30!Fric6_l=@uYAa#IPPnGli%pYF- zJO6DjrB-lY;HJ^|&e3mt93DQy5f-JHLF5_(hT)f=!c8T+|kBD~!-a(TkY9t?nM2hWf@gZ^oSV;`m|X*$HZoh=>FlmOfn{ zH-K@M;={FtbYpyuhrM%J?O&7jtCoAylR@(XPs!PcVDzz?oZ40x3P@yte5cF5WtIUL{?l1~o4HKSK(72|#?l-xal4bfk9JOv z0;XwzII;@F=tqFL8XGJ_5)%M;QUjYCfuSKXplWHFgOcY{&7y(^gbZsTrzc9nD|Wv; zKNt2-(;O@JXFlN4+6_mP{Q4>)TQU=&AEB*=98Hb|K1m0X$6dq=d9!vRO#dro=#QNc zS7mE32v%V$zaC`ZA4BzQW_VT~S%-Z^F<|bYg`D^W&T$g;*n{VF+g&xarGwJ`G=WlPy1pZy?O}%s0`K1{5xPPpB-T$NCR;0Mvdr6K}7so|9V67k$^?-`^Eko zGMO1@!L%|De_HgDe%Lnqm#aV^>XQH!D+@0s6E(``{NGq2flsdvKz0&|FWm1C*iVfr z=|tZ%+4m{q_i<Y=*l(3grs&r2Y;g%A z5qOjW=s8)fyu7wrv7Tj8d@@j8A$$@sI+N|dANsuA`lQE*+IQLn{OD+c$0$BMKwBBI zIq&e6{MgFoB!U@~QDHnTDOErl!89nYwqg*8mk({vCW~5UJ;8X8HQtk&l}Qf@{4;zZ zJ!UUn_O#^jDo+v+;`%qF8Dkego~qoZYeIpv%Z$4XUt*uaB1ktd@04ONX#z67=6X(g zy$W`JgLwVsfOOV5{2u_^KqJ3%7%xQL%>j{BlbUbyRl*OB^$0Jsz6!agB?TY|0urcS zocA_*o%^70HnPM=bN%)k`xO9x@TEU^voG_#=f1c56Z`b*8aGI2EzDAYHH47ReL$an z9a8jZt)+n0THYY>x^3nAL|&JEBSLO^Ta2I$v8?*hLLdc6<70Nv21Uq|zG z;s2ZP!vC`{_2VB8y?@yMSAEf$h+kX0?L%fnONFJ2^OJiUfA<&fyP;lb&f$h_Oas5Z zW7+X8=gMXf0)7GUF7WH{1)w2rfKK_s`7umHfas!XyvqIW-QvGD*zkJag@3+y$L+V7 zOI?UA^=+Vm{(;Mlc<$xD7Z5wPZ5jPQZD1oWM)fmiXWqAE8@&#Cci*YMn{NL6^p0@g zw|C!l+m2x4FVi$VxA6Z)TebxJTDq{X@UgpY1Cac)j(%GI|I%plmW{u@rQ-kV%Hsbx zmo(FVf7h7&)jj~?1_Zx0@b`cB_qAHB{*(HJ*^~eCwe+@a+wS{J-ZLKdXmfK(w*R%?b(D&4G&K zrj8aa1Oo$M7y!7`xU}%Ia|6|W5Ct~|vf_J{0r{TFj@oYoRe$!y)Bbxzu!&BcIuZRe z-VzSn@tY%QGoAZ~nREZ+!bTc6Hy?$Y`nd~v|5%3tl9pN}ps#6*<~KZ{=Y!72Po->$p=z5azdcfN7%eDv%8YZzZp zKmOs5H~uSMGoSduN&i;|Muu;rcgfQ;)6qg><{zemf#8nYZaeeJ`R_eH=}~1M7yvMJ zV(NtxFKqM&?)cEyz^@Hl{Mo|fi7EXHZ25NqF5@qb{@38ww(#rXg&&;4|J>mBZ}C0< zLZf;5AO1Xpnm}kr2k^3*-Rv4`tx%T_}J~Y z@oQILO5Y5=`p8$Wt2btPGTG4-3y;L~fG%=l${PG)hQqSHv4|#>N43a54Rn@!%f`E^ zZLdwgI5qXcnvQ+cq>aHy>^tnmao?eDmngHrq}G!BB1cP<T_9WOQx zeExH}4kbW1R68&qVe;AMYXa$|bol1lQ0S{A?E0<|&d38hmJQ?UHmqqioVTkFdbc#JOqD^s^_uHOPattwpn`m?iirRv7hkCS-$L9-}Ia{Yy%wYMrUVeIU?LVv)qk_Q;{RIFJ zo14EJJo^XB!#nxKudHaT0j$1@F!IlTV-Y}c&#k_*rnFxETxL#~ItqUV20Gs!<#+Rq zn;RFOyJ*@}4Wk$P3q@Y6zH{yQZ#+L3Y_2?W!5Hc8hi8w=h{YH5!oul=^*v#i#-4bjB4nsKzOgzk zvC&)6mWbLnhDL{tYiptLjWyhZZKNVT!b2k!Bl?m6LI5Nr0;H_d@AG?ZnUr!d zGaJ{zJEN^Tn@dZ}0K$VXe18am#id06m%g<4+F!n&CJM~5_B@TO)eD&gz@_~DUtP87 zq8p8OSk4750l~%2@Wp?Axz%CC9cNBz01Fm*UvJ&Zi=A92eW3P8g$IDBGmfAA(&DRs zezkvgiP_oIx-w7_7_4c`DIq1~i9LCH5(2}UF1pj=p_mYsZxtpbtuvnEZrIp4EmOsCI<*!~xW{qm@Y6k9pVCJY4S3bWCpx7>qHJE`m zdd}E<>(<7`#@D|3wR*w}$AB>!Gx*w9F8=7pZy2TN7+eu3kqh%C-!6*nBAd^2PiiIC zE0|Oj_nbMQqZQE=uGn#OY{Fpp(sy2Z={vamtrx%l=ilQxoQJ0EW4HKC58&5%3q-Ki zzWvUdlRvlCH^vaE@Ig}R)trgTm2*pZPhI%pvjF1B-~P$#%O^~p=Zi~==JP8t*bR_i|F9cq z5{#N!Ei%qucmR0}ZpViTrk6JS@t_Kh(Xi;&CmH7nw5N^va2;l|5LvQ>R0*7iRx}Rh ztKiv%9lr1f7XcvP%HLeQwLM%sm0kYUWdJdoB;U$k_|_!=5OSCgi|u0L=7#E}zJ%_X z+95Xs0L!0Ssxt?6@%_Jg4V4UKG5nxdONy0eo(1s6&#vWn3p;NEbIeT0@8oa3wKf_R z{iW>ruUrD~?D^$a{`adyM1rH9U%$S2?VVK;^x{8%-kdN1`u+ak!@<(&ew+pfA_2!^ z-xzj7vEu;{DFz7Am(F?50={%z%f+>yy*YS)ke#-dzkV4ruyc0f#sI*r;jM*i0f0%< z!Ekf=Tpi}HdVOuN-;ZQPKpmq+M9e-~;ck79ufDSi1WCG|Ek+&Y?uR#i`bJ=vomq?# z6U(1peC;n@)2V5HH*43|*Ke#-g3DjOtdDEVz?DTNGBgmgxR+o3@tdgll|TJuX6bBye~ii1e|zO2Z}?Px$0ee%mCsvr zRNtPy?HLA!8^4oitghxY=C%(VOx9woh{MKctefjfO>`f(-=`Xr@fd;CTo0|LWC2Qa zcGAjYb#bZuomZbdi(;@zg3T9y2xvHffNEl`+%L5b3xFUwBil7X9z%E#7W;Ovv93?q z_4fzGs8Bt_7+1+cV?T^(zfsR=fe`x@D;l#m$*SQe1Wal|$q-b>-3bE2m%jGiOJrxW z>`Vp`LnVXm>B4Vir?ZV4`N}yf1)l%L^8mvAFx<{JZVrl3Zcn7G7HzZNZr#nn(#~a+ z(D1_{QH?T{HbmZezVM~mYk2F!&HQ#gDjf}g|Dm1)rHI*c2_(P_1|JMU$w6?wRYWx= z75JV5$-qG;ngpC+N!0!r)_*a$_Vd-c<_i&oBtbe={WFVo5_gOt6l(IuC@}@tm&_$_8~`>p)=>p}GUEqqPuGUH!FwCU zPQfKJZ$A5_m3VdCGgMI>AhV0jjUfr?cU)^4B}jMQN49~j4&3A*siMF^mh;Q_b|)>=RE%pf6s=|V=tS8GaQp4VCmdSfj85uZ4O|bgTYEig4e$oZ0WHz_(!XG{lATXM=X#mJ;)>2u2fik;dFD-!|;G4D8_7&(&~ zlbXQ?gXRs0ZD@+g1_%V^P;$&ws6UV1G9gt$I-yi+lcr!MlCDHixMIgKqyJRjvkMR4 z?$?z7?VQcGhQ&P>s$gf0QVP2WyIB3d*Qhq}$?zaxH(rT=c9(%-RM?Z5Nlh^tEzH?C zp5lICQ*-|O3JIC#MVv{ZaV>1jz?VgqWvZtk5JCVT6U7|bGw0g{5|T8YPXM~7TZ^AB z3*Ke#3(UaXcQ!Tsrx*KAEtayA7^y13z{_tV^3Ju zL#Eq^{BZ=ooM5_w*G3`)NDP1e>T))^_3oPOWuPSp3VtLLlI*}}Do`FIGuV88-S+I_ z`9&!tb|E1HLn5F;w1O_2GNWx<_+oH-vwtR2Nna}&ICLXc+KOVp7^THZF=NhOl3a!L z_Xb25<$3>XUjps{{Eo}FNBuK>qDBdoxcb)H0CVY8FD*tMf&ijQ648~vy=r=9&RRQX zrSNvn1V;Z%HYy6gQ!odV0OT7#ef{zuJ?|VYoWJz?Pp|d~Iw4fbIcNe^WK)xm^5Ofr z`rHD5xs&~{Gt`OVl2lIv2oDf;n3>tLBXAi^YE%*{T5)jAi&ilJ655rJB)Nhn#TA?f za{yD?GrBj|nC~S7C{b?5Yo!1xM$RbGq=}S0u~2MndGBH(l&nBRrf1jRTfgvyXGh*G zpIvkwT)8|SE}y+%QZ1W`f-Xj!Gozx~by;EYsRfm&;$E@#i_Mj17Q+MB6IroSm|i-> z&|2f}2Yp-)?+$HhxdH-01(leE`D}Er7>&H0H2?xLRZJDa14sdWz>8Tw&xg!4qoX7} zcOn}VMRdGHHWRnQ#l1j+*5AKXY>zm&NKuv=Gt7sJXZm?Q)TG?VLl7xtjvFqAsK}K* zFycdxHVMxhYxqr}*i=5MWG7WNs~7+9B9S73KK3x`nK$2h`-u(g;qqi*VI7Mo(X>sj zSfk0%AeAv|`#8F<^^L{Vzl~!I3_wP2O6_msacGR9OdwIU?hk0)2Eh<@OZDXu= zfyoLB015J?_ugr(13(F-CyW$OiC%oFPb3Q;ocH-wPED1s;q9CR%&Y}C-^#Oj+dsRw z4BC8uIC3uE$uB;4krMEzc;jc+R!d%Z+MYjmK@xoFxMJ1Q-g^SAzqhgZ{=nYIviS@o zO_~lq*o2_se$lT`>;zJJcsD1a{9c}&USM_$bJ^CNf|-}kEu(_l3HfLgxfToWKm>t) zzdyLS5h|=av*b$$LBrut8NnVCpO-eG1i^V;>bm1kDC zVkuDUjC>gYHfhRL;F3cH?+YZP6SA2d4)fvNTq_kSpmh1xP$z~6N*U*!FPTaojf#@M zr7x&xfPyZZqZHV3z2H30VBiJHNL5`_e);7SJ% zfK{S>$)k}=dsG{iE4b3p4k6Lb^HQotMP7_*QzSEw?mK1%fq+;FWO=D?=WISI^nDd7 z2B`2O668uxGm;Vlk@F)60$54u0aO^?z7@-EZES2%A{VkpRCArmRJziX1tx$==sg^y zpIUjcYHWLg9U}opa>~a$&Yk zGW9pUzc4d&TO&h|3SgFE2*eeEwE)UP(AX{jkicAz*REf=^o^GQKu9Noh7K-J#SB)7 zX2ykQE)*k=(y!lGlLAU9W2{QFP7NwVPK{WsIr{b_VI)8z4Hd#Jymz)|Y)^3&17w*i zM#cG7KDarI42`404Q_5Oon7P|w{&)K>FhE92?`|-hr=w(2*_^_7oWPh_w{+!iu5iig z?`Q#Ce~ zk0ddGjuEL)aUg5#r%;}t8XL1C$_AGNG%<>CEZm8npU_?nM<1F`o0vur$xwy5W~%4h z=X{^tjza}sjsWz}W{q_v>`XS=%GYkJ zEj_&g0YHY*0n}he2PPuA_{{lh@2pyrjhrjCN5k7&0Emc4A;IFw#dO|E0apeRGBBuO z2=?BOc9=lEbS=*UgS`*K4>p`oi3f*J}2qb35KAAx#ZeoZrrec}_$!kvh@L z2pptpN`{8uy(36whbmSuAP`Vtv{MA;k#nim5L}F0ZHA?qo^doPh~Rb#5>U!;xl82~@%Pf-6v>7=U13daeNBRH7L`#l?;z zz&~&ii*Mb@nc2?T_^yvC=e*DF<2Vz+Exj*@6z>L-l4c}72>EuQ z6XKGXnZc9QTBb6UM+gZ7u!aJdgq)(Wy+R4tw+Jl8XvmILZ5)L-!JOL+b6mYX9^!^~ zkpnXqTlwgIURS^p$Sj%E=-x_T-+I=A8>LuP4BZ0&R09YJ(FYe&5x9_5hN{CO+|*l< z?SBFIwf2W>0GhE*o)%7;3&}!v4HX_o!)by0^rNiL{GbkZzQV?`c zZ4Nf#>yg3zeZH0ZolyX!P?W&!c& zx>u~eyGlaJgi@t((r$h*U=BLbT9H!3f(IMdop)x|W+yWuI~Z&XhnvGYn>x|)7vY$V zQrW3gCVDs=Yz{V})6t|#D+&1Zn|Z{b=7d&>+PFFJ!_iPc6G6b9uu~N_m5(HKDZv_z z1${&|K~GMN)hLR`p0JkTS7Pi5>-xaDxng5X7Wpq4JERoSv-i$lcxHu2lkPBV?Bdpk z1vOO@N81IO>W*L(&YQZ3Nwg)B1CMiYcL5+oO;$moo+@Ui6Kkzr-`GIUk|0KaAQEvE z_7LPtM#cTJi>q&48{WN@omyZHCS8e0;>u61j&?@*cAgP&B4rhQd&tf#_)(GPd2KBc z#AQIm(T`G?|4@RR1852b5GeAX1Xzpa@{Rjm{93V(5ot`idF2B8%`#e<8iL~=sdORgT!|j3F zalBIy2m(4GHES0883&tQKsh{fs+B#pV0xy1Cd;?TyHRSaowt-oR3SUv=L-3q+?75% zVa=RPdnN$-xL#UX9)5VsJD(mm3#T(w*!*zQJ5LGq&nyCvQeqc&*78}-xAOenh|9oL zAeLHDdLmnxw`tFWc?Lj^(&NU=rYg~P&N2s;kUDNmPidt!#gHAcsWqvRNfu)6m!STc z1v8tXLcX1=M41!T&RP&q^)Vbe@11u9=|nI+6F+63-(SkNhP(@NT-!MdqW+mai6I1; z<2swqn0fAm-MTZB6_|PMq|Hv*L&!m=a`fa^2S$%`hN*At5z?WRY;0vR`C8Pj)Faq$`k&Zy|3mFOKHc~O-uw5WD zJjIZxyb&HgUz`Q+tQWt;@)y45n4$`aYjpG&1+Wy#o}Ambv0-{f^>oXUrG+ZWJnAk2 z9M=IXCQWUs?3{AmqiSlA08*$RV3gKM#k!y>L9qinYbnul-i_{!OmmX-gw?&2!AfaE z1ftP>ADE?p6;N6!Wn@AG(!>C`g6T;JKv|*M;Hp(caJTnAgMurN}Ym?4eNy;Kq$Cc@6l@J6;ic=IcBy-S7YUg2k*0BdO z3n)Pm#>L9fl#uFaNo41&N+`yo+F8r&%v@Am7J%s~DF7kCA)B{KDO8|DnqG>U|328c z6sWzkN)ZH>lVxTPK`Nm-4{rt_nVnwLJ!5AJu9z92Vw0cn$!VV>Mc|kzbSjiS%U>#3Ttp9v*)<^^HB&)mlEPI=Z3N zVdE(I4(b|bfHj0DsM)<@LQPyrJ+nKcW>vA{N%^QTeaWUpV+07mBZxw#763$ut4u_C zbvS#?@ff6l^M#gF_`=LtRNQ}R`Hi;dtWG0uJo;Yp3v0NgoFqt)w)L}mj9_J2-ZX~HXR5gWDI!W3R*}IjF6Nl(=*<4 z40ezSL9ikXfD)}|p;Hq|U&nS5QKIS`yGq8Xh_U`@O1>oLS(A#UT&_6FvQT+&kR*wS zE0~_~WsxOW;JQ+?P80wLg77L){2+M1KX6JZYpv;704h-oh9C$AbU@HeJ)HoUUK$ck zVd{);QKucm*Fz~?$MsY}B{u$*)^HCr2@qLufB;dGie5=5C>2K~A(~PwLShDX)<%zJ ztzoN9s*~U4j0B*Ri6su?u{sOh&f54kLI5)oA}FQeMX?Jh zHAIk7*3PP3$YYX{AO%oG@-;{)iAW`iD<)E0dZko-QAl}QMr{|>ZP*R^m<}Ptrw|WH zsfmEf#HaspexXzO^oeHx!BH@2vbEv$GHUF3)U=LSg zQ{UJlBvuOUt{N>*N6X(a_K;0-c1+}o0gl`Fb%`nv2#2UKAV6?!fh>JQK+zoqgHS?N z9)1-)1#(nrCIeQEK(2IJP-GxuA+?Ajkz55$ z8mM0h5>QQcGDVC_5~#E8;;SMh`b*qkb_MsAJG~9tN&J48Hdn-7% ze|&8J-v!xmBy{`rrE5*I_eeLpOCFQs5$b(s=&U|bo63Ez3$3Tx>$ghsyZ|T&$O;9s zCEdO-wKXf+jb;w+D0@a&j1Q2@(|Zrv#sP9BWZr@pbrxf<2Ez%A!*qn}V6Vo}_W z#sI{ety;%`xx;_4_lmOJ-7BSVADWuy&y7B-W5i>O1_D?@yP9Pq#A}g25EvCj#42Gc z2ZK~f57gR?_2qLm#OVLh#j}%u=Rg3!E9aKqeCwK0ikb6!MX{Z81ug>waaF@mB4Q4_ zD+!2us7TmI0-o!j%5mMuIO-BAk)DAPuD({ZxUv$`mq97X062INF<&5(zVs?lzGS6z zJi-+dQAB${U=9o>A~3iF!zlt+KBhx@KPHT**{7<;(pzE9T9htS1VVb;0H`@xs+w~v z#@9heVlYC@PuA3rtK;BfrhGlN8m#LkO}VZHzT0_on>fW=6@5Stk^l-_(IJ^^HA3+lJ!61cB26S7;q?7Ng>mw2XDjBK}nPgx4H*acX`kB!^r4p?b0N6BR51ar1 zsmPU3#~}eEF=!h|Vj2?%-atjnUIH~oe#7?&3S5C0X(Am4hFJ;%vBj1-v9&hH-CZf? zF1XSGb@^jvC;?{AAQEc%=?ho>_8OQ;5m!X1CKGLFvVQTZhTNrdcWs;tQ72Y2QZmN= zILljdMVh%`p@eR^F6*g|nOk+n9&rVTlw-nje93ED zD3eeC6Ts0uQ~9}Uk*lDEL_#W29qut8TKuX|^Mth=o2YqP#+m0;%`4XOwzy6{d-q4! z>OdJ4+stGI=TA^)d|dei$1~MozlGwxlRe{@!3@D%X?*l2-6okhh89$m4mb>rO?_hz zm2tfi(L^V9>V%D1Jka4D#6&b>+=)l87*}H^dl1_>JG?v0xAOI0jtC?L*;%7zQ<9o` z6rWkD^oGX*)vy4V;0Tj-ED2$k5v^WTJHn_Nm^sv5Q{tKvA274_`i=D^wL}#mk$$H@ zqPdF9ffPy(03D<3RF>Zz0;E%!&Za6MrF6Ygi#mH3O$GuZ5M&o(cIT?i1aEaeD%4ik zs^%oDt#);UXRSHve&cAsWjouG@$+c#&Nk0EMC%5nY%8f3QH(P6uvR(&>=sXT_nTz#tGIYfWwN75{z z(`OD!5Cr&87tB%hjXgPP;E0RcN-MQAE43cSdbI0uhjFTnOKcEv^cw+^IjBTiYnS?c zJD-`EsDg5w$uG?b2B zc@y1QMA65l6ZB7PWb{V9aRmu`hO3B}z@Q4QWLbfohk!}7=@~A4|4ctSvuIKqZD{d@ zs&li(3{_)R$tY3bwq?bEhEuqmu_jxfiB@V^lIx0Y)bMq6uhQvLJZFq(XmA+sYvZTf zjJA$|0uXb{RH7(RQHPCd@u22z2HJeVAVteb7Dp9Ye&>25n5by87mZb84{O)j3><{U zj>1oIDpT1nuJoul^2{(hu0jY1yN!+gk?n5Fs~!M&=1{RajH{^Q8v}@|a3pjXo}?NJ zfQ&Ub1X|XpR%5l^FJK(^fk__1&>$7mPbJjYf`d|ulwLfu&|g|wIe%g03rkDqmhDNK z8ar~4g%2P~XRX`mps@}nlOm3hLhud$6Gav%W{--w@&H&w_f)f;A)vz2+5Tu}G`yQL z2TAZTUa?{@hl(*n{=Nf132CC@exZq?QLe3mEs0QbcGUi)mO#2;TAIk5YiF!QDh#-a zQPo?m26dsvI)LxA5mWL+f1>3M2Ho3o{b_^4nk#aR1rIrAJD!%wrETMt9X$TW%^dl;N9REABNR`_Ta_2L0Zx(Tz9YM*ur`$1X59fCI400DKv=Qq{R&JT5Gtg$PibEHMC0F7fHF-Bd~9vLIHh;O28leop5 zARMN{DsJK-+ao}W)nZhA-ERUiTb$QEYqXV7W2Nt=IzdxUHOd4lbTv5-on1&l*`ztD|92#1lqiXs|`-dUxW-9lX`{TYp&SJ{ykcB-SJgB;Yw>rod(J zr6WN^WRx7VLrQu%fsb^#&vyoEqAqLIlR5e2(DsOftf?ZfAQ|b1a^sb z?7H3mc4B-yaxjJ(Cxvm;Ocl8E8{jdf>ENUeii&5543qoYR#!p9z+4)mt{My06}eg* z2>|ia&M&IYWWc!M!NhMBp+#L?UuhSOb>ErRhYC#5*i?Rtq^ehjZe-J||LaSOPc8oS zmDjUV3lLKE%*q#^ee?f%+ss-3T;io~zxdgItUvo1`Op5x=ecz4sZjqaAK@Eo&={s@ zY_IG^V-o=u&2fxxGuWppp_z~+vOzP{WT$b}#9of0LIA|qI>vWUs31Y(2*A2OZX2{$w-J+do?~NJ??hU1bFGOn z#4PwG`vncouB+`dW3H#V`<`?V8!+i1>te4d8k@?|7gxG{JH>GA=c_M#;{`N1Dtp@R zefO2Y&5i%~pEm#V|8t82fAd@4tRu*p{iSOa+di54#vUPKG}cr--XDn<_V2PI_G+UO z(MH^%KOf21VV|mcX8>f7r}h-D;L*)xy}{Xu@BCB=c^Fd=UZFFb}_s=%x~vh zahe)xiM6WW*r7o}jgD!2W8M6@N$llnOw&EyA}X4|b2Zi(&mqRB3!!4fx+g%WSVkr- zaD#??iuEQ3a`BU(q}*Ok3REX{oZFk^N)rf-a>`fe|q)X-}$ad zQ?1gM|LnV~|Nfd|Pom+Ysx2=E%MtaBJ;A)Odc_0-8UQ!3c1_+`*Ecqf?3h3#vW>xO za-pc%=`#Q+7!^=CEhtnqHv|x}liBd*!1naQ83VDr^p*ek#*d$u$42%vqt~pG0usa= zic#UWbH`!p-WEz1I0vy-g+1=gx!lfnUV#cIY3&{Kzx*UM4hnZ`ePb`4Yv> zmfLZ@j21{TbA2LGJtGs99@ij>UMmUdxS&p?;`kn$d)tG(xPm6hjZa7sIHm+th`IU% zJ@;qtVEuI`(a90r;JwsSnNy+CMB(ahf;wP^tYEF@LBU+Yb-R z4-4JhHv@pLSM~r%U+>&G+R&tcixCIj6RC&|Tx1O4f)WXV!OeA@ESp&+Q+4sn7uMeT zfjteBfQs}YED70swsCVnl`_UGEiD;EDq$90A9LZsKpxA3yM~6w0s`yru$h}%_`-6r zott#|>N`Ig4u|OpyZ+v$=Mg0;hT0=hsZzS9Q*FF}N)!M|6xkY^sJvKv9;iJ-do>x* zVzqi^(CB;Dc=(9ms+ipsRGWF$R@@c{m6M==*s`o=FIJ(fFVi5cs3FEP9GF4%H(Lx> zqqIhsG}wzLqe#%khBQ(5P1SG2iU*PLEAlUQv&X`OM&DBt9OD^ytn4v#j!$JOM?pf9 z3F^SQ@fxf=v-0|nf3$LLCE7o<=*A3Fnx@4)XXhA#^6eo2r3`a$@LDKtja~=I5zQNW zqG$}wN~9Y#5M>Hu%N(=hejx_psPBP8wgt#KU>RhhxCM9JY}4Benh%w?3|@zij*OOCIum73ma;tD`+8O zg%@=3Q#JND?a^Uft6Idb%{S}3E(XgsZ;TP+07E_JR7Y@tDWWb>w?I699l;?fVloxy zKGdj-0HD@z$9-0VwQ!#Wgoxmr5$it+Y^1RCunYOdZIiH@_!8XsYsIoHu=)Vx=Z zKx243PN}I(<>c^8EA&6r!W8E3xmPN+V%AifC^^bUjFLW zu5b9a-x|a?I+P3`?D`Nm#45z~z&#{km$6%O5W6jY{U=yCmtFe97Xy0|w02{C?fUxG zz2Pf=@(QVx60MXO!)Ibq!Gcrxvtcq*L~V*;iJ7cIC=%aVKqHy7vm8(C#CS&A1 zr^F0Wj)7{7Na~TteDJX@sqebWmE3xUCb%k^@3a^@i@JM7~X4IH0#so%9rt2}( zo;e^^<*wP5BPR%i;)(&)VewFHt{BBwL_uJnZ5ume#Ak?J<(A_Lji0RcYf8qL<0I5) ztVU*C&XEcJjy6`a&6J2ULmf^y>FsYdr$3Um(_b zfBAoVwfkwkgKX?QQ{ULfmnKp%>LCDd?MhuWelKpnD?I{1dam_W>obe&f8AV)Xp!SF zrXdESBJT@!Bc-YT)N=fCc52~kUy*P8^z~5s#m{BtxW=(?>8oGEj(Pi?E7$(#)&A3| z%~s4@pAsc0TG$v>aK0G6KOAn1z*stUVdd*DAjtxQNU!~3ZT07?!#nva|I2q{IKHcR z`TX*mZ@unDg-R49x{gq12DMC1JZ3K(XI#lH0z24i*k&f6{uHqyQN>NpmM6qYG4M5} zY;bB5trSq(^w3t`LX5LOY$Lm)tal7!ZmMxyXoKNuA6VlLa~#j_r65;Z8kwkJW$eV_ z`>Kf~78LbaEIWxRNJxhuJ03FBS`8E4vZ~eJd*c-)n))mc_mfR!DxY%MWz?07YSy-~W*@!G$B z&CI1BcB8`f7W5n~%x7!A*vN&HJ)=xU0ub8QIMNfSnFnrTRnS4DX#8Yj-%q3ATK&^z z*Tta{5i06r8P|TYt_C6yBl_VQ4JY8^ap9W%nnV>O#dG1NOyrPvt1-Ik%tjV`> zDb)G%%bOqOTX~_=0y8@8r7>U1bBAe{W6&dUsPnNJ1QsA<6E_%-#F=T3hiK*sb>5p) z5+$UNF2-;&z!+bpf)^13MeS9$4XbbbX4G@=@C1zDiO4tRa;@rU3*Y8DH-F{FnRYe0 z0y7B&M*Dl~@(cS0nY9u5Trr3u!(?-JK?;oH6(M7UYOB3kO;&%unWeE-+k?rbXlyD+ zP>fdIJEaUNP^@jcCr>8ESUsdA71$H$SmD>+$@WdfKT3C&=t z2w;k_8*x`2{{#r!GR>pTuH_oRDAD-Fm`w#Zf&>W=FuGr)MlYXTz%IgrcqYhW2m!GmCcCpn??E0eUt@Nw7YyLkL_lpuzCoZQdRX2gBiqx4iTH zv;FM!;>OL*{+R_cn`)ul7NbIdhe$7e`N9u=@cqHYHIpzB8;6~Ce1WR5qtXl;vZw+j zlFOhga1~-kovhHtDn>Lj;Vlz&4K|$s2?98+BSj{7dr<|h8ry6q+d5iw8x-5Tz5wD2 zT{b$B444QA!YQ;m4@wY&Rn1D(VPFvrc8bx!TxSPH{tngDnM3`9@eNi37?KF!ab>d_ z$vKL)N3?wTUUQ)o_ zcWZw?SiQbBy64j4(#~fjz@=OJ`{CgIfl7@%VResGq6%V3I#j{$6wZ5Q6eG^_e7H6A zg#(bDFxlya{+a&Py*yM{eP^|Qc4=YWN+QG*D*>%^zCG&q`%6p9cHYpjiSh3d4$u+- zpjhpG;yZ`ccRffZSLy?=b>MvN>GLjVrjvhN>rz9HrwPVS=kW3D?~i?cd+&4qUB_A4 zcYJ?r{WQK~Do0jc`^#6KeeTlB^9w4Wn6(nO@&PQ{0!dYy$vV;JiixQ9hXDXw>3{U2 zAHDt7n}=O)>Kl86jPe4Vh|fCSX76wse)Kx(W`f(ken^utUhg`IXhe_+bMCMH`07jl z@-hG^ach`ge`js&m+Oj1X_(nGJDHlEam*$!Hg6A#_lJY`HdUgvQUFKH6z#~&VCLd} zZjPtvabr@YXU&{35Ikqia5!WR*WbP7?=LN%TP7$X6g#6UfBRZ?GR@{xzBSZ6!U&;a znb3sot3^~qw?;mCo|?KX1i`54JmorntL=+!v`D80*uFE5s|2*!)7|zEsV$F!d}Fz# zSaS~tT^G!IbWeL`fz}@u&(l8TQG?jJ8Qy!x)_$MVn2C7bU9|5^C$f>cKDoAks9Ru? zHD%gP+fPY*erf4@-+Ae4FT9YQTA+lqP-Ef(P^kQ&{rIC`aD~7;ygmHU53bCeNb|fn z>{>_EH}-n~{^7s;!zX>2Z+`2W|L4DZa{@oj?91S3kF*M@Il=&SzkisesQGgSw8X6s z@{NskX1?&Hm3*ss^R3mQdzWJS^7!`S5c<-~5SyAM^-p0;x~(>*e&NoP&evTi4=zrQiKIUH`?%H|eU&Yd@@dF3x&VaNTmi!0~O zt69BZ>#E^y7YCRFI(H{$#>CQfzp;<)=^xg%bHckI>|<}*lg2L&K(}&_pQ$|}Yg~JP zrriHbt4D2<4t$Qg%@}4TJX_(AZ+=uc4D&r4BOdMcp>NByJreEZZ@oAe3}UgrkD(5U zV6A=g-@W zV5~z{v9S(Ay?*J*^>OUI@3u2d&d^M~HZ7d7GNCtrcJ0bvT`hJTkzD!QvQo;NF#V_d z5o^n4HPqUqsTtmRQz@05&XzvE$PAspm4LwDy;}@uMRV3JoVIq(j7JD)BUh3YJ7=%I zOY6T_AAWcX1XTXQmsYIJ%&fN7w0EaxnlX2=%O1;HM>ijEr+CC0->&=dT3UAIr(M_f zS!MV3^TmO!f3CxJ2?-X`;vPsgb&}}?9qIO_Ya-V zNt@@VLNk4o7L(6q+CPf@tN-@O#QXoN^$)w&5%rBdITnxc3MK0QhR`|Q&F=vKgx&gI z?4#Wy&m6plx)3A~cAK4a0Cr)mx%8Ebb}q|K+2zkI&7HK%=U0|Kw@gCrhs*L9(&O6u z$Xfxff-6IeJ1Fjrymv}zsg&v&%uFJWUC3itn6nq2yZE)QUnV6{$>pb)Q)Bz5vs9@# z><~ixCXIDiM_b2Hhd47cO~26}n3?P!zVaUS>3Aj^J=z|@?!kQ*LfGwmb9e7~_MUUk z@y^I6-h|!yIfkyzo_zZ4m@#=>*&WI5c;3cWd?Q*GfZVOWxp(h;;P-c->&OTh0;FuT#4fBg7oS^+ zE-sU%lmG}5N~{Zm1OjuhGqTDudk_E*n0zz@SSyt(JvPwIOb$lEp3o}kFPyUZR!&6O zywygBT3ti7u^Zic34j3Nn0F!3;iqV?(%DZP*x%dY(BlVN+{s#3XSGFU=K05 zpBPW(#Ci5TwF7b3LHG5rJ3YKTOlowpzx`NOdH8erwDqU$w0(GcM15mV5RFM-X6%)b zGaXgm`Mph`oVI_^O1G!2_nrZJW~P_^4k&Ytn_K@xbxJYdgv4x7EM%pA~$5ZbTR`li88-TU4v2VQsg;Bm@5-$a9r z4!XO&^DuM3oYc4^JdDFT9M z9Ma!CU`=dQ6q*Mhk4Xqf33;sjbW%|WV5UAvni^D86dn~o#;BA%vxmPQlp;D#CRG!* z&^VsPOd1uI)>11ek4c$KDli;=kGsGOq&PsA%Z_%DlbYtR^GwXuVc&ezdB%Ws@=0}d z&x9U2?7kjy?+1-R9x|%E^RRosoW#DA%}nBeRvy;kBesV;m)}_bka13BDvvL%Zww%A z%c+0r}3BJB8oz zX=;m|f=h2wqZ7?dZLLr}^ooa#=Mb;Vp(yHc?rUb%} z_?T_j4RS_~&$fRI?Hud^GnhMRH$NP_^zuvWysMd<$S6e#=|l!VR&@py&}gQ;S3Ep2 z{^Q=o!`hjBS2<|j4*Sl-|MuWd_uu2g=KtWo{Zt^BeNXM9^*_pdK8g0AaZY6_k1tbB z#Yf0q1?Lj0RmWRW3=v}?_i2lC6{b+6bo0qV&Rw}u8Is*}yAt>@NQ6k-gKtf6Z zDdhMKIB?|q@X)Wfef;x(%#n2E6T6F#dcU9CtR99kr|q)gygb$GBKy0pup@8$8pf%+gUthPn5 zvnaej-wgwGYp0;VAutRizv>VE0`ozC^Tb$rqV;HaZ`yPI&aCnEu(+Ql3cT5CYn-b_ zM`-r5bmR&0Z_0wL3Te8RURB`=Z^3>qckb+3YHY%@un?%m%g{=vK=o^<-LEi%(5rL? z4i}V7nLe01cNdRO`jXq}SEbJcr7uyCHoGE?HpRSGC2xcacyxTU;u}vL&?Wd%b=!*h zmn{_3`2?$+x z(<c!IJG0VqE4lr}`&J8SV@TZU6$7ThE18h6b0s@cj`g%B+d`+X znC`ku()Jh@%iMVF4Az;l{yXuf%=de8kDPb2^18Y#_#0rI5i?T%TEQEz|HKgNv5WiB z=7AE1fR1F;r}x)SGP_Z8XC1{KNijvmjNxexkIo61=oxdMwP(JMmI6 zfF44Qe&+qIYZIAsmgU=y{9<{#yb7xK8Hr+b8(blw!06Wn1$c`+Iyw(M1WJ+bMA7yRzdfUo|lu@ zmAOGaaYhiR+W9Uv|NK1gw7u??+AM;*dVW=ScJjILfwpZ98jD+R-)ipqtK<}q-`?C~ zcK2W@J4RXjPgwLgzhE?EW`$y@&MfTe@z(3L*Xjs-_JB}-5K@16|7$TRuZ^ZI+mi@= zfcE#3WJFYp4%OuC8qpJ~-}}|FQ;bXGXG)h_)5Mk*%#s#EpK|}CUthEAzU%l^D*H-?+1!8!1RFkAJG00lf7u~6@r&kYUZ4E_;IJ;-*IL8U zo?B0!Q|uJrJ%BLr8fnYG8`7=^{USz0JYn`Vd*Uj#d=|Kb2Xl`4CLbdYbTM-L1SBW0(3v znoO&ML!?f9m8l>~bcV6ad}OSMZZkZXJ`XA;>_=k3WO|Hr!_=6-M(BQAKdY^KSrMCF zxk_p&O5q0ynPFdoZ!KTmlnPNm9^UL8-a8~0zT%X1RI#9$ z_Db9I7;KWX+t0TQ>(XJsh#{4<)Rzip1nz*)dFTf|e4}P7J@kRku0g#Y?To;ujsfE+ zTR(7d7)`+9zb@%BD6%|xwe&t)vs<@fjYL43_|}W{k$5@jVpXOF`Hh_>p9r{*p&Csu z5HTa1aT(*E|32*%4gRYbS1Kl;D&kPx^pJnmR6U~*RrF6~pnum@`ag9s{QLGqn!51S z4hp>Y+4)?wro=N%G>SG%?QEov0-q1GtKXyGN^xH*l!5wyd)CtD(?;3i59LzoYGL8` zPW(@~WdEzjPyI#^mXb@?$8L{E?-!BypJM9+!zY3klUHB0cvh77q|xTeeeh2hzIl6v}J>+Tp+H{_Eiy)oPb>{Evc`!rv`N=JZGsjp-PllhM zsDOjdC-~2#`0+uqA1VGM1i}SqR5T$a(Cve=QqHwm z4dRLgzoDe!a>MWIZP9ITfB42mLjw#*i{E0u5i8KepIP5p3UDV8W&6S?y>c)h_t$wV zR;R?^5HpY-TAOluYM0MnDiD=T^$5cSuzi@my)dCdH#@^Hlj8YyHCi()FN`W&{Y{P~ zb#i$G`x=1v?ZefyMn0(aXqOK4jINw0&?PVfiF&b(zXwJFxHguqkeklZTJ|2yJo!x2D`9=?+qn#h?zR@wAZ98 z_+sp0I$0shv8yGdUuY3f=t*~}2R`mCkif#IlhPgd3@uFn2BcsNI;PrX32%%)iI;L&!;$al$d z=BU4WeOJqbX9^|{32R@GlZ><64PNj z^JKiG(iArLcCGcgVY9m6n6s~%dMo^=MZheb{C0tcai?2yGdVE2G^fS=jrY^n-L+IW zoXCduHBLLCjsU?WwR82$p25&}uaCZciUtOlYQM~E4JuzY?hSk7nfoNguRh~6fckM~ zybb-VaNS<<%U)4ewtTV-B)0x@20wbmeh>nLz=dCW=;${ z^w0CE*QsX&*0Z4=rovwBBlGkSOzXxEg|5*h?c!ye;u)=|eO2AVN~wAMNc&pB;q!6O z+haz~!FigXnGBh7^d1;9)~E>DU%nFuZ^rZTV%$=mnDT{ADadGDeAU@vK9_M-w||X* zVcxr(kge4&*yJ&_`VDMK^@SYXh)6~{+vqR-F+a#BEn*7oW`d(zV1{UHK(T(GL-7-T zBo1X8{B|4{tGXqlP4|PNz)iB2>-3)O#JvtP`Q9K@dL}!fV>Fn%V?1hH&9aV>58!XumXAHli{Xk7z{Vf8NbK ze`m4&!|8X6&@16VY`mdjlDuE}_q&)R5$#briFm@o-tox5B4bSQh^t<7NMu)%rT+dqhvp3q7m}?G5iknQCAwa;QWCuK zJebRsJ{_3_)qVp)zwca7owXk^L9hoipl_6f8oms!UB$=S*jZ}Ef+b==LTjae{ssbMUkW!F0bHZc!lun zM?dAe+6~OZ5;ts3m9TLekEa@SqTwLbl2b1Ii69k$WoO$+&IT6YIPKQh!pntzu-r>L zNP^#uj$_`dg)V-Q3hOngKj7TknU^rGQZA{%=flhK4{QBasWkf@MA482xSSKEoEXSw zfqqO9V!^HD z8bTE%LO4Rttr`5xv@1R~+NJ(FLe1k66YnV^jQ5C8YcedEN>qhIsy05oonWE|TbA3M zA|Z_T?FJ@%fpD+4+iG&gISHJO@$5iX;Dkc+tC;~AS7OW&jlTSWAc~JJ6uQ4ekq{&` zTKxkQ!@hAm_Bal&@l*d9Ow+_{O2+jpH2;tS2}89Ha%1Lv8&Ut;L)s=~F#R8gw8?qb z*cFe(UFGhCZP{OSc%*OqU)i;_?oyH31;9$3MnHB60G8U>+1ec$b_D(Q&Nj@Guxi)1 z|J_j)JrQWIZI!W}$(<^3`;%7OzDQ?$#0||M^jwr2EOm zjwGFHfD zbHDWv!NC}PzXlho3PxBqEf*rMv1)8z2~&+#& z07XPtN~&sW_|=bT9E)TKP*4@D_EYS{P#{ z!;e@(OqZO~JpuH}99H0W;+1j4=|*>OR^XZ*SQ`e}QLqI;g7kC$@IKVM zrzP8TtaynA=bmP7=Ud>PYVDhhtYKP-?J890-;)H0;OkFj2O*oTA=I9{?y(Ed>AUAN z`%H^`{kDZ}sUy8*wjSI)*So}eQd^TJYM`DRIDkeHCWJuj~GqH-^P40$jx z4vhnE$h`U_Q3Upz!oln}4p@?9PHIf0C(ytv-7Ome8-92XW0&+TP%O9fxb`1#^y@7p zKax;+eld*(rBiuu^n-NxUi@F5D!GC3NRc~|(%%BouO$0Qph27lMGaDx2i%d#^Y>WiW{}i)akJ`oy*UPOF}yUM zPLn153Q$3i%4gX9G=_tqZ=f`JUeQcJ6u%s~->R7^XID|D*e&D+*=;o36Lxiu#l-O0 z5TF%Vqz5XcN0YG)N2oW61$`}V0_LE)mlSx@r%piBvzNR?J*Az zC&l6XT1WHJ#rp%PNf@U6GY9!4@b}1CypLZuz9OJ={qDkd#u^e@#p^(7D2wIoUSTle z+H0W-$Er*bU0abhtUiaY&v5rf`y3L48w5@~@FR^vXQEI>Ire?%BMbZr1dEOJM_GiS zL-2_=sTmudu50msw^kI>J{hEo?xL+dTVA=k+!%VThJKpZ7P01}hxcMEDpYj99XH(B zkqb6BtqJX)@+T;rieR`A%RP%+8KsMgoJYIsZm_{J^+@lzTD-s-0e!QM`6wu#tK33TW%es1gqjtAFO&*wMdCS9!L5!?&1r^c;&JRmK&X zycE}e>Z%|7*85;{(H^O`D%;Fx1qYe=+F{--gHsS2Z$)8kX-eAaLt$rc>1fS*FY7#{ zvMYExFwCy}uvWq6k(&m0_+jMJWBJ|7d1OXjU}%3mo2RG|c8YGbjOC~r08m`~?0Gt8 zy%0a2BeseQvN!eq_5p#mk5p&@JH^Ei?+#^5Y8gETj_~%iH7Xo?1v1V#-5uL$?Rc!Uw=#VWn_qEU>v>Cxa zu?mi)xYrEh4Mn`gU@C|dV1Zpz?0zf#iU~HUn~27Q<&Pv+AD@8Ar!{rIZ{#^>!nZKx znw@hsVjlrTvfKPDaHxjm&zoE4J(n*sb5_GIaG(D9wJgrCt?dPc!0Edg9%WTbKTk`~ zX1djzaQeR4dTE(gUGvSA{$AURy2SCO{x~@Khh`ba`w0i9x6{;ZFu8UrYd2fmZ~=U# zQYVq6-s?EP4c3Pvgemk$t-T2&`T0zlE-&8_{`eMdEYAjP7sE63)5)y8OVD|kg>PmW z(w}a~zN`t|qfJR&vOrj;MFb*W7^eD-!WyS0!uZRZP<<&mc#Jw*{B4(VJ4Y{~NeZ8N z$Q=juUAvoQF*V@VFC?zX%+F4EauS^b4zeg9Ma}g#^W$Vz(s1dqd|9EVuG{{6qx~M4 zg|0HHk5bw&Q(n2WcGPzF8(<}td9qRQ;>3t9{3nod4rvD_R$mR`*}WUB>&!n;^w&x)Yw|FtgC~iaBNu#fqfxzSp9G9@8>w2Vu}<}Z zE%ao5&e9--BZM{1Jly5@m6-xKeu9mmLTDvTKKY62DrUKU4FT*am>|4ak!;4FB9teY zEVn+Tt4dk$2W1)f*(}Osz_GOwqp_DWTC@&kxJR8$AVNQmfA zN9}&1gB2nQ)BG-V(t)DbIj*i%48uG@IzvjJ%^EYM)U9Xi*ASHWaZ!UJ2v{NGcCdRd zEtvyyT>(o;#8*ejQQH%DEefYxsg$n)dsiYZLT|1lTe#xCEU?azRKN#>N;th1D}`va zB$7pm2Il|q9BPOGN=Uqh3V#VF+LO&BcNC}#YKNh^u zy@y=;w2X@W_<8y3Bq8{Qs}}B`Tw5)q2=2gV{lU6oj$4B|^1ECc4xEr|i4QVDSt2MP zZu*Fdp?#8$kv1-)B1?-ip$nZAeDL|LJj-R~IFa2PQhxMwD^hQrgHJ)6+LG9)YxSvy;!9POdSHNeuQ7h<6hK`x{ zK0f|7+FRMule5(oq6GQ&ugz=pnIElPG-cc>wkhTxHY4WcO(ZmUF6F`%4%6mYdWWix z1x*!OuEl#w|GWZ|o_DVpzHywD$k40bbM4PtlOMa93g4y8V4?J^X3Kn9Th@HU&l9`n zBXzo?xGAN#^72}?g$NZO_VK{VTy5)<+-y9nMB7e0Q= z&j=C3cJXDmgZvJ&U`irn)35j)Rpy5a3+IR8EI`n1C(@~z*+)&WmAkRatWnD?aV@FiMNog)ahk5$C4+N9)m6c_Eq43Kw#wPyWX*{|oSp*siz z4cy_tI<7xTIkU{+LCO1t5?`E^h>XO~VvQj8E)i-&3+~RYi-7?CTLi{W^BH;5%b?{! zj8<7>AzinG@0o{T@no7K7`>^DF2fZU;!0bivZDkL{P)VwD^cJ1mbZDBqHO}Z;RHB1 ztBd;=MaPC1tj_G#CDd-&+?;3rP~5buX+AGtMf^_OA8c#lstF(CZj#g!rvW1f2}y_z zNkFkTZ%cY)at=;?%WNIbsrATK;5_PP#J@p{RsV6PK@(-P7%I`a+Z167wOTFrBD}Ib z0r*OxcImqpjsokLWzMzCZI{$b?qSsv`X#?m1M4Cr1G0Z^Z>WV74>a|Ev1KL5bqOw} z+AGG}PbIdcM8&m47g3!O>-HZ$2sf~zq|;h<4)|Kcbe4I_MQoauOVJUbwjg!Fq<@z6 zMGjOs&^m$GfC_foxEh3QEZz)H`txdkp0_6Zq^V9XJ?CM2&fW74;6TSF7k{9jE~5%f z+H&Kqoo_WnD}Fmb5YSz!);{GdOS_7EoNJ=lG&O|svG;=U;q}{lIhsogNfNd%mv>a` zY1C0^G~Gzrsa4+B~QhxnAIO+OyUG*GCi z!jQ9AE&9$W5eP=$BmjNS?J^g0)*;Rv+0SFP)lfv+i*|mDU!GZo$%(U{tZxy z9JmQwtTr;GgnMFxjt|UzC?icw^!3D6n1<)n|4%GHf8fk$KGGvS0*f`qtfzhKD7?NE z0S`fu=ciFfKPQ4u#1dmL!ydl7*eR%gD9YCIOa%|PdHE9`npJw2IQu?5wJh;ak!%Cb zd>n&R(}%yu5)Ypj6Q*518AKNf|Ks2skQoOghQM}Z`gkhFQq~ylvvqmTLJR-7qpmyR z5C-U={c#;5^_qasS~>aM-vj^Lrs;m1Ij0dN_8X^8em1uVH0|2D$8Qnq9kLXdmldgu zyfwvu5&7T@MyWlNr+R9wLGPf&`lx6oM0jZb{r01+Fy>rEas71il$|G@puP)di-c9h+E$ilxwa_APL*isTj-SfrJQGuIq6|$cy z@l0HnWf(bwo^n^hdw!WyYDhL+dwFDo{$h=PmO3~~kcd|N?ELOC$x?C;WF6U#hXltF z;*oQY!?^WoaPN_jn$NMcX=*pw7hG);MGHc5S^L-#h|F*wUG1dyDW;-wB*aYZ`yXM= z5+dEj94aQcA;XD2XH*II*`8Q^2io+b-BwGg44IL`hxv8I2?Sjw10Y((tgW7Zxj@1&QJ zm$`0}3komE8-hWy#dx=cCTzfm_eDyd$r#TJ8I18z<&b{#oEnfK5+&bR@TQ!8fMY;b zX*N$(21tE-R5S(K0NqakfVOh>vEKS!!l_2;{;bM)+Bp9&nZy9o55a67lo)9N;RBWi z1mWiO%9zkt{%Pefu7B582ALc_b^giOu;-uwLHR%o*naFJG{Rvz^HFD@9~WFS#ZF0i zde?aL1+EDt0t-bbDU_gC!balE#wSKaA3QiF0H@+zFA8%FLHywJqq}U<7M`Z@!67~G zp+6A|XyX-%<~+zGR$jtXu|N(3S&O-#%0i#PKC)^NLmxILT0s^v588_lpBax42mgm&V(9%TPCk*<-4;k)C%okZmTNSQ#f2OBGo(C#W5XPQD z%;U@hQOugmFu-Cs>)BVkx{S&%FQi^7mKH0fM*g<HJNJZ6|j zrSOSTh6+UJR1452npUH)LHc}Zp-|2FFrHgJ&V|O zY;RxFvxVFI^+of#yo?`=+6_C(;V|~cIRQFou8q)QwLEcLvS=8LV*ZcqkE6Ff)#mh> zcFgGr)aAHhOM$m9`{7#qRXIp}(Unqg*kw??jBzQq#hVN~&T~NF@)9N5DqtGV%HRwO ze{oKn^Q~jLbflsv^5i~+-O90K96HqFxYOM=X50k91tY+1j6P)FSWc(+XA9VF3M?;? zYy9khD!ZJOZM?K^^8ajkyi%V2SHQ^iOknx!&eJ@DLhT+(eI6Y*Hv6TfK07dX^iC(bwDhe+n)?LWTU+9zY%3)`nvC2^e#ns}= z!Q;=Ua8vE056@~T&1bDhsK8}zYEC{d5PmIOq8U`t4~apzUsLh?Tk^`BLnbXw?VS1t zdkrlQ{M>cnE^FsaqCl`}(KEZSXvtty4UkqPMo3e}`e`NhIdy6l-FDZW$WVI#&jLEA zXlOLdHx{dk*a(>Zk@2Hq>2lG$GJ2(2k133HoZ5EF#pOb{!quNTZyf>0YlX{dsv?1U zDw^Ex7yTWNPj9RmO=HKas=9MfnQQX!xV&FE?%fajFY8~%fOwr{c;}V-d7Zy})-110 zU*FeliEuEA)o*I*z4l&3Zvpn}8GR5?j`kO{NIyxWJzPnC*&CDE!x?zx{&Lt2{_S^d z2-Z<^#>$vIb@V1bPkJ>YR*Dn+&7pUE4B3$&*aEr!tEvTC$_~YRdy|)R^nbmtHwUKXzEh1UPoT=&1!_{EDYwlFt)A}L68=LK8!B~`fTalZytFT-x zZDnxw!RoG(l4CR01kS0-Sjz}C4H{530dzW&?0)e06Mg@x9&hDoFNifVNT6Ve!jo-! zU@v}7@RWR2)_o>us=C2+mD&9G*lg5#IkFb_^`!GCyZiase|D{`xt!YbQ{KnfBJ00r zjuWM{9u#+F%}ed=yprtmt@7lkVk~9^A@vh#9^Ph73p72kvACDJkEts< zi-s3Oi^zfVoyp~r>k{G9bfe}NFTX353m$95#Xy7vA7t9*h+{m4`gU)3U-srT@)EYpAi@*%`O~LQ@qN76 zg1thp@bKtgL-Q4`7enkMvjk^adPZos7^JQ1j-=}bl^{1XHdf9z&YL>F3T@go&7|C^ z$Hc`YAacQc5bWvcd3kwReLV|#Q?Si2Y;?aSOarkuk7&t!yN)21Zr)ea-)O9;$5(3TzCS$Q|2O5 z9*GhYitg=2G6MKJ*mO%az9dCDcez8(vXX{xl(D=s^F^c+NWAc%)@7mfCy9HeJd{mp z2XjNaw7peAwo@gD_3xaJ!1DH_U2K<@Pbu3sCqe4rKSg+beLw;wpv75L!geK%Uo3%t z4R+$CLh1RF{40VBIDto!TFGsUnZ5i>hvwh6VOcw|h7NTs9@EoXXX+5W6}I-rWfks; zJCF66rKl=-w6|B~OVB<#^W{XWy=!CIFZQ+Qhp{)e$ z)1S_t=_GT^sKmQQE1F~(JjFd+y@~B|zQZ?p-W-yDgQL8-dN?-gO0l4lBY&_(*4ZA% z*z8P4_P2Vk>eXaFJk}UxRLKHrD?+W+j{AhlwOG`c5j71Bq|TG?m{E=Dx*GGOR?|Gy z1kUsez68LigCL07j z>d%VB743JGL?1j=OsfS7`XzrfXzxe=;R9EeoDCo^F_@>n?LDW%C$GxJed3-##OoB} z60-nolVX16eOgmoxk&|A zfm3$@Ki=x2-+pT-m;YHtxD-piR6GwA7tRAtty~5>T^0&W%?kH$>De->9!G_0FcI$j zDIfyz!dJA9R=CSidMKs~q$JrtR}84%)^$e2Xs0`%w#X|{FMpqVOi%{lYCDj`S5T$>+9R&+XH+PGA!QuYTk^-fsOHe zmpOe{x};@@_P7QF`1%WG{RzirFXS(AR)#p|KAwbfPyoZ>v&C_8NIL>YXhpc@K4!$9 z3&&?GhA=z8&)V$T3~=*#a^=}v(N@xScnh?E$yDtEaOb+`3W~0fa=7IYFItM-wqN7?>)vd5qO-3g1XA8bSFFH2^#j!Pfca=uvAKtOKJYzyS zSASDBe}e->9rA4_c*pjrbjMDqXuH>)PP2iEL|A*yLM8j=WYwwJB0NRKXZ>OGaD8t} zJ_0PYr=#`5HK8>2)Q9dXS8&lF#1F<$*`0&7Mv_an4Up}(BPxaxMLnAotKYS*0%QjX z_Zm(!>gv2F@eYr-UDsZ6jVA`iz&8c?{ExNoZf|a)aN6x8cY*cR>e>8Hke;yaSyLzc z6w^?%%JOS|IXx#41fpnqkAl2fd(%qO6e$8YIIpM=&uX*Ye$iP-xZ$4IIKg{N);O82 zx%cd|t{Re7!gJNmGy6Vq0}(2{5@fp!ds?)2EEoq)1fX_$-_2NPqIa|{c;&Vg6c``h zmeEqHGpUX*T~Coo&#UoSIhH#VBRbZZ-=LgP?*)S#G|?dmk%Bq!f*eKNzJViP28o5{ z0!!AiO)54CIa0@hdmn}z3vC#$Kx(8_Rl2KHAK^ik%GhI z^rOUjqxLbhzg86_K}(T+?W$P#fvCXd{Ku)XtUkZq);Xt=W4F*~!GZ+ImN#`L(38Gj z1Al5PfnnTAhF?dB(wMyF=*N}X>bQ!TyyvlJUjC(_wI0lgO}WFz_AjcW?W^H?4-@Q< z1GV3;)HGkPzbK2}+XVp*ws`(-5-+^zOKsi0fb5O8a>g5w<=b$a!Y5%BaKbySsjl)_ z=Q(?B1_AB!jrBalckAK@_`MQ#CEG(tJfhc*CvWIi9hrL;&yc@95*gs`QkYzLHWZ#A zMFDZ@pFj%uE_3d!Ty1{8FUNL&5xAsZ)}B}sI_Xhb1olkY7a4aK86!paeV@RYaFczC zaKayzh!f2t&|#_ZD=F9g!Uh(>u6(1 zENAwJ3LP&jK8zbBH(+xEcC)Z$kqrT#eOF%Vt<#lp!}0QI&E))>*M*j+)m7vVWC3Z0x!YBL@osIzyZ_1=RPZylPYH zm;#b=ZZoZ-3)cJQ2?y+k@b4TutB2AK`C^oB68oFPf#J&{eegFE zmZ|Ts8p46?uVn&7KKEZkRM)=PUsTFbo3% z0ztL)b!Zh-A1fW7=GO4HpPB)V6cCNTD7;Etv`5-I7dtVC<5jz!3!}svJ-N`h=HklL z6I&`xtrd(_jLAL=4MgA_-)9rEvpb(Mo99W@gOLHoO3TjIa4<xX_jiK6{TTh=}I`T27h!PDcq&-Uo$?pA5M zxyIQ6z~VaS-QU6BtgGspWWT702H%^fXI+>e-#lJprF+)xnC=)vbRGG9ONh->wt&nA zOCp2b^0Ba}ve0I;+yBgXMK9guawKL?<)7v1Y3)kMvZ&alNDsKR8hr$Z*qy4N?K4Q| z=e%P$LOMbOIe7T5p2Dw~Cs)Ubc~AX`p`uRq>~wfnfuo)j)oBmY(=ELYQYK5w)q97m z<4RUSMTe0xgM<2>T1d~l2U@$}KZ}<9g%7DF@X+De-UA)4VgsCy;P81YINcBgpb3q{ zsCt%YEc*O_Kmv>P_n=J!%zu$J`0Y5^vE6V#&ntZ)7^OT#9EEiMJlLfJL6S||Ku~8c z(N){`#qsCELx;`P&6~6HIre)sUbF02a1?^8+s1ug&%thwfAIznGWOFXsTTVTuhzd7 z8?7zi=&0u28j=BDd2ymT35dPyCjmld7x_^%3$9hPH@RLpAr`6MgGJqk02kjvMgO0u z4cKGnw7ERPT-%1iV`!}i(VkIFB7m9Fv;qP&oSNd!2UUuO5rsW{)$V@-RIf&xWS-!K zQ|xh-{jM7~xbm=*&#iCsF${1qott8LMJVP zM9=3sOgP}d4?0p}?`-9)84ciX7Y=d07SEm_=m4_u>%F$9rOEg5tnJE~x6m2~o+3{L zY3;RIl`nyZO*P|dzhmUpULJexTXIipPv@86icg_(U$KGnH4hV2mVo%|=-9~tc+tSU zXJ2%Wo%%wib2NIgCi-5rQM1-%j1&AyLO%m&XJF_FCoOv2EtFO24_ z3EY#bwMRj1tP(n<%^_DK|CdK=`gj?E?AEiKtq7pBC*Ig+?ZY`g8dULRQ?6{bS8*z@ zFa##5b)zT5n{$58z8pKRER9noN8I7Es?%6&6c9@*@g=uJ#y(=W;k;DqEuH9z7Q^X7 zTEU-<83PROI9-gGVcs4wgX)}l*Wzi|X6ui#x+~s^mKJ+oU;WFE2gecsI-?}x_aQ>F z45{t480rvL6*p3s7((hoFz4?g4E-f>ELKXSuBMtPosQ{8u@Boz;;^JTM;!+X=FD-X zXbh)Er@Wchl*io1Mrt82iFFWMO_MFYWy=kZYnNZ%*eqbNkmrq8Ab=Vl#ibro#la75 z>1Qfl(dNHAz0x>6JBIv}$B9^&f$~8D1KE-++v#zhOD)Mo_t87<5TfK)JtTSBVdINv zrtknBS`C5t-LEFb%3)f6IJv)Y^bJ8HBo8>-TAdd9cYa+pV|&Kk$z6Xb@@)9TY5Klb z{ruY`71v(0(qP8Cew|f(&5z%C<{USL?h*|F8V?j7K*z%U#iRAo1d<`(l-9NkEc=>c@rcq%HEpH%2q|^cLbw0tGI7CT znj3NJSi<%@k8ZuL`p$Ta5InK;2VNAorVOWLv;|0hiskS5ra4;9EYj3&xq~eu0PON# zoOTJBHyv69KRSqnnU6VwJrCXgoY1SNYPag7}@}YCEKQG%1Y|2IY z_U2xK=swcJ0S7!BfbyxSwoP4GH9x0*fqixVbLgOKSy4R<07+ou!2UPdH@AR$QdB*f zUNI3!<}*9voOC=pX#)I+e)w&5Rcr-=c6#@!(Uu-ApbBsAw;_62vi!C=7RxkaO>uGY zr~OmDw<}{1;J*XMUPJqx=ceT5cM6B?{x4>Kj?ymH^02}cbECibcxduI><;yUtu$F0 z8xZL2vRd*jXaVx&HghfM>*iDtXZy>KhuI%Z&MD3c4`k7TR?l|Z3!C~kjyD0iQp$T5 zISB#cUv3iD$@QBD<(Dx+Z8BC@r2U?g|#ySo9u zu1Q#>Z)1_NEG!re8!*gByYGNOsj#!Jg1$qTdR!V!hrUxa)D#b`^EcPJc=~%r zsZFgN7h@EP-vhkn&9r&$(YC}sPa(XpM6+aI9`Q;D)Lb6vYD0dLFCLf28-tyf{a0Cg zitS0>puOY%wC@(sqIh`J8>}r=7xidMm6Vi)iK2jp4zL@-{BTXNW?&-ckGdljjVnSq%Yni5~IR*zYWcQ;Ov|}?xWiYmd z)rVIlhTNrfc^k(puUPFp5TkX0lX3T&{X@Hp=+=BZ0()^(qsiWMaY z$5r1wZPO$-nijQOPvxR`>$aml0?3AaZTz%n^RaICr4>y?J3L znI3|!(}B{(z_Ii!Cqa(2&tyD*NGCn*=6$mIa#pxf&;YhT@<_MIEiT_4^lPMcZaP_-;`)E9BB;xYs z>c{uyG10&PCu2*CnM;=ZChmP?Ldnp31T4Xs#;KHAvjM<#(`)(T<>QQ01puRCo@c&l ze+*4n(SCchWIVUWmuT%ZdtcDc8d+i6q~Y)H??)W?N^W(LcJe;nU*goM4iRYAf20RX zvxNWC)eN~1l}Vz_77%DnV;!UtyoixGam-HNAq;G9yCip2!mZ_?;qrS)_%JB zd=-jEYsZ0uE4nBn|50D-J&)xbq9ua2@yYO@X$L(0+=F?qq?+DH?U$-}I7Ur4;yH^M zbkbMLF%AnhrwXxAsrO``8hk)&QqDX+Z>vZ)rMkk8osXlk%s5o0qJK}6$^8W+Q{Z`m ztRhR{Gq+7>qzzZi^)_1buce8|c;0hdWZ#3_mS_JXq=dUG%~Q44NjvaLL4#!kPVI~D zCq&oMpy3wmBDWpLy@%Bv%l%p(a8N%(YBH@jvKwi7s2(ZvqaSe88h-rWD$9R`;dU#M z0g{$PwZr;Csj`0X5;d~)oTJEk6VEPhar{d&r%o!@@d+Sd+yzuRw&>BaQT=aCqe$k5 z_Wvt`;C1%Z$iICtexn~Brv2rtB7({JE`!wr8CF$acZ&*-FJi}}-Dl!os!ZSjPI!t5 zP!Wh5Z0>cqdwuOb%Yy+BiCSU=lxbFDvr&_XC!x@B#yZIj_CL|3Wu{^vKq13C<7I=* z*?&rBgc-`$u#9Ig&ofl-u7LvvdvEi>Wq1z=&SZwFy|H{}>$jV-pq|p?yB5%peC>_p z@xRT|k=pz`d-(QDc+iS5n18;koIc7zimVl_N#QxnInhk1n4*N+KI5o`Lx1)rG_ppE?(^#6U7lJ!KB`=`x8mIIjR1m#a*etH;x6)9r?G! zlcNr|1hZfkl>4t0BD#2Gm*}Ju)_((<&jkMm*jWn6M#V@P z`;pKXqKPvA(5)JgEdmJwpner*F5aKqLn0QfurauK7X}VS&;N-9=mp1I)+ZO|V*Rkh zYZ((S34k8kA`>_QhRJ&X?K}dlI9@MBhy1DDTZd~>v&8+{XIm2i@Xd01Z_Yn_lg$2r zSiJsFgk)R(98)^^q}3ScJ0#}kN;S@%4bkN@P1xO{@Qz*F1gyBS&z|f@Bb5Gc26n1V z*6>FMpy9cO?4b`E(o=nyT1g7e8@7k_(5=p4AvDb$OWli1PPt=u#yQ1!wY=}AXIFbe z3jLE&-l3xZa$|L6MYS$uHwdtxI9wj3?d5C3quD@^WQQaCe-Iaz_j<1H+`VoNXJ)`F zA{HKwl}kg`NgvZy+8!_L9twqHw4l1*1~p)5S^A;hkHUB$e^m_h9xsfm?t>G4IrcwG z@CWShZbV@F>Q|GW{`h&Tx!67&;eE4>Neuzn=q;IJXbYhv52~u))5)F{(Mn`Pr#flU zPE$p3X>`TV5$(;N{lL;x-I%_c#*+UZniA8vx?#}*-51?lyX+>`C7CZ`Y&A4h_{c}C zscEWaP2ob|0~!znttnSa#Ap+1y9_wuGmg!YhYAM>AI_itc0^VftPV5P=K2YmOdPsbEfXW*Gq;>{~_15i*v~(At(&p?Y#0;@N&gf!-OC zYre2pcj>rz+DYU@l$8BcLw(&I-4Ly7y}>Xi?6}sUDvYUn_8Qmt^p{V_&C~Nb7iy?t)<*Uwc~-Z@i-aQ>~g0v z8G0MCOOl8mWK5$UiK2q8Hc2{W!}|Fy0&78_u!99uBSu-s%wxA=O2w_ro7JPIO?*BM zmHu7E1X*Jn25BB$BC_kuBSyGy>XDPS!Qkh-GOgx~#RHANDD-KwDtw*IU_#+Biu`>E z$}E7-QWyE*&%`h+Bj>pC{iDf+{8W7uH4;B`R;W&RD>j; zK|5M62V`8uEBsLv>teuCAK%X22=9H5ZP7u}k!>nu()gUJu2TIYI>T(?xlwHP{m&R% zyD=x$RI%;i&&>cPoXEqwii{rg#28g1ISTH5Ncw93DPo});!~@+p1(MZhG-JYH&}>Bv!HpHJr<&HMSiiifztM~ z;$G6pe5va6v#tH%qkO}FC7na8B?YrP`a9Z7pV)Ryhe9}kQR~P4ZwP5sW8+arIjGO1 z^|3}njZT#gK8BP`iNz^eWNEa>wJHC0Y)MDIeHg79(t$tP-%OS~Y?KJ{N! zJg&)re7pA*0g%j%+4>V{0RI>?JUl|wK;(g^-PBb5FoEgn_mLj*82bp|jyq|$sMwSt zwcujo5^e(A3ZfnD!REN@LkrpEhqp z!cmXY)txVvLnHbk9P^GHG@W@*PEL+?I3l(i0j0tbU?pAC*_BqSat5fVsFQD5F1Y`$ zBHB+NqkYydmR3!_U`pKeoPUDl6fUc=*%Sa#<7t9z+^u`d5?k)wuU$=2l(`fU0o?v2 zP9CaE zBsur1FCai09sdtmUjY=y)}}o; zfgr)1;O_1OcY+5G?(QzZ-QC^YU4mP1_uv-X;qTn9{@uO1QxsLqFxAs%PM?14J#SbO zd{F5ixkq?=uGq&mwN^nvSa}JV+#>&0*MG{g8FjWJsV>Ln6sZkhHw)0k#k}U7zgV=# zTR%kUw(+B3BC(+MSeT770&_Ki_<~o_$(@|DV%z-5yZbm~WLf z+njdtFK&k>n5W^GlDGj0un>iT#qz3|&Y8Q%?r^!I9sK^W8 z8VSH#7C)?8TAi`{Eid~W_gd_f?WU5u=1rQV?NBK`;`4QKB6*RoIH39~sC=DSj6A$H z=~~>_z|5LY&K^MPEiOROGOcK9P*lGn0B>h*3+`mmdj@RCK%tUs|2w=>IX17!>8y-% z>XKx$Ke2%5MgO-dY-QZ$woD6A=-rm!Df~fI*b{U2UvN1&?j{NYIG)abjt8jsmgg6^ z7OrZn$rokp@G$&Jj8}uPOSgaqc~Tsw3<3cXq-u*HH)$LmsKkRV>A*!C}5+9^#aKWAkl&ss&1ZD0)g6SEN?n7C$9i1St*31|HVfb z0^oQ|2ubi-`RxS<{?eO**8iy}GUKzGCGZ<%nykx6_og`gb4pW#%)Q&bIDXf9ps#;} zAhNZk*PFk9w2dn|fb?l^<7evFBAc@WD4Wr^MLKypW)r)@d%u6SFrc0UHX}e|)TPWr zoyU`%H|_$8ua183`>tP57c%_WuiHSQr1X8ah(!F-CFSCStoZ@$Z#sf2^!u#q2~`ZM z3NJ{lHhh;8h%ublsU0c~)5;_Y@vD%`_T$fW=m33GhwK2;d0!SD9v*Dz4agu_&U*6n z7}wv9*80A7+E+V;ryhAT{}1qbxQ-5QlHr&$e*Um=i_R5p32zBt>hbADK>vGG*#VKC zg-jSy@Pm9huz<#0c#+{^+00st3AnZtQ@Ys!ObUsDH`eh)+ z@Oj{Zt~Sl3n1hKT++MbpuBMbDwbwQ6uXLZGXwdq|44RF%Rm5cPAi=A$lCjun4LVI+=Ph1d7rSoE9NRsq%TSypDchyRlW zczDbffWRX7`^cJ1FEkQs696=-f5X&@noCKTQIRfs0Q3I-vt>IF6n3mV0>daP{=2+( ztaG&^eUu{>&mO>HLx_as)#c5K{igp4A+Y629Md(nmp|XX-?yih(jNh5uW_QQ;iP@R zKWmlL?6sf@D0ugD%S$grK(Y`}t(GU&MOx$&sW<+m!+|p@jZw%FWtYWLNwYyKpz%aG z1IPkI8K(H{8|TYvjlHzGLPKAI`AY4wrNI50C3)CsqDLj}gv9+22|c=|fK}zvH>M`u zWkJA0{COVGmpflI-~ImPq2Dc|=wvu&`m)r%GaXxg-g5`D`oLXQwtsMdgop_AEC`hV zDZXwDDqo*piOoseA6fS^UR_`Fbf2 zS!1F|+4#6vsyJZdZWdo;QAya$t;Rhc(zepL^1^Ng_oy5xg9*6BmxALkV*l}+WelEE zSxD9i<^N+2o5VQg05TeyIgV~_1b5s+!#5B}%(22JGKB*Cmy+NKbP;rz!yjJp~fLci1|<4B-3O1|XH- z(%rsVmdzUISteElf5Cone(y{ZmRDvD_=S7vW5sa>?#!HO+(?96fJyt0j`oJuUR_o; zVQlf-V6`$({%_RtH_o&dk3*St00!ydpJaDJ{~q;k(QRLbUij~ajk|eGOiPm2=u_)c z&9WZ6iTkVfu;3cVBmpB6jnAj5pg!GD9D4Bh^FZ`JV?+Nhpu%?}aKF~)et0cB&r_~> z*NldSrfgMJH%c+@^^Pqtb#3fRqasz6e@z}7Bz!VX#7|JE%lAI<7uVb zB3pgzy2EU>Wvts^wYTXw%^Z}NPNTW1K|!Wiwz=v`-K@N@IIm`1%KB=7H5=7v6X9E| zAlx!U^LrM`;d0ped~o20-9<@R1qvZ@x`26>*_U$|15c)N{IsIIg9F`{yPb6g@5vT} zzEjda+Q0rgK9Ok!U=JV@o!av#NQstaMzxP~2D6$;lX*Xj!nFx(dI0_7ldy`4f?<1F zQEJjF-FWM6R-Yw+2MqY_quKvNn#cv6Anv%~kryPek}qJsilDTcp5OcDtZ;03D19GzQ^n|pfjv5S7Z6Q_wzR~gIAGbT z|I`a`ceukdbd<=nTv&NFu900`bhlsBIs%8KJ`|qINsx90eFFE5uoR*Is#u~}K9YDE z&E(?#E{B_f2hD|)oq&3-1CZr9cm%fpmU>XJL2vz^0uSkW-FVr^OG!>(OA*@M9A(Ep z0WqNv?IIM(t9&oh2@^XZ$vLpILrH~^q};Bt8aC^ zzlsU5bEtmk^bH?r-AY*%7uUe}rQy#xZYWOTycnr@Q5Op6JQU|#e#2D*c_c>i+MX3=> z{2<-ZU|h?g`LeH@iQ~%EyVj!M!ZsT>%M+}h2hj2y^-Xi5RFQ4?YYI#4J`8h}o(NI# zwQhB4BT{rpaKbYTe2=R6TB$09jH*^pS~lMLS+SJ8-YCuHRIEO7uZLbJ^`n@%`d5m@ zb#!* z{UKByL`OnX?+SHdc=EyVPuIOmKXi~z2jDNa2(Sg^BKfaL-d857$6vnHefXWFk z1Oc~g%0~T_mAf8u@YHpOq%sKnGYV0GZvsjm2I91n?Ck#c%dl*`C<+vFbnKUmP`fW` z3LvQHi#i!A10%XYdcu>@C^8*>_UsmZzKfbctJFngQLy@)MQ~p;Fkg+tW$U!mGp-hr zf$I{rQXyutz7y#+j{C;5pO`xjIs51IgOauSi~d~ZVRqA3hVU4V?3pPk-wM{q&SP!n zTprUS2ioPO3bwZc$6xeU+3TfnhERpRs+TRED2tK>pv^YKQN=rGR%iC(-q+~iY!>$E z@hO*c^~ILTP-V8pdkCCqMqLk%dVRgTs-?eI(szr+5b}-IJA|M9WojRFhsn&q0L<9Q z#Z)eE{va=g^xN*70&tK9f!eB%6>y~qeRfhkHJvQscc(jgUBcL9oD7{@JYc`5+mmd( zMqs}QMBZiW`qciOn0gQnN0f>JDyDj+BbNh5f*DP6W#1GwXXA0-y4vZjQMxE@T6Vf8%$Ify zK@-Pvb&{d}D@9hPyzx@)*#NtG5`>>G50>|JM{f$b0S1jR3Jt7*GjVJIGo5x&Z*yeg z2V6qNavKhzPX?P7v`vx(57!CJuN%p8w!rd$og4B6mg_-vU$6NVc8sgpr72%K{`kQzGwIo?VwTdwcJJBwTW7V4=T1}s z8LfxAKEF-El*byDf(8axPqZm3f&S1_PtSwfQD@zX#sT;0_u04Ip(uH+tV7pMgV;1y z;p~HWpEDc+GgG%Zqn+ST>12AZyAhK*TFj0vc<&u3m(%A4n?J)_m$|#Z0dBfhdEVuy zgqYbfWDpKKC#2y|jZ}|FaPH83 zt*BAWXAZYu8?Atgv0A;HrBcZ)%S$_$I4ml;Hyu${ghh@^B~vAa5Z}cxP!39`%!s}` zEHdpa+Ru>K+y?W~mLQ*tw)OG)BiGjE_HBofK&KgPtZq#}GBhD>X2atJ#bNcpLA!1} zc}C-6IWi(@y!3uwoXU$IqPUCK>9A8cROIiH)VAp4F?3%?dmQTF!a9j9{mbC7Wi$rM z1wk90Q1Z*T>6I}?GS$Q+3QeG)`4Z#!lJPno6Ie+YwQ*JdDwaUe&aKhHcRBug7R>VW zJj#7HmIJ46a2TBz(lTb*g+JHs9@%t~fgx;ShcBF~s~B(|PcNOiu5$90A1(jggt-c; z39op%Gk1>NOIEK#El#+KE54-1BX(MFgv12D{HbWNp%(#WC`ZmTYgn2(Q>Hqm7mqHw?yDRIu;1KWH>*uX$u4G|luynNT!v8X4#MJj<1LqFK)#A_ zpR+=EqT-dhekR;0ol(&>d-dYL8@HQ8K!N*ZHM<-0HM)J(x2R{ewmNm~{J}Jcb>eCT z6qpS>b!;_GUW^3MA&js{9)z(t+J^wONT%MYWIUIHbdj0WE^R#YV*E1|Mq~A4NA9>m z=1wZPMI$ot2)M?vef=BgYN*totmW6+MwIPmDAY-(aL6W69BQq2vLqC-mB|OWgn_o4 zKRHc6eT~g~tZeThNkGaP(|{iv@$G19Yq~cvkp>qB_olJFyy>jE!N$kZW44>MvO;V5 zkHn8WYS3?$tNLzF=UoWga+~T&s?AGt@pUgJz}KHhV-q1BP+T#2{PT+BA#h$IU&?iZ>_tIoa}nzmyEj_qg@VladIIF8IQ^^5S#ZQ5a}bj-}Rn1SDqyL zgrie!mInMfX%i!*va@&HI*chB-ss!#T1R(zssB06OD$d1S5Q4mvMoW1XNM;aTN0-D zM9VZ}w^NKj6rh@K#-?HDMcSbQVPS$7ul)Sw}z?TR(zqDvg930vXYwDq~on zWtTI`^!#ffnLfJK6PatN-QNE9rdN7yTBQI zb+i;@z*nKqQ%jv);la^U#EOioufIZb4ed)OaQWdSRad8R8$NSil|HUQZ57Z(r7g>ua0xhD@-P>7G-M_j$!?5GjdTQ)OnT5Y2X@Z!_|4) z^bnb8Q<)L^f3ZfYDuAxz^}aPVG3iD;uK7B4udiR4SFH!u;xfAYksa7N__1!|692ih zz5D!EHX_|=ulDm-Qat9#RQ7{u1otob38a$KvP4de8N3!Lkjg7DCzbb~^fjv!A(r&-1BisoUWE}oN|fOg%>iqtZoOvG z-_d8^cYx@luS?3Lt53dGSN%Kaw?pMoyC1#ymBa9@@y1G}63ZG&2{&q-nrz2ZnX!c-lPwPhAP2LqqLz&UXTZ1dvq8Ok}A|nqjQ{1vOplO@Cnheye|4xBWqWa&y_5J8iD)@Dn&~ z=0X<8$rvN9Hc1S#FI3a4D&-2-hS3lSDdFls1(H#!L#|ogO;2dl?oavRfUUMF&ORcM zEIjFqgMO3LN!<3_2Byhc4l@c3r8l+Kqpu!drXl~Kb%eOJ#= zMy{?lcyrtHnNZg)`UhIs$%Sg5n23(C)Tt^RayH}mM4A|ex)I!qAaERu?^O=g%TK@M zuhk*z$Roaead2U1!Z&MpO}q6O4HSG8n1$$8S!aAqY{v1>$@w83kp2NRzPFaSQQ5@2 zx?_Innr6i%AUYzaCvisjd(CJREs?AAOpjmRSAaNGl#i(h#>6VgQm z)<4b@^$?NemxY5pN|sUZSBuqdX1|wWAkZsotM%Pa_L8#Sh)Tg$%>&KXimqPPPOe8* z20_F#{!zKC|33>bSr?;6>A=LUhWMiM`X>fsT_lyPZPO6okLCHuWD{Rsrg@+4 zJj5@nD=q<*)NV8EPvNhzGp@*?LQFGcm)TMLZD+Ro93jPT*j=0WC!>tRPy6Pjrc7Ro zVRWg@P+O(WE*?|oHGBbUQnGk(IyA^J?p zB5kQtoHEAT7@7E-v!hkIDRkUi0*V>TMS6gLA6(J-YGww_%z@o75v#P(zFwCjCui=c zwuIFX_Q>j_adUpHpZgj-7Il(d=v}MsY?3VNaQ*%Ci_K0V*&rTMwGBkwZ`l$laM<9+ zUXoB{^KUAwLK$=FN=2j{-f5U(%zG)iF5(5kX;@&sc75j-Di+7XDb$t{^{H*jfupRv z7WBaFWlbs=VU`sEWEn9{eO#umj;q72Bs1wAs{86@03W?bpz02O`0ib|@LR)}w?p3?leSUoU)5>g0sb&`_hBglw9z^V1~lADHR9 z`3jJqw{P2;lF|+;=avnRY2qOzqX;nMm-iRfZ+pGc`26ksRnjk)?3|R6wdWx@drtk* z4AtpHgIZ~dM&vRi6jKM;#lZ|sLbq{F^*DMu{?dLBK;-NN3el`xf1V2TEmH>ga``v$ zSzb@UR)T{%lWx2%!|kvRL=H}7#c)um=m+(p^zXwf+;At3C7_yZHpO^!P4;0Quib~8{qEFOgk1u`{RA(>J1MgY zyUrfjWoN-@z^B_v9@i7pYu{~sNbyD_g|a6Uk#Y_y3CvKGA1im zE%JKMB->N9LK7oqX-eNSqMZSQ(Cg`w|DnJd(r0gGf@k%QSthfaZwEFY@_!z6xF%hm z@X|*Jl+Iij=`mIFRx>Jr=4@OBp+$U2mMcF=`+F#B8sRnCO}Z@*Qqs}CtEUWbHs3lW zL|<+@kXKUASJpZL;P%uw+V;ZfCxg*5%J&RZfY>r<|GK{I@T?;1^Qx`*!)2VMSU1Nq zSXN%npxbq7P6QSI%cQxyxfEuDJEoFDnhKo`I<3g*wTY&ikX05J8~ZY;j70)?gtSXSo`cE%#yj&xKx8L`&a%WVpbO0SmdN+6{S_ zyc3dPk(T7&n#Se@01@4`J20F0;gJ{ULfhnJR-$7->&$WkmEooDDZE4n-7 zzKj~@yyZUSc7LR5rkX~W-XBU|y=&r9%K)A^^YQXIf>HN(PTKI*Pd3P4o5FFF(@CvxjvO9z|pw+J37!t<8Pff|iNKlS=(~;uGo@N-4=y zDl}21sr1JcmA~hdpg2}{wVF>UwIf4Ju?i1zOI*9t#|1gZs%+{^&@s6hW!6c44cQhcvD9Y!iL; z_t3;2ik-=7)&Xk-CoA$X9&h4WG*77bP>&V0TT)hb;!JHctTOkoGGmciRw5J<7eEPhLJc}8Hr!*((?N2awWm4;x={RuJa5+943QCjychC zd3i@89jA$vbc!^SX7bkvkyL5=w%M_1;q9?LYP*23y6XG(8$d2WX@nN%p7|_8eo($A z2N?1{O}u^S2?{xKmiE3Wuf6D%G2f=?r$t1nx5WwN!D|VYLqtlMMcFakf-#RNmTmFc z*)L_Lv0n>Fz;1I!>6DwL?ZXlUFixs}`&#Ihx-w{uXEkn8<>=&c2F#z^v-yOXg<=hb z-}4Xs_X3vY*2im`l2lf1_8NEbSuXC*jpyLMIw~Ipr~F>L;Ah^X+9kq^e9Y=-rArl$ zo9Cu9rt<*yDA+{Uaog0rCg*Q>@6awTCPrCUJHe!;PxTLf{GD;q=&tLdJDFenQ%BoT zHRt?|yH&{9L7Ls#YHb?m94_CgFQY>y@H}S1!Cw=r=&l`s_n)(+gpNYovq9?{`52+ovQFh*y1R6 zd^T8 z8;(Q}S+5|iDZSnjA(9v0J^5~o+BdxzXejhWkj4}ynV^Tv4FWF*ZXrry@5!r)rWUopmtze7!6(R;cgWYp(Vx-G&|Fafb2zDn-hi*gFOW$kJoej0jQ3&7Q9FxZbdaX|mPIq1S4=sD)I77zLJynJi&6 zV|8Qrvd_=Uu7sX*hcARLEylvJpz>vR>H|M@1CCx)dTIU05-@j3O=y`+3>9F(VoWpH zU0JCh^Kkpd^)ui>><4R2fxaXGBp^W*$V8QD`+ceEpkM<8q@j*DOJJsZGVSl~I?VPC zws6Hw=dnhj2*Ji0N`WEAUA{_ZW)`8?!JF%xqhlL`VT<7rw@3tw=Gr=ndNGHhR*Ak# zvXq*B(w^i9l_g#igCl~?ZL7i#!q%x4?IThPMiqhuONZ}a5~rOt90!kuD{+Ak54I;w z6|gydVzH`I!;zgJ_uaT>6DlGXM+NtyE8Qe+=4V0YXYx6|*^GOdaqWBtND^PhDhiQ% z<+1zAfkzup6bU3{=8CmLd_lb8WP|Zo&#~TTR=OwUEKr&e_m>rD5Yg|P63x8=MXJOg zDzYl)#2;#HABX@-&pMIIpm_VPb#QEZ&RLT8RWc4XRwn*KZ=kTBS$;UwT^QBQr^b|tG^QH?6Ic7#BS%7Uo46jmM zK#kEzKn7--!HtMFq-ZP#_O>z(WGcteFYYhj0a0s~W{QnC85kY^xp{gx)_s7|_G z7#%$o8KAV2&nK<1^?cN>45lKu0)hqujbC3Xv*uIpn~554E_snRPt0-b-{`kiI;~#7 z5-Ba?Yp_nHp4%Q4$mg3B&yd#|Ss8#n9qlpYh2Y9Zgf=YQvepkxb7%+c)&F(RhJjE5 zpF;lCLMali_D#`Ws%p>?3N4NjANLW2++fK34okw!bYk;7{6cT7VOyy9##pEZ%_Bq^ zR#9Sq9AT!;TTVAg(iWU;Q$cI$5qtX%W8KL?e@+wZ2Awj`VGJr*?;TD9z}QAW70z7&k^;Jt2bv|%~%%N(Y9 zKVxQpY;Wa?gtb<^b45DYXJX+K;Z=%(A+G97u+>SK#s7Ih~8`-UPp{WWrdR5M}*j>MZ_ni0s8AajT(EW@5vOmCq z>)x#y%SGZ%eQE_M+$Hf^R(94W^KKsfD(b{7g`~eu84LMU5U!y|rmkaGI?!BRuYwRA zn$qzspl>rWdx9;9D{I863Iy?a5KORJ+6W^$Th4BB{F>Hoh4CYclC+Vg zU0=kqWri?T4){UwT^u#?yoZO9o=WK=+M?fv2c*nwgFm)e;fcm^gkIW5-;|FGLew$% zna4b9YP6u;p6Og8ZouoC9n`w(%3&7}OUIGD?x0AJ)_?`$56Wc_5zZgsTG9R5*-ac- zIu$9``}=Yr?&p2SeExbalq%%h>ReKBvHt;v3_Bq#x%h(geS z*U@rVn%UxR%|i!8Zdr;epD2LX8#b_0WP_6tm}kv``l@{%RddR8yh)&5<5E zmm<71#EiC%J?l%i>GWra6RpheB`;-pAq^5m5ncVluff64(M8ZvgYl)?di{nGTv5Uy zKaRMuiR!Qz=%f!gVPrzUAtC}*1do5^K!xY`ksyL4YSfkqm$DQg$H0z2=cnyE2p}>c z7O-@WCX|HfM=@F?IM8!qTHmcx#j+b9>us{D>Nq-;)drgi=chU?EIs(Dd$j|!>RHF2 zR`#kVyZF)9(zBk4XG}F=?u4NDY4|hsuv#Fjq%QX;Ae)m>iygie*%x=X6t5IP8C188|US(~w z!GEHTNt^93@66v7?~vuya{p3W{FZ&v>2I~KadiR40OdpHI$*-N$EEP6$u4w36v>fr zX}aTww&7*`eej|7oO1d@nvCi*iz z>myItqX{9@R>vbcU(p>FDZ1MXyi#wmhZw_iEhrLh#77*?3oJoV2M|P%{_)u|bidBO z3OA<3JKt#JEuu7rm8cXxx&O-*8`%vf3;mB1_L%|=H;f{kp-Ee1e&gQ50BHb}Qq*cZ zfx~g*(d1bRp4%?;th<_RCD`;b7bU83sAb2!d3Y)?V-uBfzG~_X-x+X&jB7Blng+Zx z&3pPcVxt?p2hT)%CX=eRw%6m8k$O_NlYv}eeU?-270A9y1Ax;Q_0UltIir-cwb$<@ zvpq`i;1=|w(zwL0<9veA+Uo}7xZYD9`Lcc36keQxD{1{<@_YX2RyLyX?A!#Bjh3^+ z93F4lSM-5>|7bgQV~EcI0p^W=wA;GmoODesVT7}tMTYK5w~3j@>-D2!=Qv;*oaoZ_ zCkrOgzY7`m1r|(xFm71fyn`8uTxC30Z=2xJopq@tvDa1BL`XL=EW-*`b8K}TH|~2_ z`M6m;;H_$+jscP?<)~3*dO}1xJRxQ#8l&lZjWoa=i~eaBInI!Ib5-~)&ULKrW<|X% zFU6wTrQJw<^f*E(vPlEtd!+gb-AV;igu~!C0_8%V`1_th`YMdKhoEjTOZYl!tI2*n z=j~pp@CCjUDGE>4(sXClDvv2Ui+LiPuLJ#}pw%zi3N_YDcRP|>h;IT&|D1Ve_T^FgW?ey|EfzIBLCfDmbE6G3MGd37zVvFe=HSO8ii+ zV3Z)aa#kTce(3My*wDVnd6g=PCNe6yv9>>(&J+!?UQ)sqGt*^{wMZUY@&3*#v;kfl z9SFK_QJeme z>^aJ%Hu_>+wkf4|-+f;7Ui|cMW*UEt4BI*p^gXXOoJG|JSXIVF7v+E!*a;G66|-cDvD0U8 zaEvlivc!@F{vR_Ll|@xl8h@T{jIkE&AXwmDr=|i30JuFg^Ut?EKdxVjthMd{gzw;$ zcyuh&?=IvDN-K_roEO%YaX#~FIPE@* zncV4VL`HWR=Bc?={t4crmGX^Ue|F%lDUfjcS6zVRYe6fIL?1{#T#CE^QW4L?d9OBI zI|h5CAUR36IDCQ;mvZ^150;L{P!g4KT#u~lp(c)3=~-Y0RD@_&O7qf-NiN5Z6$KYv zZBi6aV4o>dd0c`;J*9b#3f6o&vKKzpMydN#LS$X?7jyHvh}Z zos(G}3dT#5u#c%Fj*8dbq&%(-CJ-VKXx{bq24UEPF5r@9P(Z+%-qdLY@d`0Rr#QP% zlqr8^X=>SmAwPfz8@s+0R!2KlCj$%kp9*L~A$*hdMDFt{pSQ)>i?%#-^OZldU}_+9 zRl~p;Y4{;G@#(C+>np}_K?i)^envYXHdvS&7K!>eR^jR{s)Bai!Dj0?oTyhXRR=(r zahJ<)8{?}32C2-z)X8+&JmUVMwV8x=jjHZ$xms0K#SbhlGvdr%_IRi}x`k^;JzO7g zjj7oxPSSMBjTE)GB{~8!76#Bo#7_=)-0$H4@_HIM%wB z(91p4s?ul^cK4W~eh+;fl{QkfxT;JX*Uj%up$MLg)$zI%qfootN)_1N3hct|DctKzbzW!z!U`QF z!1gYnl)89^DvDYk2OL+v9}dA&jh`jsRP(<9GMSP1@0*&z6Yhw5+eweYWO4L%(Z*14 z!6IwLqf#Ug5oCRfTUP49@-H)EqvCQ@@LzcG=?1-=@Q=BOWo1nWq6)-%nUVJC2i$xg zU|u|e9aed5n8)k`V#-Y)_$$4oIh(kMWBqHZ?bVBbe%C`v(+AMTdS{RDLbXS#((>Ci z`26sIGoD70#HBx?yukXw7xEBSBO;t!V3vx?O*p*gcLTG&LojkLE&U*VEC%~QpC2+i zsDO*?qhO1_MH-kXvYheow8}8GuN{`SU_vI)MqaO-XB5PVSv2CPO%hg zewmvWQBYCI4Tw24gjRb@pHDY#vy#!F&kF0pN{5)OlLk2J8YHriq141h3RfQ`SruVq z8=U1e!LAa7_|yDQQ8eX79{6W;kjPF%ZiRl|cFK51MHMkCWy3rkh>`?7h7?`^&R34b zN(Hq0T^yuQ%)d;A2iprvv>%cxgMHT$sW6Pr4l-7!r0q&IyZZc(gcNf_zSMC}=b+C}^Gn$cd5L}2x>`mL>HI-3Rw4nTAB z$_jh>Gh^D9)OsUxb3J0Dcvse;0m5UB8%qdegP@Ej#aZ)^iRo)Z3sY8xmuT<)%sha( zqUfzQarJ>r)66|5fLo#vX{FeRM4c^V=#RlzuTz)T6&9^YawUS0k>|%nVE3wIv(4qD&mnAQ5>CaTPydO}6a;QyxzU&!%k5@2g^BEF$!A+bW98BR# z45N)~>a?7Yk33$D)RwQe#G4w`jJ)flMPs5akAyjqbtn)N4MaKwv=RutD8|KV?do}b zBvBC!QaQwQ5~bb};%(%0=NL+!2?4l+SxCsD9lEy^l^V+z&efVi5}#_jMOv$1hPfl9}e3%XQaf_l54!s1BTy7@kYHnOt!tX{~FaA5pIQQ zM*#D#|J9W}Ki4C>v-ZkvVla7W@C2B#eBE&_yn1chf!v$lOA|P~WeDYtg+jEaWRGq= z@gTBIF@u}{@_VwphFPKyb8~sws>e7nu4Nz^Yoxxw+E^uLl9VWgkiMU=t1pr~Z-RI! z3lnLBb|=@zmFjB<(F2E`azmj-1VUx>%hS2IOBvYM9#jalbXW3tLyk3?OrhzIaM=HK z@L_D{_FWnCSv^IujCu~CoKt^A2-c;@`ODGX08JZQTw^4dNI~*Y2(fj?mjRDFXpj(c zd-lz(i9S7^d$fAK>wP8_riufa27VbjI16U$b4JB;W`flqw{|Tx@p(={=1?n_k8qNR^$|^qz8Jzu z1oh{h9_G>JT1$u5woP)@MH3vUO<|R+R#0;{oEq|1-&}QINV8XAozkFEg{uRr^wk4_ zEYb&_-B}_Lu^{XN^>ye@JIx=+$bAdutm)yO;<jx=P+Bf}vNw_{4qc6AZ3C^ibkci1H*RbELe;>%!Dv$!<;t)iolQ(hv#d?Tp} z%!@k;W2-DaGjrB&i~Zc^bz9&BWjahh%X24l#kYB zpd(eap;m??3kAs)pnUk@kPGa{pL=ebMe1j1o^#J$6RU?}4KoY^;Vwvud{NFIG^7=k zOToH;5)85Zu^bNvCkX2g7a5b;B20m_Sk8v6PJ9}{G>%uRSi1dS){if3xwa6Ks0Xa& z0m#~FoXw9|@}!Cykx5p1wb!F|mmvYdT$)KofR)@72_(5I#$L6?zG!4A^K5<>)`ew4 z+{LYZ)=hQO0WEb!I(JQufBM68>akq$4n-DU_KkR8fOA~o)H{~VCZ8*wJ`CSBRe`dW z&sXsCuRG85A~PWBYN|blTiNlw>Irxb078dVUq2%szLsDLlH$dZQUNY-D?=P_Jf!Vk z2iNd3vhBTn{A|AKojb^ip=qQJ4;FH*A>R5C?|=Kk9&f*PCwwivO#th7jjQi5@EVtW z%{2Ju;ZQtS8&KeMrGFz{ZfJxTfi-oWM$peFc`HFM@7X!$*i52 z4h3;u01xUrmhn}EUIq(xJqr%5AgQUl#Oh3uz(zU$a-)dHB zw!DCGUL^?njMMz9%4e!GF&y94Emqc29(MWl^jw?Aw-zVSu4-)2EAUm1ZIb>jk|yueXb@M z2Z$f_XPYa4Ys1RB2Ff{z<^y!;3%I72zDI=gZPrMKRA=X|=||Jue2@FH&Oc{?xeP(h zytM`g@jTKB^o@-LcI7Lrn`qB@i!VBS}tt&zx0bS z{i?QLLs8Aybs8KLx$4eO(ElTF79{@h`9gs>*7SE9)-BA><<*!RU-7>EBeVzkC7&E`Uvxx`7C?++#*P z>=6yJC{|VMiHVZ{m0g*z@7&^w~ zj^D$>4Z)j%HvKF39P58h*%WE}I?d{StN%boSMf;K!7FlakfXPpp0%~r&c?v><9Y3pS0L_haE|Cp|E znuu{60ziO_+?`(HqS$NuR)Gq2o8T&fsb!1;P)+h9jf7okVXKCAGrl<=6$4|qXq|dT zt6HuM%5YFmk{(xiKkVi;cX;lx0kjrJ<5~~m`-BbB3xQ2elf%Y(m!nb!d3^Vauf(xS zmp`M)(?tSXPK^cyv3r@G}4g7^Tn_Sav zX2FfLl;teN)s;!0Zw66G_juUY=svF(HC@)`&l4tkS|VE7=I-W+AJ46NuvjLU`Wcr? zjG}qW6Y;v_<6)U(jUB9`9m1EPnM!HLfCd$?u?1A2NwV%#AWoq_OhW{KIh8u_h}ArV z4=N)L?Ej>an*q;Z!S%i&$<@DNmDZ%{)bHksyC23e8Mta|V{tGFfq@Ws(EZ^P`94p#|Mnp^`LGU+ve1*3Bf^FMin~Jml$wtSDl8K$rh-E; zasAD&>r4j+`1~A)07Dn1*r}aRP)V%k4~yExI*{pSoVdm~@JAL|umJM0r8xnD)IZH}nuOW~ zJH+k;@l670P}R6k;DR3sBykSLf!j1^1w2ueDDJM>PjNy#>e`wn=R4&F>HbKPL5vuq zVzmh*j#{r0b`jVSNy}{R_!(7;g_QX#$Fa#F7F9wHHLpn3zutKUhx^94nNKO752>tf z`90y$;)1zl!kLFrc6;nUA@JbEVCk1=Hfys}&(7tH`K3Dk4qkZfdM*M!E;ZS*BO+aN`Lhm_aAN?n*}a4D zE;}{4l*ZCi#6s6%#k9n!_cG_jO@~!ucR|aKuoe7~T!S{;K(B>r{(-M5Y#Nx@+)S*F z#00B&cAdOf_3szoe&xf2OZ_7?M z?kR-6HcKYM<~ok1kMkAfQ8Fh^d`gl^jY1C6v)2shPX!YL{Se=|tOfu8-fBfM*1HSz z__f%O#n}ekWONVQmiTw50Ehyj8ALzQt(%vsXPk0PN>3)|>zPaQ;E6M!^ISm5rs9Px z#pbo#RMmnu2v~*)54pCiEqz)uAxF*+oTDQmzDgOS8$dbC`#ih_%TCBq3W2tD+{wt+=S->UmOl+G=VlgWzE1N{R|cew21z4_QDrEH@g{JN^d z7FAM5tA=AsPpJ(zz@S}pSDSW=5v<{5^S5u^-(UlFIYVc~n2r80=`;iTny}F--y&p4Pi9KJy17L#d-inITJ$LW2wVGvc#fa8#Sr`z<3}Lza+V zV2>WPU4W_aPpDm{fp4?vK+PinIhtKS!^KDYi1}krt_$MP$<0-)o}VC?OWaA{eEIar zdVu{6I#ckfeMUiA3!$-mX=B}eC}A8EVh9X+gnE3n2-Gh@NgfbBuIF|NswV%klVbF6lxpxYtee<0Bi=vCqdagjCxtsHmcYFKpe3Yp967QeDp{u?` z7$Uv^t1W{JRfSNADBHUHkb1a}sVFDJc6^+$ev9p2VL63D?1l(j0KXia@c&hJ9^PBwE>Xkkz4sL*Ivb)yj}UFu z2#XDV<9xs8ch2um_2N@Up-oQx4E+` z5F41SGFPUo!!9IAkc{1B99VLrLG|dU94mhVn4=bNV}`GjYtp^(jiAV(tC~hK;LDbJjVswWoVY*avCI zT{(L#Jzp=ri!rr!j>v3&Vf$0GOAs@+?5`y}j|p~i((G19^yqBun~{5?-udAlhYhct z{CvW!>vrL&X_il9tnN&+goDYv3uvvqd^)3(Hn?HwT{L{eHx14Of-7eNv|o<+EccAE zE2o}$*$Mt`+KqgcFC$bGDXl2|N-AZ>^rD}yi;tbw=lXKl+ticM?Av|d5AzrvBzGiq z^8O9Z&2)ISiK*y+{*RM3i-&ab$;Hp`K5Q_0I9j2H|5wFeaCF;X4&smt8FWp)57J2t z{r0ZlkKOjA4h#PByyrU|fy`TT7CKv>$j9<(b~&Oo@|rq%`o&JZ zxcY3xhQI*`i9bh>LgpTGq+XF7lcvigD$j8fG+qAVpT}X7?>w8awGTn-F1lEx;>5A@v zk8|!$m{{kol1Otp09#b^3*moz&&2Crl9;0qf0gUXEDihHMjySE^>dAjrA21r_-h`a zcksmc-4KW9(Nxls7UI7L&e0IV9ohuLLS2&LP`Z|@AizGr{7gF31@6oEM%~Lak3Q3} zXr?w~44v%5URcofeWjLQBCW2rLQ-qF$^76b)KxH@Z8BamsFR8tOwu;=W0kND~&qChncR+IW2Y= zxLZ1Z^mDn8J9`i;FNHx&YCjoE-F-YecB1mmM<*V_m9@Rmy%8yQKluYzx$i8Et&pevpZ}a9$MlYAJF#O$IyG6};nY8?O1Yq(Ox^flJ{b z=SCCV@e7Nj*`UhK!3T@eU8U@VZ#&@Krr|H&>7-~dhzN(NW(jyV5*zsg0-A}8(#wS= znl36RNM_Bsw^+J*#FRxgB!JwS4XDY3k=!0#0E&@|i&etrpyAK&oZ?zsyr4sr!Db*m ze(F>C6C}96$jHgwc5B#nGtZ$${gIVDO)VatRFSMd>Y_h2PCx1b$-avyC=ZbyeY5xp zBPa7FWiXaGhTf_%bH&#>=$!o-2s`vZ1Z-~0@m&p$QJLn^rKzeoF;a&voUZ@)1C3wo z^v;vvt*qrmLvY{)?f1k2vHAxQGIS?|g=!)~@Iw4ulePNViXzjpWqv!;vWGQghkIRr zC4<^(YnP|92mp`Fb-04srrh8*iq8h0@7PgvtYyZ>$rytpqr5Zh=$}{!bxGS8HwjL^z^3= z`gsSvLF4C}JN!F1Ov*>`13lVnU0b(^`^nATgjN5PeXfe=%X*XtHY9H+fl-O+6x|b1 zci(?Z*#=a0lCoh`gV6@$@5?>aW#_Ia9TJ~xVcQY2a|lOQUT<=3M^x{{fK?8=Ga^3b z{rKI26?~7F_=O|;_PW?{3U8#c1*BW4Pg%cRqMMqJtv)?o&#weuLe&%$b>?0zSUn>Y z3vWF8!RUYQ!N3FFs*qVq%uJ?j(&LG|T1#!B2_32#KCHj;g#&i!L*ti~9_059r)0fxfxA(Onv;m7iK>Sz- zu%fQPqVd+))nw8WU;H`A)F+X@SJh&}=fmXUD&-kgeDB|M14^`xy+y&)^|M`LgkxnL6MX!Q|42}UBwqCUAQ$4a#s(i+h$Jj*% z;QAQ_gQWqJ$9-MPHDpe%<`kn^y`;!OY7_p7y!LqE!RulR$;^vzXc zNil`0ef$5dI*-^bclIUAFZ<=ylpURpH^+i-F+M$kH}7RtFu+|-Y}O6n+ofQBxa`1o zpwxh7?_JqZfyc@?*%dZ_w>jJqkUft2K+7=f{8;D&YDK`?7#lKsb&2NFY&P&d5*^NA3>D$<+-#+*+( z_MO}|@2gh&Pa3JA`7vYbQ7Iah3{;ea5IK#K9piQm{NhWh@MvubVnQ?x;FzU7?DZ=Eq zw0-iKjo)7}Qlo-lZnr7<+^V;fH1P(t{j&0E;bp{~QR`gchK`oJ{$DEk%Wwdw1?WU` zKJA-7gh6x&2MLv1ix&VWm6C=kOFY;w0v?%*NhTbyrhV17XN|Yr60ULWAuv9r3{QVd zejS{upsRuh0WZ<;3Mj^0p})6|!=SGbb9UH2fY|O;pP?On?{0%VW!;YxtIK^^xz=qJ zC7g!j10)189L75Ey|kCb9YO_&T@X95UrytboU)qok*%Jz!FG%=nJsu8U70uz zwxn03(>KWLL2zv|&)nhYPspi_)a30E2Zo}Paeu#7j~x=Os++|(MYT4s;gT93XjzDb zASwN%79O6esNbV42B!(XSQ7(^>*`*&z`y?B6}7}pA(#J{nXL?dUM%kE=B7Tpqk3a# zDUH^u&a?I4R{=-7ttxLRg&b|u)T9=n0);bC<3c!>?U(cNB?VgC#~Bdz-McjvEX)DT zRH#55q&Z^yQhHQfgUARxeox-(dNHL2r@49j+}zHvkb!ETQM7(@UeSMZQY4`dF)05O z8?J{W85z6V9+vi46T2gigi6fjPC3kec-!(o!K7eRI8438(PapL!zB5Xl$Y5p|7hD2 z+}z?HiB~+*#w1(cqGXBuH%o+t9#ew|Lt61@9zUY1b)&Hk_3A3R*M2Z=steCn&f)5E z1s3}kPE^;}w2XC8&&9QhURhpD-8Vw6JvJ!r!c+Hr@^L9xU+v8RVFV!*5GUQ`vOPUn zoKUFY<#*Go7W53`44N3YnVzNOzJL+CI&kJ6~?X>6g zPkK_vnsX7GId!HaZwiF=Hhtk(Zy}KUH-8$+0a|PjSRvTK&RgPZEuI5^-lRGByl1=n ze|~9X7gx#>6LZ2{%jVhUC>C-zp$l++Z`&X?tL;b7?>I?#%E?zE!%vn( zW@5B^OA%4X|GBp|OKt*ba`x;z+OKFu|3o(dO!_H1d(XEGw8z1O8>@p2d24sLt)tbn zF+8y?l6>%Cnv^m~%xdZSdO0L7;Qm z@GvR@0@LXNpnSFfb-V-+)O!tRvttZ+grGr*U%voP`v0>zav5j3iJ#qf0Z@vYcxz$P z>}BgJ(mhDPN`6kn`gWsPsZ|UFhEJ>B>o3YpaCG~G-AH#ymvl=@e+z%-oO{Q2 z|GDFi;Sk(wueIKI<`Z*1ufg)N;;6`Y$N&JKN=k?-0sx#e06@y1aNs9De?QX(01`k_ zR9M+1`5?v10$-)Ed__B98uyjJoI(K$rcSr2aE)Mo5VguWTqfEFt!-bc6w90*%Q6WO zwW)?C{isUcY-dE<+Ig8yvp5&bZtBLdY^--{dm^2bPWYTHj`owIIZ~A%Ih%@gd^#C(x^e(!m`eCp0!6g)kgAh#gx(Z_ai1$|5h~;( zon-$&8-$z3w+LOYfSzzWVATylUd#6fI)W56tyJOsWv|4F z?)xI#T!F7YuHFJncR?LS2**gBe?6KRyr7ADKI`p|?B{J{@`g5xEm0b=wmf z8B`9fq}t8MB}O|9Y4G05b$%|-%a9KyY%ae6Kv)UD!-S#F3U>!6bxb#I#rckB zw0`?%Q|n9#Q<-ccd4YWax7G>AI$N>fL@;^iOWSafawgo zudL@zPh^Le=OGvXYI|O67G=_r8stC~X=dM$J;uE!#mC*4h)aKt z( z)D(r;>Ma^8uAn{uB))MxFw$QZRp$}e)uw8NN!ijHHe(O*?ap>X+Rw2`J+A>KSTw%i z0Is>@4c3I(HxhDDJWUQ5cl3Q|v?A;}IhiGIfIZoR=_d-8D9XoCC8-WqPR_eB0_T^a z2v8UjfYBhEC$LVi&|Vey62Zik8@9ReC{>Qny@nKj&(e@TqH}^z(JP46Bbd26sP>`8 z?>y$Mgemo@L`Ui6#=3H$d3|CiLZG#-Sat9==GUcqw_5>&b-BbmM&TMo1Zq6&lPyDT z$E1D5W$9p&AQ}()3VaBVD@eOs=1*SmN|=VQIp95rIhL<8HXs_IiVUmJz$ctja&`WL zXMe!f8h9Neo3F!_>*=Ri2PPVb(gIl#m(z^j>jiYK_&@i4xAW6MF>%Lx5`Snbm*4&1lF*0-&X*(yZbdryi_yX2d3W1z zEwQcEu~p&97xf1;!bxgO(ID7sG#GC3{qgRWPVETUVNMuSm`!SFiwB$>3-|)A#|p32 zIfX6?elJ=ipocy{5lN-huM^Yi<><_rjI)M#03WPst~RS+N|-cA44mjY_~RDN{l#Mh zIOS}Sg0IwG=QYm&3@Y}iJ;K|R*MfiIc-|t6Gwinpkn#L!<=}s;AQnaD>5Ns*7A-Ob zsM0=Tq|#m){&_?2QR;G`pd|8i zRblZGkmxkKD4xv4tHt(Q%ayrokH2}sl7>670fa-S5IE!Z&^Iy{DtqR&n}74|ugERcVzFgze=uqZ=v2iUx9M^CSDpuTv2OayZ`3-xqdBXS2dnr^2!N5! zwVULnY%t%M^pUU4pEKd_HTqrQwW(;mag$-oCVoBM^o8Oi1b}pk)khNll+sq!YpMvj zO?}CK_84+Sj2-M4ZX+t54;Ag5XrGv<{CqY%zHb3V7;W$8FsAkSd!uSx6kRpAM7~*V z!RaFrHPCNoI%id>DHD5`8!*f%y-P4K*B+VOFR$iYRc(IXCa}vhD@Bb#h|q@IfL5zX zM-h_KVb)}PV0iqjt6Wn?v1;2Bw=F>Wh21M}MU(uZjNrVKxx^o&;g6YKcNdbsLcMNG z%oltv{r&&^ULkw$b?#rvP<0pGbM~4P74T{Q-6`U-7V@W4WVX30H&xGXHD=XqP)|F! zpfvoES`mY~3Atb_%I|`rXj&N@Pc(!6=)hP*K6G-MqL}x%LR02fO6-;JF~sHLJkDQtuz2NU4wQPqC@lEELAUxcLGBC+FNP&Zk{}wF|M$3j(O~V5kpeBrnF9g{EtV zy+9rD+92j-MdL}2b|SntU3jQ%&kI3GV+a!v#B0Ty|MbQO{WX*nab8A*3m_57mk>s9 zLannodp7I8X=shH!;%gY_5905qHUzu6eR#aQYl|0TtfIn!ijj%0!J<~2}(x`rn zP%(g{k>F_0LE~t(gqL3Dak)p9$&G*F;@A=g#hUp60a^-8~24 z-zat=OGY(sN)|$2mW2))Xvru+fIX|yT_cWy9!Gaza$&vJ ziqnbEQX0Fez$a=TI&PGPoCizr*fGW}vV3{NOOPZ7o|xfPnXy7*>r(DYG7+qU_2TB^ zYL|b(ZUZZ$d+%sUMzk;VYo2Us8cK3nQ#nP7PRj{dykir2E52caIMA+u2|!6ckj9yF zVIYo?heb)uFhE3k9_D`@@J_CmjbNliBQ1tIyXc+!N{lwM{5pwG+C(5hO|s5?C6tYd z>e$k@Q#n^0%Zt~{=+d+lSi)O^Bi(h5KS^i&#dU5PHru%LrAp)8D@Enk;KcIlmZhUE zIzrtrO*&M?YaPO;ud5bO|2gr%F*MS}B9x4S0N&r*ey4aEJKarFi=10{f;e0}_++}j zBy&$0IEgShCO`97WVHbQt2C@@`E@h+di{N}6@@{ zaKc!-Mi3b#I192NkJb;4hv`$;1rpEknM8dQJIo5Rls^$aSF---;&sf;%im?>ICm4) zyI6vz^;qUcIU?iNs-HIEyDzbQz+3g>I5Qe~Ij-d}kmosRH1d+*@r3mRl7P;6o0sW% zPL)Oej=-{to;7Hl@F*b{N$21fzLg0&sgKSe!G%1aGlsf(vN2Z=4W(Wo;pFCSyLpY1 zcN;C3R;arSIz@GNA_=4#b04D5-~0F%%#5bpIWp$>K6W7jP>;sGR*RCYYn#vK=X1); zjC7^N4>!@X-xPhm(FsGm;cWbr?U!p8MRYi!St6=Ei5`yPMu0IEVT z09c^&@U;=@)bl--g~e8_M|F|4`VXGz5Hj?_C;|Qx4FD(98MFe17 zGc?{p%vY)g3C87`nYTQCKIi$>cM$l~QFd(~~v6(~W)?)`CW(=u|V~W!GM@!tBM&bXCVa zD%5u7UG%sMA^CY7bT%}&ocg$vPs;-+NWP7SR4wQ=hie zVw~rnv;Dy1{J3L#Dmu-B0Nis}9<;t)?NxGR_rK?Hd{i>WemF zrls-KD@J)+86Fir;FJ5<^5X%MIWd4C>dk)9vrsbV>2i)P(5o9bWuSy%ikY@ru={-p=}MJrQ?CU-9hVFO&k;`--h7> zZ}3BbPv&8HadB}P-1c56_}rTnht&?m&h(6oDAAq^`kUU$aT%(|9zU6Ft-dSr*jjZu zX6w+j74#zm!|sF~w8H7T1Ih<+ZklrErYu1FPyESqH;0ETZx7Go$@|vH^*f4(-@Om9 z;#vW6q1h`Px$f(FBB)8{m$w#^)+4?Wy`!NGVfEQ88V0&|``X(tkFs619(XwI3Rj+h zWdAgZnXI{E5+K+M<(o5XK%nxFSLTG69^zr#BQBSA=;Vwj(C~)%QZ)T-jfJ@#|1a*l zh4BQ9$28qHpZ9r*_X)f#Ee;lO7Z{p8M+u|~D)?8^(`rbGcmI?Nd+Ut`wK+{z&IZA9 z+sg46h;rcjQ9io7G5YYsK=LUcwSMZY4Rga6%zTL~Hn@or^-O>#|8JD&uSrykX0KtC zw+URFTW-bg2PPfLLcckT3K;*9lD}c7{PB{}pb27Q{_FkkSBMvK&!$~~^oF_Cttcsl z*XDJtFFjM0zQ!I>s5R04X|o?VWj%Tg$OFlNv=rPrT@_`dJhJJp9Dry$o}fI4N8ad& z7tVnbvB2$K_JvhZH4!k6?hw|p<4B&0_<1GS=RR90iA&f}Fpx3_(tfoUZCIp$A>2qO zJ(2~VUVX;wtmU4hTUK{iesa;w_snPFuXrJYPD1}}%v%|s+(CfphEi{5@YBpFT3Sjx zn{}0x>vyf;SW6>ezf?-HCg+Eh<(K>gzCZB3S?=>qF|)9lw6=`Po9C~X;ZSWlRQ60k z* zFMH96y$VMwr|E)hPJU~z{}PK`sh=L=#6$90+E0py0K(bHVO*EoEsW?_$va4x&ya5T zzjpab9HMhKGooFkokQOex{sTC^>v)`UUJXf^j+-qQOm7VbtR)^j^`gPQwaO5Ql2zT z`Te~z9DrcX>V`y5mcY=YOr2Q#;<7wibQ365hDy-mjh6MIPx}U6i|+Oyp#2;WkW{~l z>|KOqpV^2f!IWAo<7CP>q2}()EkuZfP<f}xFjMVVeNONkhWH%4he zKMxbvyyN+w(`hEH70+VY>R0-vk4VSt92`b%Ux%+W$;SIu?I{<+9ZE~o0HF7MScO`% z5Oq#&6^tctIf9RiK}PvKkDsQCW>$@pbn*kWhpvr`uQbgn zG@KXc*8Z?)3I199b2=jpX1q%r``|C|qo`FE{Bl?Rt-6(m)zy5TPy^#M5&~M>$7yVDY0N_H9?72q$Wk|m6E}P1z;iJ62=MuQ+ycLFjS6p0IsX=K$F!eo!t|oe=T6IMr4+Ic}1PR9m z!h8Q*uu`2&T?xGuoLtghL46y4Y^69%7IVC~9bYdy?5rt-qcu}e+UNY)AZz^W&Lo$m z%6*Ao%mH_{n}M0@ay~B3U0Zx1H`n;QrhP?oWqMqU8j)nna%+6jVAofYEn2ztOlaXJ ztpON04Gk{uwuK&9DK!r`XeM%-Ea|)+?cq}&`Q}c&5k;9+=0t-&6Y{>1>t%dBE6oG+ zZCH4xpr?6NyuII;IEimsuaJ#Ba(Ajn=L@b1=!3uD?HEK01 zO=1d14|l2DNQ#gF{rpSULH56I_G*h?I}`E}Tr+^)K|JkhbMq-!hTV_kQ#m-*Q|0(! zJYfx@mM9k3AvEJY8%oFvoGJh2b< zY=)cD25WPq${39Zy`h7Hp8=AZFP9~|e-!HnWFt!r7`9NMqWWV}nwuQ^rnkwYo$)1v}v*Yc0%YunQ=EteeD#N3ag6r@Ym%(~E zl#+jn{KwQtZv_H9_=O(!3oD(nFxt+7;6}Qz!%>I2cKt*f4`O>tVo{EfB7b>3bhBUj z27CO%_A<*mZ_;ijPqK)kh!st*9Ch9m=PAjdG=?wS_y3Eo1f0mRl@7>aopJ16b9+tP zjK0Q6c*7X(sG`w?Nl40bX^6SK_D$UCm~D*;0Fc^Y4Zn^eTM7#{KEHA>&7c0tz~D;? zz{!6N`#ACpc2kZB%oEiD-W-$92q8goUnNc9$L&w9SRv!KekQ-)QU9z&UO@E*z#+$I zZ>_nd9(-1+5768dFb!o8mvz07yNu)e?#r+(@Q0IgVb(I=t;J^&6EaJGTCc2uXLbQ# zG-JKv5ix7H4uL&B-V{B651e3?cT5RUltLV{CCjrRDt)uTg^tutv`cldtN2VBxtgGp zYDduv1p-_;NdW-iyHtRTM4yLS1}Y8}kH-zeAQ44*Vt=M*tX|DpCV&>k_v@Ra z1$pmou>GWDB%8@Xkk~QHcPuNJ>ctSI`3^E+jxuQliggWEOJv%u0jeOSh@ddxSZsdN zmUqU|S>jIg#4ZZc!2Q3`ivMqnt*&82zeeJ5OE6V!Sd4n?AB z1-Va4bL%RLI(27Fu#D(s8NGM4x`J;iQ8f?A>VD+(vQj9(!3q^?3Ukyb#-YYCv?wGk zC{;dkNnF(;pjR!LZk*(~-(my4-@&qPUoR=H-bW(L%RqQ$%`d`OY&HoZLm-w6s@P8j?(ZQ@nFIm{? z=BL3d`Wc)u1u1;kB1u`JmHpDj-)zq^otv}yl`>2bG-m>*BYPfnu5G~tXF^AMk48{S z%YBwMvpu`5KC?`bq1m^V6^I`iDoOlBvZ5d$yHT-W9rr7`9_org(>C~s4{agf>iNro z1QN()WaNzfu@0P6eizPUa0{;RW3rxW!P4XY!){$}N;nt2v*sn+@tXBIgaj{C(^(V# z!5bC@`!hunH0E3>SA(uT-{x1~o7Tp6>^kzY84F=) zZ!3@&jrWpkKD=7X^4AILIv9kNYbZa&S9ne^J@z+0W(vBHb6qVb?|X-!8ny7Z+*x{z zdY#ADCNT`@d^*f3{=nUt6CSIZhnnjGbLGJcohPnE5_pjvUI=~K%d@!cq$7)gRuxQy z{z$$s8^nabL0;BL)}9iv>%@^>9Gd z^ztsC)t)4|+tYidW{o;`9G3TRl*L-%5>&8Gtv?985pWp=)quPP7;n>JEe`eW0(Hl`Sqvn>#B zzBu1Ev1Mtru4-VdS9UvV_HIBkI*|R==m)EhPIn`I60s`QOPq73P|x(HP!Vz9R%fA@?Pb7+GZ}coLja z{(pj#Wa{=>wlnU0Y8$D;MSplxY3SfO$H^Ql zUTzouDS@FPqtYt>?Rm#Y?@~rtrK9(k>%FwocaLPrhq{A92LzyI4T;;00}L?(Jh(5v zy$=8Mfw<#TTmQY`iu{M2uVn9uM(yuUM=jToypsSJQ2#t10NE`>I0D3u+uI+_=r2EH zk;tLEv4Q}f%20k9-Wc}7OK94OqPrl_UPEIKD>op@LzPsXOmBf8AuGw^=H~!l1qZBh z1>L~|BvNEIn()djE_u%@aTG!>?GdQSkXMkXf0j+GBE>vn142mWJcs}dvOijGI=CFg zAL7;tKgf*zcQ1f>F^DvD|KqR4aGC2u+BzCaN?lk4Kv0BB98cbCV`Mufn#NaeP{31E z{Pqi}fJ)*_*}}y@dJXBaEgI-B2Zi)iyZZ+!sBgE0#<40pJNq3@>PqKAqNR`PMVuqG zbZJ2W=7Yij16MLq^SI@G()ZtDDdQ4&#N+*BNxuxo`7jNl7HSqs)nih@5^%eDJ}L6=-HQGc!|d4OjT# zi?+R{jOp_Yc$nz{(gdx$nGS0sag8Gr8TP@c`;GlPP`Nb_0_a z#|*KlE|$rbmCXd#yICa^FRdH8xNhUPC0>!oXaw&@B1J^Y@-TQ|) zE_WJ4qYe5r2W~-BFeva$^I6q(>vJEN;p5^R-8jG2YV%-U9Qzcc`}(&%@Kzo(IlP*l zo*sfo!^=rA5=t3EfR2^^I74|nXJu-_2=vR(^ri|d^Zdto^cS~wEfK%h&#P06<@#(HT9k3WyithLnD5mtc>M-^>6 zDMIhJ^b^@+vyRP!HEm1RHyd}9!fNjOog(octh~kq?gA@TH--MawHjorL2_SL9SRR6 zfg4<(H6|uHfrE}y)mU+Uh$Fj^`FWdJcP2qOZhNp#iYO&Ia$8xqdqjZ@7i2zyx(&-~ z{z3!SG(A|G)z8W`WOmFq5hh-KFgYu)!5N*2jIapg{cQ2p-=VL|N@U_w)p~qkshZJ=VkO_7P@H+t`izW!b zg6A+@OLOxO+U262(Jj&qJ>of&od$m{`y2`&Nk?h^UOWb~F$7U7PzVa6bj#*bE$X&I z61?AvJ|5DTw*Oig?CjbOTzbmV6cK{1BTt%0C?{LE1RWTlz!aj>xY@pHlT_8MZ^~sqpCkjTCAi57CrdVL z>NjKe7m*efube9^24^Hxksa}-9g8+F^~$!U(ulHBD`8U)cz(_|S9c2u88*_W(p9ZL z6H0PTnrkegc3n8%7Q2bWCO5f*#_m2j*a1awk1}z9^tVZ~0kfKbH%5Ng_L>>+)Q3c8 zk8j1E?Mwx#9*J)DG^gkQC`1PizL2JB3P`;7Vl9O)LFDnZ44>B#=SjIuAzvA$5%4u^ z{24INn1MWxG-vmvZ_++9&C}#1oQ=|NhUlMIz*{(Znw{sIE(7bXrET$-$zZ-c`N*Gg z-yZ!9OkNS20>}s$SQ({>yv-#1pVPS*lKxd0YgkdiY0~KapB=PARz*Q136=)Crl1&@ z-pCl3zfISWm~7hdx#SU4G0axUPBQfhaJV44=Qx!W zZb%%{Y>dw|jtEb2OrojKuEY6Xg&{o5p!0-%gOmJdp|8o0DlgWt1ImmvzcGss$kcO9 zE%J-;3#mLKz~-!VsGc>`ulIfwy8DP2IT+UrB9P3L5B{QjG13p>Tx8ZvN7lpc6%x!H zWI-f3Iq9C|SFDVHyp;dGh@ag7GP*!xxQ4${ZG9cQjv;pxPio<&gje zX6EMLh`$N1@}bEi?L_`XJLX*fip1&Mm6+k^CAD&0FNR(aRJER3w7F zRMfJM$XuPFZ5+$6Y|opL-HX&;65L~Z7M6ljL=QX!*Brlj54Bnwn_CY*Ky{yQ(Z-+H zuOEufpJ7ZtqxwAkq5zXkMt78UIMWSPd@ga?oC}PX6U>+M>Z4Ko!%c~l%kdGazow=f zi1yi*t=JaL-thAGsEW0QmRtAsEQH#7r7CTm-}S8X?6Kg5256zKmxcA#eG}C_WPqWJ zTCeFGmP)*neZhTLD&IG`%j6?K0|5l}1prp-VfCZRH=$x$ zRhCCB+yIltN1#0nZ7^*?;hA@Wvr+MtChD{Ih515GEb2ozyT)L53*MD&UAKiP?`$lM z_jd)!Jo&;xNc%4fR=iNLEL#tK0)VgW#KFlyYE!x-x{$#&VjxzT!?&_WnK`c6_(N;x z?A5GmYTdGVOqsG(q**WS{pfk!k-0zd)JW0PcrBrYLCHqj4w7iV9=rA(lBABxa2Et9 z_Na>7Y*VL;75I9#l6-JD_4@8LUL8k|KJ!Yv_2^gk4eOFr4^I}H5FKRgw>5qx4i8CZ z2VNz{wFTtv@B8HZh)~zKq!6b4DXm zZ81ZkmuAt}BsrI@nQJ{(=R&rX)O6{z+LL2mAw8oX_dwKC{)YGQ!@-@1#YCIk<$cWf z?r31H;IX??_4eGjdam5V-Glu@lD!VRQlXbTNgV*xhc}@ny-3~W>lE|@{alD1UFESh zh!oD&wvMIF?nzE78-m`Y&fN<))y~st!&=1w>bv*#*N=+?A>Dvb>Xy|SPMi9MD-qDS zR=$h&@|K(JmZoyid>HF571LFR_8&W&%M^_n%$YyO0g&`F^}G`fgU8AHyYTDwK!}ri zi`OZrXa~e~$?zufJ?>U4Sw|65i&=?tV+Df*2iPSxA>M7f_*?((OGHH4^8z>tV(dQI z3}qFhEqKZ_Zrpl;h`2GQ^5K(+Eb!6Y76~4n6LxXr1}Nnh|BTKobaSq%UaP*_f1|am zF?cU*W@_p@<>1U~HO<`_&B`~MORY!(zk~$Jx#D4ekjAVE2M4r_x-L;J+IykQSWn<{ zkf#P3I4kdwG!sAwLAITn&`-cUe5d{Fdy~i#oPWc^9Rw_WBQ#kq2i^eQXg#B$R|3;T zkxJhg@9kmhhyJc@#+ZfqiXe#Q!li#$lYzYIERq{&F7%f;t*Le3bYawX#Lgi1izpoL zVwrjPNsEg>m6{>%J=4j&-~L!)QjBuez+T|1X`nKgh8aCW({Vqm1ndg~kqM;d<^~u# z2_7AJ=FWJ;X_U=WtP6U@Ds{hc`^|hbT6RQN_>7H%JyLQMr)60Sh*5H1(w7 z{>?AMd1y8+QCU3bul=W8x$x2gwLJ3-{S_lz>kI1gz=CnDtm|N9Y`fKhOh4&VF4Jfdf4iRyD%LslMj@_A4Ise; zmb(%Oyu3VQD`H$>tSg2_OJE$`5fYf%bb|Ki;@S(g-oUjeE7TC15MSRz0jTe)KBT;PtlSoRW3Gs#vyxTWnm3Rd8KrBQ7ABkawSV-Q2S}hP`#bHHJr1iW*3E-Tb~z8D`<6&1+&z zR7yg&__OF`O1PtxSM5VK`<)IK6R||hiu1g2K70Jf+yG)uI?slm)clf#S}hwWI;a)6 zTVvB>`Oa)QTgioEEEh?8hv*BgsoSm(LkX;`kE~?(ar+U29(i-WETVpik|{)W|Fm9f z3U`*1`3M0P5kPmMQKGtA(Yj+*iJVmthRf+(|Rp$Ihn_O%YuWqlu(f$z3x(X zz|4iHRQ}9H0(-KttmanMpAHLa?dCHtNr&4)~fv5 zH@)|TIs!R`F^pCcEN?kwyebXINc@F(N4r!`8H**T%NGrwdzCnmNw%(WF}y-H98sJ8 zM79A^kJ9ggvt79|Lq@yC!JmX9|H3!6KiD{nCWMsDv5N;b4<5MwSG)&PFN3Q@DM67+ zAIl3ov_HC1PmQS)pJr_QB23t5_)Ghqafk?&aqc|-JYy3BV>BcW9{~-u??!T{OJQuc zOTmYXKtcdQ_{I$4uxJ;JQSqB_C5C_(WFsnJv+T+D0%Q`-3Y8a?)wVC?Ail3pbO&Df ziGb~5Q?Ps;xBCVfUy?60;nhM-h-?2s-3sufc0-)qT`+WoO$;d#fX)z z`NxlfdZSHVN6Vj-@iY8XShL0YSiE8bNdmWfqLV%`meS=*w7l17dPaNAlmFt*hRTCR zdJH{Ibn|-c+gw%oYqeLR;)%yAWL}?58Xd^>x*)H5QeTF2gJDh=S$qC$jA$iZPV+fH z81BqwWjSR%ajSdUtzU7oum?$hsCA2;kH+?k=$j(OikXeNkN7p2|gB-1A8wcZ29 zoy*I|X3N&e#o5`}=A!Gn#q0R_&pOve-6t=_?=3GvweZO?zu$Shc|%|#II%oCo4=B6 z?1bI3P-V@F&NV5D9n!6;sydHeGqa*;cHvlsRx=NgxIR8?+w@Lyb9fPSBZ zv_=6{j-ALfsx|MHK+yK*LxEHMOY!W7+MCPwhhP|9Oy_p1XW$B#MNYPjut?oqHbbob;NC`R?WH1GIx&Ol8myj;AEm|;&)DwfaI{Um z`SL2pe5H7?9<%9W^hJUJHg9LlGCI=RchA!zSRnT{^8NpF!(C_rC{q$ZM9%%ZNe}4` zrjl4KZ?$O8TcS7D0^bi{op(vPPAKdAg4MrDua#N|Yk3?Pm;ayV)JUKO7=Dc|BbK#=$}a>k z1)(9N2ZL>WFe*nOMEHA~zD8j|ZRUbXF(FGW?(`H_E)PcXN`WzSwU6bP5hCSIL}5k0 z&FiILnuOGdJ771*^bFKx#(|q;xC?Vk3G>CY`-jkft={t@yk|E5n!HU=XcU3S`Z&dQ zcWO+qm77NRe_iqTC&z%z-b4)Oej*v5d=tvYuA-zw)-uR2sP?IEt?thODw+hEU+asS zBlFF=KVagCQ)T$~dd<<2;fZkSPiEx3N!z`87;ies=MZ^bWF!$zL7eLgskuU5p< zwjAbAEqF(uwuJBl>WQt-7>NWd+;cefv)na(o*Do90dz1Ni)NozHjS4PD;5oz@j`2j z7C;^o_*5AWcoR~`3Z7c}>A>S!bB^4*hLuDUBaT}0m1Z%3Y;pZG)5BijYuHu_?tY8v z*NzApnuwG)I8`5R=D?`j%#UxZ;d&boq127FD(xve+Z*eaWrn8d41_{Y5KPl0*_1sL;}PU|czbG@(-8 z5{j}#6O*Mf;;Lgr-O_O0BHi0mNS$@5h>nV|>u{$N3TlH$0JF^SwBD5!5U#&Nct21}Je$u^TTB+C{|8*DcI zp&26wKOL)Ji45%U&eeggq2gy?Ke2?My-zZE^0rlm>z>o~W!pMwtai8FsfqGpkZnK$jo_DTKkD6*L*@C73j;N zCfyJf2CypCR6e}@@!$iyUQc@nf!*phjhk$^F6-Bx3r?od6oQ*#+@~}|DI$diqKV2_ zP}|g9btIFg#+o-5azXKH&Pz4*gm+cq){n)+&=FVryl&_HeyVm-5 z`>#j0lrH4HcC7Mj=pXw}Kz9PAGmGzS$PYDKpLtsQBZ1KMoVlW6PlvzCnv$ zra%NHtz~&HOIp8|UL`D#Z;R)s$!QG5Ce#^CG#|HL2Sv5W$&sZKm-^n>kRNF5xEG0n zb4QXF6-=J6hwQ(S$)P5VQI{4eJq+sB_rs_amx@*Z!&*!X_Lz^^Lm>ia+5;zDG3CY? z$0b<8f{S9}Tq=UviMr7_CNwh73puE#lV6znHC%q`DN9pTfXeW3lpdt)StKFl0{)-_6rJ{5;I?A(`GMI#*`^lr_S@TtlZMRVL!+^a^`x2$kb;X;v zoLG4r8fU#?PMr4Uif`MN&=Hf6*@EQ-A1}$0X=iQ|E?6(x5pdpbImBxA?RoEx%~A$k zSeZu>Gq~{=o_Cd)dUXFdO}TU=+-FJnsGMC(SR49xEm{FJ{Dt#tUG~4A}^kO-OkQiSW4-t zT{=2?$h)<5fj{rUerHLG(`KKmK3>vTe2;TP|DB%#{m$CcnX63t>N7q9@X(?!$voUsOcWE;ZWWbxRnQ`p1e2Fw zGK`Nr9vLF7=vhL zMw|1TE_9wIR0Aw@-fw`gv%9x3T&R+#P^0)4LmXgS(=!Q!IvQAZH8B$iv0F7erbCKS zkT?H=$hV8G7|T(S1nmTGSbb=i&D`HL7Gz%KX;rD0>Ta$EZpUID-G9{`fKINM<$paF zbeHjUPWQmeZ3+o`TzA74pu)Aj-Q%9Nr(?}r5?<>j>t?i^0PzNyqf3S}Uq3pW^r3-X zx3ZY~#8=lGPt75Jox6ZBkc|mx@h{u9yjsXk3s~%3I$F09#-PwmGU1)grTGlOyn8CC zdmOu;O5?kWyMoMty<&M(lB9gByg;+*LgRv4Tjyie7O<j|K_D9eWL_X(mLTg z_O!jA*j@Yaq!_P&=Z{|nNMczYs@6$?_az-)SlI9CKkp9a{DV$GGB)ym!KElQ2Uvx55;hZj zJnb?pmY$0&xU(@gqdQI|kL!1pb^R{3zB=~l#z=uX3rm8f;i&{n%t0&u-%G$mlNxU@ z#!W^LqxHXj${%N;t`I{zFj@wZ?19!3|LMO9I@3Y)KnnuU{$E=7d0@UzNPcntuV|YN z2G`+V8_qb+-~Uu*JmVw(W7wdK{Lku>0~e@3Qt2Q=I(2*fSOw0zI$ zma5`}DkiCY`skEzzkiK{- z)Ys*zcch&9B>rF?UtxFA1!=!-sNWm%$m1RkDEMMpn9AX*V`5um1v=|MOxa3i)E8(H zSX1g|Z8JP#T)t%5%wYXcOm}aSp39@O#1um(Gd)RRO;ug5!a0A^h3(-N(yb5XTj}tI zT@_IEMo`ha=A1)0)?>0}r49Mkt>4O=2GSghVYHF>r(_q`o!el!)f(q90zZ;%!D+Sl zr)8t4tSr0$mXBHaw_AUL0$03#T=0A4e(p|!Qfpg><3dH;!if8%3al1Z)sz`6m5%+2J5AMV&r=f*ae=$ z0goJJ(V6Xq7Ch)(q4NtW|0!ojzgerai1>ZG1~$m@BY$+fj3E2(b*!#8MFJfw_MhQF z3%3MCvxU!5FXTQ}cFXGTFR4maZkjnONNEvS1#5?6h`6O4#BA;5WCHEAT}}^6XD-{e zm=ccJK)Yifb_Eayf4@2#s_*Hk$HTt$Ru0DV~OAG_J+X}UwaNaxuzn`dLvSBk3p zB!MulFH295H7Udd&79!>fN%yeng;O`#x>3T-e@jcv~cuoS^oxQp>^py*w-hZOP6M1q?$F6+r?;>ZjPna^B?%TR+h| zmy?x~aw?=baM+2Z1??e@GxE+RJ;GENnJ{i|z~Y6Lgf3{}Ahv){2j{crNt4^gqxRaT zlOM^S?kIx(OBA&Qll|UJe#;rNEhru8Dfiz%Jn!lrm_^^lKLb0;ON)#9&Z6Jvy|2^$ z0LCo7?>2>CFigP7->p|xGcuSJIYqo#)8E_+G;b{fs}{;ojLos#F?uyjaGcg;+7>0m zvMRYTi)D&sL(AZ^e_)??<&-wQgVlp4_eVxkX7(>Y0U=vcxqyeTagzq_ylXSO=II5h zmm6De-ai!^8XOXmcQ$?);NBlsmvxV4p8g)lbmnmwRKWqsGO&7Ji1|n>ZD;eHw7~~f zPluoV4#p+6;8Qy`LkjY8-h!X%r-7XPr}@&2ftotFDd3vec8K+1ISd+tHjg1n_|NVB zC+*+@-R?f{G@Rep~6RQp11MdtHs!^VBaQ-Ws~GS{(T@So8+zM!Y3!0`Kud zn`haQ3EL^3HM162je(g@uKGWjXXsq6)lJ(7-OwJm=_bLcQ&z^yLt=$TlS!o}b&XmMel zMP<$Vp1IEF*9yD$Dj=D$Rg%DFtzska`-}Ae_-0Pn7$wFjg982alXHo?Uc$}seM zCn}tfgt`Q453jG!oo`Z)3}`ut3i;kdx2v$t+oFKFrjm+E4({57mhuE|sUmJhbl3N4 zu^OR!ik5d<@`RZ}q+dP{+Z`UysD>y8NkmH5XH>SncuLnYyCmFzec3#O@Q zKpswQ&7}84$3pP`Yvs!0pA!UOF)7}+nw7ML28n z_#{u?bz34o{@ruzj^0oJzK$bRDK&EYR^>{v8SkHo(Kz9m0AScG-yWdbmtsII#+}~F zY$jhG5EFk=BVkoJ!sM#RZHpH$vstM}!TJUBy6qhOi%}Jtrs1`}eM?$#udKX#rhMen zrycjeOsLBqu)NOG)j>hW0-^-=o)PvOn$g+i^QwqqXv-q-TEWAhWe;xh>pm8H{VPxf z=r9N-`U3mc!ONT=l~OUGr7ydePB`8F&s^%;-fb0f04Ih$ZH30MCn8w|*u78!Gzw!f z+X$n`eXOiEmV2eg=|B<|_@Ds1l8&3J0qOzpTIvA_ncwRrLi%TM2l6qqfO>J^rxGV~ zHpXJi#SXRz#;P1lzJ)rpK}57cg|e?CYe|(_u1T)+keC7H*cVd=6$*6qc=}aymP8k% zi3nzutH+%HF$&QRHJH)L<}{J;<-p9+;t=^L zwu*-Uua`E8(JybfNuWV^!#JEhUxGw=1k;cVFfhP*d1;p|uf-G;@~(&?OMrij$L>EP z1Q??WR&H=up(~hX5i7+}fWh+s1~)P``j`@gD-EIFM*Ex~y6K>tOwT`>JW2x>1ZcK< zEUer%6_=j|#x|ykAH*P0Pr~dP0p-5803ZI|X6!^bxhD zQ<(SaC2c^2`?Q2{eaiZx#|`0<#W$IHs9oMgLnNLMe5B6hbMytPjAw6BCgd0A<@&89 z<8!V%$vY0ml)?68DO`YZF*0`N1dIX%$0@B8Cgq1jLDy>H{^ZOyihpHg|VSeW}P zYfm&ZUcEsN0a9V@&4=KLCp4jy03EP&30C22RQ=L7e|6Ew4fPk9Vt){U5{g7R1=PHl zrcQbTQ7Jft6u?Xdn6!dn1LQZ%U4``xgbC820@?opRwj3 zqq-#_(_Z8tjWMO&9|QD@y*l7M^ZhSngyt-eC0lqOZuy1))l;jP~_zJfPEt%OBQUkV1PBb=nB z4_}y_+(&Z+Ai=}gW|E6Zqxm{V4a)5RVe+la)0KNVpw6E>AXGH|fkuWb9o;2Ev;xwZ z!1X9E_metPT6`i8r(;foQ$}~*mVH~TS`0{Bad^6kAMqbO%UJipfz63wWRfKYrSh$l z8dkR!@SN;yypJtC1XSl5+I;`AG-iuw_ljS| zRFlL)ky?$QY5=I|dH1asnD1zqTj)Ae!ZKryqe}Pi><(b(Dg9J#NRlx!EOK8EU!;l8>#Z zI%r(uR!p~l&@o_`)wS0pT4-yi2&H?rYrjDQ4LIEnz`IXnKLO+U z_S30_cYD4(yW-LO$D7L&&=by5SIp&4VkT(OF88Jq$o>>|^Uw05;1vKf{2PUYdIDz= zW}`ug3uBBDEAL_S|845B8~-ORjjF0;;*4E*xZE33oy2Uxu2Law5c{vH$(^*H4mm^% z7_B-e9$^r$fIuVSr6V6FwVQMzQFl~ydZZxG^+07(z zI3(|xZNcp=AqpgN#kX3|q-2csvk8e`s8@1tAB{r|^pjai?vn1&!iP*|kTC_WN z;Nh=o$4R~|>=m4rcWYAfQgy$cF;SG09G-KO;tT^PW!ji&F5{A7fb*!=aGVJkwASXK z5_(Y9@a@Z^O!2tFsOUS~S;}7kQl*}^?EruWT(K4#AQQkm?q4O}0u}OycM^|)jQ=0u zX#$n#4GL3cVyC?ni7e(UKS}$Q06Y-#7oZ~oMQT(pxpL2re=SP!6o@RoOGF!zVl<9k zgcQpdubOgYLoai6MruxIBTT@12n*@$m6~m{G1XOIkU|> z-~PU?pY3nfRB=O)4VLSKJ-m(PxFvUCjpJ7JNWvsG)I0*Q4QL9W?M!0%N`CjhNCGEF zsC!~eQzz3=$4W(amDh_dAX-7df{zb`rINIB#^>6MV< zOsh1Cn7_hUW(A>5@qV{pNPYJ(4}0@<;sqv1Ct`Goq%f_hsMRF1Z9=kE6F?GcU!Ip zq)Fen@y^ajWldLU$NBIt5s!?+L(ad7j7>QgVH~5EDETz9*7A%aOSxg)ZzVi$I5855 zPdeUlxY9c$g*Qr;U+)Rk%DPZg6e_?WT5?x6N$HyB&2LK!Jy~mZwMco!R>g1hmzutZxYS6^QKL2FM$#dm5cURZ9=ip*gCp}F;p&CuWMmAnaO83Y7kuugV z!F-DHZfm1MK-iRmE4VuG4zq${UWP!oZ?y(cWH|EkCzUO|s_JV01+w8bClrRY87Xxd z8F+2+omB5pHL9BgwJjS`4m?37)%yfaIE=TG)k*cRvbk1*NDG5nWqWvo<#^`GHCcNu z9iKe)%O$PYA}8Oi>gBo-=sO9#cVKrMw2X8Y_O(TiiY|2;-%dNhu%P9No zP!f?&J@<<8bWATdW{NG%_aJq^myG{pqx~tq!gX6USDG=_Aw^2F8LLca#yaqO(y6&f zc~RE-h{|SBehNt{ZA&I(VwcL^cXO#e{TF!PECe2SLDb+ur5=-$-W2q+VmaC11o=xg zhZrF3nLbm*95kfMwD~v$@;vwFe==|u$ZvvEL{EDmD%vwK|C#Q$%cphGVJZqq5&Nj< zkr^YET8>~JJm;XNg6Ui$lHYQPn78lOy>Bb~iyl81v3icpQ-J+>Utf5Ku3!h8uRvFpbdj8sI+gwaadOJ3{ z{f^-&ag(;QjBTfxoY|wG)AR^8toS1kL(o)oi|fssEv`&5 zM@h5TVYE()Bwd7e3?vs18S6zVTs<}_#tZK_tfgRj*!Q?Dx=}vx7Bcp&o<%OM?(Es@ z-iXmF26(d$Y_E-j59q$xWW7(BFs0A;Jlt7m_t#{3pRx(XmGtvA$jgfG-g4FFJ{TI! zyteEg)`6vT?>%*OvL1z3Uc0W4)OisDexzM_d)qRIFDP&WRQ`GJ@bZ?grt8+#D$KkN zw~~>nUXalm=oYiM5p&Jj!RS`rX56O)hjGo7l%=qUM%kW>Wh8gPMun`~%wuu5GpR-0 zRUygRXl>s}9MrbNaL&Q`^YDlF@%IfyrzVpM(#_;sup-Wc*gOOJ0L9eB)@E}QNk1>@O z@J?A-p}@q`>2;}cR6qO%oGvm#)nUo%aDtN% zzMu_Ku&>GoZ<_*|TJJ!WZ9qjP5%Q8lwtQi3BUdm;zs9RK!c=J5kagWh2Eh%vz&HLj z=2XdzOjs$m>j_Zz{~!Zgi16G?H1izbRT+;jQqiYe4hem%kGCfePp*YO`s$mneKiU4 z-h3*ISk+L`$7{|tT`vJOP)AYG!-sIK()O!61>+{GRcNPGzr5jvvEFLtQ0C!H8_D>n z?x+vmbt96S<3meqpB5JvOP#zt-NUP7^>CMimsPghs-mXD`wmjk3cr5D=Ak-!*0Nf^ zYBi6JAul}&eSA9}o7YuJA=+D#Hzw<*nOkm?#{!oQuRy&I>*TAS&BO%s-mThPAFZ;v z{AT%kqp$hm@>6vi#rVa`pSWsHXbVQ?BIh2?LZ=j8h!ep5Dt6;8n|(}r_f>yvTz#Ch z)G?mBB{%I)iRFcG1KLakSg*Y@k@UGLPmc@cWE|VSl}$M*?zP@|2BW@VJ|9|h68=Xo zdf6=N>x~y%gvJE#dKVU`Yl2Es z5Ar~8L{4z5?)36VSfA3$AX3o{ahWP(v7T1(#W>5(?RD9Sva$ko1}~5?uBfpky>|68)qph*9!D8&@a3oRo0w z%%_Z(r-47PQ83-c=-+bTy)A}E25Bg|h1O*DJzC-O@`(pQCZ-ch>3yUWJ7{=o&~THo z7`kH;Bc<8j_bFn@b4RI&TtTqRzhtx=fW725^X*gMII0Gl@lGw+PTx%=rsX!jXw>zI zYv2EJB?W0F`r}1RzHB^qYf0_(Mv42ywkYVydMBs53a0b-`>EQ~S3i7btGW0UcZ0G2 znXbuLV@r+pDFyez9bt>;+>x7nfgI&q9i-2KUR8Z>y#uYZEERWi1N*0{=?*Np{u&8}50`TJ@6Zn<{mUA_s|@;SSp(Cts@Z(ncl9-sHu z9}GG5IQ-q^xv+0l49B7X_~(skUP+#<>o~6S(-E4Q`93R^J}SxX-e4sY1Xk%|Gq&xv zWU}I->AGXBynBAdrl)5|d;3sn^=kgZU_ZR7r4TYSviximbf7P-+ipwA&kk+J_5CC# zHz$?yxRwNL3^aLpD#6yQwE}*JRcG6FW3zL`wx5m7~ zMWhD}gMKm#N5IBzPl6iArcKcCiRRD$BAN&@ivDO7m2|t1SGJ`<&HaU;Zt&8`C;cVl z$-qogW5bYzQ2ywa!O*uvMV2Bt(>FruGr!;Lgs@1@!sD z_s#t58%7RJ@i7&2gje@?tm>JXdG-eui+WH8MG_i(AEq@rB&Y-;S9woE?p+pp>5$Op zeQ2P$8Une(!F`7ga*ho~i|xQEzQ2K#f!vD+;U97ycu$B;THQX#N0p%ckmtcn4F89Q zb%e276CbZ!9^MDJ;)F6FDy8Zq|NOfL+Uo&sErFCYfNB2!?Ln5GjdXVw1Y)%i=n0nc z32jIl_aA4#v%V`<29}x7L9QIm*_V`KAxzMY!8I@66@Z+6iR8IS(p0G%gUw=R@1Ng) iXbN1TPa<3-?YJ^QOEu{2zkmz%A!=8(R0@=Sd+Elv literal 0 HcmV?d00001 diff --git a/doc/images/uisampler.png b/doc/images/uisampler.png new file mode 100644 index 0000000000000000000000000000000000000000..5eec69c654430a462866cda9aa698371621c5d6b GIT binary patch literal 54104 zcmbrmbyQZ{*FU;x5EKNYOX+T;L!?U@L_oT`yF`@k?v$49R=SaH>CT6ayFt(UjrVtB zjO!nsEeFPa_F8Ms`Kis ztDHQmI?t&|kL0AxRP2aRGhFWH99Ur*RPjDAL^4JQ?x(z> zL6I*@mafTyKqzZMa91edafd`|SmsDi!pTYk>k8LN@<#H>W>Vv&250G zT3O^wPDSkJ-XwDY5j<$kblFdyWJM=1zcV@;JLTTQ!>Vsai^(~1dg+KD>%pv;cx)k%@0bWjC5gj17yZ&k+G)HJ$vY=CbKFB<%cp(k&#e|VR z-YZq z?4AoW4$R(l`nPk&oV=Oy(Npd(3!h3D4a;E}5pOiVS1i?xgm!Iyu4wfT*fBS)Ctltk z*a&n#Kn7apH7;a*)lv7{jDhc^H(D)B&F65Ph&)$>5+62)&j~*r4+4xq!{+ntD06tqMEZftv*a$>gQZ*9~}( zT<4`x-3=z^)O2-Hrk#9O{5=-o19n8zBVf3B(%2~DqPk`klo7R%?DVRCc}MpM}jXNb~W*hXy!_VTS!8GI!}(JvL=%a&j~c zm*5b!(0&9v2C#+00^eB#<)aCDaD3R`75V6*MAO_J(nA4sNdRDO&N2EPDLS>>92WR8 zKT&IX&%y11dSm3j&uFBX;)TCf=woBMO{vCQgI z=gFHxU6UGkb&r1Gf!GRjXMMjpZL`>{`5j@|*J1T{l9Z<{(2U;xJ|F4lmBr3m^zF@a z0YS{4ohLWl7B)8wr}JolcZx;oGc7dU>;N@{Vr;l;?Td*p_Q;=>(C1C!3kQiXdEm(d zzAT`GWXF zZEN4p{#@uvI_0W~xaBF(iszF_<@O?_KB>u+6$S_wH;Je0R(8766wm#kZ+ezb?;-~- zj_wQ%apL*6)(%$GBc<>#%45~YZOlPOmoZph3;JaMeQ&8X znPe;g2!5Z4pYSH~TVYlSApto2DY(#4PB#@HQ_Y z?>n+jj7Bf=oAKYYit^M9XUlC}o5uRSXpvckTI49WM&7IWZu9=<#)}Q){#kTZ-5U;z zVpuowDcTG-SX1ebi(n}LfN%{P8?Wv7>b0Pz+npj@qU(b30x7HTnwvAx2i|ESC>NC1 zISPXUP_R7)p2D|wEa&F@yT_^s8GM}+LGHmAdIa{`ew!~7wGc#~%s7p824w6YXB^<+ zP;H*^54%y#N}1r2D?0hOsJXqr{u*|fVMV3!!eSn_=s7`>Pn~prw0Y#bAPj&rDd$vk z?oFM!GP(N|p+u+^-VqD%P6A?-mS48%z=KEkW7dk(FC!#bRzUEk`V8}p%x5d43CWq3 z6nO6`dZB)AFZ{i!NWxFu{@AVJMy2mhFso!&l$vuHR3wXQeAoGC4iEcObwyS zQ~(gqCUKA>D|Oy?TM`*b)}Bwma3qb#E%4-d8cs-|EF{XGl$v8kLtX7_o0z|kT|t^1 zaVrV~=P~(da0nJyg6sC6Mc16Gi7}-8c4ff^oKn6_``Lu!EFUcERN16$f;b29j~9mm zJ~@t=_IbdGtm7U+C*vf>s8;V(z&|jhL&albEH`!~VH81D&ms%3x8!x}7 zaIi)vWI(UBB{heEts^%m`YG(%4Thi!uC3GclBwMh#>LvHB)*rWWJsy&8Ui%URpIAN z8K$K2tf2gcVIJrdZA8HOH%7*mI(KEj`oSpa$_e9Q3m*?_-8Hh1op__wTTBsa0g0OX zz}!hFM#1Cj-TX>KpS%j>{gs-R?&{vj`^nK;p2_=Xqm95k=`hz#dQ__JBI2`Hto@Ew znc^{A&Z{zOLxBNalnhP#!#65qx{ON)Z@kcDpCT79BiY6-3DAC%p2@F_ua{y)?dT@- zMj=yt#W*a=Ju9|8%0Xp7hI!(p^0rQd#`ul>^&3AK+~*;6|gZcyj(@!K~5_ z`IF;_FTitGV7WR>`No)XuMlbji<_%~d%(^9H%9k4cxDfDrb317Y+TGyCtXJLf6{ z5!`wki~g12^MNFu_;^EcBmU8K&dA-pw@4(Y-GPVAS=rw-UD5QF+l%rDK#a0j6;uDN zx0Z-IEf2~Yo1|B0vS7cMfMazEq=c z;phC(!S!+T&>!hJ;;DIuc1z^_N(V?k4Zkt{^hrqWD{gvT2hGDm>09_V@t4;k1{LjK zlpg6PiX0a{zeIdHNm-Ru5=H`|`Jbm(Wqr(D3?73u@j`lmkLjOKQe1zDe>z6 z6b6B=Tw8D~W7==aVCkJJ5@7oZ+z@p(Hj?S58~}JYQ3F-X0L%7{PhvTEXIj zF8^sYM8CPB8;_i{eK)`~BYf`)^Ib1PTI)QH4l(P=t6|s2-7YuYy23?c1#rDlD({S# zP6Hfg9eFO}Jo;@*O4C05MBz24(eUhj@7a5HQ;g5@@lu@~P*Pl1bOMEHTzX2gb&jRdgi^uB+7G@_I7yQJCJ-+;!LNjJdz=^D>S~C_- ze>pl%>k9ybe4%I7l-}X8K@(}pd0j5TaO0QSDR4xM(zWbTW5ni3|K` zv?n0bUHvF}!J47e#Cq4Pj_6CZn2#F;E7QRLbd@mWIRLQywpYWI3vy{> zjo8Pfc0j+u?z_MqnT{#nn&-kiWRgjLvt&#YQp!fX^Zx3vT&ezd`!p^j=w0(@$ zH+DQoPIqvQyYZfGk13c6%c z3=K9xgy^a9jM3K>b+N9V?ys*k6rDKbVRPFz=T<0;!qSY-Yn=e^6%#QIY&e%sZ@1Pd1zc|ecNlDpNCKq3_oPrt!J z02Qn59b?VLYu@eg4Qn-i98xjifhM#{xhjVe0sZ7OI^q>E!ncRU53J7T1lXGdIlA{A zMMI2s`45^yof;&2lNuw$J)`Ue4m8Y>g18wP0NS-$P7C&?*NdkM*SO+Auk_!_OB;0n z=?H-=;Q&a{Gjnzro6pB-(>gceYSwL}UPZijJSba5e21kQeI1brHgXoL{H+^1qlk5& zI#Ba>8kR4KIBq6;fPgTCxSn(9VL9^mH|_1OVut1=f}-Vr;fwSly6P=kAIsu_J${1s z{Yom>$b8@Aw|{rUNe})+y~5Najv5pH9A>~rH}!b1T9#lL+j0|1*o(krAeFuvVmuBHU#Crl4N!)fO> zqntUmg(dL}mO5s4kT;uWNZRRg41>N$3@Cp61n{os2iFLQp4pL#tQ5B;5zm*t_8`&m z?hlSl&K-EayjA%e_! z;k`cj=+g=L=qa*BGy1(0->1V`Z02;U!@UwD4NrIE6LanCB7zkKq(@NA(nQc+&}gQO z`XP>CT%DGepjHwMKXlqRRNI>0rW>#?@Ni^;M^VSDiR*_P53F}Li8pH|)SyTlc-XCk zp1<|aElK+fKF^q=$9wMt@;h)anI->B9;kWduBE*h^6n6lo~&6bMWO05Z)l_*YcRc^ zYN^bhy5XTktk}a86FjuD;==Fto1fE>3+Jww$0R;(O!_U`@E0L7 zC8#8kLU-!*{4);-#Zb+@q1mp~?&6@M?x<`Tr^{xVTu9;Tiy z9!v-s|EWs1WksGs{tp2R+ut4w9u`*BHU!xCp*gP9+Fm$yf?(_6dRs zH5#X>-I-)KKe5alfWa&b$Qd&U%v6f->F{~W!py<3UU=f7b%?2qR!%eg3nKDv>x%8M zdqt@CKfk*kcB`&|oEKYI)#MLmkC`M5z`Nwaa-VZ{Sm>ZXtMQ+An~N0@DVbC0q!ZC_s-#gM(b_!D?`-l;tB!K)C@(aRKu+FO zatxi=g>m%o;Hfk@3;^!Ou@+g<4kKYIHg7TgW5+WNg!g7kE2&me#Qdqm)Wp|BuKBDy zGeL0@`-P*&Bfd!Q)@mVhbMaw>xr}aEI4C`j`pz4m&2Pqr=O*xLv!$3_WuF28An5wp z{H2W>@Lo8X8Y`8roZNwVeAJ%4xq~-rx*jRAHH}Hf@6C$b6Z0m=G$|Wm+;R(L(=Y7K8_&T4Od9efT8)WracBzDw|h0ua1AqxpOz@G(34CH1rEqv3KAE zI~jy)!C#T8{JUGgxh<0#a{Azet;ly~z&g5ytYeTQ& z(%vq2*kjgnDW%Fb@3j-!wc?`+1CY$UAiA0iSRa`trA2<6n+h~REJ>wXRk;`zl!D9T zVXbn9KgNj~5@HZw?736!!_(&b@m}MtH93L*vQ~ZPf6aKRk^22RomtIvmau%?)Lqc+ zgoR4hNW2`;f0kXdbz@{_uBanxU%9!t^Ez#pWkm&DUwKhuS-NZ17hQ*}%l&-chXM{)N=s{kKEWYAqJ|j4A8wc_a+!zKIJLf7wS+bFRNa>~Ex+?4z{L** zOEg3j|AsYUuxaoui_jVRASF$?clyJIW-I-Bp>pW~(Wy@w(XF{O7q}T^hH!o&@Z%y@ z!zM^}t~rJ*;$nX);y9Swg9Xe&lp85~BkC&eGny_ThFK$cV!uN*{aq*i zqqLjbk0i}CEP$n(7}iT=^nDoMhuClZAMJO@4OD}OyUwnn@G|ld{&15I6Ea$|>|eDl zWG0e!Z{W3k9c}AO43NN-83%7pM3PYpAV!-UKj$P6C&SRw(`)7?#uZ2KPDOQfzxHrB zp~J)l_|UurO0*k5^xC7milL^cq_6Y$pq8uAo(GGP3bf(B9xSioapJiRxP6ek(VW>y zH1_S7m2gDwn4y94OJd*#;_2y|XEJm1Nu6WNF=d~Iw-FVDv4hqc@t?rPaIWRF>`cDp zW&&_JTt(aEvEoO`&YE*jai+;X+)tWhR}enK7X`2&@gY z4(QusDSAy6us`NrKcgTckEz&pdUgse=uT$&jfp9yp8(Q~ZE|rAAK7nNA+`{N8LC>| zQRXLiV*Y}b=YH=(u}d*DkBU#Z^P5DxP{!Y-72L4Bg{7%1AJJNvryiYKc*^=!n zRn^I-?hG0@Bs{%*X4tj2_Vu>TrQvSo1!uO(=~jSA42o!${C-8y*SHEZ&$Wx4Td=ty z_1Rr0Q`?D%U=jQ+8@m?dm>{sHYhIf7(jvCE{`46XaA2q*=|1+}c^D&-25<)*a${^= zHu|3l%i;e%efkieeva=y->`Gljfe1Om!E83bxZ!;@jus(b0eo*4II1Ox_8B^$!}Qj>%l`Pi%5)F7??@-M7|o zJ{%=c?8#Q3jvEt^2b(4;uK0pDfB1LAOyJKa>1`icM{dEebZZDPx9ek)?rI>^FTFOE zVh7NS&TM~YwFsCpYXswm9K*Zcz{>H?lqIRVV0gxyyTU?MJ|5V?_E|`jHu;{0Q761< z^#qv}87Tcwh(dkrR3-#~Df4P@{y3X_FQeX>Z3ZjSspYi;&-m=vPGOo&Zr-U@7|Hkg z-7D@C*{xv7ySRLPu<_hv^v|z$zb>=M8quw;Y?*JKij1a|CXd>QbQ2LT(T&izyw~GV z>;cK`-1e6RgPQ3T(j(pMC(T6mdp6H0S8N?~Baa%F*S#uV(3RP}xJ7W;}`PE9SgYIb)d zgK9NAiT27SI$!?+i3q4)Jg64Xqog^AtU8-xF=NM591w)36QIq$a7{g#t9Jv2hKL0MD+~zSFt^@n1lM(?-SmCZdj+|7F8vo||xM9VP%K#cS(R-9E(} z0;pniFwynVC>A8rPWtj1?G&3lSbARj8*>WJRQa1;1?bdIs{W+q8uRFE{K%B*7`ako z{=+`sZKTN?6Y_j*Q3$X08TrTn$P@+CxqX0VZdY@K4}K zw}nP`+3&CeKjpUqJAn=UlSL!j3U{`{5#AEnidP2m3%3io>$$rI%@eEh2Qg$O#|;vG zZGx*N*TS>Qs?Q4ji|lF$EF#EEOic^Eul{n~&bp^2t1~Q#&7ub%uavSxl~0BJaz2}; zPq*eQnZ=A_<^fw^SE1L{hYp4&7PCi1MZx>|d{FH>c)ywnkc_^_FDOV%PX5&|i-V7! zH8J#|*(6Hht^qx1oF_OmR7F`?BJypZ1#*oLOx}KXtlf3C}a`fXHZtNu9lP!I*MM!n?4!xBn(MNmUd)zVVXAhfyP^utXL9OCr`&Ols7CXU6y-Y)`EMnGg)|}KAJuOlv>zL`N&&- z*!A^`$bMMbW}|)eZiiZ({GB7^KDX0q(-$&{b^7(4`^FNQ@b_{(+5-OM2b;T0R?PS) zpJ!645)T*#K17m@?-#Kv;gooKI;>;SDVt%F+F543*oT1oND-BPHa!Dwvqa>!c8S1U zr_GjFk3I{v#^_n)z(=NUt}@_fJsMHGc%iAR%nm~En;1JLZsS?Yq$?fCOFpF~OFSBs zV|Fa#lDWdv3djUzuT~3{nUN3qbs`ntFf9@xvVW-ms#gwy6cm8-8qY3ej8^d#q7M5s zja29a!_cqoqstpUQ~JPHBJy=r23{0j{>cKYN)mAr zAQC)7^c_AC3fq8_qlqE4NZrYy#$yR@j*HccEvnjxt+Q8}IM1C-bmVkoqUgK})~u^9 zXesqtEqop}%j#@mJ>lHo`$$lNQY_cLIiP&NSsDWy%S*!_%_knA?;W%T8WLplg6e+O zDc)mcK~xazW+8h+Q)?}Go=4Hgi{#;`LdRu^yH_9=I^+TANDGGJzP%~MN#oM8rJ>PB zk^9%C3%V4`_S_Z~)9I(E_VSoeOTV@h^|gx8H!Sn+ziWe(84bD=p2)hu#V4?Qe9tD5 zycs~VL~b~*mzXN+Yx5dH&_;#VLRwufx2S<=Zo+t9V6(E0vXh@rUSA@m=9++OBx4}P zs=BGxT{*($Y%;t7>6!0*>~A`c4h%;@(u*SyIYFImB+kpm?f6*!_c-y3)T;pNCaII#JPT|Cd`RhMz} znEr0Sl91exavV;9+Zx^V2DQbuwxB>#Rb+VyumixgA?f1MyeV(4FH)di3^F=?Mz_C{n^N%R?W#PvQl za_VT(8}8AasQs4Zcf$Ld^^q>6!@}Wkd5{5yd$YUEMMVlfALbDNz!f(FSO8q`$i(}c zo|`~@Ix-UmhVRm#hE9l%Kb>H>AB(cwIMyD*wA8DY)0f#CSWvBqTJPDoXrEp+HrGWl z&=PcUd2WSw)rUutNXY{qJ4o@dMmLDmd&9(d*NL!U=8{l_h{AtVy}c={EiEZ(a5oEy zF;Jf@)jY;3>Gpd!)9@WfQ(K{Esf&~d+sfKlwxRjkR8ndG-c?_FWXS9?@G{zrR4w&; z^nI)tT=ny}>uqnguhuTrNc;NGcdn*!)(AZRlJ@TQ{f-vr11J5p^5FWrCy5=PE>h0c zUkvp^EhY1PBc+7G`Sm=X*Un2?^%dhPxXhI`Hpenn3RZ(WtD2O!NpM)dO9zO&JD;Zt;e6wCwlj)$B-v-3DH*zHJso4?ZxE;Ak^2y6 z!PAOw79cnj^KZtQz%+i4JgJGX7D}`=G^DsS_pwy(6+BLDF@evFs60;jPP(RuY*T4v zph`lUrWHXdY~{bp;YJf9d1GgI`k(mk911w%ll*WJ!FJtvJ+olG!pXov&^N#HT%F=o%h==T4@js3IVYEMgkzd zYR&m#NT(cw^*ou&^bwNP{}>5Fg{(Ovgu!%Tib0Ij=P~q*lEvD(nfw;5l1F5#w@X9O%fp;91?Q5?M}{h zFNzgIJ^`sIFy5o0zh=72>cjI{;%9b+pqC*ES_)lhIL zq5oM*Pcbckgu?wd{K#45-b9K<;^(taC!RM}{%Wy&BaXTh$BcxO#_F?pe6Gn>b9O@id%XdN91<~G0_^KoqPe&D;G}8F{uJu}rt8gd zi`jIDB$wYKf$0sXTlDY!dF8*jgbeWnWxGo@xzfCm$#$B*Oae8>L{O>%Rp9Eqnhaf8 zNm_{f3(4Jo0KNRYvg9og-q;=CD z=9mpChf+w7(hYTt|6C4&P;6w3<>ZE??T@_Zf4G4bN!jk#0&!TO@A34gbSp$i3A ztmew)F2khVWy5f9XbeN$9LHIS&yiOGC~|DL=@QMTXg$9_4Q)IMh$^GrNq&Q{wN*+ zX!dIcS$D2yd?s-&DEA@pw)&Hpg~l{%Ev`9MvDKUs?;?0lt*I?uHv7|gJpUli7#wC! zUw=PA7&cU9Yb4KSk4@SNt?;d0d0qI1pRI;X&hxc|>nDFBp+vKu8TW-3)QJ(b#a?LC zfuj!-(eA!dab~v}+XGZQfF;U{PF4J&)8v;tdqC?&icR?tgFqW)X>leczWOtjdeG|n z9OWf;X0%&glD4Dz{_DE>qhKQs=dML;T$ib$^M@={H{|i07v*A`=P)RcG|-_a_FOcA zifRRAWwJ4h;Qdd}9ge~g<6Z9QHJ(jU^391Y@z=zh1e-TfdF5yRkl|uX?_a+KR*ha) zbcS>eC%s%0BJL{(FZa(IkSkkQ;u`zD9OJQ<)`%n7Sy}E6D7-+wb(%0vpB+gVZvfGwyegbt1ImMWnp zUf?P%Y;LHI=kC`_F&IG*|ACqlnFPI<#;XGn;Nx}xwQV3QTDEiI!X{2i*{9SDnx8_F3;eL?3Z0y9G;x_~q+NmxIAH%vBRw9@nxjMmcQ%HAQM}M4G{APa*J8v@0 zavwz11yUf@C@LtxBP3)Ouw=O55DMoq;d+h>uK36!1?$Q#)EgbQ%4w4a`IiaP%akCQ z)JyyFEUU`m#|4+Miqlg1hp5GTumTC( z)KvV5>R{VuxD>zLHqmkOzF@{!?* zwx&0mPh#_@XGG4f{L=yv4j@5Qjs+9D5@S)9J%eW3x05V_ThvFX-)KIKD*C8GGvxI( zEEaCjV+#cu<;+5$TI&ZSKj&W}d4h;$=6>o~IE0qIAx0s~rTRyq-R;Z^ZoKW5Db&@x z6urCQQ(sMYM;W#h<8$}nm01B+)4l%&;&q`7l3+QT7tT#9&_J!{9?mDoMxi=5h=_BZ z4-Al^%Z!BkoHkVwu(sgm6(OFIXqY2UYBA`ScOjrFuwH*K7;LEua-kve*4;SV@Qmp` zVsaBnBSA!XMg&?suknJ*QHgNx`|f_7=eN@OAjA@=?-YTy%LZK7t_RIki~I=|E7HbQ zjLP~b?@sZ_=S3tKZxTeG4k!|oUIV_50YmKR<$rO6U zzORmxTP3Z1tX42xvSOg^9r^PSU#IY-{OsniLY)VnC;M<-UiTYQ@QofU5G|^$?C?`O z-pwxPIki2V{){nRBirW5)#~Vao1>IU5H|SQ{N5;^B$N}#;!d;d**%pF5XeZwv$C=x z$wEAM;DI{7%f#|Etklxt=z&ODpr5_^!^J*Thtb`2a7Oz(Wo6}iTfVQq8W-Bp*Bk2m zkuQyxNOeVG$nxpu3}-D#$+4Sl;6yLXswd((5=_&IWAYF&JxL6ngdIMfV~MW?b!-PB zIxms2BN?xg4NR*YeY6drOq3_J(!<@U#4a4NCn@J2@;o2Bs=z?X0Pc0-(Jl6MlGm6! zyJrl_l2gj=_D!j*%UY_bODaLu*wz;)Kc*`PRp>pb-RPBJ+&#P3=>c_ATWh>A;Ej^~ z7%Dk5(drkxx~>G;FRESw#`i`t-1Yg1icoh}`@!wQam$^s=lx3oBq^@z zs~+aMJT!e-6(3En;tcyt`oC%~{nP?yj_anDHB@f_H*8PW+(Em$)X8&wmjpX2etDfq z#*U`T2@)F083NU4QT~?pjZe8-{x8yt3N!@Y(P|hhg*JkU@A-pkO#NaP5)soYxft*e z=-F!1B392g-oBa^ag}V~e?)6!eWQ@80uN8LRVekXNAwk&nzIA3kwh&2{@1v8Hz}q< z^9Mr49FIa`?x_4q5j5RCl>3Q?u7DzHZk7bOF9~S77=SY!vE7}686?nLj$CT71~{Fd ztV(1;ui(6yvfka zWC24#N}_0t^Ev1Z1Rw|By8Rw!t{N^*k?1wX8)h4*>!Yt_w)7D93Rj?J)Jz+8C@%y> z(xujPTkVAs)cQm%vj>))yca?0@*q7*lj|{SbTbK7<=_GFU_a9r$5TIv#bEto=4#0< z{RJ1IE~=$V5g*-ZH5W3vb*s@PCE$8{{L_}eCzdAfurxG4B?zKCc@OhPMptljyiKj( z%cyzd7Y85n#KW8u9+^wesFf*vW(1+Jq5D9$^+u_vTFr>f4n5w zM=Oac&350`_H`XNVMAo5yCWFIk{f<4e(=C$((cj}9lS=GoD2?(4w`^?)1>$-QaL{2_BYvMT!m0x*9+gp~GVSJd{p>{Q6UQ>+VT@XQg@`qB3Gk9<7X95pKQFMxC+EV^W za)g&+FEFR(v6`Qxg?Ie35;(jPxaNE7T7f9tWYksxG82e8o!yvY+!uMBb^(ETuU`H~EAAyMcMcF!Vhr(1V6BSETWB9nnseRQE~~zxMw)!9})9ZGU`VI-3lsRisB7cnCT56(cb< z`k%*^1lPlD@a)sVlc!pEN+xIHv8LmQUc%{ZcfouylA4#Nfd%2vL_0C7CtBLAg-yZ# z&*tvP^~?R6`qsZo6e|n!s-7QrV~DS}2P_BB6qzz&p6()i>Ga8K>9?R*Eex=}_ntrP z{0drY&)}~`YqyAey~N+j{Uz*27!eoVJ>TXv@L3-U-UK->LyO2~Q<;|ippQiHChA^=0rey>HOLBs^6diy z%isLKe->Js%?F?8>b+{vItIe8J>IqIHAT8F>;xT|rZvaGdxKTS<-}dVyj3}12;)6v z06~Y*Xa2jd(OU$baw!1~1EA3LrR#Sm$X7`)P7#}k&t@zhqy%0@=Qmx#z0>aMxqK6f zJJkDz3vvP7ZV{iotVmezKzU}hNgT9tc?fte*oIWf%G;V(syE?dhEvGO6aE`gug+N-StCK@rZv8@*v3bMgIMS{~aHXr+tb4=Akwp^A-P? zswH7XO8>inBwe1p)dzVQgi1uH zjgIVF7WZbN92n52C;v=eRtJI6^?XNhGuWX8dpc1HR{l++EE zv`MkZ%Lhu1+(m0*ZmRzpj8)Je5bbjC^p(@~^}3yG+1GmCfmp1_r594Q zw3|vV`n0$HscTnaPnJQj=As-@_9gSi%7%1Hniveu=APeyMg!sUGk}Vh?437QNm<%q zkq`MQh+HAKd}S6@P~IT9^I+Wdy9Rbh_|XMiSB-B9Ie{;kREW^e`;Sh8S&2Z6F+VDg zpn-s$o&B_=spy{~XFgDOlg%w|QJV1_AONJVx6# zhzzc-uiUO(Q3-g%cLY@ZsRA)Y=woX|BB6$1aFd;GXTYE>UzUy;bzG84}-m?{e{sK}B;`rw;bbU{`T%_Y z>tDUB@Ae`_Jsa>={ZwNm?k9T-aIZC?5oGn<>yHaUHx(X|-}&%z#J z(+geov$wNI4tM{W*2urmT^QTvm&Ft22urdmvcTXFVJLX)?eB|uY+2sua^L+rie91q ztiyd@SRt76q`L2KK z0#ff@`zHQKRM0e#J2`c&-_f76?JMv9+riYg!N@-hI&p$t*KH09sqA%qxBf&-*5h?g5Ce^DniTcFn4sXvw^PnRg6wK5)_xm!WmpsEJvP0})Zv8 zp5R#{I@LS#L-Fq`d(RpMWbdlt>A|Rivgb|U+gi$a8tLP>00kRHrYSJ!_6SxawRvt} z4`x<$X>c7`!2li&HaaH(s2zjq;|ZEoh_~Hi4d?9I|BF8uLArL9q=yo~{Mij3|KWB~ z$-L$UNTzHECY_pxt}|-{dq}lI(d3*^p=}TjttPze_8nrm-!7sVe;3e`%TWM>3M?2d z{~c}9GJ2J;d5d-)G=Mz#ND5+dFXTbdaR(? z{Dn7?Y+1?s_df?51o)X$V#TDkEae?_ek+R3K{eW6A%`KH1)hWsDX7qX3Pd)9< z&!0b+be2K`ianKS#sUxc?WC4Bfq@uAqFlUJkZ*c%S)fL4PY0%GvQDGR+MRDgR`kyV zvsp*2zxn9k0N?pdLXrc+Kj;r=Rpq=V!XYsT%rss!J=p8Po9AgKWT@%;zL5SwG+qi! zR)ME1W98+VdGmio;+{C%>I$W~{TB-vp64uAKqT5hVMEAF%aMKouLmbn@A97vBz3*y zsW;I~7%cCQTQ|la7y`xbIh@sTUwRI!4(ZmL#V4A6=LjC^|Dhb-*vf2k2zHIreQp=;M;(xr1a0vE2sRb6oBFF6SG za6WHT^gVSOItTN%Kl+Mg^As(ES9msQmyVwSx*h-do>Coz=APUQ64m6oN=x$rTCu0w zZ429v1W^*(SN!Pj?8my*H1_ID#ZM@mj6?bdmbG(#pZ#Nubb^WS$EFnV1EcdGn6iYN zPEPFt)Q9NR)BC5^;=6Vp1Pjht88VE4($~mN{?LPtiZzPdDVA)^+=}hUsSBuXJtE|h zU)LAeHVmoVO-w<-LtfmRjM#4bDzm*L>@is%y=~1sT?HEy& zt4pMXs;-|(EW3s(3u)SUW0$Cx(*s2|S!Fx=*wR)9@dUFmL|S z2qk^TUKNZad&KHNcmE$6)ToTbwqxMtL}K+l9cmHYGj|p=b0l!i^zGrburlCZ|4-uX zN2DP@Li0~Y8UbHccpJOd1I0yTt8xlChn$~5h&Y`Ew?b9WKEWWMo}!+DhA-$bDPP{j z-R2)C`UjjtrLXrS`h+0>-ue1U^;K;j#TTWbn1)W$5e87dJoGGvXP7oW0U+E5jLp%2 ziLmP+*cZbHe+^5?>5xN3OfZx3R#w!J)5)4Z?3LetbR_WjM63Tz%ix@A^+NKDy+9}ydH8jOa-9-aSxt3H8rOdxXPykFFX(xc>iC}*Z;Y< zE&F>cVZ)9~V{eH`Xyp~WvY}_T)**2wi!TiaBXAjdra@{w&`TwWKS!=yX}!V@ZlpGB zk$p)_SIhQ5F-C39M$TXoBz%VuA372<{U-kNr(KEcoj&z)4#bDVfcJXrx_b-ViQc+G zp`xXme>AN6o8TsXh4ttyL;>Ia9-8VMT4o%S#3PUop?|li%9rgi6E>}0s}fw(+l+dN z&Iv{lm2_y>uM^4n2@rrNBn=d5r(T;lB3SCr(VFYf)Gin^3M#->} z^SfL>4UA&IG#G#BkeUu#(d6B_pc30%?sEW?_}8#th1P)w6{uWgV#f>*@`Cn_shOEF z<(fZD&gkXj?xy`J<8$CK)3I`c&(1rPr$9Ykki6W23M06*#x;RT+Ff2@fA9trT#$nv zSZIu98kRU}9T+y10bj%ETb>K817*>8>|;kva5S1!UkO7_Xicj?7kuOeB)QMj`Grepr)WyJvQ_uyDtxT%luSOe&?wGqR|PSq{6K6sk#u3itO z4;jF=DRavt;y8%ZOeC!(b#^c3wc8ipwI@M_{x)yxzdiio-H|_UU!YP8sYgqjb52~P z70jrwRqXY1x&FGBBtmGP(loqM#VOWh z12IG5p9^~ps}-b58EI^Q(Vny`j-2Z_uH5Ec#Y@{QPXV6BgJRm%-~yn^&9nywd=G}D z1^vm`{MdlGzRD)L5Qujs^BI)M5(;*2Vk+)^XOQv&&jhML{I&6H2>fL<^11b%n*;C6 zIXRq7&?dl_pU#^$%~04J&+Wkg)JkCpS?Yhj2I5aJ4zgHYExCh$rXSOmuM&(so78J* zF|Dhm&dA9vj}WuIjzlJ(81@Jri@ux=cS#?H_>AIz0e>CLThsTGazQ3fs7#xDq(Y0b zH8UpKey#oz#wVhouqfePxVqjYs*k0VOloCZncgY8(*}JdJ*kiT6qA>evW^&q#~~76 zG6AeJlI7jmCC}8Yz@N{FziJTI@QWj%$}YV-lSC!v{y?HW*;4|lPhhnzaxivRk#^rC z+*n55fcBVF-xEOkmg$8Hqe4ZMA!xuRUS*n~Ru^b$Uaml!iT2i`7vw2|Rp!RwbO=++S6t27e*} zftP0gD*;URe-ZW7VNvbh*F#B3C@mm}l!TxtDWxb4Qql}4-QB|=CEXz*DIg#WA>ANd z3c}Ds*U&J;zzpy4-rs${=O3PD9vIH~)Lwh7wfDKg1A{I%0WYi6b9!cNY`}>nUqZ>i zqr@ZIYaY;_b|bLn*}qa(Qu;8ytC@eGLE+0w@)J;I#8?kZ5d;9-kD90(5VO zQ7=^oeafgBEp-Z`c=Q3NZX4zd`-u;wVt>f6mh1*gvOnlK@%Qj}?!x!ya#QU_8Ovr& z47>BL%ozN7B{Rf!2C~`g;{{C;S%g7Le$8J2WlI3*|M?E!O)xrxJyc)6YD8^$ITZdH&ScSBAgdXsrw#U{0aH z_l(CS4wwUf{w`fXu_<6EauPMyWy`FKy3)x`B)mS6M6lL+GnT2{$``(ODI_Kafy{o}~&1KQ*sD4#_hf)WxU zZc_7n)JIW0C$#om`*ioq&1~0V_9CPW!ahGfKkm_FcYSq)8~aSBpNb17*Rss>vCr)| zQ$44p12shFmEh(NReXKw!I28U2hvC}24sMM>dlTlhbLLx2g9?@OU=KFJRAGRR6xoX+4jN zSrtEMZEvN=9c$FXv5K6GN)Pg_qEZM9iw6lX(s3pk$*C9{X}KI3M3TxW;r`Ti)zCsk z$+H~C1G=rj&o5D^B8ty&b?jJ@GGR-LQf`1Y zD%i*e9aSrxibfpo&754?YZYn^w7h5IuoFKI>lS{28J^&mo}ed62;CsP>N=tuHnc<7 zsHri|D}$jiyAXFL?}tq2q`d8c?SXSn0h1PMp6Gf0{i@Aa$Tlzd=@-BH;_P5TXAB(v z=|0mv2_er@KlyX0g|xmo-JVtZ)%T+V^=wg}B_yE{oZuI*^am#NyAxeLOZ`5N=uP&2 zC~zG|C-waFQMI)-T(hU6YPFC2x*l(zmd-|1q?}M4dbN$k2Jpmd9Ex5_t6S#a0A(jm z6Ku6NQCB)T%<8U@?jwvNCbJ zPC&a${n-Shqg8Ny2Q1Y(;kBR z<@WC}T(2#y876IFmyITnoP1tuB@f3iD7TH2)iIVd0)3dSbwqtn=9f%@N@Pv5iW=lb z_e|*IWK0s8nPdC&8D@%s-a7lEx!PB(9nS%`I@q>Nt^g|Kd-$vK`Ti5G&59})e@s@& z?Hl;Aua}J4LzaUUEUYLkYXKb`1H~}cfOcqzW1ifapcXomA&v6Od{qi9!V(CU zV0`->_(9x=dg@8=%tFodTg#7=y!=zHoo=q;UrGHjOx?qU>DxmSn=Gxtr+rYBzhm3R ztn6_`MaLO-pQ#Ji6gFwzx&vBd zf=-;Y_Qv-LK`(Cyf-wi+JVH71m#lr+5>wu>G0|V{+kL;=A8U*(46Z*s-cIw9ZkRLb z5V^S=sU;=En2a6Zh(h(27I+l5pZOHFUye9|C^bGv&N>*3WeR&|uEOLw_b<#q zcscj=jEtV09ZXiK=oSp{mT+N_DUdjb!{n{keJ&YiHB*a+w8(}#oE=#Ll;7)7v(pkuptLRnlEyhp7QE||{BRa6} z?-wGISnI=k@+>UnMiqZJFv_ikH8k&~@IgDr~P`O6|Pe)a|*wi!=xKDeR z1>Kvs3U!-rd4J0OF5r0jJg)Vkn~v~4z4dmu$b0R_i`RW3>aE^94R>GM+(@>2fy?>Y zm+OVE`??>3S)Pp5bSigjr>TAL(UEN}HeKh#TV02*;;Tzvo=%LtXdRblxg6{-VS$zE zR04a-g-IHE?K5_AubV!`JDaZ0#YevJ@yE(pxnR7T100YsUHIU(uPa!(nDNqk6Gf+6 z;#<}}H|~bnbFwXQA@!4Lx4JmduWq+^iCHU2vi@cYy|#<1pVxT9pBVt0A&e4N!1JaU z3P({CZ~1#e((fabTofmaOwm_3^pj+-v`nD2yjrtOyP$jL(-%!z?!&E)lT=23uV)%b zsZNt##y7KnL?*We)9O+|FRq4byc)7=6Qf!rxi-CI_K};jATov%Eg&K&H(S2hv^z9P;j`nEB5+QLDCzvwB;3h|I*~$Ehx73 zBnNTg13I{wyIK?;CIx^*>NZ`X0_er+IU*WOb`J zKnyhvzdtnR=DLpqthR|5|LYU<5PVIoN=yTDJY7xR%K5s#CnGu}??bi6$Z@ng3L-l>znGaicIS-aR-+@^M=;VY>yPJrK zu`tK9NyQstvi8@uH`PpT_ErWWD4w7ek-lNL}JvkN# zIO%ExOG5W`)uHF1uMm4uWniZ&p&#EX%i5a_6lZN2){UX_d>PFR4HsuW=lG@P$Axcz z)27XJwYri$-{KnuN?-BAi}nbFe}gS|+ha!;#^-sOP9-k#aH~{b(oA1!#u8=k@(3EX z*Px6IzgF?H9osA0CMDozAH}@8kuES-Qt88NNZ(7*W4B87D?S) zL4QJL_)nNXL~l1zs5zSj`10~J3~Ak&WAqQ}(koQ(0>i@ERs$oju28L~*w_Zcc?t3e zz#%GqH7h>ahTL5Ojn&%AEX<; z%#Ims+rSs$dI!hcTviX`11F5@$!Z`VIHnM^G$P<>7`JGL7UY4tt z05vtWQDd%u{(&+$=l2?tlqzIz{NK+PIR5W*Y0?dm4OGG=%FWf)^{H!F&P4f|4<-w^ zP>H~Tb>tXBZmzAZeNX%6Ykf?lxwyEjTG!r57aIc=%R1^f!1z?>fJN48)mDe1UQ{gT)s zJ#@P7Dm>qy84JZ{wa`ocsv__uh(PqduW?mj$QAldmSE z8$oe2^}SinW|w0pM(gs%42Se^Q(1eos5R-v+PtAKwpEa;_&Ez9Gd7cWv23ZF7-Gg$ zbLaDjQcu>)4}tQZM#%TuD(odJXyUz|(r>Q%#A_=8lKrk@WtgyWb7SYr2P0?)g$vY!7&`C!g@yw~|E z@cCOV>vDK|LtP*)Fa3Qfug;chULngt3ZfC4D}&k`8FA4zy7kmT0t^A5!1P`_I(s7T z*iF&c`Vlu~xQ9`n3wiAQXVODU9&y+DGS66Ey8%sM6tlSB;g^QcG%9L-+zn!;#(h-C zO=MN`;XR18VSMBRNKDM`!9Od`YZFyK1j|u2Cpk$U`u|z{lRgkk0o7++qtDX4MGEYUjyd>fN zQXI|J$6zpG+=WRuNa-14sN3=h0va&671Xg*(FvTZ8_*;=u09h+(qPKKdAX78| zl*csv9>%aW9}cI1Ljf7LcL_4IE`u@aNqdrsuPduz`e!Lu3UG#^oUW|b7>c~rnyt0@ zP>$nMCEd!-{ZL?vikeT*ZW?y#U)Y%pMYF@|9{eC!PN^&azj$_gtf!E{h@LJDkGbb_ z6y>K73BQ|f)!0#?e7K=j1USQZS~%!Lb?#28-X|C=Z)5T_W!qW!wpDi?VHn!;tlUL6 zhBpvEauZq;T3T9_l=dX%vc9d^d_w4+B$ki1+ z>m3VXCnl9+S9nXNXI&GuES#ofSK<1M#U({YCtZ9Hea{PG^?Tq0W*$dBUe27(;gQ9n zX=CTV$IOBcWP{e^3J-6EP{7oRB|d#{V{UV_t=G%t`Oi?77LjsZn&H=`9ujdku^_Q&I#c}NYz$zCvWP&yyoHf;bDN}GT5}pMPFROBQFOzoG zJnb4UHC#JSXB^YaPYwlwQGq3j{x=QS^`Ewj(u?W6>SIe|@&~5gwmz8MT5-&igY<$AbBA#YT5>k7I|*^&t#P{^QI3BY#bVuHaU51U{|&Q;37DE$lJ2?R8uLoi#q77~ z4dek!Aq5Zr3+yEk^lF9K{Myb3qsAJq@3b%j2g@+^E!PS*(8{^EZ$-SS^P>yu)}a34 zeH60kv%Y5mEj|#-t_)Gq$-i6Ss;MfD=&=RxLINx<+8^@s+G}Oy=Y`#Bl2(%EZ}Pog z9!A>=h!cmtGbW0=`IWJi?UrP3zOq%gZmc`8e-_i!NFN%`vN{*x`!|e;!(inGdfq-c zkYb{xyaz`E)!2!JhP&TSFHn9-EAqvM<=thD4~CHN)3Z6Y<)0tjHe0Z``HkEyw6|m_ zdlKf5Q&Gp_YaJg5mFAQd-;K>}_;9FGn}Zjdq$4VYGEU3Y)K**$=n=bw1sGoeX(RpQZ^#RhK&WVI6fGKy$l#}m%nsh z!U_kS8vA)NO?Rj6k}2SEIA|=h&5S8kQ?; zRo(e?|Dya^YKtbgWb7OQZFZuw9YNQ^T_Sz%NmQT3|;T-pQVgdJ7MiW!nnn)&6tS%YSR>Rvn zoIVC8fhfznnB)7b2nL|$%lM`1Ow?MugVI|QHyuvU_2)zR_8O19iiv(6ge_3)We0d= zgbyFs`P%w!1gAR-t2k1H$p&YdDHg{k`CW(MF8? zT~U|Z4NUm5f^HU;XK!|$PKtg6t;TAaP1gTWkA^C4oaeH)tSxHjEd zIMVW=e!Sm#xhl^^-IgJGpg8-~SJJ6$^QvtQSy7kRpzDK~tQ46`a#FISOdvOlHbA+zD^myJ?aDJ9`)*C$+7BkmsUZ6<@YBHqgm_VRW#W!tN$%@rP_PN>;8OEJy*NlFs7?6H=og)pu>Yh!& zl7`p7+2ldFu7&w*wFhMY!ZDQMcKYN5^;EbSk~?YpjEWl#H}2-1Z7S8#dF}FbLx&Q- zlTcQak+Za*=*;=?R}z<$*7EFCaT6HVSJtSm8Nrr&qekh(-G|o~3r{YaSr(0FHIIQQ zpE&oGtlwJPpJ03lYfoH=+dZrECCm|RaM!K-#k7O?=7WiVX5^}_p?qWAqwl^S4f{7; z0l?$$QZQ7K(1!ERh*5fpQ7OJ|(AFFGU0CcH#rG{QI^4MZPKhKV9o5#W>rQqsy)Is` z22-dReUAoH--b{A-NM;()N?yaa;sOC*wABBe zQ2_r>h62UXy!rd;Fyl$I7rXUifj z5RKgY(AE>76yBeTYjc%f+I5$;A9q_D$!M^k?H(MI4GJ7r(nTG<>V{x_Imy3w&FGGD zo&~v8lxP-0dx9DP$uhNeXbu%;87%QBKfaJ_b_jX14843MbXWIncS;k+`OB-oh>Tpv0!l^u!n2A9doTUndk6kHKXNrE=Ip+4-9RF)~)R29c6f)l?}aX<#h zhY0a;@Vkk11oQ7<6Y>FFq$K<;OVkDO;>oWP_>yL`4D`+k#`kuXBT4b zM2Vk5!K10vs5nc|ELGaarw=@r#CTOy-Ku!qkDA>p2R<1HkroLnvWt#A`dG){g2#Y=$*2 zfYare_7N}UG?I{6uaeiMEK58O34&u*ve_GVjYm!D3;7F;G^IvortK^J z%+y9RwvSr^cqdzGUmY5a@i&!zlRD?h$*7p0@uMY}VQVs#RXU%pkK=0w8{%8<Z#f7>ZU?e|Cg9n^`#C3>bH^!dQ%!t00SIK03y8}twFWSk9mD(r5*|4Nx) zhZj|%@TgF9y)!S*8TC;dCAs*d$&}9e%vKQF>n-ZlT)vR)EftH1wCe6Shmid=^Tu|` z%^8+anUKXvL4QEy+uOSZ(uUMv6S09%KMXp?jVLYC@IeSAuud42Xqc5Q0F?ZQ(J{Mr)lPiH#t z#DBkIL>&IDeg0-cy1ns_b9=y>`;20!@kd;qE&W;q1QRWAN0WAJ!@H#Rw|0|A8*c&` z60$GGNh$B<>HV}A;;SD83-$yz4zzFnd%Wzlv~4u!b_>{>J==~>HlYvYGI{X??Omo> zovHYgZhXf!(2V{*_TW=hhi7N3C~oy4`iwOyJx@DJ8$~M6=B)c>r?CR*bgn$7golT> z_zt$$b{Kn%_IgS5fKS#iBHUVwQ~suLd8}3P$dilC>`*8e7|!0jdA_uJJ5rip=mW+s zd{)DU&;6OBALxD$CrVzwsL8PvJo89`<+3ZXid-@V{ol|ck5MAY)?)jK zax?v_;sFeb{IX)E zUiM$&XQ3@%R_RlF3>m7!g$cG(qQEiv(*j7qo^xD`wYg4ZlBQ>RTqL~QBLv5wQsXx6TEeu`wMN+?ww&!VLt`JV7{kamaMstpr|(xR z6B?|c<|Gv~D6vy~%`EdIqpebHo4+BD0L0H8V!bWI&I6)%yHW3**P3oSC$=1}JaNh- z{4+wlO+KYKY`Z&eekBcl*mP$PQIDA0L8V;*NTqepWYboV#l{56APHJJ6&Ih}NmbH* z>gREG&A90${ll--kI;E-;346C=?)#WQbkMOxf7HYJCDW*&)2u{fuZQ|FX&XmZ>Y)5 zXGO}e4%|EGj=hDpczox_s!^sU_3a7MrvI?C6YI~fS1Q&}LcXkpyNJcH`e{)U@bpP& z`gS@1Q84A%$Od0w1N~MO8sl5Jm)8VZmt&wOtWPak&*C<#`f@y5n+4O0V6d^dofNNB z!dth{UZ)7hu3xj4-%ijmr!q3$t=WI66ul!iginQJ*@3TPe&W{*(cK>h$Y5&T=ddCH z)j5&f!jIzp*Qi~$GP2c@4>*B*3O361TZ!z=rdF`xZvsR+HF&PV)c-OPFJOpLaCg0P&(r=bqK=0M>7pF^*Mq#J=a0B4_38aEFLE`Sz47ye!0niO*oCu{p2rBR2R(asI)B{qU_bzhHN69I{Bk*u63;>@;sFErKP_d zO~6$zgG?Xfik13Z&K%AgtmOXAgr%+GkR4?FYE8~({hI9ZwPax<<|H*}^PvnDF4cTGIjaXQjkoW4!Amj-p_4;&rO>Is+4jH9P zzUhxSas3eY!KDsXq8XX#-bus0>-}RiN|FSJ7zP)L#Ee018qdCCfh3@_wnKHnez_XE zI&iLW%bTU5N|2Tbm>)I;G|0Ev!=HH}77XTA~ zmcbF0%%ec2^2X(>zJwuD{Z>BV#Q;NWH_hY~lj7!dD6y8Q>8%^fILi_9*u(ozJbk0X z*%O{90FQA}RW`5o!*S>Dy^)0nRYrLZ@Q2pq8M<2qrAxItwKBT+EwB>ZRl~;@n4f{e zo9eVn8J4=$nH^DLfW9H=69%woV=b<4Xul$x>VC+kry*WWbAj>g>5uPWvmDoB+oS;2 zr1HogQZ+twFkJsm2_XDm(3KeudKg^e-JTHMhn_|m1O*p43$~OAbTgWdt^?0}S z2*riScyThD-g!kRYffkX#kSm?KFrp{Vse9d90*MX3Mv!;w)lO8fsvy= zgt}M0IC~NTA+z2xy!Xgm$8HLp8WuJs?ziv)EQ9fVjAYSIXdk=2!qxa_-LrJd`djJK zg@_^Cs~AfuAVx&|gBDcVq-;xUo~@&*9-N>%#@Bv?nQRKzdjix5b(q;R77m^~Trw%a z@Upys9l=stn=2GVpOS)nk_l6^`m_~}>k!g;KtfBDEEpHykgWAihep0iqiACCtPk|~ zNMaNTXN~%r-0P{E-04F`1)9rH0@ zdwW8B9GCkimw zcHo48)W40sZlowB*Y{WyzVX@{S7+%Zl#L31NpdyuYI?u^UgTrY8{s=kix=o%yx?vM zin2?EM;sBR__izDO?MvEVtLRs*ZU{vnE=Ib0DVeW+JYGk>95yJA%%0hNC7^A9h$P< z@fH;@EVa>Tw-I)}E`ojZ`~m6l`3(#qjY*m?vapo8sW~Yv4dU%wlwOd)be@hM{n@$w z45=e|HGhSm{~u-bYy+iw+qB>ktxR>8+HxpNIz>x4)^{`_dJ@KeFIf|cR5bc*y}Vw0 zTX9|PfT2wq$ zJ^}ysy?z)D4pj5dRP7jQ-m@F~_>RZVMpgS$o*qtl+Vj%VfD>qd8(^n^0zXdx>37Qk z1xh~PRc{sXSUSQZl&28(++jS*v1l)tFGhI(i+PS)+Vr+Vk*MMMA-zD$F8~oh+DS=! zow-vb_)}tnztz85!QX{KO2Rz${kqF!i0}RzzE-@^_5i7tJ9jnm?+TX5mH5!~K4_RU zurQtn@}Z{(!c@HvGQ8~;3O+IFoM!q%w4&gAbE#2LrN8?<#{wyhG?|3ER)Dy7GdA;4)!^AOAaDG;NX|m4>YzS?>qka7SO(i6p+zn zyfs^4c`@;>4I9Z1J5u0$oPE?Xhyt^SAE&KunkWY;cXnX#X3oV5L#Ucf>*;@I);#$y zf=y!3T|p+wChby~;Se*12qo$=b1AbCTN4|a8Qm^d%GM-agi}rxM$KR>S zOL=%lHA$kmBlIk?CHwNc9(r!DwP#H0aA^Iq&4zTl5%k0MJMp9fo9?p6$c!KMgC1H` zizDG&vp1$U)1hbb!whfQq@H5Y4W&={zSMG2&JZxNogA0Q1cmS^)KJG0*vtvjD9}D# z7d4z!ZQE!aL?X3?YMKh&b>vSH>H~UKQrp_X9J|+Gtyb(MoG-(&k+}FV>2??6S~*IZ zQrD{ytrV${PdqfEiJX>Za@50WKzpr6zo9qT5%r^zR|{!|_9AgO^Af_-e^sRs_j+<@ zB(34=Ip!umifjUA-?}_dVe}zN~1#3oBWd^L> zGbzr)`_k-%l=ltjEh7`_T_-Do%qLqH3fsGkG-^JTmBpUg4~mPw1i24M36?sk9^BLj zv^uXiRF&xb;SjkzkNqbKEPR2(O5gcF#-+tWb$jh?D2fa+@0L?1cd4dVuAJEUsA)fH zqLP64cJx{5lWqt(a(WANOj3gCd>Y0+Wu~*K(R2WGn3#orWgPTiX$kLD-CRlT;_yxO zHp^~KTh?px78Ae*g@^a53s*+*xyH$nxrMklOp}-gKZw9^Hi1#&V@o33-a~v0SzjBZ zty5UalMzQ<_Hpd?kE&2>sZyA`5EzPM&D#Ra40(Nqsj@x}rt)K%#iJ+d#3!=s;?5#N zNI~8OMth$m2&reIe>ZL`i;Bn#Ne9r<-wFejCkcUlcl!q>gl0OvzUccOd<67mQyS&~ z(r?vk-$L2Y4nSw8F=klxBqM_FVN|Tt)5_$b_L9Rv`~dL^SSYA+k_yb!ThPsUS7v6o z^=vGfkF9dE!SB-*Cy&M__`uvojK2?i19eDfJc*{BGZSIS6r}=HHEY!9VQ_ah1$nxg z)l%buWVgK~=Lov-#B#m8?n<#=3- z$h346yd;&O@czhHZ|Uj2!_~+2xb3abrGbFc=7>Q%&Yd&y+vj%P*Uf9xmz@Pg*)=0Ubz7$ zT!#LW{#6dgN@xQXJ==P1)pnvHNjy$}2*V7RleW3tIPU}AKPo4=R}|@z_*?!1JVO4=%!(y&t58es>u1?OOTCc$y@nGFw8B`v4Yro&5ua{> z_We&|pR{6Pi^U=f(j!PWKi#*t`sV+T%1QM$`R%(J&iw4Ma`6Naf7aZivsp92O~l6{ z?^*;3$^qQBhD>_xC8(`>P!zsVz#X~LsJEbPmA1iD5x3-O$~pT4-g0t3w}~8_6COg% zQE#rCNm5((!@p}$NL?C_^@3I5z1S&b;LpYD#yoY38S3a4Qa@I5?-nn8q8q!Q7&tT# zJX@XUwD39p8C}Ywm)t{R`{xvB-j;Db1?%SC57E-=dNY{$_Q4j#RMI=XyW*Vr!*bhO~>#EUWQ5MuoJ8SAyt==6jqamE*!BfC@G+?Q{vz zP04zH4&9cJ_Mj8L_~b8@4H;_ zQopfhL-4SOx%=AbQH-)hn3zNHZJ?$8w5WV z$FgUqeby)*dJy$YhP`^(Z}_v8uar#{hI;9ze;81`X7!+Au%FOhxp9u#Oe>MZ;nKgC%% ztM$p%saLk+T#4irg_VQN+_><|keLH=;2lP@5D1$rKnQkyRop2Ll)Ekb^lI4uxbIUS zKGBH2o#`oK!B8A`tUJAlR??)4UI*=SOjNoBCrfQfA_|#`DH6>j?9bA!X@tgnfTmer zzE|tB|M8dpHrU>2k+NqT|48%P?{K{Ho%*AcZ}^Xfjp+kbUs4ex`mAmp4#<8Fzl+$w z59O$qcDJMi4E;Kecf`0UHR+S$k|kU__&%dS)k|WInq;+g!Gk}Cnv@78>N%AukI-YMu+rW8hB?+t#is{yl=o>>@9AtG=_>WdZxZaDE_bItijgZo5Np4;6)Hx{)j^LvoT{ z4?XfsRBPg34Bv61+r#Cjql!)pO+PevaX)58PBG<6{z+l`Jmh%J$}XZftb!_c-D4=3 zgg=%2xt;8L{cqCs=PV5W?rjNJJLqj0_Nx4Tj+lgtng0ry69{|_f*S2Ki;K6lHehZi zg#4g;C4ol^Wzk-^6{R#N9LhN(Z5qu=lZ@3xPW@{TXaLtQwyg9{4a5|&$qD1!bE@l| zPOnPnd-IaS3@5Xnw@F2rGe^sL@H>M|S&g;U?WFDhyZ{0)3e!Ef`2*5jz+vUg0Vs75 zN~3L4mUqB!NOWm2wl4c0w@l)rX%LIrPDh;tnTH{9j$0*J}?c5K8GyiN`nn3rQ)(Jiz{$rTW+7)zi0^jCctiZdJ5!udn%XnhWTeV#XV`*= z|2hfJk(r>4NZac-PUCBwr?@};zalbem-#fw5Pc8~Z|UiSDB+IZMl~JHmH2ppAT9+0 zkhafyfClTXdq+_oV(ZXr1(^x{cX(1Y-K)rsl8~L99Nj>L3Di-NBs6n^p%s=3;shz6#9Zm@O zKE@}C<-fo12^RB=Apq_Y`Z{HBZOJN?%q{8lz@$A|Jl8B@cvxglmxLOB+?Nb$Wo1>( zpSna{M?mJu@u2p3a5|8e&D~6DcwttpGDL5BF9DWE@$EB4rTm{k#+5VNc(gY^ox8AS`d!D=oGV{xeFbh$Nj5?S;^E-ht;*!2N0#$rlZ@2n(qr^IohC`#8Wvf?cK?6to@j!&bL6#{)$9luxjqzrNx0q8^s`T)aO z{V)E!agEu`uy&6XuD*pYaymgF8F*qcw<*89<^7ZN#)E}5mjrZ=&o6?(GeV};OW$=+ zg~^SzK3?fFeu<$9!Fx+th4;dc8*bJN3$Nle`cC!qNP9YBg7{p)4iyjAYm~YoOZPgY zAV;ds{E9Idr$z<((V4W!?12~h;4$OzUwiE>z+Ov{>tVuTFYB1-`P*`%1{ODA-{54z ze=^z$44qtOFWosm&B=MV;O$=%_G7nh-O8Vd|7e;$NKP6RzeDQ-0e!E@bRzjmxtH3K zF0`7AW47iyoc^>*H`!=1Yc}isK?SykPJ+3|&Z+MFMa$+-WiCKm_-yOR*6=!xWX<7d zH{XG7w>b$e;^0a-JglQOjt>&z;)&Q?1uQ~NAw2KQm`W8=>QagXYJF^*N^#f~`q^+? zPGNCPtrc)&N=xD#@~*WFNPVJu_;g=OwT6OTLWna;jufBK{9|2^)krR3B>}FSz?$Vt z9P>Mf;aO1v?vkf`TRyb3PoB^a(-Ps|q6v2b9^FNcxAUP=G^H!fSE5WA+Qj$;hi4ZK z{~DM9R~ul>I){LjeBj6EM|V@?G|VduyNGqgVpq(iA~qftYI{F)kJ>Mj_S2bm z2rKd^Rh4LdH27fyAX3)9SbVsM!F>|wn`AN(m+Akmb?tDehR|H#ZqFH~W@KJ;&;uMk zQv5)YpMm(F)A1V&hJGo3`;7BG$|2u8n?UBSQK4KF0C_l~ewuPCQIoz+eA-YHqrghK z%n|!Ip*5+MP?2}T?kBBQLVR`n+Wc6TYwwMX|H|<}oRqu0_f;EuJ_P;rncbdHcX9$F zwz;>r1(3bx(*fC=@!bZT|D$RbVxKBup53^QV$nf>~i>&=1i)NJWtS7u?3gm0#+k7rgA(hJY|_Y8Uxt^ z`wS97Q_B(NgCxn5KcJ3VZtJcyNR&UqE2?69Xw2LZi4Go8FRvO3)WogXyNfWNm0Js> z>3lz<{DQ(u!evl1spNb~6;yqI$9pU3j@PfBAe;A+gnIVMN*nqLksHGzAq3o1?$u8< zqzyGMlyw5MODX+RiV!;5tmi`ZblmBo3(Df5m!6I1ieLS&3m;nTOZXl~388%AJeq$# zqS6Xt7rFLIFv=7tHnb@jv1%Gk1vqut6F}tWojf1D_uBsMzba%m1({#mzS$$gQq-Nd z?{?nOw5|FUN?FpAcRt>K+OC?!ZlnC+;Z^;)M5`KUQXHVVX8`oCW%taIrXXq` z=d4%F^rEsJ&hK);d-=ZM`8f62nuW?s+DZ8XN(DK|eJt;v8n z8C>iXC8X;=h@h9bTSfA@)1TBf*6e|X3afC9voPMh0sASu1WZlt-3^~_J_H16IB%Zy zy-XZfv9laeP#IWD^ipdY9M3y6UY8_F+(nOjcHme(=Ju0+hm&h2&PPw%m=jX*{v3RR zU8{9d=d})6Nv?PjF3T&4k*hsw(^^v+a zv!7F|SZom72bO@Fe+06u96yIFK9bER&K{xnavQ7m594Dha4I8n2QwZ_z$iLRiPJBO zYLjv9h`qKpKaqXy3RW)-IqBIUrt zd7xDBuFkO%))RsFeIS~BY2rM>=(vXz_>^vu@Roptl3;vzh4Z6|3rC2)xb`DbG;hOs z5()ieMlXV&Q+9`QXoPyK%DsPAAl)J{#5UE7i|y-eTwNSaHGOKLM1p~Ik%pT)43G|O zR<&h^yhB_+ystE*QSLOJAL(V3URLveS%on%Af9;cCWzFiNZ;X`Hb-h(@p>odq7Vds zt0)b(9hn2VNhsPv(Q}*++K!&xU%+$obJ#wD3eG^ILODJgmi_eOh|}_13E%uf;s6ax zHe!2d^GO^2c-Qz4Wzz@)+X;WjR8U%Ok|Vfd@+CWK=f`)74nS!TUFVJsDw7ptWIrkQ z!v|bgaWAA?f%4|7_Ud*Zp2}Mtk@g@kDte}v&|3>DWs#(A+I}gn#ugZyM=Y<= z%mFf&W<>kt&EhB+nV8pVZqfr$j54cDQkYzbLU_BN^`$w%=IwZi4@kB#GzmqV`Iry7r|79>rHf8c?x^BIp^FOSgqlreGg+F=1f!@M!B;+5_4~r`2z?z{2 z%y+P|N5=c2|7Wt%rSCmld}Xf5pe%Jaw~*cSytKU6o)C1Gk!55219SI?WRz_lpLUkX5EC_e%(bLGLJne9Vo=_PnB?eU^z}KT->nXB-1m8T* zCs>OL-PLl$%8zq@|7^f2#NfE$R$W4RYucmFHC$L(H%|q!Qi&KRMH^{eQ5vc{i8uI` zIxo_F=1g1PTVx@5-BO-u!dHxGI362rlAVG7I!rOdijUyHKN3Y~$}A#JL@rQ?WSZn> zlPp4LZm% zmIDjcsm~IuSSF`)E-CiIr1Sp~bpL9~>8K{=E#E|eZ|D|Xw=Q%)1YrN1qXmm;jgFU9 z1{@FB7z2QZk=C&87eTt(SZ;jPRcHO$r)lKd8~NI-@2}p*n{P0CxfndE8h0L5^Z1!k z*KLnzUJiTyExbJkd8`#b^|$k8#r3-s>Q#-f`4kPnk{ZEl(8{(l$*H5YRm&wqxcHY1 z{p;m^*iiDA5XE1_+zq6OZm65o`al95#gZ;%&__Ii4=PPI0 zo)%EHkTu{;AfeqfsBQjAEicvc^6yAy!Azed;P!MmhPcla-)v&{uMi~^jw1V}pg7hR z7J4|xxu9{(sKQ&vZsL`E#K=Zre_iv8p$bE8MDr9AI+b) zenYZzc%Pm99Pr_KEJ_1+_0PFOjO0%%rYmfDVvg~#6dAu++ZRnL`kJ?)R(S|a7&ajl zWYc!x`q&U6rL^Se6!Kdi1}xs4NE9VZ#=ip`M+bYvY7NJw`(1CF0T5gA9dLhx@@mfg zmpngbg3nrA!Pks0ZqH~;|D>X$LjrX@k(KV7V~m^D`YZFt7aeM8uimHGg~SJ+RaC?& z&$9o+nRdWQ1x18?dM@68FK_$BZ*N+9^?YOmn!R;__$mQNfo_Cfx719(#~-z?h7930 zcg-jbPR818ezPW?jL7ny;|mGQh10z7CKx@<*zvXY`Kci1eSN4fT!@qAn+g{as?nM# zw5;(M`3F1)+<*Nn4JaR{&oNJofJ?CeIeLqni%;G6f&uThvz1e7-uj`Zdl2#~UvJDT>)bwt!F`>9r^rtsQX7OpgoJ9_`-*k2Z<9h`GW zclG*GPi1+>_v-I?SI>{q!}Qg%@!Rl5iX4_2GJJPb48)LV*#gWD2$!lN z>Mt-KFxmlW*a$H;%kmLk0>*U{Yg2*Vq~pTF@M%!OY6yB_F`2^+&5N2PTwg-;8=kot z>HcZ8*jOg|R@W{0R<<`jA{;b=qSfvDn;W8L-mb6Ti#d&Ao&t#7n7p05f5b;sx2*l+ z&Pk4v5adNDTP6UgD(ZJG;o!jT|C?~qeR6lQlSbF|yYqJ}&rj7H!R(2z+Wy*CkC8Y6 zM`m7q-%EW@m;5*5h;Alsmdf6`>AzYcpB0{UFGIuqO_3J8@Iwwqs{CWD5rTKHY_KjpzF~ouOqR;*Ufn{y?cnq7` zt9{4^b6YOuS!ZWG19kfD*_0LL;Rt3GB#{OvuJOA;y{bBZ&aX#|rm9lKJ zTU-@FS@jkdPE(Cf8v*5x3#v>e4o(4U!j~?-)l}w zfF-yz_~i{%NnQMBWgo5tQpk;;{@Fq|(zp|6F0}0~Q@~7(m#j{wONQ8vY7n9r0LoQ^ zE<-=A6mR$Z8AFScdeV9jRBFUeaVWL0tEZ1fWo(!BdqCr1RrOpx!v(50G4fE0LGgy# zi98%F0e8Z69#*(C(#>A;lV$EoEfw9R79DlMkG+ndmWI2tpc(FGm4;2MpYEEkqc?crknqq7gj82*Xn(izFggU~VK0Ph2)!fczb znebiB_d7y%(D+=!b8?;Q$g9^aKZW9@4SI>$!AV+PZu(u*Z03hrjg{9;QU$%~-Pg<*ju6CQOup9-sm#=KOSF=`6h3atNPzHr zJ;s3OUZ7K#ziC(B?f6no7tOa7Xy1}C;zHOpbD#!9M~&PzhhVs#07>i9+1K@&?qW-m z&7(UwC+!1!#Pm8ff-&3>7`z^5R<}?NZM-WxuMH#8*4BV--$TvuV6mY)XDG5B6fVvR z{DRr6_&p;v({q11+}xy7>>>p&JN$zXKjh8P1**DHyT}avxcabMT^tY2Z2jGw8JWgg zHFtZu*pcNg+!VKXfLEqHk&`T+tX+s*sbl0m=l&)zTAdoIZmO%}XFoi|QcD~+TvHxRtb zzHug1Dyxw4gZr<~yo^UGcd0!gS|*MT1ogI93}C8&vgg8=Foq%?@PRsEJ&a7#Rx>g| z!%LKdLIZ`590jE)_!=fXDt5Noq>rmxpSg)AR^_YFAw`VZd%_jG`0XHVF^F5X(R?{U zkr6bCi^4kQMP}@BCm&_ga(y>0g;29n2X=wREeN~svKZ+cWoJ%nU*!$mGF@Tx1SaoM za=tlJZc+CAk-o{KTq|$3#`-Z!I2ak7JL{fnCd1AI^mSU)>v6Mv5JZ^0!s`+^PpXg% zbR`Ku!0d03GJnc7pGb~q-r8xZJ>+&VVXjR_2d0#NQT#}a{Vdep-syjVpwR`Ann)r;Nt zLySmeFOg~+de{AYc&jaV)EL%tqDnf6dV;lU5i zpUimtX}WpUuNr7$aludL<7oP&XWiRkcz@bu1r5gDI@NeHVen(O1shT>m_p32=Hj1i0$|nN}>m%MGp$9P}M5NllgS77@+yD`Sj6!yN z=c3m>089FOeDx8@W(zMag~!ckxq*&u`KhHVcV9WHWGL9r_4c_2NKk`ktEe=qVrXlO zQJQScY@nygE>}dh4{(E+IPK)ZeL7V!#l zJO~zj{-dESezr}uiXk|?xE8s;PuYToYRMXJ7$ zTqK3~24mR?=MpFxigt-?g^u19n;_#;Kfmf=@@2BzRe8AJZ-+-z%l2ch7n*an@?h(q zqwJ$ftzzdN}7jCKgaK> zWy^y`lXMrMh$T#gNS!WLPlqQ~g%vx$5e2mXF@q&*yiY0fkAtt3rI<&(z*8^MC?=sz zpwjoF^}M%61Cf2L2V2|AtcVcFiaw6ry<+FI(8MXBXfb5+Xb83=B6~sIc#n^h^R=#O zn2PjveZ2YI*|KgvKJCZVW}~IRev z^x&-X>HOf~pdoI{(f8Ym^U7F*+P^8sOYS^c{X2`EZzz^BV@<{`*orL=eom9!R^mbv z2`BObI}hK+t8S$o>Ibu3cK85h@5vR$#b>aKDku>u+^9p)IAYy}Dy%MLgXepAq@GR# z#@O`wb}u%fZms@q_T3JSTd1K6`_&m7zWd(*;nzbh}kTqi5~1}}KaKA8v2Yy8%hJ6&$9Xai;@20w<+ zRmd!Q=LOF}Kn6lKeqOJeM*C@>c1T01~ygOov$4GLAnsa8~xe-x2AeK+;iTw^Wp~{TU-ZSl1RB zbdw+vbRxUlR^~(Tcfx62@S|n96|v}L7*bq>leu8A?g;i9`V;|@Uno|iK+qL`3PU@> zN~mTk(|WxY`as;)|Fi%Awr%Wkf$_-_@ebs?Vj9!ilZEe`*!^5QtoUD6Wfba|Qh^OH z*b2{BL)?#7ahfg7X^L2yREJ~$1j1+t8XAU}a<=W#`UBSUv`jEDw$G>{LNBqBe-)7j zIn`37q*}{r+e@T;-~g4fJ+wPyX!_;WjD78IpGlB%&+j$=prawKsUxyZjscHEE~bl8 z(Qf>5)KA(iq3Hovz|PjO(%Og+ zBQyxro>?5<_sSW=w_h?^;(}OXv}vQyH+?O&NH;4ePXa*Nud4XkT95$%&n_mp4J*fV zMnTyqOHt6X^3aT-IM{!c^ap#X`$udMn*wv8NRrksvohT+B^rAks;OfUh=w5F+m&PA z)yEVo9X%2R)k*rGjGT=SDPWj2DXpjtVQMKCIzJPt9lL(SZ`2q}3i}-*5RT3_3c=5V zX zUde&fL|{1i&|MktRYBJP%Q#sIhtI@hT&k4h0_C@o-JaI=Bi@~l*LBGsg)x=QZlLCN zwSTc_;%EO^(LnuBeWN31(yVqQv`;`?W+ZO>suh zWlnLl?|JT~tUXq8m?*`-+$MX51P@v*k-_~h_PbmnrMJ?rYJc;TpAeKz?8fj=LzG+M zT7oR|ftEfX$JCi*bY!_Aku!J9*tmG1Ns;6S1;di$&ys{kkGxM30PKP-oaL4SqNx{E zx9sLaZ$vJRlZXQQ?Ot(1q#yI-D2*$)BP|cXq$qr0Oubx~qgmK^99G=X0=>oO(&2X~ zHQM04Ftijb>iZBaidQH)1{ika3UVbSdi=b#_LWDn@(&6bZ7i0pZm>@>MKiQYw8_o5 zH&TsI(LBGSvDtT^J0xwzK6D6|_K7!}q^{P&6;Ng0W${No2)4U6GQ3M*qpT>F0v7pT zxHesP?P~!G5c_m0{CLw;Z6cmO2shzp9ZB1sg+a^QOB*StOZ}YEpg6QMHXY{|l}w-L zXu;>}mbA2M;(2^nsjJ&XZYHnu5Ew>?WDBTBNzIyZKxeJRKj!sI6IxHRuMc*5{Q0_b zdS7>0?nvt;Xww_P}7W z|A@2Yb}E|)(mqAP=AciApD}Bc1o!mY;5jeH-@z`23&YToIY%z&Xl39SaozJ@<>T z_jN2ix%#fIR3u9i26?;@A*?zXjqkvpMl9LE9#oHIt5W`(Cq%!~0k=|OeB$CuriyE- zN~x+*t#>>Dn5O{An~C!HmzxG#ZVbB$L=w~uvR?V)V9?tA>yBHx6`7k2RXLYS@tpCdof)X$5ZZ-&*2-T;3=esM(LSYst#Sv+hzLoTPYJPfk_+Ap=9 zR2m3G`xK3$dsU@0P1|%NrAW zuE5(OGlZOG^Sh0J%pLKXaBQaZEu<*CVE|L1yjop-Rj=0I%&W+_8eXE_J<0T?MS^46X`RnUik9kzCdCcSE zHqjJtx=A*?NZV?HXF<~SMatcjSIm+Kq1SdGF;t|y5Y}-W1gP=DPVaYzVJXV6Tat+rai8Ydou#$c2Rq9s%FEjW1Alrn zLY7iq%#7~T*h=B$aa+HPE8MZ+k3v>iAne_phK>y;Sq zk%Ek#kKHzaJ+lqMNijW3G~bSnEm4etY*brrI6 zI>10l;Ys5Oy$NwkkBZW8(0=}T`l%dm_OR3w@ZBlGU1g0J^+XXBlH!s7Xa1x2Yaz;5 zM2ZEL=8k}@Zolxf^IR~94sJsWept|sAK@q{%%(ON-sS?J!~*nRr%EzljH4W&(BSIM zz2ntE*iq3ZO>Sf%3h}bXAvS|$8Qc*d98f!8q%nLF5!s#(L0C{yBd%{iaJWCC{r}S~ zu{ziyn8dJu<0(?2?*0D5Yo4GpM<8=_GFPngUEXx-;>D{~T<7AseMX9T$Y zxL_sipA6FLPCl|F58tpdj;p#F0rBTEVST!sg=fCgQ5$`Gc&4n4*O!5|UZX^qy#t@- zwH=FHbYCqI&mP^p=QZn6NGJ}oMv9!g>1JhR$&>ze$8(z}9{72f<2haPVKFGY97%d? zo9IDIk9-={+VxP@AZ#F+$Iw6LYS!G8QQik zbF9&6^XNGbZRh=+p5wxxsxV5%#FiLRRpH2sDU7Tuq^B1VR#>BQFlI|1qU^*ebv_Oa z($@atEHt3RRY~vY(r=n#8CNx}BlwmsE|P)SquLU7N98r~eo}nCe(imHdiUM$uq`}( z<6RxuZR=Y;3S8a&VyLnpI9@5J{Dex#5UeGNzh<)I-V$Z(>wFn0>3pApXejp?Abr z+o$vS_ja8x3+xNuAa9dB&PTLM+JMtUY!yOc`WiKycvOtu;||JE(xV38=v!*HFH9yb zMK|aogo3oI7w6S=T>-~iFVjKE#0Q)?AV|%Kwi}pbtjY7fPAXzd;IV7B^Y8H6uYc;0 za;xI=77^58qaTh$tIzh09;NGg+^D2;`3R~5ufJLQ{VP2C_bshY^i?KM=NQ96O*{Y>fgPfA`a zRim;DX4-7{sQfls?;;_XY;KKJgrIm~!Uqj$dMk1r6nO^eWzqA;u#K1Gxnh5lY!ulB z=`rQ z=nY!oa5Pm(eEy>SezP>@yf@;2;!BfRV!7bM2_`5@N`fo;74B)E^{ z+Ly_bKzCo@C(s|Iona;Vpm!tZ3O19rMukHCPXLU{Xhig)k0D{v#!Zd{waPCaK6k5m zA|0@(s}74ft-lcU)YD`bCY$(kVoRUCi^BE&%Ftn8_wn{)*R!x?hR;M`XwzeSaB0ug z<9x^sX2KZ(mCHA3q~1Y}Q@VlLB>@DgL!MlEJmqfRZJHW`E<6S8(^BViic-BI;xBE? ze&+?InwNGIVgT<}HU-v(yw+bv`TMxOP;M)K|QFIcAE)0NP~g z#Wxiy;nK;R8dS2h>$-y)(%-D?ZC~wHQ%fm$B7NxFer@?$IAORtN={6wPivL)iOW6b z?^!G&M;-I2io!s*yl=BMYv|55^Z!d|+uC|`=&6TpFQ#tv=FXA&iMEs84Wj9fRo^-3 zGo8|z+G!d1$&WVP2H!p(-|zcXR#^J%wc+&8e3>~YK^tbAGA88YyjT>s(0(E?~RP61Os*{;YoxO`fVK?KH zOcW?~3xOM^YH0N*{O4t{SAJ(LV5AymAQ!+T1C0Q1Yy&iG=bdBSmn zTj{t)GIs1f&1mPhfF7Gm35pjBn;xdRwWk!{72(q-uWQbr+V7eD}G8}XNCg^GJ}GK87Xb& zdc_kF1j3^-=o{yr2nsBE4>8F`*{^3@S-#W zb$AYW1?oU8dzQR^SMl~~PGVZ3=qF+fHjE*~<0MEzi|BD91l}YH^}__neTE#F+8IYM zeLiHMEGqdqBF3u`khv~^oqSa@g@ie<%!G+6Oo(JH>+{ibkJ1X2;3PQsxP0wNMfQCk zp=V{?S`0v=&Dz6BX>I4`3>P-mB@Kw$5{8pwNFu{W%f{DlP1h`7$K@-yJ(7P-ZH=T+ ze-wAPZ~ZJu1tx08DcL05N{_-_MblAxi76z1e9%w`4R>StxFTKMAum19E2KbIx!-*aS)Ao&v{v|HIAKT0~1b9hIOsX&gPaWN$p zoM4Bu!SV~3_!>EPG~UOHhMe{w9HFGPEXbGmSB)+glxv>M?c~CjmD@)`;a40}3%IjO z#(&6d>z`}+pkYa8XF+Ei*bOzGChM@*C~oL)ma=@e{HhHDoj#f^l^*98{B`9|@Yp-J zvAvUMvqC^fe6@pRYsGpY>Q0123_B=5%XxUCBmaGyzl&hoQSzV$ZGi*)qyXxMW+Z$eAtBR+5?yn-cJ z>5DmHgwAUwR0KTn8AQlUj})ZPR5+;jJX$C_Tp;d1pggOV1!7R1<^9EBr+i<5@tE~{ zyq0ZIn|O&4LjU7q4EPvC*7LlE^l#0@`S`e#_qEP)_Xf;U6e?WV(-{CuqG@{w4YvxK zcR8Evj5>i?2of5}W~{Km$%VhGNmJKP(KqXrosMq#UF_p=&%p@OLYZ^tUSeiwC&ZA; z+0_BO*G|caBt@9vO!%YD6QS$$RlkN`6r_bFJ(qfqha!cN6_oK*8=+ljjvZ!f=3wF0 zPP)160Y>`**)Obt`AZM$UtzgIaCXs)BC0+=Vk`^kX+eo`G#KAwaSnd;1^o+vE=LrMxta( zBqFuD_Bh(gSNEbZDK;jcpOHt7jr%-nVP0Z@pb7ypO^dT|)R7LvB09xr=iAkqpc1>G zK<){nyctliAwpj98Uh4%S#nmp{16YX^KjP?ISAThAB3s>suC@&E?^5k*D*Zz>{sCS zH&u(C`7v0Kao?Ke|LWTwsvM6RxH5wL-PQR?S02e|OLw4v+uPUNlJt`3+T?isM2L19 zdFMZlBTU-0Fni3{M5XcM(W`CNZayL$k@^lmQ8e7YtxskYU0PDG0fEQbK(|tiDILJ2 zstS5SFZC)bf-M#=gpvsvy{(}$fgOOT0k*Q2o^!=_cUE>2EVM${3`L2S#P7{YA|glr z&7R6+s@*F_L?95o4gbf(Pcq(DcU_26>!todT$4u~!7ma~Pf%*OaOm!6&7Yf9GCi@) zAWhrVVs?L(Wt$uSR;;W^ zQsF!+_b=V0bS9iwpqxTSeo*~whC;la-l9XY!chU@sAt}T><|tMBB%l<8MI4$AlamJ z!k0`nY8HmTsk$hMm9Np~3HfFg%1ag=DuxyO-4Zr=wehhd`NIbbnBhuwNDp+ z*I;gH@qJgf5*qzBSbP5qUL6wle3MdkqZLloA zEyr$vwsT)BFHoj!cM~TVq!jfUnIp)3L;smayn=AS`LZoWOfE-GjbUUFB@sCTP=@&- z=1m+n74sVtuXPg=nQIFH&i#v5r}JliFz!0A^80^b*EU>OZB=~`%btC@%UKiJ#qb{G z$!qCZk@?c(6;hbfJWkEC@dHPd($~~8tFj*WsyNUJJ#p!$%Dgk}u zdy57rv+A==yI!#2V4JBy#5~*jgU`p0YV0*={igEsu(9Ry5Z&?fMNATF3Vh_y4+UVt zdIQY>lH7`IN*KtcUoQNZV}MZttnG^Yl>ie}F3j?APPcj-ua{dB;;yl2@Baelk;jg} zT4p#s@K1YrjQO>4w6i?)HRx+kyT#nb+OM%Q8ikmzVqAAbniCo$5YebAd;%51H$djT zuyeNTy&4RAtzFUX-cL%$7b6eH6JAc9D9X^o5|RzoRhvtz^yDfIglH}IZj{L+A@y9? z`_~<~z$jJgZ(ZE1!Vv^ao9az=SF~Qr;d_y@Pa<{OzAN1S#8Z;_y0sn8Q2R!+v?)-7 z%ne!Ij`>r}*xeW6j#sZPI5Q+6vUxNCSbo^DF4?$Ne-)P2YcO(~QUL-YVp7E}v~da< zkKYJdlpMhQEAR08Y$)*O_%O)>OZ{t5*}KM9Lc9CN3+ThM3%poNuZHjm<@LU0LXSJ} zPM@zXx~8P~Zp#_Rb9N~F4)zYEE=v;vQ{l=@&ijtoe+salH%Go=LUEu>4oifF!hpJj z@rwuidh;g{frpb$=`VpJD2!-(iOHf-W;{+b(QLU65K%jN4BAjgmgb}<1fgs&YTSr@ zNx^AO$43l-C0_xB_Xi4K(*=nC#yC|j@VAkPYBJSua|se4&t9V^>DnKCEDg>mU5$3l`yhFy7@1 zOA^dLlm#IBVdt+mkSr8>+hVfN9m}DXcxh$j2zuA}Kk7Ao2%&QDZUx-CmgYLqP)rOL z?g_Q^qBvlw>jp_cJZ-sYKd-0ivp_0t_N55VwcEmC6Kea0)nR#l2jduR7$5UfeRl*}JuO zCg%NWv(WecFH>>Bp_oc$1$rlGh13#zy z{y4h2c14h7!`x{E?vV3=hg-MA{*mQGxP6mZS{(zu84g%x#)1-4`y-;!=hWE+9;%Ii zkEht<$t-P4g8@ZUIY=6DB7*Fj8dNy72$5;i%&N(V_Fr-4{)Ig+x*~D*uoGNnv$#bo z6484#6%vN8YlN{Ce^4|rx$_Z}I()lD7s}?!)PY2kYiOJofcQ~3@iY3u0ina&lAXDY zVtJsa{rFl5Y>oERgV|$K-P$_kwzZZ|tHS?Y)$$3W%d?rX%#TkQ%P)^=l@iye@qvRy za)Vu_5(tG-Xd#mC?C}$etKZ_quE=<9hS801Fz>abraCE&Y1Ob2kE2LGmRtT2o?Q=7 zK`5I!bb9mRW(Sb`1!%CI3Gc-FRpEhKZvQU2l`bD`ozL`!M}@!GX~=_~t#x{pyV;8pt;35j+raoyUl+IDc7%$NFkP=C?C#34gSOFKUg zbXqK!$r9{v)+!Dl1`zGVQd?z^_G$pTdL{7&xS0B)s&wuFn&uhE#~=&T*Lwj%V$eV@ z>2CagK|wPMIzSftTzfSc06;jesvu`Td4W0mq_FVVPJB<}5_)TA<{lD1wDz=Mv8_G!L6wXbCR)z?COwQqkfO~4ySHO6)vR{#x5uXrs|gn6FZ^Fq zCQYX3vmG{)E;2wmz1BF>k(3awDQv0^{C59%7;Rok@X&w614|&^(fKI~adWve4}F}w zHE68)(Az?q#>4F!kL?RiJ>*6&d}IuKVs`zEL#y7bPi$S|&N_(oQjbg+v?U3dO#*i8 zmJNTVP<7S}9G1QCHc53LUgO;Rm3PT09z%Wjb}LK_JJsdgAI@`A$SlR6xB>~T6q(N* zA~Fv*tUZtOFtKj$bPHLpJd=TD^2}O*g80y|>b(wvE{Q#F@O>r0PIU@hUdH1&&C@B( zPTvkKtV@i>68+z(s+Elgu+rJRB&)u3TMN12u7gDs%){TFfQPOGHwv0xCnhBLQF+pc z5=HWewAGl6D27yHnSSRDciDj_zZY*O{!y7{2>}Mmpt89_4(yGjURZCv0`dlQnIhub zG4QbG-VTIm3Vs}d`2m0>qK})?YtKWhJz0{D56W1Tfd_Jx$xck?bEp&=-?p6WUNZ`;_gxdC_(EI85yuZNUR$ zp_RcvRZo`H4hJkW1Py6}ucrdyO$Hpvm5kxI*gZ00h@gm=!}WEash11Mby43i^oMh? zttr~9lG>Djq)Ps<~133V-K&3B?2_y8HnLyPtS$jJv`EWm`4is=P6J#kN2@Yxh zbd0%0`C;;r5IZb-{p!7D6}oahSZJ)t0)Z~js*AQ~tMy+V|68XtK!tEh%SxR_x)1>B z|MLBQRXw`@-+1xE8z3^a!vkKyfcPE(Bs2Q4Jt(0+d!SYRAvcIvc#Ch!5ctKg=nO)z z9q;rzPUI2Xz)QrDnciPFLWDw+avUa&Ev>cs#0HQg(eX0v|2lt}Z$i7oKvr!uAd@w< z>1BP&f680AJE)V%yBN~b)` z_jb9u^dqcG3{w1_UmYndtTr4S=T$omtjWp{Zmd+_w<&3QLeGi-Q9zP zmOb#+H8?I1&%=QP>2nBpV8gfkj2CpjK3ps(J{0HTkq5dH6%k$Gs$OOfHaa3rM9SPI zMW=r#2>tEF3s)w;7btZwMivaZH5lUcbw>P-YI^m=D)TrBeo^C9si8;W7aK+*=S>wP zDiFLX9XWe3U9mE)zh)-uJW4VT4DNC`Tr11-yPXQnc^{WTZJ;QqRusw#ee5&Jf2t5R za4{35!NE-@LE`R*iTzt8)$AXo_dTz6cDET`Jx-oWxcA?d& zfWALgU#tUXx9a%;(sx1(QsulaF(7kX%zS|5$vs^I%r-%C+gB*dv$CkX1 zhNwa5mm6>%=xiGr_GG7DU0t##_T6%hHU%xXQ6Mf;c7W=ru2XVk{ML%PEvkAKj){J? zT>C)Q9vpUZcKJ7u@?67O=elAZA*Jq&>T8^XS)CM9Hajcb)wJf>S>PcJpvef&ZbGo* zM-7F>f!G&>N{*r@=7$mnJt};|<6hcmIktRcIo#jp`JZ(nlWl=W>~?IgcQ_B!{qXY& zFhl9z@si3SSK$kUvAdPtR*=D%Fcbp?&*Kbkm)gO8iQNhzG|RsKL=_R(WAQcO@2hB; zUk4`fv_(r5;X`OW!9U6_%&u1VtZV&c;W^R=|DYk7fdUsZiT5Ho?y&@U`@2h0);vv$ zbsr&qFl4-s zxuSM@Od>_X3b$=6Xz-1-W=8hjlS?(_n0WZ@#wu^g6@w2DhFC5e1j6WK7~nvr-$`kY zOe%7KtpqK!ClY*nsXX~Uh;}7?Z{NtwV(mi|fzOQ4cf@|JZ*9ADkZap=avV0E9#1{$ zkMlzz|dOukyAN$4B;e_UX{WFrpS;+z$deR%^NdQ+019$NI(GthU zIll<>xXy)#|M|_Ts~CV`G78*u(Kw2(<8wmHU}DC3$p!~0)?_a{6*6F4elpFOU|fnf z&mPpC)LaGxyJZ`^X?*uxUVbiGlA>oBnN7OXPN7C@MdPWbd=+^+*yxYwD#5IxUXYc!bR_?ROIU)nS<+jAMwEgdn!f)M0M{m_6 z1`1%_dO=4{_<8lhjLg4{(@mo6R4HLYZtr_jhH;|;n*&GdU8r7P%!_T z{szkjJcT$sC=aO6>4Kep^w(P{dhq(U1?Jz&wB=7@ zi$-%&5-X3zt3G7PcJQ`Hxs2WJy&mXs{9t6Bb#HGMp}?vO0672k?MLn}an(c?d+L`l zhnf+zWG)8|2;xEKS6!i%ZyvW>Hpod2s3=$r=JnHnZ>Nepvv{WxUeQ7h7+7>A6^p;l z(P_`X8`@g=_i-=c9h{f(+H26`9Vl+@P*)mEY#@yLqll)g`4!%`waLAA|0lm3%6bQQ zCmRhnDIF-Yc}M170dXTbLoK~nw1DEYL6{bGCynwBr83-mWD)c;w4QQ=Ld@#Jo0ThC zP~r20zMgdWxUNmlR-Ca5n>7yqdL`A}g=;2gvf`+zk3hpXGj8NqBMpUiq?AkN49>?{ zSeX=R2=LdVqLAbGcEN6)f^b;S05gb^sElwVhv8G#)G6r3103md(vKOFv7=t(6Iv{w z-#f>hI!Md*GxT$#9f2b&VvgY2$^R(B;Em_BmLULdeMKiOgzx0@BVya`8qXSG5?pt? z_h(JV(5K+3z;tu|EAPHfZ&R+n$9&7m;+OYNjULs<2l7Z6QsAZc&r7B$ndy~7&DZQu z-?*G)_3zM$hBHYp+k#dSDyAUOF3Kb+1o0id+8nMFxbs$u2{s7G2w`zO>z>9Q9G9nl zQ>;~0M77$+brfJ69@UE#&_g|B{{OA;-PjS)s3OGJHLuQB%2S^lrl8--m<%Op23n5bBPgy(K$t`rP#)+-MjvJ=H? zk`dJNZ)JLVpvHjwl!U%l?=fkuQbH*NRic8Q`Q7#gmvi2-TSmI`Wn@rbSw%7}Y9?`w zZ1RXaxOsF_Panm;oMHN&efSUg7eRo;t+d#N{ju#<@;2aPOzOUakHcP70}&F6h)>@* zmc%s$$x{tzHK>OqGLpfzh@QyvXj-eA427ixX6|le&>ieO| z(I5)L)N8w1L#l_v;eDiHYy7t9TgAm_JwfM@O>U$9b5blTVLhDH@y$xmm zfn`Oq(7J9EqA7lk&Y55ReFUuyH9o zNkxN-*EI1tI14QHK2yp~#X`6_PZ`S=_|Lnpg`bcwkMhJRsCmc)4VB5KnubQQa=Rv2 z?DAbVGaBWSd*^yMXYp^je2RtUKVe8yP-Y4(FdZt~%6;L+;xGolP%6#Olu8sxC`Zcv z+GHs8#bUtHimoR=p?DdD-}wxRn$Tuy`9qQ=LNr#}o^JEp!NYM(1BTpyT~^UETr9aY z&weP>&JM|>BQl$x{iYXIRL1(mTH)o#iON;)m7Yz{KKSprVLZq-#;O5Nsi$bhogl4z ziirCkok-(Z!c2@sb3!_!QlJs-0f{~gmWT!rEza}$#f4%zA@)3?UJZVBytE}Dp+Ge& zq1Vx>p>s=b3wd6`ow|rQ>j+fY*J>#a<3Zh`FG3fgxOtoR)neX5T7I&^Bo;>4BZD4) zPzWD@p5gmHCR@}yq7i!~zJ&hDmj&^j8EiIJoH7cU$R|-?(P3{gMkdj(m_hOd(hP;L zUy=?AXBI&&DwV3Zr*>J{wi?{By~Q0>YR)SNx(V#llo1iXPYl@9ejQ^>5#{8Ta>d_3 zCRX~sYT^!S#i)Al-!(Z%v!(WgGvXF{-?VHDb=(?X)#PnM{j0Uy%KH@F-B)D&Ya@3x zV2Dn;J1@JZmsR4}T8MP$z2;!P>8!gbc5t1xa75_~A>2#XP7WY03= zRhs1>8qjW6QRgyQc?Ekaz~B$KSJ%$^`mKce^^Niib*HfYM$FinV$kuCy{K>48Np(c z5*E5iNv*=;pwS9}oj?aDbv>fusF?SxI>3sTy_>=wMhrUSiVysC;`)zIHO7dp*F0EpKk z27UX3dGfUnhwX$+@&WNCh+r{-j#^7oucRLfj3$4GZSaor$sdQLJ|BsTnTCYdv?K|L2nuuNZ?pUvvFtv_Et@>!oUh2N4n3S@Gvm*#CG?GjLSef z7UWM#4az&(ow4&V(L8V72+T9i!6$93ki8a^K1{pdL+;t~M1fa^DXdb}bE{|7-l BpAP^4 literal 0 HcmV?d00001 diff --git a/doc/index.html b/doc/index.html new file mode 100644 index 0000000..113aaee --- /dev/null +++ b/doc/index.html @@ -0,0 +1,139 @@ +Python Bindings for KDE (PyKDE-3.15)

Python Bindings for KDE (PyKDE-3.16.0)

Jim Bublitz

+This document describes a set of Python bindings for the KDE core libraries.. +Contact the author at the PyKDE mailing list at + PyKDE@mats.imk.fraunhofer.de +or subscribe to the list or view the archives at the + PyKDE Mailing List +web site. +


Table of Contents

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Introduction
Installation
Troubleshooting
configure.py Options
Templates and Example Programs
DCOP and Extensions
General Limitations
Signal and Slot Support
Types and Related Topics
Class Reference Docs

  Next
  General Limitations
diff --git a/doc/index1.html b/doc/index1.html new file mode 100644 index 0000000..f960ac5 --- /dev/null +++ b/doc/index1.html @@ -0,0 +1,82 @@ + + +Python Bindings for KDE (PyKDE-3.16.0) + + + +

Python Bindings for KDE (PyKDE-3.16.0)

+

Jim Bublitz

+

Introduction

+

+PyKDE is a set of Python bindings for the KDE toolkit. PyKDE makes nearly 700 KDE classes +and over 10,000 associated methods available to Python programmers. +

+

+The Python bindings for the Qt toolkit (PyQt) must also be installed. The sip library +must also be installed. This version of PyKDE will support sip 4.2.x. or later. Earlier +sip 4 versions may work, but are untested. +

+

+The current bindings support KDE versions 3.0.0 through 3.5.3, +and Python 2.2, 2.3 or 2.4. This fileset will work for any supported KDE version. +This version will not work with Qt1/KDE1 or Qt2/KDE2. +

+

+The bindings are implemented as a number of Python modules corresponding to +the names of the separate KDE libraries, i.e. +dcop, +kdecore, +kdefx, +kdeui, +kio, +kresources, +kabc, +kfile, +kparts, +khtml, +kspell, +kdeprint, +kmdi. +

+

Changes

+

+

+Troy Melhase's "pykde_sampler" example application has been added to the examples/ directory. If +you're interested in making a contribution to PyKDE, expanding pykde_sample to support additional +widgets and PyKDE features would be a good place to start. +

+

+This release also replaces the original dcopext.py module with an improved version authored by +Matthias Panzenbock. The original version is available in extensions/dcopext.py.old, but is not +installed. +

+

+konsolepart support has been restored, but only for KDE >= 3.5.0. configure.py now detects lib64 +automatically. Also included are Matthias Panzenbock's DCOP extensions patch and Michael Franz +Aigner's KConfigSkeleton patch, both of which have been in previous snapshots. + +

+ + + diff --git a/doc/install.html b/doc/install.html new file mode 100644 index 0000000..d75bbbe --- /dev/null +++ b/doc/install.html @@ -0,0 +1,181 @@ + + + + Installation + + + + +
+ + + + + +
Python Bindings for KDE (PyKDE-3.16.0)
PrevNext

+

Installation

+These docs only cover installing PyKDE from source (ie building and compiling PyKDE). You +should read the "Testing" section at the end of this page even if installing from RPMs. RPM +installs also have the same System Requirements as noted in the next section. +

+Before reporting bugs, please read the Troubleshooting and +build.py Options pages. +

+

System Requirements

+

PyKDE only runs on Linux or other Unix-based systems. The usual tools (compiler, +linker, make, etc) are required. In addition you need: +

+
+
sip
+
+sip must be installed. sip is the bindings code generator and run-time lib for PyKDE. You can get it +here +
+
PyQt
+
+PyQt must be installed Just as KDE depends on Qt, PyKDE depends on PyQt. If you don't already have +PyQt installed, you can get it here
+
+

+NOTE: sip, PyQt, and PyKDE must be compatible versions (the PyKDE build script will test +for this). That means if you are installing PyKDE-3.16.0, you must have installed: +

+
    +
  • sip-x11-gpl-4.2.0 or later (earlier sip 4 versions may work, but are untested)
  • +
  • PyQt-x11-gpl-@PyQt Version@ or later
  • +
+

+Of course you must also have Python (version 2.2 or later), KDE (any KDE 3.0 - 3.5.3 version) +and Qt (any version from 3.0 through 3.3.x) installed. PyKDE no longer supports KDE1 or KDE2. +These files only work with KDE and Qt 3.x.x - they don't work with Qt4 or the upcoming KDE 4. +

+

If PyQt was installed from an RPM ---

+

+If you have installed sip and PyQt from binaries, to build PyKDE you must have +the sipconfig.py and pyqtconfig.py files (suitable for your environment) installed. These +are in the same location as the PyQt files (usually python/site-packages). These config +files are generated automatically if you build/compile sip and PyQt from source. +

+

+PyKDE also requires the PyQt sip files to build and compile. If you installed PyQt from an +RPM, you also need to have installed the corresponding "PyQt-devel" RPM, which contains the +PyQt sip files. +

+

Installing from source code

+

+Unpack the PyKDE tarball to a directory you have write access to. /usr/local is a good choice +if you have write access or can obtain it. Some place in your home directory is also a good +choice. I'll assume /usr/local for these instructions. +

+

+Change to the PyKDE directory (eg "cd /usr/local/PyKDE-3.16.0" or whatever the complete +version of the downloaded PyKDE package was). +

+

+At a command line prompt (as a user, not as root), enter: +

+ + + + +
+
+    python configure.py
+
+
+

+configure.py will check your system to locate Python and releated files, Qt, KDE, sip and PyQt. It +will also run several tests, and then begin generating the C++ code and make files for PyKDE. The entire +process should take about 2 to 10 minutes depending on your computer's speed and available memory. +configure.py will report its progress throughout its run. If errors occur, see the sections on +troubleshooting below. +

+

+After configure.py has run to completion successfully, you next need to compile PyKDE. Simply +type: +

+ + + + +
+
+    make
+
+
+

+PyKDE takes anywhere from 15 minutes to over an hour to compile, depending on the speed of your +computer, available memory, and other tasks running. Once PyKDE has compiled, do: +

+ + + + +
+
+    su -c"make install"
+
+
+

+Your system will ask for your root password, and if entered correctly will proceed to install +PyKDE. +

+

File concatention

+

+If your computer has 256MB or more of memory, you will probably benefit from "file concatenation". +When generating C++ files, sip can generate either a single file for each class in a module, or a +single huge file that contains all classes in the module. The latter is the "concatenated" version. +

+

+As long as swapping doesn't occur and memory isn't exhausted, the concatenated files will compile +up to 80% faster than individual files. However, some hardware and some gcc versions are not +compatible with the large concatenated files. You can control whether sip concatenates files +by passing either the -i switch (concatenation off) or -c switch (concatenation on) to configure.py. +

+

+configure.py is currently programmed to detect the gcc version being used, and will turn on +concatenation for gcc earlier than 4.0 and turn off concatentation for gcc 4.0 or later. You +can override this automatic choice with -i or -c as needed. +

+

Testing the installation

+

+There are a number of things you can do to test your installation. The simplest test that also +covers the most common errors is (still in the top level PyKDE directory): +

+ + + + +
+
+    python importTest.py
+
+
+

+If you get errors running this test, see the troubleshooting section below. +

+

+There are also sample programs you can run (which also test some of PyKDE's features) in the +examples/ and templates/ subdirectories. +

+ + + + diff --git a/doc/kde.css b/doc/kde.css new file mode 100644 index 0000000..6206aac --- /dev/null +++ b/doc/kde.css @@ -0,0 +1,8 @@ +SPAN.ARTICLE, SPAN.EMPHASIS, SPAN.PROGRAMLISTING, SPAN.SECT1, SPAN.SECT2, SPAN.LITERAL, SPAN.EMAIL, SPAN.PARA, SPAN.ABSTRACT, SPAN.SURNAME, SPAN.FIRSTNAME, SPAN.TITLE { + font-family: Times New Roman,serif; + font-weight: 500; + font-style: normal; + font-size: 10pt; + color: #000000; +} +DIV { margin-top: 0pt; margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt } diff --git a/doc/libpythonize.html b/doc/libpythonize.html new file mode 100644 index 0000000..58a3d12 --- /dev/null +++ b/doc/libpythonize.html @@ -0,0 +1,224 @@ + + + +Pythonize class and libpythonize + + + +
+

Pythonize Class and libpythonize

+

+libPythonize and the Pythonize class simplify embedding, loading and communicating with the Python +interpreter. Pythonize is a class with methods for handling the interpreter and is included in libpythonize. +Also in libpythonize is a C wrapper for the C++ Pythonize class. There is also a standalone C library +libpythonizec, written completely in C. All 3 versions (C++, C and C wrapper) use the same methods/functions +and the same args - the only major difference is in initialization and finalization. +

+

+The method descriptions here apply to both C and C++ versions unless noted. +

+

+Although libpythonize is used with (and installed with) PyKDE, it has no dependencies itself on +PyKDE/KDE, PyQt/Qt or sip. It does require qmake from TrollTech (part of Qt) to build. +

+ +

Initialization and Finalization

+In C++, the interpreter is loaded and initialized using the Pythonize () constructor, which takes +no arguments. In C, the initialize() function call accomplishes the same thing. + +The interpreter is finalized in C++ using the destructor ~Pythonize (). In C, the finalize() function +accomplishes the same thing. + +

Threading and Locking

+

+Pythonize obtains the Python global interpreter lock when it initializes Python. It is currently the +programmer's responsibility to release the lock when C++ accesses to the interpreter are complete. If +the lock is not released, access will be denied to Python code relying on the interpreter (for example +bindings like PyQt or PyKDE). +

+

+If a second instance of Pythonize is created (within the same parent process), that instance will acquire +the lock automatically. In order to allow a second (and third or more) instance of Pythonize to be +created and obtain the lock, it's necessary to have a related thread state (PyThreadState). This thread +state is created by a call to PyThreadState_Get when the first instance of Pythonize is created. The +thread state is stored in a global variable (declared in the cpp file) that is used by all subsequent +instances of Pythonize. This means that applications using libpythonize are mormally single-threaded, +at least in relation to the libpythonize interpreter instance. This is important for utilization with +sip-based bindings like PyKDE and PyQt. +

+

+The global thread state is accessible via the getThreadState/setThreadState methods. +

+

Methods/Functions

+

+Methods are either called directly in C or as class members in C++. In C, int variables/values are +used instead of bool. +

+ + + + +
+
 
+C++:
+	Pythonize *pyize = Pythonize ();
+	...
+	bool result = pyize->appendToSysPath ("/usr/local/foo");
+
+C:
+	initialize ();
+	...
+	int result = appendToSysPath ("/usr/local/foo");
+
+
+
+

Pythonize () [C++] or initialize () [C]

+

+Constructor/initializer - loads and initializaes the interpreter and acquires the global interpreter lock. +Sets the value of pythonInit to true on success or false if construction/initialization fails +Initializes the global thread state (first instance) or restores the global thread state (second and later +instances). It is the programmer's resposibility to release the global interpreter lock to enable other +code to access the interpreter. The lock and thread state are automatically acquired when any Pythonize +instance is created.. +

+
+

bool getPythonInit ()

+

+Returns the result of initializing/constructing the interpreter object. If the +return value is true, the interpreter should be usable. +If it returns false, an error occurred and the interpreter +will not be useful. Most methods/functions check the value of pythonInit +and won't run if it's false +

+
+

~Pythonize () [C++] or finalize () [C]

+

+Destructor/finalizer - shuts down the interpreter and destroys the class Sets pythonInit to false. +

+
+

bool appendToSysPath (const char* newPath);

+

+Appends newPath to sys.path +

+
+

PyObject *importModule (char *moduleName);

+

+Imports a module into the interpreter. Same as "import " in Python. moduleName +must exist somewhere on sys.path. Returns a reference to the module imported. Returns NULL on failure. +

+
+

PyObject *getNewObjectRef (PyObject *module, char *object)

+

+Returns a reference to an object in an already loaded module (use importModule to load +the module or get a reference to it) Returns NULL on failure. +

+
+

PyObject *getSysModule ()

+

+Returns a reference to the Python sys module. Returns NULL on failure. +

+
+

PyObject *getMainModule ()

+

+Returns a reference to the Python main module. Returns NULL on failure. +

+
+

[internal] void *setMainModule ()

+

+Sets internal value of main module +

+
+

void decref (PyObject *object)

+

+Uses Py_XDECREF to decrement the reference count of an object +

+
+

bool runScript (char *scriptPath);

+

+Runs an arbitrary script in the interpreter and returns Python's result. +

+
+

bool runString (char *str);

+

+Runs an arbitrary string in the interpreter (indentation required for mulit-line +strings) and returns Python's result. +

+
+

PyObject *runFunction (PyObject *object, PyObject *args);

+

+If object is callable, runs object with args and +returns the results of the function call as a PyObject. Returns NULL on failure. +

+
+

void releaseLock ()

+

+Releases the global interpreter lock using PyEval_SaveThread. Saves the global thread state. +

+
+

void acquireLock ()

+

+Acquires the global interpreter lock using PyEval_RestoreThread. Restores the global thread state. +

+
+

PyThreadState *getThreadState ()

+

+Retrieves the current value of the global thread state. Does not affect the global interpreter lock. +

+
+

PyThreadState *setThreadState (PyThreadState *tstate)

+

+Sets the global thread state to tstate and returns the previous global thread state. Does +not affect the global interpreter lock. +

+
+

Using libpythonize in an application

+

+Include the pythonize.h header file (requires Python.h) and link to libpythonize.so - that's pretty much it. There are unit tests +in both C and C++ in the pythonize/tests/ subdirectory. An example of libpythonize usage is in pykpanelapplet.cpp in the +PyKDE distribution (pykpanelapplet/ directory). +

+

Obtaining and building libpythonize

+

+At present only the C++/C wrapper versions are available, and they're distributed with PyKDE. +

+

+The build process for libpythonize uses TrollTech's qmake (available as part of Qt), but is simple enough +to be included in most make files. See the pythonize.pro file for more information - most of the additional +libs required are required by libpython, and may vary by platform. +

+

+You can contact me at this address: Jim Bublitz <jbublitz@nwinternet.com> +

+ + + + + + + + + + + +
+Prev + +Home +
Applet Installer 
+
+ + + diff --git a/doc/limits.html b/doc/limits.html new file mode 100644 index 0000000..3316c8c --- /dev/null +++ b/doc/limits.html @@ -0,0 +1,427 @@ +General Limitations
Python Bindings for KDE (PyKDE-3.3.16.0)
PrevNext

General Limitations

Python Strings, Qt Strings and Unicode

Unicode support was added to Qt in v2.0 and to Python in v1.6. In Qt, Unicode +support is implemented using the QString class. It is +important to understand that QStrings, Python string objects +and Python Unicode objects are all different but conversions between them are +automatic in many cases and easy to achieve manually when needed.

Whenever PyKDE expects a QString as a function argument, a +Python string object or a Python Unicode object can be provided instead, and +PyKDE will do the necessary conversion automatically.

You may also manually convert Python string and Unicode objects to +QStrings by using the QString constructor +as demonstrated in the following code fragment.

qs1 = QString('Converted Python string object')
+qs2 = QString(u'Converted Python Unicode object')

In order to convert a QString to a Python string object use +the Python str() function. Applying +str() to a null QString and an empty +QString both result in an empty Python string object.

In order to convert a QString to a Python Unicode object use +the Python unicode() function. Applying +unicode() to a null QString and an empty +QString both result in an empty Python Unicode object.

Access to Protected Member Functions

When an instance of a C++ class is not created from Python it is not possible +to access the protected member functions, or emit the signals, of that +instance. Attempts to do so will raise a Python exception. Also, any Python +methods corresponding to the instance's virtual member functions will never be +called.

Garbage Collection

C++ does not garbage collect unreferenced class instances, whereas Python does. +In the following C++ fragment both colours exist even though the first can no +longer be referenced from within the program:

c = QColor();
+c = QColor();

In the corresponding Python fragment, the first colour is destroyed when +the second is assigned to c:

c = QColor()
+c = QColor()

In Python, each colour must be assigned to different names. Typically this +is done within class definitions, so the code fragment would be something like:

self.c1 = QColor()
+self.c2 = QColor()

Sometimes a Qt class instance will maintain a pointer to another instance and +will eventually call the destructor of that second instance. The most common +example is that a QObject (and any of its sub-classes) keeps +pointers to its children and will automatically call their destructors. In +these cases, the corresponding Python object will also keep a reference to the +corresponding child objects.

So, in the following Python fragment, the first QLabel is +not destroyed when the second is assigned to l because the +parent QWidget still has a reference to it.

p = QWidget()
+l = QLabel('First label',p)
+l = QLabel('Second label',p)

C++ Variables

Access to C++ variables is supported. They are accessed as Python instance +variables. For example:

tab = QTab()
+tab.label = "First Tab"
+tab.r = QRect(10,10,75,30)

Global variables and static class variables are effectively read-only. They +can be assigned to, but the underlying C++ variable will not be changed. This +may change in the future.

Access to protected C++ class variables is not supported. This may change in +the future.

Multiple Inheritance

It is not possible to define a new Python class that sub-classes from more than +one Qt class.

+ +

tr() methods

+

+In a normal Qt installation, every descendant of QObject inherits two methods +(tr (const char *) and tr (const char *, const char *) from QObject explicitly +and also overloads these methods via the moc mechanism (by defining Q_OBJECT +in the class declaration). KDE however is compiled with -DQT_NO_TRANSLATION, +which prevents moc from creating the overloading tr() methods, and also produces +side-effects with a normal Qt installation which was compiled without the +-DQT_NO_TRANSLATION switch. +

+

+PyKDE handles this situation by NOT providing tr() methods (either the inherited +methods from QObject or the moc generated methods) for any KDE based QObject +descendant. The tr() methods are static, so QObject::tr () methods are available +via PyQt, as are tr() methods for any PyQt QObject descendant. PyKDE's handling +of these methods has no effect on PyQt. +

+

Instead of the tr() methods, KDE uses corresponding i18n() methods for translating. +These methods are available in the kdecore module of PyKDE. For compatibility with +KDE, you should use the i18n methods. +

+

Socket classes

+

+The following classes (introduced in KDE2.2.0) are NOT yet implemented: +

+ + + + +
+
+KAddressInfo
+KExtendedSocket
+KInetSocketAddress
+KSocketAddress
+KUnixSocketAddress
+KSocks
+
+
+

+Most of their functionality already exists in the Python socket class or in the +KSocket class (kdecore module). These classes may be implemented at a future date +(they require support for C socket structures and careful handling to avoid buffer +overflow problems/exploits) +

+ +

PrevHomeNext
DCOP and Extensions Signal and Slot Support
diff --git a/doc/signal.html b/doc/signal.html new file mode 100644 index 0000000..ab5b3f9 --- /dev/null +++ b/doc/signal.html @@ -0,0 +1,290 @@ +Signal and Slot Support
Python Bindings for KDE (PyKDE-3.16.0)
PrevNext

Signal and Slot Support

General Signals and Slots

A signal may be either a Qt signal (specified using +SIGNAL()) or a Python signal (specified using +PYSIGNAL()).

A slot can be either a Python callable object, a Qt signal (specified using +SIGNAL()), a Python signal (specified using +PYSIGNAL()), or a Qt slot (specified using +SLOT()).

You connect signals to slots (and other signals) as you would from C++. For +example:

QObject.connect(a,SIGNAL("QtSig()"),pyFunction)
+QObject.connect(a,SIGNAL("QtSig()"),pyClass.pyMethod)
+QObject.connect(a,SIGNAL("QtSig()"),PYSIGNAL("PySig"))
+QObject.connect(a,SIGNAL("QtSig()"),SLOT("QtSlot()"))
+QObject.connect(a,PYSIGNAL("PySig"),pyFunction)
+QObject.connect(a,PYSIGNAL("PySig"),pyClass.pyMethod)
+QObject.connect(a,PYSIGNAL("PySig"),SIGNAL("QtSig()"))
+QObject.connect(a,PYSIGNAL("PySig"),SLOT("QtSlot()"))

When a slot is a Python method that corresponds to a Qt slot then a signal can +be connected to either the Python method or the Qt slot. The following +connections achieve the same effect.

sbar = QScrollBar()
+lcd = QLCDNumber()
+
+QObject.connect(sbar,SIGNAL("valueChanged(int)"),lcd.display)
+QObject.connect(sbar,SIGNAL("valueChanged(int)"),lcd,SLOT("display(int)"))

The difference is that the second connection is made at the C++ level and is +more efficient.

Disconnecting signals works in exactly the same way.

Any instance of a class that is derived from the QObject +class can emit a signal using the emit method. This takes +two arguments. The first is the Python or Qt signal, the second is a Python +tuple which are the arguments to the signal. For example:

a.emit(SIGNAL("clicked()"),())
+a.emit(PYSIGNAL("pySig"),("Hello","World"))

Qt allows a signal to be connected to a slot that requires fewer arguments than +the signal passes. The extra arguments are quietly discarded. Python slots +can be used in the same way.

Slots in Menus, Toolbars and Actions

The C++ declarations for menu items or KActions are similar to these examples:

int QMenuData::insertItem (const QString & text,
+     const QObject * receiver, const char * member,
+     int accel = 0, int id = -1, int index = -1 )
+
+KAction ( const QString& text, int accel,
+     const QObject* receiver, const char* slot,
+     QObject* parent, const char* name = 0 )

Notice the "const QObject* receiver, const char* slot" parameters for each declaration.

In PyKDE, these two parameters are replaced with a SINGLE parameter that specifies the +slot to be connected to the menu item, toolbar button or KAction:

p = insertItem ("Open", self.slotOpen, 0, -1, -1)
+
+action = KAction ("Open", 0, self.slotOpen, None, 0)

This substitution applies to appropriate methods in KStdAction, KAction and related +subclasses, KAccelMenu and KToolBar


PrevHomeNext
General Limitations Static Member Functions
\ No newline at end of file diff --git a/doc/static.html b/doc/static.html new file mode 100644 index 0000000..e68f13b --- /dev/null +++ b/doc/static.html @@ -0,0 +1,183 @@ + + +Types and Related Topics + + + +

Types and Related Topics

+

Static Member Functions

+

+Static member functions are implemented as Python class functions. +For example the C++ static member function +QObject::connect() +is called from Python as +QObject.connect() or +self.connect() +if called from a sub-class of +QObject. +

+

None and NULL

+

Throughout the bindings, the +None +value can be specified wherever +NULL +is acceptable to the underlying C++ code.

+

Equally, +NULL +is converted to +None +whenever it is returned by the underlying C++ code +

+ +

Enumerated Types

+

+Enumerated types are implemented as a set of simple variables corresponding to +the separate enumerated values. +

+

+When using an enumerated value the name of the class (or a sub-class) in which +the enumerated type was defined in must be included. For example: +

+ + + + +
+
+Qt.SolidPattern
+QWidget.TabFocus
+QFrame.TabFocus
+
+
+ +

Namespaces

+

+The C++ code in KDE makes extensive use of namespaces (especially in the kio, kjs, +khtml, kfile, and kparts modules). In PyKDE, namespaces are treated as a "superclass". +For example, "from kparts import KParts" will import the KParts namespace and all +its members. To reference a class in the namespace, use <namespace name>..<classname>, +for example, KParts.ReadOnlyPart. It isn't necessary to import the <classname> (ReadOnlyPart +in the example). +

+

Return and Argument Types

+

+Some return types or argument types may be different than those in the C++ KDE libs. This is +done for convenience (eg returning/taking Python lists or dicts), because arguments are +scalar (non-object) types passed by reference (eg int*, bool&), or because there is no +way to express the C++ type in Python (eg template types) +

+

+Please check the Class Reference Docs which list all classes +and methods in Python format. +

+

Version Information

New in PyKDE-3.11

+

+PyKDE provides methods for determining both the KDE version being run and the PyKDE +version being run. The version methods are: +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
return typeKDEExamplePyKDEExample
intKDE.versionMajor ()3PyKDE.versionMajor ()3
intKDE.versionMinor ()1PyKDE.versionMinor ()8
intKDE.versionRelease ()4PyKDE.versionRelease ()0
stringKDE.versionString ()"3.1.4"PyKDE.versionString ()"3.11.0"
+ +

Abstract Classes and Pure Virtual Methods

+

+C++ allows the use of abstract classes. Abstract classes cannot be used in programs +(instantiated) directly; their only purpose is to serve as a base class from which +programmers can derive other classes that can be used. +

+

+An abstract class in C++ is defined as a class that has one or more 'pure virtual' +methods. These can be identified in the C++ header files or C++ docs as methods set +equal to 0, for example: +

+ + + + +
+
+virtual int somePureVirtualMethod (int a) = 0;
+
+
+

+To derive a useful class from the abstract class, the programmer has to write methods +to overload each of the pure virtual methods. Following a suggestion on the mailing +list, the docs attempt to flag all abstract classes and identify the pure virtual +methods which must be overloaded in the derived class. Derived classes can be created +in Python by writing Python methods to overload the pure virtual methods - no C++ code +is required. +

+ + + + + diff --git a/doc/switches.html b/doc/switches.html new file mode 100644 index 0000000..c589c7d --- /dev/null +++ b/doc/switches.html @@ -0,0 +1,253 @@ + + + + Switches + + + + +
+ + + + + +
Python Bindings for KDE (PyKDE-3.16.0)
PrevNext

+

configure.py Options

+

+PyKDE builds and installs in a lot of different environments and it isn't always possible to +foresee where users or distributions will locate components that PyKDE depends on. There are +a number of command line switches used to force configure.py to look in the correct locations for +directories or files. +

+ + + + +
+
+python configure.py -h
+
+Usage:
+    python configure.py [-h] [-c] [-d dir] [-g] [-j #] [-k] [-n dir] [-o dir] [-r] [-u] [-v dir] [-z file]
+where:
+    -h      displays this help message
+    -c      concatenates each module's C/C++ source files [default]
+    -d dir  where the PyKDE modules will be installed [default /usr/lib/python2.3/site-packages]
+    -g      always release the GIL (SIP v3.x behaviour)
+    -i      no concatenation of each module's C/C++ source files
+    -j #    splits the concatenated C++ source files into # pieces [default 1]
+    -k dir  the KDE base directory
+    -n dir  the directory containing the KDE lib files
+    -o dir  the directory containing the KDE header files
+    -r      generates code with tracing enabled [default disabled]
+    -u      build with debugging symbols
+    -v dir  where the PyKDE .sip files will be installed [default /usr/share/sip]
+    -w      turn on KDE deprecated object warnings when compiling [default off]
+    -z file the name of a file containing command line flags
+
+If reporting errors, paste all of the output above into your
+message and post to the PyKDE mailing list at:
+
+     mailto:    PyKDE@mats.imk.fraunhofer.de
+     subscribe: http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
+
+You can redirect the output into a file (> output.txt) if needed
+
+
+
+

+NOTE: In the descriptions below "Default" is a "typical" value for common distributions and +may not be the complete path needed. You should always specify the complete path. +configure.py searches a number of locations in looking for the appropriate directories, +which may depend on the distribution used, where the version of Python used to run +configure.py is located, and other factors. For example, a default value of "python/site-packages" +could be "/usr/lib/python/site-packages", "/usr/local/python2.3/site-packages" or other values +depending on how and where Python is installed or which of several installed versions of Python +is used to run configure.py. configure.py will not try to complete the path for switch specified paths - +you must specifiy the complete path (eg /usr/lib/python/site-packages or ../kdecore) +

+

+For "normal" installations, configure.py will automatically discover all of the information covered by +the options below -- it is only necessary to use the options switches when configure.py can't discover +a location by itself. +

+
+
+
-c Concatenation
+
+Building PyKDE involves loading a large number of cpp and h files. The compile process can be speeded up +considerably (by as much as 80%) by concatenating all of the cpp files into a one (or several - see -j) large +cpp file. The price for this speed up is a large increase in memory usage. By default, the feature is +'on' in configure.py. To turn this feature off, use '-i'. You may wish to turn this off if the system doing +the compile has 128MB or less RAM. +
+
+
-d Installation directory
+
+ + + + + +
Value: directory path configure.py Default: python/site-packages/
+Normally, the PyKDE modules are installed in python/site-packages. Writing to this directory requires +root access. RPM builders sometimes need to build the modules to a different directory, or you may want +to install the modules in a different location (for example, in a subdirectory of site-packages/). For this +option to be useful, you need to ensure that Python can still locate and import the PyKDE modules from +the specified destination. +
+
+
-g Always release GIL (sip 3.0 behaviour)
+
+This is a code generation option that only affects sip 4.0. It causes sip to generate C++ +whose threading behavior is more like sip 3.0. +
+
+
-i NO Concatenation
+
+This option causes configure.py to generate C++ code and makefiles that compile many small file +one at a time (rather than one huge file for each module). This increase compile time by about +80%, but reduces memory consumption. See -c above. +
+
+
-j # of splits of concatenated files
+
+ + + + + +
Value: number of splits configure.py Default: 1
+Intended for use on multi-CPU systems. Splits the concatenated cpp file into the specified number +of segments, each of which can be compiled concurrently in separate threads. On single processor +systems, each "split" will compile in sequence. The kdeui module is (with concatenation active) +is split into two pieces by default to reduce memory consumption. Values for 'j' greater than +2 will be honored correctly. +
+
+
-k KDE base directory
+
+ + + + + +
Value: directory path configure.py Default: kde3/
+The top level directory under which kde3/libs and kde3/include are located (these paths can also +be specified independently see -n and -o) On SuSE distributions, this is typically /opt/kde3. On +Red Hat and Mandrake, this is typically /usr. configure.py will find the typical locations automatically. +configure .py will use the KDEDIR environment variable value if it is defined and the -k switch is NOT used. +
+
+
-n KDE library files
+
+ + + + + +
Value: directory path configure.py Default: kde3/libs
+The path to KDE's library files (libkdecore.so, etc). +
+
+
-o KDE h files
+
+ + + + + +
Value: directory path configure.py Default: kde3/include
+The path to KDE's h files. (May require installation of kdelibs3-devel rpm package) +configure.py. PyKDE will locate h files in subdirectories of this path automatically (eg kde3/include/kio/*.h) +
+
+
-r generate code with tracing enabled
+
+For debugging +
+
+
-u debugging symbols
+
+For debugging +
+
+
-v PyKDE sip files
+
+ + + + + +
Value: directory path configure.py Default: /usr/share/sip/
+The path where the PyKDE sip files will be copied (for use by programs that use sip binding +dependent on PyKDE) +
+
+
-w KDE deprecation warnings
+
+KDE marks a number of methods as 'deprecated'. The methods marked will generate warnings +at compile time. By default, PyKDE's configure.py turns these warnings off. -w will turn +them on. +
+
+
-z Path to configure.py options file
+
+ + + + + +
Value: filename or path configure.py Default: none
+If your site requires the use of more than one or two option switches, you can place all of the options +in a text file and then reference only the text file's path and name on the command line. The options +are placed in the text file just as they would be on the command line, with one option per line. +For example, the options file for the command "python configure.py -c- -v /usr/local/PyQt/sip" would look +like: +

options.txt

+ + + + +
+
+-c
+-v /usr/local/PyQt/sip
+
+
+

+and would be run as "python configure.py -z options.txt" (assuming options.txt is in the current directory). +
+
+
-l (lower case L) code gen control -- not displayed with -h
+
+If for some reason you need to rebuild a PyKDE module but not all of PyKDE, you can use -l. +-l <modulename> (eg -l kdecore) will rebuild only the module specified; -l <modulename>: +(eg -l kdecore:) will rebuild the module specified and all successive modules. If changes are +made that affect linking (especially deleting methods or other symbols), you must use the +":" form, since later modules depend on earlier modules. +
+
+ + + + + diff --git a/doc/trouble.html b/doc/trouble.html new file mode 100644 index 0000000..e93592f --- /dev/null +++ b/doc/trouble.html @@ -0,0 +1,337 @@ + + + + Troubleshooting + + + + +
+ + + + + +
Python Bindings for KDE (PyKDE-3.16.0)
PrevNext

+

Troubleshooting

+

Introduction

+

+(There are distribution-specific notes at the end of this page) +

+

+Before each release, PyKDE is test built against SuSE, Red Hat and Mandrake Linux distributions, +and various versions of Python, Qt and KDE. Even after performing test builds, errors still can +occur with your installation. The most common sources of errors are (roughly in order of occurance): +

+
    +
  • Differences in user environments
  • +
  • Differences between distributions (or even between different builds of same version of the same distribution
  • +
  • Bugs - in PyKDE or any of the software it's based on (KDE, Qt, PyQt, sip, or even Python)
  • +
+

Reporting errors -- PLEASE READ!

+

+The people on the PyKDE mailing list are knowledgeable about Python, PyQt,and PyKDE and are +genuinely helpful. You shouldn't hesitate to post a question or problem there (you may hear +"RTFM" occasionally, but not often). Chances are that someone using your distribution is already +posting to the list. +

+

+The most important thing you can do when reporting an installation error is to include the +configure.py output with your question, including the error message at the point of failure. +All configure.py messages write to stdout, so if you can't cut and paste the output, you can do: +

+ + + + +
+
+    python configure.py > output.txt
+
+
+

+to capture the output and attach the file to your post. In many cases, if you don't include +this info, the first response to your question will be to ask for the configure.py output. Including +it with your original post will save several hours or days in the process of obtaining an answer. +

+

+Bug reports are a vital part of any software development process. We generally try to provide +an immediate fix or work-around for problems reported, and then incorporate the fix into +future releases. Bug reports are always welcome (and always embarrassing). +

+

+If you are reporting PyKDE run-time errors (not install errors), there's no need to include +the configure.py output, but at a minimum you should indicate what PyKDE version the error +occurred with and provide a small code sample that reproduces the error. +

+

If you perform repairs ...

+

+If you edit any of the sip files to repair bugs or modify PyKDE, you must re-run +configure.py. configure.py includes code that generates the actual C++ code that compiles to PyKDE. +If you don't re-run configure.py, changes to the sip files will have no effect. +

+

configure.py and make errors

+
+
"Can't find a file or directory"
+
+configure.py first checks to make sure that it can locate and access all of the components PyKDE +depends on. If the directories or files aren't where configure.py thinks they should be, an error +will result and configure.py will exit. Usually these kinds of problems can be solved by adding +command line switches when running configure.py - see the next page for +the available command line options +
+
"Can't write ..." or "Can't create ..."
+
+build.py creates a number of directories and generates Makefiles and a lot of C++ code +(customized for your system). If the user running build.py doesn't have write access to +the directories where PyKDE sources were installed, the build will fail. You need to either +obtain write access, relocate PyKDE someplace where you have write access or (worst choice) +build PyKDE as root. +
+
"Can't remove or create directory"
+
+This happens rarely, but is a quirk of the PyKDE build process. PyKDE will build and make +as an unprivileged user BUT if you did a build of PyKDE previously as root and then attempt +to build PyKDE again as a user, the build will fail. The reason is that configure.py creates a +number of directories and a lot of files. The next time configure.py runs, it will try to delete +these directories and files before re-creating them. If the original directories and files +were owned by root, a user will be unable to delete them and configure.py will fail if run as +a user in that case. +
+
"Can't find PyQt sip files"
+
+You did install them, right? If you build PyQt from sources, the sip files will be there +somewhere (by default, PyQt installs the PyQt sip files in /usr/share/PyQt if built from +source). When you find them, you can tell configure.py where they are with a switch (see +next page). If you installed PyQt from RPMs (either downloaded or +from your distribution), the sip files are usually in a "devel" RPM for PyQt, which also needs +to be installed if you want to build PyKDE from sources. +
+
Code generation errors
+
+The PyKDE sources are mostly "sip" files which describe the interface to KDE's C++ libraries +to the sip code generator. These files should be error free. If a sip or code generation error occurs, +please report it to the PyKDE mailing list at +PyKDE@mats.imk.fraunhofer.de Subscribe to the list +here +
+
Compile errors
+
+PyKDE should not experience any compile errors. Currently sip 4.0 based compiles will +generate a number of warnings - these can be safely ignored. If errors occur, please report them +to the PyKDE mailing list at PyKDE@mats.imk.fraunhofer.de . +Subscribe to the list here +
+
+

Compile-time errors

+

+PyKDE takes a long time to compile on some hardware, however no single module should take more than 25-30 +minutes on any but the slowest hardware. Some gcc versions (for example gcc 4.0.1 on SuSE 10) will hang +if PyKDE C++ files have been generated in "concatenated" mode (see Installation and Switches pages for +more info). If you are using concatenated mode (each module consists of a single large file, instead of +many small files) and PyKDE's compilation hangs, re-run configure.py with the -i switch, then re-run make. +

+

+PyKDE attempts to identify gcc versions that have problems and select the correct mode automatically. +

+

Run-time errors

+
+
importTest.py errors
+
+

+All that importTest.py does is try to import each of the PyKDE modules. The most common error that +occurs when running importTest.py is that an unresolved symbol in one of the modules prevents the +module from loading. This can occur because not all KDE library versions contain all of the "official" KDE +classes and members. Although it doesn't occur often, 1 missing method (out of over 10,000) will +prevent a module from loading, and also prevent other modules that depend on the failing module +from loading. The error message will normally print a "mangled" version of the missing method's name: +

+ + + + +
+
+    > ImportError: /usr/lib/python2.2/site-packages/libkdecorecmodule.so:
+    > undefined symbol: _ZNK10KAboutData18copyrightStatementEv
+
+
+

+You can decipher the mangled name to a class and method (in the example above, +KAboutData::copyrightStatement) by running: +

+ + + + +
+
+    c++filt <symbolname>
+    
+    for example:
+    
+    c++filt _ZNK10KAboutData18copyrightStatementEv
+
+
+

+If you can locate the sip file for the class, you can comment out ("//") the missing method, and recompile +(including re-running configure.py. If you can't solve the problem (and even if you do) you should +report it on the PyKDE mailing list at +PyKDE@mats.imk.fraunhofer.de . Subscribe to the list +

+here +
+
Other run-time errors
+
+At present only the most likely failure modes of PyKDE are tested (contributions of tests/test code +are greatly appreciated). Nearly all of PyKDE is completely machine generated from the KDE h files, +so coding errors are rare but they do happen. PyKDE also uses some classes and methods differently +because it's running from Python and not C++. If you suspect an error, please double-check your +code and review the PyKDE docs to be sure the argument lists and expected return types are what you +thought they were. If the problem persists, report it to the PyKDE mailing list at + PyKDE@mats.imk.fraunhofer.de . Subscribe to the list +here. When reporting errors to the +list, it's always helpful if you provide: +
    +
  • +the version of PyKDE you're using +
  • +
  • + a small sample of code that produces the problem. +
  • +
+It's not particularly important whether the error is a PyKDE error or a user error (although +I prefer seeing user errors rather than my own). +
+
+

Distribution-specific Notes

+

SuSE 8.0/8.1

+

+During testing of PyKDE for KDE 3.x.x on SuSE 8.0 and 8.1 I +ran into problems with the kjs module insisting on linking to +the KDE2 version of libkjs.so instead of the KDE3. The lib +name/version is the same in both cases, but the libs aren't +compatible. The only solution I found was to: +

+

+1.Edit (as root) /etc/ld.so.conf from this: +

+ + + + +
+
+    /opt/kde
+    /opt/kde2
+    /opt/kde3
+
+
+

+ to this: +

+ + + + +
+
+    /opt/kde3
+    /opt/kde
+    /opt/kde2
+
+
+

+2. Run (as root) ldconfig +

+

+3. Re-link. You can save having to rebuild PyKDE and recompile +by simply going into the PyKDE-3.x.x/kjs directory and deleteing +kjshuge.o (or any *.o in the directory) and then rerunning make +and make install (this forces a recompile/relink of the kjs module +only, which is very fast) Don't run configure.py before trying this, +or everything will recompile. +

+

+Alternatively, if you don't plan on using kjs, you can simply +ignore the fact that it's mis-linked - it won't affect any +other module. +

+

SuSE 8.2/9.0

+

+Some (but by no means all) versions of the KDE rpms for recent SuSE distributions appear +to have been built with a different version of kfileshare.h than what they ship with. This +version is also in disagreement with the "official" KDE version (as found in the kdelib +source files on kde.org, for example). The "incorrect" versions use a setShared(...) method +with a different argument list that doesn't match the h files. +

+

+To fix this problem, all versions of the setShared method should be commented out in +kfileshare.sip. +

+

Mandrake 9.1

(rpm install - PyKDE-3.8, not 3.11 so far)

+

+Some people have had trouble with the Mandrake 9.1 rpms/KDE libs. All +distributions modify KDE in some way and where feasible, PyKDE is +set up to build with the least common denominator. +

+

+The following exchange is from the PyKDE mailing list. The reply is +from Simon Edwards: +

+ + + + +
+
+    > I'm trying to setup PyKDE on my Mandrake 9.1/python 2.2 box but so far I
+
+    > ImportError: /usr/lib/python2.2/site-packages/libkdecorecmodule.so:
+    > undefined symbol: _ZNK10KAboutData18copyrightStatementEv
+
+    Let me guess. You are using the original KDE version that came with Mandrake
+    9.1. :) yeah, there is a problem and the PyKDE rpms for mandrake don't work
+    with that version.
+
+    What you can do is update your KDE to 3.1.4. That should work. I'm using 3.1.2
+    here. You can go here:
+
+        http://plf.zarb.org/~nanardon/urpmiweb.php
+
+    and follow the directions and remember to select 'Texstar'. Now you will be
+    able to upgrade KDE using the Mandrake Install tool. Open up the Mandrake
+    Control Center and go to Install Software, do a search on "kde" and you
+    should get a big long list of KDE packages. Select the 3.1.4-tex2 ones and
+    when you are ready hit 'install'. and wait, and wait. :-)
+
+
+

+

+

Mandrake 10.x

+

+Some people have had trouble compiling with Mandrake 10.x. Mandrake provides a few "non-standard" +h files. This only affects 3 or 4 methods, but is enough to prevent PyKDE from building. PyKDE 4.0 +includes patches that should eliminate this problem. +

+ + + + diff --git a/examples/README b/examples/README new file mode 100644 index 0000000..24a7ac3 --- /dev/null +++ b/examples/README @@ -0,0 +1,17 @@ +This subdirectory contains a few executable Python +programs that demonstrate or test some features of +PyKDE: + +uisampler.py - demos of most of the kdeui widgets, + including dialogs, menus (KAction, KStdAction, etc) + widgets, and xml ui definition + +mimetest.py - tests KSharedPtr related classes/methods + such as KMimetype, KService, etc + +menudemo.py +xmlmenudemo.py - demostrate the construction of a + menu based app (also run as part of uisampler.py) + +More demo programs are planned - contributions are +welcome. diff --git a/examples/aboutkde.png b/examples/aboutkde.png new file mode 100644 index 0000000000000000000000000000000000000000..2b4681c766a9af41145a9d1703c8a16ee94cc699 GIT binary patch literal 33856 zcmdR#^-mp4u=fvA+@-j?yHoVw?(W4MiaQi{cXzkqaBz2bC|=z4Aosa%a{q`o+1be^ zo6HZhnat+AE1GF_sHO*aItsNamIhfg4O-M;q&E5G)+1Odw`B?ZkNooI! zKh6F6&E&&=i-xI_j$SXw1!cmCcrYwbAx7}9%TLvNh1&ou?ETETI zN6#NA68+S)j9AKOK7A0l7A92W8a-dnAsUDIiP+_6^pLE20DLMoLWl$j=uB17-;~lb zcGAg8zWd4f@8P{&SDokTEr#{+@$t{zKWr}#h@W{$gEQ~|0XO2;e%C(2FAdEzT{i=W z`5vdPz~7lY&og}F2xQt_cXfkGado`D>gdaxj=dirB;IW!K~Xpw8udk0^cd=o`NH?( z9K_!HheIQonVFbMg3g<*_UEhhyML?~<&54I1ZOogfTj;sp*HVV&vm(ZnHzt+&S%1N z{QJM*_`V;I;GkVb7 z&imUVLD@>JUa!OU(&6FZ!^1-;j^WEOPw(qop}2QG?tI~GP?YS_bHKmc^A#mU#rWJ` z3o?3b4t_iLdF54XBZZS1$fvTC)3u^Q?ES8f8>rn+c?QBlZZ?aq%w8+boB3$;W=ugx z;v}Day#YsAL*|R;+g>L^Z{7DZo1JdeRT%RP-q2`(Vr66`L==*jbDp;JN7&uo&uk-b zTowC0NB-;7bN9)QLD|QC=KI+p1a(>fg_!-zmcrN5Yqju?%4Ig|gDDOrVerF=*r=~Y z2PFgmp-5#I-wY4|7YO!)Mv7UXfzrfeNCjtT< zSH90(yVFy^KUETSyrJY|Np67P>#m*6uSX(l*M_>Wcp_v1i&o*omvW3&87yvQNmDg+ z)gG3-7`C1IWZrO2ET7#^n%=JjHJa93&#B5ymXNqW*7xoRwD}tnH!i6XhN~4d3o2;H zzxcYFtUWCqUTUpwRcUqEJGlIB_2{b&DzpURBK({XBEYNX(J2vr9*@67*WSZ)mOpWX zkG3Q=#ouQ`iNcDX0|x2Mhv_&I@kr@R0@;10tWRjnbnb_U_A=~YC!c5)@H@En<*;Rx z6P_s8NavDdfM{eB%ENc>7qG%Er#dG~`FDr+aCn(QbA-gEw07FAy0%)5*!(|_a(jXc zr>G-H`x_sb)J(Rhx$e|G4AFgP}g89udT!%Fo^6@il$#k;8D3>l!zYS)eB>J7`JpC9K}QKY#}(q8c$P zPp^CntovH-*J@qjQ5v7(ec~6oDV+Tr?E3uNc=IMlYJw2{l*ZbX_3IW5%G6cs&dgPulJ5)EtpC|! z`PK_`{Ld<68w_eLc68{MMr!F*skBgmYQ2? za2SwSoP-u)DRA)s7#YIdRZt-}8+{td>x(P1|8ac^JXa>6X^8Ictf&N05gEpKzP-?1 zmp#|fj+LgFjVNQWslZ0qHm5Hh?H~jq0MraXyRQ?Pi?Sg}Upe4R{R?;c&04|z%2QvW zP{vKHnpr{Y*d!7UQjShSlcD#vX*WM(YYE55+6Ju_o*X4%P#E9rArL7*cy0LeRL2V; zK9F5{pI10MS#YwwFB?BWs9$D3fK{pKv-a^unIA7s+{dNT}#WXfp87H@RKz zJ(o(m{=?W>74#thRyHgZHg5I_8{AAFt`H$;d$)gjs=70tfWdixI1#R*ruXGlsnA+B zJ6W{FLK1SU@O6CF_t?Yew(Eo3@K^sqwW!xP%a7v3<>FR-==?= zM!q8~LVLG3@akfJR!{_nBH<8fbR(;!3c2ci&nK_7+Yf#xlk87fMa2N2yM3I$CXGG? zRF!L2^m82R^VeS<>;3Ncqw|pPHQ5eb@6XbE$&3<~V&&`eEfk5tYoqwK*Cd2#XzLlU zU7o@}s>{efPOg2Q?zIf(wbMKC%cZ#>b0D93u07*pxy@({-LH4 zB{J<9D8RvDqJFt%7pFqtP;TrN#$G5(7Np8wVYK3@C%*3)rp){4M zE{AS~y9AdabO{yT%k$lK*V#M*$6jmzTEy$7Rsf6Kh=#lhmN4il?1#_O)rMPqvm$hr zu|>_kGK_X2!Z#80$v^-EB>f?a=Vmk5xw5fCr@FMqf#$@DE$iP4u^~dwpB?wF zpOevYUDutiw|&6?1jt{5R+FIv?A zC}UrXvIq=#$SSe-JycNJ`BnDw)n;{gh^9u(G4(Kl`q+?!2F6;Sh)PC3!47yM(oAoo zCP{NbL6&fOdfQwy&X#$lHOJe<%rw`PYrctwh^zf_C7VfOu+7p1;N<7uz8wRObLwjXjPW3wVS`ZE zfhYkl(+G0Oc%aa0s?z&S-nGTzg`|AaG9;p`+Q4Xln+{dC{O890= zfav%+M<5w*y&}bN5|Jurl*F^RnC-FabY9m%0{f6L7E39>EO?o><3As@l+ADWc9xE% z?xm~xfUQx#JDxOz3mGa3iYf7aDxDo`!JI?ZzFDwT^Z9=f?y{ar&>$BbdtZ4zJZBUZ zt9X2R3@K`9j3xff;V7U>2%*3fw=hj-`2|YopugpezXhn zu&Gk(?>2+y_V2{d;6*2@vbkSRXTgq^2A*$$-Y6gJ%!k|B`Mk_9+Rw%~@8#x4bkG3( zfXVp!_j#W3Szw7#>+SW|t9ZK5hX;Z5_v!u9^crA0UdN(m+i&a6C8cN!e2{(l_%c|RmkPyCe(F30N>?_U07cg{; zQ;b>dP=w^gQr9iv-toW+#We}0=Kvra+MiDBf^VvA^oV%*)BB|>y|9bvSEVGujnaCx zHqK6uCqf1Uzqs=}M9-Qsz#Sc}`RAuDhKSUh$NC)hESFzX<)Ae^W|i~R1-r>Kkrs#huj1Ug~{(b zu$Hy1`VvYbYfCl~$>$>iay={okGuOgLc)A}d_wGbW!3|c@JWHs7F-Q8v(s-QpJv1x z4}Q8A%v+%RwC-KjjLNk1lk&f(bMX!zEB~YyLy|iy7RTAnMwWdta8w8A=rx0lrG*NYadDGj;88%4V?7+bMO zHe?BW8Y>sJ&Gd=`@!D-3B3+ONt4Y&Hh3a5j8Kz^$`z$f&;5Gs!FoD)p$3g3r zn;K30nhNfy;fBwT@|YE3@CY{zWw(Gz5wy(QK!EK7NMj5uygF11 zQc4q-ihKY!kc<@oSAbUVovMVG7j%8@_!e&aPJ~WHh5&kB3d5r5jYbkMF#j+)x%7H?Pesq2D@fOV-a5Y6&`}0R|Wkk%L z?oAZEwyobD*8qLGmxS01-|48bw-HQnPSY|il5^S*LRwtad3u>zXGV-g&R90hR7*_T zQ($=yrwNbmeyx_Cv)D_1NEkvSD|Ilv6*474B{_zf3;;U=yX0o<+SzoF5M8}n!rOBs zvT>x~H~6BKaT4MFRHoQ zrl6%u=26^u0Sj;(CW&tILEyZ0b0BTA2_h;fyQel)EpFTkRun8BoM2@Wr82DyXA%YI zBj4zwlI2tFf+`li%8^WNq?IY0ky6MB-F1O^G>0zHZfZ$UGO)=_cle*g-CPgFwZ73m z)9+%-HZcZY#hbu>N+gJvKj}mQO@(>W4P`sHE7JWG&@$_3=GHML$6y);9otF6n;v@i zP*_bEd_+8E%__cZuH5meH(st$Rd&LVY1p89)q*0Ot5kbFTqNIJh}3y#Nl~&!UAc3; zGNtZ+Y_lEz-YqSx@L7N25_x`uNYh$?yH(iRl2Js zZF4N?kT8VaXNahSD;rZTevC&`@wLrr*=Grnu>8{r#^~op;JK_*sj>~HlSkOY{6V;y4*$I6v^%0NgDOf&Ff6Uwsx^xV7mZ7iJAITGN=3q%aeh-(xHE z)o}9r-Oq9%b=jhv0v&GQMNhQE?h zLud!YA}1r%txRG}acQJf zEXYNWr5ZE$|Djl?t-ydxrt_=2i?Qy5fxi>8^vtWYdj;9cIGL zM%nb_iEnx8UA4qz7Yoa(Th^nkWk+xR4>C#jhpj4oaC+qMNjxRaN1ydAk~S+%$|-1S zYUve#-$i7qD&*L;DVebnKjp$=Vhs+%J3$0$igp8aqOzoVW(3Wg-~C!-_6cdlu^gP7 zX1t6_xDMpEQ=I3R2xO)=b86XO+|q%_Kp`27O~T5o`}&Wy=C8X2TRnBC;3x>4qcLr| zSOi6rAt}IM8Xkd0l&tEvR&-JlxUZMN_}+bFmb%9g9w8f37hg(gA=)I#>b)eZy#k4H z%ng6%GbHY2_g%}b%WDt1#!p^+gH;>(uE^XLap8Zhj#_nU#oS37-nfTV)S8gM1dI$m zh|}%o9g9)I8#;`ep7-v>T_{j%BWv=aHDhILWqakqa7xT2A$k7IA(Q(#ju9CV1xtCz_P}{48)hF}NhfaynL$XC z#=EuzbBiaR#6O?VKoKXquUai1XAsjk#Xzp0hNA%!Vn`{IG{iS3uX6uLqqOb2igSIX z-|2U#4wn%UVZax?g)0hy4zw^+faJm$uc%coMkaZ^68Jh44`A!D{`E1~3_&O(jBD;5 z8F|KF!T~pLwZcBWV=J3m8=s#-b)Kph88_rzbdcS?eaWPcnQhi`%x~VBiic||>?A?# z(-S0C*Z>0wX}iLXu~gNPqzr(dtjd#bP`y7~${gZbDG}4eW607{Ej-ggld+wN%lf&L z1@rgsnGCd-3Ki4j0{EX_%>0R$%un^oC{fbHVyBo92IQ`VAzZcUWt$dtcnOVTF9*p5 zR<^HOmTqx0^l-Nkgsi?v*`vhPs+tm?9a9aY?m_ z6gAoG$l6S46^L)id)~zsymYWaayErX7@UoC9I)5oaCUSuc4;L$;3|Zvsh?H!DPF@< zGn^qj2OJ!$+u)YgKPK>r#dQT_lHXI|G?XL4H~Ce}LhmL*zV52pdi@t~Ysb~ju`4et zr&VFlU_qu<11Vy~RJ~t$9sMr2o01m%SzDB`Kl`8x6JkrB^#!b6b^Ws8Mc1gz75?H; zM=<;uDo_(6%D^IpOR=x8W;*1IxJi^ym+3g0EHsE7<{HmqVcB^|^>H^6Ud@lEUHsSV zuXX2uK2%IchFHon(S5fAdp8BiZC6tt<*WPxd1gP)M3vR8$EH7_!*xSeU$gdm(ZBbh zG=bfCSdP~8hD{Sc1lg};Lw@wAir|Zg5`a`&;6cW**2lWWhRT5ilf1j!^En*wo^;Um zr_5a*`$j#jB@xDD1!!RH`>pbbnuEf^_bP7v%5JN{yvYH-l)>kTREEqecHv>JAF7*% z=!cN&;}C9$yr3AlHAm$U$TkHg*VL<{9-s{utlui1r!6~>jB9hrn6TXI zsyb-Zcqv=ic&^fy#fB6Eip{J3%*{nZR(`}rjzqjmIO96DCi~^nz(@-S1lHsPA!x%z ztRZPVN|4^#6MC=P8Z|jve2mF()xyLj{pJ0$8LQcvqgA&pEjiqk;PE~CCc*d91on> zO~cjx=#R&Z0I+Y8BF?10SF6;I)lD@w2Zo<33c1#;KYTe_(>erFhAEj<=dUVKB4*0$ zvWMa@t1^v)QwH$Gex*o9P?*J9FzD$2JMt2)9o97~**&d3tEhsooipq`$)RX1^(N5K zh>V3{_QN(i99lw-Dzfu1ZTw{*;xsakaFzoR5@r^HKdz=K`Jx3nxLe13R>!LLP0kaPVG@x8#YD&p-y@Gx)CKxFx>1aha&1Zf$cNdHRL_9C`8H zE5W0gs7kbr?xTt^Igl?Azkk;5>l0(AY`5B8R4lmn*#2eZ@SM{d3cGua?7vp|y~Cf| z(QD)vZ|hCe9|3%y6`IBfi3KHbRcf82HFcS&5?UKCjVa|qivC&HWoEnmz&vN zXwY$ACk$XC7_GA16LJiBC#tFQ-uEsZs$E`-gD|0%5acYihm_c*4^vJ9l-Qt_R)kWS zagqpCo7Q!_CUyK#MFqUnDY#8z{(A}guv|H_m=#^K7�xBzQJy`2Rk-w(05VUyJ08 zZNkr&=a%u$ZOc`BSIo-UcZto1hem5QxNOiyni?9=Ecls2Z?d{-(;HSrl-!LvX%MVa zQ!DhtE~Fq!PJ^xM$+{8x5y9Fn3&%!QlbXJuSkjq0u%<*uRck%cAkbSk=4wX?}c27Wf!Sa z>#FDx2c7tJ2h@JDWw~EfWmykSB_KtRC=g#>;fV1%{q5WPQ$GbzcVlP`_*D8bz+^m${(3vD2i<<8lLYh+x$qlJ5+znx#UN09 zw?!u7IE8L1JJ<4q;WPUNBa1<9dUl@!1FDjq9@;Xj9eOyKY_x8oBhkHBv58Agc!m;9 z_69b5_@6ESp&~QTs&EI_JbNZecbT&(%;cJTivG)Bo05B9LQRekH_VZ7d`V|l_fb_f z=rMBl?Hzmey&pF3!%<1#^z~mEQLp@r?J1p#4c*dEbPySuwD7w#!E#WiXhnx@KV;@jUPvI4FK zItgJ-=fS0lK}?M5 z1`tN$Z-wl#LDl&#jxmQtqnm%0*2|pcRZufHcU4o1Dx}FGJGuc2sxq2Sqzw zbLZmGgm}A*NdF`q%jv-BL0NV334BMNcTsK(_O=r&dOX~H4c*!NJbfm3WMs4EN%=_x zt2Z6?X$Lxu`R|4%(W*qPs)D)5iq*eZRs^B__Sn-|dCU8A&1PWy6Ds#kO@F z7TU$Sw&CCLu$E~?&;VMkx-IJh-?__M+}pOLIbC&rTZR-FWw0sG#96p z6tidgvfUE-JnzheWj1Q^cbvp^SWN!JKbHmGGp|i!s)6wWQ?X2jKNrV|BSGiM@Y&SkyiUPPFO66{AhM_6Az1lQl+98!A)3^ zTriP58Xg`t=?($oC^1B+i4@cfjpli78PB`QXFWtU!W zN!EDAV#AGS1y$qTnU}Bmfv>b5$|M(A;f_?-Tvvk{SF}AE5&X2COdW-OSqdu`(6Dl>*&b=P-3{oMgwuQwqx*)|?_bnta05sLzHM(DZpm3x8a_J{+d(Ao`s zWQb-g-fPv==X&0CB<=fx$_2i4gzIZaSfpWRkeaQ!l^&63s^i1jY506lf$NRrNn{O@ zaljHv9R`KPCEfF$udNdySke*C7ap0wNHh&k(OBuWq@U0p zOA2-(g4)m~>#{Odwxl(zxNcx7XB$~J5jAul+MCsxXP&@4HYO%AXj)73_+c`DnK|i1 zGzb_{Z9o+^<;L8Y9t-bRTU8$A8C;!i3OQbkoy~85Lq}~HMDm7%rE*A2aWX39=*LDN zxr#!f4JEZ2wSc0*3C>PSu6ocs#s@8E91g7xeke*PeRPetf7UDI|4zftPTZ9ZU>p*s{T(=akV*8*N?GX zg$ATW1oxyU7n@K@sbMIKj!-Bug3&!9DRgF4@=J%CEss(M{MW^!?!mlv^NM+f3BP~D zZE-qFPW~5n#KTC|IV{mBi$>2;6TTJgybiuJDg4pWPy5js z!(#-nu7x3T6jWO)E23W_L#qO)^kOAn5U zWAQ1x2(7y2%WBe^BDt6*x?mxC(3GrF6g+Luh1ON6EQlx6$E$$lGiOC|Z&zFNwrABd zFGi8Uiv7t+UcwDk8POMrB#vEUtbx&hAIKy@VsBd0q5`Rn%!_k9QmX@d=8X2akPZR_ zMoNgFHHg4Vi;yNSN$RZXUCXXYS1FH>bM0u`W-rF>h=Hzc{c?UJ+1U*#!@O{gll~Q{ zEc#Q%0~bmCIHAgHI(HN`nFPr(C=&hDhb#B$BSjGxvos3hTB-wDp0a6AX|*dK*&u(tz|;VDKw4) zh&w4(zPP8{>SxI}-!|IkaRZ}VgBKMNLr5I+`l8_IDjYf+lP30l(7fh!MLH-uH={+~Agm`lZQ8Mur%0*G= zQB#_!eIw=@F+aFCNTHH(VMnL3B)*G8FopciT%3ZC4O3TSF@oefCGV;q6wxQh}t?4{nmKHVV zXobcb7U9rV;~FKh%$;jWDhyKOAvDwdwU_RJM?&;e zbD5~bqk2GUY~Y#FO!^nB0)ZYREtBgiB3cvppQd0I69u=V9i^hamxK7@2tJq3zs$pU zE*xh4%D)bLLk&oWHW9B7=tl!3t* zQ(eD=M6<;V@5HX;_?FAZptG^v*hPTxNb&XJ!SYgzBY60-7}$v%F;bb@1-k7y7Xm-R zqkwzeoDS>gHmybk+A^U&KP!vZ>wRt^*uK0>*8l#s{&Qp5hz-p+Ly*&dFNB1bnFGu@Qg?po;G;@G zDiUGs$+J8;&8*W~-6h(^LFK%cou!aYVNLE*(B;^nw!Ehn5}~F4v|p?r(X1%!v3ga{ zGUJ9JTkU_l*?W)hw;Vz6n<&HD?*u0RgcBLLq_!D!1s00*m}ju%QuxZ}K^#|=_pUqb ze_~^u^tc#yqKL5@t3UTt|BIBO;9gt)J6LVafE?=$vBrOWP(nbf<9IQl4qI)%ZJx z^4(yU|NpXRM~?w7KCFP4)VwX1L1zsW-ImrJltL1U#2}Z#pbQ(QT2VrK9GWuUuoi+) z24};4-o>y5M&b)B3E|vIJ=;}(yu`0UYCz;6 z08|wB_vj2^3$WVG+ac<#adp2)k`OI*nMJqU-@MLGt*@8LYl~^wMF+}Qm$}F~daC#N zdf%7I^3SB`6j=mR&p-Qzr6>BId6PnH)~l)7hmB`z&GE6>W}D1>A*kKwe)%2yi)2v{ z{2trc7rVWg<}fKkqA>Y<+QH<(T&kyZB){o9De2Mtrod;_j9geS)W;O&JNkyeD%=zt zgBMCfpA=pfa2XM%URD{I#E#!>w7SaWnhU6m&(P-zKCAF?5(f;}QaX~u~>2eKAEzf|&^E@uH33OhaaA6|pL4j8Up26nga zc6j{ubOvuTO)NIQ60V*gh;HHF$Qhu-02o{DH?8wKz(FM~7yvIIkzyfm$x2lVWd+J} zrS&AwW1x64@$;_#^9h+ozx7^2M}8rLn(c^O+zF4JHd(f!N|NgXr}w>alK5l7u%5@u zruC@%bfe6>CUt)7-0=BLtLMF~_i2^Hu@nz|`L~|>WRVsP@)NBhXQFkcYmBS<$L$zlxL~cHeW39;c*9@8>cGyzL~YS z3s6O=XhV}VRTP@UkO2zpXm#?rXZVk5k`;wC&K{w{%89}Mqzpf!#x36CVzSMbX7VIj$6-%r^o*`XwXMI%6v`w5QWTbyP3X4*)Zjd_M% zmhjr2gKeM2a~lEhWn*lUpSQO+ukHC~XG*x-r2pLk(W?>+c7fd*-bk%*_oa3Gdum2% zBBM-_w9PVva@s@%ZhBuo6nyL6!=gu?W(1*`;&~THbrdgrEH9WEWj<>R=EsjMOaOFF zM(*n#j$yywB&w|=zwPAOlodrwiZoMN;h3$ph4xUzMgh0yM9*zjlrG)g`8kbs5ns!} zZ@$MKU6%#ElUYKKyZ`Euk$I#^dDpR}V-GlIk;Gy=k+?-oc%o$&^tNy!m~TG_3mA}J zhRP>b!;oGdSxOL~?b^Mo+^xUlbgw#&*4$ysZgX#h4N*jUj?zD&Z8r{eoD$$OUB?#zX)EHIOMOu%ZYGUag{Smj zr~e*;33i*$D4CNSmXEA$*F#D()mWlVcH3-6h9qv(P_3j4`~<&EEP@o*AJH`<#lh=eOxc)!!aM0 z*?g`yYjd?uW|U_rn6kGMgtbCb6WPdY<%gC^H=8l+Auvhyo88oA@z|BvO*G3qq+>mV zXS*-Nn}bWk$9dA!;10bA$d|&YpYfmEPlYK_Xt!SRecLNw9Wfx;1oc`5KUMml)oqNf zJH4z0FBIK>z+p-^1k>VzIf?Jv#a$kJZ=;}bl{ncHo^>>1_)gFopNK0MoNn|aHG3HKN!DoZ3eFY_Z_)aM-ji57lP6 z-r;J$Z*5HB$`HhDd)~=LHPk|fn}OdJ_EW~TlMY0qm-}OW_L8|mO)Cz8(OM;CEde<} zIgpmy2kUA68y8oSx94+?tM|Qi^kPpS$)fewbys;T!^Ed6E8THQ*`IZ1^>W~OvvXSq5Gs?`Bx$6)=nUzfiyi8_} zn5d~l4eP|Ql+k@%gfKdzi}9eJs`NK%fO*N*26U2cJFW;T zZk)y10E}U6b?EI(PN!uP}lOg=sm3ISYJp#@g5^W-yW z5hf9ttf&UU3Fpdp>!PkH-O^(HDC9ymV>r^=qA4Y&4M<+2EU7Tw2)~1=Vqa1TZNXqX zOSoi}HggQsM#pztG@|v?eLpJ%Ch%Ga=PsDX4H7XO_)AI^_%EEngCav6+IYEGLKu<^ z1}lvBASTQac(D7T#F8y!CR-CKnarl28w26N<*m-0R!8ssUp9`NM{@xmuXdcj{?xz3 z6NG7LaM`sG-YzDZs8a?*a4WdFd3kR&~?cSU?TAz-+ zoBFU~e;FO`aO$^K)8i0N=eV|Lv}`sj=C6Hr^huH(b(S3)h>7y?QwqtHup4h>b_?= zda)Ajl3UZ5!>15?3(v;l=!n-GdMb^C~pgsbe9Le93jNWn((7k@7Hp@zXqQ8 zmL0uPD0Oz^TRZ>hwN@r8uSWDfAg2JpzSddASQ+X$3F}Dcc+F_^aTM>ru{eXZbfhEc z5Zg(w(UiRkj>_#&>b*1AZH5^YFiY*;r<7s0f*}13h#2D@(y_6j)_&r1+|42AOcD7O zNT1R7M&kch15X2&$g4V!6lOq3dh9-Q?y)exsnn%XaDD53GvKue-ofU{3+CTfz28+& ztX0~hmlM23?lPosI2C~O8#a~*;GamWFYy(GIYI`p@0`Tv(Fj4^$FbDzugOg(8PV=a zcGNn7Xq)3=t^~X6L#)wld02P@c`@Y#^q{G=;m|$MaHyHbmjB@lh05O>Ed!q;%wGR= zkM65K8bA0VlfgcV{j3DFon40Smb*?LqlRguz{*TqRuM?EW+5PeH4GRCr-~4ff1h}? z-XG2xL>VZ3ljZU8xqjyPgV>?X#I|~Qnr@+8iMY$An`0$Uy8l=*H^t}ixOlbqGNk@| zMoLQ!^xrU#(Cks>y%6~10fNjK+>XeEP#u%{GP$H;nxQ0dtJ6#uI^R>g?;&%&8xN zxjx4}?kN0;b8*^7s9Og|+3@!y4w|`J=7sJvOYb|&?t8G~%Li2e9lr=55|52m0fGn) z!don=AVOM%Kjd>tQXU(Fj~W1n70=z)`@qG5YoPN-6^M-vPiBp|4=l8NG^Ub6%(Hcg zwt`jBc}s8~m2~|aeD2+{;yWDva0N5#^Z(Jm)~jOHCnR1I?wk{~ZwLH^MnHqVkRPrO z;+2P~u?|9b#b{TCfV0F1<}gMAhyWUHuCjL?83Jx5J!-dwbcvbTA^z-p2zriGoYA>u zbtgfxqoa$bsUk|uHhBA6Va?D56#+ySS|c0AWZn|5nJJD(PX2Zi6Ie!5Ha>MsMFNO)>basSS%enk?|J_ zk~+~)D{phLWn7%&Q?*}PZo{mxR9ZNL4-U$IJn73Gj*;u|j_vVH17`FR>Jk8=L^?wd z+vvf43W1dVcd$qSYM*bR&(37PlRc0A^|F@h5h#QKWVCNQ(|tU6n+R zX0;nrQfF7E#T|hb;jWyN z(2pHM#HJv`_z4az99IRugr<4g2esYU?eUO$?~P5Q6u8=8h!%)IG_*iVxqtF-Dqquk zWyLZuk6prV@%5hI=*I=-inAeUoaB?k5O?|>5!4hoXe#=XqTfg z`iB+Q5d%j`aM7$7ga{QD zWFR#DTJK4+qtC0Op+`V_z^w`58tPToL5ZTO2Flop3i(4s9veLbL~y}BI~G+oJTaK! z4*EJbGEp@vy^d712?4$2%`X073F@;hG3zmYoY$9OIotHOs0H>0e~V}dH~c=Lrf#fRm9 z`}2A*cz5>L>&usj#xKHpHm|hyVEXBHdQCbF8w-kDr-_`Le1bkFp?^tatc1Ny-QjBU zxH(9t931U#{^uH#ptuZCQfIvYLW&M%LHVMxD=0f>>mebE%COV!Gw!+G-f`{NggwW} zS=LMCd;0gg4Znw}E{CqKTrHwENw}Z5l))HmbOma8JH76AYEllp_cIhy@x(ojk89q7 z^BvAg_+GwytIX?#@DPY$)3+EUGvK0BYhZ~nq_Z>cVL5S>d z6Smq^A7aBnW%q-biGRV_N`4PT;!0!o#{dV=rC;0jN58;T=i{0Ijbh%~+S)dul3oN- zuy$xD!=xXok!tzyLNG2#cUqln2gxOoUH%y-r8+`M7;az!T7nLAMO&P_gMC~Wwuo6Y z88!6e4EpG=I=CqEtfYtUWFtBF&}aO+vPR}{KnR?bGqnJn?xRdC!}efAWUT+*133Wy z0WI&bh~({IWO^_}=f_xbxVv3vY=d8st&*D#J(&c%AtiYRR#6rH=+y5R?lxCMC_H&M ztDL0Kh6a7dn8x4qTD`;`jy}NYuEpxB{!3gK3BJ|Ava*`VC=TD_<7sMljIhdI0{7O} z*gi^rXX(dJ(3*N4)SE@rtlM|vUyWQZd_|N6+RbfNo9yhgn=U>xT%t0hKGwMMu zdV%=Zl$a`3{JG4G*s<4xoV=tgm+E4CMscL$>kB?Cei->8iRGe^+fg_2X_MQXyw$(U~Eln2P?`cFU}0Zlvd}FrZ`7#2VR(!QJkWF(Ul$H|Tk& zZ_3Kfs>o-|h;UX!I^2zzC|e$W+>G}KT}xgP%9x=*Q99}i$Up?Kxiz4*glg0GSpB844feHh z*VURQ(|yxGWu>AW)cROE>${IV>wg;Ue_Woe@jWWrt$$jJ-(((< zA*V%`rnCx93B+D1Z@~6YRD_-RDTjgwSypCGr=yy45jPnXy=8*qdp*s_kuZc&`WHZ2 zWuvY@O5Ui1Q7jt{vyRVQ(Tp&TG*R|f4HKC+T`mHIR}L%;cWANo=#tWRp6398!Fe|s zqXBg75LJI0J06osOp}Y^36T_=YUnsyS2|NmQ|o;OR)r4mW_=%uNq#U$j?hm1`q2A? z(8$Cijg&+d)6v(_Z%~YxPM~^$f%bbSMVj6+ZpZdGce>|VV;V1&63>uDN$ru(d-ucn zNf=MG&gV5zK4kJ?o(atE?}p z5r0=QQWnUVKuYyL0E0k$zfI@BhRT#E^{Qh@k~|8b0U$_{QUX;Z0}O53#?)EIOak6+ zuZKgUy-)w~r@!RI|6^9#Oi{k*F7yd*J^6{X?K7^lF|;CPI`z)hKl?L3@uVj`>FTSm zo@phV14SfY1NR+2_Re>{b2J!)&;upvQe9QH=B#o)OxYkLO+g$xwiGw~pdwRXR?x!8 z4WGQ2HkIFb@99scYaVy;QlV|y+IOk3Lkg$y>}h-Y^!97t_DetY7ZAHDH^ z{mE;O9sl^wk+wY5E>`pX)+A7}Re?(6h-%+8NXSW&q(qWP38N*!jmd7>MO;R$!4+T( z5CWorDictKlu|!wd@l^vw+bx*sjwi6F-DOvMojD?cV0ppVhE&+3J6Gw!NjHc1j zHVNnQyxK>_a(7^^+*>X6w@((X$Z5ZL4wI~}$gGX4_rLq(>Q=~`?hV&{wAMKgBLx3+ z!$1D+uf67`PuyfcQ|yf6ULqG+JsLF41e=Hkz+g(skuZ|Pgoq}Cahkf38SI&>7Bi|5 z$^dy_DU%aAL>4f*}M~WhKa5 z?wrd3`{fZYES5q%SA~NMOI`G780$;SXg>e+?US2s-14d0I(_;(uld2}e&=tog4aaE zkh+h5~&lpY+7*Uh<1e#a<4T+F7;>07O&>%@^H;$99iBMbxB12uaen{qVQm{JxLmnq}6RiUV{>Vp*0j@b$1Fr(~2Z z2ML40U^<;bp!o%;myHFglUXQCIW%QilIj56lzep%28SdT=IHI|uG@TGwv#SQPPc#g z%O9Jgk%CD82BrX+f+Apu!4M%)5+Py*Bwz(l(4@+U1PBUAbS7^E3Pou?Y!y9hA z;lA~I%fh+bW`*gaN7SOIG)fB53(h12nHe~N6$i^GJpZ3YOKtObk z(Gw*Rf~frd|N4WEeBz^nQH=(Z%4})Pvx0>UQf&L#B4gRi>UnIbXh+>T#C46+Y^+6F z6#1MPF2=#gG-`B2GDiAVA zh9QG!2oL~J00j+_f+|RYNQ?<2sRxwHF1`E}zx=9O-hJDjzw%9A^T=-+!irz#uw^G_ zWaIdF^TcGl=6ANIyF1g#ZrAK|lbwEdXSzKeZ%@b5?XH{jDF}jqCQT6$bLZR~^W5&} zU>Y8-_FuVBT`+ygtDmz9_kjY=icdm>#*jUKvrr(C7!XJ%F#rII0^-m8&9mPBiGRwf zI>Y25Pd5E{eLT;HZup~*DYhQ@{*$Nv{ME0$?qx5#dwl0N{?u1y8}rS^t~LdW%c`!I zXt=Nr>>NmfqRPo6lP8-Ipq-5S;eh)lSCpc_EaUzAvO|Yq|3M2)zCP)(WU_JfcyszL zUO&^?EZW0T)pG*v>anxe{p72^=CbeO0BA!1v_K%ULM}uM2o}#3I=?Ve)xPhyx3^bU zS5KWfb^7$_?d|Q;JEz9u@$O{YG>!K@N{TUh@9!HQ@!AcR%Y0;9O?j1xMiEI7L1I-^ zB0euMt4NLCcW~v8pZ3oXYakHv06^l-`-yb6%*;Bip(5OM;!cyZvs@6VhQUH5eb`g& z1q8tCUGIMT5B>0eg&yDW!ME?bX1<=Q{kl5m`UX-80HB(P2m!67K7|+~qgdp=_ejbH zQ|B|A`abK%EPa2nmFWh@Dd)w`WZe6{IC;$9fA>TQ7Y@_aUwtSWPLADcCn3};qhI=+ zpZm2JEj@Do6ERs!QQ{1(7ZpIGWtufF{DOxF5%WCXyLa!(%F5MOUkx*`JxBSS zanqKL3Oj9lN-?uG&vV}fk!U!NG0e#O0ASd5ZEGw!mv?K{*}}Sn>_dy~ww%6idi!nb z(ifrc<`=dedG+$4ud5dh7FRxDu|BZXt$?xwI+fvi1|V>W}i*geeeYlX*$PcpN-Y*W2$=5%EcFb+r{7i9si}n{@ovX_n*D_ z^`AI$>&atVcIfAq7Ol;?Y3ip@Jx*d8Z*IK%vYQ@%;nyue4m05bIq#vp5}boq5&)c? zoM@mOT9a!|5CfzjZI{Bzp8d1-6jxq()%$LIPd<#JhZXq}@K{=-ikOwgC;)@8q>^Hc zERto`SmQ&Nk_Mk#Run}Jc?_Yi>oi)%zLRDe<^hU)kwNn!pIbD`%kHAf>I)uLNYNQs zz~Ojtf3!z1hEP;sv9v##Z(4&LejN0ziD>3t#xgx4yyd ziFOVXV%JQP8n#p~l=iU;eyTFXN#Z z$RL6NQN!m){TK1yfn&}9x&fmh5&=qNkwIWFU-+@_|B)Yi#*a+f@!N0s#}D58p*%0X z?D9uE_EC?$8gA0V{M)(bp;3#mSMlL!C_)F{ZOj(x%eAW-30k8)#*E|AN@+iv)W zv|j((D_(lr?YEYD3L1@>F?3*vspf7fjABYaq^vL^(09EtSqMJ*kmtDy&blUr*sC#F zHLB~X58dQ!=bT$yuKG?k!}fudxr$)4IG889eR@+e=)!dM-s1L~r`;ChnXgT?8^YFh zdC?;mSMRy~*}wdq|MMqabLrey7-UF*oPxBL24B!P%s_h&(v&{){*3effX&bwh>(Fh z_qUlv>jIDxL{3FjjGp$Cr+wFVJe6iMP0xWMQ%cMae%bj;ussl~%qC-EfCPHi@!Ja_ zYem_E0YXc?j^>KBQS%pn|JvJ*-h6uN1T4qp<)LNQ`?1YjDu}EPF%-2Sbb{Uz8OKC3 zvDpM5ZQHA&F@`y*#_?{lHVg-lagma=lWFM8;(R`Bwv5Z6shW0oPZ50NPu{)r@%L@q ze-t@y%FKn>1L$~LC)>@^zHANGUizjVd%^er#>0o#mXw1cQT2t6!-K5(2aoy>KsXU+ zF^QhrY|dRu4**tCX2oGuu$av__y}y6MFl_rAwVFo#4{Yoj0180;=)-E>d(NR6#!s$ z^HfD#=dK!BHHi%{LGaUR$V-Rovpeg-b;Ta=5LZu~85CJUX!{9UOID2|APo}OF%tEC zZ>_ECx~}V4G>J&w`xG)n-aad*j{51A?{;Ws75Yi1eUZY#nH@N~eRhMJ6T9jCH}3rN zKQ;G!Y&=(|%dgmjmZP$XjI8S6FWaAA=3nu~pSt_(`#=;D$Ipw&|2&4DWwUp9 zCeZ=NNC@Xddd_u!CJ_t~QUWyKoMspdASVG(Kmk@_Ff44rvJisR8J!47fw0%)X80aG z*IO}yA|NZw5?}zIc>w?sqkLpcW7w0Ro6Kjfo z;=1i!-Nm(gU}p*jFyw80K`toNS?63syLuO-hM7F&5`k3JsoOmj^Enj+&Mh(!K@6dA z834>m{Gsdn);p6Ek%FI_t7)(`$cNZxhLVTo^eH}iZ2huFjK1yr_P9K?5PsObSRQ9lzb0~G+5Q1~IEkZ;`VR%VG3 z0tKCQ!c!vTbNsZ==A@a~+WUa#X5Lj1WJ181=AKF^mt+M1#f)1Dng$y?LSUG^h#pz&aG92*2$X#~9!lN#mf5d@>`IO_>)Kp0$2Do&k z;X&W2;$%3lB4W|0YS11XC&2mrWpUy36@U9YurVc*0n8>M<3E1g)1UEl1T5^f-%qXZvfFKG)6_W!xj-=Isx$w&Q;R>{IyK7oiijr&&Rc070Dn&_c z-}HT_np|!Mi-p%7OqySw+p}j6BaO#nNHQAD=Vqa>^Ca1HH#AdkZ8jK;>bl-@IL*)F zauruNt2P#koofGlzPOlY&gN{pu4&uWW@VNYDa9C=qeS&R+KAQ=8!qP$&3|h0&iCH= z=ZP(yJMn`;(l36U{0lPv`RjgRtKBk|goMce!K;4v*Z=nVzdd&6Jx_h=Q)dUN`|i8% z2Y>Jf27~(QtFI;?5q$phpZ~!dZ`$78zU<=5?>%zwO&_@NPp|*esNDxX^4{0|#h<+S z9e+J~gdJRFGM8CHNyH#qt3}C@?0Cx~$!L#`mWn=w)RPE%iMg?1cRIeWQ^In{u0S@1 zNXdc_W|?KjDaK~nq$rGRobB2sG^!$1ky}H)?_>1H%0xwG5A9vT#xK#*ys??vUOBjQ z&+(nDX*hPz&iZE8dkN8ECdDFTgTySYPsYtlg3>7_RW^f_?2{k)_~Rb+JsFl7dmLFpcy1n|6SHAf2uehLTCOc=Q)Y>zr);G4d;y7M))m8KJ^Mk?Q&O7gX-}~N2 zL{ECslSpZOXZ^i5zDJFoU0==f90Wt(4-O8hf?8-O)ON^=kE1XOEk&o5g)qR#dW?y0!?b;*X!)3|iiQ ze}DAeakd-}UG2&h2S$(#U;z^PerHh6C82=r`d!=C9(d*tKmNrP)Bs77v8^YX5dFFJSU#3aht#9m(cW8L9AfkReF!P;}Xla~4jCGSP zIJTjS)&AkTKK%Occ+?M6^}_+fEQcuK`61JA1fwKCIlXoAL$}lO z&a_J@Wmz`h$gYY6WCdc|ZR_+@_Q?;QYCf8c7PEQ}n}ILp^0w=obAXYvJV`)>ZsMoA zA)^At>}+mhTiHC7H6p5WZZLB5OS-Z*zhtGT=Hf*M_wa6Jww=RRE!oX}^R9lk&+?mY zI(h56`}z5KbIHc&a#t?cJS#a*Nzd40Snpbwe|4HgMaoj??(j@AZ{TQ51j)I zzw{Shia>QSyzHWff7um}#N?*i-f5lBWrNYM92VIyFXnTs1*&A`8Cm?MG15Q+;sAO|FK(vMw$e{8}JRd2>gow_XS)86EF%k+!4dn=ji#nWl z$$}afF0#o17_&OF1I!$;BOpqm0AQFI8B{Pz2+`Vt4Hp$GF1unN)yOTcK)*|{?Q(Bq ztm~V)9YemyO~AhCwf9Xn&EX3M;(`|FQ?I=y6S6GJG82=;keJvQM?}5!Ns=pY@UO_OYLir?$>wjD~>#i^W1nlqtptKxrnH3J6J~sAU3xJ~CS&`rTAS<~l8YwK!ngxv-$T-16__a@sB*NyfEjQ1DL5k7u;W96EHBe| zDs?_LZoD+?w_7(TihWsYc3%H`8^`b1zUG=k0d~ht906FQ(zzs%v1P;F;u$T);*P^hHjJ&|ElL!=5xAt?|M zBYrtee7fFjB(tn8L2A^grF)m zx0<3rU<-MflOaJ-6vq{5J8k=Byt53KT{M3cGtTsW|FeB}&QMfm0uQM0Km`QkoN}uL z{7eWGB{1=+(`W9y`_4P=`t-dgkKJ?f=!vuUZ%wvB@>s{RECck}h*rLKkkz)COb7WO zNi>jhLrFmZV~ozQV?ZqxI>H`63>PB6j$Ouy+rql-)4o~bsk-0@g#N7=#c{G0f!)G?n=%XJ! ze`sHJ;^cP77Nu&@_T)@HD$7N&mF6SO29#9}9SI5|U~mAFK4QP!+ap)}-t*pu|0g|@ zFR>YUAaxX?T8BC-6XC3NOF}?JObHC5A*-qf_U=EhcmFp${_6!)AWpmKJ;(0;)a|$5 ze)lcMkDofVb!KDZB!q-Xb7#6PS_i6{6htHeE6jvbMWh8#V4G4>R0f13(krp?y^pbr zgkq{TNKue02_zI*Spf7+NUayowj`U|Y3!5ep2Z~+irzO!uw6d^ zb(tv!BlA^{%oh*C+DYNO+U}aOC&snw=av?Yn$~%C4x$F1l!5_=7662>b7o*jJn8Y~ zj`ehU8TJ7^gnIcJHW5-nX6r~KDH0(e0t!E{ww_ap7Xczv5EUUb1V~~=ZuI33yXMO; zzXtI8fUE~Ovi^w|zT=saf+{)6MOzUOK>?hprUHPfGWjT!lJh>L7#X88h=jkr~)IssLzszCV3BSR#uxEJI)qM zD{fWJ`iS{j4p~3Q%Yt(Cp_#PBFwYB8h)GDWV;(V_!Pxk;4lL&pu=0Oz=j~QzEtUWv zLX42CDgZDd>H{bQnaP$A07#kv5Kx80YwAT}G6`5A&p-iEQXupp08%xmC*#IVT<)^n zzG={>r0OMeDOxBq@w;PG$S9AV+vr0Zs=_HqQPzEF=7a*s}}MzC;aM( zw%xQ4Sej(nbX7p~Wj0D)Q;QOe3VR=g07wmEkk|#kw6u8N#^(0Un3x|r8zG$6TgAaCWpoRgBT$a&sPyUapj6oDkzOgjcG%WAqa z)(H;wWR!s!`=$kytOKYZ{G6ddf)h17wu>TM!=Iv^qoRTA=##B%G|M$x-9atIC*OI)Ty(k zSz+V|on{CQlO)@->{>Gjr7i2iRt43S$qP`8&2*acNVIoq$D7@FyYEZ_)rU?*0q4_& z=i*9=p+^;o>VpPK)`(?HN~(f-j?McSXu7B-&>*o*X)3YRa^zSAMkGjGqZWw`bX}+x z3x@Tx_iSCZbosc|d;rjGfZMy%wY%1u zu~9j|FaZNVM8={4M>fw)igB_%B}=A4sK5?VK61IUS#J7W@v*bS12ey~dUje(KZ|?t zkg)TAvXYoc0g$7hASMZyX8Qh_c{A zW+gp;IMNv%Mgc^a2!RnbSNS?TI>c}Zi~fY4gv!W20d&;!H-orFn@ z6EsrA-t=vc6jK@pFhNL@KnzY*Qk?oOIWDuIMsB9jw-N(+FKrXrCWuIkar5lv>WQ^( z9QLmq0;2R#%8{No7a|~lK!RyXF(appQ&rG%_F;M3`17 zod5tJ07*naRAhH;f?K?KSJ&R@`m>^5s86YjeX4fGg&%vEz_r6?R$=gzy;s#klY*YU zw<$8ruW*$efcN9R58{G!kpw{6V7%z%55M@0Z~F7+KKD5*dk&}=Kx-4RLP*g|^qNrF z_KaH+n+}88KsInL)~W?yQDYaH;b4Ae6HGtQRlNAXC4$~OlvdL7&TN9D9u=8U5;1d1 zQAJe~3Q$r&B1Rx`WdVIF+LBV!w9|KOqiv)eRl0gV_XI?x-9phNlD4j)1UtI-~7$r6p^p{y03f5 zOJ4HUx4!kZ+ip8@-Tl2hBoWR1S1^?(REI zx2rT=3tQ{cDjyIx{3EJE}tiJ_Pi6--$oYRu%M-#IacW`5@k@0@AUBwL(6c-57Ue(0cPW_BL$ z<{T<~8Ye90kg}*MiDC#!Y7O#C9F{ea&e(BmqP5nb{J_(n{gM0MvCgYmPkXLdI(^%T z^$$;Vk`^90=fT62jP36Gc>gQ+{8~A|a21rp;l|m`%&ny$L~ zE1vlS-%D!G2`{B{avC#7B4S9vu-*@1U zd+g&!ZJG>6kknufO}6>Mm%ic&mwe~Bv=@p3s0a};^Q_y=EWIuwhD}O|iMO}Lo12@) z7&M>>4Ehi?dg^y*>qKW<$Z}9hOxoGr7~4!I*FN=HnknSkhs-j19*;BUxL7FL?M6YC zkq}V@O|q1j$OxgZDheYQRZ5Ded08amFS+RQA=E$oT|X{6rtdUC9PQ70Gr_=cHp`lt z3D(yAWV5;KtE4HN2ZKPB znWKg`zWFcOFji6mX5o|)YOp5eHf9*ex6pMq_`(c0I!ak>2S4@WKaGHh8q?=%_V6XP z^Y}E)wB*y)bi<%UL@gjk~9JYbq~$#Qedp99?*MNg0NA*lt8kxyf~yFW9QM}A&BTkZrloBKWnpYe|p#+HR3>O3yq4R*Y-Tv`sJvW1l z&I!Ihgto);7gQi9sEACuDJrSTtTjoqGYwq;fQTAEk_d`w449c5HV`0j z1C9X;%abHavW6-RHP;*Oz2}~3_lGAd#wK*qDOr}$??bJ(-iKHBo&VeWoU_k9dj}Rm z)+fC@px*ZCMc-Hl-F*Jg@h3b11VkkCsd@y1o<##8Pj;;)#5&!}+lQtOr1cmW3~DwT zw(NM{GiQMyNJn_-wX!`=01=0qqaXgzM~LT$3{G}8f4;DSR_H0PCAzp+o(Mn!3Tl|p z7BbHkQwW&wLW8Bin5P~E5wdN{G?aqLMqEQ_f%%(X@>bX5s<5^5bY&AKydwIso#RE1 zbdU8|ztY@P*U}!_@8%9ec8v6AI))JD6@-3?Edc=6f*?Txgb?rj;9A|O9=QPEz;nj$ z`rH4Rt!YK8gL*Y)A+x}kk=%#gaR4CHpjT*2DB_UBMW=kv&%YOddIUnj0l3p#GV343 z%1P)60L*viO06tfYpt~&9Y`Lu=UM`oa|V$Z<4QZ|e{BWhs?235L?Ar^Al-*MWzc7u3UbB-t21MMpKxnIWJXG z8IC8>1EJ13Pncj&-An!vLQ+4qd@x=mFeW@@CX}w_qrBc)>Y$~>NzSAPuZ%So>XqRy z-uY!`2;(8(AQ_hbxPDyEIV)#{2p;^A&Jl-}5<~~yB1dLQ1AUse3eLIF)?4B{SnVhh z@4x|;M)|?+pMZgK_x{~d3Ixikkcs5DcU*8CB^-cp7Wt<_m```1C$GITC?MC<%zO1chgWA_76b@A#hkAGK5YiC_pt z^x*PBPY!QgKiSyR`vGMfJVT2C2#bao#uyEm)P;fyfb`$k`M>FqO`CNTLK8<5l2n6i zwi_o=zn@di8qK<>VyDxyLdPua%@uvsz45x&Tz$n=006`~Zw9UO2>ClhIn_lI007(< z@3})Z8PtL1RCt-q6@H1aUJPBQmNan`wZHSOJFeJqHCTA6s0bBA0sv|N2JHD1V_Uhc zJ-D9gbxa#IqVmK609drWe!gYh`4huy3SC;`(V{cn8%qcSWW+INe5ch03JUTEpL{^n zC^9Z2@eB+pE$u6B`@UCcq!eUlc0nx`YA#rqE;yhwC1CK||LJ$UH$c4gjY5VYEl8f{zxf}2zg8PP znGHE`Zhp|P{aH_F?ZU#s`~U6x_&9}_mt7N^DrK1YwioD86Jdgw@*37RR_}h`3%ico zciGm<>%nlnSr4Mnc*m&NxNc*!I^3)_6Bu2oq5CJYf=P(cVtFX&_KdqE~XNI?mWEnogaI%A1azb zHOgX^OGhn6WsuOuC@%_?t`00QaivNLwS_-8eQ@vLM|p+PP||>cSAf=g2uUC;;eNCl z)kbUU#wL@-cy0B>_6yfuwz+l@vnLZWky?+)yhP>|*yyyy#aFI?7wArwE5%JWD~%)# ziHa1i8}aJ4trtu${(xFdz*OQWizJVnnr~e8w0jXb7WeCGpIrOv;#uggW$s4xypTOC6`7)6R&P z?Z>l6S`V)xjUj~I)Z)iqUbc9Ypj@r95`UDyV(1{ z4eu^7`=h_Uvsm=18>ON#xpsW4vymB&j#vmyzr;#ava(m?QOOkdMbTSS%X`|pC>BraBftGO@A}B~cciXKIS>*#uUKfo@zZx5apm?m zPER)1Z&|zP4VV1VEtkH5XJN0~E$8uq^_Kwk>qoXo9#P7*1vR_0czCKTOA-XmcvYaW z@-_y7#P9}H>Wl0dwVRK2^xNw0v9yYh1G>tnQFJ& zjEW$Ll1d!K$xx#))T|`2Ak+glG*KgKlc36@;h-`umKIv1FF6n{QkR0g#EbMAzqZsy!{hznvI?u+ElGYHT1gll%ruK&F5^G{#xs*&M_r7h=yu_$ipEaS6>`y*QtA{kI| z;r3Morhsl>00`g)cmGyupr6HxN$5btAl40U`P<@a_V7MY*!DEL>8e*<^HVRg-qnM~ zWV-dp(i3aaO<(xrof7I_J#y!--TraPBcH*1w{yr&jR&>jkk8nSE< z+3`XI-nx(ei+}T>+in9yW1aV&v6BS{f9OsRfTRAu-1|G-%3@QU+XvajA4zlQO|zIHU$*AnPw2X>19~(omI&B5Ji1 zR`~chuT4~s&9s(|wD?4wmDDW9P@4j8nLCdO3eNGWf>{SQBM+id_)mPQCB1958q=bU?bXdA(O?R$62VTPWE zO!AOZL78`X%eN2M?i0=|IHz4!I<2|0tXfS7g3fKPRp{I@!V$bD8i0xh8{ITwnYTQf zxFj6j93<6BcZoz%JzLJ_54W}Nz4z9ie#7OjpmR$C(l6h8&ma8B|4>B%vIQgqPZ3Y! zPIBeW3ym<0u1?05zO#7$pWVNqcF7n1^Yq~^vpW6=s) zNG{9LbUGaX8-%oyQV6?>ck-fab=sO2p25`qo?}+gZZ+iCNsDFY=JXrRf6v=?ysuR* zFP7cAzOw7%pZ@ftd%urJff~n7W8Ue?^)F<=07j}KfeWUm7C-yB-@SC}HYA8(ka3D^ zxH>$P47WzJqip8b{EWnhui13n6W`ml|Ii7Ts8#C7lA_RodeWHOnwBFK$)im zZBoAJ%|CO|w#(2GAe8b#Ly1&Uv;dBPXN+;=;3+|h)&)tVd-&b^{$-=7<>TGb80#sbC`*f;ND?71RcOgMT9*b9k4dy9NY*Feq=+JN=!OWW zYyE(B7g*f)BJp;@@sy}#H4?15V*Q&Zg7DGSuEURZ9)IxY&L4b7(CUWmmxP|4zJgyX z*@AL#P`-8R)|+p>xmv9b@{TA$^v%CBEKk}XTzvBafpT@axB_%vnS)5X8t!0cEV;CSX?meLhgu>yY)A!%^ zou%VTCk|)JN1xnx;6&DhWV7h&5)~$;EDINg5h7Ja#SPJzjO**d`kL6XWfrTw`*+20 zLTL~Ll1qV}Fmdv~b51#B+;L*L#LyFJt=hP5-J5RsnHw&9!-U+V=J3RmGu^`lDk33d zL^|uy6J3;)aHpLVGDxJa>B{+Gx>=@^G8qoSR8~y5p}26v$eOv?6T1&ji>7Q;!l){X zmMPjAEfrB-sU{~5!NRc<iu_AOh16#(MLjom+i zm2A6ps>{Y8d-G&DVe61H2fz^!+-$k<%fI@;tA-~zWzA+Y2%?y$tC|z5$2N>LCMKGbqxFfD zHwc2|-T>NCr#w1Yqk_Q`hmL&r+xLCtp07Ui;6r(yE2Dx)T5m)cI97(SOvgjI+KgRM zm*buan+8!D*q}YUb@@fV@YYvMFE0M-fBp^F;{Nzb5zKk}jejILJc_M2B7iFA|xqs*kN1J#X#!rtNF5+qUlfI*$Rlu}*sv2MoZVjVLF(ckllE z=Rbe<-FLUU9i*<-sF~p`sVCLdAsI9E^TS|>P>0fqdPS>atL%gF1Gm2A$`@b%$y=VZ9z4*^`*ISh6LC5jn^a?9 zk~n6bb{4xV6>hoGezd21=v~*wU9JC4p5GoW$yo(@IQz`{3Ru zr`x^!^{;;w5>E`{7~$!>N3)W1;UH;j;7bQ-)PxW>Xtd`_#u*SYkacu;=%$-r`_+T@ zbmTI1t`fv5w~PoLVqD=-HDnJKx*;&3@KjJG!Y7)rH3=mR&uL<_Lg@t5J(LH_Ux0d6=a25P(EWiL_|Xdr`-k!alk16I8T^A-aGQT zPrb%g)aod4rRZi>auv#mFb~9grzv_0r0AE#3&BE;6a?*+Md@sFRcdXI`hc2*xy*R# z1z@17BP^|jy71l#@HVWGxZy>J`4W!7_SbLw#Vgjo$`qyJ)=`TVLlUFIuo57_2fz9K z&;IFeedFX&VU5U zSs@aa4h?_c{hxUIyMM0cC{Pc?ffLBUgJqum|8&v&hjH4wi2i+iW%pgb{`rs5iCz*# z*|H}b7}%87s8Bk0)XQF{AE%Lb2DPWwg8>?$qaje~NlpXCVnGuX`dB6f2FZ9>J+U-f z5wyBG?9Tc5-FY%58o)!C8!!HOhkfq^rCr9YH=Ou}6eJ1JdiSM! z|JQ&0q%h)z{?x?CL9T(6+SJb~+ucwR5h~ zXl&lR`P3rdx#W!HfCwLJ*Kbr3-zNd1KJ`F3c%!tVlDFnNX(eTnFpojPyhb8On2JJ^ zLa8(rG7f3VSxOE104o?-F-liYtUC1Aw4`j+=IV((cJahw(&X86zcw)>lk%-M@9+n| zePF7(Y3(Z*vrg9#GXg+(M`@`Ia?Wpl<6Ex#XE)ya^?Sbfr8^&feCNS~GhtOO(b6lL zFUtda_AkBo!k1os)#&&bB`2#F5B?6)j-TH7?m1&6=fZy!^>pYfkNic4w5bk~nEQ%@ z1j3XvCd*PI!MGAy$b%|Yhh=jtX|Aiwn&T-CVlFE{LmxH+TG1ub-qBSFRl1$TwAb=f zlVmlzEX|i~>80yZ!W`lFwyp2Kc=S!3;t`2!LQy3=Lmv{t5rN4ZKzKy0tYGr8?U&v1 z)3?0hnpbXFv!z1oLvelGstv*?Q-=;utQp;L`4wCyS+84`rT1P4aVp3@h-N&;BYDQG zupx$CdHHMq`2O4DapFP*;lnhv)&{9ionmBiBnUZ3npRnwut+eiP$Gh)NDw_L=YRnZ zXix;MB8_!vC9+!8Mjme=XPirP)acSX&46s(xarbu+pOh9*-nz^vE2vWcI#VD9Ge+iwYu9clOQ03 z2q8{c9wM?cQ5EWpSt0Q-F}C*pN50je^E73Y5lJb4a84oEYO?~d=T+bpCu2gn>ntcC zu`EmQJd{yuDJu$FZ&Vl!I#BX3%*uAv4@0$_KUVTA6yrJ~&I+d%0f38u*<)?Y7FMsh zFby^@_x3tdkK+)ip%8mCfsoF6LV$B_oi9AOAXjqyYzp^>BW&e?H*XyIUObP3wW6p9wP6$JwKo}Jq2`RM=0-EcbFjnYt)#%9B z*f@INlv8#xVPJ5=^+O5c&n;(6LQ4z-wsmsb{(buo9oM0l*OPQp`_^huuro_s;*Gnprvy$fGT^If0Dwx<%Yd&#o@00twPLsw^)LzQ4 zNAs2{TeN7~nd1w(q%tWcS8vPn!WfgJ5`2Ym$^&wvo%ev6ic-Ag`nSC0 zx;IzigfZ65+J)&ES7v#?z0|ga(Z`FDlxckp$IBKRrm*$JV>@c~l;=^m-BX!D#E4YX zJk4@;;NZf}haUdRzx?L6cK-SL4P!@-PsdS{F+fYX@CYT6f`BGqIrV}PaF$sjNkAN< zj#=Xw6UG<-`}92j!HN{lkQJV>{JNxr8SG))+O7MLkAZR?uW8?vfIscUnX%)n~n@(gNgCkpiO{B?~w#SAfGXmi0OAH$@&~(uAPB-RTS@W!j&l&j(o|LU`RQy?7;DKDL+$W50o zj8)dLO}rbXBv@$Y%SRN!u(#-Q<%b)g$v~k#gohs-|MrzvP8ehrs82+buC;%0T2<3p zMbMDCB#?*qEe;K_TD7^fywFG-?w_kWMAwG(tQ)|mpM)vd#1Dv6$?*GXdlh9F0!3$2& z0x-0Y2?%ez{MDmF%}?L{iG_WOW1B}is`J>cUDe9hM$W&kwQO_Evli>mBEsN;;|;$u z>r4mR>w@I3S89*{OZs={Oia;HC;i=DuSMUlc>G&MHTC5qm6cbsdb5H(x?7ko%;o?0 z;CtQs?`i4j`ul!d3ZB_xpO$PFk!v^o@n`<$J+?F17VLX6g|Wz;VL^(6Blm=5vAb@+ z|8w{E_qx=5IpLQx_H6vOb@sgm!B0e=JxmLJt|)MtG!nB zj$!4^ZoSHvH-3el`Nhn>T(17f$M@0tOZr(>94GrJ>zmA<~yB_!dkw5T6<*Nq0 zOblFNvWr_3SeX?LTBh{a>^=MC!Cd*DbIzA7Ja4|ditTSR>l41lK>l+~6Fm+x7VuAF zVpb4iEVx)=#qNJbV)w?#wLN}e8th!tr280JEdA%|E&ulR_SW+E$-nt5Y$sni=6>vY z%+8;OK9}d1SUwhDTj|2ZA#$i&KHQ~L40%dfxx z4%{s~*D8>%!tnRbho-3o8}`_2J!G@hxjruUWmt>&nil4HcKNpVpKX}>s4`?{Vru0# z|Ie-J_Zq}^i2hUg(6seXdcn1|#{VDgNl^XcIfIpbPVtg-Tm3Df-~1JxtJu7@RDT$G z-jeft)j7|KYsG$tHqR>-n)h|iU8uCI*ww8t%04OK`05Av$ zC=fU(7)dB7Sy3n`Ffd^_C|OxBFgQ4AVK_K>S$Sz;mT_sGmU(H0j<$}LzLuWHj;6kz zrq8~%jyMPyK@cEG7$|8;L3vSWhFM{Gd8ToOo~C(*o`!L@riLgG05BK`Q7AZBFhNl` zC|N-;VK_-~Nm*e@X=zzOVQG$rX<=z`mX>jbrj~gq5GW`h05}*JhGB7zX?c!@u9l9r zu9mL8roOJW*T=q|&&Q@H2pBjRC^#q>C@4v3VTN&Oj;@}Lwx*Wn=f?;DAQ%7;AP5LS zC@4WFI7u);NiZ-`I7v}BI9WkaSwTTzNm*%8QE5?OX<2b`Sy_g0hK6~ThK{C=mae9b zo|c}ro~FLOrlzK@#~2VOj)tC|j)sJ# z-{05g=il$|rmnWOw#U!U-`CgY-{0@w-_Pgg*XQT=@9*FD_vi2T{}>PuK{z-`K|xVT zNnu%8o|cxTo}R9zrnauGzP7e$X>rHLzQ@PU&(FsI004%DhS%5E-{0To=jZS5@Bjb* z0*z_G0000ubVXQnQ*UN;cVTj609aNaR%LQ?X>V>IGcGYOVIUwoaBtOYd5)cJK zsHe}NH_O`Kx5VZ#{`-6SJbJ14MPGZ{RZ$egF+F`My-|WiQ4%EqX2t?AwhWn*Np`HA6(` zXT+aknSWUL_x-3_@+q?z!b^=d8#BD8Ppj96pA)^e7-&)YYS$X~xxDj6_w;G?9uXb9 zeb7f3zKh68<#=qtA6QX}r>9S=*GQ272(}=kn~CyXBPk=FU>l>@|5I)2AC_u|An<~S z8CXw~PG?&im9QPf_Vj7>9+~d3+if29<1CscX^M;%+#jaA*V8A}tE9%`^_tm`dZmd3 zNpRUIv{KX4C)KNDkF}BI=IC`aO;A)xN6u9WIdsarYWltWd<30`iy#=G&_wX5v|t~gd6$pCwuyIdZE14;G`%* zuhS!B|QY4sktRS!fP9?HCW z1>mz-K#k8_>FM+8Eh63q5E-x79ijzO5b^w9EIoZ@y+m?v?~tvtA;%O`!j(N;@cr zZ*3N)i+=RA?(cpgWL9|YzwreBuS-KWeplx=E6^dMBnqv52xIUsLZFeHU-bGKoFt(X`l334_l5k;+f-K>dA!G05a$5- zgcgw(S_EEb?}1bPza=~(5`4V-b06zVp@`s@oBJDmEHmZy>-|KD>Ejng9yC{4%gDOx z5FA*6McB3o|LvBr4WW7Sqe;>1v(v$2n5*;Z^?zzj=zft7x#uo`4zO!!!L9?O9Y5nC z))B;Z!Q+6a=f9kUYY|dUepPI2!|K&Bk#?)=VuHYZ50FPNiu{|i~Q8V z2}~7D?BNCbp&o8SkIGnt_9hSt&W;BAB`-&!NjfD$Ut7+>YyP|LhM)ygFaVv59gq;4 zKoR%I-`~z`K$1g{db$-oC=kJn7!t33>zzXb2Xh=jtC5znAd3o85%I%&?vb$5kT8BN zf$&f4-hl8jj{K91a7I|$)9vUfnU2s`KR>Tqo_E1HGd0$O~@?hxu~db&OTc4>texz*VJiDuTv&CnKxqyT==Gzlh`(3NFro4%_DRbc_DI z(tv%aV4j(jvwH-Su;DR3OidN)hCBF77((5_rNq;++QU%E)W zU1U&ufPXERhb;of^F7_9f3INvwedMl;o&4{%tff6P&t-R))QoO{znPcH$jVimt5qinf?>F5WV(mbWWr6 zKY0yf7<=y!jUl=90`3O>xgp~G{OMV5z>{ox{_oH(NU6>tjv243&u^^;y_*GVQi|GF)gCiNRgAV5J zcP0PliC+|2h1{>aBWGUg(Yi&K9w z5Y4^@@SU@ugRiiIitDST_J_Y}ZvjW*aOCuKqyCM;as0r>wmP$Kra5IqZcfTPbWK;U zj8^I*>h*-43McD4kupiWnTs zv~2F_R{i@VBu8vMbk;3?#mx_I&K;zDGyDlc8C|be&QR)<1TmJ1uCKSmC)84V$Ie`7 zo)WR-Fd){viE9^AGB4aBBtlwGp9v&+Ol11MCAK))*Y|X@{%wMIT#;uU9m8K~IQ~ZR zDkY;R9xHDRP;5+yL)=v9-29hM{GzjYQWj_H+Y(Tsb7C43K_w_o_YmsN?n3Z568{g-?>lw92cH1#d`*P|i~l;ql=K z3E>Z+pQp#hb)!Y1lDxE3Ku`5o99*8ci85rsehB*J=!Kqc;*ThY4zj$;E?r9TS;V`p{m)^S? ztPD;V#4!C|Lk9vH8;ejj9>0%1RDB;l*f(_*84Lz0E5Ea&sN`r*H}uC5|E;cYLE^<* zyP{aPZww;}V@8c>ZI^pD@B(g|0pY&KLkZ(4iEW%**AgVSi|tq16<5V?840kwI%u-;7EE7Xl>e;V z_gDHWQ}DRn(1k`XEK1cKw-)zwWAD5S;Q7Fi42+N{)ya!Ybc=+?Y;f}67oiR>-zMSv zqo>7h;RQdcC&JwiecxxGkq=wYwNL+sg6C!yAEtL86J1Qxoju*$J1@L|?Hv>Fzmi;k z=fyp_Vv8gX8j>)+e2d8QSh*PqYjHF#R5zdXyM42AaX-7Nn`+_FVHTvC_E!}ANQH{G zA+6=*405)vNZZq`z0-2&P&=lZWGV398W_a!pPPBl9=u*4s0e8IqNGBa~AT zQc-q2osZIv&!#8*$7%5WD8FMGZQPsV$qgp@&c_to-e7NT5Ps3v;JuzB_tO%uAQgIAuIWo&QvOYW`eR#r>!i)_FX^Sl; z?I$re=mN?NPijJAQ z*nqwDEI)QAYv;_FH&z)D_gKIJ&JJkru#B7!r%YC>SB@RKB;zCSFe;U%c=>x_hQA%y z-}}WMOy>G{BgT&tq!8E_b8PMnz8p`A7jWX6?Z7v?hi3(sU}wM``y|N+8ZFt|LaySF zCU@j7Mu3eQF)84NG5t;zD2W7h#t7vI<^25!PxK^<4=gOOWM9bp?u$QJ7WAJmRn}*2 z2o4{ip0NuLiWKLc^-!#oQ|X>!b6Snga0knCJfGt;`*=IYd)WpEWEyzc8AD1priu|6 z=Anl0v1v<&PZ%B^fzSktoD@gIrGV>5k2sJr?_xAoXqT=de`lU%=XaHu*ZtCe#7s}o z`@zQ_Kdy{Wr}*V0?g94)qU&R)-s^FZMx&Q%XyjSRYxeSHuaMK6%lkO9V4ek7w{nsc za@A4CJox0^aK$7vZzqaC^#NBB@!psr7VZ8Clfs`u(ReK3;Z2)0nu`}Kc@u7Zuaglk zwV>>tZ2BD$zgapf>=mvAtJAlsB3_kvZ;F?)(O&(Y93wTB%kgbT`@WZO=Xj_Yf=6;~^LU)r zYOmR6HhXh(ETI(kBZ0$;5RlR4xuoF5~4?4rucB2flY#9YQDUJOuE)eC~rUFcSf1Y7%qxZ4tIdgW z!$tRq=>lhUxon)z>*F{d*Ra>k<75vWAI|w|4pG9W!XJ(sfJTk6%o&TlNc6DSYm<>G zZftbC0zDamREJTqCjWYVHpot3U}aFy^kxiniyaRbZ0XH@xdG3LX%XA;WCSpPS!yz2 zp3&)byNyJxEBCQo#)R!2oliKi-S~mm=K%t8Tyuk&m!vj`7QX`D@|Ar!d7oc3XUYCw zs2+GSdeTDB-`Ej(GosPR-^~nPr&Q0wNEH;{n5~(Xoxd}CKQNHa2$Eeja`1T6YHuEF z8RYUr#2aYB#oXXB*7+Ko*aZtdGoGz3=H@ce_UK`2*|nXFm3?g3QxU_5j{u(=G0ZY%AL>7B zBs#F}Lju$9LQ~#_xKA%+Ux>Y!wj=eL{LQI(@1>%4J7;fT9QNM3raU7E-NhG(@!USf zqjt@hl9S7-;xyCV0|3#-PQ~cK-hC+^pRd7dY%p@ULgN%aXKpwo&SJ!?h>cdQWe;f? zk8jw+kE6J2il=6cnldsX;lo+Km=iGr>B&H7opvC5f8Ndu`S0!D5x_6#T;7E|hGzu( z_HWwlLeHY`1B4OesYD_~B`llZ@HwN2{w|wqNL<_#>tesQs4PRn3ez*1y+nx04Nf@6 zm%@4bGYli{_3j1UqG9RAV9(l|)=dBQ?ZbzUd~{gEuqh))hL1%3);>AsNfkPZ&^lbA zwk%Yg+wtjz{rfF>skgq{GO&do)neDZoi*l`E%B^f;KXH}pM2A6``H648?@sYy}q%e zo1%=a;P`>fx2iDiTf_C|7Uc%1igb~b)fy3@UTNMpI4)MTQsGi5R0U5ID6XD;@)vXVxz@I| zwX}zPE{V)ra^!<&4*Gm8JgyhIL;Pbw!Jk-8QwdgQ^k9V2boCQrFKW{@mh}9>j{NHf z5L&-*f9h>zmCo>wQ%`tohL)?pTG5jr{1B1*E!%K)o)_OYKJ20ft7oX=wejYJg{t=y z{&{aAl{#JFm%6)%fvMqzhf<`y`u7>3ZX1Nu9N*X~@V;+_wN0pfP{MXPIx|c?ouo}B zZNY`}X&tF~M~lv9Yw|meOw-^#rUTu&YPryC9~jd5L7TOWXlZHhtu-x1PC}#;c6U^qu+p5lT%v&{Rj(opA6TK=4~C}%CUn>mrYSg9TzFWOcW#nKbG_hb zhf0%|mlq(QB{oX{!;!)GoK!tASb>-xM&e(SEO3G?;6;YDn0zgwWTw;;)>-rs>d6!1 zLOfrI3#2Qn#kcNl1_aN{YCyI+u`51T=iqhv zf(WJZNJnRJ-p-vDV|T98XbL;dYYtol00ZBA?pQmv2kmAjMGo<=oiw6%b}})N)Xwl` zft~Md6vSY9c>49Yv~>N9hchgyuK+DV7lDuy;^h`-YYQH<)y}mGbv`kqPLNLXZTwq< zzr0{;ZUY28LPGl`p0T8$+>ka#QKHjoG@bf_bro{;Rf8Eh(X?b{PuLaaN zMIL11^HGCceii6)Pebvq3ELvH2o1a_aZaD$6>_7s$Ih#i5i<&K2;AQ4>_3*?z_Q!1 zmV*`iR%{bG_=ti!^D4hcy~VhVj>)3qpH?Aon#ivbhrcFkF$dr;+&A#0!bMB(){yKG(i|W&`?MCD*FI6{Qx?x?J~mm$zTvzC8Ego=dr-qKWwp zbsx^Z#8-RWK2{W39KftY@6=^z(~I>5`RB6FoMC|j`gte z%xY1L*V6{g`gH{pVqc^AhDHY?=$gcGK_kQvvWbcwr72n|Fnbm(5A-@3jGM;IjBM4sB$2SJ| zZLN)uzWXgcXbxQ1c|mi&@ZyESX<>1u^_YMv ziw0=~7KD3PV|S2t2Lwls-Wf%MF#GsVczoq_qbQuT>2xYx{S@Y^!YlF*isJUL@YiB3 zvj+^F5;5SZM`z`J(87GnpJ45F*5h$h_q}`1hmZCy*DDIrQuBi>M{b}NWb&~r_zqtPZ}$ihA9K9Ar-Aqv1J* zUXyP#OmduI&1X(~-)E4+fmZ72%AQ8zUz7X5t8yGKiSKNP3-KYPUL8&9ZH>92(5NRp z=JZW>&y3JV5XyO3ZG8J(4?OS-fbhg=n{60Er){FSbzp*WudaCWW_2)oiP~Ppdd~o@ zPKQh+i%hB`+JVfKLE7~5M>J_A8AmNe+U&P+Wq&_fm~9BD!a97$kcpg=gM)$&(>;yE zza~DsAg^7C^V_zC>MUz~{0xLRo4H*upV%HjZ40^DH)X`I!ed2RHOY7e-u=|Q4?Ozl ztOqKF$wSFGvppr3Wb}HSR?XX4!Ffi1<}!PFPe`V&o-)z#1$g1MRzCQ+|m7`a(&CpPe63SOK}V1k_yIvuaz%w})1OUX(J#4pWL z!gemv#>VN?YBVrcSJ`LeJ^lI(d-UE|VpQX$KHDJGJn9-t3(R ziWXM$ysxsSG5A5kJH$;CC*;V>b;?t!6)ZT%GmUQ6>}}+pd?-Piy?kfUfYEUoahp|r zd6cPEJ`y&2c51%{0nZmiuf?fyiF$pJ+Uh%FbHgWD$Ne_cdS8xv`0@?JWTM@#`lTQ; zu3>?>V@ER2S@N%!sP|_dIofHW50qRw-O~{KAZZs`qOF7|1g3=GxrIKFW7``z*TVxF zd<}g^B&3JUM(F6g$#Lt`BVLX}SJm24sxV}+Om64v5Za_FM97(tka5(&aiWL2+~D=G zm$nabnlF2Oxf`;wC`XQvFzqcynkg3%MT8WU9XnL2odwr*w82CMEvfEl41S305_s1y z2TS4y-Lrz_RM*`sh-Yg~n0@Bp$-#Qf1p0jg>v6}%t&Gs2NkT|Gbq-J5S{Wj6ccWt{ z0ilv`!gtu$001BWNkl;Mq4Atow5DJ<8_fWR-4u1LBUE=X|+RMtTOPAx8ap5 zgwed7!Y^WHOj0^)v!MP%b${C)p_UXTF<{DR|FHK84rHHTskjL-=)?^?IEb zJ&r=+mZ$5(;%ZX#nKQmdXtqj~I-fsu!Gcs{w}*$nHyOR@ujX0a5r4)tsGx@R8MfDx z6kxPLvKd7&_pSROiFWXOo84ah;DbmNr!#=`()!j96u?CCZ`UO_#UhP?6?n-c) zeO5c$n36HH**Q_OK~Impf~Hf(iBsa$GZ;meT9;u#=&{*h0|fplJYFLwfk3eX>vs8^ zKF+hfmft?dX3IHUP19 zu%kgTg2d3cf%lE(vYbBWutEKOyw6KI2T|I=lc^cD2vPJ3f$A2|dm0DX^dZ3yjxd-y zD|@x|>lPDTVnTl48_Rkx;Zk4wpN&u5=XUPp`JWGMpwzQdkLk(B;^M-VG)gHdubNi6 zluBK({;}Ep2Hf3mfU4Grr)8QFmd7eujb6d+b2;6Vv%zca@+g(jh$1L*mzW>~u1X-V z4UMk&ZA3hHlA@CTkeU83Ba~l!v$)cC+G{=|h|&fkD}jCaZc?r%UMgGi)PkZZQpwZ=~Fh zKk&NliLE<5wb2#j*&FFHvbgYf#&(O1by5)C9{1T#R zJ)SmBzs37F{bSiAb*91k=7*z)7~|4`cL&a?rmY`ZxNgai3Ax7|IW22xk1>U$$b^ys z{RaFZqTeuu&k{SEn1m*v@Nm6*;%hg~cT7mwjvi}u6LFT=M7 z6YFg@8eJ)$i;TSV2S3PbvL62rv4E1m(KM;2J8#m(H|b8R#b7PADV0b)gV5{a;^K-l z7FFu~lc+ziE{`VbJzkGTiTm>e-f189Ti!4rH38gwR_ z&Z0Ami}i|^-+YXsV}W^bI^xix-!DFdR4Sw` z?43hk{zkr%mo`~T;xT-nzqEGe29kb{ER0KEo}pDL{8vMkr>Ackiej~|%4wc&xl*lX zQwaTVtHdsQgMkW1>RET!d~MX%n*xkW$A z8o`R{r~5_T@&3z&J>B>_Ad2p*9{C4aBS@3J_*g!jqD7QtN$mPK&HA`0kNL%`!JAeV z#umlNIf^P`@~gnUR*s@fRKh-|o*?Qe3JraD*dveJ`-rX~RU7s`XR~?PGm^2(>2w80 zlaxB|9Mbd`JUO$B)ac2>A_g$h$UOqbSN7I%l;0PoyZF*BnzN|RV(YphM5a)>p>dOr zX2fY`9LpTSw+UDK1W(gy@j@L^e6XKcrw(CSxp;zP`|#dqy`G#mFK_50{qB9>-baSa zOp7bD4?bz@IvpLo#OX?*$2zIBbNE6x9yWNQl8lZ>F!MO1ZujuQ>4Kha{tuR0i^9l7 zRKsysP>}Y76ZwVV1?h2`^d)MwTDv(oUJ}~GD+PNRn?3OZ8Bu6c4-b~44LUt5jM>0$ zh>q4%1BUf`@R57_1xI9P;^HjE2ImYPWjyY5T4}5C#zj0~-DpFkl_bT$Fl-+$e$3g% z_RqUbN>2u{RA{2LpwvSeXaldjbkP#4#!SF@+`VO z5yU_#_#<_rDE84g6NvaxF7(*2e*HpxKVOdG;$Ca;<}m3xr_pI7T~_r4dB*Uz2p#G6 z=180ssZtH0PexM8tfG3X>YGY>LLn@;SeT=l~^Bp?vCbFnNKQvye*4>Dn zGDSUN=2tTZ$_BGtF-2Xg$j}GF{{1sZr#|FR78=k`C8~w{C!w91^W>0dNXjp?KFR$Z#!9x0D zwYKvpsaHRyo}xFN@HV&Nfw)-Z#}sc)kEhj>@g(bqBM4`7ZR_3r9ugW^m#bT~@rhN)Wsp|2Z32?oOeb;eYQBpoWm! zen=4UGu^^oWjK1vRXJh=gRW<4X_^iTfG014cj3as>AV=2MbXB$02x1bIPAT3G_NdD zoxRQM3-n`3EGD3XOt~sab!lnmHAl493nyu{>Z9q}Vtr>ZVJdzeMfc--|^U^wy-03V|-%t`+ zhrPva|I3e1jrm`PXMXwJ;ifOYyfa_qx3j`Po|6~$ydqB!pYG|xm;X?$Teto|QU3KK zVE~|72cj%iE2E3+4e-uY-n9(opq=|=VTSeCJU*UsI;%K>Hccc~>g=t%LIx@=VUx&* z{UPTMC?@If6k}C>tR^;AV-o@nACE0`h%FAE!@HUMmrnhE!^mR!-kv4!7Q9*ThoG;6 z&;m=7C1^p@0`z6m;RSF1OJDl8(#W!Q-hRKxHMdFt8b0*-hWGITl<0iy#T#*(3d6z* z3bfkz8CtEr987L>q7S+SSD?vy`O0F_@w#XBRP+P^{P41fIKZ^z7LL z`6=SBA~VwJX7AUcwR841 zwi(%(vG|aFtjZ5D2Dkpew8H%S`~w*U>4k+_9Zl#)e% z?d|sIRFUd`@6ogbpt%i}#qu4$nk<$DL5G`ynie#nxrY~^rUeTY{9*j~!>_#Z_5#bV zPAyurX#BFdi^h*%^gQe?TD)k{ukZ$*{pwe+yXg7x&o6%dP5>BWx8p%&9LMkS@qvj! zUFa(bRP0I3#r*5}9fgw$Zxj}*)kVeXczu?h)RXU+4B$k>knNs{Rm5c*N$P3Zy{p#k z;|~p0D(k!I&l`X5^Wx?4P3_D@RB+Cv%0L&>QMRTqtx#JSf;dUy8?h5A$skM9Tzui|1=kiVn7d%X{=*07E@=7^L$zr9E8{UNco#5Qym-;F zMbE#o_?hPyFa8xgURk_&@iWgp|IFfN7C-yUv#@#g87$A<5df>JIIv_Q+sftScAqBB zOTY&g#_c?xov%5s0sd*#g+-k-y@8^21W6L!W{#5vS`(Vj)Mo6E`Iy@#mg2y10XG1yzJm& zEYB=n`t0JRi!fL#o_%)33oBlD_St7&c;SU-<(n)k@aB#HSW-zs7=|t)yZ4qMLVnP% zy2984u?3pzars~Y(~p7^Dbi<=q(M&`j_X}M2gfoesClHin&=|QE{X&cPqNkCmFmu$ zsaho>O_YhETx3_qq>PRmd3w57Uw{jX>M7kr=OnKgPc&(7IY=Lsmw(4xLtwrv*n}Ov z*3>lj%ee~{AvFH&MPDx3KOWQT;P|;I=bj5}p8H?qjsO@`RoP{;BMI@hN2Va`gL5?NV$bKV*A!~b7Z%(oDk?69 zh|WNP!tSE7HZ)ipo4x*BPNUVTG+6;xE0xl9oFxCu4c2z(G_gi^mDTC2A-hauz4km( zlay(Bfg12D{#d$ov3l-XoI#=+#|)RySHJUI-xdS5Uopd*}7%o`d^yufGVpSn&3a z0a#geg0E|F-l}RoanD_T$#?a_G%$kSXw$XWgQ(eG;+{Id&q@)MEGcAtT47ul?q;HBn(X>h7qZ?cCQXK7Z2=h4_{?^EH3RwL%n(VkLa@nt zgEpZr$B*A};qa-sr^a8ycIg%&WQ7K9f0I~xAs_{zI)eW@M(?uBxu!2^ScAjun8cA)( z+c(Rdt}@cn)ph(&^fjcrSx=IMn#>HfzQNHJh+x`U1YTVfP4#Eo2N8#x2A*xRQtumS{T`NMty#Q}qfP2cr@=}Pq&39~TI;OpLP$BH+U3&Uqzk&p zE_AKPaPy|A=zP2`Q!TXxu4Ev!x5(p*{7nV4&SY4)Z0WM!FI~I>Q*GI@XKxw#=kV=y zta&d2T)-^MB;XOoYbwTN>Wgo@@wCjT7Xhp-_{r2So__l2sZ#+S!0L_2$Sqq|ZP^kz z6*gZ)!OoVgtF{7stGB}5mZ&=fV9@$XtF`p@vwZq-75A48Z z>*_lNU{Fxa_eLf=#H*v2Q9pYEGS|GF`Nz`pj{*lLe(PbKBxNvIT@bwJCl_<4A^O=@ zZLK!N*XvDspb=>`Zlj#m{Wml6(`gsr3S#Owf6P>Tvz{JOhy<=pIJ;K{u1&UmuD2XQCl~zUY(2&-!TUMmG~iumYB2t zzF*@4l;(WFjbd%#6nda&bCTFgoH#*|L^R>5wKaI%W-rf&Jh3vru((rKd_2MG92;05 z-$3II`kQ*XzLPeQCQ{ci$-#3zQ5-wa8R&h%g~xrx$2t*7et{MA*T0rICX-4g8f-8k zk-#y)YU&pF^EAc^4gr6*L`7kJ1Q_5M#v*DXAQO|kHFN$$e7S5AWvuvJV}m9-k2N}x-lju8ScqZ zF?gGdUrWZA0eJAC$lt)Tn2nfjtMLc0{zd`B$*YgUyGmnz3;=_0r3p8%y-q(wg^PF} zK@e@YX`(){=Ysx%6QSPJD-0*t;PumO&GOYTL}92}SESDJHgq|GqfV={q(oN?1T@il z;wD{hQh%i2IL_|tCrWk3$!=q?D1j3xDlVb*Uw}{Cf^FD$ctr+4i;-aqO$JC}0H4qp zKxboOVoYhwZa}LP?#Ti4VlYVfT`{4_7_iWdTLChxyz*^z^6IToe*)xV0L5hd?x>BW zyOU$8l9PW7{CF@;l6;jF5$RT{a2ao!_WfdA2}CNC9O;pSUXvb|p&agKn7|v`8V3(n ztY3KoK&n%9g0H4KX~55PQ@+58f!1jY?LO~UJ`Q&pFe#MIwSi$q(PV+4*su|6WkAcK zpozd0Kx?DSs^l1e3uIhkOx4Di(!`j=nB9p0UUDKvEeZn~1(+p=0@4^pnS@cHn5BSU z%vRWmiCK;H8Iv+OdE?fNSap*zj`-h{{wQPWB)s@A?(YF;3U?Mxuvks7BAE`?UH-oO)Ss&ZNyhBmnbQaSkod6?fFil(43Lu~l z{$b$4IMRJ2F+6x|CkD3)lx<^_tbo6TO(MRR!6vb+w6r=gsjRFlaU47;ld;4Q1_V=X zeWc|nH5J(F+mL?~b!Vcj4BjD%nHi0q; zRhsOKSc_`HLe=})U68JILAY!rXQ+-I)9KW_+=nbNZF62FiF%!G_$)yJM%ul+q06Ex z$<%=f1TDTv(+Ww#OU1Kz253O$H|CPcn&B;q^J-6X^DfdBpx0PH59XqP*^r4X&Q;D%m@CJcFkFj;ZM#ZbIr={E)HKNU_6bS1a@ znPK{(qv~Ng<%SyX83^tiJXsksDGl;xy-r^Yk<7QQZFbQNX)nCpd=I9C5|gk#1JN8{II?z$;5*V++s>g0h>hG0w#Ck7h0N_EJF(@Y>W!nK)B&ZCV922 zyl?=AI$LE7Aq;}dL)K#Kh9j|KiA)AOBkvq=xbAiewm8d|Rk#&T8 z`4fr_daKDw=pjSMSgBL1)xq(fZ}SBIa`F_SUaeEcH{vlhqR%U|vX_smVh_X}!8Q(4 z5WOi#Ux}@vU8eRd(JS%}ul186_(c+{O98cVAX^#0R|?RTzxz^Id0BaRIR+G@tXsQ( zn>a2sW~5#hK2@WJq%C`IHE`#tH^3A$BWoUZHe3}2aJGw>BgAPN_UrT zECnxeM}Wg!FLK=y?Fho;6NG>hW<`OutJHDFinMuD$dDmJc4g59B_!y&^vzmjc<{%R zTC45+2sUc%*=Sr{;d#MfXFcvNr*=ZvxeP?t-_)1T_%bTf^jT#~c-d50;g||1PU8uc@xBSyPr=l~`k|sQtm{$(>eB7lOXFG#y@$-Hc72 zj2@13CA<_nVO3`o>VZV6AwyI&t^8uu)W|}eI`{)HWd63?hCXWT67A5I)|N}6;HYC= zP8V-=R#g@kXLfe#^YB>z+#zzHh%*mxBG?R`<@rl)lgU)|QsQTciEGL+SXh;1tCy7c zQh8a@yYLh+ElVtWDY3j1zbyc!9M<4SE);xex5L2O(z4$s0&zbB9w*k6m4Ut|Csvo2 z?T&#@R@co2VRtd zWj$7>%h^TO)5mC?KI9mEgKveGFL9Eu(66CnOynM2vqN26}6EQ|cH6{=@M`7v(BIr_V0TW9BVE7C`mjv%FuPD1*URzsUQCnMk z@?_2Bn)0%W-H8C#W%tRGwY3$sHQ;Vat4fo1?~dA?Tvc9PQ(p7W60UoTJN|Z{w+~xR z9sboTi(XlLYSF=EE0!&@1+GfSi1^xEVmrjscJ_=j%K)B(iY|&CGGWL&I7fK3Xcy!D zoDD7{mxRnxYlAaGaBSpGGyj=-Yh9Drr+;bcU=Csbr9@1saTsF&tGfJT zdHH8aYbt<9<<)B%Puoua(RT9BHlWo>03H}u4&B8WGx>+Ta5r@L&zAsQ(}HVR}Nm!Uv?0%Te0GW6^s4dafwvN;EQuXAXCRX zU9^cLkCS9EJ!ry&-(vrkwJA%X-K7=!SAwFoILr*HRUxG80xZ$vd=#i^WJ)r!OgK^(e7u8y3#1qU-YUEGo!CEox^czg0c7Dxl{ znhv8NwBXv?r`}$+=o;X*_~25&ZpG5?YUD4z{>G})fiyu9ni+=i0h+C>*bY|hIB7DG zCc1ve|0E`rCMAWW7p7}gE?E-7C^R38coP!8Hc{Lz2(6sWzSin=R#jgfUEEn*)Tu7g zm$U+~c;U8hJsztS?51F?>9QKK3|25*wPoV~x!OOUww+=BY-cNMw$rEo2W(zh5{4lEoKclW?*yO_f_ zb7q#cR#sJ2U))T0s*8(@byvj}u7wlug=w78cR>cidDM=oV!E@kvSN)5dSF&XEu)gA&Ug)2;VmjeU>S|oF@AHSn zd;kC-07*naRF+j+aBU~@HxNU=flJb>*npnk-F0UmpI$wZn%G z|7z}$WzR1y5%2+E0$Di%UK~#I^0k zD^Y_nND#qJR_Q|QbS6zhmRs6g7$}v46L|95ae)KBmCYFBxuA@I*G7o*AmED%1@HjC zs2KTKw`>dq%Te9;NX$XGTD@h_-dcE?Tr>(cJw94=#J|dAWaZMF6?iUk~)oJROM* z#FpPgf?L8`g3ZcCse7dzk+(PEy%QdTn>G^B*g)Iw#7IM#;JxkSJM~fro&T47VIfgKNRjBE)tT*j~atIgsbB zmOXCds?`7-?iX1t*R^rF9F<)9*=2}&zz@0L59BJ?;oyQQ&Lk{NsHtf|)7%{k7J!F6 z2)ExaTl_5UIy{cLMQ}hMEeKv=L=kPuEHD{J0HoU|U<#GV*+pmoADs4P8v_9f1`juFEB^ODi!xlv2i2~=Tn>h! zs;Vq`cR55ujqpi`!K=z(1MnftyHibXkKeKX;G$RFhOiEpw-f>sJk$ZZSKPfdb=9h= zz_`djtz0gX$v-WeZ)ws?IE!KeqxE<{zL+&<_d08N>A_DxA+6N$<7>(wm;l{M9H-Fa zXKS*j?a0rMz3XRKKByB<0R8Mf&Tgurs+?7iX^-8|9=TE2`IhA7#c#zH0V}Y4b#eN* zuAt+an}!&Z%|}Cly>rjDz5w9e zckSV#+c>L@^_i%y%Hz(Cj$^NN96MI1V4OZlyo8t4#uNnMii&hv6J3Jq@<4h>!(zt8 z#3WT*hU^Qzp#~BQ8{}YsUq!{`q+|%C!B$mcRWAc|wVk$|yj%hK>$?y;R#cQi%)Axj zuyLc@zlOPi?NR_kFzd;srCa{AMdl^w?`~W9<SF?H0@9xG;9F|N3>@DR`T17_+Ui&dO>MbF1{5_}iqicOi36dUqTHnHwH+D>2jC zU0##TRcWA2UB|IgaBdry1Wb7MA2p}apU^+SRt1M-%`hOtb=z5mqds74rQ>CMJAl8+Ac#9hn27#zyrRO16ne8 z03W=JUr4I`BTho(n#@KxZ(J$F<|YP5G~F>^XjGu!w>l8LM0Ll|xE2i-a4WcwNZf-C z{-&0-*&uF$Jg>Yo`7&#}T#kRX%a?-|0dkOs$%Ef;SN@AH;!Z;Oe_uzZ^1I8xXO2_iwR^%V#X>S}5+`h>6;|aqDfv z6BAmB%hrjB)rml)m{MFV-4ZExSw_j-aIn7x7X?@2K9HD=Kytv(=7FE=GW>e@7d(9$ zLuw0>c_&*t08ftUZ%@qHX%*NAl(3}Cw- znH+4yF%wOf7);ix&wv}au7N-D($94lHTjz~c+B8BW*fvk3h`cS3GdoP)b27IKWF(sva`*$MhWp4MGLd^Z zqPnBJF60TZ-ZNY;Qa2y7aSfb2P_>Xco+}72&Ah^4# z=CjWdt1s{I*s7Dtch`IdLP!ix{pa9EG~Z!l0+tFtns@cQ-Z+4qY(rlz*0=Krng z+hQ9@v-5vAsdM?xIo~-o3>TjNwDNZB^H9K@{`!OU8~1PAc<|iWbfenuBZBt_r<3Em zzotvZ%Jd?^7OfXMW@c#)<;5b|sG z<#6a$@cUa^&;7}7yi|Gi;r^3n%*^gQdwM*1saEY@`qVG}Y_GSqzEyc}gV?k&dv`G{^sw!`g{NA`#goxTkwEC zK0DptJE?xKb8_itfARl3eEVC!TKUzND>uKn{@;?xn;%eqy_1vbfRaHB(D_~q6r9Ur zP8^p=u$DsRi>{!F<4ClF1_i7O<~qY+2k#!Xl+=BX{21x-N~wyO8)-zm6!u!m&A4XC z$asc}1V*@QHF(8F0~f2!pjCtfgTQVEtmosa6)q?;1fwflUY-qo!n(YjrWliKGT8ZC zo~?#J%oe#flCm^=hCcHqXjp;?$l3Y(2k(FKcWTG|!;MlEM%-xD$|qGxJ>f#xW>mTI z>G7}s?`ieX^z8A~+Sm5`uYcla{<`vTohb0e{RgjpsTD?_zqVhi!H)Y4 zP4Nf{^k~w@b>c#SE)89_!V!{zOrUrUSqPQ|onu6`@=*s#2Sl0??Ne6ku+YpJsUSUO zA)0HrK!b3F2nL2x_6P&rjN{iJLPsLIvAMPFf+mCJPL-X$UIKRGhNQ zh42{Zbda<2Q7)a2^0_EaKVqxILmI5Aex!nQ;IIx2_;UXJ^VxH~&+k=t;Qac3u?H76 z@bv_ZJqdi!L&`fL7vV==-~ZzKEPK6k_Jh$6zw-tH#a^$vSNg=CZd59-R36@6U#~p; zXMlK7cy&OkdEZ|RNMuP6-WAwm8&e3A-(kIXFy(2pKQy)G$`-Rat0P@+{4<0=_YV7YdzE~aX|JI*YuK)gn z>(}4Dar43bnni`zUm7&_dY13R=1Czs36Dhttth!1EQxRc{)_Q}90UilgR{5j`NC*z z)EUB#^YyS^ABIF8mScLVv}~A!yjsE4T+K5eEZ#TCe|E{|g(S&>DI-lO2|v~MYm{ff z^vwbb5KU*b)?5&wK}=A+bSOar?<&Vc9EKV|dUo94r~2U@jaF%(&G?)STQFZF{AZ)% zFV4=V2cNxGtyQbr{gYa`e??P-D46iiRPJ&*hG$yeJh=2XXYYUZHnKG27f+A(iJxmn zAAaF*y>j#L`u*!)c<|s~vHJ~S=*^Qi*_)IcvY`I1?g8(oq2Ww_!!Kd;TeP(i+Qzp&I(^*P_moqI#(Kd(*O%fA<4aSdissQe?K1dYadj5P{0pgdHA)B|8V8u`u+9mH|~Fxuoprr z2!Rjp1G#tDg1HWJ!)PcXRNgKo_X)3xp3oAesSn)x7@w=&?T&6EX@vksoqANahLA9D zkVt}5a+Y7HbS4RvkO#S_4t-%NlgeaWk)8odc2ilioGAk-;!e3-W^jh8@_K>3E(Bny zzmTiL4?-|$=vNxbXA?x{)5$bd4=4~CfPex-m1dX$G=;nwi_Z_H)3c|Ko<3{#IvcDZ zT-zE{89@a8Lt!g7Uw(P>yFz$7J-%`8?!B|_DYDzipx>|JnYHGi^|`95SA|0VwQTIe_uttVk)mPJ;m=MG~P17@cKrg}x+5sUj09z|)MPUno*bfSn zvgn;jA4uUb`|=8glv7I_YjBP1BD^2vmn~)0mzzx)sgzri-dVQ9CzTAul~So>WET)A z7<3`R7oyzCO0M3?$MINFIh(0lGL6s-v0C{T;Er>4TOGe{k?L3K=>a;xqmRIe7W-Q3kTde{=I{<&%N@c)9IhzyLUQ%iaf4N zyjW|#_|;dgyz=3{-`sq$ceu6r;BBNEh#Mr`B3@_-l}W3d+!rEl0UyH@UNo8Wly*ai zfRv_)hwSm7h+tA=)l(iX2C4MM{*eI;T|DOax} z8Nm^@0z`y!wjIyUhutUp&3?7F->=sCD{Xkobabh5^R=z@*Ir}XIGw)n{(FdJb3ql6cGq= z<2eO{gF+^z;d%uLo`|hvtsx^x2xkodM=utHalmo|IV~{Zj3Mm~ct2Nz?7Whzm0jW% zI65~&3l&ju_)BI_mb3FOnR3dO3^DG~LM~4)m;-1Ib0HJod>$f1RA#`S9FYe{QnGBX z)a&&Qn^|EUs!BE!B4g|9ju889Lko}l{ld(Wd>uY6IJ9`l_-Q z_hJ_LxmoLF?}GV+lVK`mdTKra@zj*6ilA#)H*aWcVm6qF0K+s{j-g^Ye$z3F4M%G< zfP#Qaa16{EN01nRO*Vo)8qADusoN0jaxBq>+zJHv0<_J30XPt%qrSbs8?@)qXqbyS zP`eyUzB$Hfn0h3+93XfQ)ZRaxbw|_NliRza>em{LT5Z1!4Q#*%ghB4P%Hj6r&dVFG zee(2djDORE*WUd6^x5di`0jr!Lxcc3y(ro%*QzI1w-3L~D01b)NUA?}z$S{HmWsSk zNy$WENlPP(^vd0{mYdCJb|p>=y{B0aFn1b8Bm4 zGObW%&^G)&B(@F$+yw5CMkYC-=lAYC`~Jb_Uw?fMidWr7RIN7ltG^`Wm;5i^tZZ#n zHYywIUlOoA?M}9uU%oOP^DH4RZ&Z<`FkIIiI^jibAx5}H!hlDRAy)biN;fjSkCpx}n@i0x)rbIGvmjF&4|f?7P! z@MH>(5g1NzQ54P)n^hx;vDQK3IMgY_!m;u#XWeD`K&n(dOhXAtOQf)*^&kz1`fw#T z%&m~SC_sXL8ve;f767On<+!}%;OXCe>DM2B=cEq_vJdi|y(%CMLiDE|UfHZXto-(s zN@aF@``+>0)4x1@^=9SZE8DO42fbRORxOvslnVR%C;PR=;o;WHn{Dz!+3VJuQoTqs zk%9Dr!0}l&g8m_F=!%uGBqb^8T|sH5sj0aRc@Utkz?MdVJr0j)uayeN`h`IrW9jEJb(AR66SLJ^%>q;fS_{qG$3HE4vVdKaUYR_7tt`v z=L0rZ0jgw9C20joX(#%SBy#;1rX-^N@Zh_b-g>mvdL&~=$ZV^d(AH$|^Xrw$VdV>N zKd9VX?@aHWve^I0>R_<7H`wX*2G`&N2bR@D7NG~L4qRgS+Tmue)uQlVSj|F#^*gJe zMqwbW1Pzo88{vF23`0<`I%%UZLYPt{kW!x1_%!LOxtb~$uw_YUEg1kQi@fbgK?X?0 zUF2{g2VaeBMmQ@lT|))mY-+A?1cJ*V!<3pihWt_s%s}dSK{0tMqr?lSVLd15X3RUb z;x>|P3mZ|-dNEJ+>My6h zeD6oSqpLf$#-j#|v2L>|yK?E~&0jfu`TF(4n>Szk%IRND_Mg4?aFqwhETIt zZuVqsqgW)p$|=Zv3yY;rhUtRT+YKcwcWEh;m=6-F8BCU*q!qz3)Lg0%29$}^mW)tJ zIf0moNkY8PLsj)3LmPg4mO zR-%y#7nJ011T-BXk^o*a(@09eRMoC@{W9a0qZd^rEBJ0a4tI9`*7u)X+T5%@I;!>i zSJRxZ3hWmjY-}AK{>u7;t%sG3H%I5caPqH@T047>r~kFJxwSPIY&$i$G`4G*b0iXp zf*PQth6A01+#8X}Lp2*-*eB+eW_B zr{_&gV0c9bNvH}vo={Xw{Cnp=KD+mcXOFAb2Adl{zca7^{sXK1=K99Q2b+V+%^O=c zw?DYPeQER){cGDt{lRwiYH#pnb-zJz6@)lO@~8|RPyumWlkS=sTdWxHk_bn&Z=iYJ zlH4}qSzufzfI&<{^XBwO*=L|BThH)$t|tyqvJGjiK!q&e6f(lu z+3BVIs~lt9yDIc}9EgYC+<5I~<&Pl7hwBxm%0NSet)M4oay znOxkF)*=(u8 zam*o&+e4Zuv*Luo8A&IoZc7NYZbtAPQ5>Vkk`kq}q)RD*<&}h2kjW!WR%#F(3#!&g zGWAjvWlBhme8rTzDDealc+r4zGWfb#Vnl<#HpuN=G~%F}H9lR+#=fpJ2i40e8By{} zEiXuq+-AZdBm!M4o7N5QLI%Y2|T-{#1LVmPR2j{-UxxU9<_z=Y5(E3 zzFAqn{^k{6mddr>&R|dl@au7My4UYP%Pch-PHvQ^cm|&AGSEC48lwc~_sRG+7(&F7 zxxPTuNeDm%yp<)Tzm80)(nHgh%TjM)${{f$W?f0Nl{TA{u@s8o!Qmqr$wgci7+8w| z5>%C#=i>?jZI)q!*~#+?3GxwT$_sXo18&LN`O9k1%)YEUtlC@bGcXWamj$*Y*_Ci~ zqM9Ih=N*ABJRb^oNKPkjP5O@-1V6~7!+if?<(0}#Wn+sn+oCBmhX4Q?c}YY;RM^^~ z@CH0-Ub$B-CN#AV!*lq8!ZTy-nMw!)Bq^RB+lxQCE9gxVy<2hx5XzvgmM9ddztV5I zpo~k5$tZpwpUd=2gs#a80Sf7U>?aLTI#$rlAXCte28L^W3Q7u7$_3|7B ziba100R{@%%o-R7)h z%h#W)RJd=kvN1UMwW`PtU*!S2O_~r_SXDvrC>EsE%&9fUjHkpE=2e~xkra0m3?^`e z7mE?34k&nrbWaw%q%Lg=)*-i9E7LkXS)b!&Bv})%&6ON%`(`ykh8${e%?wSL%VZWs z{Zux$IM3-W>Mu%siy}N|pe%=CMzRowYzn9INyHCn0R?*UGRyfNg$$@2r{*mg_(qbY zA8@Ad{quPUo=lGRTEjH*6T(ABAFN+_?LV*o!OhAh$7^~U6kv6~)+;&9C8?fB+@$wg zCI7@?M_0CuXe!;uKS+!gNKU6pBs{@_^O_cvNOAC`n&8Rki+Dg*wmbv3i2xx}wtXc9 z@hCx-a_CH#_$cJceE`JQtWS?Jv0Vjc+0|7C* zW$Q^jX31F6WoK-9+i6(P&7_kfC{%YADL49|%rjVU%TNx_+1Glsji+D+OdOtX2%g)+%Fb zx>T2iUe5=(p2U>F3jpQCMFsn0hm62$Mrn^8(p;qdrWR!#kBe&o%YvQV#d!tGy-+<> z{ZnRbr~o1&L=Z^^>0DZsp>3h@!6Ghey2W8pvOJ_cHy@4?L$(S3D8qaAxW3@-@#Lg; z}~g|C)H~8gIcZ8aI}Q(#jG9%Nlmsscw8!?#cnQk z`A|WGPnsapwM4>OlB}0nm(Y;b$=)0e4Cx|~d7_e0t+tF56+Goa1x^#XXbQM^;$2;L z?qU&v-7M^Uk)F>rR0WHsY^VgJl=@f-qB0Y4kg*fYE(p7T?aY`Ks|aq$$MU(PEo01S zx<09n(|}hk?I7ODAw-wc)2ELfJ?4nFKyG-<=f3&ywHr6C-+1u#!JiGT_IIj~U8@l^ zl)WiG=ZOdE|rYT zBB5KzL0D-!rd;EjjF=%g3HCgXBgvQ&6#kK3u*?HR$5-2lrhoFrJ_Jb82cZRk;_p|! z`L~rD>o?Xb4>x;TAMBje8vCpjD-w{j6~$DE=7?MpW=83cgwKprNW|~CiXyKq%`YKu zau_`tg0K4tX$^a-v*{_aP)4#_M;HdOdniLhr0`2-u6Zo~#c7?~WDH^2p<*t>u;ji{ z7c@Rfgq1F)mK73=je5Z*lQ;HxX?92Khy;&x$dDZW25+AsSa@~1Q#ep4n%~o>kKZ^t z8tQC+s>)sRxd-2>y!y)Z8?U@}V`KAkn`Db7a$4t6?crx zP+AVTd8Fv+`uTe@Px#|^r_YYt)4w=+>_b8YMML#3z4)U){)rF&`rllCaKEy#vH1b8 zA0UxaC=|F#PACDIr^v(?ORiWfi2I96^RknCSVKh-5h4c_xPd6_PP(H}$m%#XP-k`8 zljMaVmT(UdC81W8c#4d{L|KP{6r>0nD`QHQ1G4d(k}3j3gFh<>2C-N&IU{=kVwUHw zQEsxppq5+0gmd-r^w#)RcWtenx9jz~WF+ivAyG;QQ=8CNma5PQ6P7(Wmo2)_Cdbd- z_@n)!$1hoqwW4Z<#UI^~_;T=7)IY$IU%d8_C+|7FHa3E~~! z|K4-k+top@I$xip@B=?xMjV#xuW{z8C~i@16+E>GOD{;JS>ueV%yC6YD>us3*P^xE z?ya>^9&SUYX%iFavAp^JX|&uJCKY|^HQ5AQ+aw#sWWS;~!$o=ymZDw8TEb~p`Mbpn zb5)I_<%=*p$A)hF*z@p#a9;=_+$9Wbi395t;J{4vnW>FsJ~d+!ZIU{d;h*(N8^`Mnt6e1CH1+TnIpAr~#SP(FBrjWJlC13R?!wuOCothoy+eYLg3iu`OJ!Nc z0^pRUCA;eIklc5wsh975N2FQqmOL=h>e~t$~)>NN6!;kfar6(do zw9vdnJXcG>U6xBvrA@+lQsGZ$n@kFWN4KU&PbbG)d%aLtsxkuGyRHJfXF?w5D2UF}OLLN@a;N8#B49eC+b)OTXu>d8(V#`+W9W~67Ef8uo}iEvG}J&HaHvPJADBnk-|0g=O3f#dsOMDZ)asQjp;Rj?v~ zIsQ~qMp!44(XHKERKj{x583^+IP#?x%s7CUvVj*EuswmaI}PYH)mk>c2ptRBxx`$g z%#Nl@R)WAy(;%RhUVExUUnq=@)I|;9|C8Z`KB_RXfV_yqHIR>_Be7eT9hstd^RmpU zY904oBM;)N>WE7I<4CR}^ z3Er9z1+GQIFbwjXUda0-z?p@D1Ytlu4ewO7G}X>x`H^fz=zuKUkbyvV$Y!R?h7#@z ztS+(ApE53-UCPaVEQYxAn39qL4a@usmu=tfPA2uVl}v|3(bA7g5_i>Epw376`U*gV z@_lf4IZLWq(&p5p!O2eXYS@WZ&(#i?>AQEP)5+ugK~-9zqIAp-WTMisM!TJs)f$c{ zhfXW-6^3&Xg|OZVtXg5zt#c3;DN(08+1(wj0l9QX-R`Y%mzK$YBa(MI;iwKB9EL%Q zd>+oP^Ur7nUoVQYr4WsHjGq`(ZRIst(uOh`G7189G+4HE%Mcq)+9(^Mk#u&*NQ{(m z5jtFVxpWbhOR;blAf&as<4G>fdVtIWvvzt}%@iO+P;C$#0Bv2L{UrV=gqfy>!0T$QcLc^#f<#^d$pv$a6f%B#s&9Tsl+CxN)$&@N5 z?r%I%0)!}c@ozL*<0SdB(I|q?BmQ$_Y_Keg?mai9>@`!)D9{3*h_qU!xRCLY?o8%0 z3o=qbFv?P&hDp<$MQ9}>8)tJuNBCHUU%E;xXR#BKU)75o!t@>4Ct#^1q)eY8SWj1m zyKULVXN9?XE>t^~e83thEinqi&A07{De~#`+38DH^vH8QHsWy$!K=Y;i$ecpmExuJj5ZgWauZS5A#cRHRJf)lc0Q;9mr(FIlX{vqkPUHV{o@+Q@FMes2oRj zzve7ybp}@Zb*>3JJ%0ClPu@7$-}C)pN9gfH+8P~Iz=-J~t-4GSZd10PXyTd$!AwIYtot~ZFIepZB zG}!C+{IC^qF^FCa$R_p0R%Kb005<`c_^TegXOYl_tF1NJ@nFFt)>xu00|z^apgyGR zLcbk_K?gcK+3h}?h~#9K#;Efa_XYZ)Vm3IQss>6|&J!vdsaPEC&}zk2*zVX-TNXz| ztHo7Dv4RvF3@#XR-I7vRN>PZu*-Q!lJ*zsJF}#NKppx6maEJ>E?K!!e$SN&MgVPpg zXgC@Pj1oecxuLp>f>7tctD~lZe9JBdYRhII8|Iy_{LSq=E>+kP}T-w^krSBA- zplu3eIqqF5sL7QUGMvxoXOd}^QIC6o*~rU;K4}&rxV|U|qG8fcM%-@#9ppZfA%s`& z%FR&+Z!nA;M^+PiG0~UESyBzv1(7x>nIM7Xx7+Ow)G&nb+kOLYfPMF}Aq<5wyl1&& zNLAHU^EG0&gnuQ3Vv-f4AP6BMhyadga7kKoV6goiYMvj}+d+WQc&_%9y@q%F9a`Pq8@Y z?+rCO$2Cvk|pz!cM!SwoRAk%0hF+a z<4@ru7_3^2@6=W~pziDTkh@&lfz!$b`1A<{__Rb>`nXg*+r-u8GS=n=EUUufrvJfPM$?I(VGm{`v2f7Oc z@F6yaQBFXzHb=_HQzTU<3B}Yb$&LXvqT(aXF zm93f%3oQj_Ui?%kmbm={@FIR``EEJmarr?YiA5%%%hH@oT%W-$#bCvo^n<95fHE16 zZ;hwp@n~oli+-z(=)Nl5D(R~)W;~hTH${9dAkNI81Wg*!tT@vlHVUsf3-II5oW@LB zoi$rfPJ_EVEN5nvl;9x76og9QWoOGX-YAt8Y?*Z=WRbo@?4Z~Hg zw}}Jm$WF%N@LY?0v z3~W7!a-q`2uwF-`jzUWj`~<)O>=Xi#oi{J9Qd2W(`a{czR&(`V!446fp@MggVZvRa z)^@8X=kqbuLKL2Q0sg#b%1&bv=CqjX>$z~U#hTv%&b=b#P5 z1*g|RvS6>)yVFtFWu@Im=-K5~N+cyyh_8;M7axghBB8Q5j(c(wq+MU@j*h#d?z0g* zWzh;eVG3!0jh^2qa+HnlxGVoSNxi>wF&o7(>N~|hO-(B8(z}%n=sxG9?)?b3?&)-lxOsYWC7#aot0s_ zv#iSq!`70!AOs$IH}Qd*EF6OXk!;k{5TCEifbB(fDg&t%2COFmG1|kNEHzvkb#gfy zXto~An-4PLMq zJoB5)nci|{e#0rwVAwOR0BJZguS{G+De|iX#Wg5Hi6OI6YMIT=1u;x7)j#(7wKCO4wb|-fb0w4=rYRVSkPcbwlV`d;JYjL|$_24;8qS04FFzq_) zt9PM<$Hz#DCtb+#R(B%X-`hT!uyQ^w)^$uA0&@nDz(jSz7Q|Q|P;lmO!YjFI>`E0!AwG<0#yk(9 z&a{y22)LHrSaDyUBkb%pgkjK$>hyWj>GAEbQ|CHK6+tM%2w2)`0S*?6Ty(^q1It~j z++%_C!?)Yb7GxE0Rh!3M9O{&39Pr^;8>(ENx{6!PR-@4>A|5xL{bF;qSqz#Dgf&Qy zsdCnHOKz$B{{Yx}06ilAhs6K@00(qQO+^RO0U8xDA0RJcbpQYW07*qoM6N<$f, ) + self.addMethod ('QString getParrotType()', self.get_type) + self.addMethod ('void setParrotType (QString)', self.set_type) + self.addMethod ('QString squawk()', self.squawk) + self.addMethod ('QStringList adjectives()', self.adjectives) + + # set up object variables + self.parrot_type = QString ("Norwegian Blue") + + def get_type (self): + return self.parrot_type + + def set_type (self, parrot_type): + self.parrot_type = parrot_type + + def squawk (self): + return "This parrot, a %s, is pining for the fjords" % (self.parrot_type) + + def adjectives (self): + adjList = ["passed on", "is no more", "ceased to be", "expired", "gone to meet his maker", + "a stiff", "bereft of life", "rests in peace", "metabolic processes are now history", + "off the twig", "kicked the bucket", "shuffled off his mortal coil", + "run down his curtain", "joined the bleedin' choir invisible", "THIS IS AN EX-PARROT"] + qadjList = QStringList () + for adj in adjList: + qadjList.append (adj) + + return qadjList + +description = "A basic application template" +version = "1.0" +aboutData = KAboutData ("testdcopexport", "petshop",\ + version, description, KAboutData.License_GPL,\ + "(C) 2003 whoever the author is") + +aboutData.addAuthor ("author1", "whatever they did", "email@somedomain") +aboutData.addAuthor ("author2", "they did something else", "another@email.address") + +KCmdLineArgs.init (sys.argv, aboutData) + +KCmdLineArgs.addCmdLineOptions ([("+files", "File to open")]) + +app = KApplication () +dcop = app.dcopClient () +appid = dcop.registerAs('petshop') +print "DCOP Application: %s starting" % appid + +parrot = DeadParrotObject() +another_parrot = DeadParrotObject('polly') + +print """ +Run kdcop and look for the 'petshop' application instance. + +This program exports the 'deadParrot' and 'polly' objects. +Double-clicking those object's methods will allow you to get or set data. + +To end the application, in kdcop choose the MainApplication-Interface +object and double-click the quit() method. +""" + +app.exec_loop() + + diff --git a/examples/example_dcopext.py b/examples/example_dcopext.py new file mode 100644 index 0000000..8f3801a --- /dev/null +++ b/examples/example_dcopext.py @@ -0,0 +1,135 @@ +""" +Copyright 2003 Jim Bublitz + +Terms and Conditions + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to +deal in the Software without restriction, including without limitation the +rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +sell copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +Except as contained in this notice, the name of the copyright holder shall +not be used in advertising or otherwise to promote the sale, use or other +dealings in this Software without prior written authorization from the +copyright holder. +""" + +import sys, time +import dcop +import dcopext +from kdecore import KApplication, KCmdLineArgs, KAboutData +from qt import QString, QCString + + + +def getAnyApplication (client, appName): + for qcstring_app in client.registeredApplications (): + app = str (qcstring_app) + if app == appName or app.startswith (appName + "-"): + print app + print + objList, ok = client.remoteObjects (app) + for obj in objList: + print " ", obj + funcs, ok = client.remoteFunctions (app, obj) + for f in funcs: + print " ", " ", f + break + + +#-------------------- main ------------------------------------------------ + +description = "A basic application template" +version = "1.0" +aboutData = KAboutData ("testdcopext", "testdcopext",\ + version, description, KAboutData.License_GPL,\ + "(C) 2003 whoever the author is") + +aboutData.addAuthor ("author1", "whatever they did", "email@somedomain") +aboutData.addAuthor ("author2", "they did something else", "another@email.address") + +KCmdLineArgs.init (sys.argv, aboutData) + +KCmdLineArgs.addCmdLineOptions ([("+files", "File to open")]) + +app = KApplication () +dcop = app.dcopClient () + +#getAnyApplication (dcop, "konqueror") +print "--------------------------" +print "The DCOPObjects for kicker:" +d = dcopext.DCOPApp ("kicker", dcop) +objs = d.objects +if objs: + for obj in objs: + print obj +o = d.object ("Panel") +methods = o.methods +for method in methods: + print method +m = o.method ("addNonKDEAppButton") + +print "--------------------------" +print "The method" +print o.method +print "--------------------------" +print "Find the method:" +print m.findMethod () +print "--------------------------" +print "The return type:" +print m.rtype +print "--------------------------" +print "The argument types:" +print m.argtypes +print "--------------------------" +print "The argument names:" +print m.argnames +print "--------------------------" + +print +print "get kicker panel size via DCOP" +res = d.Panel.panelSize() +print res, d.Panel.panelSize.valid +print "--------------------------" + +print "Call a method that doesn't exist" +res = d.Panel.junk () +print res +print "--------------------------" + +print "See if a non-existent method is valid" +print d.Panel.junk.valid +print +print "--------------------------" + +print +print +print "Start a kwrite instance" +errcode, error, dcopService, pid = KApplication.startServiceByDesktopName ("kwrite", "") +dcopService = "kwrite-" + str (pid) +print "errcode: %i error: %s dcopService: %s pid: %i" % (errcode, error, dcopService, pid) +print "--------------------------" +time.sleep (2) + +o1 = dcopext.DCOPObj (dcopService, dcop, "EditInterface#1") +print "Check if insertLine is a valid function" +print "valid", o1.insertLine.valid +print "--------------------------" +print "insertLine's arg types and names" +print o1.insertLine.argtypes, o1.insertLine.argnames +print "--------------------------" +print "Insert a line into the kwrite instance we launched" +print "call returns:", o1.insertLine (0, "Now is the time for all good men to come to the aid of their party") diff --git a/examples/kdeform1.ui b/examples/kdeform1.ui new file mode 100644 index 0000000..3d7a36e --- /dev/null +++ b/examples/kdeform1.ui @@ -0,0 +1,335 @@ + +Form1 +Python:#import all necessary widgets +Python:from kfile import KURLRequester + + + Form1 + + + + 0 + 0 + 497 + 485 + + + + Form1 + + + + unnamed + + + 6 + + + 6 + + + + KLed1 + + + + + KLed2 + + + + 255 + 255 + 0 + + + + + + KLed3 + + + + 255 + 0 + 0 + + + + + + KSqueezedTextLabel1 + + + KSqueezedTextLa...h a lot of text + + + + + Spacer1 + + + Horizontal + + + Expanding + + + + 231 + 0 + + + + + + Frame3 + + + StyledPanel + + + Raised + + + + unnamed + + + 11 + + + 6 + + + + KURLLabel1 + + + http://KURLLabel.org + + + + + KURLRequester1 + + + + + KLineEdit1 + + + KLineEdit1 + + + + + Spacer2 + + + Horizontal + + + Expanding + + + + 80 + 0 + + + + + + KProgress1 + + + + 7 + 0 + 2 + 0 + + + + + + Spacer3 + + + Horizontal + + + Expanding + + + + 80 + 0 + + + + + + + + GroupBox1 + + + GroupBox1 + + + + unnamed + + + 11 + + + 6 + + + + KHistoryCombo1 + + + + first, second, last + + + + + + KDatePicker1 + + + + 2003 + 4 + 22 + + + + + + + + GroupBox3 + + + GroupBox3 + + + + unnamed + + + 11 + + + 6 + + + + KComboBox1 + + + false + + + false + + + + + KIntSpinBox1 + + + 7 + + + + + KFontCombo2 + + + + + + + GroupBox4 + + + GroupBox4 + + + + unnamed + + + 11 + + + 6 + + + + KListView1 + + + + + + + PushButton1 + + + + 5 + 0 + 0 + 0 + + + + Close + + + false + + + + + Spacer5 + + + Horizontal + + + Expanding + + + + 372 + 0 + + + + + + + + PushButton1 + clicked() + Form1 + PushButton1_clicked() + + + + kdeform1.ui.h + + + PushButton1_clicked() + + + diff --git a/examples/kdeform1.ui.h b/examples/kdeform1.ui.h new file mode 100644 index 0000000..96bc326 --- /dev/null +++ b/examples/kdeform1.ui.h @@ -0,0 +1,13 @@ +/**************************************************************************** +** ui.h extension file, included from the uic-generated form implementation. +** +** If you wish to add, delete or rename slots use Qt Designer which will +** update this file, preserving your code. Create an init() slot in place of +** a constructor, and a destroy() slot in place of a destructor. +*****************************************************************************/ + + +void Form1::PushButton1_clicked() +{ +qApp.exit(0) +} diff --git a/examples/kpartgui.dtd b/examples/kpartgui.dtd new file mode 100644 index 0000000..b338964 --- /dev/null +++ b/examples/kpartgui.dtd @@ -0,0 +1,122 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/examples/kurldemo.py b/examples/kurldemo.py new file mode 100644 index 0000000..d224b34 --- /dev/null +++ b/examples/kurldemo.py @@ -0,0 +1,98 @@ +""" +Copyright 2003 Jim Bublitz + +Terms and Conditions + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to +deal in the Software without restriction, including without limitation the +rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +sell copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +Except as contained in this notice, the name of the copyright holder shall +not be used in advertising or otherwise to promote the sale, use or other +dealings in this Software without prior written authorization from the +copyright holder. +""" + +urls = ["http://slashdot.org", "http://www.kde.org", "http://www.riverbankcomputing.co.uk", "http://yahoo.com"] + +import sys + +from kdecore import KApplication, KCmdLineArgs, KAboutData, KURL +from kdeui import KMainWindow, KEdit + +class MainWin (KMainWindow): + def __init__ (self, *args): + apply (KMainWindow.__init__, (self,) + args) + + self.setGeometry (0, 0, 400, 600) + + self.edit = KEdit (self) + self.setCentralWidget (self.edit) + + self.edit.insertLine ("KURL Demo\n") + self.edit.insertLine ("Adding these urls:\n") + for url in urls: + self.edit.insertLine (" %s" % url) + + self.edit.insertLine ("\nCreating KURLs (iterating to print):\n") + urlList = KURL.List () + for url in urls: + urlList.append (KURL (url)) + + for url in urlList: + self.edit.insertLine (" %s" % url.url ()) + + self.edit.insertLine ("\nFirst url -- urlList [0]:\n") + self.edit.insertLine (" " + str (urlList [0])) + self.edit.insertLine (" " + str (urlList [0].url ())) + + self.edit.insertLine ("\nLast url -- urlList [-1]:\n") + self.edit.insertLine (" " + str (urlList [-1])) + self.edit.insertLine (" " + str (urlList [-1].url ())) + + self.edit.insertLine ("\nMiddle urls -- urlList [2:4]:\n") + ulist = urlList [2:4] + for url in ulist: + self.edit.insertLine (" " + str (url)) + self.edit.insertLine (" " + str (url.url ())) + + self.edit.insertLine ("\nLength of urlList -- len (urlList):\n") + self.edit.insertLine (" Length = %i" % len (urlList)) + + self.edit.insertLine ('\nurl in urlList? -- KURL ("http://yahoo.com") in urlList\n') + self.edit.insertLine (' KURL ("http://yahoo.com") in urlList = %i' % (KURL ("http://yahoo.com") in urlList)) + + +#-------------------- main ------------------------------------------------ + +description = "A basic application template" +version = "1.0" +aboutData = KAboutData ("", "",\ + version, description, KAboutData.License_GPL,\ + "(C) 2003 whoever the author is") + +aboutData.addAuthor ("author1", "whatever they did", "email@somedomain") +aboutData.addAuthor ("author2", "they did something else", "another@email.address") + +KCmdLineArgs.init (sys.argv, aboutData) + +KCmdLineArgs.addCmdLineOptions ([("+files", "File to open")]) + +app = KApplication () +mainWindow = MainWin (None, "main window") +mainWindow.show() +app.exec_loop() diff --git a/examples/menudemo.py b/examples/menudemo.py new file mode 100644 index 0000000..61a591a --- /dev/null +++ b/examples/menudemo.py @@ -0,0 +1,291 @@ +""" +This template constructs an application with menus, toolbar and statusbar. +It uses KDE classes and methods that simplify the task of building and +operating a GUI. It is recommended that this approach be used, rather +than the primitive approach in menuapp1.py +""" + +""" +Copyright 2003 Jim Bublitz + +Terms and Conditions + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to +deal in the Software without restriction, including without limitation the +rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +sell copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +Except as contained in this notice, the name of the copyright holder shall +not be used in advertising or otherwise to promote the sale, use or other +dealings in this Software without prior written authorization from the +copyright holder. +""" + + +False = 0 +True = not False + + +import sys + +from qt import QPopupMenu, SIGNAL, QLabel, QIconSet + +from kdecore import KApplication, KCmdLineArgs, KAboutData, i18n, KIcon, KIconLoader, KShortcut +from kdeui import KMainWindow, KMessageBox, KStdAction, KAction, KToggleAction, KFontSizeAction, KFontAction, KRadioAction,\ + KActionSeparator, KActionMenu, KWindowListMenu + +STATUSBAR_LEFT = 1 +STATUSBAR_MIDDLE = 2 +STATUSBAR_RIGHT = 3 + +class MainWin (KMainWindow): + def __init__ (self, *args): + apply (KMainWindow.__init__, (self,) + args) + + self.initActions () + self.initMenus () + self.initToolBar () + self.initStatusBar () + + self.saveAction.setEnabled (False) + self.saveAsAction.setEnabled (False) + + def initActions (self): + # "File" menu items + self.newAction = KStdAction.openNew (self.slotNew, self.actionCollection ()) + self.openAction = KStdAction.open (self.slotOpen, self.actionCollection ()) + self.saveAction = KStdAction.save (self.slotSave, self.actionCollection ()) + self.saveAsAction = KStdAction.saveAs (self.slotSaveAs, self.actionCollection ()) + self.printAction = KStdAction.print_ (self.slotPrint, self.actionCollection ()) + self.quitAction = KStdAction.quit (self.slotQuit, self.actionCollection ()) + + # "Edit" menu items + self.undoAction = KStdAction.undo (self.slotUndo, self.actionCollection ()) + self.redoAction = KStdAction.redo (self.slotRedo, self.actionCollection ()) + self.cutAction = KStdAction.cut (self.slotCut, self.actionCollection ()) + self.copyAction = KStdAction.copy (self.slotCopy, self.actionCollection ()) + self.pasteAction = KStdAction.paste (self.slotPaste, self.actionCollection ()) + self.findAction = KStdAction.find (self.slotFind, self.actionCollection ()) + self.findNextAction = KStdAction.findNext (self.slotFindNext, self.actionCollection ()) + self.replaceAction = KStdAction.replace (self.slotReplace, self.actionCollection ()) + self.specialAction = KAction (i18n ("Special"), KShortcut.null (), self.slotSpecial, self.actionCollection (), "special") + + # Demo menu items + + # KToggleAction has an isChecked member and emits the "toggle" signal + self.toggle1Action = KToggleAction ("Toggle 1") + self.toggle2Action = KToggleAction ("Toggle 2", KShortcut.null (), self.slotToggle2, None) + + # A separator - create once/use everywhere + self.separateAction = KActionSeparator () + + # Font stuff in menus or toolbar + self.fontAction = KFontAction ("Font") + self.fontSizeAction = KFontSizeAction ("Font Size") + + # Need to assign an icon to actionMenu below + icons = KIconLoader () + iconSet = QIconSet (icons.loadIcon ("viewmag", KIcon.Toolbar)) + + # Nested menus using KActions (also nested on toolbar) + self.actionMenu = KActionMenu ("Action Menu") + self.actionMenu.setIconSet (iconSet) + self.actionMenu.insert (KStdAction.zoomIn (self.slotZoomIn, self.actionCollection ())) + self.actionMenu.insert (KStdAction.zoomOut (self.slotZoomOut, self.actionCollection ())) + + # Doesn't work in KDE 2.1.1 +# self.radio1Action = KRadioAction ("Radio 1") +# self.radio1Action.setExclusiveGroup ("Radio") +# self.radio2Action = KRadioAction ("Radio 2") +# self.radio2Action.setExclusiveGroup ("Radio") +# self.radio3Action = KRadioAction ("Radio 3") +# self.radio3Action.setExclusiveGroup ("Radio") + + def initMenus (self): + fileMenu = QPopupMenu (self) + self.newAction.plug (fileMenu) + self.openAction.plug (fileMenu) + fileMenu.insertSeparator () + self.saveAction.plug (fileMenu) + self.saveAsAction.plug (fileMenu) + fileMenu.insertSeparator () + self.printAction.plug (fileMenu) + fileMenu.insertSeparator () + self.quitAction.plug (fileMenu) + self.menuBar ().insertItem (i18n ("&File"), fileMenu) + + editMenu = QPopupMenu (self) + self.undoAction.plug (editMenu) + self.redoAction.plug (editMenu) + editMenu.insertSeparator () + self.cutAction.plug (editMenu) + self.copyAction.plug (editMenu) + self.pasteAction.plug (editMenu) + editMenu.insertSeparator () + self.findAction.plug (editMenu) + self.findNextAction.plug (editMenu) + self.replaceAction.plug (editMenu) + editMenu.insertSeparator () + self.specialAction.plug (editMenu) + self.menuBar ().insertItem (i18n ("&Edit"), editMenu) + + demoMenu = QPopupMenu (self) + self.toggle1Action.plug (demoMenu) + self.toggle2Action.plug (demoMenu) + self.separateAction.plug (demoMenu) + self.fontAction.plug (demoMenu) + self.fontSizeAction.plug (demoMenu) + self.actionMenu.plug (demoMenu) +# self.radio1Action.plug (demoMenu) +# self.radio2Action.plug (demoMenu) +# self.radio3Action.plug (demoMenu) + self.menuBar ().insertItem (i18n ("&Demo"), demoMenu) + + # This really belongs in Kicker, not here, + # but it actually works + wlMenu = KWindowListMenu (self) + wlMenu.init () + self.menuBar ().insertItem (i18n ("&WindowListMenu"), wlMenu) + + + + helpMenu = self.helpMenu ("") + self.menuBar ().insertItem (i18n ("&Help"), helpMenu) + + def initToolBar (self): + self.newAction.plug (self.toolBar ()) + self.openAction.plug (self.toolBar ()) + self.saveAction.plug (self.toolBar ()) + self.cutAction.plug (self.toolBar ()) + self.copyAction.plug (self.toolBar ()) + self.pasteAction.plug (self.toolBar ()) + + self.separateAction.plug (self.toolBar ()) + self.separateAction.plug (self.toolBar ()) + self.separateAction.plug (self.toolBar ()) + + self.fontAction.plug (self.toolBar ()) + self.separateAction.plug (self.toolBar ()) + self.fontAction.setComboWidth (150) + + self.fontSizeAction.plug (self.toolBar ()) + self.fontSizeAction.setComboWidth (75) + + self.separateAction.plug (self.toolBar ()) + + # This works, but you have to hold down the + # button in the toolbar and wait a bit + self.actionMenu.plug (self.toolBar ()) + # This appears to do nothing + self.actionMenu.setDelayed (False) + + # Need this to keep the font comboboxes from stretching + # to the full width of the toolbar when the window is + # maximized (comment out the next two lines to see + # what happens) + stretchlbl = QLabel ("", self.toolBar ()) + self.toolBar ().setStretchableWidget (stretchlbl) + + +# self.toolBar ().setHorizontalStretchable (False) + + + def initStatusBar (self): + self.statusBar ().insertItem ("", STATUSBAR_LEFT, 1000, True) + self.statusBar ().insertItem ("", STATUSBAR_MIDDLE, 1000, True) + self.statusBar ().insertItem ("", STATUSBAR_RIGHT, 1000, True) + +#-------------------- slots ----------------------------------------------- + + def slotNew (self, id = -1): + self.notImpl ("New") + + def slotOpen(self, id = -1): + self.notImpl ("Open") + + def slotSave (self, id = -1): + self.notImpl ("Save") + + def slotSaveAs (self): + self.notImpl ("Save As") + + def slotPrint (self): + self.notImpl ("Print") + + def slotQuit (self): + self.notImpl ("Quit") + + def slotUndo (self): + self.notImpl ("Undo") + + def slotRedo (self): + self.notImpl ("Redo") + + def slotCut (self, id = -1): + self.notImpl ("Cut") + + def slotCopy (self, id = -1): + self.notImpl ("Copy") + + def slotPaste (self, id = -1): + self.notImpl ("Paste") + + def slotFind (self): + self.notImpl ("Find") + + def slotFindNext (self): + self.notImpl ("Find Next") + + def slotReplace (self): + self.notImpl ("Replace") + + def slotSpecial (self): + self.notImpl ("Special") + + def slotToggle2 (self): + self.notImpl ("Toggle") + + def slotZoomIn (self): + self.notImpl ("Zoom In") + + def slotZoomOut (self): + self.notImpl ("Zoom Out") + + def notImpl (self, item): + self.statusBar ().changeItem ("%s not implemented" % item, STATUSBAR_LEFT) + KMessageBox.error (self, "%s not implemented" % item, "Not Implemented") + self.statusBar ().changeItem ("", STATUSBAR_LEFT) + + +#-------------------- main ------------------------------------------------ + +description = "A basic application template" +version = "1.0" +aboutData = KAboutData ("", "",\ + version, description, KAboutData.License_GPL,\ + "(C) 2003 whoever the author is") + +aboutData.addAuthor ("author1", "whatever they did", "email@somedomain") +aboutData.addAuthor ("author2", "they did something else", "another@email.address") + +KCmdLineArgs.init (sys.argv, aboutData) + +KCmdLineArgs.addCmdLineOptions ([("+files", "File to open")]) + +app = KApplication () +mainWindow = MainWin (None, "main window") +mainWindow.show() +app.exec_loop() diff --git a/examples/mimetype.py b/examples/mimetype.py new file mode 100644 index 0000000..d1926b0 --- /dev/null +++ b/examples/mimetype.py @@ -0,0 +1,269 @@ +""" +This program tests/demos some of the KSharedPtr related classes and +methods (KMimeType, KService, etc). It generally tests the *::List +methods for these classes (eg KService::List) since that also tests +the *::Ptr mapped type code (eg KService::Ptr) at the same time. + +This version is suitable for KDE >= 3.0.0 (some methods not available +in earlier versions) +""" + +""" +Copyright 2003 Jim Bublitz + +Terms and Conditions + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to +deal in the Software without restriction, including without limitation the +rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +sell copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +Except as contained in this notice, the name of the copyright holder shall +not be used in advertising or otherwise to promote the sale, use or other +dealings in this Software without prior written authorization from the +copyright holder. +""" + +import sys + +from qt import QWidget, QButtonGroup, Qt, QLabel, QListView, QListViewItem + +from kdecore import KApplication, KCmdLineArgs, KAboutData, KURL +from kdeui import KMainWindow, KTabCtl, KListBox +from kio import KMimeType, KService, KServiceGroup, KServiceType, KTrader, KServiceTypeProfile, KServiceGroup + +class MainWin (KMainWindow): + def __init__ (self, *args): + apply (KMainWindow.__init__, (self,) + args) + + tabctl = KTabCtl (self) + self.setGeometry (0, 0, 600, 400) + tabctl.setGeometry (10, 10, 550, 380) + + tabctl.addTab (KMimeTypeTab (tabctl), "KMimeType") + tabctl.addTab (KServiceTab (tabctl), "KService") + tabctl.addTab (KSycocaEntryTab (tabctl), "KSycocaEntry") + tabctl.addTab (KServiceTypeTab (tabctl), "KServiceType") + tabctl.addTab (OfferListTab (tabctl), "OfferList") + + tabctl.show () + + +class OfferListTab (QWidget): + def __init__ (self, parent, name = ""): + QWidget.__init__ (self, parent, name) + + self.setGeometry (0, 0, 500, 370) + lvLbl = QLabel ("Offers - text/html", self) + lvLbl.setGeometry (10, 10, 150, 20) + + lv = QListView (self) + lv.setSorting (-1) + lv.addColumn ("type_", 75) + lv.addColumn ("name", 100) + lv.addColumn ("exec_", 200) + lv.addColumn ("library", 100) + lv.setGeometry (10, 30, 500, 300) + lv.setAllColumnsShowFocus (1) + + # insert list items in reverse order + + pref = KServiceTypeProfile.preferredService ("Application", "image/jpeg") + QListViewItem (lv, pref.type_ (), pref.name (), pref.exec_ (), pref.library ()) + QListViewItem (lv, "Preferred", "--------", "", "") + QListViewItem (lv, "", "", "", "") + + trader = KTrader.self () + slist = trader.query ("image/jpeg", "Type == 'Application'") + print "KTrader returned:", slist + for s in slist: + lvi = QListViewItem (lv, s.type_ (), s.name (), s.exec_ (), s.library ()) + + + lv.show () + +class KServiceTypeTab (QWidget): + def __init__ (self, parent, name = ""): + QWidget.__init__ (self, parent, name) + + self.setGeometry (0, 0, 500, 370) + lvLbl = QLabel ("All Service Types", self) + lvLbl.setGeometry (10, 10, 250, 20) + + lv = QListView (self) + lv.addColumn ("name", 150) + lv.addColumn ("desktopEntryPath", 300) + lv.setGeometry (10, 30, 500, 300) + lv.setAllColumnsShowFocus (1) + + slist = KServiceType.allServiceTypes () + + for s in slist: + lvi = QListViewItem (lv, s.name (), s.desktopEntryPath ()) + + lv.show () + +class KSycocaEntryTab (QWidget): + def __init__ (self, parent, name = ""): + QWidget.__init__ (self, parent, name) + + grp = KServiceGroup.baseGroup ("screensavers") + self.setGeometry (0, 0, 500, 370) + lvLbl = QLabel ("Entries - 'screensavers': " + grp.name ().latin1 (), self) + lvLbl.setGeometry (10, 10, 250, 20) + + lv = QListView (self) + lv.addColumn ("name", 150) + lv.addColumn ("entryPath", 300) + lv.setGeometry (10, 30, 500, 300) + lv.setAllColumnsShowFocus (1) + + slist = grp.entries (0, 0) + + for s in slist: + lvi = QListViewItem (lv, s.name (), s.entryPath ()) + + lv.show () + +class KServiceTab (QWidget): + def __init__ (self, parent, name = ""): + QWidget.__init__ (self, parent, name) + + self.setGeometry (0, 0, 500, 370) + lvLbl = QLabel ("All Services", self) + lvLbl.setGeometry (10, 10, 150, 20) + + lv = QListView (self) + lv.addColumn ("type_", 75) + lv.addColumn ("name", 100) + lv.addColumn ("exec_", 200) + lv.addColumn ("library", 100) + lv.setGeometry (10, 30, 500, 300) + lv.setAllColumnsShowFocus (1) + + slist = KService.allServices () + for s in slist: + lvi = QListViewItem (lv, s.type_ (), s.name (), s.exec_ (), s.library ()) + + lv.show () + + +# svc = KService.serviceByDesktopName ("kcookiejar") +# print svc +# print svc.type_ () +# print svc.name ().latin1 () +# print svc.exec_ ().latin1 () +# print svc.library () + + +class KMimeTypeTab (QWidget): + def __init__ (self, parent, name = ""): + QWidget.__init__ (self, parent, name) + + self.setGeometry (0, 0, 500, 370) + lbLbl = QLabel ("All Mimetypes", self) + lbLbl.setGeometry (10, 10, 150, 20) + lb = KListBox (self) + lb.setGeometry (10, 30, 200, 300) + mlist = KMimeType.allMimeTypes () + lblist = [] + for mt in mlist: + lblist.append (mt.name ().latin1 ()) + + lblist.sort () + lb.insertStrList (lblist) + + lb.show () + + x = 250 + y = 10 + + mt = KMimeType.mimeType ("text/plain") + mtlbl = QLabel ("KMimeType.mimeType ('text/plain')", self) + mtlbl.setGeometry (x, y, 250, 20) + mtnamelbl = QLabel ("name", self) + mtnamelbl.setGeometry (x + 15, y + 20, 100, 20) + mtname = QLabel (mt.name (), self) + mtname.setGeometry (x + 120, y + 20, 100, 20) + mtdesklbl = QLabel ("desktopEntryPath", self) + mtdesklbl.setGeometry (x + 15, y + 40, 100, 20) + mtdesk = QLabel (mt.desktopEntryPath (), self) + mtdesk.setGeometry (x + 120, y + 40, 150, 20) + + y = y + 80 + + fp = KMimeType.findByPath ("mimetype.py") + fplbl = QLabel ("KMimeType.findByPath ('mimetype.py')", self) + fplbl.setGeometry (x, y, 250, 20) + fpnamelbl = QLabel ("name", self) + fpnamelbl.setGeometry (x + 15, y + 20, 100, 20) + fpname = QLabel (fp.name (), self) + fpname.setGeometry (x + 120, y + 20, 100, 20) + fpdesklbl = QLabel ("desktopEntryPath", self) + fpdesklbl.setGeometry (x + 15, y + 40, 100, 20) + fpdesk = QLabel (fp.desktopEntryPath (), self) + fpdesk.setGeometry (x + 120, y + 40, 150, 20) + + y = y + 80 + + fu = KMimeType.findByURL (KURL ("file://mimetype.py")) + fulbl = QLabel ("KMimeType.findByURL ('file://mimetype.py')", self) + fulbl.setGeometry (x, y, 250, 20) + funamelbl = QLabel ("name", self) + funamelbl.setGeometry (x + 15, y + 20, 100, 20) + funame = QLabel (fu.name (), self) + funame.setGeometry (x + 120, y + 20, 100, 20) + fudesklbl = QLabel ("desktopEntryPath", self) + fudesklbl.setGeometry (x + 15, y + 40, 100, 20) + fudesk = QLabel (fu.desktopEntryPath (), self) + fudesk.setGeometry (x + 120, y + 40, 150, 20) + + y = y + 80 + + fc, acc = KMimeType.findByFileContent ("mimetype.py") + fclbl = QLabel ("KMimeType.findByFileContent ('mimetype.py')", self) + fclbl.setGeometry (x, y, 250, 20) + fcnamelbl = QLabel ("name", self) + fcnamelbl.setGeometry (x + 15, y + 20, 100, 20) + fcname = QLabel (fc.name (), self) + fcname.setGeometry (x + 120, y + 20, 100, 20) + fcdesklbl = QLabel ("desktopEntryPath", self) + fcdesklbl.setGeometry (x + 15, y + 40, 100, 20) + fcdesk = QLabel (fc.desktopEntryPath (), self) + fcdesk.setGeometry (x + 120, y + 40, 100, 20) + fcacclbl = QLabel ("accuracy", self) + fcacclbl.setGeometry (x + 15, y + 60, 100, 20) + fcacc = QLabel (str (acc), self) + fcacc.setGeometry (x + 120, y + 60, 150, 20) + + + +#-------------------- main ------------------------------------------------ + +description = "Test/demo KSharedPtr related methods/classes" +version = "1.0" +aboutData = KAboutData ("", "",\ + version, description, KAboutData.License_GPL,\ + "(C) 2003 Jim Bublitz") + +KCmdLineArgs.init (sys.argv, aboutData) + +KCmdLineArgs.addCmdLineOptions ([("+files", "File to open")]) + +app = KApplication () +mainWindow = MainWin (None, "main window") +mainWindow.show() +app.exec_loop() diff --git a/examples/pyKHTMLPart.py b/examples/pyKHTMLPart.py new file mode 100644 index 0000000..7629c11 --- /dev/null +++ b/examples/pyKHTMLPart.py @@ -0,0 +1,214 @@ +# +# pyParts.py (C) 2002 Jim Bublitz +# + +""" + +This is an extemely simple and crude example of using +a KHTMLPart - I put it together mostly to make sure +the openURL method worked correctly after some modifications +done in KParts::ReadOnlyPart. It took exactly four lines +added to a basic PyKDE app framework to display a URL +via the 'net: + + self.w = KHTMLPart (self, "HTMLPart", self); + self.w.openURL (KURL ("http://www.kde.org")); + self.w.view ().setGeometry (30, 55, 500, 400); + self.w.show (); + +(Actually 5 lines if you count the 'import' line) + +You can play around with the commented out lines or add +additional code to make this do something useful. The +.rc for khtnmlpart (sorry, I never looked it up), doesn't +seem to provide much help. Also, to follow links, you +probably need to connect some signals to slots. I +haven't tried it, but this should work with a plain +KMainWindow or other widget too. + +The KDE website also incorporates gifs, jpegs, and +I believe CSS too. Playing around with some other +sites, it appears the font defaults could use some +improvement. + +NOTE!!! For this to work, you (obviously) need to have +a route to the internet established or specify a local +URL - PyKDE/KDE will take care of everything else. + +Perceptive users will notice the KHTMLPart code is +lifted from the KDE classref. + +""" + +# If you import more classes, don't forget to add them here (some of these +# are extras/not used) + +from kdecore import KCmdLineArgs, KURL, KApplication, i18n, KAboutData, BarIcon, KLibLoader + +from kdeui import KMainWindow, KMessageBox, KAction, KStdAction, KKeyDialog, KEditToolbar + +from qt import QString, QStringList + +from kio import KTrader + +from khtml import KHTMLPart, KHTMLView + +# Importing the KParts namespace gets us all of the KParts:: classes +from kparts import KParts, createReadOnlyPart, createReadWritePart + +import sys, os + +FALSE = 0 +TRUE = not FALSE + +TOOLBAR_EXIT = 0 +TOOLBAR_OPEN = 1 + +# Note that we use KParts.MainWindow, not KMainWindow as the superclass +# (KParts.MainWindow subclasses KMainWindow). Also, be sure the 'apply' +# clause references KParts.MainWindow - it's a hard bug to track down +# if it doesn't. + +class pyPartsMW (KParts.MainWindow): + def __init__ (self, *args): + apply (KParts.MainWindow.__init__, (self,) + args) + + # Create the actions for our menu/toolbar to use + # Keep in mind that the part loaded will provide its + # own menu/toolbar entries + + # check out KParts.MainWindow's ancestry to see where + # some of this and later stuff (like self.actionCollection () ) + # comes from + + quitAction = KStdAction.quit (self.close, self.actionCollection ()) + + self.m_toolbarAction = KStdAction.showToolbar(self.optionsShowToolbar, self.actionCollection()); + self.m_statusbarAction = KStdAction.showStatusbar(self.optionsShowStatusbar, self.actionCollection()); + + KStdAction.keyBindings(self.optionsConfigureKeys, self.actionCollection()); + KStdAction.configureToolbars(self.optionsConfigureToolbars, self.actionCollection()); + + self.path = os.getcwd () + '/' + self.setGeometry (0, 0, 600, 500) + + # point to our XML file + self.setXMLFile (self.path + "pyParts.rc", FALSE) + + # The next few lines are all that's necessary to + # create a web browser (of course you have to edit + # this file to change url's) + + self.w = KHTMLPart (self, "HTMLPart", self); + self.w.openURL (KURL ("http://www.kde.org")); + + self.w.view ().setGeometry (30, 55, 500, 400); + + +# self.v = KHTMLView (self.w, self) + +# self.setCentralWidget (self.v) + +# self.createGUI (self.w) + + self.w.show (); + + + + + # slots for our actions + def optionsShowToolbar (self): + if self.m_toolbarAction.isChecked(): + self.toolBar().show() + else: + self.toolBar().hide() + + def optionsShowStatusbar (self): + if self.m_statusbarAction.isChecked (): + self.statusBar().show() + else: + self.statusBar().hide() + + + def optionsConfigureKeys (self): + KKeyDialog.configureActionKeys (self.actionCollection(), self.xmlFile ()) + + + def optionsConfigureToolbars (self): + dlg = KEditToolbar (self.actionCollection(), self.xmlFile ()) + if dlg.exec_loop (): + self.createGUI(self); + + + # some boilerplate left over from pyKLess/KLess + def queryClose(self): + res = KMessageBox.warningYesNoCancel(self,\ + i18n("Save changes to Document?
(Does not make sense, we know, but it is just a programming example :-)")) + if res == KMessageBox.Yes: + #// save document here. If saving fails, return FALSE + return TRUE + + elif res == KMessageBox.No: + return TRUE + + else: #// cancel + return FALSE + + def queryExit(self): + #// this slot is invoked in addition when the *last* window is going + #// to be closed. We could do some final cleanup here. + return TRUE #// accept + + # I'm not sure the session mgmt stuff here works + + # Session management: save data + def saveProperties(self, config): + # This is provided just as an example. + # It is generally not so good to save the raw contents of an application + # in its configuration file (as this example does). + # It is preferable to save the contents in a file on the application's + # data zone and save an URL to it in the configuration resource. + config.writeEntry("text", self.edit.text()) + + + # Session management: read data again + def readProperties(self, config): + # See above + self.edit.setText(config.readEntry("text")) + + + +#------------- main ---------------------------- + +# A Human readable description of your program +description = "KHTMLPart - simple example" +# The version +version = "0.1" + +# stuff for the "About" menu +aboutData = KAboutData ("pyKHTMLPart", "pyHTMLPart",\ + version, description, KAboutData.License_GPL,\ + "(c) 2002, Jim Bublitz") + +aboutData.addAuthor ("Jim Bublitz", "Example for PyKDE", "jbublitz@nwinternet.com") + +# This MUST go here (before KApplication () is called) +KCmdLineArgs.init (sys.argv, aboutData) + +app = KApplication () + +if (app.isRestored()): + RESTORE(KLess) +else: + # no session management: just create one window + # this is our KParts::MainWindow derived class + parts = pyPartsMW (None, "pyParts") + if len(sys.argv) > 1: + # read kcmdlineargs.h for the full unabridged instructions + # on using KCmdLineArgs, it's pretty confusing at first, but it works + # This is pretty useless in this program - you might want to + # expand this in your app (to load a file, etc) + args = KCmdLineArgs.parsedArgs() + +parts.show() +app.exec_loop() diff --git a/examples/pykde-sampler/HOWTO.samples b/examples/pykde-sampler/HOWTO.samples new file mode 100644 index 0000000..7418054 --- /dev/null +++ b/examples/pykde-sampler/HOWTO.samples @@ -0,0 +1,60 @@ +How to Write Samples for the PyKDE Sampler +========================================== + + +Create or locate a directory within the sampler application root directory. + +Add a module. + +In side the module, add the following: + +- iconName - string (optional) + default: 'filenew' + example: 'colorize' + + When supplied, this should be the short name of a KDE icon, such as + 'stop', 'editclear', etc. If available, This icon will be used as + the list item's icon in the sampler. Not all icons are available in + all themes, so try to use the icons that are available in the + default KDE installation. + + +- labelText - string (optional) + default: module name + example: 'KMessageBox' + + When supplied, this value is used as the list item text for the + sample. If it's not supplied, the application will use the name of + the module instead. + + +- docParts - two-tuple (optional) + default: None + example: ('kdeui', 'KAboutDialog') + + If specified, this sequence should contain two items, first item + name of pykde module, second item name of class within the module. + These two values are used to form the URL to the documentation for + the sample. + + +- one of buildWidget, buildDialog, buildApp, MainFrame - callable (required) + default: None + example: MainFrame(QFrame): ... + + The sample module must contain a callable with one of these names. + The callable must accept a single positional parameter, the parent + widget. + + In most cases, it is sufficient to define a subclass of QFrame named + 'MainFrame'. To construct a more complex sample, define a function + with one of the other names. + + The callable should return (or instatiate) a widget for display in + the main sampler widget. The created frame is responsible for + displaying it's help text and for any providing any widgets + necessary to + + + + diff --git a/examples/pykde-sampler/TODO b/examples/pykde-sampler/TODO new file mode 100644 index 0000000..730cc02 --- /dev/null +++ b/examples/pykde-sampler/TODO @@ -0,0 +1,12 @@ +Sampler App +=========== + +- Turn off word wrap in the source viewer +- Add application icon +- Enable hyperlink signal and slot in doc viewer + + +Samples +======= + +- More samples diff --git a/examples/pykde-sampler/__init__.py b/examples/pykde-sampler/__init__.py new file mode 100644 index 0000000..4265cc3 --- /dev/null +++ b/examples/pykde-sampler/__init__.py @@ -0,0 +1 @@ +#!/usr/bin/env python diff --git a/examples/pykde-sampler/about.py b/examples/pykde-sampler/about.py new file mode 100644 index 0000000..61fdd8a --- /dev/null +++ b/examples/pykde-sampler/about.py @@ -0,0 +1,57 @@ +#!/usr/bin/env python +""" About the PyKDE Sampler + +Defines the 'about' function to create a KAboutData instance for the +sampler application. +""" +from os.path import dirname, join +from kdecore import KAboutData + + +appName = 'pykdesampler' +progName = 'PyKDE Sampler' +authorName = 'Troy Melhase' +authorEmail = bugsEmailAddress = 'troy@gci.net' +version = '0.1' +shortDescription = 'The PyKDE Sampler' +licenseType = KAboutData.License_GPL_V2 +copyrightStatement = '(c) 2006, %s' % (authorName, ) +homePageAddress = 'http://www.riverbankcomputing.co.uk/pykde/' +aboutText = ("The application sampler for PyKDE.") +contributors = [] # module-level global for keeping the strings around; intentional + + +def about(): + """ creates KAboutData instance for the app + + """ + about = KAboutData( + appName, + progName, + version, + shortDescription, + licenseType, + copyrightStatement, + aboutText, + homePageAddress, + bugsEmailAddress) + about.addAuthor(authorName, '', authorEmail) + + try: + contrib = open(join(dirname(__file__), 'contributors.txt')) + contrib = [line.strip() for line in contrib] + contrib = [line for line in contrib if not line.startswith('#')] + for line in contrib: + try: + name, task, addr = [s.strip() for s in line.split(',')] + contributors.append((name, task, addr)) + except: + pass + except: + pass + + contributors.sort(lambda a, b:cmp(a[0], b[0])) + for name, task, addr in contributors: + about.addCredit(name, task, addr) + + return about diff --git a/examples/pykde-sampler/aboutkde.png b/examples/pykde-sampler/aboutkde.png new file mode 100644 index 0000000000000000000000000000000000000000..3bb4e6889e6a570a5b711ddaf051759ecc018a6d GIT binary patch literal 36986 zcmaHTWmr_-7w!-uCDIOEgS3Dk-5nA`Nw;)&2}pM;{OArz>Fx&Ul9ra1E`huKKhOPm z?@>`f@XS7Yt@YL>Tv<{21v)W01Oj;>D?aOqO~+nbkl@ zWkYEDi)tF7vEU zQogOH{Uj+VDKu>l(vdGnxH=~&tTFRqaN^=d%_6-8NwE?s=rTQw)#9i3V8V=yj8dFs zNYAn2D8Q#A>pID5Xe8-ZQou2UwU>SGk01`~!LNMRkZ!9Ckzu{(K8JlGl-Z9lv^lKp zHvxYQwcI3nytco77>uRM^1+2zSy?IatOw!L{W0-hI8Zuj z>D8w1n#o@{r8+L(`40{}HOhIq_y4g?8GX~mF!7mH|A64nJVIl;)j`suMPY4i-Em^{ zcpWJF2f@k7skx;E&o5s|_`#)^THq#Sod2YC-N&9q0*>roUHul~al4)DnORiKE*&90 zv9j`MfXuy7_s!+9kl63dSYZtV{vI}3TH3Xx8(#sL@6FQGIJTpWt}|0VS5g_r50{&q z^S>zAweA(BX=`gketrF*Ph^SF(p?oECoV2YrhDB%ZEvy8dR8SOH#dzufS-);)2B~ct7QCckj}b!eg51f_oKyvkC_^! z?@Gj+oong?G;{{p-cw>jOSUuk-Ss`zgTY32n7O>TaDlK9N7E4R7K?vEhvSEqoDT>; z;)HbehU3NVSUg$B4f3xWMvL}((J^b+%G|%Gm1NQ=qkL7_xDkOI&8kx$waEi%1obf+ zY2bUitvpIj82O4dCY1<2jCqvHhQCoS;JQE4NC4f*7T~p8Zp3-s$?lI7aa3;! zo1@#^Ea5{E@9PzJJmH(ax96&UK@=odN@69ocQ>1{(rW@2KU7(AY;A2F)1vjTW~q;C z8XxZtLZ8^G`qxwyd1*@&%YpKY1?aSh4E6uekP5Sm}OAO0psm zc(|Aj^{e#ya2UgPY=O2jo|P3J&psnf+T-Bhfvb{Xo!efl@jk-qUfaaLCa{{h)U?TB zl6p3#LWA<^66X_KJz;JG6n4ycXQ)`qlnyhY(`oQ4{fX6FS48B|q_2l-YCbpXp*^Iw z%=+F(@9Hv^>{?ium@xj=5R6tU>c&RXxLNHo<_-Mx__YJOvI#AZHf4poV+lj)sMKl8 z=MU=UmH3Zpi}!w?-^#@AGjrQ6))voQ9WLa}*;`t6L7w;CJe>#z@GMvYFL)B#D zRU<;uMng7_pz2g|*g=U(LMfY# zpirE7Hb2-}7Zen1p)V|B?dl^Qu^l(fq)H8bVD_URSHF!t5)N@?3Rc=5`SVNSVuc}T`;SnBHP`HE$)DGA}J*IG4Zw93=g z)~}1dn~f5mRqj6)^?|3lNlp!G09&4HG1BkvCIw!sf$Ll4?YKzRb|{40=TBFU5P#Rh z^;+c-`x}m#vy{dpJ69rNvmz5^M-SY^X4lfYtJz`h6&JjwYTG5Qx{DcArM^%nI$Qq5 zyvnWNyjUUPS!N*@KbdKljVjMJ{i8!m3kwIl??RobmA|cud{I zC7QJsICDQpROH&JKVSU^HgdjfqA}eZSn&BZu&RAWZb<%$MQOawh1$0Cr3QyMi^!WF zlsIWC-q&Y4?~e5arVY*Odq?9-dZr5BAJ%L&@3%dU7(BkcB0@WK^H!6F_f~GO`rXP0 z6opCp`U*ifxwx!eg*CdW{dQ??R1gH^1^ELiIo1MV(n&*01%Yzgk=|B;X{JK#eicO_ zocSf8GA%Jtyy6uBf$eH5Z#~AWTqJuYn^C~x7)`7|f}u>qvQwnCGrjxQP;xI+h}n2% zIhp=)Doi72>F6~bGr8CAoJM=Yu7GEbl}MdsS~Y{Nvt877?pwLdxGSE!8SqlHu8+xj zgy9k!SOg}m4(nnNkHe~g?^4Oo*;kXllrjahSjgmBVRPjW9O!*Q%uj?GWs95G4$oP3?e!k;oBhqTLySw{m656|+ zt*w7c5ccWWp_3PKg+>j8II+@aSN-4zhCp%qpL=~2+ z=6Y-O0F|_!{W7@;Xc@>kjAwR-Djbv=W+N2>DNriUukj2Yk9FA3imDw z#&~5lAW|Entr||a7`@%u>F*^t3?=Z+>oTO2+&_eotZ=V-h~I03%Y1ugvyU+cXf7KwZUkRtYDx-`x~TOc z5~OIFNPQik02O&ACZ_wlJGOqT(7?uLz174#_)>ZBQkVV1Lp5uwm&|<|`=yoSC8Pg_ z-sR;b==T)2+#1H=ZKpeF_H+94PW6rQH)9$6vU^)YiEAF4FV616=`tw`w8cj`#s$RR zlyJ?JRy11`pTeLy`jzfHq+8dv4J%S|btM=91WX!-OARLh7;h+_Ry{VOdrqt|;ZQ=f zZ*JU(8;hhX6Oz)amuaMe4M;4>}T(W@zG+P_&aE1V}EJGny-!yomKQSb$A}V z$%L^cEQnp`psePH**U1Z5S8a9QJV=#go|W2kpD(^kk{--l3296|6@1lPh!!*ZCG1e zyqo=C@UIfO#BG-wPeJ!lP*Q5pWZvH19v6P{+2G>m=O2O?k1~KKMZ*wb9RYXTD@fki z*;xgRxJnWtA z&+i5l5k%^URq@}M36b~Uh>@Nke^vVugGGu(6VV+Jp!cSr1`kV6HpGSROQJXdp~~&; z#l_wahN6kUcyTG5UOd@*9XS5RGrE!LT>5He`2>lvEtv#~$KmStV{NAbV8|Q2O_}*G zoF;&Iq|1;EfaLep%p+$4+F<_|8t z+7yd6d18#9K@-rtdq+fuh=7)sKKIpdW`hb&F0t1CLTKy>s1n0dxMMp`rOZ}aw-za# z8wv{g4lYp;5yVJxQQ~ESbYZ>X9ypLYycJ&4~F-M@{rou+ppDG z&mXU}v@|zcq}FSf17OI)GHSzRZfcreRFwAqbq zzM~wokelq8Vbmv~)6Lid*Mr}@&W#3t19%^A;^h?99e%Dm*sL_ym6kH$hGT2sVWNZ^ z)WBpTa+UG>z*<*(wXGVmnVOjqg6q|*-Q8Vtb93-^&7tQ-Q0zKYOeLKN40rF~z}m{H zq_otTFC#};1`a?QVcw+0+mykz+FH)Up)X&*egyZ&m8RW$E-+G!*<)c+6Sdxfi+Q|{ zEBsfv;u|k+`KE*B-3Er|xtZ6_dw>vAR24;g#`u^cj482y9~?M0>6&M_CiNN1%FB=Z z@8U=smG-idOV~Q~(ALob6k};|5ikqkn_oyOTbEw{CboV1tr=i^uM>v=Bp)@aSty%7 zn4X@t<pk);Q!-oJIjfyWq_sp{E<{q6nakWN)Q#1K3Cqh^0 z&LK*Y$ki}fRQ9h>M-y9$c4@7vTOY6&-o1MVHbr@P`J(>}VdQr8$eWhK>Jdoi!KK|& z{ZZD_-(AoVwUX)yMZw(yqsZG{Jc-#8v=dtTceIx!p_Roxvob|N9I z-=7qrqf6zR$ZSW(#q#CqfNC4rF8TJ&(#FQd+B!|pyFS%dfSo>q53p)Q-fjG|6TpnP z?N?hrju1xV{xGYVv|wgrtkz@(Tv%WnBLEu}dD+h0&(Dt%n{p~+QO!v=><2W&s8JM~ zHWZYiXXYkP(np2}>ieOYT|#(-SDSvr($T3$*pF`?@1;{P;?3vxTwW)JhZUj(ex{d? z{SAS}ZS#CEADsdWuN*BE@0r)Wnk@r6t!x_ii1#&Pc{#RoszLD70+H_pT-=lQYg*dI zL?{yP>NG6`P6dz!1&>2EDCd*wHMb?(A=kElFb9JW;-5>eprFvO>Q%a6^O_G0j=y5( z4z?-adEVYF^9SnUZ(h&8vZ%M^RB$FOn%=wc5}YK|Mls?_3;!ckOZM&iYe_g*sp&ni zN;Xzj`^U$xQ^|R>zu-MP!{<~uaN$cE)zH<|)zi~cRyM5COsIK|MS(fB=V0Tb9Y}@n z&>K)ul3QAGb5QvlvUgC~6D!1M`x85h)ri^lCuN0Zm!9_#TQD`|kRPtGJ(=&v*nw%l zASNb$Iq;+_?(WZ)CLU`)lZ0E(SJY`TgT+E##t0TuEOH*t6!gA2v;-Q$txqp?x|abe z)!88F0FHW#ekCX-jnY}Onva+PsFtr2Ws9b1i-PG+N~)?HK^*|nyt1;=+yAF+A{IR& zmnWu1lew*}4Qi6PJA_0Im+GY~eU}vUeLUGG@_dJAc%+Yjsar`f*xP&aut$RZ?~JON zCvO@X^0IrN?0RY3i#rD^#t2+gwA55>ZEZe2z9d$IOqULA055lH#)X(zSy`Ex ze+&+0Tk=6Mn|0rW_Eh;jJ?3RG?pN>t(kM9uHXS1YNex;l(d2w)(7{v|uG zU9NuocyIjrwRfwL;=7Hf^-~Y<yyqKG)`+HZGgPVr?oThGV9cwnTb9~>KdT>+D> zU_}8f*hQpfOJsY;Xh}M24EP zv9V!Y*`}d@)b4h)2=IjaW`FeF-X5rDP$8b4o|2N1;4LpNFA))ugcEekh6aX@iY!1L zJAV*Of^+8`#605Lv9@`7^YB=Fp(>4tNlH9&O{rq$BU5QUE|8eX%i-{NdzN$S34yRB zxgX;vvCgl!&KnVTYbr(uh0tJ0QsX3#%>MkTX<%^T!Uu-cE+FJCMcTTbE@#07*eSRn zCQ!24<-N{g*vK1ooQ!Rl&r57}&Ts9Swv(bsxCsde>S}AZwzt22`FCyY?BL?~@ErS< z)C{t{`j&?|8^29|$ifhIU#;Sn4a0R#qr5P1!HFRuS4av@)>mn6#%%~x-4P2V2t^hJ zBo7o?Z^Zuj?c-T;2W%yeFp`jkk%fij%^PxIUmvh6vsSaO$w{bSlkSdm!8*LOEn}U+{`E0DeIZ##O)80%~GkdqKCM6{`H#Zj+z7Fld`8vmK$qWdr zprBp>McQcL=m;mHUVfN2;OuGk?M)jIO!YPk)t~OK{*9{XLWTRQql4eS|J*;Iagwf` z;Iffo2SQI#d8a&MX0 zGLL|E2bN^5%0yaRTwF;>iHG!Yd_xj6e*oMB1y^ji5(Om>#}faR zM!(5&asN?lV}@$9AnfBOTuItGjPr_tQH=1V}~O-rb+Wh0N*kUnVZfP72XC zx4VCTUC=)NES3`ob_5S8Xsq9UzbBAH3l?*Ab+xp#%ux<2d(W4FMa9X+HZe1!W?-&aI@~A$0dB1H0IWypW|EA|mQCbTBl`ZfIx#&$IJ062JSg zjjip`(UHPN7peptXg2(AhoBI^^96U=)YJqT9KK{-L&N;s+#Fb?`T5w0SBQ{*#NVwY zqxieLoSY5UQvB5$UR=#q4@XJKzNrHF*)MXO3g%{JkJ5*~HOjR=a;1SM#=*fME5{@z zEY9mvR6%UC!L%0gP>3&yh7zb)R8v^^4>3kZM*~n7D{!{U>l}mNgL*CPCFnjhzCD`e zz_YkmaJX{txRvU{KrIx&pmPb}{6oEH2V#LmeF*0FC$e<>cjQ z=3a&vd3k#SjA~_Vo#lPZE3RuhfO?v?_V+atQ)zMWzbY&#iTKepllGv`1{BwSDilmv z4AqfTdfLUy%L{RGqgZrAWoDsL-?2%T!|VrT=rHQ;`$O0G<^h&KRaL9!fnA`yfr@al z*3nV*@7g;euqPzg>i=5!AD&V+BjZ-veQt$neAszLscb`~abE-hfE@$`1VO&l z)zyP;?3YO$tnV`gZUN|Qy`0kl*ehlgv*)J`m#abQ@W#s068}`Pczp&YDT5fpLk=+D=M&&ztz$FKYj$#r@sDbylR)8=k`~ye;XETz&^vH zQ%wJd3@oQ*h8N)jfCt()u7`k{0gxtT)C|`;cuPax@tni&(Z>k|?#dwdw;5Z^>gVg+ zlGi$N#ub#0dtPlq{QTZi`LbZAg1sw&%}2Z&yrDYsT~-EPa>MTD!oux>x%EYJkIln^ zq`9=d2g6*n`l(l1TAC}LUH^}7@!#XVey#cQBg@s@-LKlqR!?t*?KvKXYyysCR?Y82 zyqK(4=)q4nok-vV)yyw2FP;bHsA+59pduePZpILCn5k)K;1YD>sCN-X_a7b}0v48` zIKRBCYhds+%v9+iKn}-$#iH#pM4OCHNEl=6zMJLu`1o+|ezK|%Barg`wNo}rpV<(C zMD@41gUj%8?q0kA9z2{R8LTNh_7FDe)WR1iNDDFmCxP}1PhK{5#YKJ}A!l0+VZ%g1 z^%O+%S~2255p+fWnngF?|3fc|PAQWU;Fvc_n{c04_tn2)7fauSc4aquqKaiysWWXnz04w*7CGnW+? ze_uKRv>@ZSYWmB6++jWRBh_1+Ioc`6nECV(Mo_21!2bfJf_-ZdFhi-&)P%Xl&jGLk zcnaXvqAbU|tD}~1LVlc$p=0I&t+GPz{x!li169B5E~`4<$J=Ij z%5T-e_Y7d4zj;$pR>sW2Qm0*>x3L@tF`Wkb1{{EstgP{B8y-?XDeXWrY+2fNYSOI$ zV$fy0G`Uu*$0-nc*cme_3_3EmO2@!8IA{ocEh&$~Yh+cYeSUrpTHg;dXT%(X=miNv zYZlL9#&=ptLuv3>A8Q?DG=DV>Ke`E8iEpiVGw;>E*|I^MoSgw?|a{tg|15PZa!89cbewauwn(Nb4;J*;w8wLb?I;5#TLD1E%w z?~BXIVCbbYX@bo35mS3E0Bqjg-kQ~<@C4sH_!__b{rk6twKY%#0E$Qz`gB*KUV3(Z zu6j6W`c@&GrwY8%f&yA@?&P2l1;;>|OeA zTC7^|(Yh^9P69&38)I!}X9p&@{lUz^C9n^Q)D~eLKrset8;9rF7VtO~K=-onI*p?w zAsvYS?U}DyIx8o(OF&4N^yLc=Y0S=!86eet1RwAT2--L?-B)`(?)Hjed3XN1xVQkF z6!(D1Rmt}4Cv{BqXyq}sB{eiktE}+nJ!NWcuZKjUy4~l180!#3z|c6l+TXXr?U%&v8&}p@RnF^ShLf2 zn?K4ilz`($$gPTov{pLMw?0O)W{g!7=5!N8BS++t0?nEO)F-Fq6d-HEBO?m0r{P>n zr5s8m9U*^T$5XsO5!cox4mXfxhW$guz)5sg4ZEv09ZGnm??FXJS5#U$V!>IcDAt2) zgumsHdpBdsQAiv)h>lAeR>GaYC*dB7O?^B9f0xHcCgd3#P{bt(CyXp;Z1gZR?A$%~ zY+D^u+?^i(d)ZIoOIC^&cF`E9XkNA^Y)tg_Phnva|8XlBBuYw^2WA*W%iuXQTb6hK zH)7!6^44cu=)P=0Ab-^Ah8}d1iVEO?bRRC%3`CPiV@(yT+Te!We-6)A6r)Y#(Ufq> zq2CA6uwI*&t2TNQB5>i6ahKlF&>+S9?V`%9(MZINi-aS-qbI_sq5EnDQ%2PTRK&#V-c)V}XJ<}Xifr=dkW&*$) zU|1@p^Thw8P_gGigFSWz1pyIY@Hi%YyO7=rs2C*NcJH-qZ+_>+W&$w@biap(2b4f6 z$u?bMR!cE~eKb$?=MZAabV7W|Z;M>E!=$s~Sw_%=pF7`&f8yA(rogA5NaN>VdjXwE zP*Bjf!vMbk4Uh3)pHmFS_`{>Mq@z3r!NK=H>{PbBL+3HdE)BMRU%x-YOyh&^cR>rU zw6<=QjYUWD2tYL416IC5GY$bD$}d8Dz!&_tf!=e|5oN6uR9?1Vp`|x!LRP zVh`Lo5VY<-dv}HB%FNLueLQk&Np)i&#ro&KSGK2arM|VED_dP%{rnjrLor$I2LG&F z5{?<#vtRpK42wO#L^MRS#xv5DO*S+Ij&j|(qlayk1kXTNB6ZYwslf%PaDBvcg zpDAV2jYP3)cgT2Lnyvj3pLH9u#kl~6WvR_nE~kh5jcH<&x;<8xaa|e{MO;N6nn|_4O?+8FF%gpm>m*Uu~mVKBr7C zAw$pm28P-VEJEfH#UfRO8rkVuFGY<{*b@`LLi6ue3N@Vo@etrC*)@DnQv)fb(wsk< zNwieAp(#*qIT*=nD5*P@?B^gEr%bSgfez``0wi)^BwyK&54+y?#y*ni807C|a2@E_ zw>`raU9&``P2JJT$o%Nxe{%i{qz%TX_>pG^9bBTQWW}wmW3|8Y#sIA!kT!q@-XtG@ zID&jkP@z)R>dXvhx`VU$db;!2%8G8X4Nz3%bVYM{d3kqtcgkPmBdjAoe!PWVYVbSPf*@5hf;xe8FgVQsren6#KW73hy(9s%0kw$t|3mc_Kq!$h2+ znKFLC{DCaJVQ5c$Mur|R=zGI^fV>6-oSsw-^_CZ>2(#prZPsiNR(Up0WILvi5RKdnd%BXEg}z)Fa=f+^ZD ze+$^;iHc`tn%6yNit5^QO?1Ej+_1~=&pnZt6!xye8;M&55?e zLFV^rk_c~RZ@UYpiB+O93;-JN-vRBJpTFni{K;xHeBIj*$X5jJ&Vytek;De&ROAqd znB-bZ-}XciBt2r5#-FX-Ms4o%SdPfu1e|jeP#aBY|{swm4y&E)jCp(^UBg1>UWb?#I=Ew=)8+_gHd$x+@Y!M z`jrhJXau$q08k)Gd(0GUAj5HvaP zoWf^fbybQZYJT%&FcNtz;5KQYm>ho54 zv$>*J_mNC6-!i7j{SoR}|E^d>!x62EgKTs=;z#`Z1SBSw8y)lZ+spg4l}TcAmo&R$ z?%4lYavK+L5oHa338&IpnL$ZSt8qVR&#re%olnEVd_8f+2KYWVcPiihIV5NT7zZt2DS-U%*LiSC8in6vza|veCGwUXcO1u6 zg}hF8nla?5ZI+<`llqdQ9NB6L=E}CH70D_3GVhCxcGS$?aoUTMWWp0mK8N{}r#~lt zZQS4eo*sFfcl>v-kta>#+Myxg@>!18PBac23S~1ImkIkA)J{}6L;&D9g}=bWL=_Yy zijKy+KH{%z(P2dmzkhk)y4RqqxWEB{K|~->3uJtVrx+&Xv`j#t+82R}jxBSFPZ?JK zWjb#5|BIKEeyCin|HLHz^5XLH)BRBca4Dto;!z2}5HMuZ1mU;feDoOV5}G1pibuj2 z5d~)@Huq!t^v`qxu;KS#Zrs1z2+foUN=PH3nxLCR(LaO0WKp);_Ed{fr=m2NG68(d zm&H?ORF7R?$DCeUdm5c*n)f?h$fEGHok^~z!eq@w4U|%GiW@t*zV{K@Fp|{$h4>lL zs0+H6aglSvKq5J+b}%YO)HYjhbu-hL(T)NM3<_eg%szn{= zmS-_T$lS{gJ;0Lc$-y3B0}3kW;Wk`Em{PvjTbT7jrquCvGET+`Mro!zvpcVdB{8Kj zUOm%F63@Y&3~Wd#U^t)gq+%dD zs^VQnwkV>CZ5=nXxBr0W!{yz7>a6|BwypM#1yTsR?xymE2zAgSn*lJ#5^c9lstuKr%ryDwG#F zO1X0Kdwb*W!>$N_k(Ho}P{d*m)`^ z1HdqfNFlBk1VFa$X zU@zrwBkKgNpKL?J(zr$OgXaxG{T`T>tTJdLU=+={^sUV15!A8la@5}F1IJ@S`Z{`+ z8T{eZBoJf>W+$Vb;Mo=Nwm%Z2cv!`&A2ytcmJK0fmw`Aj>Y^gmr?@ByR@;oV-d?q; zaX)xpAEyc4)496VagI`Q0*9cZw)QWOyv(75RH!IOD|##ZZnkSxt~%b{X}N|mn}Z10 zd6SwN8eIFZ{FP@fob$ri!Jq;1J=jDi*L2A$^_7)Mf;~lC{A!#D$htE8CG_tCz2ZOK zvbsO6Nt)}TD!&jxYDBguv$nFcar3#mZg>&(%p{@+)4kRAAmYQ?O51&)x}w?r`OAsJ z1;_vb{c-zzMbpmu?&Bki=PlZezRgKbelFDv8pNL+8L?T!5PwP^DZA{)(d?{sS&|)@ z-z=zVX-E|$+vO7V#OFOzRIz;Uw+Vwfd&vQSi1zRXG@>|N_ZiaAiPRUoMMFuYY zO6@;We4uy%z#(L+Xmr{g(*tP&L(aFDi76?vL28n4wvZoXWvV+_&A+}(4^p$pPGvn_ zNXHJ~p(0C-!~_{vdtpj{l5o@Nec9a5kPIbXw&O+<5LWSM)87aRc~15-MCD~Cwywqb z&S)-ug17orFuR6xN*o>FQ><_NtXA%dAj1#~|IfaT^Go)hytY}#GIiZh{0V+#Q#|E$ z+^n_L35(Y|RC0*aBqEeR_}p#$_Txi82;I)~|3rFnoITKvlE}!Or_d^3A7CG#C~A4Q zQd;$`5yp?FiOVs&u|hX?a14 z(l`a|R?!#Biu*x5M!>?HoSdAV7FU#g&F-I>NgiTUi$E0GV^!<%>+^G&8y=@02rrxU zq`ygl40qc|{y)eTT=N_W6^x zhs4+q?N@hW1LSKzs=s*MDcfp2m~NpHK|JA$Og)~2C|{Gr#C!fw`2MG?nN(h4s>J_Q z&xH%|@1|XQ| ze))(N5~Lx$vYX|@^HgMBaARTMbJ~~A>+F#^zvtSjIKUP~{7p|@X6rfsB4ZG}Yf`h* zKrk^wG7nGU@(v8rJhJU|KFXa)(gVO5Pt2yL5NNh596_4! zrI-aUN^fs@F$Ma}WO}FMHg4ll_y`7HwODpAC{vZx# z=CJ?;cGDsZHJefyKbyeQfMYOJC9G`loE{x6F5++p{#g=J1bNfvX~|^`4ornakORWy<)pFGCQZ@pbFpCn~-<$`5s^ zgJ4X=f5i9q_e&r@kd_8gRrC?VV`GXH2f)4sbJUTv2!#$3z2Nd+betgxa0*}%v!JGP$_KWpa~$BCo?ypQ=X-Lly7_Z91?;Alw9`c%V1z>b<7)XrgmTjuM7v0T>D*4 zHsoYepxl0!%hevxaLQH}e1S7x6-L<=YEo=D9j6$oD$|b&5t$w|%^ip}iQ#ukTd3Ci z^5(IRc7|%IMhwOF?Qcq4g!c$6Cffai4^`3Yz7!JOGT0*cRq42|x}iw@=)Z7V7D!N^ z_oSF-@SG+pd~;g)hXh=vWP$R!;i+FVU&EZ7X-8xJq1{9R3h@`Ce9=DuC9o*kQ)Ujs zG*oVj44X6qy4bn{2($2$#()*b&%l*{1Ff{TLvdToN@B|B&I&t{XsAzFSy=?})Y26f zR!249xbEPwSgQqzp?f@gEk=(U-neosPI8V=J6~VxcE|UF_x(Tv&bR6Mhmnl-&MpzS z#Ck;m!kHN=TD%}RM_6Om=S|%I&_hZpq=<+b+XU@S<3vzT1%?Mjn%qh#voZxz^w_d8 z`JQ3#Yv0=CH@(|uhVe-C7*|()~3lM<^x00>LG!qqfy{D7v90 z&vt)C1ux*(i(pEjBoS&A&`VR_2}$)Fa3iby4W1>{+BIsx+Q5R-55 z<%JD~uOi2wGOWV$Qw!@a607~ZF1DBwd-8>`c$y7Z$)_1T2_kVso_=4^km?0xDU{wg z>}t)e2y_F#4tGNl?4XhoMofPTWX!<#ubXoNcuzfms#IJ~453GlNzNyy0>?lkCm{h4 zN~E5_rTy=8iXphBGorA7X9yB#BgTN}@nATTs{Z%!>_&W5q|t1*zdWrYE8$f zrkx)t&VO8BrF0{VcW;!l1K8`er|-P(2Zb2>j!|c>jKW;uf^YNBC@SZHnW_EZ!v`Im zrMbDJ`1mS|$=v+se;PU-%8QE!jjJrgDX4=68LT0cD0B3(55Md?`Nk;2aSIX;1a(rm zKP}N@_`Gd#xVu^CauE4?hSqRPS)c&nY(mE{I4AT3h|bl*j#dGuTn_}DXn`<@ zGNt@f|AS)y5{*Ri0u`>57_un>{Fw7FT3KpKpIX_^5PxP`e97P*qm2#OIh%JCsQo`}zDGTM6Z9?# znsN;bK^6a0yE%JZ-wH!JGw^*_Y_%*x5fggGgxU9>LXv&G-@-~8x8Mr#;0q*WyrM6u zQFjV!KB(BpY>+Sr%TfD7-Mvo7;<*CdQh-IaR<@SK)nS}OyxDJXbRn=8uMUC}AC8TC z%0smzP|asi7YuJf3&|~RlqSKJ{6?Z06psi+8bn7##_xtwF}@)%vY8;Ek06Hr$)~{e zxcYU>0UM^2&88Hoo?0d-GRXXB_T@8nml$$5waOOkM`P+b1l!G@pe=Kxo+!eZ8AmiG zEJZj?r|m9HZDki!<11GER&em7JAfxswx+O#8AFDut*~GLLdtN3`>HCS<<4?wQMNY( zWB@`!LO^cj9XGePKqiP>3w%}lP_8XGV*&hIIQxs)Z-wL*&mg$Fsk!u`*enR8n*o87lf1_GPYl^>3ZpXLS+g5&;HvTCHbyiPK+ zz1ICB>*Q9Owh;DR5cEqeik z9k7RdhyMJ_tg87X(1?BJ=+oBAk)((9_$`v>5PuLa@&xV!sT}&&f9zJwErvUa0pc)$5+NsPV zRq4vET9hSN?^@GD?U{KrKDZ{l`$?x2so7QeyBr^KqgTzISVid13`ttJ8~ngRM&f`o z_IyO76dAn$HG*!VNNWqLG0XR^d~Mk&c$V+iOJuT`<954~`Umg&!KXPAUUq*4EtlTP zpy&8h5W5o4zhZWILy~E=l0L$53Cg}>4pg-w%1H?Po+msY5dHh{nJ8sNY>6?)zF?_4 zdze^g^m`>Zr-sO$%Q}Jmi2Wl{LjzL(7r{_HA9BByI=I@Gv@~h>OvMVnlEA4)w0m0m z*Oc}1TPC1fGZ^u~;R8*3zD%SoTzdK%TGHw3DJTej0WdVUiRZUvJp65ujzYNeIr3UNO8~laT z2c$yED=Y26AxwLF;q@TAV<2qdT;i5;t~ENExc$4hhT`{6Jt#8;q|`7>cW{Wvs9dha zmzRp*9ZCSpm!VEA#fJjg|r=A{K?+&R+ur=D!M)i#` zP$$q(N`m0~d&_&L0zt47V_fj1Kv9c1QCwmn1Y+1=?(XI$r-JN1)z~n^%X=k~9i9jG z6M1`v9~`1w2dBiq>7}tb&Kg}-p`a`7 z2@{#VxIgLed%WGn3(Q-vG197NYr9;s=WgKSci{^xF;J|c3FsQ&g)Riz2uQ#&gT-J| z#?sQEJ?j=AOZ59UI1bP{0|qX%Oc)KRY{gYw0saL*Donz^TCnRq=yOIVos$sMzTs>VTwiYWo&nT_R5G6 z4hmu;^*%fV8J>vTD>pdDIV?g8J?HE7EQGpo4o=Xhy5Bnl;N>9*4Lwby=)oHu}LMeP3i;L;G zxf}BHVRUrT1VP5!i4sASe0I3vyW8BEO5-y_xN}95_|b0}7aq;x&EkLc;71mqDl!>g z>~WeGS`Y@`;g|VS8)+f4)2rg6Uo+vn+=;^fsyNA#bEkpG5ibe$ojYcc_-&|5PItPa~o?b5qa{l#F{AJ6K?ypp3M!9C$aLl zt!EUqlVS_NM@Vz1&k}|rvh5~kQ!#Uu|9S|b5@CiUBqRXoyuM~{Wu;h{ZwL`9Sm1iC z$qdP)wBh3O#swYwlF&TP0y7@k`#-M>=tt)= zV>gN=bwM&0(?l@gil#@s7{;lLqR)rOAUu(~%wyNPjveW?{az|7FH*vbH67ydY z6Z2k%=H$`1%@3IPw6bR3TWxOMTkD}>h{5>zBR}$Hb*$NNS}|^LroF?B3H$G>Db9Su zw4h(^NKm=+kgMxq%~o!Z#S9LSB078KO+cYUsjj(M=2E(;+h zJ1>uepFeH)7M%G3f(tN*K=@&!M=U|R=nWQ*{Q+>z;P~N@3T)7eTOZgS$d0#zlZN)- zxW8J=HC0g9>*&L6d`YcFhjnlw8$7+i8fbJsaFLh@id!gI9w7esViCpAniRtO+)*g3JQcyD3?--&ny8R*cNqR<5oTimqUBOj zA>+HM)iv9CE&o|ugKua-ytyFsbmY}@He7-b)wb%J5#tHID}i0xcG8Iq)`)rfW6ky2 zQ=Iv4`A^s-*AOYRqnPP4C{GiuKopb1l5c&i?Gh{u@mr ztDK^^=MFPs5^2;>5+Nd_I|~|cJjnYpdAa>2Jh9|ePNIx9uVMG-ptIAw?Rb8|fMvk#6abM!LJZ8wBYPK|vbn?vn0qq#NGz z{J!fw|Ib-#_C9ByJFe?1fg<6gDhUqtLx95`nhP z-n)WTyxwMiwf~3ID<+#@=JPkSw7qq6Yvv)SprBxwt=;GO;TjMYL%?O5u2G{E8GMc= z#>V+8_IVtp$RMD!d?4F1pe6Anbl!u#AJfN!2+bIIfnD_{ z$j$?TNt(Ku>KLL5h_YkbchZ!MrKwThg%q$!&u zoa6$`7qkpK&4IETpj8D#kX!F!Ki#ZbwLf0pdnKE96|MC)n|4ho2Jo`zJX{ElJJ3P* zQzJnLU^6(FeI~Cecl1xpOsOo&RGDecr$WK`q-*Fqjfg*7S_xv=eQS}Nw?KqscyNo#%rtxAMqo4G| z8t_Sr;Y0qQjYchLItB!$pzzx7_cv9$wXa!^)hyDeq?)e87J z07o8R{Q&wRfP`Bl?<}0a{`BYFpnggdU#Jgb@DHjBop6Vao?eXcA0*;70_dR9pa51&R~o3+SZyQ!s+JF6qanM3iV)PtU*+GX5MV?rLxvm{g@b8X}3?K&8e!Y%~2FAVDD&l&6|e48su(J*&$;`3k=@wma_CY2+jq023{BhVKQYx9~7 z0xopcMk93$J|I()1cdE?Uf$HSaQXlUtqaX{h0*SgfG`3u5ooBZ#{khC(24~RDeuVL ztqp4_j{b?ekJAWKRHo9vRSpuiEUUg>x1(dPHO2ESHU&s2nhW~74{R_iPH{G z)Wbf(+)GTKB>|{x$udopEyb|Bw|~kQW5|LxBM4it!3d)TBC#eO@&x$$0vawkRi&Dc zCo}?%K5bm~LWu(MTImqDE`%EXY;#PpBhW9j4~{TdWW{`bG4M}}FlMN=g$uDZ8eCrn zZ+-$g1f7CX3S^XT3F}KDj9d9zBd$+v^3ew>)fRHEEEB<)d(XKyb+B z4!kl{qzTgwhyB0@1w-T|svSzWO9+K#j_#Tdrxj0Zi35n74Zyqth++YSJ78J@TIz*6 zmBLXSSs5`s4IiPsfCa{KrP&oII0F`{??7z9%*>ssV32n^C+b_~tfj3&G0&7e(znye zRN#R%)$=K)_e<6DNf1NvT+W|~0B>It)Jlpz4+=Gc0jc|E7hE zp-S}V9optKxyIrxXs)UBOB!tw1g0lpfKNlp5sh}Yjk)5HbwZSEr$U6T2GNrYQr$Jv ze8B40f%FdhWm7$(L+3A?WD$u4s_SPmpggnA%(01 zuLCb9P8mMEdE38QJdXiW$$H>7*GU{?Wi77DKBm<8f#~{=`+x$K0SJQ_MNg+Tqfqbf zk<52?2%=s4M07ZOqmCC|sC^>ZlQ2hD8?81)CC? z0!rHqVQ)7zH8lx|VC?=p-@c}=<4XwD^NMNlt-H{4x|jSH560gtH=Vl@3@p{m2K9}n z1APUPZbwPZRc^L)jSe+>uo7@!Hld=TwwyE%_hPcSM53YpD~>&bEJ#HRL;;_Rnafg1 zV?oBJGp3L8<(qHyys!;3WrsZaJ0_=Y=9R6q21FcWT8c&lU8p176}yzAw%qPQ4%{WP zaj8e8?up@I1CB;XJqp#OIWBhwT9Gya)2HL?THc74|(XBt}GzMOYZ+z7R z*>M7H#Ly^ADd`Z`qOlRFD@L_nIHV|3Q#BH0iz+Ibi;A`jqFDuKq_==3+X*0wIXwlu z?q{c`Y1fG16;pfPqz;ufJd*TSZzm+M|7&Udx2XKip8*#*;Kc+S=jNLFevH|}B9HBF znrF?uW*0{AP2bv|I3m8OcE%k*d34$Xeart4)|;kL!o5Mz7&*|M%UGQ-@< zbR}(hqTJ7WuG!4$u&ng-*yH6_Ec!0nzTc169(;0Htmcl+QOEJ^5u9A=4C@Ed4it#h+<&45a-UzEd}iv z)7)%4PF5-bhf`q(1AnU`-Omi7E*Jf*_Z{hQA9ueYT7|CuRP{Ct8Xm42_l+ZU?3qai zo0ei@AO<_aZEgVQBdf(Doz=Y;5lqd%1pbB*UU6@zl@jcVg-6gKkPpln5FL3ZBbxw^ z8Ynbw;CZk@l;bmo0~-+82K+g|RXZkd^sT)?*}mnZzN)GUu-ct0HDF_7x8s#m$l@n0 zk5vKc*}-_9ZR-DAZF{5Hb5m1P&kcYpPmBWOEyxmCz^B-&s&8MiG#ty$#4sR}m!_-TF6p}o;kaMX(2WS9?0LK#3cR&NHF#R89 z4C~>$FVG-r1&sfI!3(%*7mfvub-$0`53M)=DT$%Wq!ggQskIn4_-Q0=V{-SQe7(bQU2a%G-AuL4wt^f8hoJglv!KN z%E0RTu<&k+c80!d0Z!3XIT!?^KBi*!&+1oLSP0;b z^nql$KuU&Lr}ej~*=1>)`|)4*+?QHW->p!s+~Z?kI}fvgnq%AdkDJ5expxaX#C0fe z1;~;|U}rw|CmEL?d8;hT25kiQ?$V%vy}iyO1MZQ`T3MBv2A?f5ouxy*xG%*!-mv_M z4{Ytse4?k@_=zU8+LC2~RDYvzC25`OrugOMqE(lRFkC;)8JwHTAKZR<&Lzv=;5^(x zDhZ$mgDL_cV%!jTC;}>61gKR3xpXZq(c!MLY2)a>OS>amKBB8c=C>A-9Z2Q zm*+jnUm1Qosi&s#AHP!nb}?F?!Bcz~v0(K*8~onpcA4(~`Y0+*?hP%uG(*;nSC9Ve zxnVu;C<^gaqLX3W`Q*G^gmsd6SJz+RIXT2H^Ywm>f>ezC{bxWW^e{S@RYJQNxtJB! zPj2`&Rytn5dU9YO+XiRcj8jSYdgjdUwnd#0KUNxWk^;I~8r<@#sO?JMq2h<(E2c6MU@&+e+ic zdsu|slG7Aop3!?G5F7-MtAI>FooFNx)Z@5Ofyw#?j>#}?nhXjwlB3bQUl&_dd&n^z z&30^~y2LfkLfSmv{)*lY#5BCrYZ^we@rZR5dUYd4SzjDjz?i& z4=in&Yi;K24gI&-EQtEnjn)SKDa*;7#}LmlTKH7NshU3s~=fn@0(KLPh zqClE;Xa<5t6Y+It!5AB7qVRW_X1)L}#zmoCyfJQvHN=swEG`qXoa~JMc?{d4YHR-b ze&O4<-<3cAg)6ZeD=bqwvj2`!N;rUyg+)jg7Dq~=2EZkN0{q5LQFud~dn-MD1u}q@ zK=5<8ToNAu7e7J2qvG@YBUASERFido@_p1jvdTN@w-g~bAY5%YNyJ-V_hQV_LvUd^ z2$;d?;BDF9JoTSrdfkSp`<=-#Uqp)dUNG9&+ucD-r;_Q@F0%VX_WZyx{k%cYfeynufx3A}Cfj`9@#2Typ%c{RjjDNn1lMzY( zv$xu!yF0@FP(}-6;eZ%e^l@RFwe??Dx#1|$;|lO@3{b}xO&iUc6o->oUrIR-+Q;{rcP_EqK6WMP{&Uez)wVd+A&)#Q|=c=g}0Tu%Vz(YXz z9Rp79hSk1iQsP@N#X7uwdoU*CHHVO9XTMheT-O;JI~;5u7cQ^P6BO{TH5rAHzM#Sc z1kwai_K?Ow5y2@SJ_3|OG(t5EwP76aw!%Lxd6o-L=*ax*J@YuHD4GF-Lj6Tv5&A)sZ%#(~@G1zQcJ=S3fmXP>UuC4(^iawl(Vmo;lu0}db z7DyTWthQD7RdC60;onqWy5aJ*?k8&>ZLl=MUk!~po={wv!wki_Sjbd{{I3#7=%%)8 zwB-O;MpNJ8dj*O(pHtUy$;T!A@!+7rd{t&9|G$6pgf}Ckn6${MkHq=A&q@KV)`CUe z+noIskCVDN`}XG>fH*Of)&m?~K-UhH%*l4=2Lpt_zOX?(xwFKu?B8Sam6h@QE;A|m#& zI;qz?G`Y@BUGnFaESPDy1r!y5AVfV6tR8Di`x(V+uOPe%Y9?Bt5A5MG6|i)nRomy6 z{qu8 z*Br%}^I4a{KSz#ldA0O^ifcDKiy&2jE;)f$rmwHUPOPDnE)(DC*{Y68va<6lnH#-t zi_(?fe<1T;ZrSGA6?;{QQPMEWKU$rPE^a2I#ro=_z{7U~*Z=X0o8rqG9A?soH<$X}z(UO2AX}0yvPK|5p3e0U8eA z7z9f23;vqGdkDB<)YWOq^NTvqzgLu0;ll>lV}SO^_@#?JfPYacovz`z=pghl+)Q4! z&LRLK0tODVFNx47r|1uRl5`QNL zgal~+NIG;Ih2jP|vKFM$Opgmq%Z4E`udfvLJh_e^NvLuRR{y1V`O@i{j=r!z50H_9Nbv-$(w%X zVwtF0wuid|89lm)^r6@fE$*jNM~b2sQfV^!fT$ty@mz#sq z!d!!yCBf0#nc3zaKSJM>)f6nd=HySRP~(2DF7L3M9MM5n*FX~7iL>ihlvev?Zy8on zo}wJ29?A$+2||^QXwhzrBB;>!=!)5~K%pvD&?YjbL8QnT-)pct1A#(rNItP}Np*Mo z{s$jF6!C<1Xs@Y|bkg#FHvsIIb z3vf>*;rrjytGDFMC1=O;o^!sUuhXKZOqu9J2r3+t6rz1OG0H9@#1KsIdT#oOWMLBV z)d*u|0)>{Jt^kTDe3N4SEMI=;sNwPm;!AO+5M$qw* zR|ctfUJ4H*9vSm>yeVGqH9MY4T;$hgRw(8f4h491_?Mot@3Fh+zmfPkL${I2TaGcG zeeyHmq)O%eT-?KQC!=<%J)yku+p8;Ez*eF?y$dl>=-l~dBY1$$w%#Vf?K&X@8{-)M zQ$S^CYR(>SjU=#Ody${8$iKi=QOBjg#pgTQ8gc%P36eyJ`m*RQ(>F&~aMA4w(iEYt@%@n%C*!pbioQ}(85SNm^=VwnVPl4h)5~w;N69jmA0tUWJ&t~XT$WT6BmK;8u0f*oB+U68*p;u`!Oph_ zPhnYx^EHfH0aZMNDu$yRMFC_?p>7m{m^S>gbP$^olrp@7j4adFr`l+gtB`*I3NR+( z^*{NrBCHS4HZ5{J6@4ZCEMuwC7X!_J<|+V!!a0U7&m-|V{`xcyfHZtPJQ{0jYbz_6 z38FumbFZ}ztVxg2XH~pMF%B*9y}&%l??Hz9#vXXr^1oY!@E{r$1{bMJWRiqCvH=iVnFV0k;-8rNr4gUOWk>VTT!rmpQ#$}+}qk{ z1IstsytPFd$At(L%4K@PR)ij}d5EBX$G-l4_tWJCKnk|9BAlW)=eH5PS@LEwB}}Nf z(038R&GJx-ys_b>m`C((%zF7j8;fZ zsFP@X$H~;RTuX9f`H z1t#y@<0vA4+4=a#K2q{E0-Bj!IET(ZsB~{XG`??`CWT1aSh~$ifI)>7p`AmXoj%s1 zgqqbvK7XSSahu>eWnd&&sXarCjNgYoFv))yqM9t@5n%ixi?~(bkOA5UA&VhWfD=HC z?xAhs-Is(%x`?BX09K!<+{owuYXJ_PDqEN=F7T8-x%jF5g^m5G%*4S{H=c4WN@0x3 z8Z2THx&GjDHl{Y89kst7`eC|>MuDd8#^1RJoF9x(7YZp?uK=Dlp!8W-Xli7%KD%T; z98;RoEMVRrH+Yu&z6M6`wktDg@wy23BmTU5>wV&CC~`Be;mH+mRL#K?8ZSI|t;d@_ z8ujPH&zlsEffV9agT&J{+mb8_{kgX1lh@T>g&#Hk-d}!VYun~rs_zjon+ipz)O_1e z0Tc(StE>O~5hjV1C)jN;ExBD{oPx+{f||7a++USOaR#nDo>>YRi}S@O~F*AFN<6mMP3wdXAiK|7j? zr2@s&x@L)rwN_gonP5xv(-PLtSx4ubC4y*>a){p8rG&(&xq0O;6&IHtIH3Ti0CFF` z-*3eoiGQh*s*y5Nk4Rt3^o0w)o@Z}o*;(FJO(-ETuc0{{k!;SuhKr*14u6$J3IY0 zpZl&*^k8oeg69@_fB)BFErXhe0~s86iRn)OqO@)MZno(M`fi=3hUViOA1CL9Za?s| zrM=%HgF6@SA@YBBhSL!`1_u5WDhYY*jr-4!@)iqFYF6zV!y{%;r%=$tfwfdwz9}PJ zx0?u-{9_Je2h#ZPCn8gY4(WGAN8Gq7VPSE=90g*0{2>YKQL{?;^`T3=U)KA&Hnb$E z4oH!6Ot1igt^i32%0w5q07Mix+sY*YX}yPEsd>E>5t3BRRq=6{=}@K5ztX5~=v2;z#Ybr9biUHw=51+N_D}tFrMRGAGyjp?v%3KZbAXGD-z)N|!66)< zFx}^H8C}Hn6bZyG#M$~#9dA+s!ikgwf`DFADWXI>!FoOSt-4Mp-joT6V(yhaMz|0T z)!=zjQv$IN2wPq}LQM51UfU%Z_!M|OXDgi%h^#R_y80Y$E{n7~pLXJ@K$*A_aF_>d zUZZUp(Mq)uzGAN3UuJ*tJU}6qM}-Z{<;mSzmeUk;w4CP!9u&wMc49^Nndv6V<{<*K zxy96Rb9@a6u+GPigO_7$4|!jdKGrHewEl4cwCkPUMeirG4#N%)y|})_#bK(3dQ?3| z8$NB%erjJ^^y=ATZ5POu-M;kn=k3m(Bu(IV3Rq7$bP=3}?bV_oj@3kpQj50uAzFE~WL>q)~Ic$VUIM zP=^m2ZHzMoU9hO~s4K5PY%i`W>SP)s3{5Sq`1pA5Tz6pf#_GlBmkO`&F3CKzRyXZ1XNzqQ&UkS#AAM*%s1KAmo~VYSyE)m19G|fxZ(W;B?0)e-Q#Fs!v~}7Pg9CJ)dJexkUe7+zlZB zTq37AefNcWfFAH4lH~q!Z*FF$)mJ;npYx3LIq;7}Xs}?=o@a^GP}aUuu50HGp@HjI z>6p*U4k12fAOk7z?cfYp4hnE}jJ!@N4^1RMWJk3SQ-}Ugaq1pX{3V7%ytb3$c@bKg zdq>_InG}0s<9~hVy5sCJj=Ny|{`Y9p;TG@CXbvfZaCy{nJ3&TAUeTTQ%*@eOnh59I z$90rH4Ba*dQTX{X$a$+S9E2_UEp+k4fbPg7(-z zQFt30etB}{cU^HY&;!cPHwH#o04uRzJDVrN&dtp&B9c44$1?nWwDKe)QP#u7ECf9t zz%vc-t<<58g&sAMT>|-?NS>AkH8f_wnGB3*M)DhY)`5EgS7W0#T^+!$T%DWa<>O0H zh@(@Z2H0v+YR60MP*#$y8fO??KeDl6sd1Le?uM+mC zvN&h=(wUn?8k90HO#*XK!oe5vY6&C>@*>$cQg8v>Jf7pi4O;(#IjpR`x;4bWNWq;^QE0CY zL|ZoP9@ju;^jevZ3YwapRw3xF`20=o;O^-jeQ(Up+B%EFR2l$eaFe*|HvqE2`g%79 zhyT$K-ObF*Y;6^0=b-q6&-=4^XjtXyH8!_ZUt0{04v$I6$zAoZ#UL;S%4iu>Nrbl>!|*%@F*)s(GSn{ zWd0Sc`IFvEr8Mv8fJ1zm`*{%@GNGZRkI$xsiJ2buTQWA6rm-LiK7x>30Xe#y9fArj zpb{J&-m{U0$1d^snL|T@&s3b}GIZX4cfi(mIZ}E^(DxUjcUMsg+*4F!}nbiSno#h?p+a0E0dL&dku@qVm_NjkWxbAavm3 z<>TW6EImM2c5%7dNjE&5U)X5MHP=a*3hT?njODu3dw-X*K+%&c$5^!|5Z7Y2q^Um# z_$7exH`GiiI~_>f>^`5*WoZg3tocaOz5t60I4M*$%+1X9(dYF1I+4;xY^^_6y=xDK zH~~Zp06`9TrViRiGdQ+RX7l_bFW>WwWnLYAnjxQaHIM(ghRha1kzq^j-BiM=r&^#+ zqaK@Bz$x(AThMUyyEr%{sZ*Ry8^H?$pXbOcL>aS7qlZhXEXNXOd12D+zB;b@6E3fb z$M5csw;s|##|G(-d4Ja$^gn?qnY_^MFG>x@j>sM*d&9UtR+r{-+_+YEpt0yzU=l*ndm4b&_D#lQtzU!t6)v!siwoxB|Ov71`+D{A$UQ zD@hJB78Ccf(52|PJw>Z4W9K=`{s!X;g%kv#s~S}0`o7QPi9VZ$12vXMGV6v64`cgS z6%hdcY7jM0b*}w9_LCo%U0>u>RJ<>{quYzfBUxS0X^^W*gVhw z;lM(FF7+~qfLVKDd6}7IKCpVKMFLCL{|<4f(AFfGaXXwU<~;V~$i+CuO>nnM?D6M9 zqu5pm#&*yCH~Q@I)HfdA$SpI!6Cpy_31=wa;S_WC`n5j~WP5wj>xm=c>4H7!VoqG% z%oH-w)&CN$8b?`}SnWwnCM)!vkXQ7Q28%bXBZ67k`b%@196nI@-tP15)o3x8=xkT} zf8G7+>Pq_|oos#dlS+y*Jx#Vlz3pnN%K=BI7F9s77<@*N*1u~M5Xj+ua;&MR&U)YG+}ZM} zCi*-l8p?qAU!%B!D^zrKUtU=j$hsJiW}0vE>!kMA87c0%$Rqnr^ks`!5j&oPKG1_Hi(* zmfxc8CgY!-%3Bk1tPR%^e9yxz&3II28i&qe6+6NZJ(7oSU3=M5JL@oYa&XS+Ntnvc zg&Ih-i;+PM340sA7q*mhfkZ+v0n2F0u?D*!BK+(9U_W3sEpnZ8*4rs^C6k-~`gy*A z;G+}L0cHCRQJ4yVkI+wdb62|L>>CttHCIhd!k4QCrREZT(hXOE=s_(F$0$vR^+34~z2(QBK>N1G* zLh1Go=>BZi{yIk`FzI)E!jxzDbKHDs+8c&LSx+1FfqT49u$h^u(;XwbP$x~nvzs`V z!!8Raw^#TB1nGj>rytK#@|#Z}!53vdJkUBn4BZ4YVd^pZA>M!ej;rYA!T0)6%jv+Z zYqcS`T$fwU919M0mS&+ANv-?|3L^)JZTt&Fz-NbJm!wJ*qo8PFpmX(7_$~^I7}IYt zV+A&ZJft^)St!g{T}$gMl7u03_WFb<@_Gy><`*}iWkDqR4YG4-)C^wcWcqm+wk zyidH{5)i)8IsYnsidub~V0&+?Ux;*IbEE*d*Uugq;@7Q&?To{h26=+tB;x(638-(AXeIZ+MhK&G?LjVU-+6@ltWyn-u&|O zLHrl=)r)YqR!smMUDAaJ7DoU7UulhJI?@GAj(t1Ecsn5!zFA^pHi25z=AjK=Qnkb9YB|!Rq^tUag*6!;LpHlu59(3fbH7Rh&7mBrZrveD#FN$q40@B$zR{Tm5QXg?`$|AS?k>lZueVt z7Tt!Mx|3a^4Muwfx4p=2Z2@I42$r;>z!#jk+6r-yxVl!wk)>VvA})sJx`@v zHj(v8#~2}%!yyK2a|`aG!ND7Y=*j~1)b=af<`5d9QPZeiNzq(8cxyv-=6nyZ6;QNP zJ>EF2**>~WiiWab1u$!iWo54&Ptq6Ts<3020z~T&qyBTFFaO9sP9zTPW%jc#;z|Bt zVBYwtfZJ}{Oa_DXGTvO^3!gqrVZT5+Jknu#Dy2_4n%WA%HmUMYnvcjrBA?%$L> zoPWZ}z4gTQXALWMU!{^n7S%*J>T3}N6csrRi92LCx^9+ss1L_`iRq?_%-v{U(5$s> zWp}wYNK#5&LNaify`S-dR2*Lt)7FB>Ih2eV7LaNJ4z_U$nFOB-98HshdRxwJ`ppbv zO<)&hbW&cSX3}bgD;CUGZp?pfhnUn5D2uFyTo5R*BmpF%1a;Y)^6f^>KnA4?OY=@r z+=+z+%8f>4`YZd7>rZ%+6;b5dclNcCCk}xWAwH_du&0m6qHQI{A=Qod)26LV>WUFj zWpTeDQ&dFd%Ufdfn`B^QiNc$#bcN~=so{T5(m(d#T54AqKb0XzN30u}^X0E^hmc4s zYVPBA2oIK_1pyKy^%UZNWpNN`#V|Ytjo!QcP;%|Zy&t&zIf&Db?t#G{{D z9wwKSgfZ)RIH0893jiIt>Fdt?d|}aS7qW>XY!G!2d!NTqnwBpg07e&YU!gi%05sns zGrQ?g50i?Nx+k8wXI=M)yg~x4)UUV7{KW!OrbN_6tSKX!sIcdiG}LdYaNk`v`xhfU zgHpkIVPubL)+d(-j?)ZQDv@CjWWm90QkyX`_6}g5K1XG4#k9bKE~phSjpv~DaV?&d zVAJ{ueAD6Y*~S8TOENfgp>k^Gi(1&vHzp@1J_4JFobIRM;%R2ZHD7`%9`B&k49DW8_UCQ!6qAdq{ zr{#BhEO*MwV@@nVI52BOE1XIxhsG&Ng4QRG3g5zF%WwUbje0y(^ecO`-j&N>8-8k{ za+;_>yFO3?4z=cxMsSF;7$P6SDg0%K4Qgy)s);p3P^YT@rv>_tjPK$WpRdXmYITd~ zhO5H6OpsnpuuUTO+k{$!3C_Ow2Olh|A7l@fDZVfl10$5`v&g{uZ(y=-7pZs$BY|$FlZnRx!*+n-wb4RNoFhmf%XB#P6Bbsbiuov>j%WB7#uf zF=^+#LFN28$g$Z|%SZK1D&Z@%lYhOrs^lOEL5DM*DQeSDmQq*v1R3wK>^9%;ZGS#) zy>U19c*UW3$3hzfX7Xzum>sco-q`d-Bn$>%FM)XgiL%=#9Uoq*BeC)C+@uv;W)yxf zB{z7sCyIN?gpu8ytod;|dydE&RZ!2 zD(v}G`~I!nH%STge*0Vtqrj9B?G-Z|bZ5yp-7F`X7|z_mlb$$F8MfnsO?xDvkB011IS5#*9c&SLs%6|IQ8y zoW)}hB&pCFh;{A)9Y4zDj&(aMQ{otEp#9-%_cWfWPo~$~Xq6eiZ1#5R|E>-^E67qZ z83BnDxh#ALyG~5K!I<-_NaaPm3ZxSQXdjxx8={&nCufw$8R5ox{di@y=9uB2}V7O~`a zFHBv5iWP+5jM$&>)=V4eG$8eJCzbAG6tbO?tJLCEg1HWZicVfcAO6zC?Aq-p*I8qt z<>ZUjasH1ulD-T86}Jn|6JX6Zy*Cf2``AmsARNpQ$2f2S$rP-}lFreIG(hF6cF)Vy z-s_TSRs3A{8xEGPH@&jqZK`i-7OWIE9TZ;AmX#^V*q(A|R1rGA)zV}U zJdMl~Jt#(;3@D@5lfEX}tpWieP!*L%*n!t%jONrag#-~k@An1D_dh2~NG@yxg>fSA z#_~%TeQrK7dAL(qVTH!*o8Ag!$lkIB^XuTyQ+Xj8M@{LoT2M`&l~XFXLg{I{gB1l1IJ6px z=kLr`$#6z%g9ZByVvwQz_yGZj^vba190+{IyBv%?1;h{Rw;*<>kBQ`_*5KYF=&l3g z8)AZq5mT=?_#O2X;`)#y%QwVsxapzCI_OJkm*1x%I^ze2fw%nsodOD7;6z{?XvmtA z_RC-p-R|D6NJlL{Nf!zO4ESwbABSkQTQUiBQ$eN(G*E`69*9pTU*_l69qRQ4;G2#@Et2nbTK*B`TVElwGp{!9oA9Y;7! z_zfU%L^rJnhOF;Om675g$?xKDS-k9q$7g7=;wag!ogXF@rg_@Nvwl1z@sU`tKzi&P z{B1zWiP7wFPWhD9eW66q-XXIavAyr)A7ZevRPxNXr63{T-Z^-#AUaL04K}JWst2bg zJkbxwa!`WQC>SC5RQQr?T`}lpfoZOVRbWsf#cy^3a10SD0iIy@D9s)jjeARz$~dXH zW|9q{sQa0eL;o!l$2l~0HwS$TF<^pfo{N94tIp$@BXIiFd1Lr!j#Z>-r|bLJ{mvhE zU__FS2pjsy?HAK``g9_{HD%2>)$%0G%^Qn%Ab!Kf_wS;yab@EbD-uLi2dhQr=SG(< zTNk(p7x^cjv0MC;cea~wsCB^zK_e7+7+|SczVRz>#V}{W3 zyWfhIhkBL(f34>JP&@p{j1T0XG;c*IM8OD?G3V9(t6@&Zx;VOY6YKu?xslz+!p|f+m+9R=qHl3-$JgE(;<6Z^}5W;Mdja&5q2NLhp@)ykg6?}}Y|QAfXN2{v0g>jZvy%8pFg*PC;4-<`0i0#iki zN2nl63?Bg)0zbEzK_xa&E9sYmgBdy;K_ca*yD#-kdNi3e=kegyz<;h=6pbYR-RsY> zce0s7erVpoXyF)%cqIofFSpa%8XSEnV&lHrFDzz@&?3W125Q=F>BD(Z5D2?pPEuT* z9X>GN>io&bYEWgk?=jN`^>g$Sy+sLyfNGF-yirJE!BjZ8_q>~JzpKzVOQl}|kr!Qd zuApgL@>Yh}H?S$vU*^Ad;r=JhrqwNX(|@u@fbYgt+2eBZ>z#j|FMZRIRIcAPUOx*w zXnaFalh4z*wCNuO?>2{)gO=Gt>o0w*+E4;%d7_yzOKnnL%jx()C$0Ix zd_~O|x5fhlY^I2^2xOH;5`12U+9Lw?G4sbhKd%+Tb~Cx*f3tImb}Lyrb!a6c4|G3% zbUvQ>*H#L@x^E|F4Uy}fPnY|RkNa736no^plW<;G-hF4h_L{h*mU%9Vk3$O7CwY6| zX?qkMDMPaHGgbEd{huYLV?JjDqyn&Zn08v~_#Uw-_R~wCAlZ}jfnKjdlq7YrfJxl` zeaok~0&usz`;7DbDUTd0-=0wVuxX4_Q;xzTB0^_=Vkh~_-Q%sO2RSB;uY|<067i>s zBs-jf%Fh%c#}U$XEDuj2{c2&Ky|uH~E&Z&5ua1jNP6_!LagmCPs}i3hCT4I^VJT`# z!j+=aQSs2njl1@Tn45RWXd5?b>U1modHvn}ZPky5-zrO=r~)&E~lew;oM6yE;ODPhwA8BBN43 zh{Gy7jJGpvBhU9={I9kQ{ZS}wl?K#-u(=~C`~kx3NCTsz^@mWgundKZxX8x6+T*HB z$UI}sk2JA>j`+pBXi?@DP{;aN(0~ zluIZWs1|CU0*b1dbE)Il)ya#Equ8YYb#CCtxB^O^fWPcfn%@r;2q@LTjUUoEAz)eS zPa!Ho22X#F+W*!TzXox!o-LY`Jhr;9)vApQo(FzRvq7z(VKNv(vUG|&pX|pQ%SV4fzcpn4eqzdAL>19AbT0v{qaV4uH|y|wZU&%mwbS=)or`^ zG~a{}QZo47)+qaZq%DD#W>R6CK&7af6!hO4g66r$4S^@Zs0>R%;SMn{2wLI9dhuD) z%LMl=E5?0L;Cfdf;gq(BsvH8X0aJ#lxsfl#B`OkWwrN6&sNz3Ky7b zG)bb{B+F#48dfimOFIH3gx}R-X}_E`ymK4RvtS;M2J$Jn(zk3uR-K_FU5c7LhvhtD z<#Ap3+sVUiKCAqBX^bIs`*Y~Y?V)j&#@Wq#p3Nn%j@RU(&Z9`boJbf|f_iDRr4Qpc zoc<)dfv&Laoj%@hO=@dTbGO^;lPpPCg<=i2DERP=ouOZ#LrWH^LiU+H89Yp>y<_I9 zvvmo#`FtlPLsz$2X~$B*mw4*Km`(CqJ8si#hPX6~aIM+=dx0@eNN}%Y{O0E8V)s9G zJ&tpIPh)kyWJ|%jgAVk0;~&D{V>sY{KZTf2qRG>9MuGb}h(TgMLt6b$@8|UI@ylWC z=57;ytax-;V9aihr^vsA2G@hyw5X|!8&0@i)a5_T%&<^m^*b2Q<T#nV1*Ka?FsvZXArQlfnF;_5 zZgGTwkq&2QYkp*GSgMeW=A~Cg2nmP7^NyTjgoqv?p$crL1%N;V&HHeuw0FgKzk0iG zg$kq1shDTsQcJ+YcmH(V_|xNmyy)ulqLnC8riIE$)sdPSBprVNHpnf3^%fRnxu`H<%$L1&q^4+KNM`sF1TU2^-- z_(;uSE#1d@H>d8q@afv71)jTRP5%HJlmr ztPCF<9+0!Ep}=OsKJde-?WjKLAOt`0_>+3J3_t(k^XGl`%w)fr8)DHKT6e4-jEdg% z`Ag2Z%A1hGvCun9B=xi0zW$REY4Cv{|A8N-PwF@*-1q+d6$;vW3iWCdPB00!_6Jw_ z@A0QuF~%rWZu$BZA3JO1yt!qU+c7}0wn0qGg zc-pL5q&YdRMM!R#1xv~BR>#V4jKQ^dqCv4UTnS>qfa>66#7J*?W=nnahztxDozn2x zMGY%Lp^)IP=9TBZa{HyBQmO_JA}H14Aq>?=>3R&m@Y9jDrv_c-6kf=r+rgxl}S`nwp>%ww8OE`J4>Y3jgjGl(Qt%^T96itxF`?f+%O#YC$PDzAaXj^3JQ@*;NJE=4~(xH;=H1e~inZNkL z(>XUu1rHzN4sNx_wm`^?DJqLJK+)-rrc*a7lHG2gm~=dquV~dXeI5WHg2H8ZaGN7s zFybVcw3{2kp+(e)W6$DL$0Kd_j=z}8J{t>`l2n(+9MS)3uI-6*E(wWB6$8~m$g_nW z#erfHZ&XwryO!AgcW?C&va} z@$UMs)kT5I!z%P|BXS>04qgE8hgXY@h8>QAtG z{V%}UmtVT{#!m!FJ$IaF0h%6QS^(J@ffWdsQ8k28y{vqmI=0JIgUGYM$ugsexOw5( zY{%b!8;PF|fUn%tfE2#_IV;uUwLO`6_Reb>TUK7R@e)vln+MMl`7t)M)ya>sU>UAn zMX9UyuCx2rS*|HCg=md3((X8>_ubFmd*u8jg*If8Ns&^hQH81{ZxHg{A*t77!JeWh zzRTx}<2Z-mgm;$6B4t@fGBpUE*5!b`o%^Xz!ah)h{UFrS9u`e7D2RfwX!7O7M=##? zbhqQUTVLI>e#82o{qmid6D=>033j> zbT%8%4A&B=Zm&@*Yi#+<3(tNp0D)v62LRMS2!WMin7{(1=37U8@xrxVa58MX(^W%Q z3*(`!HXu+mdcl`J{NlYkxZsm!Pxw;k`c7Sn!uBWmTlfp2s;aDb@H>c9RYjI*Y5HNx z&v%N*eJNuh$$t3yPMwgwEWng$yKh#|#K<6@INRTF@(p5wliok8La4*9FTbk?pJRP(DG(Sr}X7G4`yrl!1z>{^!`t3g*|>^#m&+&F0D)! zP9Yi587P6l9;RKTk$=L;E;Fils+9WtX}gfgtJg34qIcZS+>hAK4Op-5;A3eBQyCTB1k6*W!F5>yB?|I_qH{<2v#=UY7 z10bXWJm?l);2rHMotgUGP`z1)+ux6Nu=gSJN}?DVB~hhDXj>(t}tfLj$vdI0z@sh$ysg;$o*19P2AP9_sOv-+L zul26A)oN|M-|Xz}Kn|b*d;kpqAWC2qhzght0H9o64uj}IycU<^xDwav^=7l#Xf&$T zDmjzfF>0Nc81mDI6G3arsbAk^&Oo;;N!-T|x+2-0dKQ|HPm%@SCkj z`v&pMqbMSQ-Koc1_@||S06?fh`6VY}3Y!|7l~EQWt)(h8idEV6@x!&G>3nxdA2gTsvY1)}`9x5@(h-v9sr07*qo IM6N<$f^r&m8UO$Q literal 0 HcmV?d00001 diff --git a/examples/pykde-sampler/basic_widgets/__init__.py b/examples/pykde-sampler/basic_widgets/__init__.py new file mode 100644 index 0000000..2442375 --- /dev/null +++ b/examples/pykde-sampler/basic_widgets/__init__.py @@ -0,0 +1,17 @@ +labelText = 'Widgets' +iconName = 'about_kde' + +helpText = """KDE provides a large set of basic widgets for application use. +Select the children of this item to see for yourself.""" + +from qt import QFrame, QVBoxLayout +from kdeui import KTextEdit + + +class MainFrame(QFrame): + def __init__(self, parent=None): + QFrame.__init__(self, parent) + layout = QVBoxLayout(self) + self.text = KTextEdit(helpText, '', self) + layout.addWidget(self.text, 1) + layout.addStretch(1) diff --git a/examples/pykde-sampler/basic_widgets/datepicker.py b/examples/pykde-sampler/basic_widgets/datepicker.py new file mode 100644 index 0000000..aa36de5 --- /dev/null +++ b/examples/pykde-sampler/basic_widgets/datepicker.py @@ -0,0 +1,42 @@ +from qt import QFrame, QStringList, QVBoxLayout, SIGNAL, QLabel, QSizePolicy, Qt +from qttable import QTable +from kdeui import KTextEdit, KDatePicker, KDateWidget + + +labelText = 'KDatePicker' +iconName = 'date' +helpText = """A date selection widget. + +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. +""" + +class MainFrame(QFrame): + def __init__(self, parent=None): + QFrame.__init__(self, parent) + self.help = KTextEdit(helpText, '', self) + self.dateDisplay = KDateWidget(self) + + self.dateDisplay.setSizePolicy(QSizePolicy(QSizePolicy.Maximum, + QSizePolicy.Maximum)) + + self.datePicker = KDatePicker(self) + + layout = QVBoxLayout(self) + layout.addWidget(self.help, 1) + layout.addWidget(self.datePicker, 0, Qt.AlignHCenter) + layout.addStretch(1) + + self.other = QLabel('Selected Date:', self) + layout.addWidget(self.other, 0) + layout.addWidget(self.dateDisplay, 2) + + self.connect(self.datePicker, SIGNAL('dateChanged(QDate)'), + self.dateDisplay.setDate) + diff --git a/examples/pykde-sampler/basic_widgets/historycombo.py b/examples/pykde-sampler/basic_widgets/historycombo.py new file mode 100644 index 0000000..aa35b53 --- /dev/null +++ b/examples/pykde-sampler/basic_widgets/historycombo.py @@ -0,0 +1,53 @@ +from qt import Qt, QFrame, QHBoxLayout, QVBoxLayout, QStringList, QLabel, \ + SIGNAL, SLOT +from kdeui import KHistoryCombo, KTextEdit + + +iconName = 'history' +labelText = 'KHistoryCombo' +docParts = ('kdeui', 'KHistoryCombo') +helpText = ('An example of the KHistoryCombo widget.' + '\n\n' + 'Completion is enabled via the setHistoryItems call; when the second ' + 'parameter is True, matching items from the list appear as you type.' + '\n\n' + 'The activated signal is connected to the addToHistory ' + 'slot to automatically add new items.') + + +historyText = 'a quick brown fox jumps over the lazy dog' + + +class MainFrame(QFrame): + def __init__(self, parent=None): + QFrame.__init__(self, parent) + self.help = KTextEdit(helpText, '', self) + self.historyCombo = KHistoryCombo(self) + + self.historySelectionLabel = QLabel('Selected value: ', self) + self.historySelection = QLabel('(none)', self) + + items = QStringList() + for item in historyText.split(): + items.append(item) + self.historyCombo.setHistoryItems(items, True) + + layout = QVBoxLayout(self, 4) + layout.addWidget(self.help, 3) + layout.addStretch(1) + selectionLayout = QHBoxLayout(layout, 4) + selectionLayout.addWidget(self.historySelectionLabel, 1) + selectionLayout.addWidget(self.historySelection, 10, Qt.AlignLeft) + layout.addWidget(self.historyCombo, 0) + layout.addStretch(10) + + self.connect(self.historyCombo, SIGNAL('activated(const QString& )'), + self.historyCombo, SLOT('addToHistory(const QString&)')) + self.connect(self.historyCombo, SIGNAL('cleared()'), + self.historyCleared) + self.connect(self.historyCombo, SIGNAL('activated(const QString &)'), + self.historySelection.setText) + + def historyCleared(self): + print 'History combo cleared.' + diff --git a/examples/pykde-sampler/contributors.txt b/examples/pykde-sampler/contributors.txt new file mode 100644 index 0000000..18b9a81 --- /dev/null +++ b/examples/pykde-sampler/contributors.txt @@ -0,0 +1,4 @@ +# author, contributions, email +Phil Thompson, For PyQt and SIP, phil@riverbankcomputing.co.uk +Jim Bublitz, For PyKDE, jbublitz@nwinternet.com + diff --git a/examples/pykde-sampler/dialogs/__init__.py b/examples/pykde-sampler/dialogs/__init__.py new file mode 100644 index 0000000..c6f70f9 --- /dev/null +++ b/examples/pykde-sampler/dialogs/__init__.py @@ -0,0 +1,18 @@ +labelText = 'Dialog Boxes' +iconName = 'launch' + + +helpText = ("KDE provides a convenient set of dialog boxes for application use. " + "Select the children of this item to see for yourself.") + + +from qt import QFrame, QVBoxLayout +from kdeui import KTextEdit + + +class MainFrame(QFrame): + def __init__(self, parent=None): + QFrame.__init__(self, parent) + layout = QVBoxLayout(self) + self.text = KTextEdit(helpText, '', self) + layout.addWidget(self.text, 1) diff --git a/examples/pykde-sampler/dialogs/about/__init__.py b/examples/pykde-sampler/dialogs/about/__init__.py new file mode 100644 index 0000000..4c40da7 --- /dev/null +++ b/examples/pykde-sampler/dialogs/about/__init__.py @@ -0,0 +1,16 @@ +labelText = 'About Dialogs' +iconName = 'info' + +helpText = ("KDE has multiple dialog types to display information about your " +"applicaiton and environment. They provide a tremendous amount of functionality " +"and consistency. They're easy to use, and they're good for the environment!") + +from qt import QFrame, QVBoxLayout +from kdeui import KTextEdit + +class MainFrame(QFrame): + def __init__(self, parent=None): + QFrame.__init__(self, parent) + layout = QVBoxLayout(self) + self.text = KTextEdit(helpText, '', self) + layout.addWidget(self.text, 1) diff --git a/examples/pykde-sampler/dialogs/about/aboutapp.py b/examples/pykde-sampler/dialogs/about/aboutapp.py new file mode 100644 index 0000000..afdd71a --- /dev/null +++ b/examples/pykde-sampler/dialogs/about/aboutapp.py @@ -0,0 +1,29 @@ +iconName = 'about_kde' +labelText = 'KAboutApplication' + +from qt import QFrame, QHBoxLayout, QVBoxLayout, SIGNAL +from kdecore import i18n +from kdeui import KAboutApplication, KPushButton, KTextEdit + + +helpText = ("Typically available via the applications 'Help' menu, this " + "dialog presents the user with the applications About widget.") + +docParts = ('kdeui', 'KAboutDialog') + +class MainFrame(QFrame): + def __init__(self, parent=None): + QFrame.__init__(self, parent) + self.button = KPushButton(i18n('About Application'), self) + self.help = KTextEdit(helpText, '', self) + layout = QVBoxLayout(self, 4) + layout.addWidget(self.help) + buttonlayout = QHBoxLayout(layout, 4) + buttonlayout.addWidget(self.button) + buttonlayout.addStretch(1) + layout.addStretch(1) + self.connect(self.button, SIGNAL('clicked()'), self.showAboutDialog) + + def showAboutDialog(self): + dlg = KAboutApplication(self) + dlg.show() diff --git a/examples/pykde-sampler/dialogs/about/aboutkde.py b/examples/pykde-sampler/dialogs/about/aboutkde.py new file mode 100644 index 0000000..9c73f9d --- /dev/null +++ b/examples/pykde-sampler/dialogs/about/aboutkde.py @@ -0,0 +1,28 @@ +iconName = 'about_kde' +labelText = 'KAboutKDE' + +from qt import QFrame, QHBoxLayout, QVBoxLayout, SIGNAL +from kdecore import i18n +from kdeui import KAboutKDE, KPushButton, KTextEdit + + +helpText = ("Typically available via the applications 'Help' menu, this " + "dialog presents the user with the standard KDE About dialog.") + + +class MainFrame(QFrame): + def __init__(self, parent=None): + QFrame.__init__(self, parent) + self.button = KPushButton(i18n('About KDE'), self) + self.help = KTextEdit(helpText, '', self) + layout = QVBoxLayout(self, 4) + layout.addWidget(self.help) + buttonlayout = QHBoxLayout(layout, 4) + buttonlayout.addWidget(self.button) + buttonlayout.addStretch(1) + layout.addStretch(1) + self.connect(self.button, SIGNAL('clicked()'), self.showAboutDialog) + + def showAboutDialog(self): + dlg = KAboutKDE(self) + dlg.show() diff --git a/examples/pykde-sampler/dialogs/bugreport.py b/examples/pykde-sampler/dialogs/bugreport.py new file mode 100644 index 0000000..6c41165 --- /dev/null +++ b/examples/pykde-sampler/dialogs/bugreport.py @@ -0,0 +1,34 @@ +iconName = 'core' +labelText = 'KBugReport' + +##~ if we wanted to, we could define the name of a KDE class used for lookup of +##~ the documentation url. The 'labelText' string above already +##~ specifies what we want. +##~ docItemName = 'KBugReport' + +from qt import QFrame, QHBoxLayout, QVBoxLayout, SIGNAL +from kdecore import i18n +from kdeui import KAboutDialog, KPushButton, KBugReport, KTextEdit + + +helpText = ("KDE provides a way to report bugs from applications. This dialog" + "is typically available from the application 'Help' menu.") + + +class MainFrame(QFrame): + def __init__(self, parent=None): + QFrame.__init__(self, parent) + self.button = KPushButton(i18n('Show Bug Report Dialog'), self) + self.help = KTextEdit(helpText, '', self) + layout = QVBoxLayout(self, 4) + layout.addWidget(self.help) + buttonlayout = QHBoxLayout(layout, 4) + buttonlayout.addWidget(self.button) + buttonlayout.addStretch(1) + layout.addStretch(1) + self.connect(self.button, SIGNAL('clicked()'), self.showBugDialog) + + + def showBugDialog(self): + dlg = KBugReport(self) + dlg.exec_loop() diff --git a/examples/pykde-sampler/dialogs/color.py b/examples/pykde-sampler/dialogs/color.py new file mode 100644 index 0000000..b749cce --- /dev/null +++ b/examples/pykde-sampler/dialogs/color.py @@ -0,0 +1,42 @@ +iconName = 'colorize' +labelText = 'KColorDialog' + + +from qt import QFrame, QHBoxLayout, QVBoxLayout, SIGNAL +from kdecore import i18n +from kdeui import KPushButton, KColorDialog, KColorPatch, KTextEdit + + +helpText = ("KDE provides a nifty common color selection dialog." + "The color selection in the dialog is tracked via a SIGNAL " + "connected to the KColorPatch area below.") + + +class MainFrame(QFrame): + def __init__(self, parent=None): + QFrame.__init__(self, parent) + self.button = KPushButton(i18n('Show Color Dialog'), self) + self.help = KTextEdit(helpText, '', self) + self.patch = KColorPatch(self) + layout = QVBoxLayout(self, 4) + layout.addWidget(self.help) + buttonlayout = QHBoxLayout(layout, 4) + buttonlayout.addWidget(self.button) + buttonlayout.addStretch(1) + layout.addWidget(self.patch, 10) + layout.addStretch(1) + self.connect(self.button, SIGNAL('clicked()'), self.showColorDialog) + + def showColorDialog(self): + dlg = KColorDialog(self) + + ## this connection is made so that there's a default color + self.connect(dlg, SIGNAL('colorSelected(const QColor &)'), + self.patch.setPaletteBackgroundColor) + dlg.setColor(self.patch.paletteBackgroundColor()) + + ## this connection is the one that changes the patch color to match + ## the color selected in the dialog + self.connect(dlg, SIGNAL('colorSelected(const QColor &)'), + self.patch.setColor) + dlg.exec_loop() diff --git a/examples/pykde-sampler/dialogs/config.py b/examples/pykde-sampler/dialogs/config.py new file mode 100644 index 0000000..74454ab --- /dev/null +++ b/examples/pykde-sampler/dialogs/config.py @@ -0,0 +1,59 @@ + +from qt import QFrame, QHBoxLayout, QVBoxLayout, QTimer, SIGNAL, QString +from kdecore import i18n, KConfigSkeleton +from kdeui import KPushButton, KConfigDialog, KTextEdit + +iconName = 'configure' +labelText = 'KConfigDialog' +docParts = ('kdeui', 'KConfigDialog') +helpText = ("") + + +class SampleSettings(KConfigSkeleton): + def __init__(self): + KConfigSkeleton.__init__(self) + self.anyString = QString() + + self.setCurrentGroup("Strings") + self.addItemString("Test", self.anyString, "Default Value") + + self.setCurrentGroup("Booleans") + self.addItemBool("Any Bool", False) + + +class MainFrame(QFrame): + def __init__(self, parent=None): + QFrame.__init__(self, parent) + self.button = KPushButton(i18n('Show Config Dialog'), self) + self.help = KTextEdit(helpText, '', self) + + layout = QVBoxLayout(self, 4) + layout.addWidget(self.help) + buttonlayout = QHBoxLayout(layout, 4) + buttonlayout.addWidget(self.button) + buttonlayout.addStretch(1) + layout.addStretch(1) + self.connect(self.button, SIGNAL('clicked()'), self.showConfigDialog) + + + def showConfigDialog(self): + config = SampleSettings() + dlg = KConfigDialog(self, 'Sampler Config', config) + self.strings = StringsSettings(self) + self.bools = BoolSettings(self) + dlg.addPage(self.strings, 'Strings', 'Strings') + dlg.addPage(self.bools, 'Bools', 'Bools') + dlg.exec_loop() + + +class StringsSettings(QFrame): + def __init__(self, parent=None): + QFrame.__init__(self, parent) + self.text = KTextEdit('A String', '', self) + + +class BoolSettings(QFrame): + def __init__(self, parent=None): + QFrame.__init__(self, parent) + self.text = KTextEdit('A Bool', '', self) + diff --git a/examples/pykde-sampler/dialogs/edfind.py b/examples/pykde-sampler/dialogs/edfind.py new file mode 100644 index 0000000..685902e --- /dev/null +++ b/examples/pykde-sampler/dialogs/edfind.py @@ -0,0 +1,52 @@ + +from qt import QFrame, QHBoxLayout, QVBoxLayout, QTimer, SIGNAL, QFont, QString +from kdecore import i18n +from kdeui import KPushButton, KEdFind, KTextEdit + +iconName = 'find' +labelText = 'KEdFind' +docParts = ('kdeui', 'KEdFind') +helpText = ("An example of the KEdFind dialog.") + + +class MainFrame(QFrame): + def __init__(self, parent=None): + QFrame.__init__(self, parent) + self.button = KPushButton(i18n('Show Edit Find Dialog'), self) + self.help = KTextEdit(helpText, '', self) + + layout = QVBoxLayout(self, 4) + layout.addWidget(self.help) + buttonlayout = QHBoxLayout(layout, 4) + buttonlayout.addWidget(self.button) + buttonlayout.addStretch(1) + layout.addStretch(1) + self.connect(self.button, SIGNAL('clicked()'), self.showEdFind) + + + def showEdFind(self): + dlg = self.dlg = KEdFind(self) + self.connect(dlg, SIGNAL('done()'), + self.doneClicked) + self.connect(dlg, SIGNAL('search()'), + self.searchClicked) + dlg.exec_loop() + + + def doneClicked(self): + print 'done searching' + + def searchClicked(self): + print 'searching: ', self.dlg.getText(), + if self.dlg.get_direction(): + print '(backwards) ', + else: + print '(forwards) ', + if self.dlg.case_sensitive(): + print '(case-sensitive)' + else: + print '(case-insensitive)' + + + + diff --git a/examples/pykde-sampler/dialogs/edreplace.py b/examples/pykde-sampler/dialogs/edreplace.py new file mode 100644 index 0000000..df95614 --- /dev/null +++ b/examples/pykde-sampler/dialogs/edreplace.py @@ -0,0 +1,52 @@ +from qt import QFrame, QHBoxLayout, QVBoxLayout, QTimer, SIGNAL, QFont, QString +from kdecore import i18n +from kdeui import KPushButton, KEdReplace, KTextEdit + +iconName = 'findreplace' +labelText = 'KEdReplace' +docParts = ('kdeui', 'KEdReplace') +helpText = ("An example of the KEdReplace dialog.") + + +class MainFrame(QFrame): + def __init__(self, parent=None): + QFrame.__init__(self, parent) + self.button = KPushButton(i18n('Show Edit Find Dialog'), self) + self.help = KTextEdit(helpText, '', self) + + layout = QVBoxLayout(self, 4) + layout.addWidget(self.help) + buttonlayout = QHBoxLayout(layout, 4) + buttonlayout.addWidget(self.button) + buttonlayout.addStretch(1) + layout.addStretch(1) + self.connect(self.button, SIGNAL('clicked()'), self.showEdReplace) + + + def showEdReplace(self): + dlg = self.dlg = KEdReplace(self) + self.connect(dlg, SIGNAL('done()'), + self.doneClicked) + self.connect(dlg, SIGNAL('replace()'), + self.replaceClicked) + dlg.exec_loop() + + + def doneClicked(self): + print 'done replacing' + + def replaceClicked(self): + print 'replacing: ', self.dlg.getText() + return + if self.dlg.get_direction(): + print '(backwards) ', + else: + print '(forwards) ', + if self.dlg.case_sensitive(): + print '(case-sensitive)' + else: + print '(case-insensitive)' + + + + diff --git a/examples/pykde-sampler/dialogs/font.py b/examples/pykde-sampler/dialogs/font.py new file mode 100644 index 0000000..ae2189e --- /dev/null +++ b/examples/pykde-sampler/dialogs/font.py @@ -0,0 +1,53 @@ + +from qt import QFrame, QHBoxLayout, QVBoxLayout, QTimer, SIGNAL, QFont, QString +from kdecore import i18n +from kdeui import KPushButton, KFontDialog, KTextEdit + +iconName = 'fonts' +labelText = 'KFontDialog' +docParts = ('kdeui', 'KFontDialog') +helpText = ("KDE provides a font dialog box for users to select (can you " + "guess??) fonts. The button below displays a font dialog box. " + "The font of this widget (the text widget you're reading) is used " + "as the default. If the dialog is accepted, the font of this " + "widget is change to match the selection.") + + +fontText = """Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Etiam +ante. Nam in mauris. Vestibulum ante velit, condimentum vel, congue +sit amet, lobortis a, dui. Fusce auctor, quam non pretium nonummy, leo +ante imperdiet libero, id lobortis erat erat quis eros. Pellentesque +habitant morbi tristique senectus et netus et malesuada fames ac +turpis egestas. Cras ut metus. Vivamus suscipit, sapien id tempor +elementum, nunc quam malesuada dolor, sit amet luctus sapien odio vel +ligula. Integer scelerisque, risus a interdum vestibulum, felis ipsum +pharetra eros, nec nonummy libero justo quis risus. Vestibulum +tincidunt, augue vitae suscipit congue, sem dui adipiscing nulla, ut +nonummy arcu quam ac sem. Nulla in metus. Phasellus neque. +""" + + +class MainFrame(QFrame): + def __init__(self, parent=None): + QFrame.__init__(self, parent) + self.button = KPushButton(i18n('Show Font Dialog'), self) + self.help = KTextEdit(helpText, '', self) + self.example = KTextEdit(fontText, '', self) + + layout = QVBoxLayout(self, 4) + layout.addWidget(self.help) + buttonlayout = QHBoxLayout(layout, 4) + buttonlayout.addWidget(self.button) + buttonlayout.addStretch(1) + layout.addWidget(self.example, 10) + layout.addStretch(1) + self.connect(self.button, SIGNAL('clicked()'), self.showFontDialog) + + + def showFontDialog(self): + font = QFont(self.example.font()) + string = QString() + accepted, other = KFontDialog.getFontAndText(font, string, False, self) + if accepted: + self.example.setFont(font) + self.example.setText(string) diff --git a/examples/pykde-sampler/dialogs/input.py b/examples/pykde-sampler/dialogs/input.py new file mode 100644 index 0000000..30edc6f --- /dev/null +++ b/examples/pykde-sampler/dialogs/input.py @@ -0,0 +1,87 @@ +iconName = 'editclear' +labelText = 'KInputDialog' + +from qt import QFrame, QGridLayout, QLabel, QStringList, SIGNAL +from kdecore import i18n +from kdeui import KPushButton, KInputDialog, KTextEdit + + +helpText = ("KInputDialog allows the programmer to display a simple dialog to " + "request a bit of text, an integer value, a double value, or a " + "list item from the user.") + + +class MainFrame(QFrame): + items = ['Apples', 'Bananas', 'Mangos', 'Oranges', 'Pears', ] + + def __init__(self, parent=None): + QFrame.__init__(self, parent) + self.help = KTextEdit(helpText, '', self) + + layout = QGridLayout(self, 5, 2, 4) # five rows, two cols, four px spacing + layout.setRowStretch(0, 10) + layout.setColStretch(1, 10) + layout.addMultiCellWidget(self.help, 0, 1, 0, 1) + + button = KPushButton(i18n('Get Text'), self) + self.connect(button, SIGNAL('clicked()'), self.getText) + self.getTextLabel = QLabel('text value', self) + layout.addWidget(button, 2, 0) + layout.addWidget(self.getTextLabel, 2, 1) + layout.setRowStretch(2, 0) + + button = KPushButton(i18n('Get Integer'), self) + self.connect(button, SIGNAL('clicked()'), self.getInt) + self.getIntLabel = QLabel('0', self) + layout.addWidget(self.getIntLabel, 3, 1) + layout.addWidget(button, 3, 0) + layout.setRowStretch(3, 0) + + button = KPushButton(i18n('Get Double'), self) + self.connect(button, SIGNAL('clicked()'), self.getDouble) + self.getDoubleLabel = QLabel('0.0', self) + layout.addWidget(self.getDoubleLabel, 4, 1) + layout.addWidget(button, 4, 0) + layout.setRowStretch(4, 0) + + button = KPushButton(i18n('Get Item'), self) + self.connect(button, SIGNAL('clicked()'), self.getItem) + self.getItemLabel = QLabel(self.items[0], self) + layout.addWidget(button, 5, 0) + layout.addWidget(self.getItemLabel, 5, 1) + layout.setRowStretch(5, 0) + + def getText(self): + title = 'KInputDialog.getText Dialog' + label = 'Enter some text:' + default = self.getTextLabel.text() + value, accepted = KInputDialog.getText(title, label, default) + if accepted: + self.getTextLabel.setText(value) + + def getInt(self): + title = 'KInputDialog.getInteger Dialog' + label = 'Enter an integer:' + default = int('%s' % self.getIntLabel.text()) + value, accepted = KInputDialog.getInteger(title, label, default) + if accepted: + self.getIntLabel.setText('%s' % value) + + def getDouble(self): + title = 'KInputDialog.getDouble Dialog' + label = 'Enter a double:' + default = float('%s' % self.getDoubleLabel.text()) + value, accepted = KInputDialog.getDouble(title, label, default, -10.0, 10.0) + if accepted: + self.getDoubleLabel.setText('%s' % value) + + def getItem(self): + title = 'KInputDialog.getItem Dialog' + label = 'Select an item:' + current = self.items.index('%s' % self.getItemLabel.text()) + selections = QStringList() + for item in self.items: + selections.append(item) + value, accepted = KInputDialog.getItem(title, label, selections, current) + if accepted: + self.getItemLabel.setText('%s' % value) diff --git a/examples/pykde-sampler/dialogs/key.py b/examples/pykde-sampler/dialogs/key.py new file mode 100644 index 0000000..4c437da --- /dev/null +++ b/examples/pykde-sampler/dialogs/key.py @@ -0,0 +1,29 @@ +iconName = 'configure_shortcuts' +labelText = 'KKeyDialog' + +from qt import QFrame, QHBoxLayout, QVBoxLayout, SIGNAL +from kdecore import i18n +from kdeui import KPushButton, KKeyDialog, KTextEdit + + +helpText = ("Configuring keystroke shortcuts is simple with KActions and the " + "KKeyDialog type. This sample starts the KKeyDialog for the " + "sampler application.") + + +class MainFrame(QFrame): + def __init__(self, parent=None): + QFrame.__init__(self, parent) + self.button = KPushButton(i18n('Show Key Configuration Dialog'), self) + self.help = KTextEdit(helpText, '', self) + layout = QVBoxLayout(self, 4) + layout.addWidget(self.help) + buttonlayout = QHBoxLayout(layout, 4) + buttonlayout.addWidget(self.button) + buttonlayout.addStretch(1) + layout.addStretch(1) + self.connect(self.button, SIGNAL('clicked()'), self.showKeysDialog) + + def showKeysDialog(self): + top = self.topLevelWidget() + KKeyDialog.configure(top.actionCollection(), self) diff --git a/examples/pykde-sampler/dialogs/msgbox.py b/examples/pykde-sampler/dialogs/msgbox.py new file mode 100644 index 0000000..a0b3c9a --- /dev/null +++ b/examples/pykde-sampler/dialogs/msgbox.py @@ -0,0 +1,141 @@ +iconName = 'stop' +labelText = 'KMessageBox' + +from random import random +from traceback import print_exc +from StringIO import StringIO + +from qt import QFrame, QGridLayout, QLabel, QStringList, SIGNAL +from kdecore import i18n +from kdeui import KGuiItem, KPushButton, KMessageBox, KTextEdit + + +helpText = ("The KMessageBox Python class wraps the static methods of its C++ " + "counterpart. Some of these methods are used below. Refer to the " + "docs for KMessageBox for a full list.") + + +class MainFrame(QFrame): + msg = 'Do you like food?' + caption = 'Simple Question' + err = 'Some kind of error happened, but it could be worse!' + info = 'Always wash your hands after eating.' + items = ['Apples', 'Bananas', 'Cantaloupe', 'Mangos', 'Oranges', 'Pears', ] + + def __init__(self, parent=None): + QFrame.__init__(self, parent) + items = QStringList() + for item in self.items: + items.append(item) + self.items = items + + responses = 'Ok Cancel Yes No Continue'.split() + responses = [(getattr(KMessageBox, res), res) for res in responses] + self.responses = dict(responses) + + self.help = KTextEdit(helpText, '', self) + + layout = QGridLayout(self, 5, 2, 4) + layout.setRowStretch(0, 10) + layout.setColStretch(1, 10) + layout.addMultiCellWidget(self.help, 0, 1, 0, 1) + + button = KPushButton(i18n('Question Yes-No'), self) + self.connect(button, SIGNAL('clicked()'), self.questionYesNo) + layout.addWidget(button, 2, 0) + layout.setRowStretch(2, 0) + + button = KPushButton(i18n('Warning Yes-No-Cancel'), self) + self.connect(button, SIGNAL('clicked()'), self.warningYesNoCancel) + layout.addWidget(button, 3, 0) + layout.setRowStretch(3, 0) + + button = KPushButton(i18n('Warning Continue-Cancel-List'), self) + self.connect(button, SIGNAL('clicked()'), self.warningContinueCancelList) + layout.addWidget(button, 4, 0) + layout.setRowStretch(4, 0) + + button = KPushButton(i18n('Error'), self) + self.connect(button, SIGNAL('clicked()'), self.error) + layout.addWidget(button, 5, 0) + layout.setRowStretch(5, 0) + + button = KPushButton(i18n('Detailed Error'), self) + self.connect(button, SIGNAL('clicked()'), self.detailedError) + layout.addWidget(button, 6, 0) + layout.setRowStretch(6, 0) + + button = KPushButton(i18n('Sorry'), self) + self.connect(button, SIGNAL('clicked()'), self.sorry) + layout.addWidget(button, 7, 0) + layout.setRowStretch(7, 0) + + button = KPushButton(i18n('Detailed Sorry'), self) + self.connect(button, SIGNAL('clicked()'), self.detailedSorry) + layout.addWidget(button, 8, 0) + layout.setRowStretch(8, 0) + + button = KPushButton(i18n('Information'), self) + self.connect(button, SIGNAL('clicked()'), self.information) + layout.addWidget(button, 9, 0) + layout.setRowStretch(9, 0) + + button = KPushButton(i18n('Information List'), self) + self.connect(button, SIGNAL('clicked()'), self.informationList) + layout.addWidget(button, 10, 0) + layout.setRowStretch(10, 0) + + def questionYesNo(self): + dlg = KMessageBox.questionYesNo(self, self.msg, self.caption) + print 'You pressed "%s"' % (self.responses.get(dlg, dlg), ) + + def warningYesNoCancel(self): + dlg = KMessageBox.warningYesNoCancel(self, self.msg, self.caption) + print 'You pressed "%s"' % (self.responses.get(dlg, dlg), ) + + def warningContinueCancelList(self): + uiitem = KGuiItem('Time to Eat', 'favorites') + ctor = KMessageBox.warningContinueCancelList + dlgid = '%s' % random() + args = self, self.msg, self.items, self.caption, uiitem, dlgid + dlg = ctor(*args) + print 'You pressed "%s"' % (self.responses.get(dlg, dlg), ) + + def error(self): + dlg = KMessageBox.error(self, self.err) + print 'You pressed "%s"' % (self.responses.get(dlg, dlg), ) + + def detailedError(self): + try: + x = self.thisAttributeDoesNotExist + except (AttributeError, ), ex: + handle = StringIO() + print_exc(0, handle) + details = handle.getvalue() + dlg = KMessageBox.detailedError(self, self.err, details) + print 'You pressed "%s"' % (self.responses.get(dlg, dlg), ) + + def sorry(self): + dlg = KMessageBox.sorry(self, self.err) + print 'You pressed "%s"' % (self.responses.get(dlg, dlg), ) + + def detailedSorry(self): + try: + x = self.thisAttributeDoesNotExist + except (AttributeError, ), ex: + handle = StringIO() + print_exc(0, handle) + details = handle.getvalue() + dlg = KMessageBox.detailedSorry(self, self.err, details) + print 'You pressed "%s"' % (self.responses.get(dlg, dlg), ) + + def information(self): + dlgid = '%s' % random() + dlg = KMessageBox.information(self, self.info, '', dlgid) + print 'You pressed "%s"' % (self.responses.get(dlg, dlg), ) + + def informationList(self): + dlgid = '%s' % random() + ctor = KMessageBox.informationList + dlg = ctor(self, self.info, self.items, '', dlgid) + print 'You pressed "%s"' % (self.responses.get(dlg, dlg), ) diff --git a/examples/pykde-sampler/dialogs/passwd.py b/examples/pykde-sampler/dialogs/passwd.py new file mode 100644 index 0000000..554093b --- /dev/null +++ b/examples/pykde-sampler/dialogs/passwd.py @@ -0,0 +1,34 @@ +from qt import QFrame, QHBoxLayout, QVBoxLayout, SIGNAL +from kdecore import i18n +from kdeui import KPushButton, KPasswordDialog, KTextEdit + +iconName = 'password' +labelText = 'KPasswordDialog' +docParts = ('kdeui', 'KPasswordDialog') +helpText = ("KDE provides two variations on the password dialog. The simple " + "one shown here prompts for a password. The other type allows the " + "user to enter a new password, and provides a second field to " + "confirm the first entry.") + + +class MainFrame(QFrame): + def __init__(self, parent=None): + QFrame.__init__(self, parent) + self.button = KPushButton(i18n('Show Password Dialog'), self) + self.help = KTextEdit(helpText, '', self) + layout = QVBoxLayout(self, 4) + layout.addWidget(self.help) + buttonlayout = QHBoxLayout(layout, 4) + buttonlayout.addWidget(self.button) + buttonlayout.addStretch(1) + layout.addStretch(1) + self.connect(self.button, SIGNAL('clicked()'), self.showPasswordDialog) + + + def showPasswordDialog(self): + old = 'foo bar baz' + prompt = "Enter your super-secret password (enter anything, it's just an example):" + result = KPasswordDialog.getPassword(old, prompt) + if result == KPasswordDialog.Accepted: + pass + diff --git a/examples/pykde-sampler/dialogs/progress.py b/examples/pykde-sampler/dialogs/progress.py new file mode 100644 index 0000000..ba85b8e --- /dev/null +++ b/examples/pykde-sampler/dialogs/progress.py @@ -0,0 +1,39 @@ +iconName = 'go' +labelText = 'KProgressDialog' + + +from qt import QFrame, QHBoxLayout, QVBoxLayout, QTimer, SIGNAL +from kdecore import i18n +from kdeui import KPushButton, KProgressDialog, KTextEdit + + +helpText = """KDE provides a ready-built dialog to display a bit of text and a +progress bar.""" + + +class MainFrame(QFrame): + def __init__(self, parent=None): + QFrame.__init__(self, parent) + self.button = KPushButton(i18n('Show Progress Dialog'), self) + self.help = KTextEdit(helpText, '', self) + layout = QVBoxLayout(self, 4) + layout.addWidget(self.help) + buttonlayout = QHBoxLayout(layout, 4) + buttonlayout.addWidget(self.button) + buttonlayout.addStretch(1) + layout.addStretch(1) + self.connect(self.button, SIGNAL('clicked()'), self.showProgressDialog) + + def showProgressDialog(self): + self.dlg = dlg = KProgressDialog(self, None, 'Sample Progress Dialog', + helpText) + dlg.progressBar().setTotalSteps(20) + dlg.progressBar().setFormat('% complete: %p - value: %v - maximum: %m') + timer = QTimer(self) + self.connect(timer, SIGNAL('timeout()'), self.updateProgress) + timer.start(250, False) + dlg.exec_loop() + timer.stop() + + def updateProgress(self): + self.dlg.progressBar().advance(1) diff --git a/examples/pykde-sampler/dialogs/tip.py b/examples/pykde-sampler/dialogs/tip.py new file mode 100644 index 0000000..29ac66b --- /dev/null +++ b/examples/pykde-sampler/dialogs/tip.py @@ -0,0 +1,31 @@ +iconName = 'idea' +labelText = 'KTipDialog' + +import os + +from qt import QFrame, QHBoxLayout, QVBoxLayout, SIGNAL +from kdecore import i18n +from kdeui import KPushButton, KTipDatabase, KTipDialog, KTextEdit + + +helpText = ("The KDE standard Tip-of-the-Day dialog.") + + +class MainFrame(QFrame): + def __init__(self, parent=None): + QFrame.__init__(self, parent) + self.button = KPushButton(i18n('Show Tip-of-the-Day Dialog'), self) + self.help = KTextEdit(helpText, '', self) + layout = QVBoxLayout(self, 4) + layout.addWidget(self.help) + buttonlayout = QHBoxLayout(layout, 4) + buttonlayout.addWidget(self.button) + buttonlayout.addStretch(1) + layout.addStretch(1) + self.connect(self.button, SIGNAL('clicked()'), self.showTipDialog) + + def showTipDialog(self): + filename = os.path.abspath(os.path.join(os.path.dirname(__file__), 'tips')) + tips = KTipDatabase(filename) + dlg = KTipDialog(tips, self) + dlg.exec_loop() diff --git a/examples/pykde-sampler/dialogs/tips b/examples/pykde-sampler/dialogs/tips new file mode 100644 index 0000000..9f24457 --- /dev/null +++ b/examples/pykde-sampler/dialogs/tips @@ -0,0 +1,24 @@ + + + +

Don't tug on Superman's cape.

+ +
+ + + +

Don't spit into the wind.

+ +
+ + + +

Don't pull the mask off the Lone Ranger.

+ +
+ + + +

And don't mess around with Jim!

+ +
diff --git a/examples/pykde-sampler/gen_todo.py b/examples/pykde-sampler/gen_todo.py new file mode 100644 index 0000000..02d73de --- /dev/null +++ b/examples/pykde-sampler/gen_todo.py @@ -0,0 +1,19 @@ +mods = ['dcop', 'kdecore', 'kdefx', 'kdeprint', 'kdesu', 'kdeui', 'kfile', 'khtml', 'kio', 'kmdi', 'kparts', 'kspell', ] +all = [] + + +print 'Module,Item,Path,Contributor' +for mod in mods: + module = __import__(mod) + items = dir(module) + items.sort() + items = [item for item in items if not item.startswith('_')] + items = [item for item in items if not item in all] + + for item in items: + all.append(item) + print '%s,%s,,,' % (mod, item, ) + + + + diff --git a/examples/pykde-sampler/icon_handling/__init__.py b/examples/pykde-sampler/icon_handling/__init__.py new file mode 100644 index 0000000..f25a8f0 --- /dev/null +++ b/examples/pykde-sampler/icon_handling/__init__.py @@ -0,0 +1,18 @@ +labelText = 'Icons' +iconName = 'icons' + + +helpText = ("KDE icons are nice. " + "Select the children of this item to see for yourself.") + + +from qt import QFrame, QVBoxLayout +from kdeui import KTextEdit + + +class MainFrame(QFrame): + def __init__(self, parent=None): + QFrame.__init__(self, parent) + layout = QVBoxLayout(self) + self.text = KTextEdit(helpText, '', self) + layout.addWidget(self.text, 1) diff --git a/examples/pykde-sampler/icon_handling/misc.py b/examples/pykde-sampler/icon_handling/misc.py new file mode 100644 index 0000000..4c7f425 --- /dev/null +++ b/examples/pykde-sampler/icon_handling/misc.py @@ -0,0 +1,31 @@ + +iconName = 'icons' +labelText = 'Misc.' + + +from qt import QFrame, QHBoxLayout, QVBoxLayout, SIGNAL, QPoint +from kdecore import i18n +from kdeui import KAboutDialog, KPushButton, KBugReport, KTextEdit +from kdeui import KRootPermsIcon, KWritePermsIcon + + +helpText = ("Samples for the KRootPermsIcon and KWritePermsIcon classes." + "These icons don't do anything.") + + +class MainFrame(QFrame): + def __init__(self, parent=None): + QFrame.__init__(self, parent) + + layout = QVBoxLayout(self, 4) + layout.setAutoAdd(True) + + self.help = KTextEdit(helpText, '', self) + self.root = KRootPermsIcon(None) + self.root.reparent(self, 0, QPoint(0,0), True) + + import os + fn = os.path.abspath('.') + print fn + self.write = KWritePermsIcon(fn) + self.write.reparent(self, 0, QPoint(0,0), True) diff --git a/examples/pykde-sampler/icon_handling/sizes.py b/examples/pykde-sampler/icon_handling/sizes.py new file mode 100644 index 0000000..b3f5e1c --- /dev/null +++ b/examples/pykde-sampler/icon_handling/sizes.py @@ -0,0 +1,30 @@ + +iconName = 'icons' +labelText = 'Icon Sizing' + + +from qt import QFrame, QHBoxLayout, QVBoxLayout, SIGNAL +from kdecore import i18n +from kdeui import KAboutDialog, KPushButton, KBugReport, KTextEdit + + +helpText = ("") + + +class MainFrame(QFrame): + def __init__(self, parent=None): + QFrame.__init__(self, parent) + self.button = KPushButton(i18n('Show Bug Report Dialog'), self) + self.help = KTextEdit(helpText, '', self) + layout = QVBoxLayout(self, 4) + layout.addWidget(self.help) + buttonlayout = QHBoxLayout(layout, 4) + buttonlayout.addWidget(self.button) + buttonlayout.addStretch(1) + layout.addStretch(1) + self.connect(self.button, SIGNAL('clicked()'), self.showBugDialog) + + + def showBugDialog(self): + dlg = KBugReport(self) + dlg.exec_loop() diff --git a/examples/pykde-sampler/lib.py b/examples/pykde-sampler/lib.py new file mode 100644 index 0000000..875ae1a --- /dev/null +++ b/examples/pykde-sampler/lib.py @@ -0,0 +1,105 @@ +#!/usr/bin/env python +""" + +""" +import os +import sys + +from os import listdir, walk +from os.path import dirname, isdir, abspath, split, join, exists + + +samplerpath = dirname(abspath(__file__)) +packagepath, packagename = split(samplerpath) + +samplerpath += os.path.sep +packagepath += os.path.sep + + +def namedimport(name): + """ import a module given a dotted package name + + Taken directly from the Python library docs for __import __ + """ + mod = __import__(name) + components = name.split('.') + for comp in components[1:]: + mod = getattr(mod, comp) + return mod + + +def ispackage(path): + return isdir(path) and exists(join(path, '__init__.py')) + + +def ismodule(path): + head, tail = os.path.split(path) + if tail in ('__init__.py', '__init__.pyc', '__init__.pyo'): + return False + head, tail = os.path.splitext(path) + return tail in ('.py', ) # don't use these, which filters them out dupes ( '.pyc', '.pyo') + + +def listimports(top): + top = abspath(top) + yield top + for path in listdir(top): + path = join(top, path) + if ispackage(path): + yield path + for subpath in listimports(path): + yield subpath + elif ismodule(path): + yield path + + +def listmodules(): + if samplerpath not in sys.path: + sys.path.append(samplerpath) + + dirs = [join(samplerpath, d) for d in listdir(samplerpath)] + dirs = [d for d in dirs if exists(join(d, '__init__.py'))] + + modules = [] + for dirname in dirs: + dirpath = join(samplerpath, dirname) + for path in listimports(dirpath): + path = path.replace('.py', '') + path = path.replace(samplerpath, '').replace(os.path.sep, '.') + try: + module = namedimport(path) + except (ValueError, ImportError, ), exc: + print 'Exception %s importing %s' % (exc, path, ) + else: + modules.append((path, module)) + modules.sort() + return [(path, SamplerModule(module)) for path, module in modules] + + +class SamplerModule(object): + defaultIcon = 'filenew' + + + def __init__(self, module): + self.module = module + + + def name(self): + return self.module.__name__.split('.')[-1] + + + def labelText(self): + return getattr(self.module, 'labelText', self.name()) + + + def icon(self): + return getattr(self.module, 'iconName', self.defaultIcon) + + + def builder(self): + for name in ('buildWidget', 'buildDialog', 'buildApp', 'MainFrame'): + try: + return getattr(self.module, name) + except (AttributeError, ): + pass + raise AttributeError('No builder found') diff --git a/examples/pykde-sampler/misc/__init__.py b/examples/pykde-sampler/misc/__init__.py new file mode 100644 index 0000000..b0c9208 --- /dev/null +++ b/examples/pykde-sampler/misc/__init__.py @@ -0,0 +1,16 @@ +labelText = 'Misc' +iconName = 'misc' + + +helpText = ("") + +from qt import QFrame, QVBoxLayout +from kdeui import KTextEdit + + +class MainFrame(QFrame): + def __init__(self, parent=None): + QFrame.__init__(self, parent) + layout = QVBoxLayout(self) + self.text = KTextEdit(helpText, '', self) + layout.addWidget(self.text, 1) diff --git a/examples/pykde-sampler/misc/gradientselect.py b/examples/pykde-sampler/misc/gradientselect.py new file mode 100644 index 0000000..724dd52 --- /dev/null +++ b/examples/pykde-sampler/misc/gradientselect.py @@ -0,0 +1,51 @@ +from qt import QFrame, QHBoxLayout, QVBoxLayout, SIGNAL, QColor, QSizePolicy, QLabel +from kdecore import i18n +from kdeui import KPushButton, KGradientSelector, KTextEdit, KDualColorButton, KColorPatch + +iconName = 'colors' +labelText = 'KGradientSelector' +docParts = ('kdeui', 'KGradientSelector') +helpText = ("An example of the KGradientSelector widget." + "\n" + "Change the start and finish colors with the dual color button." + ) + + +class MainFrame(QFrame): + def __init__(self, parent=None): + QFrame.__init__(self, parent) + self.help = KTextEdit(helpText, '', self) + self.selector = KGradientSelector(self) + self.dualLabel = QLabel('Select Colors:', self) + + self.startColor = QColor('red') + self.finishColor = QColor('blue') + + self.selector.setColors(self.startColor, self.finishColor) + self.selector.setText('Start', 'Finish') + + self.dualButton = KDualColorButton(self.startColor, self.finishColor, self) + self.dualButton.setSizePolicy(QSizePolicy(QSizePolicy.Maximum, + QSizePolicy.Maximum)) + + layout = QVBoxLayout(self, 4) + layout.addWidget(self.help, 20) + + buttonLayout = QHBoxLayout(layout, 4) + buttonLayout.addWidget(self.dualLabel, 0) + buttonLayout.addWidget(self.dualButton, 1) + + layout.addWidget(self.selector, 10) + + + self.connect(self.dualButton, SIGNAL('fgChanged(const QColor &)'), + self.selector.setFirstColor) + self.connect(self.dualButton, SIGNAL('bgChanged(const QColor &)'), + self.selector.setSecondColor) + self.connect(self.selector, SIGNAL('valueChanged(int)'), + self.updateValue) + + + def updateValue(self, value): + ## this should be extended to update a color swatch + pass diff --git a/examples/pykde-sampler/misc/passivepop.py b/examples/pykde-sampler/misc/passivepop.py new file mode 100644 index 0000000..81d383a --- /dev/null +++ b/examples/pykde-sampler/misc/passivepop.py @@ -0,0 +1,43 @@ +from qt import Qt, QFrame, QHBoxLayout, QVBoxLayout, QLabel, SIGNAL +from kdeui import KPassivePopup, KTextEdit, KPushButton +from kdecore import KGlobal, KIcon + +iconName = 'popup' +labelText = 'KPassivePopup' +docParts = ('kdeui', 'KPassivePopup') +helpText = ('Examples of the KPassivePopup widget.') + + +class MainFrame(QFrame): + def __init__(self, parent=None): + QFrame.__init__(self, parent) + self.help = KTextEdit(helpText, '', self) + self.button = KPushButton('Show Passive Popups', self) + + layout = QVBoxLayout(self, 4) + layout.addWidget(self.help, 10) + buttonLayout = QHBoxLayout(layout, 4) + buttonLayout.addWidget(self.button, 1) + buttonLayout.addStretch(10) + layout.addStretch(10) + + + self.connect(self.button, SIGNAL('clicked()'), self.showPopups) + + + def showPopups(self): + ## no support for all of the 3.5 calls + pop = KPassivePopup.message('Hello, KPassivePopup', self) + pop.setTimeout(3000) + pop.show() + + + pos = pop.pos() + pos.setY(pos.y() + pop.height() + 10) + + ico = KGlobal.instance().iconLoader().loadIcon('help', KIcon.NoGroup, + KIcon.SizeSmall) + pop = KPassivePopup.message('Hello', 'With Icons', ico, self) + pop.setTimeout(3000) + pop.show() + pop.move(pos) diff --git a/examples/pykde-sampler/misc/window_info.py b/examples/pykde-sampler/misc/window_info.py new file mode 100644 index 0000000..08bff22 --- /dev/null +++ b/examples/pykde-sampler/misc/window_info.py @@ -0,0 +1,35 @@ + + + +from qt import QFrame, QHBoxLayout, QVBoxLayout, SIGNAL +from kdeui import KWindowInfo, KPushButton, KTextEdit +from kdecore import i18n, KApplication + +iconName = 'misc' +labelText = 'KWindowInfo' +helpText = '' + + +class MainFrame(QFrame): + def __init__(self, parent): + QFrame.__init__(self, parent) + self.button = KPushButton(i18n('Show Message'), self) + self.help = KTextEdit(helpText, '', self) + layout = QVBoxLayout(self, 4) + layout.addWidget(self.help) + buttonlayout = QHBoxLayout(layout, 4) + buttonlayout.addWidget(self.button) + buttonlayout.addStretch(1) + layout.addStretch(1) + self.connect(self.button, SIGNAL('clicked()'), self.showWindowInfo) + + + def showWindowInfo(self): + main = KApplication.kApplication() + print main + print main.mainWidget() + + info = KWindowInfo(main) + info.message('Updated Window Info', 3) + + diff --git a/examples/pykde-sampler/qt_widgets/CONTRIB b/examples/pykde-sampler/qt_widgets/CONTRIB new file mode 100644 index 0000000..e814d1e --- /dev/null +++ b/examples/pykde-sampler/qt_widgets/CONTRIB @@ -0,0 +1,537 @@ +Module,Item,Path,Contributor +dcop,DCOPClient,,, +dcop,DCOPClientTransaction,,, +dcop,DCOPObject,,, +dcop,DCOPObjectProxy,,, +dcop,DCOPRef,,, +dcop,DCOPReply,,, +dcop,DCOPStub,,, +kdecore,BarIcon,,, +kdecore,BarIconSet,,, +kdecore,DesktopIcon,,, +kdecore,DesktopIconSet,,, +kdecore,IconSize,,, +kdecore,KAboutData,,, +kdecore,KAboutPerson,,, +kdecore,KAboutTranslator,,, +kdecore,KAccel,,, +kdecore,KAccelAction,,, +kdecore,KAccelActions,,, +kdecore,KAccelBase,,, +kdecore,KAccelShortcutList,,, +kdecore,KApplication,,, +kdecore,KAsyncIO,,, +kdecore,KAudioPlayer,,, +kdecore,KBufferedIO,,, +kdecore,KCalendarSystem,,, +kdecore,KCalendarSystemFactory,,, +kdecore,KCatalogue,,, +kdecore,KCharsets,,, +kdecore,KClipboardSynchronizer,,, +kdecore,KCmdLineArgs,,, +kdecore,KCmdLineOptions,,, +kdecore,KCodecs,,, +kdecore,KCompletion,,, +kdecore,KCompletionBase,,, +kdecore,KConfig,,, +kdecore,KConfigBackEnd,,, +kdecore,KConfigBase,,, +kdecore,KConfigDialogManager,,, +kdecore,KConfigGroup,,, +kdecore,KConfigGroupSaver,,, +kdecore,KConfigINIBackEnd,,, +kdecore,KConfigSkeleton,,, +kdecore,KConfigSkeletonItem,,, +kdecore,KCrash,,, +kdecore,KDCOPPropertyProxy,,, +kdecore,KDE,,, +kdecore,KDesktopFile,,, +kdecore,KEntry,,, +kdecore,KEntryKey,,, +kdecore,KGlobal,,, +kdecore,KGlobalAccel,,, +kdecore,KGlobalSettings,,, +kdecore,KIDNA,,, +kdecore,KIPC,,, +kdecore,KIcon,,, +kdecore,KIconEffect,,, +kdecore,KIconLoader,,, +kdecore,KIconTheme,,, +kdecore,KInstance,,, +kdecore,KKey,,, +kdecore,KKeyNative,,, +kdecore,KKeySequence,,, +kdecore,KKeyServer,,, +kdecore,KLibFactory,,, +kdecore,KLibLoader,,, +kdecore,KLibrary,,, +kdecore,KLocale,,, +kdecore,KMD5,,, +kdecore,KMacroExpander,,, +kdecore,KMacroExpanderBase,,, +kdecore,KMimeSourceFactory,,, +kdecore,KMountPoint,,, +kdecore,KMultipleDrag,,, +kdecore,KNotifyClient,,, +kdecore,KPalette,,, +kdecore,KPixmapProvider,,, +kdecore,KProcIO,,, +kdecore,KProcess,,, +kdecore,KProcessController,,, +kdecore,KPty,,, +kdecore,KRFCDate,,, +kdecore,KRandomSequence,,, +kdecore,KRegExp,,, +kdecore,KRootProp,,, +kdecore,KSaveFile,,, +kdecore,KSelectionOwner,,, +kdecore,KSelectionWatcher,,, +kdecore,KServerSocket,,, +kdecore,KSessionManaged,,, +kdecore,KShared,,, +kdecore,KSharedConfig,,, +kdecore,KShell,,, +kdecore,KShellProcess,,, +kdecore,KShortcut,,, +kdecore,KShortcutList,,, +kdecore,KSimpleConfig,,, +kdecore,KSocket,,, +kdecore,KStandardDirs,,, +kdecore,KStartupInfo,,, +kdecore,KStartupInfoData,,, +kdecore,KStartupInfoId,,, +kdecore,KStaticDeleterBase,,, +kdecore,KStdAccel,,, +kdecore,KStringHandler,,, +kdecore,KTempDir,,, +kdecore,KTempFile,,, +kdecore,KURL,,, +kdecore,KURLDrag,,, +kdecore,KUniqueApplication,,, +kdecore,KWin,,, +kdecore,KWinModule,,, +kdecore,KZoneAllocator,,, +kdecore,MainBarIcon,,, +kdecore,MainBarIconSet,,, +kdecore,NET,,, +kdecore,NETIcon,,, +kdecore,NETPoint,,, +kdecore,NETRect,,, +kdecore,NETRootInfo,,, +kdecore,NETRootInfo2,,, +kdecore,NETSize,,, +kdecore,NETStrut,,, +kdecore,NETWinInfo,,, +kdecore,SmallIcon,,, +kdecore,SmallIconSet,,, +kdecore,UserIcon,,, +kdecore,UserIconSet,,, +kdecore,i18n,,, +kdecore,locate,,, +kdecore,locateLocal,,, +kdecore,testKEntryMap,,, +kdecore,urlcmp,,, +kdefx,KCPUInfo,,, +kdefx,KImageEffect,,, +kdefx,KPixmap,,, +kdefx,KPixmapEffect,,, +kdefx,KPixmapSplitter,,, +kdefx,KStyle,,, +kdefx,kColorBitmaps,,, +kdefx,kDrawBeButton,,, +kdefx,kDrawNextButton,,, +kdefx,kDrawRoundButton,,, +kdefx,kDrawRoundMask,,, +kdefx,kRoundMaskRegion,,, +kdeprint,DrBase,,, +kdeprint,DrBooleanOption,,, +kdeprint,DrChoiceGroup,,, +kdeprint,DrConstraint,,, +kdeprint,DrFloatOption,,, +kdeprint,DrGroup,,, +kdeprint,DrIntegerOption,,, +kdeprint,DrListOption,,, +kdeprint,DrMain,,, +kdeprint,DrPageSize,,, +kdeprint,DrStringOption,,, +kdeprint,KMJob,,, +kdeprint,KMJobManager,,, +kdeprint,KMManager,,, +kdeprint,KMObject,,, +kdeprint,KMPrinter,,, +kdeprint,KPReloadObject,,, +kdeprint,KPrintAction,,, +kdeprint,KPrintDialog,,, +kdeprint,KPrintDialogPage,,, +kdeprint,KPrinter,,, +kdeprint,pageNameToPageSize,,, +kdeprint,pageSizeToPageName,,, +kdeprint,rangeToSize,,, +kdesu,KCookie,,, +kdesu,KDEsuClient,,, +kdesu,PTY,,, +kdesu,PtyProcess,,, +kdesu,SshProcess,,, +kdesu,StubProcess,,, +kdesu,SuProcess,,, +kdeui,KAboutApplication,,, +kdeui,KAboutContainer,,, +kdeui,KAboutContributor,,, +kdeui,KAboutDialog,,, +kdeui,KAboutKDE,,, +kdeui,KAboutWidget,,, +kdeui,KAction,,, +kdeui,KActionCollection,,, +kdeui,KActionMenu,,, +kdeui,KActionPtrShortcutList,,, +kdeui,KActionSeparator,,, +kdeui,KActionShortcutList,,, +kdeui,KActiveLabel,,, +kdeui,KAnimWidget,,, +kdeui,KArrowButton,,, +kdeui,KAuthIcon,,, +kdeui,KBugReport,,, +kdeui,KButtonBox,,, +kdeui,KCModule,,, +kdeui,KCharSelect,,, +kdeui,KCharSelectTable,,, +kdeui,KColor,,, +kdeui,KColorButton,,, +kdeui,KColorCells,,, +kdeui,KColorCombo,,, +kdeui,KColorDialog,,, +kdeui,KColorDrag,,, +kdeui,KColorPatch,,, +kdeui,KComboBox,,, +kdeui,KCommand,,, +kdeui,KCommandHistory,,, +kdeui,KCompletionBox,,, +kdeui,KConfigDialog,,, +kdeui,KContextMenuManager,,, +kdeui,KCursor,,, +kdeui,KDCOPActionProxy,,, +kdeui,KDateInternalMonthPicker,,, +kdeui,KDateInternalWeekSelector,,, +kdeui,KDateInternalYearSelector,,, +kdeui,KDatePicker,,, +kdeui,KDateTable,,, +kdeui,KDateTimeWidget,,, +kdeui,KDateValidator,,, +kdeui,KDateWidget,,, +kdeui,KDialog,,, +kdeui,KDialogBase,,, +kdeui,KDialogQueue,,, +kdeui,KDockArea,,, +kdeui,KDockMainWindow,,, +kdeui,KDockManager,,, +kdeui,KDockTabGroup,,, +kdeui,KDockWidget,,, +kdeui,KDockWidgetAbstractHeader,,, +kdeui,KDockWidgetAbstractHeaderDrag,,, +kdeui,KDockWidgetHeader,,, +kdeui,KDockWidgetHeaderDrag,,, +kdeui,KDockWindow,,, +kdeui,KDoubleNumInput,,, +kdeui,KDoubleSpinBox,,, +kdeui,KDoubleValidator,,, +kdeui,KDualColorButton,,, +kdeui,KEdFind,,, +kdeui,KEdGotoLine,,, +kdeui,KEdReplace,,, +kdeui,KEdit,,, +kdeui,KEditListBox,,, +kdeui,KEditToolbar,,, +kdeui,KEditToolbarWidget,,, +kdeui,KFloatValidator,,, +kdeui,KFontAction,,, +kdeui,KFontChooser,,, +kdeui,KFontCombo,,, +kdeui,KFontDialog,,, +kdeui,KFontRequester,,, +kdeui,KFontSizeAction,,, +kdeui,KGradientSelector,,, +kdeui,KGuiItem,,, +kdeui,KHSSelector,,, +kdeui,KHelpMenu,,, +kdeui,KHistoryCombo,,, +kdeui,KIconView,,, +kdeui,KIconViewItem,,, +kdeui,KInputDialog,,, +kdeui,KIntNumInput,,, +kdeui,KIntSpinBox,,, +kdeui,KIntValidator,,, +kdeui,KJanusWidget,,, +kdeui,KKeyButton,,, +kdeui,KKeyChooser,,, +kdeui,KKeyDialog,,, +kdeui,KLed,,, +kdeui,KLineEdit,,, +kdeui,KLineEditDlg,,, +kdeui,KListAction,,, +kdeui,KListBox,,, +kdeui,KListView,,, +kdeui,KListViewItem,,, +kdeui,KMacroCommand,,, +kdeui,KMainWindow,,, +kdeui,KMainWindowInterface,,, +kdeui,KMenuBar,,, +kdeui,KMessageBox,,, +kdeui,KMimeTypeValidator,,, +kdeui,KNamedCommand,,, +kdeui,KNumInput,,, +kdeui,KPaletteTable,,, +kdeui,KPanelAppMenu,,, +kdeui,KPanelApplet,,, +kdeui,KPanelExtension,,, +kdeui,KPanelMenu,,, +kdeui,KPassivePopup,,, +kdeui,KPasswordDialog,,, +kdeui,KPasswordEdit,,, +kdeui,KPasteTextAction,,, +kdeui,KPixmapIO,,, +kdeui,KPopupFrame,,, +kdeui,KPopupMenu,,, +kdeui,KPopupTitle,,, +kdeui,KProgress,,, +kdeui,KProgressDialog,,, +kdeui,KPushButton,,, +kdeui,KRadioAction,,, +kdeui,KRecentFilesAction,,, +kdeui,KRestrictedLine,,, +kdeui,KRootPermsIcon,,, +kdeui,KRootPixmap,,, +kdeui,KRuler,,, +kdeui,KSelectAction,,, +kdeui,KSelector,,, +kdeui,KSeparator,,, +kdeui,KSplashScreen,,, +kdeui,KSqueezedTextLabel,,, +kdeui,KStatusBar,,, +kdeui,KStatusBarLabel,,, +kdeui,KStdAction,,, +kdeui,KStdGuiItem,,, +kdeui,KStringListValidator,,, +kdeui,KSystemTray,,, +kdeui,KTabBar,,, +kdeui,KTabCtl,,, +kdeui,KTabWidget,,, +kdeui,KTextBrowser,,, +kdeui,KTextEdit,,, +kdeui,KTimeWidget,,, +kdeui,KTipDatabase,,, +kdeui,KTipDialog,,, +kdeui,KToggleAction,,, +kdeui,KToggleFullScreenAction,,, +kdeui,KToggleToolBarAction,,, +kdeui,KToolBar,,, +kdeui,KToolBarButton,,, +kdeui,KToolBarPopupAction,,, +kdeui,KToolBarRadioGroup,,, +kdeui,KToolBarSeparator,,, +kdeui,KURLLabel,,, +kdeui,KValueSelector,,, +kdeui,KWidgetAction,,, +kdeui,KWindowInfo,,, +kdeui,KWindowListMenu,,, +kdeui,KWizard,,, +kdeui,KWordWrap,,, +kdeui,KWritePermsIcon,,, +kdeui,KXMLGUIBuilder,,, +kdeui,KXMLGUIClient,,, +kdeui,KXMLGUIFactory,,, +kdeui,KXYSelector,,, +kdeui,QXEmbed,,, +kdeui,testKActionList,,, +kfile,KApplicationPropsPlugin,,, +kfile,KBindingPropsPlugin,,, +kfile,KCombiView,,, +kfile,KCustomMenuEditor,,, +kfile,KDesktopPropsPlugin,,, +kfile,KDevicePropsPlugin,,, +kfile,KDirOperator,,, +kfile,KDirSelectDialog,,, +kfile,KDirSize,,, +kfile,KDiskFreeSp,,, +kfile,KEncodingFileDialog,,, +kfile,KExecPropsPlugin,,, +kfile,KFile,,, +kfile,KFileDetailView,,, +kfile,KFileDialog,,, +kfile,KFileFilterCombo,,, +kfile,KFileIconView,,, +kfile,KFileIconViewItem,,, +kfile,KFileListViewItem,,, +kfile,KFileOpenWithHandler,,, +kfile,KFilePermissionsPropsPlugin,,, +kfile,KFilePreview,,, +kfile,KFilePropsPlugin,,, +kfile,KFileSharePropsPlugin,,, +kfile,KFileTreeBranch,,, +kfile,KFileTreeView,,, +kfile,KFileTreeViewItem,,, +kfile,KFileTreeViewToolTip,,, +kfile,KFileView,,, +kfile,KFileViewSignaler,,, +kfile,KIconButton,,, +kfile,KIconCanvas,,, +kfile,KIconDialog,,, +kfile,KImageFilePreview,,, +kfile,KNotify,,, +kfile,KNotifyDialog,,, +kfile,KOpenWithDlg,,, +kfile,KPreviewWidgetBase,,, +kfile,KPropertiesDialog,,, +kfile,KPropsDlgPlugin,,, +kfile,KRecentDocument,,, +kfile,KURLBar,,, +kfile,KURLBarItem,,, +kfile,KURLBarItemDialog,,, +kfile,KURLBarListBox,,, +kfile,KURLComboBox,,, +kfile,KURLComboRequester,,, +kfile,KURLPropsPlugin,,, +kfile,KURLRequester,,, +kfile,KURLRequesterDlg,,, +khtml,DOM,,, +khtml,KHTMLPart,,, +khtml,KHTMLSettings,,, +khtml,KHTMLView,,, +kio,KAr,,, +kio,KArchive,,, +kio,KArchiveDirectory,,, +kio,KArchiveEntry,,, +kio,KArchiveFile,,, +kio,KAutoMount,,, +kio,KAutoUnmount,,, +kio,KDCOPServiceStarter,,, +kio,KDEDesktopMimeType,,, +kio,KDataTool,,, +kio,KDataToolAction,,, +kio,KDataToolInfo,,, +kio,KDirLister,,, +kio,KDirNotify,,, +kio,KDirWatch,,, +kio,KEMailSettings,,, +kio,KExecMimeType,,, +kio,KFileFilter,,, +kio,KFileItem,,, +kio,KFileMetaInfo,,, +kio,KFileMetaInfoGroup,,, +kio,KFileMetaInfoItem,,, +kio,KFileMetaInfoProvider,,, +kio,KFileMimeTypeInfo,,, +kio,KFilePlugin,,, +kio,KFileShare,,, +kio,KFileSharePrivate,,, +kio,KFilterBase,,, +kio,KFilterDev,,, +kio,KFolderType,,, +kio,KIO,,, +kio,KImageIO,,, +kio,KMimeMagic,,, +kio,KMimeMagicResult,,, +kio,KMimeType,,, +kio,KOCRDialog,,, +kio,KOCRDialogFactory,,, +kio,KOpenWithHandler,,, +kio,KProcessRunner,,, +kio,KProtocolInfo,,, +kio,KProtocolManager,,, +kio,KRun,,, +kio,KST_CTimeInfo,,, +kio,KST_KCustom,,, +kio,KST_KDEDesktopMimeType,,, +kio,KST_KExecMimeType,,, +kio,KST_KFolderType,,, +kio,KST_KImageIO,,, +kio,KST_KImageIOFormat,,, +kio,KST_KMimeType,,, +kio,KST_KProtocolInfo,,, +kio,KST_KProtocolInfoFactory,,, +kio,KST_KService,,, +kio,KST_KServiceFactory,,, +kio,KST_KServiceGroup,,, +kio,KST_KServiceGroupFactory,,, +kio,KST_KServiceType,,, +kio,KST_KServiceTypeFactory,,, +kio,KST_KSycocaEntry,,, +kio,KScanDialog,,, +kio,KScanDialogFactory,,, +kio,KService,,, +kio,KServiceGroup,,, +kio,KServiceOffer,,, +kio,KServiceSeparator,,, +kio,KServiceType,,, +kio,KServiceTypeProfile,,, +kio,KShellCompletion,,, +kio,KShred,,, +kio,KSimpleFileFilter,,, +kio,KSycoca,,, +kio,KSycocaEntry,,, +kio,KSycocaFactory,,, +kio,KTar,,, +kio,KTrader,,, +kio,KURIFilter,,, +kio,KURIFilterData,,, +kio,KURIFilterPlugin,,, +kio,KURLCompletion,,, +kio,KURLPixmapProvider,,, +kio,KZip,,, +kio,KZipFileEntry,,, +kio,Observer,,, +kio,RenameDlgPlugin,,, +kio,ThumbCreator,,, +kio,testKIOMetaData,,, +kio,testKIOUDSEntry,,, +kio,testKIOUDSEntryList,,, +kmdi,KMdi,,, +kmdi,KMdiChildArea,,, +kmdi,KMdiChildFrm,,, +kmdi,KMdiChildFrmCaption,,, +kmdi,KMdiChildFrmDragBeginEvent,,, +kmdi,KMdiChildFrmDragEndEvent,,, +kmdi,KMdiChildFrmMoveEvent,,, +kmdi,KMdiChildFrmResizeBeginEvent,,, +kmdi,KMdiChildFrmResizeEndEvent,,, +kmdi,KMdiChildView,,, +kmdi,KMdiMainFrm,,, +kmdi,KMdiTaskBar,,, +kmdi,KMdiTaskBarButton,,, +kmdi,KMdiToolViewAccessor,,, +kmdi,KMdiViewCloseEvent,,, +kmdi,KMdiWin32IconButton,,, +kparts,KParts,,, +kparts,createReadOnlyPart,,, +kparts,createReadWritePart,,, +kparts,testQMapQCStringInt,,, +kspell,KS_ADD,,, +kspell,KS_CANCEL,,, +kspell,KS_CLIENT_ASPELL,,, +kspell,KS_CLIENT_HSPELL,,, +kspell,KS_CLIENT_ISPELL,,, +kspell,KS_CONFIG,,, +kspell,KS_E_ASCII,,, +kspell,KS_E_CP1251,,, +kspell,KS_E_CP1255,,, +kspell,KS_E_KOI8R,,, +kspell,KS_E_KOI8U,,, +kspell,KS_E_LATIN1,,, +kspell,KS_E_LATIN13,,, +kspell,KS_E_LATIN15,,, +kspell,KS_E_LATIN2,,, +kspell,KS_E_LATIN3,,, +kspell,KS_E_LATIN4,,, +kspell,KS_E_LATIN5,,, +kspell,KS_E_LATIN7,,, +kspell,KS_E_LATIN8,,, +kspell,KS_E_LATIN9,,, +kspell,KS_E_UTF8,,, +kspell,KS_IGNORE,,, +kspell,KS_IGNOREALL,,, +kspell,KS_REPLACE,,, +kspell,KS_REPLACEALL,,, +kspell,KS_STOP,,, +kspell,KS_SUGGEST,,, +kspell,KSpell,,, +kspell,KSpellConfig,,, +kspell,KSpellDlg,,, diff --git a/examples/pykde-sampler/qt_widgets/__init__.py b/examples/pykde-sampler/qt_widgets/__init__.py new file mode 100644 index 0000000..ffe7bed --- /dev/null +++ b/examples/pykde-sampler/qt_widgets/__init__.py @@ -0,0 +1,17 @@ +labelText = 'Qt Widgets' +iconName = 'designer' + +helpText = """Qt provides a rich set of widgets for application use. +Select the children of this item to see for yourself.""" + +from qt import QFrame, QVBoxLayout, SIGNAL +from kdeui import KTextEdit + + +class MainFrame(QFrame): + def __init__(self, parent=None): + QFrame.__init__(self, parent) + self.help = KTextEdit(helpText, '', self) + layout = QVBoxLayout(self, 4) + layout.addWidget(self.help) + layout.addStretch(1) diff --git a/examples/pykde-sampler/qt_widgets/table.py b/examples/pykde-sampler/qt_widgets/table.py new file mode 100644 index 0000000..d6b6e3e --- /dev/null +++ b/examples/pykde-sampler/qt_widgets/table.py @@ -0,0 +1,42 @@ +labelText = 'QTable' +iconName = 'inline_table' + +helpText = """From the docs: 'The QTable class provides a flexible +editable table widget.' +""" + +import csv +import os + +from qt import QFrame, QStringList, QVBoxLayout, SIGNAL +from qttable import QTable + +from kdeui import KTextEdit + +contrib = os.path.join(os.path.split(__file__)[0], 'CONTRIB') + + +class MainFrame(QFrame): + def __init__(self, parent=None): + QFrame.__init__(self, parent) + self.help = KTextEdit(helpText, '', self) + + data = csv.reader(open(contrib)) + header = data.next() + items = [item for item in data] + + self.table = table = QTable(len(items), len(header), self) + headers = QStringList() + for headertext in header: + headers.append(headertext) + table.setColumnLabels(headers) + + cols = range(len(header)) + for row, record in enumerate(items): + for col in cols: + table.setText(row, col, record[col]) + + layout = QVBoxLayout(self, 4) + layout.addWidget(self.help) + layout.addWidget(self.table) + layout.addStretch(1) diff --git a/examples/pykde-sampler/runner.py b/examples/pykde-sampler/runner.py new file mode 100755 index 0000000..8b1ad2c --- /dev/null +++ b/examples/pykde-sampler/runner.py @@ -0,0 +1,58 @@ +#!/usr/bin/env python +""" + +""" +import sys +from kdecore import KApplication, KCmdLineArgs +from kdeui import KMainWindow +from qt import QVBoxLayout + +## relative import -- cry me a river! +import about + + +class SamplerRunnerWindow(KMainWindow): + def __init__(self, ctor): + KMainWindow.__init__(self) + layout = QVBoxLayout(self) + layout.setAutoAdd(True) + self.widget = ctor(self) + + +def importItem(name): + """ importItem(name) -> import an item from a module by dotted name + + """ + def importName(name): + """ importName(name) -> import and return a module by name in dotted form + + Copied from the Python lib docs. + """ + mod = __import__(name) + for comp in name.split('.')[1:]: + mod = getattr(mod, comp) + return mod + + names = name.split('.') + modname, itemname = names[0:-1], names[-1] + mod = importName(str.join('.', modname)) + return getattr(mod, itemname) + + + +if __name__ == '__main__': + options = [('+item', 'An item in the sys.path')] + KCmdLineArgs.init(sys.argv, about.about) + KCmdLineArgs.addCmdLineOptions(options) + + args = KCmdLineArgs.parsedArgs() + if not args.count(): + args.usage() + else: + pathitem = args.arg(0) + widget = importItem(pathitem) + + app = KApplication() + mainWindow = SamplerRunnerWindow(widget) + mainWindow.show() + app.exec_loop() diff --git a/examples/pykde-sampler/sampler.py b/examples/pykde-sampler/sampler.py new file mode 100755 index 0000000..bacf634 --- /dev/null +++ b/examples/pykde-sampler/sampler.py @@ -0,0 +1,423 @@ +#!/usr/bin/env python +""" The PyKDE application sampler + +This module defines the top-level widgets for displaying the sampler +application. + + +""" +import inspect +import os +import sys + +from qt import SIGNAL, SLOT, PYSIGNAL, Qt +from qt import QVBoxLayout, QLabel, QPixmap, QSplitter, QFrame, QDialog +from qt import QSizePolicy, QHBoxLayout, QSpacerItem, QPushButton + +from kdecore import i18n, KAboutData, KApplication, KCmdLineArgs, KGlobal +from kdecore import KGlobalSettings, KWin, KWinModule, KURL, KIcon + +from kdeui import KComboBox, KListView, KListViewItem, KTabWidget, KTextEdit +from kdeui import KMainWindow, KPushButton, KSplashScreen, KStdAction +from kdeui import KKeyDialog, KEditToolbar + +from kio import KTrader +from kparts import createReadOnlyPart, createReadWritePart +from khtml import KHTMLPart + +import about +import lib + + +try: + __file__ +except (NameError, ): + __file__ = sys.argv[0] + + +sigDoubleClicked = SIGNAL('doubleClicked(QListViewItem *)') +sigViewItemSelected = SIGNAL('selectionChanged(QListViewItem *)') +sigSampleSelected = PYSIGNAL('sample selected') + +blank = KURL('about:blank') + + +def appConfig(group=None): + """ appConfig(group=None) -> returns the application KConfig + + """ + config = KGlobal.instance().config() + if group is not None: + config.setGroup(group) + return config + + +def getIcon(name, group=KIcon.NoGroup, size=KIcon.SizeSmall): + """ returns a kde icon by name + + """ + return KGlobal.instance().iconLoader().loadIcon(name, group, size) + + +def getIconSet(name, group=KIcon.NoGroup, size=KIcon.SizeSmall): + """ returns a kde icon set by name + + """ + return KGlobal.instance().iconLoader().loadIconSet(name, group, size) + + +def buildPart(parent, query, constraint, writable=False): + """ builds the first available offered part on the parent + + """ + offers = KTrader.self().query(query, constraint) + for ptr in offers: + if writable: + builder = createReadWritePart + else: + builder = createReadOnlyPart + part = builder(ptr.library(), parent, ptr.name()) + if part: + break + return part + + + +class CommonFrame(QFrame): + """ provides a modicum of reuse + + """ + def __init__(self, parent): + QFrame.__init__(self, parent) + layout = QVBoxLayout(self) + layout.setAutoAdd(True) + layout.setAlignment(Qt.AlignCenter | Qt.AlignVCenter) + + +class SamplerFrame(CommonFrame): + """ frame type that swaps out old widgets for new when told to do so + + """ + def __init__(self, parent): + CommonFrame.__init__(self, parent) + self.widget = None + + def setWidget(self, widget): + self.layout().deleteAllItems() + previous = self.widget + if previous: + previous.close() + delattr(self, 'widget') + self.widget = widget + + def showSample(self, item, module): + try: + frameType = module.builder() + except (AttributeError, ): + print 'No sample callable defined in %s' % (module.name(), ) + else: + frame = frameType(self) + self.setWidget(frame) + frame.show() + + +class SourceFrame(CommonFrame): + """ frame with part for displaying python source + + """ + def __init__(self, parent): + CommonFrame.__init__(self, parent) + query = '' + self.part = buildPart(self, 'application/x-python', query, False) + + def showModuleSource(self, item, module): + if not self.part: + print 'No part available for displaying python source.' + return + try: + modulefile = inspect.getabsfile(module.module) + except: + return + self.part.openURL(blank) + if os.path.splitext(modulefile)[-1] == '.py': + self.part.openURL(KURL('file://%s' % modulefile)) + + +class WebFrame(CommonFrame): + """ frame with part for viewing web pages + + """ + docBase = 'http://www.riverbankcomputing.com/Docs/PyKDE3/classref/' + + def __init__(self, parent): + CommonFrame.__init__(self, parent) + self.part = part = buildPart(self, 'text/html', "Type == 'Service'") + #part.connect(part, SIGNAL('khtmlMousePressEvent(a)'), self.onURL) + + def onURL(self, a): + print '****', a + + def showDocs(self, item, module): + try: + mod, cls = module.module.docParts + except (AttributeError, ): + url = blank + else: + url = KURL(self.docUrl(mod, cls)) + self.part.openURL(url) + + + def docUrl(self, module, klass): + """ docUrl(name) -> return a doc url given a name from the kde libs + + """ + return '%s/%s/%s.html' % (self.docBase, module, klass, ) + + +class OutputFrame(KTextEdit): + """ text widget that acts (just enough) like a file + + """ + def __init__(self, parent, filehandle): + KTextEdit.__init__(self, parent) + self.filehandle = filehandle + self.setReadOnly(True) + self.setFont(KGlobalSettings.fixedFont()) + + + def write(self, text): + self.insert(text) + + + def clear(self): + self.setText('') + + + def __getattr__(self, name): + return getattr(self.filehandle, name) + + +class SamplerListView(KListView): + """ the main list view of samples + + """ + def __init__(self, parent): + KListView.__init__(self, parent) + self.addColumn(i18n('Sample')) + self.setRootIsDecorated(True) + + modules = lib.listmodules() + modules.sort(lambda a, b: cmp(a[0], b[0])) + + modmap = dict(modules) + modules = [(name.split('.'), name, mod) for name, mod in modules] + roots, cache = {}, {} + + for names, modname, module in modules: + topname, subnames = names[0], names[1:] + item = roots.get(topname, None) + if item is None: + roots[topname] = item = KListViewItem(self, module.labelText()) + item.module = module + item.setPixmap(0, getIcon(module.icon())) + + bname = '' + subitem = item + for subname in subnames: + bname = '%s.%s' % (bname, subname, ) + item = cache.get(bname, None) + if item is None: + subitem = cache[bname] = \ + KListViewItem(subitem, module.labelText()) + subitem.module = module + subitem.setPixmap(0, getIcon(module.icon())) + subitem = item + + for root in roots.values(): + self.setOpen(root, True) + + +class SamplerMainWindow(KMainWindow): + """ the main window + + """ + def __init__(self, *args): + KMainWindow.__init__(self, *args) + self.hSplitter = hSplit = QSplitter(Qt.Horizontal, self) + self.samplesList = samplesList = SamplerListView(hSplit) + self.vSplitter = vSplit = QSplitter(Qt.Vertical, hSplit) + self.setCentralWidget(hSplit) + self.setIcon(getIcon('kmail')) + + hSplit.setOpaqueResize(True) + vSplit.setOpaqueResize(True) + + self.contentTabs = cTabs = KTabWidget(vSplit) + self.outputTabs = oTabs = KTabWidget(vSplit) + + self.sampleFrame = SamplerFrame(cTabs) + self.sourceFrame = SourceFrame(cTabs) + self.webFrame = WebFrame(cTabs) + + cTabs.insertTab(self.sampleFrame, getIconSet('exec'), i18n('Sample')) + cTabs.insertTab(self.sourceFrame, getIconSet('source'), i18n('Source')) + cTabs.insertTab(self.webFrame, getIconSet('help'), i18n('Docs')) + + sys.stdout = self.stdoutFrame = OutputFrame(oTabs, sys.stdout) + sys.stderr = self.stderrFrame = OutputFrame(oTabs, sys.stderr) + + termIcons = getIconSet('terminal') + oTabs.insertTab(self.stdoutFrame, termIcons, i18n('stdout')) + oTabs.insertTab(self.stderrFrame, termIcons, i18n('stderr')) + + self.resize(640, 480) + height, width = self.height(), self.width() + hSplit.setSizes([width * 0.35, width * 0.65]) + vSplit.setSizes([height * 0.80, height * 0.20]) + + self.xmlRcFileName = os.path.abspath(os.path.join(os.path.dirname(__file__), 'sampler.rc')) + self.setXMLFile(self.xmlRcFileName) + config = appConfig() + actions = self.actionCollection() + actions.readShortcutSettings("", config) + self.quitAction = KStdAction.quit(self.close, actions) + + self.toggleMenubarAction = \ + KStdAction.showMenubar(self.showMenubar, actions) + self.toggleToolbarAction = \ + KStdAction.showToolbar(self.showToolbar, actions) + self.toggleStatusbarAction = \ + KStdAction.showStatusbar(self.showStatusbar, actions) + self.configureKeysAction = \ + KStdAction.keyBindings(self.showConfigureKeys, actions) + self.configureToolbarAction = \ + KStdAction.configureToolbars(self.showConfigureToolbars, actions) + self.configureAppAction = \ + KStdAction.preferences(self.showConfiguration, actions) + + connect = self.connect + connect(samplesList, sigViewItemSelected, self.sampleSelected) + connect(self, sigSampleSelected, self.reloadModule) + connect(self, sigSampleSelected, self.sourceFrame.showModuleSource) + connect(self, sigSampleSelected, self.sampleFrame.showSample) + connect(self, sigSampleSelected, self.webFrame.showDocs) + + self.restoreWindowSize(config) + self.createGUI(self.xmlRcFileName, 0) + self.sourceFrame.part.openURL(KURL('file://%s' % os.path.abspath(__file__))) + + + def showConfiguration(self): + """ showConfiguration() -> display the config dialog + + """ + return + ## not yet implemented + dlg = configdialog.ConfigurationDialog(self) + for obj in (self.stderrFrame, self.stdoutFrame, self.pythonShell): + call = getattr(obj, 'configChanged', None) + if call: + self.connect(dlg, util.sigConfigChanged, call) + dlg.show() + + + def senderCheckShow(self, widget): + """ senderCheckShow(widget) -> show or hide widget if sender is checked + + """ + if self.sender().isChecked(): + widget.show() + else: + widget.hide() + + + def showMenubar(self): + """ showMenuBar() -> toggle the menu bar + + """ + self.senderCheckShow(self.menuBar()) + + + def showToolbar(self): + """ showToolbar() -> toggle the tool bar + + """ + self.senderCheckShow(self.toolBar()) + + + def showStatusbar(self): + """ showStatusbar() -> toggle the status bar + + """ + self.senderCheckShow(self.statusBar()) + + + def showConfigureKeys(self): + """ showConfigureKeys() -> show the shortcut keys dialog + + """ + ret = KKeyDialog.configure(self.actionCollection(), self) + print ret + if ret == QDialog.Accepted: + actions = self.actionCollection() + actions.writeShortcutSettings(None, appConfig()) + + + def showConfigureToolbars(self): + """ showConfigureToolbars() -> broken + + """ + dlg = KEditToolbar(self.actionCollection(), self.xmlRcFileName) + self.connect(dlg, SIGNAL('newToolbarConfig()'), self.rebuildGui) + #connect(self, sigSampleSelected, self.sourceFrame.showModuleSource) + + dlg.exec_loop() + + + def rebuildGui(self): + """ rebuildGui() -> recreate the gui and refresh the palette + + """ + self.createGUI(self.xmlRcFileName, 0) + for widget in (self.toolBar(), self.menuBar(), ): + widget.setPalette(self.palette()) + + + def sampleSelected(self): + """ sampleSelected() -> emit the current item and its module + + """ + self.stdoutFrame.clear() + self.stderrFrame.clear() + item = self.sender().currentItem() + self.emit(sigSampleSelected, (item, item.module)) + + + def setSplashPixmap(self, pixmap): + """ setSplashPixmap(pixmap) -> assimilate the splash screen pixmap + + """ + target = self.sampleFrame + label = QLabel(target) + label.setPixmap(pixmap) + target.setWidget(label) + + + def reloadModule(self, item, module): + print >> sys.__stdout__, 'reload: ', reload(module.module) + + +if __name__ == '__main__': + aboutdata = about.about() + KCmdLineArgs.init(sys.argv, aboutdata) + app = KApplication() + + splashpix = QPixmap(os.path.join(lib.samplerpath, 'aboutkde.png')) + splash = KSplashScreen(splashpix) + splash.resize(splashpix.size()) + splash.show() + mainWindow = SamplerMainWindow() + mainWindow.setSplashPixmap(splashpix) + mainWindow.show() + splash.finish(mainWindow) + app.exec_loop() diff --git a/examples/pykde-sampler/sampler.rc b/examples/pykde-sampler/sampler.rc new file mode 100644 index 0000000..fc068ca --- /dev/null +++ b/examples/pykde-sampler/sampler.rc @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/examples/pykde-sampler/wizards/__init__.py b/examples/pykde-sampler/wizards/__init__.py new file mode 100644 index 0000000..63472b4 --- /dev/null +++ b/examples/pykde-sampler/wizards/__init__.py @@ -0,0 +1,2 @@ +iconName = 'wizard' +labelText = 'Wizards' diff --git a/examples/pykde-sampler/wizards/wiz.py b/examples/pykde-sampler/wizards/wiz.py new file mode 100644 index 0000000..1cb5544 --- /dev/null +++ b/examples/pykde-sampler/wizards/wiz.py @@ -0,0 +1,2 @@ +iconName = 'wizard' +labelText = 'Wizard' diff --git a/examples/pykde-sampler/xwin/__init__.py b/examples/pykde-sampler/xwin/__init__.py new file mode 100644 index 0000000..f9ff0b1 --- /dev/null +++ b/examples/pykde-sampler/xwin/__init__.py @@ -0,0 +1,18 @@ +labelText = 'X Windows Features' +iconName = 'kcmx' + +helpText = """KDE and PyKDE allow interaction with the X Window system. Check +out the nifty samples below.""" + +from qt import QFrame, QLabel, QVBoxLayout + +class MainFrame(QFrame): + def __init__(self, parent=None): + QFrame.__init__(self, parent) + layout = QVBoxLayout(self) + self.text = QLabel(helpText, self) + layout.addWidget(self.text, 1) + + + + diff --git a/examples/pytestimage.png b/examples/pytestimage.png new file mode 100644 index 0000000000000000000000000000000000000000..3bb4e6889e6a570a5b711ddaf051759ecc018a6d GIT binary patch literal 36986 zcmaHTWmr_-7w!-uCDIOEgS3Dk-5nA`Nw;)&2}pM;{OArz>Fx&Ul9ra1E`huKKhOPm z?@>`f@XS7Yt@YL>Tv<{21v)W01Oj;>D?aOqO~+nbkl@ zWkYEDi)tF7vEU zQogOH{Uj+VDKu>l(vdGnxH=~&tTFRqaN^=d%_6-8NwE?s=rTQw)#9i3V8V=yj8dFs zNYAn2D8Q#A>pID5Xe8-ZQou2UwU>SGk01`~!LNMRkZ!9Ckzu{(K8JlGl-Z9lv^lKp zHvxYQwcI3nytco77>uRM^1+2zSy?IatOw!L{W0-hI8Zuj z>D8w1n#o@{r8+L(`40{}HOhIq_y4g?8GX~mF!7mH|A64nJVIl;)j`suMPY4i-Em^{ zcpWJF2f@k7skx;E&o5s|_`#)^THq#Sod2YC-N&9q0*>roUHul~al4)DnORiKE*&90 zv9j`MfXuy7_s!+9kl63dSYZtV{vI}3TH3Xx8(#sL@6FQGIJTpWt}|0VS5g_r50{&q z^S>zAweA(BX=`gketrF*Ph^SF(p?oECoV2YrhDB%ZEvy8dR8SOH#dzufS-);)2B~ct7QCckj}b!eg51f_oKyvkC_^! z?@Gj+oong?G;{{p-cw>jOSUuk-Ss`zgTY32n7O>TaDlK9N7E4R7K?vEhvSEqoDT>; z;)HbehU3NVSUg$B4f3xWMvL}((J^b+%G|%Gm1NQ=qkL7_xDkOI&8kx$waEi%1obf+ zY2bUitvpIj82O4dCY1<2jCqvHhQCoS;JQE4NC4f*7T~p8Zp3-s$?lI7aa3;! zo1@#^Ea5{E@9PzJJmH(ax96&UK@=odN@69ocQ>1{(rW@2KU7(AY;A2F)1vjTW~q;C z8XxZtLZ8^G`qxwyd1*@&%YpKY1?aSh4E6uekP5Sm}OAO0psm zc(|Aj^{e#ya2UgPY=O2jo|P3J&psnf+T-Bhfvb{Xo!efl@jk-qUfaaLCa{{h)U?TB zl6p3#LWA<^66X_KJz;JG6n4ycXQ)`qlnyhY(`oQ4{fX6FS48B|q_2l-YCbpXp*^Iw z%=+F(@9Hv^>{?ium@xj=5R6tU>c&RXxLNHo<_-Mx__YJOvI#AZHf4poV+lj)sMKl8 z=MU=UmH3Zpi}!w?-^#@AGjrQ6))voQ9WLa}*;`t6L7w;CJe>#z@GMvYFL)B#D zRU<;uMng7_pz2g|*g=U(LMfY# zpirE7Hb2-}7Zen1p)V|B?dl^Qu^l(fq)H8bVD_URSHF!t5)N@?3Rc=5`SVNSVuc}T`;SnBHP`HE$)DGA}J*IG4Zw93=g z)~}1dn~f5mRqj6)^?|3lNlp!G09&4HG1BkvCIw!sf$Ll4?YKzRb|{40=TBFU5P#Rh z^;+c-`x}m#vy{dpJ69rNvmz5^M-SY^X4lfYtJz`h6&JjwYTG5Qx{DcArM^%nI$Qq5 zyvnWNyjUUPS!N*@KbdKljVjMJ{i8!m3kwIl??RobmA|cud{I zC7QJsICDQpROH&JKVSU^HgdjfqA}eZSn&BZu&RAWZb<%$MQOawh1$0Cr3QyMi^!WF zlsIWC-q&Y4?~e5arVY*Odq?9-dZr5BAJ%L&@3%dU7(BkcB0@WK^H!6F_f~GO`rXP0 z6opCp`U*ifxwx!eg*CdW{dQ??R1gH^1^ELiIo1MV(n&*01%Yzgk=|B;X{JK#eicO_ zocSf8GA%Jtyy6uBf$eH5Z#~AWTqJuYn^C~x7)`7|f}u>qvQwnCGrjxQP;xI+h}n2% zIhp=)Doi72>F6~bGr8CAoJM=Yu7GEbl}MdsS~Y{Nvt877?pwLdxGSE!8SqlHu8+xj zgy9k!SOg}m4(nnNkHe~g?^4Oo*;kXllrjahSjgmBVRPjW9O!*Q%uj?GWs95G4$oP3?e!k;oBhqTLySw{m656|+ zt*w7c5ccWWp_3PKg+>j8II+@aSN-4zhCp%qpL=~2+ z=6Y-O0F|_!{W7@;Xc@>kjAwR-Djbv=W+N2>DNriUukj2Yk9FA3imDw z#&~5lAW|Entr||a7`@%u>F*^t3?=Z+>oTO2+&_eotZ=V-h~I03%Y1ugvyU+cXf7KwZUkRtYDx-`x~TOc z5~OIFNPQik02O&ACZ_wlJGOqT(7?uLz174#_)>ZBQkVV1Lp5uwm&|<|`=yoSC8Pg_ z-sR;b==T)2+#1H=ZKpeF_H+94PW6rQH)9$6vU^)YiEAF4FV616=`tw`w8cj`#s$RR zlyJ?JRy11`pTeLy`jzfHq+8dv4J%S|btM=91WX!-OARLh7;h+_Ry{VOdrqt|;ZQ=f zZ*JU(8;hhX6Oz)amuaMe4M;4>}T(W@zG+P_&aE1V}EJGny-!yomKQSb$A}V z$%L^cEQnp`psePH**U1Z5S8a9QJV=#go|W2kpD(^kk{--l3296|6@1lPh!!*ZCG1e zyqo=C@UIfO#BG-wPeJ!lP*Q5pWZvH19v6P{+2G>m=O2O?k1~KKMZ*wb9RYXTD@fki z*;xgRxJnWtA z&+i5l5k%^URq@}M36b~Uh>@Nke^vVugGGu(6VV+Jp!cSr1`kV6HpGSROQJXdp~~&; z#l_wahN6kUcyTG5UOd@*9XS5RGrE!LT>5He`2>lvEtv#~$KmStV{NAbV8|Q2O_}*G zoF;&Iq|1;EfaLep%p+$4+F<_|8t z+7yd6d18#9K@-rtdq+fuh=7)sKKIpdW`hb&F0t1CLTKy>s1n0dxMMp`rOZ}aw-za# z8wv{g4lYp;5yVJxQQ~ESbYZ>X9ypLYycJ&4~F-M@{rou+ppDG z&mXU}v@|zcq}FSf17OI)GHSzRZfcreRFwAqbq zzM~wokelq8Vbmv~)6Lid*Mr}@&W#3t19%^A;^h?99e%Dm*sL_ym6kH$hGT2sVWNZ^ z)WBpTa+UG>z*<*(wXGVmnVOjqg6q|*-Q8Vtb93-^&7tQ-Q0zKYOeLKN40rF~z}m{H zq_otTFC#};1`a?QVcw+0+mykz+FH)Up)X&*egyZ&m8RW$E-+G!*<)c+6Sdxfi+Q|{ zEBsfv;u|k+`KE*B-3Er|xtZ6_dw>vAR24;g#`u^cj482y9~?M0>6&M_CiNN1%FB=Z z@8U=smG-idOV~Q~(ALob6k};|5ikqkn_oyOTbEw{CboV1tr=i^uM>v=Bp)@aSty%7 zn4X@t<pk);Q!-oJIjfyWq_sp{E<{q6nakWN)Q#1K3Cqh^0 z&LK*Y$ki}fRQ9h>M-y9$c4@7vTOY6&-o1MVHbr@P`J(>}VdQr8$eWhK>Jdoi!KK|& z{ZZD_-(AoVwUX)yMZw(yqsZG{Jc-#8v=dtTceIx!p_Roxvob|N9I z-=7qrqf6zR$ZSW(#q#CqfNC4rF8TJ&(#FQd+B!|pyFS%dfSo>q53p)Q-fjG|6TpnP z?N?hrju1xV{xGYVv|wgrtkz@(Tv%WnBLEu}dD+h0&(Dt%n{p~+QO!v=><2W&s8JM~ zHWZYiXXYkP(np2}>ieOYT|#(-SDSvr($T3$*pF`?@1;{P;?3vxTwW)JhZUj(ex{d? z{SAS}ZS#CEADsdWuN*BE@0r)Wnk@r6t!x_ii1#&Pc{#RoszLD70+H_pT-=lQYg*dI zL?{yP>NG6`P6dz!1&>2EDCd*wHMb?(A=kElFb9JW;-5>eprFvO>Q%a6^O_G0j=y5( z4z?-adEVYF^9SnUZ(h&8vZ%M^RB$FOn%=wc5}YK|Mls?_3;!ckOZM&iYe_g*sp&ni zN;Xzj`^U$xQ^|R>zu-MP!{<~uaN$cE)zH<|)zi~cRyM5COsIK|MS(fB=V0Tb9Y}@n z&>K)ul3QAGb5QvlvUgC~6D!1M`x85h)ri^lCuN0Zm!9_#TQD`|kRPtGJ(=&v*nw%l zASNb$Iq;+_?(WZ)CLU`)lZ0E(SJY`TgT+E##t0TuEOH*t6!gA2v;-Q$txqp?x|abe z)!88F0FHW#ekCX-jnY}Onva+PsFtr2Ws9b1i-PG+N~)?HK^*|nyt1;=+yAF+A{IR& zmnWu1lew*}4Qi6PJA_0Im+GY~eU}vUeLUGG@_dJAc%+Yjsar`f*xP&aut$RZ?~JON zCvO@X^0IrN?0RY3i#rD^#t2+gwA55>ZEZe2z9d$IOqULA055lH#)X(zSy`Ex ze+&+0Tk=6Mn|0rW_Eh;jJ?3RG?pN>t(kM9uHXS1YNex;l(d2w)(7{v|uG zU9NuocyIjrwRfwL;=7Hf^-~Y<yyqKG)`+HZGgPVr?oThGV9cwnTb9~>KdT>+D> zU_}8f*hQpfOJsY;Xh}M24EP zv9V!Y*`}d@)b4h)2=IjaW`FeF-X5rDP$8b4o|2N1;4LpNFA))ugcEekh6aX@iY!1L zJAV*Of^+8`#605Lv9@`7^YB=Fp(>4tNlH9&O{rq$BU5QUE|8eX%i-{NdzN$S34yRB zxgX;vvCgl!&KnVTYbr(uh0tJ0QsX3#%>MkTX<%^T!Uu-cE+FJCMcTTbE@#07*eSRn zCQ!24<-N{g*vK1ooQ!Rl&r57}&Ts9Swv(bsxCsde>S}AZwzt22`FCyY?BL?~@ErS< z)C{t{`j&?|8^29|$ifhIU#;Sn4a0R#qr5P1!HFRuS4av@)>mn6#%%~x-4P2V2t^hJ zBo7o?Z^Zuj?c-T;2W%yeFp`jkk%fij%^PxIUmvh6vsSaO$w{bSlkSdm!8*LOEn}U+{`E0DeIZ##O)80%~GkdqKCM6{`H#Zj+z7Fld`8vmK$qWdr zprBp>McQcL=m;mHUVfN2;OuGk?M)jIO!YPk)t~OK{*9{XLWTRQql4eS|J*;Iagwf` z;Iffo2SQI#d8a&MX0 zGLL|E2bN^5%0yaRTwF;>iHG!Yd_xj6e*oMB1y^ji5(Om>#}faR zM!(5&asN?lV}@$9AnfBOTuItGjPr_tQH=1V}~O-rb+Wh0N*kUnVZfP72XC zx4VCTUC=)NES3`ob_5S8Xsq9UzbBAH3l?*Ab+xp#%ux<2d(W4FMa9X+HZe1!W?-&aI@~A$0dB1H0IWypW|EA|mQCbTBl`ZfIx#&$IJ062JSg zjjip`(UHPN7peptXg2(AhoBI^^96U=)YJqT9KK{-L&N;s+#Fb?`T5w0SBQ{*#NVwY zqxieLoSY5UQvB5$UR=#q4@XJKzNrHF*)MXO3g%{JkJ5*~HOjR=a;1SM#=*fME5{@z zEY9mvR6%UC!L%0gP>3&yh7zb)R8v^^4>3kZM*~n7D{!{U>l}mNgL*CPCFnjhzCD`e zz_YkmaJX{txRvU{KrIx&pmPb}{6oEH2V#LmeF*0FC$e<>cjQ z=3a&vd3k#SjA~_Vo#lPZE3RuhfO?v?_V+atQ)zMWzbY&#iTKepllGv`1{BwSDilmv z4AqfTdfLUy%L{RGqgZrAWoDsL-?2%T!|VrT=rHQ;`$O0G<^h&KRaL9!fnA`yfr@al z*3nV*@7g;euqPzg>i=5!AD&V+BjZ-veQt$neAszLscb`~abE-hfE@$`1VO&l z)zyP;?3YO$tnV`gZUN|Qy`0kl*ehlgv*)J`m#abQ@W#s068}`Pczp&YDT5fpLk=+D=M&&ztz$FKYj$#r@sDbylR)8=k`~ye;XETz&^vH zQ%wJd3@oQ*h8N)jfCt()u7`k{0gxtT)C|`;cuPax@tni&(Z>k|?#dwdw;5Z^>gVg+ zlGi$N#ub#0dtPlq{QTZi`LbZAg1sw&%}2Z&yrDYsT~-EPa>MTD!oux>x%EYJkIln^ zq`9=d2g6*n`l(l1TAC}LUH^}7@!#XVey#cQBg@s@-LKlqR!?t*?KvKXYyysCR?Y82 zyqK(4=)q4nok-vV)yyw2FP;bHsA+59pduePZpILCn5k)K;1YD>sCN-X_a7b}0v48` zIKRBCYhds+%v9+iKn}-$#iH#pM4OCHNEl=6zMJLu`1o+|ezK|%Barg`wNo}rpV<(C zMD@41gUj%8?q0kA9z2{R8LTNh_7FDe)WR1iNDDFmCxP}1PhK{5#YKJ}A!l0+VZ%g1 z^%O+%S~2255p+fWnngF?|3fc|PAQWU;Fvc_n{c04_tn2)7fauSc4aquqKaiysWWXnz04w*7CGnW+? ze_uKRv>@ZSYWmB6++jWRBh_1+Ioc`6nECV(Mo_21!2bfJf_-ZdFhi-&)P%Xl&jGLk zcnaXvqAbU|tD}~1LVlc$p=0I&t+GPz{x!li169B5E~`4<$J=Ij z%5T-e_Y7d4zj;$pR>sW2Qm0*>x3L@tF`Wkb1{{EstgP{B8y-?XDeXWrY+2fNYSOI$ zV$fy0G`Uu*$0-nc*cme_3_3EmO2@!8IA{ocEh&$~Yh+cYeSUrpTHg;dXT%(X=miNv zYZlL9#&=ptLuv3>A8Q?DG=DV>Ke`E8iEpiVGw;>E*|I^MoSgw?|a{tg|15PZa!89cbewauwn(Nb4;J*;w8wLb?I;5#TLD1E%w z?~BXIVCbbYX@bo35mS3E0Bqjg-kQ~<@C4sH_!__b{rk6twKY%#0E$Qz`gB*KUV3(Z zu6j6W`c@&GrwY8%f&yA@?&P2l1;;>|OeA zTC7^|(Yh^9P69&38)I!}X9p&@{lUz^C9n^Q)D~eLKrset8;9rF7VtO~K=-onI*p?w zAsvYS?U}DyIx8o(OF&4N^yLc=Y0S=!86eet1RwAT2--L?-B)`(?)Hjed3XN1xVQkF z6!(D1Rmt}4Cv{BqXyq}sB{eiktE}+nJ!NWcuZKjUy4~l180!#3z|c6l+TXXr?U%&v8&}p@RnF^ShLf2 zn?K4ilz`($$gPTov{pLMw?0O)W{g!7=5!N8BS++t0?nEO)F-Fq6d-HEBO?m0r{P>n zr5s8m9U*^T$5XsO5!cox4mXfxhW$guz)5sg4ZEv09ZGnm??FXJS5#U$V!>IcDAt2) zgumsHdpBdsQAiv)h>lAeR>GaYC*dB7O?^B9f0xHcCgd3#P{bt(CyXp;Z1gZR?A$%~ zY+D^u+?^i(d)ZIoOIC^&cF`E9XkNA^Y)tg_Phnva|8XlBBuYw^2WA*W%iuXQTb6hK zH)7!6^44cu=)P=0Ab-^Ah8}d1iVEO?bRRC%3`CPiV@(yT+Te!We-6)A6r)Y#(Ufq> zq2CA6uwI*&t2TNQB5>i6ahKlF&>+S9?V`%9(MZINi-aS-qbI_sq5EnDQ%2PTRK&#V-c)V}XJ<}Xifr=dkW&*$) zU|1@p^Thw8P_gGigFSWz1pyIY@Hi%YyO7=rs2C*NcJH-qZ+_>+W&$w@biap(2b4f6 z$u?bMR!cE~eKb$?=MZAabV7W|Z;M>E!=$s~Sw_%=pF7`&f8yA(rogA5NaN>VdjXwE zP*Bjf!vMbk4Uh3)pHmFS_`{>Mq@z3r!NK=H>{PbBL+3HdE)BMRU%x-YOyh&^cR>rU zw6<=QjYUWD2tYL416IC5GY$bD$}d8Dz!&_tf!=e|5oN6uR9?1Vp`|x!LRP zVh`Lo5VY<-dv}HB%FNLueLQk&Np)i&#ro&KSGK2arM|VED_dP%{rnjrLor$I2LG&F z5{?<#vtRpK42wO#L^MRS#xv5DO*S+Ij&j|(qlayk1kXTNB6ZYwslf%PaDBvcg zpDAV2jYP3)cgT2Lnyvj3pLH9u#kl~6WvR_nE~kh5jcH<&x;<8xaa|e{MO;N6nn|_4O?+8FF%gpm>m*Uu~mVKBr7C zAw$pm28P-VEJEfH#UfRO8rkVuFGY<{*b@`LLi6ue3N@Vo@etrC*)@DnQv)fb(wsk< zNwieAp(#*qIT*=nD5*P@?B^gEr%bSgfez``0wi)^BwyK&54+y?#y*ni807C|a2@E_ zw>`raU9&``P2JJT$o%Nxe{%i{qz%TX_>pG^9bBTQWW}wmW3|8Y#sIA!kT!q@-XtG@ zID&jkP@z)R>dXvhx`VU$db;!2%8G8X4Nz3%bVYM{d3kqtcgkPmBdjAoe!PWVYVbSPf*@5hf;xe8FgVQsren6#KW73hy(9s%0kw$t|3mc_Kq!$h2+ znKFLC{DCaJVQ5c$Mur|R=zGI^fV>6-oSsw-^_CZ>2(#prZPsiNR(Up0WILvi5RKdnd%BXEg}z)Fa=f+^ZD ze+$^;iHc`tn%6yNit5^QO?1Ej+_1~=&pnZt6!xye8;M&55?e zLFV^rk_c~RZ@UYpiB+O93;-JN-vRBJpTFni{K;xHeBIj*$X5jJ&Vytek;De&ROAqd znB-bZ-}XciBt2r5#-FX-Ms4o%SdPfu1e|jeP#aBY|{swm4y&E)jCp(^UBg1>UWb?#I=Ew=)8+_gHd$x+@Y!M z`jrhJXau$q08k)Gd(0GUAj5HvaP zoWf^fbybQZYJT%&FcNtz;5KQYm>ho54 zv$>*J_mNC6-!i7j{SoR}|E^d>!x62EgKTs=;z#`Z1SBSw8y)lZ+spg4l}TcAmo&R$ z?%4lYavK+L5oHa338&IpnL$ZSt8qVR&#re%olnEVd_8f+2KYWVcPiihIV5NT7zZt2DS-U%*LiSC8in6vza|veCGwUXcO1u6 zg}hF8nla?5ZI+<`llqdQ9NB6L=E}CH70D_3GVhCxcGS$?aoUTMWWp0mK8N{}r#~lt zZQS4eo*sFfcl>v-kta>#+Myxg@>!18PBac23S~1ImkIkA)J{}6L;&D9g}=bWL=_Yy zijKy+KH{%z(P2dmzkhk)y4RqqxWEB{K|~->3uJtVrx+&Xv`j#t+82R}jxBSFPZ?JK zWjb#5|BIKEeyCin|HLHz^5XLH)BRBca4Dto;!z2}5HMuZ1mU;feDoOV5}G1pibuj2 z5d~)@Huq!t^v`qxu;KS#Zrs1z2+foUN=PH3nxLCR(LaO0WKp);_Ed{fr=m2NG68(d zm&H?ORF7R?$DCeUdm5c*n)f?h$fEGHok^~z!eq@w4U|%GiW@t*zV{K@Fp|{$h4>lL zs0+H6aglSvKq5J+b}%YO)HYjhbu-hL(T)NM3<_eg%szn{= zmS-_T$lS{gJ;0Lc$-y3B0}3kW;Wk`Em{PvjTbT7jrquCvGET+`Mro!zvpcVdB{8Kj zUOm%F63@Y&3~Wd#U^t)gq+%dD zs^VQnwkV>CZ5=nXxBr0W!{yz7>a6|BwypM#1yTsR?xymE2zAgSn*lJ#5^c9lstuKr%ryDwG#F zO1X0Kdwb*W!>$N_k(Ho}P{d*m)`^ z1HdqfNFlBk1VFa$X zU@zrwBkKgNpKL?J(zr$OgXaxG{T`T>tTJdLU=+={^sUV15!A8la@5}F1IJ@S`Z{`+ z8T{eZBoJf>W+$Vb;Mo=Nwm%Z2cv!`&A2ytcmJK0fmw`Aj>Y^gmr?@ByR@;oV-d?q; zaX)xpAEyc4)496VagI`Q0*9cZw)QWOyv(75RH!IOD|##ZZnkSxt~%b{X}N|mn}Z10 zd6SwN8eIFZ{FP@fob$ri!Jq;1J=jDi*L2A$^_7)Mf;~lC{A!#D$htE8CG_tCz2ZOK zvbsO6Nt)}TD!&jxYDBguv$nFcar3#mZg>&(%p{@+)4kRAAmYQ?O51&)x}w?r`OAsJ z1;_vb{c-zzMbpmu?&Bki=PlZezRgKbelFDv8pNL+8L?T!5PwP^DZA{)(d?{sS&|)@ z-z=zVX-E|$+vO7V#OFOzRIz;Uw+Vwfd&vQSi1zRXG@>|N_ZiaAiPRUoMMFuYY zO6@;We4uy%z#(L+Xmr{g(*tP&L(aFDi76?vL28n4wvZoXWvV+_&A+}(4^p$pPGvn_ zNXHJ~p(0C-!~_{vdtpj{l5o@Nec9a5kPIbXw&O+<5LWSM)87aRc~15-MCD~Cwywqb z&S)-ug17orFuR6xN*o>FQ><_NtXA%dAj1#~|IfaT^Go)hytY}#GIiZh{0V+#Q#|E$ z+^n_L35(Y|RC0*aBqEeR_}p#$_Txi82;I)~|3rFnoITKvlE}!Or_d^3A7CG#C~A4Q zQd;$`5yp?FiOVs&u|hX?a14 z(l`a|R?!#Biu*x5M!>?HoSdAV7FU#g&F-I>NgiTUi$E0GV^!<%>+^G&8y=@02rrxU zq`ygl40qc|{y)eTT=N_W6^x zhs4+q?N@hW1LSKzs=s*MDcfp2m~NpHK|JA$Og)~2C|{Gr#C!fw`2MG?nN(h4s>J_Q z&xH%|@1|XQ| ze))(N5~Lx$vYX|@^HgMBaARTMbJ~~A>+F#^zvtSjIKUP~{7p|@X6rfsB4ZG}Yf`h* zKrk^wG7nGU@(v8rJhJU|KFXa)(gVO5Pt2yL5NNh596_4! zrI-aUN^fs@F$Ma}WO}FMHg4ll_y`7HwODpAC{vZx# z=CJ?;cGDsZHJefyKbyeQfMYOJC9G`loE{x6F5++p{#g=J1bNfvX~|^`4ornakORWy<)pFGCQZ@pbFpCn~-<$`5s^ zgJ4X=f5i9q_e&r@kd_8gRrC?VV`GXH2f)4sbJUTv2!#$3z2Nd+betgxa0*}%v!JGP$_KWpa~$BCo?ypQ=X-Lly7_Z91?;Alw9`c%V1z>b<7)XrgmTjuM7v0T>D*4 zHsoYepxl0!%hevxaLQH}e1S7x6-L<=YEo=D9j6$oD$|b&5t$w|%^ip}iQ#ukTd3Ci z^5(IRc7|%IMhwOF?Qcq4g!c$6Cffai4^`3Yz7!JOGT0*cRq42|x}iw@=)Z7V7D!N^ z_oSF-@SG+pd~;g)hXh=vWP$R!;i+FVU&EZ7X-8xJq1{9R3h@`Ce9=DuC9o*kQ)Ujs zG*oVj44X6qy4bn{2($2$#()*b&%l*{1Ff{TLvdToN@B|B&I&t{XsAzFSy=?})Y26f zR!249xbEPwSgQqzp?f@gEk=(U-neosPI8V=J6~VxcE|UF_x(Tv&bR6Mhmnl-&MpzS z#Ck;m!kHN=TD%}RM_6Om=S|%I&_hZpq=<+b+XU@S<3vzT1%?Mjn%qh#voZxz^w_d8 z`JQ3#Yv0=CH@(|uhVe-C7*|()~3lM<^x00>LG!qqfy{D7v90 z&vt)C1ux*(i(pEjBoS&A&`VR_2}$)Fa3iby4W1>{+BIsx+Q5R-55 z<%JD~uOi2wGOWV$Qw!@a607~ZF1DBwd-8>`c$y7Z$)_1T2_kVso_=4^km?0xDU{wg z>}t)e2y_F#4tGNl?4XhoMofPTWX!<#ubXoNcuzfms#IJ~453GlNzNyy0>?lkCm{h4 zN~E5_rTy=8iXphBGorA7X9yB#BgTN}@nATTs{Z%!>_&W5q|t1*zdWrYE8$f zrkx)t&VO8BrF0{VcW;!l1K8`er|-P(2Zb2>j!|c>jKW;uf^YNBC@SZHnW_EZ!v`Im zrMbDJ`1mS|$=v+se;PU-%8QE!jjJrgDX4=68LT0cD0B3(55Md?`Nk;2aSIX;1a(rm zKP}N@_`Gd#xVu^CauE4?hSqRPS)c&nY(mE{I4AT3h|bl*j#dGuTn_}DXn`<@ zGNt@f|AS)y5{*Ri0u`>57_un>{Fw7FT3KpKpIX_^5PxP`e97P*qm2#OIh%JCsQo`}zDGTM6Z9?# znsN;bK^6a0yE%JZ-wH!JGw^*_Y_%*x5fggGgxU9>LXv&G-@-~8x8Mr#;0q*WyrM6u zQFjV!KB(BpY>+Sr%TfD7-Mvo7;<*CdQh-IaR<@SK)nS}OyxDJXbRn=8uMUC}AC8TC z%0smzP|asi7YuJf3&|~RlqSKJ{6?Z06psi+8bn7##_xtwF}@)%vY8;Ek06Hr$)~{e zxcYU>0UM^2&88Hoo?0d-GRXXB_T@8nml$$5waOOkM`P+b1l!G@pe=Kxo+!eZ8AmiG zEJZj?r|m9HZDki!<11GER&em7JAfxswx+O#8AFDut*~GLLdtN3`>HCS<<4?wQMNY( zWB@`!LO^cj9XGePKqiP>3w%}lP_8XGV*&hIIQxs)Z-wL*&mg$Fsk!u`*enR8n*o87lf1_GPYl^>3ZpXLS+g5&;HvTCHbyiPK+ zz1ICB>*Q9Owh;DR5cEqeik z9k7RdhyMJ_tg87X(1?BJ=+oBAk)((9_$`v>5PuLa@&xV!sT}&&f9zJwErvUa0pc)$5+NsPV zRq4vET9hSN?^@GD?U{KrKDZ{l`$?x2so7QeyBr^KqgTzISVid13`ttJ8~ngRM&f`o z_IyO76dAn$HG*!VNNWqLG0XR^d~Mk&c$V+iOJuT`<954~`Umg&!KXPAUUq*4EtlTP zpy&8h5W5o4zhZWILy~E=l0L$53Cg}>4pg-w%1H?Po+msY5dHh{nJ8sNY>6?)zF?_4 zdze^g^m`>Zr-sO$%Q}Jmi2Wl{LjzL(7r{_HA9BByI=I@Gv@~h>OvMVnlEA4)w0m0m z*Oc}1TPC1fGZ^u~;R8*3zD%SoTzdK%TGHw3DJTej0WdVUiRZUvJp65ujzYNeIr3UNO8~laT z2c$yED=Y26AxwLF;q@TAV<2qdT;i5;t~ENExc$4hhT`{6Jt#8;q|`7>cW{Wvs9dha zmzRp*9ZCSpm!VEA#fJjg|r=A{K?+&R+ur=D!M)i#` zP$$q(N`m0~d&_&L0zt47V_fj1Kv9c1QCwmn1Y+1=?(XI$r-JN1)z~n^%X=k~9i9jG z6M1`v9~`1w2dBiq>7}tb&Kg}-p`a`7 z2@{#VxIgLed%WGn3(Q-vG197NYr9;s=WgKSci{^xF;J|c3FsQ&g)Riz2uQ#&gT-J| z#?sQEJ?j=AOZ59UI1bP{0|qX%Oc)KRY{gYw0saL*Donz^TCnRq=yOIVos$sMzTs>VTwiYWo&nT_R5G6 z4hmu;^*%fV8J>vTD>pdDIV?g8J?HE7EQGpo4o=Xhy5Bnl;N>9*4Lwby=)oHu}LMeP3i;L;G zxf}BHVRUrT1VP5!i4sASe0I3vyW8BEO5-y_xN}95_|b0}7aq;x&EkLc;71mqDl!>g z>~WeGS`Y@`;g|VS8)+f4)2rg6Uo+vn+=;^fsyNA#bEkpG5ibe$ojYcc_-&|5PItPa~o?b5qa{l#F{AJ6K?ypp3M!9C$aLl zt!EUqlVS_NM@Vz1&k}|rvh5~kQ!#Uu|9S|b5@CiUBqRXoyuM~{Wu;h{ZwL`9Sm1iC z$qdP)wBh3O#swYwlF&TP0y7@k`#-M>=tt)= zV>gN=bwM&0(?l@gil#@s7{;lLqR)rOAUu(~%wyNPjveW?{az|7FH*vbH67ydY z6Z2k%=H$`1%@3IPw6bR3TWxOMTkD}>h{5>zBR}$Hb*$NNS}|^LroF?B3H$G>Db9Su zw4h(^NKm=+kgMxq%~o!Z#S9LSB078KO+cYUsjj(M=2E(;+h zJ1>uepFeH)7M%G3f(tN*K=@&!M=U|R=nWQ*{Q+>z;P~N@3T)7eTOZgS$d0#zlZN)- zxW8J=HC0g9>*&L6d`YcFhjnlw8$7+i8fbJsaFLh@id!gI9w7esViCpAniRtO+)*g3JQcyD3?--&ny8R*cNqR<5oTimqUBOj zA>+HM)iv9CE&o|ugKua-ytyFsbmY}@He7-b)wb%J5#tHID}i0xcG8Iq)`)rfW6ky2 zQ=Iv4`A^s-*AOYRqnPP4C{GiuKopb1l5c&i?Gh{u@mr ztDK^^=MFPs5^2;>5+Nd_I|~|cJjnYpdAa>2Jh9|ePNIx9uVMG-ptIAw?Rb8|fMvk#6abM!LJZ8wBYPK|vbn?vn0qq#NGz z{J!fw|Ib-#_C9ByJFe?1fg<6gDhUqtLx95`nhP z-n)WTyxwMiwf~3ID<+#@=JPkSw7qq6Yvv)SprBxwt=;GO;TjMYL%?O5u2G{E8GMc= z#>V+8_IVtp$RMD!d?4F1pe6Anbl!u#AJfN!2+bIIfnD_{ z$j$?TNt(Ku>KLL5h_YkbchZ!MrKwThg%q$!&u zoa6$`7qkpK&4IETpj8D#kX!F!Ki#ZbwLf0pdnKE96|MC)n|4ho2Jo`zJX{ElJJ3P* zQzJnLU^6(FeI~Cecl1xpOsOo&RGDecr$WK`q-*Fqjfg*7S_xv=eQS}Nw?KqscyNo#%rtxAMqo4G| z8t_Sr;Y0qQjYchLItB!$pzzx7_cv9$wXa!^)hyDeq?)e87J z07o8R{Q&wRfP`Bl?<}0a{`BYFpnggdU#Jgb@DHjBop6Vao?eXcA0*;70_dR9pa51&R~o3+SZyQ!s+JF6qanM3iV)PtU*+GX5MV?rLxvm{g@b8X}3?K&8e!Y%~2FAVDD&l&6|e48su(J*&$;`3k=@wma_CY2+jq023{BhVKQYx9~7 z0xopcMk93$J|I()1cdE?Uf$HSaQXlUtqaX{h0*SgfG`3u5ooBZ#{khC(24~RDeuVL ztqp4_j{b?ekJAWKRHo9vRSpuiEUUg>x1(dPHO2ESHU&s2nhW~74{R_iPH{G z)Wbf(+)GTKB>|{x$udopEyb|Bw|~kQW5|LxBM4it!3d)TBC#eO@&x$$0vawkRi&Dc zCo}?%K5bm~LWu(MTImqDE`%EXY;#PpBhW9j4~{TdWW{`bG4M}}FlMN=g$uDZ8eCrn zZ+-$g1f7CX3S^XT3F}KDj9d9zBd$+v^3ew>)fRHEEEB<)d(XKyb+B z4!kl{qzTgwhyB0@1w-T|svSzWO9+K#j_#Tdrxj0Zi35n74Zyqth++YSJ78J@TIz*6 zmBLXSSs5`s4IiPsfCa{KrP&oII0F`{??7z9%*>ssV32n^C+b_~tfj3&G0&7e(znye zRN#R%)$=K)_e<6DNf1NvT+W|~0B>It)Jlpz4+=Gc0jc|E7hE zp-S}V9optKxyIrxXs)UBOB!tw1g0lpfKNlp5sh}Yjk)5HbwZSEr$U6T2GNrYQr$Jv ze8B40f%FdhWm7$(L+3A?WD$u4s_SPmpggnA%(01 zuLCb9P8mMEdE38QJdXiW$$H>7*GU{?Wi77DKBm<8f#~{=`+x$K0SJQ_MNg+Tqfqbf zk<52?2%=s4M07ZOqmCC|sC^>ZlQ2hD8?81)CC? z0!rHqVQ)7zH8lx|VC?=p-@c}=<4XwD^NMNlt-H{4x|jSH560gtH=Vl@3@p{m2K9}n z1APUPZbwPZRc^L)jSe+>uo7@!Hld=TwwyE%_hPcSM53YpD~>&bEJ#HRL;;_Rnafg1 zV?oBJGp3L8<(qHyys!;3WrsZaJ0_=Y=9R6q21FcWT8c&lU8p176}yzAw%qPQ4%{WP zaj8e8?up@I1CB;XJqp#OIWBhwT9Gya)2HL?THc74|(XBt}GzMOYZ+z7R z*>M7H#Ly^ADd`Z`qOlRFD@L_nIHV|3Q#BH0iz+Ibi;A`jqFDuKq_==3+X*0wIXwlu z?q{c`Y1fG16;pfPqz;ufJd*TSZzm+M|7&Udx2XKip8*#*;Kc+S=jNLFevH|}B9HBF znrF?uW*0{AP2bv|I3m8OcE%k*d34$Xeart4)|;kL!o5Mz7&*|M%UGQ-@< zbR}(hqTJ7WuG!4$u&ng-*yH6_Ec!0nzTc169(;0Htmcl+QOEJ^5u9A=4C@Ed4it#h+<&45a-UzEd}iv z)7)%4PF5-bhf`q(1AnU`-Omi7E*Jf*_Z{hQA9ueYT7|CuRP{Ct8Xm42_l+ZU?3qai zo0ei@AO<_aZEgVQBdf(Doz=Y;5lqd%1pbB*UU6@zl@jcVg-6gKkPpln5FL3ZBbxw^ z8Ynbw;CZk@l;bmo0~-+82K+g|RXZkd^sT)?*}mnZzN)GUu-ct0HDF_7x8s#m$l@n0 zk5vKc*}-_9ZR-DAZF{5Hb5m1P&kcYpPmBWOEyxmCz^B-&s&8MiG#ty$#4sR}m!_-TF6p}o;kaMX(2WS9?0LK#3cR&NHF#R89 z4C~>$FVG-r1&sfI!3(%*7mfvub-$0`53M)=DT$%Wq!ggQskIn4_-Q0=V{-SQe7(bQU2a%G-AuL4wt^f8hoJglv!KN z%E0RTu<&k+c80!d0Z!3XIT!?^KBi*!&+1oLSP0;b z^nql$KuU&Lr}ej~*=1>)`|)4*+?QHW->p!s+~Z?kI}fvgnq%AdkDJ5expxaX#C0fe z1;~;|U}rw|CmEL?d8;hT25kiQ?$V%vy}iyO1MZQ`T3MBv2A?f5ouxy*xG%*!-mv_M z4{Ytse4?k@_=zU8+LC2~RDYvzC25`OrugOMqE(lRFkC;)8JwHTAKZR<&Lzv=;5^(x zDhZ$mgDL_cV%!jTC;}>61gKR3xpXZq(c!MLY2)a>OS>amKBB8c=C>A-9Z2Q zm*+jnUm1Qosi&s#AHP!nb}?F?!Bcz~v0(K*8~onpcA4(~`Y0+*?hP%uG(*;nSC9Ve zxnVu;C<^gaqLX3W`Q*G^gmsd6SJz+RIXT2H^Ywm>f>ezC{bxWW^e{S@RYJQNxtJB! zPj2`&Rytn5dU9YO+XiRcj8jSYdgjdUwnd#0KUNxWk^;I~8r<@#sO?JMq2h<(E2c6MU@&+e+ic zdsu|slG7Aop3!?G5F7-MtAI>FooFNx)Z@5Ofyw#?j>#}?nhXjwlB3bQUl&_dd&n^z z&30^~y2LfkLfSmv{)*lY#5BCrYZ^we@rZR5dUYd4SzjDjz?i& z4=in&Yi;K24gI&-EQtEnjn)SKDa*;7#}LmlTKH7NshU3s~=fn@0(KLPh zqClE;Xa<5t6Y+It!5AB7qVRW_X1)L}#zmoCyfJQvHN=swEG`qXoa~JMc?{d4YHR-b ze&O4<-<3cAg)6ZeD=bqwvj2`!N;rUyg+)jg7Dq~=2EZkN0{q5LQFud~dn-MD1u}q@ zK=5<8ToNAu7e7J2qvG@YBUASERFido@_p1jvdTN@w-g~bAY5%YNyJ-V_hQV_LvUd^ z2$;d?;BDF9JoTSrdfkSp`<=-#Uqp)dUNG9&+ucD-r;_Q@F0%VX_WZyx{k%cYfeynufx3A}Cfj`9@#2Typ%c{RjjDNn1lMzY( zv$xu!yF0@FP(}-6;eZ%e^l@RFwe??Dx#1|$;|lO@3{b}xO&iUc6o->oUrIR-+Q;{rcP_EqK6WMP{&Uez)wVd+A&)#Q|=c=g}0Tu%Vz(YXz z9Rp79hSk1iQsP@N#X7uwdoU*CHHVO9XTMheT-O;JI~;5u7cQ^P6BO{TH5rAHzM#Sc z1kwai_K?Ow5y2@SJ_3|OG(t5EwP76aw!%Lxd6o-L=*ax*J@YuHD4GF-Lj6Tv5&A)sZ%#(~@G1zQcJ=S3fmXP>UuC4(^iawl(Vmo;lu0}db z7DyTWthQD7RdC60;onqWy5aJ*?k8&>ZLl=MUk!~po={wv!wki_Sjbd{{I3#7=%%)8 zwB-O;MpNJ8dj*O(pHtUy$;T!A@!+7rd{t&9|G$6pgf}Ckn6${MkHq=A&q@KV)`CUe z+noIskCVDN`}XG>fH*Of)&m?~K-UhH%*l4=2Lpt_zOX?(xwFKu?B8Sam6h@QE;A|m#& zI;qz?G`Y@BUGnFaESPDy1r!y5AVfV6tR8Di`x(V+uOPe%Y9?Bt5A5MG6|i)nRomy6 z{qu8 z*Br%}^I4a{KSz#ldA0O^ifcDKiy&2jE;)f$rmwHUPOPDnE)(DC*{Y68va<6lnH#-t zi_(?fe<1T;ZrSGA6?;{QQPMEWKU$rPE^a2I#ro=_z{7U~*Z=X0o8rqG9A?soH<$X}z(UO2AX}0yvPK|5p3e0U8eA z7z9f23;vqGdkDB<)YWOq^NTvqzgLu0;ll>lV}SO^_@#?JfPYacovz`z=pghl+)Q4! z&LRLK0tODVFNx47r|1uRl5`QNL zgal~+NIG;Ih2jP|vKFM$Opgmq%Z4E`udfvLJh_e^NvLuRR{y1V`O@i{j=r!z50H_9Nbv-$(w%X zVwtF0wuid|89lm)^r6@fE$*jNM~b2sQfV^!fT$ty@mz#sq z!d!!yCBf0#nc3zaKSJM>)f6nd=HySRP~(2DF7L3M9MM5n*FX~7iL>ihlvev?Zy8on zo}wJ29?A$+2||^QXwhzrBB;>!=!)5~K%pvD&?YjbL8QnT-)pct1A#(rNItP}Np*Mo z{s$jF6!C<1Xs@Y|bkg#FHvsIIb z3vf>*;rrjytGDFMC1=O;o^!sUuhXKZOqu9J2r3+t6rz1OG0H9@#1KsIdT#oOWMLBV z)d*u|0)>{Jt^kTDe3N4SEMI=;sNwPm;!AO+5M$qw* zR|ctfUJ4H*9vSm>yeVGqH9MY4T;$hgRw(8f4h491_?Mot@3Fh+zmfPkL${I2TaGcG zeeyHmq)O%eT-?KQC!=<%J)yku+p8;Ez*eF?y$dl>=-l~dBY1$$w%#Vf?K&X@8{-)M zQ$S^CYR(>SjU=#Ody${8$iKi=QOBjg#pgTQ8gc%P36eyJ`m*RQ(>F&~aMA4w(iEYt@%@n%C*!pbioQ}(85SNm^=VwnVPl4h)5~w;N69jmA0tUWJ&t~XT$WT6BmK;8u0f*oB+U68*p;u`!Oph_ zPhnYx^EHfH0aZMNDu$yRMFC_?p>7m{m^S>gbP$^olrp@7j4adFr`l+gtB`*I3NR+( z^*{NrBCHS4HZ5{J6@4ZCEMuwC7X!_J<|+V!!a0U7&m-|V{`xcyfHZtPJQ{0jYbz_6 z38FumbFZ}ztVxg2XH~pMF%B*9y}&%l??Hz9#vXXr^1oY!@E{r$1{bMJWRiqCvH=iVnFV0k;-8rNr4gUOWk>VTT!rmpQ#$}+}qk{ z1IstsytPFd$At(L%4K@PR)ij}d5EBX$G-l4_tWJCKnk|9BAlW)=eH5PS@LEwB}}Nf z(038R&GJx-ys_b>m`C((%zF7j8;fZ zsFP@X$H~;RTuX9f`H z1t#y@<0vA4+4=a#K2q{E0-Bj!IET(ZsB~{XG`??`CWT1aSh~$ifI)>7p`AmXoj%s1 zgqqbvK7XSSahu>eWnd&&sXarCjNgYoFv))yqM9t@5n%ixi?~(bkOA5UA&VhWfD=HC z?xAhs-Is(%x`?BX09K!<+{owuYXJ_PDqEN=F7T8-x%jF5g^m5G%*4S{H=c4WN@0x3 z8Z2THx&GjDHl{Y89kst7`eC|>MuDd8#^1RJoF9x(7YZp?uK=Dlp!8W-Xli7%KD%T; z98;RoEMVRrH+Yu&z6M6`wktDg@wy23BmTU5>wV&CC~`Be;mH+mRL#K?8ZSI|t;d@_ z8ujPH&zlsEffV9agT&J{+mb8_{kgX1lh@T>g&#Hk-d}!VYun~rs_zjon+ipz)O_1e z0Tc(StE>O~5hjV1C)jN;ExBD{oPx+{f||7a++USOaR#nDo>>YRi}S@O~F*AFN<6mMP3wdXAiK|7j? zr2@s&x@L)rwN_gonP5xv(-PLtSx4ubC4y*>a){p8rG&(&xq0O;6&IHtIH3Ti0CFF` z-*3eoiGQh*s*y5Nk4Rt3^o0w)o@Z}o*;(FJO(-ETuc0{{k!;SuhKr*14u6$J3IY0 zpZl&*^k8oeg69@_fB)BFErXhe0~s86iRn)OqO@)MZno(M`fi=3hUViOA1CL9Za?s| zrM=%HgF6@SA@YBBhSL!`1_u5WDhYY*jr-4!@)iqFYF6zV!y{%;r%=$tfwfdwz9}PJ zx0?u-{9_Je2h#ZPCn8gY4(WGAN8Gq7VPSE=90g*0{2>YKQL{?;^`T3=U)KA&Hnb$E z4oH!6Ot1igt^i32%0w5q07Mix+sY*YX}yPEsd>E>5t3BRRq=6{=}@K5ztX5~=v2;z#Ybr9biUHw=51+N_D}tFrMRGAGyjp?v%3KZbAXGD-z)N|!66)< zFx}^H8C}Hn6bZyG#M$~#9dA+s!ikgwf`DFADWXI>!FoOSt-4Mp-joT6V(yhaMz|0T z)!=zjQv$IN2wPq}LQM51UfU%Z_!M|OXDgi%h^#R_y80Y$E{n7~pLXJ@K$*A_aF_>d zUZZUp(Mq)uzGAN3UuJ*tJU}6qM}-Z{<;mSzmeUk;w4CP!9u&wMc49^Nndv6V<{<*K zxy96Rb9@a6u+GPigO_7$4|!jdKGrHewEl4cwCkPUMeirG4#N%)y|})_#bK(3dQ?3| z8$NB%erjJ^^y=ATZ5POu-M;kn=k3m(Bu(IV3Rq7$bP=3}?bV_oj@3kpQj50uAzFE~WL>q)~Ic$VUIM zP=^m2ZHzMoU9hO~s4K5PY%i`W>SP)s3{5Sq`1pA5Tz6pf#_GlBmkO`&F3CKzRyXZ1XNzqQ&UkS#AAM*%s1KAmo~VYSyE)m19G|fxZ(W;B?0)e-Q#Fs!v~}7Pg9CJ)dJexkUe7+zlZB zTq37AefNcWfFAH4lH~q!Z*FF$)mJ;npYx3LIq;7}Xs}?=o@a^GP}aUuu50HGp@HjI z>6p*U4k12fAOk7z?cfYp4hnE}jJ!@N4^1RMWJk3SQ-}Ugaq1pX{3V7%ytb3$c@bKg zdq>_InG}0s<9~hVy5sCJj=Ny|{`Y9p;TG@CXbvfZaCy{nJ3&TAUeTTQ%*@eOnh59I z$90rH4Ba*dQTX{X$a$+S9E2_UEp+k4fbPg7(-z zQFt30etB}{cU^HY&;!cPHwH#o04uRzJDVrN&dtp&B9c44$1?nWwDKe)QP#u7ECf9t zz%vc-t<<58g&sAMT>|-?NS>AkH8f_wnGB3*M)DhY)`5EgS7W0#T^+!$T%DWa<>O0H zh@(@Z2H0v+YR60MP*#$y8fO??KeDl6sd1Le?uM+mC zvN&h=(wUn?8k90HO#*XK!oe5vY6&C>@*>$cQg8v>Jf7pi4O;(#IjpR`x;4bWNWq;^QE0CY zL|ZoP9@ju;^jevZ3YwapRw3xF`20=o;O^-jeQ(Up+B%EFR2l$eaFe*|HvqE2`g%79 zhyT$K-ObF*Y;6^0=b-q6&-=4^XjtXyH8!_ZUt0{04v$I6$zAoZ#UL;S%4iu>Nrbl>!|*%@F*)s(GSn{ zWd0Sc`IFvEr8Mv8fJ1zm`*{%@GNGZRkI$xsiJ2buTQWA6rm-LiK7x>30Xe#y9fArj zpb{J&-m{U0$1d^snL|T@&s3b}GIZX4cfi(mIZ}E^(DxUjcUMsg+*4F!}nbiSno#h?p+a0E0dL&dku@qVm_NjkWxbAavm3 z<>TW6EImM2c5%7dNjE&5U)X5MHP=a*3hT?njODu3dw-X*K+%&c$5^!|5Z7Y2q^Um# z_$7exH`GiiI~_>f>^`5*WoZg3tocaOz5t60I4M*$%+1X9(dYF1I+4;xY^^_6y=xDK zH~~Zp06`9TrViRiGdQ+RX7l_bFW>WwWnLYAnjxQaHIM(ghRha1kzq^j-BiM=r&^#+ zqaK@Bz$x(AThMUyyEr%{sZ*Ry8^H?$pXbOcL>aS7qlZhXEXNXOd12D+zB;b@6E3fb z$M5csw;s|##|G(-d4Ja$^gn?qnY_^MFG>x@j>sM*d&9UtR+r{-+_+YEpt0yzU=l*ndm4b&_D#lQtzU!t6)v!siwoxB|Ov71`+D{A$UQ zD@hJB78Ccf(52|PJw>Z4W9K=`{s!X;g%kv#s~S}0`o7QPi9VZ$12vXMGV6v64`cgS z6%hdcY7jM0b*}w9_LCo%U0>u>RJ<>{quYzfBUxS0X^^W*gVhw z;lM(FF7+~qfLVKDd6}7IKCpVKMFLCL{|<4f(AFfGaXXwU<~;V~$i+CuO>nnM?D6M9 zqu5pm#&*yCH~Q@I)HfdA$SpI!6Cpy_31=wa;S_WC`n5j~WP5wj>xm=c>4H7!VoqG% z%oH-w)&CN$8b?`}SnWwnCM)!vkXQ7Q28%bXBZ67k`b%@196nI@-tP15)o3x8=xkT} zf8G7+>Pq_|oos#dlS+y*Jx#Vlz3pnN%K=BI7F9s77<@*N*1u~M5Xj+ua;&MR&U)YG+}ZM} zCi*-l8p?qAU!%B!D^zrKUtU=j$hsJiW}0vE>!kMA87c0%$Rqnr^ks`!5j&oPKG1_Hi(* zmfxc8CgY!-%3Bk1tPR%^e9yxz&3II28i&qe6+6NZJ(7oSU3=M5JL@oYa&XS+Ntnvc zg&Ih-i;+PM340sA7q*mhfkZ+v0n2F0u?D*!BK+(9U_W3sEpnZ8*4rs^C6k-~`gy*A z;G+}L0cHCRQJ4yVkI+wdb62|L>>CttHCIhd!k4QCrREZT(hXOE=s_(F$0$vR^+34~z2(QBK>N1G* zLh1Go=>BZi{yIk`FzI)E!jxzDbKHDs+8c&LSx+1FfqT49u$h^u(;XwbP$x~nvzs`V z!!8Raw^#TB1nGj>rytK#@|#Z}!53vdJkUBn4BZ4YVd^pZA>M!ej;rYA!T0)6%jv+Z zYqcS`T$fwU919M0mS&+ANv-?|3L^)JZTt&Fz-NbJm!wJ*qo8PFpmX(7_$~^I7}IYt zV+A&ZJft^)St!g{T}$gMl7u03_WFb<@_Gy><`*}iWkDqR4YG4-)C^wcWcqm+wk zyidH{5)i)8IsYnsidub~V0&+?Ux;*IbEE*d*Uugq;@7Q&?To{h26=+tB;x(638-(AXeIZ+MhK&G?LjVU-+6@ltWyn-u&|O zLHrl=)r)YqR!smMUDAaJ7DoU7UulhJI?@GAj(t1Ecsn5!zFA^pHi25z=AjK=Qnkb9YB|!Rq^tUag*6!;LpHlu59(3fbH7Rh&7mBrZrveD#FN$q40@B$zR{Tm5QXg?`$|AS?k>lZueVt z7Tt!Mx|3a^4Muwfx4p=2Z2@I42$r;>z!#jk+6r-yxVl!wk)>VvA})sJx`@v zHj(v8#~2}%!yyK2a|`aG!ND7Y=*j~1)b=af<`5d9QPZeiNzq(8cxyv-=6nyZ6;QNP zJ>EF2**>~WiiWab1u$!iWo54&Ptq6Ts<3020z~T&qyBTFFaO9sP9zTPW%jc#;z|Bt zVBYwtfZJ}{Oa_DXGTvO^3!gqrVZT5+Jknu#Dy2_4n%WA%HmUMYnvcjrBA?%$L> zoPWZ}z4gTQXALWMU!{^n7S%*J>T3}N6csrRi92LCx^9+ss1L_`iRq?_%-v{U(5$s> zWp}wYNK#5&LNaify`S-dR2*Lt)7FB>Ih2eV7LaNJ4z_U$nFOB-98HshdRxwJ`ppbv zO<)&hbW&cSX3}bgD;CUGZp?pfhnUn5D2uFyTo5R*BmpF%1a;Y)^6f^>KnA4?OY=@r z+=+z+%8f>4`YZd7>rZ%+6;b5dclNcCCk}xWAwH_du&0m6qHQI{A=Qod)26LV>WUFj zWpTeDQ&dFd%Ufdfn`B^QiNc$#bcN~=so{T5(m(d#T54AqKb0XzN30u}^X0E^hmc4s zYVPBA2oIK_1pyKy^%UZNWpNN`#V|Ytjo!QcP;%|Zy&t&zIf&Db?t#G{{D z9wwKSgfZ)RIH0893jiIt>Fdt?d|}aS7qW>XY!G!2d!NTqnwBpg07e&YU!gi%05sns zGrQ?g50i?Nx+k8wXI=M)yg~x4)UUV7{KW!OrbN_6tSKX!sIcdiG}LdYaNk`v`xhfU zgHpkIVPubL)+d(-j?)ZQDv@CjWWm90QkyX`_6}g5K1XG4#k9bKE~phSjpv~DaV?&d zVAJ{ueAD6Y*~S8TOENfgp>k^Gi(1&vHzp@1J_4JFobIRM;%R2ZHD7`%9`B&k49DW8_UCQ!6qAdq{ zr{#BhEO*MwV@@nVI52BOE1XIxhsG&Ng4QRG3g5zF%WwUbje0y(^ecO`-j&N>8-8k{ za+;_>yFO3?4z=cxMsSF;7$P6SDg0%K4Qgy)s);p3P^YT@rv>_tjPK$WpRdXmYITd~ zhO5H6OpsnpuuUTO+k{$!3C_Ow2Olh|A7l@fDZVfl10$5`v&g{uZ(y=-7pZs$BY|$FlZnRx!*+n-wb4RNoFhmf%XB#P6Bbsbiuov>j%WB7#uf zF=^+#LFN28$g$Z|%SZK1D&Z@%lYhOrs^lOEL5DM*DQeSDmQq*v1R3wK>^9%;ZGS#) zy>U19c*UW3$3hzfX7Xzum>sco-q`d-Bn$>%FM)XgiL%=#9Uoq*BeC)C+@uv;W)yxf zB{z7sCyIN?gpu8ytod;|dydE&RZ!2 zD(v}G`~I!nH%STge*0Vtqrj9B?G-Z|bZ5yp-7F`X7|z_mlb$$F8MfnsO?xDvkB011IS5#*9c&SLs%6|IQ8y zoW)}hB&pCFh;{A)9Y4zDj&(aMQ{otEp#9-%_cWfWPo~$~Xq6eiZ1#5R|E>-^E67qZ z83BnDxh#ALyG~5K!I<-_NaaPm3ZxSQXdjxx8={&nCufw$8R5ox{di@y=9uB2}V7O~`a zFHBv5iWP+5jM$&>)=V4eG$8eJCzbAG6tbO?tJLCEg1HWZicVfcAO6zC?Aq-p*I8qt z<>ZUjasH1ulD-T86}Jn|6JX6Zy*Cf2``AmsARNpQ$2f2S$rP-}lFreIG(hF6cF)Vy z-s_TSRs3A{8xEGPH@&jqZK`i-7OWIE9TZ;AmX#^V*q(A|R1rGA)zV}U zJdMl~Jt#(;3@D@5lfEX}tpWieP!*L%*n!t%jONrag#-~k@An1D_dh2~NG@yxg>fSA z#_~%TeQrK7dAL(qVTH!*o8Ag!$lkIB^XuTyQ+Xj8M@{LoT2M`&l~XFXLg{I{gB1l1IJ6px z=kLr`$#6z%g9ZByVvwQz_yGZj^vba190+{IyBv%?1;h{Rw;*<>kBQ`_*5KYF=&l3g z8)AZq5mT=?_#O2X;`)#y%QwVsxapzCI_OJkm*1x%I^ze2fw%nsodOD7;6z{?XvmtA z_RC-p-R|D6NJlL{Nf!zO4ESwbABSkQTQUiBQ$eN(G*E`69*9pTU*_l69qRQ4;G2#@Et2nbTK*B`TVElwGp{!9oA9Y;7! z_zfU%L^rJnhOF;Om675g$?xKDS-k9q$7g7=;wag!ogXF@rg_@Nvwl1z@sU`tKzi&P z{B1zWiP7wFPWhD9eW66q-XXIavAyr)A7ZevRPxNXr63{T-Z^-#AUaL04K}JWst2bg zJkbxwa!`WQC>SC5RQQr?T`}lpfoZOVRbWsf#cy^3a10SD0iIy@D9s)jjeARz$~dXH zW|9q{sQa0eL;o!l$2l~0HwS$TF<^pfo{N94tIp$@BXIiFd1Lr!j#Z>-r|bLJ{mvhE zU__FS2pjsy?HAK``g9_{HD%2>)$%0G%^Qn%Ab!Kf_wS;yab@EbD-uLi2dhQr=SG(< zTNk(p7x^cjv0MC;cea~wsCB^zK_e7+7+|SczVRz>#V}{W3 zyWfhIhkBL(f34>JP&@p{j1T0XG;c*IM8OD?G3V9(t6@&Zx;VOY6YKu?xslz+!p|f+m+9R=qHl3-$JgE(;<6Z^}5W;Mdja&5q2NLhp@)ykg6?}}Y|QAfXN2{v0g>jZvy%8pFg*PC;4-<`0i0#iki zN2nl63?Bg)0zbEzK_xa&E9sYmgBdy;K_ca*yD#-kdNi3e=kegyz<;h=6pbYR-RsY> zce0s7erVpoXyF)%cqIofFSpa%8XSEnV&lHrFDzz@&?3W125Q=F>BD(Z5D2?pPEuT* z9X>GN>io&bYEWgk?=jN`^>g$Sy+sLyfNGF-yirJE!BjZ8_q>~JzpKzVOQl}|kr!Qd zuApgL@>Yh}H?S$vU*^Ad;r=JhrqwNX(|@u@fbYgt+2eBZ>z#j|FMZRIRIcAPUOx*w zXnaFalh4z*wCNuO?>2{)gO=Gt>o0w*+E4;%d7_yzOKnnL%jx()C$0Ix zd_~O|x5fhlY^I2^2xOH;5`12U+9Lw?G4sbhKd%+Tb~Cx*f3tImb}Lyrb!a6c4|G3% zbUvQ>*H#L@x^E|F4Uy}fPnY|RkNa736no^plW<;G-hF4h_L{h*mU%9Vk3$O7CwY6| zX?qkMDMPaHGgbEd{huYLV?JjDqyn&Zn08v~_#Uw-_R~wCAlZ}jfnKjdlq7YrfJxl` zeaok~0&usz`;7DbDUTd0-=0wVuxX4_Q;xzTB0^_=Vkh~_-Q%sO2RSB;uY|<067i>s zBs-jf%Fh%c#}U$XEDuj2{c2&Ky|uH~E&Z&5ua1jNP6_!LagmCPs}i3hCT4I^VJT`# z!j+=aQSs2njl1@Tn45RWXd5?b>U1modHvn}ZPky5-zrO=r~)&E~lew;oM6yE;ODPhwA8BBN43 zh{Gy7jJGpvBhU9={I9kQ{ZS}wl?K#-u(=~C`~kx3NCTsz^@mWgundKZxX8x6+T*HB z$UI}sk2JA>j`+pBXi?@DP{;aN(0~ zluIZWs1|CU0*b1dbE)Il)ya#Equ8YYb#CCtxB^O^fWPcfn%@r;2q@LTjUUoEAz)eS zPa!Ho22X#F+W*!TzXox!o-LY`Jhr;9)vApQo(FzRvq7z(VKNv(vUG|&pX|pQ%SV4fzcpn4eqzdAL>19AbT0v{qaV4uH|y|wZU&%mwbS=)or`^ zG~a{}QZo47)+qaZq%DD#W>R6CK&7af6!hO4g66r$4S^@Zs0>R%;SMn{2wLI9dhuD) z%LMl=E5?0L;Cfdf;gq(BsvH8X0aJ#lxsfl#B`OkWwrN6&sNz3Ky7b zG)bb{B+F#48dfimOFIH3gx}R-X}_E`ymK4RvtS;M2J$Jn(zk3uR-K_FU5c7LhvhtD z<#Ap3+sVUiKCAqBX^bIs`*Y~Y?V)j&#@Wq#p3Nn%j@RU(&Z9`boJbf|f_iDRr4Qpc zoc<)dfv&Laoj%@hO=@dTbGO^;lPpPCg<=i2DERP=ouOZ#LrWH^LiU+H89Yp>y<_I9 zvvmo#`FtlPLsz$2X~$B*mw4*Km`(CqJ8si#hPX6~aIM+=dx0@eNN}%Y{O0E8V)s9G zJ&tpIPh)kyWJ|%jgAVk0;~&D{V>sY{KZTf2qRG>9MuGb}h(TgMLt6b$@8|UI@ylWC z=57;ytax-;V9aihr^vsA2G@hyw5X|!8&0@i)a5_T%&<^m^*b2Q<T#nV1*Ka?FsvZXArQlfnF;_5 zZgGTwkq&2QYkp*GSgMeW=A~Cg2nmP7^NyTjgoqv?p$crL1%N;V&HHeuw0FgKzk0iG zg$kq1shDTsQcJ+YcmH(V_|xNmyy)ulqLnC8riIE$)sdPSBprVNHpnf3^%fRnxu`H<%$L1&q^4+KNM`sF1TU2^-- z_(;uSE#1d@H>d8q@afv71)jTRP5%HJlmr ztPCF<9+0!Ep}=OsKJde-?WjKLAOt`0_>+3J3_t(k^XGl`%w)fr8)DHKT6e4-jEdg% z`Ag2Z%A1hGvCun9B=xi0zW$REY4Cv{|A8N-PwF@*-1q+d6$;vW3iWCdPB00!_6Jw_ z@A0QuF~%rWZu$BZA3JO1yt!qU+c7}0wn0qGg zc-pL5q&YdRMM!R#1xv~BR>#V4jKQ^dqCv4UTnS>qfa>66#7J*?W=nnahztxDozn2x zMGY%Lp^)IP=9TBZa{HyBQmO_JA}H14Aq>?=>3R&m@Y9jDrv_c-6kf=r+rgxl}S`nwp>%ww8OE`J4>Y3jgjGl(Qt%^T96itxF`?f+%O#YC$PDzAaXj^3JQ@*;NJE=4~(xH;=H1e~inZNkL z(>XUu1rHzN4sNx_wm`^?DJqLJK+)-rrc*a7lHG2gm~=dquV~dXeI5WHg2H8ZaGN7s zFybVcw3{2kp+(e)W6$DL$0Kd_j=z}8J{t>`l2n(+9MS)3uI-6*E(wWB6$8~m$g_nW z#erfHZ&XwryO!AgcW?C&va} z@$UMs)kT5I!z%P|BXS>04qgE8hgXY@h8>QAtG z{V%}UmtVT{#!m!FJ$IaF0h%6QS^(J@ffWdsQ8k28y{vqmI=0JIgUGYM$ugsexOw5( zY{%b!8;PF|fUn%tfE2#_IV;uUwLO`6_Reb>TUK7R@e)vln+MMl`7t)M)ya>sU>UAn zMX9UyuCx2rS*|HCg=md3((X8>_ubFmd*u8jg*If8Ns&^hQH81{ZxHg{A*t77!JeWh zzRTx}<2Z-mgm;$6B4t@fGBpUE*5!b`o%^Xz!ah)h{UFrS9u`e7D2RfwX!7O7M=##? zbhqQUTVLI>e#82o{qmid6D=>033j> zbT%8%4A&B=Zm&@*Yi#+<3(tNp0D)v62LRMS2!WMin7{(1=37U8@xrxVa58MX(^W%Q z3*(`!HXu+mdcl`J{NlYkxZsm!Pxw;k`c7Sn!uBWmTlfp2s;aDb@H>c9RYjI*Y5HNx z&v%N*eJNuh$$t3yPMwgwEWng$yKh#|#K<6@INRTF@(p5wliok8La4*9FTbk?pJRP(DG(Sr}X7G4`yrl!1z>{^!`t3g*|>^#m&+&F0D)! zP9Yi587P6l9;RKTk$=L;E;Fils+9WtX}gfgtJg34qIcZS+>hAK4Op-5;A3eBQyCTB1k6*W!F5>yB?|I_qH{<2v#=UY7 z10bXWJm?l);2rHMotgUGP`z1)+ux6Nu=gSJN}?DVB~hhDXj>(t}tfLj$vdI0z@sh$ysg;$o*19P2AP9_sOv-+L zul26A)oN|M-|Xz}Kn|b*d;kpqAWC2qhzght0H9o64uj}IycU<^xDwav^=7l#Xf&$T zDmjzfF>0Nc81mDI6G3arsbAk^&Oo;;N!-T|x+2-0dKQ|HPm%@SCkj z`v&pMqbMSQ-Koc1_@||S06?fh`6VY}3Y!|7l~EQWt)(h8idEV6@x!&G>3nxdA2gTsvY1)}`9x5@(h-v9sr07*qo IM6N<$f^r&m8UO$Q literal 0 HcmV?d00001 diff --git a/examples/qxembed_example.png b/examples/qxembed_example.png new file mode 100644 index 0000000000000000000000000000000000000000..55eb729532303821ae09da33696cd65764427bfb GIT binary patch literal 22146 zcmbTeWmsH6(=7@F0>PcZ-E9c&!GlX6!QEkS*WeBTg1fuB3@!=ot^tC(>zv8^o$sD2 z&wZ}^;K%Ge-MgxGclBDUYKTx#l0iczLWY5XL6iL~sRjcB3xfU?AialP+24`;3j;#| zBP%JU?vZ%{_O~V0=(>lj)I_`J7Fp_sB*lzqkl?A8=mqP2%7FRSVy>l^iGuyRUTr5? zMiH6$v*rMunXA=^b<1JCUV>ByjTAuw6-bszH9;g_dA(vaDhmJeSCkm6MvlPpSTZJC zR#joI@M@X989zwsQXQ#a9VukOQ#SeZ(Q#rwlm9w<(q|%#bJOI*a~25li7Ngx4PM0g zPT4su;1hxEz8(FY;K^Q-+`sG07ruYqJ%s(c={xCXu_~H=Zat)K&)TAg9U)2e`}-uX z1Q2&h7<9}-{5C1E*DU*Q5Fv2WR3HD;g|FEvxCuySG;%EHFs?Ro^_eCiMoC>_wvYdu zF8Bj#zSFEMCEE&>R9C+?z`G&iu_h2n5pzx*h-5wwOkeokT$(R6E}2gx9YmNViF;|Ku)h#r*-NO0*HXs~=gO*hU*3 zHJ8;ICYW3Agj;bo#m10>IXdTJ-?mheDtR%R1KdjVD)tc(}Ww#a=CcRXDXnmR}TJSGK^4AIOeX6oKgXm ztkI~kdFpmmt8o&{;7XTiF7}LKH}nomC@d6^b6}8mNc31O^^gH$IH*ezKmJocN^5K7 ze8990GvX5iZZTvEDPQT}R{K5jx4YYo^{AirSv^ffD)uarBryXJ#2SRH>XR9)3`Gz2 z=ywAltNw#w_b+@Ch-(!~4GFECL=BgX-S6yRx)2J0efeE_rmF1W#a5a}teARf*@btO zR(4Wzj5i{N1-ET}ja8%yLe78&aPc|HZ+j>r)qDcYIK9SlL8EV@&B6;0J^$WppFWD{ zOEz;NONeo7SDTYCxQlJ%SL$Ui#}jyvYxiwXSLj`cqNq`l5{Bz3j^{13z=& z&n7#bYSROdjX6+a4UlG@NLpE>b^X_3rf1~t?f*{wWuIzN%-i$iwFttZ^J`oC)p3r~ z2+5Dza^E^55_=sBQnRP4TZfkr`vklk3OV7jG$+uKrP1Op)h`Bg#(|{w!Lzn zFA9c)`f&s_Z-ohj>~yCWdiN13FA^gxK5~#?xa6%Z%C@BTd3?d~wFrcNN5*oCX7g9@ zA#7Lh`!Dx)8Jp^N1-~UPbN~Vzikkj?Xy4l=i*L_ss8GRNAyewnuE>$FYjG=eXN}k# zfV4-UUk??tNb1qzh7~w2Ld${E2`ffPUFb_|@SnCS_y_VwdPP03=w@f!o|=RFHLsq! zg4%41q&HGSr-Y>QfDa|6aSl!OG2mntmohW?CJl~ojnQoOTb$V84kSOsjm^6PB-%qZ!z!P3c8^1d6~Pd3k5^R0JN9Sj2j1lI zDR6g)3J`O%xyU5*lD^%teK36IkVoA5M|klxcr)_0nrcX;1Jv^No8$ScQ>#i()Gy@Fq=i z=zPGS?V#}jf`;waulD}$feUFsMr30~B}O|PdRLIpq)lDL+e z>Bqkv12++{FSpX~jUmc+J2ku#{+5U< zu$D~#{wGBkReE6h?QNH{1iYke)SgrELhm-UzAgrQEo3To2T_sF&rr;&d551%QW7cC zJ=Ia9bhy)mk4M6RGB<@iu6{gAa6|MOMKEja3UWa<~0k|<2Sn3YjUdqMn)&6CZrDU~k^F4t7;)n!% zWTdU1I&hmI@!+4+_3k5%bRMl+|sd1dQ8&S_jsE`kNW zx1U0b1xIx9)+v6yZJ8;HP3+j12a@hJeau~W%v)_Lv8A0`RoZ(M;QlP64P&y+Q5VCF zHbky*)8lSd0I@V57|vo33yAV&q%^r#FORhkhs}>`@BEVK7l0ug_32RpD|P zXIS(D=Yt;L9tC|Ol)980EpIL(QE0x`8I~$bH1GUjHTtD9q-znrx7+KJZ0w{qE8M;x zB8&+bC%k=^eh`|(@Eh=st12c{4n5app08P5AYDOa1Ys&u4rhz^gwIKclnSk5$i?J* zX|MP%HROfEnA`osVAM0WKQCW!j*RmGRq-`qG@EcGZ^{m~WA3iAsx`x{!+%rQDYoUw z6z<$IpE0%tJ=HM?7^Mfy5u^YSK6`^6^2~ob1P-~_hktQSznLO#aO%Uo4^XRNzxKls z(^Kc54R_kAfRRbZ=^STxB6WcsO&-xU(?f~hK4Wrhl$n8Wxw{g zk6q>*Fc&3$bJ(tujvK;olT4&4349b8B8##b7CKYd?8_Z)d^R`;Lu!S5<6Q{Fe*`?g z?7z;2-u+~bspAm7JYU8l75fdP;ssBk|mfhw|{I|;Lm zA#@4)D{_tfhVOGN7OGDYP}2!buM8jlkfTfw92}8+no9!~ttole1UzNHX2!K15Q)O` z9*9F>h%DEpBg^0S0@)zg+!}Z6B6OA(zEqEC`Nf>fMo2Tx`L(ajUt$Ts=d0k^x430D zU5pQ7@B0*lU2&yURd7QJY7i~GO%t||6ch!+cNBF5u-K#>ev25DRGVE%C^zKFkG{~;KrPQRJNVBWK{ewG0wYUI@%e%XU#`rQvs#&j!UTdwG7u z6R9=L0HtzbiX8~Rh&ve5OJU6tlYvgYQz-}qcFz7LURNBcwKtWEOcxD7r5kNn@SaO? zurPI&ETxu6QbVKBzF&S;>EM}x4n+=(kRR`n#ip!Rm$_kWCj07tmr15ww{g@{sHuWW zTV`v-o!VFV$Oc#<)Zbo0ke4wtIK1z`UXav0sDlb7=L3Z&(gCu49QfAMsTbhc%Ma zniGTz!9)sv1LHp9h898UPH|?i$}Xpa>1WhZbdFfV1*p@@r~E(m9Drw|-&P`?OJ*tH zrC}qD-%E*w!{-5Yrg3RSuG6(tp@&7j9W*Q+zUeo6a5w0`1aR_|CP$5H^XC{#qmHgh zD~mdB1e&Pu@qFQUedEkjm46RwTFkU?c~LPNxorZ#VIEt{2BLki4;$*V~gI@I~<^@>1WzIVDl1YRi; zY>$+q57=t@6j_oLh~GpDf1ZM0eQQ9aB|gWPYSPl2Uk^{5+}Z6l>QqvEBE-&+KN0+x zytgSeOaYu{9Memi^jxF~sBCnZ`B6u$M)jK@D*wBhr+8N6=R@2?+}Qd?*q|ONWQP`Y ztHZ({ml2<#v@l+sOs$a?JEAZW2-CP`)@xk7*5(fVY+A6xU$gzJ;I#rJk7^p9r<0+K zkV!nU`QH$%|2gDGJ}Z<$Y6RngpfiLE!#}v)@2v0fNU7~acZ$GKgmm=mvaZbNR46Q5 z*%=2`S!sW$O0bn&A+s_$y7`HF3YVB-ISk)%f4CvON(~#TPdL(H7p6}Lw{U0ISPC_^ zkm$F3qe);@xpm&@@G+RH}tcZu+MsK zFDY>00w@dbiHW`!Z@+rr>jWVrCOn>=$Hc_wg1xxyXRQNKZ*_j%EK*^|Y<28P0O0eL zU@)JUg6FLV+vl}~R^=3SKryo>np1SqG zVks94R-(M3F1&LD_B-+eCyiwEj&uUsZmL(oG@s{wbRXh`K`&=8}0~zzTADz&tr9X8K##$1ko6`ZV zw*5+Jj~jVuJmUC{0^_S1N+ExZOCJ)$KPEA?MEcxu7sh~+ z(cimivM_-tV%n?PR-IMx3(a2xQF-n$i9&4qt0$jE17(uW}Uz{XCJ2n@m?Jv#p28ODXyVaB62vJh z>=@EE)^m=N%#VLS>=E1<%m;j64Qxj`GKS|y*3J_D6m*pE4Byp1i@ZM2EUa2T?;3v*Ic0AmDI?g$JA~{>ybpVS z=vhpE=wHr?-w+bjK;S66+qZtGR34-N63`KJ=5J2u`!bc<3`8cm=TEy*re>l0d1_wD z82~#5H^)pl@D%|St`4)u@|Taz`jZ3myKXYWd*6`|9;{*Ks2IxO`q;Q_J66ZDT+%tgkg;-^7!3?n%YSdQ2po z5RN}zYuEJA&zfYF6(8zkv^fgaJ1@yqL-7c>TWKJJrUpi&u|$-$m2!SS!Mhtsea>%p zI*!GRhL4QNN?pbYXKrWx-M-;!C54mhGO!a?&!}Y13au!tOSu@6H$MEqCUGCQiTeD_ z@L6$-K{}$^T$L@!4B-M|h9cjc64e@Ywz@V%LS;gC;F^x_^bSEviT)y|6dAq?^;Y0h z_HV@3<4|i^%X}7ixox-}sZrr{g3wq2xyOiff#spo42BIorgesmI$|6qbAgTLT!%5N z?H@_Mua9@|yF6f?Vzl5OhfpA+p`j^crhb~`8rlF9i@prs({;(o; zRi#zm?|**8-FRd)C-|#cAQnvrWTaDYrBmQd0~(u}n@f}5eJeyaVJ)ZRIX*SnosTbc z%~t|)at7fm@|kN*)q=`McRlm8#)~zsL6(Lm!P)0a5p|tc6G;(?IF~O(L_~i^PX$k* zibo;&u}XN*B&+v2LdzF)ItFBf<8a*fSofae(}YXyw^wJe9R`c{v)Zk~ydYl0=$=V}iTo72PxXi(;70NxU!`gy@?bY`VxJv%<$wwl&omxP;rzI<-`JbXcp zZp2|B>SFUU$9E=t)>t4qC&kS+@HY99TE!!-=~A+GujtB9pOIabivSXSA^(yn>*PkWdeTG)hO%|5{%tR%C_kFXoY^wt0U=;)yt*DmbGGhSfgg{ zWS0otOlbW11*vGCC0<>`^LOdExd}9mtm749q*Pi20X6}hcNy7f`dtlByu~e}pHJ$| zJaRMUA{G%4 z`b2O)`t;rnzzZ%C=nZew5$U7u+&>@sbqbce%IK5B{*rGkvLpykHLO6fZc~iMC4|B^ zAM(dS%SD)g8aTdlXK}8U*Yu2xw6ruz0P@VM2XA`uUZejiHAo>Vn+a^W@2o=+KZm?i zGBgSbG|kc+OAah7kaEU3z5USw#iD|XtAW~P2YY!=85E2h^{3xNzgQHHfW#-DIF_S# z;?FC+nAco zObU?su+y(7Ltcz4N#VB7*bKgcKS<-v=sE#(t-099!D2Y!UIFG8JB#X-w{AXNFv*C> zIPQs`X$~VKsrPs&ZFc*)&8R9v(lRjqJhLE0!6}v+qUC|mu_{r3er6=2ZoMbNuvFT& zTnrJC2?+eLUu8}8vYR`F$FiUh%~gy#KX9-z*A5-?V=!>D9Eg){w8pDs$q|eRH<`rv zvlMO9!cY4wp?{PnA<~SLDwEj^B~G#tDK7*Q#(Xfkt~zq3S&OU|3cR+sV~XE1I~(IG z_e71GOU$ds`n!;vbF&jc#VA5%e1Ws$Pu%@C2EI$D^%C`e!qt9oGGNCTasfWDhwfx$ z^ig2C!hIrhm&HD|cjDJK3e2Mja5h;&GOFP{9>rHLR;?A<8fu?!w@YNgqlC|;I)Wco zBJKA}$%;?IdZFxQTM+NfYuu`DUjo@lf6-95UrrTp4ww>0s%U$0o%PV6{?^@^etQ>h z8N3jtbLrJ7)yO28$wqIn$=@NOI+pi3{HORRA2}*F6%VFS3JubP*_ZoW6Z?n(p5Wb5 zv-YP=g~%3o21f<&vqY_*oYbxNZH^><#Ix)}z*pnw;{Jlxdv_xd-o6u=S*g)(C>GBz z%0iP4!b+q{1@D$PyVFyj$3X+zO9Pdq*rdq;7B}�%r#l4t9|}5m@TzAec@sY4^5PUKx~IK)}>6r*Vv;yvN%(4NV~!#%UI zFtWDqeCdkCD()>K7^4`|=-x;_ctt z-3haI27a+FQ`;jm!PO;;FAK z`+A(a^W*GjqwvhoHg#Bo_Tt-TL5XhmO9@p~Fpf4wtz83$>qK0c(pEQi-}7&hE_uq% zl$-OzxK}{PR-eN6o=!43UHR61^N}O4I=4$tiBQ% z%N69Y$pf*p@!~x+o(w|{q#SQcYZVn`@(Qh*K8EO2R^(YuztH=bsb_ZZ5-xFG2yi7| z`g077^Z>OUL!6t5XD#XISI!YdWX`U&&b~Hg=SGpWk-YvehjYi_lzY;nopI6bh#ho9 z=!!f3${Zwvn0N;zM)5>E0U#XdU^`TUm#`lwGm|DuP$T8u7Dz>tq3u`d-LBJr44-dLFQWsi(8QVq9 zJa0K?Zwi^_#rDgPyrD=pZ&w&W|7C?`R71$Je1lbs4b;;&gWF;ImY_VtuEEhqIFnU# zT8HttV(CxsP^J5#Fx54txZtDY*XaJc7XVB9&c)FC4)e}C<3p&pi_lEyy|BNM=j&=e zWGKF0CP4^uDujin%9O6!&oQaOK-cW1N%hHZImIml9CvC4C2qRe9hn>xRjk(XbuURI z{;zx;=j&OWrwM>4fq>@JwOV3(8&er*+4AKCCJ`s`axXG}i+_g_Dh=@O$gbEoxr$eg zQ4?IbvOw8((M0tAEB{|OrdjgGv^&I0KYYWL{b9kK;e8a~tJZfd|8OgRm>l+Sh#W%@7s@8wR)#8+M1hH? z7wzvhMA7r$l`R~}P>CXCsdw*-6j74FJ(3vg&3@-5-iJ$zy@Sh9s3fFYpY{U^eR2GC z#_-uD^apN#ptzR^R@9r;GZIAig%4H&9ao~>!&f7~Ldz8!SY{kLNNlA5SXZn*6f6ZD zMa#`Vh}zx8-4|t%LFgV#B=YC+VE5R$Jj-c(r75U=tU35XxH~Jx<7b`udo~djV#Rmt z`|q`k=IH;O>Xm2}Oc}Jid0>#JL9N@lBV{(8tEggzZ)?P1EzgtUrjopPd}pbO#44>q zKpm{E0jW8Hyt59T%70VkR+&zHwDseU(OCJ@E&O6n@^mi&E&b3|Ig9=^|M!YtZm2rk z&lgNyK0FhK#A872DBpDx=bo!0-3C@_A$Bg%>)NEQtMqG))X{iT`NGZuqw{ zlAv^ye*QH7edx_Fl)YfNZFUHH>cl_(`Nq&2t7^H;rl_E!al5J=@J6a(WJE@G65^fm zH|Nci#_!k$H@7S;W&tHlTyUoD>h%1c7xR8eRa2I;8*i=(Z6qLTY z;(z3|6|MdFx=09bSoRI`y%-I$WN+s@ysEFdqDR?TuvqPLmwD$oVttp&jqtk6{+p7v z-f#UVwVFyV`dKK8fU@t;I^AtlM+1@k0#Jtc&sg7G>A;r613h}L^$0*ne5@~NaCOL^ zQK*Ke;9b%t;Eo5)06)EGD_ql)MdFNerMP|P!rv>RDdryXY5}4x4~7X~#p@16r;nu= z=u{LKB10~WX(}*(e~A+voF<4H3Y!~B&B-aT@lV-5F@~=K55OyZr)m!?0dE96I)(*tR6-^L&q_KDp-lkC{Z-7t-rT`rG`{&!QF)@YSRkWj?AUo#h1Th<9oPp; zn3v&{K@ubxG25oSq!izhth|&^6#@-xy899al^v<(7QU0R8i1D z^sf?jjReFm{9g)PT<`dL3M3R38G(v1OVf?iCNjHu`xqRaUi@!9CrKvICAZ}G9P8o1 z{56@nn?DdDFDjVswgs7)jNc@QIJW@RIzi&jEy7HovL4wGeR3GX(9H7llK$HB8gvhv zHQ8O=(10hC&J-p3C{nw)#&`Xdj2pBuU8QlO2zgKj%yIf)j2k{crLk0(-i^vnS)Y(_ z6m_H)NHy1$-DlfM67RxRcly?+rha_Ou(yON3>^ZSj z4~tA?1r1DVP}jr){hTrz&NKBW?JFepK zAzyNkejVi}fnU zDAL0=%tqAA19bCY*>ST;*r%>EZ#dH$_uCydZ|R$vH$Xz5C?gH>Rlc9Tzp3Xv^_z=%R&_tJgK;@MmTN~l6J5&T(US*o6###XC zi0Rr-zSckOB`E;XxdQ3_Z0slRVbCj>F}V?%?w^vESZZFa zx4Sl}iJ6{X9<2KoJAG*>Gt*ApEh4ULk6}60*3D_9$F@)Pqs12nJbC+vzrjZ+4(x>b zT`yMe62#``g=K_E;<=54n9bKyz3R>(z|(HsuI0VPNaO%TauvsY0%YEh?AM8Ae^kge zCVqp}X%!AYlsnctF5}mqBQgVpC0~M07hV2vM`ka;0F2NT<=pC)|0agPBL#B2XR0M% z;4ADp^~n8K5Ubl-mqg7H9EYP5Rn20Ir$up^ANyxWw>!=>7mInoc_NH>YVBN9k&+zs z#`Ua%KbPXD?^j)n=3ItIAMt91G5z$x`}nw6VNz(;3dWzOkb7Zcst5F{+Yi28;iiin z)YRCY0I-S(MH9iz0Q0kJij8|;)EB?ti~O9o{nf*j#n_?^DufOq zEo>blOiRlpA{JE9vp)DzYfRR1tc9Bn29Tp{Z4)qvRA~*PeHR{7L4itT(OdmBQp8BT zG5{IA8Lv*53;24?GJPA(06im zPS$Hpb*_sqQiGO=D*?yRlK6}FD$;qSKbPcT}M*ts}wi!ks54PmM_ z0v|<)o0sHyMtz>YS)aITU1pNYXkB&D#SW=9fQw-XO)AoEu@+zNjBdBQ9^7i zlJMLB3@!N$`+h|~bbG+vBSV@6Ub2t9{#oK%Z zhBwzI6*O#3q^UO*L1^t-;dLKZE(^Qcup-KOLSmPOHh&;*?KZ-V3!_(#dZY}(yp3P` z^WfTe=`!kesxbdw>;{8ty6?Jt8OCoWa}4aQ>*%Phzbuv zM4>KCrf*}>~=h~VEFS#bbf~m9daRq{8yQ-7%)uXgeS!^;MWct zBjWK@qjT0(!`I8qOT(5`XFnn}wJa`>{Y;Lf;Ers%hXEBMf@f57b1AR(how_D5_i54 zP-tQBKx~T;Vma}?-K%fGxI6cL1>fek$&ea?H+J*6K4On4ojX_E9l1CB<^m zFTXn=|K9M>{BwnAVHlXh@$FZ{wG8o&S$&h-$y(Nyh8fGopENf7HeaDw`$$IPK=C<Y}0(dsf2UlgC(RUEO z^#jF`d~zNE-oB`d?~eU<+i-8`<3BT{B!tO)^fcZc1fG(f{u2fM*c#o<*!EtdhX(TL zDM9O4gdUC*ReBMdk6tlH`EpRLD-{<<+Nf}^8h=QiII3n+ePOP1b~(XI2Kc|L%B|J& zlA|IxzIn7&Mm#HKXBQ4Gi~o}%UYt>O=!dVF_O(sD6`=H@5c2I6`c!E7?nCHqCJ(kO zT_n>=TQDQK3t29-aFQYl9@{#9&p+jvyY)!s@dpN~VEkjl3 zd))VSaBqj23UmJaJFeB7$;NtPdC9n()6wycDo7&ehV&?k-QB(2%HO4|^7glxu*U&K zzdsQaEt?I|4_)eA?P(}!z5@206j*gwb>D72{(I0?#7i7lQtkMskWj*hO9b#%i|DfAa5lQRNIInhZBI|sJCC>7{;g@T+*-5KrNw}0 z!@{;ULXe|p`PAd1r@+1Ik=gpbEAnc$r~Z^PBCRW|4H(2 z3ls1NvvCiO&H*fn`m-s87beG+NveHNAL9c(le)!rdHjT`ZH5e=C)tsABIstOrg|=U zV{sy+`QC;u$B2m*c)xip;^-+%DnM06s6-EyHRZe#@5;>-#|4#jpw$sRKjX4W`h?LH zXpIy23F?LJd!uutJ-X`UI9H$EUMs><#^PSUb5q;WZj*Nqh=24y%Y150+Q3-Bz zg-G%=gLw@3deu11*unYOw&AJ@I>>2mwDW0_YKQ6y3jbOmXl$tek1Y|E%*A@qk77{0 zTrwfeHNvf{=6lM&hWjxu5`99le+v2kO{ayVl;XJd=SU9u+<#s1Bg>o?AAATIG`$e; zKt=jSPeE3H-(80&xM>hoqBX9qCb(TOO+tR3nYI7x;Xti6=+?jBLScdm&S!r09Y20o zk3i)@7-)W#>v&uDf5}N${%5RgFiMW8n3N#hQoLm$^hByT5^&+QqHc&GC<*`cHHwcOeNmrgOK!Dm^OP3?v6kb}VnC||gkHu-lg9)J$&aGh!<(+Ckm2haGVk(T z9=zM_bXHz_*{ANqAw>k)Z~t0S3YXwTGU8C&`bp6`UvD!yU+;OXS{qB~MCu88tB9q8FVKMPuAV5`ni`a>HW*f7SU=xW|Mh=?E~p|9JRnX4LXKy>JZ z*&ivO9`)XG~_1Wn}02i4R(uFU#G$dEXcytioro8_#mQ3~~>&bsh31?WHnCBMoXQCIcKqlSJ zKA}Jcde*5PiZlz!nQoN?1$V1{@Gtl{#gSU8ct|%Kr8*a8LxPUj&@jqg`|@;L1C7`# z`}dk|z6_4_0j_^b1+a92cCyi(fnu*~_?GDDcl8REJ=TjmA2PRRXwyTuZ^Qv_8b?(0 zQ*OdR7h0q;)L&F-;kQ7_|KU-BdzmT7jl)nD!sZk@Fivey>lr`JI|ypyNlR#H4ieRIFAu z)UQ%big8XFEI!6v|Jy9qMKm?U%!mQ(@}g$>(9MfWyo?2n^#7%KO7)iGe{JPG9@>a` z=_cGjr=Nmf(h6CV?B(l9cRzlu2OZ}fNeQ~CwCAwA;zm?(T$R7|O&Z4(GRm}ZCdsa- zJvQS;$+4Nxt~QgE>o=Mp(qhN_T>VJ{)w+R>PWhIIH6(iz>U37}d#h?JOl{FgwyR#H z5vguPAKc1H3!UV3X1>V&_YBGG8s}ESza59V6?yHnoiiYh{*c5H4%)&5bAg}Dg(V5L zjQB~qLvqcm7}he4*M{7x6Vh|vB)X6lp-u*+W1ad)I#u}=UeJA!y`==nD$_3i=aEIV zRdmKH2{*Rwj&fj&4W9MZ54R)Rc*jiRUrX_nJFrc@($-s5F+blPFLK&-ue2L4 zCB*KqKLXb6SzE&rKwjsujnghIDHv5Ub!)4m19)hc*36)d!@yHv$Z{1O>&1pV*;^(6ntjDy<)_)OX*+233*vPl-jSFx4LaXYb=3IZ z>T|Y*7yfYFkj!S@AzLO6MwuQJMMVcM$aOIh z_U+ddgn1?J4eD20bmyWi_o)*i=w-s4s?bd-nwnPjT;)}5mh%ezUl<30z8(+F9d^@j&Qv;({{gCAm%SCKYWoTxRVteM{gvU+vL!Avq8%7CeAT?6_;deL#5VOk?Le{iSv6txx%?Xs=l!OxQM9iKN;gu?Kb~^%V?vE zjz7^S`7zKILY*>HHJKRUY5&*Obo#Zq0!0sS2UJ?JKTpu8lIFe_u^yJu=tN4$@sDZDbKP9v!u{Qp99>v?@mT$~%l>Ven&S6wy2bKB!_c$F4 zsChq~2Cg^<4~za!xlE_*+aG(qYMMyjixIq0uCfz49SI+(6;DbTFA7XjyV5 z`)^;CTVDy1bT|K#E(xdgbM~Ad( zvbR}s|I)CvbmL+l^$L>TRM6grk(UV444shtdHGbD{?x(aA?#n#%dPf;fa#V{tlK9( z<@3NH*c4*W8(e?fIh!)+%2>wqnd4j&y?F$G1DwmiZ&g}&0O!^5$JBi?rpFlfByCS%6l`pSyhz0?{Sv_ zuJ<5ONxHg}c>y+Bh! z-#_JkztMTe?B;t8?w~*Sm7m7v`DxjbhOh|nBQ-kHtW#QEh`PTe3-1f~26nOklCTJF z?_?upI+D~ko{h;!5Q*8`ROiu&%|>@{o@Ik3{Rr=LJ35Ca%VpcN_WWrNcV?Yt+x-1) zJxnw_mQ(HMGW@_UW%c$u_z{q_He8%bf#1wGJI;@4oTTwK5vIkrb$bQ&ZHI>!*iZBL zZs%OHw+og&>lZq9=#8FJ`fGh#Z|h^G@djnT24jyGYli(dA(1%}BJN_N@$%X-9olUV zO1ul?ZX9=uF!!RJQEg#R&@l@84Z{LMr&iP}EBlK`=OmxiC#IqEMzci$_j+->s6_M*L#1WsR%KNALiTqo+LB@UDAk)^5L&VC>cG<6HOXq9;HL zb-|JO#J?>k`4BGF`qwmm9!;E`Wf_54gA|IQ(PlySn5#n^>3tq1t3OL7|2%H}uPC7r zf_ARZQuY9bzeYMb;9Q7W_=s1)_D62Yl}~$FfFyHeIEimuE2x}E*Sjmk^lCjH(cTsr zI-ro~hQj>a*c)gsqfXu|s?>d3a6asH+UQC7F;&(1=8fq=^Bc<%Dw2-hGk#ka2+sV9 z^sjzkb8VjS3b!m-f5K4q^_2IL{=>Ecf8qQhPfv%xi_`1zF(2fC?H%aVtikM}N^Hg8 z#`*fb#jt~`u;U{h&sfEu-zBVj({9)0=RVgAAs|l*DeoYx=)gNM@&y^E8(WlU9)FVO zf*`~1y)vgHIqaLAq@;p))o-VIU2jhUZ!)2WD#(EH_(B=0_u~e3%rk!$bG5X*JDgN+ zx8t2U)fkB7URO$N5BW(AFO*>W(yzNhPPnimQ8o|#PU28!+(*KgW%5|05f^Uok|JWs z*xuM$n$;PzX6A!EEeKZnaE*`iGVfX4e3e-(T~4|7o9r1^#OI^j`1Kioq7|jTqgs^y z=xiFk-Leun)9NI9{Yyv2L9{7lYO>jI)BNvvOYBb&&FDDqChDgkE#Q+WVlg6O`PcAK zGxzGpcKzBNQBT~}h7e+opAovC>&%?L5yDj%}X^FEukg_gN4i*WeH)(rjr9pP-XHPdgLAI-M9S5@b*_Lt8Z zS9PEzowh(U?ky{MxzDsQKTD}}cBKk?)Mx6Hi{P7Or>otV%3$Snc-a1v({#wx!Imi| z`H!|sziM(5KGO^q97%PM;EY@JOZy=tLA%4qG}u@6Jc?9!aG#qb_5eBARwr$ZW=R~6 z+-^46a)a~kaR14SUelp5{I6#GLnRi-kDqmr$&pv<&E#h)qqV;LiISvUbpKC26mJYj zzqeFlTzt53iBVlqOEbBW7yF+#dDi$&2U1`PO=t@1S{z5)ujBhWq3nXAlu%hvCq8=J z$!@ux_Ecop;EJPtlS%5E8ee@U%G%YdsfE#K@*ZRnk}Xpzsg`KVr|ix8508m#j0;aH zVDYV!8*I1>^vrSI|D66PTjl(EzPOX)0-?qJ2OU3Mp41_r5pae-$!@$-^JUH|Y<}$H zv-2oQ;;~1s$z^h~By8z~fx+ka_kRJR!6ZAgoUZksb$HHFeY7@816T4sG}hfvntawd6Yv$cy`IzYIKM+k^Q*iW-iu};Cs(+O5542 zQHTbbA`0evF4pj0_qU&=a{tXABb?HV>!;w?6f9|7)K&3;a8}>gSge2$Bfkp;h8tN} zRHUZ^XT9}pN5ad`2PS`cGd3xox*=hxL|%s}$jK$we)owDk$cC=VpY=wXQSWA{&ms7 zfBe_6pT1WiWp?a!nIm1!`&o>RLqznk?%xBPN-J-CdJe0LQnWG3DbST<>YEasj(Muv z8Kr=;fw%$4|GkO_5%nEIYu$m!kh{a+(JdvEe?liu!c9oW1R1V>d#cEZ#iz;Q<38|I zPk4X^hm9EAWv1Z$ZpNLir}(_YpQ=%vMkFo$@NiCT=Ds{7Bg0K2TDYmNn3xyK>-^J9 z{k!v!gd@H>(zSC-$=6+vvhhkL>*3jr+}$Hr1-)sc*K)jTZ~?--rjsJOqj;gy%8WBz z_|uhgs_#DNCx{iH$)dm`q#~)I#yN7DJ=uVjXMVZGI7d_GKyYuTr@yMxv#H>7@>kJ+ z>p0bqgIJD3%A}eS(EXkoqviVS1{fon&0fJOMJuCI?8iT_rbFu3o4osr==Kx~1SQqI zPUk>ja(F8oGP;kpf)}M(Lph*m6uqwhY@4S++tS98X0F`z`QaNKP;O&x*>C^}I1LWv zI@#Y^GNQcotcla(1SwwxahfHUb)^qpxFl}t(UIDXQ{l}M#>@iU6$(=;kqh08zxRU_ zqy0F>)c1}47PqH8?B_ME-sRj)o9pjTHlyip{ErT0C3H7Ib_a1`^8~2&z+a zhkd+nBr{RMLfE=<2cGj1kU0Oot<9OZ6UJs%$vpRrINlolqWzz7UCm#m_sehYI&}k^ z<+{MDctkCC_4h^K8@nv&Wj{QC+zLGpf3i)5;Z661orjS=+A>y~SgPo9f3*eO($y>L z)5DFWNWwzmm1En-I#?UFQ_)TO09Y6j?h&=!e_uZMVVx z9|8kTy-l(I(aw2CHMM+u!L0ae*NGOWP69kkF zQluNIl!Rs|4+SF~LQ6;j(xgU80)&#u^UZoQYkq&t{5}8Ob=F?z+`G@-pZnc=oqPA{ zv6mceq0IBAB4Pu48EWxPa@<8$CS&iHtS<=q5HIl#U*6Wm?3pg-x`me^8pe1h)0ujO z$LO7X05fAb7yF*vu+h7*KOh2LrbR6dHWBYEPxs#*i`7?AU-jx(xKhgrSG4Bq2rWy9 zFmu(fpHCj2w>SmYkoXC%k6C2DIcL=cbmj|kN727E$OVS3HTDA*BZVK%*FJ8M2+Fh$ zX0@OeLKBgq^#vp9SFNx+4}RRif;r<^NZ~#g`Iv`lmGw*Ka+)+Bz1s}8nUrMH;QAF# z0*cIV3V$FT8aOwX zGlsAKb@+Gi@Y$NuHT?4lBTp2*WfPB6!0aMAZl(R zv$^3?>}ji!781*BVHC>bk=mFo(Nx#R*fSp}ukY5uLe2l$>>kg0*CMdDG_yOU`JxJ@$JB~DoNoLi-&A{aGpF7+6l^?9D zA7) za93(u>wt?&2>Hpt4AqIR?sdM@pm&+K$Kq*s zBs2c%lF$hgjlNTsG<#0gGTPS0X2uPePXT3KX+xOt0$UMtHgMs7Je{o7XUcJ{Pvs72 zd-ibos4s$OeZx`ZMAk~{FVMc6W0a{MDEhU#_ohDu%ErJH5~=85syyq{B2#>BLZ7yJ z$8f&T0uih}e9_!B@91U3)w&gAvE%F&7{A)FX!^SBY1VUVUY(709bDJ+9nU9ximw}E zkGgR>d*$}5@2e@RaiIJX!-Q1qdiH=CA zf-7|johtUVCVaKFMwO3>Abv$}n>&1~1A^c)!UW;!aksSbk14&JzHW(l-ZW7ccxa6^w;Yw5f3N7Q0eR8;h*LQv0hJ|0Yf~VCie5dMUmJjw3M~Huk z&?DOED^*GDVapYi-R&cUGM}eSNT^ON>37*~o$RBHy~V>*>utoj95_+Wk3xFOuT0mt zThy8jFS4zIveNe~pT(|x`zUKCj5l@ac#~9@`-e=(HPDxC>kjn;l7r>Cqt=<}OnE;O zxYGn?kOInmODDbd5xIz))Q9THECRj`litobD+?ujc-Wx-w#YCvsm4Hn>~u_8x)9yG zVqiT!R|vb%TKRD8z(nBSxKIp9iB@JCZ!f?yFx8NR{;g{A80xJpZs?X%@qOALedzJ` z6E6{0<{|I4c@7(k75!y*xPE({EnL`@7z_l4Ba!@(6S%?w7s+4 zEcKWguT8M7H=@l^`jxBr&O)G{PV3X0rYKS2g{BK_A zWn95VzOmFC(t5A|MTu`yv@&Qszv?kV>kVwdan?v~x1>rnWvlOeKE9YlHMWf;s> z6)hJTswn%h*GnE~2!#?C85N1XS2Sc6JM7>{@rdJ?1ogbb?!|_|i1w@2+)H9Jd0}-| z;y-LYXiaraV`NEid@dSiueEx#6hU0M-dEQzFY%3i?+|dq1hTia^_VN>C()xMl9%u(d|}T+Wtoug za9%EjK$yp$S;*E}KROIlcTTEU_Q;n=2V4706f5DX(Vek94MyRje<&N%mEA04{mz}& z&)R8>bmI5cxCqCW4RoirD1O{;q8J&~)|ZJH3NCSNk@<&zj6MVC{x~|D(IYy9bHAdJq2zC%CqN9P4iy1tr z3yUKiE(eJkAkDOIDI`9vhHN9hyssVYJrs8hg1>VjL^Me>JUL^? zkiMCHP1uhEbd3(;Ux?`?-iZg-nyb7g^OMyzd{PKKzcslm(b$MZt;bRe)^9iFAyVnU30&Z3h&Xu@o9oG|nwXm>|0^75 zUCc}@cQn&BB2t&$pQJep&OZ*kA8`HeSaA>c6n?sMeNt%M()rhfJW)gJMz0I(EsRgy z_q3TDoS(VbtfH#ejA_g+)}d`I zDhLHp9@JAUVgjka8VMzT z8{?>Sf(x!cOcC&GDM3%hIULLx<-jJehBqk%l3Det9!7#C=+T3<)dWzBX6?S(I3a_Y z)5dTfwT!H&?!Pk@P-p^qGP(lH9YOKNk3Nn$%Jpf3ur(G!HU5n&@zLZVWOAu-_*^>ytdJ6zT8 zrQoU{?x!!U=6j#8$AT6*_Klnc+}7F}c1+l)O+jgWqie03oT5fs4eTE6`D9HmN=(=o znPMn{&ZRw0Eor;v#jAT@ZXBC* z#m4soMrt*fSZhpaEZOM}Kw}$r)(D!D>_b@knJY3ul6 zUF$R6tLAgV%y$RYY82(}Jn{6lJex!s{ehcQT#1GkNQeu z@LBJ@)&&3kHfc~UqFw*l+3gjz{5On&KXhz)#X=hb9@$kfZh!{&&lAG}jT-UU%9z8S z5~ukM6U@*n_2eChGlM2?cW2>DeU>U><@n$-TYjb0Ojg*w$HTSrBR#mWvB3KH@JS>l zxF3Ead@rP=d+aTT^e?#n^1il;Ptw9WjR+UxmtdKWx5o*2~LGF6V{rr=0z=^ck9F6y77I zHpo+ear{F<{xM{Qgt&54U}hQdOcu7o=cPt^pK~cL(#>Y{QGl6e#@C1K zs`bD($lY$4G{mmRRIBWNf-RbfP3*5x=GU&SlyR|thzMJ8Jz;v9MT(6{Ph8i@Q~Q!P zqeg1A8%(r~|8OPqLaVMC0d0E^3Yj(z- z^;Mt!&o!4Eor@;bIDhLvrAIUt=Kz@ zm{GWu`*Yd+i|D@To>F+I1M3m1W4hMeKm%ALp)^E2SD9!vYq8Z;EC$+lwahzXwn_f% z#tfh8NAw*pcSU}2e~HFE2t%~0bk4+nR3K6L#|E+0F&)z$;j;PU`<4y7zSPVq$6W2w z_!0HsjQ*e5O==d?svkMdCjkPgba`TxHfy-fv|Yj-ChR{S-<;ul)ITf$jfeJTFTuZ+ z;j>5~qa%#UL5*t%K52QK zvjSX+NB@ep>?CF0bqUr|X{iQB2L~l>_3Ctg^jg~ufJkrEyGGoIrCr2jZhRY8TR$&5 zV9f*q>Geq5um>~7abhS< ou061R1q)zpWxU4CWj|7)`Z-33wn||BTNYrbXL`F@=ic-G0CDP&0RR91 literal 0 HcmV?d00001 diff --git a/examples/qxembedexample.py b/examples/qxembedexample.py new file mode 100644 index 0000000..0e21631 --- /dev/null +++ b/examples/qxembedexample.py @@ -0,0 +1,79 @@ +# -*- coding: utf-8 -*- + +# Form implementation generated from reading ui file 'qxembedexample.ui' +# +# Created: Thu Apr 29 02:17:37 2004 +# by: The PyQt User Interface Compiler (pyuic) 3.11 +# +# WARNING! All changes made in this file will be lost! + + +from qt import * + + +class QXEmbedExample(QWidget): + def __init__(self,parent = None,name = None,fl = 0): + QWidget.__init__(self,parent,name,fl) + + if not name: + self.setName("QXEmbedExample") + + + QXEmbedExampleLayout = QVBoxLayout(self,11,6,"QXEmbedExampleLayout") + + layout2 = QHBoxLayout(None,0,6,"layout2") + + self.appNameCombo = KComboBox(0,self,"appNameCombo") + self.appNameCombo.setSizePolicy(QSizePolicy(QSizePolicy.Minimum,QSizePolicy.Fixed,0,0,self.appNameCombo.sizePolicy().hasHeightForWidth())) + layout2.addWidget(self.appNameCombo) + + self.launchButton = KPushButton(self,"launchButton") + self.launchButton.setSizePolicy(QSizePolicy(QSizePolicy.Minimum,QSizePolicy.Fixed,0,0,self.launchButton.sizePolicy().hasHeightForWidth())) + layout2.addWidget(self.launchButton) + spacer1 = QSpacerItem(209,31,QSizePolicy.Expanding,QSizePolicy.Minimum) + layout2.addItem(spacer1) + QXEmbedExampleLayout.addLayout(layout2) + + self.line1 = QFrame(self,"line1") + self.line1.setFrameShape(QFrame.HLine) + self.line1.setFrameShadow(QFrame.Sunken) + self.line1.setFrameShape(QFrame.HLine) + QXEmbedExampleLayout.addWidget(self.line1) + + self.mainTabs = QTabWidget(self,"mainTabs") + + self.tab = QWidget(self.mainTabs,"tab") + tabLayout = QHBoxLayout(self.tab,11,6,"tabLayout") + + self.textLabel1 = QLabel(self.tab,"textLabel1") + tabLayout.addWidget(self.textLabel1) + self.mainTabs.insertTab(self.tab,QString("")) + QXEmbedExampleLayout.addWidget(self.mainTabs) + + self.languageChange() + + self.resize(QSize(471,499).expandedTo(self.minimumSizeHint())) + self.clearWState(Qt.WState_Polished) + + self.connect(self.launchButton,SIGNAL("clicked()"),self.launchApp) + + + def languageChange(self): + self.setCaption(self.__tr("QXEmbed Example")) + self.appNameCombo.clear() + self.appNameCombo.insertItem(self.__tr("kcalc")) + self.appNameCombo.insertItem(self.__tr("konqueror")) + self.appNameCombo.insertItem(self.__tr("kedit")) + self.launchButton.setText(self.__tr("Launch and Embed")) + self.textLabel1.setText(self.__tr("QXEmbed Example\n" +"

\n" +"\n" +"Select one of the app names from the combo list, then launch it with the button. Two seconds after launch, the window for the new process will get added as a new tab.")) + self.mainTabs.changeTab(self.tab,self.__tr("Help")) + + + def launchApp(self): + print "QXEmbedExample.launchApp(): Not implemented yet" + + def __tr(self,s,c = None): + return qApp.translate("QXEmbedExample",s,c) diff --git a/examples/qxembedexample.ui b/examples/qxembedexample.ui new file mode 100644 index 0000000..d346516 --- /dev/null +++ b/examples/qxembedexample.ui @@ -0,0 +1,150 @@ + +QXEmbedExample + + + QXEmbedExample + + + + 0 + 0 + 471 + 499 + + + + QXEmbed Example + + + + unnamed + + + + layout2 + + + + unnamed + + + + + kcalc + + + + + konqueror + + + + + kedit + + + + appNameCombo + + + + 1 + 0 + 0 + 0 + + + + + + launchButton + + + + 1 + 0 + 0 + 0 + + + + Launch and Embed + + + + + spacer1 + + + Horizontal + + + Expanding + + + + 209 + 31 + + + + + + + + line1 + + + HLine + + + Sunken + + + Horizontal + + + + + mainTabs + + + + tab + + + Help + + + + unnamed + + + + textLabel1 + + + <b>QXEmbed Example</b> +<br><br> + +Select one of the app names from the combo list, then launch it with the button. Two seconds after launch, the window for the new process will get added as a new tab. + + + + + + + + + + launchButton + clicked() + QXEmbedExample + launchApp() + + + + launchApp() + + + diff --git a/examples/systray.py b/examples/systray.py new file mode 100644 index 0000000..7391c9b --- /dev/null +++ b/examples/systray.py @@ -0,0 +1,54 @@ +""" +Copyright 2003 Jim Bublitz + +Terms and Conditions + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to +deal in the Software without restriction, including without limitation the +rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +sell copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +Except as contained in this notice, the name of the copyright holder shall +not be used in advertising or otherwise to promote the sale, use or other +dealings in this Software without prior written authorization from the +copyright holder. +""" + +import sys + +from qt import QLabel +from kdecore import KApplication, KIcon, KIconLoader +from kdeui import KMainWindow, KSystemTray + +class MainWin (KMainWindow): + def __init__ (self, *args): + apply (KMainWindow.__init__, (self,) + args) + +#-------------------- main ------------------------------------------------ + +appName = "template" +app = KApplication (sys.argv, appName) +mainWindow = MainWin (None, "main window") +icons = KIconLoader () + +systray = KSystemTray (mainWindow) +systray.setPixmap (icons.loadIcon("stop", KIcon.Desktop)) +systray.show () + +#mainWindow.show() +app.exec_loop() + + diff --git a/examples/uikmdi.py b/examples/uikmdi.py new file mode 100644 index 0000000..3a213bc --- /dev/null +++ b/examples/uikmdi.py @@ -0,0 +1,203 @@ +#!/usr/bin/env python +""" +This is a rough Python translation of the ideas presented in this KMDI tutorial: + + http://web.tiscali.it/andreabergia/kmditutorial.html + +What does work: + + IDEAlMode - yay! + + Adding and closing child views + + Two-way syncing between a tool widget and a matching child view + +All is not rosy, however: + + Instances of the KmdiExample maintain a dictionary of child views. Values + cannot be deleted from this dictionary during a window close (causes an + immediate segfault). + + Child views created after initialization aren't numbered correctly; given + the first problem, it's harder to do this than it's really worth. + + The example segfaults at shutdown if the tool (on the left) is is open but + is not in overlap-mode. + +""" +import os +import sys + +from qt import SIGNAL, QVBoxLayout, QLabel +from kdecore import i18n, KAboutData, KApplication, KGlobal, KIcon, KCmdLineArgs +from kdeui import KDockWidget, KListBox, KStdAction + +try: + from kmdi import KMdi, KMdiMainFrm, KMdiChildView +except (ImportError, ): + print 'Exception importing KMDI; check your PyKDE installation' + sys.exit(1) + + +sigChildCloseRequest = SIGNAL('childWindowCloseRequest(KMdiChildView *)') +sigChildViewActivated = SIGNAL('viewActivated(KMdiChildView *)') +sigBoxSelectionChanged = SIGNAL('selectionChanged(QListBoxItem *)') + + +def getIcon(name, group=KIcon.NoGroup, size=KIcon.SizeSmall): + """ returns a kde icon by name + + """ + return KGlobal.instance().iconLoader().loadIcon(name, group, size) + + +class KmdiExample(KMdiMainFrm): + """ KmdiExample(parent=None) -> an example KMdiMainFrm window + + """ + uifilebase = 'uikmdi.rc' + viewIcons = ('network', 'email', 'stop', 'back', 'forward', ) + toolIcons = ('view_icon', 'configure') + + def __init__(self, parent=None): + KMdiMainFrm.__init__(self, parent, 'KmdiExample', KMdi.IDEAlMode) + + xmlfile = os.path.join('.', self.uifilebase) + self.setXMLFile(os.path.abspath(xmlfile)) + actions = self.actionCollection() + self.openNewAction = KStdAction.openNew(self.newView, actions) + self.quitAction = KStdAction.quit(self.close, actions) + self.closeAction = KStdAction.close(self.closeActiveChild, actions) + self.createGUI(None) + self.statusBar() + self.resize(400, 300) + + self.tools = {} + for idx, ico in enumerate(self.toolIcons): + wid = KListBox(self, 'list%s' % idx) + self.makeTool(wid, 'Tool %s' % idx, ico) + ## smells + self.mainToolWidget = maintool = self.tools['Tool 0'][0] + + self.childs = {} + for idx, ico in enumerate(self.viewIcons): + self.makeView('View %s' % idx, ico, ico) + + + self.connect(self, sigChildViewActivated, self.activatedMessage) + self.connect(self, sigChildViewActivated, self.syncFromChildView) + self.connect(maintool, sigBoxSelectionChanged, self.syncFromMainTool) + self.syncFromChildView(self.activeWindow()) + + + def syncFromMainTool(self, item): + """ activate the view that matches the item text + + """ + try: + self.activateView(self.findWindow(item.text())) + except (RuntimeError, ): + pass + + def syncFromChildView(self, child): + """ sync the main tool to the indicated child + + """ + maintool = self.mainToolWidget + item = maintool.findItem(child.tabCaption()) + if item: + maintool.setSelected(item, True) + + def makeTool(self, widget, caption, icon, percent=50): + """ makes a tool from the widget + + """ + tip = i18n('%s Tool Tip' % caption) + dock = KDockWidget.DockLeft + maindock = self.getMainDockWidget() + widget.setIcon(getIcon(icon)) + tool = self.addToolWindow(widget, dock, maindock, percent, tip, caption) + self.tools[caption] = (widget, tool) + + def makeView(self, label, icon, text): + """ makes a child view with a text label and a pixmap label + + """ + view = KMdiChildView(label, self) + self.childs[label] = view + view.setIcon(getIcon(icon)) + layout = QVBoxLayout(view) + layout.setAutoAdd(True) + + lbl = i18n('Label for a view with an icon named %s' % text) + lbl = QLabel(lbl, view) + pxm = QLabel('', view) + pxm.setPixmap(getIcon(icon, size=KIcon.SizeLarge)) + + self.addWindow(view) + self.mainToolWidget.insertItem(label) + self.connect(view, sigChildCloseRequest, self.closeChild) + + def removeMainToolItem(self, view): + """ remove item from the main list tool that corresponds to the view + + """ + maintool = self.mainToolWidget + maintool.takeItem(maintool.findItem(view.tabCaption(), 0)) + + def newView(self): + """ make a view when the user invokes the new action + + """ + self.makeView('View %s' % len(self.childs), 'network', 'A Fresh View') + self.syncFromChildView(self.activeWindow()) + + def closeActiveChild(self): + """ close the current view + + """ + self.removeMainToolItem(self.activeWindow()) + self.closeActiveView() + self.syncFromChildView(self.activeWindow()) + + def closeChild(self, which): + """ called to close a view from its tab close button + + """ + try: + caption = which.tabCaption() + except (AttributeError, ): + ## probably None; bug in kmdi? + return + self.removeMainToolItem(which) + which.close() + self.statusBar().message(i18n('%s closed' % caption)) + self.syncFromChildView(self.activeWindow()) + + def activatedMessage(self, view): + """ updates the status bar with the caption of the current view + + """ + try: + self.statusBar().message(i18n('%s activated' % view.tabCaption())) + except (RuntimeError, ): + ## sometimes the status bar or the current object is already gone... + pass + + +if __name__ == '__main__': + aname = 'PyKDE KMDI Sample' + desc = 'A Simple PyKDE KMDI Sample' + ver = '1.0' + lic = KAboutData.License_GPL + author = 'Troy Melhase' + authormail = 'troy@gci.net' + + about = KAboutData(aname, aname, ver, desc, lic, '%s (c) 2004' % authormail) + about.addAuthor(author, 'hi, mom!', authormail) + about.addAuthor ('Jim Bublitz', 'For PyKDE', 'jbublitz@nwinternet.com') + KCmdLineArgs.init(sys.argv, about) + app = KApplication() + mainWindow = KmdiExample() + mainWindow.show() + app.exec_loop() diff --git a/examples/uikmdi.rc b/examples/uikmdi.rc new file mode 100644 index 0000000..a7e2196 --- /dev/null +++ b/examples/uikmdi.rc @@ -0,0 +1,11 @@ + + + + + + + + diff --git a/examples/uimodules/uidialogs.py b/examples/uimodules/uidialogs.py new file mode 100644 index 0000000..0f86072 --- /dev/null +++ b/examples/uimodules/uidialogs.py @@ -0,0 +1,232 @@ +from qt import QVBox, QLabel, QLineEdit, QString, QPixmap, QPushButton, QColor, SIGNAL, QButtonGroup,\ + QRadioButton, Qt, QWidget + +from kdecore import KAccel, i18n + +from kdeui import KAboutDialog, KAboutKDE, KBugReport, KColorDialog, KDialog, KDialogBase, KFontDialog,\ + KPasswordDialog, KMessageBox, KLineEditDlg, KKeyDialog, KWizard + +# despite what the docs say, there is no enum (in 2.1.1 anyway) +# that contains these values +QuestionYesNo = 0 +WarningYesNo = 1 +WarningContinueCancel = 2 +WarningYesNoCancel = 3 +Information = 4 +Sorry = 5 +Error = 6 + +# Python 2.2.2 supplies these, but they're duplicated here +# for backward compatibility +False = 0 +True = 1 + +class CustomDlg (KDialog): + def __init__ (self, parent, name = "custom dlg", modal = False): + KDialog.__init__ (self, parent, name, modal) + + x = 20 + y = 10 + + rLbl = QLabel ("r", self) + gLbl = QLabel ("g", self) + bLbl = QLabel ("b", self) + self.rEd = QLineEdit ("64", self) + self.gEd = QLineEdit ("64", self) + self.bEd = QLineEdit ("64", self) + self.dlgBtn = QPushButton ("Set/Get Color", self) + self.okBtn = QPushButton ("OK", self) + self.canBtn = QPushButton ("Cancel", self) + + rLbl.setGeometry (x, y, 25, 20) + gLbl.setGeometry (x + 30, y, 25, 20) + bLbl.setGeometry (x + 60, y, 25, 20) + y = y + 20 + self.rEd.setGeometry (x, y, 25, 20) + self.gEd.setGeometry (x + 30, y, 25, 20) + self.bEd.setGeometry (x + 60, y, 25, 20) + y = y + 30 + self.dlgBtn.setGeometry (x, y, 90, 22) + y = y + 30 + self.okBtn.setGeometry (x, y, 40, 22) + self.canBtn.setGeometry (x + 50, y, 40, 22) + + self.connect (self.dlgBtn, SIGNAL ("clicked()"), self.dlgClicked) + self.connect (self.okBtn, SIGNAL ("clicked ()"), self.okClicked) + self.connect (self.canBtn, SIGNAL ("clicked ()"), self.cancelClicked) + + def dlgClicked (self): + # get some (numerical) color values from the original dialog + red = int (self.rEd.text ().latin1 ()) + green = int (self.gEd.text ().latin1 ()) + blue = int (self.bEd.text ().latin1 ()) + + # convert the numbers to a QColor + color = QColor (red, green, blue) + + # invoke the dialog (getColor is a 'static' call) + # initialize with the colors from above (in color) + # color will also hold the new value chosen in the + # KColorDialog + result = KColorDialog.getColor (color, self) + + # get the numerical color values back + red, green, blue = color.rgb () + + # update the QLineEdits in the original dialog + self.rEd.setText (str (red)) + self.gEd.setText (str (green)) + self.bEd.setText (str (blue)) + + def okClicked (self): + self.done (1) + + def cancelClicked (self): + self.done (0) + +class MessageDlg (KDialog): + def __init__ (self, parent, name = "message dlg", modal = False): + KDialog.__init__ (self, parent, name, modal) + + buttons = ["QuestionYesNo", "WarningYesNo", "WarningContiueCancel", "WarningYesNoCancel",\ + "Information", "Sorry", "Error"] + + n = len (buttons) + + grp = QButtonGroup (n, Qt.Vertical, "MessageBoxes", self, "button grp") + grp.setGeometry (10, 10, 200, 30*n) + for i in range (n): + QRadioButton (buttons [i], grp) + + self.connect (grp, SIGNAL ("clicked (int)"), self.launch) + + def launch (self, which): + if which == QuestionYesNo: + KMessageBox.questionYesNo (self, "This is a questionYesNo message box\nThere is also a list version of this dialog",\ + "questionYesNo") + + elif which == WarningYesNo: + KMessageBox.warningYesNo (self, "This is a warningYesNo message box", "warningYesNo") + + elif which == WarningContinueCancel: + KMessageBox.warningContinueCancel (self, "This is a warningContinueCancel message box", "warningContinueCancel"); + + elif which == WarningYesNoCancel: + KMessageBox.warningYesNoCancel (self, "This is a warningYesNoCancel message box", "warningYesNoCancel") + + elif which == Information: + KMessageBox.information (self, "This is an information message box", "Information") + + elif which == Sorry: + KMessageBox.sorry (self, "This is a 'sorry' message box", "Sorry") + + elif which == Error: + KMessageBox.error (self, "No - this isn't really an error\nIt's an error message box\n", "Error") + + +def dlgKAboutDialog (parent): + dlg = KAboutDialog (parent, 'about dialog', False) + dlg.setLogo (QPixmap ("pytestimage.png")) + dlg.setTitle ("UISampler for PyKDE") + dlg.setAuthor ("Jim Bublitz", "jbublitz@nwinternet.com", "http://www.riverbankcomputing.co.uk",\ + "\n\nPyKDE -- Python bindings\n\tfor KDE") + dlg.addContributor ("PyKDE list", "pykde@mats.gmd.de", QString.null, QString.null) + + dlg.show () + + +def dlgKBugReport (parent): + dlg = KBugReport (parent) + dlg.exec_loop () + +def dlgKAboutKDE (parent): + dlg = KAboutKDE (parent, "about kde", False) + dlg.show () + +def dlgKColorDialog (parent): + dlg = KColorDialog (parent, "color dlg", False) + dlg.show () + +def dlgKDialog (parent): + dlg = CustomDlg (parent) + dlg.show () + +def dlgKDialogBase (parent): + caption = "KDialogBase sample" + text_ = "This is a KDialogBase example" + dlg = KDialogBase (parent, "sample_dialog", False, caption,\ + KDialogBase.Ok | KDialogBase.Cancel, KDialogBase.Ok, True ) + + page = dlg.makeVBoxMainWidget(); + + # making 'page' the parent inserts the widgets in + # the VBox created above + label = QLabel( caption, page, "caption" ); + + lineedit = QLineEdit(text_, page, "lineedit" ); + lineedit.setMinimumWidth(dlg.fontMetrics().maxWidth()*20); + + # This tests some handwritten code in KDialogBase + label0 = QLabel ("Border widths", page) + a, b, c, d = dlg.getBorderWidths () + labelA = QLabel ("Upper Left X: " + str (a), page) + labelB = QLabel ("Upper Left Y: " + str (b), page) + labelC = QLabel ("Lower Right X: " + str (c), page) + labelD = QLabel ("Lower Right Y: " + str (d), page) + + dlg.show () + +def dlgKFontDialog (parent): + dlg = KFontDialog (parent, "font dlg", False, False) + dlg.show () + +def dlgKKeyDialog (parent): + # This really doesn't do anything except pop up the dlg + keys = KAccel (parent) + keys.insertItem( i18n( "Zoom in" ), "Zoom in", "+" ); + keys.readSettings(); + KKeyDialog.configureKeys (keys) + +def dlgKLineEditDlg (parent): + result, ok = KLineEditDlg.getText ("Enter text", "", parent) + print "result", result + print "ok", ok + + # pop up another dlg to show what happened in the KLineEditDlg + if ok: + result = result.latin1 () + KMessageBox.information (parent, "OK was pressed\nText: " + result, "KLineEditDlg result") + else: + result = "" + KMessageBox.information (parent, "Cancel pressed\nText: " + result, "KLineEditDlg result") + +def dlgKMessageBox (parent): + dlg = MessageDlg (parent) + dlg.show () + +def dlgKPasswordDialog (parent): + dlg = KPasswordDialog (KPasswordDialog.Password, "Enter password (just a test)") + dlg.exec_loop () + +def dlgKWizard (parent): + wiz = KWizard (parent) + + page1 = QWidget (wiz) + p1Lbl = QLabel ("This is page 1", page1) + p1Lbl.setGeometry (20, 20, 100, 20) + page2 = QWidget (wiz) + p2Lbl = QLabel ("This is page 2", page2) + p2Lbl.setGeometry (50, 20, 100, 20) + page3 = QWidget (wiz) + p3Lbl = QLabel ("This is page 3", page3) + p3Lbl.setGeometry (80, 20, 100, 20) + + wiz.addPage (page1, "Page 1") + wiz.addPage (page2, "Page 2") + wiz.addPage (page3, "Page 3") + wiz.show () + +if __name__ == "__main__": + print + print "Please run uisampler.py" + print \ No newline at end of file diff --git a/examples/uimodules/uimenus.py b/examples/uimodules/uimenus.py new file mode 100644 index 0000000..19173b3 --- /dev/null +++ b/examples/uimodules/uimenus.py @@ -0,0 +1,108 @@ +import os + +from qt import QLabel + +from kdecore import KApplication + +class PageLaunch: + def __init__ (self, parent): + self.page = parent.addPage () + + x = 10 + y = 10 + + launchLbl = QLabel ("Launching application ... please wait\n\nClose launched application to continue", self.page) + launchLbl.setGeometry (x, y, 300, 80) + launchLbl.show () + + self.page.show () + + KApplication.kApplication ().processEvents () + + +class PageNotImpl: + def __init__ (self, parent): + self.page = parent.addPage () + + x = 10 + y = 10 + + niLbl = QLabel ("Nothing is currently implemented for this widget", self.page) + niLbl.setGeometry (x, y, 300, 20) + niLbl.show () + + +def menuKAccelGen (parent): + parent.currentPageObj = PageNotImpl (parent) + +def menuKAccelMenu (parent): + parent.currentPageObj = PageNotImpl (parent) + +def menuKAction (parent): + parent.currentPageObj = PageLaunch (parent) + os.system ("python menudemo.py") + +def menuKActionMenu (parent): + parent.currentPageObj = PageLaunch (parent) + os.system ("python menudemo.py") + +def menuKActionSeparator (parent): + parent.currentPageObj = PageLaunch (parent) + os.system ("python menudemo.py") + +def menuKContextMenuManager (parent): + pass + +def menuKDCOPActionProxy (parent): + pass + +def menuKHelpMenu (parent): + parent.currentPageObj = PageLaunch (parent) + os.system ("python menudemo.py") + +def menuKMenuBar (parent): + parent.currentPageObj = PageLaunch (parent) + os.system ("python menudemo.py") + +def menuKPanelApplet (parent): + parent.currentPageObj = PageNotImpl (parent) + +def menuKPanelExtension (parent): + parent.currentPageObj = PageNotImpl (parent) + +def menuKPanelMenu (parent): + parent.currentPageObj = PageNotImpl (parent) + +def menuKPopupFrame (parent): + pass + +def menuKPopupMenu (parent): + pass + +def menuKPopupTitle (parent): + pass + +def menuKStatusBar (parent): + parent.currentPageObj = PageLaunch (parent) + os.system ("python menudemo.py") + +def menuKStatusBarLabel (parent): + parent.currentPageObj = PageLaunch (parent) + os.system ("python menudemo.py") + +def menuKStdAction (parent): + parent.currentPageObj = PageLaunch (parent) + os.system ("python menudemo.py") + +def menuKToolBar (parent): + parent.currentPageObj = PageLaunch (parent) + os.system ("python menudemo.py") + +def menuKWindowListMenu (parent): + pass + + +if __name__ == "__main__": + print + print "Please run uisampler.py" + print \ No newline at end of file diff --git a/examples/uimodules/uimisc.py b/examples/uimodules/uimisc.py new file mode 100644 index 0000000..31f7c18 --- /dev/null +++ b/examples/uimodules/uimisc.py @@ -0,0 +1,239 @@ +import os, time + +from qt import QImage, QLabel, QPixmap, QPushButton, SIGNAL, QColor, QValidator + +from kdeui import KMessageBox, KDateValidator, KFloatValidator, KIntValidator, KLineEdit, KLed + + + +class Page3: + def __init__ (self, parent): + self.page = parent.addPage () + + x = 10 + y = 15 + + green = QColor (0, 255, 0) + yellow = QColor (255, 255, 0) + red = QColor (255, 0, 0) + + ivLbl = QLabel ("KIntValidator", self.page) + ivLbl.setGeometry (x, y, 100, 20) + ivLbl.show () + + self.iv = KLineEdit (self.page) + self.iv.setGeometry (x, y + 20, 100, 20) + self.iv.show () + self.page.connect (self.iv, SIGNAL("textChanged (const QString &)"), self.ivChanged) + + self.ivVal = KIntValidator (self.page) + self.ivVal.setRange (20, 50) + + ivRngLbl = QLabel ("Range is 20 - 50", self.page) + ivRngLbl.setGeometry (x, y + 45, 100, 20) + ivRngLbl.show () + + ivAccLbl = QLabel ("Acceptable", self.page) + ivAccLbl.setGeometry (x + 125, y + 45, 85, 20) + ivAccLbl.show () + ivInterLbl = QLabel ("Intermediate", self.page) + ivInterLbl.setGeometry (x + 125, y + 20, 85, 20) + ivInterLbl.show () + ivInvalLbl = QLabel ("Invalid", self.page) + ivInvalLbl.setGeometry (x + 125, y - 5, 85, 20) + ivInvalLbl.show () + self.ivInvalLed = KLed (red, KLed.Off, KLed.Sunken, KLed.Circular,self.page) + self.ivInvalLed.setGeometry (x + 215, y - 5, 18, 18) + self.ivInvalLed.show () + self.ivInterLed = KLed (yellow, KLed.Off, KLed.Sunken, KLed.Circular,self.page) + self.ivInterLed.setGeometry (x + 215, y + 20, 18, 18) + self.ivInterLed.show () + self.ivAccLed = KLed (green, KLed.On, KLed.Sunken, KLed.Circular,self.page) + self.ivAccLed.setGeometry (x + 215, y + 45, 18, 18) + self.ivAccLed.show () + + y = y + 100 + + fvLbl = QLabel ("KFloatValidator", self.page) + fvLbl.setGeometry (x, y, 100, 20) + fvLbl.show () + + self.fv = KLineEdit (self.page) + self.fv.setGeometry (x, y + 20, 100, 20) + self.fv.show () + self.page.connect (self.fv, SIGNAL("textChanged (const QString &)"), self.fvChanged) + + self.fvVal = KFloatValidator (self.page) + self.fvVal.setRange (10.0, 40.0) + + fvRngLbl = QLabel ("Range is 10.0 - 40.0", self.page) + fvRngLbl.setGeometry (x, y + 45, 100, 20) + fvRngLbl.show () + + fvAccLbl = QLabel ("Acceptable", self.page) + fvAccLbl.setGeometry (x + 125, y + 45, 85, 20) + fvAccLbl.show () + fvInterLbl = QLabel ("Intermediate", self.page) + fvInterLbl.setGeometry (x + 125, y + 20, 95, 20) + fvInterLbl.show () + fvInvalLbl = QLabel ("Invalid", self.page) + fvInvalLbl.setGeometry (x + 125, y - 5, 85, 20) + fvInvalLbl.show () + self.fvInvalLed = KLed (red, KLed.Off, KLed.Sunken, KLed.Circular,self.page) + self.fvInvalLed.setGeometry (x + 215, y - 5, 18, 18) + self.fvInvalLed.show () + self.fvInterLed = KLed (yellow, KLed.Off, KLed.Sunken, KLed.Circular,self.page) + self.fvInterLed.setGeometry (x + 215, y + 20, 18, 18) + self.fvInterLed.show () + self.fvAccLed = KLed (green, KLed.On, KLed.Sunken, KLed.Circular,self.page) + self.fvAccLed.setGeometry (x + 215, y + 45, 18, 18) + self.fvAccLed.show () + + y = y + 100 + + dvLbl = QLabel ("KDateValidator", self.page) + dvLbl.setGeometry (x, y, 100, 20) + dvLbl.show () + + self.dv = KLineEdit (self.page) + self.dv.setGeometry (x, y + 20, 100, 20) + self.dv.show () +# self.page.connect (self.dv, SIGNAL("textChanged (const QString &)"), self.dvChanged) + + self.dvVal = KDateValidator (self.page) +# self.dvVal.setRange (10.0, 40.0) + +# dvRngLbl = QLabel ("Range is 10.0 - 40.0", self.page) +# dvRngLbl.setGeometry (x, y + 45, 100, 20) +# dvRngLbl.show () + + dvBtn = QPushButton ("Validate", self.page) + dvBtn.setGeometry (x, y + 45, 60, 22) + dvBtn.show () + self.page.connect (dvBtn, SIGNAL ("clicked ()"), self.dvChanged) + + dvNoteLbl = QLabel ("Format is locale dependent\nShort date only\nTry DD-MM-YY", self.page) + dvNoteLbl.setGeometry (x, y + 70, 150, 60) + dvNoteLbl.show () + + dvAccLbl = QLabel ("Acceptable", self.page) + dvAccLbl.setGeometry (x + 125, y + 45, 85, 20) + dvAccLbl.show () + dvInterLbl = QLabel ("Intermediate", self.page) + dvInterLbl.setGeometry (x + 125, y + 20, 85, 20) + dvInterLbl.show () + dvInvalLbl = QLabel ("Invalid", self.page) + dvInvalLbl.setGeometry (x + 125, y - 5, 85, 20) + dvInvalLbl.show () + self.dvInvalLed = KLed (red, KLed.Off, KLed.Sunken, KLed.Circular,self.page) + self.dvInvalLed.setGeometry (x + 215, y - 5, 18, 18) + self.dvInvalLed.show () + self.dvInterLed = KLed (yellow, KLed.Off, KLed.Sunken, KLed.Circular,self.page) + self.dvInterLed.setGeometry (x + 215, y + 20, 18, 18) + self.dvInterLed.show () + self.dvAccLed = KLed (green, KLed.On, KLed.Sunken, KLed.Circular,self.page) + self.dvAccLed.setGeometry (x + 215, y + 45, 18, 18) + self.dvAccLed.show () + + def ivChanged (self): + self.ivInvalLed.off () + self.ivInterLed.off () + self.ivAccLed.off () + + state, i = self.ivVal.validate (self.iv.text ()) + + if state == QValidator.Acceptable: + self.ivAccLed.on () + elif state == QValidator.Intermediate: + self.ivInterLed.on () + else: + self.ivInvalLed.on () + + def fvChanged (self): + self.fvInvalLed.off () + self.fvInterLed.off () + self.fvAccLed.off () + + state, i = self.fvVal.validate (self.fv.text ()) + + if state == QValidator.Acceptable: + self.fvAccLed.on () + elif state == QValidator.Intermediate: + self.fvInterLed.on () + else: + self.fvInvalLed.on () + + def dvChanged (self): + self.dvInvalLed.off () + self.dvInterLed.off () + self.dvAccLed.off () + + state, i = self.dvVal.validate (self.dv.text ()) + + if state == QValidator.Acceptable: + self.dvAccLed.on () + elif state == QValidator.Intermediate: + self.dvInterLed.on () + else: + self.dvInvalLed.on () + +class PageNotImpl: + def __init__ (self, parent): + self.page = parent.addPage () + + x = 10 + y = 10 + + niLbl = QLabel ("Nothing is currently implemented for this widget", self.page) + niLbl.setGeometry (x, y, 300, 20) + niLbl.show () + +def miscKAlphaPainter (parent): + parent.currentPageObj = PageNotImpl (parent) + +def miscKCModule (parent): + parent.currentPageObj = PageNotImpl (parent) + +def miscKColor (parent): + parent.currentPageObj = PageNotImpl (parent) + +def miscKColorDrag (parent): + parent.currentPageObj = PageNotImpl (parent) + +def miscKCommand (parent): + parent.currentPageObj = PageNotImpl (parent) + +def miscKCommandHistory (parent): + parent.currentPageObj = PageNotImpl (parent) + +def miscKDockWindow (parent): + parent.currentPageObj = PageNotImpl (parent) + +def miscKFloatValidator (parent): + parent.currentPageObj = Page3 (parent) + +def miscKDateValidator (parent): + parent.currentPageObj = Page3 (parent) + +def miscKIntValidator (parent): + parent.currentPageObj = Page3 (parent) + +def miscKPixmapIO (parent): + parent.currentPageObj = PageNotImpl (parent) + +def miscKSharedPixmap (parent): + parent.currentPageObj = PageNotImpl (parent) + +def miscKSystemTray (parent): + KMessageBox.information (parent, "See the systray.py example in the templates/ subdirectories") + +def miscKThemeBase (parent): + parent.currentPageObj = PageNotImpl (parent) + +def miscQXEmbed (parent): + parent.currentPageObj = PageNotImpl (parent) + +if __name__ == "__main__": + print + print "Please run uisampler.py" + print \ No newline at end of file diff --git a/examples/uimodules/uiwidgets.py b/examples/uimodules/uiwidgets.py new file mode 100644 index 0000000..b12df10 --- /dev/null +++ b/examples/uimodules/uiwidgets.py @@ -0,0 +1,754 @@ +import time, sys + +from qt import QLabel, QFrame, QColor, QPushButton, SIGNAL, QButtonGroup, QRadioButton, Qt, QString, QChar,\ + QWidget, QTimer + +from kdecore import KApplication +from kdeui import KEdit, KComboBox, KColorCombo, KEditListBox, KListBox, KLineEdit, KRestrictedLine,\ + KSqueezedTextLabel, KFontChooser, KButtonBox, KColorButton, KColorCells,\ + KColorPatch, KDualColorButton,\ + KRootPermsIcon, KWritePermsIcon, KCharSelect, KDialog, KLed, KRootPixmap,\ + KTabCtl, KProgress, KDatePicker, KDateTable, KGradientSelector, KHSSelector,\ + KIntNumInput, KDoubleNumInput, KPasswordEdit, KURLLabel, KPaletteTable,\ + KSeparator + +if sys.version [:6] < "2.2.2": + False = 0 + True = 1 + +class Page1: + def __init__ (self, parent): + self.page = parent.addPage () + + x = 10 + y = 10 + + editLbl = QLabel ("KEdit", self.page) + editLbl.setGeometry (x, y, 50, 20) + editLbl.show () + + textList = ["Now is the winter of our discontent",\ + "made glorious summer by this sun of York;",\ + "and all the clouds that lour'd upon our house",\ + "in the deep bosom of the ocean buried."] + + parent.edit = KEdit (self.page) + parent.edit.setGeometry (x, y + 20, 300, 100) + for line in textList: + parent.edit.insertLine (line) + parent.edit.show () + + y = y + 125 + searchBtn = QPushButton ("Search", self.page) + replaceBtn = QPushButton ("Replace", self.page) + gotoBtn = QPushButton ("GoTo Line", self.page) + + searchBtn.setGeometry (x, y, 60, 22) + replaceBtn.setGeometry (x + 90, y, 60, 22) + gotoBtn.setGeometry (x + 180, y, 60, 22) + + self.page.connect (searchBtn, SIGNAL ("clicked ()"), parent.edit.search) + self.page.connect (replaceBtn, SIGNAL ("clicked ()"), parent.edit.replace) + self.page.connect (gotoBtn, SIGNAL ("clicked ()"), parent.edit.doGotoLine) + + searchBtn.show () + replaceBtn.show () + gotoBtn.show () + + y = y + 35 + + lineeditLbl = QLabel ("KLineEdit", self.page) + lineeditLbl.setGeometry (x, y, 70, 20) + lineeditLbl.show () + + lineedit = KLineEdit (self.page) + lineedit.setGeometry (x, y + 20, 100, 20) + lineedit.show () + + intLbl = QLabel ("KIntNumInput", self.page) + intLbl.setGeometry (x + 195, y + 35, 95, 20) + intLbl.show () + + intNum = KIntNumInput (5, self.page) + intNum.setGeometry (x + 195, y + 55, 175, 50) +# intNum.setSuffix (" GB") +# intNum.setPrefix ("hdc ") + intNum.setLabel ("Capacity") + intNum.setRange (0, 10, 1, True) + intNum.show () + + y = y + 50 + + dblLbl = QLabel ("KDoubleNumInput", self.page) + dblLbl.setGeometry (x + 195, y + 80, 115, 20) + dblLbl.show () + + dblNum = KDoubleNumInput (2.5, self.page) + dblNum.setGeometry (x + 195, y + 100, 175, 50) + dblNum.setLabel ("Variable") + dblNum.setRange (0.0, 10.0, 0.5, True) + dblNum.show () + + restricteditLbl = QLabel ("KRestrictedLine", self.page) + restricteditLbl.setGeometry (x, y, 95, 20) + restricteditLbl.show () + + self.restrictlineedit = KRestrictedLine (self.page) + self.restrictlineedit.setGeometry (x, y + 20, 100, 20) + self.restrictlineedit.show () + + buttons = ["Numbers Only", "Upper Case Only", "Lower Case Only"] + + n = len (buttons) + + self.validLbl = QLabel ("", self.page) + self.validLbl.setGeometry (x, y + 50, 250, 20) + self.validLbl.show () + + grp = QButtonGroup (n, Qt.Vertical, "Select valid chars", self.page, "button grp") + grp.setGeometry (x, y + 75, 150, 5+30*n) + for i in range (n): + QRadioButton (buttons [i], grp) + + grp.connect (grp, SIGNAL ("clicked (int)"), self.restrict) + + grp.find (0).setChecked (True) + self.restrict (0) + + grp.show () + + self.page.show () + kapp = KApplication.kApplication () + kapp.processEvents () + + y = y + 195 + sqzLbl = QLabel ("This text is too long to fit in the label below", self.page) + sqzLbl.setGeometry (x, y, 350, 20) + sqzLbl.show () + + sqzLbl1 = QLabel ("KSqueezedTxtLabel:", self.page) + sqzLbl1.setGeometry (x, y + 20, 120, 20) + sqzLbl1.show () + + squeeze = KSqueezedTextLabel ("This text is too long to fit in the label below", self.page) + squeeze.setGeometry (x + 125, y + 20, 125, 20) + squeeze.setBackgroundMode (QWidget.PaletteBase) + squeeze.show () + + def restrict (self, which): + r = {0: "0123456789", 1: "ABCDEFGHIJKLMNOPQRSTUVWXYZ", 2: "abcdefghijklmnopqrstuvwxyz"} + self.restrictlineedit.setValidChars (r [which]) + self.validLbl.setText ("Valid: " + self.restrictlineedit.validChars ().latin1 ()) + + +class Page2: + def __init__ (self, parent): + self.page = parent.addPage () + + x1 = 10 + y1 = 10 + x2 = 240 + y2 = 100 + + + + cbLbl = QLabel ("KComboBox", self.page) + cbLbl.setGeometry (x1, y1, 75, 20) + cbLbl.show () + + combo = KComboBox (self.page) + combo.insertStrList (["One", "Two", "Three"]) + combo.setGeometry (x1, y1 + 20, 100, 25) + combo.show () + + ccbLbl = QLabel ("KColorCombo", self.page) + ccbLbl.setGeometry (x2, y1, 100, 20) + ccbLbl.show () + + colorCombo = KColorCombo (self.page) + colorCombo.setGeometry (x2, y1 + 20, 100, 25) + colorCombo.show () + + editListBox = KEditListBox ("KEditListBox", self.page) + editListBox.setGeometry (x1, y2, 220, 175) + editListBox.insertStrList (["One", "Two", "Three"]) + editListBox.show () + + lbLbl = QLabel ("KListBox", self.page) + lbLbl.setGeometry (x2, y2, 100, 20) + lbLbl.show () + + listBox = KListBox (self.page) + listBox.setGeometry (x2, y2 + 20, 100, 100) + listBox.insertStrList (["One", "Two", "Three"]) + listBox.show () + +class Page3: + def __init__ (self, parent): + self.page = parent.addPage () + + x = 10 + y = 10 + + fontLbl = QLabel ("KFontChooser", self.page) + fontLbl.setGeometry (x, y, 95, 20) + fontLbl.show () + + fontChoose = KFontChooser (self.page) + fontChoose.setGeometry (x, y + 20, 375, 300) + fontChoose.show () + + y = y + 330 + +class Page4: + def __init__ (self, parent): + self.page = parent.addPage () + + x = 10 + y = 10 + + cbLbl = QLabel ("KColorButton", self.page) + cbLbl.setGeometry (x, y, 75, 20) + cbLbl.show () + + cb = KColorButton (self.page) + cb.setColor (QColor (255, 0, 0)) + cb.setGeometry (x, y + 20, 30, 30) + cb.show () + + ccbLbl = QLabel ("KColorCombo", self.page) + ccbLbl.setGeometry (x + 150, y, 100, 20) + ccbLbl.show () + + colorCombo = KColorCombo (self.page) + colorCombo.setGeometry (x + 150, y + 20, 100, 25) + colorCombo.show () + + y = y + 60 + + cpLbl = QLabel ("KColorPatch", self.page) + cpLbl.setGeometry (x, y, 75, 20) + cpLbl.show () + + cp = KColorPatch (self.page) + cp.setColor (QColor (255, 0, 0)) + cp.setGeometry (x, y + 20, 20, 20) + cp.show () + + x = x + 150 + + ccLbl = QLabel ("KColorCells", self.page) + ccLbl.setGeometry (x, y, 75, 20) + ccLbl.show () + + cc = KColorCells (self.page, 1, 5) + cc.setColor (0, QColor (0, 0, 0)) + cc.setColor (1, QColor (255, 0, 0)) + cc.setColor (2, QColor (0, 255, 0)) + cc.setColor (3, QColor (0, 0, 255)) + cc.setColor (4, QColor (255, 255, 255)) + cc.setGeometry (x, y + 20, 100, 20) + cc.show () + + x = 10 + y = y + 50 + + dcLbl = QLabel ("KDualColorButton", self.page) + dcLbl.setGeometry (x, y, 105, 20) + dcLbl.show () + + dc = KDualColorButton (QColor (255, 0, 0), QColor (0, 0, 0), self.page) + dc.setGeometry (x, y + 20, 40, 40) + dc.show () + + gsLbl = QLabel ("KGradientSelector", self.page) + gsLbl.setGeometry (x + 80, y + 30, 110, 20) + gsLbl.show () + + gs = KGradientSelector (self.page) + gs.setGeometry (x + 80, y + 50, 250, 20) + gs.setColors (QColor (255, 0, 0), QColor (255, 255, 0)) + gs.show () + + y = y + 80 + + hsLbl = QLabel ("KHSSelector", self.page) + hsLbl.setGeometry (x, y, 95, 20) + hsLbl.show () + + hs = KHSSelector (self.page) + hs.setGeometry (x, y + 20, 350, 80) + hs.show () + + y = y + 110 + + ptLbl = QLabel ("KPaletteTable", self.page) + ptLbl.setGeometry (x, y, 95, 20) + ptLbl.show () + + pt = KPaletteTable (self.page, 340, 24) + pt.setPalette ("Royal") + pt.setGeometry (x, y + 20, 340, 40) + pt.show () + +class Page5: + def __init__ (self, parent): + self.page = parent.addPage () + + x = 10 + y = 10 + + rpLbl = QLabel ("KRootPermsIcon", self.page) + rpLbl.setGeometry (x, y, 95, 20) + rpLbl.show () + + rp = KRootPermsIcon (self.page) + rp.setGeometry (x, y + 20, 32, 32) + rp.show () + + wpLbl = QLabel ("KWritePermsIcon", self.page) + wpLbl.setGeometry (x + 125, y, 95, 20) + wpLbl.show () + + wp = KWritePermsIcon ("/usr/bin/gcc", self.page) + wp.setGeometry (x + 125, y + 20, 32, 32) + wp.show () + + y = y + 75 + + pw1Lbl = QLabel ("KPasswordEdit - echo *", self.page) + pw1Lbl.setGeometry (x, y, 150, 20) + pw1Lbl.show () + + pw1 = KPasswordEdit (self.page, "", KPasswordEdit.OneStar) + pw1.setGeometry (x, y + 20, 100, 20) + pw1.show () + + y = y + 50 + + pw2Lbl = QLabel ("KPasswordEdit - echo ***", self.page) + pw2Lbl.setGeometry (x, y, 150, 20) + pw2Lbl.show () + + pw2 = KPasswordEdit (self.page, "", KPasswordEdit.ThreeStars) + pw2.setGeometry (x, y + 20, 100, 20) + pw2.show () + + y = y + 50 + + pw3Lbl = QLabel ("KPasswordEdit - no echo", self.page) + pw3Lbl.setGeometry (x, y, 150, 20) + pw3Lbl.show () + + pw3 = KPasswordEdit (self.page, "", KPasswordEdit.NoEcho) + pw3.setGeometry (x, y + 20, 100, 20) + pw3.show () + + y = y + 50 + + urlLbl = QLabel ("KURLLabel", self.page) + urlLbl.setGeometry (x, y, 100, 20) + urlLbl.show () + + url = KURLLabel ("http://riverbankcomputing.co.uk", "PyKDE", self.page) + url.setGeometry (x, y + 20, 100, 20) + url.setUseTips (True) + url.setTipText ("http://riverbankcomputing.co.uk") + url.show () + + x = 70 + y = y + 50 + + bbLbl = QLabel ("KButtonBox", self.page) + bbLbl.setGeometry (x, y, 75, 20) + bbLbl.show () + + bbox = KButtonBox (self.page, Qt.Horizontal) + bbox.setGeometry (x, y + 20, 300, 22) + bbox.addButton ("Button 1") + bbox.addButton ("Button 2") + bbox.addButton ("Button 3") + bbox.show () + + y = y + 50 + +# dbLbl = QLabel ("KDirectionButton", self.page) +# dbLbl.setGeometry (x, y, 95, 20) +# dbLbl.show () + +# dbUp = KDirectionButton (Qt.UpArrow, self.page) +# dbDown = KDirectionButton (Qt.DownArrow, self.page) +# dbRight = KDirectionButton (Qt.RightArrow, self.page) +# dbLeft = KDirectionButton (Qt.LeftArrow, self.page) + +# dbUp.setGeometry (x, y + 20, 22, 22) +# dbDown.setGeometry (x + 30, y + 20, 22, 22) +# dbRight.setGeometry (x + 60, y + 20, 22, 22) +# dbLeft.setGeometry (x + 90, y + 20, 22, 22) + +# dbUp.show () +# dbDown.show () +# dbRight.show () +# dbLeft.show () + + x = x + 150 + +# kbLbl = QLabel ("KKeyButton", self.page) +# kbLbl.setGeometry (x, y, 95, 20) +# kbLbl.show () + +# kb = KKeyButton (self.page) +# kb.setText ("Enter") +# kb.setGeometry (x, y + 20, 50, 32) +# kb.show () + + x = 70 + y = y + 50 + +# tbLbl = QLabel ("KTabButton", self.page) +# tbLbl.setGeometry (x, y, 95, 20) +# tbLbl.show () + +# tbUp = KTabButton (Qt.UpArrow, self.page) +# tbDown = KTabButton (Qt.DownArrow, self.page) +# tbRight = KTabButton (Qt.RightArrow, self.page) +# tbLeft = KTabButton (Qt.LeftArrow, self.page) + +# tbUp.setGeometry (x, y + 20, 22, 25) +# tbDown.setGeometry (x + 30, y + 20, 22, 25) +# tbRight.setGeometry (x + 60, y + 20, 22, 25) +# tbLeft.setGeometry (x + 90, y + 20, 22, 25) + +# tbUp.show () +# tbDown.show () +# tbRight.show () +# tbLeft.show () + +class Page6: + def __init__ (self, parent): + self.page = parent.addPage () + + x = 20 + y = 10 + + red = QColor (255, 0, 0) + green = QColor (0, 255, 0) + yellow = QColor (255, 255, 0) + blue = QColor (0, 0, 255) + + ledcolor = [red, green, yellow, blue] + ledshape = [KLed.Rectangular, KLed.Circular] + ledlook = [KLed.Flat, KLed.Raised, KLed.Sunken] + ledsize = [10, 18, 25] + self.ledlist = [] + + for look in ledlook: + for color in ledcolor: + for shape in ledshape: + for size in ledsize: + led = KLed(color, KLed.On, look, shape,self.page) + led.setGeometry (x, y, size, size) + self.ledlist.append (led) + led.show () + x = x + 50 + x = x + 50 + x = 20 + y = y + 30 + y = y + 10 + + toggle = QPushButton ("Toggle", self.page) + toggle.setGeometry (150, 400, 60, 22) + toggle.show () + + self.page.connect (toggle, SIGNAL ("clicked ()"), self.toggleClicked) + + self.page.show () + + + def toggleClicked (self): + for led in self.ledlist: + led.toggle () + +class Page7: + def __init__ (self, parent): + self.page = parent.addPage () + + x = 10 + y = 10 + + tabLbl = QLabel ("KTabCtl", self.page) + tabLbl.setGeometry (x, y, 95, 20) + tabLbl.show () + + tab = KTabCtl (self.page) + tab.setGeometry (x, y + 20, 300, 100) + + page1 = QWidget (tab) + p1Lbl = QLabel ("This is page 1", page1) + p1Lbl.setGeometry (20, 20, 100, 20) + page2 = QWidget (tab) + p2Lbl = QLabel ("This is page 2", page2) + p2Lbl.setGeometry (50, 20, 100, 20) + page3 = QWidget (tab) + p3Lbl = QLabel ("This is page 3", page3) + p3Lbl.setGeometry (20, 50, 100, 20) + + tab.addTab (page1, "Tab 1") + tab.addTab (page2, "Tab 2") + tab.addTab (page3, "Tab 3") + tab.show () + + x = 10 + y = 150 + + progLbl = QLabel ("KProgress", self.page) + progLbl.setGeometry (x, y + 50, 95, 20) + progLbl.show () + + self.p1 = KProgress (self.page) + self.p2 = KProgress (15, self.page) + self.p1.setRange (0, 25) + self.p2.setRange (0, 25) + + self.p1.setGeometry (x, y + 80, 125, 20) + self.p2.setGeometry (x, y + 120, 125, 20) + + self.p2.setPercentageVisible (0) + + self.p1.show () + self.p2.show () + + self.total = 0 + + y = y + 150 + sepLbl = QLabel ("KSeparator", self.page) + sepLbl.setGeometry (x, y, 95, 20) + sepLbl.show () + + sep = KSeparator (QFrame.HLine, self.page) + sep.setGeometry (x, y + 20, 75, 10) + sep.show () + + + self.page.show () + + self.add1 (self) + + def add1 (self, junk = 0): + self.total = self.total + 1 + self.p1.advance (1) + self.p2.advance (1) + + if self.total < 26: + QTimer.singleShot (100, self.add1) + + + +class Page8: + def __init__ (self, parent): + self.page = parent.addPage () + + x = 40 + y = 10 + + dpLbl = QLabel ("KDatePicker", self.page) + dpLbl.setGeometry (x, y, 95, 20) + dpLbl.show () + + dp = KDatePicker (self.page) + dp.setGeometry (x, y + 20, 300, 170) + dp.show () + + y = y + 210 + + dtLbl = QLabel ("KDateTable", self.page) + dtLbl.setGeometry (x, y, 95, 20) + dtLbl.show () + + dt = KDateTable (self.page) + dt.setGeometry (x, y + 20, 300, 130) + dt.show () + +class PageThisApp: + def __init__ (self, parent): + self.page = parent.addPage () + + x = 10 + y = 10 + + taLbl = QLabel ("This application uses KMainWindow as its top level widget\n and KListView in the"\ + " left-hand panel", self.page) + taLbl.setGeometry (x, y, 300, 60) + taLbl.show () + +class PageNotImpl: + def __init__ (self, parent): + self.page = parent.addPage () + + x = 10 + y = 10 + + niLbl = QLabel ("Nothing is currently implemented for this widget", self.page) + niLbl.setGeometry (x, y, 300, 20) + niLbl.show () + +class CSDlg (KDialog): + def __init__ (self, parent, name = "char select dlg", modal = False): + KDialog.__init__ (self, parent, name, modal) + + self.setGeometry (150, 50, 700, 320) + x = 10 + y = 10 + + csLbl = QLabel ("KCharSelect", self) + csLbl.setGeometry (x, y, 95, 20) + csLbl.show () + + cs = KCharSelect (self, "chselect", QString.null, QChar (' '), 0) + cs.setGeometry (x, y + 20, 680, 250) + cs.show () + + closeBtn = QPushButton ("Close", self) + closeBtn.setGeometry ( 610, 280, 60, 22) + closeBtn.show () + + self.connect (closeBtn, SIGNAL ("clicked ()"), self.closeClicked) + + def closeClicked (self): + self.done (1) + +def widKAnimWidget (parent): + parent.currentPageObj = PageNotImpl (parent) + +def widKAuthIcon (parent): + parent.currentPageObj = Page5 (parent) + +def widKButtonBox (parent): + parent.currentPageObj = Page5 (parent) + +def widKCharSelect (parent): + dlg = CSDlg (parent) + dlg.show () + +def widKColorButton (parent): + parent.currentPageObj = Page4 (parent) + +def widKColorCells (parent): + parent.currentPageObj = Page4 (parent) + +def widKColorCombo (parent): + parent.currentPageObj = Page2 (parent) + +def widKColorPatch (parent): + parent.currentPageObj = Page4 (parent) + +def widKComboBox (parent): + parent.currentPageObj = Page2 (parent) + +def widKCompletionBox (parent): + parent.currentPageObj = PageNotImpl (parent) + +def widKContainerLayout (parent): + parent.currentPageObj = PageNotImpl (parent) + +def widKCursor (parent): + parent.currentPageObj = PageNotImpl (parent) + +def widKDatePicker (parent): + parent.currentPageObj = Page8 (parent) + +def widKDateTable (parent): + parent.currentPageObj = Page8 (parent) + +def widKDirectionButton (parent): + parent.currentPageObj = Page5 (parent) + +def widKDualColorButton (parent): + parent.currentPageObj = Page4 (parent) + +def widKEdit (parent): + parent.currentPageObj = Page1 (parent) + +def widKEditListBox (parent): + parent.currentPageObj = Page2 (parent) + +def widKFontChooser (parent): + parent.currentPageObj = Page3 (parent) + +def widKHSSelector (parent): + parent.currentPageObj = Page4 (parent) + +def widKIconView (parent): + parent.currentPageObj = PageNotImpl (parent) + +def widKJanusWidget (parent): + parent.currentPageObj = PageNotImpl (parent) + +#def widKKeyButton (parent): +# parent.currentPageObj = Page5 (parent) + +def widKKeyChooser (parent): + parent.currentPageObj = PageNotImpl (parent) + +def widKLed (parent): + parent.currentPageObj = Page6 (parent) + +def widKLineEdit (parent): + parent.currentPageObj = Page1 (parent) + +def widKListBox (parent): + parent.currentPageObj = Page2 (parent) + +def widKListView (parent): + parent.currentPageObj = PageThisApp (parent) + +def widKNumInput (parent): + parent.currentPageObj = Page1 (parent) + +def widKPaletteTable (parent): + parent.currentPageObj = Page4 (parent) + +def widKPasswordEdit (parent): + parent.currentPageObj = Page5 (parent) + +def widKProgress (parent): + parent.currentPageObj = Page7 (parent) + +def widKRootPixmap (parent): + parent.currentPageObj = PageNotImpl (parent) + +def widKMainWindow (parent): + parent.currentPageObj = PageThisApp (parent) + +def widKRestrictedLine (parent): + parent.currentPageObj = Page1 (parent) + +def widKRuler (parent): + parent.currentPageObj = PageNotImpl (parent) + +def widKSelector (parent): + parent.currentPageObj = Page4 (parent) + +def widKSeparator (parent): + parent.currentPageObj = Page7 (parent) + +def widKSqueezedTextLabel (parent): + parent.currentPageObj = Page1 (parent) + +def widKTabButton (parent): + parent.currentPageObj = Page5 (parent) + +def widKTabCtl (parent): + parent.currentPageObj = Page7 (parent) + +def widKTextBrowser (parent): + parent.currentPageObj = PageNotImpl (parent) + +def widKURLLabel (parent): + parent.currentPageObj = Page5 (parent) + + +if __name__ == "__main__": + print + print "Please run uisampler.py" + print \ No newline at end of file diff --git a/examples/uimodules/uixml.py b/examples/uimodules/uixml.py new file mode 100644 index 0000000..baa6c86 --- /dev/null +++ b/examples/uimodules/uixml.py @@ -0,0 +1,45 @@ +import os + +from qt import QLabel + +from kdecore import KApplication + +class PageLaunch: + def __init__ (self, parent): + self.page = parent.addPage () + + x = 10 + y = 10 + + launchLbl = QLabel ("Launching application ... please wait\n\nClose launched application to continue", self.page) + launchLbl.setGeometry (x, y, 300, 80) + launchLbl.show () + + self.page.show () + + KApplication.kApplication ().processEvents () + +def xmlKActionCollection (parent): + parent.currentPageObj = PageLaunch (parent) + os.system ("python xmlmenudemo.py") + +def xmlKEditToolbar (parent): + parent.currentPageObj = PageLaunch (parent) + os.system ("python xmlmenudemo.py") + +def xmlKEditToolbarWidget (parent): + parent.currentPageObj = PageLaunch (parent) + os.system ("python xmlmenudemo.py") + +def xmlKXMLGUIBuilder (parent): + parent.currentPageObj = PageLaunch (parent) + os.system ("python xmlmenudemo.py") + +def xmlKXMLGUIClient (parent): + parent.currentPageObj = PageLaunch (parent) + os.system ("python xmlmenudemo.py") + +def xmlKXMLGUIFactory (parent): + parent.currentPageObj = PageLaunch (parent) + os.system ("python xmlmenudemo.py") + diff --git a/examples/uiqxembed.py b/examples/uiqxembed.py new file mode 100644 index 0000000..4f223b7 --- /dev/null +++ b/examples/uiqxembed.py @@ -0,0 +1,119 @@ +#!/usr/bin/env python +""" + +""" +import sys + +from qt import QIconSet, QProcess, QTimer, SIGNAL, SLOT + +from kdecore import KAboutData, KApplication, KCmdLineArgs, KGlobal, KIcon +from kdecore import KWin, KWinModule +from kdeui import KComboBox, KMainWindow, KPushButton, QXEmbed + + +## add the missing items to the pyuic-generated module +import qxembedexample +qxembedexample.KComboBox = KComboBox +qxembedexample.KPushButton = KPushButton + +from qxembedexample import QXEmbedExample + + +def getIcon(name, group=KIcon.NoGroup, size=KIcon.SizeSmall): + """ returns a kde icon by name + + """ + return KGlobal.instance().iconLoader().loadIcon(name, group, size) + +def getIconSet(name, group=KIcon.NoGroup, size=KIcon.SizeSmall): + """ returns a kde icon set by name + + """ + return KGlobal.instance().iconLoader().loadIconSet(name, group, size) + + +def getWindow(pid): + """ return a window info object for the process id (or None) + + """ + for winid in KWinModule().windows(): + info = KWin.info(winid) + if pid == info.pid: + return info + + +class ExampleForm(QXEmbedExample): + """ wraps the pyuic generated form class with our behavior + + """ + def __init__(self, parent): + QXEmbedExample.__init__(self, parent) + combo = self.appNameCombo + items = [(idx, '%s' % combo.text(idx)) for idx in range(combo.count())] + for idx, name in items: + combo.changeItem(getIcon(name), name, idx) + self.mainTabs.setTabIconSet(self.tab, getIconSet('help')) + self.launchButton.setIconSet(getIconSet('exec')) + self.launchButton.setText('Launch and Embed') + + def launchApp(self): + """ launch the process selected in the combo + + """ + name = self.appNameCombo.currentText() + self.proc = proc = QProcess() + proc.addArgument(name) + code = proc.start() + if code: + pid = proc.processIdentifier() + self.launchPid = pid ## cheap + QTimer.singleShot(2000, self.embedLaunchedWindow) + else: + print 'failed to start %s' % name + return + + def embedLaunchedWindow(self): + """ embed the window of the last launched pid + + """ + pid = self.launchPid + winobj = getWindow(pid) + if winobj: + tabs = self.mainTabs + embedded = QXEmbed(self) + caption = '%s (%s)' % (winobj.name, pid, ) + tabs.insertTab(embedded, caption) + embedded.embed(winobj.win) + tabs.showPage(embedded) + pxm = KWin.icon(winobj.win) + tabs.setTabIconSet(embedded, QIconSet(pxm)) + + +class ExampleMain(KMainWindow): + """ an example main window + + """ + def __init__ (self, *args): + KMainWindow.__init__(self, *args) + self.setGeometry(0, 0, 400, 400) + self.embed = embed = ExampleForm(self) + self.setCentralWidget(embed) + + +if __name__ == '__main__': + aname = 'PyKDE QXEmbed Sample' + desc = 'A Simple PyKDE QXEmbed Sample' + ver = '1.0' + lic = KAboutData.License_GPL + author = 'Troy Melhase' + authormail = 'troy@gci.net' + + about = KAboutData(aname, aname, ver, desc, lic, '%s (c) 2004' % authormail) + about.addAuthor(author, 'hi, mom!', authormail) + about.addAuthor ('Jim Bublitz', 'For PyKDE', 'jbublitz@nwinternet.com') + KCmdLineArgs.init(sys.argv, about) + app = KApplication() + mainWindow = ExampleMain() + mainWindow.show() + app.connect(app, SIGNAL('lastWindowClosed()'), app, SLOT('quit()')) + app.exec_loop() diff --git a/examples/uisampler.py b/examples/uisampler.py new file mode 100644 index 0000000..00dd006 --- /dev/null +++ b/examples/uisampler.py @@ -0,0 +1,227 @@ +import sys +sys.path.append ("./uimodules") + +from qt import QSplitter, QWidgetStack, QWidget, QListViewItem, SIGNAL, QCString , QScrollView, QRect, Qt + +from kdecore import KApplication, KCmdLineArgs, KAboutData +from kdeui import KMainWindow, KListView + +from uidialogs import * +from uiwidgets import * +from uimenus import * +from uixml import * +from uimisc import * + +False = 0 +True = not False + +listItems = {"Dialogs": + {"KAboutDialog": ["KAboutApplication", "KAboutContainer", "KImageTrackLabel",\ + "KAboutContainerBase", "KAboutContributor", "KAboutWidget"],\ + "KAboutKDE": [],\ + "KBugReport": [],\ + "KColorDialog": [],\ + "KDialog": [],\ + "KDialogBase": ["KDialogBaseButton", "KDialogBase::SButton", "KDialogBaseTile"],\ + "KFontDialog": [],\ + "KKeyDialog": [],\ + "KLineEditDlg": [],\ + "KMessageBox": [],\ + "KPasswordDialog": [],\ + "KWizard": []},\ + "Widgets": + {"KAnimWidget": [],\ + "KAuthIcon": ["KRootPermsIcon", "KWritePermsIcon"],\ + "KButtonBox": [],\ + "KCharSelect": ["KCharSelectTable"],\ + "KColorButton": [],\ + "KColorCells": [],\ + "KColorCombo": [],\ + "KColorPatch": [],\ + "KComboBox": [],\ + "KCompletionBox": [],\ + "KContainerLayout": ["KContainerLayout::KContainerLayoutItem"],\ + "KCursor": [],\ + "KDatePicker": ["KDateInternalMonthPicker", "KDateInternalYearSelector"],\ + "KDateTable": [],\ + "KDualColorButton": [],\ + "KEdit": ["KEdFind", "KEdGotoLine", "KEdReplace"],\ + "KEditListBox": [],\ + "KFontChooser": [],\ + "KHSSelector": [],\ + "KIconView": [],\ + "KJanusWidget": ["KJanusWidget::IconListBox"],\ + "KKeyChooser": [],\ + "KLed": [],\ + "KLineEdit": [],\ + "KListBox": [],\ + "KListView": [],\ + "KNumInput": ["KDoubleNumInput", "KIntNumInput"],\ + "KPaletteTable": [],\ + "KPasswordEdit": [],\ + "KProgress": [],\ + "KRootPixmap": [],\ + "KMainWindow": [],\ + "KRestrictedLine": [],\ + "KRuler": [],\ + "KSelector": ["KGradientSelector", "KValueSelector", "KHSSelector", "KXYSelector"],\ + "KSeparator": [],\ + "KSqueezedTextLabel": [],\ + "KTabCtl": [],\ + "KTextBrowser": [],\ + "KURLLabel": []},\ + "XML": + {"KActionCollection": [],\ + "KEditToolbar": [],\ + "KEditToolbarWidget": [],\ + "KXMLGUIBuilder": [],\ + "KXMLGUIClient": ["KXMLGUIClient::DocStruct"],\ + "KXMLGUIFactory": []},\ + "Menus/Toolbars": + {"KAccelMenu": [],\ + "KAction": ["KFontAction", "KFontSizeAction", "KListAction", "KRecentFilesAction", "KRadioAction",\ + "KSelectAction", "KToggleAction"],\ + "KActionMenu": [],\ + "KActionSeparator": [],\ + "KContextMenuManager": [],\ + "KDCOPActionProxy": [],\ + "KHelpMenu": [],\ + "KMenuBar": [],\ + "KPanelApplet": [],\ + "KPanelExtension": [],\ + "KPanelMenu": [],\ + "KPopupFrame": [],\ + "KPopupMenu": [],\ + "KPopupTitle": [],\ + "KStatusBar": [],\ + "KStatusBarLabel": [],\ + "KStdAction": [],\ + "KToolBar": ["KToolBarButton", "KToolBarButtonList", "KToolBarPopupAction",\ + "KToolBarRadioGroup", "KToolBarSeparator"],\ + "KWindowListMenu": []},\ + "Other": + {"KAlphaPainter": [],\ + "KCModule": [],\ + "KColor": [],\ + "KColorDrag": [],\ + "KCommand": ["KMacroCommand"],\ + "KCommandHistory": [],\ + "KDateValidator": [],\ + "KDockWindow": ["KDockButton_Private - KPanelMenu", "KDockButton_Private",\ + "KDockSplitter", "KDockTabCtl_PrivateStruct", "KDockWidgetAbstractHeader",\ + "KDockWidgetAbstractHeaderDrag", "KDockWidgetHeader",\ + "KDockWidgetHeaderDrag", "KDockWidgetPrivate"],\ + "KFloatValidator": [],\ + "KIntValidator": [],\ + "KPixmapIO": [],\ + "KSharedPixmap": [],\ + "KSystemTray": [],\ + "KThemeBase": ["KThemeCache", "KThemePixmap", "KThemeStyle"],\ + "QXEmbed": []}} + +prefix = {"Dialogs": "dlg", "Widgets": "wid", "XML": "xml", "Menus/Toolbars": "menu", "Other": "misc"} + +# The following leave about 375 x 390 for the rt hand panel +mainGeom = QRect (0, 0, 640, 500) +treeWidth = 220 + +blankMsg = """ UISampler - provides examples of PyKDE widgets + +Select a dialog/widget/menu/etc example from the tree at left +""" + + +class MainWin (KMainWindow): + def __init__ (self, *args): + apply (KMainWindow.__init__, (self,) + args) + + self.setCaption ("Samples of PyKDE widget usage") + self.setGeometry (mainGeom) + + # create the main view - list view on the left and an + # area to display frames on the right + self.mainView = QSplitter (self, "main view") + self.tree = KListView (self.mainView, "tree") + self.page = QWidgetStack (self.mainView, "page") + self.blankPage = QWidget (self.page, "blank") + self.blankPage.setGeometry (0, 0, 375, 390) + self.blankPage.setBackgroundMode (QWidget.PaletteBase) + + blankLbl = QLabel (blankMsg, self.blankPage) + blankLbl.setGeometry (40, 10, 380, 150) + blankLbl.setBackgroundMode (QWidget.PaletteBase) + + blankPM = QPixmap ("pytestimage.png") + pmLbl = QLabel ("", self.blankPage) + pmLbl.setPixmap (blankPM) + pmLbl.setGeometry (40, 160, 300, 200) + pmLbl.setBackgroundMode (QWidget.PaletteBase) + + self.page.addWidget (self.blankPage, 1) + self.page.raiseWidget (1) + + self.setCentralWidget (self.mainView) + + self.initListView () + self.connect (self.tree, SIGNAL ("clicked (QListViewItem *)"), self.lvClicked) + + self.edit = None + self.currentPageObj = None + + def initListView (self): + self.tree.addColumn ("Category", treeWidth - 21) +# self.tree.setMaximumWidth (treeWidth) + self.mainView.setSizes ([treeWidth, 375]) + self.tree.setRootIsDecorated (True) + self.tree.setVScrollBarMode (QScrollView.AlwaysOn) + topLevel = listItems.keys () + for item_1 in topLevel: + parent = QListViewItem (self.tree, item_1) + secondLevel = listItems [item_1].keys () + for item_2 in secondLevel: + child = QListViewItem (parent, item_2) + for item_3 in listItems [item_1][item_2]: + QListViewItem (child, item_3) + + def lvClicked (self, lvItem): + if not lvItem: + return + + if lvItem.text (0).latin1 () in listItems.keys (): + return + + p = lvItem.parent () + if p.text (0).latin1 () in listItems.keys (): + pfx = prefix [p.text (0).latin1 ()] + funcCall = pfx + lvItem.text (0).latin1 () + "(self)" + else: + pfx = prefix [p.parent ().text (0).latin1 ()] + funcCall = pfx + lvItem.parent ().text (0).latin1 () + "(self)" + + eval (funcCall) + + def addPage (self): + self.edit = None + self.currentPageObj = None + current = self.page.widget (2) + if current: + self.page.removeWidget (current) + del current + + newPage = QWidget (self.page) + newPage.setGeometry (0, 0, 375, 390) +# newPage.setBackgroundMode (QWidget.PaletteBase) + self.page.addWidget (newPage, 2) + self.page.raiseWidget (2) + + return newPage + + +#-------------------- main ------------------------------------------------ + +appName = "UISampler" +app = KApplication (sys.argv, appName) +mainWindow = MainWin (None, "main window") +mainWindow.show() +app.exec_loop() + diff --git a/examples/xmlmenudemo.py b/examples/xmlmenudemo.py new file mode 100644 index 0000000..ab91dd5 --- /dev/null +++ b/examples/xmlmenudemo.py @@ -0,0 +1,291 @@ +""" +This template constructs an application with menus, toolbar and statusbar. +It uses KDE classes and methods that simplify the task of building and +operating a GUI. It is recommended that this approach be used, rather +than the primitive approach in menuapp1.py +""" + +""" +Copyright 2003 Jim Bublitz + +Terms and Conditions + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to +deal in the Software without restriction, including without limitation the +rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +sell copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +Except as contained in this notice, the name of the copyright holder shall +not be used in advertising or otherwise to promote the sale, use or other +dealings in this Software without prior written authorization from the +copyright holder. +""" + + +False = 0 +True = not False + + +import sys, os + +from qt import QPopupMenu, SIGNAL, QLabel, QIconSet + +from kdecore import KApplication, KCmdLineArgs, KAboutData, i18n, KIcon, KIconLoader, KShortcut, KGlobal +from kdeui import KMainWindow, KMessageBox, KStdAction, KAction, KToggleAction, KFontSizeAction, KFontAction, KRadioAction,\ + KActionSeparator, KActionMenu, KWindowListMenu, KXMLGUIClient, KActionCollection + +STATUSBAR_LEFT = 1 +STATUSBAR_MIDDLE = 2 +STATUSBAR_RIGHT = 3 + +class MainWin (KMainWindow): + def __init__ (self, *args): + apply (KMainWindow.__init__, (self,) + args) + + self.initActions () + self.setGeometry (0, 0, 350, 200) + + # The second arg of createGUI needs to be 0 (or False) + # to enable XMLGUI features like ActionList (in 'dynamicActions') + # If the default is used (True), the dynamic actions will not + # appear in the menus + self.createGUI (os.path.join (mainpath, "xmlmenudemoui.rc"), 0) + + self.dynamicActions() + + # Can't do this until the toolBar has been created in createGUI + stretchlbl = QLabel ("", self.toolBar ()) + self.toolBar ().setStretchableWidget (stretchlbl) + + self.initStatusBar () + + self.saveAction.setEnabled (False) + self.saveAsAction.setEnabled (False) + + def initActions (self): + # This is used in all of the KAction/KStdAction constructors -- + # Seems more efficient to only do the call once + acts = self.actionCollection () + + # This is used often enough, we just define it here + scNull = KShortcut.null () + + # "File" menu items + self.newAction = KStdAction.openNew (self.slotNew, acts) + self.openAction = KStdAction.open (self.slotOpen, acts) + self.saveAction = KStdAction.save (self.slotSave, acts) + self.saveAsAction = KStdAction.saveAs (self.slotSaveAs, acts) + self.printAction = KStdAction.print_ (self.slotPrint, acts) + self.quitAction = KStdAction.quit (self.slotQuit, acts) + + # "Edit" menu items + self.undoAction = KStdAction.undo (self.slotUndo, acts) + self.redoAction = KStdAction.redo (self.slotRedo, acts) + self.cutAction = KStdAction.cut (self.slotCut, acts) + self.copyAction = KStdAction.copy (self.slotCopy, acts) + self.pasteAction = KStdAction.paste (self.slotPaste, acts) + self.findAction = KStdAction.find (self.slotFind, acts) + self.findNextAction = KStdAction.findNext (self.slotFindNext, acts) + self.replaceAction = KStdAction.replace (self.slotReplace, acts) + + # NOTE!!!! You must specify a parent and name for the action object in its constructor + # Normally in a constructor like + # + # someObject (QWidget *parent = 0, const char *name = 0) + # + # the parent may or may not be assigned, but widgets usually ignore the + # name argument. For an action of *any* type (other than KStdAction), + # the 'name' argument is what is used to load the action into the menus + # and toolBar (in the line below, "specialActionName"). The XMLGUI mechanism + # has no way to find out about the action objects except through their + # object names - the variable the object is assigned to ('self.specialAction') + # has no meaning in XNLGUI terms except through the objects 'name' member value + + self.specialAction = KAction (i18n ("Special"), scNull, self.slotSpecial, acts, "specialActionName") + + # Demo menu items + + # KToggleAction has an isChecked member and emits the "toggle" signal + self.toggle1Action = KToggleAction ("Toggle 1", scNull, acts, "toggle1Action") + self.toggle2Action = KToggleAction ("Toggle 2", scNull, self.slotToggle2, acts, "toggle2Action") + + # A separator - create once/use everywhere + self.separateAction = KActionSeparator (acts, "separateAction") + + # Font stuff in menus or toolbar + self.fontAction = KFontAction ("Font", scNull, acts, "fontAction") + self.fontSizeAction = KFontSizeAction ("Font Size", scNull, acts, "fontSizeAction") + + self.fontAction.setComboWidth (150) + self.fontSizeAction.setComboWidth (75) + + # Need to assign an icon to actionMenu below + icons = KIconLoader () + iconSet = QIconSet (icons.loadIcon ("viewmag", KIcon.Toolbar)) + + # Nested menus using KActions (also nested on toolbar) + self.actionMenu = KActionMenu ("Action Menu", acts, "actionMenu") + self.actionMenu.setIconSet (iconSet) + + # By using KStdAction here, the XMLGUI mechanism will automatically + # create a 'View' menu and insert "Zoom In" and "Zoom Out" objects + # in it. This happens because before parsing our *ui.rc file, + # the standard KDE file config/ui/ui_standards.rc is parsed, and + # then our *ui.rc file is merged with the result - this gives KDE + # menus and toolBars a standard "look" and item placement (including + # separators). Creating the KStdActions alone is sufficient - you + # could delete their references from the *ui.rc file and the menu + # items would still be created via ui_standards.rc + self.actionMenu.insert (KStdAction.zoomIn (self.slotZoomIn, acts)) + self.actionMenu.insert (KStdAction.zoomOut (self.slotZoomOut, acts)) + + self.radio1Action = KRadioAction ("Radio 1", scNull, self.slotRadio, acts, "radio1") + self.radio1Action.setExclusiveGroup ("Radio") + self.radio1Action.setChecked (1) + self.radio2Action = KRadioAction ("Radio 2", scNull, self.slotRadio, acts, "radio2") + self.radio2Action.setExclusiveGroup ("Radio") + self.radio3Action = KRadioAction ("Radio 3", scNull, self.slotRadio, acts, "radio3") + self.radio3Action.setExclusiveGroup ("Radio") + + + def initStatusBar (self): + self.statusBar ().insertItem ("", STATUSBAR_LEFT, 1000, True) + self.statusBar ().insertItem ("", STATUSBAR_MIDDLE, 1000, True) + self.statusBar ().insertItem ("", STATUSBAR_RIGHT, 1000, True) + + def dynamicActions (self): + # This creates something like a 'recent files list' in the 'File' menu + # (There is a KRecentFilesAction that probably should be used instead, + # but this demos the use of action lists) + # The code here corresponds to the entry + # in the rc file + + # Just fake some filenames for now + fakeFiles = ["kaction.sip", "kxmlguiclient.sip"] + + # Clear the old entries, so we don't end up accumulating entries in the menu + self.unplugActionList("recent"); + self.dynamicActionsList = [] + + # Create a KAction for each entry and store the KActions in a list + # Use 'None' for the KActionCollection argument in the KAction constructor + # in this case only + for i in range (len (fakeFiles)): + act = KAction (i18n (" ".join (["&" + str (i), fakeFiles [i]])), KShortcut.null (),\ + self.slotFake, None, fakeFiles [i][:-4] + "open") + self.dynamicActionsList.append(act) + + # Update the menu with the most recent KActions + self.plugActionList("recent", self.dynamicActionsList) + + +#-------------------- slots ----------------------------------------------- + + def slotFake (self): + # sender () should be called before anything else + # (including "notImpl") so the correct sender + # value is returned + sender = self.sender ().name () + self.notImpl ("Recent files (%s)" % sender) + + # 'id' is for toolbar button signals - ignored for menu signals + def slotNew (self, id = -1): + self.notImpl ("New") + + def slotOpen(self, id = -1): + self.notImpl ("Open") + + def slotSave (self, id = -1): + self.notImpl ("Save") + + def slotSaveAs (self): + self.notImpl ("Save As") + + def slotPrint (self): + self.notImpl ("Print") + + def slotQuit (self): + self.notImpl ("Quit") + + def slotUndo (self): + self.notImpl ("Undo") + + def slotRedo (self): + self.notImpl ("Redo") + + def slotCut (self, id = -1): + self.notImpl ("Cut") + + def slotCopy (self, id = -1): + self.notImpl ("Copy") + + def slotPaste (self, id = -1): + self.notImpl ("Paste") + + def slotFind (self): + self.notImpl ("Find") + + def slotFindNext (self): + self.notImpl ("Find Next") + + def slotReplace (self): + self.notImpl ("Replace") + + def slotSpecial (self): + self.notImpl ("Special") + + def slotToggle2 (self): + self.notImpl ("Toggle") + + def slotZoomIn (self): + self.notImpl ("Zoom In") + + def slotZoomOut (self): + self.notImpl ("Zoom Out") + + def slotRadio (self): + sender = self.sender ().name () + self.notImpl ("Radio %s" % sender [-1]) + + def notImpl (self, item = "Feature"): + self.statusBar ().changeItem ("%s not implemented" % item, STATUSBAR_LEFT) + KMessageBox.error (self, "%s not implemented" % item, "Not Implemented") + self.statusBar ().changeItem ("", STATUSBAR_LEFT) + + +#-------------------- main ------------------------------------------------ + +description = "A basic application template" +version = "1.0" + +# The appName (xmlmenudemo - first argument) is required +# if the program is to automatically locate it *ui.rc file +aboutData = KAboutData ("xmlmenudemo", "xmlmenudemo",\ + version, description, KAboutData.License_GPL,\ + "(C) 2003 whoever the author is") + +aboutData.addAuthor ("author1", "whatever they did", "email@somedomain") +aboutData.addAuthor ("author2", "they did something else", "another@email.address") + +mainpath = os.path.dirname (os.path.abspath (sys.argv[0])) +KCmdLineArgs.init (sys.argv, aboutData) + +KCmdLineArgs.addCmdLineOptions ([("+files", "File to open")]) + +app = KApplication () +mainWindow = MainWin (None, "main window") +mainWindow.show() +app.exec_loop() diff --git a/examples/xmlmenudemoui.rc b/examples/xmlmenudemoui.rc new file mode 100644 index 0000000..58f07cf --- /dev/null +++ b/examples/xmlmenudemoui.rc @@ -0,0 +1,49 @@ + + + &File + + + + + + + + + &Edit + + + + + + + + + + + &Demo + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/extensions/dcopexport.py b/extensions/dcopexport.py new file mode 100644 index 0000000..4b55223 --- /dev/null +++ b/extensions/dcopexport.py @@ -0,0 +1,199 @@ +""" +Copyright 2004 Jim Bublitz + +Terms and Conditions + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to +deal in the Software without restriction, including without limitation the +rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +sell copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +Except as contained in this notice, the name of the copyright holder shall +not be used in advertising or otherwise to promote the sale, use or other +dealings in this Software without prior written authorization from the +copyright holder. +""" + +""" +This is a re-implementation in Python of pcop.cpp written by Torben Weis +and Julian Rockey, modified for Python and PyKDE. + +To "DCOP-enable" an application, subclass DCOPExObj (be sure to call the +base class' __init__ method) and use 'addMethod' to identify the methods +which will be exposed via DCOP along with names of the Python methods that +implement the exposed methods. + +A DCOP client application when doing DCOPCLient.call (...) will end up +running the 'process' method which demarshalls the arguments, calls the +specified Python method with the arg values passed in, and marshalls the +return value to be returned to the caller. + +DCOPExMeth is basically a data structure to hold the parsed method info +(name, arg list, return type, signature) + +This module requires the dcopext module, but only for the numericTypes and +stringTypes lists +""" + + +from dcop import DCOPObject, DCOPClient +from kdecore import dcop_add, dcop_next +from qt import QString, QCString, QDataStream, IO_ReadOnly, IO_WriteOnly + +numericTypes = ["char", "bool", "short", "int", "long", "uchar", "ushort", "uint", "ulong", + "unsigned char", "unsigned short", "unsigned int", "unsigned long", + "Q_INT32", "pid_t", "float", "double"] +stringTypes = ["QString", "QCString"] + +class DCOPExObj (DCOPObject): + def __init__ (self, objid = None): + if isinstance (objid, str): + DCOPObject.__init__ (self, objid) + else: + DCOPObject.__init__ (self) + + self.methods = {} + + def process (self, meth, data, replyType, replyData): + # normalize the method signature received + meth = str (DCOPClient.normalizeFunctionSignature (meth)).replace (">", "> ") + + # see if this method is available from us via DCOP + # if we don't have it, maybe DCOPObject already provides it (eg - qt object) + if not self.matchMethod (meth): + return DCOPObject.process(self, meth, data, replyType, replyData); + + # demarshall the arg list for the actual method call and call the method + s = QDataStream (data, IO_ReadOnly) + arglist = [] + count = len (self.method.argtypes) + if count == 0: + result = self.method.pymethod () + else: + for i in range (len (self.method.argtypes)): + arglist.append (dcop_next (s, QCString (self.method.argtypes [i]))) + + result = self.method.pymethod (*arglist) + + # marshall the result as 'replyData' + if self.method.rtype != "void": + s = QDataStream (replyData, IO_WriteOnly) + if self.method.rtype in numericTypes: + dcop_add (s, result, self.method.rtype) + elif self.method.rtype in stringTypes and isinstance (result, str): + dcop_add (s, eval ("%s('''%s''')" % (self.method.rtype, result))) + elif self.method.rtype.startswith ("QMap") or self.method.rtype.startswith ("QValueList"): + dcop_add (params, args [i], self.argtypes [i]) + else: + if not result: + dcop_add (s, "") + else: + dcop_add (s, result) + + # use append because we want to return the replyType reference, + # not a new QCString + replyType.append (self.method.rtype) + + # success + return True + + def addMethod (self, signature, pymethod): + """ + add a method to the dict - makes it available to DCOP + signature - a string representing the C++ form of the method declaration + with arg names removed (eg + pymethod - the Python method corresponding to the method in signature + + example: + def someMethod (a, b): + return str (a + b) + + signature = "QString someMethod (int, int)" + pymethod = someMethod + self.addMethod (signature, pymethod) + + note that in this case you could add a second entry: + + self.addMethod ("QString someMethod (float, float)", someMethod) + + pymethod can also be a class method, for example - self.someMethod or + someClass.someMethod. In the second case, someClass has to be an instance + of a class (perhaps SomeClass), not the class itself. + + self.methods is a dict holding all of the methods exposed, indexed by + method signature. In the example above, the signature would be: + + someMethod(QString,QString) + + or everything but the return type, which is stored in the dict entry. + The dict entry is a DCOPExMeth instance. + """ + method = DCOPExMeth (signature, pymethod) + if method.sig: + self.methods [method.sig] = method + return method.sig != None + + def matchMethod (self, meth): + # find the method in the dict if it's there + self.method = None + if meth in self.methods: + self.method = self.methods [meth] + return self.method != None + + def functions (self): + # build the list of methods exposed for 'remoteFunctions' calls + # from the entries in the self.methods dict + funcs = DCOPObject.functions (self) + for func in self.methods.keys (): + funcs.append (" ".join ([self.methods [func].rtype, func])) + return funcs; + +class DCOPExMeth: + """ + Encapsulates all of the method data - signature, arg list, return type + and corresponding Python method to be called + """ + def __init__ (self, method, pymethod): + self.pymethod = pymethod + if not self.parseMethod (method): + self.fcnname = self.sig = self.rtype = self.argtypes = None + + def parseMethod (self, method): + # strip whitespace + method = str (DCOPClient.normalizeFunctionSignature (method)).replace (">", "> ") + + # the return type (rtype) and signature (sig) + self.rtype, tail = method.split (" ", 1) + self.sig = tail + if not tail: + return False + self.rtype = self.rtype.strip () + + i = tail.find ("(") + if i < 1: + return False + + # the name of the method + self.fcnname = tail [:i].strip () + "(" + + # the list of arg types + self.argtypes = [] + args = tail [i + 1 : -1].split (",") + if args and args != [""]: + for arg in args: + self.argtypes.append (arg.strip ()) + + return True diff --git a/extensions/dcopext.py b/extensions/dcopext.py new file mode 100644 index 0000000..ba13871 --- /dev/null +++ b/extensions/dcopext.py @@ -0,0 +1,723 @@ +# -*- coding: ISO-8859-1 -*- + +""" +Copyright 2004 Jim Bublitz (original author) + 2006 Mathias Panzenböck (panzi) + +Terms and Conditions + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to +deal in the Software without restriction, including without limitation the +rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +sell copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +Except as contained in this notice, the name of the copyright holder shall +not be used in advertising or otherwise to promote the sale, use or other +dealings in this Software without prior written authorization from the +copyright holder. +""" + +import re +from dcop import DCOPClient +from qt import QString, QCString, QByteArray, QDataStream, IO_ReadOnly, IO_WriteOnly +from kdecore import dcop_add, dcop_next + +# XXX: 64 bit integers might be handeld wrong! pythons int is AFAIK 32 bit, +# but pythons long is a arbitrary-precision integer. how to handle that? +# +# I think 64 bit types would be: +# long long, unsigned long long, long long int, unsigned long long int, +# Q_LLONG, Q_ULLONG, Q_INT64, Q_UINT64 +# +# and on some (most?) systems: +# QtOffset + +# add complex? complex is c99, not c++ +# but python has a complex type +POD = set(['char','short','int','long','float','double']) +typedefIntTypes = set(["uchar", "ushort", "uint", "ulong", + "Q_INT8", "Q_INT16", "Q_INT32", "Q_LONG", + "Q_UINT8", "Q_UINT16", "Q_UINT32", "Q_ULONG", + "sitze_t", "ssize_t", "int8_t", "int16_t", "int32_t", + "uint8_t", "uint16_t", "uint32_t", "pid_t", "uid_t", + "off_t"]) +# XXX string and std::string too? +stringTypes = set(["QString", "QCString"]) +pythonStringTypes = set([QString, QCString, str]) +stringTypesDict = {"QString":QString,"QCString":QCString,"str":str,"unicode":unicode} + +VOID = 0 +BOOLEAN = 1 # XXX bool is not supported by dcop_add, but maybe some time... +INTEGER = 2 +FLOAT = 3 +STRING = 4 +CLASS = 5 + +""" +(Most of this code is adapted from pydcop in kde-bindings, written by +Torben Weis and Julian Rockey) + +The three classes below (DCOPApp, DCOPObj and DCOPMeth) +allow transparent Python calls to DCOP methods. For example: + + d = DCOPApp ("kicker", dcop) + +(where "kicker" is the complete name of an application and 'dcop' is +the dcopClient instance owned by the KApplication creating the DCOPApp +instance) creates a DCOPApp instance. All of the classes in this +file "borrow" a DCOPClient instance from the calling application. + + d.objects + +will return a list of the DCOP objects the application supplies. + + o = d.object ("Panel") + +will return a DCOPObj corresponding to applications "Panel" DCOP object. + +Similarly: + + o.methods + +will return a list of the methods the object supplies and + + m = o.method ("panelSize") + +will return a DCOPMeth corresponding to Panel's panelSize() method. +The m instance also holds the methods return type, list of argument types +(argtypes) and argument names (argnames). + + m.valid + +is a boolean which indicates if the method encapsulated by m is a valid +method for the application/object specified. + +However it isn't necessary to explicitly create the DCOPObj and DCOPMeth. + + d.Panel.panelSize.valid + +for example, will also indicate if the method is valid without creating the +intermediate 'o' and 'm' instances explicitly. + + d = DCOPApp ("kicker", dcop) + ok, res = d.Panel.panelSize () + +is all the code necessary to perform the indicated DCOP call and return the +value the call returns. In this case, panelSize takes no arguments and +returns an int. 'ok' returns the status of the DCOP call (success = True, +failure = False). + + ok = d.Panel.addURLButton (QString ("http://www.kde.org")) + +would call addURLButton with the required argument, and return nothing but the DCOP call +status(since its return type is 'void'). + +Note that to instantiate a DCOPObj directly, you need to have a valid DCOPApp +to pass to DCOPObj's __init__ method. Similarly, DCOPMeth requires a valid DCOPOBject. +For example: + + d = DCOPApp ("kicker", dcop) + o = DCOPObj (d, "Panel") + m = DCOPMeth (o, "panelSize") + +or + + m = DCOPMeth (DCOPObj (DCOPApp ("kicker", dcop), "Panel"), "panelSize") + +""" + +# support stuff: +def _xiter(*seqences): + iters = [iter(seq) for seq in seqences] + + try: + while True: + yield [it.next() for it in iters] + + except StopIteration: + pass + +def isStringType(s): + for stringType in pythonStringTypes: + if isinstance(s,stringType): + return True + return False + +# method syntax: +# -------------- +# method ::= rtype identifier( args ) +# rtype ::= "void" | type +# identifier ::= [_a-zA-Z][_a-zA-Z0-9]* +# args ::= ( arg ("," arg)* )? +# arg ::= type identifier? +# type ::= namespace typespec | POD +# POD ::= ( "unsigned" | "signed" )? identifier +# namespace ::= (identifier "::")* | "::" +# typespec ::= identifier ( "<" tpyelist ">" )? +# typelist ::= (type | int) ("," (type | int) )* +# int ::= "0x" [0-9a-fA-F]+ | [0-9]+ + +class MethodParser(object): + ident_r = re.compile("[_a-zA-Z][_a-zA-Z0-9]*") + num_r = re.compile("0x[0-0a-fA-F]+|[0-9]+") + + def __init__(self,method): + self.method = str(method) + self.rtype = None + self.name = None + self.args = [] + + self.parseMethod() + + def __repr__(self): + return "%s(%s)" % (self.__class__.__name__, repr(self.method)) + + def getDecl(self): + return ''.join([self.name, '(', ','.join(argtp for (argtp, kind), argname in self.args), ')']) + + def parseMethod(self): + i = self.parseRtype(self.method,0) + i, self.name = self.parseIdentifier(self.method,i) + i = self.parseArgs(self.method,i) + + if i != len(self.method): + raise SyntaxError, "invalid function definition: %s" % self.method + + @staticmethod + def skipws(s,i): + while s[i:i+1].isspace(): + i += 1 + return i + + def parseArg(self,s,i): + i, tp = self.parseType(s,i) + name = self.parseIdentifier(s,i) + + if name: + i, name = name + else: + name = None + + return i, (tp, name) + + def parseIdentifier(self,s,i): + i = MethodParser.skipws(s,i) + m = MethodParser.ident_r.match(s,i) + + if m: + return m.end(), s[i:m.end()] + else: + return False + + def parseInteger(self,s,i): + i = MethodParser.skipws(s,i) + m = MethodParser.num_r.match(s,i) + + if m: + return m.end(), s[i:m.end()] + else: + return False + + def parseArgs(self,s,i): + i = MethodParser.skipws(s,i) + + if s[i:i+1] == '(': + i += 1 + i = MethodParser.skipws(s,i) + + while i < len(s) and s[i:i+1] != ')': + i, arg = self.parseArg(s,i) + i = MethodParser.skipws(s,i) + + self.args.append(arg) + + if s[i:i+1] == ',': + i += 1 + + else: + break + + if s[i:i+1] == ')': + i += 1 + else: + raise SyntaxError, "missing ')'." + else: + raise SyntaxError, "missing '('." + + return i + + def parseType(self,s,i): + num = self.parseNumberType(s,i) + + if num: + return num + + i, ns = self.parseNamespace(s,i) + i, tp = self.parseTypespec(s,i) + + tp = ns + tp + + if tp in stringTypes: + return i, (tp, STRING) + + else: + return i, (tp, CLASS) + + def parseTypespec(self,s,i): + i, tp = self.parseIdentifier(s,i) + i, tplst = self.parseTypelist(s,i) + + return i, tp + tplst + + def parseTypelist(self,s,i): + L = [] + newi = MethodParser.skipws(s,i) + + if s[newi:newi+1] == '<': + i = newi + 1 + i = MethodParser.skipws(s,i) + + L.append('<') + + while i < len(s) and s[i:i+1] != '>': + # template-parameter can be integers!! + + num = self.parseInteger(s,i) + + if num: + i, tp = num + + else: + i, (tp, kind) = self.parseType(s,i) + + i = MethodParser.skipws(s,i) + + L.append(tp) + + if s[i:i+1] == ',': + i += 1 + L.append(',') + + else: + break + + + if s[i:i+1] == '>': + i += 1 + L.append('>') + + else: + raise SyntaxError, "missing '>'." + + return i, ''.join(L) + + def parseNumberType(self,s,i): + i, tp = self.parseIdentifier(s,i) + L = [] + + if tp == 'bool': + return i, (tp, BOOLEAN) + + elif tp in typedefIntTypes: + return i, (tp, INTEGER) + + elif tp in ('signed','unsigned'): + L.append(tp) + next = self.parseIdentifier(s,i) + + if next and next[1] in POD: + i, tp = next + + else: + # type can be fully quallyfied here! + return i, (tp, INTEGER) + + if tp in POD: + L.append(tp) + + else: + # else no number-type at all! + + return False + + # long + # long int + # long long + # long long int + # long double + # short + # short int + + if tp == 'short': + # short + + next = self.parseIdentifier(s,i) + + if next and next[1] == 'int': + # short int + + i, tp = next + L.append(tp) + + elif tp == 'long': + # long + + next = self.parseIdentifier(s,i) + + if next: + if next[1] in ('int', 'double'): + # long int + # long double + + i, tp = next + L.append(tp) + + elif next[1] == 'long': + # long long + # XXX: this is 64bit! how should I handle this? + + i, tp = next + L.append(tp) + + next = self.parseIdentifier(s,i) + + if next and next[1] == 'int': + # long long int + + i, tp = next + L.append(tp) + + if tp in ('float', 'double'): + return i, (' '.join(L), FLOAT) + + else: + return i, (' '.join(L), INTEGER) + + # + # :: + # foo:: + # ::foo:: + # foo::bar:: + # ::foo::bar:: + # ... + def parseNamespace(self,s,i): + L = [] + i = MethodParser.skipws(s,i) + + if s[i:i+2] == "::": + i += 2 + L.append("::") + + while i < len(s): + ns = self.parseIdentifier(s,i) + + if not ns: + break + + newi, ns = ns + newi = MethodParser.skipws(s,newi) + + if s[newi:newi+2] != "::": + break + + i = newi + 2 + + L.append( ns ) + L.append( "::" ) + + return i, ''.join(L) + + + def parseRtype(self,s,i): + tp = self.parseIdentifier(s,i) + + if tp and tp[1] == 'void': + i, tp = tp + self.rtype = (tp,VOID) + + else: + i, self.rtype = self.parseType(s,i) + + return i + +def DCOPAppsIter(client): + for app in client.registeredApplications(): + yield str(app) + +class DCOPApp(object): + """ + An object corresponding to an application with a DCOP interface + + Can return a list of the DCOP objects the application exposes, + or create and return an instance of a specific DCOP object. + """ + def __init__ (self, name, client): + self.appname = name + self.appclient = client + + def __getattr__ (self, item ): + if item == "objects": + objs, ok = self.appclient.remoteObjects(self.appname) + + if ok: + return objs + else: + return None + + return DCOPObj(self, item) + + def __iter__(self): + objs, ok = self.appclient.remoteObjects(self.appname) + + if ok: + for obj in objs: + yield str(obj) + + # sometimes a object-name is not a valid python identifier. + # in that case you can use dcopapp['non-valid::object/name'] + def __getitem__(self,name): + return DCOPObj(self, name) + + def object (self, object): + return DCOPObj (self, object) + + def __repr__(self): + return '%s(%s,%s)' % (self.__class__.__name__,repr(self.appname),repr(self.appclient)) + + def __str__(self): + return repr(self) + +class DCOPObj(object): + """ + An object corresponding to a specific DCOP object owned by a + specific application with a DCOP interface + + Can return a list of the DCOP methods the object exposes, + or create and return an instance of a specific DCOP method. + """ + + def __init__ (self, *args): + if isStringType(args[0]): + self.appname = args [0] + self.objclient = args [1] + self.objname = args [2] + else: + self.appname = args [0].appname + self.objname = args [1] + self.objclient = args [0].appclient + + self.objmethods = self.getMethods() + + def __repr__( self ): + return "%s(%s,%s)" % (self.__class__.__name__,repr(self.appname), repr(self.objname)) + + def __str__( self ): + return repr(self) + + def __getattr__( self, item ): + if item == "methods": + return self.objmethods + + return DCOPMeth(self, item) + + def __getitem__(self,name): + return DCOPMeth(self, name) + + def getMethods(self): + flist, ok = self.objclient.remoteFunctions(self.appname, self.objname) + + if ok: + return flist + else: + return None + + def __iter__(self): + flist, ok = self.objclient.remoteFunctions(self.appname, self.objname) + + if ok: + for meth in flist: + yield str(meth) + + def getMethodNames(self): + return [MethodParser(meth).name for meth in self.objmethods] + + def getParsedMethods(self): + return [MethodParser(meth) for meth in self.objmethods] + + def method(self, method): + return DCOPMeth(self, method) + +class DCOPMeth(object): + """ + An object corresponding to a specific DCOP method owned by a + specific DCOP object. + """ + def __init__(self, dcopObj, name): + self.argtypes = [] + self.argnames = [] + self.fcnname = [] + self.rtype = [] + self.appname = dcopObj.appname + self.objname = dcopObj.objname + self.methname = name + self.client = dcopObj.objclient + try: + self.methods = [str(meth) for meth in dcopObj.objmethods] + except TypeError: + self.methods = [] + self.valid = self.findMethod() +# +# if not self.valid: +# self.fcnname = self.rtype = self.argtypes = self.argnames = None + + def __repr__( self ): + return "%s(%s,%s,%s)" % (self.__class__.__name__,repr(self.appname),repr(self.objname),repr(self.methname)) + + def __str__(self): + return repr(self) + + def __call__(self, *args): + return self.dcop_call(args) + + def __iter__(self): + return iter(self.fcnname) + + def dcop_call(self, args): + # method valid? + if not self.valid: + return False, None + + found = self.getMatchingMethod(args) + + if found is None: + return False, None + + meth, argtypes = found + + ok, replyType, replyData = self.client.call(self.appname, self.objname, meth, self.__marshall(args,argtypes)) + + if ok: + return ok, self.__unmarshall(replyData, replyType) + else: + return ok, None + + def getMatchingMethod(self,args): + count = len(args) + + for funct, argtypes in _xiter(self.fcnname, self.argtypes): + if len(argtypes) == count: + match = True + + for (wanttp, wantkind), have in _xiter(argtypes,args): + if wantkind == BOOLEAN: + if not isinstance(have, bool): + match = False + break + + elif wantkind == INTEGER: + if not isinstance(have, int): + match = False + break + + elif wantkind == FLOAT: + if not isinstance(have, float): + match = False + break + + elif wantkind == STRING: + if not isStringType(have): + match = False + break + + elif wanttp != have.__class__.__name__: + match = False + break + + if match: + return funct, argtypes + return None + + def findMethod(self): + has = False + + for meth in self.methods: + fun = MethodParser(meth) + + if fun.name == self.methname: + self.argtypes.append([argtp for argtp, argname in fun.args]) + self.argnames.append([argname for argtp, argname in fun.args]) + self.rtype.append(fun.rtype) + self.fcnname.append(fun.getDecl()) + + has = True + + return has + + def __marshall(self, args, argtypes): + data = QByteArray() + if argtypes == []: + return data + + params = QDataStream (data, IO_WriteOnly) + + for arg, (argtype, argkind) in _xiter(args, argtypes): + if argkind == BOOLEAN: + # XXX for now, let bools be handelt like int + dcop_add(params, int(arg), 'int') + + elif argkind in (INTEGER, FLOAT): + dcop_add(params, arg, argtype) + + elif argkind == STRING: + # convert it to the right string type: + if argtype != arg.__class__.__name__: + arg = stringTypesDict[argtype](arg) + + dcop_add(params, arg) + + elif argtype.startswith("QMap") or argtype.startswith("QValueList"): + dcop_add(params, arg, argtype) + + # XXX: + # Is 'isinstance(arg, eval(argtype))' really good? + # What if 'argtype' is located in some modul? Like 'qt.QString'. + # Then this will fail (but it should not!). + # And the worst thing: the eval() will raise a NameError! + # + # On the other hand 'arg.__class__.__name__ == argtype' has the + # disadvantage that it can't be a derived class! + # + # Would no check at all be better?? + # + # But I doubt a derived class would be ok anyway. I have to check + # this in the DCOP-docu, but I think a derived class would not be + # correctly unmarshalled, because a derived class could be marshalled + # in a total different way to it's super-class. + elif arg.__class__.__name__ == argtype: + dcop_add(params, arg) + + else: + raise TypeError, "expected type %s, got type %s." % (argtype, arg.__class__.__name__) + + return data + + def __unmarshall(self, data, type_): + s = QDataStream(data, IO_ReadOnly) + + if str(type_) in stringTypes: + return unicode(dcop_next(s, type_)) + else: + return dcop_next(s, type_) diff --git a/extra/kde300/kaccelaction.h b/extra/kde300/kaccelaction.h new file mode 100644 index 0000000..139d7f7 --- /dev/null +++ b/extra/kde300/kaccelaction.h @@ -0,0 +1,202 @@ +/* This file is part of the KDE libraries + Copyright (C) 2001,2002 Ellis Whitehead + + This library 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. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef _KACCELACTION_H +#define _KACCELACTION_H + +#include +#include +#include +#include + +#include + +class KAccelBase; + +class QObject; +class KConfig; +class KConfigBase; + +/* + KAccelAction holds information an a given action, such as "Execute Command" + + 1) KAccelAction = "Execute Command" + Default3 = "Alt+F2" + Default4 = "Meta+Enter;Alt+F2" + 1) KShortcut = "Meta+Enter" + 1) KKeySequence = "Meta+Enter" + 1) KKey = "Meta+Enter" + 1) Meta+Enter + 2) Meta+Keypad_Enter + 2) KShortcut = "Alt+F2" + 1) KKeySequence = "Alt+F2" + 1) Alt+F2 + 2) KAccelAction = "Something" + Default3 = "" + Default4 = "" + 1) KShortcut = "Meta+X,Asterisk" + 1) KKeySequence = "Meta+X,Asterisk" + 1) KKey = "Meta+X" + 1) Meta+X + 2) KKey = "Asterisk" + 1) Shift+8 (English layout) + 2) Keypad_Asterisk +*/ + +//--------------------------------------------------------------------- +// KAccelAction +//--------------------------------------------------------------------- + +class KAccelAction +{ + public: + KAccelAction(); + KAccelAction( const KAccelAction& ); + KAccelAction( const QString& sName, const QString& sLabel, const QString& sWhatsThis, + const KShortcut& cutDef3, const KShortcut& cutDef4, + const QObject* pObjSlot, const char* psMethodSlot, + bool bConfigurable, bool bEnabled ); + ~KAccelAction(); + + void clear(); + bool init( const QString& sName, const QString& sLabel, const QString& sWhatsThis, + const KShortcut& cutDef3, const KShortcut& cutDef4, + const QObject* pObjSlot, const char* psMethodSlot, + bool bConfigurable, bool bEnabled ); + + KAccelAction& operator=( const KAccelAction& ); + + const QString& name() const { return m_sName; } + const QString& label() const { return m_sLabel; } + const QString& whatsThis() const { return m_sWhatsThis; } + const KShortcut& shortcut() const { return m_cut; } + const KShortcut& shortcutDefault() const; + const KShortcut& shortcutDefault3() const { return m_cutDefault3; } + const KShortcut& shortcutDefault4() const { return m_cutDefault4; } + const QObject* objSlotPtr() const { return m_pObjSlot; } + const char* methodSlotPtr() const { return m_psMethodSlot; } + bool isConfigurable() const { return m_bConfigurable; } + bool isEnabled() const { return m_bEnabled; } + + void setName( const QString& ); + void setLabel( const QString& ); + void setWhatsThis( const QString& ); + bool setShortcut( const KShortcut& rgCuts ); + void setSlot( const QObject* pObjSlot, const char* psMethodSlot ); + void setConfigurable( bool ); + void setEnabled( bool ); + + int getID() const { return m_nIDAccel; } + void setID( int n ) { m_nIDAccel = n; } + bool isConnected() const; + + bool setKeySequence( uint i, const KKeySequence& ); + void clearShortcut(); + bool contains( const KKeySequence& ); + + QString toString() const; + QString toStringInternal() const; + + static bool useFourModifierKeys(); + static void useFourModifierKeys( bool ); + + protected: + QString m_sName, + m_sLabel, + m_sWhatsThis; + KShortcut m_cut; + KShortcut m_cutDefault3, m_cutDefault4; + const QObject* m_pObjSlot; + const char* m_psMethodSlot; + bool m_bConfigurable, + m_bEnabled; + int m_nIDAccel; + uint m_nConnections; + + void incConnections(); + void decConnections(); + + private: + static int g_bUseFourModifierKeys; + class KAccelActionPrivate* d; + + friend class KAccelActions; + friend class KAccelBase; +}; + +//--------------------------------------------------------------------- +// KAccelActions +//--------------------------------------------------------------------- + +class KAccelActions +{ + public: + KAccelActions(); + KAccelActions( const KAccelActions& ); + virtual ~KAccelActions(); + + void clear(); + bool init( const KAccelActions& ); + bool init( KConfigBase& config, const QString& sGroup ); + + void updateShortcuts( KAccelActions& ); + + int actionIndex( const QString& sAction ) const; + KAccelAction* actionPtr( uint ); + const KAccelAction* actionPtr( uint ) const; + KAccelAction* actionPtr( const QString& sAction ); + const KAccelAction* actionPtr( const QString& sAction ) const; + KAccelAction* actionPtr( KKeySequence cut ); + KAccelAction& operator []( uint ); + const KAccelAction& operator []( uint ) const; + + KAccelAction* insert( const QString& sAction, const QString& sLabel, const QString& sWhatsThis, + const KShortcut& rgCutDefaults3, const KShortcut& rgCutDefaults4, + const QObject* pObjSlot = 0, const char* psMethodSlot = 0, + bool bConfigurable = true, bool bEnabled = true ); + KAccelAction* insert( const QString& sName, const QString& sLabel ); + bool remove( const QString& sAction ); + + bool readActions( const QString& sConfigGroup = "Shortcuts", KConfigBase* pConfig = 0 ); + bool writeActions( const QString& sConfigGroup = "Shortcuts", KConfigBase* pConfig = 0, + bool bWriteAll = false, bool bGlobal = false ) const; + + void emitKeycodeChanged(); + + uint count() const; + + protected: + KAccelBase* m_pKAccelBase; + KAccelAction** m_prgActions; + uint m_nSizeAllocated, m_nSize; + + void resize( uint ); + void insertPtr( KAccelAction* ); + + private: + class KAccelActionsPrivate* d; + + KAccelActions( KAccelBase* ); + void initPrivate( KAccelBase* ); + KAccelActions& operator =( KAccelActions& ); + + friend class KAccelBase; +}; + +#endif // _KACCELACTION_H diff --git a/extra/kde300/kaccelbase.h b/extra/kde300/kaccelbase.h new file mode 100644 index 0000000..1a80eee --- /dev/null +++ b/extra/kde300/kaccelbase.h @@ -0,0 +1,233 @@ +/* This file is part of the KDE libraries + Copyright (C) 2001 Ellis Whitehead + + This library 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. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef _KACCELBASE_H +#define _KACCELBASE_H + +#include +#include +#include +#include +#include + +#include "kaccelaction.h" +#include "kkeyserver_x11.h" + +class QPopupMenu; +class QWidget; + +//---------------------------------------------------- + +class KAccelBasePrivate; +/** + * Handle keyboard accelerators. + * + * Allow an user to configure + * key bindings through application configuration files or through the + * @ref KKeyChooser GUI. + * + * A @ref KAccel contains a list of accelerator items. Each accelerator item + * consists of an action name and a keyboard code combined with modifiers + * (Shift, Ctrl and Alt.) + * + * For example, "Ctrl+P" could be a shortcut for printing a document. The key + * codes are listed in ckey.h. "Print" could be the action name for printing. + * The action name identifies the key binding in configuration files and the + * @ref KKeyChooser GUI. + * + * When pressed, an accelerator key calls the slot to which it has been + * connected. Accelerator items can be connected so that a key will activate + * two different slots. + * + * A KAccel object handles key events sent to its parent widget and to all + * children of this parent widget. + * + * Key binding reconfiguration during run time can be prevented by specifying + * that an accelerator item is not configurable when it is inserted. A special + * group of non-configurable key bindings are known as the + * standard accelerators. + * + * The standard accelerators appear repeatedly in applications for + * standard document actions such as printing and saving. Convenience methods are + * available to insert and connect these accelerators which are configurable on + * a desktop-wide basis. + * + * It is possible for a user to choose to have no key associated with + * an action. + * + * The translated first argument for @ref insertItem() is used only + * in the configuration dialog. + *
+ * KAccel *a = new KAccel( myWindow );
+ * // Insert an action "Scroll Up" which is associated with the "Up" key:
+ * a->insertItem( i18n("Scroll up"), "Scroll Up", "Up" );
+ * // Insert an action "Scroll Down" which is not associated with any key:
+ * a->insertItem( i18n("Scroll down"), "Scroll Down", 0);
+ * a->connectItem( "Scroll up", myWindow, SLOT( scrollUp() ) );
+ * // a->insertStdItem( KStdAccel::Print ); //not necessary, since it
+ *	// is done automatially with the
+ *	// connect below!
+ * a->connectItem(KStdAccel::Print, myWindow, SLOT( printDoc() ) );
+ *
+ * a->readSettings();
+ *
+ * + * If a shortcut has a menu entry as well, you could insert them like + * this. The example is again the @ref KStdAccel::Print from above. + * + *
+ * int id;
+ * id = popup->insertItem("&Print",this, SLOT(printDoc()));
+ * a->changeMenuAccel(popup, id, KStdAccel::Print );
+ * 
+ * + * If you want a somewhat "exotic" name for your standard print action, like + * id = popup->insertItem(i18n("Print &Document"),this, SLOT(printDoc())); + * it might be a good idea to insert the standard action before as + * a->insertStdItem( KStdAccel::Print, i18n("Print Document") ) + * as well, so that the user can easily find the corresponding function. + * + * This technique works for other actions as well. Your "scroll up" function + * in a menu could be done with + * + *
+ *    id = popup->insertItem(i18n"Scroll &up",this, SLOT(scrollUp()));
+ *    a->changeMenuAccel(popup, id, "Scroll Up" );
+ * 
+ * + * Please keep the order right: First insert all functions in the + * acceleratior, then call a -> @ref readSettings() and @em then build your + * menu structure. + * + * @short Configurable key binding support. + * @version $Id: kaccelbase.h,v 1.20 2002/03/03 21:20:25 lunakl Exp $ + */ + +class KAccelBase +{ + public: + enum Init { QT_KEYS = 0x00, NATIVE_KEYS = 0x01 }; + enum Signal { KEYCODE_CHANGED }; + + KAccelBase( int fInitCode ); + virtual ~KAccelBase(); + + uint actionCount() const; + KAccelActions& actions(); + bool isEnabled() const; + + KAccelAction* actionPtr( const QString& sAction ); + const KAccelAction* actionPtr( const QString& sAction ) const; + KAccelAction* actionPtr( const KKey& key ); + KAccelAction* actionPtr( const KKeyServer::Key& key ); + + const QString& configGroup() const { return m_sConfigGroup; } + void setConfigGroup( const QString& group ); + void setConfigGlobal( bool global ); + virtual void setEnabled( bool bEnabled ) = 0; + bool getAutoUpdate() { return m_bAutoUpdate; } + // return value of AutoUpdate flag before this call. + bool setAutoUpdate( bool bAuto ); + +// Procedures for manipulating Actions. + //void clearActions(); + + KAccelAction* insert( const QString& sName, const QString& sDesc ); + KAccelAction* insert( + const QString& sAction, const QString& sDesc, const QString& sHelp, + const KShortcut& rgCutDefaults3, const KShortcut& rgCutDefaults4, + const QObject* pObjSlot, const char* psMethodSlot, + bool bConfigurable = true, bool bEnabled = true ); + bool remove( const QString& sAction ); + bool setActionSlot( const QString& sAction, const QObject* pObjSlot, const char* psMethodSlot ); + + bool updateConnections(); + + bool setShortcut( const QString& sAction, const KShortcut& cut ); + +// Modify individual Action sub-items + bool setActionEnabled( const QString& sAction, bool bEnable ); + + /** + * Read all key associations from @p config, or (if @p config + * is zero) from the application's configuration file + * @ref KGlobal::config(). + * + * The group in which the configuration is stored can be + * set with @ref setConfigGroup(). + */ + void readSettings( KConfigBase* pConfig = 0 ); + + /** + * Write the current configurable associations to @p config, + * or (if @p config is zero) to the application's + * configuration file. + */ + void writeSettings( KConfigBase* pConfig = 0 ) const; + + QPopupMenu* createPopupMenu( QWidget* pParent, const KKeySequence& ); + + // Protected methods + protected: + void slotRemoveAction( KAccelAction* ); + + void createKeyList( QValueVector& rgKeys ); + bool insertConnection( KAccelAction* ); + bool removeConnection( KAccelAction* ); + + virtual bool emitSignal( Signal ) = 0; + virtual bool connectKey( KAccelAction&, const KKeyServer::Key& ) = 0; + virtual bool connectKey( const KKeyServer::Key& ) = 0; + virtual bool disconnectKey( KAccelAction&, const KKeyServer::Key& ) = 0; + virtual bool disconnectKey( const KKeyServer::Key& ) = 0; + + protected: + struct ActionInfo + { + KAccelAction* pAction; + uint iSeq, iVariation; + //ActionInfo* pInfoNext; // nil if only one action uses this key. + + ActionInfo() { pAction = 0; iSeq = 0xffff; iVariation = 0xffff; } + ActionInfo( KAccelAction* _pAction, uint _iSeq, uint _iVariation ) + { pAction = _pAction; iSeq = _iSeq; iVariation = _iVariation; } + }; + typedef QMap KKeyToActionMap; + + KAccelActions m_rgActions; + KKeyToActionMap m_mapKeyToAction; + QValueList m_rgActionsNonUnique; + bool m_bNativeKeys; // Use native key codes instead of Qt codes + bool m_bEnabled; + bool m_bConfigIsGlobal; + QString m_sConfigGroup; + bool m_bAutoUpdate; + KAccelAction* mtemp_pActionRemoving; + + private: + KAccelBase& operator =( const KAccelBase& ); + + friend class KAccelActions; + protected: + virtual void virtual_hook( int id, void* data ); + private: + KAccelBasePrivate* d; +}; + +#endif // _KACCELBASE_H diff --git a/extra/kde300/kicontheme.h b/extra/kde300/kicontheme.h new file mode 100644 index 0000000..78fc8f1 --- /dev/null +++ b/extra/kde300/kicontheme.h @@ -0,0 +1,217 @@ +/* vi: ts=8 sts=4 sw=4 + * + * $Id: kicontheme.h,v 1.19 2002/03/05 23:13:26 rich Exp $ + * + * This file is part of the KDE project, module kdecore. + * Copyright (C) 2000 Geert Jansen + * Antonio Larrosa + * + * This is free software; it comes under the GNU Library General + * Public License, version 2. See the file "COPYING.LIB" for the + * exact licensing terms. + * + */ + +#ifndef __KIconTheme_h_Included__ +#define __KIconTheme_h_Included__ + +#include +#include +#include + +class KConfig; +//class KIconThemeDir; + +class KIconThemePrivate; + +class KIconPrivate; + +/** + * One icon as found by KIconTheme. Also serves as a namespace containing + * icon related constants. + */ +class KIcon +{ +public: + KIcon() { size = 0; } + + /** + * Return true if this icon is valid, false otherwise. + */ + bool isValid() const { return size != 0; } + + enum Context { Any, Action, Application, Device, FileSystem, MimeType }; + enum Type { Fixed, Scalable, Threshold }; + enum MatchType { MatchExact, MatchBest }; + // if you add a group here, make sure to change the config reading in + // KIconLoader too + enum Group { NoGroup=-1, Desktop=0, FirstGroup=Desktop, Toolbar, + MainToolbar, Small, Panel, LastGroup, User }; + enum StdSizes { SizeSmall=16, SizeMedium=32, SizeLarge=48 }; + enum States { DefaultState, ActiveState, DisabledState, LastState }; + enum Overlays { LockOverlay=0x100, ZipOverlay=0x200, LinkOverlay=0x400, + HiddenOverlay=0x800, OverlayMask = ~0xff }; + + /** + * The size in pixels of the icon. + */ + int size; + + /** + * The context of the icon. + */ + Context context; + + /** + * The type of the icon: Fixed, Scalable or Threshold. + **/ + Type type; + + /** + * The threshold in case type == Threshold + */ + int threshold; + + /** + * The full path of the icon. + */ + QString path; + +private: + KIconPrivate *d; +}; + +inline KIcon::Group& operator++(KIcon::Group& group) { group = static_cast(group+1); return group; } +inline KIcon::Group operator++(KIcon::Group& group,int) { KIcon::Group ret = group; ++group; return ret; } + +/** + * Class to use/access icon themes in KDE. This class is used by the + * iconloader but can be used by others too. + */ +class KIconTheme +{ +public: + /** + * Load an icon theme by name. + */ + KIconTheme(const QString& name, const QString& appName=QString::null); + ~KIconTheme(); + + /** + * The stylized name of the icon theme. + */ + QString name() const { return mName; } + + /** + * A description for the icon theme. + */ + QString description() const { return mDesc; } + + /** + * Return the name of the "example" icon. + */ + QString example() const; + + /** + * Return the name of the screenshot. + */ + QString screenshot() const; + + /** + * Returns the name of this theme's link overlay. + */ + QString linkOverlay() const; + + /** + * Returns the name of this theme's zip overlay. + */ + QString zipOverlay() const; + + /** + * Returns the name of this theme's lock overlay. + */ + QString lockOverlay() const; + + /** + * Returns the toplevel theme directory. + */ + QString dir() const { return mDir; } + + /** + * The themes this icon theme falls back on. + */ + QStringList inherits() const { return mInherits; } + + /** + * The icon theme exists? + */ + bool isValid() const; + + /** + * The minimum display depth required for this theme. This can either + * be 8 or 32. + */ + int depth() const { return mDepth; } + + /** + * The default size of this theme for a certain icon group. + * @param group The icon group. See @ref #KIcon::Group. + * @return The default size in pixels for the given icon group. + */ + int defaultSize(KIcon::Group group) const; + + /** + * Query available sizes for a group. + */ + QValueList querySizes(KIcon::Group group) const; + + /** + * Query available icons for a size and context. + */ + QStringList queryIcons(int size, KIcon::Context context = KIcon::Any) const; + + /** + * Query available icons for a context and preferred size. + */ + QStringList queryIconsByContext(int size, KIcon::Context context = KIcon::Any) const; + + + /** + * Lookup an icon in the theme. + * @param name The name of the icon, without extension. + * @param size The desired size of the icon. + * @param match The matching mode. KIcon::MatchExact returns an icon + * only if matches exactly. KIcon::MatchBest returns the best matching + * icon. + * @return A KIcon class that describes the icon. If an icon is found, + * @ref #KIcon::isValid will return true, and false otherwise. + */ + KIcon iconPath(const QString& name, int size, KIcon::MatchType match) const; + + /** + * List all icon themes installed on the system, global and local. + */ + static QStringList list(); + + /** + * Returns the current icon theme. + */ + static QString current(); + + static void reconfigure(); + +private: + int mDefSize[8]; + QValueList mSizes[8]; + + int mDepth; + QString mDir, mName, mDesc; + QStringList mInherits; +// QPtrList mDirs; + KIconThemePrivate *d; + + static QString *_theme; + static QStringList *_theme_list; +}; + +#endif diff --git a/extra/kde300/kkeyserver_x11.h b/extra/kde300/kkeyserver_x11.h new file mode 100644 index 0000000..faeb99c --- /dev/null +++ b/extra/kde300/kkeyserver_x11.h @@ -0,0 +1,131 @@ +#ifndef _KKEYSERVER_X11_H +#define _KKEYSERVER_X11_H + +#include "kshortcut.h" +#include "kkeynative.h" + +namespace KKeyServer +{ + struct CodeMod { int code, mod; }; + + struct Sym + { + public: + uint m_sym; + + Sym() + { m_sym = 0; } + Sym( uint sym ) + { m_sym = sym; } + Sym( const QString& s ) + { init( s ); } + + bool initQt( int keyQt ); + bool init( const QString& ); + + int qt() const; + QString toStringInternal() const; + QString toString() const; + + uint getModsRequired() const; + uint getSymVariation() const; + + operator uint() const { return m_sym; } + Sym& operator =( uint sym ) { m_sym = sym; return *this; } + + private: + QString toString( bool bUserSpace ) const; + + static void capitalizeKeyname( QString& ); + }; + + struct Key + { + enum { CODE_FOR_QT = 256 }; + + uint m_code; + uint m_mod; + uint m_sym; + + bool init( const KKey& key, bool bQt ); + + bool isNative() const { return m_code != CODE_FOR_QT; } + + uint code() const { return m_code; } + uint mod() const { return m_mod; } + uint sym() const { return m_sym; } + int keyCodeQt() const { return (int) m_sym; } + + void setKeycodeQt( int keyQt ) + { m_code = CODE_FOR_QT; m_sym = keyQt; } + + Key& operator =( const KKeyNative& key ); + int compare( const Key& ) const; + + bool operator ==( const Key& b ) const + { return compare( b ) == 0; } + bool operator <( const Key& b ) const + { return compare( b ) < 0; } + + KKey key() const; + }; + + struct Variations + { + enum { MAX_VARIATIONS = 4 }; + + Key m_rgkey[MAX_VARIATIONS]; + uint m_nVariations; + + Variations() { m_nVariations = 0; } + + void init( const KKey&, bool bQt ); + + uint count() const { return m_nVariations; } + const Key& key( uint i ) const { return m_rgkey[i]; } + }; + + bool initializeMods(); + + /** + * Returns the equivalent X modifier mask of the given modifier flag. + */ + uint modX( KKey::ModFlag ); + /** + * Returns true if the current keyboard layout supports the Win key. + * Specifically, whether the Super or Meta keys are assigned to an X modifier. + */ + bool keyboardHasWinKey(); + uint modXShift(); + uint modXLock(); + uint modXCtrl(); + uint modXAlt(); + uint modXNumLock(); + uint modXWin(); + uint modXScrollLock(); + /** + * Returns bitwise OR'ed mask containing Shift, Ctrl, Alt, and + * Win (if available). + */ + uint accelModMaskX(); + + bool keyQtToSym( int keyQt, uint& sym ); + bool keyQtToMod( int keyQt, uint& mod ); + bool symToKeyQt( uint sym, int& keyQt ); + + bool modToModQt( uint mod, int& modQt ); + bool modToModX( uint mod, uint& modX ); + bool modXToModQt( uint modX, int& modQt ); + bool modXToMod( uint modX, uint& mod ); + + bool codeXToSym( uchar codeX, uint modX, uint& symX ); + + QString modToStringInternal( uint mod ); + QString modToStringUser( uint mod ); + + bool stringToSymMod( const QString&, uint& sym, uint& mod ); + + void keyQtToKeyX( uint keyCombQt, unsigned char *pKeyCodeX, uint *pKeySymX, uint *pKeyModX ); +}; + +#endif // !_KKEYSERVER_X11_H diff --git a/extra/kde300/konsole_part.h b/extra/kde300/konsole_part.h new file mode 100644 index 0000000..ba89800 --- /dev/null +++ b/extra/kde300/konsole_part.h @@ -0,0 +1,223 @@ +/* + This file is part of the KDE system + Copyright (C) 1999,2000 Boloni Laszlo + + 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. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. + */ + +#ifndef __KONSOLE_PART_H__ +#define __KONSOLE_PART_H__ + +#include +#include + + +#include + +#include + +//#include "schema.h" +//#include "session.h" + +class KInstance; +class konsoleBrowserExtension; +class QPushButton; +class QSpinBox; +class KPopupMenu; +class QCheckBox; +class KRootPixmap; +class KToggleAction; +class KSelectAction; + +namespace KParts { class GUIActivateEvent; } + +class konsoleFactory : public KParts::Factory +{ + Q_OBJECT +public: + konsoleFactory(); + virtual ~konsoleFactory(); + + virtual KParts::Part* createPartObject(QWidget *parentWidget = 0, const char *widgetName = 0, + QObject* parent = 0, const char* name = 0, + const char* classname = "KParts::Part", + const QStringList &args = QStringList()); + + static KInstance *instance(); + + private: + static KInstance *s_instance; + static KAboutData *s_aboutData; +}; + +////////////////////////////////////////////////////////////////////// + +class konsolePart: public KParts::ReadOnlyPart, public TerminalInterface +{ + Q_OBJECT + public: + konsolePart(QWidget *parentWidget, const char *widgetName, QObject * parent, const char *name, const char *classname = 0); + virtual ~konsolePart(); + +signals: + void processExited(); + void receivedData( const QString& s ); + protected: + virtual bool openURL( const KURL & url ); + virtual bool openFile() {return false;} // never used + virtual bool closeURL() {return true;} + virtual void guiActivateEvent( KParts::GUIActivateEvent * event ); + + protected slots: + void showShell(); + void slotProcessExited(); + void slotReceivedData( const QString& s ); + +// void doneSession(TESession*); + void sessionDestroyed(); +// void configureRequest(TEWidget*,int,int x,int y); + void updateTitle(); + void enableMasterModeConnections(); + + private slots: + void emitOpenURLRequest(const QString &url); + + void readProperties(); + void saveProperties(); + + void sendSignal(int n); + void closeCurrentSession(); + + void notifySize(int,int); + + void slotToggleFrame(); + void slotSelectScrollbar(); + void slotSelectFont(); + void schema_menu_check(); + void keytab_menu_activated(int item); + void updateSchemaMenu(); + void setSchema(int n); + void pixmap_menu_activated(int item); + void schema_menu_activated(int item); + void slotHistoryType(); + void slotSelectBell(); + void slotSelectLineSpacing(); + void slotBlinkingCursor(); + void slotWordSeps(); + void fontNotFound(); + + private: + konsoleBrowserExtension *m_extension; + KURL currentURL; + + void makeGUI(); + void applySettingsToGUI(); + + void setFont(int fontno); +// void setSchema(ColorSchema* s); + void updateKeytabMenu(); + + bool doOpenStream( const QString& ); + bool doWriteStream( const QByteArray& ); + bool doCloseStream(); + + QWidget* parentWidget; +// TEWidget* te; +// TESession* se; +// ColorSchemaList* colors; + KRootPixmap* rootxpm; + + KToggleAction* blinkingCursor; + KToggleAction* showFrame; + + KSelectAction* selectBell; + KSelectAction* selectFont; + KSelectAction* selectLineSpacing; + KSelectAction* selectScrollbar; + + KPopupMenu* m_keytab; + KPopupMenu* m_schema; + KPopupMenu* m_signals; + KPopupMenu* m_options; + KPopupMenu* m_popupMenu; + + QFont defaultFont; + + QString pmPath; // pixmap path + QString s_schema; + QString s_kconfigSchema; + QString s_word_seps; // characters that are considered part of a word + QString fontNotFound_par; + + bool b_framevis:1; + bool b_histEnabled:1; + + int curr_schema; // current schema no + int n_bell; + int n_font; + int n_keytab; + int n_render; + int n_scroll; + unsigned m_histSize; + bool m_runningShell; + bool m_streamEnabled; +public: + // these are the implementations for the TermEmuInterface + // functions... + void startProgram( const QString& program, + const QStrList& args ); + void showShellInDir( const QString& dir ); + void sendInput( const QString& text ); +}; + +////////////////////////////////////////////////////////////////////// + +/*class HistoryTypeDialog : public KDialogBase +{ + Q_OBJECT +public: + HistoryTypeDialog(const HistoryType& histType, + unsigned int histSize, + QWidget *parent); + +public slots: + void slotDefault(); + void slotSetUnlimited(); + void slotHistEnable(bool); + + unsigned int nbLines() const; + bool isOn() const; + +protected: + QCheckBox* m_btnEnable; + QSpinBox* m_size; + QPushButton* m_setUnlimited; +};*/ + +////////////////////////////////////////////////////////////////////// + +class konsoleBrowserExtension : public KParts::BrowserExtension +{ + Q_OBJECT + friend class konsolePart; + public: + konsoleBrowserExtension(konsolePart *parent); + virtual ~konsoleBrowserExtension(); + + void emitOpenURLRequest(const KURL &url); +}; + +#endif diff --git a/extra/kde300/krecentdirs.h b/extra/kde300/krecentdirs.h new file mode 100644 index 0000000..71f771b --- /dev/null +++ b/extra/kde300/krecentdirs.h @@ -0,0 +1,68 @@ +/* -*- c++ -*- + * Copyright (C)2000 Waldo Bastian + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * + */ +#ifndef __KRECENTDIRS_H +#define __KRECENTDIRS_H + +#include + +/** + * The goal of this class is to make sure that, when the user needs to + * specify a file via the file selection dialog, this dialog will start + * in the directory most likely to contain the desired files. + * + * This works as follows: Each time the file selection dialog is + * shown, the programmer can specify a "file-class". The file-dialog will + * then start with the directory associated with this file-class. When + * the dialog closes, the directory currently shown in the file-dialog + * will be associated with the file-class. + * + * A file-class can either start with ':' or with '::'. If it starts with + * a single ':' the file-class is specific to the current application. + * If the file-class starts with '::' it is global to all applications. + */ +class KRecentDirs +{ +public: + /** + * Returns a list of directories associated with this file-class. + * The most recently used directory is at the front of the list. + */ + static QStringList list(const QString &fileClass); + + /** + * Returns the most recently used directory accociated with this file-class. + */ + static QString dir(const QString &fileClass); + + /** + * Associates @p directory with @p fileClass + */ + static void add(const QString &fileClass, const QString &directory); +}; + +#endif diff --git a/extra/kde300/ksycocafactory.h b/extra/kde300/ksycocafactory.h new file mode 100644 index 0000000..af33ca8 --- /dev/null +++ b/extra/kde300/ksycocafactory.h @@ -0,0 +1,135 @@ +/* This file is part of the KDE libraries + * Copyright (C) 1999 Waldo Bastian + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License version 2 as published by the Free Software Foundation; + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public License + * along with this library; see the file COPYING.LIB. If not, write to + * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA. + **/ + +#ifndef __ksycocafactory_h__ +#define __ksycocafactory_h__ "$Id: ksycocafactory.h,v 1.12 2002/03/03 21:20:26 lunakl Exp $" + +#include "ksycocatype.h" +#include "ksycocaentry.h" + +#include +#include +class KSycoca; +class QStringList; +class QString; +class KSycocaDict; +class KSycocaResourceList; + +typedef QDict KSycocaEntryDict; + +/** + * @internal + * Base class for sycoca factories + */ +class KSycocaFactory +{ +public: + virtual KSycocaFactoryId factoryId() const = 0; + +protected: // virtual class + /** + * Create a factory which can be used to lookup from/create a database + * (depending on KSycoca::isBuilding()) + */ + KSycocaFactory( KSycocaFactoryId factory_id ); + +public: + virtual ~KSycocaFactory(); + + /** + * @return the position of the factory in the sycoca file + */ + int offset() { return mOffset; } + + /** + * @return the dict, for special use by KBuildSycoca + */ + KSycocaEntryDict * entryDict() { return m_entryDict; } + + /** + * Construct an entry from a config file. + * To be implemented in the real factories. + */ + virtual KSycocaEntry *createEntry(const QString &file, const char *resource) = 0; + + /** + * Add an entry + */ + virtual void addEntry(KSycocaEntry *newEntry, const char *resource); + + /** + * Read an entry from the database + */ + virtual KSycocaEntry *createEntry(int offset)=0; + + /** + * Get a list of all entries from the database. + */ + KSycocaEntry::List allEntries(); + + /** + * Saves all entries it maintains as well as index files + * for these entries to the stream 'str'. + * + * Also sets mOffset to the starting position. + * + * The stream is positioned at the end of the last index. + * + * Don't forget to call the parent first when you override + * this function. + */ + virtual void save(QDataStream &str); + + /** + * Writes out a header to the stream 'str'. + * The baseclass positions the stream correctly. + * + * Don't forget to call the parent first when you override + * this function. + */ + virtual void saveHeader(QDataStream &str); + + /** + * @return the resources for which this factory is responsible. + */ + virtual const KSycocaResourceList * resourceList() const { return m_resourceList; } + +private: + int mOffset; + +protected: + int m_sycocaDictOffset; + int m_beginEntryOffset; + int m_endEntryOffset; + QDataStream *m_str; + + KSycocaResourceList *m_resourceList; + KSycocaEntryDict *m_entryDict; + KSycocaDict *m_sycocaDict; +protected: + virtual void virtual_hook( int id, void* data ); +}; + +// This, instead of a typedef, allows to declare "class ..." in header files +class KSycocaFactoryList : public QPtrList +{ +public: + KSycocaFactoryList() { } +}; + +#endif diff --git a/extra/kde300/ktoolbarbutton.h b/extra/kde300/ktoolbarbutton.h new file mode 100644 index 0000000..76a721c --- /dev/null +++ b/extra/kde300/ktoolbarbutton.h @@ -0,0 +1,306 @@ +/* This file is part of the KDE libraries + Copyright (C) 1997, 1998 Stephan Kulow (coolo@kde.org) + (C) 1997, 1998 Sven Radej (radej@kde.org) + (C) 1997, 1998 Mark Donohoe (donohoe@kde.org) + (C) 1997, 1998 Matthias Ettrich (ettrich@kde.org) + (C) 2000 Kurt Granroth (granroth@kde.org) + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License version 2 as published by the Free Software Foundation. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +// $Id: ktoolbarbutton.h,v 1.21 2002/03/04 00:51:52 lunakl Exp $ +#ifndef _KTOOLBARBUTTON_H +#define _KTOOLBARBUTTON_H + +#include +#include +#include +#include +#include + +class KToolBar; +class KToolBarButtonPrivate; +class KInstance; +class QEvent; +class QPopupMenu; +class QPainter; + +/** + * A toolbar button. This is used internally by @ref KToolBar, use the + * KToolBar methods instead. + * @internal + */ +class KToolBarButton : public QToolButton +{ + Q_OBJECT + +public: + /** + * Construct a button with an icon loaded by the button itself. + * This will trust the button to load the correct icon with the + * correct size. + * + * @param icon Name of icon to load (may be absolute or relative) + * @param id Id of this button + * @param parent This button's parent + * @param name This button's internal name + * @param txt This button's text (in a tooltip or otherwise) + */ + KToolBarButton(const QString& icon, int id, QWidget *parent, + const char *name=0L, const QString &txt=QString::null, + KInstance *_instance = KGlobal::instance()); + + /** + * Construct a button with an existing pixmap. It is not + * recommended that you use this as the internal icon loading code + * will almost always get it "right". + * + * @param icon Name of icon to load (may be absolute or relative) + * @param id Id of this button + * @param parent This button's parent + * @param name This button's internal name + * @param txt This button's text (in a tooltip or otherwise) + */ + KToolBarButton(const QPixmap& pixmap, int id, QWidget *parent, + const char *name=0L, const QString &txt=QString::null); + + /** + * Construct a separator button + * + * @param parent This button's parent + * @param name This button's internal name + */ + KToolBarButton(QWidget *parent=0L, const char *name=0L); + + /** + * Standard destructor + */ + ~KToolBarButton(); + +#ifndef KDE_NO_COMPAT + /** + * @deprecated + * Set the pixmap directly for this button. This pixmap should be + * the active one... the dimmed and disabled pixmaps are constructed + * based on this one. However, don't use this function unless you + * are positive that you don't want to use @ref setIcon. + * + * @param pixmap The active pixmap + */ + // this one is from QButton, so #ifdef-ing it out doesn't break BC + virtual void setPixmap(const QPixmap &pixmap); + + /** + * @deprecated + * Force the button to use this pixmap as the default one rather + * then generating it using effects. + * + * @param pixmap The pixmap to use as the default (normal) one + */ + void setDefaultPixmap(const QPixmap& pixmap); + + /** + * @deprecated + * Force the button to use this pixmap when disabled one rather then + * generating it using effects. + * + * @param pixmap The pixmap to use when disabled + */ + void setDisabledPixmap(const QPixmap& pixmap); +#endif + + /** + * Set the text for this button. The text will be either used as a + * tooltip (IconOnly) or will be along side the icon + * + * @param text The button (or tooltip) text + */ + virtual void setText(const QString &text); + + /** + * Set the icon for this button. The icon will be loaded internally + * with the correct size. This function is preferred over @ref setIconSet + * + * @param icon The name of the icon + */ + virtual void setIcon(const QString &icon); + + /** + * Set the pixmaps for this toolbar button from a QIconSet. + * If you call this you don't need to call any of the other methods + * that set icons or pixmaps. + * @param iconset The iconset to use + */ + virtual void setIconSet( const QIconSet &iconset ); + +#ifndef KDE_NO_COMPAT + /** + * @deprecated + * Set the active icon for this button. The pixmap itself is loaded + * internally based on the icon size... .. the disabled and default + * pixmaps, however will only be constructed if @ref #generate is + * true. This function is preferred over @ref setPixmap + * + * @param icon The name of the active icon + * @param generate If true, then the other icons are automagically + * generated from this one + */ + void setIcon(const QString &icon, bool /*generate*/ ) { setIcon( icon ); } + + /** + * @deprecated + * Force the button to use this icon as the default one rather + * then generating it using effects. + * + * @param icon The icon to use as the default (normal) one + */ + void setDefaultIcon(const QString& icon); + + /** + * @deprecated + * Force the button to use this icon when disabled one rather then + * generating it using effects. + * + * @param icon The icon to use when disabled + */ + void setDisabledIcon(const QString& icon); +#endif + + /** + * Turn this button on or off + * + * @param flag true or false + */ + void on(bool flag = true); + + /** + * Toggle this button + */ + void toggle(); + + /** + * Turn this button into a toggle button or disable the toggle + * aspects of it. This does not toggle the button itself. Use @ref + * toggle for that. + * + * @param toggle true or false + */ + void setToggle(bool toggle = true); + + /** + * Return a pointer to this button's popup menu (if it exists) + */ + QPopupMenu *popup(); + + /** + * Give this button a popup menu. There will not be a delay when + * you press the button. Use @ref setDelayedPopup if you want that + * behavior. You can also make the popup-menu + * "sticky", i.e. visible until a selection is made or the mouse is + * clikced elsewhere, by simply setting the second argument to true. + * This "sticky" button feature allows you to make a selection without + * having to press and hold down the mouse while making a selection. + * + * @param p The new popup menu + * @param toggle if true, makes the button "sticky" (toggled) + */ + void setPopup (QPopupMenu *p, bool toggle = false); + + /** + * Gives this button a delayed popup menu. + * + * This function allows you to add a delayed popup menu to the button. + * The popup menu is then only displayed when the button is pressed and + * held down for about half a second. You can also make the popup-menu + * "sticky", i.e. visible until a selection is made or the mouse is + * clikced elsewhere, by simply setting the second argument to true. + * This "sticky" button feature allows you to make a selection without + * having to press and hold down the mouse while making a selection. + * + * @param p the new popup menu + * @param toggle if true, makes the button "sticky" (toggled) + */ + void setDelayedPopup(QPopupMenu *p, bool toggle = false); + + /** + * Turn this button into a radio button + * + * @param f true or false + */ + void setRadio(bool f = true); + + /** + * Toolbar buttons naturally will assume the global styles + * concerning icons, icons sizes, etc. You can use this function to + * explicitely turn this off, if you like. + * + * @param no_style Will disable styles if true + */ + void setNoStyle(bool no_style = true); + +signals: + void clicked(int); + void doubleClicked(int); + void pressed(int); + void released(int); + void toggled(int); + void highlighted(int, bool); + +public slots: + /** + * This slot should be called whenever the toolbar mode has + * potentially changed. This includes such events as text changing, + * orientation changing, etc. + */ + void modeChange(); + virtual void setTextLabel(const QString&, bool tipToo); + +protected: + void paletteChange(const QPalette &); + void leaveEvent(QEvent *e); + void enterEvent(QEvent *e); + void drawButton(QPainter *p); + bool eventFilter (QObject *o, QEvent *e); + void showMenu(); + QSize sizeHint() const; + QSize minimumSizeHint() const; + QSize minimumSize() const; + +protected slots: + void slotClicked(); + void slotPressed(); + void slotReleased(); + void slotToggled(); + void slotDelayTimeout(); + +protected: + virtual void virtual_hook( int id, void* data ); +private: + KToolBarButtonPrivate *d; +}; + +/** +* List of @ref KToolBarButton objects. +* @internal +* @version $Id: ktoolbarbutton.h,v 1.21 2002/03/04 00:51:52 lunakl Exp $ +*/ +class KToolBarButtonList : public QIntDict +{ +public: + KToolBarButtonList(); + ~KToolBarButtonList() {} +}; + +#endif diff --git a/extra/kde300/kurifilter.h b/extra/kde300/kurifilter.h new file mode 100644 index 0000000..b013817 --- /dev/null +++ b/extra/kde300/kurifilter.h @@ -0,0 +1,593 @@ +/* + * This file is part of the KDE libraries + * Copyright (C) 2000 Yves Arrouye + * + * This library 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. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public License + * along with this library; see the file COPYING.LIB. If not, write to + * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA. + **/ + +#ifndef __kurifilter_h__ +#define __kurifilter_h__ "$Id: kurifilter.h,v 1.23 2002/03/04 04:17:37 lunakl Exp $" + +#include +#include + +#include + +class KURIFilterPrivate; +class KURIFilterDataPrivate; + +class QStringList; +class KCModule; + +/** +* This is a basic message object used for exchanging filtering +* information between the filter plugins and the application +* whenever the application requires more information about the +* URI than just a filtered version of it. Any application can +* create an instance of this class and send it to @ref KURIFilter +* to have the filter plugins fill the necessary information. +* +* @sect Example +*
+*   QString text = "kde.org";
+*   KURIFilterData d = text;
+*   bool filtered = KURIFilter::self()->filter( d );
+*   if( filtered )
+*     print ( "URI: %s\n"Filtered URI: %s\n URI Type: %i\n"Was Filtered: %i"
+*             text.latin1(), d.uri().url().latin1(), d.uriType(), filtered );
+* 
+* +* The above code should yield the following output: +*
+*   URI: kde.org
+*   Filtered URI: http://kde.org
+*   URI Type: 0            <== means NET_PROTOCOL
+*   Was Filtered: 1        <== means the URL was successfully filtered
+* 
+* +* @short A message object for exchanging filtering URI info. +*/ + +class KURIFilterData +{ +friend class KURIFilterPlugin; + +public: + /** + * Describes the type of URI to be filtered. + * + * This enumerator prvoides the return value for + * @ref uriType. A breif description for each value: + * + * @li NET_PROTOCOL - Any network protocol: http, ftp, nttp, pop3, etc... + * @li LOCAL_FILE - A local file whose executable flag is not set + * @li LOCAL_DIR - A local directory + * @li EXECUTABLE - A local file whose executable flag is set + * @li HELP - A man or info page + * @li SHELL - A shell executable (ex: echo "Test..." >> ~/testfile) + * @li BLOCKED - A URI that should be blocked/filtered (ex: ad filtering) + * @li ERROR - An incorrect URI (ex: "~johndoe" when user johndoe + * does not exist in that system ) + * @li UNKNOWN - A URI that is not identified. Default value when + * a KURIFilterData is first created. + */ + enum URITypes { NET_PROTOCOL=0, LOCAL_FILE, LOCAL_DIR, EXECUTABLE, HELP, SHELL, BLOCKED, ERROR, UNKNOWN }; + + /** + * Default constructor. + * + * Creates a URIFilterData object. + */ + KURIFilterData() { init(); } + + /** + * Creates a URIFilterData object from the given URL. + * + * @param url is the URL to be filtered. + */ + KURIFilterData( const KURL& url ) { init( url); } + + /** + * Creates a URIFilterData object from the given string. + * + * @param url is the string to be filtered. + */ + KURIFilterData( const QString& url ) { init( url ); } + + /** + * Copy constructor. + * + * Creates a URIFilterData object from another + * URI filter data object. + * + * @param data the uri filter data to be copied. + */ + KURIFilterData( const KURIFilterData& /*data*/); + + /** + * Destructor. + */ + ~KURIFilterData(); + + /** + * This method has been deprecated and will always return + * TRUE. You should instead use the result from the + * @ref KURIFilter::filterURI() calls. + * + * @deprecated + */ + bool hasBeenFiltered() const { return m_bFiltered; } + + /** + * Returns the filtered or the original URL. + * + * This function returns the filtered url if one + * of the plugins sucessfully filtered the original + * URL. Otherwise, it returns the original URL. + * See @ref #hasBeenFiltered() and + * + * @return the filtered or original url. + */ + KURL uri() const { return m_pURI; } + + /** + * Returns an error message. + * + * This functions returns the error message set + * by the plugin whenever the uri type is set to + * KURIFilterData::ERROR. Otherwise, it returns + * a QString::null. + * + * @return the error message or a NULL when there is none. + */ + QString errorMsg() const { return m_strErrMsg; } + + /** + * Returns the URI type. + * + * This method always returns KURIFilterData::UNKNOWN + * if the given URL was not filtered. + */ + URITypes uriType() const { return m_iType; } + + /** + * Sets the URL to be filtered. + * + * Use this function to set the string to be + * filtered when you construct an empty filter + * object. + * + * @param url the string to be filtered. + */ + void setData( const QString& url ) { init( url ); } + + /** + * Same as above except the argument is a URL. + * + * Use this function to set the string to be + * filtered when you construct an empty filter + * object. + * + * @param url the URL to be filtered. + */ + void setData( const KURL& url ) { init( url ); } + + /** + * Sets the absolute path to be used whenever the supplied + * data is a relative local URL. + * + * NOTE: This function works only for a local resource and + * expects the absolute path to the relative URL set in this + * meta object. If you are extracting the absolute path from + * a KURL object, make sure you always set the argument below + * using KURL::path() instead of KURL::url() so that "file:/" + * would not be appended! Otherwise, the filter might not be + * able to make correct determination whether the relative URL + * locally exists! + * + * @param abs_path the abolute path to the local resource. + * @return true if absolute path is successfully set. Otherwise, false. + */ + bool setAbsolutePath( const QString& /* abs_path */ ); + + /** + * Returns the absolute path if one has already been set. + */ + QString absolutePath() const; + + /** + * Returns true if the supplied data has an absolute path. + */ + bool hasAbsolutePath() const; + + /** + * Returns the command line options and arguments for a + * local resource when present. + * + * @return options and arguments when present, otherwise QString::null + */ + QString argsAndOptions() const; + + /** + * Returns true if the current data is a local resource with + * command line options and arguments. + */ + bool hasArgsAndOptions() const; + + /** + * Returns the name of the icon that matches + * the current filtered URL. + * + * NOTE that this function will return a NULL + * string by default and when no associated icon + * is found. + * + * @return the name of the icon associated with the resource + */ + QString iconName(); + + /** + * Overloaded assigenment operator. + * + * This function allows you to easily assign a KURL + * to a KURIFilterData object. + * + * @return an instance of a KURIFilterData object. + */ + KURIFilterData& operator=( const KURL& url ) { init( url ); return *this; } + + /** + * Overloaded assigenment operator. + * + * This function allows you to easily assign a QString + * to a KURIFilterData object. + * + * @return an instance of a KURIFilterData object. + */ + KURIFilterData& operator=( const QString& url ) { init( url ); return *this; } + +protected: + + /** + * Initializes the KURIFilterData on construction. + */ + void init( const KURL& url = QString::null ); + +private: + bool m_bFiltered; + bool m_bChanged; + + QString m_strErrMsg; + QString m_strIconName; + + KURL m_pURI; + URITypes m_iType; + KURIFilterDataPrivate *d; +}; + + +/** + * Base class for URI filter plugins. + * + * This class applies a single filter to a URI. All + * plugins designed to provide URI filtering functionalities + * should inherit from this abstract class and provide a + * specific filtering implementation. + * + * All inheriting classes need to implement the pure + * virtual function @ref filterURI. Otherwise, they + * would also become abstract. + * + * @short Abstract class for URI filter plugins. + */ +class KURIFilterPlugin : public QObject +{ + Q_OBJECT + +public: + + /** + * Constructs a filter plugin with a given name and + * priority. + * + * @param parent the parent object. + * @param name the name of the plugin. + * @param pri the priority of the plugin. + */ + KURIFilterPlugin( QObject *parent = 0, const char *name = 0, double pri = 1.0 ); + + /** + * Returns the filter's name. + * + * @return A string naming the filter. + */ + virtual QString name() const { return m_strName; } + + /** + * Returns the filter's priority. + * + * Each filter has an assigned priority, a float from 0 to 1. Filters + * with the lowest priority are first given a chance to filter a URI. + * + * @return The priority of the filter. + */ + virtual double priority() const { return m_dblPriority; } + + /** + * Filters a URI. + * + * @param data the URI data to be filtered. + * @return A boolean indicating whether the URI has been changed. + */ + virtual bool filterURI( KURIFilterData& data ) const = 0; + + /** + * Creates a configuration module for the filter. + * + * It is the responsability of the caller to delete the module + * once it is not needed anymore. + * + * @return A configuration module, @p null if the filter isn't configurable. + */ + virtual KCModule *configModule( QWidget*, const char* ) const { return 0; } + + /** + * Returns the name of the configuration module for the filter. + * + * @return the name of a configuration module or @p null if none. + */ + virtual QString configName() const { return name(); } + +protected: + + /** + * Sets the the URL in @p data to @p uri. + */ + void setFilteredURI ( KURIFilterData& data, const KURL& uri ) const; + + /** + * Sets the error message in @p data to @p errormsg. + */ + void setErrorMsg ( KURIFilterData& data, const QString& errmsg ) const { + data.m_strErrMsg = errmsg; + } + + /** + * Sets the URI type in @p data to @p type. + */ + void setURIType ( KURIFilterData& data, KURIFilterData::URITypes type) const { + data.m_iType = type; + data.m_bChanged = true; + } + + /** + * Sets the arguments and options string in @p data + * to @p args if any were found during filterting. + */ + void setArguments( KURIFilterData& data, const QString& args ) const; + + QString m_strName; + double m_dblPriority; + +protected: + virtual void virtual_hook( int id, void* data ); +private: + class KURIFilterPluginPrivate *d; +}; + + +class KURIFilterPluginList : public QPtrList +{ +public: + virtual int compareItems(Item a, Item b) + { + double diff = ((KURIFilterPlugin *) a)->priority() - ((KURIFilterPlugin *) b)->priority(); + return diff < 0 ? -1 : (diff > 0 ? 1 : 0); + } + +private: + KURIFilterPrivate *d; + +}; + +/** + * Manages the filtering of a URI. + * + * The intention of this plugin class is to allow people to extend + * the functionality of KURL without modifying it directly. This + * way KURL will remain a generic parser capable of parsing any + * generic URL that adheres to specifications. + * + * The KURIFilter class applies a number of filters to a URI, + * and returns the filtered version whenever possible. The filters + * are implemented using plugins to provide easy extensibility + * of the filtering mechanism. That is, new filters can be added in + * the future by simply inheriting from @ref KURIFilterPlugin and + * implementing the @ref KURIFilterPlugin::filterURI method. + * + * Use of this plugin-manager class is straight forward. Since + * it is a singleton object, all you have to do is obtain an instance + * by doing @p KURIFilter::self() and use any of the public member + * functions to preform the filtering. + * + * @sect Example + * + * To simply filter a given string: + *
+ * bool filtered = KURIFilter::self()->filterURI( "kde.org" );
+ * 
+ * + * You can alternatively use a KURL: + *
+ * KURL url = "kde.org";
+ * bool filtered = KURIFilter::self()->filterURI( url );
+ * 
+ * + * If you have a constant string or a constant URL, + * simply invoke the corresponding function to obtain + * the filtered string or URL instead of a boolean flag: + *
+ * QString u = KURIFilter::self()->filteredURI( "kde.org" );
+ * 
+ * + * You can also specify only specific filter(s) to be applied + * by supplying the name(s) of the filter(s). By defualt all + * filters that are found are loaded when the KURIFilter object + * is created will be used. These names are taken from the + * enteries in the \".desktop\" files. Here are a couple of + * examples: + *
+ * QString text = "kde.org";
+ * bool filtered = KURIFilter::self()->filterURI( text, "KShortURIFilter" );
+ *
+ * QStringList list;
+ * list << "KShortURIFilter" << "MyFilter";
+ * bool filtered = KURIFilter::self()->filterURI( text, list );
+ * 
+ * + * KURIFilter also allows richer data exchange through a simple + * meta-object called @p KURIFilterData. Using this meta-object + * you can find out more information about the URL you want to + * filter. See @ref KURIFilterData for examples and details. + * + * @short Filters a given URL into its proper format whenever possible. + */ + +class KURIFilter +{ +public: + /** + * Destructor + */ + ~KURIFilter (); + + /** + * Return a static instance of KURIFilter. + */ + static KURIFilter* self(); + + /** + * Filters the URI given by the object URIFilterData. + * + * This filters the given data based on the specified + * filter list. If the list is empty all avaliable + * filter plugins would be used. If not, only those + * given in the list are used. + * + * @param data object that contains the URI to be filtered. + * @param filters specify the list filters to be used + * + * @return a boolean indicating whether the URI has been changed + */ + bool filterURI( KURIFilterData& data, const QStringList& filters = QStringList() ); + + /** + * Filters the URI given by the URL. + * + * This filters the given URL based on the specified + * filter list. If the list is empty all avaliable + * filter plugins would be used. If not, only those + * given in the list are used. + * + * @param uri the URI to filter. + * @param filters specify the list of filters to be used + * + * @return a boolean indicating whether the URI has been changed + */ + bool filterURI( KURL &uri, const QStringList& filters = QStringList() ); + + /** + * Filters a string representing a URI. + * + * This filters the given string based on the specified + * filter list. If the list is empty all avaliable + * filter plugins would be used. If not, only those + * given in the list are used. + * + * @param uri The URI to filter. + * @param filters specify the list filters to be used + * + * @return a boolean indicating whether the URI has been changed + */ + bool filterURI( QString &uri, const QStringList& filters = QStringList() ); + + /** + * Returns the filtered URI. + * + * This filters the given URL based on the specified + * filter list. If the list is empty all avaliable + * filter plugins would be used. If not, only those + * given in the list are used. + * + * @param uri The URI to filter. + * @param filters specify the list filters to be used + * + * @return the filtered URI or null if it cannot be filtered + */ + KURL filteredURI( const KURL &uri, const QStringList& filters = QStringList() ); + + /** + * Return a filtered string representation of a URI. + * + * This filters the given URL based on the specified + * filter list. If the list is empty all avaliable + * filter plugins would be used. If not, only those + * given in the list are used. + * + * @param uri the URI to filter. + * @param filters specify the list filters to be used + * + * @return the filtered URI or null if it cannot be filtered + */ + QString filteredURI( const QString &uri, const QStringList& filters = QStringList() ); + + /** + * Return an iterator to iterate over all loaded + * plugins. + * + * @return a plugin iterator. + */ + QPtrListIterator pluginsIterator() const; + +protected: + + /** + * A protected constructor. + * + * This constructor creates a KURIFilter and + * initializes all plugins it can find by invoking + * @ref loadPlugins. + */ + KURIFilter(); + + /** + * Loads all allowed plugins. + * + * This function loads all filters that have not + * been dis + */ + void loadPlugins(); + +private: + + static KURIFilter *m_self; + KURIFilterPluginList m_lstPlugins; + KURIFilterPrivate *d; + +}; + +#endif + diff --git a/extra/kde301/kaccelaction.h b/extra/kde301/kaccelaction.h new file mode 100644 index 0000000..139d7f7 --- /dev/null +++ b/extra/kde301/kaccelaction.h @@ -0,0 +1,202 @@ +/* This file is part of the KDE libraries + Copyright (C) 2001,2002 Ellis Whitehead + + This library 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. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef _KACCELACTION_H +#define _KACCELACTION_H + +#include +#include +#include +#include + +#include + +class KAccelBase; + +class QObject; +class KConfig; +class KConfigBase; + +/* + KAccelAction holds information an a given action, such as "Execute Command" + + 1) KAccelAction = "Execute Command" + Default3 = "Alt+F2" + Default4 = "Meta+Enter;Alt+F2" + 1) KShortcut = "Meta+Enter" + 1) KKeySequence = "Meta+Enter" + 1) KKey = "Meta+Enter" + 1) Meta+Enter + 2) Meta+Keypad_Enter + 2) KShortcut = "Alt+F2" + 1) KKeySequence = "Alt+F2" + 1) Alt+F2 + 2) KAccelAction = "Something" + Default3 = "" + Default4 = "" + 1) KShortcut = "Meta+X,Asterisk" + 1) KKeySequence = "Meta+X,Asterisk" + 1) KKey = "Meta+X" + 1) Meta+X + 2) KKey = "Asterisk" + 1) Shift+8 (English layout) + 2) Keypad_Asterisk +*/ + +//--------------------------------------------------------------------- +// KAccelAction +//--------------------------------------------------------------------- + +class KAccelAction +{ + public: + KAccelAction(); + KAccelAction( const KAccelAction& ); + KAccelAction( const QString& sName, const QString& sLabel, const QString& sWhatsThis, + const KShortcut& cutDef3, const KShortcut& cutDef4, + const QObject* pObjSlot, const char* psMethodSlot, + bool bConfigurable, bool bEnabled ); + ~KAccelAction(); + + void clear(); + bool init( const QString& sName, const QString& sLabel, const QString& sWhatsThis, + const KShortcut& cutDef3, const KShortcut& cutDef4, + const QObject* pObjSlot, const char* psMethodSlot, + bool bConfigurable, bool bEnabled ); + + KAccelAction& operator=( const KAccelAction& ); + + const QString& name() const { return m_sName; } + const QString& label() const { return m_sLabel; } + const QString& whatsThis() const { return m_sWhatsThis; } + const KShortcut& shortcut() const { return m_cut; } + const KShortcut& shortcutDefault() const; + const KShortcut& shortcutDefault3() const { return m_cutDefault3; } + const KShortcut& shortcutDefault4() const { return m_cutDefault4; } + const QObject* objSlotPtr() const { return m_pObjSlot; } + const char* methodSlotPtr() const { return m_psMethodSlot; } + bool isConfigurable() const { return m_bConfigurable; } + bool isEnabled() const { return m_bEnabled; } + + void setName( const QString& ); + void setLabel( const QString& ); + void setWhatsThis( const QString& ); + bool setShortcut( const KShortcut& rgCuts ); + void setSlot( const QObject* pObjSlot, const char* psMethodSlot ); + void setConfigurable( bool ); + void setEnabled( bool ); + + int getID() const { return m_nIDAccel; } + void setID( int n ) { m_nIDAccel = n; } + bool isConnected() const; + + bool setKeySequence( uint i, const KKeySequence& ); + void clearShortcut(); + bool contains( const KKeySequence& ); + + QString toString() const; + QString toStringInternal() const; + + static bool useFourModifierKeys(); + static void useFourModifierKeys( bool ); + + protected: + QString m_sName, + m_sLabel, + m_sWhatsThis; + KShortcut m_cut; + KShortcut m_cutDefault3, m_cutDefault4; + const QObject* m_pObjSlot; + const char* m_psMethodSlot; + bool m_bConfigurable, + m_bEnabled; + int m_nIDAccel; + uint m_nConnections; + + void incConnections(); + void decConnections(); + + private: + static int g_bUseFourModifierKeys; + class KAccelActionPrivate* d; + + friend class KAccelActions; + friend class KAccelBase; +}; + +//--------------------------------------------------------------------- +// KAccelActions +//--------------------------------------------------------------------- + +class KAccelActions +{ + public: + KAccelActions(); + KAccelActions( const KAccelActions& ); + virtual ~KAccelActions(); + + void clear(); + bool init( const KAccelActions& ); + bool init( KConfigBase& config, const QString& sGroup ); + + void updateShortcuts( KAccelActions& ); + + int actionIndex( const QString& sAction ) const; + KAccelAction* actionPtr( uint ); + const KAccelAction* actionPtr( uint ) const; + KAccelAction* actionPtr( const QString& sAction ); + const KAccelAction* actionPtr( const QString& sAction ) const; + KAccelAction* actionPtr( KKeySequence cut ); + KAccelAction& operator []( uint ); + const KAccelAction& operator []( uint ) const; + + KAccelAction* insert( const QString& sAction, const QString& sLabel, const QString& sWhatsThis, + const KShortcut& rgCutDefaults3, const KShortcut& rgCutDefaults4, + const QObject* pObjSlot = 0, const char* psMethodSlot = 0, + bool bConfigurable = true, bool bEnabled = true ); + KAccelAction* insert( const QString& sName, const QString& sLabel ); + bool remove( const QString& sAction ); + + bool readActions( const QString& sConfigGroup = "Shortcuts", KConfigBase* pConfig = 0 ); + bool writeActions( const QString& sConfigGroup = "Shortcuts", KConfigBase* pConfig = 0, + bool bWriteAll = false, bool bGlobal = false ) const; + + void emitKeycodeChanged(); + + uint count() const; + + protected: + KAccelBase* m_pKAccelBase; + KAccelAction** m_prgActions; + uint m_nSizeAllocated, m_nSize; + + void resize( uint ); + void insertPtr( KAccelAction* ); + + private: + class KAccelActionsPrivate* d; + + KAccelActions( KAccelBase* ); + void initPrivate( KAccelBase* ); + KAccelActions& operator =( KAccelActions& ); + + friend class KAccelBase; +}; + +#endif // _KACCELACTION_H diff --git a/extra/kde301/kaccelbase.h b/extra/kde301/kaccelbase.h new file mode 100644 index 0000000..1a80eee --- /dev/null +++ b/extra/kde301/kaccelbase.h @@ -0,0 +1,233 @@ +/* This file is part of the KDE libraries + Copyright (C) 2001 Ellis Whitehead + + This library 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. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef _KACCELBASE_H +#define _KACCELBASE_H + +#include +#include +#include +#include +#include + +#include "kaccelaction.h" +#include "kkeyserver_x11.h" + +class QPopupMenu; +class QWidget; + +//---------------------------------------------------- + +class KAccelBasePrivate; +/** + * Handle keyboard accelerators. + * + * Allow an user to configure + * key bindings through application configuration files or through the + * @ref KKeyChooser GUI. + * + * A @ref KAccel contains a list of accelerator items. Each accelerator item + * consists of an action name and a keyboard code combined with modifiers + * (Shift, Ctrl and Alt.) + * + * For example, "Ctrl+P" could be a shortcut for printing a document. The key + * codes are listed in ckey.h. "Print" could be the action name for printing. + * The action name identifies the key binding in configuration files and the + * @ref KKeyChooser GUI. + * + * When pressed, an accelerator key calls the slot to which it has been + * connected. Accelerator items can be connected so that a key will activate + * two different slots. + * + * A KAccel object handles key events sent to its parent widget and to all + * children of this parent widget. + * + * Key binding reconfiguration during run time can be prevented by specifying + * that an accelerator item is not configurable when it is inserted. A special + * group of non-configurable key bindings are known as the + * standard accelerators. + * + * The standard accelerators appear repeatedly in applications for + * standard document actions such as printing and saving. Convenience methods are + * available to insert and connect these accelerators which are configurable on + * a desktop-wide basis. + * + * It is possible for a user to choose to have no key associated with + * an action. + * + * The translated first argument for @ref insertItem() is used only + * in the configuration dialog. + *
+ * KAccel *a = new KAccel( myWindow );
+ * // Insert an action "Scroll Up" which is associated with the "Up" key:
+ * a->insertItem( i18n("Scroll up"), "Scroll Up", "Up" );
+ * // Insert an action "Scroll Down" which is not associated with any key:
+ * a->insertItem( i18n("Scroll down"), "Scroll Down", 0);
+ * a->connectItem( "Scroll up", myWindow, SLOT( scrollUp() ) );
+ * // a->insertStdItem( KStdAccel::Print ); //not necessary, since it
+ *	// is done automatially with the
+ *	// connect below!
+ * a->connectItem(KStdAccel::Print, myWindow, SLOT( printDoc() ) );
+ *
+ * a->readSettings();
+ *
+ * + * If a shortcut has a menu entry as well, you could insert them like + * this. The example is again the @ref KStdAccel::Print from above. + * + *
+ * int id;
+ * id = popup->insertItem("&Print",this, SLOT(printDoc()));
+ * a->changeMenuAccel(popup, id, KStdAccel::Print );
+ * 
+ * + * If you want a somewhat "exotic" name for your standard print action, like + * id = popup->insertItem(i18n("Print &Document"),this, SLOT(printDoc())); + * it might be a good idea to insert the standard action before as + * a->insertStdItem( KStdAccel::Print, i18n("Print Document") ) + * as well, so that the user can easily find the corresponding function. + * + * This technique works for other actions as well. Your "scroll up" function + * in a menu could be done with + * + *
+ *    id = popup->insertItem(i18n"Scroll &up",this, SLOT(scrollUp()));
+ *    a->changeMenuAccel(popup, id, "Scroll Up" );
+ * 
+ * + * Please keep the order right: First insert all functions in the + * acceleratior, then call a -> @ref readSettings() and @em then build your + * menu structure. + * + * @short Configurable key binding support. + * @version $Id: kaccelbase.h,v 1.20 2002/03/03 21:20:25 lunakl Exp $ + */ + +class KAccelBase +{ + public: + enum Init { QT_KEYS = 0x00, NATIVE_KEYS = 0x01 }; + enum Signal { KEYCODE_CHANGED }; + + KAccelBase( int fInitCode ); + virtual ~KAccelBase(); + + uint actionCount() const; + KAccelActions& actions(); + bool isEnabled() const; + + KAccelAction* actionPtr( const QString& sAction ); + const KAccelAction* actionPtr( const QString& sAction ) const; + KAccelAction* actionPtr( const KKey& key ); + KAccelAction* actionPtr( const KKeyServer::Key& key ); + + const QString& configGroup() const { return m_sConfigGroup; } + void setConfigGroup( const QString& group ); + void setConfigGlobal( bool global ); + virtual void setEnabled( bool bEnabled ) = 0; + bool getAutoUpdate() { return m_bAutoUpdate; } + // return value of AutoUpdate flag before this call. + bool setAutoUpdate( bool bAuto ); + +// Procedures for manipulating Actions. + //void clearActions(); + + KAccelAction* insert( const QString& sName, const QString& sDesc ); + KAccelAction* insert( + const QString& sAction, const QString& sDesc, const QString& sHelp, + const KShortcut& rgCutDefaults3, const KShortcut& rgCutDefaults4, + const QObject* pObjSlot, const char* psMethodSlot, + bool bConfigurable = true, bool bEnabled = true ); + bool remove( const QString& sAction ); + bool setActionSlot( const QString& sAction, const QObject* pObjSlot, const char* psMethodSlot ); + + bool updateConnections(); + + bool setShortcut( const QString& sAction, const KShortcut& cut ); + +// Modify individual Action sub-items + bool setActionEnabled( const QString& sAction, bool bEnable ); + + /** + * Read all key associations from @p config, or (if @p config + * is zero) from the application's configuration file + * @ref KGlobal::config(). + * + * The group in which the configuration is stored can be + * set with @ref setConfigGroup(). + */ + void readSettings( KConfigBase* pConfig = 0 ); + + /** + * Write the current configurable associations to @p config, + * or (if @p config is zero) to the application's + * configuration file. + */ + void writeSettings( KConfigBase* pConfig = 0 ) const; + + QPopupMenu* createPopupMenu( QWidget* pParent, const KKeySequence& ); + + // Protected methods + protected: + void slotRemoveAction( KAccelAction* ); + + void createKeyList( QValueVector& rgKeys ); + bool insertConnection( KAccelAction* ); + bool removeConnection( KAccelAction* ); + + virtual bool emitSignal( Signal ) = 0; + virtual bool connectKey( KAccelAction&, const KKeyServer::Key& ) = 0; + virtual bool connectKey( const KKeyServer::Key& ) = 0; + virtual bool disconnectKey( KAccelAction&, const KKeyServer::Key& ) = 0; + virtual bool disconnectKey( const KKeyServer::Key& ) = 0; + + protected: + struct ActionInfo + { + KAccelAction* pAction; + uint iSeq, iVariation; + //ActionInfo* pInfoNext; // nil if only one action uses this key. + + ActionInfo() { pAction = 0; iSeq = 0xffff; iVariation = 0xffff; } + ActionInfo( KAccelAction* _pAction, uint _iSeq, uint _iVariation ) + { pAction = _pAction; iSeq = _iSeq; iVariation = _iVariation; } + }; + typedef QMap KKeyToActionMap; + + KAccelActions m_rgActions; + KKeyToActionMap m_mapKeyToAction; + QValueList m_rgActionsNonUnique; + bool m_bNativeKeys; // Use native key codes instead of Qt codes + bool m_bEnabled; + bool m_bConfigIsGlobal; + QString m_sConfigGroup; + bool m_bAutoUpdate; + KAccelAction* mtemp_pActionRemoving; + + private: + KAccelBase& operator =( const KAccelBase& ); + + friend class KAccelActions; + protected: + virtual void virtual_hook( int id, void* data ); + private: + KAccelBasePrivate* d; +}; + +#endif // _KACCELBASE_H diff --git a/extra/kde301/kicontheme.h b/extra/kde301/kicontheme.h new file mode 100644 index 0000000..78fc8f1 --- /dev/null +++ b/extra/kde301/kicontheme.h @@ -0,0 +1,217 @@ +/* vi: ts=8 sts=4 sw=4 + * + * $Id: kicontheme.h,v 1.19 2002/03/05 23:13:26 rich Exp $ + * + * This file is part of the KDE project, module kdecore. + * Copyright (C) 2000 Geert Jansen + * Antonio Larrosa + * + * This is free software; it comes under the GNU Library General + * Public License, version 2. See the file "COPYING.LIB" for the + * exact licensing terms. + * + */ + +#ifndef __KIconTheme_h_Included__ +#define __KIconTheme_h_Included__ + +#include +#include +#include + +class KConfig; +//class KIconThemeDir; + +class KIconThemePrivate; + +class KIconPrivate; + +/** + * One icon as found by KIconTheme. Also serves as a namespace containing + * icon related constants. + */ +class KIcon +{ +public: + KIcon() { size = 0; } + + /** + * Return true if this icon is valid, false otherwise. + */ + bool isValid() const { return size != 0; } + + enum Context { Any, Action, Application, Device, FileSystem, MimeType }; + enum Type { Fixed, Scalable, Threshold }; + enum MatchType { MatchExact, MatchBest }; + // if you add a group here, make sure to change the config reading in + // KIconLoader too + enum Group { NoGroup=-1, Desktop=0, FirstGroup=Desktop, Toolbar, + MainToolbar, Small, Panel, LastGroup, User }; + enum StdSizes { SizeSmall=16, SizeMedium=32, SizeLarge=48 }; + enum States { DefaultState, ActiveState, DisabledState, LastState }; + enum Overlays { LockOverlay=0x100, ZipOverlay=0x200, LinkOverlay=0x400, + HiddenOverlay=0x800, OverlayMask = ~0xff }; + + /** + * The size in pixels of the icon. + */ + int size; + + /** + * The context of the icon. + */ + Context context; + + /** + * The type of the icon: Fixed, Scalable or Threshold. + **/ + Type type; + + /** + * The threshold in case type == Threshold + */ + int threshold; + + /** + * The full path of the icon. + */ + QString path; + +private: + KIconPrivate *d; +}; + +inline KIcon::Group& operator++(KIcon::Group& group) { group = static_cast(group+1); return group; } +inline KIcon::Group operator++(KIcon::Group& group,int) { KIcon::Group ret = group; ++group; return ret; } + +/** + * Class to use/access icon themes in KDE. This class is used by the + * iconloader but can be used by others too. + */ +class KIconTheme +{ +public: + /** + * Load an icon theme by name. + */ + KIconTheme(const QString& name, const QString& appName=QString::null); + ~KIconTheme(); + + /** + * The stylized name of the icon theme. + */ + QString name() const { return mName; } + + /** + * A description for the icon theme. + */ + QString description() const { return mDesc; } + + /** + * Return the name of the "example" icon. + */ + QString example() const; + + /** + * Return the name of the screenshot. + */ + QString screenshot() const; + + /** + * Returns the name of this theme's link overlay. + */ + QString linkOverlay() const; + + /** + * Returns the name of this theme's zip overlay. + */ + QString zipOverlay() const; + + /** + * Returns the name of this theme's lock overlay. + */ + QString lockOverlay() const; + + /** + * Returns the toplevel theme directory. + */ + QString dir() const { return mDir; } + + /** + * The themes this icon theme falls back on. + */ + QStringList inherits() const { return mInherits; } + + /** + * The icon theme exists? + */ + bool isValid() const; + + /** + * The minimum display depth required for this theme. This can either + * be 8 or 32. + */ + int depth() const { return mDepth; } + + /** + * The default size of this theme for a certain icon group. + * @param group The icon group. See @ref #KIcon::Group. + * @return The default size in pixels for the given icon group. + */ + int defaultSize(KIcon::Group group) const; + + /** + * Query available sizes for a group. + */ + QValueList querySizes(KIcon::Group group) const; + + /** + * Query available icons for a size and context. + */ + QStringList queryIcons(int size, KIcon::Context context = KIcon::Any) const; + + /** + * Query available icons for a context and preferred size. + */ + QStringList queryIconsByContext(int size, KIcon::Context context = KIcon::Any) const; + + + /** + * Lookup an icon in the theme. + * @param name The name of the icon, without extension. + * @param size The desired size of the icon. + * @param match The matching mode. KIcon::MatchExact returns an icon + * only if matches exactly. KIcon::MatchBest returns the best matching + * icon. + * @return A KIcon class that describes the icon. If an icon is found, + * @ref #KIcon::isValid will return true, and false otherwise. + */ + KIcon iconPath(const QString& name, int size, KIcon::MatchType match) const; + + /** + * List all icon themes installed on the system, global and local. + */ + static QStringList list(); + + /** + * Returns the current icon theme. + */ + static QString current(); + + static void reconfigure(); + +private: + int mDefSize[8]; + QValueList mSizes[8]; + + int mDepth; + QString mDir, mName, mDesc; + QStringList mInherits; +// QPtrList mDirs; + KIconThemePrivate *d; + + static QString *_theme; + static QStringList *_theme_list; +}; + +#endif diff --git a/extra/kde301/kkeyserver_x11.h b/extra/kde301/kkeyserver_x11.h new file mode 100644 index 0000000..faeb99c --- /dev/null +++ b/extra/kde301/kkeyserver_x11.h @@ -0,0 +1,131 @@ +#ifndef _KKEYSERVER_X11_H +#define _KKEYSERVER_X11_H + +#include "kshortcut.h" +#include "kkeynative.h" + +namespace KKeyServer +{ + struct CodeMod { int code, mod; }; + + struct Sym + { + public: + uint m_sym; + + Sym() + { m_sym = 0; } + Sym( uint sym ) + { m_sym = sym; } + Sym( const QString& s ) + { init( s ); } + + bool initQt( int keyQt ); + bool init( const QString& ); + + int qt() const; + QString toStringInternal() const; + QString toString() const; + + uint getModsRequired() const; + uint getSymVariation() const; + + operator uint() const { return m_sym; } + Sym& operator =( uint sym ) { m_sym = sym; return *this; } + + private: + QString toString( bool bUserSpace ) const; + + static void capitalizeKeyname( QString& ); + }; + + struct Key + { + enum { CODE_FOR_QT = 256 }; + + uint m_code; + uint m_mod; + uint m_sym; + + bool init( const KKey& key, bool bQt ); + + bool isNative() const { return m_code != CODE_FOR_QT; } + + uint code() const { return m_code; } + uint mod() const { return m_mod; } + uint sym() const { return m_sym; } + int keyCodeQt() const { return (int) m_sym; } + + void setKeycodeQt( int keyQt ) + { m_code = CODE_FOR_QT; m_sym = keyQt; } + + Key& operator =( const KKeyNative& key ); + int compare( const Key& ) const; + + bool operator ==( const Key& b ) const + { return compare( b ) == 0; } + bool operator <( const Key& b ) const + { return compare( b ) < 0; } + + KKey key() const; + }; + + struct Variations + { + enum { MAX_VARIATIONS = 4 }; + + Key m_rgkey[MAX_VARIATIONS]; + uint m_nVariations; + + Variations() { m_nVariations = 0; } + + void init( const KKey&, bool bQt ); + + uint count() const { return m_nVariations; } + const Key& key( uint i ) const { return m_rgkey[i]; } + }; + + bool initializeMods(); + + /** + * Returns the equivalent X modifier mask of the given modifier flag. + */ + uint modX( KKey::ModFlag ); + /** + * Returns true if the current keyboard layout supports the Win key. + * Specifically, whether the Super or Meta keys are assigned to an X modifier. + */ + bool keyboardHasWinKey(); + uint modXShift(); + uint modXLock(); + uint modXCtrl(); + uint modXAlt(); + uint modXNumLock(); + uint modXWin(); + uint modXScrollLock(); + /** + * Returns bitwise OR'ed mask containing Shift, Ctrl, Alt, and + * Win (if available). + */ + uint accelModMaskX(); + + bool keyQtToSym( int keyQt, uint& sym ); + bool keyQtToMod( int keyQt, uint& mod ); + bool symToKeyQt( uint sym, int& keyQt ); + + bool modToModQt( uint mod, int& modQt ); + bool modToModX( uint mod, uint& modX ); + bool modXToModQt( uint modX, int& modQt ); + bool modXToMod( uint modX, uint& mod ); + + bool codeXToSym( uchar codeX, uint modX, uint& symX ); + + QString modToStringInternal( uint mod ); + QString modToStringUser( uint mod ); + + bool stringToSymMod( const QString&, uint& sym, uint& mod ); + + void keyQtToKeyX( uint keyCombQt, unsigned char *pKeyCodeX, uint *pKeySymX, uint *pKeyModX ); +}; + +#endif // !_KKEYSERVER_X11_H diff --git a/extra/kde301/konsole_part.h b/extra/kde301/konsole_part.h new file mode 100644 index 0000000..ba89800 --- /dev/null +++ b/extra/kde301/konsole_part.h @@ -0,0 +1,223 @@ +/* + This file is part of the KDE system + Copyright (C) 1999,2000 Boloni Laszlo + + 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. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. + */ + +#ifndef __KONSOLE_PART_H__ +#define __KONSOLE_PART_H__ + +#include +#include + + +#include + +#include + +//#include "schema.h" +//#include "session.h" + +class KInstance; +class konsoleBrowserExtension; +class QPushButton; +class QSpinBox; +class KPopupMenu; +class QCheckBox; +class KRootPixmap; +class KToggleAction; +class KSelectAction; + +namespace KParts { class GUIActivateEvent; } + +class konsoleFactory : public KParts::Factory +{ + Q_OBJECT +public: + konsoleFactory(); + virtual ~konsoleFactory(); + + virtual KParts::Part* createPartObject(QWidget *parentWidget = 0, const char *widgetName = 0, + QObject* parent = 0, const char* name = 0, + const char* classname = "KParts::Part", + const QStringList &args = QStringList()); + + static KInstance *instance(); + + private: + static KInstance *s_instance; + static KAboutData *s_aboutData; +}; + +////////////////////////////////////////////////////////////////////// + +class konsolePart: public KParts::ReadOnlyPart, public TerminalInterface +{ + Q_OBJECT + public: + konsolePart(QWidget *parentWidget, const char *widgetName, QObject * parent, const char *name, const char *classname = 0); + virtual ~konsolePart(); + +signals: + void processExited(); + void receivedData( const QString& s ); + protected: + virtual bool openURL( const KURL & url ); + virtual bool openFile() {return false;} // never used + virtual bool closeURL() {return true;} + virtual void guiActivateEvent( KParts::GUIActivateEvent * event ); + + protected slots: + void showShell(); + void slotProcessExited(); + void slotReceivedData( const QString& s ); + +// void doneSession(TESession*); + void sessionDestroyed(); +// void configureRequest(TEWidget*,int,int x,int y); + void updateTitle(); + void enableMasterModeConnections(); + + private slots: + void emitOpenURLRequest(const QString &url); + + void readProperties(); + void saveProperties(); + + void sendSignal(int n); + void closeCurrentSession(); + + void notifySize(int,int); + + void slotToggleFrame(); + void slotSelectScrollbar(); + void slotSelectFont(); + void schema_menu_check(); + void keytab_menu_activated(int item); + void updateSchemaMenu(); + void setSchema(int n); + void pixmap_menu_activated(int item); + void schema_menu_activated(int item); + void slotHistoryType(); + void slotSelectBell(); + void slotSelectLineSpacing(); + void slotBlinkingCursor(); + void slotWordSeps(); + void fontNotFound(); + + private: + konsoleBrowserExtension *m_extension; + KURL currentURL; + + void makeGUI(); + void applySettingsToGUI(); + + void setFont(int fontno); +// void setSchema(ColorSchema* s); + void updateKeytabMenu(); + + bool doOpenStream( const QString& ); + bool doWriteStream( const QByteArray& ); + bool doCloseStream(); + + QWidget* parentWidget; +// TEWidget* te; +// TESession* se; +// ColorSchemaList* colors; + KRootPixmap* rootxpm; + + KToggleAction* blinkingCursor; + KToggleAction* showFrame; + + KSelectAction* selectBell; + KSelectAction* selectFont; + KSelectAction* selectLineSpacing; + KSelectAction* selectScrollbar; + + KPopupMenu* m_keytab; + KPopupMenu* m_schema; + KPopupMenu* m_signals; + KPopupMenu* m_options; + KPopupMenu* m_popupMenu; + + QFont defaultFont; + + QString pmPath; // pixmap path + QString s_schema; + QString s_kconfigSchema; + QString s_word_seps; // characters that are considered part of a word + QString fontNotFound_par; + + bool b_framevis:1; + bool b_histEnabled:1; + + int curr_schema; // current schema no + int n_bell; + int n_font; + int n_keytab; + int n_render; + int n_scroll; + unsigned m_histSize; + bool m_runningShell; + bool m_streamEnabled; +public: + // these are the implementations for the TermEmuInterface + // functions... + void startProgram( const QString& program, + const QStrList& args ); + void showShellInDir( const QString& dir ); + void sendInput( const QString& text ); +}; + +////////////////////////////////////////////////////////////////////// + +/*class HistoryTypeDialog : public KDialogBase +{ + Q_OBJECT +public: + HistoryTypeDialog(const HistoryType& histType, + unsigned int histSize, + QWidget *parent); + +public slots: + void slotDefault(); + void slotSetUnlimited(); + void slotHistEnable(bool); + + unsigned int nbLines() const; + bool isOn() const; + +protected: + QCheckBox* m_btnEnable; + QSpinBox* m_size; + QPushButton* m_setUnlimited; +};*/ + +////////////////////////////////////////////////////////////////////// + +class konsoleBrowserExtension : public KParts::BrowserExtension +{ + Q_OBJECT + friend class konsolePart; + public: + konsoleBrowserExtension(konsolePart *parent); + virtual ~konsoleBrowserExtension(); + + void emitOpenURLRequest(const KURL &url); +}; + +#endif diff --git a/extra/kde301/krecentdirs.h b/extra/kde301/krecentdirs.h new file mode 100644 index 0000000..71f771b --- /dev/null +++ b/extra/kde301/krecentdirs.h @@ -0,0 +1,68 @@ +/* -*- c++ -*- + * Copyright (C)2000 Waldo Bastian + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * + */ +#ifndef __KRECENTDIRS_H +#define __KRECENTDIRS_H + +#include + +/** + * The goal of this class is to make sure that, when the user needs to + * specify a file via the file selection dialog, this dialog will start + * in the directory most likely to contain the desired files. + * + * This works as follows: Each time the file selection dialog is + * shown, the programmer can specify a "file-class". The file-dialog will + * then start with the directory associated with this file-class. When + * the dialog closes, the directory currently shown in the file-dialog + * will be associated with the file-class. + * + * A file-class can either start with ':' or with '::'. If it starts with + * a single ':' the file-class is specific to the current application. + * If the file-class starts with '::' it is global to all applications. + */ +class KRecentDirs +{ +public: + /** + * Returns a list of directories associated with this file-class. + * The most recently used directory is at the front of the list. + */ + static QStringList list(const QString &fileClass); + + /** + * Returns the most recently used directory accociated with this file-class. + */ + static QString dir(const QString &fileClass); + + /** + * Associates @p directory with @p fileClass + */ + static void add(const QString &fileClass, const QString &directory); +}; + +#endif diff --git a/extra/kde301/ksycocafactory.h b/extra/kde301/ksycocafactory.h new file mode 100644 index 0000000..af33ca8 --- /dev/null +++ b/extra/kde301/ksycocafactory.h @@ -0,0 +1,135 @@ +/* This file is part of the KDE libraries + * Copyright (C) 1999 Waldo Bastian + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License version 2 as published by the Free Software Foundation; + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public License + * along with this library; see the file COPYING.LIB. If not, write to + * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA. + **/ + +#ifndef __ksycocafactory_h__ +#define __ksycocafactory_h__ "$Id: ksycocafactory.h,v 1.12 2002/03/03 21:20:26 lunakl Exp $" + +#include "ksycocatype.h" +#include "ksycocaentry.h" + +#include +#include +class KSycoca; +class QStringList; +class QString; +class KSycocaDict; +class KSycocaResourceList; + +typedef QDict KSycocaEntryDict; + +/** + * @internal + * Base class for sycoca factories + */ +class KSycocaFactory +{ +public: + virtual KSycocaFactoryId factoryId() const = 0; + +protected: // virtual class + /** + * Create a factory which can be used to lookup from/create a database + * (depending on KSycoca::isBuilding()) + */ + KSycocaFactory( KSycocaFactoryId factory_id ); + +public: + virtual ~KSycocaFactory(); + + /** + * @return the position of the factory in the sycoca file + */ + int offset() { return mOffset; } + + /** + * @return the dict, for special use by KBuildSycoca + */ + KSycocaEntryDict * entryDict() { return m_entryDict; } + + /** + * Construct an entry from a config file. + * To be implemented in the real factories. + */ + virtual KSycocaEntry *createEntry(const QString &file, const char *resource) = 0; + + /** + * Add an entry + */ + virtual void addEntry(KSycocaEntry *newEntry, const char *resource); + + /** + * Read an entry from the database + */ + virtual KSycocaEntry *createEntry(int offset)=0; + + /** + * Get a list of all entries from the database. + */ + KSycocaEntry::List allEntries(); + + /** + * Saves all entries it maintains as well as index files + * for these entries to the stream 'str'. + * + * Also sets mOffset to the starting position. + * + * The stream is positioned at the end of the last index. + * + * Don't forget to call the parent first when you override + * this function. + */ + virtual void save(QDataStream &str); + + /** + * Writes out a header to the stream 'str'. + * The baseclass positions the stream correctly. + * + * Don't forget to call the parent first when you override + * this function. + */ + virtual void saveHeader(QDataStream &str); + + /** + * @return the resources for which this factory is responsible. + */ + virtual const KSycocaResourceList * resourceList() const { return m_resourceList; } + +private: + int mOffset; + +protected: + int m_sycocaDictOffset; + int m_beginEntryOffset; + int m_endEntryOffset; + QDataStream *m_str; + + KSycocaResourceList *m_resourceList; + KSycocaEntryDict *m_entryDict; + KSycocaDict *m_sycocaDict; +protected: + virtual void virtual_hook( int id, void* data ); +}; + +// This, instead of a typedef, allows to declare "class ..." in header files +class KSycocaFactoryList : public QPtrList +{ +public: + KSycocaFactoryList() { } +}; + +#endif diff --git a/extra/kde301/ktoolbarbutton.h b/extra/kde301/ktoolbarbutton.h new file mode 100644 index 0000000..bb6806b --- /dev/null +++ b/extra/kde301/ktoolbarbutton.h @@ -0,0 +1,313 @@ +/* This file is part of the KDE libraries + Copyright (C) 1997, 1998 Stephan Kulow (coolo@kde.org) + (C) 1997, 1998 Sven Radej (radej@kde.org) + (C) 1997, 1998 Mark Donohoe (donohoe@kde.org) + (C) 1997, 1998 Matthias Ettrich (ettrich@kde.org) + (C) 2000 Kurt Granroth (granroth@kde.org) + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License version 2 as published by the Free Software Foundation. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +// $Id: ktoolbarbutton.h,v 1.21.2.1 2002/04/28 20:59:16 wtrobin Exp $ +#ifndef _KTOOLBARBUTTON_H +#define _KTOOLBARBUTTON_H + +#include +#include +#include +#include +#include + +class KToolBar; +class KToolBarButtonPrivate; +class KInstance; +class QEvent; +class QPopupMenu; +class QPainter; + +/** + * A toolbar button. This is used internally by @ref KToolBar, use the + * KToolBar methods instead. + * @internal + */ +class KToolBarButton : public QToolButton +{ + Q_OBJECT + +public: + /** + * Construct a button with an icon loaded by the button itself. + * This will trust the button to load the correct icon with the + * correct size. + * + * @param icon Name of icon to load (may be absolute or relative) + * @param id Id of this button + * @param parent This button's parent + * @param name This button's internal name + * @param txt This button's text (in a tooltip or otherwise) + */ + KToolBarButton(const QString& icon, int id, QWidget *parent, + const char *name=0L, const QString &txt=QString::null, + KInstance *_instance = KGlobal::instance()); + + /** + * Construct a button with an existing pixmap. It is not + * recommended that you use this as the internal icon loading code + * will almost always get it "right". + * + * @param icon Name of icon to load (may be absolute or relative) + * @param id Id of this button + * @param parent This button's parent + * @param name This button's internal name + * @param txt This button's text (in a tooltip or otherwise) + */ + KToolBarButton(const QPixmap& pixmap, int id, QWidget *parent, + const char *name=0L, const QString &txt=QString::null); + + /** + * Construct a separator button + * + * @param parent This button's parent + * @param name This button's internal name + */ + KToolBarButton(QWidget *parent=0L, const char *name=0L); + + /** + * Standard destructor + */ + ~KToolBarButton(); + +#ifndef KDE_NO_COMPAT + /** + * @deprecated + * Set the pixmap directly for this button. This pixmap should be + * the active one... the dimmed and disabled pixmaps are constructed + * based on this one. However, don't use this function unless you + * are positive that you don't want to use @ref setIcon. + * + * @param pixmap The active pixmap + */ + // this one is from QButton, so #ifdef-ing it out doesn't break BC + virtual void setPixmap(const QPixmap &pixmap); + + /** + * @deprecated + * Force the button to use this pixmap as the default one rather + * then generating it using effects. + * + * @param pixmap The pixmap to use as the default (normal) one + */ + void setDefaultPixmap(const QPixmap& pixmap); + + /** + * @deprecated + * Force the button to use this pixmap when disabled one rather then + * generating it using effects. + * + * @param pixmap The pixmap to use when disabled + */ + void setDisabledPixmap(const QPixmap& pixmap); +#endif + + /** + * Set the text for this button. The text will be either used as a + * tooltip (IconOnly) or will be along side the icon + * + * @param text The button (or tooltip) text + */ + virtual void setText(const QString &text); + + /** + * Set the icon for this button. The icon will be loaded internally + * with the correct size. This function is preferred over @ref setIconSet + * + * @param icon The name of the icon + */ + virtual void setIcon(const QString &icon); + + virtual void setIcon( const QPixmap &pixmap ) + { return QToolButton::setIcon( pixmap ); } + + /** + * Set the pixmaps for this toolbar button from a QIconSet. + * If you call this you don't need to call any of the other methods + * that set icons or pixmaps. + * @param iconset The iconset to use + */ + virtual void setIconSet( const QIconSet &iconset ); + +#ifndef KDE_NO_COMPAT + /** + * @deprecated + * Set the active icon for this button. The pixmap itself is loaded + * internally based on the icon size... .. the disabled and default + * pixmaps, however will only be constructed if @ref #generate is + * true. This function is preferred over @ref setPixmap + * + * @param icon The name of the active icon + * @param generate If true, then the other icons are automagically + * generated from this one + */ + void setIcon(const QString &icon, bool /*generate*/ ) { setIcon( icon ); } + + /** + * @deprecated + * Force the button to use this icon as the default one rather + * then generating it using effects. + * + * @param icon The icon to use as the default (normal) one + */ + void setDefaultIcon(const QString& icon); + + /** + * @deprecated + * Force the button to use this icon when disabled one rather then + * generating it using effects. + * + * @param icon The icon to use when disabled + */ + void setDisabledIcon(const QString& icon); +#endif + + /** + * Turn this button on or off + * + * @param flag true or false + */ + void on(bool flag = true); + + /** + * Toggle this button + */ + void toggle(); + + /** + * Turn this button into a toggle button or disable the toggle + * aspects of it. This does not toggle the button itself. Use @ref + * toggle for that. + * + * @param toggle true or false + */ + void setToggle(bool toggle = true); + + /** + * Return a pointer to this button's popup menu (if it exists) + */ + QPopupMenu *popup(); + + /** + * Give this button a popup menu. There will not be a delay when + * you press the button. Use @ref setDelayedPopup if you want that + * behavior. You can also make the popup-menu + * "sticky", i.e. visible until a selection is made or the mouse is + * clikced elsewhere, by simply setting the second argument to true. + * This "sticky" button feature allows you to make a selection without + * having to press and hold down the mouse while making a selection. + * + * @param p The new popup menu + * @param toggle if true, makes the button "sticky" (toggled) + */ + void setPopup (QPopupMenu *p, bool toggle = false); + + /** + * Gives this button a delayed popup menu. + * + * This function allows you to add a delayed popup menu to the button. + * The popup menu is then only displayed when the button is pressed and + * held down for about half a second. You can also make the popup-menu + * "sticky", i.e. visible until a selection is made or the mouse is + * clikced elsewhere, by simply setting the second argument to true. + * This "sticky" button feature allows you to make a selection without + * having to press and hold down the mouse while making a selection. + * + * @param p the new popup menu + * @param toggle if true, makes the button "sticky" (toggled) + */ + void setDelayedPopup(QPopupMenu *p, bool toggle = false); + + /** + * Turn this button into a radio button + * + * @param f true or false + */ + void setRadio(bool f = true); + + /** + * Toolbar buttons naturally will assume the global styles + * concerning icons, icons sizes, etc. You can use this function to + * explicitely turn this off, if you like. + * + * @param no_style Will disable styles if true + */ + void setNoStyle(bool no_style = true); + +signals: + void clicked(int); + void doubleClicked(int); + void pressed(int); + void released(int); + void toggled(int); + void highlighted(int, bool); + +public slots: + /** + * This slot should be called whenever the toolbar mode has + * potentially changed. This includes such events as text changing, + * orientation changing, etc. + */ + void modeChange(); + virtual void setTextLabel(const QString&, bool tipToo); + +protected: + void paletteChange(const QPalette &); + void leaveEvent(QEvent *e); + void enterEvent(QEvent *e); + void drawButton(QPainter *p); + bool eventFilter (QObject *o, QEvent *e); + void showMenu(); + QSize sizeHint() const; + QSize minimumSizeHint() const; + QSize minimumSize() const; + + bool isRaised() const; + bool isActive() const; + int iconTextMode() const; + +protected slots: + void slotClicked(); + void slotPressed(); + void slotReleased(); + void slotToggled(); + void slotDelayTimeout(); + +protected: + virtual void virtual_hook( int id, void* data ); +private: + KToolBarButtonPrivate *d; +}; + +/** +* List of @ref KToolBarButton objects. +* @internal +* @version $Id: ktoolbarbutton.h,v 1.21.2.1 2002/04/28 20:59:16 wtrobin Exp $ +*/ +class KToolBarButtonList : public QIntDict +{ +public: + KToolBarButtonList(); + ~KToolBarButtonList() {} +}; + +#endif diff --git a/extra/kde301/kurifilter.h b/extra/kde301/kurifilter.h new file mode 100644 index 0000000..b013817 --- /dev/null +++ b/extra/kde301/kurifilter.h @@ -0,0 +1,593 @@ +/* + * This file is part of the KDE libraries + * Copyright (C) 2000 Yves Arrouye + * + * This library 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. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public License + * along with this library; see the file COPYING.LIB. If not, write to + * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA. + **/ + +#ifndef __kurifilter_h__ +#define __kurifilter_h__ "$Id: kurifilter.h,v 1.23 2002/03/04 04:17:37 lunakl Exp $" + +#include +#include + +#include + +class KURIFilterPrivate; +class KURIFilterDataPrivate; + +class QStringList; +class KCModule; + +/** +* This is a basic message object used for exchanging filtering +* information between the filter plugins and the application +* whenever the application requires more information about the +* URI than just a filtered version of it. Any application can +* create an instance of this class and send it to @ref KURIFilter +* to have the filter plugins fill the necessary information. +* +* @sect Example +*
+*   QString text = "kde.org";
+*   KURIFilterData d = text;
+*   bool filtered = KURIFilter::self()->filter( d );
+*   if( filtered )
+*     print ( "URI: %s\n"Filtered URI: %s\n URI Type: %i\n"Was Filtered: %i"
+*             text.latin1(), d.uri().url().latin1(), d.uriType(), filtered );
+* 
+* +* The above code should yield the following output: +*
+*   URI: kde.org
+*   Filtered URI: http://kde.org
+*   URI Type: 0            <== means NET_PROTOCOL
+*   Was Filtered: 1        <== means the URL was successfully filtered
+* 
+* +* @short A message object for exchanging filtering URI info. +*/ + +class KURIFilterData +{ +friend class KURIFilterPlugin; + +public: + /** + * Describes the type of URI to be filtered. + * + * This enumerator prvoides the return value for + * @ref uriType. A breif description for each value: + * + * @li NET_PROTOCOL - Any network protocol: http, ftp, nttp, pop3, etc... + * @li LOCAL_FILE - A local file whose executable flag is not set + * @li LOCAL_DIR - A local directory + * @li EXECUTABLE - A local file whose executable flag is set + * @li HELP - A man or info page + * @li SHELL - A shell executable (ex: echo "Test..." >> ~/testfile) + * @li BLOCKED - A URI that should be blocked/filtered (ex: ad filtering) + * @li ERROR - An incorrect URI (ex: "~johndoe" when user johndoe + * does not exist in that system ) + * @li UNKNOWN - A URI that is not identified. Default value when + * a KURIFilterData is first created. + */ + enum URITypes { NET_PROTOCOL=0, LOCAL_FILE, LOCAL_DIR, EXECUTABLE, HELP, SHELL, BLOCKED, ERROR, UNKNOWN }; + + /** + * Default constructor. + * + * Creates a URIFilterData object. + */ + KURIFilterData() { init(); } + + /** + * Creates a URIFilterData object from the given URL. + * + * @param url is the URL to be filtered. + */ + KURIFilterData( const KURL& url ) { init( url); } + + /** + * Creates a URIFilterData object from the given string. + * + * @param url is the string to be filtered. + */ + KURIFilterData( const QString& url ) { init( url ); } + + /** + * Copy constructor. + * + * Creates a URIFilterData object from another + * URI filter data object. + * + * @param data the uri filter data to be copied. + */ + KURIFilterData( const KURIFilterData& /*data*/); + + /** + * Destructor. + */ + ~KURIFilterData(); + + /** + * This method has been deprecated and will always return + * TRUE. You should instead use the result from the + * @ref KURIFilter::filterURI() calls. + * + * @deprecated + */ + bool hasBeenFiltered() const { return m_bFiltered; } + + /** + * Returns the filtered or the original URL. + * + * This function returns the filtered url if one + * of the plugins sucessfully filtered the original + * URL. Otherwise, it returns the original URL. + * See @ref #hasBeenFiltered() and + * + * @return the filtered or original url. + */ + KURL uri() const { return m_pURI; } + + /** + * Returns an error message. + * + * This functions returns the error message set + * by the plugin whenever the uri type is set to + * KURIFilterData::ERROR. Otherwise, it returns + * a QString::null. + * + * @return the error message or a NULL when there is none. + */ + QString errorMsg() const { return m_strErrMsg; } + + /** + * Returns the URI type. + * + * This method always returns KURIFilterData::UNKNOWN + * if the given URL was not filtered. + */ + URITypes uriType() const { return m_iType; } + + /** + * Sets the URL to be filtered. + * + * Use this function to set the string to be + * filtered when you construct an empty filter + * object. + * + * @param url the string to be filtered. + */ + void setData( const QString& url ) { init( url ); } + + /** + * Same as above except the argument is a URL. + * + * Use this function to set the string to be + * filtered when you construct an empty filter + * object. + * + * @param url the URL to be filtered. + */ + void setData( const KURL& url ) { init( url ); } + + /** + * Sets the absolute path to be used whenever the supplied + * data is a relative local URL. + * + * NOTE: This function works only for a local resource and + * expects the absolute path to the relative URL set in this + * meta object. If you are extracting the absolute path from + * a KURL object, make sure you always set the argument below + * using KURL::path() instead of KURL::url() so that "file:/" + * would not be appended! Otherwise, the filter might not be + * able to make correct determination whether the relative URL + * locally exists! + * + * @param abs_path the abolute path to the local resource. + * @return true if absolute path is successfully set. Otherwise, false. + */ + bool setAbsolutePath( const QString& /* abs_path */ ); + + /** + * Returns the absolute path if one has already been set. + */ + QString absolutePath() const; + + /** + * Returns true if the supplied data has an absolute path. + */ + bool hasAbsolutePath() const; + + /** + * Returns the command line options and arguments for a + * local resource when present. + * + * @return options and arguments when present, otherwise QString::null + */ + QString argsAndOptions() const; + + /** + * Returns true if the current data is a local resource with + * command line options and arguments. + */ + bool hasArgsAndOptions() const; + + /** + * Returns the name of the icon that matches + * the current filtered URL. + * + * NOTE that this function will return a NULL + * string by default and when no associated icon + * is found. + * + * @return the name of the icon associated with the resource + */ + QString iconName(); + + /** + * Overloaded assigenment operator. + * + * This function allows you to easily assign a KURL + * to a KURIFilterData object. + * + * @return an instance of a KURIFilterData object. + */ + KURIFilterData& operator=( const KURL& url ) { init( url ); return *this; } + + /** + * Overloaded assigenment operator. + * + * This function allows you to easily assign a QString + * to a KURIFilterData object. + * + * @return an instance of a KURIFilterData object. + */ + KURIFilterData& operator=( const QString& url ) { init( url ); return *this; } + +protected: + + /** + * Initializes the KURIFilterData on construction. + */ + void init( const KURL& url = QString::null ); + +private: + bool m_bFiltered; + bool m_bChanged; + + QString m_strErrMsg; + QString m_strIconName; + + KURL m_pURI; + URITypes m_iType; + KURIFilterDataPrivate *d; +}; + + +/** + * Base class for URI filter plugins. + * + * This class applies a single filter to a URI. All + * plugins designed to provide URI filtering functionalities + * should inherit from this abstract class and provide a + * specific filtering implementation. + * + * All inheriting classes need to implement the pure + * virtual function @ref filterURI. Otherwise, they + * would also become abstract. + * + * @short Abstract class for URI filter plugins. + */ +class KURIFilterPlugin : public QObject +{ + Q_OBJECT + +public: + + /** + * Constructs a filter plugin with a given name and + * priority. + * + * @param parent the parent object. + * @param name the name of the plugin. + * @param pri the priority of the plugin. + */ + KURIFilterPlugin( QObject *parent = 0, const char *name = 0, double pri = 1.0 ); + + /** + * Returns the filter's name. + * + * @return A string naming the filter. + */ + virtual QString name() const { return m_strName; } + + /** + * Returns the filter's priority. + * + * Each filter has an assigned priority, a float from 0 to 1. Filters + * with the lowest priority are first given a chance to filter a URI. + * + * @return The priority of the filter. + */ + virtual double priority() const { return m_dblPriority; } + + /** + * Filters a URI. + * + * @param data the URI data to be filtered. + * @return A boolean indicating whether the URI has been changed. + */ + virtual bool filterURI( KURIFilterData& data ) const = 0; + + /** + * Creates a configuration module for the filter. + * + * It is the responsability of the caller to delete the module + * once it is not needed anymore. + * + * @return A configuration module, @p null if the filter isn't configurable. + */ + virtual KCModule *configModule( QWidget*, const char* ) const { return 0; } + + /** + * Returns the name of the configuration module for the filter. + * + * @return the name of a configuration module or @p null if none. + */ + virtual QString configName() const { return name(); } + +protected: + + /** + * Sets the the URL in @p data to @p uri. + */ + void setFilteredURI ( KURIFilterData& data, const KURL& uri ) const; + + /** + * Sets the error message in @p data to @p errormsg. + */ + void setErrorMsg ( KURIFilterData& data, const QString& errmsg ) const { + data.m_strErrMsg = errmsg; + } + + /** + * Sets the URI type in @p data to @p type. + */ + void setURIType ( KURIFilterData& data, KURIFilterData::URITypes type) const { + data.m_iType = type; + data.m_bChanged = true; + } + + /** + * Sets the arguments and options string in @p data + * to @p args if any were found during filterting. + */ + void setArguments( KURIFilterData& data, const QString& args ) const; + + QString m_strName; + double m_dblPriority; + +protected: + virtual void virtual_hook( int id, void* data ); +private: + class KURIFilterPluginPrivate *d; +}; + + +class KURIFilterPluginList : public QPtrList +{ +public: + virtual int compareItems(Item a, Item b) + { + double diff = ((KURIFilterPlugin *) a)->priority() - ((KURIFilterPlugin *) b)->priority(); + return diff < 0 ? -1 : (diff > 0 ? 1 : 0); + } + +private: + KURIFilterPrivate *d; + +}; + +/** + * Manages the filtering of a URI. + * + * The intention of this plugin class is to allow people to extend + * the functionality of KURL without modifying it directly. This + * way KURL will remain a generic parser capable of parsing any + * generic URL that adheres to specifications. + * + * The KURIFilter class applies a number of filters to a URI, + * and returns the filtered version whenever possible. The filters + * are implemented using plugins to provide easy extensibility + * of the filtering mechanism. That is, new filters can be added in + * the future by simply inheriting from @ref KURIFilterPlugin and + * implementing the @ref KURIFilterPlugin::filterURI method. + * + * Use of this plugin-manager class is straight forward. Since + * it is a singleton object, all you have to do is obtain an instance + * by doing @p KURIFilter::self() and use any of the public member + * functions to preform the filtering. + * + * @sect Example + * + * To simply filter a given string: + *
+ * bool filtered = KURIFilter::self()->filterURI( "kde.org" );
+ * 
+ * + * You can alternatively use a KURL: + *
+ * KURL url = "kde.org";
+ * bool filtered = KURIFilter::self()->filterURI( url );
+ * 
+ * + * If you have a constant string or a constant URL, + * simply invoke the corresponding function to obtain + * the filtered string or URL instead of a boolean flag: + *
+ * QString u = KURIFilter::self()->filteredURI( "kde.org" );
+ * 
+ * + * You can also specify only specific filter(s) to be applied + * by supplying the name(s) of the filter(s). By defualt all + * filters that are found are loaded when the KURIFilter object + * is created will be used. These names are taken from the + * enteries in the \".desktop\" files. Here are a couple of + * examples: + *
+ * QString text = "kde.org";
+ * bool filtered = KURIFilter::self()->filterURI( text, "KShortURIFilter" );
+ *
+ * QStringList list;
+ * list << "KShortURIFilter" << "MyFilter";
+ * bool filtered = KURIFilter::self()->filterURI( text, list );
+ * 
+ * + * KURIFilter also allows richer data exchange through a simple + * meta-object called @p KURIFilterData. Using this meta-object + * you can find out more information about the URL you want to + * filter. See @ref KURIFilterData for examples and details. + * + * @short Filters a given URL into its proper format whenever possible. + */ + +class KURIFilter +{ +public: + /** + * Destructor + */ + ~KURIFilter (); + + /** + * Return a static instance of KURIFilter. + */ + static KURIFilter* self(); + + /** + * Filters the URI given by the object URIFilterData. + * + * This filters the given data based on the specified + * filter list. If the list is empty all avaliable + * filter plugins would be used. If not, only those + * given in the list are used. + * + * @param data object that contains the URI to be filtered. + * @param filters specify the list filters to be used + * + * @return a boolean indicating whether the URI has been changed + */ + bool filterURI( KURIFilterData& data, const QStringList& filters = QStringList() ); + + /** + * Filters the URI given by the URL. + * + * This filters the given URL based on the specified + * filter list. If the list is empty all avaliable + * filter plugins would be used. If not, only those + * given in the list are used. + * + * @param uri the URI to filter. + * @param filters specify the list of filters to be used + * + * @return a boolean indicating whether the URI has been changed + */ + bool filterURI( KURL &uri, const QStringList& filters = QStringList() ); + + /** + * Filters a string representing a URI. + * + * This filters the given string based on the specified + * filter list. If the list is empty all avaliable + * filter plugins would be used. If not, only those + * given in the list are used. + * + * @param uri The URI to filter. + * @param filters specify the list filters to be used + * + * @return a boolean indicating whether the URI has been changed + */ + bool filterURI( QString &uri, const QStringList& filters = QStringList() ); + + /** + * Returns the filtered URI. + * + * This filters the given URL based on the specified + * filter list. If the list is empty all avaliable + * filter plugins would be used. If not, only those + * given in the list are used. + * + * @param uri The URI to filter. + * @param filters specify the list filters to be used + * + * @return the filtered URI or null if it cannot be filtered + */ + KURL filteredURI( const KURL &uri, const QStringList& filters = QStringList() ); + + /** + * Return a filtered string representation of a URI. + * + * This filters the given URL based on the specified + * filter list. If the list is empty all avaliable + * filter plugins would be used. If not, only those + * given in the list are used. + * + * @param uri the URI to filter. + * @param filters specify the list filters to be used + * + * @return the filtered URI or null if it cannot be filtered + */ + QString filteredURI( const QString &uri, const QStringList& filters = QStringList() ); + + /** + * Return an iterator to iterate over all loaded + * plugins. + * + * @return a plugin iterator. + */ + QPtrListIterator pluginsIterator() const; + +protected: + + /** + * A protected constructor. + * + * This constructor creates a KURIFilter and + * initializes all plugins it can find by invoking + * @ref loadPlugins. + */ + KURIFilter(); + + /** + * Loads all allowed plugins. + * + * This function loads all filters that have not + * been dis + */ + void loadPlugins(); + +private: + + static KURIFilter *m_self; + KURIFilterPluginList m_lstPlugins; + KURIFilterPrivate *d; + +}; + +#endif + diff --git a/extra/kde303/kaccelaction.h b/extra/kde303/kaccelaction.h new file mode 100644 index 0000000..139d7f7 --- /dev/null +++ b/extra/kde303/kaccelaction.h @@ -0,0 +1,202 @@ +/* This file is part of the KDE libraries + Copyright (C) 2001,2002 Ellis Whitehead + + This library 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. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef _KACCELACTION_H +#define _KACCELACTION_H + +#include +#include +#include +#include + +#include + +class KAccelBase; + +class QObject; +class KConfig; +class KConfigBase; + +/* + KAccelAction holds information an a given action, such as "Execute Command" + + 1) KAccelAction = "Execute Command" + Default3 = "Alt+F2" + Default4 = "Meta+Enter;Alt+F2" + 1) KShortcut = "Meta+Enter" + 1) KKeySequence = "Meta+Enter" + 1) KKey = "Meta+Enter" + 1) Meta+Enter + 2) Meta+Keypad_Enter + 2) KShortcut = "Alt+F2" + 1) KKeySequence = "Alt+F2" + 1) Alt+F2 + 2) KAccelAction = "Something" + Default3 = "" + Default4 = "" + 1) KShortcut = "Meta+X,Asterisk" + 1) KKeySequence = "Meta+X,Asterisk" + 1) KKey = "Meta+X" + 1) Meta+X + 2) KKey = "Asterisk" + 1) Shift+8 (English layout) + 2) Keypad_Asterisk +*/ + +//--------------------------------------------------------------------- +// KAccelAction +//--------------------------------------------------------------------- + +class KAccelAction +{ + public: + KAccelAction(); + KAccelAction( const KAccelAction& ); + KAccelAction( const QString& sName, const QString& sLabel, const QString& sWhatsThis, + const KShortcut& cutDef3, const KShortcut& cutDef4, + const QObject* pObjSlot, const char* psMethodSlot, + bool bConfigurable, bool bEnabled ); + ~KAccelAction(); + + void clear(); + bool init( const QString& sName, const QString& sLabel, const QString& sWhatsThis, + const KShortcut& cutDef3, const KShortcut& cutDef4, + const QObject* pObjSlot, const char* psMethodSlot, + bool bConfigurable, bool bEnabled ); + + KAccelAction& operator=( const KAccelAction& ); + + const QString& name() const { return m_sName; } + const QString& label() const { return m_sLabel; } + const QString& whatsThis() const { return m_sWhatsThis; } + const KShortcut& shortcut() const { return m_cut; } + const KShortcut& shortcutDefault() const; + const KShortcut& shortcutDefault3() const { return m_cutDefault3; } + const KShortcut& shortcutDefault4() const { return m_cutDefault4; } + const QObject* objSlotPtr() const { return m_pObjSlot; } + const char* methodSlotPtr() const { return m_psMethodSlot; } + bool isConfigurable() const { return m_bConfigurable; } + bool isEnabled() const { return m_bEnabled; } + + void setName( const QString& ); + void setLabel( const QString& ); + void setWhatsThis( const QString& ); + bool setShortcut( const KShortcut& rgCuts ); + void setSlot( const QObject* pObjSlot, const char* psMethodSlot ); + void setConfigurable( bool ); + void setEnabled( bool ); + + int getID() const { return m_nIDAccel; } + void setID( int n ) { m_nIDAccel = n; } + bool isConnected() const; + + bool setKeySequence( uint i, const KKeySequence& ); + void clearShortcut(); + bool contains( const KKeySequence& ); + + QString toString() const; + QString toStringInternal() const; + + static bool useFourModifierKeys(); + static void useFourModifierKeys( bool ); + + protected: + QString m_sName, + m_sLabel, + m_sWhatsThis; + KShortcut m_cut; + KShortcut m_cutDefault3, m_cutDefault4; + const QObject* m_pObjSlot; + const char* m_psMethodSlot; + bool m_bConfigurable, + m_bEnabled; + int m_nIDAccel; + uint m_nConnections; + + void incConnections(); + void decConnections(); + + private: + static int g_bUseFourModifierKeys; + class KAccelActionPrivate* d; + + friend class KAccelActions; + friend class KAccelBase; +}; + +//--------------------------------------------------------------------- +// KAccelActions +//--------------------------------------------------------------------- + +class KAccelActions +{ + public: + KAccelActions(); + KAccelActions( const KAccelActions& ); + virtual ~KAccelActions(); + + void clear(); + bool init( const KAccelActions& ); + bool init( KConfigBase& config, const QString& sGroup ); + + void updateShortcuts( KAccelActions& ); + + int actionIndex( const QString& sAction ) const; + KAccelAction* actionPtr( uint ); + const KAccelAction* actionPtr( uint ) const; + KAccelAction* actionPtr( const QString& sAction ); + const KAccelAction* actionPtr( const QString& sAction ) const; + KAccelAction* actionPtr( KKeySequence cut ); + KAccelAction& operator []( uint ); + const KAccelAction& operator []( uint ) const; + + KAccelAction* insert( const QString& sAction, const QString& sLabel, const QString& sWhatsThis, + const KShortcut& rgCutDefaults3, const KShortcut& rgCutDefaults4, + const QObject* pObjSlot = 0, const char* psMethodSlot = 0, + bool bConfigurable = true, bool bEnabled = true ); + KAccelAction* insert( const QString& sName, const QString& sLabel ); + bool remove( const QString& sAction ); + + bool readActions( const QString& sConfigGroup = "Shortcuts", KConfigBase* pConfig = 0 ); + bool writeActions( const QString& sConfigGroup = "Shortcuts", KConfigBase* pConfig = 0, + bool bWriteAll = false, bool bGlobal = false ) const; + + void emitKeycodeChanged(); + + uint count() const; + + protected: + KAccelBase* m_pKAccelBase; + KAccelAction** m_prgActions; + uint m_nSizeAllocated, m_nSize; + + void resize( uint ); + void insertPtr( KAccelAction* ); + + private: + class KAccelActionsPrivate* d; + + KAccelActions( KAccelBase* ); + void initPrivate( KAccelBase* ); + KAccelActions& operator =( KAccelActions& ); + + friend class KAccelBase; +}; + +#endif // _KACCELACTION_H diff --git a/extra/kde303/kaccelbase.h b/extra/kde303/kaccelbase.h new file mode 100644 index 0000000..1a80eee --- /dev/null +++ b/extra/kde303/kaccelbase.h @@ -0,0 +1,233 @@ +/* This file is part of the KDE libraries + Copyright (C) 2001 Ellis Whitehead + + This library 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. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef _KACCELBASE_H +#define _KACCELBASE_H + +#include +#include +#include +#include +#include + +#include "kaccelaction.h" +#include "kkeyserver_x11.h" + +class QPopupMenu; +class QWidget; + +//---------------------------------------------------- + +class KAccelBasePrivate; +/** + * Handle keyboard accelerators. + * + * Allow an user to configure + * key bindings through application configuration files or through the + * @ref KKeyChooser GUI. + * + * A @ref KAccel contains a list of accelerator items. Each accelerator item + * consists of an action name and a keyboard code combined with modifiers + * (Shift, Ctrl and Alt.) + * + * For example, "Ctrl+P" could be a shortcut for printing a document. The key + * codes are listed in ckey.h. "Print" could be the action name for printing. + * The action name identifies the key binding in configuration files and the + * @ref KKeyChooser GUI. + * + * When pressed, an accelerator key calls the slot to which it has been + * connected. Accelerator items can be connected so that a key will activate + * two different slots. + * + * A KAccel object handles key events sent to its parent widget and to all + * children of this parent widget. + * + * Key binding reconfiguration during run time can be prevented by specifying + * that an accelerator item is not configurable when it is inserted. A special + * group of non-configurable key bindings are known as the + * standard accelerators. + * + * The standard accelerators appear repeatedly in applications for + * standard document actions such as printing and saving. Convenience methods are + * available to insert and connect these accelerators which are configurable on + * a desktop-wide basis. + * + * It is possible for a user to choose to have no key associated with + * an action. + * + * The translated first argument for @ref insertItem() is used only + * in the configuration dialog. + *
+ * KAccel *a = new KAccel( myWindow );
+ * // Insert an action "Scroll Up" which is associated with the "Up" key:
+ * a->insertItem( i18n("Scroll up"), "Scroll Up", "Up" );
+ * // Insert an action "Scroll Down" which is not associated with any key:
+ * a->insertItem( i18n("Scroll down"), "Scroll Down", 0);
+ * a->connectItem( "Scroll up", myWindow, SLOT( scrollUp() ) );
+ * // a->insertStdItem( KStdAccel::Print ); //not necessary, since it
+ *	// is done automatially with the
+ *	// connect below!
+ * a->connectItem(KStdAccel::Print, myWindow, SLOT( printDoc() ) );
+ *
+ * a->readSettings();
+ *
+ * + * If a shortcut has a menu entry as well, you could insert them like + * this. The example is again the @ref KStdAccel::Print from above. + * + *
+ * int id;
+ * id = popup->insertItem("&Print",this, SLOT(printDoc()));
+ * a->changeMenuAccel(popup, id, KStdAccel::Print );
+ * 
+ * + * If you want a somewhat "exotic" name for your standard print action, like + * id = popup->insertItem(i18n("Print &Document"),this, SLOT(printDoc())); + * it might be a good idea to insert the standard action before as + * a->insertStdItem( KStdAccel::Print, i18n("Print Document") ) + * as well, so that the user can easily find the corresponding function. + * + * This technique works for other actions as well. Your "scroll up" function + * in a menu could be done with + * + *
+ *    id = popup->insertItem(i18n"Scroll &up",this, SLOT(scrollUp()));
+ *    a->changeMenuAccel(popup, id, "Scroll Up" );
+ * 
+ * + * Please keep the order right: First insert all functions in the + * acceleratior, then call a -> @ref readSettings() and @em then build your + * menu structure. + * + * @short Configurable key binding support. + * @version $Id: kaccelbase.h,v 1.20 2002/03/03 21:20:25 lunakl Exp $ + */ + +class KAccelBase +{ + public: + enum Init { QT_KEYS = 0x00, NATIVE_KEYS = 0x01 }; + enum Signal { KEYCODE_CHANGED }; + + KAccelBase( int fInitCode ); + virtual ~KAccelBase(); + + uint actionCount() const; + KAccelActions& actions(); + bool isEnabled() const; + + KAccelAction* actionPtr( const QString& sAction ); + const KAccelAction* actionPtr( const QString& sAction ) const; + KAccelAction* actionPtr( const KKey& key ); + KAccelAction* actionPtr( const KKeyServer::Key& key ); + + const QString& configGroup() const { return m_sConfigGroup; } + void setConfigGroup( const QString& group ); + void setConfigGlobal( bool global ); + virtual void setEnabled( bool bEnabled ) = 0; + bool getAutoUpdate() { return m_bAutoUpdate; } + // return value of AutoUpdate flag before this call. + bool setAutoUpdate( bool bAuto ); + +// Procedures for manipulating Actions. + //void clearActions(); + + KAccelAction* insert( const QString& sName, const QString& sDesc ); + KAccelAction* insert( + const QString& sAction, const QString& sDesc, const QString& sHelp, + const KShortcut& rgCutDefaults3, const KShortcut& rgCutDefaults4, + const QObject* pObjSlot, const char* psMethodSlot, + bool bConfigurable = true, bool bEnabled = true ); + bool remove( const QString& sAction ); + bool setActionSlot( const QString& sAction, const QObject* pObjSlot, const char* psMethodSlot ); + + bool updateConnections(); + + bool setShortcut( const QString& sAction, const KShortcut& cut ); + +// Modify individual Action sub-items + bool setActionEnabled( const QString& sAction, bool bEnable ); + + /** + * Read all key associations from @p config, or (if @p config + * is zero) from the application's configuration file + * @ref KGlobal::config(). + * + * The group in which the configuration is stored can be + * set with @ref setConfigGroup(). + */ + void readSettings( KConfigBase* pConfig = 0 ); + + /** + * Write the current configurable associations to @p config, + * or (if @p config is zero) to the application's + * configuration file. + */ + void writeSettings( KConfigBase* pConfig = 0 ) const; + + QPopupMenu* createPopupMenu( QWidget* pParent, const KKeySequence& ); + + // Protected methods + protected: + void slotRemoveAction( KAccelAction* ); + + void createKeyList( QValueVector& rgKeys ); + bool insertConnection( KAccelAction* ); + bool removeConnection( KAccelAction* ); + + virtual bool emitSignal( Signal ) = 0; + virtual bool connectKey( KAccelAction&, const KKeyServer::Key& ) = 0; + virtual bool connectKey( const KKeyServer::Key& ) = 0; + virtual bool disconnectKey( KAccelAction&, const KKeyServer::Key& ) = 0; + virtual bool disconnectKey( const KKeyServer::Key& ) = 0; + + protected: + struct ActionInfo + { + KAccelAction* pAction; + uint iSeq, iVariation; + //ActionInfo* pInfoNext; // nil if only one action uses this key. + + ActionInfo() { pAction = 0; iSeq = 0xffff; iVariation = 0xffff; } + ActionInfo( KAccelAction* _pAction, uint _iSeq, uint _iVariation ) + { pAction = _pAction; iSeq = _iSeq; iVariation = _iVariation; } + }; + typedef QMap KKeyToActionMap; + + KAccelActions m_rgActions; + KKeyToActionMap m_mapKeyToAction; + QValueList m_rgActionsNonUnique; + bool m_bNativeKeys; // Use native key codes instead of Qt codes + bool m_bEnabled; + bool m_bConfigIsGlobal; + QString m_sConfigGroup; + bool m_bAutoUpdate; + KAccelAction* mtemp_pActionRemoving; + + private: + KAccelBase& operator =( const KAccelBase& ); + + friend class KAccelActions; + protected: + virtual void virtual_hook( int id, void* data ); + private: + KAccelBasePrivate* d; +}; + +#endif // _KACCELBASE_H diff --git a/extra/kde303/kicontheme.h b/extra/kde303/kicontheme.h new file mode 100644 index 0000000..78fc8f1 --- /dev/null +++ b/extra/kde303/kicontheme.h @@ -0,0 +1,217 @@ +/* vi: ts=8 sts=4 sw=4 + * + * $Id: kicontheme.h,v 1.19 2002/03/05 23:13:26 rich Exp $ + * + * This file is part of the KDE project, module kdecore. + * Copyright (C) 2000 Geert Jansen + * Antonio Larrosa + * + * This is free software; it comes under the GNU Library General + * Public License, version 2. See the file "COPYING.LIB" for the + * exact licensing terms. + * + */ + +#ifndef __KIconTheme_h_Included__ +#define __KIconTheme_h_Included__ + +#include +#include +#include + +class KConfig; +//class KIconThemeDir; + +class KIconThemePrivate; + +class KIconPrivate; + +/** + * One icon as found by KIconTheme. Also serves as a namespace containing + * icon related constants. + */ +class KIcon +{ +public: + KIcon() { size = 0; } + + /** + * Return true if this icon is valid, false otherwise. + */ + bool isValid() const { return size != 0; } + + enum Context { Any, Action, Application, Device, FileSystem, MimeType }; + enum Type { Fixed, Scalable, Threshold }; + enum MatchType { MatchExact, MatchBest }; + // if you add a group here, make sure to change the config reading in + // KIconLoader too + enum Group { NoGroup=-1, Desktop=0, FirstGroup=Desktop, Toolbar, + MainToolbar, Small, Panel, LastGroup, User }; + enum StdSizes { SizeSmall=16, SizeMedium=32, SizeLarge=48 }; + enum States { DefaultState, ActiveState, DisabledState, LastState }; + enum Overlays { LockOverlay=0x100, ZipOverlay=0x200, LinkOverlay=0x400, + HiddenOverlay=0x800, OverlayMask = ~0xff }; + + /** + * The size in pixels of the icon. + */ + int size; + + /** + * The context of the icon. + */ + Context context; + + /** + * The type of the icon: Fixed, Scalable or Threshold. + **/ + Type type; + + /** + * The threshold in case type == Threshold + */ + int threshold; + + /** + * The full path of the icon. + */ + QString path; + +private: + KIconPrivate *d; +}; + +inline KIcon::Group& operator++(KIcon::Group& group) { group = static_cast(group+1); return group; } +inline KIcon::Group operator++(KIcon::Group& group,int) { KIcon::Group ret = group; ++group; return ret; } + +/** + * Class to use/access icon themes in KDE. This class is used by the + * iconloader but can be used by others too. + */ +class KIconTheme +{ +public: + /** + * Load an icon theme by name. + */ + KIconTheme(const QString& name, const QString& appName=QString::null); + ~KIconTheme(); + + /** + * The stylized name of the icon theme. + */ + QString name() const { return mName; } + + /** + * A description for the icon theme. + */ + QString description() const { return mDesc; } + + /** + * Return the name of the "example" icon. + */ + QString example() const; + + /** + * Return the name of the screenshot. + */ + QString screenshot() const; + + /** + * Returns the name of this theme's link overlay. + */ + QString linkOverlay() const; + + /** + * Returns the name of this theme's zip overlay. + */ + QString zipOverlay() const; + + /** + * Returns the name of this theme's lock overlay. + */ + QString lockOverlay() const; + + /** + * Returns the toplevel theme directory. + */ + QString dir() const { return mDir; } + + /** + * The themes this icon theme falls back on. + */ + QStringList inherits() const { return mInherits; } + + /** + * The icon theme exists? + */ + bool isValid() const; + + /** + * The minimum display depth required for this theme. This can either + * be 8 or 32. + */ + int depth() const { return mDepth; } + + /** + * The default size of this theme for a certain icon group. + * @param group The icon group. See @ref #KIcon::Group. + * @return The default size in pixels for the given icon group. + */ + int defaultSize(KIcon::Group group) const; + + /** + * Query available sizes for a group. + */ + QValueList querySizes(KIcon::Group group) const; + + /** + * Query available icons for a size and context. + */ + QStringList queryIcons(int size, KIcon::Context context = KIcon::Any) const; + + /** + * Query available icons for a context and preferred size. + */ + QStringList queryIconsByContext(int size, KIcon::Context context = KIcon::Any) const; + + + /** + * Lookup an icon in the theme. + * @param name The name of the icon, without extension. + * @param size The desired size of the icon. + * @param match The matching mode. KIcon::MatchExact returns an icon + * only if matches exactly. KIcon::MatchBest returns the best matching + * icon. + * @return A KIcon class that describes the icon. If an icon is found, + * @ref #KIcon::isValid will return true, and false otherwise. + */ + KIcon iconPath(const QString& name, int size, KIcon::MatchType match) const; + + /** + * List all icon themes installed on the system, global and local. + */ + static QStringList list(); + + /** + * Returns the current icon theme. + */ + static QString current(); + + static void reconfigure(); + +private: + int mDefSize[8]; + QValueList mSizes[8]; + + int mDepth; + QString mDir, mName, mDesc; + QStringList mInherits; +// QPtrList mDirs; + KIconThemePrivate *d; + + static QString *_theme; + static QStringList *_theme_list; +}; + +#endif diff --git a/extra/kde303/kkeyserver_x11.h b/extra/kde303/kkeyserver_x11.h new file mode 100644 index 0000000..faeb99c --- /dev/null +++ b/extra/kde303/kkeyserver_x11.h @@ -0,0 +1,131 @@ +#ifndef _KKEYSERVER_X11_H +#define _KKEYSERVER_X11_H + +#include "kshortcut.h" +#include "kkeynative.h" + +namespace KKeyServer +{ + struct CodeMod { int code, mod; }; + + struct Sym + { + public: + uint m_sym; + + Sym() + { m_sym = 0; } + Sym( uint sym ) + { m_sym = sym; } + Sym( const QString& s ) + { init( s ); } + + bool initQt( int keyQt ); + bool init( const QString& ); + + int qt() const; + QString toStringInternal() const; + QString toString() const; + + uint getModsRequired() const; + uint getSymVariation() const; + + operator uint() const { return m_sym; } + Sym& operator =( uint sym ) { m_sym = sym; return *this; } + + private: + QString toString( bool bUserSpace ) const; + + static void capitalizeKeyname( QString& ); + }; + + struct Key + { + enum { CODE_FOR_QT = 256 }; + + uint m_code; + uint m_mod; + uint m_sym; + + bool init( const KKey& key, bool bQt ); + + bool isNative() const { return m_code != CODE_FOR_QT; } + + uint code() const { return m_code; } + uint mod() const { return m_mod; } + uint sym() const { return m_sym; } + int keyCodeQt() const { return (int) m_sym; } + + void setKeycodeQt( int keyQt ) + { m_code = CODE_FOR_QT; m_sym = keyQt; } + + Key& operator =( const KKeyNative& key ); + int compare( const Key& ) const; + + bool operator ==( const Key& b ) const + { return compare( b ) == 0; } + bool operator <( const Key& b ) const + { return compare( b ) < 0; } + + KKey key() const; + }; + + struct Variations + { + enum { MAX_VARIATIONS = 4 }; + + Key m_rgkey[MAX_VARIATIONS]; + uint m_nVariations; + + Variations() { m_nVariations = 0; } + + void init( const KKey&, bool bQt ); + + uint count() const { return m_nVariations; } + const Key& key( uint i ) const { return m_rgkey[i]; } + }; + + bool initializeMods(); + + /** + * Returns the equivalent X modifier mask of the given modifier flag. + */ + uint modX( KKey::ModFlag ); + /** + * Returns true if the current keyboard layout supports the Win key. + * Specifically, whether the Super or Meta keys are assigned to an X modifier. + */ + bool keyboardHasWinKey(); + uint modXShift(); + uint modXLock(); + uint modXCtrl(); + uint modXAlt(); + uint modXNumLock(); + uint modXWin(); + uint modXScrollLock(); + /** + * Returns bitwise OR'ed mask containing Shift, Ctrl, Alt, and + * Win (if available). + */ + uint accelModMaskX(); + + bool keyQtToSym( int keyQt, uint& sym ); + bool keyQtToMod( int keyQt, uint& mod ); + bool symToKeyQt( uint sym, int& keyQt ); + + bool modToModQt( uint mod, int& modQt ); + bool modToModX( uint mod, uint& modX ); + bool modXToModQt( uint modX, int& modQt ); + bool modXToMod( uint modX, uint& mod ); + + bool codeXToSym( uchar codeX, uint modX, uint& symX ); + + QString modToStringInternal( uint mod ); + QString modToStringUser( uint mod ); + + bool stringToSymMod( const QString&, uint& sym, uint& mod ); + + void keyQtToKeyX( uint keyCombQt, unsigned char *pKeyCodeX, uint *pKeySymX, uint *pKeyModX ); +}; + +#endif // !_KKEYSERVER_X11_H diff --git a/extra/kde303/konsole_part.h b/extra/kde303/konsole_part.h new file mode 100644 index 0000000..ba89800 --- /dev/null +++ b/extra/kde303/konsole_part.h @@ -0,0 +1,223 @@ +/* + This file is part of the KDE system + Copyright (C) 1999,2000 Boloni Laszlo + + 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. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. + */ + +#ifndef __KONSOLE_PART_H__ +#define __KONSOLE_PART_H__ + +#include +#include + + +#include + +#include + +//#include "schema.h" +//#include "session.h" + +class KInstance; +class konsoleBrowserExtension; +class QPushButton; +class QSpinBox; +class KPopupMenu; +class QCheckBox; +class KRootPixmap; +class KToggleAction; +class KSelectAction; + +namespace KParts { class GUIActivateEvent; } + +class konsoleFactory : public KParts::Factory +{ + Q_OBJECT +public: + konsoleFactory(); + virtual ~konsoleFactory(); + + virtual KParts::Part* createPartObject(QWidget *parentWidget = 0, const char *widgetName = 0, + QObject* parent = 0, const char* name = 0, + const char* classname = "KParts::Part", + const QStringList &args = QStringList()); + + static KInstance *instance(); + + private: + static KInstance *s_instance; + static KAboutData *s_aboutData; +}; + +////////////////////////////////////////////////////////////////////// + +class konsolePart: public KParts::ReadOnlyPart, public TerminalInterface +{ + Q_OBJECT + public: + konsolePart(QWidget *parentWidget, const char *widgetName, QObject * parent, const char *name, const char *classname = 0); + virtual ~konsolePart(); + +signals: + void processExited(); + void receivedData( const QString& s ); + protected: + virtual bool openURL( const KURL & url ); + virtual bool openFile() {return false;} // never used + virtual bool closeURL() {return true;} + virtual void guiActivateEvent( KParts::GUIActivateEvent * event ); + + protected slots: + void showShell(); + void slotProcessExited(); + void slotReceivedData( const QString& s ); + +// void doneSession(TESession*); + void sessionDestroyed(); +// void configureRequest(TEWidget*,int,int x,int y); + void updateTitle(); + void enableMasterModeConnections(); + + private slots: + void emitOpenURLRequest(const QString &url); + + void readProperties(); + void saveProperties(); + + void sendSignal(int n); + void closeCurrentSession(); + + void notifySize(int,int); + + void slotToggleFrame(); + void slotSelectScrollbar(); + void slotSelectFont(); + void schema_menu_check(); + void keytab_menu_activated(int item); + void updateSchemaMenu(); + void setSchema(int n); + void pixmap_menu_activated(int item); + void schema_menu_activated(int item); + void slotHistoryType(); + void slotSelectBell(); + void slotSelectLineSpacing(); + void slotBlinkingCursor(); + void slotWordSeps(); + void fontNotFound(); + + private: + konsoleBrowserExtension *m_extension; + KURL currentURL; + + void makeGUI(); + void applySettingsToGUI(); + + void setFont(int fontno); +// void setSchema(ColorSchema* s); + void updateKeytabMenu(); + + bool doOpenStream( const QString& ); + bool doWriteStream( const QByteArray& ); + bool doCloseStream(); + + QWidget* parentWidget; +// TEWidget* te; +// TESession* se; +// ColorSchemaList* colors; + KRootPixmap* rootxpm; + + KToggleAction* blinkingCursor; + KToggleAction* showFrame; + + KSelectAction* selectBell; + KSelectAction* selectFont; + KSelectAction* selectLineSpacing; + KSelectAction* selectScrollbar; + + KPopupMenu* m_keytab; + KPopupMenu* m_schema; + KPopupMenu* m_signals; + KPopupMenu* m_options; + KPopupMenu* m_popupMenu; + + QFont defaultFont; + + QString pmPath; // pixmap path + QString s_schema; + QString s_kconfigSchema; + QString s_word_seps; // characters that are considered part of a word + QString fontNotFound_par; + + bool b_framevis:1; + bool b_histEnabled:1; + + int curr_schema; // current schema no + int n_bell; + int n_font; + int n_keytab; + int n_render; + int n_scroll; + unsigned m_histSize; + bool m_runningShell; + bool m_streamEnabled; +public: + // these are the implementations for the TermEmuInterface + // functions... + void startProgram( const QString& program, + const QStrList& args ); + void showShellInDir( const QString& dir ); + void sendInput( const QString& text ); +}; + +////////////////////////////////////////////////////////////////////// + +/*class HistoryTypeDialog : public KDialogBase +{ + Q_OBJECT +public: + HistoryTypeDialog(const HistoryType& histType, + unsigned int histSize, + QWidget *parent); + +public slots: + void slotDefault(); + void slotSetUnlimited(); + void slotHistEnable(bool); + + unsigned int nbLines() const; + bool isOn() const; + +protected: + QCheckBox* m_btnEnable; + QSpinBox* m_size; + QPushButton* m_setUnlimited; +};*/ + +////////////////////////////////////////////////////////////////////// + +class konsoleBrowserExtension : public KParts::BrowserExtension +{ + Q_OBJECT + friend class konsolePart; + public: + konsoleBrowserExtension(konsolePart *parent); + virtual ~konsoleBrowserExtension(); + + void emitOpenURLRequest(const KURL &url); +}; + +#endif diff --git a/extra/kde303/krecentdirs.h b/extra/kde303/krecentdirs.h new file mode 100644 index 0000000..71f771b --- /dev/null +++ b/extra/kde303/krecentdirs.h @@ -0,0 +1,68 @@ +/* -*- c++ -*- + * Copyright (C)2000 Waldo Bastian + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * + */ +#ifndef __KRECENTDIRS_H +#define __KRECENTDIRS_H + +#include + +/** + * The goal of this class is to make sure that, when the user needs to + * specify a file via the file selection dialog, this dialog will start + * in the directory most likely to contain the desired files. + * + * This works as follows: Each time the file selection dialog is + * shown, the programmer can specify a "file-class". The file-dialog will + * then start with the directory associated with this file-class. When + * the dialog closes, the directory currently shown in the file-dialog + * will be associated with the file-class. + * + * A file-class can either start with ':' or with '::'. If it starts with + * a single ':' the file-class is specific to the current application. + * If the file-class starts with '::' it is global to all applications. + */ +class KRecentDirs +{ +public: + /** + * Returns a list of directories associated with this file-class. + * The most recently used directory is at the front of the list. + */ + static QStringList list(const QString &fileClass); + + /** + * Returns the most recently used directory accociated with this file-class. + */ + static QString dir(const QString &fileClass); + + /** + * Associates @p directory with @p fileClass + */ + static void add(const QString &fileClass, const QString &directory); +}; + +#endif diff --git a/extra/kde303/ksycocafactory.h b/extra/kde303/ksycocafactory.h new file mode 100644 index 0000000..af33ca8 --- /dev/null +++ b/extra/kde303/ksycocafactory.h @@ -0,0 +1,135 @@ +/* This file is part of the KDE libraries + * Copyright (C) 1999 Waldo Bastian + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License version 2 as published by the Free Software Foundation; + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public License + * along with this library; see the file COPYING.LIB. If not, write to + * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA. + **/ + +#ifndef __ksycocafactory_h__ +#define __ksycocafactory_h__ "$Id: ksycocafactory.h,v 1.12 2002/03/03 21:20:26 lunakl Exp $" + +#include "ksycocatype.h" +#include "ksycocaentry.h" + +#include +#include +class KSycoca; +class QStringList; +class QString; +class KSycocaDict; +class KSycocaResourceList; + +typedef QDict KSycocaEntryDict; + +/** + * @internal + * Base class for sycoca factories + */ +class KSycocaFactory +{ +public: + virtual KSycocaFactoryId factoryId() const = 0; + +protected: // virtual class + /** + * Create a factory which can be used to lookup from/create a database + * (depending on KSycoca::isBuilding()) + */ + KSycocaFactory( KSycocaFactoryId factory_id ); + +public: + virtual ~KSycocaFactory(); + + /** + * @return the position of the factory in the sycoca file + */ + int offset() { return mOffset; } + + /** + * @return the dict, for special use by KBuildSycoca + */ + KSycocaEntryDict * entryDict() { return m_entryDict; } + + /** + * Construct an entry from a config file. + * To be implemented in the real factories. + */ + virtual KSycocaEntry *createEntry(const QString &file, const char *resource) = 0; + + /** + * Add an entry + */ + virtual void addEntry(KSycocaEntry *newEntry, const char *resource); + + /** + * Read an entry from the database + */ + virtual KSycocaEntry *createEntry(int offset)=0; + + /** + * Get a list of all entries from the database. + */ + KSycocaEntry::List allEntries(); + + /** + * Saves all entries it maintains as well as index files + * for these entries to the stream 'str'. + * + * Also sets mOffset to the starting position. + * + * The stream is positioned at the end of the last index. + * + * Don't forget to call the parent first when you override + * this function. + */ + virtual void save(QDataStream &str); + + /** + * Writes out a header to the stream 'str'. + * The baseclass positions the stream correctly. + * + * Don't forget to call the parent first when you override + * this function. + */ + virtual void saveHeader(QDataStream &str); + + /** + * @return the resources for which this factory is responsible. + */ + virtual const KSycocaResourceList * resourceList() const { return m_resourceList; } + +private: + int mOffset; + +protected: + int m_sycocaDictOffset; + int m_beginEntryOffset; + int m_endEntryOffset; + QDataStream *m_str; + + KSycocaResourceList *m_resourceList; + KSycocaEntryDict *m_entryDict; + KSycocaDict *m_sycocaDict; +protected: + virtual void virtual_hook( int id, void* data ); +}; + +// This, instead of a typedef, allows to declare "class ..." in header files +class KSycocaFactoryList : public QPtrList +{ +public: + KSycocaFactoryList() { } +}; + +#endif diff --git a/extra/kde303/ktoolbarbutton.h b/extra/kde303/ktoolbarbutton.h new file mode 100644 index 0000000..23b6937 --- /dev/null +++ b/extra/kde303/ktoolbarbutton.h @@ -0,0 +1,313 @@ +/* This file is part of the KDE libraries + Copyright (C) 1997, 1998 Stephan Kulow (coolo@kde.org) + (C) 1997, 1998 Sven Radej (radej@kde.org) + (C) 1997, 1998 Mark Donohoe (donohoe@kde.org) + (C) 1997, 1998 Matthias Ettrich (ettrich@kde.org) + (C) 2000 Kurt Granroth (granroth@kde.org) + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License version 2 as published by the Free Software Foundation. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +// $Id: ktoolbarbutton.h,v 1.21.2.2 2002/05/26 13:09:06 carewolf Exp $ +#ifndef _KTOOLBARBUTTON_H +#define _KTOOLBARBUTTON_H + +#include +#include +#include +#include +#include + +class KToolBar; +class KToolBarButtonPrivate; +class KInstance; +class QEvent; +class QPopupMenu; +class QPainter; + +/** + * A toolbar button. This is used internally by @ref KToolBar, use the + * KToolBar methods instead. + * @internal + */ +class KToolBarButton : public QToolButton +{ + Q_OBJECT + +public: + /** + * Construct a button with an icon loaded by the button itself. + * This will trust the button to load the correct icon with the + * correct size. + * + * @param icon Name of icon to load (may be absolute or relative) + * @param id Id of this button + * @param parent This button's parent + * @param name This button's internal name + * @param txt This button's text (in a tooltip or otherwise) + */ + KToolBarButton(const QString& icon, int id, QWidget *parent, + const char *name=0L, const QString &txt=QString::null, + KInstance *_instance = KGlobal::instance()); + + /** + * Construct a button with an existing pixmap. It is not + * recommended that you use this as the internal icon loading code + * will almost always get it "right". + * + * @param icon Name of icon to load (may be absolute or relative) + * @param id Id of this button + * @param parent This button's parent + * @param name This button's internal name + * @param txt This button's text (in a tooltip or otherwise) + */ + KToolBarButton(const QPixmap& pixmap, int id, QWidget *parent, + const char *name=0L, const QString &txt=QString::null); + + /** + * Construct a separator button + * + * @param parent This button's parent + * @param name This button's internal name + */ + KToolBarButton(QWidget *parent=0L, const char *name=0L); + + /** + * Standard destructor + */ + ~KToolBarButton(); + +#ifndef KDE_NO_COMPAT + /** + * @deprecated + * Set the pixmap directly for this button. This pixmap should be + * the active one... the dimmed and disabled pixmaps are constructed + * based on this one. However, don't use this function unless you + * are positive that you don't want to use @ref setIcon. + * + * @param pixmap The active pixmap + */ + // this one is from QButton, so #ifdef-ing it out doesn't break BC + virtual void setPixmap(const QPixmap &pixmap); + + /** + * @deprecated + * Force the button to use this pixmap as the default one rather + * then generating it using effects. + * + * @param pixmap The pixmap to use as the default (normal) one + */ + void setDefaultPixmap(const QPixmap& pixmap); + + /** + * @deprecated + * Force the button to use this pixmap when disabled one rather then + * generating it using effects. + * + * @param pixmap The pixmap to use when disabled + */ + void setDisabledPixmap(const QPixmap& pixmap); +#endif + + /** + * Set the text for this button. The text will be either used as a + * tooltip (IconOnly) or will be along side the icon + * + * @param text The button (or tooltip) text + */ + virtual void setText(const QString &text); + + /** + * Set the icon for this button. The icon will be loaded internally + * with the correct size. This function is preferred over @ref setIconSet + * + * @param icon The name of the icon + */ + virtual void setIcon(const QString &icon); + + virtual void setIcon( const QPixmap &pixmap ) + { QToolButton::setIcon( pixmap ); } + + /** + * Set the pixmaps for this toolbar button from a QIconSet. + * If you call this you don't need to call any of the other methods + * that set icons or pixmaps. + * @param iconset The iconset to use + */ + virtual void setIconSet( const QIconSet &iconset ); + +#ifndef KDE_NO_COMPAT + /** + * @deprecated + * Set the active icon for this button. The pixmap itself is loaded + * internally based on the icon size... .. the disabled and default + * pixmaps, however will only be constructed if @ref #generate is + * true. This function is preferred over @ref setPixmap + * + * @param icon The name of the active icon + * @param generate If true, then the other icons are automagically + * generated from this one + */ + void setIcon(const QString &icon, bool /*generate*/ ) { setIcon( icon ); } + + /** + * @deprecated + * Force the button to use this icon as the default one rather + * then generating it using effects. + * + * @param icon The icon to use as the default (normal) one + */ + void setDefaultIcon(const QString& icon); + + /** + * @deprecated + * Force the button to use this icon when disabled one rather then + * generating it using effects. + * + * @param icon The icon to use when disabled + */ + void setDisabledIcon(const QString& icon); +#endif + + /** + * Turn this button on or off + * + * @param flag true or false + */ + void on(bool flag = true); + + /** + * Toggle this button + */ + void toggle(); + + /** + * Turn this button into a toggle button or disable the toggle + * aspects of it. This does not toggle the button itself. Use @ref + * toggle for that. + * + * @param toggle true or false + */ + void setToggle(bool toggle = true); + + /** + * Return a pointer to this button's popup menu (if it exists) + */ + QPopupMenu *popup(); + + /** + * Give this button a popup menu. There will not be a delay when + * you press the button. Use @ref setDelayedPopup if you want that + * behavior. You can also make the popup-menu + * "sticky", i.e. visible until a selection is made or the mouse is + * clikced elsewhere, by simply setting the second argument to true. + * This "sticky" button feature allows you to make a selection without + * having to press and hold down the mouse while making a selection. + * + * @param p The new popup menu + * @param toggle if true, makes the button "sticky" (toggled) + */ + void setPopup (QPopupMenu *p, bool toggle = false); + + /** + * Gives this button a delayed popup menu. + * + * This function allows you to add a delayed popup menu to the button. + * The popup menu is then only displayed when the button is pressed and + * held down for about half a second. You can also make the popup-menu + * "sticky", i.e. visible until a selection is made or the mouse is + * clikced elsewhere, by simply setting the second argument to true. + * This "sticky" button feature allows you to make a selection without + * having to press and hold down the mouse while making a selection. + * + * @param p the new popup menu + * @param toggle if true, makes the button "sticky" (toggled) + */ + void setDelayedPopup(QPopupMenu *p, bool toggle = false); + + /** + * Turn this button into a radio button + * + * @param f true or false + */ + void setRadio(bool f = true); + + /** + * Toolbar buttons naturally will assume the global styles + * concerning icons, icons sizes, etc. You can use this function to + * explicitely turn this off, if you like. + * + * @param no_style Will disable styles if true + */ + void setNoStyle(bool no_style = true); + +signals: + void clicked(int); + void doubleClicked(int); + void pressed(int); + void released(int); + void toggled(int); + void highlighted(int, bool); + +public slots: + /** + * This slot should be called whenever the toolbar mode has + * potentially changed. This includes such events as text changing, + * orientation changing, etc. + */ + void modeChange(); + virtual void setTextLabel(const QString&, bool tipToo); + +protected: + void paletteChange(const QPalette &); + void leaveEvent(QEvent *e); + void enterEvent(QEvent *e); + void drawButton(QPainter *p); + bool eventFilter (QObject *o, QEvent *e); + void showMenu(); + QSize sizeHint() const; + QSize minimumSizeHint() const; + QSize minimumSize() const; + + bool isRaised() const; + bool isActive() const; + int iconTextMode() const; + +protected slots: + void slotClicked(); + void slotPressed(); + void slotReleased(); + void slotToggled(); + void slotDelayTimeout(); + +protected: + virtual void virtual_hook( int id, void* data ); +private: + KToolBarButtonPrivate *d; +}; + +/** +* List of @ref KToolBarButton objects. +* @internal +* @version $Id: ktoolbarbutton.h,v 1.21.2.2 2002/05/26 13:09:06 carewolf Exp $ +*/ +class KToolBarButtonList : public QIntDict +{ +public: + KToolBarButtonList(); + ~KToolBarButtonList() {} +}; + +#endif diff --git a/extra/kde303/kurifilter.h b/extra/kde303/kurifilter.h new file mode 100644 index 0000000..b013817 --- /dev/null +++ b/extra/kde303/kurifilter.h @@ -0,0 +1,593 @@ +/* + * This file is part of the KDE libraries + * Copyright (C) 2000 Yves Arrouye + * + * This library 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. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public License + * along with this library; see the file COPYING.LIB. If not, write to + * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA. + **/ + +#ifndef __kurifilter_h__ +#define __kurifilter_h__ "$Id: kurifilter.h,v 1.23 2002/03/04 04:17:37 lunakl Exp $" + +#include +#include + +#include + +class KURIFilterPrivate; +class KURIFilterDataPrivate; + +class QStringList; +class KCModule; + +/** +* This is a basic message object used for exchanging filtering +* information between the filter plugins and the application +* whenever the application requires more information about the +* URI than just a filtered version of it. Any application can +* create an instance of this class and send it to @ref KURIFilter +* to have the filter plugins fill the necessary information. +* +* @sect Example +*
+*   QString text = "kde.org";
+*   KURIFilterData d = text;
+*   bool filtered = KURIFilter::self()->filter( d );
+*   if( filtered )
+*     print ( "URI: %s\n"Filtered URI: %s\n URI Type: %i\n"Was Filtered: %i"
+*             text.latin1(), d.uri().url().latin1(), d.uriType(), filtered );
+* 
+* +* The above code should yield the following output: +*
+*   URI: kde.org
+*   Filtered URI: http://kde.org
+*   URI Type: 0            <== means NET_PROTOCOL
+*   Was Filtered: 1        <== means the URL was successfully filtered
+* 
+* +* @short A message object for exchanging filtering URI info. +*/ + +class KURIFilterData +{ +friend class KURIFilterPlugin; + +public: + /** + * Describes the type of URI to be filtered. + * + * This enumerator prvoides the return value for + * @ref uriType. A breif description for each value: + * + * @li NET_PROTOCOL - Any network protocol: http, ftp, nttp, pop3, etc... + * @li LOCAL_FILE - A local file whose executable flag is not set + * @li LOCAL_DIR - A local directory + * @li EXECUTABLE - A local file whose executable flag is set + * @li HELP - A man or info page + * @li SHELL - A shell executable (ex: echo "Test..." >> ~/testfile) + * @li BLOCKED - A URI that should be blocked/filtered (ex: ad filtering) + * @li ERROR - An incorrect URI (ex: "~johndoe" when user johndoe + * does not exist in that system ) + * @li UNKNOWN - A URI that is not identified. Default value when + * a KURIFilterData is first created. + */ + enum URITypes { NET_PROTOCOL=0, LOCAL_FILE, LOCAL_DIR, EXECUTABLE, HELP, SHELL, BLOCKED, ERROR, UNKNOWN }; + + /** + * Default constructor. + * + * Creates a URIFilterData object. + */ + KURIFilterData() { init(); } + + /** + * Creates a URIFilterData object from the given URL. + * + * @param url is the URL to be filtered. + */ + KURIFilterData( const KURL& url ) { init( url); } + + /** + * Creates a URIFilterData object from the given string. + * + * @param url is the string to be filtered. + */ + KURIFilterData( const QString& url ) { init( url ); } + + /** + * Copy constructor. + * + * Creates a URIFilterData object from another + * URI filter data object. + * + * @param data the uri filter data to be copied. + */ + KURIFilterData( const KURIFilterData& /*data*/); + + /** + * Destructor. + */ + ~KURIFilterData(); + + /** + * This method has been deprecated and will always return + * TRUE. You should instead use the result from the + * @ref KURIFilter::filterURI() calls. + * + * @deprecated + */ + bool hasBeenFiltered() const { return m_bFiltered; } + + /** + * Returns the filtered or the original URL. + * + * This function returns the filtered url if one + * of the plugins sucessfully filtered the original + * URL. Otherwise, it returns the original URL. + * See @ref #hasBeenFiltered() and + * + * @return the filtered or original url. + */ + KURL uri() const { return m_pURI; } + + /** + * Returns an error message. + * + * This functions returns the error message set + * by the plugin whenever the uri type is set to + * KURIFilterData::ERROR. Otherwise, it returns + * a QString::null. + * + * @return the error message or a NULL when there is none. + */ + QString errorMsg() const { return m_strErrMsg; } + + /** + * Returns the URI type. + * + * This method always returns KURIFilterData::UNKNOWN + * if the given URL was not filtered. + */ + URITypes uriType() const { return m_iType; } + + /** + * Sets the URL to be filtered. + * + * Use this function to set the string to be + * filtered when you construct an empty filter + * object. + * + * @param url the string to be filtered. + */ + void setData( const QString& url ) { init( url ); } + + /** + * Same as above except the argument is a URL. + * + * Use this function to set the string to be + * filtered when you construct an empty filter + * object. + * + * @param url the URL to be filtered. + */ + void setData( const KURL& url ) { init( url ); } + + /** + * Sets the absolute path to be used whenever the supplied + * data is a relative local URL. + * + * NOTE: This function works only for a local resource and + * expects the absolute path to the relative URL set in this + * meta object. If you are extracting the absolute path from + * a KURL object, make sure you always set the argument below + * using KURL::path() instead of KURL::url() so that "file:/" + * would not be appended! Otherwise, the filter might not be + * able to make correct determination whether the relative URL + * locally exists! + * + * @param abs_path the abolute path to the local resource. + * @return true if absolute path is successfully set. Otherwise, false. + */ + bool setAbsolutePath( const QString& /* abs_path */ ); + + /** + * Returns the absolute path if one has already been set. + */ + QString absolutePath() const; + + /** + * Returns true if the supplied data has an absolute path. + */ + bool hasAbsolutePath() const; + + /** + * Returns the command line options and arguments for a + * local resource when present. + * + * @return options and arguments when present, otherwise QString::null + */ + QString argsAndOptions() const; + + /** + * Returns true if the current data is a local resource with + * command line options and arguments. + */ + bool hasArgsAndOptions() const; + + /** + * Returns the name of the icon that matches + * the current filtered URL. + * + * NOTE that this function will return a NULL + * string by default and when no associated icon + * is found. + * + * @return the name of the icon associated with the resource + */ + QString iconName(); + + /** + * Overloaded assigenment operator. + * + * This function allows you to easily assign a KURL + * to a KURIFilterData object. + * + * @return an instance of a KURIFilterData object. + */ + KURIFilterData& operator=( const KURL& url ) { init( url ); return *this; } + + /** + * Overloaded assigenment operator. + * + * This function allows you to easily assign a QString + * to a KURIFilterData object. + * + * @return an instance of a KURIFilterData object. + */ + KURIFilterData& operator=( const QString& url ) { init( url ); return *this; } + +protected: + + /** + * Initializes the KURIFilterData on construction. + */ + void init( const KURL& url = QString::null ); + +private: + bool m_bFiltered; + bool m_bChanged; + + QString m_strErrMsg; + QString m_strIconName; + + KURL m_pURI; + URITypes m_iType; + KURIFilterDataPrivate *d; +}; + + +/** + * Base class for URI filter plugins. + * + * This class applies a single filter to a URI. All + * plugins designed to provide URI filtering functionalities + * should inherit from this abstract class and provide a + * specific filtering implementation. + * + * All inheriting classes need to implement the pure + * virtual function @ref filterURI. Otherwise, they + * would also become abstract. + * + * @short Abstract class for URI filter plugins. + */ +class KURIFilterPlugin : public QObject +{ + Q_OBJECT + +public: + + /** + * Constructs a filter plugin with a given name and + * priority. + * + * @param parent the parent object. + * @param name the name of the plugin. + * @param pri the priority of the plugin. + */ + KURIFilterPlugin( QObject *parent = 0, const char *name = 0, double pri = 1.0 ); + + /** + * Returns the filter's name. + * + * @return A string naming the filter. + */ + virtual QString name() const { return m_strName; } + + /** + * Returns the filter's priority. + * + * Each filter has an assigned priority, a float from 0 to 1. Filters + * with the lowest priority are first given a chance to filter a URI. + * + * @return The priority of the filter. + */ + virtual double priority() const { return m_dblPriority; } + + /** + * Filters a URI. + * + * @param data the URI data to be filtered. + * @return A boolean indicating whether the URI has been changed. + */ + virtual bool filterURI( KURIFilterData& data ) const = 0; + + /** + * Creates a configuration module for the filter. + * + * It is the responsability of the caller to delete the module + * once it is not needed anymore. + * + * @return A configuration module, @p null if the filter isn't configurable. + */ + virtual KCModule *configModule( QWidget*, const char* ) const { return 0; } + + /** + * Returns the name of the configuration module for the filter. + * + * @return the name of a configuration module or @p null if none. + */ + virtual QString configName() const { return name(); } + +protected: + + /** + * Sets the the URL in @p data to @p uri. + */ + void setFilteredURI ( KURIFilterData& data, const KURL& uri ) const; + + /** + * Sets the error message in @p data to @p errormsg. + */ + void setErrorMsg ( KURIFilterData& data, const QString& errmsg ) const { + data.m_strErrMsg = errmsg; + } + + /** + * Sets the URI type in @p data to @p type. + */ + void setURIType ( KURIFilterData& data, KURIFilterData::URITypes type) const { + data.m_iType = type; + data.m_bChanged = true; + } + + /** + * Sets the arguments and options string in @p data + * to @p args if any were found during filterting. + */ + void setArguments( KURIFilterData& data, const QString& args ) const; + + QString m_strName; + double m_dblPriority; + +protected: + virtual void virtual_hook( int id, void* data ); +private: + class KURIFilterPluginPrivate *d; +}; + + +class KURIFilterPluginList : public QPtrList +{ +public: + virtual int compareItems(Item a, Item b) + { + double diff = ((KURIFilterPlugin *) a)->priority() - ((KURIFilterPlugin *) b)->priority(); + return diff < 0 ? -1 : (diff > 0 ? 1 : 0); + } + +private: + KURIFilterPrivate *d; + +}; + +/** + * Manages the filtering of a URI. + * + * The intention of this plugin class is to allow people to extend + * the functionality of KURL without modifying it directly. This + * way KURL will remain a generic parser capable of parsing any + * generic URL that adheres to specifications. + * + * The KURIFilter class applies a number of filters to a URI, + * and returns the filtered version whenever possible. The filters + * are implemented using plugins to provide easy extensibility + * of the filtering mechanism. That is, new filters can be added in + * the future by simply inheriting from @ref KURIFilterPlugin and + * implementing the @ref KURIFilterPlugin::filterURI method. + * + * Use of this plugin-manager class is straight forward. Since + * it is a singleton object, all you have to do is obtain an instance + * by doing @p KURIFilter::self() and use any of the public member + * functions to preform the filtering. + * + * @sect Example + * + * To simply filter a given string: + *
+ * bool filtered = KURIFilter::self()->filterURI( "kde.org" );
+ * 
+ * + * You can alternatively use a KURL: + *
+ * KURL url = "kde.org";
+ * bool filtered = KURIFilter::self()->filterURI( url );
+ * 
+ * + * If you have a constant string or a constant URL, + * simply invoke the corresponding function to obtain + * the filtered string or URL instead of a boolean flag: + *
+ * QString u = KURIFilter::self()->filteredURI( "kde.org" );
+ * 
+ * + * You can also specify only specific filter(s) to be applied + * by supplying the name(s) of the filter(s). By defualt all + * filters that are found are loaded when the KURIFilter object + * is created will be used. These names are taken from the + * enteries in the \".desktop\" files. Here are a couple of + * examples: + *
+ * QString text = "kde.org";
+ * bool filtered = KURIFilter::self()->filterURI( text, "KShortURIFilter" );
+ *
+ * QStringList list;
+ * list << "KShortURIFilter" << "MyFilter";
+ * bool filtered = KURIFilter::self()->filterURI( text, list );
+ * 
+ * + * KURIFilter also allows richer data exchange through a simple + * meta-object called @p KURIFilterData. Using this meta-object + * you can find out more information about the URL you want to + * filter. See @ref KURIFilterData for examples and details. + * + * @short Filters a given URL into its proper format whenever possible. + */ + +class KURIFilter +{ +public: + /** + * Destructor + */ + ~KURIFilter (); + + /** + * Return a static instance of KURIFilter. + */ + static KURIFilter* self(); + + /** + * Filters the URI given by the object URIFilterData. + * + * This filters the given data based on the specified + * filter list. If the list is empty all avaliable + * filter plugins would be used. If not, only those + * given in the list are used. + * + * @param data object that contains the URI to be filtered. + * @param filters specify the list filters to be used + * + * @return a boolean indicating whether the URI has been changed + */ + bool filterURI( KURIFilterData& data, const QStringList& filters = QStringList() ); + + /** + * Filters the URI given by the URL. + * + * This filters the given URL based on the specified + * filter list. If the list is empty all avaliable + * filter plugins would be used. If not, only those + * given in the list are used. + * + * @param uri the URI to filter. + * @param filters specify the list of filters to be used + * + * @return a boolean indicating whether the URI has been changed + */ + bool filterURI( KURL &uri, const QStringList& filters = QStringList() ); + + /** + * Filters a string representing a URI. + * + * This filters the given string based on the specified + * filter list. If the list is empty all avaliable + * filter plugins would be used. If not, only those + * given in the list are used. + * + * @param uri The URI to filter. + * @param filters specify the list filters to be used + * + * @return a boolean indicating whether the URI has been changed + */ + bool filterURI( QString &uri, const QStringList& filters = QStringList() ); + + /** + * Returns the filtered URI. + * + * This filters the given URL based on the specified + * filter list. If the list is empty all avaliable + * filter plugins would be used. If not, only those + * given in the list are used. + * + * @param uri The URI to filter. + * @param filters specify the list filters to be used + * + * @return the filtered URI or null if it cannot be filtered + */ + KURL filteredURI( const KURL &uri, const QStringList& filters = QStringList() ); + + /** + * Return a filtered string representation of a URI. + * + * This filters the given URL based on the specified + * filter list. If the list is empty all avaliable + * filter plugins would be used. If not, only those + * given in the list are used. + * + * @param uri the URI to filter. + * @param filters specify the list filters to be used + * + * @return the filtered URI or null if it cannot be filtered + */ + QString filteredURI( const QString &uri, const QStringList& filters = QStringList() ); + + /** + * Return an iterator to iterate over all loaded + * plugins. + * + * @return a plugin iterator. + */ + QPtrListIterator pluginsIterator() const; + +protected: + + /** + * A protected constructor. + * + * This constructor creates a KURIFilter and + * initializes all plugins it can find by invoking + * @ref loadPlugins. + */ + KURIFilter(); + + /** + * Loads all allowed plugins. + * + * This function loads all filters that have not + * been dis + */ + void loadPlugins(); + +private: + + static KURIFilter *m_self; + KURIFilterPluginList m_lstPlugins; + KURIFilterPrivate *d; + +}; + +#endif + diff --git a/extra/kde310/kaccelaction.h b/extra/kde310/kaccelaction.h new file mode 100644 index 0000000..7a368a9 --- /dev/null +++ b/extra/kde310/kaccelaction.h @@ -0,0 +1,564 @@ +/* This file is part of the KDE libraries + Copyright (C) 2001,2002 Ellis Whitehead + + This library 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. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef _KACCELACTION_H +#define _KACCELACTION_H + +#include +#include +#include +#include + +#include + +class KAccelBase; + +class QObject; +class KConfig; +class KConfigBase; + +/** + * @internal + * A KAccelAction prepresents an action that can be executed using + * an accelerator key. Each KAccelAction has a name, a label, a + * "What's this" string and a @ref KShortcut. The user can configure and + * enable/disable them using @ref KKeyDialog. + * + *
+ *	1) KAccelAction = "Run Command"
+ *		Default3 = "Alt+F2"
+ *		Default4 = "Meta+Enter;Alt+F2"
+ *		1) KShortcut = "Meta+Enter"
+ *			1) KKeySequence = "Meta+Enter"
+ *				1) KKey = "Meta+Enter"
+ *					1) Meta+Enter
+ *					2) Meta+Keypad_Enter
+ *		2) KShortcut = "Alt+F2"
+ *			1) KKeySequence = "Alt+F2"
+ *				1) Alt+F2
+ *	2) KAccelAction = "Something"
+ *		Default3 = ""
+ *		Default4 = ""
+ *		1) KShortcut = "Meta+X,Asterisk"
+ *			1) KKeySequence = "Meta+X,Asterisk"
+ *				1) KKey = "Meta+X"
+ *					1) Meta+X
+ *				2) KKey = "Asterisk"
+ *					1) Shift+8 (English layout)
+ *					2) Keypad_Asterisk
+ * 
+ * @short An accelerator action + * @see KAccel + * @see KGlobalAccel + * @see KKeyChooser + * @see KKeyDialog + */ +class KAccelAction +{ + public: + /** + * Creates an empty KAccelAction. + * @see clear() + */ + KAccelAction(); + + /** + * Copy constructor. + */ + KAccelAction( const KAccelAction& ); + + /** + * Creates a new KAccelAction. + * @param sName the name of the accelerator + * @param sLabel the label of the accelerator (i18n!) + * @param sWhatsThis the What's This text (18n!) + * @param cutDef3 the default shortcut for 3 modifier systems + * @param cutDef4 the default shortcut for 4 modifier systems + * @param pObjSlot the receiver of a signal when the key has been + * pressed + * @param psMethodSlot the slot to connect for key presses. Receives + * an int, as set by @ref setID(), as only argument + * @param bConfigurable if true the user can configure the shortcut + * @param bEnabled true if the accelerator should be enabled + */ + KAccelAction( const QString& sName, const QString& sLabel, const QString& sWhatsThis, + const KShortcut& cutDef3, const KShortcut& cutDef4, + const QObject* pObjSlot, const char* psMethodSlot, + bool bConfigurable, bool bEnabled ); + ~KAccelAction(); + + /** + * Clears the accelerator. + */ + void clear(); + + /** + * Re-initialized the KAccelAction. + * @param sName the name of the accelerator + * @param sLabel the label of the accelerator (i18n!) + * @param sWhatsThis the What's This text (18n!) + * @param cutDef3 the default shortcut for 3 modifier systems + * @param cutDef4 the default shortcut for 4 modifier systems + * @param pObjSlot the receiver of a signal when the key has been + * pressed + * @param psMethodSlot the slot to connect for key presses. Receives + * an int, as set by @ref setID(), as only argument + * @param bConfigurable if true the user can configure the shortcut + * @param bEnabled true if the accelerator should be enabled + * @return true if successful, false otherwise + */ + bool init( const QString& sName, const QString& sLabel, const QString& sWhatsThis, + const KShortcut& cutDef3, const KShortcut& cutDef4, + const QObject* pObjSlot, const char* psMethodSlot, + bool bConfigurable, bool bEnabled ); + + /** + * Copies this KAccelAction. + */ + KAccelAction& operator=( const KAccelAction& ); + + /** + * Returns the name of the accelerator action. + * @return the name of the accelerator action, can be null if not + * set + */ + const QString& name() const { return m_sName; } + + /** + * Returns the label of the accelerator action. + * @return the label of the accelerator action, can be null if + * not set + */ + const QString& label() const { return m_sLabel; } + + /** + * Returns the What's This text of the accelerator action. + * @return the What's This text of the accelerator action, can be + * null if not set + */ + const QString& whatsThis() const { return m_sWhatsThis; } + + /** + * The shortcut that is actually used (may be used configured). + * @return the shortcut of the KAccelAction, can be null if not set + * @see shortcutDefault() + */ + const KShortcut& shortcut() const { return m_cut; } + + /** + * The default shortcut for this system. + * @return the default shortcut on this system, can be null if not set + * @see shortcut() + * @see shortcutDefault3() + * @see shortcutDefault4() + */ + const KShortcut& shortcutDefault() const; + + /** + * The default shortcut for 3 modifier systems. + * @return the default shortcut for 3 modifier systems, can be null + * if not set + * @see shortcutDefault() + * @see shortcutDefault4() + * @see useFourModifierKeys() + */ + const KShortcut& shortcutDefault3() const { return m_cutDefault3; } + + /** + * The default shortcut for 4 modifier systems. + * @return the default shortcut for 4 modifier systems, can be null + * if not set + * @see shortcutDefault() + * @see shortcutDefault3() + * @see useFourModifierKeys() + */ + const KShortcut& shortcutDefault4() const { return m_cutDefault4; } + + /** + * Returns the receiver of signals. + * @return the receiver of signals (can be 0 if not set) + */ + const QObject* objSlotPtr() const { return m_pObjSlot; } + + /** + * Returns the slot for the signal. + * @return the slot for the signal + */ + const char* methodSlotPtr() const { return m_psMethodSlot; } + + /** + * Checks whether the user can configure the action. + * @return true if configurable, false otherwise + */ + bool isConfigurable() const { return m_bConfigurable; } + + /** + * Checks whether the action is enabled. + * @return true if enabled, false otherwise + */ + bool isEnabled() const { return m_bEnabled; } + + /** + * Sets the name of the accelerator action. + * @param name the new name + */ + void setName( const QString& name ); + + /** + * Sets the user-readable label of the accelerator action. + * @param label the new label (i18n!) + */ + void setLabel( const QString& label ); + + /** + * Sets the What's This text for the accelerator action. + * @param whatsThis the new What's This text (i18n!) + */ + void setWhatsThis( const QString& whatsThis ); + + /** + * Sets the new shortcut of the accelerator action. + * @param rgCuts the shortcut to set + * @return true if successful, false otherwise + */ + bool setShortcut( const KShortcut& rgCuts ); + + /** + * Sets the slot of the accelerator action. + * @param pObjSlot the receiver object of the signal + * @param psMethodSlot the slot for the signal + */ + void setSlot( const QObject* pObjSlot, const char* psMethodSlot ); + + /** + * Enables or disabled configuring the action. + * @param configurable true to enable configurability, false to disable + */ + void setConfigurable( bool configurable ); + + /** + * Enables or disabled the action. + * @param configurable true to enable the action, false to disable + */ + void setEnabled( bool enable ); + + /** + * Retrieves the id set using @ref setID. + * @return the id of the accelerator action + */ + int getID() const { return m_nIDAccel; } + + /** + * Allows you to set an id that will be used as the action + * signal's argument. + * + * @param n the new id + * @see @ref getID() + */ + void setID( int n ) { m_nIDAccel = n; } + + /** + * Checkes whether the action is connected (emits signals). + * @return true if connected, false otherwise + */ + bool isConnected() const; + + /** + * Sets a key sequence of the action's shortcut. + * @param i the position of the sequence + * @param keySeq the new new sequence + * @return true if successful, false otherwise + * @see KShortcut::setSeq() + */ + bool setKeySequence( uint i, const KKeySequence &keySeq ); + + /** + * Clears the action's shortcut. It will not contain any sequences after + * calling this method. + * @see KShortcut::clear() + */ + void clearShortcut(); + + /** + * Checks whether the action's shortcut contains the given key sequence. + * @param keySeq the key sequence to check + * @return true if the shortcut contains the given sequence + * @see KShortcut::contains() + */ + bool contains( const KKeySequence &keySeq ); + + /** + * Returns the string representation of the action's shortcut. + * @return the string representation of the action's shortcut. + * @see KShortcut::toString() + */ + QString toString() const; + + /** + * @internal + */ + QString toStringInternal() const; + + /** + * Returns true if four modifier keys will be used. + * @return true if four modifier keys will be used. + */ + static bool useFourModifierKeys(); + + /** + * Selects 3 or 4 modifier default shortcuts. + * @param use true to use 4 modifier shortcuts, false to use + * 3 modifier shortcuts + */ + static void useFourModifierKeys( bool use ); + + protected: + QString m_sName, + m_sLabel, + m_sWhatsThis; + KShortcut m_cut; + KShortcut m_cutDefault3, m_cutDefault4; + const QObject* m_pObjSlot; + const char* m_psMethodSlot; + bool m_bConfigurable, + m_bEnabled; + int m_nIDAccel; + uint m_nConnections; + + void incConnections(); + void decConnections(); + + private: + static int g_bUseFourModifierKeys; + class KAccelActionPrivate* d; + + friend class KAccelActions; + friend class KAccelBase; +}; + +//--------------------------------------------------------------------- +// KAccelActions +//--------------------------------------------------------------------- + +/** + * @internal + * This class represents a collection of @ref KAccelAction objects. + * + * @short A collection of accelerator actions + * @see KAccelAction + */ +class KAccelActions +{ + public: + /** + * Creates a new, empty KAccelActions object. + */ + KAccelActions(); + + /** + * Copy constructor (deep copy). + */ + KAccelActions( const KAccelActions& ); + virtual ~KAccelActions(); + + /** + * Removes all items from this collection. + */ + void clear(); + + /** + * Initializes this object with the given actions. + * It will make a deep copy of all actions. + * @param actions the actions to copy + * @return true if successful, false otherwise + */ + bool init( const KAccelActions &actions ); + + /** + * Loads the actions from the given configuration file. + * + * @param config the configuration file to load from + * @param sGroup the group in the configuration file + * @return true if successful, false otherwise + */ + bool init( KConfigBase& config, const QString& sGroup ); + + /** + * Updates the shortcuts of all actions in this object + * with the shortcuts from the given object. + * @param shortcuts the collection that contains the new + * shortcuts + */ + void updateShortcuts( KAccelActions &shortcuts ); + + /** + * Retrieves the index of the action with the given name. + * @param sAction the action to search + * @return the index of the action, or -1 if not found + */ + int actionIndex( const QString& sAction ) const; + + /** + * Returns the action with the given @p index. + * @param index the index of an action. You must not + * use an index that is too high. + * @return the KAccelAction with the given index + * @see count() + */ + KAccelAction* actionPtr( uint index ); + + /** + * Returns the action with the given @p index. + * @param index the index of an action. You must not + * use an index that is too high. + * @return the KAccelAction with the given index + * @see count() + */ + const KAccelAction* actionPtr( uint index ) const; + + /** + * Returns the action with the given name. + * @param aAction the name of the action to search + * @return the KAccelAction with the given name, or 0 + * if not found + */ + KAccelAction* actionPtr( const QString& sAction ); + + /** + * Returns the action with the given name. + * @param aAction the name of the action to search + * @return the KAccelAction with the given name, or 0 + * if not found + */ + const KAccelAction* actionPtr( const QString& sAction ) const; + + /** + * Returns the action with the given key sequence. + * @param cut the sequence to search for + * @return the KAccelAction with the given sequence, or 0 + * if not found + */ + KAccelAction* actionPtr( KKeySequence cut ); + + /** + * Returns the action with the given @p index. + * @param index the index of an action. You must not + * use an index that is too high. + * @return the KAccelAction with the given index + * @see actionPtr() + * @see count() + */ + KAccelAction& operator []( uint index ); + + /** + * Returns the action with the given @p index. + * @param index the index of an action. You must not + * use an index that is too high. + * @return the KAccelAction with the given index + * @see actionPtr() + * @see count() + */ + const KAccelAction& operator []( uint index ) const; + + /** + * Inserts an action into the collection. + * @param sName the name of the accelerator + * @param sLabel the label of the accelerator (i18n!) + * @param sWhatsThis the What's This text (18n!) + * @param cutDef3 the default shortcut for 3 modifier systems + * @param cutDef4 the default shortcut for 4 modifier systems + * @param pObjSlot the receiver of a signal when the key has been + * pressed + * @param psMethodSlot the slot to connect for key presses. Receives + * an int, as set by @ref setID(), as only argument + * @param bConfigurable if true the user can configure the shortcut + * @param bEnabled true if the accelerator should be enabled + * @return the new action + */ + KAccelAction* insert( const QString& sAction, const QString& sLabel, const QString& sWhatsThis, + const KShortcut& rgCutDefaults3, const KShortcut& rgCutDefaults4, + const QObject* pObjSlot = 0, const char* psMethodSlot = 0, + bool bConfigurable = true, bool bEnabled = true ); + + /** + * Inserts an action into the collection. + * @param sName the name of the accelerator + * @param sLabel the label of the accelerator (i18n!) + * @return the new action + */ + KAccelAction* insert( const QString& sName, const QString& sLabel ); + + /** + * Removes the given action. + * @param sAction the name of the action. + * @return true if successful, false otherwise + */ + bool remove( const QString& sAction ); + + /** + * Loads the actions from the given configuration file. + * + * @param sConfigGroup the group in the configuration file + * @param pConfig the configuration file to load from + * @return true if successful, false otherwise + */ + bool readActions( const QString& sConfigGroup = "Shortcuts", KConfigBase* pConfig = 0 ); + + /** + * Writes the actions to the given configuration file. + * + * @param sConfigGroup the group in the configuration file + * @param pConfig the configuration file to save to + * @param bWriteAll true to write all actions + * @param bGlobal true to write to the global configuration file + * @return true if successful, false otherwise + */ + bool writeActions( const QString& sConfigGroup = "Shortcuts", KConfigBase* pConfig = 0, + bool bWriteAll = false, bool bGlobal = false ) const; + + /** + * Emit a keycodeChanged signal. + */ + void emitKeycodeChanged(); + + /** + * Returns the number of actions in the collection. + * @return the number of actions + */ + uint count() const; + + protected: + KAccelBase* m_pKAccelBase; + KAccelAction** m_prgActions; + uint m_nSizeAllocated, m_nSize; + + void resize( uint ); + void insertPtr( KAccelAction* ); + + private: + class KAccelActionsPrivate* d; + + KAccelActions( KAccelBase* ); + void initPrivate( KAccelBase* ); + KAccelActions& operator =( KAccelActions& ); + + friend class KAccelBase; +}; + +#endif // _KACCELACTION_H diff --git a/extra/kde310/kaccelbase.h b/extra/kde310/kaccelbase.h new file mode 100644 index 0000000..219eaf4 --- /dev/null +++ b/extra/kde310/kaccelbase.h @@ -0,0 +1,229 @@ +/* This file is part of the KDE libraries + Copyright (C) 2001 Ellis Whitehead + + This library 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. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef _KACCELBASE_H +#define _KACCELBASE_H + +#include +#include +#include +#include +#include + +#include "kaccelaction.h" +#include "kkeyserver_x11.h" + +class QPopupMenu; +class QWidget; + +//---------------------------------------------------- + +/** + * @internal + * Handle keyboard accelerators. + * + * Allow an user to configure + * key bindings through application configuration files or through the + * @ref KKeyChooser GUI. + * + * A @ref KAccel contains a list of accelerator items. Each accelerator item + * consists of an action name and a keyboard code combined with modifiers + * (Shift, Ctrl and Alt.) + * + * For example, "Ctrl+P" could be a shortcut for printing a document. The key + * codes are listed in ckey.h. "Print" could be the action name for printing. + * The action name identifies the key binding in configuration files and the + * @ref KKeyChooser GUI. + * + * When pressed, an accelerator key calls the slot to which it has been + * connected. Accelerator items can be connected so that a key will activate + * two different slots. + * + * A KAccel object handles key events sent to its parent widget and to all + * children of this parent widget. + * + * Key binding reconfiguration during run time can be prevented by specifying + * that an accelerator item is not configurable when it is inserted. A special + * group of non-configurable key bindings are known as the + * standard accelerators. + * + * The standard accelerators appear repeatedly in applications for + * standard document actions such as printing and saving. Convenience methods are + * available to insert and connect these accelerators which are configurable on + * a desktop-wide basis. + * + * It is possible for a user to choose to have no key associated with + * an action. + * + * The translated first argument for @ref insertItem() is used only + * in the configuration dialog. + *
+ * KAccel *a = new KAccel( myWindow );
+ * // Insert an action "Scroll Up" which is associated with the "Up" key:
+ * a->insertItem( i18n("Scroll up"), "Scroll Up", "Up" );
+ * // Insert an action "Scroll Down" which is not associated with any key:
+ * a->insertItem( i18n("Scroll down"), "Scroll Down", 0);
+ * a->connectItem( "Scroll up", myWindow, SLOT( scrollUp() ) );
+ * // a->insertStdItem( KStdAccel::Print ); //not necessary, since it
+ *	// is done automatially with the
+ *	// connect below!
+ * a->connectItem(KStdAccel::Print, myWindow, SLOT( printDoc() ) );
+ *
+ * a->readSettings();
+ *
+ * + * If a shortcut has a menu entry as well, you could insert them like + * this. The example is again the @ref KStdAccel::Print from above. + * + *
+ * int id;
+ * id = popup->insertItem("&Print",this, SLOT(printDoc()));
+ * a->changeMenuAccel(popup, id, KStdAccel::Print );
+ * 
+ * + * If you want a somewhat "exotic" name for your standard print action, like + * id = popup->insertItem(i18n("Print &Document"),this, SLOT(printDoc())); + * it might be a good idea to insert the standard action before as + * a->insertStdItem( KStdAccel::Print, i18n("Print Document") ) + * as well, so that the user can easily find the corresponding function. + * + * This technique works for other actions as well. Your "scroll up" function + * in a menu could be done with + * + *
+ *    id = popup->insertItem(i18n"Scroll &up",this, SLOT(scrollUp()));
+ *    a->changeMenuAccel(popup, id, "Scroll Up" );
+ * 
+ * + * Please keep the order right: First insert all functions in the + * acceleratior, then call a -> @ref readSettings() and @em then build your + * menu structure. + * + * @short Configurable key binding support. + * @version $Id: kaccelbase.h,v 1.22 2002/10/06 18:19:39 ellis Exp $ + */ + +class KAccelBase +{ + public: + enum Init { QT_KEYS = 0x00, NATIVE_KEYS = 0x01 }; + enum Signal { KEYCODE_CHANGED }; + + KAccelBase( int fInitCode ); + virtual ~KAccelBase(); + + uint actionCount() const; + KAccelActions& actions(); + bool isEnabled() const; + + KAccelAction* actionPtr( const QString& sAction ); + const KAccelAction* actionPtr( const QString& sAction ) const; + KAccelAction* actionPtr( const KKey& key ); + KAccelAction* actionPtr( const KKeyServer::Key& key ); + + const QString& configGroup() const { return m_sConfigGroup; } + void setConfigGroup( const QString& group ); + void setConfigGlobal( bool global ); + virtual void setEnabled( bool bEnabled ) = 0; + bool getAutoUpdate() { return m_bAutoUpdate; } + // return value of AutoUpdate flag before this call. + bool setAutoUpdate( bool bAuto ); + +// Procedures for manipulating Actions. + //void clearActions(); + + KAccelAction* insert( const QString& sName, const QString& sDesc ); + KAccelAction* insert( + const QString& sAction, const QString& sDesc, const QString& sHelp, + const KShortcut& rgCutDefaults3, const KShortcut& rgCutDefaults4, + const QObject* pObjSlot, const char* psMethodSlot, + bool bConfigurable = true, bool bEnabled = true ); + bool remove( const QString& sAction ); + bool setActionSlot( const QString& sAction, const QObject* pObjSlot, const char* psMethodSlot ); + + bool updateConnections(); + + bool setShortcut( const QString& sAction, const KShortcut& cut ); + +// Modify individual Action sub-items + bool setActionEnabled( const QString& sAction, bool bEnable ); + + /** + * Read all key associations from @p config, or (if @p config + * is zero) from the application's configuration file + * @ref KGlobal::config(). + * + * The group in which the configuration is stored can be + * set with @ref setConfigGroup(). + */ + void readSettings( KConfigBase* pConfig = 0 ); + + /** + * Write the current configurable associations to @p config, + * or (if @p config is zero) to the application's + * configuration file. + */ + void writeSettings( KConfigBase* pConfig = 0 ) const; + + QPopupMenu* createPopupMenu( QWidget* pParent, const KKeySequence& ); + + // Protected methods + protected: + void slotRemoveAction( KAccelAction* ); + + void createKeyList( QValueVector& rgKeys ); + bool insertConnection( KAccelAction* ); + bool removeConnection( KAccelAction* ); + + virtual bool emitSignal( Signal ) = 0; + virtual bool connectKey( KAccelAction&, const KKeyServer::Key& ) = 0; + virtual bool connectKey( const KKeyServer::Key& ) = 0; + virtual bool disconnectKey( KAccelAction&, const KKeyServer::Key& ) = 0; + virtual bool disconnectKey( const KKeyServer::Key& ) = 0; + + protected: + struct ActionInfo + { + KAccelAction* pAction; + uint iSeq, iVariation; + //ActionInfo* pInfoNext; // nil if only one action uses this key. + + ActionInfo() { pAction = 0; iSeq = 0xffff; iVariation = 0xffff; } + ActionInfo( KAccelAction* _pAction, uint _iSeq, uint _iVariation ) + { pAction = _pAction; iSeq = _iSeq; iVariation = _iVariation; } + }; + typedef QMap KKeyToActionMap; + + KAccelActions m_rgActions; + KKeyToActionMap m_mapKeyToAction; + QValueList m_rgActionsNonUnique; + bool m_bNativeKeys; // Use native key codes instead of Qt codes + bool m_bEnabled; + bool m_bConfigIsGlobal; + QString m_sConfigGroup; + bool m_bAutoUpdate; + KAccelAction* mtemp_pActionRemoving; + + private: + KAccelBase& operator =( const KAccelBase& ); + + friend class KAccelActions; +}; + +#endif // _KACCELBASE_H diff --git a/extra/kde310/kicontheme.h b/extra/kde310/kicontheme.h new file mode 100644 index 0000000..837f7a4 --- /dev/null +++ b/extra/kde310/kicontheme.h @@ -0,0 +1,331 @@ +/* vi: ts=8 sts=4 sw=4 + * + * $Id: kicontheme.h,v 1.26 2002/10/26 22:08:38 tjansen Exp $ + * + * This file is part of the KDE project, module kdecore. + * Copyright (C) 2000 Geert Jansen + * Antonio Larrosa + * + * This is free software; it comes under the GNU Library General + * Public License, version 2. See the file "COPYING.LIB" for the + * exact licensing terms. + * + */ + +#ifndef __KIconTheme_h_Included__ +#define __KIconTheme_h_Included__ + +#include +#include +#include + +class KConfig; +//class KIconThemeDir; + +class KIconThemePrivate; + +class KIconPrivate; + +/** + * One icon as found by KIconTheme. Also serves as a namespace containing + * icon related constants. + * @see KIconEffect + * @see KIconTheme + * @see KIconLoader + */ +class KIcon +{ +public: + KIcon() { size = 0; } + + /** + * Return true if this icon is valid, false otherwise. + */ + bool isValid() const { return size != 0; } + + /** + * Defines the context of the icon. + */ + enum Context { + Any, ///< Some icon with unknown purpose. + Action, ///< An action icon (e.g. 'save', 'print'). + Application, ///< An icon that represents an application. + Device, ///< An icon that represents a device. + FileSystem, ///< An icon that represents a file system. + MimeType ///< An icon that represents a mime type (or file type). + }; + + /** + * The type of the icon. + */ + enum Type { + Fixed, ///< Fixed-size icon. + Scalable, ///< Scalable-size icon. + Threshold ///< A threshold icon. + }; + + /** + * The type of a match. + */ + enum MatchType { + MatchExact, ///< Only try to find an exact match. + MatchBest ///< Take the best match if there is no exact match. + + }; + + // if you add a group here, make sure to change the config reading in + // KIconLoader too + /** + * The group an an icon. + */ + enum Group { NoGroup=-1, Desktop=0, FirstGroup=Desktop, Toolbar, + MainToolbar, Small, Panel, LastGroup, User }; + + /** + * These are the standard sizes for icons. + */ + enum StdSizes { + /// small icons for menu entries + SizeSmall=16, + /// medium sized icons for the desktop + SizeMedium=32, + /// large sized icons for the panel + SizeLarge=48 }; + + /** + * Defines the possible states of an icon. + */ + enum States { DefaultState, ///< The default state. + ActiveState, ///< Icon is active. + DisabledState, ///< Icon is disabled. + LastState ///< Last state (last constant) + }; + + /** + * This defines an overlay, a semi-transparent image that is + * projected onto the icon. They are used to show that the file + * represented by the icon is, for example, locked, zipped or hidden. + */ + enum Overlays { + LockOverlay=0x100, ///< a file is locked + ZipOverlay=0x200, ///< a file is zipped + LinkOverlay=0x400, ///< a fileis a link + HiddenOverlay=0x800, ///< a file is hidden + ShareOverlay=0x1000, ///< a file is shared + OverlayMask = ~0xff + }; + + /** + * The size in pixels of the icon. + */ + int size; + + /** + * The context of the icon. + */ + Context context; + + /** + * The type of the icon: Fixed, Scalable or Threshold. + **/ + Type type; + + /** + * The threshold in case type == Threshold + */ + int threshold; + + /** + * The full path of the icon. + */ + QString path; + +private: + KIconPrivate *d; +}; + +inline KIcon::Group& operator++(KIcon::Group& group) { group = static_cast(group+1); return group; } +inline KIcon::Group operator++(KIcon::Group& group,int) { KIcon::Group ret = group; ++group; return ret; } + +/** + * Class to use/access icon themes in KDE. This class is used by the + * iconloader but can be used by others too. + * @see KIconLoader + */ +class KIconTheme +{ +public: + /** + * Load an icon theme by name. + * @param name the name of the theme (e.g. "hicolor" or "keramik") + * @param appName the name of the application. Can be null. This argument + * allows applications to have themed application icons. + */ + KIconTheme(const QString& name, const QString& appName=QString::null); + ~KIconTheme(); + + /** + * The stylized name of the icon theme. + * @return the (human-readable) name of the theme + */ + QString name() const { return mName; } + + /** + * A description for the icon theme. + * @return a human-readable description of the theme, QString::null + * if there is none + */ + QString description() const { return mDesc; } + + /** + * Return the name of the "example" icon. This can be used to + * present the theme to the user. + * @return the name of the example icon, QString::null if there is none + */ + QString example() const; + + /** + * Return the name of the screenshot. + * @return the name of the screenshot, QString::null if there is none + */ + QString screenshot() const; + + /** + * Returns the name of this theme's link overlay. + * @return the name of the link overlay + */ + QString linkOverlay() const; + + /** + * Returns the name of this theme's zip overlay. + * @return the name of the zip overlay + */ + QString zipOverlay() const; + + /** + * Returns the name of this theme's lock overlay. + * @return the name of the lock overlay + */ + QString lockOverlay() const; + + /** + * Returns the name of this theme's share overlay. + * @return the name of the share overlay + * @since 3.1 + */ + QString shareOverlay () const; + + /** + * Returns the toplevel theme directory. + * @return the directory of the theme + */ + QString dir() const { return mDir; } + + /** + * The themes this icon theme falls back on. + * @return a list of icon themes that are used as fall-backs + */ + QStringList inherits() const { return mInherits; } + + /** + * The icon theme exists? + * @return true if the icon theme is valid + */ + bool isValid() const; + + /** + * The icon theme should be hidden to the user? + * @return true if the icon theme is hidden + * @since 3.1 + */ + bool isHidden() const; + + /** + * The minimum display depth required for this theme. This can either + * be 8 or 32. + * @return the minimum bpp (8 or 32) + */ + int depth() const { return mDepth; } + + /** + * The default size of this theme for a certain icon group. + * @param group The icon group. See @ref #KIcon::Group. + * @return The default size in pixels for the given icon group. + */ + int defaultSize(KIcon::Group group) const; + + /** + * Query available sizes for a group. + * @param group The icon group. See @ref #KIcon::Group. + * @return a list of available sized for the given group + */ + QValueList querySizes(KIcon::Group group) const; + + /** + * Query available icons for a size and context. + * @param size the size of the icons + * @param context the context of the icons + * @return the list of icon names + */ + QStringList queryIcons(int size, KIcon::Context context = KIcon::Any) const; + + /** + * Query available icons for a context and preferred size. + * @param size the size of the icons + * @param context the context of the icons + * @return the list of icon names + */ + QStringList queryIconsByContext(int size, KIcon::Context context = KIcon::Any) const; + + + /** + * Lookup an icon in the theme. + * @param name The name of the icon, without extension. + * @param size The desired size of the icon. + * @param match The matching mode. KIcon::MatchExact returns an icon + * only if matches exactly. KIcon::MatchBest returns the best matching + * icon. + * @return A KIcon class that describes the icon. If an icon is found, + * @see KIcon::isValid will return true, and false otherwise. + */ + KIcon iconPath(const QString& name, int size, KIcon::MatchType match) const; + + /** + * List all icon themes installed on the system, global and local. + * @return the list of all icon themes + */ + static QStringList list(); + + /** + * Returns the current icon theme. + * @return the name of the current theme + */ + static QString current(); + + /** + * Reconfigure the theme. + */ + static void reconfigure(); + + /** + * Returns the default icon theme. + * @return the name of the default theme name + * @since 3.1 + */ + static QString defaultThemeName(); + +private: + int mDefSize[8]; + QValueList mSizes[8]; + + int mDepth; + QString mDir, mName, mDesc; + QStringList mInherits; +// QPtrList mDirs; + KIconThemePrivate *d; + + static QString *_theme; + static QStringList *_theme_list; +}; + +#endif diff --git a/extra/kde310/kkeyserver_x11.h b/extra/kde310/kkeyserver_x11.h new file mode 100644 index 0000000..dfb7445 --- /dev/null +++ b/extra/kde310/kkeyserver_x11.h @@ -0,0 +1,435 @@ +#ifndef _KKEYSERVER_X11_H +#define _KKEYSERVER_X11_H + +#include "kshortcut.h" +#include "kkeynative.h" + +/** + * A collection of functions for the conversion of key presses and + * their modifiers from the window system (X11) specific format + * to the generic format and vice-versa. + */ +namespace KKeyServer +{ + /** + * Supplement enum KKey::ModFlag + * @since 3.1 + */ + enum ExtraModFlag { MODE_SWITCH = 0x2000 }; + + struct CodeMod { int code, mod; }; + + /** + * Represents a key symbol. + * @see KKey + * @see KKeyServer + */ + struct Sym + { + public: + /// the actual value of the symbol + uint m_sym; + + /// Creates a null symbol. + Sym() + { m_sym = 0; } + /** + * Creates asymbol with the given value. + * @param sym the value + */ + Sym( uint sym ) + { m_sym = sym; } + /** + * Creates a symbol from the given string description. + * @param s the description of the symbol + * @see toString() + */ + Sym( const QString& s ) + { init( s ); } + + /** + * Initializes the symbol with the given Qt key code. + * @param keyQt the qt key code + * @return true if succesful, false otherwise + * @see Qt::Key + */ + bool initQt( int keyQt ); + + /** + * Initializes the key with the given string description. + * @param s the string description + * @return true if succesful, false otherwise + * @see toString() + */ + bool init( const QString &s ); + + /** + * Returns the qt key code of the symbol. + * @return the qt key code + */ + int qt() const; + + /** + * @internal + */ + QString toStringInternal() const; + + /** + * Returns the string representation of the symbol. + * @return the string representation of the symbol + */ + QString toString() const; + + /** + * Returns the mods that are required for this symbol as + * ORed @ref KKey::ModFlag's. For example, Break requires a + * Ctrl to be valid. + * @return the required @ref KKey::ModFlag's + * @see KKey::ModFlag + */ + uint getModsRequired() const; + + /** + * TODO: please find out what this method does and document it + */ + uint getSymVariation() const; + + /** + * Casts the symbol to its integer representation. + */ + operator uint() const { return m_sym; } + + /** + * Overloaded operator to convert ints to Sym. + */ + Sym& operator =( uint sym ) { m_sym = sym; return *this; } + + private: + QString toString( bool bUserSpace ) const; + + static void capitalizeKeyname( QString& ); + }; + + /** + * Represents a key press. + * @see KKey + */ + struct Key + { + /// Code for native Keys in Qt + enum { CODE_FOR_QT = 256 }; + + /// The code of the key + uint m_code; + + /// The modifiers of the key + uint m_mod; + + /// The symbol of the key + uint m_sym; + + /** + * Initializes the key with a @ref KKey. + * @param key the key to get the data from + * @param bQt true to take the Qt keycode, false + * for the native key code + * @see Qt::Key + * @see KKeyNative + */ + bool init( const KKey& key, bool bQt ); + + /** + * Checks whether the key code is a native code. + * @return true if native code of the window system, + * false if it is a Qt keycode + * @see Qt::Key + * @see KKeyNative + */ + bool isNative() const { return m_code != CODE_FOR_QT; } + + /** + * Returns the code of the key. + * @return the code of the key + */ + uint code() const { return m_code; } + + /** + * Returns the modifiers of the key. + * @return the modifiers of the key + */ + uint mod() const { return m_mod; } + + /** + * Returns the symbol of the key. + * @return the symbol of the key + */ + uint sym() const { return m_sym; } + + /** + * Returns the qt key code. + * @return the qt key code + */ + int keyCodeQt() const { return (int) m_sym; } + + /** + * Sets the qt key code. + * @param keyQt the qt key code + */ + void setKeycodeQt( int keyQt ) + { m_code = CODE_FOR_QT; m_sym = keyQt; } + + /** + * Initializes this key with a @ref KKeyNative. + * @return this key + */ + Key& operator =( const KKeyNative& key ); + + /** + * Compares this key with the given Key object. Returns a + * negative number if the given Key is larger, 0 if they + * are equal and a positive number this Key is larger. The + * returned value is the difference between the symbol, modifier + * or code, whatever is non-zero first. + * + * @param key the key to compare with this key + * @return a negative number if the given Key is larger, 0 if + * they are equal and a positive number this Key is larger + */ + int compare( const Key& key ) const; + + /** + * Compares the symbol, modifiers and code of both keys. + * @see compare() + */ + bool operator ==( const Key& b ) const + { return compare( b ) == 0; } + + /** + * Compares the symbol, modifiers and code of both keys. + * @see compare() + */ + bool operator <( const Key& b ) const + { return compare( b ) < 0; } + + /** + * Converts this Key to a KKey. + * @return the KKey + */ + KKey key() const; + }; + + /** + * TODO: please document this class + */ + struct Variations + { + enum { MAX_VARIATIONS = 4 }; + + Key m_rgkey[MAX_VARIATIONS]; + uint m_nVariations; + + Variations() { m_nVariations = 0; } + + void init( const KKey&, bool bQt ); + + uint count() const { return m_nVariations; } + const Key& key( uint i ) const { return m_rgkey[i]; } + }; + + /// TODO: please document + bool initializeMods(); + + /** + * Returns the equivalent X modifier mask of the given modifier flag. + * @param modFlag the generic flags to check + * @return the window system specific flags + */ + uint modX( KKey::ModFlag modFlag ); + + /** + * Returns true if the current keyboard layout supports the Win key. + * Specifically, whether the Super or Meta keys are assigned to an X modifier. + * @return true if the keyboard has a Win key + * @see modXWin() + */ + bool keyboardHasWinKey(); + + /** + * Returns the X11 Shift modifier mask/flag. + * @return the X11 Shift modifier mask/flag. + * @see accelModMaskX() + */ + uint modXShift(); + + /** + * Returns the X11 Lock modifier mask/flag. + * @return the X11 Lock modifier mask/flag. + * @see accelModMaskX() + */ + uint modXLock(); + + /** + * Returns the X11 Ctrl modifier mask/flag. + * @return the X11 Ctrl modifier mask/flag. + * @see accelModMaskX() + */ + uint modXCtrl(); + + /** + * Returns the X11 Alt (Mod1) modifier mask/flag. + * @return the X11 Alt (Mod1) modifier mask/flag. + * @see accelModMaskX() + */ + uint modXAlt(); + + /** + * Returns the X11 NumLock modifier mask/flag. + * @return the X11 NumLock modifier mask/flag. + * @see accelModMaskX() + */ + uint modXNumLock(); + + /** + * Returns the X11 Win (Mod3) modifier mask/flag. + * @return the X11 Win (Mod3) modifier mask/flag. + * @see keyboardHasWinKey() + * @see accelModMaskX() + */ + uint modXWin(); + + /** + * Returns the X11 ScrollLock modifier mask/flag. + * @return the X11 ScrollLock modifier mask/flag. + * @see accelModMaskX() + */ + uint modXScrollLock(); + + /** + * Returns bitwise OR'ed mask containing Shift, Ctrl, Alt, and + * Win (if available). + * @see modXShift() + * @see modXLock() + * @see modXCtrl() + * @see modXAlt() + * @see modXNumLock() + * @see modXWin() + * @see modXScrollLock() + */ + uint accelModMaskX(); + + /** + * Extracts the symbol from the given Qt key and + * converts it to a symbol. + * @param keyQt the qt key code + * @param sym if successful, the symbol will be written here + * @return true if successful, false otherwise + * @see Qt::Key + * @see Sym + */ + bool keyQtToSym( int keyQt, uint& sym ); + + /** + * Extracts the modifiers from the given Qt key and + * converts them in a mask of ORed @ref KKey::ModFlag modifiers. + * @param keyQt the qt key code + * @param mod if successful, the modifiers will be written here + * @return true if successful, false otherwise + * @see Qt::Key + */ + bool keyQtToMod( int keyQt, uint& mod ); + + /** + * Converts the given symbol to a Qt key code. + * @param sym the symbol + * @param keyQt if successful, the qt key code will be written here + * @return true if successful, false otherwise + * @see Qt::Key + * @see Sym + */ + bool symToKeyQt( uint sym, int& keyQt ); + + /** + * Converts the mask of ORed @ref KKey::ModFlag modifiers to + * a mask of ORed Qt key code modifiers. + * @param the mask of @ref KKey::ModFlag modifiers + * @param the mask of Qt key code modifiers will be written here, + * if successful + * @return true if successful, false otherwise + * @see Qt::Key + * @see KKey + */ + bool modToModQt( uint mod, int& modQt ); + + /** + * Converts the mask of ORed @ref KKey::ModFlag modifiers to + * a mask of ORed X11 modifiers. + * @param the mask of @ref KKey::ModFlag modifiers + * @param the mask of X11 modifiers will be written here, + * if successful + * @return true if successful, false otherwise + * @see KKey + */ + bool modToModX( uint mod, uint& modX ); + + /** + * Converts the mask of ORed X11 modifiers to + * a mask of ORed Qt key code modifiers. + * @param the mask of X11 modifiers + * @param the mask of Qt key code modifiers will be written here + * if successful + * @return true if successful, false otherwise + * @see Qt::Key + */ + bool modXToModQt( uint modX, int& modQt ); + + /** + * Converts the mask of ORed X11 modifiers to + * a mask of ORed @ref KKey::ModFlag modifiers. + * @param the mask of X11 modifiers + * @param the mask of @ref KKey::ModFlag modifiers will be written here, + * if successful + * @return true if successful, false otherwise + * @see KKey + */ + bool modXToMod( uint modX, uint& mod ); + + /** + * Converts a X11 key code and a mask of ORed X11 modifiers + * into a X11 symbol. + * converts it to a symbol. + * @param codeX the X11 key code + * @param modX the mask of ORed X11 modifiers + * @param sym if successful, the X11 symbol will be written here + * @return true if successful, false otherwise + * @see Qt::Key + * @see Sym + */ + bool codeXToSym( uchar codeX, uint modX, uint& symX ); + + /** + * @internal + */ + QString modToStringInternal( uint mod ); + + /** + * Converts the mask of ORed @ref KKey::ModFlag modifiers to a + * user-readable string. + * @param mod the mask of ORed @ref KKey::ModFlag modifiers + * @return the user-readable string + */ + QString modToStringUser( uint mod ); + + /** + * @internal + * Unimplemented? + */ + bool stringToSymMod( const QString&, uint& sym, uint& mod ); + + /** + * @internal + * Unimplemented? + */ + void keyQtToKeyX( uint keyCombQt, unsigned char *pKeyCodeX, uint *pKeySymX, uint *pKeyModX ); +}; + +#endif // !_KKEYSERVER_X11_H diff --git a/extra/kde310/konsole_part.h b/extra/kde310/konsole_part.h new file mode 100644 index 0000000..ba89800 --- /dev/null +++ b/extra/kde310/konsole_part.h @@ -0,0 +1,223 @@ +/* + This file is part of the KDE system + Copyright (C) 1999,2000 Boloni Laszlo + + 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. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. + */ + +#ifndef __KONSOLE_PART_H__ +#define __KONSOLE_PART_H__ + +#include +#include + + +#include + +#include + +//#include "schema.h" +//#include "session.h" + +class KInstance; +class konsoleBrowserExtension; +class QPushButton; +class QSpinBox; +class KPopupMenu; +class QCheckBox; +class KRootPixmap; +class KToggleAction; +class KSelectAction; + +namespace KParts { class GUIActivateEvent; } + +class konsoleFactory : public KParts::Factory +{ + Q_OBJECT +public: + konsoleFactory(); + virtual ~konsoleFactory(); + + virtual KParts::Part* createPartObject(QWidget *parentWidget = 0, const char *widgetName = 0, + QObject* parent = 0, const char* name = 0, + const char* classname = "KParts::Part", + const QStringList &args = QStringList()); + + static KInstance *instance(); + + private: + static KInstance *s_instance; + static KAboutData *s_aboutData; +}; + +////////////////////////////////////////////////////////////////////// + +class konsolePart: public KParts::ReadOnlyPart, public TerminalInterface +{ + Q_OBJECT + public: + konsolePart(QWidget *parentWidget, const char *widgetName, QObject * parent, const char *name, const char *classname = 0); + virtual ~konsolePart(); + +signals: + void processExited(); + void receivedData( const QString& s ); + protected: + virtual bool openURL( const KURL & url ); + virtual bool openFile() {return false;} // never used + virtual bool closeURL() {return true;} + virtual void guiActivateEvent( KParts::GUIActivateEvent * event ); + + protected slots: + void showShell(); + void slotProcessExited(); + void slotReceivedData( const QString& s ); + +// void doneSession(TESession*); + void sessionDestroyed(); +// void configureRequest(TEWidget*,int,int x,int y); + void updateTitle(); + void enableMasterModeConnections(); + + private slots: + void emitOpenURLRequest(const QString &url); + + void readProperties(); + void saveProperties(); + + void sendSignal(int n); + void closeCurrentSession(); + + void notifySize(int,int); + + void slotToggleFrame(); + void slotSelectScrollbar(); + void slotSelectFont(); + void schema_menu_check(); + void keytab_menu_activated(int item); + void updateSchemaMenu(); + void setSchema(int n); + void pixmap_menu_activated(int item); + void schema_menu_activated(int item); + void slotHistoryType(); + void slotSelectBell(); + void slotSelectLineSpacing(); + void slotBlinkingCursor(); + void slotWordSeps(); + void fontNotFound(); + + private: + konsoleBrowserExtension *m_extension; + KURL currentURL; + + void makeGUI(); + void applySettingsToGUI(); + + void setFont(int fontno); +// void setSchema(ColorSchema* s); + void updateKeytabMenu(); + + bool doOpenStream( const QString& ); + bool doWriteStream( const QByteArray& ); + bool doCloseStream(); + + QWidget* parentWidget; +// TEWidget* te; +// TESession* se; +// ColorSchemaList* colors; + KRootPixmap* rootxpm; + + KToggleAction* blinkingCursor; + KToggleAction* showFrame; + + KSelectAction* selectBell; + KSelectAction* selectFont; + KSelectAction* selectLineSpacing; + KSelectAction* selectScrollbar; + + KPopupMenu* m_keytab; + KPopupMenu* m_schema; + KPopupMenu* m_signals; + KPopupMenu* m_options; + KPopupMenu* m_popupMenu; + + QFont defaultFont; + + QString pmPath; // pixmap path + QString s_schema; + QString s_kconfigSchema; + QString s_word_seps; // characters that are considered part of a word + QString fontNotFound_par; + + bool b_framevis:1; + bool b_histEnabled:1; + + int curr_schema; // current schema no + int n_bell; + int n_font; + int n_keytab; + int n_render; + int n_scroll; + unsigned m_histSize; + bool m_runningShell; + bool m_streamEnabled; +public: + // these are the implementations for the TermEmuInterface + // functions... + void startProgram( const QString& program, + const QStrList& args ); + void showShellInDir( const QString& dir ); + void sendInput( const QString& text ); +}; + +////////////////////////////////////////////////////////////////////// + +/*class HistoryTypeDialog : public KDialogBase +{ + Q_OBJECT +public: + HistoryTypeDialog(const HistoryType& histType, + unsigned int histSize, + QWidget *parent); + +public slots: + void slotDefault(); + void slotSetUnlimited(); + void slotHistEnable(bool); + + unsigned int nbLines() const; + bool isOn() const; + +protected: + QCheckBox* m_btnEnable; + QSpinBox* m_size; + QPushButton* m_setUnlimited; +};*/ + +////////////////////////////////////////////////////////////////////// + +class konsoleBrowserExtension : public KParts::BrowserExtension +{ + Q_OBJECT + friend class konsolePart; + public: + konsoleBrowserExtension(konsolePart *parent); + virtual ~konsoleBrowserExtension(); + + void emitOpenURLRequest(const KURL &url); +}; + +#endif diff --git a/extra/kde310/kpanelmenu.h b/extra/kde310/kpanelmenu.h new file mode 100644 index 0000000..7901df3 --- /dev/null +++ b/extra/kde310/kpanelmenu.h @@ -0,0 +1,181 @@ +/***************************************************************** + +Copyright (c) 1996-2000 the kicker authors. See file AUTHORS. + (c) 2001 Michael Goffioul + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN +AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +******************************************************************/ + +#ifndef __KPANELMENU_H__ +#define __KPANELMENU_H__ + +#include +#include +#include + +class KPanelMenuPrivate; + +/** + * Base class to build dynamically loaded menu entries for the K-menu, or the panel. + * + * This class allows to build menu entries that will be dynamically added either to + * the K-menu, or to the panel as a normal button. These dynamic menus are located + * in shared libraries that will be loaded at runtime by Kicker (the KDE panel). + * + * To build such a menu, you have to inherit this class and implement the pure virtual + * functions #initialize() and @ref slotExec(). You also have to provide a factory + * object in your library, see @ref KLibFactory. This factory is only used to construct + * the menu object. + * + * Finally, you also have to provide a desktop file describing your dynamic menu. The + * relevant entries are: Name, Comment, Icon and X-KDE-Library (which contains the + * library name without any extension). This desktop file has to be installed in + * $KDEDIR/share/apps/kicker/menuext/. + * + * @short Base class to build dynamically loaded menu entries for the K-menu, or the panel. + * @author The kicker maintainer, Michael Goffioul + */ +class KPanelMenu : public KPopupMenu +{ + Q_OBJECT + +public: + /** + * Construct a KPanelMenu object. This is the normal constructor to use when + * building extrernal menu entries. + */ + KPanelMenu(QWidget *parent=0, const char *name=0); + /** + * Constructor used internally by Kicker. You don't really want to use it. + * @param startDir a directory to associate with this menu + * @see path(), setPath() + */ + KPanelMenu(const QString &startDir, QWidget *parent=0, const char *name=0); + /** + * Destructor. + */ + virtual ~KPanelMenu(); + + /** + * Get the directory path associated with this menu, or QString::null if + * there's no such associated path. + * @return the associated directory path + * @see setPath() + */ + const QString& path() const; + /** + * Set a directory path to be associated with this menu. + * @param p the directory path + * @see path() + */ + void setPath(const QString &p); + /** + * Tell if the menu has been initialized, that is it already contains items. + * This is useful when you need to know if you have to clear the menu, or to + * fill it. + * @return the initial state + * @see setInitialized(), initialize() + */ + bool initialized() const; + /** + * Set the initial state. Set it to true when you menu is filled with the items + * you want. + * @param on the initial state + * @see initialized(), initialize() + */ + void setInitialized(bool on); + + /** + * Disable the automatic clearing of the menu. Kicker uses a cache system for + * its menus. After a specific configurable delay, the menu will be cleared. + * Use this function if you want to disable kicker's cache system, and avoid + * the clearing of your menu. + */ + void disableAutoClear(); + +public slots: + /** + * Reinitialize the menu: the menu is first cleared, the initial state is set + * to false, and finally #initialize() is called. Use this if you want to + * refill your menu immediately. + */ + void reinitialize(); + /** + * Deinitialize the menu: the menu is cleared and the initialized state is set to + * false. #initialize() is NOT called. It will be called before the menu is + * next shown, however. Use this slot if you want a delayed reinitialization. + * @since 3.1 + */ + void deinitialize(); + +protected slots: + /** + * This slot is called just before the menu is shown. This allows your menu + * to update itself if needed. However you should instead re-implement + * #initialize to provide this feature. This function is responsible for + * the cache system handling, so if you re-implement it, you should call + * the base function also. Calls #initialize(). + * @see disableAutoClear() + */ + virtual void slotAboutToShow(); + /** + * This is slot is called when an item from the menu has been selected. Your + * applet is then supposed to perform some action. You must re-implement this + * function. + * @param id the ID associated with the selected item + */ + virtual void slotExec(int id) = 0; + /** + * This slots is called to initialize the menu. It is called automatically by + * @ref slotAboutToShow(). By re-implementing this functions, you can reconstruct + * the menu before it is being shown. At the end of this function, you should + * call @ref setInitialize() with true to tell the system that the menu is OK. + * You applet must re-implement this function. + * @see slotAboutToShow(), initialized(), setInitialized() + */ + virtual void initialize() = 0; + /** + * Clears the menu, and update the initial state accordingly. + * @see initialized() + */ + void slotClear(); + +protected: + /** + * Re-implemented for internal reasons. + */ + virtual void hideEvent(QHideEvent *ev); + /** + * For internal use only. Used by constructors. + */ + void init(const QString& path = QString::null); + +protected: + virtual void virtual_hook( int id, void* data ); +private: + void internalInitialize(); + KPanelMenuPrivate *d; +}; + +//#define K_EXPORT_KICKER_MENUEXT( libname, classname ) \ +// K_EXPORT_COMPONENT_FACTORY( \ +// kickermenu_##libname, \ +// KGenericFactory("libkickermenu_" #libname) ) + +#endif diff --git a/extra/kde310/krecentdirs.h b/extra/kde310/krecentdirs.h new file mode 100644 index 0000000..71f771b --- /dev/null +++ b/extra/kde310/krecentdirs.h @@ -0,0 +1,68 @@ +/* -*- c++ -*- + * Copyright (C)2000 Waldo Bastian + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * + */ +#ifndef __KRECENTDIRS_H +#define __KRECENTDIRS_H + +#include + +/** + * The goal of this class is to make sure that, when the user needs to + * specify a file via the file selection dialog, this dialog will start + * in the directory most likely to contain the desired files. + * + * This works as follows: Each time the file selection dialog is + * shown, the programmer can specify a "file-class". The file-dialog will + * then start with the directory associated with this file-class. When + * the dialog closes, the directory currently shown in the file-dialog + * will be associated with the file-class. + * + * A file-class can either start with ':' or with '::'. If it starts with + * a single ':' the file-class is specific to the current application. + * If the file-class starts with '::' it is global to all applications. + */ +class KRecentDirs +{ +public: + /** + * Returns a list of directories associated with this file-class. + * The most recently used directory is at the front of the list. + */ + static QStringList list(const QString &fileClass); + + /** + * Returns the most recently used directory accociated with this file-class. + */ + static QString dir(const QString &fileClass); + + /** + * Associates @p directory with @p fileClass + */ + static void add(const QString &fileClass, const QString &directory); +}; + +#endif diff --git a/extra/kde310/ksycocafactory.h b/extra/kde310/ksycocafactory.h new file mode 100644 index 0000000..15554eb --- /dev/null +++ b/extra/kde310/ksycocafactory.h @@ -0,0 +1,137 @@ +/* This file is part of the KDE libraries + * Copyright (C) 1999 Waldo Bastian + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License version 2 as published by the Free Software Foundation; + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public License + * along with this library; see the file COPYING.LIB. If not, write to + * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA. + **/ + +#ifndef __ksycocafactory_h__ +#define __ksycocafactory_h__ "$Id: ksycocafactory.h,v 1.13 2002/09/21 15:07:27 tjansen Exp $" + +#include "ksycocatype.h" +#include "ksycocaentry.h" + +#include +#include +class KSycoca; +class QStringList; +class QString; +class KSycocaDict; +class KSycocaResourceList; + +typedef QDict KSycocaEntryDict; + +/** + * @internal + * Base class for sycoca factories + */ +class KSycocaFactory +{ +public: + virtual KSycocaFactoryId factoryId() const = 0; + +protected: // virtual class + /** + * Create a factory which can be used to lookup from/create a database + * (depending on KSycoca::isBuilding()) + */ + KSycocaFactory( KSycocaFactoryId factory_id ); + +public: + virtual ~KSycocaFactory(); + + /** + * @return the position of the factory in the sycoca file + */ + int offset() { return mOffset; } + + /** + * @return the dict, for special use by KBuildSycoca + */ + KSycocaEntryDict * entryDict() { return m_entryDict; } + + /** + * Construct an entry from a config file. + * To be implemented in the real factories. + */ + virtual KSycocaEntry *createEntry(const QString &file, const char *resource) = 0; + + /** + * Add an entry + */ + virtual void addEntry(KSycocaEntry *newEntry, const char *resource); + + /** + * Read an entry from the database + */ + virtual KSycocaEntry *createEntry(int offset)=0; + + /** + * Get a list of all entries from the database. + */ + KSycocaEntry::List allEntries(); + + /** + * Saves all entries it maintains as well as index files + * for these entries to the stream 'str'. + * + * Also sets mOffset to the starting position. + * + * The stream is positioned at the end of the last index. + * + * Don't forget to call the parent first when you override + * this function. + */ + virtual void save(QDataStream &str); + + /** + * Writes out a header to the stream 'str'. + * The baseclass positions the stream correctly. + * + * Don't forget to call the parent first when you override + * this function. + */ + virtual void saveHeader(QDataStream &str); + + /** + * @return the resources for which this factory is responsible. + */ + virtual const KSycocaResourceList * resourceList() const { return m_resourceList; } + +private: + int mOffset; + +protected: + int m_sycocaDictOffset; + int m_beginEntryOffset; + int m_endEntryOffset; + QDataStream *m_str; + + KSycocaResourceList *m_resourceList; + KSycocaEntryDict *m_entryDict; + KSycocaDict *m_sycocaDict; +protected: + virtual void virtual_hook( int id, void* data ); +}; + +/** This, instead of a typedef, allows to declare "class ..." in header files + * @internal + */ +class KSycocaFactoryList : public QPtrList +{ +public: + KSycocaFactoryList() { } +}; + +#endif diff --git a/extra/kde310/ktoolbarbutton.h b/extra/kde310/ktoolbarbutton.h new file mode 100644 index 0000000..121ecc6 --- /dev/null +++ b/extra/kde310/ktoolbarbutton.h @@ -0,0 +1,317 @@ +/* This file is part of the KDE libraries + Copyright (C) 1997, 1998 Stephan Kulow (coolo@kde.org) + (C) 1997, 1998 Sven Radej (radej@kde.org) + (C) 1997, 1998 Mark Donohoe (donohoe@kde.org) + (C) 1997, 1998 Matthias Ettrich (ettrich@kde.org) + (C) 2000 Kurt Granroth (granroth@kde.org) + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License version 2 as published by the Free Software Foundation. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +// $Id: ktoolbarbutton.h,v 1.26 2002/09/28 15:16:22 tjansen Exp $ +#ifndef _KTOOLBARBUTTON_H +#define _KTOOLBARBUTTON_H + +#include +#include +#include +#include +#include + +class KToolBar; +class KToolBarButtonPrivate; +class KInstance; +class QEvent; +class QPopupMenu; +class QPainter; + +/** + * A toolbar button. This is used internally by @ref KToolBar, use the + * KToolBar methods instead. + * @internal + */ +class KToolBarButton : public QToolButton +{ + Q_OBJECT + +public: + /** + * Construct a button with an icon loaded by the button itself. + * This will trust the button to load the correct icon with the + * correct size. + * + * @param icon Name of icon to load (may be absolute or relative) + * @param id Id of this button + * @param parent This button's parent + * @param name This button's internal name + * @param txt This button's text (in a tooltip or otherwise) + */ + KToolBarButton(const QString& icon, int id, QWidget *parent, + const char *name=0L, const QString &txt=QString::null, + KInstance *_instance = KGlobal::instance()); + + /** + * Construct a button with an existing pixmap. It is not + * recommended that you use this as the internal icon loading code + * will almost always get it "right". + * + * @param icon Name of icon to load (may be absolute or relative) + * @param id Id of this button + * @param parent This button's parent + * @param name This button's internal name + * @param txt This button's text (in a tooltip or otherwise) + */ + KToolBarButton(const QPixmap& pixmap, int id, QWidget *parent, + const char *name=0L, const QString &txt=QString::null); + + /** + * Construct a separator button + * + * @param parent This button's parent + * @param name This button's internal name + */ + KToolBarButton(QWidget *parent=0L, const char *name=0L); + + /** + * Standard destructor + */ + ~KToolBarButton(); + +#ifndef KDE_NO_COMPAT + /** + * @deprecated + * Set the pixmap directly for this button. This pixmap should be + * the active one... the dimmed and disabled pixmaps are constructed + * based on this one. However, don't use this function unless you + * are positive that you don't want to use @ref setIcon. + * + * @param pixmap The active pixmap + */ + // this one is from QButton, so #ifdef-ing it out doesn't break BC + virtual void setPixmap(const QPixmap &pixmap); + + /** + * @deprecated + * Force the button to use this pixmap as the default one rather + * then generating it using effects. + * + * @param pixmap The pixmap to use as the default (normal) one + */ + void setDefaultPixmap(const QPixmap& pixmap); + + /** + * @deprecated + * Force the button to use this pixmap when disabled one rather then + * generating it using effects. + * + * @param pixmap The pixmap to use when disabled + */ + void setDisabledPixmap(const QPixmap& pixmap); +#endif + + /** + * Set the text for this button. The text will be either used as a + * tooltip (IconOnly) or will be along side the icon + * + * @param text The button (or tooltip) text + */ + virtual void setText(const QString &text); + + /** + * Set the icon for this button. The icon will be loaded internally + * with the correct size. This function is preferred over @ref setIconSet + * + * @param icon The name of the icon + */ + virtual void setIcon(const QString &icon); + + /// @since 3.1 + virtual void setIcon( const QPixmap &pixmap ) + { QToolButton::setIcon( pixmap ); } + + /** + * Set the pixmaps for this toolbar button from a QIconSet. + * If you call this you don't need to call any of the other methods + * that set icons or pixmaps. + * @param iconset The iconset to use + */ + virtual void setIconSet( const QIconSet &iconset ); + +#ifndef KDE_NO_COMPAT + /** + * @deprecated + * Set the active icon for this button. The pixmap itself is loaded + * internally based on the icon size... .. the disabled and default + * pixmaps, however will only be constructed if @ref #generate is + * true. This function is preferred over @ref setPixmap + * + * @param icon The name of the active icon + * @param generate If true, then the other icons are automagically + * generated from this one + */ + void setIcon(const QString &icon, bool /*generate*/ ) { setIcon( icon ); } + + /** + * @deprecated + * Force the button to use this icon as the default one rather + * then generating it using effects. + * + * @param icon The icon to use as the default (normal) one + */ + void setDefaultIcon(const QString& icon); + + /** + * @deprecated + * Force the button to use this icon when disabled one rather then + * generating it using effects. + * + * @param icon The icon to use when disabled + */ + void setDisabledIcon(const QString& icon); +#endif + + /** + * Turn this button on or off + * + * @param flag true or false + */ + void on(bool flag = true); + + /** + * Toggle this button + */ + void toggle(); + + /** + * Turn this button into a toggle button or disable the toggle + * aspects of it. This does not toggle the button itself. + * Use @ref toggle() for that. + * + * @param toggle true or false + */ + void setToggle(bool toggle = true); + + /** + * Return a pointer to this button's popup menu (if it exists) + */ + QPopupMenu *popup(); + + /** + * Give this button a popup menu. There will not be a delay when + * you press the button. Use @ref setDelayedPopup if you want that + * behavior. You can also make the popup-menu + * "sticky", i.e. visible until a selection is made or the mouse is + * clikced elsewhere, by simply setting the second argument to true. + * This "sticky" button feature allows you to make a selection without + * having to press and hold down the mouse while making a selection. + * + * @param p The new popup menu + * @param toggle if true, makes the button "sticky" (toggled) + */ + void setPopup (QPopupMenu *p, bool toggle = false); + + /** + * Gives this button a delayed popup menu. + * + * This function allows you to add a delayed popup menu to the button. + * The popup menu is then only displayed when the button is pressed and + * held down for about half a second. You can also make the popup-menu + * "sticky", i.e. visible until a selection is made or the mouse is + * clikced elsewhere, by simply setting the second argument to true. + * This "sticky" button feature allows you to make a selection without + * having to press and hold down the mouse while making a selection. + * + * @param p the new popup menu + * @param toggle if true, makes the button "sticky" (toggled) + */ + void setDelayedPopup(QPopupMenu *p, bool toggle = false); + + /** + * Turn this button into a radio button + * + * @param f true or false + */ + void setRadio(bool f = true); + + /** + * Toolbar buttons naturally will assume the global styles + * concerning icons, icons sizes, etc. You can use this function to + * explicitely turn this off, if you like. + * + * @param no_style Will disable styles if true + */ + void setNoStyle(bool no_style = true); + +signals: + void clicked(int); + void doubleClicked(int); + void pressed(int); + void released(int); + void toggled(int); + void highlighted(int, bool); + +public slots: + /** + * This slot should be called whenever the toolbar mode has + * potentially changed. This includes such events as text changing, + * orientation changing, etc. + */ + void modeChange(); + virtual void setTextLabel(const QString&, bool tipToo); + +protected: + void paletteChange(const QPalette &); + void leaveEvent(QEvent *e); + void enterEvent(QEvent *e); + void drawButton(QPainter *p); + bool eventFilter (QObject *o, QEvent *e); + void showMenu(); + QSize sizeHint() const; + QSize minimumSizeHint() const; + QSize minimumSize() const; + + /// @since 3.1 + bool isRaised() const; + /// @since 3.1 + bool isActive() const; + /// @since 3.1 + int iconTextMode() const; + +protected slots: + void slotClicked(); + void slotPressed(); + void slotReleased(); + void slotToggled(); + void slotDelayTimeout(); + +protected: + virtual void virtual_hook( int id, void* data ); +private: + KToolBarButtonPrivate *d; +}; + +/** +* List of @ref KToolBarButton objects. +* @internal +* @version $Id: ktoolbarbutton.h,v 1.26 2002/09/28 15:16:22 tjansen Exp $ +*/ +class KToolBarButtonList : public QIntDict +{ +public: + KToolBarButtonList(); + ~KToolBarButtonList() {} +}; + +#endif diff --git a/extra/kde310/kurifilter.h b/extra/kde310/kurifilter.h new file mode 100644 index 0000000..1d2ae39 --- /dev/null +++ b/extra/kde310/kurifilter.h @@ -0,0 +1,602 @@ +/* + * This file is part of the KDE libraries + * Copyright (C) 2000 Yves Arrouye + * + * This library 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. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public License + * along with this library; see the file COPYING.LIB. If not, write to + * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA. + **/ + +#ifndef __kurifilter_h__ +#define __kurifilter_h__ "$Id: kurifilter.h,v 1.27 2002/10/30 09:37:39 neil Exp $" + +#include +#include + +#include + +class KURIFilterPrivate; +class KURIFilterDataPrivate; + +class QStringList; +class KCModule; + +/** +* This is a basic message object used for exchanging filtering +* information between the filter plugins and the application +* whenever the application requires more information about the +* URI than just a filtered version of it. Any application can +* create an instance of this class and send it to @ref KURIFilter +* to have the filter plugins fill the necessary information. +* +* @sect Example +*
+*   QString text = "kde.org";
+*   KURIFilterData d = text;
+*   bool filtered = KURIFilter::self()->filter( d );
+*   if( filtered )
+*     print ( "URI: %s\n"Filtered URI: %s\n URI Type: %i\n"Was Filtered: %i"
+*             text.latin1(), d.uri().url().latin1(), d.uriType(), filtered );
+* 
+* +* The above code should yield the following output: +*
+*   URI: kde.org
+*   Filtered URI: http://kde.org
+*   URI Type: 0            <== means NET_PROTOCOL
+*   Was Filtered: 1        <== means the URL was successfully filtered
+* 
+* +* @short A message object for exchanging filtering URI info. +*/ + +class KURIFilterData +{ +friend class KURIFilterPlugin; + +public: + /** + * Describes the type of URI to be filtered. + * + * This enumerator prvoides the return value for + * @ref uriType. A brief description for each value: + * + * @li NET_PROTOCOL - Any network protocol: http, ftp, nttp, pop3, etc... + * @li LOCAL_FILE - A local file whose executable flag is not set + * @li LOCAL_DIR - A local directory + * @li EXECUTABLE - A local file whose executable flag is set + * @li HELP - A man or info page + * @li SHELL - A shell executable (ex: echo "Test..." >> ~/testfile) + * @li BLOCKED - A URI that should be blocked/filtered (ex: ad filtering) + * @li ERROR - An incorrect URI (ex: "~johndoe" when user johndoe + * does not exist in that system ) + * @li UNKNOWN - A URI that is not identified. Default value when + * a KURIFilterData is first created. + */ + enum URITypes { NET_PROTOCOL=0, LOCAL_FILE, LOCAL_DIR, EXECUTABLE, HELP, SHELL, BLOCKED, ERROR, UNKNOWN }; + + /** + * Default constructor. + * + * Creates a URIFilterData object. + */ + KURIFilterData() { init(); } + + /** + * Creates a URIFilterData object from the given URL. + * + * @param url is the URL to be filtered. + */ + KURIFilterData( const KURL& url ) { init( url); } + + /** + * Creates a URIFilterData object from the given string. + * + * @param url is the string to be filtered. + */ + KURIFilterData( const QString& url ) { init( url ); } + + /** + * Copy constructor. + * + * Creates a URIFilterData object from another + * URI filter data object. + * + * @param data the uri filter data to be copied. + */ + KURIFilterData( const KURIFilterData& /*data*/); + + /** + * Destructor. + */ + ~KURIFilterData(); + + /** + * This method has been deprecated and will always return + * TRUE. You should instead use the result from the + * @ref KURIFilter::filterURI() calls. + * + * @deprecated + */ + bool hasBeenFiltered() const { return m_bFiltered; } + + /** + * Returns the filtered or the original URL. + * + * This function returns the filtered url if one + * of the plugins sucessfully filtered the original + * URL. Otherwise, it returns the original URL. + * See @ref #hasBeenFiltered() and + * + * @return the filtered or original url. + */ + KURL uri() const { return m_pURI; } + + /** + * Returns an error message. + * + * This functions returns the error message set + * by the plugin whenever the uri type is set to + * KURIFilterData::ERROR. Otherwise, it returns + * a QString::null. + * + * @return the error message or a NULL when there is none. + */ + QString errorMsg() const { return m_strErrMsg; } + + /** + * Returns the URI type. + * + * This method always returns KURIFilterData::UNKNOWN + * if the given URL was not filtered. + */ + URITypes uriType() const { return m_iType; } + + /** + * Sets the URL to be filtered. + * + * Use this function to set the string to be + * filtered when you construct an empty filter + * object. + * + * @param url the string to be filtered. + */ + void setData( const QString& url ) { init( url ); } + + /** + * Same as above except the argument is a URL. + * + * Use this function to set the string to be + * filtered when you construct an empty filter + * object. + * + * @param url the URL to be filtered. + */ + void setData( const KURL& url ) { init( url ); } + + /** + * Sets the absolute path to be used whenever the supplied + * data is a relative local URL. + * + * NOTE: This function works only for a local resource and + * expects the absolute path to the relative URL set in this + * meta object. If you are extracting the absolute path from + * a KURL object, make sure you always set the argument below + * using KURL::path() instead of KURL::url() so that "file:/" + * would not be appended! Otherwise, the filter might not be + * able to make correct determination whether the relative URL + * locally exists! + * + * @param abs_path the abolute path to the local resource. + * @return true if absolute path is successfully set. Otherwise, false. + */ + bool setAbsolutePath( const QString& /* abs_path */ ); + + /** + * Returns the absolute path if one has already been set. + */ + QString absolutePath() const; + + /** + * Returns true if the supplied data has an absolute path. + */ + bool hasAbsolutePath() const; + + /** + * Returns the command line options and arguments for a + * local resource when present. + * + * @return options and arguments when present, otherwise QString::null + */ + QString argsAndOptions() const; + + /** + * Returns true if the current data is a local resource with + * command line options and arguments. + */ + bool hasArgsAndOptions() const; + + /** + * Returns the name of the icon that matches + * the current filtered URL. + * + * NOTE that this function will return a NULL + * string by default and when no associated icon + * is found. + * + * @return the name of the icon associated with the resource + */ + QString iconName(); + + /** + * Overloaded assigenment operator. + * + * This function allows you to easily assign a KURL + * to a KURIFilterData object. + * + * @return an instance of a KURIFilterData object. + */ + KURIFilterData& operator=( const KURL& url ) { init( url ); return *this; } + + /** + * Overloaded assigenment operator. + * + * This function allows you to easily assign a QString + * to a KURIFilterData object. + * + * @return an instance of a KURIFilterData object. + */ + KURIFilterData& operator=( const QString& url ) { init( url ); return *this; } + +protected: + + /** + * Initializes the KURIFilterData on construction. + */ + void init( const KURL& url = QString::null ); + +private: + bool m_bFiltered; + bool m_bChanged; + + QString m_strErrMsg; + QString m_strIconName; + + KURL m_pURI; + URITypes m_iType; + KURIFilterDataPrivate *d; +}; + + +/** + * Base class for URI filter plugins. + * + * This class applies a single filter to a URI. All + * plugins designed to provide URI filtering functionalities + * should inherit from this abstract class and provide a + * specific filtering implementation. + * + * All inheriting classes need to implement the pure + * virtual function @ref filterURI. Otherwise, they + * would also become abstract. + * + * @short Abstract class for URI filter plugins. + */ +class KURIFilterPlugin : public QObject +{ + Q_OBJECT + +public: + + /** + * Constructs a filter plugin with a given name and + * priority. + * + * @param parent the parent object. + * @param name the name of the plugin. + * @param pri the priority of the plugin. + */ + KURIFilterPlugin( QObject *parent = 0, const char *name = 0, double pri = 1.0 ); + + /** + * Returns the filter's name. + * + * @return A string naming the filter. + */ + virtual QString name() const { return m_strName; } + + /** + * Returns the filter's priority. + * + * Each filter has an assigned priority, a float from 0 to 1. Filters + * with the lowest priority are first given a chance to filter a URI. + * + * @return The priority of the filter. + */ + virtual double priority() const { return m_dblPriority; } + + /** + * Filters a URI. + * + * @param data the URI data to be filtered. + * @return A boolean indicating whether the URI has been changed. + */ + virtual bool filterURI( KURIFilterData& data ) const = 0; + + /** + * Creates a configuration module for the filter. + * + * It is the responsability of the caller to delete the module + * once it is not needed anymore. + * + * @return A configuration module, @p null if the filter isn't configurable. + */ + virtual KCModule *configModule( QWidget*, const char* ) const { return 0; } + + /** + * Returns the name of the configuration module for the filter. + * + * @return the name of a configuration module or @p null if none. + */ + virtual QString configName() const { return name(); } + +protected: + + /** + * Sets the the URL in @p data to @p uri. + */ + void setFilteredURI ( KURIFilterData& data, const KURL& uri ) const; + + /** + * Sets the error message in @p data to @p errormsg. + */ + void setErrorMsg ( KURIFilterData& data, const QString& errmsg ) const { + data.m_strErrMsg = errmsg; + } + + /** + * Sets the URI type in @p data to @p type. + */ + void setURIType ( KURIFilterData& data, KURIFilterData::URITypes type) const { + data.m_iType = type; + data.m_bChanged = true; + } + + /** + * Sets the arguments and options string in @p data + * to @p args if any were found during filterting. + */ + void setArguments( KURIFilterData& data, const QString& args ) const; + + QString m_strName; + double m_dblPriority; + +protected: + virtual void virtual_hook( int id, void* data ); +private: + class KURIFilterPluginPrivate *d; +}; + + +class KURIFilterPluginList : public QPtrList +{ +public: + virtual int compareItems(Item a, Item b) + { + double diff = ((KURIFilterPlugin *) a)->priority() - ((KURIFilterPlugin *) b)->priority(); + return diff < 0 ? -1 : (diff > 0 ? 1 : 0); + } + +private: + KURIFilterPrivate *d; + +}; + +/** + * Manages the filtering of a URI. + * + * The intention of this plugin class is to allow people to extend + * the functionality of KURL without modifying it directly. This + * way KURL will remain a generic parser capable of parsing any + * generic URL that adheres to specifications. + * + * The KURIFilter class applies a number of filters to a URI, + * and returns the filtered version whenever possible. The filters + * are implemented using plugins to provide easy extensibility + * of the filtering mechanism. That is, new filters can be added in + * the future by simply inheriting from @ref KURIFilterPlugin and + * implementing the @ref KURIFilterPlugin::filterURI method. + * + * Use of this plugin-manager class is straight forward. Since + * it is a singleton object, all you have to do is obtain an instance + * by doing @p KURIFilter::self() and use any of the public member + * functions to preform the filtering. + * + * @sect Example + * + * To simply filter a given string: + *
+ * bool filtered = KURIFilter::self()->filterURI( "kde.org" );
+ * 
+ * + * You can alternatively use a KURL: + *
+ * KURL url = "kde.org";
+ * bool filtered = KURIFilter::self()->filterURI( url );
+ * 
+ * + * If you have a constant string or a constant URL, + * simply invoke the corresponding function to obtain + * the filtered string or URL instead of a boolean flag: + *
+ * QString u = KURIFilter::self()->filteredURI( "kde.org" );
+ * 
+ * + * You can also specify only specific filter(s) to be applied + * by supplying the name(s) of the filter(s). By defualt all + * filters that are found are loaded when the KURIFilter object + * is created will be used. These names are taken from the + * enteries in the \".desktop\" files. Here are a couple of + * examples: + *
+ * QString text = "kde.org";
+ * bool filtered = KURIFilter::self()->filterURI( text, "KShortURIFilter" );
+ *
+ * QStringList list;
+ * list << "KShortURIFilter" << "MyFilter";
+ * bool filtered = KURIFilter::self()->filterURI( text, list );
+ * 
+ * + * KURIFilter also allows richer data exchange through a simple + * meta-object called @p KURIFilterData. Using this meta-object + * you can find out more information about the URL you want to + * filter. See @ref KURIFilterData for examples and details. + * + * @short Filters a given URL into its proper format whenever possible. + */ + +class KURIFilter +{ +public: + /** + * Destructor + */ + ~KURIFilter (); + + /** + * Return a static instance of KURIFilter. + */ + static KURIFilter* self(); + + /** + * Filters the URI given by the object URIFilterData. + * + * This filters the given data based on the specified + * filter list. If the list is empty all avaliable + * filter plugins would be used. If not, only those + * given in the list are used. + * + * @param data object that contains the URI to be filtered. + * @param filters specify the list filters to be used + * + * @return a boolean indicating whether the URI has been changed + */ + bool filterURI( KURIFilterData& data, const QStringList& filters = QStringList() ); + + /** + * Filters the URI given by the URL. + * + * This filters the given URL based on the specified + * filter list. If the list is empty all avaliable + * filter plugins would be used. If not, only those + * given in the list are used. + * + * @param uri the URI to filter. + * @param filters specify the list of filters to be used + * + * @return a boolean indicating whether the URI has been changed + */ + bool filterURI( KURL &uri, const QStringList& filters = QStringList() ); + + /** + * Filters a string representing a URI. + * + * This filters the given string based on the specified + * filter list. If the list is empty all avaliable + * filter plugins would be used. If not, only those + * given in the list are used. + * + * @param uri The URI to filter. + * @param filters specify the list filters to be used + * + * @return a boolean indicating whether the URI has been changed + */ + bool filterURI( QString &uri, const QStringList& filters = QStringList() ); + + /** + * Returns the filtered URI. + * + * This filters the given URL based on the specified + * filter list. If the list is empty all avaliable + * filter plugins would be used. If not, only those + * given in the list are used. + * + * @param uri The URI to filter. + * @param filters specify the list filters to be used + * + * @return the filtered URI or null if it cannot be filtered + */ + KURL filteredURI( const KURL &uri, const QStringList& filters = QStringList() ); + + /** + * Return a filtered string representation of a URI. + * + * This filters the given URL based on the specified + * filter list. If the list is empty all avaliable + * filter plugins would be used. If not, only those + * given in the list are used. + * + * @param uri the URI to filter. + * @param filters specify the list filters to be used + * + * @return the filtered URI or null if it cannot be filtered + */ + QString filteredURI( const QString &uri, const QStringList& filters = QStringList() ); + + /** + * Return an iterator to iterate over all loaded + * plugins. + * + * @return a plugin iterator. + */ + QPtrListIterator pluginsIterator() const; + + /** + * Return a list of the names of all loaded plugins + * + * @since 3.1 + * + * @return a QStringList of plugin names + */ + QStringList pluginNames() const; + +protected: + + /** + * A protected constructor. + * + * This constructor creates a KURIFilter and + * initializes all plugins it can find by invoking + * @ref loadPlugins. + */ + KURIFilter(); + + /** + * Loads all allowed plugins. + * + * This function loads all filters that have not + * been dis + */ + void loadPlugins(); + +private: + + static KURIFilter *m_self; + KURIFilterPluginList m_lstPlugins; + KURIFilterPrivate *d; + +}; + +#endif + diff --git a/extra/kde311/kaccelaction.h b/extra/kde311/kaccelaction.h new file mode 100644 index 0000000..7a368a9 --- /dev/null +++ b/extra/kde311/kaccelaction.h @@ -0,0 +1,564 @@ +/* This file is part of the KDE libraries + Copyright (C) 2001,2002 Ellis Whitehead + + This library 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. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef _KACCELACTION_H +#define _KACCELACTION_H + +#include +#include +#include +#include + +#include + +class KAccelBase; + +class QObject; +class KConfig; +class KConfigBase; + +/** + * @internal + * A KAccelAction prepresents an action that can be executed using + * an accelerator key. Each KAccelAction has a name, a label, a + * "What's this" string and a @ref KShortcut. The user can configure and + * enable/disable them using @ref KKeyDialog. + * + *
+ *	1) KAccelAction = "Run Command"
+ *		Default3 = "Alt+F2"
+ *		Default4 = "Meta+Enter;Alt+F2"
+ *		1) KShortcut = "Meta+Enter"
+ *			1) KKeySequence = "Meta+Enter"
+ *				1) KKey = "Meta+Enter"
+ *					1) Meta+Enter
+ *					2) Meta+Keypad_Enter
+ *		2) KShortcut = "Alt+F2"
+ *			1) KKeySequence = "Alt+F2"
+ *				1) Alt+F2
+ *	2) KAccelAction = "Something"
+ *		Default3 = ""
+ *		Default4 = ""
+ *		1) KShortcut = "Meta+X,Asterisk"
+ *			1) KKeySequence = "Meta+X,Asterisk"
+ *				1) KKey = "Meta+X"
+ *					1) Meta+X
+ *				2) KKey = "Asterisk"
+ *					1) Shift+8 (English layout)
+ *					2) Keypad_Asterisk
+ * 
+ * @short An accelerator action + * @see KAccel + * @see KGlobalAccel + * @see KKeyChooser + * @see KKeyDialog + */ +class KAccelAction +{ + public: + /** + * Creates an empty KAccelAction. + * @see clear() + */ + KAccelAction(); + + /** + * Copy constructor. + */ + KAccelAction( const KAccelAction& ); + + /** + * Creates a new KAccelAction. + * @param sName the name of the accelerator + * @param sLabel the label of the accelerator (i18n!) + * @param sWhatsThis the What's This text (18n!) + * @param cutDef3 the default shortcut for 3 modifier systems + * @param cutDef4 the default shortcut for 4 modifier systems + * @param pObjSlot the receiver of a signal when the key has been + * pressed + * @param psMethodSlot the slot to connect for key presses. Receives + * an int, as set by @ref setID(), as only argument + * @param bConfigurable if true the user can configure the shortcut + * @param bEnabled true if the accelerator should be enabled + */ + KAccelAction( const QString& sName, const QString& sLabel, const QString& sWhatsThis, + const KShortcut& cutDef3, const KShortcut& cutDef4, + const QObject* pObjSlot, const char* psMethodSlot, + bool bConfigurable, bool bEnabled ); + ~KAccelAction(); + + /** + * Clears the accelerator. + */ + void clear(); + + /** + * Re-initialized the KAccelAction. + * @param sName the name of the accelerator + * @param sLabel the label of the accelerator (i18n!) + * @param sWhatsThis the What's This text (18n!) + * @param cutDef3 the default shortcut for 3 modifier systems + * @param cutDef4 the default shortcut for 4 modifier systems + * @param pObjSlot the receiver of a signal when the key has been + * pressed + * @param psMethodSlot the slot to connect for key presses. Receives + * an int, as set by @ref setID(), as only argument + * @param bConfigurable if true the user can configure the shortcut + * @param bEnabled true if the accelerator should be enabled + * @return true if successful, false otherwise + */ + bool init( const QString& sName, const QString& sLabel, const QString& sWhatsThis, + const KShortcut& cutDef3, const KShortcut& cutDef4, + const QObject* pObjSlot, const char* psMethodSlot, + bool bConfigurable, bool bEnabled ); + + /** + * Copies this KAccelAction. + */ + KAccelAction& operator=( const KAccelAction& ); + + /** + * Returns the name of the accelerator action. + * @return the name of the accelerator action, can be null if not + * set + */ + const QString& name() const { return m_sName; } + + /** + * Returns the label of the accelerator action. + * @return the label of the accelerator action, can be null if + * not set + */ + const QString& label() const { return m_sLabel; } + + /** + * Returns the What's This text of the accelerator action. + * @return the What's This text of the accelerator action, can be + * null if not set + */ + const QString& whatsThis() const { return m_sWhatsThis; } + + /** + * The shortcut that is actually used (may be used configured). + * @return the shortcut of the KAccelAction, can be null if not set + * @see shortcutDefault() + */ + const KShortcut& shortcut() const { return m_cut; } + + /** + * The default shortcut for this system. + * @return the default shortcut on this system, can be null if not set + * @see shortcut() + * @see shortcutDefault3() + * @see shortcutDefault4() + */ + const KShortcut& shortcutDefault() const; + + /** + * The default shortcut for 3 modifier systems. + * @return the default shortcut for 3 modifier systems, can be null + * if not set + * @see shortcutDefault() + * @see shortcutDefault4() + * @see useFourModifierKeys() + */ + const KShortcut& shortcutDefault3() const { return m_cutDefault3; } + + /** + * The default shortcut for 4 modifier systems. + * @return the default shortcut for 4 modifier systems, can be null + * if not set + * @see shortcutDefault() + * @see shortcutDefault3() + * @see useFourModifierKeys() + */ + const KShortcut& shortcutDefault4() const { return m_cutDefault4; } + + /** + * Returns the receiver of signals. + * @return the receiver of signals (can be 0 if not set) + */ + const QObject* objSlotPtr() const { return m_pObjSlot; } + + /** + * Returns the slot for the signal. + * @return the slot for the signal + */ + const char* methodSlotPtr() const { return m_psMethodSlot; } + + /** + * Checks whether the user can configure the action. + * @return true if configurable, false otherwise + */ + bool isConfigurable() const { return m_bConfigurable; } + + /** + * Checks whether the action is enabled. + * @return true if enabled, false otherwise + */ + bool isEnabled() const { return m_bEnabled; } + + /** + * Sets the name of the accelerator action. + * @param name the new name + */ + void setName( const QString& name ); + + /** + * Sets the user-readable label of the accelerator action. + * @param label the new label (i18n!) + */ + void setLabel( const QString& label ); + + /** + * Sets the What's This text for the accelerator action. + * @param whatsThis the new What's This text (i18n!) + */ + void setWhatsThis( const QString& whatsThis ); + + /** + * Sets the new shortcut of the accelerator action. + * @param rgCuts the shortcut to set + * @return true if successful, false otherwise + */ + bool setShortcut( const KShortcut& rgCuts ); + + /** + * Sets the slot of the accelerator action. + * @param pObjSlot the receiver object of the signal + * @param psMethodSlot the slot for the signal + */ + void setSlot( const QObject* pObjSlot, const char* psMethodSlot ); + + /** + * Enables or disabled configuring the action. + * @param configurable true to enable configurability, false to disable + */ + void setConfigurable( bool configurable ); + + /** + * Enables or disabled the action. + * @param configurable true to enable the action, false to disable + */ + void setEnabled( bool enable ); + + /** + * Retrieves the id set using @ref setID. + * @return the id of the accelerator action + */ + int getID() const { return m_nIDAccel; } + + /** + * Allows you to set an id that will be used as the action + * signal's argument. + * + * @param n the new id + * @see @ref getID() + */ + void setID( int n ) { m_nIDAccel = n; } + + /** + * Checkes whether the action is connected (emits signals). + * @return true if connected, false otherwise + */ + bool isConnected() const; + + /** + * Sets a key sequence of the action's shortcut. + * @param i the position of the sequence + * @param keySeq the new new sequence + * @return true if successful, false otherwise + * @see KShortcut::setSeq() + */ + bool setKeySequence( uint i, const KKeySequence &keySeq ); + + /** + * Clears the action's shortcut. It will not contain any sequences after + * calling this method. + * @see KShortcut::clear() + */ + void clearShortcut(); + + /** + * Checks whether the action's shortcut contains the given key sequence. + * @param keySeq the key sequence to check + * @return true if the shortcut contains the given sequence + * @see KShortcut::contains() + */ + bool contains( const KKeySequence &keySeq ); + + /** + * Returns the string representation of the action's shortcut. + * @return the string representation of the action's shortcut. + * @see KShortcut::toString() + */ + QString toString() const; + + /** + * @internal + */ + QString toStringInternal() const; + + /** + * Returns true if four modifier keys will be used. + * @return true if four modifier keys will be used. + */ + static bool useFourModifierKeys(); + + /** + * Selects 3 or 4 modifier default shortcuts. + * @param use true to use 4 modifier shortcuts, false to use + * 3 modifier shortcuts + */ + static void useFourModifierKeys( bool use ); + + protected: + QString m_sName, + m_sLabel, + m_sWhatsThis; + KShortcut m_cut; + KShortcut m_cutDefault3, m_cutDefault4; + const QObject* m_pObjSlot; + const char* m_psMethodSlot; + bool m_bConfigurable, + m_bEnabled; + int m_nIDAccel; + uint m_nConnections; + + void incConnections(); + void decConnections(); + + private: + static int g_bUseFourModifierKeys; + class KAccelActionPrivate* d; + + friend class KAccelActions; + friend class KAccelBase; +}; + +//--------------------------------------------------------------------- +// KAccelActions +//--------------------------------------------------------------------- + +/** + * @internal + * This class represents a collection of @ref KAccelAction objects. + * + * @short A collection of accelerator actions + * @see KAccelAction + */ +class KAccelActions +{ + public: + /** + * Creates a new, empty KAccelActions object. + */ + KAccelActions(); + + /** + * Copy constructor (deep copy). + */ + KAccelActions( const KAccelActions& ); + virtual ~KAccelActions(); + + /** + * Removes all items from this collection. + */ + void clear(); + + /** + * Initializes this object with the given actions. + * It will make a deep copy of all actions. + * @param actions the actions to copy + * @return true if successful, false otherwise + */ + bool init( const KAccelActions &actions ); + + /** + * Loads the actions from the given configuration file. + * + * @param config the configuration file to load from + * @param sGroup the group in the configuration file + * @return true if successful, false otherwise + */ + bool init( KConfigBase& config, const QString& sGroup ); + + /** + * Updates the shortcuts of all actions in this object + * with the shortcuts from the given object. + * @param shortcuts the collection that contains the new + * shortcuts + */ + void updateShortcuts( KAccelActions &shortcuts ); + + /** + * Retrieves the index of the action with the given name. + * @param sAction the action to search + * @return the index of the action, or -1 if not found + */ + int actionIndex( const QString& sAction ) const; + + /** + * Returns the action with the given @p index. + * @param index the index of an action. You must not + * use an index that is too high. + * @return the KAccelAction with the given index + * @see count() + */ + KAccelAction* actionPtr( uint index ); + + /** + * Returns the action with the given @p index. + * @param index the index of an action. You must not + * use an index that is too high. + * @return the KAccelAction with the given index + * @see count() + */ + const KAccelAction* actionPtr( uint index ) const; + + /** + * Returns the action with the given name. + * @param aAction the name of the action to search + * @return the KAccelAction with the given name, or 0 + * if not found + */ + KAccelAction* actionPtr( const QString& sAction ); + + /** + * Returns the action with the given name. + * @param aAction the name of the action to search + * @return the KAccelAction with the given name, or 0 + * if not found + */ + const KAccelAction* actionPtr( const QString& sAction ) const; + + /** + * Returns the action with the given key sequence. + * @param cut the sequence to search for + * @return the KAccelAction with the given sequence, or 0 + * if not found + */ + KAccelAction* actionPtr( KKeySequence cut ); + + /** + * Returns the action with the given @p index. + * @param index the index of an action. You must not + * use an index that is too high. + * @return the KAccelAction with the given index + * @see actionPtr() + * @see count() + */ + KAccelAction& operator []( uint index ); + + /** + * Returns the action with the given @p index. + * @param index the index of an action. You must not + * use an index that is too high. + * @return the KAccelAction with the given index + * @see actionPtr() + * @see count() + */ + const KAccelAction& operator []( uint index ) const; + + /** + * Inserts an action into the collection. + * @param sName the name of the accelerator + * @param sLabel the label of the accelerator (i18n!) + * @param sWhatsThis the What's This text (18n!) + * @param cutDef3 the default shortcut for 3 modifier systems + * @param cutDef4 the default shortcut for 4 modifier systems + * @param pObjSlot the receiver of a signal when the key has been + * pressed + * @param psMethodSlot the slot to connect for key presses. Receives + * an int, as set by @ref setID(), as only argument + * @param bConfigurable if true the user can configure the shortcut + * @param bEnabled true if the accelerator should be enabled + * @return the new action + */ + KAccelAction* insert( const QString& sAction, const QString& sLabel, const QString& sWhatsThis, + const KShortcut& rgCutDefaults3, const KShortcut& rgCutDefaults4, + const QObject* pObjSlot = 0, const char* psMethodSlot = 0, + bool bConfigurable = true, bool bEnabled = true ); + + /** + * Inserts an action into the collection. + * @param sName the name of the accelerator + * @param sLabel the label of the accelerator (i18n!) + * @return the new action + */ + KAccelAction* insert( const QString& sName, const QString& sLabel ); + + /** + * Removes the given action. + * @param sAction the name of the action. + * @return true if successful, false otherwise + */ + bool remove( const QString& sAction ); + + /** + * Loads the actions from the given configuration file. + * + * @param sConfigGroup the group in the configuration file + * @param pConfig the configuration file to load from + * @return true if successful, false otherwise + */ + bool readActions( const QString& sConfigGroup = "Shortcuts", KConfigBase* pConfig = 0 ); + + /** + * Writes the actions to the given configuration file. + * + * @param sConfigGroup the group in the configuration file + * @param pConfig the configuration file to save to + * @param bWriteAll true to write all actions + * @param bGlobal true to write to the global configuration file + * @return true if successful, false otherwise + */ + bool writeActions( const QString& sConfigGroup = "Shortcuts", KConfigBase* pConfig = 0, + bool bWriteAll = false, bool bGlobal = false ) const; + + /** + * Emit a keycodeChanged signal. + */ + void emitKeycodeChanged(); + + /** + * Returns the number of actions in the collection. + * @return the number of actions + */ + uint count() const; + + protected: + KAccelBase* m_pKAccelBase; + KAccelAction** m_prgActions; + uint m_nSizeAllocated, m_nSize; + + void resize( uint ); + void insertPtr( KAccelAction* ); + + private: + class KAccelActionsPrivate* d; + + KAccelActions( KAccelBase* ); + void initPrivate( KAccelBase* ); + KAccelActions& operator =( KAccelActions& ); + + friend class KAccelBase; +}; + +#endif // _KACCELACTION_H diff --git a/extra/kde311/kaccelbase.h b/extra/kde311/kaccelbase.h new file mode 100644 index 0000000..219eaf4 --- /dev/null +++ b/extra/kde311/kaccelbase.h @@ -0,0 +1,229 @@ +/* This file is part of the KDE libraries + Copyright (C) 2001 Ellis Whitehead + + This library 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. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef _KACCELBASE_H +#define _KACCELBASE_H + +#include +#include +#include +#include +#include + +#include "kaccelaction.h" +#include "kkeyserver_x11.h" + +class QPopupMenu; +class QWidget; + +//---------------------------------------------------- + +/** + * @internal + * Handle keyboard accelerators. + * + * Allow an user to configure + * key bindings through application configuration files or through the + * @ref KKeyChooser GUI. + * + * A @ref KAccel contains a list of accelerator items. Each accelerator item + * consists of an action name and a keyboard code combined with modifiers + * (Shift, Ctrl and Alt.) + * + * For example, "Ctrl+P" could be a shortcut for printing a document. The key + * codes are listed in ckey.h. "Print" could be the action name for printing. + * The action name identifies the key binding in configuration files and the + * @ref KKeyChooser GUI. + * + * When pressed, an accelerator key calls the slot to which it has been + * connected. Accelerator items can be connected so that a key will activate + * two different slots. + * + * A KAccel object handles key events sent to its parent widget and to all + * children of this parent widget. + * + * Key binding reconfiguration during run time can be prevented by specifying + * that an accelerator item is not configurable when it is inserted. A special + * group of non-configurable key bindings are known as the + * standard accelerators. + * + * The standard accelerators appear repeatedly in applications for + * standard document actions such as printing and saving. Convenience methods are + * available to insert and connect these accelerators which are configurable on + * a desktop-wide basis. + * + * It is possible for a user to choose to have no key associated with + * an action. + * + * The translated first argument for @ref insertItem() is used only + * in the configuration dialog. + *
+ * KAccel *a = new KAccel( myWindow );
+ * // Insert an action "Scroll Up" which is associated with the "Up" key:
+ * a->insertItem( i18n("Scroll up"), "Scroll Up", "Up" );
+ * // Insert an action "Scroll Down" which is not associated with any key:
+ * a->insertItem( i18n("Scroll down"), "Scroll Down", 0);
+ * a->connectItem( "Scroll up", myWindow, SLOT( scrollUp() ) );
+ * // a->insertStdItem( KStdAccel::Print ); //not necessary, since it
+ *	// is done automatially with the
+ *	// connect below!
+ * a->connectItem(KStdAccel::Print, myWindow, SLOT( printDoc() ) );
+ *
+ * a->readSettings();
+ *
+ * + * If a shortcut has a menu entry as well, you could insert them like + * this. The example is again the @ref KStdAccel::Print from above. + * + *
+ * int id;
+ * id = popup->insertItem("&Print",this, SLOT(printDoc()));
+ * a->changeMenuAccel(popup, id, KStdAccel::Print );
+ * 
+ * + * If you want a somewhat "exotic" name for your standard print action, like + * id = popup->insertItem(i18n("Print &Document"),this, SLOT(printDoc())); + * it might be a good idea to insert the standard action before as + * a->insertStdItem( KStdAccel::Print, i18n("Print Document") ) + * as well, so that the user can easily find the corresponding function. + * + * This technique works for other actions as well. Your "scroll up" function + * in a menu could be done with + * + *
+ *    id = popup->insertItem(i18n"Scroll &up",this, SLOT(scrollUp()));
+ *    a->changeMenuAccel(popup, id, "Scroll Up" );
+ * 
+ * + * Please keep the order right: First insert all functions in the + * acceleratior, then call a -> @ref readSettings() and @em then build your + * menu structure. + * + * @short Configurable key binding support. + * @version $Id: kaccelbase.h,v 1.22 2002/10/06 18:19:39 ellis Exp $ + */ + +class KAccelBase +{ + public: + enum Init { QT_KEYS = 0x00, NATIVE_KEYS = 0x01 }; + enum Signal { KEYCODE_CHANGED }; + + KAccelBase( int fInitCode ); + virtual ~KAccelBase(); + + uint actionCount() const; + KAccelActions& actions(); + bool isEnabled() const; + + KAccelAction* actionPtr( const QString& sAction ); + const KAccelAction* actionPtr( const QString& sAction ) const; + KAccelAction* actionPtr( const KKey& key ); + KAccelAction* actionPtr( const KKeyServer::Key& key ); + + const QString& configGroup() const { return m_sConfigGroup; } + void setConfigGroup( const QString& group ); + void setConfigGlobal( bool global ); + virtual void setEnabled( bool bEnabled ) = 0; + bool getAutoUpdate() { return m_bAutoUpdate; } + // return value of AutoUpdate flag before this call. + bool setAutoUpdate( bool bAuto ); + +// Procedures for manipulating Actions. + //void clearActions(); + + KAccelAction* insert( const QString& sName, const QString& sDesc ); + KAccelAction* insert( + const QString& sAction, const QString& sDesc, const QString& sHelp, + const KShortcut& rgCutDefaults3, const KShortcut& rgCutDefaults4, + const QObject* pObjSlot, const char* psMethodSlot, + bool bConfigurable = true, bool bEnabled = true ); + bool remove( const QString& sAction ); + bool setActionSlot( const QString& sAction, const QObject* pObjSlot, const char* psMethodSlot ); + + bool updateConnections(); + + bool setShortcut( const QString& sAction, const KShortcut& cut ); + +// Modify individual Action sub-items + bool setActionEnabled( const QString& sAction, bool bEnable ); + + /** + * Read all key associations from @p config, or (if @p config + * is zero) from the application's configuration file + * @ref KGlobal::config(). + * + * The group in which the configuration is stored can be + * set with @ref setConfigGroup(). + */ + void readSettings( KConfigBase* pConfig = 0 ); + + /** + * Write the current configurable associations to @p config, + * or (if @p config is zero) to the application's + * configuration file. + */ + void writeSettings( KConfigBase* pConfig = 0 ) const; + + QPopupMenu* createPopupMenu( QWidget* pParent, const KKeySequence& ); + + // Protected methods + protected: + void slotRemoveAction( KAccelAction* ); + + void createKeyList( QValueVector& rgKeys ); + bool insertConnection( KAccelAction* ); + bool removeConnection( KAccelAction* ); + + virtual bool emitSignal( Signal ) = 0; + virtual bool connectKey( KAccelAction&, const KKeyServer::Key& ) = 0; + virtual bool connectKey( const KKeyServer::Key& ) = 0; + virtual bool disconnectKey( KAccelAction&, const KKeyServer::Key& ) = 0; + virtual bool disconnectKey( const KKeyServer::Key& ) = 0; + + protected: + struct ActionInfo + { + KAccelAction* pAction; + uint iSeq, iVariation; + //ActionInfo* pInfoNext; // nil if only one action uses this key. + + ActionInfo() { pAction = 0; iSeq = 0xffff; iVariation = 0xffff; } + ActionInfo( KAccelAction* _pAction, uint _iSeq, uint _iVariation ) + { pAction = _pAction; iSeq = _iSeq; iVariation = _iVariation; } + }; + typedef QMap KKeyToActionMap; + + KAccelActions m_rgActions; + KKeyToActionMap m_mapKeyToAction; + QValueList m_rgActionsNonUnique; + bool m_bNativeKeys; // Use native key codes instead of Qt codes + bool m_bEnabled; + bool m_bConfigIsGlobal; + QString m_sConfigGroup; + bool m_bAutoUpdate; + KAccelAction* mtemp_pActionRemoving; + + private: + KAccelBase& operator =( const KAccelBase& ); + + friend class KAccelActions; +}; + +#endif // _KACCELBASE_H diff --git a/extra/kde311/kicontheme.h b/extra/kde311/kicontheme.h new file mode 100644 index 0000000..837f7a4 --- /dev/null +++ b/extra/kde311/kicontheme.h @@ -0,0 +1,331 @@ +/* vi: ts=8 sts=4 sw=4 + * + * $Id: kicontheme.h,v 1.26 2002/10/26 22:08:38 tjansen Exp $ + * + * This file is part of the KDE project, module kdecore. + * Copyright (C) 2000 Geert Jansen + * Antonio Larrosa + * + * This is free software; it comes under the GNU Library General + * Public License, version 2. See the file "COPYING.LIB" for the + * exact licensing terms. + * + */ + +#ifndef __KIconTheme_h_Included__ +#define __KIconTheme_h_Included__ + +#include +#include +#include + +class KConfig; +//class KIconThemeDir; + +class KIconThemePrivate; + +class KIconPrivate; + +/** + * One icon as found by KIconTheme. Also serves as a namespace containing + * icon related constants. + * @see KIconEffect + * @see KIconTheme + * @see KIconLoader + */ +class KIcon +{ +public: + KIcon() { size = 0; } + + /** + * Return true if this icon is valid, false otherwise. + */ + bool isValid() const { return size != 0; } + + /** + * Defines the context of the icon. + */ + enum Context { + Any, ///< Some icon with unknown purpose. + Action, ///< An action icon (e.g. 'save', 'print'). + Application, ///< An icon that represents an application. + Device, ///< An icon that represents a device. + FileSystem, ///< An icon that represents a file system. + MimeType ///< An icon that represents a mime type (or file type). + }; + + /** + * The type of the icon. + */ + enum Type { + Fixed, ///< Fixed-size icon. + Scalable, ///< Scalable-size icon. + Threshold ///< A threshold icon. + }; + + /** + * The type of a match. + */ + enum MatchType { + MatchExact, ///< Only try to find an exact match. + MatchBest ///< Take the best match if there is no exact match. + + }; + + // if you add a group here, make sure to change the config reading in + // KIconLoader too + /** + * The group an an icon. + */ + enum Group { NoGroup=-1, Desktop=0, FirstGroup=Desktop, Toolbar, + MainToolbar, Small, Panel, LastGroup, User }; + + /** + * These are the standard sizes for icons. + */ + enum StdSizes { + /// small icons for menu entries + SizeSmall=16, + /// medium sized icons for the desktop + SizeMedium=32, + /// large sized icons for the panel + SizeLarge=48 }; + + /** + * Defines the possible states of an icon. + */ + enum States { DefaultState, ///< The default state. + ActiveState, ///< Icon is active. + DisabledState, ///< Icon is disabled. + LastState ///< Last state (last constant) + }; + + /** + * This defines an overlay, a semi-transparent image that is + * projected onto the icon. They are used to show that the file + * represented by the icon is, for example, locked, zipped or hidden. + */ + enum Overlays { + LockOverlay=0x100, ///< a file is locked + ZipOverlay=0x200, ///< a file is zipped + LinkOverlay=0x400, ///< a fileis a link + HiddenOverlay=0x800, ///< a file is hidden + ShareOverlay=0x1000, ///< a file is shared + OverlayMask = ~0xff + }; + + /** + * The size in pixels of the icon. + */ + int size; + + /** + * The context of the icon. + */ + Context context; + + /** + * The type of the icon: Fixed, Scalable or Threshold. + **/ + Type type; + + /** + * The threshold in case type == Threshold + */ + int threshold; + + /** + * The full path of the icon. + */ + QString path; + +private: + KIconPrivate *d; +}; + +inline KIcon::Group& operator++(KIcon::Group& group) { group = static_cast(group+1); return group; } +inline KIcon::Group operator++(KIcon::Group& group,int) { KIcon::Group ret = group; ++group; return ret; } + +/** + * Class to use/access icon themes in KDE. This class is used by the + * iconloader but can be used by others too. + * @see KIconLoader + */ +class KIconTheme +{ +public: + /** + * Load an icon theme by name. + * @param name the name of the theme (e.g. "hicolor" or "keramik") + * @param appName the name of the application. Can be null. This argument + * allows applications to have themed application icons. + */ + KIconTheme(const QString& name, const QString& appName=QString::null); + ~KIconTheme(); + + /** + * The stylized name of the icon theme. + * @return the (human-readable) name of the theme + */ + QString name() const { return mName; } + + /** + * A description for the icon theme. + * @return a human-readable description of the theme, QString::null + * if there is none + */ + QString description() const { return mDesc; } + + /** + * Return the name of the "example" icon. This can be used to + * present the theme to the user. + * @return the name of the example icon, QString::null if there is none + */ + QString example() const; + + /** + * Return the name of the screenshot. + * @return the name of the screenshot, QString::null if there is none + */ + QString screenshot() const; + + /** + * Returns the name of this theme's link overlay. + * @return the name of the link overlay + */ + QString linkOverlay() const; + + /** + * Returns the name of this theme's zip overlay. + * @return the name of the zip overlay + */ + QString zipOverlay() const; + + /** + * Returns the name of this theme's lock overlay. + * @return the name of the lock overlay + */ + QString lockOverlay() const; + + /** + * Returns the name of this theme's share overlay. + * @return the name of the share overlay + * @since 3.1 + */ + QString shareOverlay () const; + + /** + * Returns the toplevel theme directory. + * @return the directory of the theme + */ + QString dir() const { return mDir; } + + /** + * The themes this icon theme falls back on. + * @return a list of icon themes that are used as fall-backs + */ + QStringList inherits() const { return mInherits; } + + /** + * The icon theme exists? + * @return true if the icon theme is valid + */ + bool isValid() const; + + /** + * The icon theme should be hidden to the user? + * @return true if the icon theme is hidden + * @since 3.1 + */ + bool isHidden() const; + + /** + * The minimum display depth required for this theme. This can either + * be 8 or 32. + * @return the minimum bpp (8 or 32) + */ + int depth() const { return mDepth; } + + /** + * The default size of this theme for a certain icon group. + * @param group The icon group. See @ref #KIcon::Group. + * @return The default size in pixels for the given icon group. + */ + int defaultSize(KIcon::Group group) const; + + /** + * Query available sizes for a group. + * @param group The icon group. See @ref #KIcon::Group. + * @return a list of available sized for the given group + */ + QValueList querySizes(KIcon::Group group) const; + + /** + * Query available icons for a size and context. + * @param size the size of the icons + * @param context the context of the icons + * @return the list of icon names + */ + QStringList queryIcons(int size, KIcon::Context context = KIcon::Any) const; + + /** + * Query available icons for a context and preferred size. + * @param size the size of the icons + * @param context the context of the icons + * @return the list of icon names + */ + QStringList queryIconsByContext(int size, KIcon::Context context = KIcon::Any) const; + + + /** + * Lookup an icon in the theme. + * @param name The name of the icon, without extension. + * @param size The desired size of the icon. + * @param match The matching mode. KIcon::MatchExact returns an icon + * only if matches exactly. KIcon::MatchBest returns the best matching + * icon. + * @return A KIcon class that describes the icon. If an icon is found, + * @see KIcon::isValid will return true, and false otherwise. + */ + KIcon iconPath(const QString& name, int size, KIcon::MatchType match) const; + + /** + * List all icon themes installed on the system, global and local. + * @return the list of all icon themes + */ + static QStringList list(); + + /** + * Returns the current icon theme. + * @return the name of the current theme + */ + static QString current(); + + /** + * Reconfigure the theme. + */ + static void reconfigure(); + + /** + * Returns the default icon theme. + * @return the name of the default theme name + * @since 3.1 + */ + static QString defaultThemeName(); + +private: + int mDefSize[8]; + QValueList mSizes[8]; + + int mDepth; + QString mDir, mName, mDesc; + QStringList mInherits; +// QPtrList mDirs; + KIconThemePrivate *d; + + static QString *_theme; + static QStringList *_theme_list; +}; + +#endif diff --git a/extra/kde311/kkeyserver_x11.h b/extra/kde311/kkeyserver_x11.h new file mode 100644 index 0000000..dfb7445 --- /dev/null +++ b/extra/kde311/kkeyserver_x11.h @@ -0,0 +1,435 @@ +#ifndef _KKEYSERVER_X11_H +#define _KKEYSERVER_X11_H + +#include "kshortcut.h" +#include "kkeynative.h" + +/** + * A collection of functions for the conversion of key presses and + * their modifiers from the window system (X11) specific format + * to the generic format and vice-versa. + */ +namespace KKeyServer +{ + /** + * Supplement enum KKey::ModFlag + * @since 3.1 + */ + enum ExtraModFlag { MODE_SWITCH = 0x2000 }; + + struct CodeMod { int code, mod; }; + + /** + * Represents a key symbol. + * @see KKey + * @see KKeyServer + */ + struct Sym + { + public: + /// the actual value of the symbol + uint m_sym; + + /// Creates a null symbol. + Sym() + { m_sym = 0; } + /** + * Creates asymbol with the given value. + * @param sym the value + */ + Sym( uint sym ) + { m_sym = sym; } + /** + * Creates a symbol from the given string description. + * @param s the description of the symbol + * @see toString() + */ + Sym( const QString& s ) + { init( s ); } + + /** + * Initializes the symbol with the given Qt key code. + * @param keyQt the qt key code + * @return true if succesful, false otherwise + * @see Qt::Key + */ + bool initQt( int keyQt ); + + /** + * Initializes the key with the given string description. + * @param s the string description + * @return true if succesful, false otherwise + * @see toString() + */ + bool init( const QString &s ); + + /** + * Returns the qt key code of the symbol. + * @return the qt key code + */ + int qt() const; + + /** + * @internal + */ + QString toStringInternal() const; + + /** + * Returns the string representation of the symbol. + * @return the string representation of the symbol + */ + QString toString() const; + + /** + * Returns the mods that are required for this symbol as + * ORed @ref KKey::ModFlag's. For example, Break requires a + * Ctrl to be valid. + * @return the required @ref KKey::ModFlag's + * @see KKey::ModFlag + */ + uint getModsRequired() const; + + /** + * TODO: please find out what this method does and document it + */ + uint getSymVariation() const; + + /** + * Casts the symbol to its integer representation. + */ + operator uint() const { return m_sym; } + + /** + * Overloaded operator to convert ints to Sym. + */ + Sym& operator =( uint sym ) { m_sym = sym; return *this; } + + private: + QString toString( bool bUserSpace ) const; + + static void capitalizeKeyname( QString& ); + }; + + /** + * Represents a key press. + * @see KKey + */ + struct Key + { + /// Code for native Keys in Qt + enum { CODE_FOR_QT = 256 }; + + /// The code of the key + uint m_code; + + /// The modifiers of the key + uint m_mod; + + /// The symbol of the key + uint m_sym; + + /** + * Initializes the key with a @ref KKey. + * @param key the key to get the data from + * @param bQt true to take the Qt keycode, false + * for the native key code + * @see Qt::Key + * @see KKeyNative + */ + bool init( const KKey& key, bool bQt ); + + /** + * Checks whether the key code is a native code. + * @return true if native code of the window system, + * false if it is a Qt keycode + * @see Qt::Key + * @see KKeyNative + */ + bool isNative() const { return m_code != CODE_FOR_QT; } + + /** + * Returns the code of the key. + * @return the code of the key + */ + uint code() const { return m_code; } + + /** + * Returns the modifiers of the key. + * @return the modifiers of the key + */ + uint mod() const { return m_mod; } + + /** + * Returns the symbol of the key. + * @return the symbol of the key + */ + uint sym() const { return m_sym; } + + /** + * Returns the qt key code. + * @return the qt key code + */ + int keyCodeQt() const { return (int) m_sym; } + + /** + * Sets the qt key code. + * @param keyQt the qt key code + */ + void setKeycodeQt( int keyQt ) + { m_code = CODE_FOR_QT; m_sym = keyQt; } + + /** + * Initializes this key with a @ref KKeyNative. + * @return this key + */ + Key& operator =( const KKeyNative& key ); + + /** + * Compares this key with the given Key object. Returns a + * negative number if the given Key is larger, 0 if they + * are equal and a positive number this Key is larger. The + * returned value is the difference between the symbol, modifier + * or code, whatever is non-zero first. + * + * @param key the key to compare with this key + * @return a negative number if the given Key is larger, 0 if + * they are equal and a positive number this Key is larger + */ + int compare( const Key& key ) const; + + /** + * Compares the symbol, modifiers and code of both keys. + * @see compare() + */ + bool operator ==( const Key& b ) const + { return compare( b ) == 0; } + + /** + * Compares the symbol, modifiers and code of both keys. + * @see compare() + */ + bool operator <( const Key& b ) const + { return compare( b ) < 0; } + + /** + * Converts this Key to a KKey. + * @return the KKey + */ + KKey key() const; + }; + + /** + * TODO: please document this class + */ + struct Variations + { + enum { MAX_VARIATIONS = 4 }; + + Key m_rgkey[MAX_VARIATIONS]; + uint m_nVariations; + + Variations() { m_nVariations = 0; } + + void init( const KKey&, bool bQt ); + + uint count() const { return m_nVariations; } + const Key& key( uint i ) const { return m_rgkey[i]; } + }; + + /// TODO: please document + bool initializeMods(); + + /** + * Returns the equivalent X modifier mask of the given modifier flag. + * @param modFlag the generic flags to check + * @return the window system specific flags + */ + uint modX( KKey::ModFlag modFlag ); + + /** + * Returns true if the current keyboard layout supports the Win key. + * Specifically, whether the Super or Meta keys are assigned to an X modifier. + * @return true if the keyboard has a Win key + * @see modXWin() + */ + bool keyboardHasWinKey(); + + /** + * Returns the X11 Shift modifier mask/flag. + * @return the X11 Shift modifier mask/flag. + * @see accelModMaskX() + */ + uint modXShift(); + + /** + * Returns the X11 Lock modifier mask/flag. + * @return the X11 Lock modifier mask/flag. + * @see accelModMaskX() + */ + uint modXLock(); + + /** + * Returns the X11 Ctrl modifier mask/flag. + * @return the X11 Ctrl modifier mask/flag. + * @see accelModMaskX() + */ + uint modXCtrl(); + + /** + * Returns the X11 Alt (Mod1) modifier mask/flag. + * @return the X11 Alt (Mod1) modifier mask/flag. + * @see accelModMaskX() + */ + uint modXAlt(); + + /** + * Returns the X11 NumLock modifier mask/flag. + * @return the X11 NumLock modifier mask/flag. + * @see accelModMaskX() + */ + uint modXNumLock(); + + /** + * Returns the X11 Win (Mod3) modifier mask/flag. + * @return the X11 Win (Mod3) modifier mask/flag. + * @see keyboardHasWinKey() + * @see accelModMaskX() + */ + uint modXWin(); + + /** + * Returns the X11 ScrollLock modifier mask/flag. + * @return the X11 ScrollLock modifier mask/flag. + * @see accelModMaskX() + */ + uint modXScrollLock(); + + /** + * Returns bitwise OR'ed mask containing Shift, Ctrl, Alt, and + * Win (if available). + * @see modXShift() + * @see modXLock() + * @see modXCtrl() + * @see modXAlt() + * @see modXNumLock() + * @see modXWin() + * @see modXScrollLock() + */ + uint accelModMaskX(); + + /** + * Extracts the symbol from the given Qt key and + * converts it to a symbol. + * @param keyQt the qt key code + * @param sym if successful, the symbol will be written here + * @return true if successful, false otherwise + * @see Qt::Key + * @see Sym + */ + bool keyQtToSym( int keyQt, uint& sym ); + + /** + * Extracts the modifiers from the given Qt key and + * converts them in a mask of ORed @ref KKey::ModFlag modifiers. + * @param keyQt the qt key code + * @param mod if successful, the modifiers will be written here + * @return true if successful, false otherwise + * @see Qt::Key + */ + bool keyQtToMod( int keyQt, uint& mod ); + + /** + * Converts the given symbol to a Qt key code. + * @param sym the symbol + * @param keyQt if successful, the qt key code will be written here + * @return true if successful, false otherwise + * @see Qt::Key + * @see Sym + */ + bool symToKeyQt( uint sym, int& keyQt ); + + /** + * Converts the mask of ORed @ref KKey::ModFlag modifiers to + * a mask of ORed Qt key code modifiers. + * @param the mask of @ref KKey::ModFlag modifiers + * @param the mask of Qt key code modifiers will be written here, + * if successful + * @return true if successful, false otherwise + * @see Qt::Key + * @see KKey + */ + bool modToModQt( uint mod, int& modQt ); + + /** + * Converts the mask of ORed @ref KKey::ModFlag modifiers to + * a mask of ORed X11 modifiers. + * @param the mask of @ref KKey::ModFlag modifiers + * @param the mask of X11 modifiers will be written here, + * if successful + * @return true if successful, false otherwise + * @see KKey + */ + bool modToModX( uint mod, uint& modX ); + + /** + * Converts the mask of ORed X11 modifiers to + * a mask of ORed Qt key code modifiers. + * @param the mask of X11 modifiers + * @param the mask of Qt key code modifiers will be written here + * if successful + * @return true if successful, false otherwise + * @see Qt::Key + */ + bool modXToModQt( uint modX, int& modQt ); + + /** + * Converts the mask of ORed X11 modifiers to + * a mask of ORed @ref KKey::ModFlag modifiers. + * @param the mask of X11 modifiers + * @param the mask of @ref KKey::ModFlag modifiers will be written here, + * if successful + * @return true if successful, false otherwise + * @see KKey + */ + bool modXToMod( uint modX, uint& mod ); + + /** + * Converts a X11 key code and a mask of ORed X11 modifiers + * into a X11 symbol. + * converts it to a symbol. + * @param codeX the X11 key code + * @param modX the mask of ORed X11 modifiers + * @param sym if successful, the X11 symbol will be written here + * @return true if successful, false otherwise + * @see Qt::Key + * @see Sym + */ + bool codeXToSym( uchar codeX, uint modX, uint& symX ); + + /** + * @internal + */ + QString modToStringInternal( uint mod ); + + /** + * Converts the mask of ORed @ref KKey::ModFlag modifiers to a + * user-readable string. + * @param mod the mask of ORed @ref KKey::ModFlag modifiers + * @return the user-readable string + */ + QString modToStringUser( uint mod ); + + /** + * @internal + * Unimplemented? + */ + bool stringToSymMod( const QString&, uint& sym, uint& mod ); + + /** + * @internal + * Unimplemented? + */ + void keyQtToKeyX( uint keyCombQt, unsigned char *pKeyCodeX, uint *pKeySymX, uint *pKeyModX ); +}; + +#endif // !_KKEYSERVER_X11_H diff --git a/extra/kde311/konsole_part.h b/extra/kde311/konsole_part.h new file mode 100644 index 0000000..ba89800 --- /dev/null +++ b/extra/kde311/konsole_part.h @@ -0,0 +1,223 @@ +/* + This file is part of the KDE system + Copyright (C) 1999,2000 Boloni Laszlo + + 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. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. + */ + +#ifndef __KONSOLE_PART_H__ +#define __KONSOLE_PART_H__ + +#include +#include + + +#include + +#include + +//#include "schema.h" +//#include "session.h" + +class KInstance; +class konsoleBrowserExtension; +class QPushButton; +class QSpinBox; +class KPopupMenu; +class QCheckBox; +class KRootPixmap; +class KToggleAction; +class KSelectAction; + +namespace KParts { class GUIActivateEvent; } + +class konsoleFactory : public KParts::Factory +{ + Q_OBJECT +public: + konsoleFactory(); + virtual ~konsoleFactory(); + + virtual KParts::Part* createPartObject(QWidget *parentWidget = 0, const char *widgetName = 0, + QObject* parent = 0, const char* name = 0, + const char* classname = "KParts::Part", + const QStringList &args = QStringList()); + + static KInstance *instance(); + + private: + static KInstance *s_instance; + static KAboutData *s_aboutData; +}; + +////////////////////////////////////////////////////////////////////// + +class konsolePart: public KParts::ReadOnlyPart, public TerminalInterface +{ + Q_OBJECT + public: + konsolePart(QWidget *parentWidget, const char *widgetName, QObject * parent, const char *name, const char *classname = 0); + virtual ~konsolePart(); + +signals: + void processExited(); + void receivedData( const QString& s ); + protected: + virtual bool openURL( const KURL & url ); + virtual bool openFile() {return false;} // never used + virtual bool closeURL() {return true;} + virtual void guiActivateEvent( KParts::GUIActivateEvent * event ); + + protected slots: + void showShell(); + void slotProcessExited(); + void slotReceivedData( const QString& s ); + +// void doneSession(TESession*); + void sessionDestroyed(); +// void configureRequest(TEWidget*,int,int x,int y); + void updateTitle(); + void enableMasterModeConnections(); + + private slots: + void emitOpenURLRequest(const QString &url); + + void readProperties(); + void saveProperties(); + + void sendSignal(int n); + void closeCurrentSession(); + + void notifySize(int,int); + + void slotToggleFrame(); + void slotSelectScrollbar(); + void slotSelectFont(); + void schema_menu_check(); + void keytab_menu_activated(int item); + void updateSchemaMenu(); + void setSchema(int n); + void pixmap_menu_activated(int item); + void schema_menu_activated(int item); + void slotHistoryType(); + void slotSelectBell(); + void slotSelectLineSpacing(); + void slotBlinkingCursor(); + void slotWordSeps(); + void fontNotFound(); + + private: + konsoleBrowserExtension *m_extension; + KURL currentURL; + + void makeGUI(); + void applySettingsToGUI(); + + void setFont(int fontno); +// void setSchema(ColorSchema* s); + void updateKeytabMenu(); + + bool doOpenStream( const QString& ); + bool doWriteStream( const QByteArray& ); + bool doCloseStream(); + + QWidget* parentWidget; +// TEWidget* te; +// TESession* se; +// ColorSchemaList* colors; + KRootPixmap* rootxpm; + + KToggleAction* blinkingCursor; + KToggleAction* showFrame; + + KSelectAction* selectBell; + KSelectAction* selectFont; + KSelectAction* selectLineSpacing; + KSelectAction* selectScrollbar; + + KPopupMenu* m_keytab; + KPopupMenu* m_schema; + KPopupMenu* m_signals; + KPopupMenu* m_options; + KPopupMenu* m_popupMenu; + + QFont defaultFont; + + QString pmPath; // pixmap path + QString s_schema; + QString s_kconfigSchema; + QString s_word_seps; // characters that are considered part of a word + QString fontNotFound_par; + + bool b_framevis:1; + bool b_histEnabled:1; + + int curr_schema; // current schema no + int n_bell; + int n_font; + int n_keytab; + int n_render; + int n_scroll; + unsigned m_histSize; + bool m_runningShell; + bool m_streamEnabled; +public: + // these are the implementations for the TermEmuInterface + // functions... + void startProgram( const QString& program, + const QStrList& args ); + void showShellInDir( const QString& dir ); + void sendInput( const QString& text ); +}; + +////////////////////////////////////////////////////////////////////// + +/*class HistoryTypeDialog : public KDialogBase +{ + Q_OBJECT +public: + HistoryTypeDialog(const HistoryType& histType, + unsigned int histSize, + QWidget *parent); + +public slots: + void slotDefault(); + void slotSetUnlimited(); + void slotHistEnable(bool); + + unsigned int nbLines() const; + bool isOn() const; + +protected: + QCheckBox* m_btnEnable; + QSpinBox* m_size; + QPushButton* m_setUnlimited; +};*/ + +////////////////////////////////////////////////////////////////////// + +class konsoleBrowserExtension : public KParts::BrowserExtension +{ + Q_OBJECT + friend class konsolePart; + public: + konsoleBrowserExtension(konsolePart *parent); + virtual ~konsoleBrowserExtension(); + + void emitOpenURLRequest(const KURL &url); +}; + +#endif diff --git a/extra/kde311/kpanelmenu.h b/extra/kde311/kpanelmenu.h new file mode 100644 index 0000000..bda8938 --- /dev/null +++ b/extra/kde311/kpanelmenu.h @@ -0,0 +1,177 @@ +/***************************************************************** + +Copyright (c) 1996-2000 the kicker authors. See file AUTHORS. + (c) 2001 Michael Goffioul + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN +AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +******************************************************************/ + +#ifndef __KPANELMENU_H__ +#define __KPANELMENU_H__ + +#include +#include +#include + +class KPanelMenuPrivate; + +/** + * Base class to build dynamically loaded menu entries for the K-menu, or the panel. + * + * This class allows to build menu entries that will be dynamically added either to + * the K-menu, or to the panel as a normal button. These dynamic menus are located + * in shared libraries that will be loaded at runtime by Kicker (the KDE panel). + * + * To build such a menu, you have to inherit this class and implement the pure virtual + * functions #initialize() and @ref slotExec(). You also have to provide a factory + * object in your library, see @ref KLibFactory. This factory is only used to construct + * the menu object. + * + * Finally, you also have to provide a desktop file describing your dynamic menu. The + * relevant entries are: Name, Comment, Icon and X-KDE-Library (which contains the + * library name without any extension). This desktop file has to be installed in + * $KDEDIR/share/apps/kicker/menuext/. + * + * @short Base class to build dynamically loaded menu entries for the K-menu, or the panel. + * @author The kicker maintainer, Michael Goffioul + */ +class KPanelMenu : public KPopupMenu +{ + Q_OBJECT + +public: + /** + * Construct a KPanelMenu object. This is the normal constructor to use when + * building extrernal menu entries. + */ + KPanelMenu(QWidget *parent=0, const char *name=0); + /** + * Constructor used internally by Kicker. You don't really want to use it. + * @param startDir a directory to associate with this menu + * @see path(), setPath() + */ + KPanelMenu(const QString &startDir, QWidget *parent=0, const char *name=0); + /** + * Destructor. + */ + virtual ~KPanelMenu(); + + /** + * Get the directory path associated with this menu, or QString::null if + * there's no such associated path. + * @return the associated directory path + * @see setPath() + */ + const QString& path() const; + /** + * Set a directory path to be associated with this menu. + * @param p the directory path + * @see path() + */ + void setPath(const QString &p); + /** + * Tell if the menu has been initialized, that is it already contains items. + * This is useful when you need to know if you have to clear the menu, or to + * fill it. + * @return the initial state + * @see setInitialized(), initialize() + */ + bool initialized() const; + /** + * Set the initial state. Set it to true when you menu is filled with the items + * you want. + * @param on the initial state + * @see initialized(), initialize() + */ + void setInitialized(bool on); + + /** + * Disable the automatic clearing of the menu. Kicker uses a cache system for + * its menus. After a specific configurable delay, the menu will be cleared. + * Use this function if you want to disable kicker's cache system, and avoid + * the clearing of your menu. + */ + void disableAutoClear(); + +public slots: + /** + * Reinitialize the menu: the menu is first cleared, the initial state is set + * to false, and finally #initialize() is called. Use this if you want to + * refill your menu immediately. + */ + void reinitialize(); + /** + * Deinitialize the menu: the menu is cleared and the initialized state is set to + * false. #initialize() is NOT called. It will be called before the menu is + * next shown, however. Use this slot if you want a delayed reinitialization. + * @since 3.1 + */ + void deinitialize(); + +protected slots: + /** + * This slot is called just before the menu is shown. This allows your menu + * to update itself if needed. However you should instead re-implement + * #initialize to provide this feature. This function is responsible for + * the cache system handling, so if you re-implement it, you should call + * the base function also. Calls #initialize(). + * @see disableAutoClear() + */ + virtual void slotAboutToShow(); + /** + * This is slot is called when an item from the menu has been selected. Your + * applet is then supposed to perform some action. You must re-implement this + * function. + * @param id the ID associated with the selected item + */ + virtual void slotExec(int id) = 0; + /** + * This slots is called to initialize the menu. It is called automatically by + * @ref slotAboutToShow(). By re-implementing this functions, you can reconstruct + * the menu before it is being shown. At the end of this function, you should + * call @ref setInitialize() with true to tell the system that the menu is OK. + * You applet must re-implement this function. + * @see slotAboutToShow(), initialized(), setInitialized() + */ + virtual void initialize() = 0; + /** + * Clears the menu, and update the initial state accordingly. + * @see initialized() + */ + void slotClear(); + +protected: + /** + * Re-implemented for internal reasons. + */ + virtual void hideEvent(QHideEvent *ev); + /** + * For internal use only. Used by constructors. + */ + void init(const QString& path = QString::null); + +protected: + virtual void virtual_hook( int id, void* data ); +private: + void internalInitialize(); + KPanelMenuPrivate *d; +}; + + +#endif diff --git a/extra/kde311/krecentdirs.h b/extra/kde311/krecentdirs.h new file mode 100644 index 0000000..71f771b --- /dev/null +++ b/extra/kde311/krecentdirs.h @@ -0,0 +1,68 @@ +/* -*- c++ -*- + * Copyright (C)2000 Waldo Bastian + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * + */ +#ifndef __KRECENTDIRS_H +#define __KRECENTDIRS_H + +#include + +/** + * The goal of this class is to make sure that, when the user needs to + * specify a file via the file selection dialog, this dialog will start + * in the directory most likely to contain the desired files. + * + * This works as follows: Each time the file selection dialog is + * shown, the programmer can specify a "file-class". The file-dialog will + * then start with the directory associated with this file-class. When + * the dialog closes, the directory currently shown in the file-dialog + * will be associated with the file-class. + * + * A file-class can either start with ':' or with '::'. If it starts with + * a single ':' the file-class is specific to the current application. + * If the file-class starts with '::' it is global to all applications. + */ +class KRecentDirs +{ +public: + /** + * Returns a list of directories associated with this file-class. + * The most recently used directory is at the front of the list. + */ + static QStringList list(const QString &fileClass); + + /** + * Returns the most recently used directory accociated with this file-class. + */ + static QString dir(const QString &fileClass); + + /** + * Associates @p directory with @p fileClass + */ + static void add(const QString &fileClass, const QString &directory); +}; + +#endif diff --git a/extra/kde311/ksycocafactory.h b/extra/kde311/ksycocafactory.h new file mode 100644 index 0000000..15554eb --- /dev/null +++ b/extra/kde311/ksycocafactory.h @@ -0,0 +1,137 @@ +/* This file is part of the KDE libraries + * Copyright (C) 1999 Waldo Bastian + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License version 2 as published by the Free Software Foundation; + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public License + * along with this library; see the file COPYING.LIB. If not, write to + * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA. + **/ + +#ifndef __ksycocafactory_h__ +#define __ksycocafactory_h__ "$Id: ksycocafactory.h,v 1.13 2002/09/21 15:07:27 tjansen Exp $" + +#include "ksycocatype.h" +#include "ksycocaentry.h" + +#include +#include +class KSycoca; +class QStringList; +class QString; +class KSycocaDict; +class KSycocaResourceList; + +typedef QDict KSycocaEntryDict; + +/** + * @internal + * Base class for sycoca factories + */ +class KSycocaFactory +{ +public: + virtual KSycocaFactoryId factoryId() const = 0; + +protected: // virtual class + /** + * Create a factory which can be used to lookup from/create a database + * (depending on KSycoca::isBuilding()) + */ + KSycocaFactory( KSycocaFactoryId factory_id ); + +public: + virtual ~KSycocaFactory(); + + /** + * @return the position of the factory in the sycoca file + */ + int offset() { return mOffset; } + + /** + * @return the dict, for special use by KBuildSycoca + */ + KSycocaEntryDict * entryDict() { return m_entryDict; } + + /** + * Construct an entry from a config file. + * To be implemented in the real factories. + */ + virtual KSycocaEntry *createEntry(const QString &file, const char *resource) = 0; + + /** + * Add an entry + */ + virtual void addEntry(KSycocaEntry *newEntry, const char *resource); + + /** + * Read an entry from the database + */ + virtual KSycocaEntry *createEntry(int offset)=0; + + /** + * Get a list of all entries from the database. + */ + KSycocaEntry::List allEntries(); + + /** + * Saves all entries it maintains as well as index files + * for these entries to the stream 'str'. + * + * Also sets mOffset to the starting position. + * + * The stream is positioned at the end of the last index. + * + * Don't forget to call the parent first when you override + * this function. + */ + virtual void save(QDataStream &str); + + /** + * Writes out a header to the stream 'str'. + * The baseclass positions the stream correctly. + * + * Don't forget to call the parent first when you override + * this function. + */ + virtual void saveHeader(QDataStream &str); + + /** + * @return the resources for which this factory is responsible. + */ + virtual const KSycocaResourceList * resourceList() const { return m_resourceList; } + +private: + int mOffset; + +protected: + int m_sycocaDictOffset; + int m_beginEntryOffset; + int m_endEntryOffset; + QDataStream *m_str; + + KSycocaResourceList *m_resourceList; + KSycocaEntryDict *m_entryDict; + KSycocaDict *m_sycocaDict; +protected: + virtual void virtual_hook( int id, void* data ); +}; + +/** This, instead of a typedef, allows to declare "class ..." in header files + * @internal + */ +class KSycocaFactoryList : public QPtrList +{ +public: + KSycocaFactoryList() { } +}; + +#endif diff --git a/extra/kde311/ktoolbarbutton.h b/extra/kde311/ktoolbarbutton.h new file mode 100644 index 0000000..121ecc6 --- /dev/null +++ b/extra/kde311/ktoolbarbutton.h @@ -0,0 +1,317 @@ +/* This file is part of the KDE libraries + Copyright (C) 1997, 1998 Stephan Kulow (coolo@kde.org) + (C) 1997, 1998 Sven Radej (radej@kde.org) + (C) 1997, 1998 Mark Donohoe (donohoe@kde.org) + (C) 1997, 1998 Matthias Ettrich (ettrich@kde.org) + (C) 2000 Kurt Granroth (granroth@kde.org) + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License version 2 as published by the Free Software Foundation. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +// $Id: ktoolbarbutton.h,v 1.26 2002/09/28 15:16:22 tjansen Exp $ +#ifndef _KTOOLBARBUTTON_H +#define _KTOOLBARBUTTON_H + +#include +#include +#include +#include +#include + +class KToolBar; +class KToolBarButtonPrivate; +class KInstance; +class QEvent; +class QPopupMenu; +class QPainter; + +/** + * A toolbar button. This is used internally by @ref KToolBar, use the + * KToolBar methods instead. + * @internal + */ +class KToolBarButton : public QToolButton +{ + Q_OBJECT + +public: + /** + * Construct a button with an icon loaded by the button itself. + * This will trust the button to load the correct icon with the + * correct size. + * + * @param icon Name of icon to load (may be absolute or relative) + * @param id Id of this button + * @param parent This button's parent + * @param name This button's internal name + * @param txt This button's text (in a tooltip or otherwise) + */ + KToolBarButton(const QString& icon, int id, QWidget *parent, + const char *name=0L, const QString &txt=QString::null, + KInstance *_instance = KGlobal::instance()); + + /** + * Construct a button with an existing pixmap. It is not + * recommended that you use this as the internal icon loading code + * will almost always get it "right". + * + * @param icon Name of icon to load (may be absolute or relative) + * @param id Id of this button + * @param parent This button's parent + * @param name This button's internal name + * @param txt This button's text (in a tooltip or otherwise) + */ + KToolBarButton(const QPixmap& pixmap, int id, QWidget *parent, + const char *name=0L, const QString &txt=QString::null); + + /** + * Construct a separator button + * + * @param parent This button's parent + * @param name This button's internal name + */ + KToolBarButton(QWidget *parent=0L, const char *name=0L); + + /** + * Standard destructor + */ + ~KToolBarButton(); + +#ifndef KDE_NO_COMPAT + /** + * @deprecated + * Set the pixmap directly for this button. This pixmap should be + * the active one... the dimmed and disabled pixmaps are constructed + * based on this one. However, don't use this function unless you + * are positive that you don't want to use @ref setIcon. + * + * @param pixmap The active pixmap + */ + // this one is from QButton, so #ifdef-ing it out doesn't break BC + virtual void setPixmap(const QPixmap &pixmap); + + /** + * @deprecated + * Force the button to use this pixmap as the default one rather + * then generating it using effects. + * + * @param pixmap The pixmap to use as the default (normal) one + */ + void setDefaultPixmap(const QPixmap& pixmap); + + /** + * @deprecated + * Force the button to use this pixmap when disabled one rather then + * generating it using effects. + * + * @param pixmap The pixmap to use when disabled + */ + void setDisabledPixmap(const QPixmap& pixmap); +#endif + + /** + * Set the text for this button. The text will be either used as a + * tooltip (IconOnly) or will be along side the icon + * + * @param text The button (or tooltip) text + */ + virtual void setText(const QString &text); + + /** + * Set the icon for this button. The icon will be loaded internally + * with the correct size. This function is preferred over @ref setIconSet + * + * @param icon The name of the icon + */ + virtual void setIcon(const QString &icon); + + /// @since 3.1 + virtual void setIcon( const QPixmap &pixmap ) + { QToolButton::setIcon( pixmap ); } + + /** + * Set the pixmaps for this toolbar button from a QIconSet. + * If you call this you don't need to call any of the other methods + * that set icons or pixmaps. + * @param iconset The iconset to use + */ + virtual void setIconSet( const QIconSet &iconset ); + +#ifndef KDE_NO_COMPAT + /** + * @deprecated + * Set the active icon for this button. The pixmap itself is loaded + * internally based on the icon size... .. the disabled and default + * pixmaps, however will only be constructed if @ref #generate is + * true. This function is preferred over @ref setPixmap + * + * @param icon The name of the active icon + * @param generate If true, then the other icons are automagically + * generated from this one + */ + void setIcon(const QString &icon, bool /*generate*/ ) { setIcon( icon ); } + + /** + * @deprecated + * Force the button to use this icon as the default one rather + * then generating it using effects. + * + * @param icon The icon to use as the default (normal) one + */ + void setDefaultIcon(const QString& icon); + + /** + * @deprecated + * Force the button to use this icon when disabled one rather then + * generating it using effects. + * + * @param icon The icon to use when disabled + */ + void setDisabledIcon(const QString& icon); +#endif + + /** + * Turn this button on or off + * + * @param flag true or false + */ + void on(bool flag = true); + + /** + * Toggle this button + */ + void toggle(); + + /** + * Turn this button into a toggle button or disable the toggle + * aspects of it. This does not toggle the button itself. + * Use @ref toggle() for that. + * + * @param toggle true or false + */ + void setToggle(bool toggle = true); + + /** + * Return a pointer to this button's popup menu (if it exists) + */ + QPopupMenu *popup(); + + /** + * Give this button a popup menu. There will not be a delay when + * you press the button. Use @ref setDelayedPopup if you want that + * behavior. You can also make the popup-menu + * "sticky", i.e. visible until a selection is made or the mouse is + * clikced elsewhere, by simply setting the second argument to true. + * This "sticky" button feature allows you to make a selection without + * having to press and hold down the mouse while making a selection. + * + * @param p The new popup menu + * @param toggle if true, makes the button "sticky" (toggled) + */ + void setPopup (QPopupMenu *p, bool toggle = false); + + /** + * Gives this button a delayed popup menu. + * + * This function allows you to add a delayed popup menu to the button. + * The popup menu is then only displayed when the button is pressed and + * held down for about half a second. You can also make the popup-menu + * "sticky", i.e. visible until a selection is made or the mouse is + * clikced elsewhere, by simply setting the second argument to true. + * This "sticky" button feature allows you to make a selection without + * having to press and hold down the mouse while making a selection. + * + * @param p the new popup menu + * @param toggle if true, makes the button "sticky" (toggled) + */ + void setDelayedPopup(QPopupMenu *p, bool toggle = false); + + /** + * Turn this button into a radio button + * + * @param f true or false + */ + void setRadio(bool f = true); + + /** + * Toolbar buttons naturally will assume the global styles + * concerning icons, icons sizes, etc. You can use this function to + * explicitely turn this off, if you like. + * + * @param no_style Will disable styles if true + */ + void setNoStyle(bool no_style = true); + +signals: + void clicked(int); + void doubleClicked(int); + void pressed(int); + void released(int); + void toggled(int); + void highlighted(int, bool); + +public slots: + /** + * This slot should be called whenever the toolbar mode has + * potentially changed. This includes such events as text changing, + * orientation changing, etc. + */ + void modeChange(); + virtual void setTextLabel(const QString&, bool tipToo); + +protected: + void paletteChange(const QPalette &); + void leaveEvent(QEvent *e); + void enterEvent(QEvent *e); + void drawButton(QPainter *p); + bool eventFilter (QObject *o, QEvent *e); + void showMenu(); + QSize sizeHint() const; + QSize minimumSizeHint() const; + QSize minimumSize() const; + + /// @since 3.1 + bool isRaised() const; + /// @since 3.1 + bool isActive() const; + /// @since 3.1 + int iconTextMode() const; + +protected slots: + void slotClicked(); + void slotPressed(); + void slotReleased(); + void slotToggled(); + void slotDelayTimeout(); + +protected: + virtual void virtual_hook( int id, void* data ); +private: + KToolBarButtonPrivate *d; +}; + +/** +* List of @ref KToolBarButton objects. +* @internal +* @version $Id: ktoolbarbutton.h,v 1.26 2002/09/28 15:16:22 tjansen Exp $ +*/ +class KToolBarButtonList : public QIntDict +{ +public: + KToolBarButtonList(); + ~KToolBarButtonList() {} +}; + +#endif diff --git a/extra/kde311/kurifilter.h b/extra/kde311/kurifilter.h new file mode 100644 index 0000000..1d2ae39 --- /dev/null +++ b/extra/kde311/kurifilter.h @@ -0,0 +1,602 @@ +/* + * This file is part of the KDE libraries + * Copyright (C) 2000 Yves Arrouye + * + * This library 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. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public License + * along with this library; see the file COPYING.LIB. If not, write to + * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA. + **/ + +#ifndef __kurifilter_h__ +#define __kurifilter_h__ "$Id: kurifilter.h,v 1.27 2002/10/30 09:37:39 neil Exp $" + +#include +#include + +#include + +class KURIFilterPrivate; +class KURIFilterDataPrivate; + +class QStringList; +class KCModule; + +/** +* This is a basic message object used for exchanging filtering +* information between the filter plugins and the application +* whenever the application requires more information about the +* URI than just a filtered version of it. Any application can +* create an instance of this class and send it to @ref KURIFilter +* to have the filter plugins fill the necessary information. +* +* @sect Example +*
+*   QString text = "kde.org";
+*   KURIFilterData d = text;
+*   bool filtered = KURIFilter::self()->filter( d );
+*   if( filtered )
+*     print ( "URI: %s\n"Filtered URI: %s\n URI Type: %i\n"Was Filtered: %i"
+*             text.latin1(), d.uri().url().latin1(), d.uriType(), filtered );
+* 
+* +* The above code should yield the following output: +*
+*   URI: kde.org
+*   Filtered URI: http://kde.org
+*   URI Type: 0            <== means NET_PROTOCOL
+*   Was Filtered: 1        <== means the URL was successfully filtered
+* 
+* +* @short A message object for exchanging filtering URI info. +*/ + +class KURIFilterData +{ +friend class KURIFilterPlugin; + +public: + /** + * Describes the type of URI to be filtered. + * + * This enumerator prvoides the return value for + * @ref uriType. A brief description for each value: + * + * @li NET_PROTOCOL - Any network protocol: http, ftp, nttp, pop3, etc... + * @li LOCAL_FILE - A local file whose executable flag is not set + * @li LOCAL_DIR - A local directory + * @li EXECUTABLE - A local file whose executable flag is set + * @li HELP - A man or info page + * @li SHELL - A shell executable (ex: echo "Test..." >> ~/testfile) + * @li BLOCKED - A URI that should be blocked/filtered (ex: ad filtering) + * @li ERROR - An incorrect URI (ex: "~johndoe" when user johndoe + * does not exist in that system ) + * @li UNKNOWN - A URI that is not identified. Default value when + * a KURIFilterData is first created. + */ + enum URITypes { NET_PROTOCOL=0, LOCAL_FILE, LOCAL_DIR, EXECUTABLE, HELP, SHELL, BLOCKED, ERROR, UNKNOWN }; + + /** + * Default constructor. + * + * Creates a URIFilterData object. + */ + KURIFilterData() { init(); } + + /** + * Creates a URIFilterData object from the given URL. + * + * @param url is the URL to be filtered. + */ + KURIFilterData( const KURL& url ) { init( url); } + + /** + * Creates a URIFilterData object from the given string. + * + * @param url is the string to be filtered. + */ + KURIFilterData( const QString& url ) { init( url ); } + + /** + * Copy constructor. + * + * Creates a URIFilterData object from another + * URI filter data object. + * + * @param data the uri filter data to be copied. + */ + KURIFilterData( const KURIFilterData& /*data*/); + + /** + * Destructor. + */ + ~KURIFilterData(); + + /** + * This method has been deprecated and will always return + * TRUE. You should instead use the result from the + * @ref KURIFilter::filterURI() calls. + * + * @deprecated + */ + bool hasBeenFiltered() const { return m_bFiltered; } + + /** + * Returns the filtered or the original URL. + * + * This function returns the filtered url if one + * of the plugins sucessfully filtered the original + * URL. Otherwise, it returns the original URL. + * See @ref #hasBeenFiltered() and + * + * @return the filtered or original url. + */ + KURL uri() const { return m_pURI; } + + /** + * Returns an error message. + * + * This functions returns the error message set + * by the plugin whenever the uri type is set to + * KURIFilterData::ERROR. Otherwise, it returns + * a QString::null. + * + * @return the error message or a NULL when there is none. + */ + QString errorMsg() const { return m_strErrMsg; } + + /** + * Returns the URI type. + * + * This method always returns KURIFilterData::UNKNOWN + * if the given URL was not filtered. + */ + URITypes uriType() const { return m_iType; } + + /** + * Sets the URL to be filtered. + * + * Use this function to set the string to be + * filtered when you construct an empty filter + * object. + * + * @param url the string to be filtered. + */ + void setData( const QString& url ) { init( url ); } + + /** + * Same as above except the argument is a URL. + * + * Use this function to set the string to be + * filtered when you construct an empty filter + * object. + * + * @param url the URL to be filtered. + */ + void setData( const KURL& url ) { init( url ); } + + /** + * Sets the absolute path to be used whenever the supplied + * data is a relative local URL. + * + * NOTE: This function works only for a local resource and + * expects the absolute path to the relative URL set in this + * meta object. If you are extracting the absolute path from + * a KURL object, make sure you always set the argument below + * using KURL::path() instead of KURL::url() so that "file:/" + * would not be appended! Otherwise, the filter might not be + * able to make correct determination whether the relative URL + * locally exists! + * + * @param abs_path the abolute path to the local resource. + * @return true if absolute path is successfully set. Otherwise, false. + */ + bool setAbsolutePath( const QString& /* abs_path */ ); + + /** + * Returns the absolute path if one has already been set. + */ + QString absolutePath() const; + + /** + * Returns true if the supplied data has an absolute path. + */ + bool hasAbsolutePath() const; + + /** + * Returns the command line options and arguments for a + * local resource when present. + * + * @return options and arguments when present, otherwise QString::null + */ + QString argsAndOptions() const; + + /** + * Returns true if the current data is a local resource with + * command line options and arguments. + */ + bool hasArgsAndOptions() const; + + /** + * Returns the name of the icon that matches + * the current filtered URL. + * + * NOTE that this function will return a NULL + * string by default and when no associated icon + * is found. + * + * @return the name of the icon associated with the resource + */ + QString iconName(); + + /** + * Overloaded assigenment operator. + * + * This function allows you to easily assign a KURL + * to a KURIFilterData object. + * + * @return an instance of a KURIFilterData object. + */ + KURIFilterData& operator=( const KURL& url ) { init( url ); return *this; } + + /** + * Overloaded assigenment operator. + * + * This function allows you to easily assign a QString + * to a KURIFilterData object. + * + * @return an instance of a KURIFilterData object. + */ + KURIFilterData& operator=( const QString& url ) { init( url ); return *this; } + +protected: + + /** + * Initializes the KURIFilterData on construction. + */ + void init( const KURL& url = QString::null ); + +private: + bool m_bFiltered; + bool m_bChanged; + + QString m_strErrMsg; + QString m_strIconName; + + KURL m_pURI; + URITypes m_iType; + KURIFilterDataPrivate *d; +}; + + +/** + * Base class for URI filter plugins. + * + * This class applies a single filter to a URI. All + * plugins designed to provide URI filtering functionalities + * should inherit from this abstract class and provide a + * specific filtering implementation. + * + * All inheriting classes need to implement the pure + * virtual function @ref filterURI. Otherwise, they + * would also become abstract. + * + * @short Abstract class for URI filter plugins. + */ +class KURIFilterPlugin : public QObject +{ + Q_OBJECT + +public: + + /** + * Constructs a filter plugin with a given name and + * priority. + * + * @param parent the parent object. + * @param name the name of the plugin. + * @param pri the priority of the plugin. + */ + KURIFilterPlugin( QObject *parent = 0, const char *name = 0, double pri = 1.0 ); + + /** + * Returns the filter's name. + * + * @return A string naming the filter. + */ + virtual QString name() const { return m_strName; } + + /** + * Returns the filter's priority. + * + * Each filter has an assigned priority, a float from 0 to 1. Filters + * with the lowest priority are first given a chance to filter a URI. + * + * @return The priority of the filter. + */ + virtual double priority() const { return m_dblPriority; } + + /** + * Filters a URI. + * + * @param data the URI data to be filtered. + * @return A boolean indicating whether the URI has been changed. + */ + virtual bool filterURI( KURIFilterData& data ) const = 0; + + /** + * Creates a configuration module for the filter. + * + * It is the responsability of the caller to delete the module + * once it is not needed anymore. + * + * @return A configuration module, @p null if the filter isn't configurable. + */ + virtual KCModule *configModule( QWidget*, const char* ) const { return 0; } + + /** + * Returns the name of the configuration module for the filter. + * + * @return the name of a configuration module or @p null if none. + */ + virtual QString configName() const { return name(); } + +protected: + + /** + * Sets the the URL in @p data to @p uri. + */ + void setFilteredURI ( KURIFilterData& data, const KURL& uri ) const; + + /** + * Sets the error message in @p data to @p errormsg. + */ + void setErrorMsg ( KURIFilterData& data, const QString& errmsg ) const { + data.m_strErrMsg = errmsg; + } + + /** + * Sets the URI type in @p data to @p type. + */ + void setURIType ( KURIFilterData& data, KURIFilterData::URITypes type) const { + data.m_iType = type; + data.m_bChanged = true; + } + + /** + * Sets the arguments and options string in @p data + * to @p args if any were found during filterting. + */ + void setArguments( KURIFilterData& data, const QString& args ) const; + + QString m_strName; + double m_dblPriority; + +protected: + virtual void virtual_hook( int id, void* data ); +private: + class KURIFilterPluginPrivate *d; +}; + + +class KURIFilterPluginList : public QPtrList +{ +public: + virtual int compareItems(Item a, Item b) + { + double diff = ((KURIFilterPlugin *) a)->priority() - ((KURIFilterPlugin *) b)->priority(); + return diff < 0 ? -1 : (diff > 0 ? 1 : 0); + } + +private: + KURIFilterPrivate *d; + +}; + +/** + * Manages the filtering of a URI. + * + * The intention of this plugin class is to allow people to extend + * the functionality of KURL without modifying it directly. This + * way KURL will remain a generic parser capable of parsing any + * generic URL that adheres to specifications. + * + * The KURIFilter class applies a number of filters to a URI, + * and returns the filtered version whenever possible. The filters + * are implemented using plugins to provide easy extensibility + * of the filtering mechanism. That is, new filters can be added in + * the future by simply inheriting from @ref KURIFilterPlugin and + * implementing the @ref KURIFilterPlugin::filterURI method. + * + * Use of this plugin-manager class is straight forward. Since + * it is a singleton object, all you have to do is obtain an instance + * by doing @p KURIFilter::self() and use any of the public member + * functions to preform the filtering. + * + * @sect Example + * + * To simply filter a given string: + *
+ * bool filtered = KURIFilter::self()->filterURI( "kde.org" );
+ * 
+ * + * You can alternatively use a KURL: + *
+ * KURL url = "kde.org";
+ * bool filtered = KURIFilter::self()->filterURI( url );
+ * 
+ * + * If you have a constant string or a constant URL, + * simply invoke the corresponding function to obtain + * the filtered string or URL instead of a boolean flag: + *
+ * QString u = KURIFilter::self()->filteredURI( "kde.org" );
+ * 
+ * + * You can also specify only specific filter(s) to be applied + * by supplying the name(s) of the filter(s). By defualt all + * filters that are found are loaded when the KURIFilter object + * is created will be used. These names are taken from the + * enteries in the \".desktop\" files. Here are a couple of + * examples: + *
+ * QString text = "kde.org";
+ * bool filtered = KURIFilter::self()->filterURI( text, "KShortURIFilter" );
+ *
+ * QStringList list;
+ * list << "KShortURIFilter" << "MyFilter";
+ * bool filtered = KURIFilter::self()->filterURI( text, list );
+ * 
+ * + * KURIFilter also allows richer data exchange through a simple + * meta-object called @p KURIFilterData. Using this meta-object + * you can find out more information about the URL you want to + * filter. See @ref KURIFilterData for examples and details. + * + * @short Filters a given URL into its proper format whenever possible. + */ + +class KURIFilter +{ +public: + /** + * Destructor + */ + ~KURIFilter (); + + /** + * Return a static instance of KURIFilter. + */ + static KURIFilter* self(); + + /** + * Filters the URI given by the object URIFilterData. + * + * This filters the given data based on the specified + * filter list. If the list is empty all avaliable + * filter plugins would be used. If not, only those + * given in the list are used. + * + * @param data object that contains the URI to be filtered. + * @param filters specify the list filters to be used + * + * @return a boolean indicating whether the URI has been changed + */ + bool filterURI( KURIFilterData& data, const QStringList& filters = QStringList() ); + + /** + * Filters the URI given by the URL. + * + * This filters the given URL based on the specified + * filter list. If the list is empty all avaliable + * filter plugins would be used. If not, only those + * given in the list are used. + * + * @param uri the URI to filter. + * @param filters specify the list of filters to be used + * + * @return a boolean indicating whether the URI has been changed + */ + bool filterURI( KURL &uri, const QStringList& filters = QStringList() ); + + /** + * Filters a string representing a URI. + * + * This filters the given string based on the specified + * filter list. If the list is empty all avaliable + * filter plugins would be used. If not, only those + * given in the list are used. + * + * @param uri The URI to filter. + * @param filters specify the list filters to be used + * + * @return a boolean indicating whether the URI has been changed + */ + bool filterURI( QString &uri, const QStringList& filters = QStringList() ); + + /** + * Returns the filtered URI. + * + * This filters the given URL based on the specified + * filter list. If the list is empty all avaliable + * filter plugins would be used. If not, only those + * given in the list are used. + * + * @param uri The URI to filter. + * @param filters specify the list filters to be used + * + * @return the filtered URI or null if it cannot be filtered + */ + KURL filteredURI( const KURL &uri, const QStringList& filters = QStringList() ); + + /** + * Return a filtered string representation of a URI. + * + * This filters the given URL based on the specified + * filter list. If the list is empty all avaliable + * filter plugins would be used. If not, only those + * given in the list are used. + * + * @param uri the URI to filter. + * @param filters specify the list filters to be used + * + * @return the filtered URI or null if it cannot be filtered + */ + QString filteredURI( const QString &uri, const QStringList& filters = QStringList() ); + + /** + * Return an iterator to iterate over all loaded + * plugins. + * + * @return a plugin iterator. + */ + QPtrListIterator pluginsIterator() const; + + /** + * Return a list of the names of all loaded plugins + * + * @since 3.1 + * + * @return a QStringList of plugin names + */ + QStringList pluginNames() const; + +protected: + + /** + * A protected constructor. + * + * This constructor creates a KURIFilter and + * initializes all plugins it can find by invoking + * @ref loadPlugins. + */ + KURIFilter(); + + /** + * Loads all allowed plugins. + * + * This function loads all filters that have not + * been dis + */ + void loadPlugins(); + +private: + + static KURIFilter *m_self; + KURIFilterPluginList m_lstPlugins; + KURIFilterPrivate *d; + +}; + +#endif + diff --git a/extra/kde312/kaccelaction.h b/extra/kde312/kaccelaction.h new file mode 100644 index 0000000..7a368a9 --- /dev/null +++ b/extra/kde312/kaccelaction.h @@ -0,0 +1,564 @@ +/* This file is part of the KDE libraries + Copyright (C) 2001,2002 Ellis Whitehead + + This library 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. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef _KACCELACTION_H +#define _KACCELACTION_H + +#include +#include +#include +#include + +#include + +class KAccelBase; + +class QObject; +class KConfig; +class KConfigBase; + +/** + * @internal + * A KAccelAction prepresents an action that can be executed using + * an accelerator key. Each KAccelAction has a name, a label, a + * "What's this" string and a @ref KShortcut. The user can configure and + * enable/disable them using @ref KKeyDialog. + * + *
+ *	1) KAccelAction = "Run Command"
+ *		Default3 = "Alt+F2"
+ *		Default4 = "Meta+Enter;Alt+F2"
+ *		1) KShortcut = "Meta+Enter"
+ *			1) KKeySequence = "Meta+Enter"
+ *				1) KKey = "Meta+Enter"
+ *					1) Meta+Enter
+ *					2) Meta+Keypad_Enter
+ *		2) KShortcut = "Alt+F2"
+ *			1) KKeySequence = "Alt+F2"
+ *				1) Alt+F2
+ *	2) KAccelAction = "Something"
+ *		Default3 = ""
+ *		Default4 = ""
+ *		1) KShortcut = "Meta+X,Asterisk"
+ *			1) KKeySequence = "Meta+X,Asterisk"
+ *				1) KKey = "Meta+X"
+ *					1) Meta+X
+ *				2) KKey = "Asterisk"
+ *					1) Shift+8 (English layout)
+ *					2) Keypad_Asterisk
+ * 
+ * @short An accelerator action + * @see KAccel + * @see KGlobalAccel + * @see KKeyChooser + * @see KKeyDialog + */ +class KAccelAction +{ + public: + /** + * Creates an empty KAccelAction. + * @see clear() + */ + KAccelAction(); + + /** + * Copy constructor. + */ + KAccelAction( const KAccelAction& ); + + /** + * Creates a new KAccelAction. + * @param sName the name of the accelerator + * @param sLabel the label of the accelerator (i18n!) + * @param sWhatsThis the What's This text (18n!) + * @param cutDef3 the default shortcut for 3 modifier systems + * @param cutDef4 the default shortcut for 4 modifier systems + * @param pObjSlot the receiver of a signal when the key has been + * pressed + * @param psMethodSlot the slot to connect for key presses. Receives + * an int, as set by @ref setID(), as only argument + * @param bConfigurable if true the user can configure the shortcut + * @param bEnabled true if the accelerator should be enabled + */ + KAccelAction( const QString& sName, const QString& sLabel, const QString& sWhatsThis, + const KShortcut& cutDef3, const KShortcut& cutDef4, + const QObject* pObjSlot, const char* psMethodSlot, + bool bConfigurable, bool bEnabled ); + ~KAccelAction(); + + /** + * Clears the accelerator. + */ + void clear(); + + /** + * Re-initialized the KAccelAction. + * @param sName the name of the accelerator + * @param sLabel the label of the accelerator (i18n!) + * @param sWhatsThis the What's This text (18n!) + * @param cutDef3 the default shortcut for 3 modifier systems + * @param cutDef4 the default shortcut for 4 modifier systems + * @param pObjSlot the receiver of a signal when the key has been + * pressed + * @param psMethodSlot the slot to connect for key presses. Receives + * an int, as set by @ref setID(), as only argument + * @param bConfigurable if true the user can configure the shortcut + * @param bEnabled true if the accelerator should be enabled + * @return true if successful, false otherwise + */ + bool init( const QString& sName, const QString& sLabel, const QString& sWhatsThis, + const KShortcut& cutDef3, const KShortcut& cutDef4, + const QObject* pObjSlot, const char* psMethodSlot, + bool bConfigurable, bool bEnabled ); + + /** + * Copies this KAccelAction. + */ + KAccelAction& operator=( const KAccelAction& ); + + /** + * Returns the name of the accelerator action. + * @return the name of the accelerator action, can be null if not + * set + */ + const QString& name() const { return m_sName; } + + /** + * Returns the label of the accelerator action. + * @return the label of the accelerator action, can be null if + * not set + */ + const QString& label() const { return m_sLabel; } + + /** + * Returns the What's This text of the accelerator action. + * @return the What's This text of the accelerator action, can be + * null if not set + */ + const QString& whatsThis() const { return m_sWhatsThis; } + + /** + * The shortcut that is actually used (may be used configured). + * @return the shortcut of the KAccelAction, can be null if not set + * @see shortcutDefault() + */ + const KShortcut& shortcut() const { return m_cut; } + + /** + * The default shortcut for this system. + * @return the default shortcut on this system, can be null if not set + * @see shortcut() + * @see shortcutDefault3() + * @see shortcutDefault4() + */ + const KShortcut& shortcutDefault() const; + + /** + * The default shortcut for 3 modifier systems. + * @return the default shortcut for 3 modifier systems, can be null + * if not set + * @see shortcutDefault() + * @see shortcutDefault4() + * @see useFourModifierKeys() + */ + const KShortcut& shortcutDefault3() const { return m_cutDefault3; } + + /** + * The default shortcut for 4 modifier systems. + * @return the default shortcut for 4 modifier systems, can be null + * if not set + * @see shortcutDefault() + * @see shortcutDefault3() + * @see useFourModifierKeys() + */ + const KShortcut& shortcutDefault4() const { return m_cutDefault4; } + + /** + * Returns the receiver of signals. + * @return the receiver of signals (can be 0 if not set) + */ + const QObject* objSlotPtr() const { return m_pObjSlot; } + + /** + * Returns the slot for the signal. + * @return the slot for the signal + */ + const char* methodSlotPtr() const { return m_psMethodSlot; } + + /** + * Checks whether the user can configure the action. + * @return true if configurable, false otherwise + */ + bool isConfigurable() const { return m_bConfigurable; } + + /** + * Checks whether the action is enabled. + * @return true if enabled, false otherwise + */ + bool isEnabled() const { return m_bEnabled; } + + /** + * Sets the name of the accelerator action. + * @param name the new name + */ + void setName( const QString& name ); + + /** + * Sets the user-readable label of the accelerator action. + * @param label the new label (i18n!) + */ + void setLabel( const QString& label ); + + /** + * Sets the What's This text for the accelerator action. + * @param whatsThis the new What's This text (i18n!) + */ + void setWhatsThis( const QString& whatsThis ); + + /** + * Sets the new shortcut of the accelerator action. + * @param rgCuts the shortcut to set + * @return true if successful, false otherwise + */ + bool setShortcut( const KShortcut& rgCuts ); + + /** + * Sets the slot of the accelerator action. + * @param pObjSlot the receiver object of the signal + * @param psMethodSlot the slot for the signal + */ + void setSlot( const QObject* pObjSlot, const char* psMethodSlot ); + + /** + * Enables or disabled configuring the action. + * @param configurable true to enable configurability, false to disable + */ + void setConfigurable( bool configurable ); + + /** + * Enables or disabled the action. + * @param configurable true to enable the action, false to disable + */ + void setEnabled( bool enable ); + + /** + * Retrieves the id set using @ref setID. + * @return the id of the accelerator action + */ + int getID() const { return m_nIDAccel; } + + /** + * Allows you to set an id that will be used as the action + * signal's argument. + * + * @param n the new id + * @see @ref getID() + */ + void setID( int n ) { m_nIDAccel = n; } + + /** + * Checkes whether the action is connected (emits signals). + * @return true if connected, false otherwise + */ + bool isConnected() const; + + /** + * Sets a key sequence of the action's shortcut. + * @param i the position of the sequence + * @param keySeq the new new sequence + * @return true if successful, false otherwise + * @see KShortcut::setSeq() + */ + bool setKeySequence( uint i, const KKeySequence &keySeq ); + + /** + * Clears the action's shortcut. It will not contain any sequences after + * calling this method. + * @see KShortcut::clear() + */ + void clearShortcut(); + + /** + * Checks whether the action's shortcut contains the given key sequence. + * @param keySeq the key sequence to check + * @return true if the shortcut contains the given sequence + * @see KShortcut::contains() + */ + bool contains( const KKeySequence &keySeq ); + + /** + * Returns the string representation of the action's shortcut. + * @return the string representation of the action's shortcut. + * @see KShortcut::toString() + */ + QString toString() const; + + /** + * @internal + */ + QString toStringInternal() const; + + /** + * Returns true if four modifier keys will be used. + * @return true if four modifier keys will be used. + */ + static bool useFourModifierKeys(); + + /** + * Selects 3 or 4 modifier default shortcuts. + * @param use true to use 4 modifier shortcuts, false to use + * 3 modifier shortcuts + */ + static void useFourModifierKeys( bool use ); + + protected: + QString m_sName, + m_sLabel, + m_sWhatsThis; + KShortcut m_cut; + KShortcut m_cutDefault3, m_cutDefault4; + const QObject* m_pObjSlot; + const char* m_psMethodSlot; + bool m_bConfigurable, + m_bEnabled; + int m_nIDAccel; + uint m_nConnections; + + void incConnections(); + void decConnections(); + + private: + static int g_bUseFourModifierKeys; + class KAccelActionPrivate* d; + + friend class KAccelActions; + friend class KAccelBase; +}; + +//--------------------------------------------------------------------- +// KAccelActions +//--------------------------------------------------------------------- + +/** + * @internal + * This class represents a collection of @ref KAccelAction objects. + * + * @short A collection of accelerator actions + * @see KAccelAction + */ +class KAccelActions +{ + public: + /** + * Creates a new, empty KAccelActions object. + */ + KAccelActions(); + + /** + * Copy constructor (deep copy). + */ + KAccelActions( const KAccelActions& ); + virtual ~KAccelActions(); + + /** + * Removes all items from this collection. + */ + void clear(); + + /** + * Initializes this object with the given actions. + * It will make a deep copy of all actions. + * @param actions the actions to copy + * @return true if successful, false otherwise + */ + bool init( const KAccelActions &actions ); + + /** + * Loads the actions from the given configuration file. + * + * @param config the configuration file to load from + * @param sGroup the group in the configuration file + * @return true if successful, false otherwise + */ + bool init( KConfigBase& config, const QString& sGroup ); + + /** + * Updates the shortcuts of all actions in this object + * with the shortcuts from the given object. + * @param shortcuts the collection that contains the new + * shortcuts + */ + void updateShortcuts( KAccelActions &shortcuts ); + + /** + * Retrieves the index of the action with the given name. + * @param sAction the action to search + * @return the index of the action, or -1 if not found + */ + int actionIndex( const QString& sAction ) const; + + /** + * Returns the action with the given @p index. + * @param index the index of an action. You must not + * use an index that is too high. + * @return the KAccelAction with the given index + * @see count() + */ + KAccelAction* actionPtr( uint index ); + + /** + * Returns the action with the given @p index. + * @param index the index of an action. You must not + * use an index that is too high. + * @return the KAccelAction with the given index + * @see count() + */ + const KAccelAction* actionPtr( uint index ) const; + + /** + * Returns the action with the given name. + * @param aAction the name of the action to search + * @return the KAccelAction with the given name, or 0 + * if not found + */ + KAccelAction* actionPtr( const QString& sAction ); + + /** + * Returns the action with the given name. + * @param aAction the name of the action to search + * @return the KAccelAction with the given name, or 0 + * if not found + */ + const KAccelAction* actionPtr( const QString& sAction ) const; + + /** + * Returns the action with the given key sequence. + * @param cut the sequence to search for + * @return the KAccelAction with the given sequence, or 0 + * if not found + */ + KAccelAction* actionPtr( KKeySequence cut ); + + /** + * Returns the action with the given @p index. + * @param index the index of an action. You must not + * use an index that is too high. + * @return the KAccelAction with the given index + * @see actionPtr() + * @see count() + */ + KAccelAction& operator []( uint index ); + + /** + * Returns the action with the given @p index. + * @param index the index of an action. You must not + * use an index that is too high. + * @return the KAccelAction with the given index + * @see actionPtr() + * @see count() + */ + const KAccelAction& operator []( uint index ) const; + + /** + * Inserts an action into the collection. + * @param sName the name of the accelerator + * @param sLabel the label of the accelerator (i18n!) + * @param sWhatsThis the What's This text (18n!) + * @param cutDef3 the default shortcut for 3 modifier systems + * @param cutDef4 the default shortcut for 4 modifier systems + * @param pObjSlot the receiver of a signal when the key has been + * pressed + * @param psMethodSlot the slot to connect for key presses. Receives + * an int, as set by @ref setID(), as only argument + * @param bConfigurable if true the user can configure the shortcut + * @param bEnabled true if the accelerator should be enabled + * @return the new action + */ + KAccelAction* insert( const QString& sAction, const QString& sLabel, const QString& sWhatsThis, + const KShortcut& rgCutDefaults3, const KShortcut& rgCutDefaults4, + const QObject* pObjSlot = 0, const char* psMethodSlot = 0, + bool bConfigurable = true, bool bEnabled = true ); + + /** + * Inserts an action into the collection. + * @param sName the name of the accelerator + * @param sLabel the label of the accelerator (i18n!) + * @return the new action + */ + KAccelAction* insert( const QString& sName, const QString& sLabel ); + + /** + * Removes the given action. + * @param sAction the name of the action. + * @return true if successful, false otherwise + */ + bool remove( const QString& sAction ); + + /** + * Loads the actions from the given configuration file. + * + * @param sConfigGroup the group in the configuration file + * @param pConfig the configuration file to load from + * @return true if successful, false otherwise + */ + bool readActions( const QString& sConfigGroup = "Shortcuts", KConfigBase* pConfig = 0 ); + + /** + * Writes the actions to the given configuration file. + * + * @param sConfigGroup the group in the configuration file + * @param pConfig the configuration file to save to + * @param bWriteAll true to write all actions + * @param bGlobal true to write to the global configuration file + * @return true if successful, false otherwise + */ + bool writeActions( const QString& sConfigGroup = "Shortcuts", KConfigBase* pConfig = 0, + bool bWriteAll = false, bool bGlobal = false ) const; + + /** + * Emit a keycodeChanged signal. + */ + void emitKeycodeChanged(); + + /** + * Returns the number of actions in the collection. + * @return the number of actions + */ + uint count() const; + + protected: + KAccelBase* m_pKAccelBase; + KAccelAction** m_prgActions; + uint m_nSizeAllocated, m_nSize; + + void resize( uint ); + void insertPtr( KAccelAction* ); + + private: + class KAccelActionsPrivate* d; + + KAccelActions( KAccelBase* ); + void initPrivate( KAccelBase* ); + KAccelActions& operator =( KAccelActions& ); + + friend class KAccelBase; +}; + +#endif // _KACCELACTION_H diff --git a/extra/kde312/kaccelbase.h b/extra/kde312/kaccelbase.h new file mode 100644 index 0000000..219eaf4 --- /dev/null +++ b/extra/kde312/kaccelbase.h @@ -0,0 +1,229 @@ +/* This file is part of the KDE libraries + Copyright (C) 2001 Ellis Whitehead + + This library 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. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef _KACCELBASE_H +#define _KACCELBASE_H + +#include +#include +#include +#include +#include + +#include "kaccelaction.h" +#include "kkeyserver_x11.h" + +class QPopupMenu; +class QWidget; + +//---------------------------------------------------- + +/** + * @internal + * Handle keyboard accelerators. + * + * Allow an user to configure + * key bindings through application configuration files or through the + * @ref KKeyChooser GUI. + * + * A @ref KAccel contains a list of accelerator items. Each accelerator item + * consists of an action name and a keyboard code combined with modifiers + * (Shift, Ctrl and Alt.) + * + * For example, "Ctrl+P" could be a shortcut for printing a document. The key + * codes are listed in ckey.h. "Print" could be the action name for printing. + * The action name identifies the key binding in configuration files and the + * @ref KKeyChooser GUI. + * + * When pressed, an accelerator key calls the slot to which it has been + * connected. Accelerator items can be connected so that a key will activate + * two different slots. + * + * A KAccel object handles key events sent to its parent widget and to all + * children of this parent widget. + * + * Key binding reconfiguration during run time can be prevented by specifying + * that an accelerator item is not configurable when it is inserted. A special + * group of non-configurable key bindings are known as the + * standard accelerators. + * + * The standard accelerators appear repeatedly in applications for + * standard document actions such as printing and saving. Convenience methods are + * available to insert and connect these accelerators which are configurable on + * a desktop-wide basis. + * + * It is possible for a user to choose to have no key associated with + * an action. + * + * The translated first argument for @ref insertItem() is used only + * in the configuration dialog. + *
+ * KAccel *a = new KAccel( myWindow );
+ * // Insert an action "Scroll Up" which is associated with the "Up" key:
+ * a->insertItem( i18n("Scroll up"), "Scroll Up", "Up" );
+ * // Insert an action "Scroll Down" which is not associated with any key:
+ * a->insertItem( i18n("Scroll down"), "Scroll Down", 0);
+ * a->connectItem( "Scroll up", myWindow, SLOT( scrollUp() ) );
+ * // a->insertStdItem( KStdAccel::Print ); //not necessary, since it
+ *	// is done automatially with the
+ *	// connect below!
+ * a->connectItem(KStdAccel::Print, myWindow, SLOT( printDoc() ) );
+ *
+ * a->readSettings();
+ *
+ * + * If a shortcut has a menu entry as well, you could insert them like + * this. The example is again the @ref KStdAccel::Print from above. + * + *
+ * int id;
+ * id = popup->insertItem("&Print",this, SLOT(printDoc()));
+ * a->changeMenuAccel(popup, id, KStdAccel::Print );
+ * 
+ * + * If you want a somewhat "exotic" name for your standard print action, like + * id = popup->insertItem(i18n("Print &Document"),this, SLOT(printDoc())); + * it might be a good idea to insert the standard action before as + * a->insertStdItem( KStdAccel::Print, i18n("Print Document") ) + * as well, so that the user can easily find the corresponding function. + * + * This technique works for other actions as well. Your "scroll up" function + * in a menu could be done with + * + *
+ *    id = popup->insertItem(i18n"Scroll &up",this, SLOT(scrollUp()));
+ *    a->changeMenuAccel(popup, id, "Scroll Up" );
+ * 
+ * + * Please keep the order right: First insert all functions in the + * acceleratior, then call a -> @ref readSettings() and @em then build your + * menu structure. + * + * @short Configurable key binding support. + * @version $Id: kaccelbase.h,v 1.22 2002/10/06 18:19:39 ellis Exp $ + */ + +class KAccelBase +{ + public: + enum Init { QT_KEYS = 0x00, NATIVE_KEYS = 0x01 }; + enum Signal { KEYCODE_CHANGED }; + + KAccelBase( int fInitCode ); + virtual ~KAccelBase(); + + uint actionCount() const; + KAccelActions& actions(); + bool isEnabled() const; + + KAccelAction* actionPtr( const QString& sAction ); + const KAccelAction* actionPtr( const QString& sAction ) const; + KAccelAction* actionPtr( const KKey& key ); + KAccelAction* actionPtr( const KKeyServer::Key& key ); + + const QString& configGroup() const { return m_sConfigGroup; } + void setConfigGroup( const QString& group ); + void setConfigGlobal( bool global ); + virtual void setEnabled( bool bEnabled ) = 0; + bool getAutoUpdate() { return m_bAutoUpdate; } + // return value of AutoUpdate flag before this call. + bool setAutoUpdate( bool bAuto ); + +// Procedures for manipulating Actions. + //void clearActions(); + + KAccelAction* insert( const QString& sName, const QString& sDesc ); + KAccelAction* insert( + const QString& sAction, const QString& sDesc, const QString& sHelp, + const KShortcut& rgCutDefaults3, const KShortcut& rgCutDefaults4, + const QObject* pObjSlot, const char* psMethodSlot, + bool bConfigurable = true, bool bEnabled = true ); + bool remove( const QString& sAction ); + bool setActionSlot( const QString& sAction, const QObject* pObjSlot, const char* psMethodSlot ); + + bool updateConnections(); + + bool setShortcut( const QString& sAction, const KShortcut& cut ); + +// Modify individual Action sub-items + bool setActionEnabled( const QString& sAction, bool bEnable ); + + /** + * Read all key associations from @p config, or (if @p config + * is zero) from the application's configuration file + * @ref KGlobal::config(). + * + * The group in which the configuration is stored can be + * set with @ref setConfigGroup(). + */ + void readSettings( KConfigBase* pConfig = 0 ); + + /** + * Write the current configurable associations to @p config, + * or (if @p config is zero) to the application's + * configuration file. + */ + void writeSettings( KConfigBase* pConfig = 0 ) const; + + QPopupMenu* createPopupMenu( QWidget* pParent, const KKeySequence& ); + + // Protected methods + protected: + void slotRemoveAction( KAccelAction* ); + + void createKeyList( QValueVector& rgKeys ); + bool insertConnection( KAccelAction* ); + bool removeConnection( KAccelAction* ); + + virtual bool emitSignal( Signal ) = 0; + virtual bool connectKey( KAccelAction&, const KKeyServer::Key& ) = 0; + virtual bool connectKey( const KKeyServer::Key& ) = 0; + virtual bool disconnectKey( KAccelAction&, const KKeyServer::Key& ) = 0; + virtual bool disconnectKey( const KKeyServer::Key& ) = 0; + + protected: + struct ActionInfo + { + KAccelAction* pAction; + uint iSeq, iVariation; + //ActionInfo* pInfoNext; // nil if only one action uses this key. + + ActionInfo() { pAction = 0; iSeq = 0xffff; iVariation = 0xffff; } + ActionInfo( KAccelAction* _pAction, uint _iSeq, uint _iVariation ) + { pAction = _pAction; iSeq = _iSeq; iVariation = _iVariation; } + }; + typedef QMap KKeyToActionMap; + + KAccelActions m_rgActions; + KKeyToActionMap m_mapKeyToAction; + QValueList m_rgActionsNonUnique; + bool m_bNativeKeys; // Use native key codes instead of Qt codes + bool m_bEnabled; + bool m_bConfigIsGlobal; + QString m_sConfigGroup; + bool m_bAutoUpdate; + KAccelAction* mtemp_pActionRemoving; + + private: + KAccelBase& operator =( const KAccelBase& ); + + friend class KAccelActions; +}; + +#endif // _KACCELBASE_H diff --git a/extra/kde312/kicontheme.h b/extra/kde312/kicontheme.h new file mode 100644 index 0000000..837f7a4 --- /dev/null +++ b/extra/kde312/kicontheme.h @@ -0,0 +1,331 @@ +/* vi: ts=8 sts=4 sw=4 + * + * $Id: kicontheme.h,v 1.26 2002/10/26 22:08:38 tjansen Exp $ + * + * This file is part of the KDE project, module kdecore. + * Copyright (C) 2000 Geert Jansen + * Antonio Larrosa + * + * This is free software; it comes under the GNU Library General + * Public License, version 2. See the file "COPYING.LIB" for the + * exact licensing terms. + * + */ + +#ifndef __KIconTheme_h_Included__ +#define __KIconTheme_h_Included__ + +#include +#include +#include + +class KConfig; +//class KIconThemeDir; + +class KIconThemePrivate; + +class KIconPrivate; + +/** + * One icon as found by KIconTheme. Also serves as a namespace containing + * icon related constants. + * @see KIconEffect + * @see KIconTheme + * @see KIconLoader + */ +class KIcon +{ +public: + KIcon() { size = 0; } + + /** + * Return true if this icon is valid, false otherwise. + */ + bool isValid() const { return size != 0; } + + /** + * Defines the context of the icon. + */ + enum Context { + Any, ///< Some icon with unknown purpose. + Action, ///< An action icon (e.g. 'save', 'print'). + Application, ///< An icon that represents an application. + Device, ///< An icon that represents a device. + FileSystem, ///< An icon that represents a file system. + MimeType ///< An icon that represents a mime type (or file type). + }; + + /** + * The type of the icon. + */ + enum Type { + Fixed, ///< Fixed-size icon. + Scalable, ///< Scalable-size icon. + Threshold ///< A threshold icon. + }; + + /** + * The type of a match. + */ + enum MatchType { + MatchExact, ///< Only try to find an exact match. + MatchBest ///< Take the best match if there is no exact match. + + }; + + // if you add a group here, make sure to change the config reading in + // KIconLoader too + /** + * The group an an icon. + */ + enum Group { NoGroup=-1, Desktop=0, FirstGroup=Desktop, Toolbar, + MainToolbar, Small, Panel, LastGroup, User }; + + /** + * These are the standard sizes for icons. + */ + enum StdSizes { + /// small icons for menu entries + SizeSmall=16, + /// medium sized icons for the desktop + SizeMedium=32, + /// large sized icons for the panel + SizeLarge=48 }; + + /** + * Defines the possible states of an icon. + */ + enum States { DefaultState, ///< The default state. + ActiveState, ///< Icon is active. + DisabledState, ///< Icon is disabled. + LastState ///< Last state (last constant) + }; + + /** + * This defines an overlay, a semi-transparent image that is + * projected onto the icon. They are used to show that the file + * represented by the icon is, for example, locked, zipped or hidden. + */ + enum Overlays { + LockOverlay=0x100, ///< a file is locked + ZipOverlay=0x200, ///< a file is zipped + LinkOverlay=0x400, ///< a fileis a link + HiddenOverlay=0x800, ///< a file is hidden + ShareOverlay=0x1000, ///< a file is shared + OverlayMask = ~0xff + }; + + /** + * The size in pixels of the icon. + */ + int size; + + /** + * The context of the icon. + */ + Context context; + + /** + * The type of the icon: Fixed, Scalable or Threshold. + **/ + Type type; + + /** + * The threshold in case type == Threshold + */ + int threshold; + + /** + * The full path of the icon. + */ + QString path; + +private: + KIconPrivate *d; +}; + +inline KIcon::Group& operator++(KIcon::Group& group) { group = static_cast(group+1); return group; } +inline KIcon::Group operator++(KIcon::Group& group,int) { KIcon::Group ret = group; ++group; return ret; } + +/** + * Class to use/access icon themes in KDE. This class is used by the + * iconloader but can be used by others too. + * @see KIconLoader + */ +class KIconTheme +{ +public: + /** + * Load an icon theme by name. + * @param name the name of the theme (e.g. "hicolor" or "keramik") + * @param appName the name of the application. Can be null. This argument + * allows applications to have themed application icons. + */ + KIconTheme(const QString& name, const QString& appName=QString::null); + ~KIconTheme(); + + /** + * The stylized name of the icon theme. + * @return the (human-readable) name of the theme + */ + QString name() const { return mName; } + + /** + * A description for the icon theme. + * @return a human-readable description of the theme, QString::null + * if there is none + */ + QString description() const { return mDesc; } + + /** + * Return the name of the "example" icon. This can be used to + * present the theme to the user. + * @return the name of the example icon, QString::null if there is none + */ + QString example() const; + + /** + * Return the name of the screenshot. + * @return the name of the screenshot, QString::null if there is none + */ + QString screenshot() const; + + /** + * Returns the name of this theme's link overlay. + * @return the name of the link overlay + */ + QString linkOverlay() const; + + /** + * Returns the name of this theme's zip overlay. + * @return the name of the zip overlay + */ + QString zipOverlay() const; + + /** + * Returns the name of this theme's lock overlay. + * @return the name of the lock overlay + */ + QString lockOverlay() const; + + /** + * Returns the name of this theme's share overlay. + * @return the name of the share overlay + * @since 3.1 + */ + QString shareOverlay () const; + + /** + * Returns the toplevel theme directory. + * @return the directory of the theme + */ + QString dir() const { return mDir; } + + /** + * The themes this icon theme falls back on. + * @return a list of icon themes that are used as fall-backs + */ + QStringList inherits() const { return mInherits; } + + /** + * The icon theme exists? + * @return true if the icon theme is valid + */ + bool isValid() const; + + /** + * The icon theme should be hidden to the user? + * @return true if the icon theme is hidden + * @since 3.1 + */ + bool isHidden() const; + + /** + * The minimum display depth required for this theme. This can either + * be 8 or 32. + * @return the minimum bpp (8 or 32) + */ + int depth() const { return mDepth; } + + /** + * The default size of this theme for a certain icon group. + * @param group The icon group. See @ref #KIcon::Group. + * @return The default size in pixels for the given icon group. + */ + int defaultSize(KIcon::Group group) const; + + /** + * Query available sizes for a group. + * @param group The icon group. See @ref #KIcon::Group. + * @return a list of available sized for the given group + */ + QValueList querySizes(KIcon::Group group) const; + + /** + * Query available icons for a size and context. + * @param size the size of the icons + * @param context the context of the icons + * @return the list of icon names + */ + QStringList queryIcons(int size, KIcon::Context context = KIcon::Any) const; + + /** + * Query available icons for a context and preferred size. + * @param size the size of the icons + * @param context the context of the icons + * @return the list of icon names + */ + QStringList queryIconsByContext(int size, KIcon::Context context = KIcon::Any) const; + + + /** + * Lookup an icon in the theme. + * @param name The name of the icon, without extension. + * @param size The desired size of the icon. + * @param match The matching mode. KIcon::MatchExact returns an icon + * only if matches exactly. KIcon::MatchBest returns the best matching + * icon. + * @return A KIcon class that describes the icon. If an icon is found, + * @see KIcon::isValid will return true, and false otherwise. + */ + KIcon iconPath(const QString& name, int size, KIcon::MatchType match) const; + + /** + * List all icon themes installed on the system, global and local. + * @return the list of all icon themes + */ + static QStringList list(); + + /** + * Returns the current icon theme. + * @return the name of the current theme + */ + static QString current(); + + /** + * Reconfigure the theme. + */ + static void reconfigure(); + + /** + * Returns the default icon theme. + * @return the name of the default theme name + * @since 3.1 + */ + static QString defaultThemeName(); + +private: + int mDefSize[8]; + QValueList mSizes[8]; + + int mDepth; + QString mDir, mName, mDesc; + QStringList mInherits; +// QPtrList mDirs; + KIconThemePrivate *d; + + static QString *_theme; + static QStringList *_theme_list; +}; + +#endif diff --git a/extra/kde312/kkeyserver_x11.h b/extra/kde312/kkeyserver_x11.h new file mode 100644 index 0000000..dfb7445 --- /dev/null +++ b/extra/kde312/kkeyserver_x11.h @@ -0,0 +1,435 @@ +#ifndef _KKEYSERVER_X11_H +#define _KKEYSERVER_X11_H + +#include "kshortcut.h" +#include "kkeynative.h" + +/** + * A collection of functions for the conversion of key presses and + * their modifiers from the window system (X11) specific format + * to the generic format and vice-versa. + */ +namespace KKeyServer +{ + /** + * Supplement enum KKey::ModFlag + * @since 3.1 + */ + enum ExtraModFlag { MODE_SWITCH = 0x2000 }; + + struct CodeMod { int code, mod; }; + + /** + * Represents a key symbol. + * @see KKey + * @see KKeyServer + */ + struct Sym + { + public: + /// the actual value of the symbol + uint m_sym; + + /// Creates a null symbol. + Sym() + { m_sym = 0; } + /** + * Creates asymbol with the given value. + * @param sym the value + */ + Sym( uint sym ) + { m_sym = sym; } + /** + * Creates a symbol from the given string description. + * @param s the description of the symbol + * @see toString() + */ + Sym( const QString& s ) + { init( s ); } + + /** + * Initializes the symbol with the given Qt key code. + * @param keyQt the qt key code + * @return true if succesful, false otherwise + * @see Qt::Key + */ + bool initQt( int keyQt ); + + /** + * Initializes the key with the given string description. + * @param s the string description + * @return true if succesful, false otherwise + * @see toString() + */ + bool init( const QString &s ); + + /** + * Returns the qt key code of the symbol. + * @return the qt key code + */ + int qt() const; + + /** + * @internal + */ + QString toStringInternal() const; + + /** + * Returns the string representation of the symbol. + * @return the string representation of the symbol + */ + QString toString() const; + + /** + * Returns the mods that are required for this symbol as + * ORed @ref KKey::ModFlag's. For example, Break requires a + * Ctrl to be valid. + * @return the required @ref KKey::ModFlag's + * @see KKey::ModFlag + */ + uint getModsRequired() const; + + /** + * TODO: please find out what this method does and document it + */ + uint getSymVariation() const; + + /** + * Casts the symbol to its integer representation. + */ + operator uint() const { return m_sym; } + + /** + * Overloaded operator to convert ints to Sym. + */ + Sym& operator =( uint sym ) { m_sym = sym; return *this; } + + private: + QString toString( bool bUserSpace ) const; + + static void capitalizeKeyname( QString& ); + }; + + /** + * Represents a key press. + * @see KKey + */ + struct Key + { + /// Code for native Keys in Qt + enum { CODE_FOR_QT = 256 }; + + /// The code of the key + uint m_code; + + /// The modifiers of the key + uint m_mod; + + /// The symbol of the key + uint m_sym; + + /** + * Initializes the key with a @ref KKey. + * @param key the key to get the data from + * @param bQt true to take the Qt keycode, false + * for the native key code + * @see Qt::Key + * @see KKeyNative + */ + bool init( const KKey& key, bool bQt ); + + /** + * Checks whether the key code is a native code. + * @return true if native code of the window system, + * false if it is a Qt keycode + * @see Qt::Key + * @see KKeyNative + */ + bool isNative() const { return m_code != CODE_FOR_QT; } + + /** + * Returns the code of the key. + * @return the code of the key + */ + uint code() const { return m_code; } + + /** + * Returns the modifiers of the key. + * @return the modifiers of the key + */ + uint mod() const { return m_mod; } + + /** + * Returns the symbol of the key. + * @return the symbol of the key + */ + uint sym() const { return m_sym; } + + /** + * Returns the qt key code. + * @return the qt key code + */ + int keyCodeQt() const { return (int) m_sym; } + + /** + * Sets the qt key code. + * @param keyQt the qt key code + */ + void setKeycodeQt( int keyQt ) + { m_code = CODE_FOR_QT; m_sym = keyQt; } + + /** + * Initializes this key with a @ref KKeyNative. + * @return this key + */ + Key& operator =( const KKeyNative& key ); + + /** + * Compares this key with the given Key object. Returns a + * negative number if the given Key is larger, 0 if they + * are equal and a positive number this Key is larger. The + * returned value is the difference between the symbol, modifier + * or code, whatever is non-zero first. + * + * @param key the key to compare with this key + * @return a negative number if the given Key is larger, 0 if + * they are equal and a positive number this Key is larger + */ + int compare( const Key& key ) const; + + /** + * Compares the symbol, modifiers and code of both keys. + * @see compare() + */ + bool operator ==( const Key& b ) const + { return compare( b ) == 0; } + + /** + * Compares the symbol, modifiers and code of both keys. + * @see compare() + */ + bool operator <( const Key& b ) const + { return compare( b ) < 0; } + + /** + * Converts this Key to a KKey. + * @return the KKey + */ + KKey key() const; + }; + + /** + * TODO: please document this class + */ + struct Variations + { + enum { MAX_VARIATIONS = 4 }; + + Key m_rgkey[MAX_VARIATIONS]; + uint m_nVariations; + + Variations() { m_nVariations = 0; } + + void init( const KKey&, bool bQt ); + + uint count() const { return m_nVariations; } + const Key& key( uint i ) const { return m_rgkey[i]; } + }; + + /// TODO: please document + bool initializeMods(); + + /** + * Returns the equivalent X modifier mask of the given modifier flag. + * @param modFlag the generic flags to check + * @return the window system specific flags + */ + uint modX( KKey::ModFlag modFlag ); + + /** + * Returns true if the current keyboard layout supports the Win key. + * Specifically, whether the Super or Meta keys are assigned to an X modifier. + * @return true if the keyboard has a Win key + * @see modXWin() + */ + bool keyboardHasWinKey(); + + /** + * Returns the X11 Shift modifier mask/flag. + * @return the X11 Shift modifier mask/flag. + * @see accelModMaskX() + */ + uint modXShift(); + + /** + * Returns the X11 Lock modifier mask/flag. + * @return the X11 Lock modifier mask/flag. + * @see accelModMaskX() + */ + uint modXLock(); + + /** + * Returns the X11 Ctrl modifier mask/flag. + * @return the X11 Ctrl modifier mask/flag. + * @see accelModMaskX() + */ + uint modXCtrl(); + + /** + * Returns the X11 Alt (Mod1) modifier mask/flag. + * @return the X11 Alt (Mod1) modifier mask/flag. + * @see accelModMaskX() + */ + uint modXAlt(); + + /** + * Returns the X11 NumLock modifier mask/flag. + * @return the X11 NumLock modifier mask/flag. + * @see accelModMaskX() + */ + uint modXNumLock(); + + /** + * Returns the X11 Win (Mod3) modifier mask/flag. + * @return the X11 Win (Mod3) modifier mask/flag. + * @see keyboardHasWinKey() + * @see accelModMaskX() + */ + uint modXWin(); + + /** + * Returns the X11 ScrollLock modifier mask/flag. + * @return the X11 ScrollLock modifier mask/flag. + * @see accelModMaskX() + */ + uint modXScrollLock(); + + /** + * Returns bitwise OR'ed mask containing Shift, Ctrl, Alt, and + * Win (if available). + * @see modXShift() + * @see modXLock() + * @see modXCtrl() + * @see modXAlt() + * @see modXNumLock() + * @see modXWin() + * @see modXScrollLock() + */ + uint accelModMaskX(); + + /** + * Extracts the symbol from the given Qt key and + * converts it to a symbol. + * @param keyQt the qt key code + * @param sym if successful, the symbol will be written here + * @return true if successful, false otherwise + * @see Qt::Key + * @see Sym + */ + bool keyQtToSym( int keyQt, uint& sym ); + + /** + * Extracts the modifiers from the given Qt key and + * converts them in a mask of ORed @ref KKey::ModFlag modifiers. + * @param keyQt the qt key code + * @param mod if successful, the modifiers will be written here + * @return true if successful, false otherwise + * @see Qt::Key + */ + bool keyQtToMod( int keyQt, uint& mod ); + + /** + * Converts the given symbol to a Qt key code. + * @param sym the symbol + * @param keyQt if successful, the qt key code will be written here + * @return true if successful, false otherwise + * @see Qt::Key + * @see Sym + */ + bool symToKeyQt( uint sym, int& keyQt ); + + /** + * Converts the mask of ORed @ref KKey::ModFlag modifiers to + * a mask of ORed Qt key code modifiers. + * @param the mask of @ref KKey::ModFlag modifiers + * @param the mask of Qt key code modifiers will be written here, + * if successful + * @return true if successful, false otherwise + * @see Qt::Key + * @see KKey + */ + bool modToModQt( uint mod, int& modQt ); + + /** + * Converts the mask of ORed @ref KKey::ModFlag modifiers to + * a mask of ORed X11 modifiers. + * @param the mask of @ref KKey::ModFlag modifiers + * @param the mask of X11 modifiers will be written here, + * if successful + * @return true if successful, false otherwise + * @see KKey + */ + bool modToModX( uint mod, uint& modX ); + + /** + * Converts the mask of ORed X11 modifiers to + * a mask of ORed Qt key code modifiers. + * @param the mask of X11 modifiers + * @param the mask of Qt key code modifiers will be written here + * if successful + * @return true if successful, false otherwise + * @see Qt::Key + */ + bool modXToModQt( uint modX, int& modQt ); + + /** + * Converts the mask of ORed X11 modifiers to + * a mask of ORed @ref KKey::ModFlag modifiers. + * @param the mask of X11 modifiers + * @param the mask of @ref KKey::ModFlag modifiers will be written here, + * if successful + * @return true if successful, false otherwise + * @see KKey + */ + bool modXToMod( uint modX, uint& mod ); + + /** + * Converts a X11 key code and a mask of ORed X11 modifiers + * into a X11 symbol. + * converts it to a symbol. + * @param codeX the X11 key code + * @param modX the mask of ORed X11 modifiers + * @param sym if successful, the X11 symbol will be written here + * @return true if successful, false otherwise + * @see Qt::Key + * @see Sym + */ + bool codeXToSym( uchar codeX, uint modX, uint& symX ); + + /** + * @internal + */ + QString modToStringInternal( uint mod ); + + /** + * Converts the mask of ORed @ref KKey::ModFlag modifiers to a + * user-readable string. + * @param mod the mask of ORed @ref KKey::ModFlag modifiers + * @return the user-readable string + */ + QString modToStringUser( uint mod ); + + /** + * @internal + * Unimplemented? + */ + bool stringToSymMod( const QString&, uint& sym, uint& mod ); + + /** + * @internal + * Unimplemented? + */ + void keyQtToKeyX( uint keyCombQt, unsigned char *pKeyCodeX, uint *pKeySymX, uint *pKeyModX ); +}; + +#endif // !_KKEYSERVER_X11_H diff --git a/extra/kde312/konsole_part.h b/extra/kde312/konsole_part.h new file mode 100644 index 0000000..ba89800 --- /dev/null +++ b/extra/kde312/konsole_part.h @@ -0,0 +1,223 @@ +/* + This file is part of the KDE system + Copyright (C) 1999,2000 Boloni Laszlo + + 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. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. + */ + +#ifndef __KONSOLE_PART_H__ +#define __KONSOLE_PART_H__ + +#include +#include + + +#include + +#include + +//#include "schema.h" +//#include "session.h" + +class KInstance; +class konsoleBrowserExtension; +class QPushButton; +class QSpinBox; +class KPopupMenu; +class QCheckBox; +class KRootPixmap; +class KToggleAction; +class KSelectAction; + +namespace KParts { class GUIActivateEvent; } + +class konsoleFactory : public KParts::Factory +{ + Q_OBJECT +public: + konsoleFactory(); + virtual ~konsoleFactory(); + + virtual KParts::Part* createPartObject(QWidget *parentWidget = 0, const char *widgetName = 0, + QObject* parent = 0, const char* name = 0, + const char* classname = "KParts::Part", + const QStringList &args = QStringList()); + + static KInstance *instance(); + + private: + static KInstance *s_instance; + static KAboutData *s_aboutData; +}; + +////////////////////////////////////////////////////////////////////// + +class konsolePart: public KParts::ReadOnlyPart, public TerminalInterface +{ + Q_OBJECT + public: + konsolePart(QWidget *parentWidget, const char *widgetName, QObject * parent, const char *name, const char *classname = 0); + virtual ~konsolePart(); + +signals: + void processExited(); + void receivedData( const QString& s ); + protected: + virtual bool openURL( const KURL & url ); + virtual bool openFile() {return false;} // never used + virtual bool closeURL() {return true;} + virtual void guiActivateEvent( KParts::GUIActivateEvent * event ); + + protected slots: + void showShell(); + void slotProcessExited(); + void slotReceivedData( const QString& s ); + +// void doneSession(TESession*); + void sessionDestroyed(); +// void configureRequest(TEWidget*,int,int x,int y); + void updateTitle(); + void enableMasterModeConnections(); + + private slots: + void emitOpenURLRequest(const QString &url); + + void readProperties(); + void saveProperties(); + + void sendSignal(int n); + void closeCurrentSession(); + + void notifySize(int,int); + + void slotToggleFrame(); + void slotSelectScrollbar(); + void slotSelectFont(); + void schema_menu_check(); + void keytab_menu_activated(int item); + void updateSchemaMenu(); + void setSchema(int n); + void pixmap_menu_activated(int item); + void schema_menu_activated(int item); + void slotHistoryType(); + void slotSelectBell(); + void slotSelectLineSpacing(); + void slotBlinkingCursor(); + void slotWordSeps(); + void fontNotFound(); + + private: + konsoleBrowserExtension *m_extension; + KURL currentURL; + + void makeGUI(); + void applySettingsToGUI(); + + void setFont(int fontno); +// void setSchema(ColorSchema* s); + void updateKeytabMenu(); + + bool doOpenStream( const QString& ); + bool doWriteStream( const QByteArray& ); + bool doCloseStream(); + + QWidget* parentWidget; +// TEWidget* te; +// TESession* se; +// ColorSchemaList* colors; + KRootPixmap* rootxpm; + + KToggleAction* blinkingCursor; + KToggleAction* showFrame; + + KSelectAction* selectBell; + KSelectAction* selectFont; + KSelectAction* selectLineSpacing; + KSelectAction* selectScrollbar; + + KPopupMenu* m_keytab; + KPopupMenu* m_schema; + KPopupMenu* m_signals; + KPopupMenu* m_options; + KPopupMenu* m_popupMenu; + + QFont defaultFont; + + QString pmPath; // pixmap path + QString s_schema; + QString s_kconfigSchema; + QString s_word_seps; // characters that are considered part of a word + QString fontNotFound_par; + + bool b_framevis:1; + bool b_histEnabled:1; + + int curr_schema; // current schema no + int n_bell; + int n_font; + int n_keytab; + int n_render; + int n_scroll; + unsigned m_histSize; + bool m_runningShell; + bool m_streamEnabled; +public: + // these are the implementations for the TermEmuInterface + // functions... + void startProgram( const QString& program, + const QStrList& args ); + void showShellInDir( const QString& dir ); + void sendInput( const QString& text ); +}; + +////////////////////////////////////////////////////////////////////// + +/*class HistoryTypeDialog : public KDialogBase +{ + Q_OBJECT +public: + HistoryTypeDialog(const HistoryType& histType, + unsigned int histSize, + QWidget *parent); + +public slots: + void slotDefault(); + void slotSetUnlimited(); + void slotHistEnable(bool); + + unsigned int nbLines() const; + bool isOn() const; + +protected: + QCheckBox* m_btnEnable; + QSpinBox* m_size; + QPushButton* m_setUnlimited; +};*/ + +////////////////////////////////////////////////////////////////////// + +class konsoleBrowserExtension : public KParts::BrowserExtension +{ + Q_OBJECT + friend class konsolePart; + public: + konsoleBrowserExtension(konsolePart *parent); + virtual ~konsoleBrowserExtension(); + + void emitOpenURLRequest(const KURL &url); +}; + +#endif diff --git a/extra/kde312/kpanelmenu.h b/extra/kde312/kpanelmenu.h new file mode 100644 index 0000000..7901df3 --- /dev/null +++ b/extra/kde312/kpanelmenu.h @@ -0,0 +1,181 @@ +/***************************************************************** + +Copyright (c) 1996-2000 the kicker authors. See file AUTHORS. + (c) 2001 Michael Goffioul + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN +AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +******************************************************************/ + +#ifndef __KPANELMENU_H__ +#define __KPANELMENU_H__ + +#include +#include +#include + +class KPanelMenuPrivate; + +/** + * Base class to build dynamically loaded menu entries for the K-menu, or the panel. + * + * This class allows to build menu entries that will be dynamically added either to + * the K-menu, or to the panel as a normal button. These dynamic menus are located + * in shared libraries that will be loaded at runtime by Kicker (the KDE panel). + * + * To build such a menu, you have to inherit this class and implement the pure virtual + * functions #initialize() and @ref slotExec(). You also have to provide a factory + * object in your library, see @ref KLibFactory. This factory is only used to construct + * the menu object. + * + * Finally, you also have to provide a desktop file describing your dynamic menu. The + * relevant entries are: Name, Comment, Icon and X-KDE-Library (which contains the + * library name without any extension). This desktop file has to be installed in + * $KDEDIR/share/apps/kicker/menuext/. + * + * @short Base class to build dynamically loaded menu entries for the K-menu, or the panel. + * @author The kicker maintainer, Michael Goffioul + */ +class KPanelMenu : public KPopupMenu +{ + Q_OBJECT + +public: + /** + * Construct a KPanelMenu object. This is the normal constructor to use when + * building extrernal menu entries. + */ + KPanelMenu(QWidget *parent=0, const char *name=0); + /** + * Constructor used internally by Kicker. You don't really want to use it. + * @param startDir a directory to associate with this menu + * @see path(), setPath() + */ + KPanelMenu(const QString &startDir, QWidget *parent=0, const char *name=0); + /** + * Destructor. + */ + virtual ~KPanelMenu(); + + /** + * Get the directory path associated with this menu, or QString::null if + * there's no such associated path. + * @return the associated directory path + * @see setPath() + */ + const QString& path() const; + /** + * Set a directory path to be associated with this menu. + * @param p the directory path + * @see path() + */ + void setPath(const QString &p); + /** + * Tell if the menu has been initialized, that is it already contains items. + * This is useful when you need to know if you have to clear the menu, or to + * fill it. + * @return the initial state + * @see setInitialized(), initialize() + */ + bool initialized() const; + /** + * Set the initial state. Set it to true when you menu is filled with the items + * you want. + * @param on the initial state + * @see initialized(), initialize() + */ + void setInitialized(bool on); + + /** + * Disable the automatic clearing of the menu. Kicker uses a cache system for + * its menus. After a specific configurable delay, the menu will be cleared. + * Use this function if you want to disable kicker's cache system, and avoid + * the clearing of your menu. + */ + void disableAutoClear(); + +public slots: + /** + * Reinitialize the menu: the menu is first cleared, the initial state is set + * to false, and finally #initialize() is called. Use this if you want to + * refill your menu immediately. + */ + void reinitialize(); + /** + * Deinitialize the menu: the menu is cleared and the initialized state is set to + * false. #initialize() is NOT called. It will be called before the menu is + * next shown, however. Use this slot if you want a delayed reinitialization. + * @since 3.1 + */ + void deinitialize(); + +protected slots: + /** + * This slot is called just before the menu is shown. This allows your menu + * to update itself if needed. However you should instead re-implement + * #initialize to provide this feature. This function is responsible for + * the cache system handling, so if you re-implement it, you should call + * the base function also. Calls #initialize(). + * @see disableAutoClear() + */ + virtual void slotAboutToShow(); + /** + * This is slot is called when an item from the menu has been selected. Your + * applet is then supposed to perform some action. You must re-implement this + * function. + * @param id the ID associated with the selected item + */ + virtual void slotExec(int id) = 0; + /** + * This slots is called to initialize the menu. It is called automatically by + * @ref slotAboutToShow(). By re-implementing this functions, you can reconstruct + * the menu before it is being shown. At the end of this function, you should + * call @ref setInitialize() with true to tell the system that the menu is OK. + * You applet must re-implement this function. + * @see slotAboutToShow(), initialized(), setInitialized() + */ + virtual void initialize() = 0; + /** + * Clears the menu, and update the initial state accordingly. + * @see initialized() + */ + void slotClear(); + +protected: + /** + * Re-implemented for internal reasons. + */ + virtual void hideEvent(QHideEvent *ev); + /** + * For internal use only. Used by constructors. + */ + void init(const QString& path = QString::null); + +protected: + virtual void virtual_hook( int id, void* data ); +private: + void internalInitialize(); + KPanelMenuPrivate *d; +}; + +//#define K_EXPORT_KICKER_MENUEXT( libname, classname ) \ +// K_EXPORT_COMPONENT_FACTORY( \ +// kickermenu_##libname, \ +// KGenericFactory("libkickermenu_" #libname) ) + +#endif diff --git a/extra/kde312/krecentdirs.h b/extra/kde312/krecentdirs.h new file mode 100644 index 0000000..71f771b --- /dev/null +++ b/extra/kde312/krecentdirs.h @@ -0,0 +1,68 @@ +/* -*- c++ -*- + * Copyright (C)2000 Waldo Bastian + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * + */ +#ifndef __KRECENTDIRS_H +#define __KRECENTDIRS_H + +#include + +/** + * The goal of this class is to make sure that, when the user needs to + * specify a file via the file selection dialog, this dialog will start + * in the directory most likely to contain the desired files. + * + * This works as follows: Each time the file selection dialog is + * shown, the programmer can specify a "file-class". The file-dialog will + * then start with the directory associated with this file-class. When + * the dialog closes, the directory currently shown in the file-dialog + * will be associated with the file-class. + * + * A file-class can either start with ':' or with '::'. If it starts with + * a single ':' the file-class is specific to the current application. + * If the file-class starts with '::' it is global to all applications. + */ +class KRecentDirs +{ +public: + /** + * Returns a list of directories associated with this file-class. + * The most recently used directory is at the front of the list. + */ + static QStringList list(const QString &fileClass); + + /** + * Returns the most recently used directory accociated with this file-class. + */ + static QString dir(const QString &fileClass); + + /** + * Associates @p directory with @p fileClass + */ + static void add(const QString &fileClass, const QString &directory); +}; + +#endif diff --git a/extra/kde312/ksycocafactory.h b/extra/kde312/ksycocafactory.h new file mode 100644 index 0000000..15554eb --- /dev/null +++ b/extra/kde312/ksycocafactory.h @@ -0,0 +1,137 @@ +/* This file is part of the KDE libraries + * Copyright (C) 1999 Waldo Bastian + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License version 2 as published by the Free Software Foundation; + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public License + * along with this library; see the file COPYING.LIB. If not, write to + * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA. + **/ + +#ifndef __ksycocafactory_h__ +#define __ksycocafactory_h__ "$Id: ksycocafactory.h,v 1.13 2002/09/21 15:07:27 tjansen Exp $" + +#include "ksycocatype.h" +#include "ksycocaentry.h" + +#include +#include +class KSycoca; +class QStringList; +class QString; +class KSycocaDict; +class KSycocaResourceList; + +typedef QDict KSycocaEntryDict; + +/** + * @internal + * Base class for sycoca factories + */ +class KSycocaFactory +{ +public: + virtual KSycocaFactoryId factoryId() const = 0; + +protected: // virtual class + /** + * Create a factory which can be used to lookup from/create a database + * (depending on KSycoca::isBuilding()) + */ + KSycocaFactory( KSycocaFactoryId factory_id ); + +public: + virtual ~KSycocaFactory(); + + /** + * @return the position of the factory in the sycoca file + */ + int offset() { return mOffset; } + + /** + * @return the dict, for special use by KBuildSycoca + */ + KSycocaEntryDict * entryDict() { return m_entryDict; } + + /** + * Construct an entry from a config file. + * To be implemented in the real factories. + */ + virtual KSycocaEntry *createEntry(const QString &file, const char *resource) = 0; + + /** + * Add an entry + */ + virtual void addEntry(KSycocaEntry *newEntry, const char *resource); + + /** + * Read an entry from the database + */ + virtual KSycocaEntry *createEntry(int offset)=0; + + /** + * Get a list of all entries from the database. + */ + KSycocaEntry::List allEntries(); + + /** + * Saves all entries it maintains as well as index files + * for these entries to the stream 'str'. + * + * Also sets mOffset to the starting position. + * + * The stream is positioned at the end of the last index. + * + * Don't forget to call the parent first when you override + * this function. + */ + virtual void save(QDataStream &str); + + /** + * Writes out a header to the stream 'str'. + * The baseclass positions the stream correctly. + * + * Don't forget to call the parent first when you override + * this function. + */ + virtual void saveHeader(QDataStream &str); + + /** + * @return the resources for which this factory is responsible. + */ + virtual const KSycocaResourceList * resourceList() const { return m_resourceList; } + +private: + int mOffset; + +protected: + int m_sycocaDictOffset; + int m_beginEntryOffset; + int m_endEntryOffset; + QDataStream *m_str; + + KSycocaResourceList *m_resourceList; + KSycocaEntryDict *m_entryDict; + KSycocaDict *m_sycocaDict; +protected: + virtual void virtual_hook( int id, void* data ); +}; + +/** This, instead of a typedef, allows to declare "class ..." in header files + * @internal + */ +class KSycocaFactoryList : public QPtrList +{ +public: + KSycocaFactoryList() { } +}; + +#endif diff --git a/extra/kde312/ktoolbarbutton.h b/extra/kde312/ktoolbarbutton.h new file mode 100644 index 0000000..121ecc6 --- /dev/null +++ b/extra/kde312/ktoolbarbutton.h @@ -0,0 +1,317 @@ +/* This file is part of the KDE libraries + Copyright (C) 1997, 1998 Stephan Kulow (coolo@kde.org) + (C) 1997, 1998 Sven Radej (radej@kde.org) + (C) 1997, 1998 Mark Donohoe (donohoe@kde.org) + (C) 1997, 1998 Matthias Ettrich (ettrich@kde.org) + (C) 2000 Kurt Granroth (granroth@kde.org) + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License version 2 as published by the Free Software Foundation. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +// $Id: ktoolbarbutton.h,v 1.26 2002/09/28 15:16:22 tjansen Exp $ +#ifndef _KTOOLBARBUTTON_H +#define _KTOOLBARBUTTON_H + +#include +#include +#include +#include +#include + +class KToolBar; +class KToolBarButtonPrivate; +class KInstance; +class QEvent; +class QPopupMenu; +class QPainter; + +/** + * A toolbar button. This is used internally by @ref KToolBar, use the + * KToolBar methods instead. + * @internal + */ +class KToolBarButton : public QToolButton +{ + Q_OBJECT + +public: + /** + * Construct a button with an icon loaded by the button itself. + * This will trust the button to load the correct icon with the + * correct size. + * + * @param icon Name of icon to load (may be absolute or relative) + * @param id Id of this button + * @param parent This button's parent + * @param name This button's internal name + * @param txt This button's text (in a tooltip or otherwise) + */ + KToolBarButton(const QString& icon, int id, QWidget *parent, + const char *name=0L, const QString &txt=QString::null, + KInstance *_instance = KGlobal::instance()); + + /** + * Construct a button with an existing pixmap. It is not + * recommended that you use this as the internal icon loading code + * will almost always get it "right". + * + * @param icon Name of icon to load (may be absolute or relative) + * @param id Id of this button + * @param parent This button's parent + * @param name This button's internal name + * @param txt This button's text (in a tooltip or otherwise) + */ + KToolBarButton(const QPixmap& pixmap, int id, QWidget *parent, + const char *name=0L, const QString &txt=QString::null); + + /** + * Construct a separator button + * + * @param parent This button's parent + * @param name This button's internal name + */ + KToolBarButton(QWidget *parent=0L, const char *name=0L); + + /** + * Standard destructor + */ + ~KToolBarButton(); + +#ifndef KDE_NO_COMPAT + /** + * @deprecated + * Set the pixmap directly for this button. This pixmap should be + * the active one... the dimmed and disabled pixmaps are constructed + * based on this one. However, don't use this function unless you + * are positive that you don't want to use @ref setIcon. + * + * @param pixmap The active pixmap + */ + // this one is from QButton, so #ifdef-ing it out doesn't break BC + virtual void setPixmap(const QPixmap &pixmap); + + /** + * @deprecated + * Force the button to use this pixmap as the default one rather + * then generating it using effects. + * + * @param pixmap The pixmap to use as the default (normal) one + */ + void setDefaultPixmap(const QPixmap& pixmap); + + /** + * @deprecated + * Force the button to use this pixmap when disabled one rather then + * generating it using effects. + * + * @param pixmap The pixmap to use when disabled + */ + void setDisabledPixmap(const QPixmap& pixmap); +#endif + + /** + * Set the text for this button. The text will be either used as a + * tooltip (IconOnly) or will be along side the icon + * + * @param text The button (or tooltip) text + */ + virtual void setText(const QString &text); + + /** + * Set the icon for this button. The icon will be loaded internally + * with the correct size. This function is preferred over @ref setIconSet + * + * @param icon The name of the icon + */ + virtual void setIcon(const QString &icon); + + /// @since 3.1 + virtual void setIcon( const QPixmap &pixmap ) + { QToolButton::setIcon( pixmap ); } + + /** + * Set the pixmaps for this toolbar button from a QIconSet. + * If you call this you don't need to call any of the other methods + * that set icons or pixmaps. + * @param iconset The iconset to use + */ + virtual void setIconSet( const QIconSet &iconset ); + +#ifndef KDE_NO_COMPAT + /** + * @deprecated + * Set the active icon for this button. The pixmap itself is loaded + * internally based on the icon size... .. the disabled and default + * pixmaps, however will only be constructed if @ref #generate is + * true. This function is preferred over @ref setPixmap + * + * @param icon The name of the active icon + * @param generate If true, then the other icons are automagically + * generated from this one + */ + void setIcon(const QString &icon, bool /*generate*/ ) { setIcon( icon ); } + + /** + * @deprecated + * Force the button to use this icon as the default one rather + * then generating it using effects. + * + * @param icon The icon to use as the default (normal) one + */ + void setDefaultIcon(const QString& icon); + + /** + * @deprecated + * Force the button to use this icon when disabled one rather then + * generating it using effects. + * + * @param icon The icon to use when disabled + */ + void setDisabledIcon(const QString& icon); +#endif + + /** + * Turn this button on or off + * + * @param flag true or false + */ + void on(bool flag = true); + + /** + * Toggle this button + */ + void toggle(); + + /** + * Turn this button into a toggle button or disable the toggle + * aspects of it. This does not toggle the button itself. + * Use @ref toggle() for that. + * + * @param toggle true or false + */ + void setToggle(bool toggle = true); + + /** + * Return a pointer to this button's popup menu (if it exists) + */ + QPopupMenu *popup(); + + /** + * Give this button a popup menu. There will not be a delay when + * you press the button. Use @ref setDelayedPopup if you want that + * behavior. You can also make the popup-menu + * "sticky", i.e. visible until a selection is made or the mouse is + * clikced elsewhere, by simply setting the second argument to true. + * This "sticky" button feature allows you to make a selection without + * having to press and hold down the mouse while making a selection. + * + * @param p The new popup menu + * @param toggle if true, makes the button "sticky" (toggled) + */ + void setPopup (QPopupMenu *p, bool toggle = false); + + /** + * Gives this button a delayed popup menu. + * + * This function allows you to add a delayed popup menu to the button. + * The popup menu is then only displayed when the button is pressed and + * held down for about half a second. You can also make the popup-menu + * "sticky", i.e. visible until a selection is made or the mouse is + * clikced elsewhere, by simply setting the second argument to true. + * This "sticky" button feature allows you to make a selection without + * having to press and hold down the mouse while making a selection. + * + * @param p the new popup menu + * @param toggle if true, makes the button "sticky" (toggled) + */ + void setDelayedPopup(QPopupMenu *p, bool toggle = false); + + /** + * Turn this button into a radio button + * + * @param f true or false + */ + void setRadio(bool f = true); + + /** + * Toolbar buttons naturally will assume the global styles + * concerning icons, icons sizes, etc. You can use this function to + * explicitely turn this off, if you like. + * + * @param no_style Will disable styles if true + */ + void setNoStyle(bool no_style = true); + +signals: + void clicked(int); + void doubleClicked(int); + void pressed(int); + void released(int); + void toggled(int); + void highlighted(int, bool); + +public slots: + /** + * This slot should be called whenever the toolbar mode has + * potentially changed. This includes such events as text changing, + * orientation changing, etc. + */ + void modeChange(); + virtual void setTextLabel(const QString&, bool tipToo); + +protected: + void paletteChange(const QPalette &); + void leaveEvent(QEvent *e); + void enterEvent(QEvent *e); + void drawButton(QPainter *p); + bool eventFilter (QObject *o, QEvent *e); + void showMenu(); + QSize sizeHint() const; + QSize minimumSizeHint() const; + QSize minimumSize() const; + + /// @since 3.1 + bool isRaised() const; + /// @since 3.1 + bool isActive() const; + /// @since 3.1 + int iconTextMode() const; + +protected slots: + void slotClicked(); + void slotPressed(); + void slotReleased(); + void slotToggled(); + void slotDelayTimeout(); + +protected: + virtual void virtual_hook( int id, void* data ); +private: + KToolBarButtonPrivate *d; +}; + +/** +* List of @ref KToolBarButton objects. +* @internal +* @version $Id: ktoolbarbutton.h,v 1.26 2002/09/28 15:16:22 tjansen Exp $ +*/ +class KToolBarButtonList : public QIntDict +{ +public: + KToolBarButtonList(); + ~KToolBarButtonList() {} +}; + +#endif diff --git a/extra/kde312/kurifilter.h b/extra/kde312/kurifilter.h new file mode 100644 index 0000000..1d2ae39 --- /dev/null +++ b/extra/kde312/kurifilter.h @@ -0,0 +1,602 @@ +/* + * This file is part of the KDE libraries + * Copyright (C) 2000 Yves Arrouye + * + * This library 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. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public License + * along with this library; see the file COPYING.LIB. If not, write to + * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA. + **/ + +#ifndef __kurifilter_h__ +#define __kurifilter_h__ "$Id: kurifilter.h,v 1.27 2002/10/30 09:37:39 neil Exp $" + +#include +#include + +#include + +class KURIFilterPrivate; +class KURIFilterDataPrivate; + +class QStringList; +class KCModule; + +/** +* This is a basic message object used for exchanging filtering +* information between the filter plugins and the application +* whenever the application requires more information about the +* URI than just a filtered version of it. Any application can +* create an instance of this class and send it to @ref KURIFilter +* to have the filter plugins fill the necessary information. +* +* @sect Example +*
+*   QString text = "kde.org";
+*   KURIFilterData d = text;
+*   bool filtered = KURIFilter::self()->filter( d );
+*   if( filtered )
+*     print ( "URI: %s\n"Filtered URI: %s\n URI Type: %i\n"Was Filtered: %i"
+*             text.latin1(), d.uri().url().latin1(), d.uriType(), filtered );
+* 
+* +* The above code should yield the following output: +*
+*   URI: kde.org
+*   Filtered URI: http://kde.org
+*   URI Type: 0            <== means NET_PROTOCOL
+*   Was Filtered: 1        <== means the URL was successfully filtered
+* 
+* +* @short A message object for exchanging filtering URI info. +*/ + +class KURIFilterData +{ +friend class KURIFilterPlugin; + +public: + /** + * Describes the type of URI to be filtered. + * + * This enumerator prvoides the return value for + * @ref uriType. A brief description for each value: + * + * @li NET_PROTOCOL - Any network protocol: http, ftp, nttp, pop3, etc... + * @li LOCAL_FILE - A local file whose executable flag is not set + * @li LOCAL_DIR - A local directory + * @li EXECUTABLE - A local file whose executable flag is set + * @li HELP - A man or info page + * @li SHELL - A shell executable (ex: echo "Test..." >> ~/testfile) + * @li BLOCKED - A URI that should be blocked/filtered (ex: ad filtering) + * @li ERROR - An incorrect URI (ex: "~johndoe" when user johndoe + * does not exist in that system ) + * @li UNKNOWN - A URI that is not identified. Default value when + * a KURIFilterData is first created. + */ + enum URITypes { NET_PROTOCOL=0, LOCAL_FILE, LOCAL_DIR, EXECUTABLE, HELP, SHELL, BLOCKED, ERROR, UNKNOWN }; + + /** + * Default constructor. + * + * Creates a URIFilterData object. + */ + KURIFilterData() { init(); } + + /** + * Creates a URIFilterData object from the given URL. + * + * @param url is the URL to be filtered. + */ + KURIFilterData( const KURL& url ) { init( url); } + + /** + * Creates a URIFilterData object from the given string. + * + * @param url is the string to be filtered. + */ + KURIFilterData( const QString& url ) { init( url ); } + + /** + * Copy constructor. + * + * Creates a URIFilterData object from another + * URI filter data object. + * + * @param data the uri filter data to be copied. + */ + KURIFilterData( const KURIFilterData& /*data*/); + + /** + * Destructor. + */ + ~KURIFilterData(); + + /** + * This method has been deprecated and will always return + * TRUE. You should instead use the result from the + * @ref KURIFilter::filterURI() calls. + * + * @deprecated + */ + bool hasBeenFiltered() const { return m_bFiltered; } + + /** + * Returns the filtered or the original URL. + * + * This function returns the filtered url if one + * of the plugins sucessfully filtered the original + * URL. Otherwise, it returns the original URL. + * See @ref #hasBeenFiltered() and + * + * @return the filtered or original url. + */ + KURL uri() const { return m_pURI; } + + /** + * Returns an error message. + * + * This functions returns the error message set + * by the plugin whenever the uri type is set to + * KURIFilterData::ERROR. Otherwise, it returns + * a QString::null. + * + * @return the error message or a NULL when there is none. + */ + QString errorMsg() const { return m_strErrMsg; } + + /** + * Returns the URI type. + * + * This method always returns KURIFilterData::UNKNOWN + * if the given URL was not filtered. + */ + URITypes uriType() const { return m_iType; } + + /** + * Sets the URL to be filtered. + * + * Use this function to set the string to be + * filtered when you construct an empty filter + * object. + * + * @param url the string to be filtered. + */ + void setData( const QString& url ) { init( url ); } + + /** + * Same as above except the argument is a URL. + * + * Use this function to set the string to be + * filtered when you construct an empty filter + * object. + * + * @param url the URL to be filtered. + */ + void setData( const KURL& url ) { init( url ); } + + /** + * Sets the absolute path to be used whenever the supplied + * data is a relative local URL. + * + * NOTE: This function works only for a local resource and + * expects the absolute path to the relative URL set in this + * meta object. If you are extracting the absolute path from + * a KURL object, make sure you always set the argument below + * using KURL::path() instead of KURL::url() so that "file:/" + * would not be appended! Otherwise, the filter might not be + * able to make correct determination whether the relative URL + * locally exists! + * + * @param abs_path the abolute path to the local resource. + * @return true if absolute path is successfully set. Otherwise, false. + */ + bool setAbsolutePath( const QString& /* abs_path */ ); + + /** + * Returns the absolute path if one has already been set. + */ + QString absolutePath() const; + + /** + * Returns true if the supplied data has an absolute path. + */ + bool hasAbsolutePath() const; + + /** + * Returns the command line options and arguments for a + * local resource when present. + * + * @return options and arguments when present, otherwise QString::null + */ + QString argsAndOptions() const; + + /** + * Returns true if the current data is a local resource with + * command line options and arguments. + */ + bool hasArgsAndOptions() const; + + /** + * Returns the name of the icon that matches + * the current filtered URL. + * + * NOTE that this function will return a NULL + * string by default and when no associated icon + * is found. + * + * @return the name of the icon associated with the resource + */ + QString iconName(); + + /** + * Overloaded assigenment operator. + * + * This function allows you to easily assign a KURL + * to a KURIFilterData object. + * + * @return an instance of a KURIFilterData object. + */ + KURIFilterData& operator=( const KURL& url ) { init( url ); return *this; } + + /** + * Overloaded assigenment operator. + * + * This function allows you to easily assign a QString + * to a KURIFilterData object. + * + * @return an instance of a KURIFilterData object. + */ + KURIFilterData& operator=( const QString& url ) { init( url ); return *this; } + +protected: + + /** + * Initializes the KURIFilterData on construction. + */ + void init( const KURL& url = QString::null ); + +private: + bool m_bFiltered; + bool m_bChanged; + + QString m_strErrMsg; + QString m_strIconName; + + KURL m_pURI; + URITypes m_iType; + KURIFilterDataPrivate *d; +}; + + +/** + * Base class for URI filter plugins. + * + * This class applies a single filter to a URI. All + * plugins designed to provide URI filtering functionalities + * should inherit from this abstract class and provide a + * specific filtering implementation. + * + * All inheriting classes need to implement the pure + * virtual function @ref filterURI. Otherwise, they + * would also become abstract. + * + * @short Abstract class for URI filter plugins. + */ +class KURIFilterPlugin : public QObject +{ + Q_OBJECT + +public: + + /** + * Constructs a filter plugin with a given name and + * priority. + * + * @param parent the parent object. + * @param name the name of the plugin. + * @param pri the priority of the plugin. + */ + KURIFilterPlugin( QObject *parent = 0, const char *name = 0, double pri = 1.0 ); + + /** + * Returns the filter's name. + * + * @return A string naming the filter. + */ + virtual QString name() const { return m_strName; } + + /** + * Returns the filter's priority. + * + * Each filter has an assigned priority, a float from 0 to 1. Filters + * with the lowest priority are first given a chance to filter a URI. + * + * @return The priority of the filter. + */ + virtual double priority() const { return m_dblPriority; } + + /** + * Filters a URI. + * + * @param data the URI data to be filtered. + * @return A boolean indicating whether the URI has been changed. + */ + virtual bool filterURI( KURIFilterData& data ) const = 0; + + /** + * Creates a configuration module for the filter. + * + * It is the responsability of the caller to delete the module + * once it is not needed anymore. + * + * @return A configuration module, @p null if the filter isn't configurable. + */ + virtual KCModule *configModule( QWidget*, const char* ) const { return 0; } + + /** + * Returns the name of the configuration module for the filter. + * + * @return the name of a configuration module or @p null if none. + */ + virtual QString configName() const { return name(); } + +protected: + + /** + * Sets the the URL in @p data to @p uri. + */ + void setFilteredURI ( KURIFilterData& data, const KURL& uri ) const; + + /** + * Sets the error message in @p data to @p errormsg. + */ + void setErrorMsg ( KURIFilterData& data, const QString& errmsg ) const { + data.m_strErrMsg = errmsg; + } + + /** + * Sets the URI type in @p data to @p type. + */ + void setURIType ( KURIFilterData& data, KURIFilterData::URITypes type) const { + data.m_iType = type; + data.m_bChanged = true; + } + + /** + * Sets the arguments and options string in @p data + * to @p args if any were found during filterting. + */ + void setArguments( KURIFilterData& data, const QString& args ) const; + + QString m_strName; + double m_dblPriority; + +protected: + virtual void virtual_hook( int id, void* data ); +private: + class KURIFilterPluginPrivate *d; +}; + + +class KURIFilterPluginList : public QPtrList +{ +public: + virtual int compareItems(Item a, Item b) + { + double diff = ((KURIFilterPlugin *) a)->priority() - ((KURIFilterPlugin *) b)->priority(); + return diff < 0 ? -1 : (diff > 0 ? 1 : 0); + } + +private: + KURIFilterPrivate *d; + +}; + +/** + * Manages the filtering of a URI. + * + * The intention of this plugin class is to allow people to extend + * the functionality of KURL without modifying it directly. This + * way KURL will remain a generic parser capable of parsing any + * generic URL that adheres to specifications. + * + * The KURIFilter class applies a number of filters to a URI, + * and returns the filtered version whenever possible. The filters + * are implemented using plugins to provide easy extensibility + * of the filtering mechanism. That is, new filters can be added in + * the future by simply inheriting from @ref KURIFilterPlugin and + * implementing the @ref KURIFilterPlugin::filterURI method. + * + * Use of this plugin-manager class is straight forward. Since + * it is a singleton object, all you have to do is obtain an instance + * by doing @p KURIFilter::self() and use any of the public member + * functions to preform the filtering. + * + * @sect Example + * + * To simply filter a given string: + *
+ * bool filtered = KURIFilter::self()->filterURI( "kde.org" );
+ * 
+ * + * You can alternatively use a KURL: + *
+ * KURL url = "kde.org";
+ * bool filtered = KURIFilter::self()->filterURI( url );
+ * 
+ * + * If you have a constant string or a constant URL, + * simply invoke the corresponding function to obtain + * the filtered string or URL instead of a boolean flag: + *
+ * QString u = KURIFilter::self()->filteredURI( "kde.org" );
+ * 
+ * + * You can also specify only specific filter(s) to be applied + * by supplying the name(s) of the filter(s). By defualt all + * filters that are found are loaded when the KURIFilter object + * is created will be used. These names are taken from the + * enteries in the \".desktop\" files. Here are a couple of + * examples: + *
+ * QString text = "kde.org";
+ * bool filtered = KURIFilter::self()->filterURI( text, "KShortURIFilter" );
+ *
+ * QStringList list;
+ * list << "KShortURIFilter" << "MyFilter";
+ * bool filtered = KURIFilter::self()->filterURI( text, list );
+ * 
+ * + * KURIFilter also allows richer data exchange through a simple + * meta-object called @p KURIFilterData. Using this meta-object + * you can find out more information about the URL you want to + * filter. See @ref KURIFilterData for examples and details. + * + * @short Filters a given URL into its proper format whenever possible. + */ + +class KURIFilter +{ +public: + /** + * Destructor + */ + ~KURIFilter (); + + /** + * Return a static instance of KURIFilter. + */ + static KURIFilter* self(); + + /** + * Filters the URI given by the object URIFilterData. + * + * This filters the given data based on the specified + * filter list. If the list is empty all avaliable + * filter plugins would be used. If not, only those + * given in the list are used. + * + * @param data object that contains the URI to be filtered. + * @param filters specify the list filters to be used + * + * @return a boolean indicating whether the URI has been changed + */ + bool filterURI( KURIFilterData& data, const QStringList& filters = QStringList() ); + + /** + * Filters the URI given by the URL. + * + * This filters the given URL based on the specified + * filter list. If the list is empty all avaliable + * filter plugins would be used. If not, only those + * given in the list are used. + * + * @param uri the URI to filter. + * @param filters specify the list of filters to be used + * + * @return a boolean indicating whether the URI has been changed + */ + bool filterURI( KURL &uri, const QStringList& filters = QStringList() ); + + /** + * Filters a string representing a URI. + * + * This filters the given string based on the specified + * filter list. If the list is empty all avaliable + * filter plugins would be used. If not, only those + * given in the list are used. + * + * @param uri The URI to filter. + * @param filters specify the list filters to be used + * + * @return a boolean indicating whether the URI has been changed + */ + bool filterURI( QString &uri, const QStringList& filters = QStringList() ); + + /** + * Returns the filtered URI. + * + * This filters the given URL based on the specified + * filter list. If the list is empty all avaliable + * filter plugins would be used. If not, only those + * given in the list are used. + * + * @param uri The URI to filter. + * @param filters specify the list filters to be used + * + * @return the filtered URI or null if it cannot be filtered + */ + KURL filteredURI( const KURL &uri, const QStringList& filters = QStringList() ); + + /** + * Return a filtered string representation of a URI. + * + * This filters the given URL based on the specified + * filter list. If the list is empty all avaliable + * filter plugins would be used. If not, only those + * given in the list are used. + * + * @param uri the URI to filter. + * @param filters specify the list filters to be used + * + * @return the filtered URI or null if it cannot be filtered + */ + QString filteredURI( const QString &uri, const QStringList& filters = QStringList() ); + + /** + * Return an iterator to iterate over all loaded + * plugins. + * + * @return a plugin iterator. + */ + QPtrListIterator pluginsIterator() const; + + /** + * Return a list of the names of all loaded plugins + * + * @since 3.1 + * + * @return a QStringList of plugin names + */ + QStringList pluginNames() const; + +protected: + + /** + * A protected constructor. + * + * This constructor creates a KURIFilter and + * initializes all plugins it can find by invoking + * @ref loadPlugins. + */ + KURIFilter(); + + /** + * Loads all allowed plugins. + * + * This function loads all filters that have not + * been dis + */ + void loadPlugins(); + +private: + + static KURIFilter *m_self; + KURIFilterPluginList m_lstPlugins; + KURIFilterPrivate *d; + +}; + +#endif + diff --git a/extra/kde313/kaccelaction.h b/extra/kde313/kaccelaction.h new file mode 100644 index 0000000..7a368a9 --- /dev/null +++ b/extra/kde313/kaccelaction.h @@ -0,0 +1,564 @@ +/* This file is part of the KDE libraries + Copyright (C) 2001,2002 Ellis Whitehead + + This library 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. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef _KACCELACTION_H +#define _KACCELACTION_H + +#include +#include +#include +#include + +#include + +class KAccelBase; + +class QObject; +class KConfig; +class KConfigBase; + +/** + * @internal + * A KAccelAction prepresents an action that can be executed using + * an accelerator key. Each KAccelAction has a name, a label, a + * "What's this" string and a @ref KShortcut. The user can configure and + * enable/disable them using @ref KKeyDialog. + * + *
+ *	1) KAccelAction = "Run Command"
+ *		Default3 = "Alt+F2"
+ *		Default4 = "Meta+Enter;Alt+F2"
+ *		1) KShortcut = "Meta+Enter"
+ *			1) KKeySequence = "Meta+Enter"
+ *				1) KKey = "Meta+Enter"
+ *					1) Meta+Enter
+ *					2) Meta+Keypad_Enter
+ *		2) KShortcut = "Alt+F2"
+ *			1) KKeySequence = "Alt+F2"
+ *				1) Alt+F2
+ *	2) KAccelAction = "Something"
+ *		Default3 = ""
+ *		Default4 = ""
+ *		1) KShortcut = "Meta+X,Asterisk"
+ *			1) KKeySequence = "Meta+X,Asterisk"
+ *				1) KKey = "Meta+X"
+ *					1) Meta+X
+ *				2) KKey = "Asterisk"
+ *					1) Shift+8 (English layout)
+ *					2) Keypad_Asterisk
+ * 
+ * @short An accelerator action + * @see KAccel + * @see KGlobalAccel + * @see KKeyChooser + * @see KKeyDialog + */ +class KAccelAction +{ + public: + /** + * Creates an empty KAccelAction. + * @see clear() + */ + KAccelAction(); + + /** + * Copy constructor. + */ + KAccelAction( const KAccelAction& ); + + /** + * Creates a new KAccelAction. + * @param sName the name of the accelerator + * @param sLabel the label of the accelerator (i18n!) + * @param sWhatsThis the What's This text (18n!) + * @param cutDef3 the default shortcut for 3 modifier systems + * @param cutDef4 the default shortcut for 4 modifier systems + * @param pObjSlot the receiver of a signal when the key has been + * pressed + * @param psMethodSlot the slot to connect for key presses. Receives + * an int, as set by @ref setID(), as only argument + * @param bConfigurable if true the user can configure the shortcut + * @param bEnabled true if the accelerator should be enabled + */ + KAccelAction( const QString& sName, const QString& sLabel, const QString& sWhatsThis, + const KShortcut& cutDef3, const KShortcut& cutDef4, + const QObject* pObjSlot, const char* psMethodSlot, + bool bConfigurable, bool bEnabled ); + ~KAccelAction(); + + /** + * Clears the accelerator. + */ + void clear(); + + /** + * Re-initialized the KAccelAction. + * @param sName the name of the accelerator + * @param sLabel the label of the accelerator (i18n!) + * @param sWhatsThis the What's This text (18n!) + * @param cutDef3 the default shortcut for 3 modifier systems + * @param cutDef4 the default shortcut for 4 modifier systems + * @param pObjSlot the receiver of a signal when the key has been + * pressed + * @param psMethodSlot the slot to connect for key presses. Receives + * an int, as set by @ref setID(), as only argument + * @param bConfigurable if true the user can configure the shortcut + * @param bEnabled true if the accelerator should be enabled + * @return true if successful, false otherwise + */ + bool init( const QString& sName, const QString& sLabel, const QString& sWhatsThis, + const KShortcut& cutDef3, const KShortcut& cutDef4, + const QObject* pObjSlot, const char* psMethodSlot, + bool bConfigurable, bool bEnabled ); + + /** + * Copies this KAccelAction. + */ + KAccelAction& operator=( const KAccelAction& ); + + /** + * Returns the name of the accelerator action. + * @return the name of the accelerator action, can be null if not + * set + */ + const QString& name() const { return m_sName; } + + /** + * Returns the label of the accelerator action. + * @return the label of the accelerator action, can be null if + * not set + */ + const QString& label() const { return m_sLabel; } + + /** + * Returns the What's This text of the accelerator action. + * @return the What's This text of the accelerator action, can be + * null if not set + */ + const QString& whatsThis() const { return m_sWhatsThis; } + + /** + * The shortcut that is actually used (may be used configured). + * @return the shortcut of the KAccelAction, can be null if not set + * @see shortcutDefault() + */ + const KShortcut& shortcut() const { return m_cut; } + + /** + * The default shortcut for this system. + * @return the default shortcut on this system, can be null if not set + * @see shortcut() + * @see shortcutDefault3() + * @see shortcutDefault4() + */ + const KShortcut& shortcutDefault() const; + + /** + * The default shortcut for 3 modifier systems. + * @return the default shortcut for 3 modifier systems, can be null + * if not set + * @see shortcutDefault() + * @see shortcutDefault4() + * @see useFourModifierKeys() + */ + const KShortcut& shortcutDefault3() const { return m_cutDefault3; } + + /** + * The default shortcut for 4 modifier systems. + * @return the default shortcut for 4 modifier systems, can be null + * if not set + * @see shortcutDefault() + * @see shortcutDefault3() + * @see useFourModifierKeys() + */ + const KShortcut& shortcutDefault4() const { return m_cutDefault4; } + + /** + * Returns the receiver of signals. + * @return the receiver of signals (can be 0 if not set) + */ + const QObject* objSlotPtr() const { return m_pObjSlot; } + + /** + * Returns the slot for the signal. + * @return the slot for the signal + */ + const char* methodSlotPtr() const { return m_psMethodSlot; } + + /** + * Checks whether the user can configure the action. + * @return true if configurable, false otherwise + */ + bool isConfigurable() const { return m_bConfigurable; } + + /** + * Checks whether the action is enabled. + * @return true if enabled, false otherwise + */ + bool isEnabled() const { return m_bEnabled; } + + /** + * Sets the name of the accelerator action. + * @param name the new name + */ + void setName( const QString& name ); + + /** + * Sets the user-readable label of the accelerator action. + * @param label the new label (i18n!) + */ + void setLabel( const QString& label ); + + /** + * Sets the What's This text for the accelerator action. + * @param whatsThis the new What's This text (i18n!) + */ + void setWhatsThis( const QString& whatsThis ); + + /** + * Sets the new shortcut of the accelerator action. + * @param rgCuts the shortcut to set + * @return true if successful, false otherwise + */ + bool setShortcut( const KShortcut& rgCuts ); + + /** + * Sets the slot of the accelerator action. + * @param pObjSlot the receiver object of the signal + * @param psMethodSlot the slot for the signal + */ + void setSlot( const QObject* pObjSlot, const char* psMethodSlot ); + + /** + * Enables or disabled configuring the action. + * @param configurable true to enable configurability, false to disable + */ + void setConfigurable( bool configurable ); + + /** + * Enables or disabled the action. + * @param configurable true to enable the action, false to disable + */ + void setEnabled( bool enable ); + + /** + * Retrieves the id set using @ref setID. + * @return the id of the accelerator action + */ + int getID() const { return m_nIDAccel; } + + /** + * Allows you to set an id that will be used as the action + * signal's argument. + * + * @param n the new id + * @see @ref getID() + */ + void setID( int n ) { m_nIDAccel = n; } + + /** + * Checkes whether the action is connected (emits signals). + * @return true if connected, false otherwise + */ + bool isConnected() const; + + /** + * Sets a key sequence of the action's shortcut. + * @param i the position of the sequence + * @param keySeq the new new sequence + * @return true if successful, false otherwise + * @see KShortcut::setSeq() + */ + bool setKeySequence( uint i, const KKeySequence &keySeq ); + + /** + * Clears the action's shortcut. It will not contain any sequences after + * calling this method. + * @see KShortcut::clear() + */ + void clearShortcut(); + + /** + * Checks whether the action's shortcut contains the given key sequence. + * @param keySeq the key sequence to check + * @return true if the shortcut contains the given sequence + * @see KShortcut::contains() + */ + bool contains( const KKeySequence &keySeq ); + + /** + * Returns the string representation of the action's shortcut. + * @return the string representation of the action's shortcut. + * @see KShortcut::toString() + */ + QString toString() const; + + /** + * @internal + */ + QString toStringInternal() const; + + /** + * Returns true if four modifier keys will be used. + * @return true if four modifier keys will be used. + */ + static bool useFourModifierKeys(); + + /** + * Selects 3 or 4 modifier default shortcuts. + * @param use true to use 4 modifier shortcuts, false to use + * 3 modifier shortcuts + */ + static void useFourModifierKeys( bool use ); + + protected: + QString m_sName, + m_sLabel, + m_sWhatsThis; + KShortcut m_cut; + KShortcut m_cutDefault3, m_cutDefault4; + const QObject* m_pObjSlot; + const char* m_psMethodSlot; + bool m_bConfigurable, + m_bEnabled; + int m_nIDAccel; + uint m_nConnections; + + void incConnections(); + void decConnections(); + + private: + static int g_bUseFourModifierKeys; + class KAccelActionPrivate* d; + + friend class KAccelActions; + friend class KAccelBase; +}; + +//--------------------------------------------------------------------- +// KAccelActions +//--------------------------------------------------------------------- + +/** + * @internal + * This class represents a collection of @ref KAccelAction objects. + * + * @short A collection of accelerator actions + * @see KAccelAction + */ +class KAccelActions +{ + public: + /** + * Creates a new, empty KAccelActions object. + */ + KAccelActions(); + + /** + * Copy constructor (deep copy). + */ + KAccelActions( const KAccelActions& ); + virtual ~KAccelActions(); + + /** + * Removes all items from this collection. + */ + void clear(); + + /** + * Initializes this object with the given actions. + * It will make a deep copy of all actions. + * @param actions the actions to copy + * @return true if successful, false otherwise + */ + bool init( const KAccelActions &actions ); + + /** + * Loads the actions from the given configuration file. + * + * @param config the configuration file to load from + * @param sGroup the group in the configuration file + * @return true if successful, false otherwise + */ + bool init( KConfigBase& config, const QString& sGroup ); + + /** + * Updates the shortcuts of all actions in this object + * with the shortcuts from the given object. + * @param shortcuts the collection that contains the new + * shortcuts + */ + void updateShortcuts( KAccelActions &shortcuts ); + + /** + * Retrieves the index of the action with the given name. + * @param sAction the action to search + * @return the index of the action, or -1 if not found + */ + int actionIndex( const QString& sAction ) const; + + /** + * Returns the action with the given @p index. + * @param index the index of an action. You must not + * use an index that is too high. + * @return the KAccelAction with the given index + * @see count() + */ + KAccelAction* actionPtr( uint index ); + + /** + * Returns the action with the given @p index. + * @param index the index of an action. You must not + * use an index that is too high. + * @return the KAccelAction with the given index + * @see count() + */ + const KAccelAction* actionPtr( uint index ) const; + + /** + * Returns the action with the given name. + * @param aAction the name of the action to search + * @return the KAccelAction with the given name, or 0 + * if not found + */ + KAccelAction* actionPtr( const QString& sAction ); + + /** + * Returns the action with the given name. + * @param aAction the name of the action to search + * @return the KAccelAction with the given name, or 0 + * if not found + */ + const KAccelAction* actionPtr( const QString& sAction ) const; + + /** + * Returns the action with the given key sequence. + * @param cut the sequence to search for + * @return the KAccelAction with the given sequence, or 0 + * if not found + */ + KAccelAction* actionPtr( KKeySequence cut ); + + /** + * Returns the action with the given @p index. + * @param index the index of an action. You must not + * use an index that is too high. + * @return the KAccelAction with the given index + * @see actionPtr() + * @see count() + */ + KAccelAction& operator []( uint index ); + + /** + * Returns the action with the given @p index. + * @param index the index of an action. You must not + * use an index that is too high. + * @return the KAccelAction with the given index + * @see actionPtr() + * @see count() + */ + const KAccelAction& operator []( uint index ) const; + + /** + * Inserts an action into the collection. + * @param sName the name of the accelerator + * @param sLabel the label of the accelerator (i18n!) + * @param sWhatsThis the What's This text (18n!) + * @param cutDef3 the default shortcut for 3 modifier systems + * @param cutDef4 the default shortcut for 4 modifier systems + * @param pObjSlot the receiver of a signal when the key has been + * pressed + * @param psMethodSlot the slot to connect for key presses. Receives + * an int, as set by @ref setID(), as only argument + * @param bConfigurable if true the user can configure the shortcut + * @param bEnabled true if the accelerator should be enabled + * @return the new action + */ + KAccelAction* insert( const QString& sAction, const QString& sLabel, const QString& sWhatsThis, + const KShortcut& rgCutDefaults3, const KShortcut& rgCutDefaults4, + const QObject* pObjSlot = 0, const char* psMethodSlot = 0, + bool bConfigurable = true, bool bEnabled = true ); + + /** + * Inserts an action into the collection. + * @param sName the name of the accelerator + * @param sLabel the label of the accelerator (i18n!) + * @return the new action + */ + KAccelAction* insert( const QString& sName, const QString& sLabel ); + + /** + * Removes the given action. + * @param sAction the name of the action. + * @return true if successful, false otherwise + */ + bool remove( const QString& sAction ); + + /** + * Loads the actions from the given configuration file. + * + * @param sConfigGroup the group in the configuration file + * @param pConfig the configuration file to load from + * @return true if successful, false otherwise + */ + bool readActions( const QString& sConfigGroup = "Shortcuts", KConfigBase* pConfig = 0 ); + + /** + * Writes the actions to the given configuration file. + * + * @param sConfigGroup the group in the configuration file + * @param pConfig the configuration file to save to + * @param bWriteAll true to write all actions + * @param bGlobal true to write to the global configuration file + * @return true if successful, false otherwise + */ + bool writeActions( const QString& sConfigGroup = "Shortcuts", KConfigBase* pConfig = 0, + bool bWriteAll = false, bool bGlobal = false ) const; + + /** + * Emit a keycodeChanged signal. + */ + void emitKeycodeChanged(); + + /** + * Returns the number of actions in the collection. + * @return the number of actions + */ + uint count() const; + + protected: + KAccelBase* m_pKAccelBase; + KAccelAction** m_prgActions; + uint m_nSizeAllocated, m_nSize; + + void resize( uint ); + void insertPtr( KAccelAction* ); + + private: + class KAccelActionsPrivate* d; + + KAccelActions( KAccelBase* ); + void initPrivate( KAccelBase* ); + KAccelActions& operator =( KAccelActions& ); + + friend class KAccelBase; +}; + +#endif // _KACCELACTION_H diff --git a/extra/kde313/kaccelbase.h b/extra/kde313/kaccelbase.h new file mode 100644 index 0000000..219eaf4 --- /dev/null +++ b/extra/kde313/kaccelbase.h @@ -0,0 +1,229 @@ +/* This file is part of the KDE libraries + Copyright (C) 2001 Ellis Whitehead + + This library 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. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef _KACCELBASE_H +#define _KACCELBASE_H + +#include +#include +#include +#include +#include + +#include "kaccelaction.h" +#include "kkeyserver_x11.h" + +class QPopupMenu; +class QWidget; + +//---------------------------------------------------- + +/** + * @internal + * Handle keyboard accelerators. + * + * Allow an user to configure + * key bindings through application configuration files or through the + * @ref KKeyChooser GUI. + * + * A @ref KAccel contains a list of accelerator items. Each accelerator item + * consists of an action name and a keyboard code combined with modifiers + * (Shift, Ctrl and Alt.) + * + * For example, "Ctrl+P" could be a shortcut for printing a document. The key + * codes are listed in ckey.h. "Print" could be the action name for printing. + * The action name identifies the key binding in configuration files and the + * @ref KKeyChooser GUI. + * + * When pressed, an accelerator key calls the slot to which it has been + * connected. Accelerator items can be connected so that a key will activate + * two different slots. + * + * A KAccel object handles key events sent to its parent widget and to all + * children of this parent widget. + * + * Key binding reconfiguration during run time can be prevented by specifying + * that an accelerator item is not configurable when it is inserted. A special + * group of non-configurable key bindings are known as the + * standard accelerators. + * + * The standard accelerators appear repeatedly in applications for + * standard document actions such as printing and saving. Convenience methods are + * available to insert and connect these accelerators which are configurable on + * a desktop-wide basis. + * + * It is possible for a user to choose to have no key associated with + * an action. + * + * The translated first argument for @ref insertItem() is used only + * in the configuration dialog. + *
+ * KAccel *a = new KAccel( myWindow );
+ * // Insert an action "Scroll Up" which is associated with the "Up" key:
+ * a->insertItem( i18n("Scroll up"), "Scroll Up", "Up" );
+ * // Insert an action "Scroll Down" which is not associated with any key:
+ * a->insertItem( i18n("Scroll down"), "Scroll Down", 0);
+ * a->connectItem( "Scroll up", myWindow, SLOT( scrollUp() ) );
+ * // a->insertStdItem( KStdAccel::Print ); //not necessary, since it
+ *	// is done automatially with the
+ *	// connect below!
+ * a->connectItem(KStdAccel::Print, myWindow, SLOT( printDoc() ) );
+ *
+ * a->readSettings();
+ *
+ * + * If a shortcut has a menu entry as well, you could insert them like + * this. The example is again the @ref KStdAccel::Print from above. + * + *
+ * int id;
+ * id = popup->insertItem("&Print",this, SLOT(printDoc()));
+ * a->changeMenuAccel(popup, id, KStdAccel::Print );
+ * 
+ * + * If you want a somewhat "exotic" name for your standard print action, like + * id = popup->insertItem(i18n("Print &Document"),this, SLOT(printDoc())); + * it might be a good idea to insert the standard action before as + * a->insertStdItem( KStdAccel::Print, i18n("Print Document") ) + * as well, so that the user can easily find the corresponding function. + * + * This technique works for other actions as well. Your "scroll up" function + * in a menu could be done with + * + *
+ *    id = popup->insertItem(i18n"Scroll &up",this, SLOT(scrollUp()));
+ *    a->changeMenuAccel(popup, id, "Scroll Up" );
+ * 
+ * + * Please keep the order right: First insert all functions in the + * acceleratior, then call a -> @ref readSettings() and @em then build your + * menu structure. + * + * @short Configurable key binding support. + * @version $Id: kaccelbase.h,v 1.22 2002/10/06 18:19:39 ellis Exp $ + */ + +class KAccelBase +{ + public: + enum Init { QT_KEYS = 0x00, NATIVE_KEYS = 0x01 }; + enum Signal { KEYCODE_CHANGED }; + + KAccelBase( int fInitCode ); + virtual ~KAccelBase(); + + uint actionCount() const; + KAccelActions& actions(); + bool isEnabled() const; + + KAccelAction* actionPtr( const QString& sAction ); + const KAccelAction* actionPtr( const QString& sAction ) const; + KAccelAction* actionPtr( const KKey& key ); + KAccelAction* actionPtr( const KKeyServer::Key& key ); + + const QString& configGroup() const { return m_sConfigGroup; } + void setConfigGroup( const QString& group ); + void setConfigGlobal( bool global ); + virtual void setEnabled( bool bEnabled ) = 0; + bool getAutoUpdate() { return m_bAutoUpdate; } + // return value of AutoUpdate flag before this call. + bool setAutoUpdate( bool bAuto ); + +// Procedures for manipulating Actions. + //void clearActions(); + + KAccelAction* insert( const QString& sName, const QString& sDesc ); + KAccelAction* insert( + const QString& sAction, const QString& sDesc, const QString& sHelp, + const KShortcut& rgCutDefaults3, const KShortcut& rgCutDefaults4, + const QObject* pObjSlot, const char* psMethodSlot, + bool bConfigurable = true, bool bEnabled = true ); + bool remove( const QString& sAction ); + bool setActionSlot( const QString& sAction, const QObject* pObjSlot, const char* psMethodSlot ); + + bool updateConnections(); + + bool setShortcut( const QString& sAction, const KShortcut& cut ); + +// Modify individual Action sub-items + bool setActionEnabled( const QString& sAction, bool bEnable ); + + /** + * Read all key associations from @p config, or (if @p config + * is zero) from the application's configuration file + * @ref KGlobal::config(). + * + * The group in which the configuration is stored can be + * set with @ref setConfigGroup(). + */ + void readSettings( KConfigBase* pConfig = 0 ); + + /** + * Write the current configurable associations to @p config, + * or (if @p config is zero) to the application's + * configuration file. + */ + void writeSettings( KConfigBase* pConfig = 0 ) const; + + QPopupMenu* createPopupMenu( QWidget* pParent, const KKeySequence& ); + + // Protected methods + protected: + void slotRemoveAction( KAccelAction* ); + + void createKeyList( QValueVector& rgKeys ); + bool insertConnection( KAccelAction* ); + bool removeConnection( KAccelAction* ); + + virtual bool emitSignal( Signal ) = 0; + virtual bool connectKey( KAccelAction&, const KKeyServer::Key& ) = 0; + virtual bool connectKey( const KKeyServer::Key& ) = 0; + virtual bool disconnectKey( KAccelAction&, const KKeyServer::Key& ) = 0; + virtual bool disconnectKey( const KKeyServer::Key& ) = 0; + + protected: + struct ActionInfo + { + KAccelAction* pAction; + uint iSeq, iVariation; + //ActionInfo* pInfoNext; // nil if only one action uses this key. + + ActionInfo() { pAction = 0; iSeq = 0xffff; iVariation = 0xffff; } + ActionInfo( KAccelAction* _pAction, uint _iSeq, uint _iVariation ) + { pAction = _pAction; iSeq = _iSeq; iVariation = _iVariation; } + }; + typedef QMap KKeyToActionMap; + + KAccelActions m_rgActions; + KKeyToActionMap m_mapKeyToAction; + QValueList m_rgActionsNonUnique; + bool m_bNativeKeys; // Use native key codes instead of Qt codes + bool m_bEnabled; + bool m_bConfigIsGlobal; + QString m_sConfigGroup; + bool m_bAutoUpdate; + KAccelAction* mtemp_pActionRemoving; + + private: + KAccelBase& operator =( const KAccelBase& ); + + friend class KAccelActions; +}; + +#endif // _KACCELBASE_H diff --git a/extra/kde313/kicontheme.h b/extra/kde313/kicontheme.h new file mode 100644 index 0000000..837f7a4 --- /dev/null +++ b/extra/kde313/kicontheme.h @@ -0,0 +1,331 @@ +/* vi: ts=8 sts=4 sw=4 + * + * $Id: kicontheme.h,v 1.26 2002/10/26 22:08:38 tjansen Exp $ + * + * This file is part of the KDE project, module kdecore. + * Copyright (C) 2000 Geert Jansen + * Antonio Larrosa + * + * This is free software; it comes under the GNU Library General + * Public License, version 2. See the file "COPYING.LIB" for the + * exact licensing terms. + * + */ + +#ifndef __KIconTheme_h_Included__ +#define __KIconTheme_h_Included__ + +#include +#include +#include + +class KConfig; +//class KIconThemeDir; + +class KIconThemePrivate; + +class KIconPrivate; + +/** + * One icon as found by KIconTheme. Also serves as a namespace containing + * icon related constants. + * @see KIconEffect + * @see KIconTheme + * @see KIconLoader + */ +class KIcon +{ +public: + KIcon() { size = 0; } + + /** + * Return true if this icon is valid, false otherwise. + */ + bool isValid() const { return size != 0; } + + /** + * Defines the context of the icon. + */ + enum Context { + Any, ///< Some icon with unknown purpose. + Action, ///< An action icon (e.g. 'save', 'print'). + Application, ///< An icon that represents an application. + Device, ///< An icon that represents a device. + FileSystem, ///< An icon that represents a file system. + MimeType ///< An icon that represents a mime type (or file type). + }; + + /** + * The type of the icon. + */ + enum Type { + Fixed, ///< Fixed-size icon. + Scalable, ///< Scalable-size icon. + Threshold ///< A threshold icon. + }; + + /** + * The type of a match. + */ + enum MatchType { + MatchExact, ///< Only try to find an exact match. + MatchBest ///< Take the best match if there is no exact match. + + }; + + // if you add a group here, make sure to change the config reading in + // KIconLoader too + /** + * The group an an icon. + */ + enum Group { NoGroup=-1, Desktop=0, FirstGroup=Desktop, Toolbar, + MainToolbar, Small, Panel, LastGroup, User }; + + /** + * These are the standard sizes for icons. + */ + enum StdSizes { + /// small icons for menu entries + SizeSmall=16, + /// medium sized icons for the desktop + SizeMedium=32, + /// large sized icons for the panel + SizeLarge=48 }; + + /** + * Defines the possible states of an icon. + */ + enum States { DefaultState, ///< The default state. + ActiveState, ///< Icon is active. + DisabledState, ///< Icon is disabled. + LastState ///< Last state (last constant) + }; + + /** + * This defines an overlay, a semi-transparent image that is + * projected onto the icon. They are used to show that the file + * represented by the icon is, for example, locked, zipped or hidden. + */ + enum Overlays { + LockOverlay=0x100, ///< a file is locked + ZipOverlay=0x200, ///< a file is zipped + LinkOverlay=0x400, ///< a fileis a link + HiddenOverlay=0x800, ///< a file is hidden + ShareOverlay=0x1000, ///< a file is shared + OverlayMask = ~0xff + }; + + /** + * The size in pixels of the icon. + */ + int size; + + /** + * The context of the icon. + */ + Context context; + + /** + * The type of the icon: Fixed, Scalable or Threshold. + **/ + Type type; + + /** + * The threshold in case type == Threshold + */ + int threshold; + + /** + * The full path of the icon. + */ + QString path; + +private: + KIconPrivate *d; +}; + +inline KIcon::Group& operator++(KIcon::Group& group) { group = static_cast(group+1); return group; } +inline KIcon::Group operator++(KIcon::Group& group,int) { KIcon::Group ret = group; ++group; return ret; } + +/** + * Class to use/access icon themes in KDE. This class is used by the + * iconloader but can be used by others too. + * @see KIconLoader + */ +class KIconTheme +{ +public: + /** + * Load an icon theme by name. + * @param name the name of the theme (e.g. "hicolor" or "keramik") + * @param appName the name of the application. Can be null. This argument + * allows applications to have themed application icons. + */ + KIconTheme(const QString& name, const QString& appName=QString::null); + ~KIconTheme(); + + /** + * The stylized name of the icon theme. + * @return the (human-readable) name of the theme + */ + QString name() const { return mName; } + + /** + * A description for the icon theme. + * @return a human-readable description of the theme, QString::null + * if there is none + */ + QString description() const { return mDesc; } + + /** + * Return the name of the "example" icon. This can be used to + * present the theme to the user. + * @return the name of the example icon, QString::null if there is none + */ + QString example() const; + + /** + * Return the name of the screenshot. + * @return the name of the screenshot, QString::null if there is none + */ + QString screenshot() const; + + /** + * Returns the name of this theme's link overlay. + * @return the name of the link overlay + */ + QString linkOverlay() const; + + /** + * Returns the name of this theme's zip overlay. + * @return the name of the zip overlay + */ + QString zipOverlay() const; + + /** + * Returns the name of this theme's lock overlay. + * @return the name of the lock overlay + */ + QString lockOverlay() const; + + /** + * Returns the name of this theme's share overlay. + * @return the name of the share overlay + * @since 3.1 + */ + QString shareOverlay () const; + + /** + * Returns the toplevel theme directory. + * @return the directory of the theme + */ + QString dir() const { return mDir; } + + /** + * The themes this icon theme falls back on. + * @return a list of icon themes that are used as fall-backs + */ + QStringList inherits() const { return mInherits; } + + /** + * The icon theme exists? + * @return true if the icon theme is valid + */ + bool isValid() const; + + /** + * The icon theme should be hidden to the user? + * @return true if the icon theme is hidden + * @since 3.1 + */ + bool isHidden() const; + + /** + * The minimum display depth required for this theme. This can either + * be 8 or 32. + * @return the minimum bpp (8 or 32) + */ + int depth() const { return mDepth; } + + /** + * The default size of this theme for a certain icon group. + * @param group The icon group. See @ref #KIcon::Group. + * @return The default size in pixels for the given icon group. + */ + int defaultSize(KIcon::Group group) const; + + /** + * Query available sizes for a group. + * @param group The icon group. See @ref #KIcon::Group. + * @return a list of available sized for the given group + */ + QValueList querySizes(KIcon::Group group) const; + + /** + * Query available icons for a size and context. + * @param size the size of the icons + * @param context the context of the icons + * @return the list of icon names + */ + QStringList queryIcons(int size, KIcon::Context context = KIcon::Any) const; + + /** + * Query available icons for a context and preferred size. + * @param size the size of the icons + * @param context the context of the icons + * @return the list of icon names + */ + QStringList queryIconsByContext(int size, KIcon::Context context = KIcon::Any) const; + + + /** + * Lookup an icon in the theme. + * @param name The name of the icon, without extension. + * @param size The desired size of the icon. + * @param match The matching mode. KIcon::MatchExact returns an icon + * only if matches exactly. KIcon::MatchBest returns the best matching + * icon. + * @return A KIcon class that describes the icon. If an icon is found, + * @see KIcon::isValid will return true, and false otherwise. + */ + KIcon iconPath(const QString& name, int size, KIcon::MatchType match) const; + + /** + * List all icon themes installed on the system, global and local. + * @return the list of all icon themes + */ + static QStringList list(); + + /** + * Returns the current icon theme. + * @return the name of the current theme + */ + static QString current(); + + /** + * Reconfigure the theme. + */ + static void reconfigure(); + + /** + * Returns the default icon theme. + * @return the name of the default theme name + * @since 3.1 + */ + static QString defaultThemeName(); + +private: + int mDefSize[8]; + QValueList mSizes[8]; + + int mDepth; + QString mDir, mName, mDesc; + QStringList mInherits; +// QPtrList mDirs; + KIconThemePrivate *d; + + static QString *_theme; + static QStringList *_theme_list; +}; + +#endif diff --git a/extra/kde313/kkeyserver_x11.h b/extra/kde313/kkeyserver_x11.h new file mode 100644 index 0000000..dfb7445 --- /dev/null +++ b/extra/kde313/kkeyserver_x11.h @@ -0,0 +1,435 @@ +#ifndef _KKEYSERVER_X11_H +#define _KKEYSERVER_X11_H + +#include "kshortcut.h" +#include "kkeynative.h" + +/** + * A collection of functions for the conversion of key presses and + * their modifiers from the window system (X11) specific format + * to the generic format and vice-versa. + */ +namespace KKeyServer +{ + /** + * Supplement enum KKey::ModFlag + * @since 3.1 + */ + enum ExtraModFlag { MODE_SWITCH = 0x2000 }; + + struct CodeMod { int code, mod; }; + + /** + * Represents a key symbol. + * @see KKey + * @see KKeyServer + */ + struct Sym + { + public: + /// the actual value of the symbol + uint m_sym; + + /// Creates a null symbol. + Sym() + { m_sym = 0; } + /** + * Creates asymbol with the given value. + * @param sym the value + */ + Sym( uint sym ) + { m_sym = sym; } + /** + * Creates a symbol from the given string description. + * @param s the description of the symbol + * @see toString() + */ + Sym( const QString& s ) + { init( s ); } + + /** + * Initializes the symbol with the given Qt key code. + * @param keyQt the qt key code + * @return true if succesful, false otherwise + * @see Qt::Key + */ + bool initQt( int keyQt ); + + /** + * Initializes the key with the given string description. + * @param s the string description + * @return true if succesful, false otherwise + * @see toString() + */ + bool init( const QString &s ); + + /** + * Returns the qt key code of the symbol. + * @return the qt key code + */ + int qt() const; + + /** + * @internal + */ + QString toStringInternal() const; + + /** + * Returns the string representation of the symbol. + * @return the string representation of the symbol + */ + QString toString() const; + + /** + * Returns the mods that are required for this symbol as + * ORed @ref KKey::ModFlag's. For example, Break requires a + * Ctrl to be valid. + * @return the required @ref KKey::ModFlag's + * @see KKey::ModFlag + */ + uint getModsRequired() const; + + /** + * TODO: please find out what this method does and document it + */ + uint getSymVariation() const; + + /** + * Casts the symbol to its integer representation. + */ + operator uint() const { return m_sym; } + + /** + * Overloaded operator to convert ints to Sym. + */ + Sym& operator =( uint sym ) { m_sym = sym; return *this; } + + private: + QString toString( bool bUserSpace ) const; + + static void capitalizeKeyname( QString& ); + }; + + /** + * Represents a key press. + * @see KKey + */ + struct Key + { + /// Code for native Keys in Qt + enum { CODE_FOR_QT = 256 }; + + /// The code of the key + uint m_code; + + /// The modifiers of the key + uint m_mod; + + /// The symbol of the key + uint m_sym; + + /** + * Initializes the key with a @ref KKey. + * @param key the key to get the data from + * @param bQt true to take the Qt keycode, false + * for the native key code + * @see Qt::Key + * @see KKeyNative + */ + bool init( const KKey& key, bool bQt ); + + /** + * Checks whether the key code is a native code. + * @return true if native code of the window system, + * false if it is a Qt keycode + * @see Qt::Key + * @see KKeyNative + */ + bool isNative() const { return m_code != CODE_FOR_QT; } + + /** + * Returns the code of the key. + * @return the code of the key + */ + uint code() const { return m_code; } + + /** + * Returns the modifiers of the key. + * @return the modifiers of the key + */ + uint mod() const { return m_mod; } + + /** + * Returns the symbol of the key. + * @return the symbol of the key + */ + uint sym() const { return m_sym; } + + /** + * Returns the qt key code. + * @return the qt key code + */ + int keyCodeQt() const { return (int) m_sym; } + + /** + * Sets the qt key code. + * @param keyQt the qt key code + */ + void setKeycodeQt( int keyQt ) + { m_code = CODE_FOR_QT; m_sym = keyQt; } + + /** + * Initializes this key with a @ref KKeyNative. + * @return this key + */ + Key& operator =( const KKeyNative& key ); + + /** + * Compares this key with the given Key object. Returns a + * negative number if the given Key is larger, 0 if they + * are equal and a positive number this Key is larger. The + * returned value is the difference between the symbol, modifier + * or code, whatever is non-zero first. + * + * @param key the key to compare with this key + * @return a negative number if the given Key is larger, 0 if + * they are equal and a positive number this Key is larger + */ + int compare( const Key& key ) const; + + /** + * Compares the symbol, modifiers and code of both keys. + * @see compare() + */ + bool operator ==( const Key& b ) const + { return compare( b ) == 0; } + + /** + * Compares the symbol, modifiers and code of both keys. + * @see compare() + */ + bool operator <( const Key& b ) const + { return compare( b ) < 0; } + + /** + * Converts this Key to a KKey. + * @return the KKey + */ + KKey key() const; + }; + + /** + * TODO: please document this class + */ + struct Variations + { + enum { MAX_VARIATIONS = 4 }; + + Key m_rgkey[MAX_VARIATIONS]; + uint m_nVariations; + + Variations() { m_nVariations = 0; } + + void init( const KKey&, bool bQt ); + + uint count() const { return m_nVariations; } + const Key& key( uint i ) const { return m_rgkey[i]; } + }; + + /// TODO: please document + bool initializeMods(); + + /** + * Returns the equivalent X modifier mask of the given modifier flag. + * @param modFlag the generic flags to check + * @return the window system specific flags + */ + uint modX( KKey::ModFlag modFlag ); + + /** + * Returns true if the current keyboard layout supports the Win key. + * Specifically, whether the Super or Meta keys are assigned to an X modifier. + * @return true if the keyboard has a Win key + * @see modXWin() + */ + bool keyboardHasWinKey(); + + /** + * Returns the X11 Shift modifier mask/flag. + * @return the X11 Shift modifier mask/flag. + * @see accelModMaskX() + */ + uint modXShift(); + + /** + * Returns the X11 Lock modifier mask/flag. + * @return the X11 Lock modifier mask/flag. + * @see accelModMaskX() + */ + uint modXLock(); + + /** + * Returns the X11 Ctrl modifier mask/flag. + * @return the X11 Ctrl modifier mask/flag. + * @see accelModMaskX() + */ + uint modXCtrl(); + + /** + * Returns the X11 Alt (Mod1) modifier mask/flag. + * @return the X11 Alt (Mod1) modifier mask/flag. + * @see accelModMaskX() + */ + uint modXAlt(); + + /** + * Returns the X11 NumLock modifier mask/flag. + * @return the X11 NumLock modifier mask/flag. + * @see accelModMaskX() + */ + uint modXNumLock(); + + /** + * Returns the X11 Win (Mod3) modifier mask/flag. + * @return the X11 Win (Mod3) modifier mask/flag. + * @see keyboardHasWinKey() + * @see accelModMaskX() + */ + uint modXWin(); + + /** + * Returns the X11 ScrollLock modifier mask/flag. + * @return the X11 ScrollLock modifier mask/flag. + * @see accelModMaskX() + */ + uint modXScrollLock(); + + /** + * Returns bitwise OR'ed mask containing Shift, Ctrl, Alt, and + * Win (if available). + * @see modXShift() + * @see modXLock() + * @see modXCtrl() + * @see modXAlt() + * @see modXNumLock() + * @see modXWin() + * @see modXScrollLock() + */ + uint accelModMaskX(); + + /** + * Extracts the symbol from the given Qt key and + * converts it to a symbol. + * @param keyQt the qt key code + * @param sym if successful, the symbol will be written here + * @return true if successful, false otherwise + * @see Qt::Key + * @see Sym + */ + bool keyQtToSym( int keyQt, uint& sym ); + + /** + * Extracts the modifiers from the given Qt key and + * converts them in a mask of ORed @ref KKey::ModFlag modifiers. + * @param keyQt the qt key code + * @param mod if successful, the modifiers will be written here + * @return true if successful, false otherwise + * @see Qt::Key + */ + bool keyQtToMod( int keyQt, uint& mod ); + + /** + * Converts the given symbol to a Qt key code. + * @param sym the symbol + * @param keyQt if successful, the qt key code will be written here + * @return true if successful, false otherwise + * @see Qt::Key + * @see Sym + */ + bool symToKeyQt( uint sym, int& keyQt ); + + /** + * Converts the mask of ORed @ref KKey::ModFlag modifiers to + * a mask of ORed Qt key code modifiers. + * @param the mask of @ref KKey::ModFlag modifiers + * @param the mask of Qt key code modifiers will be written here, + * if successful + * @return true if successful, false otherwise + * @see Qt::Key + * @see KKey + */ + bool modToModQt( uint mod, int& modQt ); + + /** + * Converts the mask of ORed @ref KKey::ModFlag modifiers to + * a mask of ORed X11 modifiers. + * @param the mask of @ref KKey::ModFlag modifiers + * @param the mask of X11 modifiers will be written here, + * if successful + * @return true if successful, false otherwise + * @see KKey + */ + bool modToModX( uint mod, uint& modX ); + + /** + * Converts the mask of ORed X11 modifiers to + * a mask of ORed Qt key code modifiers. + * @param the mask of X11 modifiers + * @param the mask of Qt key code modifiers will be written here + * if successful + * @return true if successful, false otherwise + * @see Qt::Key + */ + bool modXToModQt( uint modX, int& modQt ); + + /** + * Converts the mask of ORed X11 modifiers to + * a mask of ORed @ref KKey::ModFlag modifiers. + * @param the mask of X11 modifiers + * @param the mask of @ref KKey::ModFlag modifiers will be written here, + * if successful + * @return true if successful, false otherwise + * @see KKey + */ + bool modXToMod( uint modX, uint& mod ); + + /** + * Converts a X11 key code and a mask of ORed X11 modifiers + * into a X11 symbol. + * converts it to a symbol. + * @param codeX the X11 key code + * @param modX the mask of ORed X11 modifiers + * @param sym if successful, the X11 symbol will be written here + * @return true if successful, false otherwise + * @see Qt::Key + * @see Sym + */ + bool codeXToSym( uchar codeX, uint modX, uint& symX ); + + /** + * @internal + */ + QString modToStringInternal( uint mod ); + + /** + * Converts the mask of ORed @ref KKey::ModFlag modifiers to a + * user-readable string. + * @param mod the mask of ORed @ref KKey::ModFlag modifiers + * @return the user-readable string + */ + QString modToStringUser( uint mod ); + + /** + * @internal + * Unimplemented? + */ + bool stringToSymMod( const QString&, uint& sym, uint& mod ); + + /** + * @internal + * Unimplemented? + */ + void keyQtToKeyX( uint keyCombQt, unsigned char *pKeyCodeX, uint *pKeySymX, uint *pKeyModX ); +}; + +#endif // !_KKEYSERVER_X11_H diff --git a/extra/kde313/konsole_part.h b/extra/kde313/konsole_part.h new file mode 100644 index 0000000..ba89800 --- /dev/null +++ b/extra/kde313/konsole_part.h @@ -0,0 +1,223 @@ +/* + This file is part of the KDE system + Copyright (C) 1999,2000 Boloni Laszlo + + 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. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. + */ + +#ifndef __KONSOLE_PART_H__ +#define __KONSOLE_PART_H__ + +#include +#include + + +#include + +#include + +//#include "schema.h" +//#include "session.h" + +class KInstance; +class konsoleBrowserExtension; +class QPushButton; +class QSpinBox; +class KPopupMenu; +class QCheckBox; +class KRootPixmap; +class KToggleAction; +class KSelectAction; + +namespace KParts { class GUIActivateEvent; } + +class konsoleFactory : public KParts::Factory +{ + Q_OBJECT +public: + konsoleFactory(); + virtual ~konsoleFactory(); + + virtual KParts::Part* createPartObject(QWidget *parentWidget = 0, const char *widgetName = 0, + QObject* parent = 0, const char* name = 0, + const char* classname = "KParts::Part", + const QStringList &args = QStringList()); + + static KInstance *instance(); + + private: + static KInstance *s_instance; + static KAboutData *s_aboutData; +}; + +////////////////////////////////////////////////////////////////////// + +class konsolePart: public KParts::ReadOnlyPart, public TerminalInterface +{ + Q_OBJECT + public: + konsolePart(QWidget *parentWidget, const char *widgetName, QObject * parent, const char *name, const char *classname = 0); + virtual ~konsolePart(); + +signals: + void processExited(); + void receivedData( const QString& s ); + protected: + virtual bool openURL( const KURL & url ); + virtual bool openFile() {return false;} // never used + virtual bool closeURL() {return true;} + virtual void guiActivateEvent( KParts::GUIActivateEvent * event ); + + protected slots: + void showShell(); + void slotProcessExited(); + void slotReceivedData( const QString& s ); + +// void doneSession(TESession*); + void sessionDestroyed(); +// void configureRequest(TEWidget*,int,int x,int y); + void updateTitle(); + void enableMasterModeConnections(); + + private slots: + void emitOpenURLRequest(const QString &url); + + void readProperties(); + void saveProperties(); + + void sendSignal(int n); + void closeCurrentSession(); + + void notifySize(int,int); + + void slotToggleFrame(); + void slotSelectScrollbar(); + void slotSelectFont(); + void schema_menu_check(); + void keytab_menu_activated(int item); + void updateSchemaMenu(); + void setSchema(int n); + void pixmap_menu_activated(int item); + void schema_menu_activated(int item); + void slotHistoryType(); + void slotSelectBell(); + void slotSelectLineSpacing(); + void slotBlinkingCursor(); + void slotWordSeps(); + void fontNotFound(); + + private: + konsoleBrowserExtension *m_extension; + KURL currentURL; + + void makeGUI(); + void applySettingsToGUI(); + + void setFont(int fontno); +// void setSchema(ColorSchema* s); + void updateKeytabMenu(); + + bool doOpenStream( const QString& ); + bool doWriteStream( const QByteArray& ); + bool doCloseStream(); + + QWidget* parentWidget; +// TEWidget* te; +// TESession* se; +// ColorSchemaList* colors; + KRootPixmap* rootxpm; + + KToggleAction* blinkingCursor; + KToggleAction* showFrame; + + KSelectAction* selectBell; + KSelectAction* selectFont; + KSelectAction* selectLineSpacing; + KSelectAction* selectScrollbar; + + KPopupMenu* m_keytab; + KPopupMenu* m_schema; + KPopupMenu* m_signals; + KPopupMenu* m_options; + KPopupMenu* m_popupMenu; + + QFont defaultFont; + + QString pmPath; // pixmap path + QString s_schema; + QString s_kconfigSchema; + QString s_word_seps; // characters that are considered part of a word + QString fontNotFound_par; + + bool b_framevis:1; + bool b_histEnabled:1; + + int curr_schema; // current schema no + int n_bell; + int n_font; + int n_keytab; + int n_render; + int n_scroll; + unsigned m_histSize; + bool m_runningShell; + bool m_streamEnabled; +public: + // these are the implementations for the TermEmuInterface + // functions... + void startProgram( const QString& program, + const QStrList& args ); + void showShellInDir( const QString& dir ); + void sendInput( const QString& text ); +}; + +////////////////////////////////////////////////////////////////////// + +/*class HistoryTypeDialog : public KDialogBase +{ + Q_OBJECT +public: + HistoryTypeDialog(const HistoryType& histType, + unsigned int histSize, + QWidget *parent); + +public slots: + void slotDefault(); + void slotSetUnlimited(); + void slotHistEnable(bool); + + unsigned int nbLines() const; + bool isOn() const; + +protected: + QCheckBox* m_btnEnable; + QSpinBox* m_size; + QPushButton* m_setUnlimited; +};*/ + +////////////////////////////////////////////////////////////////////// + +class konsoleBrowserExtension : public KParts::BrowserExtension +{ + Q_OBJECT + friend class konsolePart; + public: + konsoleBrowserExtension(konsolePart *parent); + virtual ~konsoleBrowserExtension(); + + void emitOpenURLRequest(const KURL &url); +}; + +#endif diff --git a/extra/kde313/kpanelmenu.h b/extra/kde313/kpanelmenu.h new file mode 100644 index 0000000..7901df3 --- /dev/null +++ b/extra/kde313/kpanelmenu.h @@ -0,0 +1,181 @@ +/***************************************************************** + +Copyright (c) 1996-2000 the kicker authors. See file AUTHORS. + (c) 2001 Michael Goffioul + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN +AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +******************************************************************/ + +#ifndef __KPANELMENU_H__ +#define __KPANELMENU_H__ + +#include +#include +#include + +class KPanelMenuPrivate; + +/** + * Base class to build dynamically loaded menu entries for the K-menu, or the panel. + * + * This class allows to build menu entries that will be dynamically added either to + * the K-menu, or to the panel as a normal button. These dynamic menus are located + * in shared libraries that will be loaded at runtime by Kicker (the KDE panel). + * + * To build such a menu, you have to inherit this class and implement the pure virtual + * functions #initialize() and @ref slotExec(). You also have to provide a factory + * object in your library, see @ref KLibFactory. This factory is only used to construct + * the menu object. + * + * Finally, you also have to provide a desktop file describing your dynamic menu. The + * relevant entries are: Name, Comment, Icon and X-KDE-Library (which contains the + * library name without any extension). This desktop file has to be installed in + * $KDEDIR/share/apps/kicker/menuext/. + * + * @short Base class to build dynamically loaded menu entries for the K-menu, or the panel. + * @author The kicker maintainer, Michael Goffioul + */ +class KPanelMenu : public KPopupMenu +{ + Q_OBJECT + +public: + /** + * Construct a KPanelMenu object. This is the normal constructor to use when + * building extrernal menu entries. + */ + KPanelMenu(QWidget *parent=0, const char *name=0); + /** + * Constructor used internally by Kicker. You don't really want to use it. + * @param startDir a directory to associate with this menu + * @see path(), setPath() + */ + KPanelMenu(const QString &startDir, QWidget *parent=0, const char *name=0); + /** + * Destructor. + */ + virtual ~KPanelMenu(); + + /** + * Get the directory path associated with this menu, or QString::null if + * there's no such associated path. + * @return the associated directory path + * @see setPath() + */ + const QString& path() const; + /** + * Set a directory path to be associated with this menu. + * @param p the directory path + * @see path() + */ + void setPath(const QString &p); + /** + * Tell if the menu has been initialized, that is it already contains items. + * This is useful when you need to know if you have to clear the menu, or to + * fill it. + * @return the initial state + * @see setInitialized(), initialize() + */ + bool initialized() const; + /** + * Set the initial state. Set it to true when you menu is filled with the items + * you want. + * @param on the initial state + * @see initialized(), initialize() + */ + void setInitialized(bool on); + + /** + * Disable the automatic clearing of the menu. Kicker uses a cache system for + * its menus. After a specific configurable delay, the menu will be cleared. + * Use this function if you want to disable kicker's cache system, and avoid + * the clearing of your menu. + */ + void disableAutoClear(); + +public slots: + /** + * Reinitialize the menu: the menu is first cleared, the initial state is set + * to false, and finally #initialize() is called. Use this if you want to + * refill your menu immediately. + */ + void reinitialize(); + /** + * Deinitialize the menu: the menu is cleared and the initialized state is set to + * false. #initialize() is NOT called. It will be called before the menu is + * next shown, however. Use this slot if you want a delayed reinitialization. + * @since 3.1 + */ + void deinitialize(); + +protected slots: + /** + * This slot is called just before the menu is shown. This allows your menu + * to update itself if needed. However you should instead re-implement + * #initialize to provide this feature. This function is responsible for + * the cache system handling, so if you re-implement it, you should call + * the base function also. Calls #initialize(). + * @see disableAutoClear() + */ + virtual void slotAboutToShow(); + /** + * This is slot is called when an item from the menu has been selected. Your + * applet is then supposed to perform some action. You must re-implement this + * function. + * @param id the ID associated with the selected item + */ + virtual void slotExec(int id) = 0; + /** + * This slots is called to initialize the menu. It is called automatically by + * @ref slotAboutToShow(). By re-implementing this functions, you can reconstruct + * the menu before it is being shown. At the end of this function, you should + * call @ref setInitialize() with true to tell the system that the menu is OK. + * You applet must re-implement this function. + * @see slotAboutToShow(), initialized(), setInitialized() + */ + virtual void initialize() = 0; + /** + * Clears the menu, and update the initial state accordingly. + * @see initialized() + */ + void slotClear(); + +protected: + /** + * Re-implemented for internal reasons. + */ + virtual void hideEvent(QHideEvent *ev); + /** + * For internal use only. Used by constructors. + */ + void init(const QString& path = QString::null); + +protected: + virtual void virtual_hook( int id, void* data ); +private: + void internalInitialize(); + KPanelMenuPrivate *d; +}; + +//#define K_EXPORT_KICKER_MENUEXT( libname, classname ) \ +// K_EXPORT_COMPONENT_FACTORY( \ +// kickermenu_##libname, \ +// KGenericFactory("libkickermenu_" #libname) ) + +#endif diff --git a/extra/kde313/krecentdirs.h b/extra/kde313/krecentdirs.h new file mode 100644 index 0000000..71f771b --- /dev/null +++ b/extra/kde313/krecentdirs.h @@ -0,0 +1,68 @@ +/* -*- c++ -*- + * Copyright (C)2000 Waldo Bastian + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * + */ +#ifndef __KRECENTDIRS_H +#define __KRECENTDIRS_H + +#include + +/** + * The goal of this class is to make sure that, when the user needs to + * specify a file via the file selection dialog, this dialog will start + * in the directory most likely to contain the desired files. + * + * This works as follows: Each time the file selection dialog is + * shown, the programmer can specify a "file-class". The file-dialog will + * then start with the directory associated with this file-class. When + * the dialog closes, the directory currently shown in the file-dialog + * will be associated with the file-class. + * + * A file-class can either start with ':' or with '::'. If it starts with + * a single ':' the file-class is specific to the current application. + * If the file-class starts with '::' it is global to all applications. + */ +class KRecentDirs +{ +public: + /** + * Returns a list of directories associated with this file-class. + * The most recently used directory is at the front of the list. + */ + static QStringList list(const QString &fileClass); + + /** + * Returns the most recently used directory accociated with this file-class. + */ + static QString dir(const QString &fileClass); + + /** + * Associates @p directory with @p fileClass + */ + static void add(const QString &fileClass, const QString &directory); +}; + +#endif diff --git a/extra/kde313/ksycocafactory.h b/extra/kde313/ksycocafactory.h new file mode 100644 index 0000000..15554eb --- /dev/null +++ b/extra/kde313/ksycocafactory.h @@ -0,0 +1,137 @@ +/* This file is part of the KDE libraries + * Copyright (C) 1999 Waldo Bastian + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License version 2 as published by the Free Software Foundation; + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public License + * along with this library; see the file COPYING.LIB. If not, write to + * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA. + **/ + +#ifndef __ksycocafactory_h__ +#define __ksycocafactory_h__ "$Id: ksycocafactory.h,v 1.13 2002/09/21 15:07:27 tjansen Exp $" + +#include "ksycocatype.h" +#include "ksycocaentry.h" + +#include +#include +class KSycoca; +class QStringList; +class QString; +class KSycocaDict; +class KSycocaResourceList; + +typedef QDict KSycocaEntryDict; + +/** + * @internal + * Base class for sycoca factories + */ +class KSycocaFactory +{ +public: + virtual KSycocaFactoryId factoryId() const = 0; + +protected: // virtual class + /** + * Create a factory which can be used to lookup from/create a database + * (depending on KSycoca::isBuilding()) + */ + KSycocaFactory( KSycocaFactoryId factory_id ); + +public: + virtual ~KSycocaFactory(); + + /** + * @return the position of the factory in the sycoca file + */ + int offset() { return mOffset; } + + /** + * @return the dict, for special use by KBuildSycoca + */ + KSycocaEntryDict * entryDict() { return m_entryDict; } + + /** + * Construct an entry from a config file. + * To be implemented in the real factories. + */ + virtual KSycocaEntry *createEntry(const QString &file, const char *resource) = 0; + + /** + * Add an entry + */ + virtual void addEntry(KSycocaEntry *newEntry, const char *resource); + + /** + * Read an entry from the database + */ + virtual KSycocaEntry *createEntry(int offset)=0; + + /** + * Get a list of all entries from the database. + */ + KSycocaEntry::List allEntries(); + + /** + * Saves all entries it maintains as well as index files + * for these entries to the stream 'str'. + * + * Also sets mOffset to the starting position. + * + * The stream is positioned at the end of the last index. + * + * Don't forget to call the parent first when you override + * this function. + */ + virtual void save(QDataStream &str); + + /** + * Writes out a header to the stream 'str'. + * The baseclass positions the stream correctly. + * + * Don't forget to call the parent first when you override + * this function. + */ + virtual void saveHeader(QDataStream &str); + + /** + * @return the resources for which this factory is responsible. + */ + virtual const KSycocaResourceList * resourceList() const { return m_resourceList; } + +private: + int mOffset; + +protected: + int m_sycocaDictOffset; + int m_beginEntryOffset; + int m_endEntryOffset; + QDataStream *m_str; + + KSycocaResourceList *m_resourceList; + KSycocaEntryDict *m_entryDict; + KSycocaDict *m_sycocaDict; +protected: + virtual void virtual_hook( int id, void* data ); +}; + +/** This, instead of a typedef, allows to declare "class ..." in header files + * @internal + */ +class KSycocaFactoryList : public QPtrList +{ +public: + KSycocaFactoryList() { } +}; + +#endif diff --git a/extra/kde313/ktoolbarbutton.h b/extra/kde313/ktoolbarbutton.h new file mode 100644 index 0000000..121ecc6 --- /dev/null +++ b/extra/kde313/ktoolbarbutton.h @@ -0,0 +1,317 @@ +/* This file is part of the KDE libraries + Copyright (C) 1997, 1998 Stephan Kulow (coolo@kde.org) + (C) 1997, 1998 Sven Radej (radej@kde.org) + (C) 1997, 1998 Mark Donohoe (donohoe@kde.org) + (C) 1997, 1998 Matthias Ettrich (ettrich@kde.org) + (C) 2000 Kurt Granroth (granroth@kde.org) + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License version 2 as published by the Free Software Foundation. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +// $Id: ktoolbarbutton.h,v 1.26 2002/09/28 15:16:22 tjansen Exp $ +#ifndef _KTOOLBARBUTTON_H +#define _KTOOLBARBUTTON_H + +#include +#include +#include +#include +#include + +class KToolBar; +class KToolBarButtonPrivate; +class KInstance; +class QEvent; +class QPopupMenu; +class QPainter; + +/** + * A toolbar button. This is used internally by @ref KToolBar, use the + * KToolBar methods instead. + * @internal + */ +class KToolBarButton : public QToolButton +{ + Q_OBJECT + +public: + /** + * Construct a button with an icon loaded by the button itself. + * This will trust the button to load the correct icon with the + * correct size. + * + * @param icon Name of icon to load (may be absolute or relative) + * @param id Id of this button + * @param parent This button's parent + * @param name This button's internal name + * @param txt This button's text (in a tooltip or otherwise) + */ + KToolBarButton(const QString& icon, int id, QWidget *parent, + const char *name=0L, const QString &txt=QString::null, + KInstance *_instance = KGlobal::instance()); + + /** + * Construct a button with an existing pixmap. It is not + * recommended that you use this as the internal icon loading code + * will almost always get it "right". + * + * @param icon Name of icon to load (may be absolute or relative) + * @param id Id of this button + * @param parent This button's parent + * @param name This button's internal name + * @param txt This button's text (in a tooltip or otherwise) + */ + KToolBarButton(const QPixmap& pixmap, int id, QWidget *parent, + const char *name=0L, const QString &txt=QString::null); + + /** + * Construct a separator button + * + * @param parent This button's parent + * @param name This button's internal name + */ + KToolBarButton(QWidget *parent=0L, const char *name=0L); + + /** + * Standard destructor + */ + ~KToolBarButton(); + +#ifndef KDE_NO_COMPAT + /** + * @deprecated + * Set the pixmap directly for this button. This pixmap should be + * the active one... the dimmed and disabled pixmaps are constructed + * based on this one. However, don't use this function unless you + * are positive that you don't want to use @ref setIcon. + * + * @param pixmap The active pixmap + */ + // this one is from QButton, so #ifdef-ing it out doesn't break BC + virtual void setPixmap(const QPixmap &pixmap); + + /** + * @deprecated + * Force the button to use this pixmap as the default one rather + * then generating it using effects. + * + * @param pixmap The pixmap to use as the default (normal) one + */ + void setDefaultPixmap(const QPixmap& pixmap); + + /** + * @deprecated + * Force the button to use this pixmap when disabled one rather then + * generating it using effects. + * + * @param pixmap The pixmap to use when disabled + */ + void setDisabledPixmap(const QPixmap& pixmap); +#endif + + /** + * Set the text for this button. The text will be either used as a + * tooltip (IconOnly) or will be along side the icon + * + * @param text The button (or tooltip) text + */ + virtual void setText(const QString &text); + + /** + * Set the icon for this button. The icon will be loaded internally + * with the correct size. This function is preferred over @ref setIconSet + * + * @param icon The name of the icon + */ + virtual void setIcon(const QString &icon); + + /// @since 3.1 + virtual void setIcon( const QPixmap &pixmap ) + { QToolButton::setIcon( pixmap ); } + + /** + * Set the pixmaps for this toolbar button from a QIconSet. + * If you call this you don't need to call any of the other methods + * that set icons or pixmaps. + * @param iconset The iconset to use + */ + virtual void setIconSet( const QIconSet &iconset ); + +#ifndef KDE_NO_COMPAT + /** + * @deprecated + * Set the active icon for this button. The pixmap itself is loaded + * internally based on the icon size... .. the disabled and default + * pixmaps, however will only be constructed if @ref #generate is + * true. This function is preferred over @ref setPixmap + * + * @param icon The name of the active icon + * @param generate If true, then the other icons are automagically + * generated from this one + */ + void setIcon(const QString &icon, bool /*generate*/ ) { setIcon( icon ); } + + /** + * @deprecated + * Force the button to use this icon as the default one rather + * then generating it using effects. + * + * @param icon The icon to use as the default (normal) one + */ + void setDefaultIcon(const QString& icon); + + /** + * @deprecated + * Force the button to use this icon when disabled one rather then + * generating it using effects. + * + * @param icon The icon to use when disabled + */ + void setDisabledIcon(const QString& icon); +#endif + + /** + * Turn this button on or off + * + * @param flag true or false + */ + void on(bool flag = true); + + /** + * Toggle this button + */ + void toggle(); + + /** + * Turn this button into a toggle button or disable the toggle + * aspects of it. This does not toggle the button itself. + * Use @ref toggle() for that. + * + * @param toggle true or false + */ + void setToggle(bool toggle = true); + + /** + * Return a pointer to this button's popup menu (if it exists) + */ + QPopupMenu *popup(); + + /** + * Give this button a popup menu. There will not be a delay when + * you press the button. Use @ref setDelayedPopup if you want that + * behavior. You can also make the popup-menu + * "sticky", i.e. visible until a selection is made or the mouse is + * clikced elsewhere, by simply setting the second argument to true. + * This "sticky" button feature allows you to make a selection without + * having to press and hold down the mouse while making a selection. + * + * @param p The new popup menu + * @param toggle if true, makes the button "sticky" (toggled) + */ + void setPopup (QPopupMenu *p, bool toggle = false); + + /** + * Gives this button a delayed popup menu. + * + * This function allows you to add a delayed popup menu to the button. + * The popup menu is then only displayed when the button is pressed and + * held down for about half a second. You can also make the popup-menu + * "sticky", i.e. visible until a selection is made or the mouse is + * clikced elsewhere, by simply setting the second argument to true. + * This "sticky" button feature allows you to make a selection without + * having to press and hold down the mouse while making a selection. + * + * @param p the new popup menu + * @param toggle if true, makes the button "sticky" (toggled) + */ + void setDelayedPopup(QPopupMenu *p, bool toggle = false); + + /** + * Turn this button into a radio button + * + * @param f true or false + */ + void setRadio(bool f = true); + + /** + * Toolbar buttons naturally will assume the global styles + * concerning icons, icons sizes, etc. You can use this function to + * explicitely turn this off, if you like. + * + * @param no_style Will disable styles if true + */ + void setNoStyle(bool no_style = true); + +signals: + void clicked(int); + void doubleClicked(int); + void pressed(int); + void released(int); + void toggled(int); + void highlighted(int, bool); + +public slots: + /** + * This slot should be called whenever the toolbar mode has + * potentially changed. This includes such events as text changing, + * orientation changing, etc. + */ + void modeChange(); + virtual void setTextLabel(const QString&, bool tipToo); + +protected: + void paletteChange(const QPalette &); + void leaveEvent(QEvent *e); + void enterEvent(QEvent *e); + void drawButton(QPainter *p); + bool eventFilter (QObject *o, QEvent *e); + void showMenu(); + QSize sizeHint() const; + QSize minimumSizeHint() const; + QSize minimumSize() const; + + /// @since 3.1 + bool isRaised() const; + /// @since 3.1 + bool isActive() const; + /// @since 3.1 + int iconTextMode() const; + +protected slots: + void slotClicked(); + void slotPressed(); + void slotReleased(); + void slotToggled(); + void slotDelayTimeout(); + +protected: + virtual void virtual_hook( int id, void* data ); +private: + KToolBarButtonPrivate *d; +}; + +/** +* List of @ref KToolBarButton objects. +* @internal +* @version $Id: ktoolbarbutton.h,v 1.26 2002/09/28 15:16:22 tjansen Exp $ +*/ +class KToolBarButtonList : public QIntDict +{ +public: + KToolBarButtonList(); + ~KToolBarButtonList() {} +}; + +#endif diff --git a/extra/kde313/kurifilter.h b/extra/kde313/kurifilter.h new file mode 100644 index 0000000..1d2ae39 --- /dev/null +++ b/extra/kde313/kurifilter.h @@ -0,0 +1,602 @@ +/* + * This file is part of the KDE libraries + * Copyright (C) 2000 Yves Arrouye + * + * This library 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. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public License + * along with this library; see the file COPYING.LIB. If not, write to + * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA. + **/ + +#ifndef __kurifilter_h__ +#define __kurifilter_h__ "$Id: kurifilter.h,v 1.27 2002/10/30 09:37:39 neil Exp $" + +#include +#include + +#include + +class KURIFilterPrivate; +class KURIFilterDataPrivate; + +class QStringList; +class KCModule; + +/** +* This is a basic message object used for exchanging filtering +* information between the filter plugins and the application +* whenever the application requires more information about the +* URI than just a filtered version of it. Any application can +* create an instance of this class and send it to @ref KURIFilter +* to have the filter plugins fill the necessary information. +* +* @sect Example +*
+*   QString text = "kde.org";
+*   KURIFilterData d = text;
+*   bool filtered = KURIFilter::self()->filter( d );
+*   if( filtered )
+*     print ( "URI: %s\n"Filtered URI: %s\n URI Type: %i\n"Was Filtered: %i"
+*             text.latin1(), d.uri().url().latin1(), d.uriType(), filtered );
+* 
+* +* The above code should yield the following output: +*
+*   URI: kde.org
+*   Filtered URI: http://kde.org
+*   URI Type: 0            <== means NET_PROTOCOL
+*   Was Filtered: 1        <== means the URL was successfully filtered
+* 
+* +* @short A message object for exchanging filtering URI info. +*/ + +class KURIFilterData +{ +friend class KURIFilterPlugin; + +public: + /** + * Describes the type of URI to be filtered. + * + * This enumerator prvoides the return value for + * @ref uriType. A brief description for each value: + * + * @li NET_PROTOCOL - Any network protocol: http, ftp, nttp, pop3, etc... + * @li LOCAL_FILE - A local file whose executable flag is not set + * @li LOCAL_DIR - A local directory + * @li EXECUTABLE - A local file whose executable flag is set + * @li HELP - A man or info page + * @li SHELL - A shell executable (ex: echo "Test..." >> ~/testfile) + * @li BLOCKED - A URI that should be blocked/filtered (ex: ad filtering) + * @li ERROR - An incorrect URI (ex: "~johndoe" when user johndoe + * does not exist in that system ) + * @li UNKNOWN - A URI that is not identified. Default value when + * a KURIFilterData is first created. + */ + enum URITypes { NET_PROTOCOL=0, LOCAL_FILE, LOCAL_DIR, EXECUTABLE, HELP, SHELL, BLOCKED, ERROR, UNKNOWN }; + + /** + * Default constructor. + * + * Creates a URIFilterData object. + */ + KURIFilterData() { init(); } + + /** + * Creates a URIFilterData object from the given URL. + * + * @param url is the URL to be filtered. + */ + KURIFilterData( const KURL& url ) { init( url); } + + /** + * Creates a URIFilterData object from the given string. + * + * @param url is the string to be filtered. + */ + KURIFilterData( const QString& url ) { init( url ); } + + /** + * Copy constructor. + * + * Creates a URIFilterData object from another + * URI filter data object. + * + * @param data the uri filter data to be copied. + */ + KURIFilterData( const KURIFilterData& /*data*/); + + /** + * Destructor. + */ + ~KURIFilterData(); + + /** + * This method has been deprecated and will always return + * TRUE. You should instead use the result from the + * @ref KURIFilter::filterURI() calls. + * + * @deprecated + */ + bool hasBeenFiltered() const { return m_bFiltered; } + + /** + * Returns the filtered or the original URL. + * + * This function returns the filtered url if one + * of the plugins sucessfully filtered the original + * URL. Otherwise, it returns the original URL. + * See @ref #hasBeenFiltered() and + * + * @return the filtered or original url. + */ + KURL uri() const { return m_pURI; } + + /** + * Returns an error message. + * + * This functions returns the error message set + * by the plugin whenever the uri type is set to + * KURIFilterData::ERROR. Otherwise, it returns + * a QString::null. + * + * @return the error message or a NULL when there is none. + */ + QString errorMsg() const { return m_strErrMsg; } + + /** + * Returns the URI type. + * + * This method always returns KURIFilterData::UNKNOWN + * if the given URL was not filtered. + */ + URITypes uriType() const { return m_iType; } + + /** + * Sets the URL to be filtered. + * + * Use this function to set the string to be + * filtered when you construct an empty filter + * object. + * + * @param url the string to be filtered. + */ + void setData( const QString& url ) { init( url ); } + + /** + * Same as above except the argument is a URL. + * + * Use this function to set the string to be + * filtered when you construct an empty filter + * object. + * + * @param url the URL to be filtered. + */ + void setData( const KURL& url ) { init( url ); } + + /** + * Sets the absolute path to be used whenever the supplied + * data is a relative local URL. + * + * NOTE: This function works only for a local resource and + * expects the absolute path to the relative URL set in this + * meta object. If you are extracting the absolute path from + * a KURL object, make sure you always set the argument below + * using KURL::path() instead of KURL::url() so that "file:/" + * would not be appended! Otherwise, the filter might not be + * able to make correct determination whether the relative URL + * locally exists! + * + * @param abs_path the abolute path to the local resource. + * @return true if absolute path is successfully set. Otherwise, false. + */ + bool setAbsolutePath( const QString& /* abs_path */ ); + + /** + * Returns the absolute path if one has already been set. + */ + QString absolutePath() const; + + /** + * Returns true if the supplied data has an absolute path. + */ + bool hasAbsolutePath() const; + + /** + * Returns the command line options and arguments for a + * local resource when present. + * + * @return options and arguments when present, otherwise QString::null + */ + QString argsAndOptions() const; + + /** + * Returns true if the current data is a local resource with + * command line options and arguments. + */ + bool hasArgsAndOptions() const; + + /** + * Returns the name of the icon that matches + * the current filtered URL. + * + * NOTE that this function will return a NULL + * string by default and when no associated icon + * is found. + * + * @return the name of the icon associated with the resource + */ + QString iconName(); + + /** + * Overloaded assigenment operator. + * + * This function allows you to easily assign a KURL + * to a KURIFilterData object. + * + * @return an instance of a KURIFilterData object. + */ + KURIFilterData& operator=( const KURL& url ) { init( url ); return *this; } + + /** + * Overloaded assigenment operator. + * + * This function allows you to easily assign a QString + * to a KURIFilterData object. + * + * @return an instance of a KURIFilterData object. + */ + KURIFilterData& operator=( const QString& url ) { init( url ); return *this; } + +protected: + + /** + * Initializes the KURIFilterData on construction. + */ + void init( const KURL& url = QString::null ); + +private: + bool m_bFiltered; + bool m_bChanged; + + QString m_strErrMsg; + QString m_strIconName; + + KURL m_pURI; + URITypes m_iType; + KURIFilterDataPrivate *d; +}; + + +/** + * Base class for URI filter plugins. + * + * This class applies a single filter to a URI. All + * plugins designed to provide URI filtering functionalities + * should inherit from this abstract class and provide a + * specific filtering implementation. + * + * All inheriting classes need to implement the pure + * virtual function @ref filterURI. Otherwise, they + * would also become abstract. + * + * @short Abstract class for URI filter plugins. + */ +class KURIFilterPlugin : public QObject +{ + Q_OBJECT + +public: + + /** + * Constructs a filter plugin with a given name and + * priority. + * + * @param parent the parent object. + * @param name the name of the plugin. + * @param pri the priority of the plugin. + */ + KURIFilterPlugin( QObject *parent = 0, const char *name = 0, double pri = 1.0 ); + + /** + * Returns the filter's name. + * + * @return A string naming the filter. + */ + virtual QString name() const { return m_strName; } + + /** + * Returns the filter's priority. + * + * Each filter has an assigned priority, a float from 0 to 1. Filters + * with the lowest priority are first given a chance to filter a URI. + * + * @return The priority of the filter. + */ + virtual double priority() const { return m_dblPriority; } + + /** + * Filters a URI. + * + * @param data the URI data to be filtered. + * @return A boolean indicating whether the URI has been changed. + */ + virtual bool filterURI( KURIFilterData& data ) const = 0; + + /** + * Creates a configuration module for the filter. + * + * It is the responsability of the caller to delete the module + * once it is not needed anymore. + * + * @return A configuration module, @p null if the filter isn't configurable. + */ + virtual KCModule *configModule( QWidget*, const char* ) const { return 0; } + + /** + * Returns the name of the configuration module for the filter. + * + * @return the name of a configuration module or @p null if none. + */ + virtual QString configName() const { return name(); } + +protected: + + /** + * Sets the the URL in @p data to @p uri. + */ + void setFilteredURI ( KURIFilterData& data, const KURL& uri ) const; + + /** + * Sets the error message in @p data to @p errormsg. + */ + void setErrorMsg ( KURIFilterData& data, const QString& errmsg ) const { + data.m_strErrMsg = errmsg; + } + + /** + * Sets the URI type in @p data to @p type. + */ + void setURIType ( KURIFilterData& data, KURIFilterData::URITypes type) const { + data.m_iType = type; + data.m_bChanged = true; + } + + /** + * Sets the arguments and options string in @p data + * to @p args if any were found during filterting. + */ + void setArguments( KURIFilterData& data, const QString& args ) const; + + QString m_strName; + double m_dblPriority; + +protected: + virtual void virtual_hook( int id, void* data ); +private: + class KURIFilterPluginPrivate *d; +}; + + +class KURIFilterPluginList : public QPtrList +{ +public: + virtual int compareItems(Item a, Item b) + { + double diff = ((KURIFilterPlugin *) a)->priority() - ((KURIFilterPlugin *) b)->priority(); + return diff < 0 ? -1 : (diff > 0 ? 1 : 0); + } + +private: + KURIFilterPrivate *d; + +}; + +/** + * Manages the filtering of a URI. + * + * The intention of this plugin class is to allow people to extend + * the functionality of KURL without modifying it directly. This + * way KURL will remain a generic parser capable of parsing any + * generic URL that adheres to specifications. + * + * The KURIFilter class applies a number of filters to a URI, + * and returns the filtered version whenever possible. The filters + * are implemented using plugins to provide easy extensibility + * of the filtering mechanism. That is, new filters can be added in + * the future by simply inheriting from @ref KURIFilterPlugin and + * implementing the @ref KURIFilterPlugin::filterURI method. + * + * Use of this plugin-manager class is straight forward. Since + * it is a singleton object, all you have to do is obtain an instance + * by doing @p KURIFilter::self() and use any of the public member + * functions to preform the filtering. + * + * @sect Example + * + * To simply filter a given string: + *
+ * bool filtered = KURIFilter::self()->filterURI( "kde.org" );
+ * 
+ * + * You can alternatively use a KURL: + *
+ * KURL url = "kde.org";
+ * bool filtered = KURIFilter::self()->filterURI( url );
+ * 
+ * + * If you have a constant string or a constant URL, + * simply invoke the corresponding function to obtain + * the filtered string or URL instead of a boolean flag: + *
+ * QString u = KURIFilter::self()->filteredURI( "kde.org" );
+ * 
+ * + * You can also specify only specific filter(s) to be applied + * by supplying the name(s) of the filter(s). By defualt all + * filters that are found are loaded when the KURIFilter object + * is created will be used. These names are taken from the + * enteries in the \".desktop\" files. Here are a couple of + * examples: + *
+ * QString text = "kde.org";
+ * bool filtered = KURIFilter::self()->filterURI( text, "KShortURIFilter" );
+ *
+ * QStringList list;
+ * list << "KShortURIFilter" << "MyFilter";
+ * bool filtered = KURIFilter::self()->filterURI( text, list );
+ * 
+ * + * KURIFilter also allows richer data exchange through a simple + * meta-object called @p KURIFilterData. Using this meta-object + * you can find out more information about the URL you want to + * filter. See @ref KURIFilterData for examples and details. + * + * @short Filters a given URL into its proper format whenever possible. + */ + +class KURIFilter +{ +public: + /** + * Destructor + */ + ~KURIFilter (); + + /** + * Return a static instance of KURIFilter. + */ + static KURIFilter* self(); + + /** + * Filters the URI given by the object URIFilterData. + * + * This filters the given data based on the specified + * filter list. If the list is empty all avaliable + * filter plugins would be used. If not, only those + * given in the list are used. + * + * @param data object that contains the URI to be filtered. + * @param filters specify the list filters to be used + * + * @return a boolean indicating whether the URI has been changed + */ + bool filterURI( KURIFilterData& data, const QStringList& filters = QStringList() ); + + /** + * Filters the URI given by the URL. + * + * This filters the given URL based on the specified + * filter list. If the list is empty all avaliable + * filter plugins would be used. If not, only those + * given in the list are used. + * + * @param uri the URI to filter. + * @param filters specify the list of filters to be used + * + * @return a boolean indicating whether the URI has been changed + */ + bool filterURI( KURL &uri, const QStringList& filters = QStringList() ); + + /** + * Filters a string representing a URI. + * + * This filters the given string based on the specified + * filter list. If the list is empty all avaliable + * filter plugins would be used. If not, only those + * given in the list are used. + * + * @param uri The URI to filter. + * @param filters specify the list filters to be used + * + * @return a boolean indicating whether the URI has been changed + */ + bool filterURI( QString &uri, const QStringList& filters = QStringList() ); + + /** + * Returns the filtered URI. + * + * This filters the given URL based on the specified + * filter list. If the list is empty all avaliable + * filter plugins would be used. If not, only those + * given in the list are used. + * + * @param uri The URI to filter. + * @param filters specify the list filters to be used + * + * @return the filtered URI or null if it cannot be filtered + */ + KURL filteredURI( const KURL &uri, const QStringList& filters = QStringList() ); + + /** + * Return a filtered string representation of a URI. + * + * This filters the given URL based on the specified + * filter list. If the list is empty all avaliable + * filter plugins would be used. If not, only those + * given in the list are used. + * + * @param uri the URI to filter. + * @param filters specify the list filters to be used + * + * @return the filtered URI or null if it cannot be filtered + */ + QString filteredURI( const QString &uri, const QStringList& filters = QStringList() ); + + /** + * Return an iterator to iterate over all loaded + * plugins. + * + * @return a plugin iterator. + */ + QPtrListIterator pluginsIterator() const; + + /** + * Return a list of the names of all loaded plugins + * + * @since 3.1 + * + * @return a QStringList of plugin names + */ + QStringList pluginNames() const; + +protected: + + /** + * A protected constructor. + * + * This constructor creates a KURIFilter and + * initializes all plugins it can find by invoking + * @ref loadPlugins. + */ + KURIFilter(); + + /** + * Loads all allowed plugins. + * + * This function loads all filters that have not + * been dis + */ + void loadPlugins(); + +private: + + static KURIFilter *m_self; + KURIFilterPluginList m_lstPlugins; + KURIFilterPrivate *d; + +}; + +#endif + diff --git a/extra/kde314/kaccelaction.h b/extra/kde314/kaccelaction.h new file mode 100644 index 0000000..7a368a9 --- /dev/null +++ b/extra/kde314/kaccelaction.h @@ -0,0 +1,564 @@ +/* This file is part of the KDE libraries + Copyright (C) 2001,2002 Ellis Whitehead + + This library 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. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef _KACCELACTION_H +#define _KACCELACTION_H + +#include +#include +#include +#include + +#include + +class KAccelBase; + +class QObject; +class KConfig; +class KConfigBase; + +/** + * @internal + * A KAccelAction prepresents an action that can be executed using + * an accelerator key. Each KAccelAction has a name, a label, a + * "What's this" string and a @ref KShortcut. The user can configure and + * enable/disable them using @ref KKeyDialog. + * + *
+ *	1) KAccelAction = "Run Command"
+ *		Default3 = "Alt+F2"
+ *		Default4 = "Meta+Enter;Alt+F2"
+ *		1) KShortcut = "Meta+Enter"
+ *			1) KKeySequence = "Meta+Enter"
+ *				1) KKey = "Meta+Enter"
+ *					1) Meta+Enter
+ *					2) Meta+Keypad_Enter
+ *		2) KShortcut = "Alt+F2"
+ *			1) KKeySequence = "Alt+F2"
+ *				1) Alt+F2
+ *	2) KAccelAction = "Something"
+ *		Default3 = ""
+ *		Default4 = ""
+ *		1) KShortcut = "Meta+X,Asterisk"
+ *			1) KKeySequence = "Meta+X,Asterisk"
+ *				1) KKey = "Meta+X"
+ *					1) Meta+X
+ *				2) KKey = "Asterisk"
+ *					1) Shift+8 (English layout)
+ *					2) Keypad_Asterisk
+ * 
+ * @short An accelerator action + * @see KAccel + * @see KGlobalAccel + * @see KKeyChooser + * @see KKeyDialog + */ +class KAccelAction +{ + public: + /** + * Creates an empty KAccelAction. + * @see clear() + */ + KAccelAction(); + + /** + * Copy constructor. + */ + KAccelAction( const KAccelAction& ); + + /** + * Creates a new KAccelAction. + * @param sName the name of the accelerator + * @param sLabel the label of the accelerator (i18n!) + * @param sWhatsThis the What's This text (18n!) + * @param cutDef3 the default shortcut for 3 modifier systems + * @param cutDef4 the default shortcut for 4 modifier systems + * @param pObjSlot the receiver of a signal when the key has been + * pressed + * @param psMethodSlot the slot to connect for key presses. Receives + * an int, as set by @ref setID(), as only argument + * @param bConfigurable if true the user can configure the shortcut + * @param bEnabled true if the accelerator should be enabled + */ + KAccelAction( const QString& sName, const QString& sLabel, const QString& sWhatsThis, + const KShortcut& cutDef3, const KShortcut& cutDef4, + const QObject* pObjSlot, const char* psMethodSlot, + bool bConfigurable, bool bEnabled ); + ~KAccelAction(); + + /** + * Clears the accelerator. + */ + void clear(); + + /** + * Re-initialized the KAccelAction. + * @param sName the name of the accelerator + * @param sLabel the label of the accelerator (i18n!) + * @param sWhatsThis the What's This text (18n!) + * @param cutDef3 the default shortcut for 3 modifier systems + * @param cutDef4 the default shortcut for 4 modifier systems + * @param pObjSlot the receiver of a signal when the key has been + * pressed + * @param psMethodSlot the slot to connect for key presses. Receives + * an int, as set by @ref setID(), as only argument + * @param bConfigurable if true the user can configure the shortcut + * @param bEnabled true if the accelerator should be enabled + * @return true if successful, false otherwise + */ + bool init( const QString& sName, const QString& sLabel, const QString& sWhatsThis, + const KShortcut& cutDef3, const KShortcut& cutDef4, + const QObject* pObjSlot, const char* psMethodSlot, + bool bConfigurable, bool bEnabled ); + + /** + * Copies this KAccelAction. + */ + KAccelAction& operator=( const KAccelAction& ); + + /** + * Returns the name of the accelerator action. + * @return the name of the accelerator action, can be null if not + * set + */ + const QString& name() const { return m_sName; } + + /** + * Returns the label of the accelerator action. + * @return the label of the accelerator action, can be null if + * not set + */ + const QString& label() const { return m_sLabel; } + + /** + * Returns the What's This text of the accelerator action. + * @return the What's This text of the accelerator action, can be + * null if not set + */ + const QString& whatsThis() const { return m_sWhatsThis; } + + /** + * The shortcut that is actually used (may be used configured). + * @return the shortcut of the KAccelAction, can be null if not set + * @see shortcutDefault() + */ + const KShortcut& shortcut() const { return m_cut; } + + /** + * The default shortcut for this system. + * @return the default shortcut on this system, can be null if not set + * @see shortcut() + * @see shortcutDefault3() + * @see shortcutDefault4() + */ + const KShortcut& shortcutDefault() const; + + /** + * The default shortcut for 3 modifier systems. + * @return the default shortcut for 3 modifier systems, can be null + * if not set + * @see shortcutDefault() + * @see shortcutDefault4() + * @see useFourModifierKeys() + */ + const KShortcut& shortcutDefault3() const { return m_cutDefault3; } + + /** + * The default shortcut for 4 modifier systems. + * @return the default shortcut for 4 modifier systems, can be null + * if not set + * @see shortcutDefault() + * @see shortcutDefault3() + * @see useFourModifierKeys() + */ + const KShortcut& shortcutDefault4() const { return m_cutDefault4; } + + /** + * Returns the receiver of signals. + * @return the receiver of signals (can be 0 if not set) + */ + const QObject* objSlotPtr() const { return m_pObjSlot; } + + /** + * Returns the slot for the signal. + * @return the slot for the signal + */ + const char* methodSlotPtr() const { return m_psMethodSlot; } + + /** + * Checks whether the user can configure the action. + * @return true if configurable, false otherwise + */ + bool isConfigurable() const { return m_bConfigurable; } + + /** + * Checks whether the action is enabled. + * @return true if enabled, false otherwise + */ + bool isEnabled() const { return m_bEnabled; } + + /** + * Sets the name of the accelerator action. + * @param name the new name + */ + void setName( const QString& name ); + + /** + * Sets the user-readable label of the accelerator action. + * @param label the new label (i18n!) + */ + void setLabel( const QString& label ); + + /** + * Sets the What's This text for the accelerator action. + * @param whatsThis the new What's This text (i18n!) + */ + void setWhatsThis( const QString& whatsThis ); + + /** + * Sets the new shortcut of the accelerator action. + * @param rgCuts the shortcut to set + * @return true if successful, false otherwise + */ + bool setShortcut( const KShortcut& rgCuts ); + + /** + * Sets the slot of the accelerator action. + * @param pObjSlot the receiver object of the signal + * @param psMethodSlot the slot for the signal + */ + void setSlot( const QObject* pObjSlot, const char* psMethodSlot ); + + /** + * Enables or disabled configuring the action. + * @param configurable true to enable configurability, false to disable + */ + void setConfigurable( bool configurable ); + + /** + * Enables or disabled the action. + * @param configurable true to enable the action, false to disable + */ + void setEnabled( bool enable ); + + /** + * Retrieves the id set using @ref setID. + * @return the id of the accelerator action + */ + int getID() const { return m_nIDAccel; } + + /** + * Allows you to set an id that will be used as the action + * signal's argument. + * + * @param n the new id + * @see @ref getID() + */ + void setID( int n ) { m_nIDAccel = n; } + + /** + * Checkes whether the action is connected (emits signals). + * @return true if connected, false otherwise + */ + bool isConnected() const; + + /** + * Sets a key sequence of the action's shortcut. + * @param i the position of the sequence + * @param keySeq the new new sequence + * @return true if successful, false otherwise + * @see KShortcut::setSeq() + */ + bool setKeySequence( uint i, const KKeySequence &keySeq ); + + /** + * Clears the action's shortcut. It will not contain any sequences after + * calling this method. + * @see KShortcut::clear() + */ + void clearShortcut(); + + /** + * Checks whether the action's shortcut contains the given key sequence. + * @param keySeq the key sequence to check + * @return true if the shortcut contains the given sequence + * @see KShortcut::contains() + */ + bool contains( const KKeySequence &keySeq ); + + /** + * Returns the string representation of the action's shortcut. + * @return the string representation of the action's shortcut. + * @see KShortcut::toString() + */ + QString toString() const; + + /** + * @internal + */ + QString toStringInternal() const; + + /** + * Returns true if four modifier keys will be used. + * @return true if four modifier keys will be used. + */ + static bool useFourModifierKeys(); + + /** + * Selects 3 or 4 modifier default shortcuts. + * @param use true to use 4 modifier shortcuts, false to use + * 3 modifier shortcuts + */ + static void useFourModifierKeys( bool use ); + + protected: + QString m_sName, + m_sLabel, + m_sWhatsThis; + KShortcut m_cut; + KShortcut m_cutDefault3, m_cutDefault4; + const QObject* m_pObjSlot; + const char* m_psMethodSlot; + bool m_bConfigurable, + m_bEnabled; + int m_nIDAccel; + uint m_nConnections; + + void incConnections(); + void decConnections(); + + private: + static int g_bUseFourModifierKeys; + class KAccelActionPrivate* d; + + friend class KAccelActions; + friend class KAccelBase; +}; + +//--------------------------------------------------------------------- +// KAccelActions +//--------------------------------------------------------------------- + +/** + * @internal + * This class represents a collection of @ref KAccelAction objects. + * + * @short A collection of accelerator actions + * @see KAccelAction + */ +class KAccelActions +{ + public: + /** + * Creates a new, empty KAccelActions object. + */ + KAccelActions(); + + /** + * Copy constructor (deep copy). + */ + KAccelActions( const KAccelActions& ); + virtual ~KAccelActions(); + + /** + * Removes all items from this collection. + */ + void clear(); + + /** + * Initializes this object with the given actions. + * It will make a deep copy of all actions. + * @param actions the actions to copy + * @return true if successful, false otherwise + */ + bool init( const KAccelActions &actions ); + + /** + * Loads the actions from the given configuration file. + * + * @param config the configuration file to load from + * @param sGroup the group in the configuration file + * @return true if successful, false otherwise + */ + bool init( KConfigBase& config, const QString& sGroup ); + + /** + * Updates the shortcuts of all actions in this object + * with the shortcuts from the given object. + * @param shortcuts the collection that contains the new + * shortcuts + */ + void updateShortcuts( KAccelActions &shortcuts ); + + /** + * Retrieves the index of the action with the given name. + * @param sAction the action to search + * @return the index of the action, or -1 if not found + */ + int actionIndex( const QString& sAction ) const; + + /** + * Returns the action with the given @p index. + * @param index the index of an action. You must not + * use an index that is too high. + * @return the KAccelAction with the given index + * @see count() + */ + KAccelAction* actionPtr( uint index ); + + /** + * Returns the action with the given @p index. + * @param index the index of an action. You must not + * use an index that is too high. + * @return the KAccelAction with the given index + * @see count() + */ + const KAccelAction* actionPtr( uint index ) const; + + /** + * Returns the action with the given name. + * @param aAction the name of the action to search + * @return the KAccelAction with the given name, or 0 + * if not found + */ + KAccelAction* actionPtr( const QString& sAction ); + + /** + * Returns the action with the given name. + * @param aAction the name of the action to search + * @return the KAccelAction with the given name, or 0 + * if not found + */ + const KAccelAction* actionPtr( const QString& sAction ) const; + + /** + * Returns the action with the given key sequence. + * @param cut the sequence to search for + * @return the KAccelAction with the given sequence, or 0 + * if not found + */ + KAccelAction* actionPtr( KKeySequence cut ); + + /** + * Returns the action with the given @p index. + * @param index the index of an action. You must not + * use an index that is too high. + * @return the KAccelAction with the given index + * @see actionPtr() + * @see count() + */ + KAccelAction& operator []( uint index ); + + /** + * Returns the action with the given @p index. + * @param index the index of an action. You must not + * use an index that is too high. + * @return the KAccelAction with the given index + * @see actionPtr() + * @see count() + */ + const KAccelAction& operator []( uint index ) const; + + /** + * Inserts an action into the collection. + * @param sName the name of the accelerator + * @param sLabel the label of the accelerator (i18n!) + * @param sWhatsThis the What's This text (18n!) + * @param cutDef3 the default shortcut for 3 modifier systems + * @param cutDef4 the default shortcut for 4 modifier systems + * @param pObjSlot the receiver of a signal when the key has been + * pressed + * @param psMethodSlot the slot to connect for key presses. Receives + * an int, as set by @ref setID(), as only argument + * @param bConfigurable if true the user can configure the shortcut + * @param bEnabled true if the accelerator should be enabled + * @return the new action + */ + KAccelAction* insert( const QString& sAction, const QString& sLabel, const QString& sWhatsThis, + const KShortcut& rgCutDefaults3, const KShortcut& rgCutDefaults4, + const QObject* pObjSlot = 0, const char* psMethodSlot = 0, + bool bConfigurable = true, bool bEnabled = true ); + + /** + * Inserts an action into the collection. + * @param sName the name of the accelerator + * @param sLabel the label of the accelerator (i18n!) + * @return the new action + */ + KAccelAction* insert( const QString& sName, const QString& sLabel ); + + /** + * Removes the given action. + * @param sAction the name of the action. + * @return true if successful, false otherwise + */ + bool remove( const QString& sAction ); + + /** + * Loads the actions from the given configuration file. + * + * @param sConfigGroup the group in the configuration file + * @param pConfig the configuration file to load from + * @return true if successful, false otherwise + */ + bool readActions( const QString& sConfigGroup = "Shortcuts", KConfigBase* pConfig = 0 ); + + /** + * Writes the actions to the given configuration file. + * + * @param sConfigGroup the group in the configuration file + * @param pConfig the configuration file to save to + * @param bWriteAll true to write all actions + * @param bGlobal true to write to the global configuration file + * @return true if successful, false otherwise + */ + bool writeActions( const QString& sConfigGroup = "Shortcuts", KConfigBase* pConfig = 0, + bool bWriteAll = false, bool bGlobal = false ) const; + + /** + * Emit a keycodeChanged signal. + */ + void emitKeycodeChanged(); + + /** + * Returns the number of actions in the collection. + * @return the number of actions + */ + uint count() const; + + protected: + KAccelBase* m_pKAccelBase; + KAccelAction** m_prgActions; + uint m_nSizeAllocated, m_nSize; + + void resize( uint ); + void insertPtr( KAccelAction* ); + + private: + class KAccelActionsPrivate* d; + + KAccelActions( KAccelBase* ); + void initPrivate( KAccelBase* ); + KAccelActions& operator =( KAccelActions& ); + + friend class KAccelBase; +}; + +#endif // _KACCELACTION_H diff --git a/extra/kde314/kaccelbase.h b/extra/kde314/kaccelbase.h new file mode 100644 index 0000000..219eaf4 --- /dev/null +++ b/extra/kde314/kaccelbase.h @@ -0,0 +1,229 @@ +/* This file is part of the KDE libraries + Copyright (C) 2001 Ellis Whitehead + + This library 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. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef _KACCELBASE_H +#define _KACCELBASE_H + +#include +#include +#include +#include +#include + +#include "kaccelaction.h" +#include "kkeyserver_x11.h" + +class QPopupMenu; +class QWidget; + +//---------------------------------------------------- + +/** + * @internal + * Handle keyboard accelerators. + * + * Allow an user to configure + * key bindings through application configuration files or through the + * @ref KKeyChooser GUI. + * + * A @ref KAccel contains a list of accelerator items. Each accelerator item + * consists of an action name and a keyboard code combined with modifiers + * (Shift, Ctrl and Alt.) + * + * For example, "Ctrl+P" could be a shortcut for printing a document. The key + * codes are listed in ckey.h. "Print" could be the action name for printing. + * The action name identifies the key binding in configuration files and the + * @ref KKeyChooser GUI. + * + * When pressed, an accelerator key calls the slot to which it has been + * connected. Accelerator items can be connected so that a key will activate + * two different slots. + * + * A KAccel object handles key events sent to its parent widget and to all + * children of this parent widget. + * + * Key binding reconfiguration during run time can be prevented by specifying + * that an accelerator item is not configurable when it is inserted. A special + * group of non-configurable key bindings are known as the + * standard accelerators. + * + * The standard accelerators appear repeatedly in applications for + * standard document actions such as printing and saving. Convenience methods are + * available to insert and connect these accelerators which are configurable on + * a desktop-wide basis. + * + * It is possible for a user to choose to have no key associated with + * an action. + * + * The translated first argument for @ref insertItem() is used only + * in the configuration dialog. + *
+ * KAccel *a = new KAccel( myWindow );
+ * // Insert an action "Scroll Up" which is associated with the "Up" key:
+ * a->insertItem( i18n("Scroll up"), "Scroll Up", "Up" );
+ * // Insert an action "Scroll Down" which is not associated with any key:
+ * a->insertItem( i18n("Scroll down"), "Scroll Down", 0);
+ * a->connectItem( "Scroll up", myWindow, SLOT( scrollUp() ) );
+ * // a->insertStdItem( KStdAccel::Print ); //not necessary, since it
+ *	// is done automatially with the
+ *	// connect below!
+ * a->connectItem(KStdAccel::Print, myWindow, SLOT( printDoc() ) );
+ *
+ * a->readSettings();
+ *
+ * + * If a shortcut has a menu entry as well, you could insert them like + * this. The example is again the @ref KStdAccel::Print from above. + * + *
+ * int id;
+ * id = popup->insertItem("&Print",this, SLOT(printDoc()));
+ * a->changeMenuAccel(popup, id, KStdAccel::Print );
+ * 
+ * + * If you want a somewhat "exotic" name for your standard print action, like + * id = popup->insertItem(i18n("Print &Document"),this, SLOT(printDoc())); + * it might be a good idea to insert the standard action before as + * a->insertStdItem( KStdAccel::Print, i18n("Print Document") ) + * as well, so that the user can easily find the corresponding function. + * + * This technique works for other actions as well. Your "scroll up" function + * in a menu could be done with + * + *
+ *    id = popup->insertItem(i18n"Scroll &up",this, SLOT(scrollUp()));
+ *    a->changeMenuAccel(popup, id, "Scroll Up" );
+ * 
+ * + * Please keep the order right: First insert all functions in the + * acceleratior, then call a -> @ref readSettings() and @em then build your + * menu structure. + * + * @short Configurable key binding support. + * @version $Id: kaccelbase.h,v 1.22 2002/10/06 18:19:39 ellis Exp $ + */ + +class KAccelBase +{ + public: + enum Init { QT_KEYS = 0x00, NATIVE_KEYS = 0x01 }; + enum Signal { KEYCODE_CHANGED }; + + KAccelBase( int fInitCode ); + virtual ~KAccelBase(); + + uint actionCount() const; + KAccelActions& actions(); + bool isEnabled() const; + + KAccelAction* actionPtr( const QString& sAction ); + const KAccelAction* actionPtr( const QString& sAction ) const; + KAccelAction* actionPtr( const KKey& key ); + KAccelAction* actionPtr( const KKeyServer::Key& key ); + + const QString& configGroup() const { return m_sConfigGroup; } + void setConfigGroup( const QString& group ); + void setConfigGlobal( bool global ); + virtual void setEnabled( bool bEnabled ) = 0; + bool getAutoUpdate() { return m_bAutoUpdate; } + // return value of AutoUpdate flag before this call. + bool setAutoUpdate( bool bAuto ); + +// Procedures for manipulating Actions. + //void clearActions(); + + KAccelAction* insert( const QString& sName, const QString& sDesc ); + KAccelAction* insert( + const QString& sAction, const QString& sDesc, const QString& sHelp, + const KShortcut& rgCutDefaults3, const KShortcut& rgCutDefaults4, + const QObject* pObjSlot, const char* psMethodSlot, + bool bConfigurable = true, bool bEnabled = true ); + bool remove( const QString& sAction ); + bool setActionSlot( const QString& sAction, const QObject* pObjSlot, const char* psMethodSlot ); + + bool updateConnections(); + + bool setShortcut( const QString& sAction, const KShortcut& cut ); + +// Modify individual Action sub-items + bool setActionEnabled( const QString& sAction, bool bEnable ); + + /** + * Read all key associations from @p config, or (if @p config + * is zero) from the application's configuration file + * @ref KGlobal::config(). + * + * The group in which the configuration is stored can be + * set with @ref setConfigGroup(). + */ + void readSettings( KConfigBase* pConfig = 0 ); + + /** + * Write the current configurable associations to @p config, + * or (if @p config is zero) to the application's + * configuration file. + */ + void writeSettings( KConfigBase* pConfig = 0 ) const; + + QPopupMenu* createPopupMenu( QWidget* pParent, const KKeySequence& ); + + // Protected methods + protected: + void slotRemoveAction( KAccelAction* ); + + void createKeyList( QValueVector& rgKeys ); + bool insertConnection( KAccelAction* ); + bool removeConnection( KAccelAction* ); + + virtual bool emitSignal( Signal ) = 0; + virtual bool connectKey( KAccelAction&, const KKeyServer::Key& ) = 0; + virtual bool connectKey( const KKeyServer::Key& ) = 0; + virtual bool disconnectKey( KAccelAction&, const KKeyServer::Key& ) = 0; + virtual bool disconnectKey( const KKeyServer::Key& ) = 0; + + protected: + struct ActionInfo + { + KAccelAction* pAction; + uint iSeq, iVariation; + //ActionInfo* pInfoNext; // nil if only one action uses this key. + + ActionInfo() { pAction = 0; iSeq = 0xffff; iVariation = 0xffff; } + ActionInfo( KAccelAction* _pAction, uint _iSeq, uint _iVariation ) + { pAction = _pAction; iSeq = _iSeq; iVariation = _iVariation; } + }; + typedef QMap KKeyToActionMap; + + KAccelActions m_rgActions; + KKeyToActionMap m_mapKeyToAction; + QValueList m_rgActionsNonUnique; + bool m_bNativeKeys; // Use native key codes instead of Qt codes + bool m_bEnabled; + bool m_bConfigIsGlobal; + QString m_sConfigGroup; + bool m_bAutoUpdate; + KAccelAction* mtemp_pActionRemoving; + + private: + KAccelBase& operator =( const KAccelBase& ); + + friend class KAccelActions; +}; + +#endif // _KACCELBASE_H diff --git a/extra/kde314/kicontheme.h b/extra/kde314/kicontheme.h new file mode 100644 index 0000000..837f7a4 --- /dev/null +++ b/extra/kde314/kicontheme.h @@ -0,0 +1,331 @@ +/* vi: ts=8 sts=4 sw=4 + * + * $Id: kicontheme.h,v 1.26 2002/10/26 22:08:38 tjansen Exp $ + * + * This file is part of the KDE project, module kdecore. + * Copyright (C) 2000 Geert Jansen + * Antonio Larrosa + * + * This is free software; it comes under the GNU Library General + * Public License, version 2. See the file "COPYING.LIB" for the + * exact licensing terms. + * + */ + +#ifndef __KIconTheme_h_Included__ +#define __KIconTheme_h_Included__ + +#include +#include +#include + +class KConfig; +//class KIconThemeDir; + +class KIconThemePrivate; + +class KIconPrivate; + +/** + * One icon as found by KIconTheme. Also serves as a namespace containing + * icon related constants. + * @see KIconEffect + * @see KIconTheme + * @see KIconLoader + */ +class KIcon +{ +public: + KIcon() { size = 0; } + + /** + * Return true if this icon is valid, false otherwise. + */ + bool isValid() const { return size != 0; } + + /** + * Defines the context of the icon. + */ + enum Context { + Any, ///< Some icon with unknown purpose. + Action, ///< An action icon (e.g. 'save', 'print'). + Application, ///< An icon that represents an application. + Device, ///< An icon that represents a device. + FileSystem, ///< An icon that represents a file system. + MimeType ///< An icon that represents a mime type (or file type). + }; + + /** + * The type of the icon. + */ + enum Type { + Fixed, ///< Fixed-size icon. + Scalable, ///< Scalable-size icon. + Threshold ///< A threshold icon. + }; + + /** + * The type of a match. + */ + enum MatchType { + MatchExact, ///< Only try to find an exact match. + MatchBest ///< Take the best match if there is no exact match. + + }; + + // if you add a group here, make sure to change the config reading in + // KIconLoader too + /** + * The group an an icon. + */ + enum Group { NoGroup=-1, Desktop=0, FirstGroup=Desktop, Toolbar, + MainToolbar, Small, Panel, LastGroup, User }; + + /** + * These are the standard sizes for icons. + */ + enum StdSizes { + /// small icons for menu entries + SizeSmall=16, + /// medium sized icons for the desktop + SizeMedium=32, + /// large sized icons for the panel + SizeLarge=48 }; + + /** + * Defines the possible states of an icon. + */ + enum States { DefaultState, ///< The default state. + ActiveState, ///< Icon is active. + DisabledState, ///< Icon is disabled. + LastState ///< Last state (last constant) + }; + + /** + * This defines an overlay, a semi-transparent image that is + * projected onto the icon. They are used to show that the file + * represented by the icon is, for example, locked, zipped or hidden. + */ + enum Overlays { + LockOverlay=0x100, ///< a file is locked + ZipOverlay=0x200, ///< a file is zipped + LinkOverlay=0x400, ///< a fileis a link + HiddenOverlay=0x800, ///< a file is hidden + ShareOverlay=0x1000, ///< a file is shared + OverlayMask = ~0xff + }; + + /** + * The size in pixels of the icon. + */ + int size; + + /** + * The context of the icon. + */ + Context context; + + /** + * The type of the icon: Fixed, Scalable or Threshold. + **/ + Type type; + + /** + * The threshold in case type == Threshold + */ + int threshold; + + /** + * The full path of the icon. + */ + QString path; + +private: + KIconPrivate *d; +}; + +inline KIcon::Group& operator++(KIcon::Group& group) { group = static_cast(group+1); return group; } +inline KIcon::Group operator++(KIcon::Group& group,int) { KIcon::Group ret = group; ++group; return ret; } + +/** + * Class to use/access icon themes in KDE. This class is used by the + * iconloader but can be used by others too. + * @see KIconLoader + */ +class KIconTheme +{ +public: + /** + * Load an icon theme by name. + * @param name the name of the theme (e.g. "hicolor" or "keramik") + * @param appName the name of the application. Can be null. This argument + * allows applications to have themed application icons. + */ + KIconTheme(const QString& name, const QString& appName=QString::null); + ~KIconTheme(); + + /** + * The stylized name of the icon theme. + * @return the (human-readable) name of the theme + */ + QString name() const { return mName; } + + /** + * A description for the icon theme. + * @return a human-readable description of the theme, QString::null + * if there is none + */ + QString description() const { return mDesc; } + + /** + * Return the name of the "example" icon. This can be used to + * present the theme to the user. + * @return the name of the example icon, QString::null if there is none + */ + QString example() const; + + /** + * Return the name of the screenshot. + * @return the name of the screenshot, QString::null if there is none + */ + QString screenshot() const; + + /** + * Returns the name of this theme's link overlay. + * @return the name of the link overlay + */ + QString linkOverlay() const; + + /** + * Returns the name of this theme's zip overlay. + * @return the name of the zip overlay + */ + QString zipOverlay() const; + + /** + * Returns the name of this theme's lock overlay. + * @return the name of the lock overlay + */ + QString lockOverlay() const; + + /** + * Returns the name of this theme's share overlay. + * @return the name of the share overlay + * @since 3.1 + */ + QString shareOverlay () const; + + /** + * Returns the toplevel theme directory. + * @return the directory of the theme + */ + QString dir() const { return mDir; } + + /** + * The themes this icon theme falls back on. + * @return a list of icon themes that are used as fall-backs + */ + QStringList inherits() const { return mInherits; } + + /** + * The icon theme exists? + * @return true if the icon theme is valid + */ + bool isValid() const; + + /** + * The icon theme should be hidden to the user? + * @return true if the icon theme is hidden + * @since 3.1 + */ + bool isHidden() const; + + /** + * The minimum display depth required for this theme. This can either + * be 8 or 32. + * @return the minimum bpp (8 or 32) + */ + int depth() const { return mDepth; } + + /** + * The default size of this theme for a certain icon group. + * @param group The icon group. See @ref #KIcon::Group. + * @return The default size in pixels for the given icon group. + */ + int defaultSize(KIcon::Group group) const; + + /** + * Query available sizes for a group. + * @param group The icon group. See @ref #KIcon::Group. + * @return a list of available sized for the given group + */ + QValueList querySizes(KIcon::Group group) const; + + /** + * Query available icons for a size and context. + * @param size the size of the icons + * @param context the context of the icons + * @return the list of icon names + */ + QStringList queryIcons(int size, KIcon::Context context = KIcon::Any) const; + + /** + * Query available icons for a context and preferred size. + * @param size the size of the icons + * @param context the context of the icons + * @return the list of icon names + */ + QStringList queryIconsByContext(int size, KIcon::Context context = KIcon::Any) const; + + + /** + * Lookup an icon in the theme. + * @param name The name of the icon, without extension. + * @param size The desired size of the icon. + * @param match The matching mode. KIcon::MatchExact returns an icon + * only if matches exactly. KIcon::MatchBest returns the best matching + * icon. + * @return A KIcon class that describes the icon. If an icon is found, + * @see KIcon::isValid will return true, and false otherwise. + */ + KIcon iconPath(const QString& name, int size, KIcon::MatchType match) const; + + /** + * List all icon themes installed on the system, global and local. + * @return the list of all icon themes + */ + static QStringList list(); + + /** + * Returns the current icon theme. + * @return the name of the current theme + */ + static QString current(); + + /** + * Reconfigure the theme. + */ + static void reconfigure(); + + /** + * Returns the default icon theme. + * @return the name of the default theme name + * @since 3.1 + */ + static QString defaultThemeName(); + +private: + int mDefSize[8]; + QValueList mSizes[8]; + + int mDepth; + QString mDir, mName, mDesc; + QStringList mInherits; +// QPtrList mDirs; + KIconThemePrivate *d; + + static QString *_theme; + static QStringList *_theme_list; +}; + +#endif diff --git a/extra/kde314/kkeyserver_x11.h b/extra/kde314/kkeyserver_x11.h new file mode 100644 index 0000000..d458922 --- /dev/null +++ b/extra/kde314/kkeyserver_x11.h @@ -0,0 +1,435 @@ +#ifndef _KKEYSERVER_X11_H +#define _KKEYSERVER_X11_H + +#include "kshortcut.h" +#include "kkeynative.h" + +/** + * A collection of functions for the conversion of key presses and + * their modifiers from the window system (X11) specific format + * to the generic format and vice-versa. + */ +namespace KKeyServer +{ + /** + * Supplement enum KKey::ModFlag + * @since 3.1 + */ + enum ExtraModFlag { MODE_SWITCH = 0x2000 }; + + struct CodeMod { int code, mod; }; + + /** + * Represents a key symbol. + * @see KKey + * @see KKeyServer + */ + struct Sym + { + public: + /// the actual value of the symbol + uint m_sym; + + /// Creates a null symbol. + Sym() + { m_sym = 0; } + /** + * Creates asymbol with the given value. + * @param sym the value + */ + Sym( uint sym ) + { m_sym = sym; } + /** + * Creates a symbol from the given string description. + * @param s the description of the symbol + * @see toString() + */ + Sym( const QString& s ) + { init( s ); } + + /** + * Initializes the symbol with the given Qt key code. + * @param keyQt the qt key code + * @return true if succesful, false otherwise + * @see Qt::Key + */ + bool initQt( int keyQt ); + + /** + * Initializes the key with the given string description. + * @param s the string description + * @return true if succesful, false otherwise + * @see toString() + */ + bool init( const QString &s ); + + /** + * Returns the qt key code of the symbol. + * @return the qt key code + */ + int qt() const; + + /** + * @internal + */ + QString toStringInternal() const; + + /** + * Returns the string representation of the symbol. + * @return the string representation of the symbol + */ + QString toString() const; + + /** + * Returns the mods that are required for this symbol as + * ORed @ref KKey::ModFlag's. For example, Break requires a + * Ctrl to be valid. + * @return the required @ref KKey::ModFlag's + * @see KKey::ModFlag + */ + uint getModsRequired() const; + + /** + * TODO: please find out what this method does and document it + */ + uint getSymVariation() const; + + /** + * Casts the symbol to its integer representation. + */ + operator uint() const { return m_sym; } + + /** + * Overloaded operator to convert ints to Sym. + */ + Sym& operator =( uint sym ) { m_sym = sym; return *this; } + + private: + QString toString( bool bUserSpace ) const; + + static void capitalizeKeyname( QString& ); + }; + + /** + * Represents a key press. + * @see KKey + */ + struct Key + { + /// Code for native Keys in Qt + enum { CODE_FOR_QT = 256 }; + + /// The code of the key + uint m_code; + + /// The modifiers of the key + uint m_mod; + + /// The symbol of the key + uint m_sym; + + /** + * Initializes the key with a @ref KKey. + * @param key the key to get the data from + * @param bQt true to take the Qt keycode, false + * for the native key code + * @see Qt::Key + * @see KKeyNative + */ + bool init( const KKey& key, bool bQt ); + + /** + * Checks whether the key code is a native code. + * @return true if native code of the window system, + * false if it is a Qt keycode + * @see Qt::Key + * @see KKeyNative + */ + bool isNative() const { return m_code != CODE_FOR_QT; } + + /** + * Returns the code of the key. + * @return the code of the key + */ + uint code() const { return m_code; } + + /** + * Returns the modifiers of the key. + * @return the modifiers of the key + */ + uint mod() const { return m_mod; } + + /** + * Returns the symbol of the key. + * @return the symbol of the key + */ + uint sym() const { return m_sym; } + + /** + * Returns the qt key code. + * @return the qt key code + */ + int keyCodeQt() const { return (int) m_sym; } + + /** + * Sets the qt key code. + * @param keyQt the qt key code + */ + void setKeycodeQt( int keyQt ) + { m_code = CODE_FOR_QT; m_sym = keyQt; } + + /** + * Initializes this key with a @ref KKeyNative. + * @return this key + */ + Key& operator =( const KKeyNative& key ); + + /** + * Compares this key with the given Key object. Returns a + * negative number if the given Key is larger, 0 if they + * are equal and a positive number this Key is larger. The + * returned value is the difference between the symbol, modifier + * or code, whatever is non-zero first. + * + * @param key the key to compare with this key + * @return a negative number if the given Key is larger, 0 if + * they are equal and a positive number this Key is larger + */ + int compare( const Key& key ) const; + + /** + * Compares the symbol, modifiers and code of both keys. + * @see compare() + */ + bool operator ==( const Key& b ) const + { return compare( b ) == 0; } + + /** + * Compares the symbol, modifiers and code of both keys. + * @see compare() + */ + bool operator <( const Key& b ) const + { return compare( b ) < 0; } + + /** + * Converts this Key to a KKey. + * @return the KKey + */ + KKey key() const; + }; + + /** + * TODO: please document this class + */ + struct Variations + { + enum { MAX_VARIATIONS = 4 }; + + Key m_rgkey[MAX_VARIATIONS]; + uint m_nVariations; + + Variations() { m_nVariations = 0; } + + void init( const KKey&, bool bQt ); + + uint count() const { return m_nVariations; } + const Key& key( uint i ) const { return m_rgkey[i]; } + }; + + /// TODO: please document + bool initializeMods(); + + /** + * Returns the equivalent X modifier mask of the given modifier flag. + * @param modFlag the generic flags to check + * @return the window system specific flags + */ + uint modX( KKey::ModFlag modFlag ); + + /** + * Returns true if the current keyboard layout supports the Win key. + * Specifically, whether the Super or Meta keys are assigned to an X modifier. + * @return true if the keyboard has a Win key + * @see modXWin() + */ + bool keyboardHasWinKey(); + + /** + * Returns the X11 Shift modifier mask/flag. + * @return the X11 Shift modifier mask/flag. + * @see accelModMaskX() + */ + uint modXShift(); + + /** + * Returns the X11 Lock modifier mask/flag. + * @return the X11 Lock modifier mask/flag. + * @see accelModMaskX() + */ + uint modXLock(); + + /** + * Returns the X11 Ctrl modifier mask/flag. + * @return the X11 Ctrl modifier mask/flag. + * @see accelModMaskX() + */ + uint modXCtrl(); + + /** + * Returns the X11 Alt (Mod1) modifier mask/flag. + * @return the X11 Alt (Mod1) modifier mask/flag. + * @see accelModMaskX() + */ + uint modXAlt(); + + /** + * Returns the X11 NumLock modifier mask/flag. + * @return the X11 NumLock modifier mask/flag. + * @see accelModMaskX() + */ + uint modXNumLock(); + + /** + * Returns the X11 Win (Mod3) modifier mask/flag. + * @return the X11 Win (Mod3) modifier mask/flag. + * @see keyboardHasWinKey() + * @see accelModMaskX() + */ + uint modXWin(); + + /** + * Returns the X11 ScrollLock modifier mask/flag. + * @return the X11 ScrollLock modifier mask/flag. + * @see accelModMaskX() + */ + uint modXScrollLock(); + + /** + * Returns bitwise OR'ed mask containing Shift, Ctrl, Alt, and + * Win (if available). + * @see modXShift() + * @see modXLock() + * @see modXCtrl() + * @see modXAlt() + * @see modXNumLock() + * @see modXWin() + * @see modXScrollLock() + */ + uint accelModMaskX(); + + /** + * Extracts the symbol from the given Qt key and + * converts it to a symbol. + * @param keyQt the qt key code + * @param sym if successful, the symbol will be written here + * @return true if successful, false otherwise + * @see Qt::Key + * @see Sym + */ + bool keyQtToSym( int keyQt, uint& sym ); + + /** + * Extracts the modifiers from the given Qt key and + * converts them in a mask of ORed @ref KKey::ModFlag modifiers. + * @param keyQt the qt key code + * @param mod if successful, the modifiers will be written here + * @return true if successful, false otherwise + * @see Qt::Key + */ + bool keyQtToMod( int keyQt, uint& mod ); + + /** + * Converts the given symbol to a Qt key code. + * @param sym the symbol + * @param keyQt if successful, the qt key code will be written here + * @return true if successful, false otherwise + * @see Qt::Key + * @see Sym + */ + bool symToKeyQt( uint sym, int& keyQt ); + + /** + * Converts the mask of ORed @ref KKey::ModFlag modifiers to + * a mask of ORed Qt key code modifiers. + * @param the mask of @ref KKey::ModFlag modifiers + * @param the mask of Qt key code modifiers will be written here, + * if successful + * @return true if successful, false otherwise + * @see Qt::Key + * @see KKey + */ + bool modToModQt( uint mod, int& modQt ); + + /** + * Converts the mask of ORed @ref KKey::ModFlag modifiers to + * a mask of ORed X11 modifiers. + * @param the mask of @ref KKey::ModFlag modifiers + * @param the mask of X11 modifiers will be written here, + * if successful + * @return true if successful, false otherwise + * @see KKey + */ + bool modToModX( uint mod, uint& modX ); + + /** + * Converts the mask of ORed X11 modifiers to + * a mask of ORed Qt key code modifiers. + * @param the mask of X11 modifiers + * @param the mask of Qt key code modifiers will be written here + * if successful + * @return true if successful, false otherwise + * @see Qt::Key + */ + bool modXToModQt( uint modX, int& modQt ); + + /** + * Converts the mask of ORed X11 modifiers to + * a mask of ORed @ref KKey::ModFlag modifiers. + * @param the mask of X11 modifiers + * @param the mask of @ref KKey::ModFlag modifiers will be written here, + * if successful + * @return true if successful, false otherwise + * @see KKey + */ + bool modXToMod( uint modX, uint& mod ); + + /** + * Converts a X11 key code and a mask of ORed X11 modifiers + * into a X11 symbol. + * converts it to a symbol. + * @param codeX the X11 key code + * @param modX the mask of ORed X11 modifiers + * @param sym if successful, the X11 symbol will be written here + * @return true if successful, false otherwise + * @see Qt::Key + * @see Sym + */ + bool codeXToSym( uchar codeX, uint modX, uint& symX ); + + /** + * @internal + */ + QString modToStringInternal( uint mod ); + + /** + * Converts the mask of ORed @ref KKey::ModFlag modifiers to a + * user-readable string. + * @param mod the mask of ORed @ref KKey::ModFlag modifiers + * @return the user-readable string + */ + QString modToStringUser( uint mod ); + + /** + * @internal + * Unimplemented? + */ + bool stringToSymMod( const QString&, uint& sym, uint& mod ); + + /** + * @internal + * Unimplemented? + */ + void keyQtToKeyX( uint keyCombQt, unsigned char *pKeyCodeX, uint *pKeySymX, uint *pKeyModX ); +} + +#endif // !_KKEYSERVER_X11_H diff --git a/extra/kde314/konsole_part.h b/extra/kde314/konsole_part.h new file mode 100644 index 0000000..ba89800 --- /dev/null +++ b/extra/kde314/konsole_part.h @@ -0,0 +1,223 @@ +/* + This file is part of the KDE system + Copyright (C) 1999,2000 Boloni Laszlo + + 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. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. + */ + +#ifndef __KONSOLE_PART_H__ +#define __KONSOLE_PART_H__ + +#include +#include + + +#include + +#include + +//#include "schema.h" +//#include "session.h" + +class KInstance; +class konsoleBrowserExtension; +class QPushButton; +class QSpinBox; +class KPopupMenu; +class QCheckBox; +class KRootPixmap; +class KToggleAction; +class KSelectAction; + +namespace KParts { class GUIActivateEvent; } + +class konsoleFactory : public KParts::Factory +{ + Q_OBJECT +public: + konsoleFactory(); + virtual ~konsoleFactory(); + + virtual KParts::Part* createPartObject(QWidget *parentWidget = 0, const char *widgetName = 0, + QObject* parent = 0, const char* name = 0, + const char* classname = "KParts::Part", + const QStringList &args = QStringList()); + + static KInstance *instance(); + + private: + static KInstance *s_instance; + static KAboutData *s_aboutData; +}; + +////////////////////////////////////////////////////////////////////// + +class konsolePart: public KParts::ReadOnlyPart, public TerminalInterface +{ + Q_OBJECT + public: + konsolePart(QWidget *parentWidget, const char *widgetName, QObject * parent, const char *name, const char *classname = 0); + virtual ~konsolePart(); + +signals: + void processExited(); + void receivedData( const QString& s ); + protected: + virtual bool openURL( const KURL & url ); + virtual bool openFile() {return false;} // never used + virtual bool closeURL() {return true;} + virtual void guiActivateEvent( KParts::GUIActivateEvent * event ); + + protected slots: + void showShell(); + void slotProcessExited(); + void slotReceivedData( const QString& s ); + +// void doneSession(TESession*); + void sessionDestroyed(); +// void configureRequest(TEWidget*,int,int x,int y); + void updateTitle(); + void enableMasterModeConnections(); + + private slots: + void emitOpenURLRequest(const QString &url); + + void readProperties(); + void saveProperties(); + + void sendSignal(int n); + void closeCurrentSession(); + + void notifySize(int,int); + + void slotToggleFrame(); + void slotSelectScrollbar(); + void slotSelectFont(); + void schema_menu_check(); + void keytab_menu_activated(int item); + void updateSchemaMenu(); + void setSchema(int n); + void pixmap_menu_activated(int item); + void schema_menu_activated(int item); + void slotHistoryType(); + void slotSelectBell(); + void slotSelectLineSpacing(); + void slotBlinkingCursor(); + void slotWordSeps(); + void fontNotFound(); + + private: + konsoleBrowserExtension *m_extension; + KURL currentURL; + + void makeGUI(); + void applySettingsToGUI(); + + void setFont(int fontno); +// void setSchema(ColorSchema* s); + void updateKeytabMenu(); + + bool doOpenStream( const QString& ); + bool doWriteStream( const QByteArray& ); + bool doCloseStream(); + + QWidget* parentWidget; +// TEWidget* te; +// TESession* se; +// ColorSchemaList* colors; + KRootPixmap* rootxpm; + + KToggleAction* blinkingCursor; + KToggleAction* showFrame; + + KSelectAction* selectBell; + KSelectAction* selectFont; + KSelectAction* selectLineSpacing; + KSelectAction* selectScrollbar; + + KPopupMenu* m_keytab; + KPopupMenu* m_schema; + KPopupMenu* m_signals; + KPopupMenu* m_options; + KPopupMenu* m_popupMenu; + + QFont defaultFont; + + QString pmPath; // pixmap path + QString s_schema; + QString s_kconfigSchema; + QString s_word_seps; // characters that are considered part of a word + QString fontNotFound_par; + + bool b_framevis:1; + bool b_histEnabled:1; + + int curr_schema; // current schema no + int n_bell; + int n_font; + int n_keytab; + int n_render; + int n_scroll; + unsigned m_histSize; + bool m_runningShell; + bool m_streamEnabled; +public: + // these are the implementations for the TermEmuInterface + // functions... + void startProgram( const QString& program, + const QStrList& args ); + void showShellInDir( const QString& dir ); + void sendInput( const QString& text ); +}; + +////////////////////////////////////////////////////////////////////// + +/*class HistoryTypeDialog : public KDialogBase +{ + Q_OBJECT +public: + HistoryTypeDialog(const HistoryType& histType, + unsigned int histSize, + QWidget *parent); + +public slots: + void slotDefault(); + void slotSetUnlimited(); + void slotHistEnable(bool); + + unsigned int nbLines() const; + bool isOn() const; + +protected: + QCheckBox* m_btnEnable; + QSpinBox* m_size; + QPushButton* m_setUnlimited; +};*/ + +////////////////////////////////////////////////////////////////////// + +class konsoleBrowserExtension : public KParts::BrowserExtension +{ + Q_OBJECT + friend class konsolePart; + public: + konsoleBrowserExtension(konsolePart *parent); + virtual ~konsoleBrowserExtension(); + + void emitOpenURLRequest(const KURL &url); +}; + +#endif diff --git a/extra/kde314/kpanelmenu.h b/extra/kde314/kpanelmenu.h new file mode 100644 index 0000000..1857f5d --- /dev/null +++ b/extra/kde314/kpanelmenu.h @@ -0,0 +1,181 @@ +/***************************************************************** + +Copyright (c) 1996-2000 the kicker authors. See file AUTHORS. + (c) 2001 Michael Goffioul + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN +AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +******************************************************************/ + +#ifndef __KPANELMENU_H__ +#define __KPANELMENU_H__ + +#include +#include +#include + +class KPanelMenuPrivate; + +/** + * Base class to build dynamically loaded menu entries for the K-menu, or the panel. + * + * This class allows to build menu entries that will be dynamically added either to + * the K-menu, or to the panel as a normal button. These dynamic menus are located + * in shared libraries that will be loaded at runtime by Kicker (the KDE panel). + * + * To build such a menu, you have to inherit this class and implement the pure virtual + * functions #initialize() and @ref slotExec(). You also have to provide a factory + * object in your library, see @ref KLibFactory. This factory is only used to construct + * the menu object. + * + * Finally, you also have to provide a desktop file describing your dynamic menu. The + * relevant entries are: Name, Comment, Icon and X-KDE-Library (which contains the + * library name without any extension). This desktop file has to be installed in + * $KDEDIR/share/apps/kicker/menuext/. + * + * @short Base class to build dynamically loaded menu entries for the K-menu, or the panel. + * @author The kicker maintainer, Michael Goffioul + */ +class KPanelMenu : public KPopupMenu +{ + Q_OBJECT + +public: + /** + * Construct a KPanelMenu object. This is the normal constructor to use when + * building extrernal menu entries. + */ + KPanelMenu(QWidget *parent=0, const char *name=0); + /** + * Constructor used internally by Kicker. You don't really want to use it. + * @param startDir a directory to associate with this menu + * @see path(), setPath() + */ + KPanelMenu(const QString &startDir, QWidget *parent=0, const char *name=0); + /** + * Destructor. + */ + virtual ~KPanelMenu(); + + /** + * Get the directory path associated with this menu, or QString::null if + * there's no such associated path. + * @return the associated directory path + * @see setPath() + */ + const QString& path() const; + /** + * Set a directory path to be associated with this menu. + * @param p the directory path + * @see path() + */ + void setPath(const QString &p); + /** + * Tell if the menu has been initialized, that is it already contains items. + * This is useful when you need to know if you have to clear the menu, or to + * fill it. + * @return the initial state + * @see setInitialized(), initialize() + */ + bool initialized() const; + /** + * Set the initial state. Set it to true when you menu is filled with the items + * you want. + * @param on the initial state + * @see initialized(), initialize() + */ + void setInitialized(bool on); + + /** + * Disable the automatic clearing of the menu. Kicker uses a cache system for + * its menus. After a specific configurable delay, the menu will be cleared. + * Use this function if you want to disable kicker's cache system, and avoid + * the clearing of your menu. + */ + void disableAutoClear(); + +public slots: + /** + * Reinitialize the menu: the menu is first cleared, the initial state is set + * to false, and finally #initialize() is called. Use this if you want to + * refill your menu immediately. + */ + void reinitialize(); + /** + * Deinitialize the menu: the menu is cleared and the initialized state is set to + * false. #initialize() is NOT called. It will be called before the menu is + * next shown, however. Use this slot if you want a delayed reinitialization. + * @since 3.1 + */ + void deinitialize(); + +protected slots: + /** + * This slot is called just before the menu is shown. This allows your menu + * to update itself if needed. However you should instead re-implement + * #initialize to provide this feature. This function is responsible for + * the cache system handling, so if you re-implement it, you should call + * the base function also. Calls #initialize(). + * @see disableAutoClear() + */ + virtual void slotAboutToShow(); + /** + * This is slot is called when an item from the menu has been selected. Your + * applet is then supposed to perform some action. You must re-implement this + * function. + * @param id the ID associated with the selected item + */ + virtual void slotExec(int id) = 0; + /** + * This slots is called to initialize the menu. It is called automatically by + * @ref slotAboutToShow(). By re-implementing this functions, you can reconstruct + * the menu before it is being shown. At the end of this function, you should + * call @ref setInitialize() with true to tell the system that the menu is OK. + * You applet must re-implement this function. + * @see slotAboutToShow(), initialized(), setInitialized() + */ + virtual void initialize() = 0; + /** + * Clears the menu, and update the initial state accordingly. + * @see initialized() + */ + void slotClear(); + +protected: + /** + * Re-implemented for internal reasons. + */ + virtual void hideEvent(QHideEvent *ev); + /** + * For internal use only. Used by constructors. + */ + void init(const QString& path = QString::null); + +protected: + virtual void virtual_hook( int id, void* data ); +private: + void internalInitialize(); + KPanelMenuPrivate *d; +}; + +#define K_EXPORT_KICKER_MENUEXT( libname, classname ) \ + K_EXPORT_COMPONENT_FACTORY( \ + kickermenu_##libname, \ + KGenericFactory("libkickermenu_" #libname) ) + +#endif diff --git a/extra/kde314/krecentdirs.h b/extra/kde314/krecentdirs.h new file mode 100644 index 0000000..71f771b --- /dev/null +++ b/extra/kde314/krecentdirs.h @@ -0,0 +1,68 @@ +/* -*- c++ -*- + * Copyright (C)2000 Waldo Bastian + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * + */ +#ifndef __KRECENTDIRS_H +#define __KRECENTDIRS_H + +#include + +/** + * The goal of this class is to make sure that, when the user needs to + * specify a file via the file selection dialog, this dialog will start + * in the directory most likely to contain the desired files. + * + * This works as follows: Each time the file selection dialog is + * shown, the programmer can specify a "file-class". The file-dialog will + * then start with the directory associated with this file-class. When + * the dialog closes, the directory currently shown in the file-dialog + * will be associated with the file-class. + * + * A file-class can either start with ':' or with '::'. If it starts with + * a single ':' the file-class is specific to the current application. + * If the file-class starts with '::' it is global to all applications. + */ +class KRecentDirs +{ +public: + /** + * Returns a list of directories associated with this file-class. + * The most recently used directory is at the front of the list. + */ + static QStringList list(const QString &fileClass); + + /** + * Returns the most recently used directory accociated with this file-class. + */ + static QString dir(const QString &fileClass); + + /** + * Associates @p directory with @p fileClass + */ + static void add(const QString &fileClass, const QString &directory); +}; + +#endif diff --git a/extra/kde314/ksycocafactory.h b/extra/kde314/ksycocafactory.h new file mode 100644 index 0000000..15554eb --- /dev/null +++ b/extra/kde314/ksycocafactory.h @@ -0,0 +1,137 @@ +/* This file is part of the KDE libraries + * Copyright (C) 1999 Waldo Bastian + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License version 2 as published by the Free Software Foundation; + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public License + * along with this library; see the file COPYING.LIB. If not, write to + * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA. + **/ + +#ifndef __ksycocafactory_h__ +#define __ksycocafactory_h__ "$Id: ksycocafactory.h,v 1.13 2002/09/21 15:07:27 tjansen Exp $" + +#include "ksycocatype.h" +#include "ksycocaentry.h" + +#include +#include +class KSycoca; +class QStringList; +class QString; +class KSycocaDict; +class KSycocaResourceList; + +typedef QDict KSycocaEntryDict; + +/** + * @internal + * Base class for sycoca factories + */ +class KSycocaFactory +{ +public: + virtual KSycocaFactoryId factoryId() const = 0; + +protected: // virtual class + /** + * Create a factory which can be used to lookup from/create a database + * (depending on KSycoca::isBuilding()) + */ + KSycocaFactory( KSycocaFactoryId factory_id ); + +public: + virtual ~KSycocaFactory(); + + /** + * @return the position of the factory in the sycoca file + */ + int offset() { return mOffset; } + + /** + * @return the dict, for special use by KBuildSycoca + */ + KSycocaEntryDict * entryDict() { return m_entryDict; } + + /** + * Construct an entry from a config file. + * To be implemented in the real factories. + */ + virtual KSycocaEntry *createEntry(const QString &file, const char *resource) = 0; + + /** + * Add an entry + */ + virtual void addEntry(KSycocaEntry *newEntry, const char *resource); + + /** + * Read an entry from the database + */ + virtual KSycocaEntry *createEntry(int offset)=0; + + /** + * Get a list of all entries from the database. + */ + KSycocaEntry::List allEntries(); + + /** + * Saves all entries it maintains as well as index files + * for these entries to the stream 'str'. + * + * Also sets mOffset to the starting position. + * + * The stream is positioned at the end of the last index. + * + * Don't forget to call the parent first when you override + * this function. + */ + virtual void save(QDataStream &str); + + /** + * Writes out a header to the stream 'str'. + * The baseclass positions the stream correctly. + * + * Don't forget to call the parent first when you override + * this function. + */ + virtual void saveHeader(QDataStream &str); + + /** + * @return the resources for which this factory is responsible. + */ + virtual const KSycocaResourceList * resourceList() const { return m_resourceList; } + +private: + int mOffset; + +protected: + int m_sycocaDictOffset; + int m_beginEntryOffset; + int m_endEntryOffset; + QDataStream *m_str; + + KSycocaResourceList *m_resourceList; + KSycocaEntryDict *m_entryDict; + KSycocaDict *m_sycocaDict; +protected: + virtual void virtual_hook( int id, void* data ); +}; + +/** This, instead of a typedef, allows to declare "class ..." in header files + * @internal + */ +class KSycocaFactoryList : public QPtrList +{ +public: + KSycocaFactoryList() { } +}; + +#endif diff --git a/extra/kde314/ktoolbarbutton.h b/extra/kde314/ktoolbarbutton.h new file mode 100644 index 0000000..121ecc6 --- /dev/null +++ b/extra/kde314/ktoolbarbutton.h @@ -0,0 +1,317 @@ +/* This file is part of the KDE libraries + Copyright (C) 1997, 1998 Stephan Kulow (coolo@kde.org) + (C) 1997, 1998 Sven Radej (radej@kde.org) + (C) 1997, 1998 Mark Donohoe (donohoe@kde.org) + (C) 1997, 1998 Matthias Ettrich (ettrich@kde.org) + (C) 2000 Kurt Granroth (granroth@kde.org) + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License version 2 as published by the Free Software Foundation. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +// $Id: ktoolbarbutton.h,v 1.26 2002/09/28 15:16:22 tjansen Exp $ +#ifndef _KTOOLBARBUTTON_H +#define _KTOOLBARBUTTON_H + +#include +#include +#include +#include +#include + +class KToolBar; +class KToolBarButtonPrivate; +class KInstance; +class QEvent; +class QPopupMenu; +class QPainter; + +/** + * A toolbar button. This is used internally by @ref KToolBar, use the + * KToolBar methods instead. + * @internal + */ +class KToolBarButton : public QToolButton +{ + Q_OBJECT + +public: + /** + * Construct a button with an icon loaded by the button itself. + * This will trust the button to load the correct icon with the + * correct size. + * + * @param icon Name of icon to load (may be absolute or relative) + * @param id Id of this button + * @param parent This button's parent + * @param name This button's internal name + * @param txt This button's text (in a tooltip or otherwise) + */ + KToolBarButton(const QString& icon, int id, QWidget *parent, + const char *name=0L, const QString &txt=QString::null, + KInstance *_instance = KGlobal::instance()); + + /** + * Construct a button with an existing pixmap. It is not + * recommended that you use this as the internal icon loading code + * will almost always get it "right". + * + * @param icon Name of icon to load (may be absolute or relative) + * @param id Id of this button + * @param parent This button's parent + * @param name This button's internal name + * @param txt This button's text (in a tooltip or otherwise) + */ + KToolBarButton(const QPixmap& pixmap, int id, QWidget *parent, + const char *name=0L, const QString &txt=QString::null); + + /** + * Construct a separator button + * + * @param parent This button's parent + * @param name This button's internal name + */ + KToolBarButton(QWidget *parent=0L, const char *name=0L); + + /** + * Standard destructor + */ + ~KToolBarButton(); + +#ifndef KDE_NO_COMPAT + /** + * @deprecated + * Set the pixmap directly for this button. This pixmap should be + * the active one... the dimmed and disabled pixmaps are constructed + * based on this one. However, don't use this function unless you + * are positive that you don't want to use @ref setIcon. + * + * @param pixmap The active pixmap + */ + // this one is from QButton, so #ifdef-ing it out doesn't break BC + virtual void setPixmap(const QPixmap &pixmap); + + /** + * @deprecated + * Force the button to use this pixmap as the default one rather + * then generating it using effects. + * + * @param pixmap The pixmap to use as the default (normal) one + */ + void setDefaultPixmap(const QPixmap& pixmap); + + /** + * @deprecated + * Force the button to use this pixmap when disabled one rather then + * generating it using effects. + * + * @param pixmap The pixmap to use when disabled + */ + void setDisabledPixmap(const QPixmap& pixmap); +#endif + + /** + * Set the text for this button. The text will be either used as a + * tooltip (IconOnly) or will be along side the icon + * + * @param text The button (or tooltip) text + */ + virtual void setText(const QString &text); + + /** + * Set the icon for this button. The icon will be loaded internally + * with the correct size. This function is preferred over @ref setIconSet + * + * @param icon The name of the icon + */ + virtual void setIcon(const QString &icon); + + /// @since 3.1 + virtual void setIcon( const QPixmap &pixmap ) + { QToolButton::setIcon( pixmap ); } + + /** + * Set the pixmaps for this toolbar button from a QIconSet. + * If you call this you don't need to call any of the other methods + * that set icons or pixmaps. + * @param iconset The iconset to use + */ + virtual void setIconSet( const QIconSet &iconset ); + +#ifndef KDE_NO_COMPAT + /** + * @deprecated + * Set the active icon for this button. The pixmap itself is loaded + * internally based on the icon size... .. the disabled and default + * pixmaps, however will only be constructed if @ref #generate is + * true. This function is preferred over @ref setPixmap + * + * @param icon The name of the active icon + * @param generate If true, then the other icons are automagically + * generated from this one + */ + void setIcon(const QString &icon, bool /*generate*/ ) { setIcon( icon ); } + + /** + * @deprecated + * Force the button to use this icon as the default one rather + * then generating it using effects. + * + * @param icon The icon to use as the default (normal) one + */ + void setDefaultIcon(const QString& icon); + + /** + * @deprecated + * Force the button to use this icon when disabled one rather then + * generating it using effects. + * + * @param icon The icon to use when disabled + */ + void setDisabledIcon(const QString& icon); +#endif + + /** + * Turn this button on or off + * + * @param flag true or false + */ + void on(bool flag = true); + + /** + * Toggle this button + */ + void toggle(); + + /** + * Turn this button into a toggle button or disable the toggle + * aspects of it. This does not toggle the button itself. + * Use @ref toggle() for that. + * + * @param toggle true or false + */ + void setToggle(bool toggle = true); + + /** + * Return a pointer to this button's popup menu (if it exists) + */ + QPopupMenu *popup(); + + /** + * Give this button a popup menu. There will not be a delay when + * you press the button. Use @ref setDelayedPopup if you want that + * behavior. You can also make the popup-menu + * "sticky", i.e. visible until a selection is made or the mouse is + * clikced elsewhere, by simply setting the second argument to true. + * This "sticky" button feature allows you to make a selection without + * having to press and hold down the mouse while making a selection. + * + * @param p The new popup menu + * @param toggle if true, makes the button "sticky" (toggled) + */ + void setPopup (QPopupMenu *p, bool toggle = false); + + /** + * Gives this button a delayed popup menu. + * + * This function allows you to add a delayed popup menu to the button. + * The popup menu is then only displayed when the button is pressed and + * held down for about half a second. You can also make the popup-menu + * "sticky", i.e. visible until a selection is made or the mouse is + * clikced elsewhere, by simply setting the second argument to true. + * This "sticky" button feature allows you to make a selection without + * having to press and hold down the mouse while making a selection. + * + * @param p the new popup menu + * @param toggle if true, makes the button "sticky" (toggled) + */ + void setDelayedPopup(QPopupMenu *p, bool toggle = false); + + /** + * Turn this button into a radio button + * + * @param f true or false + */ + void setRadio(bool f = true); + + /** + * Toolbar buttons naturally will assume the global styles + * concerning icons, icons sizes, etc. You can use this function to + * explicitely turn this off, if you like. + * + * @param no_style Will disable styles if true + */ + void setNoStyle(bool no_style = true); + +signals: + void clicked(int); + void doubleClicked(int); + void pressed(int); + void released(int); + void toggled(int); + void highlighted(int, bool); + +public slots: + /** + * This slot should be called whenever the toolbar mode has + * potentially changed. This includes such events as text changing, + * orientation changing, etc. + */ + void modeChange(); + virtual void setTextLabel(const QString&, bool tipToo); + +protected: + void paletteChange(const QPalette &); + void leaveEvent(QEvent *e); + void enterEvent(QEvent *e); + void drawButton(QPainter *p); + bool eventFilter (QObject *o, QEvent *e); + void showMenu(); + QSize sizeHint() const; + QSize minimumSizeHint() const; + QSize minimumSize() const; + + /// @since 3.1 + bool isRaised() const; + /// @since 3.1 + bool isActive() const; + /// @since 3.1 + int iconTextMode() const; + +protected slots: + void slotClicked(); + void slotPressed(); + void slotReleased(); + void slotToggled(); + void slotDelayTimeout(); + +protected: + virtual void virtual_hook( int id, void* data ); +private: + KToolBarButtonPrivate *d; +}; + +/** +* List of @ref KToolBarButton objects. +* @internal +* @version $Id: ktoolbarbutton.h,v 1.26 2002/09/28 15:16:22 tjansen Exp $ +*/ +class KToolBarButtonList : public QIntDict +{ +public: + KToolBarButtonList(); + ~KToolBarButtonList() {} +}; + +#endif diff --git a/extra/kde314/kurifilter.h b/extra/kde314/kurifilter.h new file mode 100644 index 0000000..2b62e4c --- /dev/null +++ b/extra/kde314/kurifilter.h @@ -0,0 +1,602 @@ +/* + * This file is part of the KDE libraries + * Copyright (C) 2000 Yves Arrouye + * + * This library 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. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public License + * along with this library; see the file COPYING.LIB. If not, write to + * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA. + **/ + +#ifndef __kurifilter_h__ +#define __kurifilter_h__ "$Id: kurifilter.h,v 1.27.2.1 2003/06/06 09:12:16 mueller Exp $" + +#include +#include + +#include + +class KURIFilterPrivate; +class KURIFilterDataPrivate; + +class QStringList; +class KCModule; + +/** +* This is a basic message object used for exchanging filtering +* information between the filter plugins and the application +* whenever the application requires more information about the +* URI than just a filtered version of it. Any application can +* create an instance of this class and send it to @ref KURIFilter +* to have the filter plugins fill the necessary information. +* +* @sect Example +*
+*   QString text = "kde.org";
+*   KURIFilterData d = text;
+*   bool filtered = KURIFilter::self()->filter( d );
+*   if( filtered )
+*     print ( "URI: %s\n"Filtered URI: %s\n URI Type: %i\n"Was Filtered: %i"
+*             text.latin1(), d.uri().url().latin1(), d.uriType(), filtered );
+* 
+* +* The above code should yield the following output: +*
+*   URI: kde.org
+*   Filtered URI: http://kde.org
+*   URI Type: 0            <== means NET_PROTOCOL
+*   Was Filtered: 1        <== means the URL was successfully filtered
+* 
+* +* @short A message object for exchanging filtering URI info. +*/ + +class KURIFilterData +{ +friend class KURIFilterPlugin; + +public: + /** + * Describes the type of URI to be filtered. + * + * This enumerator prvoides the return value for + * @ref uriType. A brief description for each value: + * + * @li NET_PROTOCOL - Any network protocol: http, ftp, nttp, pop3, etc... + * @li LOCAL_FILE - A local file whose executable flag is not set + * @li LOCAL_DIR - A local directory + * @li EXECUTABLE - A local file whose executable flag is set + * @li HELP - A man or info page + * @li SHELL - A shell executable (ex: echo "Test..." >> ~/testfile) + * @li BLOCKED - A URI that should be blocked/filtered (ex: ad filtering) + * @li ERROR - An incorrect URI (ex: "~johndoe" when user johndoe + * does not exist in that system ) + * @li UNKNOWN - A URI that is not identified. Default value when + * a KURIFilterData is first created. + */ + enum URITypes { NET_PROTOCOL=0, LOCAL_FILE, LOCAL_DIR, EXECUTABLE, HELP, SHELL, BLOCKED, ERROR, UNKNOWN }; + + /** + * Default constructor. + * + * Creates a URIFilterData object. + */ + KURIFilterData() { init(); } + + /** + * Creates a URIFilterData object from the given URL. + * + * @param url is the URL to be filtered. + */ + KURIFilterData( const KURL& url ) { init( url); } + + /** + * Creates a URIFilterData object from the given string. + * + * @param url is the string to be filtered. + */ + KURIFilterData( const QString& url ) { init( url ); } + + /** + * Copy constructor. + * + * Creates a URIFilterData object from another + * URI filter data object. + * + * @param data the uri filter data to be copied. + */ + KURIFilterData( const KURIFilterData& /*data*/); + + /** + * Destructor. + */ + ~KURIFilterData(); + + /** + * This method has been deprecated and will always return + * TRUE. You should instead use the result from the + * @ref KURIFilter::filterURI() calls. + * + * @deprecated + */ + bool hasBeenFiltered() const { return m_bFiltered; } + + /** + * Returns the filtered or the original URL. + * + * This function returns the filtered url if one + * of the plugins sucessfully filtered the original + * URL. Otherwise, it returns the original URL. + * See @ref #hasBeenFiltered() and + * + * @return the filtered or original url. + */ + KURL uri() const { return m_pURI; } + + /** + * Returns an error message. + * + * This functions returns the error message set + * by the plugin whenever the uri type is set to + * KURIFilterData::ERROR. Otherwise, it returns + * a QString::null. + * + * @return the error message or a NULL when there is none. + */ + QString errorMsg() const { return m_strErrMsg; } + + /** + * Returns the URI type. + * + * This method always returns KURIFilterData::UNKNOWN + * if the given URL was not filtered. + */ + URITypes uriType() const { return m_iType; } + + /** + * Sets the URL to be filtered. + * + * Use this function to set the string to be + * filtered when you construct an empty filter + * object. + * + * @param url the string to be filtered. + */ + void setData( const QString& url ) { init( url ); } + + /** + * Same as above except the argument is a URL. + * + * Use this function to set the string to be + * filtered when you construct an empty filter + * object. + * + * @param url the URL to be filtered. + */ + void setData( const KURL& url ) { init( url ); } + + /** + * Sets the absolute path to be used whenever the supplied + * data is a relative local URL. + * + * NOTE: This function works only for a local resource and + * expects the absolute path to the relative URL set in this + * meta object. If you are extracting the absolute path from + * a KURL object, make sure you always set the argument below + * using KURL::path() instead of KURL::url() so that "file:/" + * would not be appended! Otherwise, the filter might not be + * able to make correct determination whether the relative URL + * locally exists! + * + * @param abs_path the abolute path to the local resource. + * @return true if absolute path is successfully set. Otherwise, false. + */ + bool setAbsolutePath( const QString& /* abs_path */ ); + + /** + * Returns the absolute path if one has already been set. + */ + QString absolutePath() const; + + /** + * Returns true if the supplied data has an absolute path. + */ + bool hasAbsolutePath() const; + + /** + * Returns the command line options and arguments for a + * local resource when present. + * + * @return options and arguments when present, otherwise QString::null + */ + QString argsAndOptions() const; + + /** + * Returns true if the current data is a local resource with + * command line options and arguments. + */ + bool hasArgsAndOptions() const; + + /** + * Returns the name of the icon that matches + * the current filtered URL. + * + * NOTE that this function will return a NULL + * string by default and when no associated icon + * is found. + * + * @return the name of the icon associated with the resource + */ + QString iconName(); + + /** + * Overloaded assigenment operator. + * + * This function allows you to easily assign a KURL + * to a KURIFilterData object. + * + * @return an instance of a KURIFilterData object. + */ + KURIFilterData& operator=( const KURL& url ) { init( url ); return *this; } + + /** + * Overloaded assigenment operator. + * + * This function allows you to easily assign a QString + * to a KURIFilterData object. + * + * @return an instance of a KURIFilterData object. + */ + KURIFilterData& operator=( const QString& url ) { init( url ); return *this; } + +protected: + + /** + * Initializes the KURIFilterData on construction. + */ + void init( const KURL& url = QString::null ); + +private: + bool m_bFiltered; + bool m_bChanged; + + QString m_strErrMsg; + QString m_strIconName; + + KURL m_pURI; + URITypes m_iType; + KURIFilterDataPrivate *d; +}; + + +/** + * Base class for URI filter plugins. + * + * This class applies a single filter to a URI. All + * plugins designed to provide URI filtering functionalities + * should inherit from this abstract class and provide a + * specific filtering implementation. + * + * All inheriting classes need to implement the pure + * virtual function @ref filterURI. Otherwise, they + * would also become abstract. + * + * @short Abstract class for URI filter plugins. + */ +class KURIFilterPlugin : public QObject +{ + Q_OBJECT + +public: + + /** + * Constructs a filter plugin with a given name and + * priority. + * + * @param parent the parent object. + * @param name the name of the plugin. + * @param pri the priority of the plugin. + */ + KURIFilterPlugin( QObject *parent = 0, const char *name = 0, double pri = 1.0 ); + + /** + * Returns the filter's name. + * + * @return A string naming the filter. + */ + virtual QString name() const { return m_strName; } + + /** + * Returns the filter's priority. + * + * Each filter has an assigned priority, a float from 0 to 1. Filters + * with the lowest priority are first given a chance to filter a URI. + * + * @return The priority of the filter. + */ + virtual double priority() const { return m_dblPriority; } + + /** + * Filters a URI. + * + * @param data the URI data to be filtered. + * @return A boolean indicating whether the URI has been changed. + */ + virtual bool filterURI( KURIFilterData& data ) const = 0; + + /** + * Creates a configuration module for the filter. + * + * It is the responsability of the caller to delete the module + * once it is not needed anymore. + * + * @return A configuration module, @p null if the filter isn't configurable. + */ + virtual KCModule *configModule( QWidget*, const char* ) const { return 0; } + + /** + * Returns the name of the configuration module for the filter. + * + * @return the name of a configuration module or @p null if none. + */ + virtual QString configName() const { return name(); } + +protected: + + /** + * Sets the the URL in @p data to @p uri. + */ + void setFilteredURI ( KURIFilterData& data, const KURL& uri ) const; + + /** + * Sets the error message in @p data to @p errormsg. + */ + void setErrorMsg ( KURIFilterData& data, const QString& errmsg ) const { + data.m_strErrMsg = errmsg; + } + + /** + * Sets the URI type in @p data to @p type. + */ + void setURIType ( KURIFilterData& data, KURIFilterData::URITypes type) const { + data.m_iType = type; + data.m_bChanged = true; + } + + /** + * Sets the arguments and options string in @p data + * to @p args if any were found during filterting. + */ + void setArguments( KURIFilterData& data, const QString& args ) const; + + QString m_strName; + double m_dblPriority; + +protected: + virtual void virtual_hook( int id, void* data ); +private: + class KURIFilterPluginPrivate *d; +}; + + +class KURIFilterPluginList : public QPtrList +{ +public: + virtual int compareItems(Item a, Item b) + { + double diff = ((KURIFilterPlugin *) a)->priority() - ((KURIFilterPlugin *) b)->priority(); + return diff < 0 ? -1 : (diff > 0 ? 1 : 0); + } + +private: + KURIFilterPrivate *d; + +}; + +/** + * Manages the filtering of a URI. + * + * The intention of this plugin class is to allow people to extend + * the functionality of KURL without modifying it directly. This + * way KURL will remain a generic parser capable of parsing any + * generic URL that adheres to specifications. + * + * The KURIFilter class applies a number of filters to a URI, + * and returns the filtered version whenever possible. The filters + * are implemented using plugins to provide easy extensibility + * of the filtering mechanism. That is, new filters can be added in + * the future by simply inheriting from @ref KURIFilterPlugin and + * implementing the @ref KURIFilterPlugin::filterURI method. + * + * Use of this plugin-manager class is straight forward. Since + * it is a singleton object, all you have to do is obtain an instance + * by doing @p KURIFilter::self() and use any of the public member + * functions to preform the filtering. + * + * @sect Example + * + * To simply filter a given string: + *
+ * bool filtered = KURIFilter::self()->filterURI( "kde.org" );
+ * 
+ * + * You can alternatively use a KURL: + *
+ * KURL url = "kde.org";
+ * bool filtered = KURIFilter::self()->filterURI( url );
+ * 
+ * + * If you have a constant string or a constant URL, + * simply invoke the corresponding function to obtain + * the filtered string or URL instead of a boolean flag: + *
+ * QString u = KURIFilter::self()->filteredURI( "kde.org" );
+ * 
+ * + * You can also specify only specific filter(s) to be applied + * by supplying the name(s) of the filter(s). By defualt all + * filters that are found are loaded when the KURIFilter object + * is created will be used. These names are taken from the + * enteries in the \".desktop\" files. Here are a couple of + * examples: + *
+ * QString text = "kde.org";
+ * bool filtered = KURIFilter::self()->filterURI( text, "KShortURIFilter" );
+ *
+ * QStringList list;
+ * list << "KShortURIFilter" << "MyFilter";
+ * bool filtered = KURIFilter::self()->filterURI( text, list );
+ * 
+ * + * KURIFilter also allows richer data exchange through a simple + * meta-object called @p KURIFilterData. Using this meta-object + * you can find out more information about the URL you want to + * filter. See @ref KURIFilterData for examples and details. + * + * @short Filters a given URL into its proper format whenever possible. + */ + +class KURIFilter +{ +public: + /** + * Destructor + */ + ~KURIFilter (); + + /** + * Return a static instance of KURIFilter. + */ + static KURIFilter* self(); + + /** + * Filters the URI given by the object URIFilterData. + * + * This filters the given data based on the specified + * filter list. If the list is empty all avaliable + * filter plugins would be used. If not, only those + * given in the list are used. + * + * @param data object that contains the URI to be filtered. + * @param filters specify the list filters to be used + * + * @return a boolean indicating whether the URI has been changed + */ + bool filterURI( KURIFilterData& data, const QStringList& filters = QStringList() ); + + /** + * Filters the URI given by the URL. + * + * This filters the given URL based on the specified + * filter list. If the list is empty all avaliable + * filter plugins would be used. If not, only those + * given in the list are used. + * + * @param uri the URI to filter. + * @param filters specify the list of filters to be used + * + * @return a boolean indicating whether the URI has been changed + */ + bool filterURI( KURL &uri, const QStringList& filters = QStringList() ); + + /** + * Filters a string representing a URI. + * + * This filters the given string based on the specified + * filter list. If the list is empty all avaliable + * filter plugins would be used. If not, only those + * given in the list are used. + * + * @param uri The URI to filter. + * @param filters specify the list filters to be used + * + * @return a boolean indicating whether the URI has been changed + */ + bool filterURI( QString &uri, const QStringList& filters = QStringList() ); + + /** + * Returns the filtered URI. + * + * This filters the given URL based on the specified + * filter list. If the list is empty all avaliable + * filter plugins would be used. If not, only those + * given in the list are used. + * + * @param uri The URI to filter. + * @param filters specify the list filters to be used + * + * @return the filtered URI or null if it cannot be filtered + */ + KURL filteredURI( const KURL &uri, const QStringList& filters = QStringList() ); + + /** + * Return a filtered string representation of a URI. + * + * This filters the given URL based on the specified + * filter list. If the list is empty all avaliable + * filter plugins would be used. If not, only those + * given in the list are used. + * + * @param uri the URI to filter. + * @param filters specify the list filters to be used + * + * @return the filtered URI or null if it cannot be filtered + */ + QString filteredURI( const QString &uri, const QStringList& filters = QStringList() ); + + /** + * Return an iterator to iterate over all loaded + * plugins. + * + * @return a plugin iterator. + */ + QPtrListIterator pluginsIterator() const; + + /** + * Return a list of the names of all loaded plugins + * + * @since 3.1 + * + * @return a QStringList of plugin names + */ + QStringList pluginNames() const; + +protected: + + /** + * A protected constructor. + * + * This constructor creates a KURIFilter and + * initializes all plugins it can find by invoking + * @ref loadPlugins. + */ + KURIFilter(); + + /** + * Loads all allowed plugins. + * + * This function loads all filters that have not + * been dis + */ + void loadPlugins(); + +private: + + static KURIFilter *m_self; + KURIFilterPluginList m_lstPlugins; + KURIFilterPrivate *d; + +}; + +#endif + diff --git a/extra/kde315/kaccelaction.h b/extra/kde315/kaccelaction.h new file mode 100644 index 0000000..7a368a9 --- /dev/null +++ b/extra/kde315/kaccelaction.h @@ -0,0 +1,564 @@ +/* This file is part of the KDE libraries + Copyright (C) 2001,2002 Ellis Whitehead + + This library 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. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef _KACCELACTION_H +#define _KACCELACTION_H + +#include +#include +#include +#include + +#include + +class KAccelBase; + +class QObject; +class KConfig; +class KConfigBase; + +/** + * @internal + * A KAccelAction prepresents an action that can be executed using + * an accelerator key. Each KAccelAction has a name, a label, a + * "What's this" string and a @ref KShortcut. The user can configure and + * enable/disable them using @ref KKeyDialog. + * + *
+ *	1) KAccelAction = "Run Command"
+ *		Default3 = "Alt+F2"
+ *		Default4 = "Meta+Enter;Alt+F2"
+ *		1) KShortcut = "Meta+Enter"
+ *			1) KKeySequence = "Meta+Enter"
+ *				1) KKey = "Meta+Enter"
+ *					1) Meta+Enter
+ *					2) Meta+Keypad_Enter
+ *		2) KShortcut = "Alt+F2"
+ *			1) KKeySequence = "Alt+F2"
+ *				1) Alt+F2
+ *	2) KAccelAction = "Something"
+ *		Default3 = ""
+ *		Default4 = ""
+ *		1) KShortcut = "Meta+X,Asterisk"
+ *			1) KKeySequence = "Meta+X,Asterisk"
+ *				1) KKey = "Meta+X"
+ *					1) Meta+X
+ *				2) KKey = "Asterisk"
+ *					1) Shift+8 (English layout)
+ *					2) Keypad_Asterisk
+ * 
+ * @short An accelerator action + * @see KAccel + * @see KGlobalAccel + * @see KKeyChooser + * @see KKeyDialog + */ +class KAccelAction +{ + public: + /** + * Creates an empty KAccelAction. + * @see clear() + */ + KAccelAction(); + + /** + * Copy constructor. + */ + KAccelAction( const KAccelAction& ); + + /** + * Creates a new KAccelAction. + * @param sName the name of the accelerator + * @param sLabel the label of the accelerator (i18n!) + * @param sWhatsThis the What's This text (18n!) + * @param cutDef3 the default shortcut for 3 modifier systems + * @param cutDef4 the default shortcut for 4 modifier systems + * @param pObjSlot the receiver of a signal when the key has been + * pressed + * @param psMethodSlot the slot to connect for key presses. Receives + * an int, as set by @ref setID(), as only argument + * @param bConfigurable if true the user can configure the shortcut + * @param bEnabled true if the accelerator should be enabled + */ + KAccelAction( const QString& sName, const QString& sLabel, const QString& sWhatsThis, + const KShortcut& cutDef3, const KShortcut& cutDef4, + const QObject* pObjSlot, const char* psMethodSlot, + bool bConfigurable, bool bEnabled ); + ~KAccelAction(); + + /** + * Clears the accelerator. + */ + void clear(); + + /** + * Re-initialized the KAccelAction. + * @param sName the name of the accelerator + * @param sLabel the label of the accelerator (i18n!) + * @param sWhatsThis the What's This text (18n!) + * @param cutDef3 the default shortcut for 3 modifier systems + * @param cutDef4 the default shortcut for 4 modifier systems + * @param pObjSlot the receiver of a signal when the key has been + * pressed + * @param psMethodSlot the slot to connect for key presses. Receives + * an int, as set by @ref setID(), as only argument + * @param bConfigurable if true the user can configure the shortcut + * @param bEnabled true if the accelerator should be enabled + * @return true if successful, false otherwise + */ + bool init( const QString& sName, const QString& sLabel, const QString& sWhatsThis, + const KShortcut& cutDef3, const KShortcut& cutDef4, + const QObject* pObjSlot, const char* psMethodSlot, + bool bConfigurable, bool bEnabled ); + + /** + * Copies this KAccelAction. + */ + KAccelAction& operator=( const KAccelAction& ); + + /** + * Returns the name of the accelerator action. + * @return the name of the accelerator action, can be null if not + * set + */ + const QString& name() const { return m_sName; } + + /** + * Returns the label of the accelerator action. + * @return the label of the accelerator action, can be null if + * not set + */ + const QString& label() const { return m_sLabel; } + + /** + * Returns the What's This text of the accelerator action. + * @return the What's This text of the accelerator action, can be + * null if not set + */ + const QString& whatsThis() const { return m_sWhatsThis; } + + /** + * The shortcut that is actually used (may be used configured). + * @return the shortcut of the KAccelAction, can be null if not set + * @see shortcutDefault() + */ + const KShortcut& shortcut() const { return m_cut; } + + /** + * The default shortcut for this system. + * @return the default shortcut on this system, can be null if not set + * @see shortcut() + * @see shortcutDefault3() + * @see shortcutDefault4() + */ + const KShortcut& shortcutDefault() const; + + /** + * The default shortcut for 3 modifier systems. + * @return the default shortcut for 3 modifier systems, can be null + * if not set + * @see shortcutDefault() + * @see shortcutDefault4() + * @see useFourModifierKeys() + */ + const KShortcut& shortcutDefault3() const { return m_cutDefault3; } + + /** + * The default shortcut for 4 modifier systems. + * @return the default shortcut for 4 modifier systems, can be null + * if not set + * @see shortcutDefault() + * @see shortcutDefault3() + * @see useFourModifierKeys() + */ + const KShortcut& shortcutDefault4() const { return m_cutDefault4; } + + /** + * Returns the receiver of signals. + * @return the receiver of signals (can be 0 if not set) + */ + const QObject* objSlotPtr() const { return m_pObjSlot; } + + /** + * Returns the slot for the signal. + * @return the slot for the signal + */ + const char* methodSlotPtr() const { return m_psMethodSlot; } + + /** + * Checks whether the user can configure the action. + * @return true if configurable, false otherwise + */ + bool isConfigurable() const { return m_bConfigurable; } + + /** + * Checks whether the action is enabled. + * @return true if enabled, false otherwise + */ + bool isEnabled() const { return m_bEnabled; } + + /** + * Sets the name of the accelerator action. + * @param name the new name + */ + void setName( const QString& name ); + + /** + * Sets the user-readable label of the accelerator action. + * @param label the new label (i18n!) + */ + void setLabel( const QString& label ); + + /** + * Sets the What's This text for the accelerator action. + * @param whatsThis the new What's This text (i18n!) + */ + void setWhatsThis( const QString& whatsThis ); + + /** + * Sets the new shortcut of the accelerator action. + * @param rgCuts the shortcut to set + * @return true if successful, false otherwise + */ + bool setShortcut( const KShortcut& rgCuts ); + + /** + * Sets the slot of the accelerator action. + * @param pObjSlot the receiver object of the signal + * @param psMethodSlot the slot for the signal + */ + void setSlot( const QObject* pObjSlot, const char* psMethodSlot ); + + /** + * Enables or disabled configuring the action. + * @param configurable true to enable configurability, false to disable + */ + void setConfigurable( bool configurable ); + + /** + * Enables or disabled the action. + * @param configurable true to enable the action, false to disable + */ + void setEnabled( bool enable ); + + /** + * Retrieves the id set using @ref setID. + * @return the id of the accelerator action + */ + int getID() const { return m_nIDAccel; } + + /** + * Allows you to set an id that will be used as the action + * signal's argument. + * + * @param n the new id + * @see @ref getID() + */ + void setID( int n ) { m_nIDAccel = n; } + + /** + * Checkes whether the action is connected (emits signals). + * @return true if connected, false otherwise + */ + bool isConnected() const; + + /** + * Sets a key sequence of the action's shortcut. + * @param i the position of the sequence + * @param keySeq the new new sequence + * @return true if successful, false otherwise + * @see KShortcut::setSeq() + */ + bool setKeySequence( uint i, const KKeySequence &keySeq ); + + /** + * Clears the action's shortcut. It will not contain any sequences after + * calling this method. + * @see KShortcut::clear() + */ + void clearShortcut(); + + /** + * Checks whether the action's shortcut contains the given key sequence. + * @param keySeq the key sequence to check + * @return true if the shortcut contains the given sequence + * @see KShortcut::contains() + */ + bool contains( const KKeySequence &keySeq ); + + /** + * Returns the string representation of the action's shortcut. + * @return the string representation of the action's shortcut. + * @see KShortcut::toString() + */ + QString toString() const; + + /** + * @internal + */ + QString toStringInternal() const; + + /** + * Returns true if four modifier keys will be used. + * @return true if four modifier keys will be used. + */ + static bool useFourModifierKeys(); + + /** + * Selects 3 or 4 modifier default shortcuts. + * @param use true to use 4 modifier shortcuts, false to use + * 3 modifier shortcuts + */ + static void useFourModifierKeys( bool use ); + + protected: + QString m_sName, + m_sLabel, + m_sWhatsThis; + KShortcut m_cut; + KShortcut m_cutDefault3, m_cutDefault4; + const QObject* m_pObjSlot; + const char* m_psMethodSlot; + bool m_bConfigurable, + m_bEnabled; + int m_nIDAccel; + uint m_nConnections; + + void incConnections(); + void decConnections(); + + private: + static int g_bUseFourModifierKeys; + class KAccelActionPrivate* d; + + friend class KAccelActions; + friend class KAccelBase; +}; + +//--------------------------------------------------------------------- +// KAccelActions +//--------------------------------------------------------------------- + +/** + * @internal + * This class represents a collection of @ref KAccelAction objects. + * + * @short A collection of accelerator actions + * @see KAccelAction + */ +class KAccelActions +{ + public: + /** + * Creates a new, empty KAccelActions object. + */ + KAccelActions(); + + /** + * Copy constructor (deep copy). + */ + KAccelActions( const KAccelActions& ); + virtual ~KAccelActions(); + + /** + * Removes all items from this collection. + */ + void clear(); + + /** + * Initializes this object with the given actions. + * It will make a deep copy of all actions. + * @param actions the actions to copy + * @return true if successful, false otherwise + */ + bool init( const KAccelActions &actions ); + + /** + * Loads the actions from the given configuration file. + * + * @param config the configuration file to load from + * @param sGroup the group in the configuration file + * @return true if successful, false otherwise + */ + bool init( KConfigBase& config, const QString& sGroup ); + + /** + * Updates the shortcuts of all actions in this object + * with the shortcuts from the given object. + * @param shortcuts the collection that contains the new + * shortcuts + */ + void updateShortcuts( KAccelActions &shortcuts ); + + /** + * Retrieves the index of the action with the given name. + * @param sAction the action to search + * @return the index of the action, or -1 if not found + */ + int actionIndex( const QString& sAction ) const; + + /** + * Returns the action with the given @p index. + * @param index the index of an action. You must not + * use an index that is too high. + * @return the KAccelAction with the given index + * @see count() + */ + KAccelAction* actionPtr( uint index ); + + /** + * Returns the action with the given @p index. + * @param index the index of an action. You must not + * use an index that is too high. + * @return the KAccelAction with the given index + * @see count() + */ + const KAccelAction* actionPtr( uint index ) const; + + /** + * Returns the action with the given name. + * @param aAction the name of the action to search + * @return the KAccelAction with the given name, or 0 + * if not found + */ + KAccelAction* actionPtr( const QString& sAction ); + + /** + * Returns the action with the given name. + * @param aAction the name of the action to search + * @return the KAccelAction with the given name, or 0 + * if not found + */ + const KAccelAction* actionPtr( const QString& sAction ) const; + + /** + * Returns the action with the given key sequence. + * @param cut the sequence to search for + * @return the KAccelAction with the given sequence, or 0 + * if not found + */ + KAccelAction* actionPtr( KKeySequence cut ); + + /** + * Returns the action with the given @p index. + * @param index the index of an action. You must not + * use an index that is too high. + * @return the KAccelAction with the given index + * @see actionPtr() + * @see count() + */ + KAccelAction& operator []( uint index ); + + /** + * Returns the action with the given @p index. + * @param index the index of an action. You must not + * use an index that is too high. + * @return the KAccelAction with the given index + * @see actionPtr() + * @see count() + */ + const KAccelAction& operator []( uint index ) const; + + /** + * Inserts an action into the collection. + * @param sName the name of the accelerator + * @param sLabel the label of the accelerator (i18n!) + * @param sWhatsThis the What's This text (18n!) + * @param cutDef3 the default shortcut for 3 modifier systems + * @param cutDef4 the default shortcut for 4 modifier systems + * @param pObjSlot the receiver of a signal when the key has been + * pressed + * @param psMethodSlot the slot to connect for key presses. Receives + * an int, as set by @ref setID(), as only argument + * @param bConfigurable if true the user can configure the shortcut + * @param bEnabled true if the accelerator should be enabled + * @return the new action + */ + KAccelAction* insert( const QString& sAction, const QString& sLabel, const QString& sWhatsThis, + const KShortcut& rgCutDefaults3, const KShortcut& rgCutDefaults4, + const QObject* pObjSlot = 0, const char* psMethodSlot = 0, + bool bConfigurable = true, bool bEnabled = true ); + + /** + * Inserts an action into the collection. + * @param sName the name of the accelerator + * @param sLabel the label of the accelerator (i18n!) + * @return the new action + */ + KAccelAction* insert( const QString& sName, const QString& sLabel ); + + /** + * Removes the given action. + * @param sAction the name of the action. + * @return true if successful, false otherwise + */ + bool remove( const QString& sAction ); + + /** + * Loads the actions from the given configuration file. + * + * @param sConfigGroup the group in the configuration file + * @param pConfig the configuration file to load from + * @return true if successful, false otherwise + */ + bool readActions( const QString& sConfigGroup = "Shortcuts", KConfigBase* pConfig = 0 ); + + /** + * Writes the actions to the given configuration file. + * + * @param sConfigGroup the group in the configuration file + * @param pConfig the configuration file to save to + * @param bWriteAll true to write all actions + * @param bGlobal true to write to the global configuration file + * @return true if successful, false otherwise + */ + bool writeActions( const QString& sConfigGroup = "Shortcuts", KConfigBase* pConfig = 0, + bool bWriteAll = false, bool bGlobal = false ) const; + + /** + * Emit a keycodeChanged signal. + */ + void emitKeycodeChanged(); + + /** + * Returns the number of actions in the collection. + * @return the number of actions + */ + uint count() const; + + protected: + KAccelBase* m_pKAccelBase; + KAccelAction** m_prgActions; + uint m_nSizeAllocated, m_nSize; + + void resize( uint ); + void insertPtr( KAccelAction* ); + + private: + class KAccelActionsPrivate* d; + + KAccelActions( KAccelBase* ); + void initPrivate( KAccelBase* ); + KAccelActions& operator =( KAccelActions& ); + + friend class KAccelBase; +}; + +#endif // _KACCELACTION_H diff --git a/extra/kde315/kaccelbase.h b/extra/kde315/kaccelbase.h new file mode 100644 index 0000000..219eaf4 --- /dev/null +++ b/extra/kde315/kaccelbase.h @@ -0,0 +1,229 @@ +/* This file is part of the KDE libraries + Copyright (C) 2001 Ellis Whitehead + + This library 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. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef _KACCELBASE_H +#define _KACCELBASE_H + +#include +#include +#include +#include +#include + +#include "kaccelaction.h" +#include "kkeyserver_x11.h" + +class QPopupMenu; +class QWidget; + +//---------------------------------------------------- + +/** + * @internal + * Handle keyboard accelerators. + * + * Allow an user to configure + * key bindings through application configuration files or through the + * @ref KKeyChooser GUI. + * + * A @ref KAccel contains a list of accelerator items. Each accelerator item + * consists of an action name and a keyboard code combined with modifiers + * (Shift, Ctrl and Alt.) + * + * For example, "Ctrl+P" could be a shortcut for printing a document. The key + * codes are listed in ckey.h. "Print" could be the action name for printing. + * The action name identifies the key binding in configuration files and the + * @ref KKeyChooser GUI. + * + * When pressed, an accelerator key calls the slot to which it has been + * connected. Accelerator items can be connected so that a key will activate + * two different slots. + * + * A KAccel object handles key events sent to its parent widget and to all + * children of this parent widget. + * + * Key binding reconfiguration during run time can be prevented by specifying + * that an accelerator item is not configurable when it is inserted. A special + * group of non-configurable key bindings are known as the + * standard accelerators. + * + * The standard accelerators appear repeatedly in applications for + * standard document actions such as printing and saving. Convenience methods are + * available to insert and connect these accelerators which are configurable on + * a desktop-wide basis. + * + * It is possible for a user to choose to have no key associated with + * an action. + * + * The translated first argument for @ref insertItem() is used only + * in the configuration dialog. + *
+ * KAccel *a = new KAccel( myWindow );
+ * // Insert an action "Scroll Up" which is associated with the "Up" key:
+ * a->insertItem( i18n("Scroll up"), "Scroll Up", "Up" );
+ * // Insert an action "Scroll Down" which is not associated with any key:
+ * a->insertItem( i18n("Scroll down"), "Scroll Down", 0);
+ * a->connectItem( "Scroll up", myWindow, SLOT( scrollUp() ) );
+ * // a->insertStdItem( KStdAccel::Print ); //not necessary, since it
+ *	// is done automatially with the
+ *	// connect below!
+ * a->connectItem(KStdAccel::Print, myWindow, SLOT( printDoc() ) );
+ *
+ * a->readSettings();
+ *
+ * + * If a shortcut has a menu entry as well, you could insert them like + * this. The example is again the @ref KStdAccel::Print from above. + * + *
+ * int id;
+ * id = popup->insertItem("&Print",this, SLOT(printDoc()));
+ * a->changeMenuAccel(popup, id, KStdAccel::Print );
+ * 
+ * + * If you want a somewhat "exotic" name for your standard print action, like + * id = popup->insertItem(i18n("Print &Document"),this, SLOT(printDoc())); + * it might be a good idea to insert the standard action before as + * a->insertStdItem( KStdAccel::Print, i18n("Print Document") ) + * as well, so that the user can easily find the corresponding function. + * + * This technique works for other actions as well. Your "scroll up" function + * in a menu could be done with + * + *
+ *    id = popup->insertItem(i18n"Scroll &up",this, SLOT(scrollUp()));
+ *    a->changeMenuAccel(popup, id, "Scroll Up" );
+ * 
+ * + * Please keep the order right: First insert all functions in the + * acceleratior, then call a -> @ref readSettings() and @em then build your + * menu structure. + * + * @short Configurable key binding support. + * @version $Id: kaccelbase.h,v 1.22 2002/10/06 18:19:39 ellis Exp $ + */ + +class KAccelBase +{ + public: + enum Init { QT_KEYS = 0x00, NATIVE_KEYS = 0x01 }; + enum Signal { KEYCODE_CHANGED }; + + KAccelBase( int fInitCode ); + virtual ~KAccelBase(); + + uint actionCount() const; + KAccelActions& actions(); + bool isEnabled() const; + + KAccelAction* actionPtr( const QString& sAction ); + const KAccelAction* actionPtr( const QString& sAction ) const; + KAccelAction* actionPtr( const KKey& key ); + KAccelAction* actionPtr( const KKeyServer::Key& key ); + + const QString& configGroup() const { return m_sConfigGroup; } + void setConfigGroup( const QString& group ); + void setConfigGlobal( bool global ); + virtual void setEnabled( bool bEnabled ) = 0; + bool getAutoUpdate() { return m_bAutoUpdate; } + // return value of AutoUpdate flag before this call. + bool setAutoUpdate( bool bAuto ); + +// Procedures for manipulating Actions. + //void clearActions(); + + KAccelAction* insert( const QString& sName, const QString& sDesc ); + KAccelAction* insert( + const QString& sAction, const QString& sDesc, const QString& sHelp, + const KShortcut& rgCutDefaults3, const KShortcut& rgCutDefaults4, + const QObject* pObjSlot, const char* psMethodSlot, + bool bConfigurable = true, bool bEnabled = true ); + bool remove( const QString& sAction ); + bool setActionSlot( const QString& sAction, const QObject* pObjSlot, const char* psMethodSlot ); + + bool updateConnections(); + + bool setShortcut( const QString& sAction, const KShortcut& cut ); + +// Modify individual Action sub-items + bool setActionEnabled( const QString& sAction, bool bEnable ); + + /** + * Read all key associations from @p config, or (if @p config + * is zero) from the application's configuration file + * @ref KGlobal::config(). + * + * The group in which the configuration is stored can be + * set with @ref setConfigGroup(). + */ + void readSettings( KConfigBase* pConfig = 0 ); + + /** + * Write the current configurable associations to @p config, + * or (if @p config is zero) to the application's + * configuration file. + */ + void writeSettings( KConfigBase* pConfig = 0 ) const; + + QPopupMenu* createPopupMenu( QWidget* pParent, const KKeySequence& ); + + // Protected methods + protected: + void slotRemoveAction( KAccelAction* ); + + void createKeyList( QValueVector& rgKeys ); + bool insertConnection( KAccelAction* ); + bool removeConnection( KAccelAction* ); + + virtual bool emitSignal( Signal ) = 0; + virtual bool connectKey( KAccelAction&, const KKeyServer::Key& ) = 0; + virtual bool connectKey( const KKeyServer::Key& ) = 0; + virtual bool disconnectKey( KAccelAction&, const KKeyServer::Key& ) = 0; + virtual bool disconnectKey( const KKeyServer::Key& ) = 0; + + protected: + struct ActionInfo + { + KAccelAction* pAction; + uint iSeq, iVariation; + //ActionInfo* pInfoNext; // nil if only one action uses this key. + + ActionInfo() { pAction = 0; iSeq = 0xffff; iVariation = 0xffff; } + ActionInfo( KAccelAction* _pAction, uint _iSeq, uint _iVariation ) + { pAction = _pAction; iSeq = _iSeq; iVariation = _iVariation; } + }; + typedef QMap KKeyToActionMap; + + KAccelActions m_rgActions; + KKeyToActionMap m_mapKeyToAction; + QValueList m_rgActionsNonUnique; + bool m_bNativeKeys; // Use native key codes instead of Qt codes + bool m_bEnabled; + bool m_bConfigIsGlobal; + QString m_sConfigGroup; + bool m_bAutoUpdate; + KAccelAction* mtemp_pActionRemoving; + + private: + KAccelBase& operator =( const KAccelBase& ); + + friend class KAccelActions; +}; + +#endif // _KACCELBASE_H diff --git a/extra/kde315/kicontheme.h b/extra/kde315/kicontheme.h new file mode 100644 index 0000000..faf34ab --- /dev/null +++ b/extra/kde315/kicontheme.h @@ -0,0 +1,331 @@ +/* vi: ts=8 sts=4 sw=4 + * + * $Id: kicontheme.h,v 1.26.2.1 2003/09/21 20:10:28 mcamen Exp $ + * + * This file is part of the KDE project, module kdecore. + * Copyright (C) 2000 Geert Jansen + * Antonio Larrosa + * + * This is free software; it comes under the GNU Library General + * Public License, version 2. See the file "COPYING.LIB" for the + * exact licensing terms. + * + */ + +#ifndef __KIconTheme_h_Included__ +#define __KIconTheme_h_Included__ + +#include +#include +#include + +class KConfig; +//class KIconThemeDir; + +class KIconThemePrivate; + +class KIconPrivate; + +/** + * One icon as found by KIconTheme. Also serves as a namespace containing + * icon related constants. + * @see KIconEffect + * @see KIconTheme + * @see KIconLoader + */ +class KIcon +{ +public: + KIcon() { size = 0; } + + /** + * Return true if this icon is valid, false otherwise. + */ + bool isValid() const { return size != 0; } + + /** + * Defines the context of the icon. + */ + enum Context { + Any, ///< Some icon with unknown purpose. + Action, ///< An action icon (e.g. 'save', 'print'). + Application, ///< An icon that represents an application. + Device, ///< An icon that represents a device. + FileSystem, ///< An icon that represents a file system. + MimeType ///< An icon that represents a mime type (or file type). + }; + + /** + * The type of the icon. + */ + enum Type { + Fixed, ///< Fixed-size icon. + Scalable, ///< Scalable-size icon. + Threshold ///< A threshold icon. + }; + + /** + * The type of a match. + */ + enum MatchType { + MatchExact, ///< Only try to find an exact match. + MatchBest ///< Take the best match if there is no exact match. + + }; + + // if you add a group here, make sure to change the config reading in + // KIconLoader too + /** + * The group an an icon. + */ + enum Group { NoGroup=-1, Desktop=0, FirstGroup=0, Toolbar, + MainToolbar, Small, Panel, LastGroup, User }; + + /** + * These are the standard sizes for icons. + */ + enum StdSizes { + /// small icons for menu entries + SizeSmall=16, + /// medium sized icons for the desktop + SizeMedium=32, + /// large sized icons for the panel + SizeLarge=48 }; + + /** + * Defines the possible states of an icon. + */ + enum States { DefaultState, ///< The default state. + ActiveState, ///< Icon is active. + DisabledState, ///< Icon is disabled. + LastState ///< Last state (last constant) + }; + + /** + * This defines an overlay, a semi-transparent image that is + * projected onto the icon. They are used to show that the file + * represented by the icon is, for example, locked, zipped or hidden. + */ + enum Overlays { + LockOverlay=0x100, ///< a file is locked + ZipOverlay=0x200, ///< a file is zipped + LinkOverlay=0x400, ///< a fileis a link + HiddenOverlay=0x800, ///< a file is hidden + ShareOverlay=0x1000, ///< a file is shared + OverlayMask = ~0xff + }; + + /** + * The size in pixels of the icon. + */ + int size; + + /** + * The context of the icon. + */ + Context context; + + /** + * The type of the icon: Fixed, Scalable or Threshold. + **/ + Type type; + + /** + * The threshold in case type == Threshold + */ + int threshold; + + /** + * The full path of the icon. + */ + QString path; + +private: + KIconPrivate *d; +}; + +inline KIcon::Group& operator++(KIcon::Group& group) { group = static_cast(group+1); return group; } +inline KIcon::Group operator++(KIcon::Group& group,int) { KIcon::Group ret = group; ++group; return ret; } + +/** + * Class to use/access icon themes in KDE. This class is used by the + * iconloader but can be used by others too. + * @see KIconLoader + */ +class KIconTheme +{ +public: + /** + * Load an icon theme by name. + * @param name the name of the theme (e.g. "hicolor" or "keramik") + * @param appName the name of the application. Can be null. This argument + * allows applications to have themed application icons. + */ + KIconTheme(const QString& name, const QString& appName=QString::null); + ~KIconTheme(); + + /** + * The stylized name of the icon theme. + * @return the (human-readable) name of the theme + */ + QString name() const { return mName; } + + /** + * A description for the icon theme. + * @return a human-readable description of the theme, QString::null + * if there is none + */ + QString description() const { return mDesc; } + + /** + * Return the name of the "example" icon. This can be used to + * present the theme to the user. + * @return the name of the example icon, QString::null if there is none + */ + QString example() const; + + /** + * Return the name of the screenshot. + * @return the name of the screenshot, QString::null if there is none + */ + QString screenshot() const; + + /** + * Returns the name of this theme's link overlay. + * @return the name of the link overlay + */ + QString linkOverlay() const; + + /** + * Returns the name of this theme's zip overlay. + * @return the name of the zip overlay + */ + QString zipOverlay() const; + + /** + * Returns the name of this theme's lock overlay. + * @return the name of the lock overlay + */ + QString lockOverlay() const; + + /** + * Returns the name of this theme's share overlay. + * @return the name of the share overlay + * @since 3.1 + */ + QString shareOverlay () const; + + /** + * Returns the toplevel theme directory. + * @return the directory of the theme + */ + QString dir() const { return mDir; } + + /** + * The themes this icon theme falls back on. + * @return a list of icon themes that are used as fall-backs + */ + QStringList inherits() const { return mInherits; } + + /** + * The icon theme exists? + * @return true if the icon theme is valid + */ + bool isValid() const; + + /** + * The icon theme should be hidden to the user? + * @return true if the icon theme is hidden + * @since 3.1 + */ + bool isHidden() const; + + /** + * The minimum display depth required for this theme. This can either + * be 8 or 32. + * @return the minimum bpp (8 or 32) + */ + int depth() const { return mDepth; } + + /** + * The default size of this theme for a certain icon group. + * @param group The icon group. See @ref #KIcon::Group. + * @return The default size in pixels for the given icon group. + */ + int defaultSize(KIcon::Group group) const; + + /** + * Query available sizes for a group. + * @param group The icon group. See @ref #KIcon::Group. + * @return a list of available sized for the given group + */ + QValueList querySizes(KIcon::Group group) const; + + /** + * Query available icons for a size and context. + * @param size the size of the icons + * @param context the context of the icons + * @return the list of icon names + */ + QStringList queryIcons(int size, KIcon::Context context = KIcon::Any) const; + + /** + * Query available icons for a context and preferred size. + * @param size the size of the icons + * @param context the context of the icons + * @return the list of icon names + */ + QStringList queryIconsByContext(int size, KIcon::Context context = KIcon::Any) const; + + + /** + * Lookup an icon in the theme. + * @param name The name of the icon, without extension. + * @param size The desired size of the icon. + * @param match The matching mode. KIcon::MatchExact returns an icon + * only if matches exactly. KIcon::MatchBest returns the best matching + * icon. + * @return A KIcon class that describes the icon. If an icon is found, + * @see KIcon::isValid will return true, and false otherwise. + */ + KIcon iconPath(const QString& name, int size, KIcon::MatchType match) const; + + /** + * List all icon themes installed on the system, global and local. + * @return the list of all icon themes + */ + static QStringList list(); + + /** + * Returns the current icon theme. + * @return the name of the current theme + */ + static QString current(); + + /** + * Reconfigure the theme. + */ + static void reconfigure(); + + /** + * Returns the default icon theme. + * @return the name of the default theme name + * @since 3.1 + */ + static QString defaultThemeName(); + +private: + int mDefSize[8]; + QValueList mSizes[8]; + + int mDepth; + QString mDir, mName, mDesc; + QStringList mInherits; +// QPtrList mDirs; + KIconThemePrivate *d; + + static QString *_theme; + static QStringList *_theme_list; +}; + +#endif diff --git a/extra/kde315/kkeyserver_x11.h b/extra/kde315/kkeyserver_x11.h new file mode 100644 index 0000000..d458922 --- /dev/null +++ b/extra/kde315/kkeyserver_x11.h @@ -0,0 +1,435 @@ +#ifndef _KKEYSERVER_X11_H +#define _KKEYSERVER_X11_H + +#include "kshortcut.h" +#include "kkeynative.h" + +/** + * A collection of functions for the conversion of key presses and + * their modifiers from the window system (X11) specific format + * to the generic format and vice-versa. + */ +namespace KKeyServer +{ + /** + * Supplement enum KKey::ModFlag + * @since 3.1 + */ + enum ExtraModFlag { MODE_SWITCH = 0x2000 }; + + struct CodeMod { int code, mod; }; + + /** + * Represents a key symbol. + * @see KKey + * @see KKeyServer + */ + struct Sym + { + public: + /// the actual value of the symbol + uint m_sym; + + /// Creates a null symbol. + Sym() + { m_sym = 0; } + /** + * Creates asymbol with the given value. + * @param sym the value + */ + Sym( uint sym ) + { m_sym = sym; } + /** + * Creates a symbol from the given string description. + * @param s the description of the symbol + * @see toString() + */ + Sym( const QString& s ) + { init( s ); } + + /** + * Initializes the symbol with the given Qt key code. + * @param keyQt the qt key code + * @return true if succesful, false otherwise + * @see Qt::Key + */ + bool initQt( int keyQt ); + + /** + * Initializes the key with the given string description. + * @param s the string description + * @return true if succesful, false otherwise + * @see toString() + */ + bool init( const QString &s ); + + /** + * Returns the qt key code of the symbol. + * @return the qt key code + */ + int qt() const; + + /** + * @internal + */ + QString toStringInternal() const; + + /** + * Returns the string representation of the symbol. + * @return the string representation of the symbol + */ + QString toString() const; + + /** + * Returns the mods that are required for this symbol as + * ORed @ref KKey::ModFlag's. For example, Break requires a + * Ctrl to be valid. + * @return the required @ref KKey::ModFlag's + * @see KKey::ModFlag + */ + uint getModsRequired() const; + + /** + * TODO: please find out what this method does and document it + */ + uint getSymVariation() const; + + /** + * Casts the symbol to its integer representation. + */ + operator uint() const { return m_sym; } + + /** + * Overloaded operator to convert ints to Sym. + */ + Sym& operator =( uint sym ) { m_sym = sym; return *this; } + + private: + QString toString( bool bUserSpace ) const; + + static void capitalizeKeyname( QString& ); + }; + + /** + * Represents a key press. + * @see KKey + */ + struct Key + { + /// Code for native Keys in Qt + enum { CODE_FOR_QT = 256 }; + + /// The code of the key + uint m_code; + + /// The modifiers of the key + uint m_mod; + + /// The symbol of the key + uint m_sym; + + /** + * Initializes the key with a @ref KKey. + * @param key the key to get the data from + * @param bQt true to take the Qt keycode, false + * for the native key code + * @see Qt::Key + * @see KKeyNative + */ + bool init( const KKey& key, bool bQt ); + + /** + * Checks whether the key code is a native code. + * @return true if native code of the window system, + * false if it is a Qt keycode + * @see Qt::Key + * @see KKeyNative + */ + bool isNative() const { return m_code != CODE_FOR_QT; } + + /** + * Returns the code of the key. + * @return the code of the key + */ + uint code() const { return m_code; } + + /** + * Returns the modifiers of the key. + * @return the modifiers of the key + */ + uint mod() const { return m_mod; } + + /** + * Returns the symbol of the key. + * @return the symbol of the key + */ + uint sym() const { return m_sym; } + + /** + * Returns the qt key code. + * @return the qt key code + */ + int keyCodeQt() const { return (int) m_sym; } + + /** + * Sets the qt key code. + * @param keyQt the qt key code + */ + void setKeycodeQt( int keyQt ) + { m_code = CODE_FOR_QT; m_sym = keyQt; } + + /** + * Initializes this key with a @ref KKeyNative. + * @return this key + */ + Key& operator =( const KKeyNative& key ); + + /** + * Compares this key with the given Key object. Returns a + * negative number if the given Key is larger, 0 if they + * are equal and a positive number this Key is larger. The + * returned value is the difference between the symbol, modifier + * or code, whatever is non-zero first. + * + * @param key the key to compare with this key + * @return a negative number if the given Key is larger, 0 if + * they are equal and a positive number this Key is larger + */ + int compare( const Key& key ) const; + + /** + * Compares the symbol, modifiers and code of both keys. + * @see compare() + */ + bool operator ==( const Key& b ) const + { return compare( b ) == 0; } + + /** + * Compares the symbol, modifiers and code of both keys. + * @see compare() + */ + bool operator <( const Key& b ) const + { return compare( b ) < 0; } + + /** + * Converts this Key to a KKey. + * @return the KKey + */ + KKey key() const; + }; + + /** + * TODO: please document this class + */ + struct Variations + { + enum { MAX_VARIATIONS = 4 }; + + Key m_rgkey[MAX_VARIATIONS]; + uint m_nVariations; + + Variations() { m_nVariations = 0; } + + void init( const KKey&, bool bQt ); + + uint count() const { return m_nVariations; } + const Key& key( uint i ) const { return m_rgkey[i]; } + }; + + /// TODO: please document + bool initializeMods(); + + /** + * Returns the equivalent X modifier mask of the given modifier flag. + * @param modFlag the generic flags to check + * @return the window system specific flags + */ + uint modX( KKey::ModFlag modFlag ); + + /** + * Returns true if the current keyboard layout supports the Win key. + * Specifically, whether the Super or Meta keys are assigned to an X modifier. + * @return true if the keyboard has a Win key + * @see modXWin() + */ + bool keyboardHasWinKey(); + + /** + * Returns the X11 Shift modifier mask/flag. + * @return the X11 Shift modifier mask/flag. + * @see accelModMaskX() + */ + uint modXShift(); + + /** + * Returns the X11 Lock modifier mask/flag. + * @return the X11 Lock modifier mask/flag. + * @see accelModMaskX() + */ + uint modXLock(); + + /** + * Returns the X11 Ctrl modifier mask/flag. + * @return the X11 Ctrl modifier mask/flag. + * @see accelModMaskX() + */ + uint modXCtrl(); + + /** + * Returns the X11 Alt (Mod1) modifier mask/flag. + * @return the X11 Alt (Mod1) modifier mask/flag. + * @see accelModMaskX() + */ + uint modXAlt(); + + /** + * Returns the X11 NumLock modifier mask/flag. + * @return the X11 NumLock modifier mask/flag. + * @see accelModMaskX() + */ + uint modXNumLock(); + + /** + * Returns the X11 Win (Mod3) modifier mask/flag. + * @return the X11 Win (Mod3) modifier mask/flag. + * @see keyboardHasWinKey() + * @see accelModMaskX() + */ + uint modXWin(); + + /** + * Returns the X11 ScrollLock modifier mask/flag. + * @return the X11 ScrollLock modifier mask/flag. + * @see accelModMaskX() + */ + uint modXScrollLock(); + + /** + * Returns bitwise OR'ed mask containing Shift, Ctrl, Alt, and + * Win (if available). + * @see modXShift() + * @see modXLock() + * @see modXCtrl() + * @see modXAlt() + * @see modXNumLock() + * @see modXWin() + * @see modXScrollLock() + */ + uint accelModMaskX(); + + /** + * Extracts the symbol from the given Qt key and + * converts it to a symbol. + * @param keyQt the qt key code + * @param sym if successful, the symbol will be written here + * @return true if successful, false otherwise + * @see Qt::Key + * @see Sym + */ + bool keyQtToSym( int keyQt, uint& sym ); + + /** + * Extracts the modifiers from the given Qt key and + * converts them in a mask of ORed @ref KKey::ModFlag modifiers. + * @param keyQt the qt key code + * @param mod if successful, the modifiers will be written here + * @return true if successful, false otherwise + * @see Qt::Key + */ + bool keyQtToMod( int keyQt, uint& mod ); + + /** + * Converts the given symbol to a Qt key code. + * @param sym the symbol + * @param keyQt if successful, the qt key code will be written here + * @return true if successful, false otherwise + * @see Qt::Key + * @see Sym + */ + bool symToKeyQt( uint sym, int& keyQt ); + + /** + * Converts the mask of ORed @ref KKey::ModFlag modifiers to + * a mask of ORed Qt key code modifiers. + * @param the mask of @ref KKey::ModFlag modifiers + * @param the mask of Qt key code modifiers will be written here, + * if successful + * @return true if successful, false otherwise + * @see Qt::Key + * @see KKey + */ + bool modToModQt( uint mod, int& modQt ); + + /** + * Converts the mask of ORed @ref KKey::ModFlag modifiers to + * a mask of ORed X11 modifiers. + * @param the mask of @ref KKey::ModFlag modifiers + * @param the mask of X11 modifiers will be written here, + * if successful + * @return true if successful, false otherwise + * @see KKey + */ + bool modToModX( uint mod, uint& modX ); + + /** + * Converts the mask of ORed X11 modifiers to + * a mask of ORed Qt key code modifiers. + * @param the mask of X11 modifiers + * @param the mask of Qt key code modifiers will be written here + * if successful + * @return true if successful, false otherwise + * @see Qt::Key + */ + bool modXToModQt( uint modX, int& modQt ); + + /** + * Converts the mask of ORed X11 modifiers to + * a mask of ORed @ref KKey::ModFlag modifiers. + * @param the mask of X11 modifiers + * @param the mask of @ref KKey::ModFlag modifiers will be written here, + * if successful + * @return true if successful, false otherwise + * @see KKey + */ + bool modXToMod( uint modX, uint& mod ); + + /** + * Converts a X11 key code and a mask of ORed X11 modifiers + * into a X11 symbol. + * converts it to a symbol. + * @param codeX the X11 key code + * @param modX the mask of ORed X11 modifiers + * @param sym if successful, the X11 symbol will be written here + * @return true if successful, false otherwise + * @see Qt::Key + * @see Sym + */ + bool codeXToSym( uchar codeX, uint modX, uint& symX ); + + /** + * @internal + */ + QString modToStringInternal( uint mod ); + + /** + * Converts the mask of ORed @ref KKey::ModFlag modifiers to a + * user-readable string. + * @param mod the mask of ORed @ref KKey::ModFlag modifiers + * @return the user-readable string + */ + QString modToStringUser( uint mod ); + + /** + * @internal + * Unimplemented? + */ + bool stringToSymMod( const QString&, uint& sym, uint& mod ); + + /** + * @internal + * Unimplemented? + */ + void keyQtToKeyX( uint keyCombQt, unsigned char *pKeyCodeX, uint *pKeySymX, uint *pKeyModX ); +} + +#endif // !_KKEYSERVER_X11_H diff --git a/extra/kde315/konsole_part.h b/extra/kde315/konsole_part.h new file mode 100644 index 0000000..ba89800 --- /dev/null +++ b/extra/kde315/konsole_part.h @@ -0,0 +1,223 @@ +/* + This file is part of the KDE system + Copyright (C) 1999,2000 Boloni Laszlo + + 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. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. + */ + +#ifndef __KONSOLE_PART_H__ +#define __KONSOLE_PART_H__ + +#include +#include + + +#include + +#include + +//#include "schema.h" +//#include "session.h" + +class KInstance; +class konsoleBrowserExtension; +class QPushButton; +class QSpinBox; +class KPopupMenu; +class QCheckBox; +class KRootPixmap; +class KToggleAction; +class KSelectAction; + +namespace KParts { class GUIActivateEvent; } + +class konsoleFactory : public KParts::Factory +{ + Q_OBJECT +public: + konsoleFactory(); + virtual ~konsoleFactory(); + + virtual KParts::Part* createPartObject(QWidget *parentWidget = 0, const char *widgetName = 0, + QObject* parent = 0, const char* name = 0, + const char* classname = "KParts::Part", + const QStringList &args = QStringList()); + + static KInstance *instance(); + + private: + static KInstance *s_instance; + static KAboutData *s_aboutData; +}; + +////////////////////////////////////////////////////////////////////// + +class konsolePart: public KParts::ReadOnlyPart, public TerminalInterface +{ + Q_OBJECT + public: + konsolePart(QWidget *parentWidget, const char *widgetName, QObject * parent, const char *name, const char *classname = 0); + virtual ~konsolePart(); + +signals: + void processExited(); + void receivedData( const QString& s ); + protected: + virtual bool openURL( const KURL & url ); + virtual bool openFile() {return false;} // never used + virtual bool closeURL() {return true;} + virtual void guiActivateEvent( KParts::GUIActivateEvent * event ); + + protected slots: + void showShell(); + void slotProcessExited(); + void slotReceivedData( const QString& s ); + +// void doneSession(TESession*); + void sessionDestroyed(); +// void configureRequest(TEWidget*,int,int x,int y); + void updateTitle(); + void enableMasterModeConnections(); + + private slots: + void emitOpenURLRequest(const QString &url); + + void readProperties(); + void saveProperties(); + + void sendSignal(int n); + void closeCurrentSession(); + + void notifySize(int,int); + + void slotToggleFrame(); + void slotSelectScrollbar(); + void slotSelectFont(); + void schema_menu_check(); + void keytab_menu_activated(int item); + void updateSchemaMenu(); + void setSchema(int n); + void pixmap_menu_activated(int item); + void schema_menu_activated(int item); + void slotHistoryType(); + void slotSelectBell(); + void slotSelectLineSpacing(); + void slotBlinkingCursor(); + void slotWordSeps(); + void fontNotFound(); + + private: + konsoleBrowserExtension *m_extension; + KURL currentURL; + + void makeGUI(); + void applySettingsToGUI(); + + void setFont(int fontno); +// void setSchema(ColorSchema* s); + void updateKeytabMenu(); + + bool doOpenStream( const QString& ); + bool doWriteStream( const QByteArray& ); + bool doCloseStream(); + + QWidget* parentWidget; +// TEWidget* te; +// TESession* se; +// ColorSchemaList* colors; + KRootPixmap* rootxpm; + + KToggleAction* blinkingCursor; + KToggleAction* showFrame; + + KSelectAction* selectBell; + KSelectAction* selectFont; + KSelectAction* selectLineSpacing; + KSelectAction* selectScrollbar; + + KPopupMenu* m_keytab; + KPopupMenu* m_schema; + KPopupMenu* m_signals; + KPopupMenu* m_options; + KPopupMenu* m_popupMenu; + + QFont defaultFont; + + QString pmPath; // pixmap path + QString s_schema; + QString s_kconfigSchema; + QString s_word_seps; // characters that are considered part of a word + QString fontNotFound_par; + + bool b_framevis:1; + bool b_histEnabled:1; + + int curr_schema; // current schema no + int n_bell; + int n_font; + int n_keytab; + int n_render; + int n_scroll; + unsigned m_histSize; + bool m_runningShell; + bool m_streamEnabled; +public: + // these are the implementations for the TermEmuInterface + // functions... + void startProgram( const QString& program, + const QStrList& args ); + void showShellInDir( const QString& dir ); + void sendInput( const QString& text ); +}; + +////////////////////////////////////////////////////////////////////// + +/*class HistoryTypeDialog : public KDialogBase +{ + Q_OBJECT +public: + HistoryTypeDialog(const HistoryType& histType, + unsigned int histSize, + QWidget *parent); + +public slots: + void slotDefault(); + void slotSetUnlimited(); + void slotHistEnable(bool); + + unsigned int nbLines() const; + bool isOn() const; + +protected: + QCheckBox* m_btnEnable; + QSpinBox* m_size; + QPushButton* m_setUnlimited; +};*/ + +////////////////////////////////////////////////////////////////////// + +class konsoleBrowserExtension : public KParts::BrowserExtension +{ + Q_OBJECT + friend class konsolePart; + public: + konsoleBrowserExtension(konsolePart *parent); + virtual ~konsoleBrowserExtension(); + + void emitOpenURLRequest(const KURL &url); +}; + +#endif diff --git a/extra/kde315/kpanelmenu.h b/extra/kde315/kpanelmenu.h new file mode 100644 index 0000000..1857f5d --- /dev/null +++ b/extra/kde315/kpanelmenu.h @@ -0,0 +1,181 @@ +/***************************************************************** + +Copyright (c) 1996-2000 the kicker authors. See file AUTHORS. + (c) 2001 Michael Goffioul + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN +AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +******************************************************************/ + +#ifndef __KPANELMENU_H__ +#define __KPANELMENU_H__ + +#include +#include +#include + +class KPanelMenuPrivate; + +/** + * Base class to build dynamically loaded menu entries for the K-menu, or the panel. + * + * This class allows to build menu entries that will be dynamically added either to + * the K-menu, or to the panel as a normal button. These dynamic menus are located + * in shared libraries that will be loaded at runtime by Kicker (the KDE panel). + * + * To build such a menu, you have to inherit this class and implement the pure virtual + * functions #initialize() and @ref slotExec(). You also have to provide a factory + * object in your library, see @ref KLibFactory. This factory is only used to construct + * the menu object. + * + * Finally, you also have to provide a desktop file describing your dynamic menu. The + * relevant entries are: Name, Comment, Icon and X-KDE-Library (which contains the + * library name without any extension). This desktop file has to be installed in + * $KDEDIR/share/apps/kicker/menuext/. + * + * @short Base class to build dynamically loaded menu entries for the K-menu, or the panel. + * @author The kicker maintainer, Michael Goffioul + */ +class KPanelMenu : public KPopupMenu +{ + Q_OBJECT + +public: + /** + * Construct a KPanelMenu object. This is the normal constructor to use when + * building extrernal menu entries. + */ + KPanelMenu(QWidget *parent=0, const char *name=0); + /** + * Constructor used internally by Kicker. You don't really want to use it. + * @param startDir a directory to associate with this menu + * @see path(), setPath() + */ + KPanelMenu(const QString &startDir, QWidget *parent=0, const char *name=0); + /** + * Destructor. + */ + virtual ~KPanelMenu(); + + /** + * Get the directory path associated with this menu, or QString::null if + * there's no such associated path. + * @return the associated directory path + * @see setPath() + */ + const QString& path() const; + /** + * Set a directory path to be associated with this menu. + * @param p the directory path + * @see path() + */ + void setPath(const QString &p); + /** + * Tell if the menu has been initialized, that is it already contains items. + * This is useful when you need to know if you have to clear the menu, or to + * fill it. + * @return the initial state + * @see setInitialized(), initialize() + */ + bool initialized() const; + /** + * Set the initial state. Set it to true when you menu is filled with the items + * you want. + * @param on the initial state + * @see initialized(), initialize() + */ + void setInitialized(bool on); + + /** + * Disable the automatic clearing of the menu. Kicker uses a cache system for + * its menus. After a specific configurable delay, the menu will be cleared. + * Use this function if you want to disable kicker's cache system, and avoid + * the clearing of your menu. + */ + void disableAutoClear(); + +public slots: + /** + * Reinitialize the menu: the menu is first cleared, the initial state is set + * to false, and finally #initialize() is called. Use this if you want to + * refill your menu immediately. + */ + void reinitialize(); + /** + * Deinitialize the menu: the menu is cleared and the initialized state is set to + * false. #initialize() is NOT called. It will be called before the menu is + * next shown, however. Use this slot if you want a delayed reinitialization. + * @since 3.1 + */ + void deinitialize(); + +protected slots: + /** + * This slot is called just before the menu is shown. This allows your menu + * to update itself if needed. However you should instead re-implement + * #initialize to provide this feature. This function is responsible for + * the cache system handling, so if you re-implement it, you should call + * the base function also. Calls #initialize(). + * @see disableAutoClear() + */ + virtual void slotAboutToShow(); + /** + * This is slot is called when an item from the menu has been selected. Your + * applet is then supposed to perform some action. You must re-implement this + * function. + * @param id the ID associated with the selected item + */ + virtual void slotExec(int id) = 0; + /** + * This slots is called to initialize the menu. It is called automatically by + * @ref slotAboutToShow(). By re-implementing this functions, you can reconstruct + * the menu before it is being shown. At the end of this function, you should + * call @ref setInitialize() with true to tell the system that the menu is OK. + * You applet must re-implement this function. + * @see slotAboutToShow(), initialized(), setInitialized() + */ + virtual void initialize() = 0; + /** + * Clears the menu, and update the initial state accordingly. + * @see initialized() + */ + void slotClear(); + +protected: + /** + * Re-implemented for internal reasons. + */ + virtual void hideEvent(QHideEvent *ev); + /** + * For internal use only. Used by constructors. + */ + void init(const QString& path = QString::null); + +protected: + virtual void virtual_hook( int id, void* data ); +private: + void internalInitialize(); + KPanelMenuPrivate *d; +}; + +#define K_EXPORT_KICKER_MENUEXT( libname, classname ) \ + K_EXPORT_COMPONENT_FACTORY( \ + kickermenu_##libname, \ + KGenericFactory("libkickermenu_" #libname) ) + +#endif diff --git a/extra/kde315/krecentdirs.h b/extra/kde315/krecentdirs.h new file mode 100644 index 0000000..71f771b --- /dev/null +++ b/extra/kde315/krecentdirs.h @@ -0,0 +1,68 @@ +/* -*- c++ -*- + * Copyright (C)2000 Waldo Bastian + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * + */ +#ifndef __KRECENTDIRS_H +#define __KRECENTDIRS_H + +#include + +/** + * The goal of this class is to make sure that, when the user needs to + * specify a file via the file selection dialog, this dialog will start + * in the directory most likely to contain the desired files. + * + * This works as follows: Each time the file selection dialog is + * shown, the programmer can specify a "file-class". The file-dialog will + * then start with the directory associated with this file-class. When + * the dialog closes, the directory currently shown in the file-dialog + * will be associated with the file-class. + * + * A file-class can either start with ':' or with '::'. If it starts with + * a single ':' the file-class is specific to the current application. + * If the file-class starts with '::' it is global to all applications. + */ +class KRecentDirs +{ +public: + /** + * Returns a list of directories associated with this file-class. + * The most recently used directory is at the front of the list. + */ + static QStringList list(const QString &fileClass); + + /** + * Returns the most recently used directory accociated with this file-class. + */ + static QString dir(const QString &fileClass); + + /** + * Associates @p directory with @p fileClass + */ + static void add(const QString &fileClass, const QString &directory); +}; + +#endif diff --git a/extra/kde315/ksycocafactory.h b/extra/kde315/ksycocafactory.h new file mode 100644 index 0000000..15554eb --- /dev/null +++ b/extra/kde315/ksycocafactory.h @@ -0,0 +1,137 @@ +/* This file is part of the KDE libraries + * Copyright (C) 1999 Waldo Bastian + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License version 2 as published by the Free Software Foundation; + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public License + * along with this library; see the file COPYING.LIB. If not, write to + * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA. + **/ + +#ifndef __ksycocafactory_h__ +#define __ksycocafactory_h__ "$Id: ksycocafactory.h,v 1.13 2002/09/21 15:07:27 tjansen Exp $" + +#include "ksycocatype.h" +#include "ksycocaentry.h" + +#include +#include +class KSycoca; +class QStringList; +class QString; +class KSycocaDict; +class KSycocaResourceList; + +typedef QDict KSycocaEntryDict; + +/** + * @internal + * Base class for sycoca factories + */ +class KSycocaFactory +{ +public: + virtual KSycocaFactoryId factoryId() const = 0; + +protected: // virtual class + /** + * Create a factory which can be used to lookup from/create a database + * (depending on KSycoca::isBuilding()) + */ + KSycocaFactory( KSycocaFactoryId factory_id ); + +public: + virtual ~KSycocaFactory(); + + /** + * @return the position of the factory in the sycoca file + */ + int offset() { return mOffset; } + + /** + * @return the dict, for special use by KBuildSycoca + */ + KSycocaEntryDict * entryDict() { return m_entryDict; } + + /** + * Construct an entry from a config file. + * To be implemented in the real factories. + */ + virtual KSycocaEntry *createEntry(const QString &file, const char *resource) = 0; + + /** + * Add an entry + */ + virtual void addEntry(KSycocaEntry *newEntry, const char *resource); + + /** + * Read an entry from the database + */ + virtual KSycocaEntry *createEntry(int offset)=0; + + /** + * Get a list of all entries from the database. + */ + KSycocaEntry::List allEntries(); + + /** + * Saves all entries it maintains as well as index files + * for these entries to the stream 'str'. + * + * Also sets mOffset to the starting position. + * + * The stream is positioned at the end of the last index. + * + * Don't forget to call the parent first when you override + * this function. + */ + virtual void save(QDataStream &str); + + /** + * Writes out a header to the stream 'str'. + * The baseclass positions the stream correctly. + * + * Don't forget to call the parent first when you override + * this function. + */ + virtual void saveHeader(QDataStream &str); + + /** + * @return the resources for which this factory is responsible. + */ + virtual const KSycocaResourceList * resourceList() const { return m_resourceList; } + +private: + int mOffset; + +protected: + int m_sycocaDictOffset; + int m_beginEntryOffset; + int m_endEntryOffset; + QDataStream *m_str; + + KSycocaResourceList *m_resourceList; + KSycocaEntryDict *m_entryDict; + KSycocaDict *m_sycocaDict; +protected: + virtual void virtual_hook( int id, void* data ); +}; + +/** This, instead of a typedef, allows to declare "class ..." in header files + * @internal + */ +class KSycocaFactoryList : public QPtrList +{ +public: + KSycocaFactoryList() { } +}; + +#endif diff --git a/extra/kde315/ktoolbarbutton.h b/extra/kde315/ktoolbarbutton.h new file mode 100644 index 0000000..121ecc6 --- /dev/null +++ b/extra/kde315/ktoolbarbutton.h @@ -0,0 +1,317 @@ +/* This file is part of the KDE libraries + Copyright (C) 1997, 1998 Stephan Kulow (coolo@kde.org) + (C) 1997, 1998 Sven Radej (radej@kde.org) + (C) 1997, 1998 Mark Donohoe (donohoe@kde.org) + (C) 1997, 1998 Matthias Ettrich (ettrich@kde.org) + (C) 2000 Kurt Granroth (granroth@kde.org) + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License version 2 as published by the Free Software Foundation. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +// $Id: ktoolbarbutton.h,v 1.26 2002/09/28 15:16:22 tjansen Exp $ +#ifndef _KTOOLBARBUTTON_H +#define _KTOOLBARBUTTON_H + +#include +#include +#include +#include +#include + +class KToolBar; +class KToolBarButtonPrivate; +class KInstance; +class QEvent; +class QPopupMenu; +class QPainter; + +/** + * A toolbar button. This is used internally by @ref KToolBar, use the + * KToolBar methods instead. + * @internal + */ +class KToolBarButton : public QToolButton +{ + Q_OBJECT + +public: + /** + * Construct a button with an icon loaded by the button itself. + * This will trust the button to load the correct icon with the + * correct size. + * + * @param icon Name of icon to load (may be absolute or relative) + * @param id Id of this button + * @param parent This button's parent + * @param name This button's internal name + * @param txt This button's text (in a tooltip or otherwise) + */ + KToolBarButton(const QString& icon, int id, QWidget *parent, + const char *name=0L, const QString &txt=QString::null, + KInstance *_instance = KGlobal::instance()); + + /** + * Construct a button with an existing pixmap. It is not + * recommended that you use this as the internal icon loading code + * will almost always get it "right". + * + * @param icon Name of icon to load (may be absolute or relative) + * @param id Id of this button + * @param parent This button's parent + * @param name This button's internal name + * @param txt This button's text (in a tooltip or otherwise) + */ + KToolBarButton(const QPixmap& pixmap, int id, QWidget *parent, + const char *name=0L, const QString &txt=QString::null); + + /** + * Construct a separator button + * + * @param parent This button's parent + * @param name This button's internal name + */ + KToolBarButton(QWidget *parent=0L, const char *name=0L); + + /** + * Standard destructor + */ + ~KToolBarButton(); + +#ifndef KDE_NO_COMPAT + /** + * @deprecated + * Set the pixmap directly for this button. This pixmap should be + * the active one... the dimmed and disabled pixmaps are constructed + * based on this one. However, don't use this function unless you + * are positive that you don't want to use @ref setIcon. + * + * @param pixmap The active pixmap + */ + // this one is from QButton, so #ifdef-ing it out doesn't break BC + virtual void setPixmap(const QPixmap &pixmap); + + /** + * @deprecated + * Force the button to use this pixmap as the default one rather + * then generating it using effects. + * + * @param pixmap The pixmap to use as the default (normal) one + */ + void setDefaultPixmap(const QPixmap& pixmap); + + /** + * @deprecated + * Force the button to use this pixmap when disabled one rather then + * generating it using effects. + * + * @param pixmap The pixmap to use when disabled + */ + void setDisabledPixmap(const QPixmap& pixmap); +#endif + + /** + * Set the text for this button. The text will be either used as a + * tooltip (IconOnly) or will be along side the icon + * + * @param text The button (or tooltip) text + */ + virtual void setText(const QString &text); + + /** + * Set the icon for this button. The icon will be loaded internally + * with the correct size. This function is preferred over @ref setIconSet + * + * @param icon The name of the icon + */ + virtual void setIcon(const QString &icon); + + /// @since 3.1 + virtual void setIcon( const QPixmap &pixmap ) + { QToolButton::setIcon( pixmap ); } + + /** + * Set the pixmaps for this toolbar button from a QIconSet. + * If you call this you don't need to call any of the other methods + * that set icons or pixmaps. + * @param iconset The iconset to use + */ + virtual void setIconSet( const QIconSet &iconset ); + +#ifndef KDE_NO_COMPAT + /** + * @deprecated + * Set the active icon for this button. The pixmap itself is loaded + * internally based on the icon size... .. the disabled and default + * pixmaps, however will only be constructed if @ref #generate is + * true. This function is preferred over @ref setPixmap + * + * @param icon The name of the active icon + * @param generate If true, then the other icons are automagically + * generated from this one + */ + void setIcon(const QString &icon, bool /*generate*/ ) { setIcon( icon ); } + + /** + * @deprecated + * Force the button to use this icon as the default one rather + * then generating it using effects. + * + * @param icon The icon to use as the default (normal) one + */ + void setDefaultIcon(const QString& icon); + + /** + * @deprecated + * Force the button to use this icon when disabled one rather then + * generating it using effects. + * + * @param icon The icon to use when disabled + */ + void setDisabledIcon(const QString& icon); +#endif + + /** + * Turn this button on or off + * + * @param flag true or false + */ + void on(bool flag = true); + + /** + * Toggle this button + */ + void toggle(); + + /** + * Turn this button into a toggle button or disable the toggle + * aspects of it. This does not toggle the button itself. + * Use @ref toggle() for that. + * + * @param toggle true or false + */ + void setToggle(bool toggle = true); + + /** + * Return a pointer to this button's popup menu (if it exists) + */ + QPopupMenu *popup(); + + /** + * Give this button a popup menu. There will not be a delay when + * you press the button. Use @ref setDelayedPopup if you want that + * behavior. You can also make the popup-menu + * "sticky", i.e. visible until a selection is made or the mouse is + * clikced elsewhere, by simply setting the second argument to true. + * This "sticky" button feature allows you to make a selection without + * having to press and hold down the mouse while making a selection. + * + * @param p The new popup menu + * @param toggle if true, makes the button "sticky" (toggled) + */ + void setPopup (QPopupMenu *p, bool toggle = false); + + /** + * Gives this button a delayed popup menu. + * + * This function allows you to add a delayed popup menu to the button. + * The popup menu is then only displayed when the button is pressed and + * held down for about half a second. You can also make the popup-menu + * "sticky", i.e. visible until a selection is made or the mouse is + * clikced elsewhere, by simply setting the second argument to true. + * This "sticky" button feature allows you to make a selection without + * having to press and hold down the mouse while making a selection. + * + * @param p the new popup menu + * @param toggle if true, makes the button "sticky" (toggled) + */ + void setDelayedPopup(QPopupMenu *p, bool toggle = false); + + /** + * Turn this button into a radio button + * + * @param f true or false + */ + void setRadio(bool f = true); + + /** + * Toolbar buttons naturally will assume the global styles + * concerning icons, icons sizes, etc. You can use this function to + * explicitely turn this off, if you like. + * + * @param no_style Will disable styles if true + */ + void setNoStyle(bool no_style = true); + +signals: + void clicked(int); + void doubleClicked(int); + void pressed(int); + void released(int); + void toggled(int); + void highlighted(int, bool); + +public slots: + /** + * This slot should be called whenever the toolbar mode has + * potentially changed. This includes such events as text changing, + * orientation changing, etc. + */ + void modeChange(); + virtual void setTextLabel(const QString&, bool tipToo); + +protected: + void paletteChange(const QPalette &); + void leaveEvent(QEvent *e); + void enterEvent(QEvent *e); + void drawButton(QPainter *p); + bool eventFilter (QObject *o, QEvent *e); + void showMenu(); + QSize sizeHint() const; + QSize minimumSizeHint() const; + QSize minimumSize() const; + + /// @since 3.1 + bool isRaised() const; + /// @since 3.1 + bool isActive() const; + /// @since 3.1 + int iconTextMode() const; + +protected slots: + void slotClicked(); + void slotPressed(); + void slotReleased(); + void slotToggled(); + void slotDelayTimeout(); + +protected: + virtual void virtual_hook( int id, void* data ); +private: + KToolBarButtonPrivate *d; +}; + +/** +* List of @ref KToolBarButton objects. +* @internal +* @version $Id: ktoolbarbutton.h,v 1.26 2002/09/28 15:16:22 tjansen Exp $ +*/ +class KToolBarButtonList : public QIntDict +{ +public: + KToolBarButtonList(); + ~KToolBarButtonList() {} +}; + +#endif diff --git a/extra/kde315/kurifilter.h b/extra/kde315/kurifilter.h new file mode 100644 index 0000000..2b62e4c --- /dev/null +++ b/extra/kde315/kurifilter.h @@ -0,0 +1,602 @@ +/* + * This file is part of the KDE libraries + * Copyright (C) 2000 Yves Arrouye + * + * This library 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. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public License + * along with this library; see the file COPYING.LIB. If not, write to + * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA. + **/ + +#ifndef __kurifilter_h__ +#define __kurifilter_h__ "$Id: kurifilter.h,v 1.27.2.1 2003/06/06 09:12:16 mueller Exp $" + +#include +#include + +#include + +class KURIFilterPrivate; +class KURIFilterDataPrivate; + +class QStringList; +class KCModule; + +/** +* This is a basic message object used for exchanging filtering +* information between the filter plugins and the application +* whenever the application requires more information about the +* URI than just a filtered version of it. Any application can +* create an instance of this class and send it to @ref KURIFilter +* to have the filter plugins fill the necessary information. +* +* @sect Example +*
+*   QString text = "kde.org";
+*   KURIFilterData d = text;
+*   bool filtered = KURIFilter::self()->filter( d );
+*   if( filtered )
+*     print ( "URI: %s\n"Filtered URI: %s\n URI Type: %i\n"Was Filtered: %i"
+*             text.latin1(), d.uri().url().latin1(), d.uriType(), filtered );
+* 
+* +* The above code should yield the following output: +*
+*   URI: kde.org
+*   Filtered URI: http://kde.org
+*   URI Type: 0            <== means NET_PROTOCOL
+*   Was Filtered: 1        <== means the URL was successfully filtered
+* 
+* +* @short A message object for exchanging filtering URI info. +*/ + +class KURIFilterData +{ +friend class KURIFilterPlugin; + +public: + /** + * Describes the type of URI to be filtered. + * + * This enumerator prvoides the return value for + * @ref uriType. A brief description for each value: + * + * @li NET_PROTOCOL - Any network protocol: http, ftp, nttp, pop3, etc... + * @li LOCAL_FILE - A local file whose executable flag is not set + * @li LOCAL_DIR - A local directory + * @li EXECUTABLE - A local file whose executable flag is set + * @li HELP - A man or info page + * @li SHELL - A shell executable (ex: echo "Test..." >> ~/testfile) + * @li BLOCKED - A URI that should be blocked/filtered (ex: ad filtering) + * @li ERROR - An incorrect URI (ex: "~johndoe" when user johndoe + * does not exist in that system ) + * @li UNKNOWN - A URI that is not identified. Default value when + * a KURIFilterData is first created. + */ + enum URITypes { NET_PROTOCOL=0, LOCAL_FILE, LOCAL_DIR, EXECUTABLE, HELP, SHELL, BLOCKED, ERROR, UNKNOWN }; + + /** + * Default constructor. + * + * Creates a URIFilterData object. + */ + KURIFilterData() { init(); } + + /** + * Creates a URIFilterData object from the given URL. + * + * @param url is the URL to be filtered. + */ + KURIFilterData( const KURL& url ) { init( url); } + + /** + * Creates a URIFilterData object from the given string. + * + * @param url is the string to be filtered. + */ + KURIFilterData( const QString& url ) { init( url ); } + + /** + * Copy constructor. + * + * Creates a URIFilterData object from another + * URI filter data object. + * + * @param data the uri filter data to be copied. + */ + KURIFilterData( const KURIFilterData& /*data*/); + + /** + * Destructor. + */ + ~KURIFilterData(); + + /** + * This method has been deprecated and will always return + * TRUE. You should instead use the result from the + * @ref KURIFilter::filterURI() calls. + * + * @deprecated + */ + bool hasBeenFiltered() const { return m_bFiltered; } + + /** + * Returns the filtered or the original URL. + * + * This function returns the filtered url if one + * of the plugins sucessfully filtered the original + * URL. Otherwise, it returns the original URL. + * See @ref #hasBeenFiltered() and + * + * @return the filtered or original url. + */ + KURL uri() const { return m_pURI; } + + /** + * Returns an error message. + * + * This functions returns the error message set + * by the plugin whenever the uri type is set to + * KURIFilterData::ERROR. Otherwise, it returns + * a QString::null. + * + * @return the error message or a NULL when there is none. + */ + QString errorMsg() const { return m_strErrMsg; } + + /** + * Returns the URI type. + * + * This method always returns KURIFilterData::UNKNOWN + * if the given URL was not filtered. + */ + URITypes uriType() const { return m_iType; } + + /** + * Sets the URL to be filtered. + * + * Use this function to set the string to be + * filtered when you construct an empty filter + * object. + * + * @param url the string to be filtered. + */ + void setData( const QString& url ) { init( url ); } + + /** + * Same as above except the argument is a URL. + * + * Use this function to set the string to be + * filtered when you construct an empty filter + * object. + * + * @param url the URL to be filtered. + */ + void setData( const KURL& url ) { init( url ); } + + /** + * Sets the absolute path to be used whenever the supplied + * data is a relative local URL. + * + * NOTE: This function works only for a local resource and + * expects the absolute path to the relative URL set in this + * meta object. If you are extracting the absolute path from + * a KURL object, make sure you always set the argument below + * using KURL::path() instead of KURL::url() so that "file:/" + * would not be appended! Otherwise, the filter might not be + * able to make correct determination whether the relative URL + * locally exists! + * + * @param abs_path the abolute path to the local resource. + * @return true if absolute path is successfully set. Otherwise, false. + */ + bool setAbsolutePath( const QString& /* abs_path */ ); + + /** + * Returns the absolute path if one has already been set. + */ + QString absolutePath() const; + + /** + * Returns true if the supplied data has an absolute path. + */ + bool hasAbsolutePath() const; + + /** + * Returns the command line options and arguments for a + * local resource when present. + * + * @return options and arguments when present, otherwise QString::null + */ + QString argsAndOptions() const; + + /** + * Returns true if the current data is a local resource with + * command line options and arguments. + */ + bool hasArgsAndOptions() const; + + /** + * Returns the name of the icon that matches + * the current filtered URL. + * + * NOTE that this function will return a NULL + * string by default and when no associated icon + * is found. + * + * @return the name of the icon associated with the resource + */ + QString iconName(); + + /** + * Overloaded assigenment operator. + * + * This function allows you to easily assign a KURL + * to a KURIFilterData object. + * + * @return an instance of a KURIFilterData object. + */ + KURIFilterData& operator=( const KURL& url ) { init( url ); return *this; } + + /** + * Overloaded assigenment operator. + * + * This function allows you to easily assign a QString + * to a KURIFilterData object. + * + * @return an instance of a KURIFilterData object. + */ + KURIFilterData& operator=( const QString& url ) { init( url ); return *this; } + +protected: + + /** + * Initializes the KURIFilterData on construction. + */ + void init( const KURL& url = QString::null ); + +private: + bool m_bFiltered; + bool m_bChanged; + + QString m_strErrMsg; + QString m_strIconName; + + KURL m_pURI; + URITypes m_iType; + KURIFilterDataPrivate *d; +}; + + +/** + * Base class for URI filter plugins. + * + * This class applies a single filter to a URI. All + * plugins designed to provide URI filtering functionalities + * should inherit from this abstract class and provide a + * specific filtering implementation. + * + * All inheriting classes need to implement the pure + * virtual function @ref filterURI. Otherwise, they + * would also become abstract. + * + * @short Abstract class for URI filter plugins. + */ +class KURIFilterPlugin : public QObject +{ + Q_OBJECT + +public: + + /** + * Constructs a filter plugin with a given name and + * priority. + * + * @param parent the parent object. + * @param name the name of the plugin. + * @param pri the priority of the plugin. + */ + KURIFilterPlugin( QObject *parent = 0, const char *name = 0, double pri = 1.0 ); + + /** + * Returns the filter's name. + * + * @return A string naming the filter. + */ + virtual QString name() const { return m_strName; } + + /** + * Returns the filter's priority. + * + * Each filter has an assigned priority, a float from 0 to 1. Filters + * with the lowest priority are first given a chance to filter a URI. + * + * @return The priority of the filter. + */ + virtual double priority() const { return m_dblPriority; } + + /** + * Filters a URI. + * + * @param data the URI data to be filtered. + * @return A boolean indicating whether the URI has been changed. + */ + virtual bool filterURI( KURIFilterData& data ) const = 0; + + /** + * Creates a configuration module for the filter. + * + * It is the responsability of the caller to delete the module + * once it is not needed anymore. + * + * @return A configuration module, @p null if the filter isn't configurable. + */ + virtual KCModule *configModule( QWidget*, const char* ) const { return 0; } + + /** + * Returns the name of the configuration module for the filter. + * + * @return the name of a configuration module or @p null if none. + */ + virtual QString configName() const { return name(); } + +protected: + + /** + * Sets the the URL in @p data to @p uri. + */ + void setFilteredURI ( KURIFilterData& data, const KURL& uri ) const; + + /** + * Sets the error message in @p data to @p errormsg. + */ + void setErrorMsg ( KURIFilterData& data, const QString& errmsg ) const { + data.m_strErrMsg = errmsg; + } + + /** + * Sets the URI type in @p data to @p type. + */ + void setURIType ( KURIFilterData& data, KURIFilterData::URITypes type) const { + data.m_iType = type; + data.m_bChanged = true; + } + + /** + * Sets the arguments and options string in @p data + * to @p args if any were found during filterting. + */ + void setArguments( KURIFilterData& data, const QString& args ) const; + + QString m_strName; + double m_dblPriority; + +protected: + virtual void virtual_hook( int id, void* data ); +private: + class KURIFilterPluginPrivate *d; +}; + + +class KURIFilterPluginList : public QPtrList +{ +public: + virtual int compareItems(Item a, Item b) + { + double diff = ((KURIFilterPlugin *) a)->priority() - ((KURIFilterPlugin *) b)->priority(); + return diff < 0 ? -1 : (diff > 0 ? 1 : 0); + } + +private: + KURIFilterPrivate *d; + +}; + +/** + * Manages the filtering of a URI. + * + * The intention of this plugin class is to allow people to extend + * the functionality of KURL without modifying it directly. This + * way KURL will remain a generic parser capable of parsing any + * generic URL that adheres to specifications. + * + * The KURIFilter class applies a number of filters to a URI, + * and returns the filtered version whenever possible. The filters + * are implemented using plugins to provide easy extensibility + * of the filtering mechanism. That is, new filters can be added in + * the future by simply inheriting from @ref KURIFilterPlugin and + * implementing the @ref KURIFilterPlugin::filterURI method. + * + * Use of this plugin-manager class is straight forward. Since + * it is a singleton object, all you have to do is obtain an instance + * by doing @p KURIFilter::self() and use any of the public member + * functions to preform the filtering. + * + * @sect Example + * + * To simply filter a given string: + *
+ * bool filtered = KURIFilter::self()->filterURI( "kde.org" );
+ * 
+ * + * You can alternatively use a KURL: + *
+ * KURL url = "kde.org";
+ * bool filtered = KURIFilter::self()->filterURI( url );
+ * 
+ * + * If you have a constant string or a constant URL, + * simply invoke the corresponding function to obtain + * the filtered string or URL instead of a boolean flag: + *
+ * QString u = KURIFilter::self()->filteredURI( "kde.org" );
+ * 
+ * + * You can also specify only specific filter(s) to be applied + * by supplying the name(s) of the filter(s). By defualt all + * filters that are found are loaded when the KURIFilter object + * is created will be used. These names are taken from the + * enteries in the \".desktop\" files. Here are a couple of + * examples: + *
+ * QString text = "kde.org";
+ * bool filtered = KURIFilter::self()->filterURI( text, "KShortURIFilter" );
+ *
+ * QStringList list;
+ * list << "KShortURIFilter" << "MyFilter";
+ * bool filtered = KURIFilter::self()->filterURI( text, list );
+ * 
+ * + * KURIFilter also allows richer data exchange through a simple + * meta-object called @p KURIFilterData. Using this meta-object + * you can find out more information about the URL you want to + * filter. See @ref KURIFilterData for examples and details. + * + * @short Filters a given URL into its proper format whenever possible. + */ + +class KURIFilter +{ +public: + /** + * Destructor + */ + ~KURIFilter (); + + /** + * Return a static instance of KURIFilter. + */ + static KURIFilter* self(); + + /** + * Filters the URI given by the object URIFilterData. + * + * This filters the given data based on the specified + * filter list. If the list is empty all avaliable + * filter plugins would be used. If not, only those + * given in the list are used. + * + * @param data object that contains the URI to be filtered. + * @param filters specify the list filters to be used + * + * @return a boolean indicating whether the URI has been changed + */ + bool filterURI( KURIFilterData& data, const QStringList& filters = QStringList() ); + + /** + * Filters the URI given by the URL. + * + * This filters the given URL based on the specified + * filter list. If the list is empty all avaliable + * filter plugins would be used. If not, only those + * given in the list are used. + * + * @param uri the URI to filter. + * @param filters specify the list of filters to be used + * + * @return a boolean indicating whether the URI has been changed + */ + bool filterURI( KURL &uri, const QStringList& filters = QStringList() ); + + /** + * Filters a string representing a URI. + * + * This filters the given string based on the specified + * filter list. If the list is empty all avaliable + * filter plugins would be used. If not, only those + * given in the list are used. + * + * @param uri The URI to filter. + * @param filters specify the list filters to be used + * + * @return a boolean indicating whether the URI has been changed + */ + bool filterURI( QString &uri, const QStringList& filters = QStringList() ); + + /** + * Returns the filtered URI. + * + * This filters the given URL based on the specified + * filter list. If the list is empty all avaliable + * filter plugins would be used. If not, only those + * given in the list are used. + * + * @param uri The URI to filter. + * @param filters specify the list filters to be used + * + * @return the filtered URI or null if it cannot be filtered + */ + KURL filteredURI( const KURL &uri, const QStringList& filters = QStringList() ); + + /** + * Return a filtered string representation of a URI. + * + * This filters the given URL based on the specified + * filter list. If the list is empty all avaliable + * filter plugins would be used. If not, only those + * given in the list are used. + * + * @param uri the URI to filter. + * @param filters specify the list filters to be used + * + * @return the filtered URI or null if it cannot be filtered + */ + QString filteredURI( const QString &uri, const QStringList& filters = QStringList() ); + + /** + * Return an iterator to iterate over all loaded + * plugins. + * + * @return a plugin iterator. + */ + QPtrListIterator pluginsIterator() const; + + /** + * Return a list of the names of all loaded plugins + * + * @since 3.1 + * + * @return a QStringList of plugin names + */ + QStringList pluginNames() const; + +protected: + + /** + * A protected constructor. + * + * This constructor creates a KURIFilter and + * initializes all plugins it can find by invoking + * @ref loadPlugins. + */ + KURIFilter(); + + /** + * Loads all allowed plugins. + * + * This function loads all filters that have not + * been dis + */ + void loadPlugins(); + +private: + + static KURIFilter *m_self; + KURIFilterPluginList m_lstPlugins; + KURIFilterPrivate *d; + +}; + +#endif + diff --git a/extra/kde320/configwidget.h b/extra/kde320/configwidget.h new file mode 100644 index 0000000..643df88 --- /dev/null +++ b/extra/kde320/configwidget.h @@ -0,0 +1,58 @@ +/* + This file is part of libkresources. + Copyright (c) 2002 Tobias Koenig + Copyright (c) 2002 Jan-Pascal van Best + + This library 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. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef KRESOURCES_CONFIGWIDGET_H +#define KRESOURCES_CONFIGWIDGET_H + +#include "resource.h" + +#include + +#include + +namespace KRES { + +class ConfigWidget : public QWidget +{ + Q_OBJECT + public: + ConfigWidget( QWidget *parent = 0, const char *name = 0 ); + + /** + Sets the widget to 'edit' mode. Reimplement this method if you are + interested in the mode change (to disable some GUI element for + example). By default the widget is in 'create new' mode. + */ + virtual void setInEditMode( bool value ); + + public slots: + virtual void loadSettings( Resource *resource ) = 0; + virtual void saveSettings( Resource *resource ) = 0; + + signals: + void setReadOnly( bool value ); + + protected: + Resource *mResource; +}; + +} +#endif diff --git a/extra/kde320/kaccelaction.h b/extra/kde320/kaccelaction.h new file mode 100644 index 0000000..9967e4f --- /dev/null +++ b/extra/kde320/kaccelaction.h @@ -0,0 +1,564 @@ +/* This file is part of the KDE libraries + Copyright (C) 2001,2002 Ellis Whitehead + + This library 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. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef _KACCELACTION_H +#define _KACCELACTION_H + +#include +#include +#include +#include + +#include + +class KAccelBase; + +class QObject; +class KConfig; +class KConfigBase; + +/** + * @internal + * A KAccelAction prepresents an action that can be executed using + * an accelerator key. Each KAccelAction has a name, a label, a + * "What's this" string and a KShortcut. The user can configure and + * enable/disable them using KKeyDialog. + * + * \code + * 1) KAccelAction = "Run Command" + * Default3 = "Alt+F2" + * Default4 = "Meta+Enter;Alt+F2" + * 1) KShortcut = "Meta+Enter" + * 1) KKeySequence = "Meta+Enter" + * 1) KKey = "Meta+Enter" + * 1) Meta+Enter + * 2) Meta+Keypad_Enter + * 2) KShortcut = "Alt+F2" + * 1) KKeySequence = "Alt+F2" + * 1) Alt+F2 + * 2) KAccelAction = "Something" + * Default3 = "" + * Default4 = "" + * 1) KShortcut = "Meta+X,Asterisk" + * 1) KKeySequence = "Meta+X,Asterisk" + * 1) KKey = "Meta+X" + * 1) Meta+X + * 2) KKey = "Asterisk" + * 1) Shift+8 (English layout) + * 2) Keypad_Asterisk + * \endcode + * @short An accelerator action + * @see KAccel + * @see KGlobalAccel + * @see KKeyChooser + * @see KKeyDialog + */ +class KAccelAction +{ + public: + /** + * Creates an empty KAccelAction. + * @see clear() + */ + KAccelAction(); + + /** + * Copy constructor. + */ + KAccelAction( const KAccelAction& ); + + /** + * Creates a new KAccelAction. + * @param sName the name of the accelerator + * @param sLabel the label of the accelerator (i18n!) + * @param sWhatsThis the What's This text (18n!) + * @param cutDef3 the default shortcut for 3 modifier systems + * @param cutDef4 the default shortcut for 4 modifier systems + * @param pObjSlot the receiver of a signal when the key has been + * pressed + * @param psMethodSlot the slot to connect for key presses. Receives + * an int, as set by setID(), as only argument + * @param bConfigurable if true the user can configure the shortcut + * @param bEnabled true if the accelerator should be enabled + */ + KAccelAction( const QString& sName, const QString& sLabel, const QString& sWhatsThis, + const KShortcut& cutDef3, const KShortcut& cutDef4, + const QObject* pObjSlot, const char* psMethodSlot, + bool bConfigurable, bool bEnabled ); + ~KAccelAction(); + + /** + * Clears the accelerator. + */ + void clear(); + + /** + * Re-initialized the KAccelAction. + * @param sName the name of the accelerator + * @param sLabel the label of the accelerator (i18n!) + * @param sWhatsThis the What's This text (18n!) + * @param cutDef3 the default shortcut for 3 modifier systems + * @param cutDef4 the default shortcut for 4 modifier systems + * @param pObjSlot the receiver of a signal when the key has been + * pressed + * @param psMethodSlot the slot to connect for key presses. Receives + * an int, as set by setID(), as only argument + * @param bConfigurable if true the user can configure the shortcut + * @param bEnabled true if the accelerator should be enabled + * @return true if successful, false otherwise + */ + bool init( const QString& sName, const QString& sLabel, const QString& sWhatsThis, + const KShortcut& cutDef3, const KShortcut& cutDef4, + const QObject* pObjSlot, const char* psMethodSlot, + bool bConfigurable, bool bEnabled ); + + /** + * Copies this KAccelAction. + */ + KAccelAction& operator=( const KAccelAction& ); + + /** + * Returns the name of the accelerator action. + * @return the name of the accelerator action, can be null if not + * set + */ + const QString& name() const { return m_sName; } + + /** + * Returns the label of the accelerator action. + * @return the label of the accelerator action, can be null if + * not set + */ + const QString& label() const { return m_sLabel; } + + /** + * Returns the What's This text of the accelerator action. + * @return the What's This text of the accelerator action, can be + * null if not set + */ + const QString& whatsThis() const { return m_sWhatsThis; } + + /** + * The shortcut that is actually used (may be used configured). + * @return the shortcut of the KAccelAction, can be null if not set + * @see shortcutDefault() + */ + const KShortcut& shortcut() const { return m_cut; } + + /** + * The default shortcut for this system. + * @return the default shortcut on this system, can be null if not set + * @see shortcut() + * @see shortcutDefault3() + * @see shortcutDefault4() + */ + const KShortcut& shortcutDefault() const; + + /** + * The default shortcut for 3 modifier systems. + * @return the default shortcut for 3 modifier systems, can be null + * if not set + * @see shortcutDefault() + * @see shortcutDefault4() + * @see useFourModifierKeys() + */ + const KShortcut& shortcutDefault3() const { return m_cutDefault3; } + + /** + * The default shortcut for 4 modifier systems. + * @return the default shortcut for 4 modifier systems, can be null + * if not set + * @see shortcutDefault() + * @see shortcutDefault3() + * @see useFourModifierKeys() + */ + const KShortcut& shortcutDefault4() const { return m_cutDefault4; } + + /** + * Returns the receiver of signals. + * @return the receiver of signals (can be 0 if not set) + */ + const QObject* objSlotPtr() const { return m_pObjSlot; } + + /** + * Returns the slot for the signal. + * @return the slot for the signal + */ + const char* methodSlotPtr() const { return m_psMethodSlot; } + + /** + * Checks whether the user can configure the action. + * @return true if configurable, false otherwise + */ + bool isConfigurable() const { return m_bConfigurable; } + + /** + * Checks whether the action is enabled. + * @return true if enabled, false otherwise + */ + bool isEnabled() const { return m_bEnabled; } + + /** + * Sets the name of the accelerator action. + * @param name the new name + */ + void setName( const QString& name ); + + /** + * Sets the user-readable label of the accelerator action. + * @param label the new label (i18n!) + */ + void setLabel( const QString& label ); + + /** + * Sets the What's This text for the accelerator action. + * @param whatsThis the new What's This text (i18n!) + */ + void setWhatsThis( const QString& whatsThis ); + + /** + * Sets the new shortcut of the accelerator action. + * @param rgCuts the shortcut to set + * @return true if successful, false otherwise + */ + bool setShortcut( const KShortcut& rgCuts ); + + /** + * Sets the slot of the accelerator action. + * @param pObjSlot the receiver object of the signal + * @param psMethodSlot the slot for the signal + */ + void setSlot( const QObject* pObjSlot, const char* psMethodSlot ); + + /** + * Enables or disabled configuring the action. + * @param configurable true to enable configurability, false to disable + */ + void setConfigurable( bool configurable ); + + /** + * Enables or disabled the action. + * @param configurable true to enable the action, false to disable + */ + void setEnabled( bool enable ); + + /** + * Retrieves the id set using setID. + * @return the id of the accelerator action + */ + int getID() const { return m_nIDAccel; } + + /** + * Allows you to set an id that will be used as the action + * signal's argument. + * + * @param n the new id + * @see getID() + */ + void setID( int n ) { m_nIDAccel = n; } + + /** + * Checkes whether the action is connected (emits signals). + * @return true if connected, false otherwise + */ + bool isConnected() const; + + /** + * Sets a key sequence of the action's shortcut. + * @param i the position of the sequence + * @param keySeq the new new sequence + * @return true if successful, false otherwise + * @see KShortcut::setSeq() + */ + bool setKeySequence( uint i, const KKeySequence &keySeq ); + + /** + * Clears the action's shortcut. It will not contain any sequences after + * calling this method. + * @see KShortcut::clear() + */ + void clearShortcut(); + + /** + * Checks whether the action's shortcut contains the given key sequence. + * @param keySeq the key sequence to check + * @return true if the shortcut contains the given sequence + * @see KShortcut::contains() + */ + bool contains( const KKeySequence &keySeq ); + + /** + * Returns the string representation of the action's shortcut. + * @return the string representation of the action's shortcut. + * @see KShortcut::toString() + */ + QString toString() const; + + /** + * @internal + */ + QString toStringInternal() const; + + /** + * Returns true if four modifier keys will be used. + * @return true if four modifier keys will be used. + */ + static bool useFourModifierKeys(); + + /** + * Selects 3 or 4 modifier default shortcuts. + * @param use true to use 4 modifier shortcuts, false to use + * 3 modifier shortcuts + */ + static void useFourModifierKeys( bool use ); + + protected: + QString m_sName, + m_sLabel, + m_sWhatsThis; + KShortcut m_cut; + KShortcut m_cutDefault3, m_cutDefault4; + const QObject* m_pObjSlot; + const char* m_psMethodSlot; + bool m_bConfigurable, + m_bEnabled; + int m_nIDAccel; + uint m_nConnections; + + void incConnections(); + void decConnections(); + + private: + static int g_bUseFourModifierKeys; + class KAccelActionPrivate* d; + + friend class KAccelActions; + friend class KAccelBase; +}; + +//--------------------------------------------------------------------- +// KAccelActions +//--------------------------------------------------------------------- + +/** + * @internal + * This class represents a collection of KAccelAction objects. + * + * @short A collection of accelerator actions + * @see KAccelAction + */ +class KAccelActions +{ + public: + /** + * Creates a new, empty KAccelActions object. + */ + KAccelActions(); + + /** + * Copy constructor (deep copy). + */ + KAccelActions( const KAccelActions& ); + virtual ~KAccelActions(); + + /** + * Removes all items from this collection. + */ + void clear(); + + /** + * Initializes this object with the given actions. + * It will make a deep copy of all actions. + * @param actions the actions to copy + * @return true if successful, false otherwise + */ + bool init( const KAccelActions &actions ); + + /** + * Loads the actions from the given configuration file. + * + * @param config the configuration file to load from + * @param sGroup the group in the configuration file + * @return true if successful, false otherwise + */ + bool init( KConfigBase& config, const QString& sGroup ); + + /** + * Updates the shortcuts of all actions in this object + * with the shortcuts from the given object. + * @param shortcuts the collection that contains the new + * shortcuts + */ + void updateShortcuts( KAccelActions &shortcuts ); + + /** + * Retrieves the index of the action with the given name. + * @param sAction the action to search + * @return the index of the action, or -1 if not found + */ + int actionIndex( const QString& sAction ) const; + + /** + * Returns the action with the given @p index. + * @param index the index of an action. You must not + * use an index that is too high. + * @return the KAccelAction with the given index + * @see count() + */ + KAccelAction* actionPtr( uint index ); + + /** + * Returns the action with the given @p index. + * @param index the index of an action. You must not + * use an index that is too high. + * @return the KAccelAction with the given index + * @see count() + */ + const KAccelAction* actionPtr( uint index ) const; + + /** + * Returns the action with the given name. + * @param aAction the name of the action to search + * @return the KAccelAction with the given name, or 0 + * if not found + */ + KAccelAction* actionPtr( const QString& sAction ); + + /** + * Returns the action with the given name. + * @param aAction the name of the action to search + * @return the KAccelAction with the given name, or 0 + * if not found + */ + const KAccelAction* actionPtr( const QString& sAction ) const; + + /** + * Returns the action with the given key sequence. + * @param cut the sequence to search for + * @return the KAccelAction with the given sequence, or 0 + * if not found + */ + KAccelAction* actionPtr( KKeySequence cut ); + + /** + * Returns the action with the given @p index. + * @param index the index of an action. You must not + * use an index that is too high. + * @return the KAccelAction with the given index + * @see actionPtr() + * @see count() + */ + KAccelAction& operator []( uint index ); + + /** + * Returns the action with the given @p index. + * @param index the index of an action. You must not + * use an index that is too high. + * @return the KAccelAction with the given index + * @see actionPtr() + * @see count() + */ + const KAccelAction& operator []( uint index ) const; + + /** + * Inserts an action into the collection. + * @param sName the name of the accelerator + * @param sLabel the label of the accelerator (i18n!) + * @param sWhatsThis the What's This text (18n!) + * @param cutDef3 the default shortcut for 3 modifier systems + * @param cutDef4 the default shortcut for 4 modifier systems + * @param pObjSlot the receiver of a signal when the key has been + * pressed + * @param psMethodSlot the slot to connect for key presses. Receives + * an int, as set by setID(), as only argument + * @param bConfigurable if true the user can configure the shortcut + * @param bEnabled true if the accelerator should be enabled + * @return the new action + */ + KAccelAction* insert( const QString& sAction, const QString& sLabel, const QString& sWhatsThis, + const KShortcut& rgCutDefaults3, const KShortcut& rgCutDefaults4, + const QObject* pObjSlot = 0, const char* psMethodSlot = 0, + bool bConfigurable = true, bool bEnabled = true ); + + /** + * Inserts an action into the collection. + * @param sName the name of the accelerator + * @param sLabel the label of the accelerator (i18n!) + * @return the new action + */ + KAccelAction* insert( const QString& sName, const QString& sLabel ); + + /** + * Removes the given action. + * @param sAction the name of the action. + * @return true if successful, false otherwise + */ + bool remove( const QString& sAction ); + + /** + * Loads the actions from the given configuration file. + * + * @param sConfigGroup the group in the configuration file + * @param pConfig the configuration file to load from + * @return true if successful, false otherwise + */ + bool readActions( const QString& sConfigGroup = "Shortcuts", KConfigBase* pConfig = 0 ); + + /** + * Writes the actions to the given configuration file. + * + * @param sConfigGroup the group in the configuration file + * @param pConfig the configuration file to save to + * @param bWriteAll true to write all actions + * @param bGlobal true to write to the global configuration file + * @return true if successful, false otherwise + */ + bool writeActions( const QString& sConfigGroup = "Shortcuts", KConfigBase* pConfig = 0, + bool bWriteAll = false, bool bGlobal = false ) const; + + /** + * Emit a keycodeChanged signal. + */ + void emitKeycodeChanged(); + + /** + * Returns the number of actions in the collection. + * @return the number of actions + */ + uint count() const; + + protected: + KAccelBase* m_pKAccelBase; + KAccelAction** m_prgActions; + uint m_nSizeAllocated, m_nSize; + + void resize( uint ); + void insertPtr( KAccelAction* ); + + private: + class KAccelActionsPrivate* d; + + KAccelActions( KAccelBase* ); + void initPrivate( KAccelBase* ); + KAccelActions& operator =( KAccelActions& ); + + friend class KAccelBase; +}; + +#endif // _KACCELACTION_H diff --git a/extra/kde320/kaccelbase.h b/extra/kde320/kaccelbase.h new file mode 100644 index 0000000..3ddce3a --- /dev/null +++ b/extra/kde320/kaccelbase.h @@ -0,0 +1,230 @@ +/* This file is part of the KDE libraries + Copyright (C) 2001 Ellis Whitehead + + This library 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. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef _KACCELBASE_H +#define _KACCELBASE_H + +#include +#include +#include +#include +#include + +#include "kaccelaction.h" +#include "kkeyserver_x11.h" + +class QPopupMenu; +class QWidget; + +//---------------------------------------------------- + +/** + * @internal + * Handle keyboard accelerators. + * + * Allow an user to configure + * key bindings through application configuration files or through the + * KKeyChooser GUI. + * + * A KAccel contains a list of accelerator items. Each accelerator item + * consists of an action name and a keyboard code combined with modifiers + * (Shift, Ctrl and Alt.) + * + * For example, "Ctrl+P" could be a shortcut for printing a document. The key + * codes are listed in ckey.h. "Print" could be the action name for printing. + * The action name identifies the key binding in configuration files and the + * KKeyChooser GUI. + * + * When pressed, an accelerator key calls the slot to which it has been + * connected. Accelerator items can be connected so that a key will activate + * two different slots. + * + * A KAccel object handles key events sent to its parent widget and to all + * children of this parent widget. + * + * Key binding reconfiguration during run time can be prevented by specifying + * that an accelerator item is not configurable when it is inserted. A special + * group of non-configurable key bindings are known as the + * standard accelerators. + * + * The standard accelerators appear repeatedly in applications for + * standard document actions such as printing and saving. Convenience methods are + * available to insert and connect these accelerators which are configurable on + * a desktop-wide basis. + * + * It is possible for a user to choose to have no key associated with + * an action. + * + * The translated first argument for insertItem() is used only + * in the configuration dialog. + *\code + * KAccel *a = new KAccel( myWindow ); + * // Insert an action "Scroll Up" which is associated with the "Up" key: + * a->insertItem( i18n("Scroll Up"), "Scroll Up", "Up" ); + * // Insert an action "Scroll Down" which is not associated with any key: + * a->insertItem( i18n("Scroll Down"), "Scroll Down", 0); + * a->connectItem( "Scroll up", myWindow, SLOT( scrollUp() ) ); + * // a->insertStdItem( KStdAccel::Print ); //not necessary, since it + * // is done automatially with the + * // connect below! + * a->connectItem(KStdAccel::Print, myWindow, SLOT( printDoc() ) ); + * + * a->readSettings(); + *\endcode + * + * If a shortcut has a menu entry as well, you could insert them like + * this. The example is again the KStdAccel::Print from above. + * + * \code + * int id; + * id = popup->insertItem("&Print",this, SLOT(printDoc())); + * a->changeMenuAccel(popup, id, KStdAccel::Print ); + * \endcode + * + * If you want a somewhat "exotic" name for your standard print action, like + * id = popup->insertItem(i18n("Print &Document"),this, SLOT(printDoc())); + * it might be a good idea to insert the standard action before as + * a->insertStdItem( KStdAccel::Print, i18n("Print Document") ) + * as well, so that the user can easily find the corresponding function. + * + * This technique works for other actions as well. Your "scroll up" function + * in a menu could be done with + * + * \code + * id = popup->insertItem(i18n"Scroll &up",this, SLOT(scrollUp())); + * a->changeMenuAccel(popup, id, "Scroll Up" ); + * \endcode + * + * Please keep the order right: First insert all functions in the + * acceleratior, then call a -> readSettings() and @em then build your + * menu structure. + * + * @short Configurable key binding support. + * @version $Id: kaccelbase.h,v 1.26 2003/08/16 19:44:57 coolo Exp $ + */ + +class KAccelBase +{ + public: + enum Init { QT_KEYS = 0x00, NATIVE_KEYS = 0x01 }; + enum Signal { KEYCODE_CHANGED }; + + KAccelBase( int fInitCode ); + virtual ~KAccelBase(); + + uint actionCount() const; + KAccelActions& actions(); + bool isEnabled() const; + + KAccelAction* actionPtr( const QString& sAction ); + const KAccelAction* actionPtr( const QString& sAction ) const; + KAccelAction* actionPtr( const KKey& key ); + KAccelAction* actionPtr( const KKeyServer::Key& key ); + + const QString& configGroup() const { return m_sConfigGroup; } + void setConfigGroup( const QString& group ); + void setConfigGlobal( bool global ); + virtual void setEnabled( bool bEnabled ) = 0; + bool getAutoUpdate() { return m_bAutoUpdate; } + // return value of AutoUpdate flag before this call. + bool setAutoUpdate( bool bAuto ); + +// Procedures for manipulating Actions. + //void clearActions(); + + KAccelAction* insert( const QString& sName, const QString& sDesc ); + KAccelAction* insert( + const QString& sAction, const QString& sDesc, const QString& sHelp, + const KShortcut& rgCutDefaults3, const KShortcut& rgCutDefaults4, + const QObject* pObjSlot, const char* psMethodSlot, + bool bConfigurable = true, bool bEnabled = true ); + bool remove( const QString& sAction ); + bool setActionSlot( const QString& sAction, const QObject* pObjSlot, const char* psMethodSlot ); + + bool updateConnections(); + + bool setShortcut( const QString& sAction, const KShortcut& cut ); + +// Modify individual Action sub-items + bool setActionEnabled( const QString& sAction, bool bEnable ); + + /** + * Read all key associations from @p config, or (if @p config + * is zero) from the application's configuration file + * KGlobal::config(). + * + * The group in which the configuration is stored can be + * set with setConfigGroup(). + */ + void readSettings( KConfigBase* pConfig = 0 ); + + /** + * Write the current configurable associations to @p config, + * or (if @p config is zero) to the application's + * configuration file. + */ + void writeSettings( KConfigBase* pConfig = 0 ) const; + + QPopupMenu* createPopupMenu( QWidget* pParent, const KKeySequence& ); + + // Protected methods + protected: + void slotRemoveAction( KAccelAction* ); + + struct X; + void createKeyList( QValueVector& rgKeys ); + bool insertConnection( KAccelAction* ); + bool removeConnection( KAccelAction* ); + + virtual bool emitSignal( Signal ) = 0; + virtual bool connectKey( KAccelAction&, const KKeyServer::Key& ) = 0; + virtual bool connectKey( const KKeyServer::Key& ) = 0; + virtual bool disconnectKey( KAccelAction&, const KKeyServer::Key& ) = 0; + virtual bool disconnectKey( const KKeyServer::Key& ) = 0; + + protected: + struct ActionInfo + { + KAccelAction* pAction; + uint iSeq, iVariation; + //ActionInfo* pInfoNext; // nil if only one action uses this key. + + ActionInfo() { pAction = 0; iSeq = 0xffff; iVariation = 0xffff; } + ActionInfo( KAccelAction* _pAction, uint _iSeq, uint _iVariation ) + { pAction = _pAction; iSeq = _iSeq; iVariation = _iVariation; } + }; + typedef QMap KKeyToActionMap; + + KAccelActions m_rgActions; + KKeyToActionMap m_mapKeyToAction; + QValueList m_rgActionsNonUnique; + bool m_bNativeKeys; // Use native key codes instead of Qt codes + bool m_bEnabled; + bool m_bConfigIsGlobal; + QString m_sConfigGroup; + bool m_bAutoUpdate; + KAccelAction* mtemp_pActionRemoving; + + private: + KAccelBase& operator =( const KAccelBase& ); + + friend class KAccelActions; +}; + +#endif // _KACCELBASE_H diff --git a/extra/kde320/kicontheme.h b/extra/kde320/kicontheme.h new file mode 100644 index 0000000..a360a15 --- /dev/null +++ b/extra/kde320/kicontheme.h @@ -0,0 +1,334 @@ +/* vi: ts=8 sts=4 sw=4 + * + * $Id: kicontheme.h,v 1.29 2003/11/02 14:50:34 carewolf Exp $ + * + * This file is part of the KDE project, module kdecore. + * Copyright (C) 2000 Geert Jansen + * Antonio Larrosa + * + * This is free software; it comes under the GNU Library General + * Public License, version 2. See the file "COPYING.LIB" for the + * exact licensing terms. + * + */ + +#ifndef __KIconTheme_h_Included__ +#define __KIconTheme_h_Included__ + +#include +#include +#include + +class KConfig; +//class KIconThemeDir; + +class KIconThemePrivate; + +class KIconPrivate; + +/** + * One icon as found by KIconTheme. Also serves as a namespace containing + * icon related constants. + * @see KIconEffect + * @see KIconTheme + * @see KIconLoader + */ +class KIcon +{ +public: + KIcon() { size = 0; } + + /** + * Return true if this icon is valid, false otherwise. + */ + bool isValid() const { return size != 0; } + + /** + * Defines the context of the icon. + */ + enum Context { + Any, ///< Some icon with unknown purpose. + Action, ///< An action icon (e.g. 'save', 'print'). + Application, ///< An icon that represents an application. + Device, ///< An icon that represents a device. + FileSystem, ///< An icon that represents a file system. + MimeType ///< An icon that represents a mime type (or file type). + }; + + /** + * The type of the icon. + */ + enum Type { + Fixed, ///< Fixed-size icon. + Scalable, ///< Scalable-size icon. + Threshold ///< A threshold icon. + }; + + /** + * The type of a match. + */ + enum MatchType { + MatchExact, ///< Only try to find an exact match. + MatchBest ///< Take the best match if there is no exact match. + + }; + + // if you add a group here, make sure to change the config reading in + // KIconLoader too + /** + * The group an an icon. + */ + enum Group { NoGroup=-1, Desktop=0, FirstGroup=0, Toolbar, + MainToolbar, Small, Panel, LastGroup, User }; + + /** + * These are the standard sizes for icons. + */ + enum StdSizes { + /// small icons for menu entries + SizeSmall=16, + /// medium sized icons for the desktop + SizeMedium=32, + /// large sized icons for the panel + SizeLarge=48, + /// huge sized icons for iconviews + SizeHuge=64 + }; + + /** + * Defines the possible states of an icon. + */ + enum States { DefaultState, ///< The default state. + ActiveState, ///< Icon is active. + DisabledState, ///< Icon is disabled. + LastState ///< Last state (last constant) + }; + + /** + * This defines an overlay, a semi-transparent image that is + * projected onto the icon. They are used to show that the file + * represented by the icon is, for example, locked, zipped or hidden. + */ + enum Overlays { + LockOverlay=0x100, ///< a file is locked + ZipOverlay=0x200, ///< a file is zipped + LinkOverlay=0x400, ///< a fileis a link + HiddenOverlay=0x800, ///< a file is hidden + ShareOverlay=0x1000, ///< a file is shared + OverlayMask = ~0xff + }; + + /** + * The size in pixels of the icon. + */ + int size; + + /** + * The context of the icon. + */ + Context context; + + /** + * The type of the icon: Fixed, Scalable or Threshold. + **/ + Type type; + + /** + * The threshold in case type == Threshold + */ + int threshold; + + /** + * The full path of the icon. + */ + QString path; + +private: + KIconPrivate *d; +}; + +inline KIcon::Group& operator++(KIcon::Group& group) { group = static_cast(group+1); return group; } +inline KIcon::Group operator++(KIcon::Group& group,int) { KIcon::Group ret = group; ++group; return ret; } + +/** + * Class to use/access icon themes in KDE. This class is used by the + * iconloader but can be used by others too. + * @see KIconLoader + */ +class KIconTheme +{ +public: + /** + * Load an icon theme by name. + * @param name the name of the theme (e.g. "hicolor" or "keramik") + * @param appName the name of the application. Can be null. This argument + * allows applications to have themed application icons. + */ + KIconTheme(const QString& name, const QString& appName=QString::null); + ~KIconTheme(); + + /** + * The stylized name of the icon theme. + * @return the (human-readable) name of the theme + */ + QString name() const { return mName; } + + /** + * A description for the icon theme. + * @return a human-readable description of the theme, QString::null + * if there is none + */ + QString description() const { return mDesc; } + + /** + * Return the name of the "example" icon. This can be used to + * present the theme to the user. + * @return the name of the example icon, QString::null if there is none + */ + QString example() const; + + /** + * Return the name of the screenshot. + * @return the name of the screenshot, QString::null if there is none + */ + QString screenshot() const; + + /** + * Returns the name of this theme's link overlay. + * @return the name of the link overlay + */ + QString linkOverlay() const; + + /** + * Returns the name of this theme's zip overlay. + * @return the name of the zip overlay + */ + QString zipOverlay() const; + + /** + * Returns the name of this theme's lock overlay. + * @return the name of the lock overlay + */ + QString lockOverlay() const; + + /** + * Returns the name of this theme's share overlay. + * @return the name of the share overlay + * @since 3.1 + */ + QString shareOverlay () const; + + /** + * Returns the toplevel theme directory. + * @return the directory of the theme + */ + QString dir() const { return mDir; } + + /** + * The themes this icon theme falls back on. + * @return a list of icon themes that are used as fall-backs + */ + QStringList inherits() const { return mInherits; } + + /** + * The icon theme exists? + * @return true if the icon theme is valid + */ + bool isValid() const; + + /** + * The icon theme should be hidden to the user? + * @return true if the icon theme is hidden + * @since 3.1 + */ + bool isHidden() const; + + /** + * The minimum display depth required for this theme. This can either + * be 8 or 32. + * @return the minimum bpp (8 or 32) + */ + int depth() const { return mDepth; } + + /** + * The default size of this theme for a certain icon group. + * @param group The icon group. See KIcon::Group. + * @return The default size in pixels for the given icon group. + */ + int defaultSize(KIcon::Group group) const; + + /** + * Query available sizes for a group. + * @param group The icon group. See KIcon::Group. + * @return a list of available sized for the given group + */ + QValueList querySizes(KIcon::Group group) const; + + /** + * Query available icons for a size and context. + * @param size the size of the icons + * @param context the context of the icons + * @return the list of icon names + */ + QStringList queryIcons(int size, KIcon::Context context = KIcon::Any) const; + + /** + * Query available icons for a context and preferred size. + * @param size the size of the icons + * @param context the context of the icons + * @return the list of icon names + */ + QStringList queryIconsByContext(int size, KIcon::Context context = KIcon::Any) const; + + + /** + * Lookup an icon in the theme. + * @param name The name of the icon, without extension. + * @param size The desired size of the icon. + * @param match The matching mode. KIcon::MatchExact returns an icon + * only if matches exactly. KIcon::MatchBest returns the best matching + * icon. + * @return A KIcon class that describes the icon. If an icon is found, + * @see KIcon::isValid will return true, and false otherwise. + */ + KIcon iconPath(const QString& name, int size, KIcon::MatchType match) const; + + /** + * List all icon themes installed on the system, global and local. + * @return the list of all icon themes + */ + static QStringList list(); + + /** + * Returns the current icon theme. + * @return the name of the current theme + */ + static QString current(); + + /** + * Reconfigure the theme. + */ + static void reconfigure(); + + /** + * Returns the default icon theme. + * @return the name of the default theme name + * @since 3.1 + */ + static QString defaultThemeName(); + +private: + int mDefSize[8]; + QValueList mSizes[8]; + + int mDepth; + QString mDir, mName, mDesc; + QStringList mInherits; +// QPtrList mDirs; + KIconThemePrivate *d; + + static QString *_theme; + static QStringList *_theme_list; +}; + +#endif diff --git a/extra/kde320/kkeyserver_x11.h b/extra/kde320/kkeyserver_x11.h new file mode 100644 index 0000000..cf1b360 --- /dev/null +++ b/extra/kde320/kkeyserver_x11.h @@ -0,0 +1,433 @@ +#ifndef _KKEYSERVER_X11_H +#define _KKEYSERVER_X11_H + +#include "kshortcut.h" +#include "kkeynative.h" + +/** + * A collection of functions for the conversion of key presses and + * their modifiers from the window system (X11) specific format + * to the generic format and vice-versa. + */ +namespace KKeyServer +{ + /** + * Supplement enum KKey::ModFlag + * @since 3.1 + */ + enum ExtraModFlag { MODE_SWITCH = 0x2000 }; + + /** + * Represents a key symbol. + * @see KKey + * @see KKeyServer + */ + struct Sym + { + public: + /// the actual value of the symbol + uint m_sym; + + /// Creates a null symbol. + Sym() + { m_sym = 0; } + /** + * Creates asymbol with the given value. + * @param sym the value + */ + Sym( uint sym ) + { m_sym = sym; } + /** + * Creates a symbol from the given string description. + * @param s the description of the symbol + * @see toString() + */ + Sym( const QString& s ) + { init( s ); } + + /** + * Initializes the symbol with the given Qt key code. + * @param keyQt the qt key code + * @return true if successful, false otherwise + * @see Qt::Key + */ + bool initQt( int keyQt ); + + /** + * Initializes the key with the given string description. + * @param s the string description + * @return true if successful, false otherwise + * @see toString() + */ + bool init( const QString &s ); + + /** + * Returns the qt key code of the symbol. + * @return the qt key code + */ + int qt() const; + + /** + * @internal + */ + QString toStringInternal() const; + + /** + * Returns the string representation of the symbol. + * @return the string representation of the symbol + */ + QString toString() const; + + /** + * Returns the mods that are required for this symbol as + * ORed KKey::ModFlag's. For example, Break requires a + * Ctrl to be valid. + * @return the required KKey::ModFlag's + * @see KKey::ModFlag + */ + uint getModsRequired() const; + + /** + * TODO: please find out what this method does and document it + */ + uint getSymVariation() const; + + /** + * Casts the symbol to its integer representation. + */ + operator uint() const { return m_sym; } + + /** + * Overloaded operator to convert ints to Sym. + */ + Sym& operator =( uint sym ) { m_sym = sym; return *this; } + + private: + QString toString( bool bUserSpace ) const; + + static void capitalizeKeyname( QString& ); + }; + + /** + * Represents a key press. + * @see KKey + */ + struct Key + { + /// Code for native Keys in Qt + enum { CODE_FOR_QT = 256 }; + + /// The code of the key + uint m_code; + + /// The modifiers of the key + uint m_mod; + + /// The symbol of the key + uint m_sym; + + /** + * Initializes the key with a KKey. + * @param key the key to get the data from + * @param bQt true to take the Qt keycode, false + * for the native key code + * @see Qt::Key + * @see KKeyNative + */ + bool init( const KKey& key, bool bQt ); + + /** + * Checks whether the key code is a native code. + * @return true if native code of the window system, + * false if it is a Qt keycode + * @see Qt::Key + * @see KKeyNative + */ + bool isNative() const { return m_code != CODE_FOR_QT; } + + /** + * Returns the code of the key. + * @return the code of the key + */ + uint code() const { return m_code; } + + /** + * Returns the modifiers of the key. + * @return the modifiers of the key + */ + uint mod() const { return m_mod; } + + /** + * Returns the symbol of the key. + * @return the symbol of the key + */ + uint sym() const { return m_sym; } + + /** + * Returns the qt key code. + * @return the qt key code + */ + int keyCodeQt() const { return (int) m_sym; } + + /** + * Sets the qt key code. + * @param keyQt the qt key code + */ + void setKeycodeQt( int keyQt ) + { m_code = CODE_FOR_QT; m_sym = keyQt; } + + /** + * Initializes this key with a KKeyNative. + * @return this key + */ + Key& operator =( const KKeyNative& key ); + + /** + * Compares this key with the given Key object. Returns a + * negative number if the given Key is larger, 0 if they + * are equal and a positive number this Key is larger. The + * returned value is the difference between the symbol, modifier + * or code, whatever is non-zero first. + * + * @param key the key to compare with this key + * @return a negative number if the given Key is larger, 0 if + * they are equal and a positive number this Key is larger + */ + int compare( const Key& key ) const; + + /** + * Compares the symbol, modifiers and code of both keys. + * @see compare() + */ + bool operator ==( const Key& b ) const + { return compare( b ) == 0; } + + /** + * Compares the symbol, modifiers and code of both keys. + * @see compare() + */ + bool operator <( const Key& b ) const + { return compare( b ) < 0; } + + /** + * Converts this Key to a KKey. + * @return the KKey + */ + KKey key() const; + }; + + /** + * TODO: please document this class + */ + struct Variations + { + enum { MAX_VARIATIONS = 4 }; + + Key m_rgkey[MAX_VARIATIONS]; + uint m_nVariations; + + Variations() { m_nVariations = 0; } + + void init( const KKey&, bool bQt ); + + uint count() const { return m_nVariations; } + const Key& key( uint i ) const { return m_rgkey[i]; } + }; + + /// TODO: please document + bool initializeMods(); + + /** + * Returns the equivalent X modifier mask of the given modifier flag. + * @param modFlag the generic flags to check + * @return the window system specific flags + */ + uint modX( KKey::ModFlag modFlag ); + + /** + * Returns true if the current keyboard layout supports the Win key. + * Specifically, whether the Super or Meta keys are assigned to an X modifier. + * @return true if the keyboard has a Win key + * @see modXWin() + */ + bool keyboardHasWinKey(); + + /** + * Returns the X11 Shift modifier mask/flag. + * @return the X11 Shift modifier mask/flag. + * @see accelModMaskX() + */ + uint modXShift(); + + /** + * Returns the X11 Lock modifier mask/flag. + * @return the X11 Lock modifier mask/flag. + * @see accelModMaskX() + */ + uint modXLock(); + + /** + * Returns the X11 Ctrl modifier mask/flag. + * @return the X11 Ctrl modifier mask/flag. + * @see accelModMaskX() + */ + uint modXCtrl(); + + /** + * Returns the X11 Alt (Mod1) modifier mask/flag. + * @return the X11 Alt (Mod1) modifier mask/flag. + * @see accelModMaskX() + */ + uint modXAlt(); + + /** + * Returns the X11 NumLock modifier mask/flag. + * @return the X11 NumLock modifier mask/flag. + * @see accelModMaskX() + */ + uint modXNumLock(); + + /** + * Returns the X11 Win (Mod3) modifier mask/flag. + * @return the X11 Win (Mod3) modifier mask/flag. + * @see keyboardHasWinKey() + * @see accelModMaskX() + */ + uint modXWin(); + + /** + * Returns the X11 ScrollLock modifier mask/flag. + * @return the X11 ScrollLock modifier mask/flag. + * @see accelModMaskX() + */ + uint modXScrollLock(); + + /** + * Returns bitwise OR'ed mask containing Shift, Ctrl, Alt, and + * Win (if available). + * @see modXShift() + * @see modXLock() + * @see modXCtrl() + * @see modXAlt() + * @see modXNumLock() + * @see modXWin() + * @see modXScrollLock() + */ + uint accelModMaskX(); + + /** + * Extracts the symbol from the given Qt key and + * converts it to a symbol. + * @param keyQt the qt key code + * @param sym if successful, the symbol will be written here + * @return true if successful, false otherwise + * @see Qt::Key + * @see Sym + */ + bool keyQtToSym( int keyQt, uint& sym ); + + /** + * Extracts the modifiers from the given Qt key and + * converts them in a mask of ORed KKey::ModFlag modifiers. + * @param keyQt the qt key code + * @param mod if successful, the modifiers will be written here + * @return true if successful, false otherwise + * @see Qt::Key + */ + bool keyQtToMod( int keyQt, uint& mod ); + + /** + * Converts the given symbol to a Qt key code. + * @param sym the symbol + * @param keyQt if successful, the qt key code will be written here + * @return true if successful, false otherwise + * @see Qt::Key + * @see Sym + */ + bool symToKeyQt( uint sym, int& keyQt ); + + /** + * Converts the mask of ORed KKey::ModFlag modifiers to + * a mask of ORed Qt key code modifiers. + * @param mod the mask of KKey::ModFlag modifiers + * @param modQt the mask of Qt key code modifiers will be written here, + * if successful + * @return true if successful, false otherwise + * @see Qt::Key + * @see KKey + */ + bool modToModQt( uint mod, int& modQt ); + + /** + * Converts the mask of ORed KKey::ModFlag modifiers to + * a mask of ORed X11 modifiers. + * @param mod the mask of KKey::ModFlag modifiers + * @param modX the mask of X11 modifiers will be written here, + * if successful + * @return true if successful, false otherwise + * @see KKey + */ + bool modToModX( uint mod, uint& modX ); + + /** + * Converts the mask of ORed X11 modifiers to + * a mask of ORed Qt key code modifiers. + * @param modX the mask of X11 modifiers + * @param modQt the mask of Qt key code modifiers will be written here + * if successful + * @return true if successful, false otherwise + * @see Qt::Key + */ + bool modXToModQt( uint modX, int& modQt ); + + /** + * Converts the mask of ORed X11 modifiers to + * a mask of ORed KKey::ModFlag modifiers. + * @param modX the mask of X11 modifiers + * @param mod the mask of KKey::ModFlag modifiers will be written here, + * if successful + * @return true if successful, false otherwise + * @see KKey + */ + bool modXToMod( uint modX, uint& mod ); + + /** + * Converts a X11 key code and a mask of ORed X11 modifiers + * into a X11 symbol. + * converts it to a symbol. + * @param codeX the X11 key code + * @param modX the mask of ORed X11 modifiers + * @param symX if successful, the X11 symbol will be written here + * @return true if successful, false otherwise + * @see Qt::Key + * @see Sym + */ + bool codeXToSym( uchar codeX, uint modX, uint& symX ); + + /** + * @internal + */ + QString modToStringInternal( uint mod ); + + /** + * Converts the mask of ORed KKey::ModFlag modifiers to a + * user-readable string. + * @param mod the mask of ORed KKey::ModFlag modifiers + * @return the user-readable string + */ + QString modToStringUser( uint mod ); + + /** + * @internal + * Unimplemented? + */ + bool stringToSymMod( const QString&, uint& sym, uint& mod ); + + /** + * @internal + * Unimplemented? + */ + void keyQtToKeyX( uint keyCombQt, unsigned char *pKeyCodeX, uint *pKeySymX, uint *pKeyModX ); +} + +#endif // !_KKEYSERVER_X11_H diff --git a/extra/kde320/konsole_part.h b/extra/kde320/konsole_part.h new file mode 100644 index 0000000..ba89800 --- /dev/null +++ b/extra/kde320/konsole_part.h @@ -0,0 +1,223 @@ +/* + This file is part of the KDE system + Copyright (C) 1999,2000 Boloni Laszlo + + 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. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. + */ + +#ifndef __KONSOLE_PART_H__ +#define __KONSOLE_PART_H__ + +#include +#include + + +#include + +#include + +//#include "schema.h" +//#include "session.h" + +class KInstance; +class konsoleBrowserExtension; +class QPushButton; +class QSpinBox; +class KPopupMenu; +class QCheckBox; +class KRootPixmap; +class KToggleAction; +class KSelectAction; + +namespace KParts { class GUIActivateEvent; } + +class konsoleFactory : public KParts::Factory +{ + Q_OBJECT +public: + konsoleFactory(); + virtual ~konsoleFactory(); + + virtual KParts::Part* createPartObject(QWidget *parentWidget = 0, const char *widgetName = 0, + QObject* parent = 0, const char* name = 0, + const char* classname = "KParts::Part", + const QStringList &args = QStringList()); + + static KInstance *instance(); + + private: + static KInstance *s_instance; + static KAboutData *s_aboutData; +}; + +////////////////////////////////////////////////////////////////////// + +class konsolePart: public KParts::ReadOnlyPart, public TerminalInterface +{ + Q_OBJECT + public: + konsolePart(QWidget *parentWidget, const char *widgetName, QObject * parent, const char *name, const char *classname = 0); + virtual ~konsolePart(); + +signals: + void processExited(); + void receivedData( const QString& s ); + protected: + virtual bool openURL( const KURL & url ); + virtual bool openFile() {return false;} // never used + virtual bool closeURL() {return true;} + virtual void guiActivateEvent( KParts::GUIActivateEvent * event ); + + protected slots: + void showShell(); + void slotProcessExited(); + void slotReceivedData( const QString& s ); + +// void doneSession(TESession*); + void sessionDestroyed(); +// void configureRequest(TEWidget*,int,int x,int y); + void updateTitle(); + void enableMasterModeConnections(); + + private slots: + void emitOpenURLRequest(const QString &url); + + void readProperties(); + void saveProperties(); + + void sendSignal(int n); + void closeCurrentSession(); + + void notifySize(int,int); + + void slotToggleFrame(); + void slotSelectScrollbar(); + void slotSelectFont(); + void schema_menu_check(); + void keytab_menu_activated(int item); + void updateSchemaMenu(); + void setSchema(int n); + void pixmap_menu_activated(int item); + void schema_menu_activated(int item); + void slotHistoryType(); + void slotSelectBell(); + void slotSelectLineSpacing(); + void slotBlinkingCursor(); + void slotWordSeps(); + void fontNotFound(); + + private: + konsoleBrowserExtension *m_extension; + KURL currentURL; + + void makeGUI(); + void applySettingsToGUI(); + + void setFont(int fontno); +// void setSchema(ColorSchema* s); + void updateKeytabMenu(); + + bool doOpenStream( const QString& ); + bool doWriteStream( const QByteArray& ); + bool doCloseStream(); + + QWidget* parentWidget; +// TEWidget* te; +// TESession* se; +// ColorSchemaList* colors; + KRootPixmap* rootxpm; + + KToggleAction* blinkingCursor; + KToggleAction* showFrame; + + KSelectAction* selectBell; + KSelectAction* selectFont; + KSelectAction* selectLineSpacing; + KSelectAction* selectScrollbar; + + KPopupMenu* m_keytab; + KPopupMenu* m_schema; + KPopupMenu* m_signals; + KPopupMenu* m_options; + KPopupMenu* m_popupMenu; + + QFont defaultFont; + + QString pmPath; // pixmap path + QString s_schema; + QString s_kconfigSchema; + QString s_word_seps; // characters that are considered part of a word + QString fontNotFound_par; + + bool b_framevis:1; + bool b_histEnabled:1; + + int curr_schema; // current schema no + int n_bell; + int n_font; + int n_keytab; + int n_render; + int n_scroll; + unsigned m_histSize; + bool m_runningShell; + bool m_streamEnabled; +public: + // these are the implementations for the TermEmuInterface + // functions... + void startProgram( const QString& program, + const QStrList& args ); + void showShellInDir( const QString& dir ); + void sendInput( const QString& text ); +}; + +////////////////////////////////////////////////////////////////////// + +/*class HistoryTypeDialog : public KDialogBase +{ + Q_OBJECT +public: + HistoryTypeDialog(const HistoryType& histType, + unsigned int histSize, + QWidget *parent); + +public slots: + void slotDefault(); + void slotSetUnlimited(); + void slotHistEnable(bool); + + unsigned int nbLines() const; + bool isOn() const; + +protected: + QCheckBox* m_btnEnable; + QSpinBox* m_size; + QPushButton* m_setUnlimited; +};*/ + +////////////////////////////////////////////////////////////////////// + +class konsoleBrowserExtension : public KParts::BrowserExtension +{ + Q_OBJECT + friend class konsolePart; + public: + konsoleBrowserExtension(konsolePart *parent); + virtual ~konsoleBrowserExtension(); + + void emitOpenURLRequest(const KURL &url); +}; + +#endif diff --git a/extra/kde320/kpanelmenu.h b/extra/kde320/kpanelmenu.h new file mode 100644 index 0000000..83c3268 --- /dev/null +++ b/extra/kde320/kpanelmenu.h @@ -0,0 +1,181 @@ +/***************************************************************** + +Copyright (c) 1996-2000 the kicker authors. See file AUTHORS. + (c) 2001 Michael Goffioul + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN +AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +******************************************************************/ + +#ifndef __KPANELMENU_H__ +#define __KPANELMENU_H__ + +#include +#include +#include + +class KPanelMenuPrivate; + +/** + * Base class to build dynamically loaded menu entries for the K-menu, or the panel. + * + * This class allows to build menu entries that will be dynamically added either to + * the K-menu, or to the panel as a normal button. These dynamic menus are located + * in shared libraries that will be loaded at runtime by Kicker (the KDE panel). + * + * To build such a menu, you have to inherit this class and implement the pure virtual + * functions #initialize() and slotExec(). You also have to provide a factory + * object in your library, see KLibFactory. This factory is only used to construct + * the menu object. + * + * Finally, you also have to provide a desktop file describing your dynamic menu. The + * relevant entries are: Name, Comment, Icon and X-KDE-Library (which contains the + * library name without any extension). This desktop file has to be installed in + * $KDEDIR/share/apps/kicker/menuext/. + * + * @short Base class to build dynamically loaded menu entries for the K-menu, or the panel. + * @author The kicker maintainer, Michael Goffioul + */ +class KPanelMenu : public KPopupMenu +{ + Q_OBJECT + +public: + /** + * Construct a KPanelMenu object. This is the normal constructor to use when + * building extrernal menu entries. + */ + KPanelMenu(QWidget *parent=0, const char *name=0); + /** + * Constructor used internally by Kicker. You don't really want to use it. + * @param startDir a directory to associate with this menu + * @see path(), setPath() + */ + KPanelMenu(const QString &startDir, QWidget *parent=0, const char *name=0); + /** + * Destructor. + */ + virtual ~KPanelMenu(); + + /** + * Get the directory path associated with this menu, or QString::null if + * there's no such associated path. + * @return the associated directory path + * @see setPath() + */ + const QString& path() const; + /** + * Set a directory path to be associated with this menu. + * @param p the directory path + * @see path() + */ + void setPath(const QString &p); + /** + * Tell if the menu has been initialized, that is it already contains items. + * This is useful when you need to know if you have to clear the menu, or to + * fill it. + * @return the initial state + * @see setInitialized(), initialize() + */ + bool initialized() const; + /** + * Set the initial state. Set it to true when you menu is filled with the items + * you want. + * @param on the initial state + * @see initialized(), initialize() + */ + void setInitialized(bool on); + + /** + * Disable the automatic clearing of the menu. Kicker uses a cache system for + * its menus. After a specific configurable delay, the menu will be cleared. + * Use this function if you want to disable kicker's cache system, and avoid + * the clearing of your menu. + */ + void disableAutoClear(); + +public slots: + /** + * Reinitialize the menu: the menu is first cleared, the initial state is set + * to false, and finally #initialize() is called. Use this if you want to + * refill your menu immediately. + */ + void reinitialize(); + /** + * Deinitialize the menu: the menu is cleared and the initialized state is set to + * false. #initialize() is NOT called. It will be called before the menu is + * next shown, however. Use this slot if you want a delayed reinitialization. + * @since 3.1 + */ + void deinitialize(); + +protected slots: + /** + * This slot is called just before the menu is shown. This allows your menu + * to update itself if needed. However you should instead re-implement + * #initialize to provide this feature. This function is responsible for + * the cache system handling, so if you re-implement it, you should call + * the base function also. Calls #initialize(). + * @see disableAutoClear() + */ + virtual void slotAboutToShow(); + /** + * This is slot is called when an item from the menu has been selected. Your + * applet is then supposed to perform some action. You must re-implement this + * function. + * @param id the ID associated with the selected item + */ + virtual void slotExec(int id) = 0; + /** + * This slots is called to initialize the menu. It is called automatically by + * slotAboutToShow(). By re-implementing this functions, you can reconstruct + * the menu before it is being shown. At the end of this function, you should + * call setInitialize() with true to tell the system that the menu is OK. + * You applet must re-implement this function. + * @see slotAboutToShow(), initialized(), setInitialized() + */ + virtual void initialize() = 0; + /** + * Clears the menu, and update the initial state accordingly. + * @see initialized() + */ + void slotClear(); + +protected: + /** + * Re-implemented for internal reasons. + */ + virtual void hideEvent(QHideEvent *ev); + /** + * For internal use only. Used by constructors. + */ + void init(const QString& path = QString::null); + +protected: + virtual void virtual_hook( int id, void* data ); +private: + void internalInitialize(); + KPanelMenuPrivate *d; +}; + +#define K_EXPORT_KICKER_MENUEXT( libname, classname ) \ + K_EXPORT_COMPONENT_FACTORY( \ + kickermenu_##libname, \ + KGenericFactory("libkickermenu_" #libname) ) + +#endif diff --git a/extra/kde320/krecentdirs.h b/extra/kde320/krecentdirs.h new file mode 100644 index 0000000..71f771b --- /dev/null +++ b/extra/kde320/krecentdirs.h @@ -0,0 +1,68 @@ +/* -*- c++ -*- + * Copyright (C)2000 Waldo Bastian + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * + */ +#ifndef __KRECENTDIRS_H +#define __KRECENTDIRS_H + +#include + +/** + * The goal of this class is to make sure that, when the user needs to + * specify a file via the file selection dialog, this dialog will start + * in the directory most likely to contain the desired files. + * + * This works as follows: Each time the file selection dialog is + * shown, the programmer can specify a "file-class". The file-dialog will + * then start with the directory associated with this file-class. When + * the dialog closes, the directory currently shown in the file-dialog + * will be associated with the file-class. + * + * A file-class can either start with ':' or with '::'. If it starts with + * a single ':' the file-class is specific to the current application. + * If the file-class starts with '::' it is global to all applications. + */ +class KRecentDirs +{ +public: + /** + * Returns a list of directories associated with this file-class. + * The most recently used directory is at the front of the list. + */ + static QStringList list(const QString &fileClass); + + /** + * Returns the most recently used directory accociated with this file-class. + */ + static QString dir(const QString &fileClass); + + /** + * Associates @p directory with @p fileClass + */ + static void add(const QString &fileClass, const QString &directory); +}; + +#endif diff --git a/extra/kde320/ksharedptr.h b/extra/kde320/ksharedptr.h new file mode 100644 index 0000000..8189276 --- /dev/null +++ b/extra/kde320/ksharedptr.h @@ -0,0 +1,171 @@ +/* This file is part of the KDE libraries + Copyright (c) 1999 Waldo Bastian + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License version 2 as published by the Free Software Foundation. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ +#ifndef KSharedPTR_H +#define KSharedPTR_H + +/** + * Reference counting for shared objects. If you derive your object + * from this class, then you may use it in conjunction with + * KSharedPtr to control the lifetime of your object. + * + * Specifically, all classes that derive from KShared have an internal + * counter keeping track of how many other objects have a reference to + * their object. If used with KSharedPtr, then your object will + * not be deleted until all references to the object have been + * released. + * + * You should probably not ever use any of the methods in this class + * directly -- let the KSharedPtr take care of that. Just derive + * your class from KShared and forget about it. + * + * @author Waldo Bastian + * @version $Id: ksharedptr.h,v 1.22 2003/08/20 08:01:42 coolo Exp $ + */ +class KShared { +public: + /** + * Standard constructor. This will initialize the reference count + * on this object to 0. + */ + KShared() : count(0) { } + + /** + * Copy constructor. This will @em not actually copy the objects + * but it will initialize the reference count on this object to 0. + */ + KShared( const KShared & ) : count(0) { } + + /** + * Overloaded assignment operator. + */ + KShared &operator=(const KShared & ) { return *this; } + + /** + * Increases the reference count by one. + */ + void _KShared_ref() const { count++; } + + /** + * Releases a reference (decreases the reference count by one). If + * the count goes to 0, this object will delete itself. + */ + void _KShared_unref() const { if (!--count) delete this; } + + /** + * Return the current number of references held. + * + * @return Number of references + */ + int _KShared_count() const { return count; } + +protected: + virtual ~KShared() { } +private: + mutable int count; +}; + +/** + * Can be used to control the lifetime of an object that has derived + * KShared. As long a someone holds a KSharedPtr on some KShared + * object it won't become deleted but is deleted once its reference + * count is 0. This struct emulates C++ pointers perfectly. So just + * use it like a simple C++ pointer. + * + * KShared and KSharedPtr are preferred over QShared / QSharedPtr + * since they are more safe. + * + * @author Waldo Bastian + * @version $Id: ksharedptr.h,v 1.22 2003/08/20 08:01:42 coolo Exp $ + */ +template< class T > +struct KSharedPtr +{ +public: +/** + * Creates a null pointer. + */ + KSharedPtr() + : ptr(0) { } + /** + * Creates a new pointer. + * @param t the pointer + */ + KSharedPtr( T* t ) + : ptr(t) { if ( ptr ) ptr->KShared::_KShared_ref(); } + + /** + * Copies a pointer. + * @param p the pointer to copy + */ + KSharedPtr( const KSharedPtr& p ) + : ptr(p.ptr) { if ( ptr ) ptr->KShared::_KShared_ref(); } + + /** + * Unreferences the object that this pointer points to. If it was + * the last reference, the object will be deleted. + */ + ~KSharedPtr() { if ( ptr ) ptr->KShared::_KShared_unref(); } + + KSharedPtr& operator= ( const KSharedPtr& p ) { + if ( ptr == p.ptr ) return *this; + if ( ptr ) ptr->KShared::_KShared_unref(); + ptr = p.ptr; + if ( ptr ) ptr->KShared::_KShared_ref(); + return *this; + } + KSharedPtr& operator= ( T* p ) { + if ( ptr == p ) return *this; + if ( ptr ) ptr->KShared::_KShared_unref(); + ptr = p; + if ( ptr ) ptr->KShared::_KShared_ref(); + return *this; + } + bool operator== ( const KSharedPtr& p ) const { return ( ptr == p.ptr ); } + bool operator!= ( const KSharedPtr& p ) const { return ( ptr != p.ptr ); } + bool operator== ( const T* p ) const { return ( ptr == p ); } + bool operator!= ( const T* p ) const { return ( ptr != p ); } + bool operator!() const { return ( ptr == 0 ); } + operator T*() const { return ptr; } + + /** + * Returns the pointer. + * @return the pointer + */ + T* data() { return ptr; } + + /** + * Returns the pointer. + * @return the pointer + */ + const T* data() const { return ptr; } + + const T& operator*() const { return *ptr; } + T& operator*() { return *ptr; } + const T* operator->() const { return ptr; } + T* operator->() { return ptr; } + + /** + * Returns the number of references. + * @return the number of references + */ + int count() const { return ptr->KShared::_KShared_count(); } // for debugging purposes +private: + T* ptr; +}; + +#endif diff --git a/extra/kde320/ksycocafactory.h b/extra/kde320/ksycocafactory.h new file mode 100644 index 0000000..9cc1257 --- /dev/null +++ b/extra/kde320/ksycocafactory.h @@ -0,0 +1,143 @@ +/* This file is part of the KDE libraries + * Copyright (C) 1999 Waldo Bastian + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License version 2 as published by the Free Software Foundation; + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public License + * along with this library; see the file COPYING.LIB. If not, write to + * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA. + **/ + +#ifndef __ksycocafactory_h__ +#define __ksycocafactory_h__ "$Id: ksycocafactory.h,v 1.14 2003/10/29 17:59:18 waba Exp $" + +#include "ksycocatype.h" +#include "ksycocaentry.h" + +#include +#include +class KSycoca; +class QStringList; +class QString; +class KSycocaDict; +class KSycocaResourceList; + +typedef QDict KSycocaEntryDict; + +/** + * @internal + * Base class for sycoca factories + */ +class KSycocaFactory +{ +public: + virtual KSycocaFactoryId factoryId() const = 0; + +protected: // virtual class + /** + * Create a factory which can be used to lookup from/create a database + * (depending on KSycoca::isBuilding()) + */ + KSycocaFactory( KSycocaFactoryId factory_id ); + +public: + virtual ~KSycocaFactory(); + + /** + * @return the position of the factory in the sycoca file + */ + int offset() { return mOffset; } + + /** + * @return the dict, for special use by KBuildSycoca + */ + KSycocaEntryDict * entryDict() { return m_entryDict; } + + /** + * Construct an entry from a config file. + * To be implemented in the real factories. + */ + virtual KSycocaEntry *createEntry(const QString &file, const char *resource) = 0; + + /** + * Add an entry + */ + virtual void addEntry(KSycocaEntry *newEntry, const char *resource); + + /** + * Remove an entry + * Not very fast, use with care. O(N) + */ + void removeEntry(KSycocaEntry *newEntry); + + /** + * Read an entry from the database + */ + virtual KSycocaEntry *createEntry(int offset)=0; + + /** + * Get a list of all entries from the database. + */ + KSycocaEntry::List allEntries(); + + /** + * Saves all entries it maintains as well as index files + * for these entries to the stream 'str'. + * + * Also sets mOffset to the starting position. + * + * The stream is positioned at the end of the last index. + * + * Don't forget to call the parent first when you override + * this function. + */ + virtual void save(QDataStream &str); + + /** + * Writes out a header to the stream 'str'. + * The baseclass positions the stream correctly. + * + * Don't forget to call the parent first when you override + * this function. + */ + virtual void saveHeader(QDataStream &str); + + /** + * @return the resources for which this factory is responsible. + */ + virtual const KSycocaResourceList * resourceList() const { return m_resourceList; } + +private: + int mOffset; + +protected: + int m_sycocaDictOffset; + int m_beginEntryOffset; + int m_endEntryOffset; + QDataStream *m_str; + + KSycocaResourceList *m_resourceList; + KSycocaEntryDict *m_entryDict; + KSycocaDict *m_sycocaDict; +protected: + virtual void virtual_hook( int id, void* data ); +}; + +/** This, instead of a typedef, allows to declare "class ..." in header files + * @internal + */ +class KSycocaFactoryList : public QPtrList +{ +public: + KSycocaFactoryList() { } +}; + +#endif diff --git a/extra/kde320/ktoolbarbutton.h b/extra/kde320/ktoolbarbutton.h new file mode 100644 index 0000000..065617a --- /dev/null +++ b/extra/kde320/ktoolbarbutton.h @@ -0,0 +1,315 @@ +/* This file is part of the KDE libraries + Copyright (C) 1997, 1998 Stephan Kulow (coolo@kde.org) + (C) 1997, 1998 Sven Radej (radej@kde.org) + (C) 1997, 1998 Mark Donohoe (donohoe@kde.org) + (C) 1997, 1998 Matthias Ettrich (ettrich@kde.org) + (C) 2000 Kurt Granroth (granroth@kde.org) + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License version 2 as published by the Free Software Foundation. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +// $Id: ktoolbarbutton.h,v 1.34 2003/09/09 12:40:58 bhards Exp $ +#ifndef _KTOOLBARBUTTON_H +#define _KTOOLBARBUTTON_H + +#include +#include +#include +#include +#include + +class KToolBar; +class KToolBarButtonPrivate; +class KInstance; +class QEvent; +class QPopupMenu; +class QPainter; + +/** + * A toolbar button. This is used internally by KToolBar, use the + * KToolBar methods instead. + * @internal + */ +class KToolBarButton : public QToolButton +{ + Q_OBJECT + +public: + /** + * Construct a button with an icon loaded by the button itself. + * This will trust the button to load the correct icon with the + * correct size. + * + * @param icon Name of icon to load (may be absolute or relative) + * @param id Id of this button + * @param parent This button's parent + * @param name This button's internal name + * @param txt This button's text (in a tooltip or otherwise) + */ + KToolBarButton(const QString& icon, int id, QWidget *parent, + const char *name=0L, const QString &txt=QString::null, + KInstance *_instance = KGlobal::instance()); + + /** + * Construct a button with an existing pixmap. It is not + * recommended that you use this as the internal icon loading code + * will almost always get it "right". + * + * @param pixmap Name of icon to load (may be absolute or relative) + * @param id Id of this button + * @param parent This button's parent + * @param name This button's internal name + * @param txt This button's text (in a tooltip or otherwise) + */ + KToolBarButton(const QPixmap& pixmap, int id, QWidget *parent, + const char *name=0L, const QString &txt=QString::null); + + /** + * Construct a separator button + * + * @param parent This button's parent + * @param name This button's internal name + */ + KToolBarButton(QWidget *parent=0L, const char *name=0L); + + /** + * Standard destructor + */ + ~KToolBarButton(); + +#ifndef KDE_NO_COMPAT + /** + * @deprecated + * Set the pixmap directly for this button. This pixmap should be + * the active one... the dimmed and disabled pixmaps are constructed + * based on this one. However, don't use this function unless you + * are positive that you don't want to use setIcon. + * + * @param pixmap The active pixmap + */ + // this one is from QButton, so #ifdef-ing it out doesn't break BC + virtual void setPixmap(const QPixmap &pixmap) KDE_DEPRECATED; + + /** + * @deprecated + * Force the button to use this pixmap as the default one rather + * then generating it using effects. + * + * @param pixmap The pixmap to use as the default (normal) one + */ + void setDefaultPixmap(const QPixmap& pixmap) KDE_DEPRECATED; + + /** + * @deprecated + * Force the button to use this pixmap when disabled one rather then + * generating it using effects. + * + * @param pixmap The pixmap to use when disabled + */ + void setDisabledPixmap(const QPixmap& pixmap) KDE_DEPRECATED; +#endif + + /** + * Set the text for this button. The text will be either used as a + * tooltip (IconOnly) or will be along side the icon + * + * @param text The button (or tooltip) text + */ + virtual void setText(const QString &text); + + /** + * Set the icon for this button. The icon will be loaded internally + * with the correct size. This function is preferred over setIconSet + * + * @param icon The name of the icon + */ + virtual void setIcon(const QString &icon); + + /// @since 3.1 + virtual void setIcon( const QPixmap &pixmap ) + { QToolButton::setIcon( pixmap ); } + + /** + * Set the pixmaps for this toolbar button from a QIconSet. + * If you call this you don't need to call any of the other methods + * that set icons or pixmaps. + * @param iconset The iconset to use + */ + virtual void setIconSet( const QIconSet &iconset ); + +#ifndef KDE_NO_COMPAT + /** + * @deprecated + * Set the active icon for this button. The pixmap itself is loaded + * internally based on the icon size... .. the disabled and default + * pixmaps, however will only be constructed if generate is + * true. This function is preferred over setPixmap + * + * @param icon The name of the active icon + * @param generate If true, then the other icons are automagically + * generated from this one + */ + KDE_DEPRECATED void setIcon(const QString &icon, bool generate ) { Q_UNUSED(generate); setIcon( icon ); } + + /** + * @deprecated + * Force the button to use this icon as the default one rather + * then generating it using effects. + * + * @param icon The icon to use as the default (normal) one + */ + void setDefaultIcon(const QString& icon) KDE_DEPRECATED; + + /** + * @deprecated + * Force the button to use this icon when disabled one rather then + * generating it using effects. + * + * @param icon The icon to use when disabled + */ + void setDisabledIcon(const QString& icon) KDE_DEPRECATED; +#endif + + /** + * Turn this button on or off + * + * @param flag true or false + */ + void on(bool flag = true); + + /** + * Toggle this button + */ + void toggle(); + + /** + * Turn this button into a toggle button or disable the toggle + * aspects of it. This does not toggle the button itself. + * Use toggle() for that. + * + * @param toggle true or false + */ + void setToggle(bool toggle = true); + + /** + * Return a pointer to this button's popup menu (if it exists) + */ + QPopupMenu *popup(); + + /** + * Returns the button's id. + * @since 3.2 + */ + int id() const; + + /** + * Give this button a popup menu. There will not be a delay when + * you press the button. Use setDelayedPopup if you want that + * behavior. + * + * @param p The new popup menu + * @param unused Has no effect - ignore it. + */ + void setPopup (QPopupMenu *p, bool unused = false); + + /** + * Gives this button a delayed popup menu. + * + * This function allows you to add a delayed popup menu to the button. + * The popup menu is then only displayed when the button is pressed and + * held down for about half a second. + * + * @param p the new popup menu + * @param unused Has no effect - ignore it. + */ + void setDelayedPopup(QPopupMenu *p, bool unused = false); + + /** + * Turn this button into a radio button + * + * @param f true or false + */ + void setRadio(bool f = true); + + /** + * Toolbar buttons naturally will assume the global styles + * concerning icons, icons sizes, etc. You can use this function to + * explicitly turn this off, if you like. + * + * @param no_style Will disable styles if true + */ + void setNoStyle(bool no_style = true); + +signals: + void clicked(int); + void doubleClicked(int); + void pressed(int); + void released(int); + void toggled(int); + void highlighted(int, bool); + +public slots: + /** + * This slot should be called whenever the toolbar mode has + * potentially changed. This includes such events as text changing, + * orientation changing, etc. + */ + void modeChange(); + virtual void setTextLabel(const QString&, bool tipToo); + +protected: + void paletteChange(const QPalette &); + void leaveEvent(QEvent *e); + void enterEvent(QEvent *e); + void drawButton(QPainter *p); + bool eventFilter (QObject *o, QEvent *e); + void showMenu(); + QSize sizeHint() const; + QSize minimumSizeHint() const; + QSize minimumSize() const; + + /// @since 3.1 + bool isRaised() const; + /// @since 3.1 + bool isActive() const; + /// @since 3.1 + int iconTextMode() const; + +protected slots: + void slotClicked(); + void slotPressed(); + void slotReleased(); + void slotToggled(); + void slotDelayTimeout(); + +protected: + virtual void virtual_hook( int id, void* data ); +private: + KToolBarButtonPrivate *d; +}; + +/** +* List of KToolBarButton objects. +* @internal +* @version $Id: ktoolbarbutton.h,v 1.34 2003/09/09 12:40:58 bhards Exp $ +*/ +class KToolBarButtonList : public QIntDict +{ +public: + KToolBarButtonList(); + ~KToolBarButtonList() {} +}; + +#endif diff --git a/extra/kde320/kurifilter.h b/extra/kde320/kurifilter.h new file mode 100644 index 0000000..8c5f5fe --- /dev/null +++ b/extra/kde320/kurifilter.h @@ -0,0 +1,644 @@ +/* + * This file is part of the KDE libraries + * Copyright (C) 2000-2001,2003 Dawit Alemayehu + * + * Original author + * Copyright (C) 2000 Yves Arrouye + * + * + * This library 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. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public License + * along with this library; see the file COPYING.LIB. If not, write to + * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA. + **/ + +#ifndef __kurifilter_h__ +#define __kurifilter_h__ "$Id: kurifilter.h,v 1.41 2003/08/30 08:56:21 raabe Exp $" + +#include +#include +#include + +#include +#include + +class KURIFilterPrivate; +class KURIFilterDataPrivate; + +class KCModule; + +/** +* A basic message object used for exchanging filtering +* information between the filter plugins and the application +* requesting the filtering service. +* +* Use this object if you require a more detailed information +* about the URI you want to filter. Any application can create +* an instance of this class and send it to KURIFilter to +* have the plugins fill out all possible information about the +* URI. +* +* \b Example +* +* \code +* QString text = "kde.org"; +* KURIFilterData d = text; +* bool filtered = KURIFilter::self()->filter( d ); +* cout << "URL: " << text.latin1() << endl +* << "Filtered URL: " << d.uri().url().latin1() << endl +* << "URI Type: " << d.uriType() << endl +* << "Was Filtered: " << filtered << endl; +* \endcode +* +* The above code should yield the following output: +* \code +* URI: kde.org +* Filtered URI: http://kde.org +* URI Type: 0 <== means NET_PROTOCOL +* Was Filtered: 1 <== means the URL was successfully filtered +* \endcode +* +* @short A message object for exchanging filtering URI info. +* @author Dawit Alemayehu +*/ + +class KURIFilterData +{ +friend class KURIFilterPlugin; + +public: + /** + * Describes the type of the URI that was filtered. + * Here is a brief description of the types: + * + * @li NET_PROTOCOL - Any network protocol: http, ftp, nttp, pop3, etc... + * @li LOCAL_FILE - A local file whose executable flag is not set + * @li LOCAL_DIR - A local directory + * @li EXECUTABLE - A local file whose executable flag is set + * @li HELP - A man or info page + * @li SHELL - A shell executable (ex: echo "Test..." >> ~/testfile) + * @li BLOCKED - A URI that should be blocked/filtered (ex: ad filtering) + * @li ERROR - An incorrect URI (ex: "~johndoe" when user johndoe + * does not exist in that system ) + * @li UNKNOWN - A URI that is not identified. Default value when + * a KURIFilterData is first created. + */ + enum URITypes { NET_PROTOCOL=0, LOCAL_FILE, LOCAL_DIR, EXECUTABLE, HELP, SHELL, BLOCKED, ERROR, UNKNOWN }; + + /** + * Default constructor. + * + * Creates a URIFilterData object. + */ + KURIFilterData() { init(); } + + /** + * Creates a URIFilterData object from the given URL. + * + * @param url is the URL to be filtered. + */ + KURIFilterData( const KURL& url ) { init( url); } + + /** + * Creates a URIFilterData object from the given string. + * + * @param url is the string to be filtered. + */ + KURIFilterData( const QString& url ) { init( url ); } + + /** + * Copy constructor. + * + * Creates a URIFilterData object from another + * URI filter data object. + * + * @param data the uri filter data to be copied. + */ + KURIFilterData( const KURIFilterData& data); + + /** + * Destructor. + */ + ~KURIFilterData(); + + /** + * This method has been deprecated and will always return + * true. You should instead use the result from the + * KURIFilter::filterURI() calls. + * + * @deprecated + */ + KDE_DEPRECATED bool hasBeenFiltered() const { return true; } + + /** + * Returns the filtered or the original URL. + * + * This function returns the filtered url if one + * of the plugins successfully filtered the original + * URL. Otherwise, it returns the original URL. + * See hasBeenFiltered() and + * + * @return the filtered or original url. + */ + KURL uri() const { return m_pURI; } + + /** + * Returns an error message. + * + * This functions returns the error message set + * by the plugin whenever the uri type is set to + * KURIFilterData::ERROR. Otherwise, it returns + * a QString::null. + * + * @return the error message or a NULL when there is none. + */ + QString errorMsg() const { return m_strErrMsg; } + + /** + * Returns the URI type. + * + * This method always returns KURIFilterData::UNKNOWN + * if the given URL was not filtered. + * @return the type of the URI + */ + URITypes uriType() const { return m_iType; } + + /** + * Sets the URL to be filtered. + * + * Use this function to set the string to be + * filtered when you construct an empty filter + * object. + * + * @param url the string to be filtered. + */ + void setData( const QString& url ) { init( url ); } + + /** + * Same as above except the argument is a URL. + * + * Use this function to set the string to be + * filtered when you construct an empty filter + * object. + * + * @param url the URL to be filtered. + */ + void setData( const KURL& url ) { init( url ); } + + /** + * Sets the absolute path to be used whenever the supplied + * data is a relative local URL. + * + * NOTE: This function should only be used for local resources, + * i.e. the "file:/" protocol. It is useful for specifying the + * absolute path in cases where the actual URL might be relative. + * meta object. If deriving the path from a KURL, make sure you + * set the argument for this function to the result of calling + * path () instead of url (). + * + * @param abs_path the abolute path to the local resource. + * @return true if absolute path is successfully set. Otherwise, false. + */ + bool setAbsolutePath( const QString& abs_path ); + + /** + * Returns the absolute path if one has already been set. + * @return the absolute path, or QString::null + * @see hasAbsolutePath() + */ + QString absolutePath() const; + + /** + * Checks whether the supplied data had an absolute path. + * @return true if the supplied data has an absolute path + * @see absolutePath() + */ + bool hasAbsolutePath() const; + + /** + * Returns the command line options and arguments for a + * local resource when present. + * + * @return options and arguments when present, otherwise QString::null + */ + QString argsAndOptions() const; + + /** + * Checks whether the current data is a local resource with + * command line options and arguments. + * @return true if the current data has command line options and arguments + */ + bool hasArgsAndOptions() const; + + /** + * Returns the name of the icon that matches + * the current filtered URL. + * + * NOTE that this function will return a NULL + * string by default and when no associated icon + * is found. + * + * @return the name of the icon associated with the resource, + * or QString::null if not found + */ + QString iconName(); + + /** + * Check whether the provided uri is executable or not. + * + * Setting this to false ensures that typing the name of + * an executable does not start that application. This is + * useful in the location bar of a browser. The default + * value is true. + * + * @since 3.2 + */ + void setCheckForExecutables (bool check); + + /** + * @return true if the filters should attempt to check whether the + * supplied uri is an executable. False otherwise. + * + * @since 3.2 + */ + bool checkForExecutables() const { return m_bCheckForExecutables; } + + /** + * @return the string as typed by the user, before any URL processing is done + * @since 3.2 + */ + QString typedString() const; + + /** + * Overloaded assigenment operator. + * + * This function allows you to easily assign a KURL + * to a KURIFilterData object. + * + * @return an instance of a KURIFilterData object. + */ + KURIFilterData& operator=( const KURL& url ) { init( url ); return *this; } + + /** + * Overloaded assigenment operator. + * + * This function allows you to easily assign a QString + * to a KURIFilterData object. + * + * @return an instance of a KURIFilterData object. + */ + KURIFilterData& operator=( const QString& url ) { init( url ); return *this; } + +protected: + + /** + * Initializes the KURIFilterData on construction. + * @param url the URL to initialize the object with + */ + void init( const KURL& url); + + /** + * Initializes the KURIFilterData on construction. + * @param url the URL to initialize the object with + */ + void init( const QString& url = QString::null ); + +private: + bool m_bCheckForExecutables; + bool m_bChanged; + + QString m_strErrMsg; + QString m_strIconName; + + KURL m_pURI; + URITypes m_iType; + KURIFilterDataPrivate *d; +}; + + +/** + * Base class for URI filter plugins. + * + * This class applies a single filter to a URI. All plugins designed + * to provide URI filtering service should inherit from this abstract + * class and provide a concrete implementation. + * + * All inheriting classes need to implement the pure virtual function + * filterURI. + * + * @short Abstract class for URI filter plugins. + */ +class KURIFilterPlugin : public QObject +{ + Q_OBJECT + +public: + + /** + * Constructs a filter plugin with a given name and + * priority. + * + * @param parent the parent object, or 0 for no parent + * @param name the name of the plugin, or 0 for no name + * @param pri the priority of the plugin. + */ + KURIFilterPlugin( QObject *parent = 0, const char *name = 0, double pri = 1.0 ); + + /** + * Returns the filter's name. + * + * @return A string naming the filter. + */ + virtual QString name() const { return m_strName; } + + /** + * Returns the filter's priority. + * + * Each filter has an assigned priority, a float from 0 to 1. Filters + * with the lowest priority are first given a chance to filter a URI. + * + * @return The priority of the filter. + */ + virtual double priority() const { return m_dblPriority; } + + /** + * Filters a URI. + * + * @param data the URI data to be filtered. + * @return A boolean indicating whether the URI has been changed. + */ + virtual bool filterURI( KURIFilterData& data ) const = 0; + + /** + * Creates a configuration module for the filter. + * + * It is the responsibility of the caller to delete the module + * once it is not needed anymore. + * + * @return A configuration module, 0 if the filter isn't configurable. + */ + virtual KCModule *configModule( QWidget*, const char* ) const { return 0; } + + /** + * Returns the name of the configuration module for the filter. + * + * @return the name of a configuration module or QString::null if none. + */ + virtual QString configName() const { return name(); } + +protected: + + /** + * Sets the the URL in @p data to @p uri. + */ + void setFilteredURI ( KURIFilterData& data, const KURL& uri ) const; + + /** + * Sets the error message in @p data to @p errormsg. + */ + void setErrorMsg ( KURIFilterData& data, const QString& errmsg ) const { + data.m_strErrMsg = errmsg; + } + + /** + * Sets the URI type in @p data to @p type. + */ + void setURIType ( KURIFilterData& data, KURIFilterData::URITypes type) const { + data.m_iType = type; + data.m_bChanged = true; + } + + /** + * Sets the arguments and options string in @p data + * to @p args if any were found during filterting. + */ + void setArguments( KURIFilterData& data, const QString& args ) const; + + QString m_strName; + double m_dblPriority; + +protected: + virtual void virtual_hook( int id, void* data ); +private: + class KURIFilterPluginPrivate *d; +}; + + +/** + * A list of filter plugins. + */ +class KURIFilterPluginList : public QPtrList +{ +public: + virtual int compareItems(Item a, Item b) + { + double diff = ((KURIFilterPlugin *) a)->priority() - ((KURIFilterPlugin *) b)->priority(); + return diff < 0 ? -1 : (diff > 0 ? 1 : 0); + } + +private: + KURIFilterPrivate *d; + +}; + +/** + * Manages the filtering of URIs. + * + * The intention of this plugin class is to allow people to extend the + * functionality of KURL without modifying it directly. This way KURL will + * remain a generic parser capable of parsing any generic URL that adheres + * to specifications. + * + * The KURIFilter class applies a number of filters to a URI and returns the + * filtered version whenever possible. The filters are implemented using + * plugins to provide easy extensibility of the filtering mechanism. New + * filters can be added in the future by simply inheriting from + * KURIFilterPlugin and implementing the KURIFilterPlugin::filterURI + * method. + * + * Use of this plugin-manager class is straight forward. Since it is a + * singleton object, all you have to do is obtain an instance by doing + * @p KURIFilter::self() and use any of the public member functions to + * preform the filtering. + * + * \b Example + * + * To simply filter a given string: + * + * \code + * bool filtered = KURIFilter::self()->filterURI( "kde.org" ); + * \endcode + * + * You can alternatively use a KURL: + * + * \code + * KURL url = "kde.org"; + * bool filtered = KURIFilter::self()->filterURI( url ); + * \endcode + * + * If you have a constant string or a constant URL, simply invoke the + * corresponding function to obtain the filtered string or URL instead + * of a boolean flag: + * + * \code + * QString u = KURIFilter::self()->filteredURI( "kde.org" ); + * \endcode + * + * You can also restrict the filter(s) to be used by supplying + * the name of the filter(s) to use. By defualt all available + * filters will be used. To use specific filters, add the names + * of the filters you want to use to a QStringList and invoke + * the appropriate filtering function. The examples below show + * the use of specific filters. The first one uses a single + * filter called kshorturifilter while the second example uses + * multiple filters: + * + * \code + * QString text = "kde.org"; + * bool filtered = KURIFilter::self()->filterURI( text, "kshorturifilter" ); + * \endcode + * + * \code + * QStringList list; + * list << "kshorturifilter" << "localdomainfilter"; + * bool filtered = KURIFilter::self()->filterURI( text, list ); + * \endcode + * + * KURIFilter also allows richer data exchange through a simple + * meta-object called @p KURIFilterData. Using this meta-object + * you can find out more information about the URL you want to + * filter. See KURIFilterData for examples and details. + * + * @short Filters a given URL into its proper format whenever possible. + */ + +class KURIFilter +{ +public: + /** + * Destructor + */ + ~KURIFilter (); + + /** + * Returns an instance of KURIFilter. + */ + static KURIFilter* self(); + + /** + * Filters the URI given by the object URIFilterData. + * + * The given URL is filtered based on the specified list of filters. + * If the list is empty all available filters would be used. + * + * @param data object that contains the URI to be filtered. + * @param filters specify the list of filters to be used. + * + * @return a boolean indicating whether the URI has been changed + */ + bool filterURI( KURIFilterData& data, const QStringList& filters = QStringList() ); + + /** + * Filters the URI given by the URL. + * + * The given URL is filtered based on the specified list of filters. + * If the list is empty all available filters would be used. + * + * @param uri the URI to filter. + * @param filters specify the list of filters to be used. + * + * @return a boolean indicating whether the URI has been changed + */ + bool filterURI( KURL &uri, const QStringList& filters = QStringList() ); + + /** + * Filters a string representing a URI. + * + * The given URL is filtered based on the specified list of filters. + * If the list is empty all available filters would be used. + * + * @param uri The URI to filter. + * @param filters specify the list of filters to be used. + * + * @return a boolean indicating whether the URI has been changed + */ + bool filterURI( QString &uri, const QStringList& filters = QStringList() ); + + /** + * Returns the filtered URI. + * + * The given URL is filtered based on the specified list of filters. + * If the list is empty all available filters would be used. + * + * @param uri The URI to filter. + * @param filters specify the list of filters to be used. + * + * @return the filtered URI or null if it cannot be filtered + */ + KURL filteredURI( const KURL &uri, const QStringList& filters = QStringList() ); + + /** + * Return a filtered string representation of a URI. + * + * The given URL is filtered based on the specified list of filters. + * If the list is empty all available filters would be used. + * + * @param uri the URI to filter. + * @param filters specify the list of filters to be used. + * + * @return the filtered URI or null if it cannot be filtered + */ + QString filteredURI( const QString &uri, const QStringList& filters = QStringList() ); + + /** + * Return an iterator to iterate over all loaded + * plugins. + * + * @return a plugin iterator. + */ + QPtrListIterator pluginsIterator() const; + + /** + * Return a list of the names of all loaded plugins. + * + * @return a QStringList of plugin names + * @since 3.1 + */ + QStringList pluginNames() const; + +protected: + + /** + * A protected constructor. + * + * This constructor creates a KURIFilter and + * initializes all plugins it can find by invoking + * loadPlugins. + */ + KURIFilter(); + + /** + * Loads all allowed plugins. + * + * This function loads all filters that have not + * been disbled. + */ + void loadPlugins(); + +private: + static KURIFilter *m_self; + KURIFilterPluginList m_lstPlugins; + KURIFilterPrivate *d; +}; + +#endif diff --git a/extra/kde320/selectdialog.h b/extra/kde320/selectdialog.h new file mode 100644 index 0000000..b5e962c --- /dev/null +++ b/extra/kde320/selectdialog.h @@ -0,0 +1,87 @@ +/* + This file is part of libkresources. + + Copyright (c) 2002 Tobias Koenig + Copyright (c) 2002 Jan-Pascal van Best + Copyright (c) 2003 Cornelius Schumacher + + This library 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. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef KRESOURCES_SELECTDIALOG_H +#define KRESOURCES_SELECTDIALOG_H + +#include +#include +#include + +#include + +class KListBox; + +namespace KRES { + +class Resource; + +/** + * Dialog for selecting a resource. + * + * Example: + * + * \code + * + * QPtrList list = ... // can be retrived from KRES::Manager (e.g. KABC::AddressBook) + * + * KABC::Resource *res = KABC::SelectDialog::getResource( list, parentWdg ); + * if ( !res ) { + * // no resource selected + * } else { + * // do something with resource + * } + * \endcode + */ +class SelectDialog +{ + public: + /** + * Constructor. + * @param list The list of available resources + * @param parent The parent widget + * @param name The name of the dialog + */ + SelectDialog( QPtrList list, QWidget *parent = 0, + const char *name = 0); + + /** + * Returns selected resource. + */ + Resource *resource(); + + /** + * Opens a dialog showing the available resources and returns the resource the + * user has selected. Returns 0, if the dialog was canceled. + */ + static Resource *getResource( QPtrList list, QWidget *parent = 0 ); + + private: + KListBox *mResourceId; + + QMap mResourceMap; +}; + +} + +#endif diff --git a/extra/kde321/configwidget.h b/extra/kde321/configwidget.h new file mode 100644 index 0000000..643df88 --- /dev/null +++ b/extra/kde321/configwidget.h @@ -0,0 +1,58 @@ +/* + This file is part of libkresources. + Copyright (c) 2002 Tobias Koenig + Copyright (c) 2002 Jan-Pascal van Best + + This library 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. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef KRESOURCES_CONFIGWIDGET_H +#define KRESOURCES_CONFIGWIDGET_H + +#include "resource.h" + +#include + +#include + +namespace KRES { + +class ConfigWidget : public QWidget +{ + Q_OBJECT + public: + ConfigWidget( QWidget *parent = 0, const char *name = 0 ); + + /** + Sets the widget to 'edit' mode. Reimplement this method if you are + interested in the mode change (to disable some GUI element for + example). By default the widget is in 'create new' mode. + */ + virtual void setInEditMode( bool value ); + + public slots: + virtual void loadSettings( Resource *resource ) = 0; + virtual void saveSettings( Resource *resource ) = 0; + + signals: + void setReadOnly( bool value ); + + protected: + Resource *mResource; +}; + +} +#endif diff --git a/extra/kde321/kaccelaction.h b/extra/kde321/kaccelaction.h new file mode 100644 index 0000000..9967e4f --- /dev/null +++ b/extra/kde321/kaccelaction.h @@ -0,0 +1,564 @@ +/* This file is part of the KDE libraries + Copyright (C) 2001,2002 Ellis Whitehead + + This library 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. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef _KACCELACTION_H +#define _KACCELACTION_H + +#include +#include +#include +#include + +#include + +class KAccelBase; + +class QObject; +class KConfig; +class KConfigBase; + +/** + * @internal + * A KAccelAction prepresents an action that can be executed using + * an accelerator key. Each KAccelAction has a name, a label, a + * "What's this" string and a KShortcut. The user can configure and + * enable/disable them using KKeyDialog. + * + * \code + * 1) KAccelAction = "Run Command" + * Default3 = "Alt+F2" + * Default4 = "Meta+Enter;Alt+F2" + * 1) KShortcut = "Meta+Enter" + * 1) KKeySequence = "Meta+Enter" + * 1) KKey = "Meta+Enter" + * 1) Meta+Enter + * 2) Meta+Keypad_Enter + * 2) KShortcut = "Alt+F2" + * 1) KKeySequence = "Alt+F2" + * 1) Alt+F2 + * 2) KAccelAction = "Something" + * Default3 = "" + * Default4 = "" + * 1) KShortcut = "Meta+X,Asterisk" + * 1) KKeySequence = "Meta+X,Asterisk" + * 1) KKey = "Meta+X" + * 1) Meta+X + * 2) KKey = "Asterisk" + * 1) Shift+8 (English layout) + * 2) Keypad_Asterisk + * \endcode + * @short An accelerator action + * @see KAccel + * @see KGlobalAccel + * @see KKeyChooser + * @see KKeyDialog + */ +class KAccelAction +{ + public: + /** + * Creates an empty KAccelAction. + * @see clear() + */ + KAccelAction(); + + /** + * Copy constructor. + */ + KAccelAction( const KAccelAction& ); + + /** + * Creates a new KAccelAction. + * @param sName the name of the accelerator + * @param sLabel the label of the accelerator (i18n!) + * @param sWhatsThis the What's This text (18n!) + * @param cutDef3 the default shortcut for 3 modifier systems + * @param cutDef4 the default shortcut for 4 modifier systems + * @param pObjSlot the receiver of a signal when the key has been + * pressed + * @param psMethodSlot the slot to connect for key presses. Receives + * an int, as set by setID(), as only argument + * @param bConfigurable if true the user can configure the shortcut + * @param bEnabled true if the accelerator should be enabled + */ + KAccelAction( const QString& sName, const QString& sLabel, const QString& sWhatsThis, + const KShortcut& cutDef3, const KShortcut& cutDef4, + const QObject* pObjSlot, const char* psMethodSlot, + bool bConfigurable, bool bEnabled ); + ~KAccelAction(); + + /** + * Clears the accelerator. + */ + void clear(); + + /** + * Re-initialized the KAccelAction. + * @param sName the name of the accelerator + * @param sLabel the label of the accelerator (i18n!) + * @param sWhatsThis the What's This text (18n!) + * @param cutDef3 the default shortcut for 3 modifier systems + * @param cutDef4 the default shortcut for 4 modifier systems + * @param pObjSlot the receiver of a signal when the key has been + * pressed + * @param psMethodSlot the slot to connect for key presses. Receives + * an int, as set by setID(), as only argument + * @param bConfigurable if true the user can configure the shortcut + * @param bEnabled true if the accelerator should be enabled + * @return true if successful, false otherwise + */ + bool init( const QString& sName, const QString& sLabel, const QString& sWhatsThis, + const KShortcut& cutDef3, const KShortcut& cutDef4, + const QObject* pObjSlot, const char* psMethodSlot, + bool bConfigurable, bool bEnabled ); + + /** + * Copies this KAccelAction. + */ + KAccelAction& operator=( const KAccelAction& ); + + /** + * Returns the name of the accelerator action. + * @return the name of the accelerator action, can be null if not + * set + */ + const QString& name() const { return m_sName; } + + /** + * Returns the label of the accelerator action. + * @return the label of the accelerator action, can be null if + * not set + */ + const QString& label() const { return m_sLabel; } + + /** + * Returns the What's This text of the accelerator action. + * @return the What's This text of the accelerator action, can be + * null if not set + */ + const QString& whatsThis() const { return m_sWhatsThis; } + + /** + * The shortcut that is actually used (may be used configured). + * @return the shortcut of the KAccelAction, can be null if not set + * @see shortcutDefault() + */ + const KShortcut& shortcut() const { return m_cut; } + + /** + * The default shortcut for this system. + * @return the default shortcut on this system, can be null if not set + * @see shortcut() + * @see shortcutDefault3() + * @see shortcutDefault4() + */ + const KShortcut& shortcutDefault() const; + + /** + * The default shortcut for 3 modifier systems. + * @return the default shortcut for 3 modifier systems, can be null + * if not set + * @see shortcutDefault() + * @see shortcutDefault4() + * @see useFourModifierKeys() + */ + const KShortcut& shortcutDefault3() const { return m_cutDefault3; } + + /** + * The default shortcut for 4 modifier systems. + * @return the default shortcut for 4 modifier systems, can be null + * if not set + * @see shortcutDefault() + * @see shortcutDefault3() + * @see useFourModifierKeys() + */ + const KShortcut& shortcutDefault4() const { return m_cutDefault4; } + + /** + * Returns the receiver of signals. + * @return the receiver of signals (can be 0 if not set) + */ + const QObject* objSlotPtr() const { return m_pObjSlot; } + + /** + * Returns the slot for the signal. + * @return the slot for the signal + */ + const char* methodSlotPtr() const { return m_psMethodSlot; } + + /** + * Checks whether the user can configure the action. + * @return true if configurable, false otherwise + */ + bool isConfigurable() const { return m_bConfigurable; } + + /** + * Checks whether the action is enabled. + * @return true if enabled, false otherwise + */ + bool isEnabled() const { return m_bEnabled; } + + /** + * Sets the name of the accelerator action. + * @param name the new name + */ + void setName( const QString& name ); + + /** + * Sets the user-readable label of the accelerator action. + * @param label the new label (i18n!) + */ + void setLabel( const QString& label ); + + /** + * Sets the What's This text for the accelerator action. + * @param whatsThis the new What's This text (i18n!) + */ + void setWhatsThis( const QString& whatsThis ); + + /** + * Sets the new shortcut of the accelerator action. + * @param rgCuts the shortcut to set + * @return true if successful, false otherwise + */ + bool setShortcut( const KShortcut& rgCuts ); + + /** + * Sets the slot of the accelerator action. + * @param pObjSlot the receiver object of the signal + * @param psMethodSlot the slot for the signal + */ + void setSlot( const QObject* pObjSlot, const char* psMethodSlot ); + + /** + * Enables or disabled configuring the action. + * @param configurable true to enable configurability, false to disable + */ + void setConfigurable( bool configurable ); + + /** + * Enables or disabled the action. + * @param configurable true to enable the action, false to disable + */ + void setEnabled( bool enable ); + + /** + * Retrieves the id set using setID. + * @return the id of the accelerator action + */ + int getID() const { return m_nIDAccel; } + + /** + * Allows you to set an id that will be used as the action + * signal's argument. + * + * @param n the new id + * @see getID() + */ + void setID( int n ) { m_nIDAccel = n; } + + /** + * Checkes whether the action is connected (emits signals). + * @return true if connected, false otherwise + */ + bool isConnected() const; + + /** + * Sets a key sequence of the action's shortcut. + * @param i the position of the sequence + * @param keySeq the new new sequence + * @return true if successful, false otherwise + * @see KShortcut::setSeq() + */ + bool setKeySequence( uint i, const KKeySequence &keySeq ); + + /** + * Clears the action's shortcut. It will not contain any sequences after + * calling this method. + * @see KShortcut::clear() + */ + void clearShortcut(); + + /** + * Checks whether the action's shortcut contains the given key sequence. + * @param keySeq the key sequence to check + * @return true if the shortcut contains the given sequence + * @see KShortcut::contains() + */ + bool contains( const KKeySequence &keySeq ); + + /** + * Returns the string representation of the action's shortcut. + * @return the string representation of the action's shortcut. + * @see KShortcut::toString() + */ + QString toString() const; + + /** + * @internal + */ + QString toStringInternal() const; + + /** + * Returns true if four modifier keys will be used. + * @return true if four modifier keys will be used. + */ + static bool useFourModifierKeys(); + + /** + * Selects 3 or 4 modifier default shortcuts. + * @param use true to use 4 modifier shortcuts, false to use + * 3 modifier shortcuts + */ + static void useFourModifierKeys( bool use ); + + protected: + QString m_sName, + m_sLabel, + m_sWhatsThis; + KShortcut m_cut; + KShortcut m_cutDefault3, m_cutDefault4; + const QObject* m_pObjSlot; + const char* m_psMethodSlot; + bool m_bConfigurable, + m_bEnabled; + int m_nIDAccel; + uint m_nConnections; + + void incConnections(); + void decConnections(); + + private: + static int g_bUseFourModifierKeys; + class KAccelActionPrivate* d; + + friend class KAccelActions; + friend class KAccelBase; +}; + +//--------------------------------------------------------------------- +// KAccelActions +//--------------------------------------------------------------------- + +/** + * @internal + * This class represents a collection of KAccelAction objects. + * + * @short A collection of accelerator actions + * @see KAccelAction + */ +class KAccelActions +{ + public: + /** + * Creates a new, empty KAccelActions object. + */ + KAccelActions(); + + /** + * Copy constructor (deep copy). + */ + KAccelActions( const KAccelActions& ); + virtual ~KAccelActions(); + + /** + * Removes all items from this collection. + */ + void clear(); + + /** + * Initializes this object with the given actions. + * It will make a deep copy of all actions. + * @param actions the actions to copy + * @return true if successful, false otherwise + */ + bool init( const KAccelActions &actions ); + + /** + * Loads the actions from the given configuration file. + * + * @param config the configuration file to load from + * @param sGroup the group in the configuration file + * @return true if successful, false otherwise + */ + bool init( KConfigBase& config, const QString& sGroup ); + + /** + * Updates the shortcuts of all actions in this object + * with the shortcuts from the given object. + * @param shortcuts the collection that contains the new + * shortcuts + */ + void updateShortcuts( KAccelActions &shortcuts ); + + /** + * Retrieves the index of the action with the given name. + * @param sAction the action to search + * @return the index of the action, or -1 if not found + */ + int actionIndex( const QString& sAction ) const; + + /** + * Returns the action with the given @p index. + * @param index the index of an action. You must not + * use an index that is too high. + * @return the KAccelAction with the given index + * @see count() + */ + KAccelAction* actionPtr( uint index ); + + /** + * Returns the action with the given @p index. + * @param index the index of an action. You must not + * use an index that is too high. + * @return the KAccelAction with the given index + * @see count() + */ + const KAccelAction* actionPtr( uint index ) const; + + /** + * Returns the action with the given name. + * @param aAction the name of the action to search + * @return the KAccelAction with the given name, or 0 + * if not found + */ + KAccelAction* actionPtr( const QString& sAction ); + + /** + * Returns the action with the given name. + * @param aAction the name of the action to search + * @return the KAccelAction with the given name, or 0 + * if not found + */ + const KAccelAction* actionPtr( const QString& sAction ) const; + + /** + * Returns the action with the given key sequence. + * @param cut the sequence to search for + * @return the KAccelAction with the given sequence, or 0 + * if not found + */ + KAccelAction* actionPtr( KKeySequence cut ); + + /** + * Returns the action with the given @p index. + * @param index the index of an action. You must not + * use an index that is too high. + * @return the KAccelAction with the given index + * @see actionPtr() + * @see count() + */ + KAccelAction& operator []( uint index ); + + /** + * Returns the action with the given @p index. + * @param index the index of an action. You must not + * use an index that is too high. + * @return the KAccelAction with the given index + * @see actionPtr() + * @see count() + */ + const KAccelAction& operator []( uint index ) const; + + /** + * Inserts an action into the collection. + * @param sName the name of the accelerator + * @param sLabel the label of the accelerator (i18n!) + * @param sWhatsThis the What's This text (18n!) + * @param cutDef3 the default shortcut for 3 modifier systems + * @param cutDef4 the default shortcut for 4 modifier systems + * @param pObjSlot the receiver of a signal when the key has been + * pressed + * @param psMethodSlot the slot to connect for key presses. Receives + * an int, as set by setID(), as only argument + * @param bConfigurable if true the user can configure the shortcut + * @param bEnabled true if the accelerator should be enabled + * @return the new action + */ + KAccelAction* insert( const QString& sAction, const QString& sLabel, const QString& sWhatsThis, + const KShortcut& rgCutDefaults3, const KShortcut& rgCutDefaults4, + const QObject* pObjSlot = 0, const char* psMethodSlot = 0, + bool bConfigurable = true, bool bEnabled = true ); + + /** + * Inserts an action into the collection. + * @param sName the name of the accelerator + * @param sLabel the label of the accelerator (i18n!) + * @return the new action + */ + KAccelAction* insert( const QString& sName, const QString& sLabel ); + + /** + * Removes the given action. + * @param sAction the name of the action. + * @return true if successful, false otherwise + */ + bool remove( const QString& sAction ); + + /** + * Loads the actions from the given configuration file. + * + * @param sConfigGroup the group in the configuration file + * @param pConfig the configuration file to load from + * @return true if successful, false otherwise + */ + bool readActions( const QString& sConfigGroup = "Shortcuts", KConfigBase* pConfig = 0 ); + + /** + * Writes the actions to the given configuration file. + * + * @param sConfigGroup the group in the configuration file + * @param pConfig the configuration file to save to + * @param bWriteAll true to write all actions + * @param bGlobal true to write to the global configuration file + * @return true if successful, false otherwise + */ + bool writeActions( const QString& sConfigGroup = "Shortcuts", KConfigBase* pConfig = 0, + bool bWriteAll = false, bool bGlobal = false ) const; + + /** + * Emit a keycodeChanged signal. + */ + void emitKeycodeChanged(); + + /** + * Returns the number of actions in the collection. + * @return the number of actions + */ + uint count() const; + + protected: + KAccelBase* m_pKAccelBase; + KAccelAction** m_prgActions; + uint m_nSizeAllocated, m_nSize; + + void resize( uint ); + void insertPtr( KAccelAction* ); + + private: + class KAccelActionsPrivate* d; + + KAccelActions( KAccelBase* ); + void initPrivate( KAccelBase* ); + KAccelActions& operator =( KAccelActions& ); + + friend class KAccelBase; +}; + +#endif // _KACCELACTION_H diff --git a/extra/kde321/kaccelbase.h b/extra/kde321/kaccelbase.h new file mode 100644 index 0000000..3ddce3a --- /dev/null +++ b/extra/kde321/kaccelbase.h @@ -0,0 +1,230 @@ +/* This file is part of the KDE libraries + Copyright (C) 2001 Ellis Whitehead + + This library 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. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef _KACCELBASE_H +#define _KACCELBASE_H + +#include +#include +#include +#include +#include + +#include "kaccelaction.h" +#include "kkeyserver_x11.h" + +class QPopupMenu; +class QWidget; + +//---------------------------------------------------- + +/** + * @internal + * Handle keyboard accelerators. + * + * Allow an user to configure + * key bindings through application configuration files or through the + * KKeyChooser GUI. + * + * A KAccel contains a list of accelerator items. Each accelerator item + * consists of an action name and a keyboard code combined with modifiers + * (Shift, Ctrl and Alt.) + * + * For example, "Ctrl+P" could be a shortcut for printing a document. The key + * codes are listed in ckey.h. "Print" could be the action name for printing. + * The action name identifies the key binding in configuration files and the + * KKeyChooser GUI. + * + * When pressed, an accelerator key calls the slot to which it has been + * connected. Accelerator items can be connected so that a key will activate + * two different slots. + * + * A KAccel object handles key events sent to its parent widget and to all + * children of this parent widget. + * + * Key binding reconfiguration during run time can be prevented by specifying + * that an accelerator item is not configurable when it is inserted. A special + * group of non-configurable key bindings are known as the + * standard accelerators. + * + * The standard accelerators appear repeatedly in applications for + * standard document actions such as printing and saving. Convenience methods are + * available to insert and connect these accelerators which are configurable on + * a desktop-wide basis. + * + * It is possible for a user to choose to have no key associated with + * an action. + * + * The translated first argument for insertItem() is used only + * in the configuration dialog. + *\code + * KAccel *a = new KAccel( myWindow ); + * // Insert an action "Scroll Up" which is associated with the "Up" key: + * a->insertItem( i18n("Scroll Up"), "Scroll Up", "Up" ); + * // Insert an action "Scroll Down" which is not associated with any key: + * a->insertItem( i18n("Scroll Down"), "Scroll Down", 0); + * a->connectItem( "Scroll up", myWindow, SLOT( scrollUp() ) ); + * // a->insertStdItem( KStdAccel::Print ); //not necessary, since it + * // is done automatially with the + * // connect below! + * a->connectItem(KStdAccel::Print, myWindow, SLOT( printDoc() ) ); + * + * a->readSettings(); + *\endcode + * + * If a shortcut has a menu entry as well, you could insert them like + * this. The example is again the KStdAccel::Print from above. + * + * \code + * int id; + * id = popup->insertItem("&Print",this, SLOT(printDoc())); + * a->changeMenuAccel(popup, id, KStdAccel::Print ); + * \endcode + * + * If you want a somewhat "exotic" name for your standard print action, like + * id = popup->insertItem(i18n("Print &Document"),this, SLOT(printDoc())); + * it might be a good idea to insert the standard action before as + * a->insertStdItem( KStdAccel::Print, i18n("Print Document") ) + * as well, so that the user can easily find the corresponding function. + * + * This technique works for other actions as well. Your "scroll up" function + * in a menu could be done with + * + * \code + * id = popup->insertItem(i18n"Scroll &up",this, SLOT(scrollUp())); + * a->changeMenuAccel(popup, id, "Scroll Up" ); + * \endcode + * + * Please keep the order right: First insert all functions in the + * acceleratior, then call a -> readSettings() and @em then build your + * menu structure. + * + * @short Configurable key binding support. + * @version $Id: kaccelbase.h,v 1.26 2003/08/16 19:44:57 coolo Exp $ + */ + +class KAccelBase +{ + public: + enum Init { QT_KEYS = 0x00, NATIVE_KEYS = 0x01 }; + enum Signal { KEYCODE_CHANGED }; + + KAccelBase( int fInitCode ); + virtual ~KAccelBase(); + + uint actionCount() const; + KAccelActions& actions(); + bool isEnabled() const; + + KAccelAction* actionPtr( const QString& sAction ); + const KAccelAction* actionPtr( const QString& sAction ) const; + KAccelAction* actionPtr( const KKey& key ); + KAccelAction* actionPtr( const KKeyServer::Key& key ); + + const QString& configGroup() const { return m_sConfigGroup; } + void setConfigGroup( const QString& group ); + void setConfigGlobal( bool global ); + virtual void setEnabled( bool bEnabled ) = 0; + bool getAutoUpdate() { return m_bAutoUpdate; } + // return value of AutoUpdate flag before this call. + bool setAutoUpdate( bool bAuto ); + +// Procedures for manipulating Actions. + //void clearActions(); + + KAccelAction* insert( const QString& sName, const QString& sDesc ); + KAccelAction* insert( + const QString& sAction, const QString& sDesc, const QString& sHelp, + const KShortcut& rgCutDefaults3, const KShortcut& rgCutDefaults4, + const QObject* pObjSlot, const char* psMethodSlot, + bool bConfigurable = true, bool bEnabled = true ); + bool remove( const QString& sAction ); + bool setActionSlot( const QString& sAction, const QObject* pObjSlot, const char* psMethodSlot ); + + bool updateConnections(); + + bool setShortcut( const QString& sAction, const KShortcut& cut ); + +// Modify individual Action sub-items + bool setActionEnabled( const QString& sAction, bool bEnable ); + + /** + * Read all key associations from @p config, or (if @p config + * is zero) from the application's configuration file + * KGlobal::config(). + * + * The group in which the configuration is stored can be + * set with setConfigGroup(). + */ + void readSettings( KConfigBase* pConfig = 0 ); + + /** + * Write the current configurable associations to @p config, + * or (if @p config is zero) to the application's + * configuration file. + */ + void writeSettings( KConfigBase* pConfig = 0 ) const; + + QPopupMenu* createPopupMenu( QWidget* pParent, const KKeySequence& ); + + // Protected methods + protected: + void slotRemoveAction( KAccelAction* ); + + struct X; + void createKeyList( QValueVector& rgKeys ); + bool insertConnection( KAccelAction* ); + bool removeConnection( KAccelAction* ); + + virtual bool emitSignal( Signal ) = 0; + virtual bool connectKey( KAccelAction&, const KKeyServer::Key& ) = 0; + virtual bool connectKey( const KKeyServer::Key& ) = 0; + virtual bool disconnectKey( KAccelAction&, const KKeyServer::Key& ) = 0; + virtual bool disconnectKey( const KKeyServer::Key& ) = 0; + + protected: + struct ActionInfo + { + KAccelAction* pAction; + uint iSeq, iVariation; + //ActionInfo* pInfoNext; // nil if only one action uses this key. + + ActionInfo() { pAction = 0; iSeq = 0xffff; iVariation = 0xffff; } + ActionInfo( KAccelAction* _pAction, uint _iSeq, uint _iVariation ) + { pAction = _pAction; iSeq = _iSeq; iVariation = _iVariation; } + }; + typedef QMap KKeyToActionMap; + + KAccelActions m_rgActions; + KKeyToActionMap m_mapKeyToAction; + QValueList m_rgActionsNonUnique; + bool m_bNativeKeys; // Use native key codes instead of Qt codes + bool m_bEnabled; + bool m_bConfigIsGlobal; + QString m_sConfigGroup; + bool m_bAutoUpdate; + KAccelAction* mtemp_pActionRemoving; + + private: + KAccelBase& operator =( const KAccelBase& ); + + friend class KAccelActions; +}; + +#endif // _KACCELBASE_H diff --git a/extra/kde321/kicontheme.h b/extra/kde321/kicontheme.h new file mode 100644 index 0000000..a360a15 --- /dev/null +++ b/extra/kde321/kicontheme.h @@ -0,0 +1,334 @@ +/* vi: ts=8 sts=4 sw=4 + * + * $Id: kicontheme.h,v 1.29 2003/11/02 14:50:34 carewolf Exp $ + * + * This file is part of the KDE project, module kdecore. + * Copyright (C) 2000 Geert Jansen + * Antonio Larrosa + * + * This is free software; it comes under the GNU Library General + * Public License, version 2. See the file "COPYING.LIB" for the + * exact licensing terms. + * + */ + +#ifndef __KIconTheme_h_Included__ +#define __KIconTheme_h_Included__ + +#include +#include +#include + +class KConfig; +//class KIconThemeDir; + +class KIconThemePrivate; + +class KIconPrivate; + +/** + * One icon as found by KIconTheme. Also serves as a namespace containing + * icon related constants. + * @see KIconEffect + * @see KIconTheme + * @see KIconLoader + */ +class KIcon +{ +public: + KIcon() { size = 0; } + + /** + * Return true if this icon is valid, false otherwise. + */ + bool isValid() const { return size != 0; } + + /** + * Defines the context of the icon. + */ + enum Context { + Any, ///< Some icon with unknown purpose. + Action, ///< An action icon (e.g. 'save', 'print'). + Application, ///< An icon that represents an application. + Device, ///< An icon that represents a device. + FileSystem, ///< An icon that represents a file system. + MimeType ///< An icon that represents a mime type (or file type). + }; + + /** + * The type of the icon. + */ + enum Type { + Fixed, ///< Fixed-size icon. + Scalable, ///< Scalable-size icon. + Threshold ///< A threshold icon. + }; + + /** + * The type of a match. + */ + enum MatchType { + MatchExact, ///< Only try to find an exact match. + MatchBest ///< Take the best match if there is no exact match. + + }; + + // if you add a group here, make sure to change the config reading in + // KIconLoader too + /** + * The group an an icon. + */ + enum Group { NoGroup=-1, Desktop=0, FirstGroup=0, Toolbar, + MainToolbar, Small, Panel, LastGroup, User }; + + /** + * These are the standard sizes for icons. + */ + enum StdSizes { + /// small icons for menu entries + SizeSmall=16, + /// medium sized icons for the desktop + SizeMedium=32, + /// large sized icons for the panel + SizeLarge=48, + /// huge sized icons for iconviews + SizeHuge=64 + }; + + /** + * Defines the possible states of an icon. + */ + enum States { DefaultState, ///< The default state. + ActiveState, ///< Icon is active. + DisabledState, ///< Icon is disabled. + LastState ///< Last state (last constant) + }; + + /** + * This defines an overlay, a semi-transparent image that is + * projected onto the icon. They are used to show that the file + * represented by the icon is, for example, locked, zipped or hidden. + */ + enum Overlays { + LockOverlay=0x100, ///< a file is locked + ZipOverlay=0x200, ///< a file is zipped + LinkOverlay=0x400, ///< a fileis a link + HiddenOverlay=0x800, ///< a file is hidden + ShareOverlay=0x1000, ///< a file is shared + OverlayMask = ~0xff + }; + + /** + * The size in pixels of the icon. + */ + int size; + + /** + * The context of the icon. + */ + Context context; + + /** + * The type of the icon: Fixed, Scalable or Threshold. + **/ + Type type; + + /** + * The threshold in case type == Threshold + */ + int threshold; + + /** + * The full path of the icon. + */ + QString path; + +private: + KIconPrivate *d; +}; + +inline KIcon::Group& operator++(KIcon::Group& group) { group = static_cast(group+1); return group; } +inline KIcon::Group operator++(KIcon::Group& group,int) { KIcon::Group ret = group; ++group; return ret; } + +/** + * Class to use/access icon themes in KDE. This class is used by the + * iconloader but can be used by others too. + * @see KIconLoader + */ +class KIconTheme +{ +public: + /** + * Load an icon theme by name. + * @param name the name of the theme (e.g. "hicolor" or "keramik") + * @param appName the name of the application. Can be null. This argument + * allows applications to have themed application icons. + */ + KIconTheme(const QString& name, const QString& appName=QString::null); + ~KIconTheme(); + + /** + * The stylized name of the icon theme. + * @return the (human-readable) name of the theme + */ + QString name() const { return mName; } + + /** + * A description for the icon theme. + * @return a human-readable description of the theme, QString::null + * if there is none + */ + QString description() const { return mDesc; } + + /** + * Return the name of the "example" icon. This can be used to + * present the theme to the user. + * @return the name of the example icon, QString::null if there is none + */ + QString example() const; + + /** + * Return the name of the screenshot. + * @return the name of the screenshot, QString::null if there is none + */ + QString screenshot() const; + + /** + * Returns the name of this theme's link overlay. + * @return the name of the link overlay + */ + QString linkOverlay() const; + + /** + * Returns the name of this theme's zip overlay. + * @return the name of the zip overlay + */ + QString zipOverlay() const; + + /** + * Returns the name of this theme's lock overlay. + * @return the name of the lock overlay + */ + QString lockOverlay() const; + + /** + * Returns the name of this theme's share overlay. + * @return the name of the share overlay + * @since 3.1 + */ + QString shareOverlay () const; + + /** + * Returns the toplevel theme directory. + * @return the directory of the theme + */ + QString dir() const { return mDir; } + + /** + * The themes this icon theme falls back on. + * @return a list of icon themes that are used as fall-backs + */ + QStringList inherits() const { return mInherits; } + + /** + * The icon theme exists? + * @return true if the icon theme is valid + */ + bool isValid() const; + + /** + * The icon theme should be hidden to the user? + * @return true if the icon theme is hidden + * @since 3.1 + */ + bool isHidden() const; + + /** + * The minimum display depth required for this theme. This can either + * be 8 or 32. + * @return the minimum bpp (8 or 32) + */ + int depth() const { return mDepth; } + + /** + * The default size of this theme for a certain icon group. + * @param group The icon group. See KIcon::Group. + * @return The default size in pixels for the given icon group. + */ + int defaultSize(KIcon::Group group) const; + + /** + * Query available sizes for a group. + * @param group The icon group. See KIcon::Group. + * @return a list of available sized for the given group + */ + QValueList querySizes(KIcon::Group group) const; + + /** + * Query available icons for a size and context. + * @param size the size of the icons + * @param context the context of the icons + * @return the list of icon names + */ + QStringList queryIcons(int size, KIcon::Context context = KIcon::Any) const; + + /** + * Query available icons for a context and preferred size. + * @param size the size of the icons + * @param context the context of the icons + * @return the list of icon names + */ + QStringList queryIconsByContext(int size, KIcon::Context context = KIcon::Any) const; + + + /** + * Lookup an icon in the theme. + * @param name The name of the icon, without extension. + * @param size The desired size of the icon. + * @param match The matching mode. KIcon::MatchExact returns an icon + * only if matches exactly. KIcon::MatchBest returns the best matching + * icon. + * @return A KIcon class that describes the icon. If an icon is found, + * @see KIcon::isValid will return true, and false otherwise. + */ + KIcon iconPath(const QString& name, int size, KIcon::MatchType match) const; + + /** + * List all icon themes installed on the system, global and local. + * @return the list of all icon themes + */ + static QStringList list(); + + /** + * Returns the current icon theme. + * @return the name of the current theme + */ + static QString current(); + + /** + * Reconfigure the theme. + */ + static void reconfigure(); + + /** + * Returns the default icon theme. + * @return the name of the default theme name + * @since 3.1 + */ + static QString defaultThemeName(); + +private: + int mDefSize[8]; + QValueList mSizes[8]; + + int mDepth; + QString mDir, mName, mDesc; + QStringList mInherits; +// QPtrList mDirs; + KIconThemePrivate *d; + + static QString *_theme; + static QStringList *_theme_list; +}; + +#endif diff --git a/extra/kde321/kkeyserver_x11.h b/extra/kde321/kkeyserver_x11.h new file mode 100644 index 0000000..cf1b360 --- /dev/null +++ b/extra/kde321/kkeyserver_x11.h @@ -0,0 +1,433 @@ +#ifndef _KKEYSERVER_X11_H +#define _KKEYSERVER_X11_H + +#include "kshortcut.h" +#include "kkeynative.h" + +/** + * A collection of functions for the conversion of key presses and + * their modifiers from the window system (X11) specific format + * to the generic format and vice-versa. + */ +namespace KKeyServer +{ + /** + * Supplement enum KKey::ModFlag + * @since 3.1 + */ + enum ExtraModFlag { MODE_SWITCH = 0x2000 }; + + /** + * Represents a key symbol. + * @see KKey + * @see KKeyServer + */ + struct Sym + { + public: + /// the actual value of the symbol + uint m_sym; + + /// Creates a null symbol. + Sym() + { m_sym = 0; } + /** + * Creates asymbol with the given value. + * @param sym the value + */ + Sym( uint sym ) + { m_sym = sym; } + /** + * Creates a symbol from the given string description. + * @param s the description of the symbol + * @see toString() + */ + Sym( const QString& s ) + { init( s ); } + + /** + * Initializes the symbol with the given Qt key code. + * @param keyQt the qt key code + * @return true if successful, false otherwise + * @see Qt::Key + */ + bool initQt( int keyQt ); + + /** + * Initializes the key with the given string description. + * @param s the string description + * @return true if successful, false otherwise + * @see toString() + */ + bool init( const QString &s ); + + /** + * Returns the qt key code of the symbol. + * @return the qt key code + */ + int qt() const; + + /** + * @internal + */ + QString toStringInternal() const; + + /** + * Returns the string representation of the symbol. + * @return the string representation of the symbol + */ + QString toString() const; + + /** + * Returns the mods that are required for this symbol as + * ORed KKey::ModFlag's. For example, Break requires a + * Ctrl to be valid. + * @return the required KKey::ModFlag's + * @see KKey::ModFlag + */ + uint getModsRequired() const; + + /** + * TODO: please find out what this method does and document it + */ + uint getSymVariation() const; + + /** + * Casts the symbol to its integer representation. + */ + operator uint() const { return m_sym; } + + /** + * Overloaded operator to convert ints to Sym. + */ + Sym& operator =( uint sym ) { m_sym = sym; return *this; } + + private: + QString toString( bool bUserSpace ) const; + + static void capitalizeKeyname( QString& ); + }; + + /** + * Represents a key press. + * @see KKey + */ + struct Key + { + /// Code for native Keys in Qt + enum { CODE_FOR_QT = 256 }; + + /// The code of the key + uint m_code; + + /// The modifiers of the key + uint m_mod; + + /// The symbol of the key + uint m_sym; + + /** + * Initializes the key with a KKey. + * @param key the key to get the data from + * @param bQt true to take the Qt keycode, false + * for the native key code + * @see Qt::Key + * @see KKeyNative + */ + bool init( const KKey& key, bool bQt ); + + /** + * Checks whether the key code is a native code. + * @return true if native code of the window system, + * false if it is a Qt keycode + * @see Qt::Key + * @see KKeyNative + */ + bool isNative() const { return m_code != CODE_FOR_QT; } + + /** + * Returns the code of the key. + * @return the code of the key + */ + uint code() const { return m_code; } + + /** + * Returns the modifiers of the key. + * @return the modifiers of the key + */ + uint mod() const { return m_mod; } + + /** + * Returns the symbol of the key. + * @return the symbol of the key + */ + uint sym() const { return m_sym; } + + /** + * Returns the qt key code. + * @return the qt key code + */ + int keyCodeQt() const { return (int) m_sym; } + + /** + * Sets the qt key code. + * @param keyQt the qt key code + */ + void setKeycodeQt( int keyQt ) + { m_code = CODE_FOR_QT; m_sym = keyQt; } + + /** + * Initializes this key with a KKeyNative. + * @return this key + */ + Key& operator =( const KKeyNative& key ); + + /** + * Compares this key with the given Key object. Returns a + * negative number if the given Key is larger, 0 if they + * are equal and a positive number this Key is larger. The + * returned value is the difference between the symbol, modifier + * or code, whatever is non-zero first. + * + * @param key the key to compare with this key + * @return a negative number if the given Key is larger, 0 if + * they are equal and a positive number this Key is larger + */ + int compare( const Key& key ) const; + + /** + * Compares the symbol, modifiers and code of both keys. + * @see compare() + */ + bool operator ==( const Key& b ) const + { return compare( b ) == 0; } + + /** + * Compares the symbol, modifiers and code of both keys. + * @see compare() + */ + bool operator <( const Key& b ) const + { return compare( b ) < 0; } + + /** + * Converts this Key to a KKey. + * @return the KKey + */ + KKey key() const; + }; + + /** + * TODO: please document this class + */ + struct Variations + { + enum { MAX_VARIATIONS = 4 }; + + Key m_rgkey[MAX_VARIATIONS]; + uint m_nVariations; + + Variations() { m_nVariations = 0; } + + void init( const KKey&, bool bQt ); + + uint count() const { return m_nVariations; } + const Key& key( uint i ) const { return m_rgkey[i]; } + }; + + /// TODO: please document + bool initializeMods(); + + /** + * Returns the equivalent X modifier mask of the given modifier flag. + * @param modFlag the generic flags to check + * @return the window system specific flags + */ + uint modX( KKey::ModFlag modFlag ); + + /** + * Returns true if the current keyboard layout supports the Win key. + * Specifically, whether the Super or Meta keys are assigned to an X modifier. + * @return true if the keyboard has a Win key + * @see modXWin() + */ + bool keyboardHasWinKey(); + + /** + * Returns the X11 Shift modifier mask/flag. + * @return the X11 Shift modifier mask/flag. + * @see accelModMaskX() + */ + uint modXShift(); + + /** + * Returns the X11 Lock modifier mask/flag. + * @return the X11 Lock modifier mask/flag. + * @see accelModMaskX() + */ + uint modXLock(); + + /** + * Returns the X11 Ctrl modifier mask/flag. + * @return the X11 Ctrl modifier mask/flag. + * @see accelModMaskX() + */ + uint modXCtrl(); + + /** + * Returns the X11 Alt (Mod1) modifier mask/flag. + * @return the X11 Alt (Mod1) modifier mask/flag. + * @see accelModMaskX() + */ + uint modXAlt(); + + /** + * Returns the X11 NumLock modifier mask/flag. + * @return the X11 NumLock modifier mask/flag. + * @see accelModMaskX() + */ + uint modXNumLock(); + + /** + * Returns the X11 Win (Mod3) modifier mask/flag. + * @return the X11 Win (Mod3) modifier mask/flag. + * @see keyboardHasWinKey() + * @see accelModMaskX() + */ + uint modXWin(); + + /** + * Returns the X11 ScrollLock modifier mask/flag. + * @return the X11 ScrollLock modifier mask/flag. + * @see accelModMaskX() + */ + uint modXScrollLock(); + + /** + * Returns bitwise OR'ed mask containing Shift, Ctrl, Alt, and + * Win (if available). + * @see modXShift() + * @see modXLock() + * @see modXCtrl() + * @see modXAlt() + * @see modXNumLock() + * @see modXWin() + * @see modXScrollLock() + */ + uint accelModMaskX(); + + /** + * Extracts the symbol from the given Qt key and + * converts it to a symbol. + * @param keyQt the qt key code + * @param sym if successful, the symbol will be written here + * @return true if successful, false otherwise + * @see Qt::Key + * @see Sym + */ + bool keyQtToSym( int keyQt, uint& sym ); + + /** + * Extracts the modifiers from the given Qt key and + * converts them in a mask of ORed KKey::ModFlag modifiers. + * @param keyQt the qt key code + * @param mod if successful, the modifiers will be written here + * @return true if successful, false otherwise + * @see Qt::Key + */ + bool keyQtToMod( int keyQt, uint& mod ); + + /** + * Converts the given symbol to a Qt key code. + * @param sym the symbol + * @param keyQt if successful, the qt key code will be written here + * @return true if successful, false otherwise + * @see Qt::Key + * @see Sym + */ + bool symToKeyQt( uint sym, int& keyQt ); + + /** + * Converts the mask of ORed KKey::ModFlag modifiers to + * a mask of ORed Qt key code modifiers. + * @param mod the mask of KKey::ModFlag modifiers + * @param modQt the mask of Qt key code modifiers will be written here, + * if successful + * @return true if successful, false otherwise + * @see Qt::Key + * @see KKey + */ + bool modToModQt( uint mod, int& modQt ); + + /** + * Converts the mask of ORed KKey::ModFlag modifiers to + * a mask of ORed X11 modifiers. + * @param mod the mask of KKey::ModFlag modifiers + * @param modX the mask of X11 modifiers will be written here, + * if successful + * @return true if successful, false otherwise + * @see KKey + */ + bool modToModX( uint mod, uint& modX ); + + /** + * Converts the mask of ORed X11 modifiers to + * a mask of ORed Qt key code modifiers. + * @param modX the mask of X11 modifiers + * @param modQt the mask of Qt key code modifiers will be written here + * if successful + * @return true if successful, false otherwise + * @see Qt::Key + */ + bool modXToModQt( uint modX, int& modQt ); + + /** + * Converts the mask of ORed X11 modifiers to + * a mask of ORed KKey::ModFlag modifiers. + * @param modX the mask of X11 modifiers + * @param mod the mask of KKey::ModFlag modifiers will be written here, + * if successful + * @return true if successful, false otherwise + * @see KKey + */ + bool modXToMod( uint modX, uint& mod ); + + /** + * Converts a X11 key code and a mask of ORed X11 modifiers + * into a X11 symbol. + * converts it to a symbol. + * @param codeX the X11 key code + * @param modX the mask of ORed X11 modifiers + * @param symX if successful, the X11 symbol will be written here + * @return true if successful, false otherwise + * @see Qt::Key + * @see Sym + */ + bool codeXToSym( uchar codeX, uint modX, uint& symX ); + + /** + * @internal + */ + QString modToStringInternal( uint mod ); + + /** + * Converts the mask of ORed KKey::ModFlag modifiers to a + * user-readable string. + * @param mod the mask of ORed KKey::ModFlag modifiers + * @return the user-readable string + */ + QString modToStringUser( uint mod ); + + /** + * @internal + * Unimplemented? + */ + bool stringToSymMod( const QString&, uint& sym, uint& mod ); + + /** + * @internal + * Unimplemented? + */ + void keyQtToKeyX( uint keyCombQt, unsigned char *pKeyCodeX, uint *pKeySymX, uint *pKeyModX ); +} + +#endif // !_KKEYSERVER_X11_H diff --git a/extra/kde321/konsole_part.h b/extra/kde321/konsole_part.h new file mode 100644 index 0000000..ba89800 --- /dev/null +++ b/extra/kde321/konsole_part.h @@ -0,0 +1,223 @@ +/* + This file is part of the KDE system + Copyright (C) 1999,2000 Boloni Laszlo + + 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. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. + */ + +#ifndef __KONSOLE_PART_H__ +#define __KONSOLE_PART_H__ + +#include +#include + + +#include + +#include + +//#include "schema.h" +//#include "session.h" + +class KInstance; +class konsoleBrowserExtension; +class QPushButton; +class QSpinBox; +class KPopupMenu; +class QCheckBox; +class KRootPixmap; +class KToggleAction; +class KSelectAction; + +namespace KParts { class GUIActivateEvent; } + +class konsoleFactory : public KParts::Factory +{ + Q_OBJECT +public: + konsoleFactory(); + virtual ~konsoleFactory(); + + virtual KParts::Part* createPartObject(QWidget *parentWidget = 0, const char *widgetName = 0, + QObject* parent = 0, const char* name = 0, + const char* classname = "KParts::Part", + const QStringList &args = QStringList()); + + static KInstance *instance(); + + private: + static KInstance *s_instance; + static KAboutData *s_aboutData; +}; + +////////////////////////////////////////////////////////////////////// + +class konsolePart: public KParts::ReadOnlyPart, public TerminalInterface +{ + Q_OBJECT + public: + konsolePart(QWidget *parentWidget, const char *widgetName, QObject * parent, const char *name, const char *classname = 0); + virtual ~konsolePart(); + +signals: + void processExited(); + void receivedData( const QString& s ); + protected: + virtual bool openURL( const KURL & url ); + virtual bool openFile() {return false;} // never used + virtual bool closeURL() {return true;} + virtual void guiActivateEvent( KParts::GUIActivateEvent * event ); + + protected slots: + void showShell(); + void slotProcessExited(); + void slotReceivedData( const QString& s ); + +// void doneSession(TESession*); + void sessionDestroyed(); +// void configureRequest(TEWidget*,int,int x,int y); + void updateTitle(); + void enableMasterModeConnections(); + + private slots: + void emitOpenURLRequest(const QString &url); + + void readProperties(); + void saveProperties(); + + void sendSignal(int n); + void closeCurrentSession(); + + void notifySize(int,int); + + void slotToggleFrame(); + void slotSelectScrollbar(); + void slotSelectFont(); + void schema_menu_check(); + void keytab_menu_activated(int item); + void updateSchemaMenu(); + void setSchema(int n); + void pixmap_menu_activated(int item); + void schema_menu_activated(int item); + void slotHistoryType(); + void slotSelectBell(); + void slotSelectLineSpacing(); + void slotBlinkingCursor(); + void slotWordSeps(); + void fontNotFound(); + + private: + konsoleBrowserExtension *m_extension; + KURL currentURL; + + void makeGUI(); + void applySettingsToGUI(); + + void setFont(int fontno); +// void setSchema(ColorSchema* s); + void updateKeytabMenu(); + + bool doOpenStream( const QString& ); + bool doWriteStream( const QByteArray& ); + bool doCloseStream(); + + QWidget* parentWidget; +// TEWidget* te; +// TESession* se; +// ColorSchemaList* colors; + KRootPixmap* rootxpm; + + KToggleAction* blinkingCursor; + KToggleAction* showFrame; + + KSelectAction* selectBell; + KSelectAction* selectFont; + KSelectAction* selectLineSpacing; + KSelectAction* selectScrollbar; + + KPopupMenu* m_keytab; + KPopupMenu* m_schema; + KPopupMenu* m_signals; + KPopupMenu* m_options; + KPopupMenu* m_popupMenu; + + QFont defaultFont; + + QString pmPath; // pixmap path + QString s_schema; + QString s_kconfigSchema; + QString s_word_seps; // characters that are considered part of a word + QString fontNotFound_par; + + bool b_framevis:1; + bool b_histEnabled:1; + + int curr_schema; // current schema no + int n_bell; + int n_font; + int n_keytab; + int n_render; + int n_scroll; + unsigned m_histSize; + bool m_runningShell; + bool m_streamEnabled; +public: + // these are the implementations for the TermEmuInterface + // functions... + void startProgram( const QString& program, + const QStrList& args ); + void showShellInDir( const QString& dir ); + void sendInput( const QString& text ); +}; + +////////////////////////////////////////////////////////////////////// + +/*class HistoryTypeDialog : public KDialogBase +{ + Q_OBJECT +public: + HistoryTypeDialog(const HistoryType& histType, + unsigned int histSize, + QWidget *parent); + +public slots: + void slotDefault(); + void slotSetUnlimited(); + void slotHistEnable(bool); + + unsigned int nbLines() const; + bool isOn() const; + +protected: + QCheckBox* m_btnEnable; + QSpinBox* m_size; + QPushButton* m_setUnlimited; +};*/ + +////////////////////////////////////////////////////////////////////// + +class konsoleBrowserExtension : public KParts::BrowserExtension +{ + Q_OBJECT + friend class konsolePart; + public: + konsoleBrowserExtension(konsolePart *parent); + virtual ~konsoleBrowserExtension(); + + void emitOpenURLRequest(const KURL &url); +}; + +#endif diff --git a/extra/kde321/kpanelmenu.h b/extra/kde321/kpanelmenu.h new file mode 100644 index 0000000..83c3268 --- /dev/null +++ b/extra/kde321/kpanelmenu.h @@ -0,0 +1,181 @@ +/***************************************************************** + +Copyright (c) 1996-2000 the kicker authors. See file AUTHORS. + (c) 2001 Michael Goffioul + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN +AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +******************************************************************/ + +#ifndef __KPANELMENU_H__ +#define __KPANELMENU_H__ + +#include +#include +#include + +class KPanelMenuPrivate; + +/** + * Base class to build dynamically loaded menu entries for the K-menu, or the panel. + * + * This class allows to build menu entries that will be dynamically added either to + * the K-menu, or to the panel as a normal button. These dynamic menus are located + * in shared libraries that will be loaded at runtime by Kicker (the KDE panel). + * + * To build such a menu, you have to inherit this class and implement the pure virtual + * functions #initialize() and slotExec(). You also have to provide a factory + * object in your library, see KLibFactory. This factory is only used to construct + * the menu object. + * + * Finally, you also have to provide a desktop file describing your dynamic menu. The + * relevant entries are: Name, Comment, Icon and X-KDE-Library (which contains the + * library name without any extension). This desktop file has to be installed in + * $KDEDIR/share/apps/kicker/menuext/. + * + * @short Base class to build dynamically loaded menu entries for the K-menu, or the panel. + * @author The kicker maintainer, Michael Goffioul + */ +class KPanelMenu : public KPopupMenu +{ + Q_OBJECT + +public: + /** + * Construct a KPanelMenu object. This is the normal constructor to use when + * building extrernal menu entries. + */ + KPanelMenu(QWidget *parent=0, const char *name=0); + /** + * Constructor used internally by Kicker. You don't really want to use it. + * @param startDir a directory to associate with this menu + * @see path(), setPath() + */ + KPanelMenu(const QString &startDir, QWidget *parent=0, const char *name=0); + /** + * Destructor. + */ + virtual ~KPanelMenu(); + + /** + * Get the directory path associated with this menu, or QString::null if + * there's no such associated path. + * @return the associated directory path + * @see setPath() + */ + const QString& path() const; + /** + * Set a directory path to be associated with this menu. + * @param p the directory path + * @see path() + */ + void setPath(const QString &p); + /** + * Tell if the menu has been initialized, that is it already contains items. + * This is useful when you need to know if you have to clear the menu, or to + * fill it. + * @return the initial state + * @see setInitialized(), initialize() + */ + bool initialized() const; + /** + * Set the initial state. Set it to true when you menu is filled with the items + * you want. + * @param on the initial state + * @see initialized(), initialize() + */ + void setInitialized(bool on); + + /** + * Disable the automatic clearing of the menu. Kicker uses a cache system for + * its menus. After a specific configurable delay, the menu will be cleared. + * Use this function if you want to disable kicker's cache system, and avoid + * the clearing of your menu. + */ + void disableAutoClear(); + +public slots: + /** + * Reinitialize the menu: the menu is first cleared, the initial state is set + * to false, and finally #initialize() is called. Use this if you want to + * refill your menu immediately. + */ + void reinitialize(); + /** + * Deinitialize the menu: the menu is cleared and the initialized state is set to + * false. #initialize() is NOT called. It will be called before the menu is + * next shown, however. Use this slot if you want a delayed reinitialization. + * @since 3.1 + */ + void deinitialize(); + +protected slots: + /** + * This slot is called just before the menu is shown. This allows your menu + * to update itself if needed. However you should instead re-implement + * #initialize to provide this feature. This function is responsible for + * the cache system handling, so if you re-implement it, you should call + * the base function also. Calls #initialize(). + * @see disableAutoClear() + */ + virtual void slotAboutToShow(); + /** + * This is slot is called when an item from the menu has been selected. Your + * applet is then supposed to perform some action. You must re-implement this + * function. + * @param id the ID associated with the selected item + */ + virtual void slotExec(int id) = 0; + /** + * This slots is called to initialize the menu. It is called automatically by + * slotAboutToShow(). By re-implementing this functions, you can reconstruct + * the menu before it is being shown. At the end of this function, you should + * call setInitialize() with true to tell the system that the menu is OK. + * You applet must re-implement this function. + * @see slotAboutToShow(), initialized(), setInitialized() + */ + virtual void initialize() = 0; + /** + * Clears the menu, and update the initial state accordingly. + * @see initialized() + */ + void slotClear(); + +protected: + /** + * Re-implemented for internal reasons. + */ + virtual void hideEvent(QHideEvent *ev); + /** + * For internal use only. Used by constructors. + */ + void init(const QString& path = QString::null); + +protected: + virtual void virtual_hook( int id, void* data ); +private: + void internalInitialize(); + KPanelMenuPrivate *d; +}; + +#define K_EXPORT_KICKER_MENUEXT( libname, classname ) \ + K_EXPORT_COMPONENT_FACTORY( \ + kickermenu_##libname, \ + KGenericFactory("libkickermenu_" #libname) ) + +#endif diff --git a/extra/kde321/krecentdirs.h b/extra/kde321/krecentdirs.h new file mode 100644 index 0000000..71f771b --- /dev/null +++ b/extra/kde321/krecentdirs.h @@ -0,0 +1,68 @@ +/* -*- c++ -*- + * Copyright (C)2000 Waldo Bastian + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * + */ +#ifndef __KRECENTDIRS_H +#define __KRECENTDIRS_H + +#include + +/** + * The goal of this class is to make sure that, when the user needs to + * specify a file via the file selection dialog, this dialog will start + * in the directory most likely to contain the desired files. + * + * This works as follows: Each time the file selection dialog is + * shown, the programmer can specify a "file-class". The file-dialog will + * then start with the directory associated with this file-class. When + * the dialog closes, the directory currently shown in the file-dialog + * will be associated with the file-class. + * + * A file-class can either start with ':' or with '::'. If it starts with + * a single ':' the file-class is specific to the current application. + * If the file-class starts with '::' it is global to all applications. + */ +class KRecentDirs +{ +public: + /** + * Returns a list of directories associated with this file-class. + * The most recently used directory is at the front of the list. + */ + static QStringList list(const QString &fileClass); + + /** + * Returns the most recently used directory accociated with this file-class. + */ + static QString dir(const QString &fileClass); + + /** + * Associates @p directory with @p fileClass + */ + static void add(const QString &fileClass, const QString &directory); +}; + +#endif diff --git a/extra/kde321/ksharedptr.h b/extra/kde321/ksharedptr.h new file mode 100644 index 0000000..e8dc877 --- /dev/null +++ b/extra/kde321/ksharedptr.h @@ -0,0 +1,171 @@ +/* This file is part of the KDE libraries + Copyright (c) 1999 Waldo Bastian + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License version 2 as published by the Free Software Foundation. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ +#ifndef KSharedPTR_H +#define KSharedPTR_H + +/** + * Reference counting for shared objects. If you derive your object + * from this class, then you may use it in conjunction with + * KSharedPtr to control the lifetime of your object. + * + * Specifically, all classes that derive from KShared have an internal + * counter keeping track of how many other objects have a reference to + * their object. If used with KSharedPtr, then your object will + * not be deleted until all references to the object have been + * released. + * + * You should probably not ever use any of the methods in this class + * directly -- let the KSharedPtr take care of that. Just derive + * your class from KShared and forget about it. + * + * @author Waldo Bastian + * @version $Id: ksharedptr.h,v 1.22 2003/08/20 08:01:42 coolo Exp $ + */ +class KShared { +public: + /** + * Standard constructor. This will initialize the reference count + * on this object to 0. + */ + KShared() : count(0) { } + + /** + * Copy constructor. This will @em not actually copy the objects + * but it will initialize the reference count on this object to 0. + */ + KShared( const KShared & ) : count(0) { } + + /** + * Overloaded assignment operator. + */ + KShared &operator=(const KShared & ) { return *this; } + + /** + * Increases the reference count by one. + */ + void _KShared_ref() const { count++; } + + /** + * Releases a reference (decreases the reference count by one). If + * the count goes to 0, this object will delete itself. + */ + void _KShared_unref() const { if (!--count) delete this; } + + /** + * Return the current number of references held. + * + * @return Number of references + */ + int _KShared_count() const { return count; } + +protected: + virtual ~KShared() { } +private: + mutable int count; +}; + +/** + * Can be used to control the lifetime of an object that has derived + * KShared. As long a someone holds a KSharedPtr on some KShared + * object it won't become deleted but is deleted once its reference + * count is 0. This struct emulates C++ pointers perfectly. So just + * use it like a simple C++ pointer. + * + * KShared and KSharedPtr are preferred over QShared / QSharedPtr + * since they are more safe. + * + * @author Waldo Bastian + * @version $Id: ksharedptr.h,v 1.22 2003/08/20 08:01:42 coolo Exp $ + */ +template< class T > +struct KSharedPtr +{ +public: +/** + * Creates a null pointer. + */ + KSharedPtr() + : ptr(0) { } + /** + * Creates a new pointer. + * @param t the pointer + */ + KSharedPtr( T* t ) + : ptr(t) { if ( ptr ) ptr->_KShared_ref(); } + + /** + * Copies a pointer. + * @param p the pointer to copy + */ + KSharedPtr( const KSharedPtr& p ) + : ptr(p.ptr) { if ( ptr ) ptr->_KShared_ref(); } + + /** + * Unreferences the object that this pointer points to. If it was + * the last reference, the object will be deleted. + */ + ~KSharedPtr() { if ( ptr ) ptr->_KShared_unref(); } + + KSharedPtr& operator= ( const KSharedPtr& p ) { + if ( ptr == p.ptr ) return *this; + if ( ptr ) ptr->_KShared_unref(); + ptr = p.ptr; + if ( ptr ) ptr->_KShared_ref(); + return *this; + } + KSharedPtr& operator= ( T* p ) { + if ( ptr == p ) return *this; + if ( ptr ) ptr->_KShared_unref(); + ptr = p; + if ( ptr ) ptr->_KShared_ref(); + return *this; + } + bool operator== ( const KSharedPtr& p ) const { return ( ptr == p.ptr ); } + bool operator!= ( const KSharedPtr& p ) const { return ( ptr != p.ptr ); } + bool operator== ( const T* p ) const { return ( ptr == p ); } + bool operator!= ( const T* p ) const { return ( ptr != p ); } + bool operator!() const { return ( ptr == 0 ); } + operator T*() const { return ptr; } + + /** + * Returns the pointer. + * @return the pointer + */ + T* data() { return ptr; } + + /** + * Returns the pointer. + * @return the pointer + */ + const T* data() const { return ptr; } + + const T& operator*() const { return *ptr; } + T& operator*() { return *ptr; } + const T* operator->() const { return ptr; } + T* operator->() { return ptr; } + + /** + * Returns the number of references. + * @return the number of references + */ + int count() const { return ptr->_KShared_count(); } // for debugging purposes +private: + T* ptr; +}; + +#endif diff --git a/extra/kde321/ksycocafactory.h b/extra/kde321/ksycocafactory.h new file mode 100644 index 0000000..9cc1257 --- /dev/null +++ b/extra/kde321/ksycocafactory.h @@ -0,0 +1,143 @@ +/* This file is part of the KDE libraries + * Copyright (C) 1999 Waldo Bastian + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License version 2 as published by the Free Software Foundation; + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public License + * along with this library; see the file COPYING.LIB. If not, write to + * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA. + **/ + +#ifndef __ksycocafactory_h__ +#define __ksycocafactory_h__ "$Id: ksycocafactory.h,v 1.14 2003/10/29 17:59:18 waba Exp $" + +#include "ksycocatype.h" +#include "ksycocaentry.h" + +#include +#include +class KSycoca; +class QStringList; +class QString; +class KSycocaDict; +class KSycocaResourceList; + +typedef QDict KSycocaEntryDict; + +/** + * @internal + * Base class for sycoca factories + */ +class KSycocaFactory +{ +public: + virtual KSycocaFactoryId factoryId() const = 0; + +protected: // virtual class + /** + * Create a factory which can be used to lookup from/create a database + * (depending on KSycoca::isBuilding()) + */ + KSycocaFactory( KSycocaFactoryId factory_id ); + +public: + virtual ~KSycocaFactory(); + + /** + * @return the position of the factory in the sycoca file + */ + int offset() { return mOffset; } + + /** + * @return the dict, for special use by KBuildSycoca + */ + KSycocaEntryDict * entryDict() { return m_entryDict; } + + /** + * Construct an entry from a config file. + * To be implemented in the real factories. + */ + virtual KSycocaEntry *createEntry(const QString &file, const char *resource) = 0; + + /** + * Add an entry + */ + virtual void addEntry(KSycocaEntry *newEntry, const char *resource); + + /** + * Remove an entry + * Not very fast, use with care. O(N) + */ + void removeEntry(KSycocaEntry *newEntry); + + /** + * Read an entry from the database + */ + virtual KSycocaEntry *createEntry(int offset)=0; + + /** + * Get a list of all entries from the database. + */ + KSycocaEntry::List allEntries(); + + /** + * Saves all entries it maintains as well as index files + * for these entries to the stream 'str'. + * + * Also sets mOffset to the starting position. + * + * The stream is positioned at the end of the last index. + * + * Don't forget to call the parent first when you override + * this function. + */ + virtual void save(QDataStream &str); + + /** + * Writes out a header to the stream 'str'. + * The baseclass positions the stream correctly. + * + * Don't forget to call the parent first when you override + * this function. + */ + virtual void saveHeader(QDataStream &str); + + /** + * @return the resources for which this factory is responsible. + */ + virtual const KSycocaResourceList * resourceList() const { return m_resourceList; } + +private: + int mOffset; + +protected: + int m_sycocaDictOffset; + int m_beginEntryOffset; + int m_endEntryOffset; + QDataStream *m_str; + + KSycocaResourceList *m_resourceList; + KSycocaEntryDict *m_entryDict; + KSycocaDict *m_sycocaDict; +protected: + virtual void virtual_hook( int id, void* data ); +}; + +/** This, instead of a typedef, allows to declare "class ..." in header files + * @internal + */ +class KSycocaFactoryList : public QPtrList +{ +public: + KSycocaFactoryList() { } +}; + +#endif diff --git a/extra/kde321/ktoolbarbutton.h b/extra/kde321/ktoolbarbutton.h new file mode 100644 index 0000000..065617a --- /dev/null +++ b/extra/kde321/ktoolbarbutton.h @@ -0,0 +1,315 @@ +/* This file is part of the KDE libraries + Copyright (C) 1997, 1998 Stephan Kulow (coolo@kde.org) + (C) 1997, 1998 Sven Radej (radej@kde.org) + (C) 1997, 1998 Mark Donohoe (donohoe@kde.org) + (C) 1997, 1998 Matthias Ettrich (ettrich@kde.org) + (C) 2000 Kurt Granroth (granroth@kde.org) + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License version 2 as published by the Free Software Foundation. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +// $Id: ktoolbarbutton.h,v 1.34 2003/09/09 12:40:58 bhards Exp $ +#ifndef _KTOOLBARBUTTON_H +#define _KTOOLBARBUTTON_H + +#include +#include +#include +#include +#include + +class KToolBar; +class KToolBarButtonPrivate; +class KInstance; +class QEvent; +class QPopupMenu; +class QPainter; + +/** + * A toolbar button. This is used internally by KToolBar, use the + * KToolBar methods instead. + * @internal + */ +class KToolBarButton : public QToolButton +{ + Q_OBJECT + +public: + /** + * Construct a button with an icon loaded by the button itself. + * This will trust the button to load the correct icon with the + * correct size. + * + * @param icon Name of icon to load (may be absolute or relative) + * @param id Id of this button + * @param parent This button's parent + * @param name This button's internal name + * @param txt This button's text (in a tooltip or otherwise) + */ + KToolBarButton(const QString& icon, int id, QWidget *parent, + const char *name=0L, const QString &txt=QString::null, + KInstance *_instance = KGlobal::instance()); + + /** + * Construct a button with an existing pixmap. It is not + * recommended that you use this as the internal icon loading code + * will almost always get it "right". + * + * @param pixmap Name of icon to load (may be absolute or relative) + * @param id Id of this button + * @param parent This button's parent + * @param name This button's internal name + * @param txt This button's text (in a tooltip or otherwise) + */ + KToolBarButton(const QPixmap& pixmap, int id, QWidget *parent, + const char *name=0L, const QString &txt=QString::null); + + /** + * Construct a separator button + * + * @param parent This button's parent + * @param name This button's internal name + */ + KToolBarButton(QWidget *parent=0L, const char *name=0L); + + /** + * Standard destructor + */ + ~KToolBarButton(); + +#ifndef KDE_NO_COMPAT + /** + * @deprecated + * Set the pixmap directly for this button. This pixmap should be + * the active one... the dimmed and disabled pixmaps are constructed + * based on this one. However, don't use this function unless you + * are positive that you don't want to use setIcon. + * + * @param pixmap The active pixmap + */ + // this one is from QButton, so #ifdef-ing it out doesn't break BC + virtual void setPixmap(const QPixmap &pixmap) KDE_DEPRECATED; + + /** + * @deprecated + * Force the button to use this pixmap as the default one rather + * then generating it using effects. + * + * @param pixmap The pixmap to use as the default (normal) one + */ + void setDefaultPixmap(const QPixmap& pixmap) KDE_DEPRECATED; + + /** + * @deprecated + * Force the button to use this pixmap when disabled one rather then + * generating it using effects. + * + * @param pixmap The pixmap to use when disabled + */ + void setDisabledPixmap(const QPixmap& pixmap) KDE_DEPRECATED; +#endif + + /** + * Set the text for this button. The text will be either used as a + * tooltip (IconOnly) or will be along side the icon + * + * @param text The button (or tooltip) text + */ + virtual void setText(const QString &text); + + /** + * Set the icon for this button. The icon will be loaded internally + * with the correct size. This function is preferred over setIconSet + * + * @param icon The name of the icon + */ + virtual void setIcon(const QString &icon); + + /// @since 3.1 + virtual void setIcon( const QPixmap &pixmap ) + { QToolButton::setIcon( pixmap ); } + + /** + * Set the pixmaps for this toolbar button from a QIconSet. + * If you call this you don't need to call any of the other methods + * that set icons or pixmaps. + * @param iconset The iconset to use + */ + virtual void setIconSet( const QIconSet &iconset ); + +#ifndef KDE_NO_COMPAT + /** + * @deprecated + * Set the active icon for this button. The pixmap itself is loaded + * internally based on the icon size... .. the disabled and default + * pixmaps, however will only be constructed if generate is + * true. This function is preferred over setPixmap + * + * @param icon The name of the active icon + * @param generate If true, then the other icons are automagically + * generated from this one + */ + KDE_DEPRECATED void setIcon(const QString &icon, bool generate ) { Q_UNUSED(generate); setIcon( icon ); } + + /** + * @deprecated + * Force the button to use this icon as the default one rather + * then generating it using effects. + * + * @param icon The icon to use as the default (normal) one + */ + void setDefaultIcon(const QString& icon) KDE_DEPRECATED; + + /** + * @deprecated + * Force the button to use this icon when disabled one rather then + * generating it using effects. + * + * @param icon The icon to use when disabled + */ + void setDisabledIcon(const QString& icon) KDE_DEPRECATED; +#endif + + /** + * Turn this button on or off + * + * @param flag true or false + */ + void on(bool flag = true); + + /** + * Toggle this button + */ + void toggle(); + + /** + * Turn this button into a toggle button or disable the toggle + * aspects of it. This does not toggle the button itself. + * Use toggle() for that. + * + * @param toggle true or false + */ + void setToggle(bool toggle = true); + + /** + * Return a pointer to this button's popup menu (if it exists) + */ + QPopupMenu *popup(); + + /** + * Returns the button's id. + * @since 3.2 + */ + int id() const; + + /** + * Give this button a popup menu. There will not be a delay when + * you press the button. Use setDelayedPopup if you want that + * behavior. + * + * @param p The new popup menu + * @param unused Has no effect - ignore it. + */ + void setPopup (QPopupMenu *p, bool unused = false); + + /** + * Gives this button a delayed popup menu. + * + * This function allows you to add a delayed popup menu to the button. + * The popup menu is then only displayed when the button is pressed and + * held down for about half a second. + * + * @param p the new popup menu + * @param unused Has no effect - ignore it. + */ + void setDelayedPopup(QPopupMenu *p, bool unused = false); + + /** + * Turn this button into a radio button + * + * @param f true or false + */ + void setRadio(bool f = true); + + /** + * Toolbar buttons naturally will assume the global styles + * concerning icons, icons sizes, etc. You can use this function to + * explicitly turn this off, if you like. + * + * @param no_style Will disable styles if true + */ + void setNoStyle(bool no_style = true); + +signals: + void clicked(int); + void doubleClicked(int); + void pressed(int); + void released(int); + void toggled(int); + void highlighted(int, bool); + +public slots: + /** + * This slot should be called whenever the toolbar mode has + * potentially changed. This includes such events as text changing, + * orientation changing, etc. + */ + void modeChange(); + virtual void setTextLabel(const QString&, bool tipToo); + +protected: + void paletteChange(const QPalette &); + void leaveEvent(QEvent *e); + void enterEvent(QEvent *e); + void drawButton(QPainter *p); + bool eventFilter (QObject *o, QEvent *e); + void showMenu(); + QSize sizeHint() const; + QSize minimumSizeHint() const; + QSize minimumSize() const; + + /// @since 3.1 + bool isRaised() const; + /// @since 3.1 + bool isActive() const; + /// @since 3.1 + int iconTextMode() const; + +protected slots: + void slotClicked(); + void slotPressed(); + void slotReleased(); + void slotToggled(); + void slotDelayTimeout(); + +protected: + virtual void virtual_hook( int id, void* data ); +private: + KToolBarButtonPrivate *d; +}; + +/** +* List of KToolBarButton objects. +* @internal +* @version $Id: ktoolbarbutton.h,v 1.34 2003/09/09 12:40:58 bhards Exp $ +*/ +class KToolBarButtonList : public QIntDict +{ +public: + KToolBarButtonList(); + ~KToolBarButtonList() {} +}; + +#endif diff --git a/extra/kde321/kurifilter.h b/extra/kde321/kurifilter.h new file mode 100644 index 0000000..8c5f5fe --- /dev/null +++ b/extra/kde321/kurifilter.h @@ -0,0 +1,644 @@ +/* + * This file is part of the KDE libraries + * Copyright (C) 2000-2001,2003 Dawit Alemayehu + * + * Original author + * Copyright (C) 2000 Yves Arrouye + * + * + * This library 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. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public License + * along with this library; see the file COPYING.LIB. If not, write to + * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA. + **/ + +#ifndef __kurifilter_h__ +#define __kurifilter_h__ "$Id: kurifilter.h,v 1.41 2003/08/30 08:56:21 raabe Exp $" + +#include +#include +#include + +#include +#include + +class KURIFilterPrivate; +class KURIFilterDataPrivate; + +class KCModule; + +/** +* A basic message object used for exchanging filtering +* information between the filter plugins and the application +* requesting the filtering service. +* +* Use this object if you require a more detailed information +* about the URI you want to filter. Any application can create +* an instance of this class and send it to KURIFilter to +* have the plugins fill out all possible information about the +* URI. +* +* \b Example +* +* \code +* QString text = "kde.org"; +* KURIFilterData d = text; +* bool filtered = KURIFilter::self()->filter( d ); +* cout << "URL: " << text.latin1() << endl +* << "Filtered URL: " << d.uri().url().latin1() << endl +* << "URI Type: " << d.uriType() << endl +* << "Was Filtered: " << filtered << endl; +* \endcode +* +* The above code should yield the following output: +* \code +* URI: kde.org +* Filtered URI: http://kde.org +* URI Type: 0 <== means NET_PROTOCOL +* Was Filtered: 1 <== means the URL was successfully filtered +* \endcode +* +* @short A message object for exchanging filtering URI info. +* @author Dawit Alemayehu +*/ + +class KURIFilterData +{ +friend class KURIFilterPlugin; + +public: + /** + * Describes the type of the URI that was filtered. + * Here is a brief description of the types: + * + * @li NET_PROTOCOL - Any network protocol: http, ftp, nttp, pop3, etc... + * @li LOCAL_FILE - A local file whose executable flag is not set + * @li LOCAL_DIR - A local directory + * @li EXECUTABLE - A local file whose executable flag is set + * @li HELP - A man or info page + * @li SHELL - A shell executable (ex: echo "Test..." >> ~/testfile) + * @li BLOCKED - A URI that should be blocked/filtered (ex: ad filtering) + * @li ERROR - An incorrect URI (ex: "~johndoe" when user johndoe + * does not exist in that system ) + * @li UNKNOWN - A URI that is not identified. Default value when + * a KURIFilterData is first created. + */ + enum URITypes { NET_PROTOCOL=0, LOCAL_FILE, LOCAL_DIR, EXECUTABLE, HELP, SHELL, BLOCKED, ERROR, UNKNOWN }; + + /** + * Default constructor. + * + * Creates a URIFilterData object. + */ + KURIFilterData() { init(); } + + /** + * Creates a URIFilterData object from the given URL. + * + * @param url is the URL to be filtered. + */ + KURIFilterData( const KURL& url ) { init( url); } + + /** + * Creates a URIFilterData object from the given string. + * + * @param url is the string to be filtered. + */ + KURIFilterData( const QString& url ) { init( url ); } + + /** + * Copy constructor. + * + * Creates a URIFilterData object from another + * URI filter data object. + * + * @param data the uri filter data to be copied. + */ + KURIFilterData( const KURIFilterData& data); + + /** + * Destructor. + */ + ~KURIFilterData(); + + /** + * This method has been deprecated and will always return + * true. You should instead use the result from the + * KURIFilter::filterURI() calls. + * + * @deprecated + */ + KDE_DEPRECATED bool hasBeenFiltered() const { return true; } + + /** + * Returns the filtered or the original URL. + * + * This function returns the filtered url if one + * of the plugins successfully filtered the original + * URL. Otherwise, it returns the original URL. + * See hasBeenFiltered() and + * + * @return the filtered or original url. + */ + KURL uri() const { return m_pURI; } + + /** + * Returns an error message. + * + * This functions returns the error message set + * by the plugin whenever the uri type is set to + * KURIFilterData::ERROR. Otherwise, it returns + * a QString::null. + * + * @return the error message or a NULL when there is none. + */ + QString errorMsg() const { return m_strErrMsg; } + + /** + * Returns the URI type. + * + * This method always returns KURIFilterData::UNKNOWN + * if the given URL was not filtered. + * @return the type of the URI + */ + URITypes uriType() const { return m_iType; } + + /** + * Sets the URL to be filtered. + * + * Use this function to set the string to be + * filtered when you construct an empty filter + * object. + * + * @param url the string to be filtered. + */ + void setData( const QString& url ) { init( url ); } + + /** + * Same as above except the argument is a URL. + * + * Use this function to set the string to be + * filtered when you construct an empty filter + * object. + * + * @param url the URL to be filtered. + */ + void setData( const KURL& url ) { init( url ); } + + /** + * Sets the absolute path to be used whenever the supplied + * data is a relative local URL. + * + * NOTE: This function should only be used for local resources, + * i.e. the "file:/" protocol. It is useful for specifying the + * absolute path in cases where the actual URL might be relative. + * meta object. If deriving the path from a KURL, make sure you + * set the argument for this function to the result of calling + * path () instead of url (). + * + * @param abs_path the abolute path to the local resource. + * @return true if absolute path is successfully set. Otherwise, false. + */ + bool setAbsolutePath( const QString& abs_path ); + + /** + * Returns the absolute path if one has already been set. + * @return the absolute path, or QString::null + * @see hasAbsolutePath() + */ + QString absolutePath() const; + + /** + * Checks whether the supplied data had an absolute path. + * @return true if the supplied data has an absolute path + * @see absolutePath() + */ + bool hasAbsolutePath() const; + + /** + * Returns the command line options and arguments for a + * local resource when present. + * + * @return options and arguments when present, otherwise QString::null + */ + QString argsAndOptions() const; + + /** + * Checks whether the current data is a local resource with + * command line options and arguments. + * @return true if the current data has command line options and arguments + */ + bool hasArgsAndOptions() const; + + /** + * Returns the name of the icon that matches + * the current filtered URL. + * + * NOTE that this function will return a NULL + * string by default and when no associated icon + * is found. + * + * @return the name of the icon associated with the resource, + * or QString::null if not found + */ + QString iconName(); + + /** + * Check whether the provided uri is executable or not. + * + * Setting this to false ensures that typing the name of + * an executable does not start that application. This is + * useful in the location bar of a browser. The default + * value is true. + * + * @since 3.2 + */ + void setCheckForExecutables (bool check); + + /** + * @return true if the filters should attempt to check whether the + * supplied uri is an executable. False otherwise. + * + * @since 3.2 + */ + bool checkForExecutables() const { return m_bCheckForExecutables; } + + /** + * @return the string as typed by the user, before any URL processing is done + * @since 3.2 + */ + QString typedString() const; + + /** + * Overloaded assigenment operator. + * + * This function allows you to easily assign a KURL + * to a KURIFilterData object. + * + * @return an instance of a KURIFilterData object. + */ + KURIFilterData& operator=( const KURL& url ) { init( url ); return *this; } + + /** + * Overloaded assigenment operator. + * + * This function allows you to easily assign a QString + * to a KURIFilterData object. + * + * @return an instance of a KURIFilterData object. + */ + KURIFilterData& operator=( const QString& url ) { init( url ); return *this; } + +protected: + + /** + * Initializes the KURIFilterData on construction. + * @param url the URL to initialize the object with + */ + void init( const KURL& url); + + /** + * Initializes the KURIFilterData on construction. + * @param url the URL to initialize the object with + */ + void init( const QString& url = QString::null ); + +private: + bool m_bCheckForExecutables; + bool m_bChanged; + + QString m_strErrMsg; + QString m_strIconName; + + KURL m_pURI; + URITypes m_iType; + KURIFilterDataPrivate *d; +}; + + +/** + * Base class for URI filter plugins. + * + * This class applies a single filter to a URI. All plugins designed + * to provide URI filtering service should inherit from this abstract + * class and provide a concrete implementation. + * + * All inheriting classes need to implement the pure virtual function + * filterURI. + * + * @short Abstract class for URI filter plugins. + */ +class KURIFilterPlugin : public QObject +{ + Q_OBJECT + +public: + + /** + * Constructs a filter plugin with a given name and + * priority. + * + * @param parent the parent object, or 0 for no parent + * @param name the name of the plugin, or 0 for no name + * @param pri the priority of the plugin. + */ + KURIFilterPlugin( QObject *parent = 0, const char *name = 0, double pri = 1.0 ); + + /** + * Returns the filter's name. + * + * @return A string naming the filter. + */ + virtual QString name() const { return m_strName; } + + /** + * Returns the filter's priority. + * + * Each filter has an assigned priority, a float from 0 to 1. Filters + * with the lowest priority are first given a chance to filter a URI. + * + * @return The priority of the filter. + */ + virtual double priority() const { return m_dblPriority; } + + /** + * Filters a URI. + * + * @param data the URI data to be filtered. + * @return A boolean indicating whether the URI has been changed. + */ + virtual bool filterURI( KURIFilterData& data ) const = 0; + + /** + * Creates a configuration module for the filter. + * + * It is the responsibility of the caller to delete the module + * once it is not needed anymore. + * + * @return A configuration module, 0 if the filter isn't configurable. + */ + virtual KCModule *configModule( QWidget*, const char* ) const { return 0; } + + /** + * Returns the name of the configuration module for the filter. + * + * @return the name of a configuration module or QString::null if none. + */ + virtual QString configName() const { return name(); } + +protected: + + /** + * Sets the the URL in @p data to @p uri. + */ + void setFilteredURI ( KURIFilterData& data, const KURL& uri ) const; + + /** + * Sets the error message in @p data to @p errormsg. + */ + void setErrorMsg ( KURIFilterData& data, const QString& errmsg ) const { + data.m_strErrMsg = errmsg; + } + + /** + * Sets the URI type in @p data to @p type. + */ + void setURIType ( KURIFilterData& data, KURIFilterData::URITypes type) const { + data.m_iType = type; + data.m_bChanged = true; + } + + /** + * Sets the arguments and options string in @p data + * to @p args if any were found during filterting. + */ + void setArguments( KURIFilterData& data, const QString& args ) const; + + QString m_strName; + double m_dblPriority; + +protected: + virtual void virtual_hook( int id, void* data ); +private: + class KURIFilterPluginPrivate *d; +}; + + +/** + * A list of filter plugins. + */ +class KURIFilterPluginList : public QPtrList +{ +public: + virtual int compareItems(Item a, Item b) + { + double diff = ((KURIFilterPlugin *) a)->priority() - ((KURIFilterPlugin *) b)->priority(); + return diff < 0 ? -1 : (diff > 0 ? 1 : 0); + } + +private: + KURIFilterPrivate *d; + +}; + +/** + * Manages the filtering of URIs. + * + * The intention of this plugin class is to allow people to extend the + * functionality of KURL without modifying it directly. This way KURL will + * remain a generic parser capable of parsing any generic URL that adheres + * to specifications. + * + * The KURIFilter class applies a number of filters to a URI and returns the + * filtered version whenever possible. The filters are implemented using + * plugins to provide easy extensibility of the filtering mechanism. New + * filters can be added in the future by simply inheriting from + * KURIFilterPlugin and implementing the KURIFilterPlugin::filterURI + * method. + * + * Use of this plugin-manager class is straight forward. Since it is a + * singleton object, all you have to do is obtain an instance by doing + * @p KURIFilter::self() and use any of the public member functions to + * preform the filtering. + * + * \b Example + * + * To simply filter a given string: + * + * \code + * bool filtered = KURIFilter::self()->filterURI( "kde.org" ); + * \endcode + * + * You can alternatively use a KURL: + * + * \code + * KURL url = "kde.org"; + * bool filtered = KURIFilter::self()->filterURI( url ); + * \endcode + * + * If you have a constant string or a constant URL, simply invoke the + * corresponding function to obtain the filtered string or URL instead + * of a boolean flag: + * + * \code + * QString u = KURIFilter::self()->filteredURI( "kde.org" ); + * \endcode + * + * You can also restrict the filter(s) to be used by supplying + * the name of the filter(s) to use. By defualt all available + * filters will be used. To use specific filters, add the names + * of the filters you want to use to a QStringList and invoke + * the appropriate filtering function. The examples below show + * the use of specific filters. The first one uses a single + * filter called kshorturifilter while the second example uses + * multiple filters: + * + * \code + * QString text = "kde.org"; + * bool filtered = KURIFilter::self()->filterURI( text, "kshorturifilter" ); + * \endcode + * + * \code + * QStringList list; + * list << "kshorturifilter" << "localdomainfilter"; + * bool filtered = KURIFilter::self()->filterURI( text, list ); + * \endcode + * + * KURIFilter also allows richer data exchange through a simple + * meta-object called @p KURIFilterData. Using this meta-object + * you can find out more information about the URL you want to + * filter. See KURIFilterData for examples and details. + * + * @short Filters a given URL into its proper format whenever possible. + */ + +class KURIFilter +{ +public: + /** + * Destructor + */ + ~KURIFilter (); + + /** + * Returns an instance of KURIFilter. + */ + static KURIFilter* self(); + + /** + * Filters the URI given by the object URIFilterData. + * + * The given URL is filtered based on the specified list of filters. + * If the list is empty all available filters would be used. + * + * @param data object that contains the URI to be filtered. + * @param filters specify the list of filters to be used. + * + * @return a boolean indicating whether the URI has been changed + */ + bool filterURI( KURIFilterData& data, const QStringList& filters = QStringList() ); + + /** + * Filters the URI given by the URL. + * + * The given URL is filtered based on the specified list of filters. + * If the list is empty all available filters would be used. + * + * @param uri the URI to filter. + * @param filters specify the list of filters to be used. + * + * @return a boolean indicating whether the URI has been changed + */ + bool filterURI( KURL &uri, const QStringList& filters = QStringList() ); + + /** + * Filters a string representing a URI. + * + * The given URL is filtered based on the specified list of filters. + * If the list is empty all available filters would be used. + * + * @param uri The URI to filter. + * @param filters specify the list of filters to be used. + * + * @return a boolean indicating whether the URI has been changed + */ + bool filterURI( QString &uri, const QStringList& filters = QStringList() ); + + /** + * Returns the filtered URI. + * + * The given URL is filtered based on the specified list of filters. + * If the list is empty all available filters would be used. + * + * @param uri The URI to filter. + * @param filters specify the list of filters to be used. + * + * @return the filtered URI or null if it cannot be filtered + */ + KURL filteredURI( const KURL &uri, const QStringList& filters = QStringList() ); + + /** + * Return a filtered string representation of a URI. + * + * The given URL is filtered based on the specified list of filters. + * If the list is empty all available filters would be used. + * + * @param uri the URI to filter. + * @param filters specify the list of filters to be used. + * + * @return the filtered URI or null if it cannot be filtered + */ + QString filteredURI( const QString &uri, const QStringList& filters = QStringList() ); + + /** + * Return an iterator to iterate over all loaded + * plugins. + * + * @return a plugin iterator. + */ + QPtrListIterator pluginsIterator() const; + + /** + * Return a list of the names of all loaded plugins. + * + * @return a QStringList of plugin names + * @since 3.1 + */ + QStringList pluginNames() const; + +protected: + + /** + * A protected constructor. + * + * This constructor creates a KURIFilter and + * initializes all plugins it can find by invoking + * loadPlugins. + */ + KURIFilter(); + + /** + * Loads all allowed plugins. + * + * This function loads all filters that have not + * been disbled. + */ + void loadPlugins(); + +private: + static KURIFilter *m_self; + KURIFilterPluginList m_lstPlugins; + KURIFilterPrivate *d; +}; + +#endif diff --git a/extra/kde321/selectdialog.h b/extra/kde321/selectdialog.h new file mode 100644 index 0000000..b5e962c --- /dev/null +++ b/extra/kde321/selectdialog.h @@ -0,0 +1,87 @@ +/* + This file is part of libkresources. + + Copyright (c) 2002 Tobias Koenig + Copyright (c) 2002 Jan-Pascal van Best + Copyright (c) 2003 Cornelius Schumacher + + This library 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. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef KRESOURCES_SELECTDIALOG_H +#define KRESOURCES_SELECTDIALOG_H + +#include +#include +#include + +#include + +class KListBox; + +namespace KRES { + +class Resource; + +/** + * Dialog for selecting a resource. + * + * Example: + * + * \code + * + * QPtrList list = ... // can be retrived from KRES::Manager (e.g. KABC::AddressBook) + * + * KABC::Resource *res = KABC::SelectDialog::getResource( list, parentWdg ); + * if ( !res ) { + * // no resource selected + * } else { + * // do something with resource + * } + * \endcode + */ +class SelectDialog +{ + public: + /** + * Constructor. + * @param list The list of available resources + * @param parent The parent widget + * @param name The name of the dialog + */ + SelectDialog( QPtrList list, QWidget *parent = 0, + const char *name = 0); + + /** + * Returns selected resource. + */ + Resource *resource(); + + /** + * Opens a dialog showing the available resources and returns the resource the + * user has selected. Returns 0, if the dialog was canceled. + */ + static Resource *getResource( QPtrList list, QWidget *parent = 0 ); + + private: + KListBox *mResourceId; + + QMap mResourceMap; +}; + +} + +#endif diff --git a/extra/kde322/configwidget.h b/extra/kde322/configwidget.h new file mode 100644 index 0000000..643df88 --- /dev/null +++ b/extra/kde322/configwidget.h @@ -0,0 +1,58 @@ +/* + This file is part of libkresources. + Copyright (c) 2002 Tobias Koenig + Copyright (c) 2002 Jan-Pascal van Best + + This library 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. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef KRESOURCES_CONFIGWIDGET_H +#define KRESOURCES_CONFIGWIDGET_H + +#include "resource.h" + +#include + +#include + +namespace KRES { + +class ConfigWidget : public QWidget +{ + Q_OBJECT + public: + ConfigWidget( QWidget *parent = 0, const char *name = 0 ); + + /** + Sets the widget to 'edit' mode. Reimplement this method if you are + interested in the mode change (to disable some GUI element for + example). By default the widget is in 'create new' mode. + */ + virtual void setInEditMode( bool value ); + + public slots: + virtual void loadSettings( Resource *resource ) = 0; + virtual void saveSettings( Resource *resource ) = 0; + + signals: + void setReadOnly( bool value ); + + protected: + Resource *mResource; +}; + +} +#endif diff --git a/extra/kde322/kaccelaction.h b/extra/kde322/kaccelaction.h new file mode 100644 index 0000000..9967e4f --- /dev/null +++ b/extra/kde322/kaccelaction.h @@ -0,0 +1,564 @@ +/* This file is part of the KDE libraries + Copyright (C) 2001,2002 Ellis Whitehead + + This library 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. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef _KACCELACTION_H +#define _KACCELACTION_H + +#include +#include +#include +#include + +#include + +class KAccelBase; + +class QObject; +class KConfig; +class KConfigBase; + +/** + * @internal + * A KAccelAction prepresents an action that can be executed using + * an accelerator key. Each KAccelAction has a name, a label, a + * "What's this" string and a KShortcut. The user can configure and + * enable/disable them using KKeyDialog. + * + * \code + * 1) KAccelAction = "Run Command" + * Default3 = "Alt+F2" + * Default4 = "Meta+Enter;Alt+F2" + * 1) KShortcut = "Meta+Enter" + * 1) KKeySequence = "Meta+Enter" + * 1) KKey = "Meta+Enter" + * 1) Meta+Enter + * 2) Meta+Keypad_Enter + * 2) KShortcut = "Alt+F2" + * 1) KKeySequence = "Alt+F2" + * 1) Alt+F2 + * 2) KAccelAction = "Something" + * Default3 = "" + * Default4 = "" + * 1) KShortcut = "Meta+X,Asterisk" + * 1) KKeySequence = "Meta+X,Asterisk" + * 1) KKey = "Meta+X" + * 1) Meta+X + * 2) KKey = "Asterisk" + * 1) Shift+8 (English layout) + * 2) Keypad_Asterisk + * \endcode + * @short An accelerator action + * @see KAccel + * @see KGlobalAccel + * @see KKeyChooser + * @see KKeyDialog + */ +class KAccelAction +{ + public: + /** + * Creates an empty KAccelAction. + * @see clear() + */ + KAccelAction(); + + /** + * Copy constructor. + */ + KAccelAction( const KAccelAction& ); + + /** + * Creates a new KAccelAction. + * @param sName the name of the accelerator + * @param sLabel the label of the accelerator (i18n!) + * @param sWhatsThis the What's This text (18n!) + * @param cutDef3 the default shortcut for 3 modifier systems + * @param cutDef4 the default shortcut for 4 modifier systems + * @param pObjSlot the receiver of a signal when the key has been + * pressed + * @param psMethodSlot the slot to connect for key presses. Receives + * an int, as set by setID(), as only argument + * @param bConfigurable if true the user can configure the shortcut + * @param bEnabled true if the accelerator should be enabled + */ + KAccelAction( const QString& sName, const QString& sLabel, const QString& sWhatsThis, + const KShortcut& cutDef3, const KShortcut& cutDef4, + const QObject* pObjSlot, const char* psMethodSlot, + bool bConfigurable, bool bEnabled ); + ~KAccelAction(); + + /** + * Clears the accelerator. + */ + void clear(); + + /** + * Re-initialized the KAccelAction. + * @param sName the name of the accelerator + * @param sLabel the label of the accelerator (i18n!) + * @param sWhatsThis the What's This text (18n!) + * @param cutDef3 the default shortcut for 3 modifier systems + * @param cutDef4 the default shortcut for 4 modifier systems + * @param pObjSlot the receiver of a signal when the key has been + * pressed + * @param psMethodSlot the slot to connect for key presses. Receives + * an int, as set by setID(), as only argument + * @param bConfigurable if true the user can configure the shortcut + * @param bEnabled true if the accelerator should be enabled + * @return true if successful, false otherwise + */ + bool init( const QString& sName, const QString& sLabel, const QString& sWhatsThis, + const KShortcut& cutDef3, const KShortcut& cutDef4, + const QObject* pObjSlot, const char* psMethodSlot, + bool bConfigurable, bool bEnabled ); + + /** + * Copies this KAccelAction. + */ + KAccelAction& operator=( const KAccelAction& ); + + /** + * Returns the name of the accelerator action. + * @return the name of the accelerator action, can be null if not + * set + */ + const QString& name() const { return m_sName; } + + /** + * Returns the label of the accelerator action. + * @return the label of the accelerator action, can be null if + * not set + */ + const QString& label() const { return m_sLabel; } + + /** + * Returns the What's This text of the accelerator action. + * @return the What's This text of the accelerator action, can be + * null if not set + */ + const QString& whatsThis() const { return m_sWhatsThis; } + + /** + * The shortcut that is actually used (may be used configured). + * @return the shortcut of the KAccelAction, can be null if not set + * @see shortcutDefault() + */ + const KShortcut& shortcut() const { return m_cut; } + + /** + * The default shortcut for this system. + * @return the default shortcut on this system, can be null if not set + * @see shortcut() + * @see shortcutDefault3() + * @see shortcutDefault4() + */ + const KShortcut& shortcutDefault() const; + + /** + * The default shortcut for 3 modifier systems. + * @return the default shortcut for 3 modifier systems, can be null + * if not set + * @see shortcutDefault() + * @see shortcutDefault4() + * @see useFourModifierKeys() + */ + const KShortcut& shortcutDefault3() const { return m_cutDefault3; } + + /** + * The default shortcut for 4 modifier systems. + * @return the default shortcut for 4 modifier systems, can be null + * if not set + * @see shortcutDefault() + * @see shortcutDefault3() + * @see useFourModifierKeys() + */ + const KShortcut& shortcutDefault4() const { return m_cutDefault4; } + + /** + * Returns the receiver of signals. + * @return the receiver of signals (can be 0 if not set) + */ + const QObject* objSlotPtr() const { return m_pObjSlot; } + + /** + * Returns the slot for the signal. + * @return the slot for the signal + */ + const char* methodSlotPtr() const { return m_psMethodSlot; } + + /** + * Checks whether the user can configure the action. + * @return true if configurable, false otherwise + */ + bool isConfigurable() const { return m_bConfigurable; } + + /** + * Checks whether the action is enabled. + * @return true if enabled, false otherwise + */ + bool isEnabled() const { return m_bEnabled; } + + /** + * Sets the name of the accelerator action. + * @param name the new name + */ + void setName( const QString& name ); + + /** + * Sets the user-readable label of the accelerator action. + * @param label the new label (i18n!) + */ + void setLabel( const QString& label ); + + /** + * Sets the What's This text for the accelerator action. + * @param whatsThis the new What's This text (i18n!) + */ + void setWhatsThis( const QString& whatsThis ); + + /** + * Sets the new shortcut of the accelerator action. + * @param rgCuts the shortcut to set + * @return true if successful, false otherwise + */ + bool setShortcut( const KShortcut& rgCuts ); + + /** + * Sets the slot of the accelerator action. + * @param pObjSlot the receiver object of the signal + * @param psMethodSlot the slot for the signal + */ + void setSlot( const QObject* pObjSlot, const char* psMethodSlot ); + + /** + * Enables or disabled configuring the action. + * @param configurable true to enable configurability, false to disable + */ + void setConfigurable( bool configurable ); + + /** + * Enables or disabled the action. + * @param configurable true to enable the action, false to disable + */ + void setEnabled( bool enable ); + + /** + * Retrieves the id set using setID. + * @return the id of the accelerator action + */ + int getID() const { return m_nIDAccel; } + + /** + * Allows you to set an id that will be used as the action + * signal's argument. + * + * @param n the new id + * @see getID() + */ + void setID( int n ) { m_nIDAccel = n; } + + /** + * Checkes whether the action is connected (emits signals). + * @return true if connected, false otherwise + */ + bool isConnected() const; + + /** + * Sets a key sequence of the action's shortcut. + * @param i the position of the sequence + * @param keySeq the new new sequence + * @return true if successful, false otherwise + * @see KShortcut::setSeq() + */ + bool setKeySequence( uint i, const KKeySequence &keySeq ); + + /** + * Clears the action's shortcut. It will not contain any sequences after + * calling this method. + * @see KShortcut::clear() + */ + void clearShortcut(); + + /** + * Checks whether the action's shortcut contains the given key sequence. + * @param keySeq the key sequence to check + * @return true if the shortcut contains the given sequence + * @see KShortcut::contains() + */ + bool contains( const KKeySequence &keySeq ); + + /** + * Returns the string representation of the action's shortcut. + * @return the string representation of the action's shortcut. + * @see KShortcut::toString() + */ + QString toString() const; + + /** + * @internal + */ + QString toStringInternal() const; + + /** + * Returns true if four modifier keys will be used. + * @return true if four modifier keys will be used. + */ + static bool useFourModifierKeys(); + + /** + * Selects 3 or 4 modifier default shortcuts. + * @param use true to use 4 modifier shortcuts, false to use + * 3 modifier shortcuts + */ + static void useFourModifierKeys( bool use ); + + protected: + QString m_sName, + m_sLabel, + m_sWhatsThis; + KShortcut m_cut; + KShortcut m_cutDefault3, m_cutDefault4; + const QObject* m_pObjSlot; + const char* m_psMethodSlot; + bool m_bConfigurable, + m_bEnabled; + int m_nIDAccel; + uint m_nConnections; + + void incConnections(); + void decConnections(); + + private: + static int g_bUseFourModifierKeys; + class KAccelActionPrivate* d; + + friend class KAccelActions; + friend class KAccelBase; +}; + +//--------------------------------------------------------------------- +// KAccelActions +//--------------------------------------------------------------------- + +/** + * @internal + * This class represents a collection of KAccelAction objects. + * + * @short A collection of accelerator actions + * @see KAccelAction + */ +class KAccelActions +{ + public: + /** + * Creates a new, empty KAccelActions object. + */ + KAccelActions(); + + /** + * Copy constructor (deep copy). + */ + KAccelActions( const KAccelActions& ); + virtual ~KAccelActions(); + + /** + * Removes all items from this collection. + */ + void clear(); + + /** + * Initializes this object with the given actions. + * It will make a deep copy of all actions. + * @param actions the actions to copy + * @return true if successful, false otherwise + */ + bool init( const KAccelActions &actions ); + + /** + * Loads the actions from the given configuration file. + * + * @param config the configuration file to load from + * @param sGroup the group in the configuration file + * @return true if successful, false otherwise + */ + bool init( KConfigBase& config, const QString& sGroup ); + + /** + * Updates the shortcuts of all actions in this object + * with the shortcuts from the given object. + * @param shortcuts the collection that contains the new + * shortcuts + */ + void updateShortcuts( KAccelActions &shortcuts ); + + /** + * Retrieves the index of the action with the given name. + * @param sAction the action to search + * @return the index of the action, or -1 if not found + */ + int actionIndex( const QString& sAction ) const; + + /** + * Returns the action with the given @p index. + * @param index the index of an action. You must not + * use an index that is too high. + * @return the KAccelAction with the given index + * @see count() + */ + KAccelAction* actionPtr( uint index ); + + /** + * Returns the action with the given @p index. + * @param index the index of an action. You must not + * use an index that is too high. + * @return the KAccelAction with the given index + * @see count() + */ + const KAccelAction* actionPtr( uint index ) const; + + /** + * Returns the action with the given name. + * @param aAction the name of the action to search + * @return the KAccelAction with the given name, or 0 + * if not found + */ + KAccelAction* actionPtr( const QString& sAction ); + + /** + * Returns the action with the given name. + * @param aAction the name of the action to search + * @return the KAccelAction with the given name, or 0 + * if not found + */ + const KAccelAction* actionPtr( const QString& sAction ) const; + + /** + * Returns the action with the given key sequence. + * @param cut the sequence to search for + * @return the KAccelAction with the given sequence, or 0 + * if not found + */ + KAccelAction* actionPtr( KKeySequence cut ); + + /** + * Returns the action with the given @p index. + * @param index the index of an action. You must not + * use an index that is too high. + * @return the KAccelAction with the given index + * @see actionPtr() + * @see count() + */ + KAccelAction& operator []( uint index ); + + /** + * Returns the action with the given @p index. + * @param index the index of an action. You must not + * use an index that is too high. + * @return the KAccelAction with the given index + * @see actionPtr() + * @see count() + */ + const KAccelAction& operator []( uint index ) const; + + /** + * Inserts an action into the collection. + * @param sName the name of the accelerator + * @param sLabel the label of the accelerator (i18n!) + * @param sWhatsThis the What's This text (18n!) + * @param cutDef3 the default shortcut for 3 modifier systems + * @param cutDef4 the default shortcut for 4 modifier systems + * @param pObjSlot the receiver of a signal when the key has been + * pressed + * @param psMethodSlot the slot to connect for key presses. Receives + * an int, as set by setID(), as only argument + * @param bConfigurable if true the user can configure the shortcut + * @param bEnabled true if the accelerator should be enabled + * @return the new action + */ + KAccelAction* insert( const QString& sAction, const QString& sLabel, const QString& sWhatsThis, + const KShortcut& rgCutDefaults3, const KShortcut& rgCutDefaults4, + const QObject* pObjSlot = 0, const char* psMethodSlot = 0, + bool bConfigurable = true, bool bEnabled = true ); + + /** + * Inserts an action into the collection. + * @param sName the name of the accelerator + * @param sLabel the label of the accelerator (i18n!) + * @return the new action + */ + KAccelAction* insert( const QString& sName, const QString& sLabel ); + + /** + * Removes the given action. + * @param sAction the name of the action. + * @return true if successful, false otherwise + */ + bool remove( const QString& sAction ); + + /** + * Loads the actions from the given configuration file. + * + * @param sConfigGroup the group in the configuration file + * @param pConfig the configuration file to load from + * @return true if successful, false otherwise + */ + bool readActions( const QString& sConfigGroup = "Shortcuts", KConfigBase* pConfig = 0 ); + + /** + * Writes the actions to the given configuration file. + * + * @param sConfigGroup the group in the configuration file + * @param pConfig the configuration file to save to + * @param bWriteAll true to write all actions + * @param bGlobal true to write to the global configuration file + * @return true if successful, false otherwise + */ + bool writeActions( const QString& sConfigGroup = "Shortcuts", KConfigBase* pConfig = 0, + bool bWriteAll = false, bool bGlobal = false ) const; + + /** + * Emit a keycodeChanged signal. + */ + void emitKeycodeChanged(); + + /** + * Returns the number of actions in the collection. + * @return the number of actions + */ + uint count() const; + + protected: + KAccelBase* m_pKAccelBase; + KAccelAction** m_prgActions; + uint m_nSizeAllocated, m_nSize; + + void resize( uint ); + void insertPtr( KAccelAction* ); + + private: + class KAccelActionsPrivate* d; + + KAccelActions( KAccelBase* ); + void initPrivate( KAccelBase* ); + KAccelActions& operator =( KAccelActions& ); + + friend class KAccelBase; +}; + +#endif // _KACCELACTION_H diff --git a/extra/kde322/kaccelbase.h b/extra/kde322/kaccelbase.h new file mode 100644 index 0000000..3ddce3a --- /dev/null +++ b/extra/kde322/kaccelbase.h @@ -0,0 +1,230 @@ +/* This file is part of the KDE libraries + Copyright (C) 2001 Ellis Whitehead + + This library 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. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef _KACCELBASE_H +#define _KACCELBASE_H + +#include +#include +#include +#include +#include + +#include "kaccelaction.h" +#include "kkeyserver_x11.h" + +class QPopupMenu; +class QWidget; + +//---------------------------------------------------- + +/** + * @internal + * Handle keyboard accelerators. + * + * Allow an user to configure + * key bindings through application configuration files or through the + * KKeyChooser GUI. + * + * A KAccel contains a list of accelerator items. Each accelerator item + * consists of an action name and a keyboard code combined with modifiers + * (Shift, Ctrl and Alt.) + * + * For example, "Ctrl+P" could be a shortcut for printing a document. The key + * codes are listed in ckey.h. "Print" could be the action name for printing. + * The action name identifies the key binding in configuration files and the + * KKeyChooser GUI. + * + * When pressed, an accelerator key calls the slot to which it has been + * connected. Accelerator items can be connected so that a key will activate + * two different slots. + * + * A KAccel object handles key events sent to its parent widget and to all + * children of this parent widget. + * + * Key binding reconfiguration during run time can be prevented by specifying + * that an accelerator item is not configurable when it is inserted. A special + * group of non-configurable key bindings are known as the + * standard accelerators. + * + * The standard accelerators appear repeatedly in applications for + * standard document actions such as printing and saving. Convenience methods are + * available to insert and connect these accelerators which are configurable on + * a desktop-wide basis. + * + * It is possible for a user to choose to have no key associated with + * an action. + * + * The translated first argument for insertItem() is used only + * in the configuration dialog. + *\code + * KAccel *a = new KAccel( myWindow ); + * // Insert an action "Scroll Up" which is associated with the "Up" key: + * a->insertItem( i18n("Scroll Up"), "Scroll Up", "Up" ); + * // Insert an action "Scroll Down" which is not associated with any key: + * a->insertItem( i18n("Scroll Down"), "Scroll Down", 0); + * a->connectItem( "Scroll up", myWindow, SLOT( scrollUp() ) ); + * // a->insertStdItem( KStdAccel::Print ); //not necessary, since it + * // is done automatially with the + * // connect below! + * a->connectItem(KStdAccel::Print, myWindow, SLOT( printDoc() ) ); + * + * a->readSettings(); + *\endcode + * + * If a shortcut has a menu entry as well, you could insert them like + * this. The example is again the KStdAccel::Print from above. + * + * \code + * int id; + * id = popup->insertItem("&Print",this, SLOT(printDoc())); + * a->changeMenuAccel(popup, id, KStdAccel::Print ); + * \endcode + * + * If you want a somewhat "exotic" name for your standard print action, like + * id = popup->insertItem(i18n("Print &Document"),this, SLOT(printDoc())); + * it might be a good idea to insert the standard action before as + * a->insertStdItem( KStdAccel::Print, i18n("Print Document") ) + * as well, so that the user can easily find the corresponding function. + * + * This technique works for other actions as well. Your "scroll up" function + * in a menu could be done with + * + * \code + * id = popup->insertItem(i18n"Scroll &up",this, SLOT(scrollUp())); + * a->changeMenuAccel(popup, id, "Scroll Up" ); + * \endcode + * + * Please keep the order right: First insert all functions in the + * acceleratior, then call a -> readSettings() and @em then build your + * menu structure. + * + * @short Configurable key binding support. + * @version $Id: kaccelbase.h,v 1.26 2003/08/16 19:44:57 coolo Exp $ + */ + +class KAccelBase +{ + public: + enum Init { QT_KEYS = 0x00, NATIVE_KEYS = 0x01 }; + enum Signal { KEYCODE_CHANGED }; + + KAccelBase( int fInitCode ); + virtual ~KAccelBase(); + + uint actionCount() const; + KAccelActions& actions(); + bool isEnabled() const; + + KAccelAction* actionPtr( const QString& sAction ); + const KAccelAction* actionPtr( const QString& sAction ) const; + KAccelAction* actionPtr( const KKey& key ); + KAccelAction* actionPtr( const KKeyServer::Key& key ); + + const QString& configGroup() const { return m_sConfigGroup; } + void setConfigGroup( const QString& group ); + void setConfigGlobal( bool global ); + virtual void setEnabled( bool bEnabled ) = 0; + bool getAutoUpdate() { return m_bAutoUpdate; } + // return value of AutoUpdate flag before this call. + bool setAutoUpdate( bool bAuto ); + +// Procedures for manipulating Actions. + //void clearActions(); + + KAccelAction* insert( const QString& sName, const QString& sDesc ); + KAccelAction* insert( + const QString& sAction, const QString& sDesc, const QString& sHelp, + const KShortcut& rgCutDefaults3, const KShortcut& rgCutDefaults4, + const QObject* pObjSlot, const char* psMethodSlot, + bool bConfigurable = true, bool bEnabled = true ); + bool remove( const QString& sAction ); + bool setActionSlot( const QString& sAction, const QObject* pObjSlot, const char* psMethodSlot ); + + bool updateConnections(); + + bool setShortcut( const QString& sAction, const KShortcut& cut ); + +// Modify individual Action sub-items + bool setActionEnabled( const QString& sAction, bool bEnable ); + + /** + * Read all key associations from @p config, or (if @p config + * is zero) from the application's configuration file + * KGlobal::config(). + * + * The group in which the configuration is stored can be + * set with setConfigGroup(). + */ + void readSettings( KConfigBase* pConfig = 0 ); + + /** + * Write the current configurable associations to @p config, + * or (if @p config is zero) to the application's + * configuration file. + */ + void writeSettings( KConfigBase* pConfig = 0 ) const; + + QPopupMenu* createPopupMenu( QWidget* pParent, const KKeySequence& ); + + // Protected methods + protected: + void slotRemoveAction( KAccelAction* ); + + struct X; + void createKeyList( QValueVector& rgKeys ); + bool insertConnection( KAccelAction* ); + bool removeConnection( KAccelAction* ); + + virtual bool emitSignal( Signal ) = 0; + virtual bool connectKey( KAccelAction&, const KKeyServer::Key& ) = 0; + virtual bool connectKey( const KKeyServer::Key& ) = 0; + virtual bool disconnectKey( KAccelAction&, const KKeyServer::Key& ) = 0; + virtual bool disconnectKey( const KKeyServer::Key& ) = 0; + + protected: + struct ActionInfo + { + KAccelAction* pAction; + uint iSeq, iVariation; + //ActionInfo* pInfoNext; // nil if only one action uses this key. + + ActionInfo() { pAction = 0; iSeq = 0xffff; iVariation = 0xffff; } + ActionInfo( KAccelAction* _pAction, uint _iSeq, uint _iVariation ) + { pAction = _pAction; iSeq = _iSeq; iVariation = _iVariation; } + }; + typedef QMap KKeyToActionMap; + + KAccelActions m_rgActions; + KKeyToActionMap m_mapKeyToAction; + QValueList m_rgActionsNonUnique; + bool m_bNativeKeys; // Use native key codes instead of Qt codes + bool m_bEnabled; + bool m_bConfigIsGlobal; + QString m_sConfigGroup; + bool m_bAutoUpdate; + KAccelAction* mtemp_pActionRemoving; + + private: + KAccelBase& operator =( const KAccelBase& ); + + friend class KAccelActions; +}; + +#endif // _KACCELBASE_H diff --git a/extra/kde322/kicontheme.h b/extra/kde322/kicontheme.h new file mode 100644 index 0000000..a360a15 --- /dev/null +++ b/extra/kde322/kicontheme.h @@ -0,0 +1,334 @@ +/* vi: ts=8 sts=4 sw=4 + * + * $Id: kicontheme.h,v 1.29 2003/11/02 14:50:34 carewolf Exp $ + * + * This file is part of the KDE project, module kdecore. + * Copyright (C) 2000 Geert Jansen + * Antonio Larrosa + * + * This is free software; it comes under the GNU Library General + * Public License, version 2. See the file "COPYING.LIB" for the + * exact licensing terms. + * + */ + +#ifndef __KIconTheme_h_Included__ +#define __KIconTheme_h_Included__ + +#include +#include +#include + +class KConfig; +//class KIconThemeDir; + +class KIconThemePrivate; + +class KIconPrivate; + +/** + * One icon as found by KIconTheme. Also serves as a namespace containing + * icon related constants. + * @see KIconEffect + * @see KIconTheme + * @see KIconLoader + */ +class KIcon +{ +public: + KIcon() { size = 0; } + + /** + * Return true if this icon is valid, false otherwise. + */ + bool isValid() const { return size != 0; } + + /** + * Defines the context of the icon. + */ + enum Context { + Any, ///< Some icon with unknown purpose. + Action, ///< An action icon (e.g. 'save', 'print'). + Application, ///< An icon that represents an application. + Device, ///< An icon that represents a device. + FileSystem, ///< An icon that represents a file system. + MimeType ///< An icon that represents a mime type (or file type). + }; + + /** + * The type of the icon. + */ + enum Type { + Fixed, ///< Fixed-size icon. + Scalable, ///< Scalable-size icon. + Threshold ///< A threshold icon. + }; + + /** + * The type of a match. + */ + enum MatchType { + MatchExact, ///< Only try to find an exact match. + MatchBest ///< Take the best match if there is no exact match. + + }; + + // if you add a group here, make sure to change the config reading in + // KIconLoader too + /** + * The group an an icon. + */ + enum Group { NoGroup=-1, Desktop=0, FirstGroup=0, Toolbar, + MainToolbar, Small, Panel, LastGroup, User }; + + /** + * These are the standard sizes for icons. + */ + enum StdSizes { + /// small icons for menu entries + SizeSmall=16, + /// medium sized icons for the desktop + SizeMedium=32, + /// large sized icons for the panel + SizeLarge=48, + /// huge sized icons for iconviews + SizeHuge=64 + }; + + /** + * Defines the possible states of an icon. + */ + enum States { DefaultState, ///< The default state. + ActiveState, ///< Icon is active. + DisabledState, ///< Icon is disabled. + LastState ///< Last state (last constant) + }; + + /** + * This defines an overlay, a semi-transparent image that is + * projected onto the icon. They are used to show that the file + * represented by the icon is, for example, locked, zipped or hidden. + */ + enum Overlays { + LockOverlay=0x100, ///< a file is locked + ZipOverlay=0x200, ///< a file is zipped + LinkOverlay=0x400, ///< a fileis a link + HiddenOverlay=0x800, ///< a file is hidden + ShareOverlay=0x1000, ///< a file is shared + OverlayMask = ~0xff + }; + + /** + * The size in pixels of the icon. + */ + int size; + + /** + * The context of the icon. + */ + Context context; + + /** + * The type of the icon: Fixed, Scalable or Threshold. + **/ + Type type; + + /** + * The threshold in case type == Threshold + */ + int threshold; + + /** + * The full path of the icon. + */ + QString path; + +private: + KIconPrivate *d; +}; + +inline KIcon::Group& operator++(KIcon::Group& group) { group = static_cast(group+1); return group; } +inline KIcon::Group operator++(KIcon::Group& group,int) { KIcon::Group ret = group; ++group; return ret; } + +/** + * Class to use/access icon themes in KDE. This class is used by the + * iconloader but can be used by others too. + * @see KIconLoader + */ +class KIconTheme +{ +public: + /** + * Load an icon theme by name. + * @param name the name of the theme (e.g. "hicolor" or "keramik") + * @param appName the name of the application. Can be null. This argument + * allows applications to have themed application icons. + */ + KIconTheme(const QString& name, const QString& appName=QString::null); + ~KIconTheme(); + + /** + * The stylized name of the icon theme. + * @return the (human-readable) name of the theme + */ + QString name() const { return mName; } + + /** + * A description for the icon theme. + * @return a human-readable description of the theme, QString::null + * if there is none + */ + QString description() const { return mDesc; } + + /** + * Return the name of the "example" icon. This can be used to + * present the theme to the user. + * @return the name of the example icon, QString::null if there is none + */ + QString example() const; + + /** + * Return the name of the screenshot. + * @return the name of the screenshot, QString::null if there is none + */ + QString screenshot() const; + + /** + * Returns the name of this theme's link overlay. + * @return the name of the link overlay + */ + QString linkOverlay() const; + + /** + * Returns the name of this theme's zip overlay. + * @return the name of the zip overlay + */ + QString zipOverlay() const; + + /** + * Returns the name of this theme's lock overlay. + * @return the name of the lock overlay + */ + QString lockOverlay() const; + + /** + * Returns the name of this theme's share overlay. + * @return the name of the share overlay + * @since 3.1 + */ + QString shareOverlay () const; + + /** + * Returns the toplevel theme directory. + * @return the directory of the theme + */ + QString dir() const { return mDir; } + + /** + * The themes this icon theme falls back on. + * @return a list of icon themes that are used as fall-backs + */ + QStringList inherits() const { return mInherits; } + + /** + * The icon theme exists? + * @return true if the icon theme is valid + */ + bool isValid() const; + + /** + * The icon theme should be hidden to the user? + * @return true if the icon theme is hidden + * @since 3.1 + */ + bool isHidden() const; + + /** + * The minimum display depth required for this theme. This can either + * be 8 or 32. + * @return the minimum bpp (8 or 32) + */ + int depth() const { return mDepth; } + + /** + * The default size of this theme for a certain icon group. + * @param group The icon group. See KIcon::Group. + * @return The default size in pixels for the given icon group. + */ + int defaultSize(KIcon::Group group) const; + + /** + * Query available sizes for a group. + * @param group The icon group. See KIcon::Group. + * @return a list of available sized for the given group + */ + QValueList querySizes(KIcon::Group group) const; + + /** + * Query available icons for a size and context. + * @param size the size of the icons + * @param context the context of the icons + * @return the list of icon names + */ + QStringList queryIcons(int size, KIcon::Context context = KIcon::Any) const; + + /** + * Query available icons for a context and preferred size. + * @param size the size of the icons + * @param context the context of the icons + * @return the list of icon names + */ + QStringList queryIconsByContext(int size, KIcon::Context context = KIcon::Any) const; + + + /** + * Lookup an icon in the theme. + * @param name The name of the icon, without extension. + * @param size The desired size of the icon. + * @param match The matching mode. KIcon::MatchExact returns an icon + * only if matches exactly. KIcon::MatchBest returns the best matching + * icon. + * @return A KIcon class that describes the icon. If an icon is found, + * @see KIcon::isValid will return true, and false otherwise. + */ + KIcon iconPath(const QString& name, int size, KIcon::MatchType match) const; + + /** + * List all icon themes installed on the system, global and local. + * @return the list of all icon themes + */ + static QStringList list(); + + /** + * Returns the current icon theme. + * @return the name of the current theme + */ + static QString current(); + + /** + * Reconfigure the theme. + */ + static void reconfigure(); + + /** + * Returns the default icon theme. + * @return the name of the default theme name + * @since 3.1 + */ + static QString defaultThemeName(); + +private: + int mDefSize[8]; + QValueList mSizes[8]; + + int mDepth; + QString mDir, mName, mDesc; + QStringList mInherits; +// QPtrList mDirs; + KIconThemePrivate *d; + + static QString *_theme; + static QStringList *_theme_list; +}; + +#endif diff --git a/extra/kde322/kkeyserver_x11.h b/extra/kde322/kkeyserver_x11.h new file mode 100644 index 0000000..cf1b360 --- /dev/null +++ b/extra/kde322/kkeyserver_x11.h @@ -0,0 +1,433 @@ +#ifndef _KKEYSERVER_X11_H +#define _KKEYSERVER_X11_H + +#include "kshortcut.h" +#include "kkeynative.h" + +/** + * A collection of functions for the conversion of key presses and + * their modifiers from the window system (X11) specific format + * to the generic format and vice-versa. + */ +namespace KKeyServer +{ + /** + * Supplement enum KKey::ModFlag + * @since 3.1 + */ + enum ExtraModFlag { MODE_SWITCH = 0x2000 }; + + /** + * Represents a key symbol. + * @see KKey + * @see KKeyServer + */ + struct Sym + { + public: + /// the actual value of the symbol + uint m_sym; + + /// Creates a null symbol. + Sym() + { m_sym = 0; } + /** + * Creates asymbol with the given value. + * @param sym the value + */ + Sym( uint sym ) + { m_sym = sym; } + /** + * Creates a symbol from the given string description. + * @param s the description of the symbol + * @see toString() + */ + Sym( const QString& s ) + { init( s ); } + + /** + * Initializes the symbol with the given Qt key code. + * @param keyQt the qt key code + * @return true if successful, false otherwise + * @see Qt::Key + */ + bool initQt( int keyQt ); + + /** + * Initializes the key with the given string description. + * @param s the string description + * @return true if successful, false otherwise + * @see toString() + */ + bool init( const QString &s ); + + /** + * Returns the qt key code of the symbol. + * @return the qt key code + */ + int qt() const; + + /** + * @internal + */ + QString toStringInternal() const; + + /** + * Returns the string representation of the symbol. + * @return the string representation of the symbol + */ + QString toString() const; + + /** + * Returns the mods that are required for this symbol as + * ORed KKey::ModFlag's. For example, Break requires a + * Ctrl to be valid. + * @return the required KKey::ModFlag's + * @see KKey::ModFlag + */ + uint getModsRequired() const; + + /** + * TODO: please find out what this method does and document it + */ + uint getSymVariation() const; + + /** + * Casts the symbol to its integer representation. + */ + operator uint() const { return m_sym; } + + /** + * Overloaded operator to convert ints to Sym. + */ + Sym& operator =( uint sym ) { m_sym = sym; return *this; } + + private: + QString toString( bool bUserSpace ) const; + + static void capitalizeKeyname( QString& ); + }; + + /** + * Represents a key press. + * @see KKey + */ + struct Key + { + /// Code for native Keys in Qt + enum { CODE_FOR_QT = 256 }; + + /// The code of the key + uint m_code; + + /// The modifiers of the key + uint m_mod; + + /// The symbol of the key + uint m_sym; + + /** + * Initializes the key with a KKey. + * @param key the key to get the data from + * @param bQt true to take the Qt keycode, false + * for the native key code + * @see Qt::Key + * @see KKeyNative + */ + bool init( const KKey& key, bool bQt ); + + /** + * Checks whether the key code is a native code. + * @return true if native code of the window system, + * false if it is a Qt keycode + * @see Qt::Key + * @see KKeyNative + */ + bool isNative() const { return m_code != CODE_FOR_QT; } + + /** + * Returns the code of the key. + * @return the code of the key + */ + uint code() const { return m_code; } + + /** + * Returns the modifiers of the key. + * @return the modifiers of the key + */ + uint mod() const { return m_mod; } + + /** + * Returns the symbol of the key. + * @return the symbol of the key + */ + uint sym() const { return m_sym; } + + /** + * Returns the qt key code. + * @return the qt key code + */ + int keyCodeQt() const { return (int) m_sym; } + + /** + * Sets the qt key code. + * @param keyQt the qt key code + */ + void setKeycodeQt( int keyQt ) + { m_code = CODE_FOR_QT; m_sym = keyQt; } + + /** + * Initializes this key with a KKeyNative. + * @return this key + */ + Key& operator =( const KKeyNative& key ); + + /** + * Compares this key with the given Key object. Returns a + * negative number if the given Key is larger, 0 if they + * are equal and a positive number this Key is larger. The + * returned value is the difference between the symbol, modifier + * or code, whatever is non-zero first. + * + * @param key the key to compare with this key + * @return a negative number if the given Key is larger, 0 if + * they are equal and a positive number this Key is larger + */ + int compare( const Key& key ) const; + + /** + * Compares the symbol, modifiers and code of both keys. + * @see compare() + */ + bool operator ==( const Key& b ) const + { return compare( b ) == 0; } + + /** + * Compares the symbol, modifiers and code of both keys. + * @see compare() + */ + bool operator <( const Key& b ) const + { return compare( b ) < 0; } + + /** + * Converts this Key to a KKey. + * @return the KKey + */ + KKey key() const; + }; + + /** + * TODO: please document this class + */ + struct Variations + { + enum { MAX_VARIATIONS = 4 }; + + Key m_rgkey[MAX_VARIATIONS]; + uint m_nVariations; + + Variations() { m_nVariations = 0; } + + void init( const KKey&, bool bQt ); + + uint count() const { return m_nVariations; } + const Key& key( uint i ) const { return m_rgkey[i]; } + }; + + /// TODO: please document + bool initializeMods(); + + /** + * Returns the equivalent X modifier mask of the given modifier flag. + * @param modFlag the generic flags to check + * @return the window system specific flags + */ + uint modX( KKey::ModFlag modFlag ); + + /** + * Returns true if the current keyboard layout supports the Win key. + * Specifically, whether the Super or Meta keys are assigned to an X modifier. + * @return true if the keyboard has a Win key + * @see modXWin() + */ + bool keyboardHasWinKey(); + + /** + * Returns the X11 Shift modifier mask/flag. + * @return the X11 Shift modifier mask/flag. + * @see accelModMaskX() + */ + uint modXShift(); + + /** + * Returns the X11 Lock modifier mask/flag. + * @return the X11 Lock modifier mask/flag. + * @see accelModMaskX() + */ + uint modXLock(); + + /** + * Returns the X11 Ctrl modifier mask/flag. + * @return the X11 Ctrl modifier mask/flag. + * @see accelModMaskX() + */ + uint modXCtrl(); + + /** + * Returns the X11 Alt (Mod1) modifier mask/flag. + * @return the X11 Alt (Mod1) modifier mask/flag. + * @see accelModMaskX() + */ + uint modXAlt(); + + /** + * Returns the X11 NumLock modifier mask/flag. + * @return the X11 NumLock modifier mask/flag. + * @see accelModMaskX() + */ + uint modXNumLock(); + + /** + * Returns the X11 Win (Mod3) modifier mask/flag. + * @return the X11 Win (Mod3) modifier mask/flag. + * @see keyboardHasWinKey() + * @see accelModMaskX() + */ + uint modXWin(); + + /** + * Returns the X11 ScrollLock modifier mask/flag. + * @return the X11 ScrollLock modifier mask/flag. + * @see accelModMaskX() + */ + uint modXScrollLock(); + + /** + * Returns bitwise OR'ed mask containing Shift, Ctrl, Alt, and + * Win (if available). + * @see modXShift() + * @see modXLock() + * @see modXCtrl() + * @see modXAlt() + * @see modXNumLock() + * @see modXWin() + * @see modXScrollLock() + */ + uint accelModMaskX(); + + /** + * Extracts the symbol from the given Qt key and + * converts it to a symbol. + * @param keyQt the qt key code + * @param sym if successful, the symbol will be written here + * @return true if successful, false otherwise + * @see Qt::Key + * @see Sym + */ + bool keyQtToSym( int keyQt, uint& sym ); + + /** + * Extracts the modifiers from the given Qt key and + * converts them in a mask of ORed KKey::ModFlag modifiers. + * @param keyQt the qt key code + * @param mod if successful, the modifiers will be written here + * @return true if successful, false otherwise + * @see Qt::Key + */ + bool keyQtToMod( int keyQt, uint& mod ); + + /** + * Converts the given symbol to a Qt key code. + * @param sym the symbol + * @param keyQt if successful, the qt key code will be written here + * @return true if successful, false otherwise + * @see Qt::Key + * @see Sym + */ + bool symToKeyQt( uint sym, int& keyQt ); + + /** + * Converts the mask of ORed KKey::ModFlag modifiers to + * a mask of ORed Qt key code modifiers. + * @param mod the mask of KKey::ModFlag modifiers + * @param modQt the mask of Qt key code modifiers will be written here, + * if successful + * @return true if successful, false otherwise + * @see Qt::Key + * @see KKey + */ + bool modToModQt( uint mod, int& modQt ); + + /** + * Converts the mask of ORed KKey::ModFlag modifiers to + * a mask of ORed X11 modifiers. + * @param mod the mask of KKey::ModFlag modifiers + * @param modX the mask of X11 modifiers will be written here, + * if successful + * @return true if successful, false otherwise + * @see KKey + */ + bool modToModX( uint mod, uint& modX ); + + /** + * Converts the mask of ORed X11 modifiers to + * a mask of ORed Qt key code modifiers. + * @param modX the mask of X11 modifiers + * @param modQt the mask of Qt key code modifiers will be written here + * if successful + * @return true if successful, false otherwise + * @see Qt::Key + */ + bool modXToModQt( uint modX, int& modQt ); + + /** + * Converts the mask of ORed X11 modifiers to + * a mask of ORed KKey::ModFlag modifiers. + * @param modX the mask of X11 modifiers + * @param mod the mask of KKey::ModFlag modifiers will be written here, + * if successful + * @return true if successful, false otherwise + * @see KKey + */ + bool modXToMod( uint modX, uint& mod ); + + /** + * Converts a X11 key code and a mask of ORed X11 modifiers + * into a X11 symbol. + * converts it to a symbol. + * @param codeX the X11 key code + * @param modX the mask of ORed X11 modifiers + * @param symX if successful, the X11 symbol will be written here + * @return true if successful, false otherwise + * @see Qt::Key + * @see Sym + */ + bool codeXToSym( uchar codeX, uint modX, uint& symX ); + + /** + * @internal + */ + QString modToStringInternal( uint mod ); + + /** + * Converts the mask of ORed KKey::ModFlag modifiers to a + * user-readable string. + * @param mod the mask of ORed KKey::ModFlag modifiers + * @return the user-readable string + */ + QString modToStringUser( uint mod ); + + /** + * @internal + * Unimplemented? + */ + bool stringToSymMod( const QString&, uint& sym, uint& mod ); + + /** + * @internal + * Unimplemented? + */ + void keyQtToKeyX( uint keyCombQt, unsigned char *pKeyCodeX, uint *pKeySymX, uint *pKeyModX ); +} + +#endif // !_KKEYSERVER_X11_H diff --git a/extra/kde322/konsole_part.h b/extra/kde322/konsole_part.h new file mode 100644 index 0000000..ba89800 --- /dev/null +++ b/extra/kde322/konsole_part.h @@ -0,0 +1,223 @@ +/* + This file is part of the KDE system + Copyright (C) 1999,2000 Boloni Laszlo + + 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. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. + */ + +#ifndef __KONSOLE_PART_H__ +#define __KONSOLE_PART_H__ + +#include +#include + + +#include + +#include + +//#include "schema.h" +//#include "session.h" + +class KInstance; +class konsoleBrowserExtension; +class QPushButton; +class QSpinBox; +class KPopupMenu; +class QCheckBox; +class KRootPixmap; +class KToggleAction; +class KSelectAction; + +namespace KParts { class GUIActivateEvent; } + +class konsoleFactory : public KParts::Factory +{ + Q_OBJECT +public: + konsoleFactory(); + virtual ~konsoleFactory(); + + virtual KParts::Part* createPartObject(QWidget *parentWidget = 0, const char *widgetName = 0, + QObject* parent = 0, const char* name = 0, + const char* classname = "KParts::Part", + const QStringList &args = QStringList()); + + static KInstance *instance(); + + private: + static KInstance *s_instance; + static KAboutData *s_aboutData; +}; + +////////////////////////////////////////////////////////////////////// + +class konsolePart: public KParts::ReadOnlyPart, public TerminalInterface +{ + Q_OBJECT + public: + konsolePart(QWidget *parentWidget, const char *widgetName, QObject * parent, const char *name, const char *classname = 0); + virtual ~konsolePart(); + +signals: + void processExited(); + void receivedData( const QString& s ); + protected: + virtual bool openURL( const KURL & url ); + virtual bool openFile() {return false;} // never used + virtual bool closeURL() {return true;} + virtual void guiActivateEvent( KParts::GUIActivateEvent * event ); + + protected slots: + void showShell(); + void slotProcessExited(); + void slotReceivedData( const QString& s ); + +// void doneSession(TESession*); + void sessionDestroyed(); +// void configureRequest(TEWidget*,int,int x,int y); + void updateTitle(); + void enableMasterModeConnections(); + + private slots: + void emitOpenURLRequest(const QString &url); + + void readProperties(); + void saveProperties(); + + void sendSignal(int n); + void closeCurrentSession(); + + void notifySize(int,int); + + void slotToggleFrame(); + void slotSelectScrollbar(); + void slotSelectFont(); + void schema_menu_check(); + void keytab_menu_activated(int item); + void updateSchemaMenu(); + void setSchema(int n); + void pixmap_menu_activated(int item); + void schema_menu_activated(int item); + void slotHistoryType(); + void slotSelectBell(); + void slotSelectLineSpacing(); + void slotBlinkingCursor(); + void slotWordSeps(); + void fontNotFound(); + + private: + konsoleBrowserExtension *m_extension; + KURL currentURL; + + void makeGUI(); + void applySettingsToGUI(); + + void setFont(int fontno); +// void setSchema(ColorSchema* s); + void updateKeytabMenu(); + + bool doOpenStream( const QString& ); + bool doWriteStream( const QByteArray& ); + bool doCloseStream(); + + QWidget* parentWidget; +// TEWidget* te; +// TESession* se; +// ColorSchemaList* colors; + KRootPixmap* rootxpm; + + KToggleAction* blinkingCursor; + KToggleAction* showFrame; + + KSelectAction* selectBell; + KSelectAction* selectFont; + KSelectAction* selectLineSpacing; + KSelectAction* selectScrollbar; + + KPopupMenu* m_keytab; + KPopupMenu* m_schema; + KPopupMenu* m_signals; + KPopupMenu* m_options; + KPopupMenu* m_popupMenu; + + QFont defaultFont; + + QString pmPath; // pixmap path + QString s_schema; + QString s_kconfigSchema; + QString s_word_seps; // characters that are considered part of a word + QString fontNotFound_par; + + bool b_framevis:1; + bool b_histEnabled:1; + + int curr_schema; // current schema no + int n_bell; + int n_font; + int n_keytab; + int n_render; + int n_scroll; + unsigned m_histSize; + bool m_runningShell; + bool m_streamEnabled; +public: + // these are the implementations for the TermEmuInterface + // functions... + void startProgram( const QString& program, + const QStrList& args ); + void showShellInDir( const QString& dir ); + void sendInput( const QString& text ); +}; + +////////////////////////////////////////////////////////////////////// + +/*class HistoryTypeDialog : public KDialogBase +{ + Q_OBJECT +public: + HistoryTypeDialog(const HistoryType& histType, + unsigned int histSize, + QWidget *parent); + +public slots: + void slotDefault(); + void slotSetUnlimited(); + void slotHistEnable(bool); + + unsigned int nbLines() const; + bool isOn() const; + +protected: + QCheckBox* m_btnEnable; + QSpinBox* m_size; + QPushButton* m_setUnlimited; +};*/ + +////////////////////////////////////////////////////////////////////// + +class konsoleBrowserExtension : public KParts::BrowserExtension +{ + Q_OBJECT + friend class konsolePart; + public: + konsoleBrowserExtension(konsolePart *parent); + virtual ~konsoleBrowserExtension(); + + void emitOpenURLRequest(const KURL &url); +}; + +#endif diff --git a/extra/kde322/kpanelmenu.h b/extra/kde322/kpanelmenu.h new file mode 100644 index 0000000..83c3268 --- /dev/null +++ b/extra/kde322/kpanelmenu.h @@ -0,0 +1,181 @@ +/***************************************************************** + +Copyright (c) 1996-2000 the kicker authors. See file AUTHORS. + (c) 2001 Michael Goffioul + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN +AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +******************************************************************/ + +#ifndef __KPANELMENU_H__ +#define __KPANELMENU_H__ + +#include +#include +#include + +class KPanelMenuPrivate; + +/** + * Base class to build dynamically loaded menu entries for the K-menu, or the panel. + * + * This class allows to build menu entries that will be dynamically added either to + * the K-menu, or to the panel as a normal button. These dynamic menus are located + * in shared libraries that will be loaded at runtime by Kicker (the KDE panel). + * + * To build such a menu, you have to inherit this class and implement the pure virtual + * functions #initialize() and slotExec(). You also have to provide a factory + * object in your library, see KLibFactory. This factory is only used to construct + * the menu object. + * + * Finally, you also have to provide a desktop file describing your dynamic menu. The + * relevant entries are: Name, Comment, Icon and X-KDE-Library (which contains the + * library name without any extension). This desktop file has to be installed in + * $KDEDIR/share/apps/kicker/menuext/. + * + * @short Base class to build dynamically loaded menu entries for the K-menu, or the panel. + * @author The kicker maintainer, Michael Goffioul + */ +class KPanelMenu : public KPopupMenu +{ + Q_OBJECT + +public: + /** + * Construct a KPanelMenu object. This is the normal constructor to use when + * building extrernal menu entries. + */ + KPanelMenu(QWidget *parent=0, const char *name=0); + /** + * Constructor used internally by Kicker. You don't really want to use it. + * @param startDir a directory to associate with this menu + * @see path(), setPath() + */ + KPanelMenu(const QString &startDir, QWidget *parent=0, const char *name=0); + /** + * Destructor. + */ + virtual ~KPanelMenu(); + + /** + * Get the directory path associated with this menu, or QString::null if + * there's no such associated path. + * @return the associated directory path + * @see setPath() + */ + const QString& path() const; + /** + * Set a directory path to be associated with this menu. + * @param p the directory path + * @see path() + */ + void setPath(const QString &p); + /** + * Tell if the menu has been initialized, that is it already contains items. + * This is useful when you need to know if you have to clear the menu, or to + * fill it. + * @return the initial state + * @see setInitialized(), initialize() + */ + bool initialized() const; + /** + * Set the initial state. Set it to true when you menu is filled with the items + * you want. + * @param on the initial state + * @see initialized(), initialize() + */ + void setInitialized(bool on); + + /** + * Disable the automatic clearing of the menu. Kicker uses a cache system for + * its menus. After a specific configurable delay, the menu will be cleared. + * Use this function if you want to disable kicker's cache system, and avoid + * the clearing of your menu. + */ + void disableAutoClear(); + +public slots: + /** + * Reinitialize the menu: the menu is first cleared, the initial state is set + * to false, and finally #initialize() is called. Use this if you want to + * refill your menu immediately. + */ + void reinitialize(); + /** + * Deinitialize the menu: the menu is cleared and the initialized state is set to + * false. #initialize() is NOT called. It will be called before the menu is + * next shown, however. Use this slot if you want a delayed reinitialization. + * @since 3.1 + */ + void deinitialize(); + +protected slots: + /** + * This slot is called just before the menu is shown. This allows your menu + * to update itself if needed. However you should instead re-implement + * #initialize to provide this feature. This function is responsible for + * the cache system handling, so if you re-implement it, you should call + * the base function also. Calls #initialize(). + * @see disableAutoClear() + */ + virtual void slotAboutToShow(); + /** + * This is slot is called when an item from the menu has been selected. Your + * applet is then supposed to perform some action. You must re-implement this + * function. + * @param id the ID associated with the selected item + */ + virtual void slotExec(int id) = 0; + /** + * This slots is called to initialize the menu. It is called automatically by + * slotAboutToShow(). By re-implementing this functions, you can reconstruct + * the menu before it is being shown. At the end of this function, you should + * call setInitialize() with true to tell the system that the menu is OK. + * You applet must re-implement this function. + * @see slotAboutToShow(), initialized(), setInitialized() + */ + virtual void initialize() = 0; + /** + * Clears the menu, and update the initial state accordingly. + * @see initialized() + */ + void slotClear(); + +protected: + /** + * Re-implemented for internal reasons. + */ + virtual void hideEvent(QHideEvent *ev); + /** + * For internal use only. Used by constructors. + */ + void init(const QString& path = QString::null); + +protected: + virtual void virtual_hook( int id, void* data ); +private: + void internalInitialize(); + KPanelMenuPrivate *d; +}; + +#define K_EXPORT_KICKER_MENUEXT( libname, classname ) \ + K_EXPORT_COMPONENT_FACTORY( \ + kickermenu_##libname, \ + KGenericFactory("libkickermenu_" #libname) ) + +#endif diff --git a/extra/kde322/krecentdirs.h b/extra/kde322/krecentdirs.h new file mode 100644 index 0000000..71f771b --- /dev/null +++ b/extra/kde322/krecentdirs.h @@ -0,0 +1,68 @@ +/* -*- c++ -*- + * Copyright (C)2000 Waldo Bastian + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * + */ +#ifndef __KRECENTDIRS_H +#define __KRECENTDIRS_H + +#include + +/** + * The goal of this class is to make sure that, when the user needs to + * specify a file via the file selection dialog, this dialog will start + * in the directory most likely to contain the desired files. + * + * This works as follows: Each time the file selection dialog is + * shown, the programmer can specify a "file-class". The file-dialog will + * then start with the directory associated with this file-class. When + * the dialog closes, the directory currently shown in the file-dialog + * will be associated with the file-class. + * + * A file-class can either start with ':' or with '::'. If it starts with + * a single ':' the file-class is specific to the current application. + * If the file-class starts with '::' it is global to all applications. + */ +class KRecentDirs +{ +public: + /** + * Returns a list of directories associated with this file-class. + * The most recently used directory is at the front of the list. + */ + static QStringList list(const QString &fileClass); + + /** + * Returns the most recently used directory accociated with this file-class. + */ + static QString dir(const QString &fileClass); + + /** + * Associates @p directory with @p fileClass + */ + static void add(const QString &fileClass, const QString &directory); +}; + +#endif diff --git a/extra/kde322/ksharedptr.h b/extra/kde322/ksharedptr.h new file mode 100644 index 0000000..e8dc877 --- /dev/null +++ b/extra/kde322/ksharedptr.h @@ -0,0 +1,171 @@ +/* This file is part of the KDE libraries + Copyright (c) 1999 Waldo Bastian + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License version 2 as published by the Free Software Foundation. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ +#ifndef KSharedPTR_H +#define KSharedPTR_H + +/** + * Reference counting for shared objects. If you derive your object + * from this class, then you may use it in conjunction with + * KSharedPtr to control the lifetime of your object. + * + * Specifically, all classes that derive from KShared have an internal + * counter keeping track of how many other objects have a reference to + * their object. If used with KSharedPtr, then your object will + * not be deleted until all references to the object have been + * released. + * + * You should probably not ever use any of the methods in this class + * directly -- let the KSharedPtr take care of that. Just derive + * your class from KShared and forget about it. + * + * @author Waldo Bastian + * @version $Id: ksharedptr.h,v 1.22 2003/08/20 08:01:42 coolo Exp $ + */ +class KShared { +public: + /** + * Standard constructor. This will initialize the reference count + * on this object to 0. + */ + KShared() : count(0) { } + + /** + * Copy constructor. This will @em not actually copy the objects + * but it will initialize the reference count on this object to 0. + */ + KShared( const KShared & ) : count(0) { } + + /** + * Overloaded assignment operator. + */ + KShared &operator=(const KShared & ) { return *this; } + + /** + * Increases the reference count by one. + */ + void _KShared_ref() const { count++; } + + /** + * Releases a reference (decreases the reference count by one). If + * the count goes to 0, this object will delete itself. + */ + void _KShared_unref() const { if (!--count) delete this; } + + /** + * Return the current number of references held. + * + * @return Number of references + */ + int _KShared_count() const { return count; } + +protected: + virtual ~KShared() { } +private: + mutable int count; +}; + +/** + * Can be used to control the lifetime of an object that has derived + * KShared. As long a someone holds a KSharedPtr on some KShared + * object it won't become deleted but is deleted once its reference + * count is 0. This struct emulates C++ pointers perfectly. So just + * use it like a simple C++ pointer. + * + * KShared and KSharedPtr are preferred over QShared / QSharedPtr + * since they are more safe. + * + * @author Waldo Bastian + * @version $Id: ksharedptr.h,v 1.22 2003/08/20 08:01:42 coolo Exp $ + */ +template< class T > +struct KSharedPtr +{ +public: +/** + * Creates a null pointer. + */ + KSharedPtr() + : ptr(0) { } + /** + * Creates a new pointer. + * @param t the pointer + */ + KSharedPtr( T* t ) + : ptr(t) { if ( ptr ) ptr->_KShared_ref(); } + + /** + * Copies a pointer. + * @param p the pointer to copy + */ + KSharedPtr( const KSharedPtr& p ) + : ptr(p.ptr) { if ( ptr ) ptr->_KShared_ref(); } + + /** + * Unreferences the object that this pointer points to. If it was + * the last reference, the object will be deleted. + */ + ~KSharedPtr() { if ( ptr ) ptr->_KShared_unref(); } + + KSharedPtr& operator= ( const KSharedPtr& p ) { + if ( ptr == p.ptr ) return *this; + if ( ptr ) ptr->_KShared_unref(); + ptr = p.ptr; + if ( ptr ) ptr->_KShared_ref(); + return *this; + } + KSharedPtr& operator= ( T* p ) { + if ( ptr == p ) return *this; + if ( ptr ) ptr->_KShared_unref(); + ptr = p; + if ( ptr ) ptr->_KShared_ref(); + return *this; + } + bool operator== ( const KSharedPtr& p ) const { return ( ptr == p.ptr ); } + bool operator!= ( const KSharedPtr& p ) const { return ( ptr != p.ptr ); } + bool operator== ( const T* p ) const { return ( ptr == p ); } + bool operator!= ( const T* p ) const { return ( ptr != p ); } + bool operator!() const { return ( ptr == 0 ); } + operator T*() const { return ptr; } + + /** + * Returns the pointer. + * @return the pointer + */ + T* data() { return ptr; } + + /** + * Returns the pointer. + * @return the pointer + */ + const T* data() const { return ptr; } + + const T& operator*() const { return *ptr; } + T& operator*() { return *ptr; } + const T* operator->() const { return ptr; } + T* operator->() { return ptr; } + + /** + * Returns the number of references. + * @return the number of references + */ + int count() const { return ptr->_KShared_count(); } // for debugging purposes +private: + T* ptr; +}; + +#endif diff --git a/extra/kde322/ksycocafactory.h b/extra/kde322/ksycocafactory.h new file mode 100644 index 0000000..9cc1257 --- /dev/null +++ b/extra/kde322/ksycocafactory.h @@ -0,0 +1,143 @@ +/* This file is part of the KDE libraries + * Copyright (C) 1999 Waldo Bastian + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License version 2 as published by the Free Software Foundation; + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public License + * along with this library; see the file COPYING.LIB. If not, write to + * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA. + **/ + +#ifndef __ksycocafactory_h__ +#define __ksycocafactory_h__ "$Id: ksycocafactory.h,v 1.14 2003/10/29 17:59:18 waba Exp $" + +#include "ksycocatype.h" +#include "ksycocaentry.h" + +#include +#include +class KSycoca; +class QStringList; +class QString; +class KSycocaDict; +class KSycocaResourceList; + +typedef QDict KSycocaEntryDict; + +/** + * @internal + * Base class for sycoca factories + */ +class KSycocaFactory +{ +public: + virtual KSycocaFactoryId factoryId() const = 0; + +protected: // virtual class + /** + * Create a factory which can be used to lookup from/create a database + * (depending on KSycoca::isBuilding()) + */ + KSycocaFactory( KSycocaFactoryId factory_id ); + +public: + virtual ~KSycocaFactory(); + + /** + * @return the position of the factory in the sycoca file + */ + int offset() { return mOffset; } + + /** + * @return the dict, for special use by KBuildSycoca + */ + KSycocaEntryDict * entryDict() { return m_entryDict; } + + /** + * Construct an entry from a config file. + * To be implemented in the real factories. + */ + virtual KSycocaEntry *createEntry(const QString &file, const char *resource) = 0; + + /** + * Add an entry + */ + virtual void addEntry(KSycocaEntry *newEntry, const char *resource); + + /** + * Remove an entry + * Not very fast, use with care. O(N) + */ + void removeEntry(KSycocaEntry *newEntry); + + /** + * Read an entry from the database + */ + virtual KSycocaEntry *createEntry(int offset)=0; + + /** + * Get a list of all entries from the database. + */ + KSycocaEntry::List allEntries(); + + /** + * Saves all entries it maintains as well as index files + * for these entries to the stream 'str'. + * + * Also sets mOffset to the starting position. + * + * The stream is positioned at the end of the last index. + * + * Don't forget to call the parent first when you override + * this function. + */ + virtual void save(QDataStream &str); + + /** + * Writes out a header to the stream 'str'. + * The baseclass positions the stream correctly. + * + * Don't forget to call the parent first when you override + * this function. + */ + virtual void saveHeader(QDataStream &str); + + /** + * @return the resources for which this factory is responsible. + */ + virtual const KSycocaResourceList * resourceList() const { return m_resourceList; } + +private: + int mOffset; + +protected: + int m_sycocaDictOffset; + int m_beginEntryOffset; + int m_endEntryOffset; + QDataStream *m_str; + + KSycocaResourceList *m_resourceList; + KSycocaEntryDict *m_entryDict; + KSycocaDict *m_sycocaDict; +protected: + virtual void virtual_hook( int id, void* data ); +}; + +/** This, instead of a typedef, allows to declare "class ..." in header files + * @internal + */ +class KSycocaFactoryList : public QPtrList +{ +public: + KSycocaFactoryList() { } +}; + +#endif diff --git a/extra/kde322/ktoolbarbutton.h b/extra/kde322/ktoolbarbutton.h new file mode 100644 index 0000000..065617a --- /dev/null +++ b/extra/kde322/ktoolbarbutton.h @@ -0,0 +1,315 @@ +/* This file is part of the KDE libraries + Copyright (C) 1997, 1998 Stephan Kulow (coolo@kde.org) + (C) 1997, 1998 Sven Radej (radej@kde.org) + (C) 1997, 1998 Mark Donohoe (donohoe@kde.org) + (C) 1997, 1998 Matthias Ettrich (ettrich@kde.org) + (C) 2000 Kurt Granroth (granroth@kde.org) + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License version 2 as published by the Free Software Foundation. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +// $Id: ktoolbarbutton.h,v 1.34 2003/09/09 12:40:58 bhards Exp $ +#ifndef _KTOOLBARBUTTON_H +#define _KTOOLBARBUTTON_H + +#include +#include +#include +#include +#include + +class KToolBar; +class KToolBarButtonPrivate; +class KInstance; +class QEvent; +class QPopupMenu; +class QPainter; + +/** + * A toolbar button. This is used internally by KToolBar, use the + * KToolBar methods instead. + * @internal + */ +class KToolBarButton : public QToolButton +{ + Q_OBJECT + +public: + /** + * Construct a button with an icon loaded by the button itself. + * This will trust the button to load the correct icon with the + * correct size. + * + * @param icon Name of icon to load (may be absolute or relative) + * @param id Id of this button + * @param parent This button's parent + * @param name This button's internal name + * @param txt This button's text (in a tooltip or otherwise) + */ + KToolBarButton(const QString& icon, int id, QWidget *parent, + const char *name=0L, const QString &txt=QString::null, + KInstance *_instance = KGlobal::instance()); + + /** + * Construct a button with an existing pixmap. It is not + * recommended that you use this as the internal icon loading code + * will almost always get it "right". + * + * @param pixmap Name of icon to load (may be absolute or relative) + * @param id Id of this button + * @param parent This button's parent + * @param name This button's internal name + * @param txt This button's text (in a tooltip or otherwise) + */ + KToolBarButton(const QPixmap& pixmap, int id, QWidget *parent, + const char *name=0L, const QString &txt=QString::null); + + /** + * Construct a separator button + * + * @param parent This button's parent + * @param name This button's internal name + */ + KToolBarButton(QWidget *parent=0L, const char *name=0L); + + /** + * Standard destructor + */ + ~KToolBarButton(); + +#ifndef KDE_NO_COMPAT + /** + * @deprecated + * Set the pixmap directly for this button. This pixmap should be + * the active one... the dimmed and disabled pixmaps are constructed + * based on this one. However, don't use this function unless you + * are positive that you don't want to use setIcon. + * + * @param pixmap The active pixmap + */ + // this one is from QButton, so #ifdef-ing it out doesn't break BC + virtual void setPixmap(const QPixmap &pixmap) KDE_DEPRECATED; + + /** + * @deprecated + * Force the button to use this pixmap as the default one rather + * then generating it using effects. + * + * @param pixmap The pixmap to use as the default (normal) one + */ + void setDefaultPixmap(const QPixmap& pixmap) KDE_DEPRECATED; + + /** + * @deprecated + * Force the button to use this pixmap when disabled one rather then + * generating it using effects. + * + * @param pixmap The pixmap to use when disabled + */ + void setDisabledPixmap(const QPixmap& pixmap) KDE_DEPRECATED; +#endif + + /** + * Set the text for this button. The text will be either used as a + * tooltip (IconOnly) or will be along side the icon + * + * @param text The button (or tooltip) text + */ + virtual void setText(const QString &text); + + /** + * Set the icon for this button. The icon will be loaded internally + * with the correct size. This function is preferred over setIconSet + * + * @param icon The name of the icon + */ + virtual void setIcon(const QString &icon); + + /// @since 3.1 + virtual void setIcon( const QPixmap &pixmap ) + { QToolButton::setIcon( pixmap ); } + + /** + * Set the pixmaps for this toolbar button from a QIconSet. + * If you call this you don't need to call any of the other methods + * that set icons or pixmaps. + * @param iconset The iconset to use + */ + virtual void setIconSet( const QIconSet &iconset ); + +#ifndef KDE_NO_COMPAT + /** + * @deprecated + * Set the active icon for this button. The pixmap itself is loaded + * internally based on the icon size... .. the disabled and default + * pixmaps, however will only be constructed if generate is + * true. This function is preferred over setPixmap + * + * @param icon The name of the active icon + * @param generate If true, then the other icons are automagically + * generated from this one + */ + KDE_DEPRECATED void setIcon(const QString &icon, bool generate ) { Q_UNUSED(generate); setIcon( icon ); } + + /** + * @deprecated + * Force the button to use this icon as the default one rather + * then generating it using effects. + * + * @param icon The icon to use as the default (normal) one + */ + void setDefaultIcon(const QString& icon) KDE_DEPRECATED; + + /** + * @deprecated + * Force the button to use this icon when disabled one rather then + * generating it using effects. + * + * @param icon The icon to use when disabled + */ + void setDisabledIcon(const QString& icon) KDE_DEPRECATED; +#endif + + /** + * Turn this button on or off + * + * @param flag true or false + */ + void on(bool flag = true); + + /** + * Toggle this button + */ + void toggle(); + + /** + * Turn this button into a toggle button or disable the toggle + * aspects of it. This does not toggle the button itself. + * Use toggle() for that. + * + * @param toggle true or false + */ + void setToggle(bool toggle = true); + + /** + * Return a pointer to this button's popup menu (if it exists) + */ + QPopupMenu *popup(); + + /** + * Returns the button's id. + * @since 3.2 + */ + int id() const; + + /** + * Give this button a popup menu. There will not be a delay when + * you press the button. Use setDelayedPopup if you want that + * behavior. + * + * @param p The new popup menu + * @param unused Has no effect - ignore it. + */ + void setPopup (QPopupMenu *p, bool unused = false); + + /** + * Gives this button a delayed popup menu. + * + * This function allows you to add a delayed popup menu to the button. + * The popup menu is then only displayed when the button is pressed and + * held down for about half a second. + * + * @param p the new popup menu + * @param unused Has no effect - ignore it. + */ + void setDelayedPopup(QPopupMenu *p, bool unused = false); + + /** + * Turn this button into a radio button + * + * @param f true or false + */ + void setRadio(bool f = true); + + /** + * Toolbar buttons naturally will assume the global styles + * concerning icons, icons sizes, etc. You can use this function to + * explicitly turn this off, if you like. + * + * @param no_style Will disable styles if true + */ + void setNoStyle(bool no_style = true); + +signals: + void clicked(int); + void doubleClicked(int); + void pressed(int); + void released(int); + void toggled(int); + void highlighted(int, bool); + +public slots: + /** + * This slot should be called whenever the toolbar mode has + * potentially changed. This includes such events as text changing, + * orientation changing, etc. + */ + void modeChange(); + virtual void setTextLabel(const QString&, bool tipToo); + +protected: + void paletteChange(const QPalette &); + void leaveEvent(QEvent *e); + void enterEvent(QEvent *e); + void drawButton(QPainter *p); + bool eventFilter (QObject *o, QEvent *e); + void showMenu(); + QSize sizeHint() const; + QSize minimumSizeHint() const; + QSize minimumSize() const; + + /// @since 3.1 + bool isRaised() const; + /// @since 3.1 + bool isActive() const; + /// @since 3.1 + int iconTextMode() const; + +protected slots: + void slotClicked(); + void slotPressed(); + void slotReleased(); + void slotToggled(); + void slotDelayTimeout(); + +protected: + virtual void virtual_hook( int id, void* data ); +private: + KToolBarButtonPrivate *d; +}; + +/** +* List of KToolBarButton objects. +* @internal +* @version $Id: ktoolbarbutton.h,v 1.34 2003/09/09 12:40:58 bhards Exp $ +*/ +class KToolBarButtonList : public QIntDict +{ +public: + KToolBarButtonList(); + ~KToolBarButtonList() {} +}; + +#endif diff --git a/extra/kde322/kurifilter.h b/extra/kde322/kurifilter.h new file mode 100644 index 0000000..8c5f5fe --- /dev/null +++ b/extra/kde322/kurifilter.h @@ -0,0 +1,644 @@ +/* + * This file is part of the KDE libraries + * Copyright (C) 2000-2001,2003 Dawit Alemayehu + * + * Original author + * Copyright (C) 2000 Yves Arrouye + * + * + * This library 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. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public License + * along with this library; see the file COPYING.LIB. If not, write to + * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA. + **/ + +#ifndef __kurifilter_h__ +#define __kurifilter_h__ "$Id: kurifilter.h,v 1.41 2003/08/30 08:56:21 raabe Exp $" + +#include +#include +#include + +#include +#include + +class KURIFilterPrivate; +class KURIFilterDataPrivate; + +class KCModule; + +/** +* A basic message object used for exchanging filtering +* information between the filter plugins and the application +* requesting the filtering service. +* +* Use this object if you require a more detailed information +* about the URI you want to filter. Any application can create +* an instance of this class and send it to KURIFilter to +* have the plugins fill out all possible information about the +* URI. +* +* \b Example +* +* \code +* QString text = "kde.org"; +* KURIFilterData d = text; +* bool filtered = KURIFilter::self()->filter( d ); +* cout << "URL: " << text.latin1() << endl +* << "Filtered URL: " << d.uri().url().latin1() << endl +* << "URI Type: " << d.uriType() << endl +* << "Was Filtered: " << filtered << endl; +* \endcode +* +* The above code should yield the following output: +* \code +* URI: kde.org +* Filtered URI: http://kde.org +* URI Type: 0 <== means NET_PROTOCOL +* Was Filtered: 1 <== means the URL was successfully filtered +* \endcode +* +* @short A message object for exchanging filtering URI info. +* @author Dawit Alemayehu +*/ + +class KURIFilterData +{ +friend class KURIFilterPlugin; + +public: + /** + * Describes the type of the URI that was filtered. + * Here is a brief description of the types: + * + * @li NET_PROTOCOL - Any network protocol: http, ftp, nttp, pop3, etc... + * @li LOCAL_FILE - A local file whose executable flag is not set + * @li LOCAL_DIR - A local directory + * @li EXECUTABLE - A local file whose executable flag is set + * @li HELP - A man or info page + * @li SHELL - A shell executable (ex: echo "Test..." >> ~/testfile) + * @li BLOCKED - A URI that should be blocked/filtered (ex: ad filtering) + * @li ERROR - An incorrect URI (ex: "~johndoe" when user johndoe + * does not exist in that system ) + * @li UNKNOWN - A URI that is not identified. Default value when + * a KURIFilterData is first created. + */ + enum URITypes { NET_PROTOCOL=0, LOCAL_FILE, LOCAL_DIR, EXECUTABLE, HELP, SHELL, BLOCKED, ERROR, UNKNOWN }; + + /** + * Default constructor. + * + * Creates a URIFilterData object. + */ + KURIFilterData() { init(); } + + /** + * Creates a URIFilterData object from the given URL. + * + * @param url is the URL to be filtered. + */ + KURIFilterData( const KURL& url ) { init( url); } + + /** + * Creates a URIFilterData object from the given string. + * + * @param url is the string to be filtered. + */ + KURIFilterData( const QString& url ) { init( url ); } + + /** + * Copy constructor. + * + * Creates a URIFilterData object from another + * URI filter data object. + * + * @param data the uri filter data to be copied. + */ + KURIFilterData( const KURIFilterData& data); + + /** + * Destructor. + */ + ~KURIFilterData(); + + /** + * This method has been deprecated and will always return + * true. You should instead use the result from the + * KURIFilter::filterURI() calls. + * + * @deprecated + */ + KDE_DEPRECATED bool hasBeenFiltered() const { return true; } + + /** + * Returns the filtered or the original URL. + * + * This function returns the filtered url if one + * of the plugins successfully filtered the original + * URL. Otherwise, it returns the original URL. + * See hasBeenFiltered() and + * + * @return the filtered or original url. + */ + KURL uri() const { return m_pURI; } + + /** + * Returns an error message. + * + * This functions returns the error message set + * by the plugin whenever the uri type is set to + * KURIFilterData::ERROR. Otherwise, it returns + * a QString::null. + * + * @return the error message or a NULL when there is none. + */ + QString errorMsg() const { return m_strErrMsg; } + + /** + * Returns the URI type. + * + * This method always returns KURIFilterData::UNKNOWN + * if the given URL was not filtered. + * @return the type of the URI + */ + URITypes uriType() const { return m_iType; } + + /** + * Sets the URL to be filtered. + * + * Use this function to set the string to be + * filtered when you construct an empty filter + * object. + * + * @param url the string to be filtered. + */ + void setData( const QString& url ) { init( url ); } + + /** + * Same as above except the argument is a URL. + * + * Use this function to set the string to be + * filtered when you construct an empty filter + * object. + * + * @param url the URL to be filtered. + */ + void setData( const KURL& url ) { init( url ); } + + /** + * Sets the absolute path to be used whenever the supplied + * data is a relative local URL. + * + * NOTE: This function should only be used for local resources, + * i.e. the "file:/" protocol. It is useful for specifying the + * absolute path in cases where the actual URL might be relative. + * meta object. If deriving the path from a KURL, make sure you + * set the argument for this function to the result of calling + * path () instead of url (). + * + * @param abs_path the abolute path to the local resource. + * @return true if absolute path is successfully set. Otherwise, false. + */ + bool setAbsolutePath( const QString& abs_path ); + + /** + * Returns the absolute path if one has already been set. + * @return the absolute path, or QString::null + * @see hasAbsolutePath() + */ + QString absolutePath() const; + + /** + * Checks whether the supplied data had an absolute path. + * @return true if the supplied data has an absolute path + * @see absolutePath() + */ + bool hasAbsolutePath() const; + + /** + * Returns the command line options and arguments for a + * local resource when present. + * + * @return options and arguments when present, otherwise QString::null + */ + QString argsAndOptions() const; + + /** + * Checks whether the current data is a local resource with + * command line options and arguments. + * @return true if the current data has command line options and arguments + */ + bool hasArgsAndOptions() const; + + /** + * Returns the name of the icon that matches + * the current filtered URL. + * + * NOTE that this function will return a NULL + * string by default and when no associated icon + * is found. + * + * @return the name of the icon associated with the resource, + * or QString::null if not found + */ + QString iconName(); + + /** + * Check whether the provided uri is executable or not. + * + * Setting this to false ensures that typing the name of + * an executable does not start that application. This is + * useful in the location bar of a browser. The default + * value is true. + * + * @since 3.2 + */ + void setCheckForExecutables (bool check); + + /** + * @return true if the filters should attempt to check whether the + * supplied uri is an executable. False otherwise. + * + * @since 3.2 + */ + bool checkForExecutables() const { return m_bCheckForExecutables; } + + /** + * @return the string as typed by the user, before any URL processing is done + * @since 3.2 + */ + QString typedString() const; + + /** + * Overloaded assigenment operator. + * + * This function allows you to easily assign a KURL + * to a KURIFilterData object. + * + * @return an instance of a KURIFilterData object. + */ + KURIFilterData& operator=( const KURL& url ) { init( url ); return *this; } + + /** + * Overloaded assigenment operator. + * + * This function allows you to easily assign a QString + * to a KURIFilterData object. + * + * @return an instance of a KURIFilterData object. + */ + KURIFilterData& operator=( const QString& url ) { init( url ); return *this; } + +protected: + + /** + * Initializes the KURIFilterData on construction. + * @param url the URL to initialize the object with + */ + void init( const KURL& url); + + /** + * Initializes the KURIFilterData on construction. + * @param url the URL to initialize the object with + */ + void init( const QString& url = QString::null ); + +private: + bool m_bCheckForExecutables; + bool m_bChanged; + + QString m_strErrMsg; + QString m_strIconName; + + KURL m_pURI; + URITypes m_iType; + KURIFilterDataPrivate *d; +}; + + +/** + * Base class for URI filter plugins. + * + * This class applies a single filter to a URI. All plugins designed + * to provide URI filtering service should inherit from this abstract + * class and provide a concrete implementation. + * + * All inheriting classes need to implement the pure virtual function + * filterURI. + * + * @short Abstract class for URI filter plugins. + */ +class KURIFilterPlugin : public QObject +{ + Q_OBJECT + +public: + + /** + * Constructs a filter plugin with a given name and + * priority. + * + * @param parent the parent object, or 0 for no parent + * @param name the name of the plugin, or 0 for no name + * @param pri the priority of the plugin. + */ + KURIFilterPlugin( QObject *parent = 0, const char *name = 0, double pri = 1.0 ); + + /** + * Returns the filter's name. + * + * @return A string naming the filter. + */ + virtual QString name() const { return m_strName; } + + /** + * Returns the filter's priority. + * + * Each filter has an assigned priority, a float from 0 to 1. Filters + * with the lowest priority are first given a chance to filter a URI. + * + * @return The priority of the filter. + */ + virtual double priority() const { return m_dblPriority; } + + /** + * Filters a URI. + * + * @param data the URI data to be filtered. + * @return A boolean indicating whether the URI has been changed. + */ + virtual bool filterURI( KURIFilterData& data ) const = 0; + + /** + * Creates a configuration module for the filter. + * + * It is the responsibility of the caller to delete the module + * once it is not needed anymore. + * + * @return A configuration module, 0 if the filter isn't configurable. + */ + virtual KCModule *configModule( QWidget*, const char* ) const { return 0; } + + /** + * Returns the name of the configuration module for the filter. + * + * @return the name of a configuration module or QString::null if none. + */ + virtual QString configName() const { return name(); } + +protected: + + /** + * Sets the the URL in @p data to @p uri. + */ + void setFilteredURI ( KURIFilterData& data, const KURL& uri ) const; + + /** + * Sets the error message in @p data to @p errormsg. + */ + void setErrorMsg ( KURIFilterData& data, const QString& errmsg ) const { + data.m_strErrMsg = errmsg; + } + + /** + * Sets the URI type in @p data to @p type. + */ + void setURIType ( KURIFilterData& data, KURIFilterData::URITypes type) const { + data.m_iType = type; + data.m_bChanged = true; + } + + /** + * Sets the arguments and options string in @p data + * to @p args if any were found during filterting. + */ + void setArguments( KURIFilterData& data, const QString& args ) const; + + QString m_strName; + double m_dblPriority; + +protected: + virtual void virtual_hook( int id, void* data ); +private: + class KURIFilterPluginPrivate *d; +}; + + +/** + * A list of filter plugins. + */ +class KURIFilterPluginList : public QPtrList +{ +public: + virtual int compareItems(Item a, Item b) + { + double diff = ((KURIFilterPlugin *) a)->priority() - ((KURIFilterPlugin *) b)->priority(); + return diff < 0 ? -1 : (diff > 0 ? 1 : 0); + } + +private: + KURIFilterPrivate *d; + +}; + +/** + * Manages the filtering of URIs. + * + * The intention of this plugin class is to allow people to extend the + * functionality of KURL without modifying it directly. This way KURL will + * remain a generic parser capable of parsing any generic URL that adheres + * to specifications. + * + * The KURIFilter class applies a number of filters to a URI and returns the + * filtered version whenever possible. The filters are implemented using + * plugins to provide easy extensibility of the filtering mechanism. New + * filters can be added in the future by simply inheriting from + * KURIFilterPlugin and implementing the KURIFilterPlugin::filterURI + * method. + * + * Use of this plugin-manager class is straight forward. Since it is a + * singleton object, all you have to do is obtain an instance by doing + * @p KURIFilter::self() and use any of the public member functions to + * preform the filtering. + * + * \b Example + * + * To simply filter a given string: + * + * \code + * bool filtered = KURIFilter::self()->filterURI( "kde.org" ); + * \endcode + * + * You can alternatively use a KURL: + * + * \code + * KURL url = "kde.org"; + * bool filtered = KURIFilter::self()->filterURI( url ); + * \endcode + * + * If you have a constant string or a constant URL, simply invoke the + * corresponding function to obtain the filtered string or URL instead + * of a boolean flag: + * + * \code + * QString u = KURIFilter::self()->filteredURI( "kde.org" ); + * \endcode + * + * You can also restrict the filter(s) to be used by supplying + * the name of the filter(s) to use. By defualt all available + * filters will be used. To use specific filters, add the names + * of the filters you want to use to a QStringList and invoke + * the appropriate filtering function. The examples below show + * the use of specific filters. The first one uses a single + * filter called kshorturifilter while the second example uses + * multiple filters: + * + * \code + * QString text = "kde.org"; + * bool filtered = KURIFilter::self()->filterURI( text, "kshorturifilter" ); + * \endcode + * + * \code + * QStringList list; + * list << "kshorturifilter" << "localdomainfilter"; + * bool filtered = KURIFilter::self()->filterURI( text, list ); + * \endcode + * + * KURIFilter also allows richer data exchange through a simple + * meta-object called @p KURIFilterData. Using this meta-object + * you can find out more information about the URL you want to + * filter. See KURIFilterData for examples and details. + * + * @short Filters a given URL into its proper format whenever possible. + */ + +class KURIFilter +{ +public: + /** + * Destructor + */ + ~KURIFilter (); + + /** + * Returns an instance of KURIFilter. + */ + static KURIFilter* self(); + + /** + * Filters the URI given by the object URIFilterData. + * + * The given URL is filtered based on the specified list of filters. + * If the list is empty all available filters would be used. + * + * @param data object that contains the URI to be filtered. + * @param filters specify the list of filters to be used. + * + * @return a boolean indicating whether the URI has been changed + */ + bool filterURI( KURIFilterData& data, const QStringList& filters = QStringList() ); + + /** + * Filters the URI given by the URL. + * + * The given URL is filtered based on the specified list of filters. + * If the list is empty all available filters would be used. + * + * @param uri the URI to filter. + * @param filters specify the list of filters to be used. + * + * @return a boolean indicating whether the URI has been changed + */ + bool filterURI( KURL &uri, const QStringList& filters = QStringList() ); + + /** + * Filters a string representing a URI. + * + * The given URL is filtered based on the specified list of filters. + * If the list is empty all available filters would be used. + * + * @param uri The URI to filter. + * @param filters specify the list of filters to be used. + * + * @return a boolean indicating whether the URI has been changed + */ + bool filterURI( QString &uri, const QStringList& filters = QStringList() ); + + /** + * Returns the filtered URI. + * + * The given URL is filtered based on the specified list of filters. + * If the list is empty all available filters would be used. + * + * @param uri The URI to filter. + * @param filters specify the list of filters to be used. + * + * @return the filtered URI or null if it cannot be filtered + */ + KURL filteredURI( const KURL &uri, const QStringList& filters = QStringList() ); + + /** + * Return a filtered string representation of a URI. + * + * The given URL is filtered based on the specified list of filters. + * If the list is empty all available filters would be used. + * + * @param uri the URI to filter. + * @param filters specify the list of filters to be used. + * + * @return the filtered URI or null if it cannot be filtered + */ + QString filteredURI( const QString &uri, const QStringList& filters = QStringList() ); + + /** + * Return an iterator to iterate over all loaded + * plugins. + * + * @return a plugin iterator. + */ + QPtrListIterator pluginsIterator() const; + + /** + * Return a list of the names of all loaded plugins. + * + * @return a QStringList of plugin names + * @since 3.1 + */ + QStringList pluginNames() const; + +protected: + + /** + * A protected constructor. + * + * This constructor creates a KURIFilter and + * initializes all plugins it can find by invoking + * loadPlugins. + */ + KURIFilter(); + + /** + * Loads all allowed plugins. + * + * This function loads all filters that have not + * been disbled. + */ + void loadPlugins(); + +private: + static KURIFilter *m_self; + KURIFilterPluginList m_lstPlugins; + KURIFilterPrivate *d; +}; + +#endif diff --git a/extra/kde322/selectdialog.h b/extra/kde322/selectdialog.h new file mode 100644 index 0000000..b5e962c --- /dev/null +++ b/extra/kde322/selectdialog.h @@ -0,0 +1,87 @@ +/* + This file is part of libkresources. + + Copyright (c) 2002 Tobias Koenig + Copyright (c) 2002 Jan-Pascal van Best + Copyright (c) 2003 Cornelius Schumacher + + This library 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. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef KRESOURCES_SELECTDIALOG_H +#define KRESOURCES_SELECTDIALOG_H + +#include +#include +#include + +#include + +class KListBox; + +namespace KRES { + +class Resource; + +/** + * Dialog for selecting a resource. + * + * Example: + * + * \code + * + * QPtrList list = ... // can be retrived from KRES::Manager (e.g. KABC::AddressBook) + * + * KABC::Resource *res = KABC::SelectDialog::getResource( list, parentWdg ); + * if ( !res ) { + * // no resource selected + * } else { + * // do something with resource + * } + * \endcode + */ +class SelectDialog +{ + public: + /** + * Constructor. + * @param list The list of available resources + * @param parent The parent widget + * @param name The name of the dialog + */ + SelectDialog( QPtrList list, QWidget *parent = 0, + const char *name = 0); + + /** + * Returns selected resource. + */ + Resource *resource(); + + /** + * Opens a dialog showing the available resources and returns the resource the + * user has selected. Returns 0, if the dialog was canceled. + */ + static Resource *getResource( QPtrList list, QWidget *parent = 0 ); + + private: + KListBox *mResourceId; + + QMap mResourceMap; +}; + +} + +#endif diff --git a/extra/kde323/configwidget.h b/extra/kde323/configwidget.h new file mode 100644 index 0000000..643df88 --- /dev/null +++ b/extra/kde323/configwidget.h @@ -0,0 +1,58 @@ +/* + This file is part of libkresources. + Copyright (c) 2002 Tobias Koenig + Copyright (c) 2002 Jan-Pascal van Best + + This library 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. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef KRESOURCES_CONFIGWIDGET_H +#define KRESOURCES_CONFIGWIDGET_H + +#include "resource.h" + +#include + +#include + +namespace KRES { + +class ConfigWidget : public QWidget +{ + Q_OBJECT + public: + ConfigWidget( QWidget *parent = 0, const char *name = 0 ); + + /** + Sets the widget to 'edit' mode. Reimplement this method if you are + interested in the mode change (to disable some GUI element for + example). By default the widget is in 'create new' mode. + */ + virtual void setInEditMode( bool value ); + + public slots: + virtual void loadSettings( Resource *resource ) = 0; + virtual void saveSettings( Resource *resource ) = 0; + + signals: + void setReadOnly( bool value ); + + protected: + Resource *mResource; +}; + +} +#endif diff --git a/extra/kde323/kaccelaction.h b/extra/kde323/kaccelaction.h new file mode 100644 index 0000000..9967e4f --- /dev/null +++ b/extra/kde323/kaccelaction.h @@ -0,0 +1,564 @@ +/* This file is part of the KDE libraries + Copyright (C) 2001,2002 Ellis Whitehead + + This library 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. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef _KACCELACTION_H +#define _KACCELACTION_H + +#include +#include +#include +#include + +#include + +class KAccelBase; + +class QObject; +class KConfig; +class KConfigBase; + +/** + * @internal + * A KAccelAction prepresents an action that can be executed using + * an accelerator key. Each KAccelAction has a name, a label, a + * "What's this" string and a KShortcut. The user can configure and + * enable/disable them using KKeyDialog. + * + * \code + * 1) KAccelAction = "Run Command" + * Default3 = "Alt+F2" + * Default4 = "Meta+Enter;Alt+F2" + * 1) KShortcut = "Meta+Enter" + * 1) KKeySequence = "Meta+Enter" + * 1) KKey = "Meta+Enter" + * 1) Meta+Enter + * 2) Meta+Keypad_Enter + * 2) KShortcut = "Alt+F2" + * 1) KKeySequence = "Alt+F2" + * 1) Alt+F2 + * 2) KAccelAction = "Something" + * Default3 = "" + * Default4 = "" + * 1) KShortcut = "Meta+X,Asterisk" + * 1) KKeySequence = "Meta+X,Asterisk" + * 1) KKey = "Meta+X" + * 1) Meta+X + * 2) KKey = "Asterisk" + * 1) Shift+8 (English layout) + * 2) Keypad_Asterisk + * \endcode + * @short An accelerator action + * @see KAccel + * @see KGlobalAccel + * @see KKeyChooser + * @see KKeyDialog + */ +class KAccelAction +{ + public: + /** + * Creates an empty KAccelAction. + * @see clear() + */ + KAccelAction(); + + /** + * Copy constructor. + */ + KAccelAction( const KAccelAction& ); + + /** + * Creates a new KAccelAction. + * @param sName the name of the accelerator + * @param sLabel the label of the accelerator (i18n!) + * @param sWhatsThis the What's This text (18n!) + * @param cutDef3 the default shortcut for 3 modifier systems + * @param cutDef4 the default shortcut for 4 modifier systems + * @param pObjSlot the receiver of a signal when the key has been + * pressed + * @param psMethodSlot the slot to connect for key presses. Receives + * an int, as set by setID(), as only argument + * @param bConfigurable if true the user can configure the shortcut + * @param bEnabled true if the accelerator should be enabled + */ + KAccelAction( const QString& sName, const QString& sLabel, const QString& sWhatsThis, + const KShortcut& cutDef3, const KShortcut& cutDef4, + const QObject* pObjSlot, const char* psMethodSlot, + bool bConfigurable, bool bEnabled ); + ~KAccelAction(); + + /** + * Clears the accelerator. + */ + void clear(); + + /** + * Re-initialized the KAccelAction. + * @param sName the name of the accelerator + * @param sLabel the label of the accelerator (i18n!) + * @param sWhatsThis the What's This text (18n!) + * @param cutDef3 the default shortcut for 3 modifier systems + * @param cutDef4 the default shortcut for 4 modifier systems + * @param pObjSlot the receiver of a signal when the key has been + * pressed + * @param psMethodSlot the slot to connect for key presses. Receives + * an int, as set by setID(), as only argument + * @param bConfigurable if true the user can configure the shortcut + * @param bEnabled true if the accelerator should be enabled + * @return true if successful, false otherwise + */ + bool init( const QString& sName, const QString& sLabel, const QString& sWhatsThis, + const KShortcut& cutDef3, const KShortcut& cutDef4, + const QObject* pObjSlot, const char* psMethodSlot, + bool bConfigurable, bool bEnabled ); + + /** + * Copies this KAccelAction. + */ + KAccelAction& operator=( const KAccelAction& ); + + /** + * Returns the name of the accelerator action. + * @return the name of the accelerator action, can be null if not + * set + */ + const QString& name() const { return m_sName; } + + /** + * Returns the label of the accelerator action. + * @return the label of the accelerator action, can be null if + * not set + */ + const QString& label() const { return m_sLabel; } + + /** + * Returns the What's This text of the accelerator action. + * @return the What's This text of the accelerator action, can be + * null if not set + */ + const QString& whatsThis() const { return m_sWhatsThis; } + + /** + * The shortcut that is actually used (may be used configured). + * @return the shortcut of the KAccelAction, can be null if not set + * @see shortcutDefault() + */ + const KShortcut& shortcut() const { return m_cut; } + + /** + * The default shortcut for this system. + * @return the default shortcut on this system, can be null if not set + * @see shortcut() + * @see shortcutDefault3() + * @see shortcutDefault4() + */ + const KShortcut& shortcutDefault() const; + + /** + * The default shortcut for 3 modifier systems. + * @return the default shortcut for 3 modifier systems, can be null + * if not set + * @see shortcutDefault() + * @see shortcutDefault4() + * @see useFourModifierKeys() + */ + const KShortcut& shortcutDefault3() const { return m_cutDefault3; } + + /** + * The default shortcut for 4 modifier systems. + * @return the default shortcut for 4 modifier systems, can be null + * if not set + * @see shortcutDefault() + * @see shortcutDefault3() + * @see useFourModifierKeys() + */ + const KShortcut& shortcutDefault4() const { return m_cutDefault4; } + + /** + * Returns the receiver of signals. + * @return the receiver of signals (can be 0 if not set) + */ + const QObject* objSlotPtr() const { return m_pObjSlot; } + + /** + * Returns the slot for the signal. + * @return the slot for the signal + */ + const char* methodSlotPtr() const { return m_psMethodSlot; } + + /** + * Checks whether the user can configure the action. + * @return true if configurable, false otherwise + */ + bool isConfigurable() const { return m_bConfigurable; } + + /** + * Checks whether the action is enabled. + * @return true if enabled, false otherwise + */ + bool isEnabled() const { return m_bEnabled; } + + /** + * Sets the name of the accelerator action. + * @param name the new name + */ + void setName( const QString& name ); + + /** + * Sets the user-readable label of the accelerator action. + * @param label the new label (i18n!) + */ + void setLabel( const QString& label ); + + /** + * Sets the What's This text for the accelerator action. + * @param whatsThis the new What's This text (i18n!) + */ + void setWhatsThis( const QString& whatsThis ); + + /** + * Sets the new shortcut of the accelerator action. + * @param rgCuts the shortcut to set + * @return true if successful, false otherwise + */ + bool setShortcut( const KShortcut& rgCuts ); + + /** + * Sets the slot of the accelerator action. + * @param pObjSlot the receiver object of the signal + * @param psMethodSlot the slot for the signal + */ + void setSlot( const QObject* pObjSlot, const char* psMethodSlot ); + + /** + * Enables or disabled configuring the action. + * @param configurable true to enable configurability, false to disable + */ + void setConfigurable( bool configurable ); + + /** + * Enables or disabled the action. + * @param configurable true to enable the action, false to disable + */ + void setEnabled( bool enable ); + + /** + * Retrieves the id set using setID. + * @return the id of the accelerator action + */ + int getID() const { return m_nIDAccel; } + + /** + * Allows you to set an id that will be used as the action + * signal's argument. + * + * @param n the new id + * @see getID() + */ + void setID( int n ) { m_nIDAccel = n; } + + /** + * Checkes whether the action is connected (emits signals). + * @return true if connected, false otherwise + */ + bool isConnected() const; + + /** + * Sets a key sequence of the action's shortcut. + * @param i the position of the sequence + * @param keySeq the new new sequence + * @return true if successful, false otherwise + * @see KShortcut::setSeq() + */ + bool setKeySequence( uint i, const KKeySequence &keySeq ); + + /** + * Clears the action's shortcut. It will not contain any sequences after + * calling this method. + * @see KShortcut::clear() + */ + void clearShortcut(); + + /** + * Checks whether the action's shortcut contains the given key sequence. + * @param keySeq the key sequence to check + * @return true if the shortcut contains the given sequence + * @see KShortcut::contains() + */ + bool contains( const KKeySequence &keySeq ); + + /** + * Returns the string representation of the action's shortcut. + * @return the string representation of the action's shortcut. + * @see KShortcut::toString() + */ + QString toString() const; + + /** + * @internal + */ + QString toStringInternal() const; + + /** + * Returns true if four modifier keys will be used. + * @return true if four modifier keys will be used. + */ + static bool useFourModifierKeys(); + + /** + * Selects 3 or 4 modifier default shortcuts. + * @param use true to use 4 modifier shortcuts, false to use + * 3 modifier shortcuts + */ + static void useFourModifierKeys( bool use ); + + protected: + QString m_sName, + m_sLabel, + m_sWhatsThis; + KShortcut m_cut; + KShortcut m_cutDefault3, m_cutDefault4; + const QObject* m_pObjSlot; + const char* m_psMethodSlot; + bool m_bConfigurable, + m_bEnabled; + int m_nIDAccel; + uint m_nConnections; + + void incConnections(); + void decConnections(); + + private: + static int g_bUseFourModifierKeys; + class KAccelActionPrivate* d; + + friend class KAccelActions; + friend class KAccelBase; +}; + +//--------------------------------------------------------------------- +// KAccelActions +//--------------------------------------------------------------------- + +/** + * @internal + * This class represents a collection of KAccelAction objects. + * + * @short A collection of accelerator actions + * @see KAccelAction + */ +class KAccelActions +{ + public: + /** + * Creates a new, empty KAccelActions object. + */ + KAccelActions(); + + /** + * Copy constructor (deep copy). + */ + KAccelActions( const KAccelActions& ); + virtual ~KAccelActions(); + + /** + * Removes all items from this collection. + */ + void clear(); + + /** + * Initializes this object with the given actions. + * It will make a deep copy of all actions. + * @param actions the actions to copy + * @return true if successful, false otherwise + */ + bool init( const KAccelActions &actions ); + + /** + * Loads the actions from the given configuration file. + * + * @param config the configuration file to load from + * @param sGroup the group in the configuration file + * @return true if successful, false otherwise + */ + bool init( KConfigBase& config, const QString& sGroup ); + + /** + * Updates the shortcuts of all actions in this object + * with the shortcuts from the given object. + * @param shortcuts the collection that contains the new + * shortcuts + */ + void updateShortcuts( KAccelActions &shortcuts ); + + /** + * Retrieves the index of the action with the given name. + * @param sAction the action to search + * @return the index of the action, or -1 if not found + */ + int actionIndex( const QString& sAction ) const; + + /** + * Returns the action with the given @p index. + * @param index the index of an action. You must not + * use an index that is too high. + * @return the KAccelAction with the given index + * @see count() + */ + KAccelAction* actionPtr( uint index ); + + /** + * Returns the action with the given @p index. + * @param index the index of an action. You must not + * use an index that is too high. + * @return the KAccelAction with the given index + * @see count() + */ + const KAccelAction* actionPtr( uint index ) const; + + /** + * Returns the action with the given name. + * @param aAction the name of the action to search + * @return the KAccelAction with the given name, or 0 + * if not found + */ + KAccelAction* actionPtr( const QString& sAction ); + + /** + * Returns the action with the given name. + * @param aAction the name of the action to search + * @return the KAccelAction with the given name, or 0 + * if not found + */ + const KAccelAction* actionPtr( const QString& sAction ) const; + + /** + * Returns the action with the given key sequence. + * @param cut the sequence to search for + * @return the KAccelAction with the given sequence, or 0 + * if not found + */ + KAccelAction* actionPtr( KKeySequence cut ); + + /** + * Returns the action with the given @p index. + * @param index the index of an action. You must not + * use an index that is too high. + * @return the KAccelAction with the given index + * @see actionPtr() + * @see count() + */ + KAccelAction& operator []( uint index ); + + /** + * Returns the action with the given @p index. + * @param index the index of an action. You must not + * use an index that is too high. + * @return the KAccelAction with the given index + * @see actionPtr() + * @see count() + */ + const KAccelAction& operator []( uint index ) const; + + /** + * Inserts an action into the collection. + * @param sName the name of the accelerator + * @param sLabel the label of the accelerator (i18n!) + * @param sWhatsThis the What's This text (18n!) + * @param cutDef3 the default shortcut for 3 modifier systems + * @param cutDef4 the default shortcut for 4 modifier systems + * @param pObjSlot the receiver of a signal when the key has been + * pressed + * @param psMethodSlot the slot to connect for key presses. Receives + * an int, as set by setID(), as only argument + * @param bConfigurable if true the user can configure the shortcut + * @param bEnabled true if the accelerator should be enabled + * @return the new action + */ + KAccelAction* insert( const QString& sAction, const QString& sLabel, const QString& sWhatsThis, + const KShortcut& rgCutDefaults3, const KShortcut& rgCutDefaults4, + const QObject* pObjSlot = 0, const char* psMethodSlot = 0, + bool bConfigurable = true, bool bEnabled = true ); + + /** + * Inserts an action into the collection. + * @param sName the name of the accelerator + * @param sLabel the label of the accelerator (i18n!) + * @return the new action + */ + KAccelAction* insert( const QString& sName, const QString& sLabel ); + + /** + * Removes the given action. + * @param sAction the name of the action. + * @return true if successful, false otherwise + */ + bool remove( const QString& sAction ); + + /** + * Loads the actions from the given configuration file. + * + * @param sConfigGroup the group in the configuration file + * @param pConfig the configuration file to load from + * @return true if successful, false otherwise + */ + bool readActions( const QString& sConfigGroup = "Shortcuts", KConfigBase* pConfig = 0 ); + + /** + * Writes the actions to the given configuration file. + * + * @param sConfigGroup the group in the configuration file + * @param pConfig the configuration file to save to + * @param bWriteAll true to write all actions + * @param bGlobal true to write to the global configuration file + * @return true if successful, false otherwise + */ + bool writeActions( const QString& sConfigGroup = "Shortcuts", KConfigBase* pConfig = 0, + bool bWriteAll = false, bool bGlobal = false ) const; + + /** + * Emit a keycodeChanged signal. + */ + void emitKeycodeChanged(); + + /** + * Returns the number of actions in the collection. + * @return the number of actions + */ + uint count() const; + + protected: + KAccelBase* m_pKAccelBase; + KAccelAction** m_prgActions; + uint m_nSizeAllocated, m_nSize; + + void resize( uint ); + void insertPtr( KAccelAction* ); + + private: + class KAccelActionsPrivate* d; + + KAccelActions( KAccelBase* ); + void initPrivate( KAccelBase* ); + KAccelActions& operator =( KAccelActions& ); + + friend class KAccelBase; +}; + +#endif // _KACCELACTION_H diff --git a/extra/kde323/kaccelbase.h b/extra/kde323/kaccelbase.h new file mode 100644 index 0000000..3ddce3a --- /dev/null +++ b/extra/kde323/kaccelbase.h @@ -0,0 +1,230 @@ +/* This file is part of the KDE libraries + Copyright (C) 2001 Ellis Whitehead + + This library 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. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef _KACCELBASE_H +#define _KACCELBASE_H + +#include +#include +#include +#include +#include + +#include "kaccelaction.h" +#include "kkeyserver_x11.h" + +class QPopupMenu; +class QWidget; + +//---------------------------------------------------- + +/** + * @internal + * Handle keyboard accelerators. + * + * Allow an user to configure + * key bindings through application configuration files or through the + * KKeyChooser GUI. + * + * A KAccel contains a list of accelerator items. Each accelerator item + * consists of an action name and a keyboard code combined with modifiers + * (Shift, Ctrl and Alt.) + * + * For example, "Ctrl+P" could be a shortcut for printing a document. The key + * codes are listed in ckey.h. "Print" could be the action name for printing. + * The action name identifies the key binding in configuration files and the + * KKeyChooser GUI. + * + * When pressed, an accelerator key calls the slot to which it has been + * connected. Accelerator items can be connected so that a key will activate + * two different slots. + * + * A KAccel object handles key events sent to its parent widget and to all + * children of this parent widget. + * + * Key binding reconfiguration during run time can be prevented by specifying + * that an accelerator item is not configurable when it is inserted. A special + * group of non-configurable key bindings are known as the + * standard accelerators. + * + * The standard accelerators appear repeatedly in applications for + * standard document actions such as printing and saving. Convenience methods are + * available to insert and connect these accelerators which are configurable on + * a desktop-wide basis. + * + * It is possible for a user to choose to have no key associated with + * an action. + * + * The translated first argument for insertItem() is used only + * in the configuration dialog. + *\code + * KAccel *a = new KAccel( myWindow ); + * // Insert an action "Scroll Up" which is associated with the "Up" key: + * a->insertItem( i18n("Scroll Up"), "Scroll Up", "Up" ); + * // Insert an action "Scroll Down" which is not associated with any key: + * a->insertItem( i18n("Scroll Down"), "Scroll Down", 0); + * a->connectItem( "Scroll up", myWindow, SLOT( scrollUp() ) ); + * // a->insertStdItem( KStdAccel::Print ); //not necessary, since it + * // is done automatially with the + * // connect below! + * a->connectItem(KStdAccel::Print, myWindow, SLOT( printDoc() ) ); + * + * a->readSettings(); + *\endcode + * + * If a shortcut has a menu entry as well, you could insert them like + * this. The example is again the KStdAccel::Print from above. + * + * \code + * int id; + * id = popup->insertItem("&Print",this, SLOT(printDoc())); + * a->changeMenuAccel(popup, id, KStdAccel::Print ); + * \endcode + * + * If you want a somewhat "exotic" name for your standard print action, like + * id = popup->insertItem(i18n("Print &Document"),this, SLOT(printDoc())); + * it might be a good idea to insert the standard action before as + * a->insertStdItem( KStdAccel::Print, i18n("Print Document") ) + * as well, so that the user can easily find the corresponding function. + * + * This technique works for other actions as well. Your "scroll up" function + * in a menu could be done with + * + * \code + * id = popup->insertItem(i18n"Scroll &up",this, SLOT(scrollUp())); + * a->changeMenuAccel(popup, id, "Scroll Up" ); + * \endcode + * + * Please keep the order right: First insert all functions in the + * acceleratior, then call a -> readSettings() and @em then build your + * menu structure. + * + * @short Configurable key binding support. + * @version $Id: kaccelbase.h,v 1.26 2003/08/16 19:44:57 coolo Exp $ + */ + +class KAccelBase +{ + public: + enum Init { QT_KEYS = 0x00, NATIVE_KEYS = 0x01 }; + enum Signal { KEYCODE_CHANGED }; + + KAccelBase( int fInitCode ); + virtual ~KAccelBase(); + + uint actionCount() const; + KAccelActions& actions(); + bool isEnabled() const; + + KAccelAction* actionPtr( const QString& sAction ); + const KAccelAction* actionPtr( const QString& sAction ) const; + KAccelAction* actionPtr( const KKey& key ); + KAccelAction* actionPtr( const KKeyServer::Key& key ); + + const QString& configGroup() const { return m_sConfigGroup; } + void setConfigGroup( const QString& group ); + void setConfigGlobal( bool global ); + virtual void setEnabled( bool bEnabled ) = 0; + bool getAutoUpdate() { return m_bAutoUpdate; } + // return value of AutoUpdate flag before this call. + bool setAutoUpdate( bool bAuto ); + +// Procedures for manipulating Actions. + //void clearActions(); + + KAccelAction* insert( const QString& sName, const QString& sDesc ); + KAccelAction* insert( + const QString& sAction, const QString& sDesc, const QString& sHelp, + const KShortcut& rgCutDefaults3, const KShortcut& rgCutDefaults4, + const QObject* pObjSlot, const char* psMethodSlot, + bool bConfigurable = true, bool bEnabled = true ); + bool remove( const QString& sAction ); + bool setActionSlot( const QString& sAction, const QObject* pObjSlot, const char* psMethodSlot ); + + bool updateConnections(); + + bool setShortcut( const QString& sAction, const KShortcut& cut ); + +// Modify individual Action sub-items + bool setActionEnabled( const QString& sAction, bool bEnable ); + + /** + * Read all key associations from @p config, or (if @p config + * is zero) from the application's configuration file + * KGlobal::config(). + * + * The group in which the configuration is stored can be + * set with setConfigGroup(). + */ + void readSettings( KConfigBase* pConfig = 0 ); + + /** + * Write the current configurable associations to @p config, + * or (if @p config is zero) to the application's + * configuration file. + */ + void writeSettings( KConfigBase* pConfig = 0 ) const; + + QPopupMenu* createPopupMenu( QWidget* pParent, const KKeySequence& ); + + // Protected methods + protected: + void slotRemoveAction( KAccelAction* ); + + struct X; + void createKeyList( QValueVector& rgKeys ); + bool insertConnection( KAccelAction* ); + bool removeConnection( KAccelAction* ); + + virtual bool emitSignal( Signal ) = 0; + virtual bool connectKey( KAccelAction&, const KKeyServer::Key& ) = 0; + virtual bool connectKey( const KKeyServer::Key& ) = 0; + virtual bool disconnectKey( KAccelAction&, const KKeyServer::Key& ) = 0; + virtual bool disconnectKey( const KKeyServer::Key& ) = 0; + + protected: + struct ActionInfo + { + KAccelAction* pAction; + uint iSeq, iVariation; + //ActionInfo* pInfoNext; // nil if only one action uses this key. + + ActionInfo() { pAction = 0; iSeq = 0xffff; iVariation = 0xffff; } + ActionInfo( KAccelAction* _pAction, uint _iSeq, uint _iVariation ) + { pAction = _pAction; iSeq = _iSeq; iVariation = _iVariation; } + }; + typedef QMap KKeyToActionMap; + + KAccelActions m_rgActions; + KKeyToActionMap m_mapKeyToAction; + QValueList m_rgActionsNonUnique; + bool m_bNativeKeys; // Use native key codes instead of Qt codes + bool m_bEnabled; + bool m_bConfigIsGlobal; + QString m_sConfigGroup; + bool m_bAutoUpdate; + KAccelAction* mtemp_pActionRemoving; + + private: + KAccelBase& operator =( const KAccelBase& ); + + friend class KAccelActions; +}; + +#endif // _KACCELBASE_H diff --git a/extra/kde323/kicontheme.h b/extra/kde323/kicontheme.h new file mode 100644 index 0000000..a360a15 --- /dev/null +++ b/extra/kde323/kicontheme.h @@ -0,0 +1,334 @@ +/* vi: ts=8 sts=4 sw=4 + * + * $Id: kicontheme.h,v 1.29 2003/11/02 14:50:34 carewolf Exp $ + * + * This file is part of the KDE project, module kdecore. + * Copyright (C) 2000 Geert Jansen + * Antonio Larrosa + * + * This is free software; it comes under the GNU Library General + * Public License, version 2. See the file "COPYING.LIB" for the + * exact licensing terms. + * + */ + +#ifndef __KIconTheme_h_Included__ +#define __KIconTheme_h_Included__ + +#include +#include +#include + +class KConfig; +//class KIconThemeDir; + +class KIconThemePrivate; + +class KIconPrivate; + +/** + * One icon as found by KIconTheme. Also serves as a namespace containing + * icon related constants. + * @see KIconEffect + * @see KIconTheme + * @see KIconLoader + */ +class KIcon +{ +public: + KIcon() { size = 0; } + + /** + * Return true if this icon is valid, false otherwise. + */ + bool isValid() const { return size != 0; } + + /** + * Defines the context of the icon. + */ + enum Context { + Any, ///< Some icon with unknown purpose. + Action, ///< An action icon (e.g. 'save', 'print'). + Application, ///< An icon that represents an application. + Device, ///< An icon that represents a device. + FileSystem, ///< An icon that represents a file system. + MimeType ///< An icon that represents a mime type (or file type). + }; + + /** + * The type of the icon. + */ + enum Type { + Fixed, ///< Fixed-size icon. + Scalable, ///< Scalable-size icon. + Threshold ///< A threshold icon. + }; + + /** + * The type of a match. + */ + enum MatchType { + MatchExact, ///< Only try to find an exact match. + MatchBest ///< Take the best match if there is no exact match. + + }; + + // if you add a group here, make sure to change the config reading in + // KIconLoader too + /** + * The group an an icon. + */ + enum Group { NoGroup=-1, Desktop=0, FirstGroup=0, Toolbar, + MainToolbar, Small, Panel, LastGroup, User }; + + /** + * These are the standard sizes for icons. + */ + enum StdSizes { + /// small icons for menu entries + SizeSmall=16, + /// medium sized icons for the desktop + SizeMedium=32, + /// large sized icons for the panel + SizeLarge=48, + /// huge sized icons for iconviews + SizeHuge=64 + }; + + /** + * Defines the possible states of an icon. + */ + enum States { DefaultState, ///< The default state. + ActiveState, ///< Icon is active. + DisabledState, ///< Icon is disabled. + LastState ///< Last state (last constant) + }; + + /** + * This defines an overlay, a semi-transparent image that is + * projected onto the icon. They are used to show that the file + * represented by the icon is, for example, locked, zipped or hidden. + */ + enum Overlays { + LockOverlay=0x100, ///< a file is locked + ZipOverlay=0x200, ///< a file is zipped + LinkOverlay=0x400, ///< a fileis a link + HiddenOverlay=0x800, ///< a file is hidden + ShareOverlay=0x1000, ///< a file is shared + OverlayMask = ~0xff + }; + + /** + * The size in pixels of the icon. + */ + int size; + + /** + * The context of the icon. + */ + Context context; + + /** + * The type of the icon: Fixed, Scalable or Threshold. + **/ + Type type; + + /** + * The threshold in case type == Threshold + */ + int threshold; + + /** + * The full path of the icon. + */ + QString path; + +private: + KIconPrivate *d; +}; + +inline KIcon::Group& operator++(KIcon::Group& group) { group = static_cast(group+1); return group; } +inline KIcon::Group operator++(KIcon::Group& group,int) { KIcon::Group ret = group; ++group; return ret; } + +/** + * Class to use/access icon themes in KDE. This class is used by the + * iconloader but can be used by others too. + * @see KIconLoader + */ +class KIconTheme +{ +public: + /** + * Load an icon theme by name. + * @param name the name of the theme (e.g. "hicolor" or "keramik") + * @param appName the name of the application. Can be null. This argument + * allows applications to have themed application icons. + */ + KIconTheme(const QString& name, const QString& appName=QString::null); + ~KIconTheme(); + + /** + * The stylized name of the icon theme. + * @return the (human-readable) name of the theme + */ + QString name() const { return mName; } + + /** + * A description for the icon theme. + * @return a human-readable description of the theme, QString::null + * if there is none + */ + QString description() const { return mDesc; } + + /** + * Return the name of the "example" icon. This can be used to + * present the theme to the user. + * @return the name of the example icon, QString::null if there is none + */ + QString example() const; + + /** + * Return the name of the screenshot. + * @return the name of the screenshot, QString::null if there is none + */ + QString screenshot() const; + + /** + * Returns the name of this theme's link overlay. + * @return the name of the link overlay + */ + QString linkOverlay() const; + + /** + * Returns the name of this theme's zip overlay. + * @return the name of the zip overlay + */ + QString zipOverlay() const; + + /** + * Returns the name of this theme's lock overlay. + * @return the name of the lock overlay + */ + QString lockOverlay() const; + + /** + * Returns the name of this theme's share overlay. + * @return the name of the share overlay + * @since 3.1 + */ + QString shareOverlay () const; + + /** + * Returns the toplevel theme directory. + * @return the directory of the theme + */ + QString dir() const { return mDir; } + + /** + * The themes this icon theme falls back on. + * @return a list of icon themes that are used as fall-backs + */ + QStringList inherits() const { return mInherits; } + + /** + * The icon theme exists? + * @return true if the icon theme is valid + */ + bool isValid() const; + + /** + * The icon theme should be hidden to the user? + * @return true if the icon theme is hidden + * @since 3.1 + */ + bool isHidden() const; + + /** + * The minimum display depth required for this theme. This can either + * be 8 or 32. + * @return the minimum bpp (8 or 32) + */ + int depth() const { return mDepth; } + + /** + * The default size of this theme for a certain icon group. + * @param group The icon group. See KIcon::Group. + * @return The default size in pixels for the given icon group. + */ + int defaultSize(KIcon::Group group) const; + + /** + * Query available sizes for a group. + * @param group The icon group. See KIcon::Group. + * @return a list of available sized for the given group + */ + QValueList querySizes(KIcon::Group group) const; + + /** + * Query available icons for a size and context. + * @param size the size of the icons + * @param context the context of the icons + * @return the list of icon names + */ + QStringList queryIcons(int size, KIcon::Context context = KIcon::Any) const; + + /** + * Query available icons for a context and preferred size. + * @param size the size of the icons + * @param context the context of the icons + * @return the list of icon names + */ + QStringList queryIconsByContext(int size, KIcon::Context context = KIcon::Any) const; + + + /** + * Lookup an icon in the theme. + * @param name The name of the icon, without extension. + * @param size The desired size of the icon. + * @param match The matching mode. KIcon::MatchExact returns an icon + * only if matches exactly. KIcon::MatchBest returns the best matching + * icon. + * @return A KIcon class that describes the icon. If an icon is found, + * @see KIcon::isValid will return true, and false otherwise. + */ + KIcon iconPath(const QString& name, int size, KIcon::MatchType match) const; + + /** + * List all icon themes installed on the system, global and local. + * @return the list of all icon themes + */ + static QStringList list(); + + /** + * Returns the current icon theme. + * @return the name of the current theme + */ + static QString current(); + + /** + * Reconfigure the theme. + */ + static void reconfigure(); + + /** + * Returns the default icon theme. + * @return the name of the default theme name + * @since 3.1 + */ + static QString defaultThemeName(); + +private: + int mDefSize[8]; + QValueList mSizes[8]; + + int mDepth; + QString mDir, mName, mDesc; + QStringList mInherits; +// QPtrList mDirs; + KIconThemePrivate *d; + + static QString *_theme; + static QStringList *_theme_list; +}; + +#endif diff --git a/extra/kde323/kkeyserver_x11.h b/extra/kde323/kkeyserver_x11.h new file mode 100644 index 0000000..cf1b360 --- /dev/null +++ b/extra/kde323/kkeyserver_x11.h @@ -0,0 +1,433 @@ +#ifndef _KKEYSERVER_X11_H +#define _KKEYSERVER_X11_H + +#include "kshortcut.h" +#include "kkeynative.h" + +/** + * A collection of functions for the conversion of key presses and + * their modifiers from the window system (X11) specific format + * to the generic format and vice-versa. + */ +namespace KKeyServer +{ + /** + * Supplement enum KKey::ModFlag + * @since 3.1 + */ + enum ExtraModFlag { MODE_SWITCH = 0x2000 }; + + /** + * Represents a key symbol. + * @see KKey + * @see KKeyServer + */ + struct Sym + { + public: + /// the actual value of the symbol + uint m_sym; + + /// Creates a null symbol. + Sym() + { m_sym = 0; } + /** + * Creates asymbol with the given value. + * @param sym the value + */ + Sym( uint sym ) + { m_sym = sym; } + /** + * Creates a symbol from the given string description. + * @param s the description of the symbol + * @see toString() + */ + Sym( const QString& s ) + { init( s ); } + + /** + * Initializes the symbol with the given Qt key code. + * @param keyQt the qt key code + * @return true if successful, false otherwise + * @see Qt::Key + */ + bool initQt( int keyQt ); + + /** + * Initializes the key with the given string description. + * @param s the string description + * @return true if successful, false otherwise + * @see toString() + */ + bool init( const QString &s ); + + /** + * Returns the qt key code of the symbol. + * @return the qt key code + */ + int qt() const; + + /** + * @internal + */ + QString toStringInternal() const; + + /** + * Returns the string representation of the symbol. + * @return the string representation of the symbol + */ + QString toString() const; + + /** + * Returns the mods that are required for this symbol as + * ORed KKey::ModFlag's. For example, Break requires a + * Ctrl to be valid. + * @return the required KKey::ModFlag's + * @see KKey::ModFlag + */ + uint getModsRequired() const; + + /** + * TODO: please find out what this method does and document it + */ + uint getSymVariation() const; + + /** + * Casts the symbol to its integer representation. + */ + operator uint() const { return m_sym; } + + /** + * Overloaded operator to convert ints to Sym. + */ + Sym& operator =( uint sym ) { m_sym = sym; return *this; } + + private: + QString toString( bool bUserSpace ) const; + + static void capitalizeKeyname( QString& ); + }; + + /** + * Represents a key press. + * @see KKey + */ + struct Key + { + /// Code for native Keys in Qt + enum { CODE_FOR_QT = 256 }; + + /// The code of the key + uint m_code; + + /// The modifiers of the key + uint m_mod; + + /// The symbol of the key + uint m_sym; + + /** + * Initializes the key with a KKey. + * @param key the key to get the data from + * @param bQt true to take the Qt keycode, false + * for the native key code + * @see Qt::Key + * @see KKeyNative + */ + bool init( const KKey& key, bool bQt ); + + /** + * Checks whether the key code is a native code. + * @return true if native code of the window system, + * false if it is a Qt keycode + * @see Qt::Key + * @see KKeyNative + */ + bool isNative() const { return m_code != CODE_FOR_QT; } + + /** + * Returns the code of the key. + * @return the code of the key + */ + uint code() const { return m_code; } + + /** + * Returns the modifiers of the key. + * @return the modifiers of the key + */ + uint mod() const { return m_mod; } + + /** + * Returns the symbol of the key. + * @return the symbol of the key + */ + uint sym() const { return m_sym; } + + /** + * Returns the qt key code. + * @return the qt key code + */ + int keyCodeQt() const { return (int) m_sym; } + + /** + * Sets the qt key code. + * @param keyQt the qt key code + */ + void setKeycodeQt( int keyQt ) + { m_code = CODE_FOR_QT; m_sym = keyQt; } + + /** + * Initializes this key with a KKeyNative. + * @return this key + */ + Key& operator =( const KKeyNative& key ); + + /** + * Compares this key with the given Key object. Returns a + * negative number if the given Key is larger, 0 if they + * are equal and a positive number this Key is larger. The + * returned value is the difference between the symbol, modifier + * or code, whatever is non-zero first. + * + * @param key the key to compare with this key + * @return a negative number if the given Key is larger, 0 if + * they are equal and a positive number this Key is larger + */ + int compare( const Key& key ) const; + + /** + * Compares the symbol, modifiers and code of both keys. + * @see compare() + */ + bool operator ==( const Key& b ) const + { return compare( b ) == 0; } + + /** + * Compares the symbol, modifiers and code of both keys. + * @see compare() + */ + bool operator <( const Key& b ) const + { return compare( b ) < 0; } + + /** + * Converts this Key to a KKey. + * @return the KKey + */ + KKey key() const; + }; + + /** + * TODO: please document this class + */ + struct Variations + { + enum { MAX_VARIATIONS = 4 }; + + Key m_rgkey[MAX_VARIATIONS]; + uint m_nVariations; + + Variations() { m_nVariations = 0; } + + void init( const KKey&, bool bQt ); + + uint count() const { return m_nVariations; } + const Key& key( uint i ) const { return m_rgkey[i]; } + }; + + /// TODO: please document + bool initializeMods(); + + /** + * Returns the equivalent X modifier mask of the given modifier flag. + * @param modFlag the generic flags to check + * @return the window system specific flags + */ + uint modX( KKey::ModFlag modFlag ); + + /** + * Returns true if the current keyboard layout supports the Win key. + * Specifically, whether the Super or Meta keys are assigned to an X modifier. + * @return true if the keyboard has a Win key + * @see modXWin() + */ + bool keyboardHasWinKey(); + + /** + * Returns the X11 Shift modifier mask/flag. + * @return the X11 Shift modifier mask/flag. + * @see accelModMaskX() + */ + uint modXShift(); + + /** + * Returns the X11 Lock modifier mask/flag. + * @return the X11 Lock modifier mask/flag. + * @see accelModMaskX() + */ + uint modXLock(); + + /** + * Returns the X11 Ctrl modifier mask/flag. + * @return the X11 Ctrl modifier mask/flag. + * @see accelModMaskX() + */ + uint modXCtrl(); + + /** + * Returns the X11 Alt (Mod1) modifier mask/flag. + * @return the X11 Alt (Mod1) modifier mask/flag. + * @see accelModMaskX() + */ + uint modXAlt(); + + /** + * Returns the X11 NumLock modifier mask/flag. + * @return the X11 NumLock modifier mask/flag. + * @see accelModMaskX() + */ + uint modXNumLock(); + + /** + * Returns the X11 Win (Mod3) modifier mask/flag. + * @return the X11 Win (Mod3) modifier mask/flag. + * @see keyboardHasWinKey() + * @see accelModMaskX() + */ + uint modXWin(); + + /** + * Returns the X11 ScrollLock modifier mask/flag. + * @return the X11 ScrollLock modifier mask/flag. + * @see accelModMaskX() + */ + uint modXScrollLock(); + + /** + * Returns bitwise OR'ed mask containing Shift, Ctrl, Alt, and + * Win (if available). + * @see modXShift() + * @see modXLock() + * @see modXCtrl() + * @see modXAlt() + * @see modXNumLock() + * @see modXWin() + * @see modXScrollLock() + */ + uint accelModMaskX(); + + /** + * Extracts the symbol from the given Qt key and + * converts it to a symbol. + * @param keyQt the qt key code + * @param sym if successful, the symbol will be written here + * @return true if successful, false otherwise + * @see Qt::Key + * @see Sym + */ + bool keyQtToSym( int keyQt, uint& sym ); + + /** + * Extracts the modifiers from the given Qt key and + * converts them in a mask of ORed KKey::ModFlag modifiers. + * @param keyQt the qt key code + * @param mod if successful, the modifiers will be written here + * @return true if successful, false otherwise + * @see Qt::Key + */ + bool keyQtToMod( int keyQt, uint& mod ); + + /** + * Converts the given symbol to a Qt key code. + * @param sym the symbol + * @param keyQt if successful, the qt key code will be written here + * @return true if successful, false otherwise + * @see Qt::Key + * @see Sym + */ + bool symToKeyQt( uint sym, int& keyQt ); + + /** + * Converts the mask of ORed KKey::ModFlag modifiers to + * a mask of ORed Qt key code modifiers. + * @param mod the mask of KKey::ModFlag modifiers + * @param modQt the mask of Qt key code modifiers will be written here, + * if successful + * @return true if successful, false otherwise + * @see Qt::Key + * @see KKey + */ + bool modToModQt( uint mod, int& modQt ); + + /** + * Converts the mask of ORed KKey::ModFlag modifiers to + * a mask of ORed X11 modifiers. + * @param mod the mask of KKey::ModFlag modifiers + * @param modX the mask of X11 modifiers will be written here, + * if successful + * @return true if successful, false otherwise + * @see KKey + */ + bool modToModX( uint mod, uint& modX ); + + /** + * Converts the mask of ORed X11 modifiers to + * a mask of ORed Qt key code modifiers. + * @param modX the mask of X11 modifiers + * @param modQt the mask of Qt key code modifiers will be written here + * if successful + * @return true if successful, false otherwise + * @see Qt::Key + */ + bool modXToModQt( uint modX, int& modQt ); + + /** + * Converts the mask of ORed X11 modifiers to + * a mask of ORed KKey::ModFlag modifiers. + * @param modX the mask of X11 modifiers + * @param mod the mask of KKey::ModFlag modifiers will be written here, + * if successful + * @return true if successful, false otherwise + * @see KKey + */ + bool modXToMod( uint modX, uint& mod ); + + /** + * Converts a X11 key code and a mask of ORed X11 modifiers + * into a X11 symbol. + * converts it to a symbol. + * @param codeX the X11 key code + * @param modX the mask of ORed X11 modifiers + * @param symX if successful, the X11 symbol will be written here + * @return true if successful, false otherwise + * @see Qt::Key + * @see Sym + */ + bool codeXToSym( uchar codeX, uint modX, uint& symX ); + + /** + * @internal + */ + QString modToStringInternal( uint mod ); + + /** + * Converts the mask of ORed KKey::ModFlag modifiers to a + * user-readable string. + * @param mod the mask of ORed KKey::ModFlag modifiers + * @return the user-readable string + */ + QString modToStringUser( uint mod ); + + /** + * @internal + * Unimplemented? + */ + bool stringToSymMod( const QString&, uint& sym, uint& mod ); + + /** + * @internal + * Unimplemented? + */ + void keyQtToKeyX( uint keyCombQt, unsigned char *pKeyCodeX, uint *pKeySymX, uint *pKeyModX ); +} + +#endif // !_KKEYSERVER_X11_H diff --git a/extra/kde323/konsole_part.h b/extra/kde323/konsole_part.h new file mode 100644 index 0000000..ba89800 --- /dev/null +++ b/extra/kde323/konsole_part.h @@ -0,0 +1,223 @@ +/* + This file is part of the KDE system + Copyright (C) 1999,2000 Boloni Laszlo + + 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. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. + */ + +#ifndef __KONSOLE_PART_H__ +#define __KONSOLE_PART_H__ + +#include +#include + + +#include + +#include + +//#include "schema.h" +//#include "session.h" + +class KInstance; +class konsoleBrowserExtension; +class QPushButton; +class QSpinBox; +class KPopupMenu; +class QCheckBox; +class KRootPixmap; +class KToggleAction; +class KSelectAction; + +namespace KParts { class GUIActivateEvent; } + +class konsoleFactory : public KParts::Factory +{ + Q_OBJECT +public: + konsoleFactory(); + virtual ~konsoleFactory(); + + virtual KParts::Part* createPartObject(QWidget *parentWidget = 0, const char *widgetName = 0, + QObject* parent = 0, const char* name = 0, + const char* classname = "KParts::Part", + const QStringList &args = QStringList()); + + static KInstance *instance(); + + private: + static KInstance *s_instance; + static KAboutData *s_aboutData; +}; + +////////////////////////////////////////////////////////////////////// + +class konsolePart: public KParts::ReadOnlyPart, public TerminalInterface +{ + Q_OBJECT + public: + konsolePart(QWidget *parentWidget, const char *widgetName, QObject * parent, const char *name, const char *classname = 0); + virtual ~konsolePart(); + +signals: + void processExited(); + void receivedData( const QString& s ); + protected: + virtual bool openURL( const KURL & url ); + virtual bool openFile() {return false;} // never used + virtual bool closeURL() {return true;} + virtual void guiActivateEvent( KParts::GUIActivateEvent * event ); + + protected slots: + void showShell(); + void slotProcessExited(); + void slotReceivedData( const QString& s ); + +// void doneSession(TESession*); + void sessionDestroyed(); +// void configureRequest(TEWidget*,int,int x,int y); + void updateTitle(); + void enableMasterModeConnections(); + + private slots: + void emitOpenURLRequest(const QString &url); + + void readProperties(); + void saveProperties(); + + void sendSignal(int n); + void closeCurrentSession(); + + void notifySize(int,int); + + void slotToggleFrame(); + void slotSelectScrollbar(); + void slotSelectFont(); + void schema_menu_check(); + void keytab_menu_activated(int item); + void updateSchemaMenu(); + void setSchema(int n); + void pixmap_menu_activated(int item); + void schema_menu_activated(int item); + void slotHistoryType(); + void slotSelectBell(); + void slotSelectLineSpacing(); + void slotBlinkingCursor(); + void slotWordSeps(); + void fontNotFound(); + + private: + konsoleBrowserExtension *m_extension; + KURL currentURL; + + void makeGUI(); + void applySettingsToGUI(); + + void setFont(int fontno); +// void setSchema(ColorSchema* s); + void updateKeytabMenu(); + + bool doOpenStream( const QString& ); + bool doWriteStream( const QByteArray& ); + bool doCloseStream(); + + QWidget* parentWidget; +// TEWidget* te; +// TESession* se; +// ColorSchemaList* colors; + KRootPixmap* rootxpm; + + KToggleAction* blinkingCursor; + KToggleAction* showFrame; + + KSelectAction* selectBell; + KSelectAction* selectFont; + KSelectAction* selectLineSpacing; + KSelectAction* selectScrollbar; + + KPopupMenu* m_keytab; + KPopupMenu* m_schema; + KPopupMenu* m_signals; + KPopupMenu* m_options; + KPopupMenu* m_popupMenu; + + QFont defaultFont; + + QString pmPath; // pixmap path + QString s_schema; + QString s_kconfigSchema; + QString s_word_seps; // characters that are considered part of a word + QString fontNotFound_par; + + bool b_framevis:1; + bool b_histEnabled:1; + + int curr_schema; // current schema no + int n_bell; + int n_font; + int n_keytab; + int n_render; + int n_scroll; + unsigned m_histSize; + bool m_runningShell; + bool m_streamEnabled; +public: + // these are the implementations for the TermEmuInterface + // functions... + void startProgram( const QString& program, + const QStrList& args ); + void showShellInDir( const QString& dir ); + void sendInput( const QString& text ); +}; + +////////////////////////////////////////////////////////////////////// + +/*class HistoryTypeDialog : public KDialogBase +{ + Q_OBJECT +public: + HistoryTypeDialog(const HistoryType& histType, + unsigned int histSize, + QWidget *parent); + +public slots: + void slotDefault(); + void slotSetUnlimited(); + void slotHistEnable(bool); + + unsigned int nbLines() const; + bool isOn() const; + +protected: + QCheckBox* m_btnEnable; + QSpinBox* m_size; + QPushButton* m_setUnlimited; +};*/ + +////////////////////////////////////////////////////////////////////// + +class konsoleBrowserExtension : public KParts::BrowserExtension +{ + Q_OBJECT + friend class konsolePart; + public: + konsoleBrowserExtension(konsolePart *parent); + virtual ~konsoleBrowserExtension(); + + void emitOpenURLRequest(const KURL &url); +}; + +#endif diff --git a/extra/kde323/kpanelmenu.h b/extra/kde323/kpanelmenu.h new file mode 100644 index 0000000..83c3268 --- /dev/null +++ b/extra/kde323/kpanelmenu.h @@ -0,0 +1,181 @@ +/***************************************************************** + +Copyright (c) 1996-2000 the kicker authors. See file AUTHORS. + (c) 2001 Michael Goffioul + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN +AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +******************************************************************/ + +#ifndef __KPANELMENU_H__ +#define __KPANELMENU_H__ + +#include +#include +#include + +class KPanelMenuPrivate; + +/** + * Base class to build dynamically loaded menu entries for the K-menu, or the panel. + * + * This class allows to build menu entries that will be dynamically added either to + * the K-menu, or to the panel as a normal button. These dynamic menus are located + * in shared libraries that will be loaded at runtime by Kicker (the KDE panel). + * + * To build such a menu, you have to inherit this class and implement the pure virtual + * functions #initialize() and slotExec(). You also have to provide a factory + * object in your library, see KLibFactory. This factory is only used to construct + * the menu object. + * + * Finally, you also have to provide a desktop file describing your dynamic menu. The + * relevant entries are: Name, Comment, Icon and X-KDE-Library (which contains the + * library name without any extension). This desktop file has to be installed in + * $KDEDIR/share/apps/kicker/menuext/. + * + * @short Base class to build dynamically loaded menu entries for the K-menu, or the panel. + * @author The kicker maintainer, Michael Goffioul + */ +class KPanelMenu : public KPopupMenu +{ + Q_OBJECT + +public: + /** + * Construct a KPanelMenu object. This is the normal constructor to use when + * building extrernal menu entries. + */ + KPanelMenu(QWidget *parent=0, const char *name=0); + /** + * Constructor used internally by Kicker. You don't really want to use it. + * @param startDir a directory to associate with this menu + * @see path(), setPath() + */ + KPanelMenu(const QString &startDir, QWidget *parent=0, const char *name=0); + /** + * Destructor. + */ + virtual ~KPanelMenu(); + + /** + * Get the directory path associated with this menu, or QString::null if + * there's no such associated path. + * @return the associated directory path + * @see setPath() + */ + const QString& path() const; + /** + * Set a directory path to be associated with this menu. + * @param p the directory path + * @see path() + */ + void setPath(const QString &p); + /** + * Tell if the menu has been initialized, that is it already contains items. + * This is useful when you need to know if you have to clear the menu, or to + * fill it. + * @return the initial state + * @see setInitialized(), initialize() + */ + bool initialized() const; + /** + * Set the initial state. Set it to true when you menu is filled with the items + * you want. + * @param on the initial state + * @see initialized(), initialize() + */ + void setInitialized(bool on); + + /** + * Disable the automatic clearing of the menu. Kicker uses a cache system for + * its menus. After a specific configurable delay, the menu will be cleared. + * Use this function if you want to disable kicker's cache system, and avoid + * the clearing of your menu. + */ + void disableAutoClear(); + +public slots: + /** + * Reinitialize the menu: the menu is first cleared, the initial state is set + * to false, and finally #initialize() is called. Use this if you want to + * refill your menu immediately. + */ + void reinitialize(); + /** + * Deinitialize the menu: the menu is cleared and the initialized state is set to + * false. #initialize() is NOT called. It will be called before the menu is + * next shown, however. Use this slot if you want a delayed reinitialization. + * @since 3.1 + */ + void deinitialize(); + +protected slots: + /** + * This slot is called just before the menu is shown. This allows your menu + * to update itself if needed. However you should instead re-implement + * #initialize to provide this feature. This function is responsible for + * the cache system handling, so if you re-implement it, you should call + * the base function also. Calls #initialize(). + * @see disableAutoClear() + */ + virtual void slotAboutToShow(); + /** + * This is slot is called when an item from the menu has been selected. Your + * applet is then supposed to perform some action. You must re-implement this + * function. + * @param id the ID associated with the selected item + */ + virtual void slotExec(int id) = 0; + /** + * This slots is called to initialize the menu. It is called automatically by + * slotAboutToShow(). By re-implementing this functions, you can reconstruct + * the menu before it is being shown. At the end of this function, you should + * call setInitialize() with true to tell the system that the menu is OK. + * You applet must re-implement this function. + * @see slotAboutToShow(), initialized(), setInitialized() + */ + virtual void initialize() = 0; + /** + * Clears the menu, and update the initial state accordingly. + * @see initialized() + */ + void slotClear(); + +protected: + /** + * Re-implemented for internal reasons. + */ + virtual void hideEvent(QHideEvent *ev); + /** + * For internal use only. Used by constructors. + */ + void init(const QString& path = QString::null); + +protected: + virtual void virtual_hook( int id, void* data ); +private: + void internalInitialize(); + KPanelMenuPrivate *d; +}; + +#define K_EXPORT_KICKER_MENUEXT( libname, classname ) \ + K_EXPORT_COMPONENT_FACTORY( \ + kickermenu_##libname, \ + KGenericFactory("libkickermenu_" #libname) ) + +#endif diff --git a/extra/kde323/krecentdirs.h b/extra/kde323/krecentdirs.h new file mode 100644 index 0000000..71f771b --- /dev/null +++ b/extra/kde323/krecentdirs.h @@ -0,0 +1,68 @@ +/* -*- c++ -*- + * Copyright (C)2000 Waldo Bastian + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * + */ +#ifndef __KRECENTDIRS_H +#define __KRECENTDIRS_H + +#include + +/** + * The goal of this class is to make sure that, when the user needs to + * specify a file via the file selection dialog, this dialog will start + * in the directory most likely to contain the desired files. + * + * This works as follows: Each time the file selection dialog is + * shown, the programmer can specify a "file-class". The file-dialog will + * then start with the directory associated with this file-class. When + * the dialog closes, the directory currently shown in the file-dialog + * will be associated with the file-class. + * + * A file-class can either start with ':' or with '::'. If it starts with + * a single ':' the file-class is specific to the current application. + * If the file-class starts with '::' it is global to all applications. + */ +class KRecentDirs +{ +public: + /** + * Returns a list of directories associated with this file-class. + * The most recently used directory is at the front of the list. + */ + static QStringList list(const QString &fileClass); + + /** + * Returns the most recently used directory accociated with this file-class. + */ + static QString dir(const QString &fileClass); + + /** + * Associates @p directory with @p fileClass + */ + static void add(const QString &fileClass, const QString &directory); +}; + +#endif diff --git a/extra/kde323/ksharedptr.h b/extra/kde323/ksharedptr.h new file mode 100644 index 0000000..e8dc877 --- /dev/null +++ b/extra/kde323/ksharedptr.h @@ -0,0 +1,171 @@ +/* This file is part of the KDE libraries + Copyright (c) 1999 Waldo Bastian + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License version 2 as published by the Free Software Foundation. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ +#ifndef KSharedPTR_H +#define KSharedPTR_H + +/** + * Reference counting for shared objects. If you derive your object + * from this class, then you may use it in conjunction with + * KSharedPtr to control the lifetime of your object. + * + * Specifically, all classes that derive from KShared have an internal + * counter keeping track of how many other objects have a reference to + * their object. If used with KSharedPtr, then your object will + * not be deleted until all references to the object have been + * released. + * + * You should probably not ever use any of the methods in this class + * directly -- let the KSharedPtr take care of that. Just derive + * your class from KShared and forget about it. + * + * @author Waldo Bastian + * @version $Id: ksharedptr.h,v 1.22 2003/08/20 08:01:42 coolo Exp $ + */ +class KShared { +public: + /** + * Standard constructor. This will initialize the reference count + * on this object to 0. + */ + KShared() : count(0) { } + + /** + * Copy constructor. This will @em not actually copy the objects + * but it will initialize the reference count on this object to 0. + */ + KShared( const KShared & ) : count(0) { } + + /** + * Overloaded assignment operator. + */ + KShared &operator=(const KShared & ) { return *this; } + + /** + * Increases the reference count by one. + */ + void _KShared_ref() const { count++; } + + /** + * Releases a reference (decreases the reference count by one). If + * the count goes to 0, this object will delete itself. + */ + void _KShared_unref() const { if (!--count) delete this; } + + /** + * Return the current number of references held. + * + * @return Number of references + */ + int _KShared_count() const { return count; } + +protected: + virtual ~KShared() { } +private: + mutable int count; +}; + +/** + * Can be used to control the lifetime of an object that has derived + * KShared. As long a someone holds a KSharedPtr on some KShared + * object it won't become deleted but is deleted once its reference + * count is 0. This struct emulates C++ pointers perfectly. So just + * use it like a simple C++ pointer. + * + * KShared and KSharedPtr are preferred over QShared / QSharedPtr + * since they are more safe. + * + * @author Waldo Bastian + * @version $Id: ksharedptr.h,v 1.22 2003/08/20 08:01:42 coolo Exp $ + */ +template< class T > +struct KSharedPtr +{ +public: +/** + * Creates a null pointer. + */ + KSharedPtr() + : ptr(0) { } + /** + * Creates a new pointer. + * @param t the pointer + */ + KSharedPtr( T* t ) + : ptr(t) { if ( ptr ) ptr->_KShared_ref(); } + + /** + * Copies a pointer. + * @param p the pointer to copy + */ + KSharedPtr( const KSharedPtr& p ) + : ptr(p.ptr) { if ( ptr ) ptr->_KShared_ref(); } + + /** + * Unreferences the object that this pointer points to. If it was + * the last reference, the object will be deleted. + */ + ~KSharedPtr() { if ( ptr ) ptr->_KShared_unref(); } + + KSharedPtr& operator= ( const KSharedPtr& p ) { + if ( ptr == p.ptr ) return *this; + if ( ptr ) ptr->_KShared_unref(); + ptr = p.ptr; + if ( ptr ) ptr->_KShared_ref(); + return *this; + } + KSharedPtr& operator= ( T* p ) { + if ( ptr == p ) return *this; + if ( ptr ) ptr->_KShared_unref(); + ptr = p; + if ( ptr ) ptr->_KShared_ref(); + return *this; + } + bool operator== ( const KSharedPtr& p ) const { return ( ptr == p.ptr ); } + bool operator!= ( const KSharedPtr& p ) const { return ( ptr != p.ptr ); } + bool operator== ( const T* p ) const { return ( ptr == p ); } + bool operator!= ( const T* p ) const { return ( ptr != p ); } + bool operator!() const { return ( ptr == 0 ); } + operator T*() const { return ptr; } + + /** + * Returns the pointer. + * @return the pointer + */ + T* data() { return ptr; } + + /** + * Returns the pointer. + * @return the pointer + */ + const T* data() const { return ptr; } + + const T& operator*() const { return *ptr; } + T& operator*() { return *ptr; } + const T* operator->() const { return ptr; } + T* operator->() { return ptr; } + + /** + * Returns the number of references. + * @return the number of references + */ + int count() const { return ptr->_KShared_count(); } // for debugging purposes +private: + T* ptr; +}; + +#endif diff --git a/extra/kde323/ksycocafactory.h b/extra/kde323/ksycocafactory.h new file mode 100644 index 0000000..9cc1257 --- /dev/null +++ b/extra/kde323/ksycocafactory.h @@ -0,0 +1,143 @@ +/* This file is part of the KDE libraries + * Copyright (C) 1999 Waldo Bastian + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License version 2 as published by the Free Software Foundation; + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public License + * along with this library; see the file COPYING.LIB. If not, write to + * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA. + **/ + +#ifndef __ksycocafactory_h__ +#define __ksycocafactory_h__ "$Id: ksycocafactory.h,v 1.14 2003/10/29 17:59:18 waba Exp $" + +#include "ksycocatype.h" +#include "ksycocaentry.h" + +#include +#include +class KSycoca; +class QStringList; +class QString; +class KSycocaDict; +class KSycocaResourceList; + +typedef QDict KSycocaEntryDict; + +/** + * @internal + * Base class for sycoca factories + */ +class KSycocaFactory +{ +public: + virtual KSycocaFactoryId factoryId() const = 0; + +protected: // virtual class + /** + * Create a factory which can be used to lookup from/create a database + * (depending on KSycoca::isBuilding()) + */ + KSycocaFactory( KSycocaFactoryId factory_id ); + +public: + virtual ~KSycocaFactory(); + + /** + * @return the position of the factory in the sycoca file + */ + int offset() { return mOffset; } + + /** + * @return the dict, for special use by KBuildSycoca + */ + KSycocaEntryDict * entryDict() { return m_entryDict; } + + /** + * Construct an entry from a config file. + * To be implemented in the real factories. + */ + virtual KSycocaEntry *createEntry(const QString &file, const char *resource) = 0; + + /** + * Add an entry + */ + virtual void addEntry(KSycocaEntry *newEntry, const char *resource); + + /** + * Remove an entry + * Not very fast, use with care. O(N) + */ + void removeEntry(KSycocaEntry *newEntry); + + /** + * Read an entry from the database + */ + virtual KSycocaEntry *createEntry(int offset)=0; + + /** + * Get a list of all entries from the database. + */ + KSycocaEntry::List allEntries(); + + /** + * Saves all entries it maintains as well as index files + * for these entries to the stream 'str'. + * + * Also sets mOffset to the starting position. + * + * The stream is positioned at the end of the last index. + * + * Don't forget to call the parent first when you override + * this function. + */ + virtual void save(QDataStream &str); + + /** + * Writes out a header to the stream 'str'. + * The baseclass positions the stream correctly. + * + * Don't forget to call the parent first when you override + * this function. + */ + virtual void saveHeader(QDataStream &str); + + /** + * @return the resources for which this factory is responsible. + */ + virtual const KSycocaResourceList * resourceList() const { return m_resourceList; } + +private: + int mOffset; + +protected: + int m_sycocaDictOffset; + int m_beginEntryOffset; + int m_endEntryOffset; + QDataStream *m_str; + + KSycocaResourceList *m_resourceList; + KSycocaEntryDict *m_entryDict; + KSycocaDict *m_sycocaDict; +protected: + virtual void virtual_hook( int id, void* data ); +}; + +/** This, instead of a typedef, allows to declare "class ..." in header files + * @internal + */ +class KSycocaFactoryList : public QPtrList +{ +public: + KSycocaFactoryList() { } +}; + +#endif diff --git a/extra/kde323/ktoolbarbutton.h b/extra/kde323/ktoolbarbutton.h new file mode 100644 index 0000000..065617a --- /dev/null +++ b/extra/kde323/ktoolbarbutton.h @@ -0,0 +1,315 @@ +/* This file is part of the KDE libraries + Copyright (C) 1997, 1998 Stephan Kulow (coolo@kde.org) + (C) 1997, 1998 Sven Radej (radej@kde.org) + (C) 1997, 1998 Mark Donohoe (donohoe@kde.org) + (C) 1997, 1998 Matthias Ettrich (ettrich@kde.org) + (C) 2000 Kurt Granroth (granroth@kde.org) + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License version 2 as published by the Free Software Foundation. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +// $Id: ktoolbarbutton.h,v 1.34 2003/09/09 12:40:58 bhards Exp $ +#ifndef _KTOOLBARBUTTON_H +#define _KTOOLBARBUTTON_H + +#include +#include +#include +#include +#include + +class KToolBar; +class KToolBarButtonPrivate; +class KInstance; +class QEvent; +class QPopupMenu; +class QPainter; + +/** + * A toolbar button. This is used internally by KToolBar, use the + * KToolBar methods instead. + * @internal + */ +class KToolBarButton : public QToolButton +{ + Q_OBJECT + +public: + /** + * Construct a button with an icon loaded by the button itself. + * This will trust the button to load the correct icon with the + * correct size. + * + * @param icon Name of icon to load (may be absolute or relative) + * @param id Id of this button + * @param parent This button's parent + * @param name This button's internal name + * @param txt This button's text (in a tooltip or otherwise) + */ + KToolBarButton(const QString& icon, int id, QWidget *parent, + const char *name=0L, const QString &txt=QString::null, + KInstance *_instance = KGlobal::instance()); + + /** + * Construct a button with an existing pixmap. It is not + * recommended that you use this as the internal icon loading code + * will almost always get it "right". + * + * @param pixmap Name of icon to load (may be absolute or relative) + * @param id Id of this button + * @param parent This button's parent + * @param name This button's internal name + * @param txt This button's text (in a tooltip or otherwise) + */ + KToolBarButton(const QPixmap& pixmap, int id, QWidget *parent, + const char *name=0L, const QString &txt=QString::null); + + /** + * Construct a separator button + * + * @param parent This button's parent + * @param name This button's internal name + */ + KToolBarButton(QWidget *parent=0L, const char *name=0L); + + /** + * Standard destructor + */ + ~KToolBarButton(); + +#ifndef KDE_NO_COMPAT + /** + * @deprecated + * Set the pixmap directly for this button. This pixmap should be + * the active one... the dimmed and disabled pixmaps are constructed + * based on this one. However, don't use this function unless you + * are positive that you don't want to use setIcon. + * + * @param pixmap The active pixmap + */ + // this one is from QButton, so #ifdef-ing it out doesn't break BC + virtual void setPixmap(const QPixmap &pixmap) KDE_DEPRECATED; + + /** + * @deprecated + * Force the button to use this pixmap as the default one rather + * then generating it using effects. + * + * @param pixmap The pixmap to use as the default (normal) one + */ + void setDefaultPixmap(const QPixmap& pixmap) KDE_DEPRECATED; + + /** + * @deprecated + * Force the button to use this pixmap when disabled one rather then + * generating it using effects. + * + * @param pixmap The pixmap to use when disabled + */ + void setDisabledPixmap(const QPixmap& pixmap) KDE_DEPRECATED; +#endif + + /** + * Set the text for this button. The text will be either used as a + * tooltip (IconOnly) or will be along side the icon + * + * @param text The button (or tooltip) text + */ + virtual void setText(const QString &text); + + /** + * Set the icon for this button. The icon will be loaded internally + * with the correct size. This function is preferred over setIconSet + * + * @param icon The name of the icon + */ + virtual void setIcon(const QString &icon); + + /// @since 3.1 + virtual void setIcon( const QPixmap &pixmap ) + { QToolButton::setIcon( pixmap ); } + + /** + * Set the pixmaps for this toolbar button from a QIconSet. + * If you call this you don't need to call any of the other methods + * that set icons or pixmaps. + * @param iconset The iconset to use + */ + virtual void setIconSet( const QIconSet &iconset ); + +#ifndef KDE_NO_COMPAT + /** + * @deprecated + * Set the active icon for this button. The pixmap itself is loaded + * internally based on the icon size... .. the disabled and default + * pixmaps, however will only be constructed if generate is + * true. This function is preferred over setPixmap + * + * @param icon The name of the active icon + * @param generate If true, then the other icons are automagically + * generated from this one + */ + KDE_DEPRECATED void setIcon(const QString &icon, bool generate ) { Q_UNUSED(generate); setIcon( icon ); } + + /** + * @deprecated + * Force the button to use this icon as the default one rather + * then generating it using effects. + * + * @param icon The icon to use as the default (normal) one + */ + void setDefaultIcon(const QString& icon) KDE_DEPRECATED; + + /** + * @deprecated + * Force the button to use this icon when disabled one rather then + * generating it using effects. + * + * @param icon The icon to use when disabled + */ + void setDisabledIcon(const QString& icon) KDE_DEPRECATED; +#endif + + /** + * Turn this button on or off + * + * @param flag true or false + */ + void on(bool flag = true); + + /** + * Toggle this button + */ + void toggle(); + + /** + * Turn this button into a toggle button or disable the toggle + * aspects of it. This does not toggle the button itself. + * Use toggle() for that. + * + * @param toggle true or false + */ + void setToggle(bool toggle = true); + + /** + * Return a pointer to this button's popup menu (if it exists) + */ + QPopupMenu *popup(); + + /** + * Returns the button's id. + * @since 3.2 + */ + int id() const; + + /** + * Give this button a popup menu. There will not be a delay when + * you press the button. Use setDelayedPopup if you want that + * behavior. + * + * @param p The new popup menu + * @param unused Has no effect - ignore it. + */ + void setPopup (QPopupMenu *p, bool unused = false); + + /** + * Gives this button a delayed popup menu. + * + * This function allows you to add a delayed popup menu to the button. + * The popup menu is then only displayed when the button is pressed and + * held down for about half a second. + * + * @param p the new popup menu + * @param unused Has no effect - ignore it. + */ + void setDelayedPopup(QPopupMenu *p, bool unused = false); + + /** + * Turn this button into a radio button + * + * @param f true or false + */ + void setRadio(bool f = true); + + /** + * Toolbar buttons naturally will assume the global styles + * concerning icons, icons sizes, etc. You can use this function to + * explicitly turn this off, if you like. + * + * @param no_style Will disable styles if true + */ + void setNoStyle(bool no_style = true); + +signals: + void clicked(int); + void doubleClicked(int); + void pressed(int); + void released(int); + void toggled(int); + void highlighted(int, bool); + +public slots: + /** + * This slot should be called whenever the toolbar mode has + * potentially changed. This includes such events as text changing, + * orientation changing, etc. + */ + void modeChange(); + virtual void setTextLabel(const QString&, bool tipToo); + +protected: + void paletteChange(const QPalette &); + void leaveEvent(QEvent *e); + void enterEvent(QEvent *e); + void drawButton(QPainter *p); + bool eventFilter (QObject *o, QEvent *e); + void showMenu(); + QSize sizeHint() const; + QSize minimumSizeHint() const; + QSize minimumSize() const; + + /// @since 3.1 + bool isRaised() const; + /// @since 3.1 + bool isActive() const; + /// @since 3.1 + int iconTextMode() const; + +protected slots: + void slotClicked(); + void slotPressed(); + void slotReleased(); + void slotToggled(); + void slotDelayTimeout(); + +protected: + virtual void virtual_hook( int id, void* data ); +private: + KToolBarButtonPrivate *d; +}; + +/** +* List of KToolBarButton objects. +* @internal +* @version $Id: ktoolbarbutton.h,v 1.34 2003/09/09 12:40:58 bhards Exp $ +*/ +class KToolBarButtonList : public QIntDict +{ +public: + KToolBarButtonList(); + ~KToolBarButtonList() {} +}; + +#endif diff --git a/extra/kde323/kurifilter.h b/extra/kde323/kurifilter.h new file mode 100644 index 0000000..8c5f5fe --- /dev/null +++ b/extra/kde323/kurifilter.h @@ -0,0 +1,644 @@ +/* + * This file is part of the KDE libraries + * Copyright (C) 2000-2001,2003 Dawit Alemayehu + * + * Original author + * Copyright (C) 2000 Yves Arrouye + * + * + * This library 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. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public License + * along with this library; see the file COPYING.LIB. If not, write to + * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA. + **/ + +#ifndef __kurifilter_h__ +#define __kurifilter_h__ "$Id: kurifilter.h,v 1.41 2003/08/30 08:56:21 raabe Exp $" + +#include +#include +#include + +#include +#include + +class KURIFilterPrivate; +class KURIFilterDataPrivate; + +class KCModule; + +/** +* A basic message object used for exchanging filtering +* information between the filter plugins and the application +* requesting the filtering service. +* +* Use this object if you require a more detailed information +* about the URI you want to filter. Any application can create +* an instance of this class and send it to KURIFilter to +* have the plugins fill out all possible information about the +* URI. +* +* \b Example +* +* \code +* QString text = "kde.org"; +* KURIFilterData d = text; +* bool filtered = KURIFilter::self()->filter( d ); +* cout << "URL: " << text.latin1() << endl +* << "Filtered URL: " << d.uri().url().latin1() << endl +* << "URI Type: " << d.uriType() << endl +* << "Was Filtered: " << filtered << endl; +* \endcode +* +* The above code should yield the following output: +* \code +* URI: kde.org +* Filtered URI: http://kde.org +* URI Type: 0 <== means NET_PROTOCOL +* Was Filtered: 1 <== means the URL was successfully filtered +* \endcode +* +* @short A message object for exchanging filtering URI info. +* @author Dawit Alemayehu +*/ + +class KURIFilterData +{ +friend class KURIFilterPlugin; + +public: + /** + * Describes the type of the URI that was filtered. + * Here is a brief description of the types: + * + * @li NET_PROTOCOL - Any network protocol: http, ftp, nttp, pop3, etc... + * @li LOCAL_FILE - A local file whose executable flag is not set + * @li LOCAL_DIR - A local directory + * @li EXECUTABLE - A local file whose executable flag is set + * @li HELP - A man or info page + * @li SHELL - A shell executable (ex: echo "Test..." >> ~/testfile) + * @li BLOCKED - A URI that should be blocked/filtered (ex: ad filtering) + * @li ERROR - An incorrect URI (ex: "~johndoe" when user johndoe + * does not exist in that system ) + * @li UNKNOWN - A URI that is not identified. Default value when + * a KURIFilterData is first created. + */ + enum URITypes { NET_PROTOCOL=0, LOCAL_FILE, LOCAL_DIR, EXECUTABLE, HELP, SHELL, BLOCKED, ERROR, UNKNOWN }; + + /** + * Default constructor. + * + * Creates a URIFilterData object. + */ + KURIFilterData() { init(); } + + /** + * Creates a URIFilterData object from the given URL. + * + * @param url is the URL to be filtered. + */ + KURIFilterData( const KURL& url ) { init( url); } + + /** + * Creates a URIFilterData object from the given string. + * + * @param url is the string to be filtered. + */ + KURIFilterData( const QString& url ) { init( url ); } + + /** + * Copy constructor. + * + * Creates a URIFilterData object from another + * URI filter data object. + * + * @param data the uri filter data to be copied. + */ + KURIFilterData( const KURIFilterData& data); + + /** + * Destructor. + */ + ~KURIFilterData(); + + /** + * This method has been deprecated and will always return + * true. You should instead use the result from the + * KURIFilter::filterURI() calls. + * + * @deprecated + */ + KDE_DEPRECATED bool hasBeenFiltered() const { return true; } + + /** + * Returns the filtered or the original URL. + * + * This function returns the filtered url if one + * of the plugins successfully filtered the original + * URL. Otherwise, it returns the original URL. + * See hasBeenFiltered() and + * + * @return the filtered or original url. + */ + KURL uri() const { return m_pURI; } + + /** + * Returns an error message. + * + * This functions returns the error message set + * by the plugin whenever the uri type is set to + * KURIFilterData::ERROR. Otherwise, it returns + * a QString::null. + * + * @return the error message or a NULL when there is none. + */ + QString errorMsg() const { return m_strErrMsg; } + + /** + * Returns the URI type. + * + * This method always returns KURIFilterData::UNKNOWN + * if the given URL was not filtered. + * @return the type of the URI + */ + URITypes uriType() const { return m_iType; } + + /** + * Sets the URL to be filtered. + * + * Use this function to set the string to be + * filtered when you construct an empty filter + * object. + * + * @param url the string to be filtered. + */ + void setData( const QString& url ) { init( url ); } + + /** + * Same as above except the argument is a URL. + * + * Use this function to set the string to be + * filtered when you construct an empty filter + * object. + * + * @param url the URL to be filtered. + */ + void setData( const KURL& url ) { init( url ); } + + /** + * Sets the absolute path to be used whenever the supplied + * data is a relative local URL. + * + * NOTE: This function should only be used for local resources, + * i.e. the "file:/" protocol. It is useful for specifying the + * absolute path in cases where the actual URL might be relative. + * meta object. If deriving the path from a KURL, make sure you + * set the argument for this function to the result of calling + * path () instead of url (). + * + * @param abs_path the abolute path to the local resource. + * @return true if absolute path is successfully set. Otherwise, false. + */ + bool setAbsolutePath( const QString& abs_path ); + + /** + * Returns the absolute path if one has already been set. + * @return the absolute path, or QString::null + * @see hasAbsolutePath() + */ + QString absolutePath() const; + + /** + * Checks whether the supplied data had an absolute path. + * @return true if the supplied data has an absolute path + * @see absolutePath() + */ + bool hasAbsolutePath() const; + + /** + * Returns the command line options and arguments for a + * local resource when present. + * + * @return options and arguments when present, otherwise QString::null + */ + QString argsAndOptions() const; + + /** + * Checks whether the current data is a local resource with + * command line options and arguments. + * @return true if the current data has command line options and arguments + */ + bool hasArgsAndOptions() const; + + /** + * Returns the name of the icon that matches + * the current filtered URL. + * + * NOTE that this function will return a NULL + * string by default and when no associated icon + * is found. + * + * @return the name of the icon associated with the resource, + * or QString::null if not found + */ + QString iconName(); + + /** + * Check whether the provided uri is executable or not. + * + * Setting this to false ensures that typing the name of + * an executable does not start that application. This is + * useful in the location bar of a browser. The default + * value is true. + * + * @since 3.2 + */ + void setCheckForExecutables (bool check); + + /** + * @return true if the filters should attempt to check whether the + * supplied uri is an executable. False otherwise. + * + * @since 3.2 + */ + bool checkForExecutables() const { return m_bCheckForExecutables; } + + /** + * @return the string as typed by the user, before any URL processing is done + * @since 3.2 + */ + QString typedString() const; + + /** + * Overloaded assigenment operator. + * + * This function allows you to easily assign a KURL + * to a KURIFilterData object. + * + * @return an instance of a KURIFilterData object. + */ + KURIFilterData& operator=( const KURL& url ) { init( url ); return *this; } + + /** + * Overloaded assigenment operator. + * + * This function allows you to easily assign a QString + * to a KURIFilterData object. + * + * @return an instance of a KURIFilterData object. + */ + KURIFilterData& operator=( const QString& url ) { init( url ); return *this; } + +protected: + + /** + * Initializes the KURIFilterData on construction. + * @param url the URL to initialize the object with + */ + void init( const KURL& url); + + /** + * Initializes the KURIFilterData on construction. + * @param url the URL to initialize the object with + */ + void init( const QString& url = QString::null ); + +private: + bool m_bCheckForExecutables; + bool m_bChanged; + + QString m_strErrMsg; + QString m_strIconName; + + KURL m_pURI; + URITypes m_iType; + KURIFilterDataPrivate *d; +}; + + +/** + * Base class for URI filter plugins. + * + * This class applies a single filter to a URI. All plugins designed + * to provide URI filtering service should inherit from this abstract + * class and provide a concrete implementation. + * + * All inheriting classes need to implement the pure virtual function + * filterURI. + * + * @short Abstract class for URI filter plugins. + */ +class KURIFilterPlugin : public QObject +{ + Q_OBJECT + +public: + + /** + * Constructs a filter plugin with a given name and + * priority. + * + * @param parent the parent object, or 0 for no parent + * @param name the name of the plugin, or 0 for no name + * @param pri the priority of the plugin. + */ + KURIFilterPlugin( QObject *parent = 0, const char *name = 0, double pri = 1.0 ); + + /** + * Returns the filter's name. + * + * @return A string naming the filter. + */ + virtual QString name() const { return m_strName; } + + /** + * Returns the filter's priority. + * + * Each filter has an assigned priority, a float from 0 to 1. Filters + * with the lowest priority are first given a chance to filter a URI. + * + * @return The priority of the filter. + */ + virtual double priority() const { return m_dblPriority; } + + /** + * Filters a URI. + * + * @param data the URI data to be filtered. + * @return A boolean indicating whether the URI has been changed. + */ + virtual bool filterURI( KURIFilterData& data ) const = 0; + + /** + * Creates a configuration module for the filter. + * + * It is the responsibility of the caller to delete the module + * once it is not needed anymore. + * + * @return A configuration module, 0 if the filter isn't configurable. + */ + virtual KCModule *configModule( QWidget*, const char* ) const { return 0; } + + /** + * Returns the name of the configuration module for the filter. + * + * @return the name of a configuration module or QString::null if none. + */ + virtual QString configName() const { return name(); } + +protected: + + /** + * Sets the the URL in @p data to @p uri. + */ + void setFilteredURI ( KURIFilterData& data, const KURL& uri ) const; + + /** + * Sets the error message in @p data to @p errormsg. + */ + void setErrorMsg ( KURIFilterData& data, const QString& errmsg ) const { + data.m_strErrMsg = errmsg; + } + + /** + * Sets the URI type in @p data to @p type. + */ + void setURIType ( KURIFilterData& data, KURIFilterData::URITypes type) const { + data.m_iType = type; + data.m_bChanged = true; + } + + /** + * Sets the arguments and options string in @p data + * to @p args if any were found during filterting. + */ + void setArguments( KURIFilterData& data, const QString& args ) const; + + QString m_strName; + double m_dblPriority; + +protected: + virtual void virtual_hook( int id, void* data ); +private: + class KURIFilterPluginPrivate *d; +}; + + +/** + * A list of filter plugins. + */ +class KURIFilterPluginList : public QPtrList +{ +public: + virtual int compareItems(Item a, Item b) + { + double diff = ((KURIFilterPlugin *) a)->priority() - ((KURIFilterPlugin *) b)->priority(); + return diff < 0 ? -1 : (diff > 0 ? 1 : 0); + } + +private: + KURIFilterPrivate *d; + +}; + +/** + * Manages the filtering of URIs. + * + * The intention of this plugin class is to allow people to extend the + * functionality of KURL without modifying it directly. This way KURL will + * remain a generic parser capable of parsing any generic URL that adheres + * to specifications. + * + * The KURIFilter class applies a number of filters to a URI and returns the + * filtered version whenever possible. The filters are implemented using + * plugins to provide easy extensibility of the filtering mechanism. New + * filters can be added in the future by simply inheriting from + * KURIFilterPlugin and implementing the KURIFilterPlugin::filterURI + * method. + * + * Use of this plugin-manager class is straight forward. Since it is a + * singleton object, all you have to do is obtain an instance by doing + * @p KURIFilter::self() and use any of the public member functions to + * preform the filtering. + * + * \b Example + * + * To simply filter a given string: + * + * \code + * bool filtered = KURIFilter::self()->filterURI( "kde.org" ); + * \endcode + * + * You can alternatively use a KURL: + * + * \code + * KURL url = "kde.org"; + * bool filtered = KURIFilter::self()->filterURI( url ); + * \endcode + * + * If you have a constant string or a constant URL, simply invoke the + * corresponding function to obtain the filtered string or URL instead + * of a boolean flag: + * + * \code + * QString u = KURIFilter::self()->filteredURI( "kde.org" ); + * \endcode + * + * You can also restrict the filter(s) to be used by supplying + * the name of the filter(s) to use. By defualt all available + * filters will be used. To use specific filters, add the names + * of the filters you want to use to a QStringList and invoke + * the appropriate filtering function. The examples below show + * the use of specific filters. The first one uses a single + * filter called kshorturifilter while the second example uses + * multiple filters: + * + * \code + * QString text = "kde.org"; + * bool filtered = KURIFilter::self()->filterURI( text, "kshorturifilter" ); + * \endcode + * + * \code + * QStringList list; + * list << "kshorturifilter" << "localdomainfilter"; + * bool filtered = KURIFilter::self()->filterURI( text, list ); + * \endcode + * + * KURIFilter also allows richer data exchange through a simple + * meta-object called @p KURIFilterData. Using this meta-object + * you can find out more information about the URL you want to + * filter. See KURIFilterData for examples and details. + * + * @short Filters a given URL into its proper format whenever possible. + */ + +class KURIFilter +{ +public: + /** + * Destructor + */ + ~KURIFilter (); + + /** + * Returns an instance of KURIFilter. + */ + static KURIFilter* self(); + + /** + * Filters the URI given by the object URIFilterData. + * + * The given URL is filtered based on the specified list of filters. + * If the list is empty all available filters would be used. + * + * @param data object that contains the URI to be filtered. + * @param filters specify the list of filters to be used. + * + * @return a boolean indicating whether the URI has been changed + */ + bool filterURI( KURIFilterData& data, const QStringList& filters = QStringList() ); + + /** + * Filters the URI given by the URL. + * + * The given URL is filtered based on the specified list of filters. + * If the list is empty all available filters would be used. + * + * @param uri the URI to filter. + * @param filters specify the list of filters to be used. + * + * @return a boolean indicating whether the URI has been changed + */ + bool filterURI( KURL &uri, const QStringList& filters = QStringList() ); + + /** + * Filters a string representing a URI. + * + * The given URL is filtered based on the specified list of filters. + * If the list is empty all available filters would be used. + * + * @param uri The URI to filter. + * @param filters specify the list of filters to be used. + * + * @return a boolean indicating whether the URI has been changed + */ + bool filterURI( QString &uri, const QStringList& filters = QStringList() ); + + /** + * Returns the filtered URI. + * + * The given URL is filtered based on the specified list of filters. + * If the list is empty all available filters would be used. + * + * @param uri The URI to filter. + * @param filters specify the list of filters to be used. + * + * @return the filtered URI or null if it cannot be filtered + */ + KURL filteredURI( const KURL &uri, const QStringList& filters = QStringList() ); + + /** + * Return a filtered string representation of a URI. + * + * The given URL is filtered based on the specified list of filters. + * If the list is empty all available filters would be used. + * + * @param uri the URI to filter. + * @param filters specify the list of filters to be used. + * + * @return the filtered URI or null if it cannot be filtered + */ + QString filteredURI( const QString &uri, const QStringList& filters = QStringList() ); + + /** + * Return an iterator to iterate over all loaded + * plugins. + * + * @return a plugin iterator. + */ + QPtrListIterator pluginsIterator() const; + + /** + * Return a list of the names of all loaded plugins. + * + * @return a QStringList of plugin names + * @since 3.1 + */ + QStringList pluginNames() const; + +protected: + + /** + * A protected constructor. + * + * This constructor creates a KURIFilter and + * initializes all plugins it can find by invoking + * loadPlugins. + */ + KURIFilter(); + + /** + * Loads all allowed plugins. + * + * This function loads all filters that have not + * been disbled. + */ + void loadPlugins(); + +private: + static KURIFilter *m_self; + KURIFilterPluginList m_lstPlugins; + KURIFilterPrivate *d; +}; + +#endif diff --git a/extra/kde323/selectdialog.h b/extra/kde323/selectdialog.h new file mode 100644 index 0000000..b5e962c --- /dev/null +++ b/extra/kde323/selectdialog.h @@ -0,0 +1,87 @@ +/* + This file is part of libkresources. + + Copyright (c) 2002 Tobias Koenig + Copyright (c) 2002 Jan-Pascal van Best + Copyright (c) 2003 Cornelius Schumacher + + This library 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. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef KRESOURCES_SELECTDIALOG_H +#define KRESOURCES_SELECTDIALOG_H + +#include +#include +#include + +#include + +class KListBox; + +namespace KRES { + +class Resource; + +/** + * Dialog for selecting a resource. + * + * Example: + * + * \code + * + * QPtrList list = ... // can be retrived from KRES::Manager (e.g. KABC::AddressBook) + * + * KABC::Resource *res = KABC::SelectDialog::getResource( list, parentWdg ); + * if ( !res ) { + * // no resource selected + * } else { + * // do something with resource + * } + * \endcode + */ +class SelectDialog +{ + public: + /** + * Constructor. + * @param list The list of available resources + * @param parent The parent widget + * @param name The name of the dialog + */ + SelectDialog( QPtrList list, QWidget *parent = 0, + const char *name = 0); + + /** + * Returns selected resource. + */ + Resource *resource(); + + /** + * Opens a dialog showing the available resources and returns the resource the + * user has selected. Returns 0, if the dialog was canceled. + */ + static Resource *getResource( QPtrList list, QWidget *parent = 0 ); + + private: + KListBox *mResourceId; + + QMap mResourceMap; +}; + +} + +#endif diff --git a/extra/kde330/configwidget.h b/extra/kde330/configwidget.h new file mode 100644 index 0000000..643df88 --- /dev/null +++ b/extra/kde330/configwidget.h @@ -0,0 +1,58 @@ +/* + This file is part of libkresources. + Copyright (c) 2002 Tobias Koenig + Copyright (c) 2002 Jan-Pascal van Best + + This library 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. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef KRESOURCES_CONFIGWIDGET_H +#define KRESOURCES_CONFIGWIDGET_H + +#include "resource.h" + +#include + +#include + +namespace KRES { + +class ConfigWidget : public QWidget +{ + Q_OBJECT + public: + ConfigWidget( QWidget *parent = 0, const char *name = 0 ); + + /** + Sets the widget to 'edit' mode. Reimplement this method if you are + interested in the mode change (to disable some GUI element for + example). By default the widget is in 'create new' mode. + */ + virtual void setInEditMode( bool value ); + + public slots: + virtual void loadSettings( Resource *resource ) = 0; + virtual void saveSettings( Resource *resource ) = 0; + + signals: + void setReadOnly( bool value ); + + protected: + Resource *mResource; +}; + +} +#endif diff --git a/extra/kde330/kaccelaction.h b/extra/kde330/kaccelaction.h new file mode 100644 index 0000000..9967e4f --- /dev/null +++ b/extra/kde330/kaccelaction.h @@ -0,0 +1,564 @@ +/* This file is part of the KDE libraries + Copyright (C) 2001,2002 Ellis Whitehead + + This library 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. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef _KACCELACTION_H +#define _KACCELACTION_H + +#include +#include +#include +#include + +#include + +class KAccelBase; + +class QObject; +class KConfig; +class KConfigBase; + +/** + * @internal + * A KAccelAction prepresents an action that can be executed using + * an accelerator key. Each KAccelAction has a name, a label, a + * "What's this" string and a KShortcut. The user can configure and + * enable/disable them using KKeyDialog. + * + * \code + * 1) KAccelAction = "Run Command" + * Default3 = "Alt+F2" + * Default4 = "Meta+Enter;Alt+F2" + * 1) KShortcut = "Meta+Enter" + * 1) KKeySequence = "Meta+Enter" + * 1) KKey = "Meta+Enter" + * 1) Meta+Enter + * 2) Meta+Keypad_Enter + * 2) KShortcut = "Alt+F2" + * 1) KKeySequence = "Alt+F2" + * 1) Alt+F2 + * 2) KAccelAction = "Something" + * Default3 = "" + * Default4 = "" + * 1) KShortcut = "Meta+X,Asterisk" + * 1) KKeySequence = "Meta+X,Asterisk" + * 1) KKey = "Meta+X" + * 1) Meta+X + * 2) KKey = "Asterisk" + * 1) Shift+8 (English layout) + * 2) Keypad_Asterisk + * \endcode + * @short An accelerator action + * @see KAccel + * @see KGlobalAccel + * @see KKeyChooser + * @see KKeyDialog + */ +class KAccelAction +{ + public: + /** + * Creates an empty KAccelAction. + * @see clear() + */ + KAccelAction(); + + /** + * Copy constructor. + */ + KAccelAction( const KAccelAction& ); + + /** + * Creates a new KAccelAction. + * @param sName the name of the accelerator + * @param sLabel the label of the accelerator (i18n!) + * @param sWhatsThis the What's This text (18n!) + * @param cutDef3 the default shortcut for 3 modifier systems + * @param cutDef4 the default shortcut for 4 modifier systems + * @param pObjSlot the receiver of a signal when the key has been + * pressed + * @param psMethodSlot the slot to connect for key presses. Receives + * an int, as set by setID(), as only argument + * @param bConfigurable if true the user can configure the shortcut + * @param bEnabled true if the accelerator should be enabled + */ + KAccelAction( const QString& sName, const QString& sLabel, const QString& sWhatsThis, + const KShortcut& cutDef3, const KShortcut& cutDef4, + const QObject* pObjSlot, const char* psMethodSlot, + bool bConfigurable, bool bEnabled ); + ~KAccelAction(); + + /** + * Clears the accelerator. + */ + void clear(); + + /** + * Re-initialized the KAccelAction. + * @param sName the name of the accelerator + * @param sLabel the label of the accelerator (i18n!) + * @param sWhatsThis the What's This text (18n!) + * @param cutDef3 the default shortcut for 3 modifier systems + * @param cutDef4 the default shortcut for 4 modifier systems + * @param pObjSlot the receiver of a signal when the key has been + * pressed + * @param psMethodSlot the slot to connect for key presses. Receives + * an int, as set by setID(), as only argument + * @param bConfigurable if true the user can configure the shortcut + * @param bEnabled true if the accelerator should be enabled + * @return true if successful, false otherwise + */ + bool init( const QString& sName, const QString& sLabel, const QString& sWhatsThis, + const KShortcut& cutDef3, const KShortcut& cutDef4, + const QObject* pObjSlot, const char* psMethodSlot, + bool bConfigurable, bool bEnabled ); + + /** + * Copies this KAccelAction. + */ + KAccelAction& operator=( const KAccelAction& ); + + /** + * Returns the name of the accelerator action. + * @return the name of the accelerator action, can be null if not + * set + */ + const QString& name() const { return m_sName; } + + /** + * Returns the label of the accelerator action. + * @return the label of the accelerator action, can be null if + * not set + */ + const QString& label() const { return m_sLabel; } + + /** + * Returns the What's This text of the accelerator action. + * @return the What's This text of the accelerator action, can be + * null if not set + */ + const QString& whatsThis() const { return m_sWhatsThis; } + + /** + * The shortcut that is actually used (may be used configured). + * @return the shortcut of the KAccelAction, can be null if not set + * @see shortcutDefault() + */ + const KShortcut& shortcut() const { return m_cut; } + + /** + * The default shortcut for this system. + * @return the default shortcut on this system, can be null if not set + * @see shortcut() + * @see shortcutDefault3() + * @see shortcutDefault4() + */ + const KShortcut& shortcutDefault() const; + + /** + * The default shortcut for 3 modifier systems. + * @return the default shortcut for 3 modifier systems, can be null + * if not set + * @see shortcutDefault() + * @see shortcutDefault4() + * @see useFourModifierKeys() + */ + const KShortcut& shortcutDefault3() const { return m_cutDefault3; } + + /** + * The default shortcut for 4 modifier systems. + * @return the default shortcut for 4 modifier systems, can be null + * if not set + * @see shortcutDefault() + * @see shortcutDefault3() + * @see useFourModifierKeys() + */ + const KShortcut& shortcutDefault4() const { return m_cutDefault4; } + + /** + * Returns the receiver of signals. + * @return the receiver of signals (can be 0 if not set) + */ + const QObject* objSlotPtr() const { return m_pObjSlot; } + + /** + * Returns the slot for the signal. + * @return the slot for the signal + */ + const char* methodSlotPtr() const { return m_psMethodSlot; } + + /** + * Checks whether the user can configure the action. + * @return true if configurable, false otherwise + */ + bool isConfigurable() const { return m_bConfigurable; } + + /** + * Checks whether the action is enabled. + * @return true if enabled, false otherwise + */ + bool isEnabled() const { return m_bEnabled; } + + /** + * Sets the name of the accelerator action. + * @param name the new name + */ + void setName( const QString& name ); + + /** + * Sets the user-readable label of the accelerator action. + * @param label the new label (i18n!) + */ + void setLabel( const QString& label ); + + /** + * Sets the What's This text for the accelerator action. + * @param whatsThis the new What's This text (i18n!) + */ + void setWhatsThis( const QString& whatsThis ); + + /** + * Sets the new shortcut of the accelerator action. + * @param rgCuts the shortcut to set + * @return true if successful, false otherwise + */ + bool setShortcut( const KShortcut& rgCuts ); + + /** + * Sets the slot of the accelerator action. + * @param pObjSlot the receiver object of the signal + * @param psMethodSlot the slot for the signal + */ + void setSlot( const QObject* pObjSlot, const char* psMethodSlot ); + + /** + * Enables or disabled configuring the action. + * @param configurable true to enable configurability, false to disable + */ + void setConfigurable( bool configurable ); + + /** + * Enables or disabled the action. + * @param configurable true to enable the action, false to disable + */ + void setEnabled( bool enable ); + + /** + * Retrieves the id set using setID. + * @return the id of the accelerator action + */ + int getID() const { return m_nIDAccel; } + + /** + * Allows you to set an id that will be used as the action + * signal's argument. + * + * @param n the new id + * @see getID() + */ + void setID( int n ) { m_nIDAccel = n; } + + /** + * Checkes whether the action is connected (emits signals). + * @return true if connected, false otherwise + */ + bool isConnected() const; + + /** + * Sets a key sequence of the action's shortcut. + * @param i the position of the sequence + * @param keySeq the new new sequence + * @return true if successful, false otherwise + * @see KShortcut::setSeq() + */ + bool setKeySequence( uint i, const KKeySequence &keySeq ); + + /** + * Clears the action's shortcut. It will not contain any sequences after + * calling this method. + * @see KShortcut::clear() + */ + void clearShortcut(); + + /** + * Checks whether the action's shortcut contains the given key sequence. + * @param keySeq the key sequence to check + * @return true if the shortcut contains the given sequence + * @see KShortcut::contains() + */ + bool contains( const KKeySequence &keySeq ); + + /** + * Returns the string representation of the action's shortcut. + * @return the string representation of the action's shortcut. + * @see KShortcut::toString() + */ + QString toString() const; + + /** + * @internal + */ + QString toStringInternal() const; + + /** + * Returns true if four modifier keys will be used. + * @return true if four modifier keys will be used. + */ + static bool useFourModifierKeys(); + + /** + * Selects 3 or 4 modifier default shortcuts. + * @param use true to use 4 modifier shortcuts, false to use + * 3 modifier shortcuts + */ + static void useFourModifierKeys( bool use ); + + protected: + QString m_sName, + m_sLabel, + m_sWhatsThis; + KShortcut m_cut; + KShortcut m_cutDefault3, m_cutDefault4; + const QObject* m_pObjSlot; + const char* m_psMethodSlot; + bool m_bConfigurable, + m_bEnabled; + int m_nIDAccel; + uint m_nConnections; + + void incConnections(); + void decConnections(); + + private: + static int g_bUseFourModifierKeys; + class KAccelActionPrivate* d; + + friend class KAccelActions; + friend class KAccelBase; +}; + +//--------------------------------------------------------------------- +// KAccelActions +//--------------------------------------------------------------------- + +/** + * @internal + * This class represents a collection of KAccelAction objects. + * + * @short A collection of accelerator actions + * @see KAccelAction + */ +class KAccelActions +{ + public: + /** + * Creates a new, empty KAccelActions object. + */ + KAccelActions(); + + /** + * Copy constructor (deep copy). + */ + KAccelActions( const KAccelActions& ); + virtual ~KAccelActions(); + + /** + * Removes all items from this collection. + */ + void clear(); + + /** + * Initializes this object with the given actions. + * It will make a deep copy of all actions. + * @param actions the actions to copy + * @return true if successful, false otherwise + */ + bool init( const KAccelActions &actions ); + + /** + * Loads the actions from the given configuration file. + * + * @param config the configuration file to load from + * @param sGroup the group in the configuration file + * @return true if successful, false otherwise + */ + bool init( KConfigBase& config, const QString& sGroup ); + + /** + * Updates the shortcuts of all actions in this object + * with the shortcuts from the given object. + * @param shortcuts the collection that contains the new + * shortcuts + */ + void updateShortcuts( KAccelActions &shortcuts ); + + /** + * Retrieves the index of the action with the given name. + * @param sAction the action to search + * @return the index of the action, or -1 if not found + */ + int actionIndex( const QString& sAction ) const; + + /** + * Returns the action with the given @p index. + * @param index the index of an action. You must not + * use an index that is too high. + * @return the KAccelAction with the given index + * @see count() + */ + KAccelAction* actionPtr( uint index ); + + /** + * Returns the action with the given @p index. + * @param index the index of an action. You must not + * use an index that is too high. + * @return the KAccelAction with the given index + * @see count() + */ + const KAccelAction* actionPtr( uint index ) const; + + /** + * Returns the action with the given name. + * @param aAction the name of the action to search + * @return the KAccelAction with the given name, or 0 + * if not found + */ + KAccelAction* actionPtr( const QString& sAction ); + + /** + * Returns the action with the given name. + * @param aAction the name of the action to search + * @return the KAccelAction with the given name, or 0 + * if not found + */ + const KAccelAction* actionPtr( const QString& sAction ) const; + + /** + * Returns the action with the given key sequence. + * @param cut the sequence to search for + * @return the KAccelAction with the given sequence, or 0 + * if not found + */ + KAccelAction* actionPtr( KKeySequence cut ); + + /** + * Returns the action with the given @p index. + * @param index the index of an action. You must not + * use an index that is too high. + * @return the KAccelAction with the given index + * @see actionPtr() + * @see count() + */ + KAccelAction& operator []( uint index ); + + /** + * Returns the action with the given @p index. + * @param index the index of an action. You must not + * use an index that is too high. + * @return the KAccelAction with the given index + * @see actionPtr() + * @see count() + */ + const KAccelAction& operator []( uint index ) const; + + /** + * Inserts an action into the collection. + * @param sName the name of the accelerator + * @param sLabel the label of the accelerator (i18n!) + * @param sWhatsThis the What's This text (18n!) + * @param cutDef3 the default shortcut for 3 modifier systems + * @param cutDef4 the default shortcut for 4 modifier systems + * @param pObjSlot the receiver of a signal when the key has been + * pressed + * @param psMethodSlot the slot to connect for key presses. Receives + * an int, as set by setID(), as only argument + * @param bConfigurable if true the user can configure the shortcut + * @param bEnabled true if the accelerator should be enabled + * @return the new action + */ + KAccelAction* insert( const QString& sAction, const QString& sLabel, const QString& sWhatsThis, + const KShortcut& rgCutDefaults3, const KShortcut& rgCutDefaults4, + const QObject* pObjSlot = 0, const char* psMethodSlot = 0, + bool bConfigurable = true, bool bEnabled = true ); + + /** + * Inserts an action into the collection. + * @param sName the name of the accelerator + * @param sLabel the label of the accelerator (i18n!) + * @return the new action + */ + KAccelAction* insert( const QString& sName, const QString& sLabel ); + + /** + * Removes the given action. + * @param sAction the name of the action. + * @return true if successful, false otherwise + */ + bool remove( const QString& sAction ); + + /** + * Loads the actions from the given configuration file. + * + * @param sConfigGroup the group in the configuration file + * @param pConfig the configuration file to load from + * @return true if successful, false otherwise + */ + bool readActions( const QString& sConfigGroup = "Shortcuts", KConfigBase* pConfig = 0 ); + + /** + * Writes the actions to the given configuration file. + * + * @param sConfigGroup the group in the configuration file + * @param pConfig the configuration file to save to + * @param bWriteAll true to write all actions + * @param bGlobal true to write to the global configuration file + * @return true if successful, false otherwise + */ + bool writeActions( const QString& sConfigGroup = "Shortcuts", KConfigBase* pConfig = 0, + bool bWriteAll = false, bool bGlobal = false ) const; + + /** + * Emit a keycodeChanged signal. + */ + void emitKeycodeChanged(); + + /** + * Returns the number of actions in the collection. + * @return the number of actions + */ + uint count() const; + + protected: + KAccelBase* m_pKAccelBase; + KAccelAction** m_prgActions; + uint m_nSizeAllocated, m_nSize; + + void resize( uint ); + void insertPtr( KAccelAction* ); + + private: + class KAccelActionsPrivate* d; + + KAccelActions( KAccelBase* ); + void initPrivate( KAccelBase* ); + KAccelActions& operator =( KAccelActions& ); + + friend class KAccelBase; +}; + +#endif // _KACCELACTION_H diff --git a/extra/kde330/kaccelbase.h b/extra/kde330/kaccelbase.h new file mode 100644 index 0000000..3ddce3a --- /dev/null +++ b/extra/kde330/kaccelbase.h @@ -0,0 +1,230 @@ +/* This file is part of the KDE libraries + Copyright (C) 2001 Ellis Whitehead + + This library 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. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef _KACCELBASE_H +#define _KACCELBASE_H + +#include +#include +#include +#include +#include + +#include "kaccelaction.h" +#include "kkeyserver_x11.h" + +class QPopupMenu; +class QWidget; + +//---------------------------------------------------- + +/** + * @internal + * Handle keyboard accelerators. + * + * Allow an user to configure + * key bindings through application configuration files or through the + * KKeyChooser GUI. + * + * A KAccel contains a list of accelerator items. Each accelerator item + * consists of an action name and a keyboard code combined with modifiers + * (Shift, Ctrl and Alt.) + * + * For example, "Ctrl+P" could be a shortcut for printing a document. The key + * codes are listed in ckey.h. "Print" could be the action name for printing. + * The action name identifies the key binding in configuration files and the + * KKeyChooser GUI. + * + * When pressed, an accelerator key calls the slot to which it has been + * connected. Accelerator items can be connected so that a key will activate + * two different slots. + * + * A KAccel object handles key events sent to its parent widget and to all + * children of this parent widget. + * + * Key binding reconfiguration during run time can be prevented by specifying + * that an accelerator item is not configurable when it is inserted. A special + * group of non-configurable key bindings are known as the + * standard accelerators. + * + * The standard accelerators appear repeatedly in applications for + * standard document actions such as printing and saving. Convenience methods are + * available to insert and connect these accelerators which are configurable on + * a desktop-wide basis. + * + * It is possible for a user to choose to have no key associated with + * an action. + * + * The translated first argument for insertItem() is used only + * in the configuration dialog. + *\code + * KAccel *a = new KAccel( myWindow ); + * // Insert an action "Scroll Up" which is associated with the "Up" key: + * a->insertItem( i18n("Scroll Up"), "Scroll Up", "Up" ); + * // Insert an action "Scroll Down" which is not associated with any key: + * a->insertItem( i18n("Scroll Down"), "Scroll Down", 0); + * a->connectItem( "Scroll up", myWindow, SLOT( scrollUp() ) ); + * // a->insertStdItem( KStdAccel::Print ); //not necessary, since it + * // is done automatially with the + * // connect below! + * a->connectItem(KStdAccel::Print, myWindow, SLOT( printDoc() ) ); + * + * a->readSettings(); + *\endcode + * + * If a shortcut has a menu entry as well, you could insert them like + * this. The example is again the KStdAccel::Print from above. + * + * \code + * int id; + * id = popup->insertItem("&Print",this, SLOT(printDoc())); + * a->changeMenuAccel(popup, id, KStdAccel::Print ); + * \endcode + * + * If you want a somewhat "exotic" name for your standard print action, like + * id = popup->insertItem(i18n("Print &Document"),this, SLOT(printDoc())); + * it might be a good idea to insert the standard action before as + * a->insertStdItem( KStdAccel::Print, i18n("Print Document") ) + * as well, so that the user can easily find the corresponding function. + * + * This technique works for other actions as well. Your "scroll up" function + * in a menu could be done with + * + * \code + * id = popup->insertItem(i18n"Scroll &up",this, SLOT(scrollUp())); + * a->changeMenuAccel(popup, id, "Scroll Up" ); + * \endcode + * + * Please keep the order right: First insert all functions in the + * acceleratior, then call a -> readSettings() and @em then build your + * menu structure. + * + * @short Configurable key binding support. + * @version $Id: kaccelbase.h,v 1.26 2003/08/16 19:44:57 coolo Exp $ + */ + +class KAccelBase +{ + public: + enum Init { QT_KEYS = 0x00, NATIVE_KEYS = 0x01 }; + enum Signal { KEYCODE_CHANGED }; + + KAccelBase( int fInitCode ); + virtual ~KAccelBase(); + + uint actionCount() const; + KAccelActions& actions(); + bool isEnabled() const; + + KAccelAction* actionPtr( const QString& sAction ); + const KAccelAction* actionPtr( const QString& sAction ) const; + KAccelAction* actionPtr( const KKey& key ); + KAccelAction* actionPtr( const KKeyServer::Key& key ); + + const QString& configGroup() const { return m_sConfigGroup; } + void setConfigGroup( const QString& group ); + void setConfigGlobal( bool global ); + virtual void setEnabled( bool bEnabled ) = 0; + bool getAutoUpdate() { return m_bAutoUpdate; } + // return value of AutoUpdate flag before this call. + bool setAutoUpdate( bool bAuto ); + +// Procedures for manipulating Actions. + //void clearActions(); + + KAccelAction* insert( const QString& sName, const QString& sDesc ); + KAccelAction* insert( + const QString& sAction, const QString& sDesc, const QString& sHelp, + const KShortcut& rgCutDefaults3, const KShortcut& rgCutDefaults4, + const QObject* pObjSlot, const char* psMethodSlot, + bool bConfigurable = true, bool bEnabled = true ); + bool remove( const QString& sAction ); + bool setActionSlot( const QString& sAction, const QObject* pObjSlot, const char* psMethodSlot ); + + bool updateConnections(); + + bool setShortcut( const QString& sAction, const KShortcut& cut ); + +// Modify individual Action sub-items + bool setActionEnabled( const QString& sAction, bool bEnable ); + + /** + * Read all key associations from @p config, or (if @p config + * is zero) from the application's configuration file + * KGlobal::config(). + * + * The group in which the configuration is stored can be + * set with setConfigGroup(). + */ + void readSettings( KConfigBase* pConfig = 0 ); + + /** + * Write the current configurable associations to @p config, + * or (if @p config is zero) to the application's + * configuration file. + */ + void writeSettings( KConfigBase* pConfig = 0 ) const; + + QPopupMenu* createPopupMenu( QWidget* pParent, const KKeySequence& ); + + // Protected methods + protected: + void slotRemoveAction( KAccelAction* ); + + struct X; + void createKeyList( QValueVector& rgKeys ); + bool insertConnection( KAccelAction* ); + bool removeConnection( KAccelAction* ); + + virtual bool emitSignal( Signal ) = 0; + virtual bool connectKey( KAccelAction&, const KKeyServer::Key& ) = 0; + virtual bool connectKey( const KKeyServer::Key& ) = 0; + virtual bool disconnectKey( KAccelAction&, const KKeyServer::Key& ) = 0; + virtual bool disconnectKey( const KKeyServer::Key& ) = 0; + + protected: + struct ActionInfo + { + KAccelAction* pAction; + uint iSeq, iVariation; + //ActionInfo* pInfoNext; // nil if only one action uses this key. + + ActionInfo() { pAction = 0; iSeq = 0xffff; iVariation = 0xffff; } + ActionInfo( KAccelAction* _pAction, uint _iSeq, uint _iVariation ) + { pAction = _pAction; iSeq = _iSeq; iVariation = _iVariation; } + }; + typedef QMap KKeyToActionMap; + + KAccelActions m_rgActions; + KKeyToActionMap m_mapKeyToAction; + QValueList m_rgActionsNonUnique; + bool m_bNativeKeys; // Use native key codes instead of Qt codes + bool m_bEnabled; + bool m_bConfigIsGlobal; + QString m_sConfigGroup; + bool m_bAutoUpdate; + KAccelAction* mtemp_pActionRemoving; + + private: + KAccelBase& operator =( const KAccelBase& ); + + friend class KAccelActions; +}; + +#endif // _KACCELBASE_H diff --git a/extra/kde330/kicontheme.h b/extra/kde330/kicontheme.h new file mode 100644 index 0000000..1579292 --- /dev/null +++ b/extra/kde330/kicontheme.h @@ -0,0 +1,336 @@ +/* vi: ts=8 sts=4 sw=4 + * + * $Id: kicontheme.h,v 1.30 2004/01/25 21:50:41 aseigo Exp $ + * + * This file is part of the KDE project, module kdecore. + * Copyright (C) 2000 Geert Jansen + * Antonio Larrosa + * + * This is free software; it comes under the GNU Library General + * Public License, version 2. See the file "COPYING.LIB" for the + * exact licensing terms. + * + */ + +#ifndef __KIconTheme_h_Included__ +#define __KIconTheme_h_Included__ + +#include +#include +#include + +class KConfig; +//class KIconThemeDir; + +class KIconThemePrivate; + +class KIconPrivate; + +/** + * One icon as found by KIconTheme. Also serves as a namespace containing + * icon related constants. + * @see KIconEffect + * @see KIconTheme + * @see KIconLoader + */ +class KIcon +{ +public: + KIcon() { size = 0; } + + /** + * Return true if this icon is valid, false otherwise. + */ + bool isValid() const { return size != 0; } + + /** + * Defines the context of the icon. + */ + enum Context { + Any, ///< Some icon with unknown purpose. + Action, ///< An action icon (e.g. 'save', 'print'). + Application, ///< An icon that represents an application. + Device, ///< An icon that represents a device. + FileSystem, ///< An icon that represents a file system. + MimeType ///< An icon that represents a mime type (or file type). + }; + + /** + * The type of the icon. + */ + enum Type { + Fixed, ///< Fixed-size icon. + Scalable, ///< Scalable-size icon. + Threshold ///< A threshold icon. + }; + + /** + * The type of a match. + */ + enum MatchType { + MatchExact, ///< Only try to find an exact match. + MatchBest ///< Take the best match if there is no exact match. + + }; + + // if you add a group here, make sure to change the config reading in + // KIconLoader too + /** + * The group an an icon. + */ + enum Group { NoGroup=-1, Desktop=0, FirstGroup=0, Toolbar, + MainToolbar, Small, Panel, LastGroup, User }; + + /** + * These are the standard sizes for icons. + */ + enum StdSizes { + /// small icons for menu entries + SizeSmall=16, + /// slightly larger small icons for toolbars, panels, etc + SizeSmallMedium=22, + /// medium sized icons for the desktop + SizeMedium=32, + /// large sized icons for the panel + SizeLarge=48, + /// huge sized icons for iconviews + SizeHuge=64 + }; + + /** + * Defines the possible states of an icon. + */ + enum States { DefaultState, ///< The default state. + ActiveState, ///< Icon is active. + DisabledState, ///< Icon is disabled. + LastState ///< Last state (last constant) + }; + + /** + * This defines an overlay, a semi-transparent image that is + * projected onto the icon. They are used to show that the file + * represented by the icon is, for example, locked, zipped or hidden. + */ + enum Overlays { + LockOverlay=0x100, ///< a file is locked + ZipOverlay=0x200, ///< a file is zipped + LinkOverlay=0x400, ///< a fileis a link + HiddenOverlay=0x800, ///< a file is hidden + ShareOverlay=0x1000, ///< a file is shared + OverlayMask = ~0xff + }; + + /** + * The size in pixels of the icon. + */ + int size; + + /** + * The context of the icon. + */ + Context context; + + /** + * The type of the icon: Fixed, Scalable or Threshold. + **/ + Type type; + + /** + * The threshold in case type == Threshold + */ + int threshold; + + /** + * The full path of the icon. + */ + QString path; + +private: + KIconPrivate *d; +}; + +inline KIcon::Group& operator++(KIcon::Group& group) { group = static_cast(group+1); return group; } +inline KIcon::Group operator++(KIcon::Group& group,int) { KIcon::Group ret = group; ++group; return ret; } + +/** + * Class to use/access icon themes in KDE. This class is used by the + * iconloader but can be used by others too. + * @see KIconLoader + */ +class KIconTheme +{ +public: + /** + * Load an icon theme by name. + * @param name the name of the theme (e.g. "hicolor" or "keramik") + * @param appName the name of the application. Can be null. This argument + * allows applications to have themed application icons. + */ + KIconTheme(const QString& name, const QString& appName=QString::null); + ~KIconTheme(); + + /** + * The stylized name of the icon theme. + * @return the (human-readable) name of the theme + */ + QString name() const { return mName; } + + /** + * A description for the icon theme. + * @return a human-readable description of the theme, QString::null + * if there is none + */ + QString description() const { return mDesc; } + + /** + * Return the name of the "example" icon. This can be used to + * present the theme to the user. + * @return the name of the example icon, QString::null if there is none + */ + QString example() const; + + /** + * Return the name of the screenshot. + * @return the name of the screenshot, QString::null if there is none + */ + QString screenshot() const; + + /** + * Returns the name of this theme's link overlay. + * @return the name of the link overlay + */ + QString linkOverlay() const; + + /** + * Returns the name of this theme's zip overlay. + * @return the name of the zip overlay + */ + QString zipOverlay() const; + + /** + * Returns the name of this theme's lock overlay. + * @return the name of the lock overlay + */ + QString lockOverlay() const; + + /** + * Returns the name of this theme's share overlay. + * @return the name of the share overlay + * @since 3.1 + */ + QString shareOverlay () const; + + /** + * Returns the toplevel theme directory. + * @return the directory of the theme + */ + QString dir() const { return mDir; } + + /** + * The themes this icon theme falls back on. + * @return a list of icon themes that are used as fall-backs + */ + QStringList inherits() const { return mInherits; } + + /** + * The icon theme exists? + * @return true if the icon theme is valid + */ + bool isValid() const; + + /** + * The icon theme should be hidden to the user? + * @return true if the icon theme is hidden + * @since 3.1 + */ + bool isHidden() const; + + /** + * The minimum display depth required for this theme. This can either + * be 8 or 32. + * @return the minimum bpp (8 or 32) + */ + int depth() const { return mDepth; } + + /** + * The default size of this theme for a certain icon group. + * @param group The icon group. See KIcon::Group. + * @return The default size in pixels for the given icon group. + */ + int defaultSize(KIcon::Group group) const; + + /** + * Query available sizes for a group. + * @param group The icon group. See KIcon::Group. + * @return a list of available sized for the given group + */ + QValueList querySizes(KIcon::Group group) const; + + /** + * Query available icons for a size and context. + * @param size the size of the icons + * @param context the context of the icons + * @return the list of icon names + */ + QStringList queryIcons(int size, KIcon::Context context = KIcon::Any) const; + + /** + * Query available icons for a context and preferred size. + * @param size the size of the icons + * @param context the context of the icons + * @return the list of icon names + */ + QStringList queryIconsByContext(int size, KIcon::Context context = KIcon::Any) const; + + + /** + * Lookup an icon in the theme. + * @param name The name of the icon, without extension. + * @param size The desired size of the icon. + * @param match The matching mode. KIcon::MatchExact returns an icon + * only if matches exactly. KIcon::MatchBest returns the best matching + * icon. + * @return A KIcon class that describes the icon. If an icon is found, + * @see KIcon::isValid will return true, and false otherwise. + */ + KIcon iconPath(const QString& name, int size, KIcon::MatchType match) const; + + /** + * List all icon themes installed on the system, global and local. + * @return the list of all icon themes + */ + static QStringList list(); + + /** + * Returns the current icon theme. + * @return the name of the current theme + */ + static QString current(); + + /** + * Reconfigure the theme. + */ + static void reconfigure(); + + /** + * Returns the default icon theme. + * @return the name of the default theme name + * @since 3.1 + */ + static QString defaultThemeName(); + +private: + int mDefSize[8]; + QValueList mSizes[8]; + + int mDepth; + QString mDir, mName, mDesc; + QStringList mInherits; +// QPtrList mDirs; + KIconThemePrivate *d; + + static QString *_theme; + static QStringList *_theme_list; +}; + +#endif diff --git a/extra/kde330/kkeyserver_x11.h b/extra/kde330/kkeyserver_x11.h new file mode 100644 index 0000000..cf1b360 --- /dev/null +++ b/extra/kde330/kkeyserver_x11.h @@ -0,0 +1,433 @@ +#ifndef _KKEYSERVER_X11_H +#define _KKEYSERVER_X11_H + +#include "kshortcut.h" +#include "kkeynative.h" + +/** + * A collection of functions for the conversion of key presses and + * their modifiers from the window system (X11) specific format + * to the generic format and vice-versa. + */ +namespace KKeyServer +{ + /** + * Supplement enum KKey::ModFlag + * @since 3.1 + */ + enum ExtraModFlag { MODE_SWITCH = 0x2000 }; + + /** + * Represents a key symbol. + * @see KKey + * @see KKeyServer + */ + struct Sym + { + public: + /// the actual value of the symbol + uint m_sym; + + /// Creates a null symbol. + Sym() + { m_sym = 0; } + /** + * Creates asymbol with the given value. + * @param sym the value + */ + Sym( uint sym ) + { m_sym = sym; } + /** + * Creates a symbol from the given string description. + * @param s the description of the symbol + * @see toString() + */ + Sym( const QString& s ) + { init( s ); } + + /** + * Initializes the symbol with the given Qt key code. + * @param keyQt the qt key code + * @return true if successful, false otherwise + * @see Qt::Key + */ + bool initQt( int keyQt ); + + /** + * Initializes the key with the given string description. + * @param s the string description + * @return true if successful, false otherwise + * @see toString() + */ + bool init( const QString &s ); + + /** + * Returns the qt key code of the symbol. + * @return the qt key code + */ + int qt() const; + + /** + * @internal + */ + QString toStringInternal() const; + + /** + * Returns the string representation of the symbol. + * @return the string representation of the symbol + */ + QString toString() const; + + /** + * Returns the mods that are required for this symbol as + * ORed KKey::ModFlag's. For example, Break requires a + * Ctrl to be valid. + * @return the required KKey::ModFlag's + * @see KKey::ModFlag + */ + uint getModsRequired() const; + + /** + * TODO: please find out what this method does and document it + */ + uint getSymVariation() const; + + /** + * Casts the symbol to its integer representation. + */ + operator uint() const { return m_sym; } + + /** + * Overloaded operator to convert ints to Sym. + */ + Sym& operator =( uint sym ) { m_sym = sym; return *this; } + + private: + QString toString( bool bUserSpace ) const; + + static void capitalizeKeyname( QString& ); + }; + + /** + * Represents a key press. + * @see KKey + */ + struct Key + { + /// Code for native Keys in Qt + enum { CODE_FOR_QT = 256 }; + + /// The code of the key + uint m_code; + + /// The modifiers of the key + uint m_mod; + + /// The symbol of the key + uint m_sym; + + /** + * Initializes the key with a KKey. + * @param key the key to get the data from + * @param bQt true to take the Qt keycode, false + * for the native key code + * @see Qt::Key + * @see KKeyNative + */ + bool init( const KKey& key, bool bQt ); + + /** + * Checks whether the key code is a native code. + * @return true if native code of the window system, + * false if it is a Qt keycode + * @see Qt::Key + * @see KKeyNative + */ + bool isNative() const { return m_code != CODE_FOR_QT; } + + /** + * Returns the code of the key. + * @return the code of the key + */ + uint code() const { return m_code; } + + /** + * Returns the modifiers of the key. + * @return the modifiers of the key + */ + uint mod() const { return m_mod; } + + /** + * Returns the symbol of the key. + * @return the symbol of the key + */ + uint sym() const { return m_sym; } + + /** + * Returns the qt key code. + * @return the qt key code + */ + int keyCodeQt() const { return (int) m_sym; } + + /** + * Sets the qt key code. + * @param keyQt the qt key code + */ + void setKeycodeQt( int keyQt ) + { m_code = CODE_FOR_QT; m_sym = keyQt; } + + /** + * Initializes this key with a KKeyNative. + * @return this key + */ + Key& operator =( const KKeyNative& key ); + + /** + * Compares this key with the given Key object. Returns a + * negative number if the given Key is larger, 0 if they + * are equal and a positive number this Key is larger. The + * returned value is the difference between the symbol, modifier + * or code, whatever is non-zero first. + * + * @param key the key to compare with this key + * @return a negative number if the given Key is larger, 0 if + * they are equal and a positive number this Key is larger + */ + int compare( const Key& key ) const; + + /** + * Compares the symbol, modifiers and code of both keys. + * @see compare() + */ + bool operator ==( const Key& b ) const + { return compare( b ) == 0; } + + /** + * Compares the symbol, modifiers and code of both keys. + * @see compare() + */ + bool operator <( const Key& b ) const + { return compare( b ) < 0; } + + /** + * Converts this Key to a KKey. + * @return the KKey + */ + KKey key() const; + }; + + /** + * TODO: please document this class + */ + struct Variations + { + enum { MAX_VARIATIONS = 4 }; + + Key m_rgkey[MAX_VARIATIONS]; + uint m_nVariations; + + Variations() { m_nVariations = 0; } + + void init( const KKey&, bool bQt ); + + uint count() const { return m_nVariations; } + const Key& key( uint i ) const { return m_rgkey[i]; } + }; + + /// TODO: please document + bool initializeMods(); + + /** + * Returns the equivalent X modifier mask of the given modifier flag. + * @param modFlag the generic flags to check + * @return the window system specific flags + */ + uint modX( KKey::ModFlag modFlag ); + + /** + * Returns true if the current keyboard layout supports the Win key. + * Specifically, whether the Super or Meta keys are assigned to an X modifier. + * @return true if the keyboard has a Win key + * @see modXWin() + */ + bool keyboardHasWinKey(); + + /** + * Returns the X11 Shift modifier mask/flag. + * @return the X11 Shift modifier mask/flag. + * @see accelModMaskX() + */ + uint modXShift(); + + /** + * Returns the X11 Lock modifier mask/flag. + * @return the X11 Lock modifier mask/flag. + * @see accelModMaskX() + */ + uint modXLock(); + + /** + * Returns the X11 Ctrl modifier mask/flag. + * @return the X11 Ctrl modifier mask/flag. + * @see accelModMaskX() + */ + uint modXCtrl(); + + /** + * Returns the X11 Alt (Mod1) modifier mask/flag. + * @return the X11 Alt (Mod1) modifier mask/flag. + * @see accelModMaskX() + */ + uint modXAlt(); + + /** + * Returns the X11 NumLock modifier mask/flag. + * @return the X11 NumLock modifier mask/flag. + * @see accelModMaskX() + */ + uint modXNumLock(); + + /** + * Returns the X11 Win (Mod3) modifier mask/flag. + * @return the X11 Win (Mod3) modifier mask/flag. + * @see keyboardHasWinKey() + * @see accelModMaskX() + */ + uint modXWin(); + + /** + * Returns the X11 ScrollLock modifier mask/flag. + * @return the X11 ScrollLock modifier mask/flag. + * @see accelModMaskX() + */ + uint modXScrollLock(); + + /** + * Returns bitwise OR'ed mask containing Shift, Ctrl, Alt, and + * Win (if available). + * @see modXShift() + * @see modXLock() + * @see modXCtrl() + * @see modXAlt() + * @see modXNumLock() + * @see modXWin() + * @see modXScrollLock() + */ + uint accelModMaskX(); + + /** + * Extracts the symbol from the given Qt key and + * converts it to a symbol. + * @param keyQt the qt key code + * @param sym if successful, the symbol will be written here + * @return true if successful, false otherwise + * @see Qt::Key + * @see Sym + */ + bool keyQtToSym( int keyQt, uint& sym ); + + /** + * Extracts the modifiers from the given Qt key and + * converts them in a mask of ORed KKey::ModFlag modifiers. + * @param keyQt the qt key code + * @param mod if successful, the modifiers will be written here + * @return true if successful, false otherwise + * @see Qt::Key + */ + bool keyQtToMod( int keyQt, uint& mod ); + + /** + * Converts the given symbol to a Qt key code. + * @param sym the symbol + * @param keyQt if successful, the qt key code will be written here + * @return true if successful, false otherwise + * @see Qt::Key + * @see Sym + */ + bool symToKeyQt( uint sym, int& keyQt ); + + /** + * Converts the mask of ORed KKey::ModFlag modifiers to + * a mask of ORed Qt key code modifiers. + * @param mod the mask of KKey::ModFlag modifiers + * @param modQt the mask of Qt key code modifiers will be written here, + * if successful + * @return true if successful, false otherwise + * @see Qt::Key + * @see KKey + */ + bool modToModQt( uint mod, int& modQt ); + + /** + * Converts the mask of ORed KKey::ModFlag modifiers to + * a mask of ORed X11 modifiers. + * @param mod the mask of KKey::ModFlag modifiers + * @param modX the mask of X11 modifiers will be written here, + * if successful + * @return true if successful, false otherwise + * @see KKey + */ + bool modToModX( uint mod, uint& modX ); + + /** + * Converts the mask of ORed X11 modifiers to + * a mask of ORed Qt key code modifiers. + * @param modX the mask of X11 modifiers + * @param modQt the mask of Qt key code modifiers will be written here + * if successful + * @return true if successful, false otherwise + * @see Qt::Key + */ + bool modXToModQt( uint modX, int& modQt ); + + /** + * Converts the mask of ORed X11 modifiers to + * a mask of ORed KKey::ModFlag modifiers. + * @param modX the mask of X11 modifiers + * @param mod the mask of KKey::ModFlag modifiers will be written here, + * if successful + * @return true if successful, false otherwise + * @see KKey + */ + bool modXToMod( uint modX, uint& mod ); + + /** + * Converts a X11 key code and a mask of ORed X11 modifiers + * into a X11 symbol. + * converts it to a symbol. + * @param codeX the X11 key code + * @param modX the mask of ORed X11 modifiers + * @param symX if successful, the X11 symbol will be written here + * @return true if successful, false otherwise + * @see Qt::Key + * @see Sym + */ + bool codeXToSym( uchar codeX, uint modX, uint& symX ); + + /** + * @internal + */ + QString modToStringInternal( uint mod ); + + /** + * Converts the mask of ORed KKey::ModFlag modifiers to a + * user-readable string. + * @param mod the mask of ORed KKey::ModFlag modifiers + * @return the user-readable string + */ + QString modToStringUser( uint mod ); + + /** + * @internal + * Unimplemented? + */ + bool stringToSymMod( const QString&, uint& sym, uint& mod ); + + /** + * @internal + * Unimplemented? + */ + void keyQtToKeyX( uint keyCombQt, unsigned char *pKeyCodeX, uint *pKeySymX, uint *pKeyModX ); +} + +#endif // !_KKEYSERVER_X11_H diff --git a/extra/kde330/konsole_part.h b/extra/kde330/konsole_part.h new file mode 100644 index 0000000..7023f50 --- /dev/null +++ b/extra/kde330/konsole_part.h @@ -0,0 +1,229 @@ +/* + This file is part of the KDE system + Copyright (C) 1999,2000 Boloni Laszlo + + 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. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. + */ + +#ifndef __KONSOLE_PART_H__ +#define __KONSOLE_PART_H__ + +#include +#include + + +#include + +#include + +//#include "schema.h" +//#include "session.h" + +class KInstance; +class konsoleBrowserExtension; +class QPushButton; +class QSpinBox; +class KPopupMenu; +class QCheckBox; +class KRootPixmap; +class KToggleAction; +class KSelectAction; + +namespace KParts { class GUIActivateEvent; } + +class konsoleFactory : public KParts::Factory +{ + Q_OBJECT +public: + konsoleFactory(); + virtual ~konsoleFactory(); + + virtual KParts::Part* createPartObject(QWidget *parentWidget = 0, const char *widgetName = 0, + QObject* parent = 0, const char* name = 0, + const char* classname = "KParts::Part", + const QStringList &args = QStringList()); + + static KInstance *instance(); + + private: + static KInstance *s_instance; + static KAboutData *s_aboutData; +}; + +////////////////////////////////////////////////////////////////////// + +class konsolePart: public KParts::ReadOnlyPart, public TerminalInterface +{ + Q_OBJECT + public: + konsolePart(QWidget *parentWidget, const char *widgetName, QObject * parent, const char *name, const char *classname = 0); + virtual ~konsolePart(); + +signals: + void processExited(); + void receivedData( const QString& s ); + protected: + virtual bool openURL( const KURL & url ); + virtual bool openFile() {return false;} // never used + virtual bool closeURL() {return true;} + virtual void guiActivateEvent( KParts::GUIActivateEvent * event ); + + protected slots: + void showShell(); + void slotProcessExited(); + void slotReceivedData( const QString& s ); + +// void doneSession(TESession*); + void sessionDestroyed(); +// void configureRequest(TEWidget*,int,int x,int y); + void updateTitle(); + void enableMasterModeConnections(); + + private slots: + void emitOpenURLRequest(const QString &url); + + void readProperties(); + void saveProperties(); + + void sendSignal(int n); + void closeCurrentSession(); + + void notifySize(int,int); + + void slotToggleFrame(); + void slotSelectScrollbar(); + void slotSelectFont(); + void schema_menu_check(); + void keytab_menu_activated(int item); + void updateSchemaMenu(); + void setSchema(int n); + void pixmap_menu_activated(int item); + void schema_menu_activated(int item); + void slotHistoryType(); + void slotSelectBell(); + void slotSelectLineSpacing(); + void slotBlinkingCursor(); + void slotWordSeps(); + void fontNotFound(); + void slotSetEncoding(); + void slotFontChanged(); + + private: + konsoleBrowserExtension *m_extension; + KURL currentURL; + + void makeGUI(); + void applySettingsToGUI(); + + void setFont(int fontno); +// void setSchema(ColorSchema* s); + void updateKeytabMenu(); + + bool doOpenStream( const QString& ); + bool doWriteStream( const QByteArray& ); + bool doCloseStream(); + + QWidget* parentWidget; +// TEWidget* te; +// TESession* se; +// ColorSchemaList* colors; + KRootPixmap* rootxpm; + + KToggleAction* blinkingCursor; + KToggleAction* showFrame; + + KSelectAction* selectBell; + KSelectAction* selectFont; + KSelectAction* selectLineSpacing; + KSelectAction* selectScrollbar; + KSelectAction* selectSetEncoding; + + KPopupMenu* m_keytab; + KPopupMenu* m_schema; + KPopupMenu* m_signals; + KPopupMenu* m_options; + KPopupMenu* m_popupMenu; + + QFont defaultFont; + + QString pmPath; // pixmap path + QString s_schema; + QString s_kconfigSchema; + QString s_word_seps; // characters that are considered part of a word + QString fontNotFound_par; + + bool b_framevis:1; + bool b_histEnabled:1; + + int curr_schema; // current schema no + int n_bell; + int n_font; + int n_keytab; + int n_render; + int n_scroll; + unsigned m_histSize; + bool m_runningShell; + bool m_streamEnabled; + int n_encoding; + +public: + // these are the implementations for the TermEmuInterface + // functions... + void startProgram( const QString& program, + const QStrList& args ); + void showShellInDir( const QString& dir ); + void sendInput( const QString& text ); +}; + +////////////////////////////////////////////////////////////////////// + +/*class HistoryTypeDialog : public KDialogBase +{ + Q_OBJECT +public: + HistoryTypeDialog(const HistoryType& histType, + unsigned int histSize, + QWidget *parent); + +public slots: + void slotDefault(); + void slotSetUnlimited(); + void slotHistEnable(bool); + + unsigned int nbLines() const; + bool isOn() const; + +protected: + QCheckBox* m_btnEnable; + QSpinBox* m_size; + QPushButton* m_setUnlimited; +}; + +////////////////////////////////////////////////////////////////////// +*/ + +class konsoleBrowserExtension : public KParts::BrowserExtension +{ + Q_OBJECT + friend class konsolePart; + public: + konsoleBrowserExtension(konsolePart *parent); + virtual ~konsoleBrowserExtension(); + + void emitOpenURLRequest(const KURL &url); +}; + +#endif diff --git a/extra/kde330/kpanelmenu.h b/extra/kde330/kpanelmenu.h new file mode 100644 index 0000000..57f77a4 --- /dev/null +++ b/extra/kde330/kpanelmenu.h @@ -0,0 +1,181 @@ +/***************************************************************** + +Copyright (c) 1996-2000 the kicker authors. See file AUTHORS. + (c) 2001 Michael Goffioul + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN +AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +******************************************************************/ + +#ifndef __KPANELMENU_H__ +#define __KPANELMENU_H__ + +#include +#include +#include + +class KPanelMenuPrivate; + +/** + * This class allows to build menu entries that will be dynamically added either to + * the K-menu, or to the panel as a normal button. These dynamic menus are located + * in shared libraries that will be loaded at runtime by Kicker (the KDE panel). + * + * To build such a menu, you have to inherit this class and implement the pure virtual + * functions #initialize() and slotExec(). You also have to provide a factory + * object in your library, see KLibFactory. This factory is only used to construct + * the menu object. + * + * Finally, you also have to provide a desktop file describing your dynamic menu. The + * relevant entries are: Name, Comment, Icon and X-KDE-Library (which contains the + * library name without any extension). This desktop file has to be installed in + * $KDEDIR/share/apps/kicker/menuext/. + * + * @short Base class to build dynamically loaded menu entries for the K-menu, or the panel. + * @author The kicker maintainer, Michael Goffioul + */ +class KPanelMenu : public KPopupMenu +{ + Q_OBJECT + +public: + /** + * Construct a KPanelMenu object. This is the normal constructor to use when + * building extrernal menu entries. + */ + KPanelMenu(QWidget *parent=0, const char *name=0); + /** + * Constructor used internally by Kicker. You don't really want to use it. + * @param startDir a directory to associate with this menu + * @param parent parent object + * @param name name of the object + * @see path(), setPath() + */ + KPanelMenu(const QString &startDir, QWidget *parent=0, const char *name=0); + /** + * Destructor. + */ + virtual ~KPanelMenu(); + + /** + * Get the directory path associated with this menu, or QString::null if + * there's no such associated path. + * @return the associated directory path + * @see setPath() + */ + const QString& path() const; + /** + * Set a directory path to be associated with this menu. + * @param p the directory path + * @see path() + */ + void setPath(const QString &p); + /** + * Tell if the menu has been initialized, that is it already contains items. + * This is useful when you need to know if you have to clear the menu, or to + * fill it. + * @return the initial state + * @see setInitialized(), initialize() + */ + bool initialized() const; + /** + * Set the initial state. Set it to true when you menu is filled with the items + * you want. + * @param on the initial state + * @see initialized(), initialize() + */ + void setInitialized(bool on); + + /** + * Disable the automatic clearing of the menu. Kicker uses a cache system for + * its menus. After a specific configurable delay, the menu will be cleared. + * Use this function if you want to disable kicker's cache system, and avoid + * the clearing of your menu. + */ + void disableAutoClear(); + +public slots: + /** + * Reinitialize the menu: the menu is first cleared, the initial state is set + * to false, and finally #initialize() is called. Use this if you want to + * refill your menu immediately. + */ + void reinitialize(); + /** + * Deinitialize the menu: the menu is cleared and the initialized state is set to + * false. #initialize() is NOT called. It will be called before the menu is + * next shown, however. Use this slot if you want a delayed reinitialization. + * @since 3.1 + */ + void deinitialize(); + +protected slots: + /** + * This slot is called just before the menu is shown. This allows your menu + * to update itself if needed. However you should instead re-implement + * #initialize to provide this feature. This function is responsible for + * the cache system handling, so if you re-implement it, you should call + * the base function also. Calls #initialize(). + * @see disableAutoClear() + */ + virtual void slotAboutToShow(); + /** + * This is slot is called when an item from the menu has been selected. Your + * applet is then supposed to perform some action. You must re-implement this + * function. + * @param id the ID associated with the selected item + */ + virtual void slotExec(int id) = 0; + /** + * This slots is called to initialize the menu. It is called automatically by + * slotAboutToShow(). By re-implementing this functions, you can reconstruct + * the menu before it is being shown. At the end of this function, you should + * call setInitialize() with true to tell the system that the menu is OK. + * You applet must re-implement this function. + * @see slotAboutToShow(), initialized(), setInitialized() + */ + virtual void initialize() = 0; + /** + * Clears the menu, and update the initial state accordingly. + * @see initialized() + */ + void slotClear(); + +protected: + /** + * Re-implemented for internal reasons. + */ + virtual void hideEvent(QHideEvent *ev); + /** + * For internal use only. Used by constructors. + */ + void init(const QString& path = QString::null); + +protected: + virtual void virtual_hook( int id, void* data ); +private: + void internalInitialize(); + KPanelMenuPrivate *d; +}; + +#define K_EXPORT_KICKER_MENUEXT( libname, classname ) \ + K_EXPORT_COMPONENT_FACTORY( \ + kickermenu_##libname, \ + KGenericFactory("libkickermenu_" #libname) ) + +#endif diff --git a/extra/kde330/krecentdirs.h b/extra/kde330/krecentdirs.h new file mode 100644 index 0000000..71f771b --- /dev/null +++ b/extra/kde330/krecentdirs.h @@ -0,0 +1,68 @@ +/* -*- c++ -*- + * Copyright (C)2000 Waldo Bastian + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * + */ +#ifndef __KRECENTDIRS_H +#define __KRECENTDIRS_H + +#include + +/** + * The goal of this class is to make sure that, when the user needs to + * specify a file via the file selection dialog, this dialog will start + * in the directory most likely to contain the desired files. + * + * This works as follows: Each time the file selection dialog is + * shown, the programmer can specify a "file-class". The file-dialog will + * then start with the directory associated with this file-class. When + * the dialog closes, the directory currently shown in the file-dialog + * will be associated with the file-class. + * + * A file-class can either start with ':' or with '::'. If it starts with + * a single ':' the file-class is specific to the current application. + * If the file-class starts with '::' it is global to all applications. + */ +class KRecentDirs +{ +public: + /** + * Returns a list of directories associated with this file-class. + * The most recently used directory is at the front of the list. + */ + static QStringList list(const QString &fileClass); + + /** + * Returns the most recently used directory accociated with this file-class. + */ + static QString dir(const QString &fileClass); + + /** + * Associates @p directory with @p fileClass + */ + static void add(const QString &fileClass, const QString &directory); +}; + +#endif diff --git a/extra/kde330/ksharedptr.h b/extra/kde330/ksharedptr.h new file mode 100644 index 0000000..da710a3 --- /dev/null +++ b/extra/kde330/ksharedptr.h @@ -0,0 +1,175 @@ +/* This file is part of the KDE libraries + Copyright (c) 1999 Waldo Bastian + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License version 2 as published by the Free Software Foundation. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ +#ifndef KSharedPTR_H +#define KSharedPTR_H + +/** + * Reference counting for shared objects. If you derive your object + * from this class, then you may use it in conjunction with + * KSharedPtr to control the lifetime of your object. + * + * Specifically, all classes that derive from KShared have an internal + * counter keeping track of how many other objects have a reference to + * their object. If used with KSharedPtr, then your object will + * not be deleted until all references to the object have been + * released. + * + * You should probably not ever use any of the methods in this class + * directly -- let the KSharedPtr take care of that. Just derive + * your class from KShared and forget about it. + * + * @author Waldo Bastian + * @version $Id: ksharedptr.h,v 1.23 2004/02/04 12:16:03 raabe Exp $ + */ +class KShared { +public: + /** + * Standard constructor. This will initialize the reference count + * on this object to 0. + */ + KShared() : count(0) { } + + /** + * Copy constructor. This will @em not actually copy the objects + * but it will initialize the reference count on this object to 0. + */ + KShared( const KShared & ) : count(0) { } + + /** + * Overloaded assignment operator. + */ + KShared &operator=(const KShared & ) { return *this; } + + /** + * Increases the reference count by one. + */ + void _KShared_ref() const { count++; } + + /** + * Releases a reference (decreases the reference count by one). If + * the count goes to 0, this object will delete itself. + */ + void _KShared_unref() const { if (!--count) delete this; } + + /** + * Return the current number of references held. + * + * @return Number of references + */ + int _KShared_count() const { return count; } + +protected: + virtual ~KShared() { } +private: + mutable int count; +}; + +/** + * Can be used to control the lifetime of an object that has derived + * KShared. As long a someone holds a KSharedPtr on some KShared + * object it won't become deleted but is deleted once its reference + * count is 0. This struct emulates C++ pointers virtually perfectly. + * So just use it like a simple C++ pointer. + * + * KShared and KSharedPtr are preferred over QShared / QSharedPtr + * since they are more safe. + * + * WARNING: Please note that this class template provides an implicit + * conversion to T*. Do *not* change this pointer or the pointee (don't + * call delete on it, for instance) behind KSharedPtr's back. + * + * @author Waldo Bastian + * @version $Id: ksharedptr.h,v 1.23 2004/02/04 12:16:03 raabe Exp $ + */ +template< class T > +struct KSharedPtr +{ +public: +/** + * Creates a null pointer. + */ + KSharedPtr() + : ptr(0) { } + /** + * Creates a new pointer. + * @param t the pointer + */ + KSharedPtr( T* t ) + : ptr(t) { if ( ptr ) ptr->_KShared_ref(); } + + /** + * Copies a pointer. + * @param p the pointer to copy + */ + KSharedPtr( const KSharedPtr& p ) + : ptr(p.ptr) { if ( ptr ) ptr->_KShared_ref(); } + + /** + * Unreferences the object that this pointer points to. If it was + * the last reference, the object will be deleted. + */ + ~KSharedPtr() { if ( ptr ) ptr->_KShared_unref(); } + + KSharedPtr& operator= ( const KSharedPtr& p ) { + if ( ptr == p.ptr ) return *this; + if ( ptr ) ptr->_KShared_unref(); + ptr = p.ptr; + if ( ptr ) ptr->_KShared_ref(); + return *this; + } + KSharedPtr& operator= ( T* p ) { + if ( ptr == p ) return *this; + if ( ptr ) ptr->_KShared_unref(); + ptr = p; + if ( ptr ) ptr->_KShared_ref(); + return *this; + } + bool operator== ( const KSharedPtr& p ) const { return ( ptr == p.ptr ); } + bool operator!= ( const KSharedPtr& p ) const { return ( ptr != p.ptr ); } + bool operator== ( const T* p ) const { return ( ptr == p ); } + bool operator!= ( const T* p ) const { return ( ptr != p ); } + bool operator!() const { return ( ptr == 0 ); } + operator T*() const { return ptr; } + + /** + * Returns the pointer. + * @return the pointer + */ + T* data() { return ptr; } + + /** + * Returns the pointer. + * @return the pointer + */ + const T* data() const { return ptr; } + + const T& operator*() const { return *ptr; } + T& operator*() { return *ptr; } + const T* operator->() const { return ptr; } + T* operator->() { return ptr; } + + /** + * Returns the number of references. + * @return the number of references + */ + int count() const { return ptr->_KShared_count(); } // for debugging purposes +private: + T* ptr; +}; + +#endif diff --git a/extra/kde330/ksycocafactory.h b/extra/kde330/ksycocafactory.h new file mode 100644 index 0000000..9cc1257 --- /dev/null +++ b/extra/kde330/ksycocafactory.h @@ -0,0 +1,143 @@ +/* This file is part of the KDE libraries + * Copyright (C) 1999 Waldo Bastian + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License version 2 as published by the Free Software Foundation; + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public License + * along with this library; see the file COPYING.LIB. If not, write to + * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA. + **/ + +#ifndef __ksycocafactory_h__ +#define __ksycocafactory_h__ "$Id: ksycocafactory.h,v 1.14 2003/10/29 17:59:18 waba Exp $" + +#include "ksycocatype.h" +#include "ksycocaentry.h" + +#include +#include +class KSycoca; +class QStringList; +class QString; +class KSycocaDict; +class KSycocaResourceList; + +typedef QDict KSycocaEntryDict; + +/** + * @internal + * Base class for sycoca factories + */ +class KSycocaFactory +{ +public: + virtual KSycocaFactoryId factoryId() const = 0; + +protected: // virtual class + /** + * Create a factory which can be used to lookup from/create a database + * (depending on KSycoca::isBuilding()) + */ + KSycocaFactory( KSycocaFactoryId factory_id ); + +public: + virtual ~KSycocaFactory(); + + /** + * @return the position of the factory in the sycoca file + */ + int offset() { return mOffset; } + + /** + * @return the dict, for special use by KBuildSycoca + */ + KSycocaEntryDict * entryDict() { return m_entryDict; } + + /** + * Construct an entry from a config file. + * To be implemented in the real factories. + */ + virtual KSycocaEntry *createEntry(const QString &file, const char *resource) = 0; + + /** + * Add an entry + */ + virtual void addEntry(KSycocaEntry *newEntry, const char *resource); + + /** + * Remove an entry + * Not very fast, use with care. O(N) + */ + void removeEntry(KSycocaEntry *newEntry); + + /** + * Read an entry from the database + */ + virtual KSycocaEntry *createEntry(int offset)=0; + + /** + * Get a list of all entries from the database. + */ + KSycocaEntry::List allEntries(); + + /** + * Saves all entries it maintains as well as index files + * for these entries to the stream 'str'. + * + * Also sets mOffset to the starting position. + * + * The stream is positioned at the end of the last index. + * + * Don't forget to call the parent first when you override + * this function. + */ + virtual void save(QDataStream &str); + + /** + * Writes out a header to the stream 'str'. + * The baseclass positions the stream correctly. + * + * Don't forget to call the parent first when you override + * this function. + */ + virtual void saveHeader(QDataStream &str); + + /** + * @return the resources for which this factory is responsible. + */ + virtual const KSycocaResourceList * resourceList() const { return m_resourceList; } + +private: + int mOffset; + +protected: + int m_sycocaDictOffset; + int m_beginEntryOffset; + int m_endEntryOffset; + QDataStream *m_str; + + KSycocaResourceList *m_resourceList; + KSycocaEntryDict *m_entryDict; + KSycocaDict *m_sycocaDict; +protected: + virtual void virtual_hook( int id, void* data ); +}; + +/** This, instead of a typedef, allows to declare "class ..." in header files + * @internal + */ +class KSycocaFactoryList : public QPtrList +{ +public: + KSycocaFactoryList() { } +}; + +#endif diff --git a/extra/kde330/ktoolbarbutton.h b/extra/kde330/ktoolbarbutton.h new file mode 100644 index 0000000..be0460b --- /dev/null +++ b/extra/kde330/ktoolbarbutton.h @@ -0,0 +1,315 @@ +/* This file is part of the KDE libraries + Copyright (C) 1997, 1998 Stephan Kulow (coolo@kde.org) + (C) 1997, 1998 Sven Radej (radej@kde.org) + (C) 1997, 1998 Mark Donohoe (donohoe@kde.org) + (C) 1997, 1998 Matthias Ettrich (ettrich@kde.org) + (C) 2000 Kurt Granroth (granroth@kde.org) + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License version 2 as published by the Free Software Foundation. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef _KTOOLBARBUTTON_H +#define _KTOOLBARBUTTON_H + +#include +#include +#include +#include +#include + +class KToolBar; +class KToolBarButtonPrivate; +class KInstance; +class QEvent; +class QPopupMenu; +class QPainter; + +/** + * A toolbar button. This is used internally by KToolBar, use the + * KToolBar methods instead. + * @internal + */ +class KToolBarButton : public QToolButton +{ + Q_OBJECT + +public: + /** + * Construct a button with an icon loaded by the button itself. + * This will trust the button to load the correct icon with the + * correct size. + * + * @param icon Name of icon to load (may be absolute or relative) + * @param id Id of this button + * @param parent This button's parent + * @param name This button's internal name + * @param txt This button's text (in a tooltip or otherwise) + * @param _instance the instance to use for this button + */ + KToolBarButton(const QString& icon, int id, QWidget *parent, + const char *name=0L, const QString &txt=QString::null, + KInstance *_instance = KGlobal::instance()); + + /** + * Construct a button with an existing pixmap. It is not + * recommended that you use this as the internal icon loading code + * will almost always get it "right". + * + * @param pixmap Name of icon to load (may be absolute or relative) + * @param id Id of this button + * @param parent This button's parent + * @param name This button's internal name + * @param txt This button's text (in a tooltip or otherwise) + */ + KToolBarButton(const QPixmap& pixmap, int id, QWidget *parent, + const char *name=0L, const QString &txt=QString::null); + + /** + * Construct a separator button + * + * @param parent This button's parent + * @param name This button's internal name + */ + KToolBarButton(QWidget *parent=0L, const char *name=0L); + + /** + * Standard destructor + */ + ~KToolBarButton(); + +#ifndef KDE_NO_COMPAT + /** + * @deprecated + * Set the pixmap directly for this button. This pixmap should be + * the active one... the dimmed and disabled pixmaps are constructed + * based on this one. However, don't use this function unless you + * are positive that you don't want to use setIcon. + * + * @param pixmap The active pixmap + */ + // this one is from QButton, so #ifdef-ing it out doesn't break BC + virtual void setPixmap(const QPixmap &pixmap) KDE_DEPRECATED; + + /** + * @deprecated + * Force the button to use this pixmap as the default one rather + * then generating it using effects. + * + * @param pixmap The pixmap to use as the default (normal) one + */ + void setDefaultPixmap(const QPixmap& pixmap) KDE_DEPRECATED; + + /** + * @deprecated + * Force the button to use this pixmap when disabled one rather then + * generating it using effects. + * + * @param pixmap The pixmap to use when disabled + */ + void setDisabledPixmap(const QPixmap& pixmap) KDE_DEPRECATED; +#endif + + /** + * Set the text for this button. The text will be either used as a + * tooltip (IconOnly) or will be along side the icon + * + * @param text The button (or tooltip) text + */ + virtual void setText(const QString &text); + + /** + * Set the icon for this button. The icon will be loaded internally + * with the correct size. This function is preferred over setIconSet + * + * @param icon The name of the icon + */ + virtual void setIcon(const QString &icon); + + /// @since 3.1 + virtual void setIcon( const QPixmap &pixmap ) + { QToolButton::setIcon( pixmap ); } + + /** + * Set the pixmaps for this toolbar button from a QIconSet. + * If you call this you don't need to call any of the other methods + * that set icons or pixmaps. + * @param iconset The iconset to use + */ + virtual void setIconSet( const QIconSet &iconset ); + +#ifndef KDE_NO_COMPAT + /** + * @deprecated + * Set the active icon for this button. The pixmap itself is loaded + * internally based on the icon size... .. the disabled and default + * pixmaps, however will only be constructed if generate is + * true. This function is preferred over setPixmap + * + * @param icon The name of the active icon + * @param generate If true, then the other icons are automagically + * generated from this one + */ + KDE_DEPRECATED void setIcon(const QString &icon, bool generate ) { Q_UNUSED(generate); setIcon( icon ); } + + /** + * @deprecated + * Force the button to use this icon as the default one rather + * then generating it using effects. + * + * @param icon The icon to use as the default (normal) one + */ + void setDefaultIcon(const QString& icon) KDE_DEPRECATED; + + /** + * @deprecated + * Force the button to use this icon when disabled one rather then + * generating it using effects. + * + * @param icon The icon to use when disabled + */ + void setDisabledIcon(const QString& icon) KDE_DEPRECATED; +#endif + + /** + * Turn this button on or off + * + * @param flag true or false + */ + void on(bool flag = true); + + /** + * Toggle this button + */ + void toggle(); + + /** + * Turn this button into a toggle button or disable the toggle + * aspects of it. This does not toggle the button itself. + * Use toggle() for that. + * + * @param toggle true or false + */ + void setToggle(bool toggle = true); + + /** + * Return a pointer to this button's popup menu (if it exists) + */ + QPopupMenu *popup(); + + /** + * Returns the button's id. + * @since 3.2 + */ + int id() const; + + /** + * Give this button a popup menu. There will not be a delay when + * you press the button. Use setDelayedPopup if you want that + * behavior. + * + * @param p The new popup menu + * @param unused Has no effect - ignore it. + */ + void setPopup (QPopupMenu *p, bool unused = false); + + /** + * Gives this button a delayed popup menu. + * + * This function allows you to add a delayed popup menu to the button. + * The popup menu is then only displayed when the button is pressed and + * held down for about half a second. + * + * @param p the new popup menu + * @param unused Has no effect - ignore it. + */ + void setDelayedPopup(QPopupMenu *p, bool unused = false); + + /** + * Turn this button into a radio button + * + * @param f true or false + */ + void setRadio(bool f = true); + + /** + * Toolbar buttons naturally will assume the global styles + * concerning icons, icons sizes, etc. You can use this function to + * explicitly turn this off, if you like. + * + * @param no_style Will disable styles if true + */ + void setNoStyle(bool no_style = true); + +signals: + void clicked(int); + void doubleClicked(int); + void pressed(int); + void released(int); + void toggled(int); + void highlighted(int, bool); + +public slots: + /** + * This slot should be called whenever the toolbar mode has + * potentially changed. This includes such events as text changing, + * orientation changing, etc. + */ + void modeChange(); + virtual void setTextLabel(const QString&, bool tipToo); + +protected: + void paletteChange(const QPalette &); + void leaveEvent(QEvent *e); + void enterEvent(QEvent *e); + void drawButton(QPainter *p); + bool eventFilter (QObject *o, QEvent *e); + void showMenu(); + QSize sizeHint() const; + QSize minimumSizeHint() const; + QSize minimumSize() const; + + /// @since 3.1 + bool isRaised() const; + /// @since 3.1 + bool isActive() const; + /// @since 3.1 + int iconTextMode() const; + +protected slots: + void slotClicked(); + void slotPressed(); + void slotReleased(); + void slotToggled(); + void slotDelayTimeout(); + +protected: + virtual void virtual_hook( int id, void* data ); +private: + KToolBarButtonPrivate *d; +}; + +/** +* List of KToolBarButton objects. +* @internal +* @version $Id: ktoolbarbutton.h,v 1.36 2004/03/18 02:50:16 bmeyer Exp $ +*/ +class KToolBarButtonList : public QIntDict +{ +public: + KToolBarButtonList(); + ~KToolBarButtonList() {} +}; + +#endif diff --git a/extra/kde330/kurifilter.h b/extra/kde330/kurifilter.h new file mode 100644 index 0000000..8c5f5fe --- /dev/null +++ b/extra/kde330/kurifilter.h @@ -0,0 +1,644 @@ +/* + * This file is part of the KDE libraries + * Copyright (C) 2000-2001,2003 Dawit Alemayehu + * + * Original author + * Copyright (C) 2000 Yves Arrouye + * + * + * This library 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. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public License + * along with this library; see the file COPYING.LIB. If not, write to + * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA. + **/ + +#ifndef __kurifilter_h__ +#define __kurifilter_h__ "$Id: kurifilter.h,v 1.41 2003/08/30 08:56:21 raabe Exp $" + +#include +#include +#include + +#include +#include + +class KURIFilterPrivate; +class KURIFilterDataPrivate; + +class KCModule; + +/** +* A basic message object used for exchanging filtering +* information between the filter plugins and the application +* requesting the filtering service. +* +* Use this object if you require a more detailed information +* about the URI you want to filter. Any application can create +* an instance of this class and send it to KURIFilter to +* have the plugins fill out all possible information about the +* URI. +* +* \b Example +* +* \code +* QString text = "kde.org"; +* KURIFilterData d = text; +* bool filtered = KURIFilter::self()->filter( d ); +* cout << "URL: " << text.latin1() << endl +* << "Filtered URL: " << d.uri().url().latin1() << endl +* << "URI Type: " << d.uriType() << endl +* << "Was Filtered: " << filtered << endl; +* \endcode +* +* The above code should yield the following output: +* \code +* URI: kde.org +* Filtered URI: http://kde.org +* URI Type: 0 <== means NET_PROTOCOL +* Was Filtered: 1 <== means the URL was successfully filtered +* \endcode +* +* @short A message object for exchanging filtering URI info. +* @author Dawit Alemayehu +*/ + +class KURIFilterData +{ +friend class KURIFilterPlugin; + +public: + /** + * Describes the type of the URI that was filtered. + * Here is a brief description of the types: + * + * @li NET_PROTOCOL - Any network protocol: http, ftp, nttp, pop3, etc... + * @li LOCAL_FILE - A local file whose executable flag is not set + * @li LOCAL_DIR - A local directory + * @li EXECUTABLE - A local file whose executable flag is set + * @li HELP - A man or info page + * @li SHELL - A shell executable (ex: echo "Test..." >> ~/testfile) + * @li BLOCKED - A URI that should be blocked/filtered (ex: ad filtering) + * @li ERROR - An incorrect URI (ex: "~johndoe" when user johndoe + * does not exist in that system ) + * @li UNKNOWN - A URI that is not identified. Default value when + * a KURIFilterData is first created. + */ + enum URITypes { NET_PROTOCOL=0, LOCAL_FILE, LOCAL_DIR, EXECUTABLE, HELP, SHELL, BLOCKED, ERROR, UNKNOWN }; + + /** + * Default constructor. + * + * Creates a URIFilterData object. + */ + KURIFilterData() { init(); } + + /** + * Creates a URIFilterData object from the given URL. + * + * @param url is the URL to be filtered. + */ + KURIFilterData( const KURL& url ) { init( url); } + + /** + * Creates a URIFilterData object from the given string. + * + * @param url is the string to be filtered. + */ + KURIFilterData( const QString& url ) { init( url ); } + + /** + * Copy constructor. + * + * Creates a URIFilterData object from another + * URI filter data object. + * + * @param data the uri filter data to be copied. + */ + KURIFilterData( const KURIFilterData& data); + + /** + * Destructor. + */ + ~KURIFilterData(); + + /** + * This method has been deprecated and will always return + * true. You should instead use the result from the + * KURIFilter::filterURI() calls. + * + * @deprecated + */ + KDE_DEPRECATED bool hasBeenFiltered() const { return true; } + + /** + * Returns the filtered or the original URL. + * + * This function returns the filtered url if one + * of the plugins successfully filtered the original + * URL. Otherwise, it returns the original URL. + * See hasBeenFiltered() and + * + * @return the filtered or original url. + */ + KURL uri() const { return m_pURI; } + + /** + * Returns an error message. + * + * This functions returns the error message set + * by the plugin whenever the uri type is set to + * KURIFilterData::ERROR. Otherwise, it returns + * a QString::null. + * + * @return the error message or a NULL when there is none. + */ + QString errorMsg() const { return m_strErrMsg; } + + /** + * Returns the URI type. + * + * This method always returns KURIFilterData::UNKNOWN + * if the given URL was not filtered. + * @return the type of the URI + */ + URITypes uriType() const { return m_iType; } + + /** + * Sets the URL to be filtered. + * + * Use this function to set the string to be + * filtered when you construct an empty filter + * object. + * + * @param url the string to be filtered. + */ + void setData( const QString& url ) { init( url ); } + + /** + * Same as above except the argument is a URL. + * + * Use this function to set the string to be + * filtered when you construct an empty filter + * object. + * + * @param url the URL to be filtered. + */ + void setData( const KURL& url ) { init( url ); } + + /** + * Sets the absolute path to be used whenever the supplied + * data is a relative local URL. + * + * NOTE: This function should only be used for local resources, + * i.e. the "file:/" protocol. It is useful for specifying the + * absolute path in cases where the actual URL might be relative. + * meta object. If deriving the path from a KURL, make sure you + * set the argument for this function to the result of calling + * path () instead of url (). + * + * @param abs_path the abolute path to the local resource. + * @return true if absolute path is successfully set. Otherwise, false. + */ + bool setAbsolutePath( const QString& abs_path ); + + /** + * Returns the absolute path if one has already been set. + * @return the absolute path, or QString::null + * @see hasAbsolutePath() + */ + QString absolutePath() const; + + /** + * Checks whether the supplied data had an absolute path. + * @return true if the supplied data has an absolute path + * @see absolutePath() + */ + bool hasAbsolutePath() const; + + /** + * Returns the command line options and arguments for a + * local resource when present. + * + * @return options and arguments when present, otherwise QString::null + */ + QString argsAndOptions() const; + + /** + * Checks whether the current data is a local resource with + * command line options and arguments. + * @return true if the current data has command line options and arguments + */ + bool hasArgsAndOptions() const; + + /** + * Returns the name of the icon that matches + * the current filtered URL. + * + * NOTE that this function will return a NULL + * string by default and when no associated icon + * is found. + * + * @return the name of the icon associated with the resource, + * or QString::null if not found + */ + QString iconName(); + + /** + * Check whether the provided uri is executable or not. + * + * Setting this to false ensures that typing the name of + * an executable does not start that application. This is + * useful in the location bar of a browser. The default + * value is true. + * + * @since 3.2 + */ + void setCheckForExecutables (bool check); + + /** + * @return true if the filters should attempt to check whether the + * supplied uri is an executable. False otherwise. + * + * @since 3.2 + */ + bool checkForExecutables() const { return m_bCheckForExecutables; } + + /** + * @return the string as typed by the user, before any URL processing is done + * @since 3.2 + */ + QString typedString() const; + + /** + * Overloaded assigenment operator. + * + * This function allows you to easily assign a KURL + * to a KURIFilterData object. + * + * @return an instance of a KURIFilterData object. + */ + KURIFilterData& operator=( const KURL& url ) { init( url ); return *this; } + + /** + * Overloaded assigenment operator. + * + * This function allows you to easily assign a QString + * to a KURIFilterData object. + * + * @return an instance of a KURIFilterData object. + */ + KURIFilterData& operator=( const QString& url ) { init( url ); return *this; } + +protected: + + /** + * Initializes the KURIFilterData on construction. + * @param url the URL to initialize the object with + */ + void init( const KURL& url); + + /** + * Initializes the KURIFilterData on construction. + * @param url the URL to initialize the object with + */ + void init( const QString& url = QString::null ); + +private: + bool m_bCheckForExecutables; + bool m_bChanged; + + QString m_strErrMsg; + QString m_strIconName; + + KURL m_pURI; + URITypes m_iType; + KURIFilterDataPrivate *d; +}; + + +/** + * Base class for URI filter plugins. + * + * This class applies a single filter to a URI. All plugins designed + * to provide URI filtering service should inherit from this abstract + * class and provide a concrete implementation. + * + * All inheriting classes need to implement the pure virtual function + * filterURI. + * + * @short Abstract class for URI filter plugins. + */ +class KURIFilterPlugin : public QObject +{ + Q_OBJECT + +public: + + /** + * Constructs a filter plugin with a given name and + * priority. + * + * @param parent the parent object, or 0 for no parent + * @param name the name of the plugin, or 0 for no name + * @param pri the priority of the plugin. + */ + KURIFilterPlugin( QObject *parent = 0, const char *name = 0, double pri = 1.0 ); + + /** + * Returns the filter's name. + * + * @return A string naming the filter. + */ + virtual QString name() const { return m_strName; } + + /** + * Returns the filter's priority. + * + * Each filter has an assigned priority, a float from 0 to 1. Filters + * with the lowest priority are first given a chance to filter a URI. + * + * @return The priority of the filter. + */ + virtual double priority() const { return m_dblPriority; } + + /** + * Filters a URI. + * + * @param data the URI data to be filtered. + * @return A boolean indicating whether the URI has been changed. + */ + virtual bool filterURI( KURIFilterData& data ) const = 0; + + /** + * Creates a configuration module for the filter. + * + * It is the responsibility of the caller to delete the module + * once it is not needed anymore. + * + * @return A configuration module, 0 if the filter isn't configurable. + */ + virtual KCModule *configModule( QWidget*, const char* ) const { return 0; } + + /** + * Returns the name of the configuration module for the filter. + * + * @return the name of a configuration module or QString::null if none. + */ + virtual QString configName() const { return name(); } + +protected: + + /** + * Sets the the URL in @p data to @p uri. + */ + void setFilteredURI ( KURIFilterData& data, const KURL& uri ) const; + + /** + * Sets the error message in @p data to @p errormsg. + */ + void setErrorMsg ( KURIFilterData& data, const QString& errmsg ) const { + data.m_strErrMsg = errmsg; + } + + /** + * Sets the URI type in @p data to @p type. + */ + void setURIType ( KURIFilterData& data, KURIFilterData::URITypes type) const { + data.m_iType = type; + data.m_bChanged = true; + } + + /** + * Sets the arguments and options string in @p data + * to @p args if any were found during filterting. + */ + void setArguments( KURIFilterData& data, const QString& args ) const; + + QString m_strName; + double m_dblPriority; + +protected: + virtual void virtual_hook( int id, void* data ); +private: + class KURIFilterPluginPrivate *d; +}; + + +/** + * A list of filter plugins. + */ +class KURIFilterPluginList : public QPtrList +{ +public: + virtual int compareItems(Item a, Item b) + { + double diff = ((KURIFilterPlugin *) a)->priority() - ((KURIFilterPlugin *) b)->priority(); + return diff < 0 ? -1 : (diff > 0 ? 1 : 0); + } + +private: + KURIFilterPrivate *d; + +}; + +/** + * Manages the filtering of URIs. + * + * The intention of this plugin class is to allow people to extend the + * functionality of KURL without modifying it directly. This way KURL will + * remain a generic parser capable of parsing any generic URL that adheres + * to specifications. + * + * The KURIFilter class applies a number of filters to a URI and returns the + * filtered version whenever possible. The filters are implemented using + * plugins to provide easy extensibility of the filtering mechanism. New + * filters can be added in the future by simply inheriting from + * KURIFilterPlugin and implementing the KURIFilterPlugin::filterURI + * method. + * + * Use of this plugin-manager class is straight forward. Since it is a + * singleton object, all you have to do is obtain an instance by doing + * @p KURIFilter::self() and use any of the public member functions to + * preform the filtering. + * + * \b Example + * + * To simply filter a given string: + * + * \code + * bool filtered = KURIFilter::self()->filterURI( "kde.org" ); + * \endcode + * + * You can alternatively use a KURL: + * + * \code + * KURL url = "kde.org"; + * bool filtered = KURIFilter::self()->filterURI( url ); + * \endcode + * + * If you have a constant string or a constant URL, simply invoke the + * corresponding function to obtain the filtered string or URL instead + * of a boolean flag: + * + * \code + * QString u = KURIFilter::self()->filteredURI( "kde.org" ); + * \endcode + * + * You can also restrict the filter(s) to be used by supplying + * the name of the filter(s) to use. By defualt all available + * filters will be used. To use specific filters, add the names + * of the filters you want to use to a QStringList and invoke + * the appropriate filtering function. The examples below show + * the use of specific filters. The first one uses a single + * filter called kshorturifilter while the second example uses + * multiple filters: + * + * \code + * QString text = "kde.org"; + * bool filtered = KURIFilter::self()->filterURI( text, "kshorturifilter" ); + * \endcode + * + * \code + * QStringList list; + * list << "kshorturifilter" << "localdomainfilter"; + * bool filtered = KURIFilter::self()->filterURI( text, list ); + * \endcode + * + * KURIFilter also allows richer data exchange through a simple + * meta-object called @p KURIFilterData. Using this meta-object + * you can find out more information about the URL you want to + * filter. See KURIFilterData for examples and details. + * + * @short Filters a given URL into its proper format whenever possible. + */ + +class KURIFilter +{ +public: + /** + * Destructor + */ + ~KURIFilter (); + + /** + * Returns an instance of KURIFilter. + */ + static KURIFilter* self(); + + /** + * Filters the URI given by the object URIFilterData. + * + * The given URL is filtered based on the specified list of filters. + * If the list is empty all available filters would be used. + * + * @param data object that contains the URI to be filtered. + * @param filters specify the list of filters to be used. + * + * @return a boolean indicating whether the URI has been changed + */ + bool filterURI( KURIFilterData& data, const QStringList& filters = QStringList() ); + + /** + * Filters the URI given by the URL. + * + * The given URL is filtered based on the specified list of filters. + * If the list is empty all available filters would be used. + * + * @param uri the URI to filter. + * @param filters specify the list of filters to be used. + * + * @return a boolean indicating whether the URI has been changed + */ + bool filterURI( KURL &uri, const QStringList& filters = QStringList() ); + + /** + * Filters a string representing a URI. + * + * The given URL is filtered based on the specified list of filters. + * If the list is empty all available filters would be used. + * + * @param uri The URI to filter. + * @param filters specify the list of filters to be used. + * + * @return a boolean indicating whether the URI has been changed + */ + bool filterURI( QString &uri, const QStringList& filters = QStringList() ); + + /** + * Returns the filtered URI. + * + * The given URL is filtered based on the specified list of filters. + * If the list is empty all available filters would be used. + * + * @param uri The URI to filter. + * @param filters specify the list of filters to be used. + * + * @return the filtered URI or null if it cannot be filtered + */ + KURL filteredURI( const KURL &uri, const QStringList& filters = QStringList() ); + + /** + * Return a filtered string representation of a URI. + * + * The given URL is filtered based on the specified list of filters. + * If the list is empty all available filters would be used. + * + * @param uri the URI to filter. + * @param filters specify the list of filters to be used. + * + * @return the filtered URI or null if it cannot be filtered + */ + QString filteredURI( const QString &uri, const QStringList& filters = QStringList() ); + + /** + * Return an iterator to iterate over all loaded + * plugins. + * + * @return a plugin iterator. + */ + QPtrListIterator pluginsIterator() const; + + /** + * Return a list of the names of all loaded plugins. + * + * @return a QStringList of plugin names + * @since 3.1 + */ + QStringList pluginNames() const; + +protected: + + /** + * A protected constructor. + * + * This constructor creates a KURIFilter and + * initializes all plugins it can find by invoking + * loadPlugins. + */ + KURIFilter(); + + /** + * Loads all allowed plugins. + * + * This function loads all filters that have not + * been disbled. + */ + void loadPlugins(); + +private: + static KURIFilter *m_self; + KURIFilterPluginList m_lstPlugins; + KURIFilterPrivate *d; +}; + +#endif diff --git a/extra/kde330/selectdialog.h b/extra/kde330/selectdialog.h new file mode 100644 index 0000000..b5e962c --- /dev/null +++ b/extra/kde330/selectdialog.h @@ -0,0 +1,87 @@ +/* + This file is part of libkresources. + + Copyright (c) 2002 Tobias Koenig + Copyright (c) 2002 Jan-Pascal van Best + Copyright (c) 2003 Cornelius Schumacher + + This library 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. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef KRESOURCES_SELECTDIALOG_H +#define KRESOURCES_SELECTDIALOG_H + +#include +#include +#include + +#include + +class KListBox; + +namespace KRES { + +class Resource; + +/** + * Dialog for selecting a resource. + * + * Example: + * + * \code + * + * QPtrList list = ... // can be retrived from KRES::Manager (e.g. KABC::AddressBook) + * + * KABC::Resource *res = KABC::SelectDialog::getResource( list, parentWdg ); + * if ( !res ) { + * // no resource selected + * } else { + * // do something with resource + * } + * \endcode + */ +class SelectDialog +{ + public: + /** + * Constructor. + * @param list The list of available resources + * @param parent The parent widget + * @param name The name of the dialog + */ + SelectDialog( QPtrList list, QWidget *parent = 0, + const char *name = 0); + + /** + * Returns selected resource. + */ + Resource *resource(); + + /** + * Opens a dialog showing the available resources and returns the resource the + * user has selected. Returns 0, if the dialog was canceled. + */ + static Resource *getResource( QPtrList list, QWidget *parent = 0 ); + + private: + KListBox *mResourceId; + + QMap mResourceMap; +}; + +} + +#endif diff --git a/extra/kde331/configwidget.h b/extra/kde331/configwidget.h new file mode 100644 index 0000000..643df88 --- /dev/null +++ b/extra/kde331/configwidget.h @@ -0,0 +1,58 @@ +/* + This file is part of libkresources. + Copyright (c) 2002 Tobias Koenig + Copyright (c) 2002 Jan-Pascal van Best + + This library 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. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef KRESOURCES_CONFIGWIDGET_H +#define KRESOURCES_CONFIGWIDGET_H + +#include "resource.h" + +#include + +#include + +namespace KRES { + +class ConfigWidget : public QWidget +{ + Q_OBJECT + public: + ConfigWidget( QWidget *parent = 0, const char *name = 0 ); + + /** + Sets the widget to 'edit' mode. Reimplement this method if you are + interested in the mode change (to disable some GUI element for + example). By default the widget is in 'create new' mode. + */ + virtual void setInEditMode( bool value ); + + public slots: + virtual void loadSettings( Resource *resource ) = 0; + virtual void saveSettings( Resource *resource ) = 0; + + signals: + void setReadOnly( bool value ); + + protected: + Resource *mResource; +}; + +} +#endif diff --git a/extra/kde331/kaccelaction.h b/extra/kde331/kaccelaction.h new file mode 100644 index 0000000..9967e4f --- /dev/null +++ b/extra/kde331/kaccelaction.h @@ -0,0 +1,564 @@ +/* This file is part of the KDE libraries + Copyright (C) 2001,2002 Ellis Whitehead + + This library 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. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef _KACCELACTION_H +#define _KACCELACTION_H + +#include +#include +#include +#include + +#include + +class KAccelBase; + +class QObject; +class KConfig; +class KConfigBase; + +/** + * @internal + * A KAccelAction prepresents an action that can be executed using + * an accelerator key. Each KAccelAction has a name, a label, a + * "What's this" string and a KShortcut. The user can configure and + * enable/disable them using KKeyDialog. + * + * \code + * 1) KAccelAction = "Run Command" + * Default3 = "Alt+F2" + * Default4 = "Meta+Enter;Alt+F2" + * 1) KShortcut = "Meta+Enter" + * 1) KKeySequence = "Meta+Enter" + * 1) KKey = "Meta+Enter" + * 1) Meta+Enter + * 2) Meta+Keypad_Enter + * 2) KShortcut = "Alt+F2" + * 1) KKeySequence = "Alt+F2" + * 1) Alt+F2 + * 2) KAccelAction = "Something" + * Default3 = "" + * Default4 = "" + * 1) KShortcut = "Meta+X,Asterisk" + * 1) KKeySequence = "Meta+X,Asterisk" + * 1) KKey = "Meta+X" + * 1) Meta+X + * 2) KKey = "Asterisk" + * 1) Shift+8 (English layout) + * 2) Keypad_Asterisk + * \endcode + * @short An accelerator action + * @see KAccel + * @see KGlobalAccel + * @see KKeyChooser + * @see KKeyDialog + */ +class KAccelAction +{ + public: + /** + * Creates an empty KAccelAction. + * @see clear() + */ + KAccelAction(); + + /** + * Copy constructor. + */ + KAccelAction( const KAccelAction& ); + + /** + * Creates a new KAccelAction. + * @param sName the name of the accelerator + * @param sLabel the label of the accelerator (i18n!) + * @param sWhatsThis the What's This text (18n!) + * @param cutDef3 the default shortcut for 3 modifier systems + * @param cutDef4 the default shortcut for 4 modifier systems + * @param pObjSlot the receiver of a signal when the key has been + * pressed + * @param psMethodSlot the slot to connect for key presses. Receives + * an int, as set by setID(), as only argument + * @param bConfigurable if true the user can configure the shortcut + * @param bEnabled true if the accelerator should be enabled + */ + KAccelAction( const QString& sName, const QString& sLabel, const QString& sWhatsThis, + const KShortcut& cutDef3, const KShortcut& cutDef4, + const QObject* pObjSlot, const char* psMethodSlot, + bool bConfigurable, bool bEnabled ); + ~KAccelAction(); + + /** + * Clears the accelerator. + */ + void clear(); + + /** + * Re-initialized the KAccelAction. + * @param sName the name of the accelerator + * @param sLabel the label of the accelerator (i18n!) + * @param sWhatsThis the What's This text (18n!) + * @param cutDef3 the default shortcut for 3 modifier systems + * @param cutDef4 the default shortcut for 4 modifier systems + * @param pObjSlot the receiver of a signal when the key has been + * pressed + * @param psMethodSlot the slot to connect for key presses. Receives + * an int, as set by setID(), as only argument + * @param bConfigurable if true the user can configure the shortcut + * @param bEnabled true if the accelerator should be enabled + * @return true if successful, false otherwise + */ + bool init( const QString& sName, const QString& sLabel, const QString& sWhatsThis, + const KShortcut& cutDef3, const KShortcut& cutDef4, + const QObject* pObjSlot, const char* psMethodSlot, + bool bConfigurable, bool bEnabled ); + + /** + * Copies this KAccelAction. + */ + KAccelAction& operator=( const KAccelAction& ); + + /** + * Returns the name of the accelerator action. + * @return the name of the accelerator action, can be null if not + * set + */ + const QString& name() const { return m_sName; } + + /** + * Returns the label of the accelerator action. + * @return the label of the accelerator action, can be null if + * not set + */ + const QString& label() const { return m_sLabel; } + + /** + * Returns the What's This text of the accelerator action. + * @return the What's This text of the accelerator action, can be + * null if not set + */ + const QString& whatsThis() const { return m_sWhatsThis; } + + /** + * The shortcut that is actually used (may be used configured). + * @return the shortcut of the KAccelAction, can be null if not set + * @see shortcutDefault() + */ + const KShortcut& shortcut() const { return m_cut; } + + /** + * The default shortcut for this system. + * @return the default shortcut on this system, can be null if not set + * @see shortcut() + * @see shortcutDefault3() + * @see shortcutDefault4() + */ + const KShortcut& shortcutDefault() const; + + /** + * The default shortcut for 3 modifier systems. + * @return the default shortcut for 3 modifier systems, can be null + * if not set + * @see shortcutDefault() + * @see shortcutDefault4() + * @see useFourModifierKeys() + */ + const KShortcut& shortcutDefault3() const { return m_cutDefault3; } + + /** + * The default shortcut for 4 modifier systems. + * @return the default shortcut for 4 modifier systems, can be null + * if not set + * @see shortcutDefault() + * @see shortcutDefault3() + * @see useFourModifierKeys() + */ + const KShortcut& shortcutDefault4() const { return m_cutDefault4; } + + /** + * Returns the receiver of signals. + * @return the receiver of signals (can be 0 if not set) + */ + const QObject* objSlotPtr() const { return m_pObjSlot; } + + /** + * Returns the slot for the signal. + * @return the slot for the signal + */ + const char* methodSlotPtr() const { return m_psMethodSlot; } + + /** + * Checks whether the user can configure the action. + * @return true if configurable, false otherwise + */ + bool isConfigurable() const { return m_bConfigurable; } + + /** + * Checks whether the action is enabled. + * @return true if enabled, false otherwise + */ + bool isEnabled() const { return m_bEnabled; } + + /** + * Sets the name of the accelerator action. + * @param name the new name + */ + void setName( const QString& name ); + + /** + * Sets the user-readable label of the accelerator action. + * @param label the new label (i18n!) + */ + void setLabel( const QString& label ); + + /** + * Sets the What's This text for the accelerator action. + * @param whatsThis the new What's This text (i18n!) + */ + void setWhatsThis( const QString& whatsThis ); + + /** + * Sets the new shortcut of the accelerator action. + * @param rgCuts the shortcut to set + * @return true if successful, false otherwise + */ + bool setShortcut( const KShortcut& rgCuts ); + + /** + * Sets the slot of the accelerator action. + * @param pObjSlot the receiver object of the signal + * @param psMethodSlot the slot for the signal + */ + void setSlot( const QObject* pObjSlot, const char* psMethodSlot ); + + /** + * Enables or disabled configuring the action. + * @param configurable true to enable configurability, false to disable + */ + void setConfigurable( bool configurable ); + + /** + * Enables or disabled the action. + * @param configurable true to enable the action, false to disable + */ + void setEnabled( bool enable ); + + /** + * Retrieves the id set using setID. + * @return the id of the accelerator action + */ + int getID() const { return m_nIDAccel; } + + /** + * Allows you to set an id that will be used as the action + * signal's argument. + * + * @param n the new id + * @see getID() + */ + void setID( int n ) { m_nIDAccel = n; } + + /** + * Checkes whether the action is connected (emits signals). + * @return true if connected, false otherwise + */ + bool isConnected() const; + + /** + * Sets a key sequence of the action's shortcut. + * @param i the position of the sequence + * @param keySeq the new new sequence + * @return true if successful, false otherwise + * @see KShortcut::setSeq() + */ + bool setKeySequence( uint i, const KKeySequence &keySeq ); + + /** + * Clears the action's shortcut. It will not contain any sequences after + * calling this method. + * @see KShortcut::clear() + */ + void clearShortcut(); + + /** + * Checks whether the action's shortcut contains the given key sequence. + * @param keySeq the key sequence to check + * @return true if the shortcut contains the given sequence + * @see KShortcut::contains() + */ + bool contains( const KKeySequence &keySeq ); + + /** + * Returns the string representation of the action's shortcut. + * @return the string representation of the action's shortcut. + * @see KShortcut::toString() + */ + QString toString() const; + + /** + * @internal + */ + QString toStringInternal() const; + + /** + * Returns true if four modifier keys will be used. + * @return true if four modifier keys will be used. + */ + static bool useFourModifierKeys(); + + /** + * Selects 3 or 4 modifier default shortcuts. + * @param use true to use 4 modifier shortcuts, false to use + * 3 modifier shortcuts + */ + static void useFourModifierKeys( bool use ); + + protected: + QString m_sName, + m_sLabel, + m_sWhatsThis; + KShortcut m_cut; + KShortcut m_cutDefault3, m_cutDefault4; + const QObject* m_pObjSlot; + const char* m_psMethodSlot; + bool m_bConfigurable, + m_bEnabled; + int m_nIDAccel; + uint m_nConnections; + + void incConnections(); + void decConnections(); + + private: + static int g_bUseFourModifierKeys; + class KAccelActionPrivate* d; + + friend class KAccelActions; + friend class KAccelBase; +}; + +//--------------------------------------------------------------------- +// KAccelActions +//--------------------------------------------------------------------- + +/** + * @internal + * This class represents a collection of KAccelAction objects. + * + * @short A collection of accelerator actions + * @see KAccelAction + */ +class KAccelActions +{ + public: + /** + * Creates a new, empty KAccelActions object. + */ + KAccelActions(); + + /** + * Copy constructor (deep copy). + */ + KAccelActions( const KAccelActions& ); + virtual ~KAccelActions(); + + /** + * Removes all items from this collection. + */ + void clear(); + + /** + * Initializes this object with the given actions. + * It will make a deep copy of all actions. + * @param actions the actions to copy + * @return true if successful, false otherwise + */ + bool init( const KAccelActions &actions ); + + /** + * Loads the actions from the given configuration file. + * + * @param config the configuration file to load from + * @param sGroup the group in the configuration file + * @return true if successful, false otherwise + */ + bool init( KConfigBase& config, const QString& sGroup ); + + /** + * Updates the shortcuts of all actions in this object + * with the shortcuts from the given object. + * @param shortcuts the collection that contains the new + * shortcuts + */ + void updateShortcuts( KAccelActions &shortcuts ); + + /** + * Retrieves the index of the action with the given name. + * @param sAction the action to search + * @return the index of the action, or -1 if not found + */ + int actionIndex( const QString& sAction ) const; + + /** + * Returns the action with the given @p index. + * @param index the index of an action. You must not + * use an index that is too high. + * @return the KAccelAction with the given index + * @see count() + */ + KAccelAction* actionPtr( uint index ); + + /** + * Returns the action with the given @p index. + * @param index the index of an action. You must not + * use an index that is too high. + * @return the KAccelAction with the given index + * @see count() + */ + const KAccelAction* actionPtr( uint index ) const; + + /** + * Returns the action with the given name. + * @param aAction the name of the action to search + * @return the KAccelAction with the given name, or 0 + * if not found + */ + KAccelAction* actionPtr( const QString& sAction ); + + /** + * Returns the action with the given name. + * @param aAction the name of the action to search + * @return the KAccelAction with the given name, or 0 + * if not found + */ + const KAccelAction* actionPtr( const QString& sAction ) const; + + /** + * Returns the action with the given key sequence. + * @param cut the sequence to search for + * @return the KAccelAction with the given sequence, or 0 + * if not found + */ + KAccelAction* actionPtr( KKeySequence cut ); + + /** + * Returns the action with the given @p index. + * @param index the index of an action. You must not + * use an index that is too high. + * @return the KAccelAction with the given index + * @see actionPtr() + * @see count() + */ + KAccelAction& operator []( uint index ); + + /** + * Returns the action with the given @p index. + * @param index the index of an action. You must not + * use an index that is too high. + * @return the KAccelAction with the given index + * @see actionPtr() + * @see count() + */ + const KAccelAction& operator []( uint index ) const; + + /** + * Inserts an action into the collection. + * @param sName the name of the accelerator + * @param sLabel the label of the accelerator (i18n!) + * @param sWhatsThis the What's This text (18n!) + * @param cutDef3 the default shortcut for 3 modifier systems + * @param cutDef4 the default shortcut for 4 modifier systems + * @param pObjSlot the receiver of a signal when the key has been + * pressed + * @param psMethodSlot the slot to connect for key presses. Receives + * an int, as set by setID(), as only argument + * @param bConfigurable if true the user can configure the shortcut + * @param bEnabled true if the accelerator should be enabled + * @return the new action + */ + KAccelAction* insert( const QString& sAction, const QString& sLabel, const QString& sWhatsThis, + const KShortcut& rgCutDefaults3, const KShortcut& rgCutDefaults4, + const QObject* pObjSlot = 0, const char* psMethodSlot = 0, + bool bConfigurable = true, bool bEnabled = true ); + + /** + * Inserts an action into the collection. + * @param sName the name of the accelerator + * @param sLabel the label of the accelerator (i18n!) + * @return the new action + */ + KAccelAction* insert( const QString& sName, const QString& sLabel ); + + /** + * Removes the given action. + * @param sAction the name of the action. + * @return true if successful, false otherwise + */ + bool remove( const QString& sAction ); + + /** + * Loads the actions from the given configuration file. + * + * @param sConfigGroup the group in the configuration file + * @param pConfig the configuration file to load from + * @return true if successful, false otherwise + */ + bool readActions( const QString& sConfigGroup = "Shortcuts", KConfigBase* pConfig = 0 ); + + /** + * Writes the actions to the given configuration file. + * + * @param sConfigGroup the group in the configuration file + * @param pConfig the configuration file to save to + * @param bWriteAll true to write all actions + * @param bGlobal true to write to the global configuration file + * @return true if successful, false otherwise + */ + bool writeActions( const QString& sConfigGroup = "Shortcuts", KConfigBase* pConfig = 0, + bool bWriteAll = false, bool bGlobal = false ) const; + + /** + * Emit a keycodeChanged signal. + */ + void emitKeycodeChanged(); + + /** + * Returns the number of actions in the collection. + * @return the number of actions + */ + uint count() const; + + protected: + KAccelBase* m_pKAccelBase; + KAccelAction** m_prgActions; + uint m_nSizeAllocated, m_nSize; + + void resize( uint ); + void insertPtr( KAccelAction* ); + + private: + class KAccelActionsPrivate* d; + + KAccelActions( KAccelBase* ); + void initPrivate( KAccelBase* ); + KAccelActions& operator =( KAccelActions& ); + + friend class KAccelBase; +}; + +#endif // _KACCELACTION_H diff --git a/extra/kde331/kaccelbase.h b/extra/kde331/kaccelbase.h new file mode 100644 index 0000000..3ddce3a --- /dev/null +++ b/extra/kde331/kaccelbase.h @@ -0,0 +1,230 @@ +/* This file is part of the KDE libraries + Copyright (C) 2001 Ellis Whitehead + + This library 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. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef _KACCELBASE_H +#define _KACCELBASE_H + +#include +#include +#include +#include +#include + +#include "kaccelaction.h" +#include "kkeyserver_x11.h" + +class QPopupMenu; +class QWidget; + +//---------------------------------------------------- + +/** + * @internal + * Handle keyboard accelerators. + * + * Allow an user to configure + * key bindings through application configuration files or through the + * KKeyChooser GUI. + * + * A KAccel contains a list of accelerator items. Each accelerator item + * consists of an action name and a keyboard code combined with modifiers + * (Shift, Ctrl and Alt.) + * + * For example, "Ctrl+P" could be a shortcut for printing a document. The key + * codes are listed in ckey.h. "Print" could be the action name for printing. + * The action name identifies the key binding in configuration files and the + * KKeyChooser GUI. + * + * When pressed, an accelerator key calls the slot to which it has been + * connected. Accelerator items can be connected so that a key will activate + * two different slots. + * + * A KAccel object handles key events sent to its parent widget and to all + * children of this parent widget. + * + * Key binding reconfiguration during run time can be prevented by specifying + * that an accelerator item is not configurable when it is inserted. A special + * group of non-configurable key bindings are known as the + * standard accelerators. + * + * The standard accelerators appear repeatedly in applications for + * standard document actions such as printing and saving. Convenience methods are + * available to insert and connect these accelerators which are configurable on + * a desktop-wide basis. + * + * It is possible for a user to choose to have no key associated with + * an action. + * + * The translated first argument for insertItem() is used only + * in the configuration dialog. + *\code + * KAccel *a = new KAccel( myWindow ); + * // Insert an action "Scroll Up" which is associated with the "Up" key: + * a->insertItem( i18n("Scroll Up"), "Scroll Up", "Up" ); + * // Insert an action "Scroll Down" which is not associated with any key: + * a->insertItem( i18n("Scroll Down"), "Scroll Down", 0); + * a->connectItem( "Scroll up", myWindow, SLOT( scrollUp() ) ); + * // a->insertStdItem( KStdAccel::Print ); //not necessary, since it + * // is done automatially with the + * // connect below! + * a->connectItem(KStdAccel::Print, myWindow, SLOT( printDoc() ) ); + * + * a->readSettings(); + *\endcode + * + * If a shortcut has a menu entry as well, you could insert them like + * this. The example is again the KStdAccel::Print from above. + * + * \code + * int id; + * id = popup->insertItem("&Print",this, SLOT(printDoc())); + * a->changeMenuAccel(popup, id, KStdAccel::Print ); + * \endcode + * + * If you want a somewhat "exotic" name for your standard print action, like + * id = popup->insertItem(i18n("Print &Document"),this, SLOT(printDoc())); + * it might be a good idea to insert the standard action before as + * a->insertStdItem( KStdAccel::Print, i18n("Print Document") ) + * as well, so that the user can easily find the corresponding function. + * + * This technique works for other actions as well. Your "scroll up" function + * in a menu could be done with + * + * \code + * id = popup->insertItem(i18n"Scroll &up",this, SLOT(scrollUp())); + * a->changeMenuAccel(popup, id, "Scroll Up" ); + * \endcode + * + * Please keep the order right: First insert all functions in the + * acceleratior, then call a -> readSettings() and @em then build your + * menu structure. + * + * @short Configurable key binding support. + * @version $Id: kaccelbase.h,v 1.26 2003/08/16 19:44:57 coolo Exp $ + */ + +class KAccelBase +{ + public: + enum Init { QT_KEYS = 0x00, NATIVE_KEYS = 0x01 }; + enum Signal { KEYCODE_CHANGED }; + + KAccelBase( int fInitCode ); + virtual ~KAccelBase(); + + uint actionCount() const; + KAccelActions& actions(); + bool isEnabled() const; + + KAccelAction* actionPtr( const QString& sAction ); + const KAccelAction* actionPtr( const QString& sAction ) const; + KAccelAction* actionPtr( const KKey& key ); + KAccelAction* actionPtr( const KKeyServer::Key& key ); + + const QString& configGroup() const { return m_sConfigGroup; } + void setConfigGroup( const QString& group ); + void setConfigGlobal( bool global ); + virtual void setEnabled( bool bEnabled ) = 0; + bool getAutoUpdate() { return m_bAutoUpdate; } + // return value of AutoUpdate flag before this call. + bool setAutoUpdate( bool bAuto ); + +// Procedures for manipulating Actions. + //void clearActions(); + + KAccelAction* insert( const QString& sName, const QString& sDesc ); + KAccelAction* insert( + const QString& sAction, const QString& sDesc, const QString& sHelp, + const KShortcut& rgCutDefaults3, const KShortcut& rgCutDefaults4, + const QObject* pObjSlot, const char* psMethodSlot, + bool bConfigurable = true, bool bEnabled = true ); + bool remove( const QString& sAction ); + bool setActionSlot( const QString& sAction, const QObject* pObjSlot, const char* psMethodSlot ); + + bool updateConnections(); + + bool setShortcut( const QString& sAction, const KShortcut& cut ); + +// Modify individual Action sub-items + bool setActionEnabled( const QString& sAction, bool bEnable ); + + /** + * Read all key associations from @p config, or (if @p config + * is zero) from the application's configuration file + * KGlobal::config(). + * + * The group in which the configuration is stored can be + * set with setConfigGroup(). + */ + void readSettings( KConfigBase* pConfig = 0 ); + + /** + * Write the current configurable associations to @p config, + * or (if @p config is zero) to the application's + * configuration file. + */ + void writeSettings( KConfigBase* pConfig = 0 ) const; + + QPopupMenu* createPopupMenu( QWidget* pParent, const KKeySequence& ); + + // Protected methods + protected: + void slotRemoveAction( KAccelAction* ); + + struct X; + void createKeyList( QValueVector& rgKeys ); + bool insertConnection( KAccelAction* ); + bool removeConnection( KAccelAction* ); + + virtual bool emitSignal( Signal ) = 0; + virtual bool connectKey( KAccelAction&, const KKeyServer::Key& ) = 0; + virtual bool connectKey( const KKeyServer::Key& ) = 0; + virtual bool disconnectKey( KAccelAction&, const KKeyServer::Key& ) = 0; + virtual bool disconnectKey( const KKeyServer::Key& ) = 0; + + protected: + struct ActionInfo + { + KAccelAction* pAction; + uint iSeq, iVariation; + //ActionInfo* pInfoNext; // nil if only one action uses this key. + + ActionInfo() { pAction = 0; iSeq = 0xffff; iVariation = 0xffff; } + ActionInfo( KAccelAction* _pAction, uint _iSeq, uint _iVariation ) + { pAction = _pAction; iSeq = _iSeq; iVariation = _iVariation; } + }; + typedef QMap KKeyToActionMap; + + KAccelActions m_rgActions; + KKeyToActionMap m_mapKeyToAction; + QValueList m_rgActionsNonUnique; + bool m_bNativeKeys; // Use native key codes instead of Qt codes + bool m_bEnabled; + bool m_bConfigIsGlobal; + QString m_sConfigGroup; + bool m_bAutoUpdate; + KAccelAction* mtemp_pActionRemoving; + + private: + KAccelBase& operator =( const KAccelBase& ); + + friend class KAccelActions; +}; + +#endif // _KACCELBASE_H diff --git a/extra/kde331/kicontheme.h b/extra/kde331/kicontheme.h new file mode 100644 index 0000000..9569800 --- /dev/null +++ b/extra/kde331/kicontheme.h @@ -0,0 +1,338 @@ +/* vi: ts=8 sts=4 sw=4 + * + * $Id: kicontheme.h,v 1.31 2004/05/31 17:18:02 montanaro Exp $ + * + * This file is part of the KDE project, module kdecore. + * Copyright (C) 2000 Geert Jansen + * Antonio Larrosa + * + * This is free software; it comes under the GNU Library General + * Public License, version 2. See the file "COPYING.LIB" for the + * exact licensing terms. + * + */ + +#ifndef __KIconTheme_h_Included__ +#define __KIconTheme_h_Included__ + +#include +#include +#include + +class KConfig; +//class KIconThemeDir; + +class KIconThemePrivate; + +class KIconPrivate; + +/** + * One icon as found by KIconTheme. Also serves as a namespace containing + * icon related constants. + * @see KIconEffect + * @see KIconTheme + * @see KIconLoader + */ +class KIcon +{ +public: + KIcon() { size = 0; } + + /** + * Return true if this icon is valid, false otherwise. + */ + bool isValid() const { return size != 0; } + + /** + * Defines the context of the icon. + */ + enum Context { + Any, ///< Some icon with unknown purpose. + Action, ///< An action icon (e.g. 'save', 'print'). + Application, ///< An icon that represents an application. + Device, ///< An icon that represents a device. + FileSystem, ///< An icon that represents a file system. + MimeType ///< An icon that represents a mime type (or file type). + }; + + /** + * The type of the icon. + */ + enum Type { + Fixed, ///< Fixed-size icon. + Scalable, ///< Scalable-size icon. + Threshold ///< A threshold icon. + }; + + /** + * The type of a match. + */ + enum MatchType { + MatchExact, ///< Only try to find an exact match. + MatchBest ///< Take the best match if there is no exact match. + + }; + + // if you add a group here, make sure to change the config reading in + // KIconLoader too + /** + * The group an an icon. + */ + enum Group { NoGroup=-1, Desktop=0, FirstGroup=0, Toolbar, + MainToolbar, Small, Panel, LastGroup, User }; + + /** + * These are the standard sizes for icons. + */ + enum StdSizes { + /// small icons for menu entries + SizeSmall=16, + /// slightly larger small icons for toolbars, panels, etc + SizeSmallMedium=22, + /// medium sized icons for the desktop + SizeMedium=32, + /// large sized icons for the panel + SizeLarge=48, + /// huge sized icons for iconviews + SizeHuge=64, + /// enormous (ugh!) sized icons for iconviews + SizeEnormous=128 + }; + + /** + * Defines the possible states of an icon. + */ + enum States { DefaultState, ///< The default state. + ActiveState, ///< Icon is active. + DisabledState, ///< Icon is disabled. + LastState ///< Last state (last constant) + }; + + /** + * This defines an overlay, a semi-transparent image that is + * projected onto the icon. They are used to show that the file + * represented by the icon is, for example, locked, zipped or hidden. + */ + enum Overlays { + LockOverlay=0x100, ///< a file is locked + ZipOverlay=0x200, ///< a file is zipped + LinkOverlay=0x400, ///< a fileis a link + HiddenOverlay=0x800, ///< a file is hidden + ShareOverlay=0x1000, ///< a file is shared + OverlayMask = ~0xff + }; + + /** + * The size in pixels of the icon. + */ + int size; + + /** + * The context of the icon. + */ + Context context; + + /** + * The type of the icon: Fixed, Scalable or Threshold. + **/ + Type type; + + /** + * The threshold in case type == Threshold + */ + int threshold; + + /** + * The full path of the icon. + */ + QString path; + +private: + KIconPrivate *d; +}; + +inline KIcon::Group& operator++(KIcon::Group& group) { group = static_cast(group+1); return group; } +inline KIcon::Group operator++(KIcon::Group& group,int) { KIcon::Group ret = group; ++group; return ret; } + +/** + * Class to use/access icon themes in KDE. This class is used by the + * iconloader but can be used by others too. + * @see KIconLoader + */ +class KIconTheme +{ +public: + /** + * Load an icon theme by name. + * @param name the name of the theme (e.g. "hicolor" or "keramik") + * @param appName the name of the application. Can be null. This argument + * allows applications to have themed application icons. + */ + KIconTheme(const QString& name, const QString& appName=QString::null); + ~KIconTheme(); + + /** + * The stylized name of the icon theme. + * @return the (human-readable) name of the theme + */ + QString name() const { return mName; } + + /** + * A description for the icon theme. + * @return a human-readable description of the theme, QString::null + * if there is none + */ + QString description() const { return mDesc; } + + /** + * Return the name of the "example" icon. This can be used to + * present the theme to the user. + * @return the name of the example icon, QString::null if there is none + */ + QString example() const; + + /** + * Return the name of the screenshot. + * @return the name of the screenshot, QString::null if there is none + */ + QString screenshot() const; + + /** + * Returns the name of this theme's link overlay. + * @return the name of the link overlay + */ + QString linkOverlay() const; + + /** + * Returns the name of this theme's zip overlay. + * @return the name of the zip overlay + */ + QString zipOverlay() const; + + /** + * Returns the name of this theme's lock overlay. + * @return the name of the lock overlay + */ + QString lockOverlay() const; + + /** + * Returns the name of this theme's share overlay. + * @return the name of the share overlay + * @since 3.1 + */ + QString shareOverlay () const; + + /** + * Returns the toplevel theme directory. + * @return the directory of the theme + */ + QString dir() const { return mDir; } + + /** + * The themes this icon theme falls back on. + * @return a list of icon themes that are used as fall-backs + */ + QStringList inherits() const { return mInherits; } + + /** + * The icon theme exists? + * @return true if the icon theme is valid + */ + bool isValid() const; + + /** + * The icon theme should be hidden to the user? + * @return true if the icon theme is hidden + * @since 3.1 + */ + bool isHidden() const; + + /** + * The minimum display depth required for this theme. This can either + * be 8 or 32. + * @return the minimum bpp (8 or 32) + */ + int depth() const { return mDepth; } + + /** + * The default size of this theme for a certain icon group. + * @param group The icon group. See KIcon::Group. + * @return The default size in pixels for the given icon group. + */ + int defaultSize(KIcon::Group group) const; + + /** + * Query available sizes for a group. + * @param group The icon group. See KIcon::Group. + * @return a list of available sized for the given group + */ + QValueList querySizes(KIcon::Group group) const; + + /** + * Query available icons for a size and context. + * @param size the size of the icons + * @param context the context of the icons + * @return the list of icon names + */ + QStringList queryIcons(int size, KIcon::Context context = KIcon::Any) const; + + /** + * Query available icons for a context and preferred size. + * @param size the size of the icons + * @param context the context of the icons + * @return the list of icon names + */ + QStringList queryIconsByContext(int size, KIcon::Context context = KIcon::Any) const; + + + /** + * Lookup an icon in the theme. + * @param name The name of the icon, without extension. + * @param size The desired size of the icon. + * @param match The matching mode. KIcon::MatchExact returns an icon + * only if matches exactly. KIcon::MatchBest returns the best matching + * icon. + * @return A KIcon class that describes the icon. If an icon is found, + * @see KIcon::isValid will return true, and false otherwise. + */ + KIcon iconPath(const QString& name, int size, KIcon::MatchType match) const; + + /** + * List all icon themes installed on the system, global and local. + * @return the list of all icon themes + */ + static QStringList list(); + + /** + * Returns the current icon theme. + * @return the name of the current theme + */ + static QString current(); + + /** + * Reconfigure the theme. + */ + static void reconfigure(); + + /** + * Returns the default icon theme. + * @return the name of the default theme name + * @since 3.1 + */ + static QString defaultThemeName(); + +private: + int mDefSize[8]; + QValueList mSizes[8]; + + int mDepth; + QString mDir, mName, mDesc; + QStringList mInherits; +// QPtrList mDirs; + KIconThemePrivate *d; + + static QString *_theme; + static QStringList *_theme_list; +}; + +#endif diff --git a/extra/kde331/kkeyserver_x11.h b/extra/kde331/kkeyserver_x11.h new file mode 100644 index 0000000..cf1b360 --- /dev/null +++ b/extra/kde331/kkeyserver_x11.h @@ -0,0 +1,433 @@ +#ifndef _KKEYSERVER_X11_H +#define _KKEYSERVER_X11_H + +#include "kshortcut.h" +#include "kkeynative.h" + +/** + * A collection of functions for the conversion of key presses and + * their modifiers from the window system (X11) specific format + * to the generic format and vice-versa. + */ +namespace KKeyServer +{ + /** + * Supplement enum KKey::ModFlag + * @since 3.1 + */ + enum ExtraModFlag { MODE_SWITCH = 0x2000 }; + + /** + * Represents a key symbol. + * @see KKey + * @see KKeyServer + */ + struct Sym + { + public: + /// the actual value of the symbol + uint m_sym; + + /// Creates a null symbol. + Sym() + { m_sym = 0; } + /** + * Creates asymbol with the given value. + * @param sym the value + */ + Sym( uint sym ) + { m_sym = sym; } + /** + * Creates a symbol from the given string description. + * @param s the description of the symbol + * @see toString() + */ + Sym( const QString& s ) + { init( s ); } + + /** + * Initializes the symbol with the given Qt key code. + * @param keyQt the qt key code + * @return true if successful, false otherwise + * @see Qt::Key + */ + bool initQt( int keyQt ); + + /** + * Initializes the key with the given string description. + * @param s the string description + * @return true if successful, false otherwise + * @see toString() + */ + bool init( const QString &s ); + + /** + * Returns the qt key code of the symbol. + * @return the qt key code + */ + int qt() const; + + /** + * @internal + */ + QString toStringInternal() const; + + /** + * Returns the string representation of the symbol. + * @return the string representation of the symbol + */ + QString toString() const; + + /** + * Returns the mods that are required for this symbol as + * ORed KKey::ModFlag's. For example, Break requires a + * Ctrl to be valid. + * @return the required KKey::ModFlag's + * @see KKey::ModFlag + */ + uint getModsRequired() const; + + /** + * TODO: please find out what this method does and document it + */ + uint getSymVariation() const; + + /** + * Casts the symbol to its integer representation. + */ + operator uint() const { return m_sym; } + + /** + * Overloaded operator to convert ints to Sym. + */ + Sym& operator =( uint sym ) { m_sym = sym; return *this; } + + private: + QString toString( bool bUserSpace ) const; + + static void capitalizeKeyname( QString& ); + }; + + /** + * Represents a key press. + * @see KKey + */ + struct Key + { + /// Code for native Keys in Qt + enum { CODE_FOR_QT = 256 }; + + /// The code of the key + uint m_code; + + /// The modifiers of the key + uint m_mod; + + /// The symbol of the key + uint m_sym; + + /** + * Initializes the key with a KKey. + * @param key the key to get the data from + * @param bQt true to take the Qt keycode, false + * for the native key code + * @see Qt::Key + * @see KKeyNative + */ + bool init( const KKey& key, bool bQt ); + + /** + * Checks whether the key code is a native code. + * @return true if native code of the window system, + * false if it is a Qt keycode + * @see Qt::Key + * @see KKeyNative + */ + bool isNative() const { return m_code != CODE_FOR_QT; } + + /** + * Returns the code of the key. + * @return the code of the key + */ + uint code() const { return m_code; } + + /** + * Returns the modifiers of the key. + * @return the modifiers of the key + */ + uint mod() const { return m_mod; } + + /** + * Returns the symbol of the key. + * @return the symbol of the key + */ + uint sym() const { return m_sym; } + + /** + * Returns the qt key code. + * @return the qt key code + */ + int keyCodeQt() const { return (int) m_sym; } + + /** + * Sets the qt key code. + * @param keyQt the qt key code + */ + void setKeycodeQt( int keyQt ) + { m_code = CODE_FOR_QT; m_sym = keyQt; } + + /** + * Initializes this key with a KKeyNative. + * @return this key + */ + Key& operator =( const KKeyNative& key ); + + /** + * Compares this key with the given Key object. Returns a + * negative number if the given Key is larger, 0 if they + * are equal and a positive number this Key is larger. The + * returned value is the difference between the symbol, modifier + * or code, whatever is non-zero first. + * + * @param key the key to compare with this key + * @return a negative number if the given Key is larger, 0 if + * they are equal and a positive number this Key is larger + */ + int compare( const Key& key ) const; + + /** + * Compares the symbol, modifiers and code of both keys. + * @see compare() + */ + bool operator ==( const Key& b ) const + { return compare( b ) == 0; } + + /** + * Compares the symbol, modifiers and code of both keys. + * @see compare() + */ + bool operator <( const Key& b ) const + { return compare( b ) < 0; } + + /** + * Converts this Key to a KKey. + * @return the KKey + */ + KKey key() const; + }; + + /** + * TODO: please document this class + */ + struct Variations + { + enum { MAX_VARIATIONS = 4 }; + + Key m_rgkey[MAX_VARIATIONS]; + uint m_nVariations; + + Variations() { m_nVariations = 0; } + + void init( const KKey&, bool bQt ); + + uint count() const { return m_nVariations; } + const Key& key( uint i ) const { return m_rgkey[i]; } + }; + + /// TODO: please document + bool initializeMods(); + + /** + * Returns the equivalent X modifier mask of the given modifier flag. + * @param modFlag the generic flags to check + * @return the window system specific flags + */ + uint modX( KKey::ModFlag modFlag ); + + /** + * Returns true if the current keyboard layout supports the Win key. + * Specifically, whether the Super or Meta keys are assigned to an X modifier. + * @return true if the keyboard has a Win key + * @see modXWin() + */ + bool keyboardHasWinKey(); + + /** + * Returns the X11 Shift modifier mask/flag. + * @return the X11 Shift modifier mask/flag. + * @see accelModMaskX() + */ + uint modXShift(); + + /** + * Returns the X11 Lock modifier mask/flag. + * @return the X11 Lock modifier mask/flag. + * @see accelModMaskX() + */ + uint modXLock(); + + /** + * Returns the X11 Ctrl modifier mask/flag. + * @return the X11 Ctrl modifier mask/flag. + * @see accelModMaskX() + */ + uint modXCtrl(); + + /** + * Returns the X11 Alt (Mod1) modifier mask/flag. + * @return the X11 Alt (Mod1) modifier mask/flag. + * @see accelModMaskX() + */ + uint modXAlt(); + + /** + * Returns the X11 NumLock modifier mask/flag. + * @return the X11 NumLock modifier mask/flag. + * @see accelModMaskX() + */ + uint modXNumLock(); + + /** + * Returns the X11 Win (Mod3) modifier mask/flag. + * @return the X11 Win (Mod3) modifier mask/flag. + * @see keyboardHasWinKey() + * @see accelModMaskX() + */ + uint modXWin(); + + /** + * Returns the X11 ScrollLock modifier mask/flag. + * @return the X11 ScrollLock modifier mask/flag. + * @see accelModMaskX() + */ + uint modXScrollLock(); + + /** + * Returns bitwise OR'ed mask containing Shift, Ctrl, Alt, and + * Win (if available). + * @see modXShift() + * @see modXLock() + * @see modXCtrl() + * @see modXAlt() + * @see modXNumLock() + * @see modXWin() + * @see modXScrollLock() + */ + uint accelModMaskX(); + + /** + * Extracts the symbol from the given Qt key and + * converts it to a symbol. + * @param keyQt the qt key code + * @param sym if successful, the symbol will be written here + * @return true if successful, false otherwise + * @see Qt::Key + * @see Sym + */ + bool keyQtToSym( int keyQt, uint& sym ); + + /** + * Extracts the modifiers from the given Qt key and + * converts them in a mask of ORed KKey::ModFlag modifiers. + * @param keyQt the qt key code + * @param mod if successful, the modifiers will be written here + * @return true if successful, false otherwise + * @see Qt::Key + */ + bool keyQtToMod( int keyQt, uint& mod ); + + /** + * Converts the given symbol to a Qt key code. + * @param sym the symbol + * @param keyQt if successful, the qt key code will be written here + * @return true if successful, false otherwise + * @see Qt::Key + * @see Sym + */ + bool symToKeyQt( uint sym, int& keyQt ); + + /** + * Converts the mask of ORed KKey::ModFlag modifiers to + * a mask of ORed Qt key code modifiers. + * @param mod the mask of KKey::ModFlag modifiers + * @param modQt the mask of Qt key code modifiers will be written here, + * if successful + * @return true if successful, false otherwise + * @see Qt::Key + * @see KKey + */ + bool modToModQt( uint mod, int& modQt ); + + /** + * Converts the mask of ORed KKey::ModFlag modifiers to + * a mask of ORed X11 modifiers. + * @param mod the mask of KKey::ModFlag modifiers + * @param modX the mask of X11 modifiers will be written here, + * if successful + * @return true if successful, false otherwise + * @see KKey + */ + bool modToModX( uint mod, uint& modX ); + + /** + * Converts the mask of ORed X11 modifiers to + * a mask of ORed Qt key code modifiers. + * @param modX the mask of X11 modifiers + * @param modQt the mask of Qt key code modifiers will be written here + * if successful + * @return true if successful, false otherwise + * @see Qt::Key + */ + bool modXToModQt( uint modX, int& modQt ); + + /** + * Converts the mask of ORed X11 modifiers to + * a mask of ORed KKey::ModFlag modifiers. + * @param modX the mask of X11 modifiers + * @param mod the mask of KKey::ModFlag modifiers will be written here, + * if successful + * @return true if successful, false otherwise + * @see KKey + */ + bool modXToMod( uint modX, uint& mod ); + + /** + * Converts a X11 key code and a mask of ORed X11 modifiers + * into a X11 symbol. + * converts it to a symbol. + * @param codeX the X11 key code + * @param modX the mask of ORed X11 modifiers + * @param symX if successful, the X11 symbol will be written here + * @return true if successful, false otherwise + * @see Qt::Key + * @see Sym + */ + bool codeXToSym( uchar codeX, uint modX, uint& symX ); + + /** + * @internal + */ + QString modToStringInternal( uint mod ); + + /** + * Converts the mask of ORed KKey::ModFlag modifiers to a + * user-readable string. + * @param mod the mask of ORed KKey::ModFlag modifiers + * @return the user-readable string + */ + QString modToStringUser( uint mod ); + + /** + * @internal + * Unimplemented? + */ + bool stringToSymMod( const QString&, uint& sym, uint& mod ); + + /** + * @internal + * Unimplemented? + */ + void keyQtToKeyX( uint keyCombQt, unsigned char *pKeyCodeX, uint *pKeySymX, uint *pKeyModX ); +} + +#endif // !_KKEYSERVER_X11_H diff --git a/extra/kde331/konsole_part.h b/extra/kde331/konsole_part.h new file mode 100644 index 0000000..7023f50 --- /dev/null +++ b/extra/kde331/konsole_part.h @@ -0,0 +1,229 @@ +/* + This file is part of the KDE system + Copyright (C) 1999,2000 Boloni Laszlo + + 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. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. + */ + +#ifndef __KONSOLE_PART_H__ +#define __KONSOLE_PART_H__ + +#include +#include + + +#include + +#include + +//#include "schema.h" +//#include "session.h" + +class KInstance; +class konsoleBrowserExtension; +class QPushButton; +class QSpinBox; +class KPopupMenu; +class QCheckBox; +class KRootPixmap; +class KToggleAction; +class KSelectAction; + +namespace KParts { class GUIActivateEvent; } + +class konsoleFactory : public KParts::Factory +{ + Q_OBJECT +public: + konsoleFactory(); + virtual ~konsoleFactory(); + + virtual KParts::Part* createPartObject(QWidget *parentWidget = 0, const char *widgetName = 0, + QObject* parent = 0, const char* name = 0, + const char* classname = "KParts::Part", + const QStringList &args = QStringList()); + + static KInstance *instance(); + + private: + static KInstance *s_instance; + static KAboutData *s_aboutData; +}; + +////////////////////////////////////////////////////////////////////// + +class konsolePart: public KParts::ReadOnlyPart, public TerminalInterface +{ + Q_OBJECT + public: + konsolePart(QWidget *parentWidget, const char *widgetName, QObject * parent, const char *name, const char *classname = 0); + virtual ~konsolePart(); + +signals: + void processExited(); + void receivedData( const QString& s ); + protected: + virtual bool openURL( const KURL & url ); + virtual bool openFile() {return false;} // never used + virtual bool closeURL() {return true;} + virtual void guiActivateEvent( KParts::GUIActivateEvent * event ); + + protected slots: + void showShell(); + void slotProcessExited(); + void slotReceivedData( const QString& s ); + +// void doneSession(TESession*); + void sessionDestroyed(); +// void configureRequest(TEWidget*,int,int x,int y); + void updateTitle(); + void enableMasterModeConnections(); + + private slots: + void emitOpenURLRequest(const QString &url); + + void readProperties(); + void saveProperties(); + + void sendSignal(int n); + void closeCurrentSession(); + + void notifySize(int,int); + + void slotToggleFrame(); + void slotSelectScrollbar(); + void slotSelectFont(); + void schema_menu_check(); + void keytab_menu_activated(int item); + void updateSchemaMenu(); + void setSchema(int n); + void pixmap_menu_activated(int item); + void schema_menu_activated(int item); + void slotHistoryType(); + void slotSelectBell(); + void slotSelectLineSpacing(); + void slotBlinkingCursor(); + void slotWordSeps(); + void fontNotFound(); + void slotSetEncoding(); + void slotFontChanged(); + + private: + konsoleBrowserExtension *m_extension; + KURL currentURL; + + void makeGUI(); + void applySettingsToGUI(); + + void setFont(int fontno); +// void setSchema(ColorSchema* s); + void updateKeytabMenu(); + + bool doOpenStream( const QString& ); + bool doWriteStream( const QByteArray& ); + bool doCloseStream(); + + QWidget* parentWidget; +// TEWidget* te; +// TESession* se; +// ColorSchemaList* colors; + KRootPixmap* rootxpm; + + KToggleAction* blinkingCursor; + KToggleAction* showFrame; + + KSelectAction* selectBell; + KSelectAction* selectFont; + KSelectAction* selectLineSpacing; + KSelectAction* selectScrollbar; + KSelectAction* selectSetEncoding; + + KPopupMenu* m_keytab; + KPopupMenu* m_schema; + KPopupMenu* m_signals; + KPopupMenu* m_options; + KPopupMenu* m_popupMenu; + + QFont defaultFont; + + QString pmPath; // pixmap path + QString s_schema; + QString s_kconfigSchema; + QString s_word_seps; // characters that are considered part of a word + QString fontNotFound_par; + + bool b_framevis:1; + bool b_histEnabled:1; + + int curr_schema; // current schema no + int n_bell; + int n_font; + int n_keytab; + int n_render; + int n_scroll; + unsigned m_histSize; + bool m_runningShell; + bool m_streamEnabled; + int n_encoding; + +public: + // these are the implementations for the TermEmuInterface + // functions... + void startProgram( const QString& program, + const QStrList& args ); + void showShellInDir( const QString& dir ); + void sendInput( const QString& text ); +}; + +////////////////////////////////////////////////////////////////////// + +/*class HistoryTypeDialog : public KDialogBase +{ + Q_OBJECT +public: + HistoryTypeDialog(const HistoryType& histType, + unsigned int histSize, + QWidget *parent); + +public slots: + void slotDefault(); + void slotSetUnlimited(); + void slotHistEnable(bool); + + unsigned int nbLines() const; + bool isOn() const; + +protected: + QCheckBox* m_btnEnable; + QSpinBox* m_size; + QPushButton* m_setUnlimited; +}; + +////////////////////////////////////////////////////////////////////// +*/ + +class konsoleBrowserExtension : public KParts::BrowserExtension +{ + Q_OBJECT + friend class konsolePart; + public: + konsoleBrowserExtension(konsolePart *parent); + virtual ~konsoleBrowserExtension(); + + void emitOpenURLRequest(const KURL &url); +}; + +#endif diff --git a/extra/kde331/kpanelmenu.h b/extra/kde331/kpanelmenu.h new file mode 100644 index 0000000..57f77a4 --- /dev/null +++ b/extra/kde331/kpanelmenu.h @@ -0,0 +1,181 @@ +/***************************************************************** + +Copyright (c) 1996-2000 the kicker authors. See file AUTHORS. + (c) 2001 Michael Goffioul + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN +AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +******************************************************************/ + +#ifndef __KPANELMENU_H__ +#define __KPANELMENU_H__ + +#include +#include +#include + +class KPanelMenuPrivate; + +/** + * This class allows to build menu entries that will be dynamically added either to + * the K-menu, or to the panel as a normal button. These dynamic menus are located + * in shared libraries that will be loaded at runtime by Kicker (the KDE panel). + * + * To build such a menu, you have to inherit this class and implement the pure virtual + * functions #initialize() and slotExec(). You also have to provide a factory + * object in your library, see KLibFactory. This factory is only used to construct + * the menu object. + * + * Finally, you also have to provide a desktop file describing your dynamic menu. The + * relevant entries are: Name, Comment, Icon and X-KDE-Library (which contains the + * library name without any extension). This desktop file has to be installed in + * $KDEDIR/share/apps/kicker/menuext/. + * + * @short Base class to build dynamically loaded menu entries for the K-menu, or the panel. + * @author The kicker maintainer, Michael Goffioul + */ +class KPanelMenu : public KPopupMenu +{ + Q_OBJECT + +public: + /** + * Construct a KPanelMenu object. This is the normal constructor to use when + * building extrernal menu entries. + */ + KPanelMenu(QWidget *parent=0, const char *name=0); + /** + * Constructor used internally by Kicker. You don't really want to use it. + * @param startDir a directory to associate with this menu + * @param parent parent object + * @param name name of the object + * @see path(), setPath() + */ + KPanelMenu(const QString &startDir, QWidget *parent=0, const char *name=0); + /** + * Destructor. + */ + virtual ~KPanelMenu(); + + /** + * Get the directory path associated with this menu, or QString::null if + * there's no such associated path. + * @return the associated directory path + * @see setPath() + */ + const QString& path() const; + /** + * Set a directory path to be associated with this menu. + * @param p the directory path + * @see path() + */ + void setPath(const QString &p); + /** + * Tell if the menu has been initialized, that is it already contains items. + * This is useful when you need to know if you have to clear the menu, or to + * fill it. + * @return the initial state + * @see setInitialized(), initialize() + */ + bool initialized() const; + /** + * Set the initial state. Set it to true when you menu is filled with the items + * you want. + * @param on the initial state + * @see initialized(), initialize() + */ + void setInitialized(bool on); + + /** + * Disable the automatic clearing of the menu. Kicker uses a cache system for + * its menus. After a specific configurable delay, the menu will be cleared. + * Use this function if you want to disable kicker's cache system, and avoid + * the clearing of your menu. + */ + void disableAutoClear(); + +public slots: + /** + * Reinitialize the menu: the menu is first cleared, the initial state is set + * to false, and finally #initialize() is called. Use this if you want to + * refill your menu immediately. + */ + void reinitialize(); + /** + * Deinitialize the menu: the menu is cleared and the initialized state is set to + * false. #initialize() is NOT called. It will be called before the menu is + * next shown, however. Use this slot if you want a delayed reinitialization. + * @since 3.1 + */ + void deinitialize(); + +protected slots: + /** + * This slot is called just before the menu is shown. This allows your menu + * to update itself if needed. However you should instead re-implement + * #initialize to provide this feature. This function is responsible for + * the cache system handling, so if you re-implement it, you should call + * the base function also. Calls #initialize(). + * @see disableAutoClear() + */ + virtual void slotAboutToShow(); + /** + * This is slot is called when an item from the menu has been selected. Your + * applet is then supposed to perform some action. You must re-implement this + * function. + * @param id the ID associated with the selected item + */ + virtual void slotExec(int id) = 0; + /** + * This slots is called to initialize the menu. It is called automatically by + * slotAboutToShow(). By re-implementing this functions, you can reconstruct + * the menu before it is being shown. At the end of this function, you should + * call setInitialize() with true to tell the system that the menu is OK. + * You applet must re-implement this function. + * @see slotAboutToShow(), initialized(), setInitialized() + */ + virtual void initialize() = 0; + /** + * Clears the menu, and update the initial state accordingly. + * @see initialized() + */ + void slotClear(); + +protected: + /** + * Re-implemented for internal reasons. + */ + virtual void hideEvent(QHideEvent *ev); + /** + * For internal use only. Used by constructors. + */ + void init(const QString& path = QString::null); + +protected: + virtual void virtual_hook( int id, void* data ); +private: + void internalInitialize(); + KPanelMenuPrivate *d; +}; + +#define K_EXPORT_KICKER_MENUEXT( libname, classname ) \ + K_EXPORT_COMPONENT_FACTORY( \ + kickermenu_##libname, \ + KGenericFactory("libkickermenu_" #libname) ) + +#endif diff --git a/extra/kde331/krecentdirs.h b/extra/kde331/krecentdirs.h new file mode 100644 index 0000000..71f771b --- /dev/null +++ b/extra/kde331/krecentdirs.h @@ -0,0 +1,68 @@ +/* -*- c++ -*- + * Copyright (C)2000 Waldo Bastian + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * + */ +#ifndef __KRECENTDIRS_H +#define __KRECENTDIRS_H + +#include + +/** + * The goal of this class is to make sure that, when the user needs to + * specify a file via the file selection dialog, this dialog will start + * in the directory most likely to contain the desired files. + * + * This works as follows: Each time the file selection dialog is + * shown, the programmer can specify a "file-class". The file-dialog will + * then start with the directory associated with this file-class. When + * the dialog closes, the directory currently shown in the file-dialog + * will be associated with the file-class. + * + * A file-class can either start with ':' or with '::'. If it starts with + * a single ':' the file-class is specific to the current application. + * If the file-class starts with '::' it is global to all applications. + */ +class KRecentDirs +{ +public: + /** + * Returns a list of directories associated with this file-class. + * The most recently used directory is at the front of the list. + */ + static QStringList list(const QString &fileClass); + + /** + * Returns the most recently used directory accociated with this file-class. + */ + static QString dir(const QString &fileClass); + + /** + * Associates @p directory with @p fileClass + */ + static void add(const QString &fileClass, const QString &directory); +}; + +#endif diff --git a/extra/kde331/ksharedptr.h b/extra/kde331/ksharedptr.h new file mode 100644 index 0000000..da710a3 --- /dev/null +++ b/extra/kde331/ksharedptr.h @@ -0,0 +1,175 @@ +/* This file is part of the KDE libraries + Copyright (c) 1999 Waldo Bastian + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License version 2 as published by the Free Software Foundation. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ +#ifndef KSharedPTR_H +#define KSharedPTR_H + +/** + * Reference counting for shared objects. If you derive your object + * from this class, then you may use it in conjunction with + * KSharedPtr to control the lifetime of your object. + * + * Specifically, all classes that derive from KShared have an internal + * counter keeping track of how many other objects have a reference to + * their object. If used with KSharedPtr, then your object will + * not be deleted until all references to the object have been + * released. + * + * You should probably not ever use any of the methods in this class + * directly -- let the KSharedPtr take care of that. Just derive + * your class from KShared and forget about it. + * + * @author Waldo Bastian + * @version $Id: ksharedptr.h,v 1.23 2004/02/04 12:16:03 raabe Exp $ + */ +class KShared { +public: + /** + * Standard constructor. This will initialize the reference count + * on this object to 0. + */ + KShared() : count(0) { } + + /** + * Copy constructor. This will @em not actually copy the objects + * but it will initialize the reference count on this object to 0. + */ + KShared( const KShared & ) : count(0) { } + + /** + * Overloaded assignment operator. + */ + KShared &operator=(const KShared & ) { return *this; } + + /** + * Increases the reference count by one. + */ + void _KShared_ref() const { count++; } + + /** + * Releases a reference (decreases the reference count by one). If + * the count goes to 0, this object will delete itself. + */ + void _KShared_unref() const { if (!--count) delete this; } + + /** + * Return the current number of references held. + * + * @return Number of references + */ + int _KShared_count() const { return count; } + +protected: + virtual ~KShared() { } +private: + mutable int count; +}; + +/** + * Can be used to control the lifetime of an object that has derived + * KShared. As long a someone holds a KSharedPtr on some KShared + * object it won't become deleted but is deleted once its reference + * count is 0. This struct emulates C++ pointers virtually perfectly. + * So just use it like a simple C++ pointer. + * + * KShared and KSharedPtr are preferred over QShared / QSharedPtr + * since they are more safe. + * + * WARNING: Please note that this class template provides an implicit + * conversion to T*. Do *not* change this pointer or the pointee (don't + * call delete on it, for instance) behind KSharedPtr's back. + * + * @author Waldo Bastian + * @version $Id: ksharedptr.h,v 1.23 2004/02/04 12:16:03 raabe Exp $ + */ +template< class T > +struct KSharedPtr +{ +public: +/** + * Creates a null pointer. + */ + KSharedPtr() + : ptr(0) { } + /** + * Creates a new pointer. + * @param t the pointer + */ + KSharedPtr( T* t ) + : ptr(t) { if ( ptr ) ptr->_KShared_ref(); } + + /** + * Copies a pointer. + * @param p the pointer to copy + */ + KSharedPtr( const KSharedPtr& p ) + : ptr(p.ptr) { if ( ptr ) ptr->_KShared_ref(); } + + /** + * Unreferences the object that this pointer points to. If it was + * the last reference, the object will be deleted. + */ + ~KSharedPtr() { if ( ptr ) ptr->_KShared_unref(); } + + KSharedPtr& operator= ( const KSharedPtr& p ) { + if ( ptr == p.ptr ) return *this; + if ( ptr ) ptr->_KShared_unref(); + ptr = p.ptr; + if ( ptr ) ptr->_KShared_ref(); + return *this; + } + KSharedPtr& operator= ( T* p ) { + if ( ptr == p ) return *this; + if ( ptr ) ptr->_KShared_unref(); + ptr = p; + if ( ptr ) ptr->_KShared_ref(); + return *this; + } + bool operator== ( const KSharedPtr& p ) const { return ( ptr == p.ptr ); } + bool operator!= ( const KSharedPtr& p ) const { return ( ptr != p.ptr ); } + bool operator== ( const T* p ) const { return ( ptr == p ); } + bool operator!= ( const T* p ) const { return ( ptr != p ); } + bool operator!() const { return ( ptr == 0 ); } + operator T*() const { return ptr; } + + /** + * Returns the pointer. + * @return the pointer + */ + T* data() { return ptr; } + + /** + * Returns the pointer. + * @return the pointer + */ + const T* data() const { return ptr; } + + const T& operator*() const { return *ptr; } + T& operator*() { return *ptr; } + const T* operator->() const { return ptr; } + T* operator->() { return ptr; } + + /** + * Returns the number of references. + * @return the number of references + */ + int count() const { return ptr->_KShared_count(); } // for debugging purposes +private: + T* ptr; +}; + +#endif diff --git a/extra/kde331/ksycocafactory.h b/extra/kde331/ksycocafactory.h new file mode 100644 index 0000000..9cc1257 --- /dev/null +++ b/extra/kde331/ksycocafactory.h @@ -0,0 +1,143 @@ +/* This file is part of the KDE libraries + * Copyright (C) 1999 Waldo Bastian + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License version 2 as published by the Free Software Foundation; + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public License + * along with this library; see the file COPYING.LIB. If not, write to + * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA. + **/ + +#ifndef __ksycocafactory_h__ +#define __ksycocafactory_h__ "$Id: ksycocafactory.h,v 1.14 2003/10/29 17:59:18 waba Exp $" + +#include "ksycocatype.h" +#include "ksycocaentry.h" + +#include +#include +class KSycoca; +class QStringList; +class QString; +class KSycocaDict; +class KSycocaResourceList; + +typedef QDict KSycocaEntryDict; + +/** + * @internal + * Base class for sycoca factories + */ +class KSycocaFactory +{ +public: + virtual KSycocaFactoryId factoryId() const = 0; + +protected: // virtual class + /** + * Create a factory which can be used to lookup from/create a database + * (depending on KSycoca::isBuilding()) + */ + KSycocaFactory( KSycocaFactoryId factory_id ); + +public: + virtual ~KSycocaFactory(); + + /** + * @return the position of the factory in the sycoca file + */ + int offset() { return mOffset; } + + /** + * @return the dict, for special use by KBuildSycoca + */ + KSycocaEntryDict * entryDict() { return m_entryDict; } + + /** + * Construct an entry from a config file. + * To be implemented in the real factories. + */ + virtual KSycocaEntry *createEntry(const QString &file, const char *resource) = 0; + + /** + * Add an entry + */ + virtual void addEntry(KSycocaEntry *newEntry, const char *resource); + + /** + * Remove an entry + * Not very fast, use with care. O(N) + */ + void removeEntry(KSycocaEntry *newEntry); + + /** + * Read an entry from the database + */ + virtual KSycocaEntry *createEntry(int offset)=0; + + /** + * Get a list of all entries from the database. + */ + KSycocaEntry::List allEntries(); + + /** + * Saves all entries it maintains as well as index files + * for these entries to the stream 'str'. + * + * Also sets mOffset to the starting position. + * + * The stream is positioned at the end of the last index. + * + * Don't forget to call the parent first when you override + * this function. + */ + virtual void save(QDataStream &str); + + /** + * Writes out a header to the stream 'str'. + * The baseclass positions the stream correctly. + * + * Don't forget to call the parent first when you override + * this function. + */ + virtual void saveHeader(QDataStream &str); + + /** + * @return the resources for which this factory is responsible. + */ + virtual const KSycocaResourceList * resourceList() const { return m_resourceList; } + +private: + int mOffset; + +protected: + int m_sycocaDictOffset; + int m_beginEntryOffset; + int m_endEntryOffset; + QDataStream *m_str; + + KSycocaResourceList *m_resourceList; + KSycocaEntryDict *m_entryDict; + KSycocaDict *m_sycocaDict; +protected: + virtual void virtual_hook( int id, void* data ); +}; + +/** This, instead of a typedef, allows to declare "class ..." in header files + * @internal + */ +class KSycocaFactoryList : public QPtrList +{ +public: + KSycocaFactoryList() { } +}; + +#endif diff --git a/extra/kde331/ktoolbarbutton.h b/extra/kde331/ktoolbarbutton.h new file mode 100644 index 0000000..be0460b --- /dev/null +++ b/extra/kde331/ktoolbarbutton.h @@ -0,0 +1,315 @@ +/* This file is part of the KDE libraries + Copyright (C) 1997, 1998 Stephan Kulow (coolo@kde.org) + (C) 1997, 1998 Sven Radej (radej@kde.org) + (C) 1997, 1998 Mark Donohoe (donohoe@kde.org) + (C) 1997, 1998 Matthias Ettrich (ettrich@kde.org) + (C) 2000 Kurt Granroth (granroth@kde.org) + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License version 2 as published by the Free Software Foundation. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef _KTOOLBARBUTTON_H +#define _KTOOLBARBUTTON_H + +#include +#include +#include +#include +#include + +class KToolBar; +class KToolBarButtonPrivate; +class KInstance; +class QEvent; +class QPopupMenu; +class QPainter; + +/** + * A toolbar button. This is used internally by KToolBar, use the + * KToolBar methods instead. + * @internal + */ +class KToolBarButton : public QToolButton +{ + Q_OBJECT + +public: + /** + * Construct a button with an icon loaded by the button itself. + * This will trust the button to load the correct icon with the + * correct size. + * + * @param icon Name of icon to load (may be absolute or relative) + * @param id Id of this button + * @param parent This button's parent + * @param name This button's internal name + * @param txt This button's text (in a tooltip or otherwise) + * @param _instance the instance to use for this button + */ + KToolBarButton(const QString& icon, int id, QWidget *parent, + const char *name=0L, const QString &txt=QString::null, + KInstance *_instance = KGlobal::instance()); + + /** + * Construct a button with an existing pixmap. It is not + * recommended that you use this as the internal icon loading code + * will almost always get it "right". + * + * @param pixmap Name of icon to load (may be absolute or relative) + * @param id Id of this button + * @param parent This button's parent + * @param name This button's internal name + * @param txt This button's text (in a tooltip or otherwise) + */ + KToolBarButton(const QPixmap& pixmap, int id, QWidget *parent, + const char *name=0L, const QString &txt=QString::null); + + /** + * Construct a separator button + * + * @param parent This button's parent + * @param name This button's internal name + */ + KToolBarButton(QWidget *parent=0L, const char *name=0L); + + /** + * Standard destructor + */ + ~KToolBarButton(); + +#ifndef KDE_NO_COMPAT + /** + * @deprecated + * Set the pixmap directly for this button. This pixmap should be + * the active one... the dimmed and disabled pixmaps are constructed + * based on this one. However, don't use this function unless you + * are positive that you don't want to use setIcon. + * + * @param pixmap The active pixmap + */ + // this one is from QButton, so #ifdef-ing it out doesn't break BC + virtual void setPixmap(const QPixmap &pixmap) KDE_DEPRECATED; + + /** + * @deprecated + * Force the button to use this pixmap as the default one rather + * then generating it using effects. + * + * @param pixmap The pixmap to use as the default (normal) one + */ + void setDefaultPixmap(const QPixmap& pixmap) KDE_DEPRECATED; + + /** + * @deprecated + * Force the button to use this pixmap when disabled one rather then + * generating it using effects. + * + * @param pixmap The pixmap to use when disabled + */ + void setDisabledPixmap(const QPixmap& pixmap) KDE_DEPRECATED; +#endif + + /** + * Set the text for this button. The text will be either used as a + * tooltip (IconOnly) or will be along side the icon + * + * @param text The button (or tooltip) text + */ + virtual void setText(const QString &text); + + /** + * Set the icon for this button. The icon will be loaded internally + * with the correct size. This function is preferred over setIconSet + * + * @param icon The name of the icon + */ + virtual void setIcon(const QString &icon); + + /// @since 3.1 + virtual void setIcon( const QPixmap &pixmap ) + { QToolButton::setIcon( pixmap ); } + + /** + * Set the pixmaps for this toolbar button from a QIconSet. + * If you call this you don't need to call any of the other methods + * that set icons or pixmaps. + * @param iconset The iconset to use + */ + virtual void setIconSet( const QIconSet &iconset ); + +#ifndef KDE_NO_COMPAT + /** + * @deprecated + * Set the active icon for this button. The pixmap itself is loaded + * internally based on the icon size... .. the disabled and default + * pixmaps, however will only be constructed if generate is + * true. This function is preferred over setPixmap + * + * @param icon The name of the active icon + * @param generate If true, then the other icons are automagically + * generated from this one + */ + KDE_DEPRECATED void setIcon(const QString &icon, bool generate ) { Q_UNUSED(generate); setIcon( icon ); } + + /** + * @deprecated + * Force the button to use this icon as the default one rather + * then generating it using effects. + * + * @param icon The icon to use as the default (normal) one + */ + void setDefaultIcon(const QString& icon) KDE_DEPRECATED; + + /** + * @deprecated + * Force the button to use this icon when disabled one rather then + * generating it using effects. + * + * @param icon The icon to use when disabled + */ + void setDisabledIcon(const QString& icon) KDE_DEPRECATED; +#endif + + /** + * Turn this button on or off + * + * @param flag true or false + */ + void on(bool flag = true); + + /** + * Toggle this button + */ + void toggle(); + + /** + * Turn this button into a toggle button or disable the toggle + * aspects of it. This does not toggle the button itself. + * Use toggle() for that. + * + * @param toggle true or false + */ + void setToggle(bool toggle = true); + + /** + * Return a pointer to this button's popup menu (if it exists) + */ + QPopupMenu *popup(); + + /** + * Returns the button's id. + * @since 3.2 + */ + int id() const; + + /** + * Give this button a popup menu. There will not be a delay when + * you press the button. Use setDelayedPopup if you want that + * behavior. + * + * @param p The new popup menu + * @param unused Has no effect - ignore it. + */ + void setPopup (QPopupMenu *p, bool unused = false); + + /** + * Gives this button a delayed popup menu. + * + * This function allows you to add a delayed popup menu to the button. + * The popup menu is then only displayed when the button is pressed and + * held down for about half a second. + * + * @param p the new popup menu + * @param unused Has no effect - ignore it. + */ + void setDelayedPopup(QPopupMenu *p, bool unused = false); + + /** + * Turn this button into a radio button + * + * @param f true or false + */ + void setRadio(bool f = true); + + /** + * Toolbar buttons naturally will assume the global styles + * concerning icons, icons sizes, etc. You can use this function to + * explicitly turn this off, if you like. + * + * @param no_style Will disable styles if true + */ + void setNoStyle(bool no_style = true); + +signals: + void clicked(int); + void doubleClicked(int); + void pressed(int); + void released(int); + void toggled(int); + void highlighted(int, bool); + +public slots: + /** + * This slot should be called whenever the toolbar mode has + * potentially changed. This includes such events as text changing, + * orientation changing, etc. + */ + void modeChange(); + virtual void setTextLabel(const QString&, bool tipToo); + +protected: + void paletteChange(const QPalette &); + void leaveEvent(QEvent *e); + void enterEvent(QEvent *e); + void drawButton(QPainter *p); + bool eventFilter (QObject *o, QEvent *e); + void showMenu(); + QSize sizeHint() const; + QSize minimumSizeHint() const; + QSize minimumSize() const; + + /// @since 3.1 + bool isRaised() const; + /// @since 3.1 + bool isActive() const; + /// @since 3.1 + int iconTextMode() const; + +protected slots: + void slotClicked(); + void slotPressed(); + void slotReleased(); + void slotToggled(); + void slotDelayTimeout(); + +protected: + virtual void virtual_hook( int id, void* data ); +private: + KToolBarButtonPrivate *d; +}; + +/** +* List of KToolBarButton objects. +* @internal +* @version $Id: ktoolbarbutton.h,v 1.36 2004/03/18 02:50:16 bmeyer Exp $ +*/ +class KToolBarButtonList : public QIntDict +{ +public: + KToolBarButtonList(); + ~KToolBarButtonList() {} +}; + +#endif diff --git a/extra/kde331/kurifilter.h b/extra/kde331/kurifilter.h new file mode 100644 index 0000000..8c5f5fe --- /dev/null +++ b/extra/kde331/kurifilter.h @@ -0,0 +1,644 @@ +/* + * This file is part of the KDE libraries + * Copyright (C) 2000-2001,2003 Dawit Alemayehu + * + * Original author + * Copyright (C) 2000 Yves Arrouye + * + * + * This library 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. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public License + * along with this library; see the file COPYING.LIB. If not, write to + * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA. + **/ + +#ifndef __kurifilter_h__ +#define __kurifilter_h__ "$Id: kurifilter.h,v 1.41 2003/08/30 08:56:21 raabe Exp $" + +#include +#include +#include + +#include +#include + +class KURIFilterPrivate; +class KURIFilterDataPrivate; + +class KCModule; + +/** +* A basic message object used for exchanging filtering +* information between the filter plugins and the application +* requesting the filtering service. +* +* Use this object if you require a more detailed information +* about the URI you want to filter. Any application can create +* an instance of this class and send it to KURIFilter to +* have the plugins fill out all possible information about the +* URI. +* +* \b Example +* +* \code +* QString text = "kde.org"; +* KURIFilterData d = text; +* bool filtered = KURIFilter::self()->filter( d ); +* cout << "URL: " << text.latin1() << endl +* << "Filtered URL: " << d.uri().url().latin1() << endl +* << "URI Type: " << d.uriType() << endl +* << "Was Filtered: " << filtered << endl; +* \endcode +* +* The above code should yield the following output: +* \code +* URI: kde.org +* Filtered URI: http://kde.org +* URI Type: 0 <== means NET_PROTOCOL +* Was Filtered: 1 <== means the URL was successfully filtered +* \endcode +* +* @short A message object for exchanging filtering URI info. +* @author Dawit Alemayehu +*/ + +class KURIFilterData +{ +friend class KURIFilterPlugin; + +public: + /** + * Describes the type of the URI that was filtered. + * Here is a brief description of the types: + * + * @li NET_PROTOCOL - Any network protocol: http, ftp, nttp, pop3, etc... + * @li LOCAL_FILE - A local file whose executable flag is not set + * @li LOCAL_DIR - A local directory + * @li EXECUTABLE - A local file whose executable flag is set + * @li HELP - A man or info page + * @li SHELL - A shell executable (ex: echo "Test..." >> ~/testfile) + * @li BLOCKED - A URI that should be blocked/filtered (ex: ad filtering) + * @li ERROR - An incorrect URI (ex: "~johndoe" when user johndoe + * does not exist in that system ) + * @li UNKNOWN - A URI that is not identified. Default value when + * a KURIFilterData is first created. + */ + enum URITypes { NET_PROTOCOL=0, LOCAL_FILE, LOCAL_DIR, EXECUTABLE, HELP, SHELL, BLOCKED, ERROR, UNKNOWN }; + + /** + * Default constructor. + * + * Creates a URIFilterData object. + */ + KURIFilterData() { init(); } + + /** + * Creates a URIFilterData object from the given URL. + * + * @param url is the URL to be filtered. + */ + KURIFilterData( const KURL& url ) { init( url); } + + /** + * Creates a URIFilterData object from the given string. + * + * @param url is the string to be filtered. + */ + KURIFilterData( const QString& url ) { init( url ); } + + /** + * Copy constructor. + * + * Creates a URIFilterData object from another + * URI filter data object. + * + * @param data the uri filter data to be copied. + */ + KURIFilterData( const KURIFilterData& data); + + /** + * Destructor. + */ + ~KURIFilterData(); + + /** + * This method has been deprecated and will always return + * true. You should instead use the result from the + * KURIFilter::filterURI() calls. + * + * @deprecated + */ + KDE_DEPRECATED bool hasBeenFiltered() const { return true; } + + /** + * Returns the filtered or the original URL. + * + * This function returns the filtered url if one + * of the plugins successfully filtered the original + * URL. Otherwise, it returns the original URL. + * See hasBeenFiltered() and + * + * @return the filtered or original url. + */ + KURL uri() const { return m_pURI; } + + /** + * Returns an error message. + * + * This functions returns the error message set + * by the plugin whenever the uri type is set to + * KURIFilterData::ERROR. Otherwise, it returns + * a QString::null. + * + * @return the error message or a NULL when there is none. + */ + QString errorMsg() const { return m_strErrMsg; } + + /** + * Returns the URI type. + * + * This method always returns KURIFilterData::UNKNOWN + * if the given URL was not filtered. + * @return the type of the URI + */ + URITypes uriType() const { return m_iType; } + + /** + * Sets the URL to be filtered. + * + * Use this function to set the string to be + * filtered when you construct an empty filter + * object. + * + * @param url the string to be filtered. + */ + void setData( const QString& url ) { init( url ); } + + /** + * Same as above except the argument is a URL. + * + * Use this function to set the string to be + * filtered when you construct an empty filter + * object. + * + * @param url the URL to be filtered. + */ + void setData( const KURL& url ) { init( url ); } + + /** + * Sets the absolute path to be used whenever the supplied + * data is a relative local URL. + * + * NOTE: This function should only be used for local resources, + * i.e. the "file:/" protocol. It is useful for specifying the + * absolute path in cases where the actual URL might be relative. + * meta object. If deriving the path from a KURL, make sure you + * set the argument for this function to the result of calling + * path () instead of url (). + * + * @param abs_path the abolute path to the local resource. + * @return true if absolute path is successfully set. Otherwise, false. + */ + bool setAbsolutePath( const QString& abs_path ); + + /** + * Returns the absolute path if one has already been set. + * @return the absolute path, or QString::null + * @see hasAbsolutePath() + */ + QString absolutePath() const; + + /** + * Checks whether the supplied data had an absolute path. + * @return true if the supplied data has an absolute path + * @see absolutePath() + */ + bool hasAbsolutePath() const; + + /** + * Returns the command line options and arguments for a + * local resource when present. + * + * @return options and arguments when present, otherwise QString::null + */ + QString argsAndOptions() const; + + /** + * Checks whether the current data is a local resource with + * command line options and arguments. + * @return true if the current data has command line options and arguments + */ + bool hasArgsAndOptions() const; + + /** + * Returns the name of the icon that matches + * the current filtered URL. + * + * NOTE that this function will return a NULL + * string by default and when no associated icon + * is found. + * + * @return the name of the icon associated with the resource, + * or QString::null if not found + */ + QString iconName(); + + /** + * Check whether the provided uri is executable or not. + * + * Setting this to false ensures that typing the name of + * an executable does not start that application. This is + * useful in the location bar of a browser. The default + * value is true. + * + * @since 3.2 + */ + void setCheckForExecutables (bool check); + + /** + * @return true if the filters should attempt to check whether the + * supplied uri is an executable. False otherwise. + * + * @since 3.2 + */ + bool checkForExecutables() const { return m_bCheckForExecutables; } + + /** + * @return the string as typed by the user, before any URL processing is done + * @since 3.2 + */ + QString typedString() const; + + /** + * Overloaded assigenment operator. + * + * This function allows you to easily assign a KURL + * to a KURIFilterData object. + * + * @return an instance of a KURIFilterData object. + */ + KURIFilterData& operator=( const KURL& url ) { init( url ); return *this; } + + /** + * Overloaded assigenment operator. + * + * This function allows you to easily assign a QString + * to a KURIFilterData object. + * + * @return an instance of a KURIFilterData object. + */ + KURIFilterData& operator=( const QString& url ) { init( url ); return *this; } + +protected: + + /** + * Initializes the KURIFilterData on construction. + * @param url the URL to initialize the object with + */ + void init( const KURL& url); + + /** + * Initializes the KURIFilterData on construction. + * @param url the URL to initialize the object with + */ + void init( const QString& url = QString::null ); + +private: + bool m_bCheckForExecutables; + bool m_bChanged; + + QString m_strErrMsg; + QString m_strIconName; + + KURL m_pURI; + URITypes m_iType; + KURIFilterDataPrivate *d; +}; + + +/** + * Base class for URI filter plugins. + * + * This class applies a single filter to a URI. All plugins designed + * to provide URI filtering service should inherit from this abstract + * class and provide a concrete implementation. + * + * All inheriting classes need to implement the pure virtual function + * filterURI. + * + * @short Abstract class for URI filter plugins. + */ +class KURIFilterPlugin : public QObject +{ + Q_OBJECT + +public: + + /** + * Constructs a filter plugin with a given name and + * priority. + * + * @param parent the parent object, or 0 for no parent + * @param name the name of the plugin, or 0 for no name + * @param pri the priority of the plugin. + */ + KURIFilterPlugin( QObject *parent = 0, const char *name = 0, double pri = 1.0 ); + + /** + * Returns the filter's name. + * + * @return A string naming the filter. + */ + virtual QString name() const { return m_strName; } + + /** + * Returns the filter's priority. + * + * Each filter has an assigned priority, a float from 0 to 1. Filters + * with the lowest priority are first given a chance to filter a URI. + * + * @return The priority of the filter. + */ + virtual double priority() const { return m_dblPriority; } + + /** + * Filters a URI. + * + * @param data the URI data to be filtered. + * @return A boolean indicating whether the URI has been changed. + */ + virtual bool filterURI( KURIFilterData& data ) const = 0; + + /** + * Creates a configuration module for the filter. + * + * It is the responsibility of the caller to delete the module + * once it is not needed anymore. + * + * @return A configuration module, 0 if the filter isn't configurable. + */ + virtual KCModule *configModule( QWidget*, const char* ) const { return 0; } + + /** + * Returns the name of the configuration module for the filter. + * + * @return the name of a configuration module or QString::null if none. + */ + virtual QString configName() const { return name(); } + +protected: + + /** + * Sets the the URL in @p data to @p uri. + */ + void setFilteredURI ( KURIFilterData& data, const KURL& uri ) const; + + /** + * Sets the error message in @p data to @p errormsg. + */ + void setErrorMsg ( KURIFilterData& data, const QString& errmsg ) const { + data.m_strErrMsg = errmsg; + } + + /** + * Sets the URI type in @p data to @p type. + */ + void setURIType ( KURIFilterData& data, KURIFilterData::URITypes type) const { + data.m_iType = type; + data.m_bChanged = true; + } + + /** + * Sets the arguments and options string in @p data + * to @p args if any were found during filterting. + */ + void setArguments( KURIFilterData& data, const QString& args ) const; + + QString m_strName; + double m_dblPriority; + +protected: + virtual void virtual_hook( int id, void* data ); +private: + class KURIFilterPluginPrivate *d; +}; + + +/** + * A list of filter plugins. + */ +class KURIFilterPluginList : public QPtrList +{ +public: + virtual int compareItems(Item a, Item b) + { + double diff = ((KURIFilterPlugin *) a)->priority() - ((KURIFilterPlugin *) b)->priority(); + return diff < 0 ? -1 : (diff > 0 ? 1 : 0); + } + +private: + KURIFilterPrivate *d; + +}; + +/** + * Manages the filtering of URIs. + * + * The intention of this plugin class is to allow people to extend the + * functionality of KURL without modifying it directly. This way KURL will + * remain a generic parser capable of parsing any generic URL that adheres + * to specifications. + * + * The KURIFilter class applies a number of filters to a URI and returns the + * filtered version whenever possible. The filters are implemented using + * plugins to provide easy extensibility of the filtering mechanism. New + * filters can be added in the future by simply inheriting from + * KURIFilterPlugin and implementing the KURIFilterPlugin::filterURI + * method. + * + * Use of this plugin-manager class is straight forward. Since it is a + * singleton object, all you have to do is obtain an instance by doing + * @p KURIFilter::self() and use any of the public member functions to + * preform the filtering. + * + * \b Example + * + * To simply filter a given string: + * + * \code + * bool filtered = KURIFilter::self()->filterURI( "kde.org" ); + * \endcode + * + * You can alternatively use a KURL: + * + * \code + * KURL url = "kde.org"; + * bool filtered = KURIFilter::self()->filterURI( url ); + * \endcode + * + * If you have a constant string or a constant URL, simply invoke the + * corresponding function to obtain the filtered string or URL instead + * of a boolean flag: + * + * \code + * QString u = KURIFilter::self()->filteredURI( "kde.org" ); + * \endcode + * + * You can also restrict the filter(s) to be used by supplying + * the name of the filter(s) to use. By defualt all available + * filters will be used. To use specific filters, add the names + * of the filters you want to use to a QStringList and invoke + * the appropriate filtering function. The examples below show + * the use of specific filters. The first one uses a single + * filter called kshorturifilter while the second example uses + * multiple filters: + * + * \code + * QString text = "kde.org"; + * bool filtered = KURIFilter::self()->filterURI( text, "kshorturifilter" ); + * \endcode + * + * \code + * QStringList list; + * list << "kshorturifilter" << "localdomainfilter"; + * bool filtered = KURIFilter::self()->filterURI( text, list ); + * \endcode + * + * KURIFilter also allows richer data exchange through a simple + * meta-object called @p KURIFilterData. Using this meta-object + * you can find out more information about the URL you want to + * filter. See KURIFilterData for examples and details. + * + * @short Filters a given URL into its proper format whenever possible. + */ + +class KURIFilter +{ +public: + /** + * Destructor + */ + ~KURIFilter (); + + /** + * Returns an instance of KURIFilter. + */ + static KURIFilter* self(); + + /** + * Filters the URI given by the object URIFilterData. + * + * The given URL is filtered based on the specified list of filters. + * If the list is empty all available filters would be used. + * + * @param data object that contains the URI to be filtered. + * @param filters specify the list of filters to be used. + * + * @return a boolean indicating whether the URI has been changed + */ + bool filterURI( KURIFilterData& data, const QStringList& filters = QStringList() ); + + /** + * Filters the URI given by the URL. + * + * The given URL is filtered based on the specified list of filters. + * If the list is empty all available filters would be used. + * + * @param uri the URI to filter. + * @param filters specify the list of filters to be used. + * + * @return a boolean indicating whether the URI has been changed + */ + bool filterURI( KURL &uri, const QStringList& filters = QStringList() ); + + /** + * Filters a string representing a URI. + * + * The given URL is filtered based on the specified list of filters. + * If the list is empty all available filters would be used. + * + * @param uri The URI to filter. + * @param filters specify the list of filters to be used. + * + * @return a boolean indicating whether the URI has been changed + */ + bool filterURI( QString &uri, const QStringList& filters = QStringList() ); + + /** + * Returns the filtered URI. + * + * The given URL is filtered based on the specified list of filters. + * If the list is empty all available filters would be used. + * + * @param uri The URI to filter. + * @param filters specify the list of filters to be used. + * + * @return the filtered URI or null if it cannot be filtered + */ + KURL filteredURI( const KURL &uri, const QStringList& filters = QStringList() ); + + /** + * Return a filtered string representation of a URI. + * + * The given URL is filtered based on the specified list of filters. + * If the list is empty all available filters would be used. + * + * @param uri the URI to filter. + * @param filters specify the list of filters to be used. + * + * @return the filtered URI or null if it cannot be filtered + */ + QString filteredURI( const QString &uri, const QStringList& filters = QStringList() ); + + /** + * Return an iterator to iterate over all loaded + * plugins. + * + * @return a plugin iterator. + */ + QPtrListIterator pluginsIterator() const; + + /** + * Return a list of the names of all loaded plugins. + * + * @return a QStringList of plugin names + * @since 3.1 + */ + QStringList pluginNames() const; + +protected: + + /** + * A protected constructor. + * + * This constructor creates a KURIFilter and + * initializes all plugins it can find by invoking + * loadPlugins. + */ + KURIFilter(); + + /** + * Loads all allowed plugins. + * + * This function loads all filters that have not + * been disbled. + */ + void loadPlugins(); + +private: + static KURIFilter *m_self; + KURIFilterPluginList m_lstPlugins; + KURIFilterPrivate *d; +}; + +#endif diff --git a/extra/kde331/selectdialog.h b/extra/kde331/selectdialog.h new file mode 100644 index 0000000..b5e962c --- /dev/null +++ b/extra/kde331/selectdialog.h @@ -0,0 +1,87 @@ +/* + This file is part of libkresources. + + Copyright (c) 2002 Tobias Koenig + Copyright (c) 2002 Jan-Pascal van Best + Copyright (c) 2003 Cornelius Schumacher + + This library 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. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef KRESOURCES_SELECTDIALOG_H +#define KRESOURCES_SELECTDIALOG_H + +#include +#include +#include + +#include + +class KListBox; + +namespace KRES { + +class Resource; + +/** + * Dialog for selecting a resource. + * + * Example: + * + * \code + * + * QPtrList list = ... // can be retrived from KRES::Manager (e.g. KABC::AddressBook) + * + * KABC::Resource *res = KABC::SelectDialog::getResource( list, parentWdg ); + * if ( !res ) { + * // no resource selected + * } else { + * // do something with resource + * } + * \endcode + */ +class SelectDialog +{ + public: + /** + * Constructor. + * @param list The list of available resources + * @param parent The parent widget + * @param name The name of the dialog + */ + SelectDialog( QPtrList list, QWidget *parent = 0, + const char *name = 0); + + /** + * Returns selected resource. + */ + Resource *resource(); + + /** + * Opens a dialog showing the available resources and returns the resource the + * user has selected. Returns 0, if the dialog was canceled. + */ + static Resource *getResource( QPtrList list, QWidget *parent = 0 ); + + private: + KListBox *mResourceId; + + QMap mResourceMap; +}; + +} + +#endif diff --git a/extra/kde332/configwidget.h b/extra/kde332/configwidget.h new file mode 100644 index 0000000..643df88 --- /dev/null +++ b/extra/kde332/configwidget.h @@ -0,0 +1,58 @@ +/* + This file is part of libkresources. + Copyright (c) 2002 Tobias Koenig + Copyright (c) 2002 Jan-Pascal van Best + + This library 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. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef KRESOURCES_CONFIGWIDGET_H +#define KRESOURCES_CONFIGWIDGET_H + +#include "resource.h" + +#include + +#include + +namespace KRES { + +class ConfigWidget : public QWidget +{ + Q_OBJECT + public: + ConfigWidget( QWidget *parent = 0, const char *name = 0 ); + + /** + Sets the widget to 'edit' mode. Reimplement this method if you are + interested in the mode change (to disable some GUI element for + example). By default the widget is in 'create new' mode. + */ + virtual void setInEditMode( bool value ); + + public slots: + virtual void loadSettings( Resource *resource ) = 0; + virtual void saveSettings( Resource *resource ) = 0; + + signals: + void setReadOnly( bool value ); + + protected: + Resource *mResource; +}; + +} +#endif diff --git a/extra/kde332/kaccelaction.h b/extra/kde332/kaccelaction.h new file mode 100644 index 0000000..9967e4f --- /dev/null +++ b/extra/kde332/kaccelaction.h @@ -0,0 +1,564 @@ +/* This file is part of the KDE libraries + Copyright (C) 2001,2002 Ellis Whitehead + + This library 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. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef _KACCELACTION_H +#define _KACCELACTION_H + +#include +#include +#include +#include + +#include + +class KAccelBase; + +class QObject; +class KConfig; +class KConfigBase; + +/** + * @internal + * A KAccelAction prepresents an action that can be executed using + * an accelerator key. Each KAccelAction has a name, a label, a + * "What's this" string and a KShortcut. The user can configure and + * enable/disable them using KKeyDialog. + * + * \code + * 1) KAccelAction = "Run Command" + * Default3 = "Alt+F2" + * Default4 = "Meta+Enter;Alt+F2" + * 1) KShortcut = "Meta+Enter" + * 1) KKeySequence = "Meta+Enter" + * 1) KKey = "Meta+Enter" + * 1) Meta+Enter + * 2) Meta+Keypad_Enter + * 2) KShortcut = "Alt+F2" + * 1) KKeySequence = "Alt+F2" + * 1) Alt+F2 + * 2) KAccelAction = "Something" + * Default3 = "" + * Default4 = "" + * 1) KShortcut = "Meta+X,Asterisk" + * 1) KKeySequence = "Meta+X,Asterisk" + * 1) KKey = "Meta+X" + * 1) Meta+X + * 2) KKey = "Asterisk" + * 1) Shift+8 (English layout) + * 2) Keypad_Asterisk + * \endcode + * @short An accelerator action + * @see KAccel + * @see KGlobalAccel + * @see KKeyChooser + * @see KKeyDialog + */ +class KAccelAction +{ + public: + /** + * Creates an empty KAccelAction. + * @see clear() + */ + KAccelAction(); + + /** + * Copy constructor. + */ + KAccelAction( const KAccelAction& ); + + /** + * Creates a new KAccelAction. + * @param sName the name of the accelerator + * @param sLabel the label of the accelerator (i18n!) + * @param sWhatsThis the What's This text (18n!) + * @param cutDef3 the default shortcut for 3 modifier systems + * @param cutDef4 the default shortcut for 4 modifier systems + * @param pObjSlot the receiver of a signal when the key has been + * pressed + * @param psMethodSlot the slot to connect for key presses. Receives + * an int, as set by setID(), as only argument + * @param bConfigurable if true the user can configure the shortcut + * @param bEnabled true if the accelerator should be enabled + */ + KAccelAction( const QString& sName, const QString& sLabel, const QString& sWhatsThis, + const KShortcut& cutDef3, const KShortcut& cutDef4, + const QObject* pObjSlot, const char* psMethodSlot, + bool bConfigurable, bool bEnabled ); + ~KAccelAction(); + + /** + * Clears the accelerator. + */ + void clear(); + + /** + * Re-initialized the KAccelAction. + * @param sName the name of the accelerator + * @param sLabel the label of the accelerator (i18n!) + * @param sWhatsThis the What's This text (18n!) + * @param cutDef3 the default shortcut for 3 modifier systems + * @param cutDef4 the default shortcut for 4 modifier systems + * @param pObjSlot the receiver of a signal when the key has been + * pressed + * @param psMethodSlot the slot to connect for key presses. Receives + * an int, as set by setID(), as only argument + * @param bConfigurable if true the user can configure the shortcut + * @param bEnabled true if the accelerator should be enabled + * @return true if successful, false otherwise + */ + bool init( const QString& sName, const QString& sLabel, const QString& sWhatsThis, + const KShortcut& cutDef3, const KShortcut& cutDef4, + const QObject* pObjSlot, const char* psMethodSlot, + bool bConfigurable, bool bEnabled ); + + /** + * Copies this KAccelAction. + */ + KAccelAction& operator=( const KAccelAction& ); + + /** + * Returns the name of the accelerator action. + * @return the name of the accelerator action, can be null if not + * set + */ + const QString& name() const { return m_sName; } + + /** + * Returns the label of the accelerator action. + * @return the label of the accelerator action, can be null if + * not set + */ + const QString& label() const { return m_sLabel; } + + /** + * Returns the What's This text of the accelerator action. + * @return the What's This text of the accelerator action, can be + * null if not set + */ + const QString& whatsThis() const { return m_sWhatsThis; } + + /** + * The shortcut that is actually used (may be used configured). + * @return the shortcut of the KAccelAction, can be null if not set + * @see shortcutDefault() + */ + const KShortcut& shortcut() const { return m_cut; } + + /** + * The default shortcut for this system. + * @return the default shortcut on this system, can be null if not set + * @see shortcut() + * @see shortcutDefault3() + * @see shortcutDefault4() + */ + const KShortcut& shortcutDefault() const; + + /** + * The default shortcut for 3 modifier systems. + * @return the default shortcut for 3 modifier systems, can be null + * if not set + * @see shortcutDefault() + * @see shortcutDefault4() + * @see useFourModifierKeys() + */ + const KShortcut& shortcutDefault3() const { return m_cutDefault3; } + + /** + * The default shortcut for 4 modifier systems. + * @return the default shortcut for 4 modifier systems, can be null + * if not set + * @see shortcutDefault() + * @see shortcutDefault3() + * @see useFourModifierKeys() + */ + const KShortcut& shortcutDefault4() const { return m_cutDefault4; } + + /** + * Returns the receiver of signals. + * @return the receiver of signals (can be 0 if not set) + */ + const QObject* objSlotPtr() const { return m_pObjSlot; } + + /** + * Returns the slot for the signal. + * @return the slot for the signal + */ + const char* methodSlotPtr() const { return m_psMethodSlot; } + + /** + * Checks whether the user can configure the action. + * @return true if configurable, false otherwise + */ + bool isConfigurable() const { return m_bConfigurable; } + + /** + * Checks whether the action is enabled. + * @return true if enabled, false otherwise + */ + bool isEnabled() const { return m_bEnabled; } + + /** + * Sets the name of the accelerator action. + * @param name the new name + */ + void setName( const QString& name ); + + /** + * Sets the user-readable label of the accelerator action. + * @param label the new label (i18n!) + */ + void setLabel( const QString& label ); + + /** + * Sets the What's This text for the accelerator action. + * @param whatsThis the new What's This text (i18n!) + */ + void setWhatsThis( const QString& whatsThis ); + + /** + * Sets the new shortcut of the accelerator action. + * @param rgCuts the shortcut to set + * @return true if successful, false otherwise + */ + bool setShortcut( const KShortcut& rgCuts ); + + /** + * Sets the slot of the accelerator action. + * @param pObjSlot the receiver object of the signal + * @param psMethodSlot the slot for the signal + */ + void setSlot( const QObject* pObjSlot, const char* psMethodSlot ); + + /** + * Enables or disabled configuring the action. + * @param configurable true to enable configurability, false to disable + */ + void setConfigurable( bool configurable ); + + /** + * Enables or disabled the action. + * @param configurable true to enable the action, false to disable + */ + void setEnabled( bool enable ); + + /** + * Retrieves the id set using setID. + * @return the id of the accelerator action + */ + int getID() const { return m_nIDAccel; } + + /** + * Allows you to set an id that will be used as the action + * signal's argument. + * + * @param n the new id + * @see getID() + */ + void setID( int n ) { m_nIDAccel = n; } + + /** + * Checkes whether the action is connected (emits signals). + * @return true if connected, false otherwise + */ + bool isConnected() const; + + /** + * Sets a key sequence of the action's shortcut. + * @param i the position of the sequence + * @param keySeq the new new sequence + * @return true if successful, false otherwise + * @see KShortcut::setSeq() + */ + bool setKeySequence( uint i, const KKeySequence &keySeq ); + + /** + * Clears the action's shortcut. It will not contain any sequences after + * calling this method. + * @see KShortcut::clear() + */ + void clearShortcut(); + + /** + * Checks whether the action's shortcut contains the given key sequence. + * @param keySeq the key sequence to check + * @return true if the shortcut contains the given sequence + * @see KShortcut::contains() + */ + bool contains( const KKeySequence &keySeq ); + + /** + * Returns the string representation of the action's shortcut. + * @return the string representation of the action's shortcut. + * @see KShortcut::toString() + */ + QString toString() const; + + /** + * @internal + */ + QString toStringInternal() const; + + /** + * Returns true if four modifier keys will be used. + * @return true if four modifier keys will be used. + */ + static bool useFourModifierKeys(); + + /** + * Selects 3 or 4 modifier default shortcuts. + * @param use true to use 4 modifier shortcuts, false to use + * 3 modifier shortcuts + */ + static void useFourModifierKeys( bool use ); + + protected: + QString m_sName, + m_sLabel, + m_sWhatsThis; + KShortcut m_cut; + KShortcut m_cutDefault3, m_cutDefault4; + const QObject* m_pObjSlot; + const char* m_psMethodSlot; + bool m_bConfigurable, + m_bEnabled; + int m_nIDAccel; + uint m_nConnections; + + void incConnections(); + void decConnections(); + + private: + static int g_bUseFourModifierKeys; + class KAccelActionPrivate* d; + + friend class KAccelActions; + friend class KAccelBase; +}; + +//--------------------------------------------------------------------- +// KAccelActions +//--------------------------------------------------------------------- + +/** + * @internal + * This class represents a collection of KAccelAction objects. + * + * @short A collection of accelerator actions + * @see KAccelAction + */ +class KAccelActions +{ + public: + /** + * Creates a new, empty KAccelActions object. + */ + KAccelActions(); + + /** + * Copy constructor (deep copy). + */ + KAccelActions( const KAccelActions& ); + virtual ~KAccelActions(); + + /** + * Removes all items from this collection. + */ + void clear(); + + /** + * Initializes this object with the given actions. + * It will make a deep copy of all actions. + * @param actions the actions to copy + * @return true if successful, false otherwise + */ + bool init( const KAccelActions &actions ); + + /** + * Loads the actions from the given configuration file. + * + * @param config the configuration file to load from + * @param sGroup the group in the configuration file + * @return true if successful, false otherwise + */ + bool init( KConfigBase& config, const QString& sGroup ); + + /** + * Updates the shortcuts of all actions in this object + * with the shortcuts from the given object. + * @param shortcuts the collection that contains the new + * shortcuts + */ + void updateShortcuts( KAccelActions &shortcuts ); + + /** + * Retrieves the index of the action with the given name. + * @param sAction the action to search + * @return the index of the action, or -1 if not found + */ + int actionIndex( const QString& sAction ) const; + + /** + * Returns the action with the given @p index. + * @param index the index of an action. You must not + * use an index that is too high. + * @return the KAccelAction with the given index + * @see count() + */ + KAccelAction* actionPtr( uint index ); + + /** + * Returns the action with the given @p index. + * @param index the index of an action. You must not + * use an index that is too high. + * @return the KAccelAction with the given index + * @see count() + */ + const KAccelAction* actionPtr( uint index ) const; + + /** + * Returns the action with the given name. + * @param aAction the name of the action to search + * @return the KAccelAction with the given name, or 0 + * if not found + */ + KAccelAction* actionPtr( const QString& sAction ); + + /** + * Returns the action with the given name. + * @param aAction the name of the action to search + * @return the KAccelAction with the given name, or 0 + * if not found + */ + const KAccelAction* actionPtr( const QString& sAction ) const; + + /** + * Returns the action with the given key sequence. + * @param cut the sequence to search for + * @return the KAccelAction with the given sequence, or 0 + * if not found + */ + KAccelAction* actionPtr( KKeySequence cut ); + + /** + * Returns the action with the given @p index. + * @param index the index of an action. You must not + * use an index that is too high. + * @return the KAccelAction with the given index + * @see actionPtr() + * @see count() + */ + KAccelAction& operator []( uint index ); + + /** + * Returns the action with the given @p index. + * @param index the index of an action. You must not + * use an index that is too high. + * @return the KAccelAction with the given index + * @see actionPtr() + * @see count() + */ + const KAccelAction& operator []( uint index ) const; + + /** + * Inserts an action into the collection. + * @param sName the name of the accelerator + * @param sLabel the label of the accelerator (i18n!) + * @param sWhatsThis the What's This text (18n!) + * @param cutDef3 the default shortcut for 3 modifier systems + * @param cutDef4 the default shortcut for 4 modifier systems + * @param pObjSlot the receiver of a signal when the key has been + * pressed + * @param psMethodSlot the slot to connect for key presses. Receives + * an int, as set by setID(), as only argument + * @param bConfigurable if true the user can configure the shortcut + * @param bEnabled true if the accelerator should be enabled + * @return the new action + */ + KAccelAction* insert( const QString& sAction, const QString& sLabel, const QString& sWhatsThis, + const KShortcut& rgCutDefaults3, const KShortcut& rgCutDefaults4, + const QObject* pObjSlot = 0, const char* psMethodSlot = 0, + bool bConfigurable = true, bool bEnabled = true ); + + /** + * Inserts an action into the collection. + * @param sName the name of the accelerator + * @param sLabel the label of the accelerator (i18n!) + * @return the new action + */ + KAccelAction* insert( const QString& sName, const QString& sLabel ); + + /** + * Removes the given action. + * @param sAction the name of the action. + * @return true if successful, false otherwise + */ + bool remove( const QString& sAction ); + + /** + * Loads the actions from the given configuration file. + * + * @param sConfigGroup the group in the configuration file + * @param pConfig the configuration file to load from + * @return true if successful, false otherwise + */ + bool readActions( const QString& sConfigGroup = "Shortcuts", KConfigBase* pConfig = 0 ); + + /** + * Writes the actions to the given configuration file. + * + * @param sConfigGroup the group in the configuration file + * @param pConfig the configuration file to save to + * @param bWriteAll true to write all actions + * @param bGlobal true to write to the global configuration file + * @return true if successful, false otherwise + */ + bool writeActions( const QString& sConfigGroup = "Shortcuts", KConfigBase* pConfig = 0, + bool bWriteAll = false, bool bGlobal = false ) const; + + /** + * Emit a keycodeChanged signal. + */ + void emitKeycodeChanged(); + + /** + * Returns the number of actions in the collection. + * @return the number of actions + */ + uint count() const; + + protected: + KAccelBase* m_pKAccelBase; + KAccelAction** m_prgActions; + uint m_nSizeAllocated, m_nSize; + + void resize( uint ); + void insertPtr( KAccelAction* ); + + private: + class KAccelActionsPrivate* d; + + KAccelActions( KAccelBase* ); + void initPrivate( KAccelBase* ); + KAccelActions& operator =( KAccelActions& ); + + friend class KAccelBase; +}; + +#endif // _KACCELACTION_H diff --git a/extra/kde332/kaccelbase.h b/extra/kde332/kaccelbase.h new file mode 100644 index 0000000..3ddce3a --- /dev/null +++ b/extra/kde332/kaccelbase.h @@ -0,0 +1,230 @@ +/* This file is part of the KDE libraries + Copyright (C) 2001 Ellis Whitehead + + This library 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. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef _KACCELBASE_H +#define _KACCELBASE_H + +#include +#include +#include +#include +#include + +#include "kaccelaction.h" +#include "kkeyserver_x11.h" + +class QPopupMenu; +class QWidget; + +//---------------------------------------------------- + +/** + * @internal + * Handle keyboard accelerators. + * + * Allow an user to configure + * key bindings through application configuration files or through the + * KKeyChooser GUI. + * + * A KAccel contains a list of accelerator items. Each accelerator item + * consists of an action name and a keyboard code combined with modifiers + * (Shift, Ctrl and Alt.) + * + * For example, "Ctrl+P" could be a shortcut for printing a document. The key + * codes are listed in ckey.h. "Print" could be the action name for printing. + * The action name identifies the key binding in configuration files and the + * KKeyChooser GUI. + * + * When pressed, an accelerator key calls the slot to which it has been + * connected. Accelerator items can be connected so that a key will activate + * two different slots. + * + * A KAccel object handles key events sent to its parent widget and to all + * children of this parent widget. + * + * Key binding reconfiguration during run time can be prevented by specifying + * that an accelerator item is not configurable when it is inserted. A special + * group of non-configurable key bindings are known as the + * standard accelerators. + * + * The standard accelerators appear repeatedly in applications for + * standard document actions such as printing and saving. Convenience methods are + * available to insert and connect these accelerators which are configurable on + * a desktop-wide basis. + * + * It is possible for a user to choose to have no key associated with + * an action. + * + * The translated first argument for insertItem() is used only + * in the configuration dialog. + *\code + * KAccel *a = new KAccel( myWindow ); + * // Insert an action "Scroll Up" which is associated with the "Up" key: + * a->insertItem( i18n("Scroll Up"), "Scroll Up", "Up" ); + * // Insert an action "Scroll Down" which is not associated with any key: + * a->insertItem( i18n("Scroll Down"), "Scroll Down", 0); + * a->connectItem( "Scroll up", myWindow, SLOT( scrollUp() ) ); + * // a->insertStdItem( KStdAccel::Print ); //not necessary, since it + * // is done automatially with the + * // connect below! + * a->connectItem(KStdAccel::Print, myWindow, SLOT( printDoc() ) ); + * + * a->readSettings(); + *\endcode + * + * If a shortcut has a menu entry as well, you could insert them like + * this. The example is again the KStdAccel::Print from above. + * + * \code + * int id; + * id = popup->insertItem("&Print",this, SLOT(printDoc())); + * a->changeMenuAccel(popup, id, KStdAccel::Print ); + * \endcode + * + * If you want a somewhat "exotic" name for your standard print action, like + * id = popup->insertItem(i18n("Print &Document"),this, SLOT(printDoc())); + * it might be a good idea to insert the standard action before as + * a->insertStdItem( KStdAccel::Print, i18n("Print Document") ) + * as well, so that the user can easily find the corresponding function. + * + * This technique works for other actions as well. Your "scroll up" function + * in a menu could be done with + * + * \code + * id = popup->insertItem(i18n"Scroll &up",this, SLOT(scrollUp())); + * a->changeMenuAccel(popup, id, "Scroll Up" ); + * \endcode + * + * Please keep the order right: First insert all functions in the + * acceleratior, then call a -> readSettings() and @em then build your + * menu structure. + * + * @short Configurable key binding support. + * @version $Id: kaccelbase.h,v 1.26 2003/08/16 19:44:57 coolo Exp $ + */ + +class KAccelBase +{ + public: + enum Init { QT_KEYS = 0x00, NATIVE_KEYS = 0x01 }; + enum Signal { KEYCODE_CHANGED }; + + KAccelBase( int fInitCode ); + virtual ~KAccelBase(); + + uint actionCount() const; + KAccelActions& actions(); + bool isEnabled() const; + + KAccelAction* actionPtr( const QString& sAction ); + const KAccelAction* actionPtr( const QString& sAction ) const; + KAccelAction* actionPtr( const KKey& key ); + KAccelAction* actionPtr( const KKeyServer::Key& key ); + + const QString& configGroup() const { return m_sConfigGroup; } + void setConfigGroup( const QString& group ); + void setConfigGlobal( bool global ); + virtual void setEnabled( bool bEnabled ) = 0; + bool getAutoUpdate() { return m_bAutoUpdate; } + // return value of AutoUpdate flag before this call. + bool setAutoUpdate( bool bAuto ); + +// Procedures for manipulating Actions. + //void clearActions(); + + KAccelAction* insert( const QString& sName, const QString& sDesc ); + KAccelAction* insert( + const QString& sAction, const QString& sDesc, const QString& sHelp, + const KShortcut& rgCutDefaults3, const KShortcut& rgCutDefaults4, + const QObject* pObjSlot, const char* psMethodSlot, + bool bConfigurable = true, bool bEnabled = true ); + bool remove( const QString& sAction ); + bool setActionSlot( const QString& sAction, const QObject* pObjSlot, const char* psMethodSlot ); + + bool updateConnections(); + + bool setShortcut( const QString& sAction, const KShortcut& cut ); + +// Modify individual Action sub-items + bool setActionEnabled( const QString& sAction, bool bEnable ); + + /** + * Read all key associations from @p config, or (if @p config + * is zero) from the application's configuration file + * KGlobal::config(). + * + * The group in which the configuration is stored can be + * set with setConfigGroup(). + */ + void readSettings( KConfigBase* pConfig = 0 ); + + /** + * Write the current configurable associations to @p config, + * or (if @p config is zero) to the application's + * configuration file. + */ + void writeSettings( KConfigBase* pConfig = 0 ) const; + + QPopupMenu* createPopupMenu( QWidget* pParent, const KKeySequence& ); + + // Protected methods + protected: + void slotRemoveAction( KAccelAction* ); + + struct X; + void createKeyList( QValueVector& rgKeys ); + bool insertConnection( KAccelAction* ); + bool removeConnection( KAccelAction* ); + + virtual bool emitSignal( Signal ) = 0; + virtual bool connectKey( KAccelAction&, const KKeyServer::Key& ) = 0; + virtual bool connectKey( const KKeyServer::Key& ) = 0; + virtual bool disconnectKey( KAccelAction&, const KKeyServer::Key& ) = 0; + virtual bool disconnectKey( const KKeyServer::Key& ) = 0; + + protected: + struct ActionInfo + { + KAccelAction* pAction; + uint iSeq, iVariation; + //ActionInfo* pInfoNext; // nil if only one action uses this key. + + ActionInfo() { pAction = 0; iSeq = 0xffff; iVariation = 0xffff; } + ActionInfo( KAccelAction* _pAction, uint _iSeq, uint _iVariation ) + { pAction = _pAction; iSeq = _iSeq; iVariation = _iVariation; } + }; + typedef QMap KKeyToActionMap; + + KAccelActions m_rgActions; + KKeyToActionMap m_mapKeyToAction; + QValueList m_rgActionsNonUnique; + bool m_bNativeKeys; // Use native key codes instead of Qt codes + bool m_bEnabled; + bool m_bConfigIsGlobal; + QString m_sConfigGroup; + bool m_bAutoUpdate; + KAccelAction* mtemp_pActionRemoving; + + private: + KAccelBase& operator =( const KAccelBase& ); + + friend class KAccelActions; +}; + +#endif // _KACCELBASE_H diff --git a/extra/kde332/kicontheme.h b/extra/kde332/kicontheme.h new file mode 100644 index 0000000..5eabf75 --- /dev/null +++ b/extra/kde332/kicontheme.h @@ -0,0 +1,338 @@ +/* vi: ts=8 sts=4 sw=4 + * + * $Id: kicontheme.h,v 1.31 2004/05/31 17:18:02 montanaro Exp $ + * + * This file is part of the KDE project, module kdecore. + * Copyright (C) 2000 Geert Jansen + * Antonio Larrosa + * + * This is free software; it comes under the GNU Library General + * Public License, version 2. See the file "COPYING.LIB" for the + * exact licensing terms. + * + */ + +#ifndef __KIconTheme_h_Included__ +#define __KIconTheme_h_Included__ + +#include +#include +#include + +class KConfig; +//class KIconThemeDir; + +class KIconThemePrivate; + +class KIconPrivate; + +/** + * One icon as found by KIconTheme. Also serves as a namespace containing + * icon related constants. + * @see KIconEffect + * @see KIconTheme + * @see KIconLoader + */ +class KIcon +{ +public: + KIcon() { size = 0; } + + /** + * Return true if this icon is valid, false otherwise. + */ + bool isValid() const { return size != 0; } + + /** + * Defines the context of the icon. + */ + enum Context { + Any, ///< Some icon with unknown purpose. + Action, ///< An action icon (e.g. 'save', 'print'). + Application, ///< An icon that represents an application. + Device, ///< An icon that represents a device. + FileSystem, ///< An icon that represents a file system. + MimeType ///< An icon that represents a mime type (or file type). + }; + + /** + * The type of the icon. + */ + enum Type { + Fixed, ///< Fixed-size icon. + Scalable, ///< Scalable-size icon. + Threshold ///< A threshold icon. + }; + + /** + * The type of a match. + */ + enum MatchType { + MatchExact, ///< Only try to find an exact match. + MatchBest ///< Take the best match if there is no exact match. + + }; + + // if you add a group here, make sure to change the config reading in + // KIconLoader too + /** + * The group an an icon. + */ + enum Group { NoGroup=-1, Desktop=0, FirstGroup=0, Toolbar, + MainToolbar, Small, Panel, LastGroup, User }; + + /** + * These are the standard sizes for icons. + */ + enum StdSizes { + /// small icons for menu entries + SizeSmall=16, + /// slightly larger small icons for toolbars, panels, etc + SizeSmallMedium=22, + /// medium sized icons for the desktop + SizeMedium=32, + /// large sized icons for the panel + SizeLarge=48, + /// huge sized icons for iconviews + SizeHuge=64, + /// enormous (ugh!) sized icons for iconviews + SizeEnormous=128 + }; + + /** + * Defines the possible states of an icon. + */ + enum States { DefaultState, ///< The default state. + ActiveState, ///< Icon is active. + DisabledState, ///< Icon is disabled. + LastState ///< Last state (last constant) + }; + + /** + * This defines an overlay, a semi-transparent image that is + * projected onto the icon. They are used to show that the file + * represented by the icon is, for example, locked, zipped or hidden. + */ + enum Overlays { + LockOverlay=0x100, ///< a file is locked + ZipOverlay=0x200, ///< a file is zipped + LinkOverlay=0x400, ///< a fileis a link + HiddenOverlay=0x800, ///< a file is hidden + ShareOverlay=0x1000, ///< a file is shared + OverlayMask = ~0xff + }; + + /** + * The size in pixels of the icon. + */ + int size; + + /** + * The context of the icon. + */ + Context context; + + /** + * The type of the icon: Fixed, Scalable or Threshold. + **/ + Type type; + + /** + * The threshold in case type == Threshold + */ + int threshold; + + /** + * The full path of the icon. + */ + QString path; + +private: + KIconPrivate *d; +}; + +inline KIcon::Group& operator++(KIcon::Group& group) { group = static_cast(group+1); return group; } +inline KIcon::Group operator++(KIcon::Group& group,int) { KIcon::Group ret = group; ++group; return ret; } + +/** + * Class to use/access icon themes in KDE. This class is used by the + * iconloader but can be used by others too. + * @see KIconLoader + */ +class KIconTheme +{ +public: + /** + * Load an icon theme by name. + * @param name the name of the theme (e.g. "hicolor" or "keramik") + * @param appName the name of the application. Can be null. This argument + * allows applications to have themed application icons. + */ + KIconTheme(const QString& name, const QString& appName=QString::null); + ~KIconTheme(); + + /** + * The stylized name of the icon theme. + * @return the (human-readable) name of the theme + */ + QString name() const { return mName; } + + /** + * A description for the icon theme. + * @return a human-readable description of the theme, QString::null + * if there is none + */ + QString description() const { return mDesc; } + + /** + * Return the name of the "example" icon. This can be used to + * present the theme to the user. + * @return the name of the example icon, QString::null if there is none + */ + QString example() const; + + /** + * Return the name of the screenshot. + * @return the name of the screenshot, QString::null if there is none + */ + QString screenshot() const; + + /** + * Returns the name of this theme's link overlay. + * @return the name of the link overlay + */ + QString linkOverlay() const; + + /** + * Returns the name of this theme's zip overlay. + * @return the name of the zip overlay + */ + QString zipOverlay() const; + + /** + * Returns the name of this theme's lock overlay. + * @return the name of the lock overlay + */ + QString lockOverlay() const; + + /** + * Returns the name of this theme's share overlay. + * @return the name of the share overlay + * @since 3.1 + */ + QString shareOverlay () const; + + /** + * Returns the toplevel theme directory. + * @return the directory of the theme + */ + QString dir() const { return mDir; } + + /** + * The themes this icon theme falls back on. + * @return a list of icon themes that are used as fall-backs + */ + QStringList inherits() const { return mInherits; } + + /** + * The icon theme exists? + * @return true if the icon theme is valid + */ + bool isValid() const; + + /** + * The icon theme should be hidden to the user? + * @return true if the icon theme is hidden + * @since 3.1 + */ + bool isHidden() const; + + /** + * The minimum display depth required for this theme. This can either + * be 8 or 32. + * @return the minimum bpp (8 or 32) + */ + int depth() const { return mDepth; } + + /** + * The default size of this theme for a certain icon group. + * @param group The icon group. See KIcon::Group. + * @return The default size in pixels for the given icon group. + */ + int defaultSize(KIcon::Group group) const; + + /** + * Query available sizes for a group. + * @param group The icon group. See KIcon::Group. + * @return a list of available sized for the given group + */ + QValueList querySizes(KIcon::Group group) const; + + /** + * Query available icons for a size and context. + * @param size the size of the icons + * @param context the context of the icons + * @return the list of icon names + */ + QStringList queryIcons(int size, KIcon::Context context = KIcon::Any) const; + + /** + * Query available icons for a context and preferred size. + * @param size the size of the icons + * @param context the context of the icons + * @return the list of icon names + */ + QStringList queryIconsByContext(int size, KIcon::Context context = KIcon::Any) const; + + + /** + * Lookup an icon in the theme. + * @param name The name of the icon, without extension. + * @param size The desired size of the icon. + * @param match The matching mode. KIcon::MatchExact returns an icon + * only if matches exactly. KIcon::MatchBest returns the best matching + * icon. + * @return A KIcon class that describes the icon. If an icon is found, + * @see KIcon::isValid will return true, and false otherwise. + */ + KIcon iconPath(const QString& name, int size, KIcon::MatchType match) const; + + /** + * List all icon themes installed on the system, global and local. + * @return the list of all icon themes + */ + static QStringList list(); + + /** + * Returns the current icon theme. + * @return the name of the current theme + */ + static QString current(); + + /** + * Reconfigure the theme. + */ + static void reconfigure(); + + /** + * Returns the default icon theme. + * @return the name of the default theme name + * @since 3.1 + */ + static QString defaultThemeName(); + +private: + int mDefSize[8]; + QValueList mSizes[8]; + + int mDepth; + QString mDir, mName, mDesc; + QStringList mInherits; +// QPtrList mDirs; +// KIconThemePrivate *d; + + static QString *_theme; + static QStringList *_theme_list; +}; + +#endif diff --git a/extra/kde332/kkeyserver_x11.h b/extra/kde332/kkeyserver_x11.h new file mode 100644 index 0000000..cf1b360 --- /dev/null +++ b/extra/kde332/kkeyserver_x11.h @@ -0,0 +1,433 @@ +#ifndef _KKEYSERVER_X11_H +#define _KKEYSERVER_X11_H + +#include "kshortcut.h" +#include "kkeynative.h" + +/** + * A collection of functions for the conversion of key presses and + * their modifiers from the window system (X11) specific format + * to the generic format and vice-versa. + */ +namespace KKeyServer +{ + /** + * Supplement enum KKey::ModFlag + * @since 3.1 + */ + enum ExtraModFlag { MODE_SWITCH = 0x2000 }; + + /** + * Represents a key symbol. + * @see KKey + * @see KKeyServer + */ + struct Sym + { + public: + /// the actual value of the symbol + uint m_sym; + + /// Creates a null symbol. + Sym() + { m_sym = 0; } + /** + * Creates asymbol with the given value. + * @param sym the value + */ + Sym( uint sym ) + { m_sym = sym; } + /** + * Creates a symbol from the given string description. + * @param s the description of the symbol + * @see toString() + */ + Sym( const QString& s ) + { init( s ); } + + /** + * Initializes the symbol with the given Qt key code. + * @param keyQt the qt key code + * @return true if successful, false otherwise + * @see Qt::Key + */ + bool initQt( int keyQt ); + + /** + * Initializes the key with the given string description. + * @param s the string description + * @return true if successful, false otherwise + * @see toString() + */ + bool init( const QString &s ); + + /** + * Returns the qt key code of the symbol. + * @return the qt key code + */ + int qt() const; + + /** + * @internal + */ + QString toStringInternal() const; + + /** + * Returns the string representation of the symbol. + * @return the string representation of the symbol + */ + QString toString() const; + + /** + * Returns the mods that are required for this symbol as + * ORed KKey::ModFlag's. For example, Break requires a + * Ctrl to be valid. + * @return the required KKey::ModFlag's + * @see KKey::ModFlag + */ + uint getModsRequired() const; + + /** + * TODO: please find out what this method does and document it + */ + uint getSymVariation() const; + + /** + * Casts the symbol to its integer representation. + */ + operator uint() const { return m_sym; } + + /** + * Overloaded operator to convert ints to Sym. + */ + Sym& operator =( uint sym ) { m_sym = sym; return *this; } + + private: + QString toString( bool bUserSpace ) const; + + static void capitalizeKeyname( QString& ); + }; + + /** + * Represents a key press. + * @see KKey + */ + struct Key + { + /// Code for native Keys in Qt + enum { CODE_FOR_QT = 256 }; + + /// The code of the key + uint m_code; + + /// The modifiers of the key + uint m_mod; + + /// The symbol of the key + uint m_sym; + + /** + * Initializes the key with a KKey. + * @param key the key to get the data from + * @param bQt true to take the Qt keycode, false + * for the native key code + * @see Qt::Key + * @see KKeyNative + */ + bool init( const KKey& key, bool bQt ); + + /** + * Checks whether the key code is a native code. + * @return true if native code of the window system, + * false if it is a Qt keycode + * @see Qt::Key + * @see KKeyNative + */ + bool isNative() const { return m_code != CODE_FOR_QT; } + + /** + * Returns the code of the key. + * @return the code of the key + */ + uint code() const { return m_code; } + + /** + * Returns the modifiers of the key. + * @return the modifiers of the key + */ + uint mod() const { return m_mod; } + + /** + * Returns the symbol of the key. + * @return the symbol of the key + */ + uint sym() const { return m_sym; } + + /** + * Returns the qt key code. + * @return the qt key code + */ + int keyCodeQt() const { return (int) m_sym; } + + /** + * Sets the qt key code. + * @param keyQt the qt key code + */ + void setKeycodeQt( int keyQt ) + { m_code = CODE_FOR_QT; m_sym = keyQt; } + + /** + * Initializes this key with a KKeyNative. + * @return this key + */ + Key& operator =( const KKeyNative& key ); + + /** + * Compares this key with the given Key object. Returns a + * negative number if the given Key is larger, 0 if they + * are equal and a positive number this Key is larger. The + * returned value is the difference between the symbol, modifier + * or code, whatever is non-zero first. + * + * @param key the key to compare with this key + * @return a negative number if the given Key is larger, 0 if + * they are equal and a positive number this Key is larger + */ + int compare( const Key& key ) const; + + /** + * Compares the symbol, modifiers and code of both keys. + * @see compare() + */ + bool operator ==( const Key& b ) const + { return compare( b ) == 0; } + + /** + * Compares the symbol, modifiers and code of both keys. + * @see compare() + */ + bool operator <( const Key& b ) const + { return compare( b ) < 0; } + + /** + * Converts this Key to a KKey. + * @return the KKey + */ + KKey key() const; + }; + + /** + * TODO: please document this class + */ + struct Variations + { + enum { MAX_VARIATIONS = 4 }; + + Key m_rgkey[MAX_VARIATIONS]; + uint m_nVariations; + + Variations() { m_nVariations = 0; } + + void init( const KKey&, bool bQt ); + + uint count() const { return m_nVariations; } + const Key& key( uint i ) const { return m_rgkey[i]; } + }; + + /// TODO: please document + bool initializeMods(); + + /** + * Returns the equivalent X modifier mask of the given modifier flag. + * @param modFlag the generic flags to check + * @return the window system specific flags + */ + uint modX( KKey::ModFlag modFlag ); + + /** + * Returns true if the current keyboard layout supports the Win key. + * Specifically, whether the Super or Meta keys are assigned to an X modifier. + * @return true if the keyboard has a Win key + * @see modXWin() + */ + bool keyboardHasWinKey(); + + /** + * Returns the X11 Shift modifier mask/flag. + * @return the X11 Shift modifier mask/flag. + * @see accelModMaskX() + */ + uint modXShift(); + + /** + * Returns the X11 Lock modifier mask/flag. + * @return the X11 Lock modifier mask/flag. + * @see accelModMaskX() + */ + uint modXLock(); + + /** + * Returns the X11 Ctrl modifier mask/flag. + * @return the X11 Ctrl modifier mask/flag. + * @see accelModMaskX() + */ + uint modXCtrl(); + + /** + * Returns the X11 Alt (Mod1) modifier mask/flag. + * @return the X11 Alt (Mod1) modifier mask/flag. + * @see accelModMaskX() + */ + uint modXAlt(); + + /** + * Returns the X11 NumLock modifier mask/flag. + * @return the X11 NumLock modifier mask/flag. + * @see accelModMaskX() + */ + uint modXNumLock(); + + /** + * Returns the X11 Win (Mod3) modifier mask/flag. + * @return the X11 Win (Mod3) modifier mask/flag. + * @see keyboardHasWinKey() + * @see accelModMaskX() + */ + uint modXWin(); + + /** + * Returns the X11 ScrollLock modifier mask/flag. + * @return the X11 ScrollLock modifier mask/flag. + * @see accelModMaskX() + */ + uint modXScrollLock(); + + /** + * Returns bitwise OR'ed mask containing Shift, Ctrl, Alt, and + * Win (if available). + * @see modXShift() + * @see modXLock() + * @see modXCtrl() + * @see modXAlt() + * @see modXNumLock() + * @see modXWin() + * @see modXScrollLock() + */ + uint accelModMaskX(); + + /** + * Extracts the symbol from the given Qt key and + * converts it to a symbol. + * @param keyQt the qt key code + * @param sym if successful, the symbol will be written here + * @return true if successful, false otherwise + * @see Qt::Key + * @see Sym + */ + bool keyQtToSym( int keyQt, uint& sym ); + + /** + * Extracts the modifiers from the given Qt key and + * converts them in a mask of ORed KKey::ModFlag modifiers. + * @param keyQt the qt key code + * @param mod if successful, the modifiers will be written here + * @return true if successful, false otherwise + * @see Qt::Key + */ + bool keyQtToMod( int keyQt, uint& mod ); + + /** + * Converts the given symbol to a Qt key code. + * @param sym the symbol + * @param keyQt if successful, the qt key code will be written here + * @return true if successful, false otherwise + * @see Qt::Key + * @see Sym + */ + bool symToKeyQt( uint sym, int& keyQt ); + + /** + * Converts the mask of ORed KKey::ModFlag modifiers to + * a mask of ORed Qt key code modifiers. + * @param mod the mask of KKey::ModFlag modifiers + * @param modQt the mask of Qt key code modifiers will be written here, + * if successful + * @return true if successful, false otherwise + * @see Qt::Key + * @see KKey + */ + bool modToModQt( uint mod, int& modQt ); + + /** + * Converts the mask of ORed KKey::ModFlag modifiers to + * a mask of ORed X11 modifiers. + * @param mod the mask of KKey::ModFlag modifiers + * @param modX the mask of X11 modifiers will be written here, + * if successful + * @return true if successful, false otherwise + * @see KKey + */ + bool modToModX( uint mod, uint& modX ); + + /** + * Converts the mask of ORed X11 modifiers to + * a mask of ORed Qt key code modifiers. + * @param modX the mask of X11 modifiers + * @param modQt the mask of Qt key code modifiers will be written here + * if successful + * @return true if successful, false otherwise + * @see Qt::Key + */ + bool modXToModQt( uint modX, int& modQt ); + + /** + * Converts the mask of ORed X11 modifiers to + * a mask of ORed KKey::ModFlag modifiers. + * @param modX the mask of X11 modifiers + * @param mod the mask of KKey::ModFlag modifiers will be written here, + * if successful + * @return true if successful, false otherwise + * @see KKey + */ + bool modXToMod( uint modX, uint& mod ); + + /** + * Converts a X11 key code and a mask of ORed X11 modifiers + * into a X11 symbol. + * converts it to a symbol. + * @param codeX the X11 key code + * @param modX the mask of ORed X11 modifiers + * @param symX if successful, the X11 symbol will be written here + * @return true if successful, false otherwise + * @see Qt::Key + * @see Sym + */ + bool codeXToSym( uchar codeX, uint modX, uint& symX ); + + /** + * @internal + */ + QString modToStringInternal( uint mod ); + + /** + * Converts the mask of ORed KKey::ModFlag modifiers to a + * user-readable string. + * @param mod the mask of ORed KKey::ModFlag modifiers + * @return the user-readable string + */ + QString modToStringUser( uint mod ); + + /** + * @internal + * Unimplemented? + */ + bool stringToSymMod( const QString&, uint& sym, uint& mod ); + + /** + * @internal + * Unimplemented? + */ + void keyQtToKeyX( uint keyCombQt, unsigned char *pKeyCodeX, uint *pKeySymX, uint *pKeyModX ); +} + +#endif // !_KKEYSERVER_X11_H diff --git a/extra/kde332/konsole_part.h b/extra/kde332/konsole_part.h new file mode 100644 index 0000000..7023f50 --- /dev/null +++ b/extra/kde332/konsole_part.h @@ -0,0 +1,229 @@ +/* + This file is part of the KDE system + Copyright (C) 1999,2000 Boloni Laszlo + + 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. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. + */ + +#ifndef __KONSOLE_PART_H__ +#define __KONSOLE_PART_H__ + +#include +#include + + +#include + +#include + +//#include "schema.h" +//#include "session.h" + +class KInstance; +class konsoleBrowserExtension; +class QPushButton; +class QSpinBox; +class KPopupMenu; +class QCheckBox; +class KRootPixmap; +class KToggleAction; +class KSelectAction; + +namespace KParts { class GUIActivateEvent; } + +class konsoleFactory : public KParts::Factory +{ + Q_OBJECT +public: + konsoleFactory(); + virtual ~konsoleFactory(); + + virtual KParts::Part* createPartObject(QWidget *parentWidget = 0, const char *widgetName = 0, + QObject* parent = 0, const char* name = 0, + const char* classname = "KParts::Part", + const QStringList &args = QStringList()); + + static KInstance *instance(); + + private: + static KInstance *s_instance; + static KAboutData *s_aboutData; +}; + +////////////////////////////////////////////////////////////////////// + +class konsolePart: public KParts::ReadOnlyPart, public TerminalInterface +{ + Q_OBJECT + public: + konsolePart(QWidget *parentWidget, const char *widgetName, QObject * parent, const char *name, const char *classname = 0); + virtual ~konsolePart(); + +signals: + void processExited(); + void receivedData( const QString& s ); + protected: + virtual bool openURL( const KURL & url ); + virtual bool openFile() {return false;} // never used + virtual bool closeURL() {return true;} + virtual void guiActivateEvent( KParts::GUIActivateEvent * event ); + + protected slots: + void showShell(); + void slotProcessExited(); + void slotReceivedData( const QString& s ); + +// void doneSession(TESession*); + void sessionDestroyed(); +// void configureRequest(TEWidget*,int,int x,int y); + void updateTitle(); + void enableMasterModeConnections(); + + private slots: + void emitOpenURLRequest(const QString &url); + + void readProperties(); + void saveProperties(); + + void sendSignal(int n); + void closeCurrentSession(); + + void notifySize(int,int); + + void slotToggleFrame(); + void slotSelectScrollbar(); + void slotSelectFont(); + void schema_menu_check(); + void keytab_menu_activated(int item); + void updateSchemaMenu(); + void setSchema(int n); + void pixmap_menu_activated(int item); + void schema_menu_activated(int item); + void slotHistoryType(); + void slotSelectBell(); + void slotSelectLineSpacing(); + void slotBlinkingCursor(); + void slotWordSeps(); + void fontNotFound(); + void slotSetEncoding(); + void slotFontChanged(); + + private: + konsoleBrowserExtension *m_extension; + KURL currentURL; + + void makeGUI(); + void applySettingsToGUI(); + + void setFont(int fontno); +// void setSchema(ColorSchema* s); + void updateKeytabMenu(); + + bool doOpenStream( const QString& ); + bool doWriteStream( const QByteArray& ); + bool doCloseStream(); + + QWidget* parentWidget; +// TEWidget* te; +// TESession* se; +// ColorSchemaList* colors; + KRootPixmap* rootxpm; + + KToggleAction* blinkingCursor; + KToggleAction* showFrame; + + KSelectAction* selectBell; + KSelectAction* selectFont; + KSelectAction* selectLineSpacing; + KSelectAction* selectScrollbar; + KSelectAction* selectSetEncoding; + + KPopupMenu* m_keytab; + KPopupMenu* m_schema; + KPopupMenu* m_signals; + KPopupMenu* m_options; + KPopupMenu* m_popupMenu; + + QFont defaultFont; + + QString pmPath; // pixmap path + QString s_schema; + QString s_kconfigSchema; + QString s_word_seps; // characters that are considered part of a word + QString fontNotFound_par; + + bool b_framevis:1; + bool b_histEnabled:1; + + int curr_schema; // current schema no + int n_bell; + int n_font; + int n_keytab; + int n_render; + int n_scroll; + unsigned m_histSize; + bool m_runningShell; + bool m_streamEnabled; + int n_encoding; + +public: + // these are the implementations for the TermEmuInterface + // functions... + void startProgram( const QString& program, + const QStrList& args ); + void showShellInDir( const QString& dir ); + void sendInput( const QString& text ); +}; + +////////////////////////////////////////////////////////////////////// + +/*class HistoryTypeDialog : public KDialogBase +{ + Q_OBJECT +public: + HistoryTypeDialog(const HistoryType& histType, + unsigned int histSize, + QWidget *parent); + +public slots: + void slotDefault(); + void slotSetUnlimited(); + void slotHistEnable(bool); + + unsigned int nbLines() const; + bool isOn() const; + +protected: + QCheckBox* m_btnEnable; + QSpinBox* m_size; + QPushButton* m_setUnlimited; +}; + +////////////////////////////////////////////////////////////////////// +*/ + +class konsoleBrowserExtension : public KParts::BrowserExtension +{ + Q_OBJECT + friend class konsolePart; + public: + konsoleBrowserExtension(konsolePart *parent); + virtual ~konsoleBrowserExtension(); + + void emitOpenURLRequest(const KURL &url); +}; + +#endif diff --git a/extra/kde332/kpanelmenu.h b/extra/kde332/kpanelmenu.h new file mode 100644 index 0000000..57f77a4 --- /dev/null +++ b/extra/kde332/kpanelmenu.h @@ -0,0 +1,181 @@ +/***************************************************************** + +Copyright (c) 1996-2000 the kicker authors. See file AUTHORS. + (c) 2001 Michael Goffioul + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN +AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +******************************************************************/ + +#ifndef __KPANELMENU_H__ +#define __KPANELMENU_H__ + +#include +#include +#include + +class KPanelMenuPrivate; + +/** + * This class allows to build menu entries that will be dynamically added either to + * the K-menu, or to the panel as a normal button. These dynamic menus are located + * in shared libraries that will be loaded at runtime by Kicker (the KDE panel). + * + * To build such a menu, you have to inherit this class and implement the pure virtual + * functions #initialize() and slotExec(). You also have to provide a factory + * object in your library, see KLibFactory. This factory is only used to construct + * the menu object. + * + * Finally, you also have to provide a desktop file describing your dynamic menu. The + * relevant entries are: Name, Comment, Icon and X-KDE-Library (which contains the + * library name without any extension). This desktop file has to be installed in + * $KDEDIR/share/apps/kicker/menuext/. + * + * @short Base class to build dynamically loaded menu entries for the K-menu, or the panel. + * @author The kicker maintainer, Michael Goffioul + */ +class KPanelMenu : public KPopupMenu +{ + Q_OBJECT + +public: + /** + * Construct a KPanelMenu object. This is the normal constructor to use when + * building extrernal menu entries. + */ + KPanelMenu(QWidget *parent=0, const char *name=0); + /** + * Constructor used internally by Kicker. You don't really want to use it. + * @param startDir a directory to associate with this menu + * @param parent parent object + * @param name name of the object + * @see path(), setPath() + */ + KPanelMenu(const QString &startDir, QWidget *parent=0, const char *name=0); + /** + * Destructor. + */ + virtual ~KPanelMenu(); + + /** + * Get the directory path associated with this menu, or QString::null if + * there's no such associated path. + * @return the associated directory path + * @see setPath() + */ + const QString& path() const; + /** + * Set a directory path to be associated with this menu. + * @param p the directory path + * @see path() + */ + void setPath(const QString &p); + /** + * Tell if the menu has been initialized, that is it already contains items. + * This is useful when you need to know if you have to clear the menu, or to + * fill it. + * @return the initial state + * @see setInitialized(), initialize() + */ + bool initialized() const; + /** + * Set the initial state. Set it to true when you menu is filled with the items + * you want. + * @param on the initial state + * @see initialized(), initialize() + */ + void setInitialized(bool on); + + /** + * Disable the automatic clearing of the menu. Kicker uses a cache system for + * its menus. After a specific configurable delay, the menu will be cleared. + * Use this function if you want to disable kicker's cache system, and avoid + * the clearing of your menu. + */ + void disableAutoClear(); + +public slots: + /** + * Reinitialize the menu: the menu is first cleared, the initial state is set + * to false, and finally #initialize() is called. Use this if you want to + * refill your menu immediately. + */ + void reinitialize(); + /** + * Deinitialize the menu: the menu is cleared and the initialized state is set to + * false. #initialize() is NOT called. It will be called before the menu is + * next shown, however. Use this slot if you want a delayed reinitialization. + * @since 3.1 + */ + void deinitialize(); + +protected slots: + /** + * This slot is called just before the menu is shown. This allows your menu + * to update itself if needed. However you should instead re-implement + * #initialize to provide this feature. This function is responsible for + * the cache system handling, so if you re-implement it, you should call + * the base function also. Calls #initialize(). + * @see disableAutoClear() + */ + virtual void slotAboutToShow(); + /** + * This is slot is called when an item from the menu has been selected. Your + * applet is then supposed to perform some action. You must re-implement this + * function. + * @param id the ID associated with the selected item + */ + virtual void slotExec(int id) = 0; + /** + * This slots is called to initialize the menu. It is called automatically by + * slotAboutToShow(). By re-implementing this functions, you can reconstruct + * the menu before it is being shown. At the end of this function, you should + * call setInitialize() with true to tell the system that the menu is OK. + * You applet must re-implement this function. + * @see slotAboutToShow(), initialized(), setInitialized() + */ + virtual void initialize() = 0; + /** + * Clears the menu, and update the initial state accordingly. + * @see initialized() + */ + void slotClear(); + +protected: + /** + * Re-implemented for internal reasons. + */ + virtual void hideEvent(QHideEvent *ev); + /** + * For internal use only. Used by constructors. + */ + void init(const QString& path = QString::null); + +protected: + virtual void virtual_hook( int id, void* data ); +private: + void internalInitialize(); + KPanelMenuPrivate *d; +}; + +#define K_EXPORT_KICKER_MENUEXT( libname, classname ) \ + K_EXPORT_COMPONENT_FACTORY( \ + kickermenu_##libname, \ + KGenericFactory("libkickermenu_" #libname) ) + +#endif diff --git a/extra/kde332/krecentdirs.h b/extra/kde332/krecentdirs.h new file mode 100644 index 0000000..71f771b --- /dev/null +++ b/extra/kde332/krecentdirs.h @@ -0,0 +1,68 @@ +/* -*- c++ -*- + * Copyright (C)2000 Waldo Bastian + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * + */ +#ifndef __KRECENTDIRS_H +#define __KRECENTDIRS_H + +#include + +/** + * The goal of this class is to make sure that, when the user needs to + * specify a file via the file selection dialog, this dialog will start + * in the directory most likely to contain the desired files. + * + * This works as follows: Each time the file selection dialog is + * shown, the programmer can specify a "file-class". The file-dialog will + * then start with the directory associated with this file-class. When + * the dialog closes, the directory currently shown in the file-dialog + * will be associated with the file-class. + * + * A file-class can either start with ':' or with '::'. If it starts with + * a single ':' the file-class is specific to the current application. + * If the file-class starts with '::' it is global to all applications. + */ +class KRecentDirs +{ +public: + /** + * Returns a list of directories associated with this file-class. + * The most recently used directory is at the front of the list. + */ + static QStringList list(const QString &fileClass); + + /** + * Returns the most recently used directory accociated with this file-class. + */ + static QString dir(const QString &fileClass); + + /** + * Associates @p directory with @p fileClass + */ + static void add(const QString &fileClass, const QString &directory); +}; + +#endif diff --git a/extra/kde332/ksharedptr.h b/extra/kde332/ksharedptr.h new file mode 100644 index 0000000..da710a3 --- /dev/null +++ b/extra/kde332/ksharedptr.h @@ -0,0 +1,175 @@ +/* This file is part of the KDE libraries + Copyright (c) 1999 Waldo Bastian + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License version 2 as published by the Free Software Foundation. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ +#ifndef KSharedPTR_H +#define KSharedPTR_H + +/** + * Reference counting for shared objects. If you derive your object + * from this class, then you may use it in conjunction with + * KSharedPtr to control the lifetime of your object. + * + * Specifically, all classes that derive from KShared have an internal + * counter keeping track of how many other objects have a reference to + * their object. If used with KSharedPtr, then your object will + * not be deleted until all references to the object have been + * released. + * + * You should probably not ever use any of the methods in this class + * directly -- let the KSharedPtr take care of that. Just derive + * your class from KShared and forget about it. + * + * @author Waldo Bastian + * @version $Id: ksharedptr.h,v 1.23 2004/02/04 12:16:03 raabe Exp $ + */ +class KShared { +public: + /** + * Standard constructor. This will initialize the reference count + * on this object to 0. + */ + KShared() : count(0) { } + + /** + * Copy constructor. This will @em not actually copy the objects + * but it will initialize the reference count on this object to 0. + */ + KShared( const KShared & ) : count(0) { } + + /** + * Overloaded assignment operator. + */ + KShared &operator=(const KShared & ) { return *this; } + + /** + * Increases the reference count by one. + */ + void _KShared_ref() const { count++; } + + /** + * Releases a reference (decreases the reference count by one). If + * the count goes to 0, this object will delete itself. + */ + void _KShared_unref() const { if (!--count) delete this; } + + /** + * Return the current number of references held. + * + * @return Number of references + */ + int _KShared_count() const { return count; } + +protected: + virtual ~KShared() { } +private: + mutable int count; +}; + +/** + * Can be used to control the lifetime of an object that has derived + * KShared. As long a someone holds a KSharedPtr on some KShared + * object it won't become deleted but is deleted once its reference + * count is 0. This struct emulates C++ pointers virtually perfectly. + * So just use it like a simple C++ pointer. + * + * KShared and KSharedPtr are preferred over QShared / QSharedPtr + * since they are more safe. + * + * WARNING: Please note that this class template provides an implicit + * conversion to T*. Do *not* change this pointer or the pointee (don't + * call delete on it, for instance) behind KSharedPtr's back. + * + * @author Waldo Bastian + * @version $Id: ksharedptr.h,v 1.23 2004/02/04 12:16:03 raabe Exp $ + */ +template< class T > +struct KSharedPtr +{ +public: +/** + * Creates a null pointer. + */ + KSharedPtr() + : ptr(0) { } + /** + * Creates a new pointer. + * @param t the pointer + */ + KSharedPtr( T* t ) + : ptr(t) { if ( ptr ) ptr->_KShared_ref(); } + + /** + * Copies a pointer. + * @param p the pointer to copy + */ + KSharedPtr( const KSharedPtr& p ) + : ptr(p.ptr) { if ( ptr ) ptr->_KShared_ref(); } + + /** + * Unreferences the object that this pointer points to. If it was + * the last reference, the object will be deleted. + */ + ~KSharedPtr() { if ( ptr ) ptr->_KShared_unref(); } + + KSharedPtr& operator= ( const KSharedPtr& p ) { + if ( ptr == p.ptr ) return *this; + if ( ptr ) ptr->_KShared_unref(); + ptr = p.ptr; + if ( ptr ) ptr->_KShared_ref(); + return *this; + } + KSharedPtr& operator= ( T* p ) { + if ( ptr == p ) return *this; + if ( ptr ) ptr->_KShared_unref(); + ptr = p; + if ( ptr ) ptr->_KShared_ref(); + return *this; + } + bool operator== ( const KSharedPtr& p ) const { return ( ptr == p.ptr ); } + bool operator!= ( const KSharedPtr& p ) const { return ( ptr != p.ptr ); } + bool operator== ( const T* p ) const { return ( ptr == p ); } + bool operator!= ( const T* p ) const { return ( ptr != p ); } + bool operator!() const { return ( ptr == 0 ); } + operator T*() const { return ptr; } + + /** + * Returns the pointer. + * @return the pointer + */ + T* data() { return ptr; } + + /** + * Returns the pointer. + * @return the pointer + */ + const T* data() const { return ptr; } + + const T& operator*() const { return *ptr; } + T& operator*() { return *ptr; } + const T* operator->() const { return ptr; } + T* operator->() { return ptr; } + + /** + * Returns the number of references. + * @return the number of references + */ + int count() const { return ptr->_KShared_count(); } // for debugging purposes +private: + T* ptr; +}; + +#endif diff --git a/extra/kde332/ksycocafactory.h b/extra/kde332/ksycocafactory.h new file mode 100644 index 0000000..9cc1257 --- /dev/null +++ b/extra/kde332/ksycocafactory.h @@ -0,0 +1,143 @@ +/* This file is part of the KDE libraries + * Copyright (C) 1999 Waldo Bastian + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License version 2 as published by the Free Software Foundation; + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public License + * along with this library; see the file COPYING.LIB. If not, write to + * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA. + **/ + +#ifndef __ksycocafactory_h__ +#define __ksycocafactory_h__ "$Id: ksycocafactory.h,v 1.14 2003/10/29 17:59:18 waba Exp $" + +#include "ksycocatype.h" +#include "ksycocaentry.h" + +#include +#include +class KSycoca; +class QStringList; +class QString; +class KSycocaDict; +class KSycocaResourceList; + +typedef QDict KSycocaEntryDict; + +/** + * @internal + * Base class for sycoca factories + */ +class KSycocaFactory +{ +public: + virtual KSycocaFactoryId factoryId() const = 0; + +protected: // virtual class + /** + * Create a factory which can be used to lookup from/create a database + * (depending on KSycoca::isBuilding()) + */ + KSycocaFactory( KSycocaFactoryId factory_id ); + +public: + virtual ~KSycocaFactory(); + + /** + * @return the position of the factory in the sycoca file + */ + int offset() { return mOffset; } + + /** + * @return the dict, for special use by KBuildSycoca + */ + KSycocaEntryDict * entryDict() { return m_entryDict; } + + /** + * Construct an entry from a config file. + * To be implemented in the real factories. + */ + virtual KSycocaEntry *createEntry(const QString &file, const char *resource) = 0; + + /** + * Add an entry + */ + virtual void addEntry(KSycocaEntry *newEntry, const char *resource); + + /** + * Remove an entry + * Not very fast, use with care. O(N) + */ + void removeEntry(KSycocaEntry *newEntry); + + /** + * Read an entry from the database + */ + virtual KSycocaEntry *createEntry(int offset)=0; + + /** + * Get a list of all entries from the database. + */ + KSycocaEntry::List allEntries(); + + /** + * Saves all entries it maintains as well as index files + * for these entries to the stream 'str'. + * + * Also sets mOffset to the starting position. + * + * The stream is positioned at the end of the last index. + * + * Don't forget to call the parent first when you override + * this function. + */ + virtual void save(QDataStream &str); + + /** + * Writes out a header to the stream 'str'. + * The baseclass positions the stream correctly. + * + * Don't forget to call the parent first when you override + * this function. + */ + virtual void saveHeader(QDataStream &str); + + /** + * @return the resources for which this factory is responsible. + */ + virtual const KSycocaResourceList * resourceList() const { return m_resourceList; } + +private: + int mOffset; + +protected: + int m_sycocaDictOffset; + int m_beginEntryOffset; + int m_endEntryOffset; + QDataStream *m_str; + + KSycocaResourceList *m_resourceList; + KSycocaEntryDict *m_entryDict; + KSycocaDict *m_sycocaDict; +protected: + virtual void virtual_hook( int id, void* data ); +}; + +/** This, instead of a typedef, allows to declare "class ..." in header files + * @internal + */ +class KSycocaFactoryList : public QPtrList +{ +public: + KSycocaFactoryList() { } +}; + +#endif diff --git a/extra/kde332/ktoolbarbutton.h b/extra/kde332/ktoolbarbutton.h new file mode 100644 index 0000000..be0460b --- /dev/null +++ b/extra/kde332/ktoolbarbutton.h @@ -0,0 +1,315 @@ +/* This file is part of the KDE libraries + Copyright (C) 1997, 1998 Stephan Kulow (coolo@kde.org) + (C) 1997, 1998 Sven Radej (radej@kde.org) + (C) 1997, 1998 Mark Donohoe (donohoe@kde.org) + (C) 1997, 1998 Matthias Ettrich (ettrich@kde.org) + (C) 2000 Kurt Granroth (granroth@kde.org) + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License version 2 as published by the Free Software Foundation. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef _KTOOLBARBUTTON_H +#define _KTOOLBARBUTTON_H + +#include +#include +#include +#include +#include + +class KToolBar; +class KToolBarButtonPrivate; +class KInstance; +class QEvent; +class QPopupMenu; +class QPainter; + +/** + * A toolbar button. This is used internally by KToolBar, use the + * KToolBar methods instead. + * @internal + */ +class KToolBarButton : public QToolButton +{ + Q_OBJECT + +public: + /** + * Construct a button with an icon loaded by the button itself. + * This will trust the button to load the correct icon with the + * correct size. + * + * @param icon Name of icon to load (may be absolute or relative) + * @param id Id of this button + * @param parent This button's parent + * @param name This button's internal name + * @param txt This button's text (in a tooltip or otherwise) + * @param _instance the instance to use for this button + */ + KToolBarButton(const QString& icon, int id, QWidget *parent, + const char *name=0L, const QString &txt=QString::null, + KInstance *_instance = KGlobal::instance()); + + /** + * Construct a button with an existing pixmap. It is not + * recommended that you use this as the internal icon loading code + * will almost always get it "right". + * + * @param pixmap Name of icon to load (may be absolute or relative) + * @param id Id of this button + * @param parent This button's parent + * @param name This button's internal name + * @param txt This button's text (in a tooltip or otherwise) + */ + KToolBarButton(const QPixmap& pixmap, int id, QWidget *parent, + const char *name=0L, const QString &txt=QString::null); + + /** + * Construct a separator button + * + * @param parent This button's parent + * @param name This button's internal name + */ + KToolBarButton(QWidget *parent=0L, const char *name=0L); + + /** + * Standard destructor + */ + ~KToolBarButton(); + +#ifndef KDE_NO_COMPAT + /** + * @deprecated + * Set the pixmap directly for this button. This pixmap should be + * the active one... the dimmed and disabled pixmaps are constructed + * based on this one. However, don't use this function unless you + * are positive that you don't want to use setIcon. + * + * @param pixmap The active pixmap + */ + // this one is from QButton, so #ifdef-ing it out doesn't break BC + virtual void setPixmap(const QPixmap &pixmap) KDE_DEPRECATED; + + /** + * @deprecated + * Force the button to use this pixmap as the default one rather + * then generating it using effects. + * + * @param pixmap The pixmap to use as the default (normal) one + */ + void setDefaultPixmap(const QPixmap& pixmap) KDE_DEPRECATED; + + /** + * @deprecated + * Force the button to use this pixmap when disabled one rather then + * generating it using effects. + * + * @param pixmap The pixmap to use when disabled + */ + void setDisabledPixmap(const QPixmap& pixmap) KDE_DEPRECATED; +#endif + + /** + * Set the text for this button. The text will be either used as a + * tooltip (IconOnly) or will be along side the icon + * + * @param text The button (or tooltip) text + */ + virtual void setText(const QString &text); + + /** + * Set the icon for this button. The icon will be loaded internally + * with the correct size. This function is preferred over setIconSet + * + * @param icon The name of the icon + */ + virtual void setIcon(const QString &icon); + + /// @since 3.1 + virtual void setIcon( const QPixmap &pixmap ) + { QToolButton::setIcon( pixmap ); } + + /** + * Set the pixmaps for this toolbar button from a QIconSet. + * If you call this you don't need to call any of the other methods + * that set icons or pixmaps. + * @param iconset The iconset to use + */ + virtual void setIconSet( const QIconSet &iconset ); + +#ifndef KDE_NO_COMPAT + /** + * @deprecated + * Set the active icon for this button. The pixmap itself is loaded + * internally based on the icon size... .. the disabled and default + * pixmaps, however will only be constructed if generate is + * true. This function is preferred over setPixmap + * + * @param icon The name of the active icon + * @param generate If true, then the other icons are automagically + * generated from this one + */ + KDE_DEPRECATED void setIcon(const QString &icon, bool generate ) { Q_UNUSED(generate); setIcon( icon ); } + + /** + * @deprecated + * Force the button to use this icon as the default one rather + * then generating it using effects. + * + * @param icon The icon to use as the default (normal) one + */ + void setDefaultIcon(const QString& icon) KDE_DEPRECATED; + + /** + * @deprecated + * Force the button to use this icon when disabled one rather then + * generating it using effects. + * + * @param icon The icon to use when disabled + */ + void setDisabledIcon(const QString& icon) KDE_DEPRECATED; +#endif + + /** + * Turn this button on or off + * + * @param flag true or false + */ + void on(bool flag = true); + + /** + * Toggle this button + */ + void toggle(); + + /** + * Turn this button into a toggle button or disable the toggle + * aspects of it. This does not toggle the button itself. + * Use toggle() for that. + * + * @param toggle true or false + */ + void setToggle(bool toggle = true); + + /** + * Return a pointer to this button's popup menu (if it exists) + */ + QPopupMenu *popup(); + + /** + * Returns the button's id. + * @since 3.2 + */ + int id() const; + + /** + * Give this button a popup menu. There will not be a delay when + * you press the button. Use setDelayedPopup if you want that + * behavior. + * + * @param p The new popup menu + * @param unused Has no effect - ignore it. + */ + void setPopup (QPopupMenu *p, bool unused = false); + + /** + * Gives this button a delayed popup menu. + * + * This function allows you to add a delayed popup menu to the button. + * The popup menu is then only displayed when the button is pressed and + * held down for about half a second. + * + * @param p the new popup menu + * @param unused Has no effect - ignore it. + */ + void setDelayedPopup(QPopupMenu *p, bool unused = false); + + /** + * Turn this button into a radio button + * + * @param f true or false + */ + void setRadio(bool f = true); + + /** + * Toolbar buttons naturally will assume the global styles + * concerning icons, icons sizes, etc. You can use this function to + * explicitly turn this off, if you like. + * + * @param no_style Will disable styles if true + */ + void setNoStyle(bool no_style = true); + +signals: + void clicked(int); + void doubleClicked(int); + void pressed(int); + void released(int); + void toggled(int); + void highlighted(int, bool); + +public slots: + /** + * This slot should be called whenever the toolbar mode has + * potentially changed. This includes such events as text changing, + * orientation changing, etc. + */ + void modeChange(); + virtual void setTextLabel(const QString&, bool tipToo); + +protected: + void paletteChange(const QPalette &); + void leaveEvent(QEvent *e); + void enterEvent(QEvent *e); + void drawButton(QPainter *p); + bool eventFilter (QObject *o, QEvent *e); + void showMenu(); + QSize sizeHint() const; + QSize minimumSizeHint() const; + QSize minimumSize() const; + + /// @since 3.1 + bool isRaised() const; + /// @since 3.1 + bool isActive() const; + /// @since 3.1 + int iconTextMode() const; + +protected slots: + void slotClicked(); + void slotPressed(); + void slotReleased(); + void slotToggled(); + void slotDelayTimeout(); + +protected: + virtual void virtual_hook( int id, void* data ); +private: + KToolBarButtonPrivate *d; +}; + +/** +* List of KToolBarButton objects. +* @internal +* @version $Id: ktoolbarbutton.h,v 1.36 2004/03/18 02:50:16 bmeyer Exp $ +*/ +class KToolBarButtonList : public QIntDict +{ +public: + KToolBarButtonList(); + ~KToolBarButtonList() {} +}; + +#endif diff --git a/extra/kde332/kurifilter.h b/extra/kde332/kurifilter.h new file mode 100644 index 0000000..8c5f5fe --- /dev/null +++ b/extra/kde332/kurifilter.h @@ -0,0 +1,644 @@ +/* + * This file is part of the KDE libraries + * Copyright (C) 2000-2001,2003 Dawit Alemayehu + * + * Original author + * Copyright (C) 2000 Yves Arrouye + * + * + * This library 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. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public License + * along with this library; see the file COPYING.LIB. If not, write to + * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA. + **/ + +#ifndef __kurifilter_h__ +#define __kurifilter_h__ "$Id: kurifilter.h,v 1.41 2003/08/30 08:56:21 raabe Exp $" + +#include +#include +#include + +#include +#include + +class KURIFilterPrivate; +class KURIFilterDataPrivate; + +class KCModule; + +/** +* A basic message object used for exchanging filtering +* information between the filter plugins and the application +* requesting the filtering service. +* +* Use this object if you require a more detailed information +* about the URI you want to filter. Any application can create +* an instance of this class and send it to KURIFilter to +* have the plugins fill out all possible information about the +* URI. +* +* \b Example +* +* \code +* QString text = "kde.org"; +* KURIFilterData d = text; +* bool filtered = KURIFilter::self()->filter( d ); +* cout << "URL: " << text.latin1() << endl +* << "Filtered URL: " << d.uri().url().latin1() << endl +* << "URI Type: " << d.uriType() << endl +* << "Was Filtered: " << filtered << endl; +* \endcode +* +* The above code should yield the following output: +* \code +* URI: kde.org +* Filtered URI: http://kde.org +* URI Type: 0 <== means NET_PROTOCOL +* Was Filtered: 1 <== means the URL was successfully filtered +* \endcode +* +* @short A message object for exchanging filtering URI info. +* @author Dawit Alemayehu +*/ + +class KURIFilterData +{ +friend class KURIFilterPlugin; + +public: + /** + * Describes the type of the URI that was filtered. + * Here is a brief description of the types: + * + * @li NET_PROTOCOL - Any network protocol: http, ftp, nttp, pop3, etc... + * @li LOCAL_FILE - A local file whose executable flag is not set + * @li LOCAL_DIR - A local directory + * @li EXECUTABLE - A local file whose executable flag is set + * @li HELP - A man or info page + * @li SHELL - A shell executable (ex: echo "Test..." >> ~/testfile) + * @li BLOCKED - A URI that should be blocked/filtered (ex: ad filtering) + * @li ERROR - An incorrect URI (ex: "~johndoe" when user johndoe + * does not exist in that system ) + * @li UNKNOWN - A URI that is not identified. Default value when + * a KURIFilterData is first created. + */ + enum URITypes { NET_PROTOCOL=0, LOCAL_FILE, LOCAL_DIR, EXECUTABLE, HELP, SHELL, BLOCKED, ERROR, UNKNOWN }; + + /** + * Default constructor. + * + * Creates a URIFilterData object. + */ + KURIFilterData() { init(); } + + /** + * Creates a URIFilterData object from the given URL. + * + * @param url is the URL to be filtered. + */ + KURIFilterData( const KURL& url ) { init( url); } + + /** + * Creates a URIFilterData object from the given string. + * + * @param url is the string to be filtered. + */ + KURIFilterData( const QString& url ) { init( url ); } + + /** + * Copy constructor. + * + * Creates a URIFilterData object from another + * URI filter data object. + * + * @param data the uri filter data to be copied. + */ + KURIFilterData( const KURIFilterData& data); + + /** + * Destructor. + */ + ~KURIFilterData(); + + /** + * This method has been deprecated and will always return + * true. You should instead use the result from the + * KURIFilter::filterURI() calls. + * + * @deprecated + */ + KDE_DEPRECATED bool hasBeenFiltered() const { return true; } + + /** + * Returns the filtered or the original URL. + * + * This function returns the filtered url if one + * of the plugins successfully filtered the original + * URL. Otherwise, it returns the original URL. + * See hasBeenFiltered() and + * + * @return the filtered or original url. + */ + KURL uri() const { return m_pURI; } + + /** + * Returns an error message. + * + * This functions returns the error message set + * by the plugin whenever the uri type is set to + * KURIFilterData::ERROR. Otherwise, it returns + * a QString::null. + * + * @return the error message or a NULL when there is none. + */ + QString errorMsg() const { return m_strErrMsg; } + + /** + * Returns the URI type. + * + * This method always returns KURIFilterData::UNKNOWN + * if the given URL was not filtered. + * @return the type of the URI + */ + URITypes uriType() const { return m_iType; } + + /** + * Sets the URL to be filtered. + * + * Use this function to set the string to be + * filtered when you construct an empty filter + * object. + * + * @param url the string to be filtered. + */ + void setData( const QString& url ) { init( url ); } + + /** + * Same as above except the argument is a URL. + * + * Use this function to set the string to be + * filtered when you construct an empty filter + * object. + * + * @param url the URL to be filtered. + */ + void setData( const KURL& url ) { init( url ); } + + /** + * Sets the absolute path to be used whenever the supplied + * data is a relative local URL. + * + * NOTE: This function should only be used for local resources, + * i.e. the "file:/" protocol. It is useful for specifying the + * absolute path in cases where the actual URL might be relative. + * meta object. If deriving the path from a KURL, make sure you + * set the argument for this function to the result of calling + * path () instead of url (). + * + * @param abs_path the abolute path to the local resource. + * @return true if absolute path is successfully set. Otherwise, false. + */ + bool setAbsolutePath( const QString& abs_path ); + + /** + * Returns the absolute path if one has already been set. + * @return the absolute path, or QString::null + * @see hasAbsolutePath() + */ + QString absolutePath() const; + + /** + * Checks whether the supplied data had an absolute path. + * @return true if the supplied data has an absolute path + * @see absolutePath() + */ + bool hasAbsolutePath() const; + + /** + * Returns the command line options and arguments for a + * local resource when present. + * + * @return options and arguments when present, otherwise QString::null + */ + QString argsAndOptions() const; + + /** + * Checks whether the current data is a local resource with + * command line options and arguments. + * @return true if the current data has command line options and arguments + */ + bool hasArgsAndOptions() const; + + /** + * Returns the name of the icon that matches + * the current filtered URL. + * + * NOTE that this function will return a NULL + * string by default and when no associated icon + * is found. + * + * @return the name of the icon associated with the resource, + * or QString::null if not found + */ + QString iconName(); + + /** + * Check whether the provided uri is executable or not. + * + * Setting this to false ensures that typing the name of + * an executable does not start that application. This is + * useful in the location bar of a browser. The default + * value is true. + * + * @since 3.2 + */ + void setCheckForExecutables (bool check); + + /** + * @return true if the filters should attempt to check whether the + * supplied uri is an executable. False otherwise. + * + * @since 3.2 + */ + bool checkForExecutables() const { return m_bCheckForExecutables; } + + /** + * @return the string as typed by the user, before any URL processing is done + * @since 3.2 + */ + QString typedString() const; + + /** + * Overloaded assigenment operator. + * + * This function allows you to easily assign a KURL + * to a KURIFilterData object. + * + * @return an instance of a KURIFilterData object. + */ + KURIFilterData& operator=( const KURL& url ) { init( url ); return *this; } + + /** + * Overloaded assigenment operator. + * + * This function allows you to easily assign a QString + * to a KURIFilterData object. + * + * @return an instance of a KURIFilterData object. + */ + KURIFilterData& operator=( const QString& url ) { init( url ); return *this; } + +protected: + + /** + * Initializes the KURIFilterData on construction. + * @param url the URL to initialize the object with + */ + void init( const KURL& url); + + /** + * Initializes the KURIFilterData on construction. + * @param url the URL to initialize the object with + */ + void init( const QString& url = QString::null ); + +private: + bool m_bCheckForExecutables; + bool m_bChanged; + + QString m_strErrMsg; + QString m_strIconName; + + KURL m_pURI; + URITypes m_iType; + KURIFilterDataPrivate *d; +}; + + +/** + * Base class for URI filter plugins. + * + * This class applies a single filter to a URI. All plugins designed + * to provide URI filtering service should inherit from this abstract + * class and provide a concrete implementation. + * + * All inheriting classes need to implement the pure virtual function + * filterURI. + * + * @short Abstract class for URI filter plugins. + */ +class KURIFilterPlugin : public QObject +{ + Q_OBJECT + +public: + + /** + * Constructs a filter plugin with a given name and + * priority. + * + * @param parent the parent object, or 0 for no parent + * @param name the name of the plugin, or 0 for no name + * @param pri the priority of the plugin. + */ + KURIFilterPlugin( QObject *parent = 0, const char *name = 0, double pri = 1.0 ); + + /** + * Returns the filter's name. + * + * @return A string naming the filter. + */ + virtual QString name() const { return m_strName; } + + /** + * Returns the filter's priority. + * + * Each filter has an assigned priority, a float from 0 to 1. Filters + * with the lowest priority are first given a chance to filter a URI. + * + * @return The priority of the filter. + */ + virtual double priority() const { return m_dblPriority; } + + /** + * Filters a URI. + * + * @param data the URI data to be filtered. + * @return A boolean indicating whether the URI has been changed. + */ + virtual bool filterURI( KURIFilterData& data ) const = 0; + + /** + * Creates a configuration module for the filter. + * + * It is the responsibility of the caller to delete the module + * once it is not needed anymore. + * + * @return A configuration module, 0 if the filter isn't configurable. + */ + virtual KCModule *configModule( QWidget*, const char* ) const { return 0; } + + /** + * Returns the name of the configuration module for the filter. + * + * @return the name of a configuration module or QString::null if none. + */ + virtual QString configName() const { return name(); } + +protected: + + /** + * Sets the the URL in @p data to @p uri. + */ + void setFilteredURI ( KURIFilterData& data, const KURL& uri ) const; + + /** + * Sets the error message in @p data to @p errormsg. + */ + void setErrorMsg ( KURIFilterData& data, const QString& errmsg ) const { + data.m_strErrMsg = errmsg; + } + + /** + * Sets the URI type in @p data to @p type. + */ + void setURIType ( KURIFilterData& data, KURIFilterData::URITypes type) const { + data.m_iType = type; + data.m_bChanged = true; + } + + /** + * Sets the arguments and options string in @p data + * to @p args if any were found during filterting. + */ + void setArguments( KURIFilterData& data, const QString& args ) const; + + QString m_strName; + double m_dblPriority; + +protected: + virtual void virtual_hook( int id, void* data ); +private: + class KURIFilterPluginPrivate *d; +}; + + +/** + * A list of filter plugins. + */ +class KURIFilterPluginList : public QPtrList +{ +public: + virtual int compareItems(Item a, Item b) + { + double diff = ((KURIFilterPlugin *) a)->priority() - ((KURIFilterPlugin *) b)->priority(); + return diff < 0 ? -1 : (diff > 0 ? 1 : 0); + } + +private: + KURIFilterPrivate *d; + +}; + +/** + * Manages the filtering of URIs. + * + * The intention of this plugin class is to allow people to extend the + * functionality of KURL without modifying it directly. This way KURL will + * remain a generic parser capable of parsing any generic URL that adheres + * to specifications. + * + * The KURIFilter class applies a number of filters to a URI and returns the + * filtered version whenever possible. The filters are implemented using + * plugins to provide easy extensibility of the filtering mechanism. New + * filters can be added in the future by simply inheriting from + * KURIFilterPlugin and implementing the KURIFilterPlugin::filterURI + * method. + * + * Use of this plugin-manager class is straight forward. Since it is a + * singleton object, all you have to do is obtain an instance by doing + * @p KURIFilter::self() and use any of the public member functions to + * preform the filtering. + * + * \b Example + * + * To simply filter a given string: + * + * \code + * bool filtered = KURIFilter::self()->filterURI( "kde.org" ); + * \endcode + * + * You can alternatively use a KURL: + * + * \code + * KURL url = "kde.org"; + * bool filtered = KURIFilter::self()->filterURI( url ); + * \endcode + * + * If you have a constant string or a constant URL, simply invoke the + * corresponding function to obtain the filtered string or URL instead + * of a boolean flag: + * + * \code + * QString u = KURIFilter::self()->filteredURI( "kde.org" ); + * \endcode + * + * You can also restrict the filter(s) to be used by supplying + * the name of the filter(s) to use. By defualt all available + * filters will be used. To use specific filters, add the names + * of the filters you want to use to a QStringList and invoke + * the appropriate filtering function. The examples below show + * the use of specific filters. The first one uses a single + * filter called kshorturifilter while the second example uses + * multiple filters: + * + * \code + * QString text = "kde.org"; + * bool filtered = KURIFilter::self()->filterURI( text, "kshorturifilter" ); + * \endcode + * + * \code + * QStringList list; + * list << "kshorturifilter" << "localdomainfilter"; + * bool filtered = KURIFilter::self()->filterURI( text, list ); + * \endcode + * + * KURIFilter also allows richer data exchange through a simple + * meta-object called @p KURIFilterData. Using this meta-object + * you can find out more information about the URL you want to + * filter. See KURIFilterData for examples and details. + * + * @short Filters a given URL into its proper format whenever possible. + */ + +class KURIFilter +{ +public: + /** + * Destructor + */ + ~KURIFilter (); + + /** + * Returns an instance of KURIFilter. + */ + static KURIFilter* self(); + + /** + * Filters the URI given by the object URIFilterData. + * + * The given URL is filtered based on the specified list of filters. + * If the list is empty all available filters would be used. + * + * @param data object that contains the URI to be filtered. + * @param filters specify the list of filters to be used. + * + * @return a boolean indicating whether the URI has been changed + */ + bool filterURI( KURIFilterData& data, const QStringList& filters = QStringList() ); + + /** + * Filters the URI given by the URL. + * + * The given URL is filtered based on the specified list of filters. + * If the list is empty all available filters would be used. + * + * @param uri the URI to filter. + * @param filters specify the list of filters to be used. + * + * @return a boolean indicating whether the URI has been changed + */ + bool filterURI( KURL &uri, const QStringList& filters = QStringList() ); + + /** + * Filters a string representing a URI. + * + * The given URL is filtered based on the specified list of filters. + * If the list is empty all available filters would be used. + * + * @param uri The URI to filter. + * @param filters specify the list of filters to be used. + * + * @return a boolean indicating whether the URI has been changed + */ + bool filterURI( QString &uri, const QStringList& filters = QStringList() ); + + /** + * Returns the filtered URI. + * + * The given URL is filtered based on the specified list of filters. + * If the list is empty all available filters would be used. + * + * @param uri The URI to filter. + * @param filters specify the list of filters to be used. + * + * @return the filtered URI or null if it cannot be filtered + */ + KURL filteredURI( const KURL &uri, const QStringList& filters = QStringList() ); + + /** + * Return a filtered string representation of a URI. + * + * The given URL is filtered based on the specified list of filters. + * If the list is empty all available filters would be used. + * + * @param uri the URI to filter. + * @param filters specify the list of filters to be used. + * + * @return the filtered URI or null if it cannot be filtered + */ + QString filteredURI( const QString &uri, const QStringList& filters = QStringList() ); + + /** + * Return an iterator to iterate over all loaded + * plugins. + * + * @return a plugin iterator. + */ + QPtrListIterator pluginsIterator() const; + + /** + * Return a list of the names of all loaded plugins. + * + * @return a QStringList of plugin names + * @since 3.1 + */ + QStringList pluginNames() const; + +protected: + + /** + * A protected constructor. + * + * This constructor creates a KURIFilter and + * initializes all plugins it can find by invoking + * loadPlugins. + */ + KURIFilter(); + + /** + * Loads all allowed plugins. + * + * This function loads all filters that have not + * been disbled. + */ + void loadPlugins(); + +private: + static KURIFilter *m_self; + KURIFilterPluginList m_lstPlugins; + KURIFilterPrivate *d; +}; + +#endif diff --git a/extra/kde332/selectdialog.h b/extra/kde332/selectdialog.h new file mode 100644 index 0000000..b5e962c --- /dev/null +++ b/extra/kde332/selectdialog.h @@ -0,0 +1,87 @@ +/* + This file is part of libkresources. + + Copyright (c) 2002 Tobias Koenig + Copyright (c) 2002 Jan-Pascal van Best + Copyright (c) 2003 Cornelius Schumacher + + This library 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. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef KRESOURCES_SELECTDIALOG_H +#define KRESOURCES_SELECTDIALOG_H + +#include +#include +#include + +#include + +class KListBox; + +namespace KRES { + +class Resource; + +/** + * Dialog for selecting a resource. + * + * Example: + * + * \code + * + * QPtrList list = ... // can be retrived from KRES::Manager (e.g. KABC::AddressBook) + * + * KABC::Resource *res = KABC::SelectDialog::getResource( list, parentWdg ); + * if ( !res ) { + * // no resource selected + * } else { + * // do something with resource + * } + * \endcode + */ +class SelectDialog +{ + public: + /** + * Constructor. + * @param list The list of available resources + * @param parent The parent widget + * @param name The name of the dialog + */ + SelectDialog( QPtrList list, QWidget *parent = 0, + const char *name = 0); + + /** + * Returns selected resource. + */ + Resource *resource(); + + /** + * Opens a dialog showing the available resources and returns the resource the + * user has selected. Returns 0, if the dialog was canceled. + */ + static Resource *getResource( QPtrList list, QWidget *parent = 0 ); + + private: + KListBox *mResourceId; + + QMap mResourceMap; +}; + +} + +#endif diff --git a/extra/kde340/configwidget.h b/extra/kde340/configwidget.h new file mode 100644 index 0000000..ae76397 --- /dev/null +++ b/extra/kde340/configwidget.h @@ -0,0 +1,58 @@ +/* + This file is part of libkresources. + Copyright (c) 2002 Tobias Koenig + Copyright (c) 2002 Jan-Pascal van Best + + This library 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. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef KRESOURCES_CONFIGWIDGET_H +#define KRESOURCES_CONFIGWIDGET_H + +#include "resource.h" + +#include + +#include + +namespace KRES { + +class KRESOURCES_EXPORT ConfigWidget : public QWidget +{ + Q_OBJECT + public: + ConfigWidget( QWidget *parent = 0, const char *name = 0 ); + + /** + Sets the widget to 'edit' mode. Reimplement this method if you are + interested in the mode change (to disable some GUI element for + example). By default the widget is in 'create new' mode. + */ + virtual void setInEditMode( bool value ); + + public slots: + virtual void loadSettings( Resource *resource ) = 0; + virtual void saveSettings( Resource *resource ) = 0; + + signals: + void setReadOnly( bool value ); + + protected: + Resource *mResource; +}; + +} +#endif diff --git a/extra/kde340/kaccelaction.h b/extra/kde340/kaccelaction.h new file mode 100644 index 0000000..396e218 --- /dev/null +++ b/extra/kde340/kaccelaction.h @@ -0,0 +1,564 @@ +/* This file is part of the KDE libraries + Copyright (C) 2001,2002 Ellis Whitehead + + This library 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. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef _KACCELACTION_H +#define _KACCELACTION_H + +#include +#include +#include +#include + +#include + +class KAccelBase; + +class QObject; +class KConfig; +class KConfigBase; + +/** + * @internal + * A KAccelAction prepresents an action that can be executed using + * an accelerator key. Each KAccelAction has a name, a label, a + * "What's this" string and a KShortcut. The user can configure and + * enable/disable them using KKeyDialog. + * + * \code + * 1) KAccelAction = "Run Command" + * Default3 = "Alt+F2" + * Default4 = "Meta+Enter;Alt+F2" + * 1) KShortcut = "Meta+Enter" + * 1) KKeySequence = "Meta+Enter" + * 1) KKey = "Meta+Enter" + * 1) Meta+Enter + * 2) Meta+Keypad_Enter + * 2) KShortcut = "Alt+F2" + * 1) KKeySequence = "Alt+F2" + * 1) Alt+F2 + * 2) KAccelAction = "Something" + * Default3 = "" + * Default4 = "" + * 1) KShortcut = "Meta+X,Asterisk" + * 1) KKeySequence = "Meta+X,Asterisk" + * 1) KKey = "Meta+X" + * 1) Meta+X + * 2) KKey = "Asterisk" + * 1) Shift+8 (English layout) + * 2) Keypad_Asterisk + * \endcode + * @short An accelerator action + * @see KAccel + * @see KGlobalAccel + * @see KKeyChooser + * @see KKeyDialog + */ +class KDECORE_EXPORT KAccelAction +{ + public: + /** + * Creates an empty KAccelAction. + * @see clear() + */ + KAccelAction(); + + /** + * Copy constructor. + */ + KAccelAction( const KAccelAction& ); + + /** + * Creates a new KAccelAction. + * @param sName the name of the accelerator + * @param sLabel the label of the accelerator (i18n!) + * @param sWhatsThis the What's This text (18n!) + * @param cutDef3 the default shortcut for 3 modifier systems + * @param cutDef4 the default shortcut for 4 modifier systems + * @param pObjSlot the receiver of a signal when the key has been + * pressed + * @param psMethodSlot the slot to connect for key presses. Receives + * an int, as set by setID(), as only argument + * @param bConfigurable if true the user can configure the shortcut + * @param bEnabled true if the accelerator should be enabled + */ + KAccelAction( const QString& sName, const QString& sLabel, const QString& sWhatsThis, + const KShortcut& cutDef3, const KShortcut& cutDef4, + const QObject* pObjSlot, const char* psMethodSlot, + bool bConfigurable, bool bEnabled ); + ~KAccelAction(); + + /** + * Clears the accelerator. + */ + void clear(); + + /** + * Re-initialized the KAccelAction. + * @param sName the name of the accelerator + * @param sLabel the label of the accelerator (i18n!) + * @param sWhatsThis the What's This text (18n!) + * @param cutDef3 the default shortcut for 3 modifier systems + * @param cutDef4 the default shortcut for 4 modifier systems + * @param pObjSlot the receiver of a signal when the key has been + * pressed + * @param psMethodSlot the slot to connect for key presses. Receives + * an int, as set by setID(), as only argument + * @param bConfigurable if true the user can configure the shortcut + * @param bEnabled true if the accelerator should be enabled + * @return true if successful, false otherwise + */ + bool init( const QString& sName, const QString& sLabel, const QString& sWhatsThis, + const KShortcut& cutDef3, const KShortcut& cutDef4, + const QObject* pObjSlot, const char* psMethodSlot, + bool bConfigurable, bool bEnabled ); + + /** + * Copies this KAccelAction. + */ + KAccelAction& operator=( const KAccelAction& ); + + /** + * Returns the name of the accelerator action. + * @return the name of the accelerator action, can be null if not + * set + */ + const QString& name() const { return m_sName; } + + /** + * Returns the label of the accelerator action. + * @return the label of the accelerator action, can be null if + * not set + */ + const QString& label() const { return m_sLabel; } + + /** + * Returns the What's This text of the accelerator action. + * @return the What's This text of the accelerator action, can be + * null if not set + */ + const QString& whatsThis() const { return m_sWhatsThis; } + + /** + * The shortcut that is actually used (may be used configured). + * @return the shortcut of the KAccelAction, can be null if not set + * @see shortcutDefault() + */ + const KShortcut& shortcut() const { return m_cut; } + + /** + * The default shortcut for this system. + * @return the default shortcut on this system, can be null if not set + * @see shortcut() + * @see shortcutDefault3() + * @see shortcutDefault4() + */ + const KShortcut& shortcutDefault() const; + + /** + * The default shortcut for 3 modifier systems. + * @return the default shortcut for 3 modifier systems, can be null + * if not set + * @see shortcutDefault() + * @see shortcutDefault4() + * @see useFourModifierKeys() + */ + const KShortcut& shortcutDefault3() const { return m_cutDefault3; } + + /** + * The default shortcut for 4 modifier systems. + * @return the default shortcut for 4 modifier systems, can be null + * if not set + * @see shortcutDefault() + * @see shortcutDefault3() + * @see useFourModifierKeys() + */ + const KShortcut& shortcutDefault4() const { return m_cutDefault4; } + + /** + * Returns the receiver of signals. + * @return the receiver of signals (can be 0 if not set) + */ + const QObject* objSlotPtr() const { return m_pObjSlot; } + + /** + * Returns the slot for the signal. + * @return the slot for the signal + */ + const char* methodSlotPtr() const { return m_psMethodSlot; } + + /** + * Checks whether the user can configure the action. + * @return true if configurable, false otherwise + */ + bool isConfigurable() const { return m_bConfigurable; } + + /** + * Checks whether the action is enabled. + * @return true if enabled, false otherwise + */ + bool isEnabled() const { return m_bEnabled; } + + /** + * Sets the name of the accelerator action. + * @param name the new name + */ + void setName( const QString& name ); + + /** + * Sets the user-readable label of the accelerator action. + * @param label the new label (i18n!) + */ + void setLabel( const QString& label ); + + /** + * Sets the What's This text for the accelerator action. + * @param whatsThis the new What's This text (i18n!) + */ + void setWhatsThis( const QString& whatsThis ); + + /** + * Sets the new shortcut of the accelerator action. + * @param rgCuts the shortcut to set + * @return true if successful, false otherwise + */ + bool setShortcut( const KShortcut& rgCuts ); + + /** + * Sets the slot of the accelerator action. + * @param pObjSlot the receiver object of the signal + * @param psMethodSlot the slot for the signal + */ + void setSlot( const QObject* pObjSlot, const char* psMethodSlot ); + + /** + * Enables or disabled configuring the action. + * @param configurable true to enable configurability, false to disable + */ + void setConfigurable( bool configurable ); + + /** + * Enables or disabled the action. + * @param configurable true to enable the action, false to disable + */ + void setEnabled( bool enable ); + + /** + * Retrieves the id set using setID. + * @return the id of the accelerator action + */ + int getID() const { return m_nIDAccel; } + + /** + * Allows you to set an id that will be used as the action + * signal's argument. + * + * @param n the new id + * @see getID() + */ + void setID( int n ) { m_nIDAccel = n; } + + /** + * Checkes whether the action is connected (emits signals). + * @return true if connected, false otherwise + */ + bool isConnected() const; + + /** + * Sets a key sequence of the action's shortcut. + * @param i the position of the sequence + * @param keySeq the new new sequence + * @return true if successful, false otherwise + * @see KShortcut::setSeq() + */ + bool setKeySequence( uint i, const KKeySequence &keySeq ); + + /** + * Clears the action's shortcut. It will not contain any sequences after + * calling this method. + * @see KShortcut::clear() + */ + void clearShortcut(); + + /** + * Checks whether the action's shortcut contains the given key sequence. + * @param keySeq the key sequence to check + * @return true if the shortcut contains the given sequence + * @see KShortcut::contains() + */ + bool contains( const KKeySequence &keySeq ); + + /** + * Returns the string representation of the action's shortcut. + * @return the string representation of the action's shortcut. + * @see KShortcut::toString() + */ + QString toString() const; + + /** + * @internal + */ + QString toStringInternal() const; + + /** + * Returns true if four modifier keys will be used. + * @return true if four modifier keys will be used. + */ + static bool useFourModifierKeys(); + + /** + * Selects 3 or 4 modifier default shortcuts. + * @param use true to use 4 modifier shortcuts, false to use + * 3 modifier shortcuts + */ + static void useFourModifierKeys( bool use ); + + protected: + QString m_sName, + m_sLabel, + m_sWhatsThis; + KShortcut m_cut; + KShortcut m_cutDefault3, m_cutDefault4; + const QObject* m_pObjSlot; + const char* m_psMethodSlot; + bool m_bConfigurable, + m_bEnabled; + int m_nIDAccel; + uint m_nConnections; + + void incConnections(); + void decConnections(); + + private: + static int g_bUseFourModifierKeys; + class KAccelActionPrivate* d; + + friend class KAccelActions; + friend class KAccelBase; +}; + +//--------------------------------------------------------------------- +// KAccelActions +//--------------------------------------------------------------------- + +/** + * @internal + * This class represents a collection of KAccelAction objects. + * + * @short A collection of accelerator actions + * @see KAccelAction + */ +class KDECORE_EXPORT KAccelActions +{ + public: + /** + * Creates a new, empty KAccelActions object. + */ + KAccelActions(); + + /** + * Copy constructor (deep copy). + */ + KAccelActions( const KAccelActions& ); + virtual ~KAccelActions(); + + /** + * Removes all items from this collection. + */ + void clear(); + + /** + * Initializes this object with the given actions. + * It will make a deep copy of all actions. + * @param actions the actions to copy + * @return true if successful, false otherwise + */ + bool init( const KAccelActions &actions ); + + /** + * Loads the actions from the given configuration file. + * + * @param config the configuration file to load from + * @param sGroup the group in the configuration file + * @return true if successful, false otherwise + */ + bool init( KConfigBase& config, const QString& sGroup ); + + /** + * Updates the shortcuts of all actions in this object + * with the shortcuts from the given object. + * @param shortcuts the collection that contains the new + * shortcuts + */ + void updateShortcuts( KAccelActions &shortcuts ); + + /** + * Retrieves the index of the action with the given name. + * @param sAction the action to search + * @return the index of the action, or -1 if not found + */ + int actionIndex( const QString& sAction ) const; + + /** + * Returns the action with the given @p index. + * @param index the index of an action. You must not + * use an index that is too high. + * @return the KAccelAction with the given index + * @see count() + */ + KAccelAction* actionPtr( uint index ); + + /** + * Returns the action with the given @p index. + * @param index the index of an action. You must not + * use an index that is too high. + * @return the KAccelAction with the given index + * @see count() + */ + const KAccelAction* actionPtr( uint index ) const; + + /** + * Returns the action with the given name. + * @param aAction the name of the action to search + * @return the KAccelAction with the given name, or 0 + * if not found + */ + KAccelAction* actionPtr( const QString& sAction ); + + /** + * Returns the action with the given name. + * @param aAction the name of the action to search + * @return the KAccelAction with the given name, or 0 + * if not found + */ + const KAccelAction* actionPtr( const QString& sAction ) const; + + /** + * Returns the action with the given key sequence. + * @param cut the sequence to search for + * @return the KAccelAction with the given sequence, or 0 + * if not found + */ + KAccelAction* actionPtr( KKeySequence cut ); + + /** + * Returns the action with the given @p index. + * @param index the index of an action. You must not + * use an index that is too high. + * @return the KAccelAction with the given index + * @see actionPtr() + * @see count() + */ + KAccelAction& operator []( uint index ); + + /** + * Returns the action with the given @p index. + * @param index the index of an action. You must not + * use an index that is too high. + * @return the KAccelAction with the given index + * @see actionPtr() + * @see count() + */ + const KAccelAction& operator []( uint index ) const; + + /** + * Inserts an action into the collection. + * @param sName the name of the accelerator + * @param sLabel the label of the accelerator (i18n!) + * @param sWhatsThis the What's This text (18n!) + * @param cutDef3 the default shortcut for 3 modifier systems + * @param cutDef4 the default shortcut for 4 modifier systems + * @param pObjSlot the receiver of a signal when the key has been + * pressed + * @param psMethodSlot the slot to connect for key presses. Receives + * an int, as set by setID(), as only argument + * @param bConfigurable if true the user can configure the shortcut + * @param bEnabled true if the accelerator should be enabled + * @return the new action + */ + KAccelAction* insert( const QString& sAction, const QString& sLabel, const QString& sWhatsThis, + const KShortcut& rgCutDefaults3, const KShortcut& rgCutDefaults4, + const QObject* pObjSlot = 0, const char* psMethodSlot = 0, + bool bConfigurable = true, bool bEnabled = true ); + + /** + * Inserts an action into the collection. + * @param sName the name of the accelerator + * @param sLabel the label of the accelerator (i18n!) + * @return the new action + */ + KAccelAction* insert( const QString& sName, const QString& sLabel ); + + /** + * Removes the given action. + * @param sAction the name of the action. + * @return true if successful, false otherwise + */ + bool remove( const QString& sAction ); + + /** + * Loads the actions from the given configuration file. + * + * @param sConfigGroup the group in the configuration file + * @param pConfig the configuration file to load from + * @return true if successful, false otherwise + */ + bool readActions( const QString& sConfigGroup = "Shortcuts", KConfigBase* pConfig = 0 ); + + /** + * Writes the actions to the given configuration file. + * + * @param sConfigGroup the group in the configuration file + * @param pConfig the configuration file to save to + * @param bWriteAll true to write all actions + * @param bGlobal true to write to the global configuration file + * @return true if successful, false otherwise + */ + bool writeActions( const QString& sConfigGroup = "Shortcuts", KConfigBase* pConfig = 0, + bool bWriteAll = false, bool bGlobal = false ) const; + + /** + * Emit a keycodeChanged signal. + */ + void emitKeycodeChanged(); + + /** + * Returns the number of actions in the collection. + * @return the number of actions + */ + uint count() const; + + protected: + KAccelBase* m_pKAccelBase; + KAccelAction** m_prgActions; + uint m_nSizeAllocated, m_nSize; + + void resize( uint ); + void insertPtr( KAccelAction* ); + + private: + class KAccelActionsPrivate* d; + + KAccelActions( KAccelBase* ); + void initPrivate( KAccelBase* ); + KAccelActions& operator =( KAccelActions& ); + + friend class KAccelBase; +}; + +#endif // _KACCELACTION_H diff --git a/extra/kde340/kaccelbase.h b/extra/kde340/kaccelbase.h new file mode 100644 index 0000000..f582cce --- /dev/null +++ b/extra/kde340/kaccelbase.h @@ -0,0 +1,229 @@ +/* This file is part of the KDE libraries + Copyright (C) 2001 Ellis Whitehead + + This library 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. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef _KACCELBASE_H +#define _KACCELBASE_H + +#include +#include +#include +#include +#include + +#include "kaccelaction.h" +#include "kkeyserver.h" + +class QPopupMenu; +class QWidget; + +//---------------------------------------------------- + +/** + * @internal + * Handle keyboard accelerators. + * + * Allow an user to configure + * key bindings through application configuration files or through the + * KKeyChooser GUI. + * + * A KAccel contains a list of accelerator items. Each accelerator item + * consists of an action name and a keyboard code combined with modifiers + * (Shift, Ctrl and Alt.) + * + * For example, "Ctrl+P" could be a shortcut for printing a document. The key + * codes are listed in ckey.h. "Print" could be the action name for printing. + * The action name identifies the key binding in configuration files and the + * KKeyChooser GUI. + * + * When pressed, an accelerator key calls the slot to which it has been + * connected. Accelerator items can be connected so that a key will activate + * two different slots. + * + * A KAccel object handles key events sent to its parent widget and to all + * children of this parent widget. + * + * Key binding reconfiguration during run time can be prevented by specifying + * that an accelerator item is not configurable when it is inserted. A special + * group of non-configurable key bindings are known as the + * standard accelerators. + * + * The standard accelerators appear repeatedly in applications for + * standard document actions such as printing and saving. Convenience methods are + * available to insert and connect these accelerators which are configurable on + * a desktop-wide basis. + * + * It is possible for a user to choose to have no key associated with + * an action. + * + * The translated first argument for insertItem() is used only + * in the configuration dialog. + *\code + * KAccel *a = new KAccel( myWindow ); + * // Insert an action "Scroll Up" which is associated with the "Up" key: + * a->insertItem( i18n("Scroll Up"), "Scroll Up", "Up" ); + * // Insert an action "Scroll Down" which is not associated with any key: + * a->insertItem( i18n("Scroll Down"), "Scroll Down", 0); + * a->connectItem( "Scroll up", myWindow, SLOT( scrollUp() ) ); + * // a->insertStdItem( KStdAccel::Print ); //not necessary, since it + * // is done automatially with the + * // connect below! + * a->connectItem(KStdAccel::Print, myWindow, SLOT( printDoc() ) ); + * + * a->readSettings(); + *\endcode + * + * If a shortcut has a menu entry as well, you could insert them like + * this. The example is again the KStdAccel::Print from above. + * + * \code + * int id; + * id = popup->insertItem("&Print",this, SLOT(printDoc())); + * a->changeMenuAccel(popup, id, KStdAccel::Print ); + * \endcode + * + * If you want a somewhat "exotic" name for your standard print action, like + * id = popup->insertItem(i18n("Print &Document"),this, SLOT(printDoc())); + * it might be a good idea to insert the standard action before as + * a->insertStdItem( KStdAccel::Print, i18n("Print Document") ) + * as well, so that the user can easily find the corresponding function. + * + * This technique works for other actions as well. Your "scroll up" function + * in a menu could be done with + * + * \code + * id = popup->insertItem(i18n"Scroll &up",this, SLOT(scrollUp())); + * a->changeMenuAccel(popup, id, "Scroll Up" ); + * \endcode + * + * Please keep the order right: First insert all functions in the + * acceleratior, then call a -> readSettings() and @em then build your + * menu structure. + * + * @short Configurable key binding support. + */ + +class KDECORE_EXPORT KAccelBase +{ + public: + enum Init { QT_KEYS = 0x00, NATIVE_KEYS = 0x01 }; + enum Signal { KEYCODE_CHANGED }; + + KAccelBase( int fInitCode ); + virtual ~KAccelBase(); + + uint actionCount() const; + KAccelActions& actions(); + bool isEnabled() const; + + KAccelAction* actionPtr( const QString& sAction ); + const KAccelAction* actionPtr( const QString& sAction ) const; + KAccelAction* actionPtr( const KKey& key ); + KAccelAction* actionPtr( const KKeyServer::Key& key ); + + const QString& configGroup() const { return m_sConfigGroup; } + void setConfigGroup( const QString& group ); + void setConfigGlobal( bool global ); + virtual void setEnabled( bool bEnabled ) = 0; + bool getAutoUpdate() { return m_bAutoUpdate; } + // return value of AutoUpdate flag before this call. + bool setAutoUpdate( bool bAuto ); + +// Procedures for manipulating Actions. + //void clearActions(); + + KAccelAction* insert( const QString& sName, const QString& sDesc ); + KAccelAction* insert( + const QString& sAction, const QString& sDesc, const QString& sHelp, + const KShortcut& rgCutDefaults3, const KShortcut& rgCutDefaults4, + const QObject* pObjSlot, const char* psMethodSlot, + bool bConfigurable = true, bool bEnabled = true ); + bool remove( const QString& sAction ); + bool setActionSlot( const QString& sAction, const QObject* pObjSlot, const char* psMethodSlot ); + + bool updateConnections(); + + bool setShortcut( const QString& sAction, const KShortcut& cut ); + +// Modify individual Action sub-items + bool setActionEnabled( const QString& sAction, bool bEnable ); + + /** + * Read all key associations from @p config, or (if @p config + * is zero) from the application's configuration file + * KGlobal::config(). + * + * The group in which the configuration is stored can be + * set with setConfigGroup(). + */ + void readSettings( KConfigBase* pConfig = 0 ); + + /** + * Write the current configurable associations to @p config, + * or (if @p config is zero) to the application's + * configuration file. + */ + void writeSettings( KConfigBase* pConfig = 0 ) const; + + QPopupMenu* createPopupMenu( QWidget* pParent, const KKeySequence& ); + + // Protected methods + protected: + void slotRemoveAction( KAccelAction* ); + + struct X; + void createKeyList( QValueVector& rgKeys ); + bool insertConnection( KAccelAction* ); + bool removeConnection( KAccelAction* ); + + virtual bool emitSignal( Signal ) = 0; + virtual bool connectKey( KAccelAction&, const KKeyServer::Key& ) = 0; + virtual bool connectKey( const KKeyServer::Key& ) = 0; + virtual bool disconnectKey( KAccelAction&, const KKeyServer::Key& ) = 0; + virtual bool disconnectKey( const KKeyServer::Key& ) = 0; + + protected: + struct ActionInfo + { + KAccelAction* pAction; + uint iSeq, iVariation; + //ActionInfo* pInfoNext; // nil if only one action uses this key. + + ActionInfo() { pAction = 0; iSeq = 0xffff; iVariation = 0xffff; } + ActionInfo( KAccelAction* _pAction, uint _iSeq, uint _iVariation ) + { pAction = _pAction; iSeq = _iSeq; iVariation = _iVariation; } + }; + typedef QMap KKeyToActionMap; + + KAccelActions m_rgActions; + KKeyToActionMap m_mapKeyToAction; + QValueList m_rgActionsNonUnique; + bool m_bNativeKeys; // Use native key codes instead of Qt codes + bool m_bEnabled; + bool m_bConfigIsGlobal; + QString m_sConfigGroup; + bool m_bAutoUpdate; + KAccelAction* mtemp_pActionRemoving; + + private: + KAccelBase& operator =( const KAccelBase& ); + + friend class KAccelActions; +}; + +#endif // _KACCELBASE_H diff --git a/extra/kde340/kicontheme.h b/extra/kde340/kicontheme.h new file mode 100644 index 0000000..95fbd8f --- /dev/null +++ b/extra/kde340/kicontheme.h @@ -0,0 +1,355 @@ +/* vi: ts=8 sts=4 sw=4 + * + * This file is part of the KDE project, module kdecore. + * Copyright (C) 2000 Geert Jansen + * Antonio Larrosa + * + * This is free software; it comes under the GNU Library General + * Public License, version 2. See the file "COPYING.LIB" for the + * exact licensing terms. + * + */ + +#ifndef __KIconTheme_h_Included__ +#define __KIconTheme_h_Included__ + +#include +#include +#include +#include "kdelibs_export.h" + +class KConfig; +//class KIconThemeDir; + +class KIconThemePrivate; + +class KIconPrivate; + +/** + * One icon as found by KIconTheme. Also serves as a namespace containing + * icon related constants. + * @see KIconEffect + * @see KIconTheme + * @see KIconLoader + */ +class KDECORE_EXPORT KIcon +{ +public: + KIcon() { size = 0; } + + /** + * Return true if this icon is valid, false otherwise. + */ + bool isValid() const { return size != 0; } + + /** + * Defines the context of the icon. + */ + enum Context { + Any, ///< Some icon with unknown purpose. + Action, ///< An action icon (e.g. 'save', 'print'). + Application, ///< An icon that represents an application. + Device, ///< An icon that represents a device. + FileSystem, ///< An icon that represents a file system. + MimeType ///< An icon that represents a mime type (or file type). + }; + + /** + * The type of the icon. + */ + enum Type { + Fixed, ///< Fixed-size icon. + Scalable, ///< Scalable-size icon. + Threshold ///< A threshold icon. + }; + + /** + * The type of a match. + */ + enum MatchType { + MatchExact, ///< Only try to find an exact match. + MatchBest ///< Take the best match if there is no exact match. + + }; + + // if you add a group here, make sure to change the config reading in + // KIconLoader too + /** + * The group of the icon. + */ + enum Group { + /// No group + NoGroup=-1, + /// Desktop icons + Desktop=0, + /// First group + FirstGroup=0, + /// Toolbar icons + Toolbar, + /// Main toolbar icons + MainToolbar, + /// Small icons + Small, + /// Panel (Kicker) icons + Panel, + /// Last group + LastGroup, + /// User icons + User + }; + + /** + * These are the standard sizes for icons. + */ + enum StdSizes { + /// small icons for menu entries + SizeSmall=16, + /// slightly larger small icons for toolbars, panels, etc + SizeSmallMedium=22, + /// medium sized icons for the desktop + SizeMedium=32, + /// large sized icons for the panel + SizeLarge=48, + /// huge sized icons for iconviews + SizeHuge=64, + /// enormous sized icons for iconviews + SizeEnormous=128 + }; + + /** + * Defines the possible states of an icon. + */ + enum States { DefaultState, ///< The default state. + ActiveState, ///< Icon is active. + DisabledState, ///< Icon is disabled. + LastState ///< Last state (last constant) + }; + + /** + * This defines an overlay, a semi-transparent image that is + * projected onto the icon. They are used to show that the file + * represented by the icon is, for example, locked, zipped or hidden. + */ + enum Overlays { + LockOverlay=0x100, ///< a file is locked + ZipOverlay=0x200, ///< a file is zipped + LinkOverlay=0x400, ///< a file is a link + HiddenOverlay=0x800, ///< a file is hidden + ShareOverlay=0x1000, ///< a file is shared + OverlayMask = ~0xff + }; + + /** + * The size in pixels of the icon. + */ + int size; + + /** + * The context of the icon. + */ + Context context; + + /** + * The type of the icon: Fixed, Scalable or Threshold. + **/ + Type type; + + /** + * The threshold in case type == Threshold + */ + int threshold; + + /** + * The full path of the icon. + */ + QString path; + +private: + KIconPrivate *d; +}; + +inline KIcon::Group& operator++(KIcon::Group& group) { group = static_cast(group+1); return group; } +inline KIcon::Group operator++(KIcon::Group& group,int) { KIcon::Group ret = group; ++group; return ret; } + +/** + * Class to use/access icon themes in KDE. This class is used by the + * iconloader but can be used by others too. + * @see KIconLoader + */ +class KDECORE_EXPORT KIconTheme +{ +public: + /** + * Load an icon theme by name. + * @param name the name of the theme (e.g. "hicolor" or "keramik") + * @param appName the name of the application. Can be null. This argument + * allows applications to have themed application icons. + */ + KIconTheme(const QString& name, const QString& appName=QString::null); + ~KIconTheme(); + + /** + * The stylized name of the icon theme. + * @return the (human-readable) name of the theme + */ + QString name() const { return mName; } + + /** + * A description for the icon theme. + * @return a human-readable description of the theme, QString::null + * if there is none + */ + QString description() const { return mDesc; } + + /** + * Return the name of the "example" icon. This can be used to + * present the theme to the user. + * @return the name of the example icon, QString::null if there is none + */ + QString example() const; + + /** + * Return the name of the screenshot. + * @return the name of the screenshot, QString::null if there is none + */ + QString screenshot() const; + + /** + * Returns the name of this theme's link overlay. + * @return the name of the link overlay + */ + QString linkOverlay() const; + + /** + * Returns the name of this theme's zip overlay. + * @return the name of the zip overlay + */ + QString zipOverlay() const; + + /** + * Returns the name of this theme's lock overlay. + * @return the name of the lock overlay + */ + QString lockOverlay() const; + + /** + * Returns the name of this theme's share overlay. + * @return the name of the share overlay + * @since 3.1 + */ + QString shareOverlay () const; + + /** + * Returns the toplevel theme directory. + * @return the directory of the theme + */ + QString dir() const { return mDir; } + + /** + * The themes this icon theme falls back on. + * @return a list of icon themes that are used as fall-backs + */ + QStringList inherits() const { return mInherits; } + + /** + * The icon theme exists? + * @return true if the icon theme is valid + */ + bool isValid() const; + + /** + * The icon theme should be hidden to the user? + * @return true if the icon theme is hidden + * @since 3.1 + */ + bool isHidden() const; + + /** + * The minimum display depth required for this theme. This can either + * be 8 or 32. + * @return the minimum bpp (8 or 32) + */ + int depth() const { return mDepth; } + + /** + * The default size of this theme for a certain icon group. + * @param group The icon group. See KIcon::Group. + * @return The default size in pixels for the given icon group. + */ + int defaultSize(KIcon::Group group) const; + + /** + * Query available sizes for a group. + * @param group The icon group. See KIcon::Group. + * @return a list of available sized for the given group + */ + QValueList querySizes(KIcon::Group group) const; + + /** + * Query available icons for a size and context. + * @param size the size of the icons + * @param context the context of the icons + * @return the list of icon names + */ + QStringList queryIcons(int size, KIcon::Context context = KIcon::Any) const; + + /** + * Query available icons for a context and preferred size. + * @param size the size of the icons + * @param context the context of the icons + * @return the list of icon names + */ + QStringList queryIconsByContext(int size, KIcon::Context context = KIcon::Any) const; + + + /** + * Lookup an icon in the theme. + * @param name The name of the icon, without extension. + * @param size The desired size of the icon. + * @param match The matching mode. KIcon::MatchExact returns an icon + * only if matches exactly. KIcon::MatchBest returns the best matching + * icon. + * @return A KIcon class that describes the icon. If an icon is found, + * @see KIcon::isValid will return true, and false otherwise. + */ + KIcon iconPath(const QString& name, int size, KIcon::MatchType match) const; + + /** + * List all icon themes installed on the system, global and local. + * @return the list of all icon themes + */ + static QStringList list(); + + /** + * Returns the current icon theme. + * @return the name of the current theme + */ + static QString current(); + + /** + * Reconfigure the theme. + */ + static void reconfigure(); + + /** + * Returns the default icon theme. + * @return the name of the default theme name + * @since 3.1 + */ + static QString defaultThemeName(); + +private: + int mDefSize[8]; + QValueList mSizes[8]; + + int mDepth; + QString mDir, mName, mDesc; + QStringList mInherits; +// QPtrList mDirs; +// KIconThemePrivate *d; + + static QString *_theme; + static QStringList *_theme_list; +}; + +#endif diff --git a/extra/kde340/kkeyserver.h b/extra/kde340/kkeyserver.h new file mode 100644 index 0000000..ef673ea --- /dev/null +++ b/extra/kde340/kkeyserver.h @@ -0,0 +1,29 @@ +/* + Copyright (C) 2001 Ellis Whitehead + + Win32 port: + Copyright (C) 2004 Jaroslaw Staniek + + This library 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. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef _KKEYSERVER_H +#define _KKEYSERVER_H + +//FOR COMPATIBILITY +#include "kkeyserver_x11.h" + +#endif // !_KKEYSERVER_H diff --git a/extra/kde340/kkeyserver_x11.h b/extra/kde340/kkeyserver_x11.h new file mode 100644 index 0000000..dbd983f --- /dev/null +++ b/extra/kde340/kkeyserver_x11.h @@ -0,0 +1,461 @@ +/* + Copyright (C) 2001 Ellis Whitehead + + Win32 port: + Copyright (C) 2004 Jaroslaw Staniek + + This library 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. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef _KKEYSERVER_X11_H +#define _KKEYSERVER_X11_H + +#include "kshortcut.h" +#include "kkeynative.h" + +/** + * A collection of functions for the conversion of key presses and + * their modifiers from the window system specific format + * to the generic format and vice-versa. + */ +namespace KKeyServer +{ + /** + * Supplement enum KKey::ModFlag + * @since 3.1 + */ + enum ExtraModFlag { MODE_SWITCH = 0x2000 }; + + /** + * Represents a key symbol. + * @see KKey + * @see KKeyServer + */ + struct KDECORE_EXPORT Sym + { + public: + /// the actual value of the symbol + uint m_sym; + + /// Creates a null symbol. + Sym() + { m_sym = 0; } + /** + * Creates asymbol with the given value. + * @param sym the value + */ + Sym( uint sym ) + { m_sym = sym; } + /** + * Creates a symbol from the given string description. + * @param s the description of the symbol + * @see toString() + */ + Sym( const QString& s ) + { init( s ); } + + /** + * Initializes the symbol with the given Qt key code. + * @param keyQt the qt key code + * @return true if successful, false otherwise + * @see Qt::Key + */ + bool initQt( int keyQt ); + + /** + * Initializes the key with the given string description. + * @param s the string description + * @return true if successful, false otherwise + * @see toString() + */ + bool init( const QString &s ); + + /** + * Returns the qt key code of the symbol. + * @return the qt key code + */ + int qt() const; + + /** + * @internal + */ + QString toStringInternal() const; + + /** + * Returns the string representation of the symbol. + * @return the string representation of the symbol + */ + QString toString() const; + + /** + * Returns the mods that are required for this symbol as + * ORed KKey::ModFlag's. For example, Break requires a + * Ctrl to be valid. + * @return the required KKey::ModFlag's + * @see KKey::ModFlag + */ + uint getModsRequired() const; + + /** + * TODO: please find out what this method does and document it + */ + uint getSymVariation() const; + + /** + * Casts the symbol to its integer representation. + */ + operator uint() const { return m_sym; } + + /** + * Overloaded operator to convert ints to Sym. + */ + Sym& operator =( uint sym ) { m_sym = sym; return *this; } + + private: + QString toString( bool bUserSpace ) const; + + static void capitalizeKeyname( QString& ); + }; + + /** + * Represents a key press. + * @see KKey + */ + struct KDECORE_EXPORT Key + { + /// Code for native Keys in Qt + enum { CODE_FOR_QT = 256 }; + + /// The code of the key + uint m_code; + + /// The modifiers of the key + uint m_mod; + + /// The symbol of the key + uint m_sym; + + /** + * Initializes the key with a KKey. + * @param key the key to get the data from + * @param bQt true to take the Qt keycode, false + * for the native key code + * @see Qt::Key + * @see KKeyNative + */ + bool init( const KKey& key, bool bQt ); + + /** + * Checks whether the key code is a native code. + * @return true if native code of the window system, + * false if it is a Qt keycode + * @see Qt::Key + * @see KKeyNative + */ + bool isNative() const { return m_code != CODE_FOR_QT; } + + /** + * Returns the code of the key. + * @return the code of the key + */ + uint code() const { return m_code; } + + /** + * Returns the modifiers of the key. + * @return the modifiers of the key + */ + uint mod() const { return m_mod; } + + /** + * Returns the symbol of the key. + * @return the symbol of the key + */ + uint sym() const { return m_sym; } + + /** + * Returns the qt key code. + * @return the qt key code + */ + int keyCodeQt() const { return (int) m_sym; } + + /** + * Sets the qt key code. + * @param keyQt the qt key code + */ + void setKeycodeQt( int keyQt ) + { m_code = CODE_FOR_QT; m_sym = keyQt; } + + /** + * Initializes this key with a KKeyNative. + * @return this key + */ + Key& operator =( const KKeyNative& key ); + + /** + * Compares this key with the given Key object. Returns a + * negative number if the given Key is larger, 0 if they + * are equal and a positive number this Key is larger. The + * returned value is the difference between the symbol, modifier + * or code, whatever is non-zero first. + * + * @param key the key to compare with this key + * @return a negative number if the given Key is larger, 0 if + * they are equal and a positive number this Key is larger + */ + int compare( const Key& key ) const; + + /** + * Compares the symbol, modifiers and code of both keys. + * @see compare() + */ + bool operator ==( const Key& b ) const + { return compare( b ) == 0; } + + /** + * Compares the symbol, modifiers and code of both keys. + * @see compare() + */ + bool operator <( const Key& b ) const + { return compare( b ) < 0; } + + /** + * Converts this Key to a KKey. + * @return the KKey + */ + KKey key() const; + }; + + /** + * TODO: please document this class + */ + struct KDECORE_EXPORT Variations + { + enum { MAX_VARIATIONS = 4 }; + + Key m_rgkey[MAX_VARIATIONS]; + uint m_nVariations; + + Variations() { m_nVariations = 0; } + + void init( const KKey&, bool bQt ); + + uint count() const { return m_nVariations; } + const Key& key( uint i ) const { return m_rgkey[i]; } + }; + + /// TODO: please document + KDECORE_EXPORT bool initializeMods(); + + /** + * Returns the equivalent X modifier mask of the given modifier flag. + * @param modFlag the generic flags to check + * @return the window system specific flags + */ + KDECORE_EXPORT uint modX( KKey::ModFlag modFlag ); + + /** + * Returns true if the current keyboard layout supports the Win key. + * Specifically, whether the Super or Meta keys are assigned to an X modifier. + * @return true if the keyboard has a Win key + * @see modXWin() + */ + KDECORE_EXPORT bool keyboardHasWinKey(); + + /** + * Returns the X11 Shift modifier mask/flag. + * @return the X11 Shift modifier mask/flag. + * @see accelModMaskX() + */ + KDECORE_EXPORT uint modXShift(); + + /** + * Returns the X11 Lock modifier mask/flag. + * @return the X11 Lock modifier mask/flag. + * @see accelModMaskX() + */ + KDECORE_EXPORT uint modXLock(); + + /** + * Returns the X11 Ctrl modifier mask/flag. + * @return the X11 Ctrl modifier mask/flag. + * @see accelModMaskX() + */ + KDECORE_EXPORT uint modXCtrl(); + + /** + * Returns the X11 Alt (Mod1) modifier mask/flag. + * @return the X11 Alt (Mod1) modifier mask/flag. + * @see accelModMaskX() + */ + KDECORE_EXPORT uint modXAlt(); + + /** + * Returns the X11 NumLock modifier mask/flag. + * @return the X11 NumLock modifier mask/flag. + * @see accelModMaskX() + */ + KDECORE_EXPORT uint modXNumLock(); + + /** + * Returns the X11 Win (Mod3) modifier mask/flag. + * @return the X11 Win (Mod3) modifier mask/flag. + * @see keyboardHasWinKey() + * @see accelModMaskX() + */ + KDECORE_EXPORT uint modXWin(); + + /** + * Returns the X11 ScrollLock modifier mask/flag. + * @return the X11 ScrollLock modifier mask/flag. + * @see accelModMaskX() + */ + KDECORE_EXPORT uint modXScrollLock(); + + /** + * Returns bitwise OR'ed mask containing Shift, Ctrl, Alt, and + * Win (if available). + * @see modXShift() + * @see modXLock() + * @see modXCtrl() + * @see modXAlt() + * @see modXNumLock() + * @see modXWin() + * @see modXScrollLock() + */ + KDECORE_EXPORT uint accelModMaskX(); + + /** + * Extracts the symbol from the given Qt key and + * converts it to a symbol. + * @param keyQt the qt key code + * @param sym if successful, the symbol will be written here + * @return true if successful, false otherwise + * @see Qt::Key + * @see Sym + */ + KDECORE_EXPORT bool keyQtToSym( int keyQt, uint& sym ); + + /** + * Extracts the modifiers from the given Qt key and + * converts them in a mask of ORed KKey::ModFlag modifiers. + * @param keyQt the qt key code + * @param mod if successful, the modifiers will be written here + * @return true if successful, false otherwise + * @see Qt::Key + */ + KDECORE_EXPORT bool keyQtToMod( int keyQt, uint& mod ); + + /** + * Converts the given symbol to a Qt key code. + * @param sym the symbol + * @param keyQt if successful, the qt key code will be written here + * @return true if successful, false otherwise + * @see Qt::Key + * @see Sym + */ + KDECORE_EXPORT bool symToKeyQt( uint sym, int& keyQt ); + + /** + * Converts the mask of ORed KKey::ModFlag modifiers to + * a mask of ORed Qt key code modifiers. + * @param mod the mask of KKey::ModFlag modifiers + * @param modQt the mask of Qt key code modifiers will be written here, + * if successful + * @return true if successful, false otherwise + * @see Qt::Key + * @see KKey + */ + KDECORE_EXPORT bool modToModQt( uint mod, int& modQt ); + + /** + * Converts the mask of ORed KKey::ModFlag modifiers to + * a mask of ORed X11 modifiers. + * @param mod the mask of KKey::ModFlag modifiers + * @param modX the mask of X11 modifiers will be written here, + * if successful + * @return true if successful, false otherwise + * @see KKey + */ + KDECORE_EXPORT bool modToModX( uint mod, uint& modX ); + + /** + * Converts the mask of ORed X11 modifiers to + * a mask of ORed Qt key code modifiers. + * @param modX the mask of X11 modifiers + * @param modQt the mask of Qt key code modifiers will be written here + * if successful + * @return true if successful, false otherwise + * @see Qt::Key + */ + //wrapped for win32 + KDECORE_EXPORT bool modXToModQt( uint modX, int& modQt ); + + /** + * Converts the Qt-compatible button state to x11 modifier. + */ + KDECORE_EXPORT int qtButtonStateToMod( Qt::ButtonState s ); + + /** + * Converts the mask of ORed X11 modifiers to + * a mask of ORed KKey::ModFlag modifiers. + * @param modX the mask of X11 modifiers + * @param mod the mask of KKey::ModFlag modifiers will be written here, + * if successful + * @return true if successful, false otherwise + * @see KKey + */ + KDECORE_EXPORT bool modXToMod( uint modX, uint& mod ); + + /** + * Converts a X11 key code and a mask of ORed X11 modifiers + * into a X11 symbol. + * converts it to a symbol. + * @param codeX the X11 key code + * @param modX the mask of ORed X11 modifiers + * @param symX if successful, the X11 symbol will be written here + * @return true if successful, false otherwise + * @see Qt::Key + * @see Sym + */ + KDECORE_EXPORT bool codeXToSym( uchar codeX, uint modX, uint& symX ); + + /** + * @internal + */ + KDECORE_EXPORT QString modToStringInternal( uint mod ); + + /** + * Converts the mask of ORed KKey::ModFlag modifiers to a + * user-readable string. + * @param mod the mask of ORed KKey::ModFlag modifiers + * @return the user-readable string + */ + KDECORE_EXPORT QString modToStringUser( uint mod ); + + /** + * @internal + * Unimplemented? + */ + KDECORE_EXPORT bool stringToSymMod( const QString&, uint& sym, uint& mod ); + + /** + * @internal + * Unimplemented? + */ + KDECORE_EXPORT void keyQtToKeyX( uint keyCombQt, unsigned char *pKeyCodeX, uint *pKeySymX, uint *pKeyModX ); +} + +#endif // !_KKEYSERVER_X11_H diff --git a/extra/kde340/konsole_part.h b/extra/kde340/konsole_part.h new file mode 100644 index 0000000..a899374 --- /dev/null +++ b/extra/kde340/konsole_part.h @@ -0,0 +1,228 @@ +/* + This file is part of the KDE system + Copyright (C) 1999,2000 Boloni Laszlo + + 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. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. + */ + +#ifndef __KONSOLE_PART_H__ +#define __KONSOLE_PART_H__ + +#include +#include + + +#include + +#include + +//#include "schema.h" +//#include "session.h" + +class KInstance; +class konsoleBrowserExtension; +class QPushButton; +class QSpinBox; +class KPopupMenu; +class QCheckBox; +class KRootPixmap; +class KToggleAction; +class KSelectAction; + +namespace KParts { class GUIActivateEvent; } + +class konsoleFactory : public KParts::Factory +{ + Q_OBJECT +public: + konsoleFactory(); + virtual ~konsoleFactory(); + + virtual KParts::Part* createPartObject(QWidget *parentWidget = 0, const char *widgetName = 0, + QObject* parent = 0, const char* name = 0, + const char* classname = "KParts::Part", + const QStringList &args = QStringList()); + + static KInstance *instance(); + + private: + static KInstance *s_instance; + static KAboutData *s_aboutData; +}; + +////////////////////////////////////////////////////////////////////// + +class konsolePart: public KParts::ReadOnlyPart, public TerminalInterface +{ + Q_OBJECT + public: + konsolePart(QWidget *parentWidget, const char *widgetName, QObject * parent, const char *name, const char *classname = 0); + virtual ~konsolePart(); + +signals: + void processExited(); + void receivedData( const QString& s ); + protected: + virtual bool openURL( const KURL & url ); + virtual bool openFile() {return false;} // never used + virtual bool closeURL() {return true;} + virtual void guiActivateEvent( KParts::GUIActivateEvent * event ); + + protected slots: + void showShell(); + void slotProcessExited(); + void slotReceivedData( const QString& s ); + +// void doneSession(TESession*); + void sessionDestroyed(); +// void configureRequest(TEWidget*,int,int x,int y); + void updateTitle(); + void enableMasterModeConnections(); + + private slots: + void emitOpenURLRequest(const QString &url); + + void readProperties(); + void saveProperties(); + + void sendSignal(int n); + void closeCurrentSession(); + + void notifySize(int,int); + + void slotToggleFrame(); + void slotSelectScrollbar(); + void slotSelectFont(); + void schema_menu_check(); + void keytab_menu_activated(int item); + void updateSchemaMenu(); + void setSchema(int n); + void pixmap_menu_activated(int item); + void schema_menu_activated(int item); + void slotHistoryType(); + void slotSelectBell(); + void slotSelectLineSpacing(); + void slotBlinkingCursor(); + void slotWordSeps(); + void fontNotFound(); + void slotSetEncoding(); + void slotFontChanged(); + + private: + konsoleBrowserExtension *m_extension; + KURL currentURL; + + void makeGUI(); + void applySettingsToGUI(); + + void setFont(int fontno); +// void setSchema(ColorSchema* s); + void updateKeytabMenu(); + + bool doOpenStream( const QString& ); + bool doWriteStream( const QByteArray& ); + bool doCloseStream(); + + QWidget* parentWidget; +// TEWidget* te; +// TESession* se; +// ColorSchemaList* colors; + KRootPixmap* rootxpm; + + KToggleAction* blinkingCursor; + KToggleAction* showFrame; + + KSelectAction* selectBell; + KSelectAction* selectFont; + KSelectAction* selectLineSpacing; + KSelectAction* selectScrollbar; + KSelectAction* selectSetEncoding; + + KPopupMenu* m_keytab; + KPopupMenu* m_schema; + KPopupMenu* m_signals; + KPopupMenu* m_options; + KPopupMenu* m_popupMenu; + + QFont defaultFont; + + QString pmPath; // pixmap path + QString s_schema; + QString s_kconfigSchema; + QString s_word_seps; // characters that are considered part of a word + QString fontNotFound_par; + + bool b_framevis:1; + bool b_histEnabled:1; + + int curr_schema; // current schema no + int n_bell; + int n_font; + int n_keytab; + int n_render; + int n_scroll; + unsigned m_histSize; + bool m_runningShell; + bool m_streamEnabled; + int n_encoding; + +public: + // these are the implementations for the TermEmuInterface + // functions... + void startProgram( const QString& program, + const QStrList& args ); + void showShellInDir( const QString& dir ); + void sendInput( const QString& text ); +}; + +////////////////////////////////////////////////////////////////////// + +/*class HistoryTypeDialog : public KDialogBase +{ + Q_OBJECT +public: + HistoryTypeDialog(const HistoryType& histType, + unsigned int histSize, + QWidget *parent); + +public slots: + void slotDefault(); + void slotSetUnlimited(); + void slotHistEnable(bool); + + unsigned int nbLines() const; + bool isOn() const; + +protected: + QCheckBox* m_btnEnable; + QSpinBox* m_size; + QPushButton* m_setUnlimited; +};*/ + +////////////////////////////////////////////////////////////////////// + +class konsoleBrowserExtension : public KParts::BrowserExtension +{ + Q_OBJECT + friend class konsolePart; + public: + konsoleBrowserExtension(konsolePart *parent); + virtual ~konsoleBrowserExtension(); + + void emitOpenURLRequest(const KURL &url); +}; + +#endif diff --git a/extra/kde340/kpanelmenu.h b/extra/kde340/kpanelmenu.h new file mode 100644 index 0000000..61ec7f1 --- /dev/null +++ b/extra/kde340/kpanelmenu.h @@ -0,0 +1,182 @@ +/***************************************************************** + +Copyright (c) 1996-2000 the kicker authors. See file AUTHORS. + (c) 2001 Michael Goffioul + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN +AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +******************************************************************/ + +#ifndef __KPANELMENU_H__ +#define __KPANELMENU_H__ + +#include +#include +#include + +class KPanelMenuPrivate; + +/** + * @short Base class to build dynamically loaded menu entries for the K-menu, or the panel. + * + * This class allows to build menu entries that will be dynamically added either to + * the K-menu, or to the panel as a normal button. These dynamic menus are located + * in shared libraries that will be loaded at runtime by Kicker (the %KDE panel). + * + * To build such a menu, you have to inherit this class and implement the pure virtual + * functions #initialize() and slotExec(). You also have to provide a factory + * object in your library, see KLibFactory. This factory is only used to construct + * the menu object. + * + * Finally, you also have to provide a desktop file describing your dynamic menu. The + * relevant entries are: Name, Comment, Icon and X-KDE-Library (which contains the + * library name without any extension). This desktop file has to be installed in + * $KDEDIR/share/apps/kicker/menuext/. + * + * @author The kicker maintainers, Michael Goffioul + */ +class KDEUI_EXPORT KPanelMenu : public KPopupMenu +{ + Q_OBJECT + +public: + /** + * Construct a KPanelMenu object. This is the normal constructor to use when + * building extrernal menu entries. + */ + KPanelMenu(QWidget *parent=0, const char *name=0); + /** + * Constructor used internally by Kicker. You don't really want to use it. + * @param startDir a directory to associate with this menu + * @param parent parent object + * @param name name of the object + * @see path(), setPath() + */ + KPanelMenu(const QString &startDir, QWidget *parent=0, const char *name=0); + /** + * Destructor. + */ + virtual ~KPanelMenu(); + + /** + * Get the directory path associated with this menu, or QString::null if + * there's no such associated path. + * @return the associated directory path + * @see setPath() + */ + const QString& path() const; + /** + * Set a directory path to be associated with this menu. + * @param p the directory path + * @see path() + */ + void setPath(const QString &p); + /** + * Tell if the menu has been initialized, that is it already contains items. + * This is useful when you need to know if you have to clear the menu, or to + * fill it. + * @return the initial state + * @see setInitialized(), initialize() + */ + bool initialized() const; + /** + * Set the initial state. Set it to true when you menu is filled with the items + * you want. + * @param on the initial state + * @see initialized(), initialize() + */ + void setInitialized(bool on); + + /** + * Disable the automatic clearing of the menu. Kicker uses a cache system for + * its menus. After a specific configurable delay, the menu will be cleared. + * Use this function if you want to disable kicker's cache system, and avoid + * the clearing of your menu. + */ + void disableAutoClear(); + +public slots: + /** + * Reinitialize the menu: the menu is first cleared, the initial state is set + * to false, and finally #initialize() is called. Use this if you want to + * refill your menu immediately. + */ + void reinitialize(); + /** + * Deinitialize the menu: the menu is cleared and the initialized state is set to + * false. #initialize() is NOT called. It will be called before the menu is + * next shown, however. Use this slot if you want a delayed reinitialization. + * @since 3.1 + */ + void deinitialize(); + +protected slots: + /** + * This slot is called just before the menu is shown. This allows your menu + * to update itself if needed. However you should instead re-implement + * #initialize to provide this feature. This function is responsible for + * the cache system handling, so if you re-implement it, you should call + * the base function also. Calls #initialize(). + * @see disableAutoClear() + */ + virtual void slotAboutToShow(); + /** + * This is slot is called when an item from the menu has been selected. Your + * applet is then supposed to perform some action. You must re-implement this + * function. + * @param id the ID associated with the selected item + */ + virtual void slotExec(int id) = 0; + /** + * This slots is called to initialize the menu. It is called automatically by + * slotAboutToShow(). By re-implementing this functions, you can reconstruct + * the menu before it is being shown. At the end of this function, you should + * call setInitialize() with true to tell the system that the menu is OK. + * You applet must re-implement this function. + * @see slotAboutToShow(), initialized(), setInitialized() + */ + virtual void initialize() = 0; + /** + * Clears the menu, and update the initial state accordingly. + * @see initialized() + */ + void slotClear(); + +protected: + /** + * Re-implemented for internal reasons. + */ + virtual void hideEvent(QHideEvent *ev); + /** + * For internal use only. Used by constructors. + */ + void init(const QString& path = QString::null); + +protected: + virtual void virtual_hook( int id, void* data ); +private: + void internalInitialize(); + KPanelMenuPrivate *d; +}; + +#define K_EXPORT_KICKER_MENUEXT( libname, classname ) \ + K_EXPORT_COMPONENT_FACTORY( \ + kickermenu_##libname, \ + KGenericFactory("libkickermenu_" #libname) ) + +#endif diff --git a/extra/kde340/krecentdirs.h b/extra/kde340/krecentdirs.h new file mode 100644 index 0000000..078efcc --- /dev/null +++ b/extra/kde340/krecentdirs.h @@ -0,0 +1,70 @@ +/* -*- c++ -*- + * Copyright (C)2000 Waldo Bastian + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * + */ +#ifndef __KRECENTDIRS_H +#define __KRECENTDIRS_H + +#include + +#include + +/** + * The goal of this class is to make sure that, when the user needs to + * specify a file via the file selection dialog, this dialog will start + * in the directory most likely to contain the desired files. + * + * This works as follows: Each time the file selection dialog is + * shown, the programmer can specify a "file-class". The file-dialog will + * then start with the directory associated with this file-class. When + * the dialog closes, the directory currently shown in the file-dialog + * will be associated with the file-class. + * + * A file-class can either start with ':' or with '::'. If it starts with + * a single ':' the file-class is specific to the current application. + * If the file-class starts with '::' it is global to all applications. + */ +class KIO_EXPORT KRecentDirs +{ +public: + /** + * Returns a list of directories associated with this file-class. + * The most recently used directory is at the front of the list. + */ + static QStringList list(const QString &fileClass); + + /** + * Returns the most recently used directory accociated with this file-class. + */ + static QString dir(const QString &fileClass); + + /** + * Associates @p directory with @p fileClass + */ + static void add(const QString &fileClass, const QString &directory); +}; + +#endif diff --git a/extra/kde340/ksharedptr.h b/extra/kde340/ksharedptr.h new file mode 100644 index 0000000..ada0841 --- /dev/null +++ b/extra/kde340/ksharedptr.h @@ -0,0 +1,175 @@ +/* This file is part of the KDE libraries + Copyright (c) 1999 Waldo Bastian + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License version 2 as published by the Free Software Foundation. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ +#ifndef KSharedPTR_H +#define KSharedPTR_H + +#include "kdelibs_export.h" + +/** + * Reference counting for shared objects. If you derive your object + * from this class, then you may use it in conjunction with + * KSharedPtr to control the lifetime of your object. + * + * Specifically, all classes that derive from KShared have an internal + * counter keeping track of how many other objects have a reference to + * their object. If used with KSharedPtr, then your object will + * not be deleted until all references to the object have been + * released. + * + * You should probably not ever use any of the methods in this class + * directly -- let the KSharedPtr take care of that. Just derive + * your class from KShared and forget about it. + * + * @author Waldo Bastian + */ +class KDECORE_EXPORT KShared { +public: + /** + * Standard constructor. This will initialize the reference count + * on this object to 0. + */ + KShared() : count(0) { } + + /** + * Copy constructor. This will @em not actually copy the objects + * but it will initialize the reference count on this object to 0. + */ + KShared( const KShared & ) : count(0) { } + + /** + * Overloaded assignment operator. + */ + KShared &operator=(const KShared & ) { return *this; } + + /** + * Increases the reference count by one. + */ + void _KShared_ref() const { count++; } + + /** + * Releases a reference (decreases the reference count by one). If + * the count goes to 0, this object will delete itself. + */ + void _KShared_unref() const { if (!--count) delete this; } + + /** + * Return the current number of references held. + * + * @return Number of references + */ + int _KShared_count() const { return count; } + +protected: + virtual ~KShared() { } +private: + mutable int count; +}; + +/** + * Can be used to control the lifetime of an object that has derived + * KShared. As long a someone holds a KSharedPtr on some KShared + * object it won't become deleted but is deleted once its reference + * count is 0. This struct emulates C++ pointers virtually perfectly. + * So just use it like a simple C++ pointer. + * + * KShared and KSharedPtr are preferred over QShared / QSharedPtr + * since they are more safe. + * + * WARNING: Please note that this class template provides an implicit + * conversion to T*. Do *not* change this pointer or the pointee (don't + * call delete on it, for instance) behind KSharedPtr's back. + * + * @author Waldo Bastian + */ +template< class T > +class KSharedPtr +{ +public: +/** + * Creates a null pointer. + */ + KSharedPtr() + : ptr(0) { } + /** + * Creates a new pointer. + * @param t the pointer + */ + KSharedPtr( T* t ) + : ptr(t) { if ( ptr ) ptr->_KShared_ref(); } + + /** + * Copies a pointer. + * @param p the pointer to copy + */ + KSharedPtr( const KSharedPtr& p ) + : ptr(p.ptr) { if ( ptr ) ptr->_KShared_ref(); } + + /** + * Unreferences the object that this pointer points to. If it was + * the last reference, the object will be deleted. + */ + ~KSharedPtr() { if ( ptr ) ptr->_KShared_unref(); } + + KSharedPtr& operator= ( const KSharedPtr& p ) { + if ( ptr == p.ptr ) return *this; + if ( ptr ) ptr->_KShared_unref(); + ptr = p.ptr; + if ( ptr ) ptr->_KShared_ref(); + return *this; + } + KSharedPtr& operator= ( T* p ) { + if ( ptr == p ) return *this; + if ( ptr ) ptr->_KShared_unref(); + ptr = p; + if ( ptr ) ptr->_KShared_ref(); + return *this; + } + bool operator== ( const KSharedPtr& p ) const { return ( ptr == p.ptr ); } + bool operator!= ( const KSharedPtr& p ) const { return ( ptr != p.ptr ); } + bool operator== ( const T* p ) const { return ( ptr == p ); } + bool operator!= ( const T* p ) const { return ( ptr != p ); } + bool operator!() const { return ( ptr == 0 ); } + operator T*() const { return ptr; } + + /** + * Returns the pointer. + * @return the pointer + */ + T* data() { return ptr; } + + /** + * Returns the pointer. + * @return the pointer + */ + const T* data() const { return ptr; } + + const T& operator*() const { return *ptr; } + T& operator*() { return *ptr; } + const T* operator->() const { return ptr; } + T* operator->() { return ptr; } + + /** + * Returns the number of references. + * @return the number of references + */ + int count() const { return ptr->_KShared_count(); } // for debugging purposes +private: + T* ptr; +}; + +#endif diff --git a/extra/kde340/ksycocafactory.h b/extra/kde340/ksycocafactory.h new file mode 100644 index 0000000..65bb9d9 --- /dev/null +++ b/extra/kde340/ksycocafactory.h @@ -0,0 +1,143 @@ +/* This file is part of the KDE libraries + * Copyright (C) 1999 Waldo Bastian + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License version 2 as published by the Free Software Foundation; + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public License + * along with this library; see the file COPYING.LIB. If not, write to + * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA. + **/ + +#ifndef __ksycocafactory_h__ +#define __ksycocafactory_h__ + +#include "ksycocatype.h" +#include "ksycocaentry.h" + +#include +#include +class KSycoca; +class QStringList; +class QString; +class KSycocaDict; +class KSycocaResourceList; + +typedef QDict KSycocaEntryDict; + +/** + * @internal + * Base class for sycoca factories + */ +class KDECORE_EXPORT KSycocaFactory +{ +public: + virtual KSycocaFactoryId factoryId() const = 0; + +protected: // virtual class + /** + * Create a factory which can be used to lookup from/create a database + * (depending on KSycoca::isBuilding()) + */ + KSycocaFactory( KSycocaFactoryId factory_id ); + +public: + virtual ~KSycocaFactory(); + + /** + * @return the position of the factory in the sycoca file + */ + int offset() { return mOffset; } + + /** + * @return the dict, for special use by KBuildSycoca + */ + KSycocaEntryDict * entryDict() { return m_entryDict; } + + /** + * Construct an entry from a config file. + * To be implemented in the real factories. + */ + virtual KSycocaEntry *createEntry(const QString &file, const char *resource) = 0; + + /** + * Add an entry + */ + virtual void addEntry(KSycocaEntry *newEntry, const char *resource); + + /** + * Remove an entry + * Not very fast, use with care. O(N) + */ + void removeEntry(KSycocaEntry *newEntry); + + /** + * Read an entry from the database + */ + virtual KSycocaEntry *createEntry(int offset)=0; + + /** + * Get a list of all entries from the database. + */ + KSycocaEntry::List allEntries(); + + /** + * Saves all entries it maintains as well as index files + * for these entries to the stream 'str'. + * + * Also sets mOffset to the starting position. + * + * The stream is positioned at the end of the last index. + * + * Don't forget to call the parent first when you override + * this function. + */ + virtual void save(QDataStream &str); + + /** + * Writes out a header to the stream 'str'. + * The baseclass positions the stream correctly. + * + * Don't forget to call the parent first when you override + * this function. + */ + virtual void saveHeader(QDataStream &str); + + /** + * @return the resources for which this factory is responsible. + */ + virtual const KSycocaResourceList * resourceList() const { return m_resourceList; } + +private: + int mOffset; + +protected: + int m_sycocaDictOffset; + int m_beginEntryOffset; + int m_endEntryOffset; + QDataStream *m_str; + + KSycocaResourceList *m_resourceList; + KSycocaEntryDict *m_entryDict; + KSycocaDict *m_sycocaDict; +protected: + virtual void virtual_hook( int id, void* data ); +}; + +/** This, instead of a typedef, allows to declare "class ..." in header files + * @internal + */ +class KDECORE_EXPORT KSycocaFactoryList : public QPtrList +{ +public: + KSycocaFactoryList() { } +}; + +#endif diff --git a/extra/kde340/ktoolbarbutton.h b/extra/kde340/ktoolbarbutton.h new file mode 100644 index 0000000..7b748a0 --- /dev/null +++ b/extra/kde340/ktoolbarbutton.h @@ -0,0 +1,329 @@ +/* This file is part of the KDE libraries + Copyright (C) 1997, 1998 Stephan Kulow (coolo@kde.org) + (C) 1997, 1998 Sven Radej (radej@kde.org) + (C) 1997, 1998 Mark Donohoe (donohoe@kde.org) + (C) 1997, 1998 Matthias Ettrich (ettrich@kde.org) + (C) 2000 Kurt Granroth (granroth@kde.org) + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License version 2 as published by the Free Software Foundation. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef _KTOOLBARBUTTON_H +#define _KTOOLBARBUTTON_H + +#include +#include +#include +#include +#include + +class KToolBar; +class KToolBarButtonPrivate; +class KInstance; +class QEvent; +class QPopupMenu; +class QPainter; + +/** + * A toolbar button. This is used internally by KToolBar, use the + * KToolBar methods instead. + * @internal + */ +class KDEUI_EXPORT KToolBarButton : public QToolButton +{ + Q_OBJECT + +public: + /** + * Construct a button with an icon loaded by the button itself. + * This will trust the button to load the correct icon with the + * correct size. + * + * @param icon Name of icon to load (may be absolute or relative) + * @param id Id of this button + * @param parent This button's parent + * @param name This button's internal name + * @param txt This button's text (in a tooltip or otherwise) + * @param _instance the instance to use for this button + */ + KToolBarButton(const QString& icon, int id, QWidget *parent, + const char *name=0L, const QString &txt=QString::null, + KInstance *_instance = KGlobal::instance()); + + /** + * Construct a button with an existing pixmap. It is not + * recommended that you use this as the internal icon loading code + * will almost always get it "right". + * + * @param pixmap Name of icon to load (may be absolute or relative) + * @param id Id of this button + * @param parent This button's parent + * @param name This button's internal name + * @param txt This button's text (in a tooltip or otherwise) + */ + KToolBarButton(const QPixmap& pixmap, int id, QWidget *parent, + const char *name=0L, const QString &txt=QString::null); + + /** + * Construct a separator button + * + * @param parent This button's parent + * @param name This button's internal name + */ + KToolBarButton(QWidget *parent=0L, const char *name=0L); + + /** + * Standard destructor + */ + ~KToolBarButton(); + +#ifndef KDE_NO_COMPAT + /** + * @deprecated + * Set the pixmap directly for this button. This pixmap should be + * the active one... the dimmed and disabled pixmaps are constructed + * based on this one. However, don't use this function unless you + * are positive that you don't want to use setIcon. + * + * @param pixmap The active pixmap + */ + // this one is from QButton, so #ifdef-ing it out doesn't break BC + virtual void setPixmap(const QPixmap &pixmap) KDE_DEPRECATED; + + /** + * @deprecated + * Force the button to use this pixmap as the default one rather + * then generating it using effects. + * + * @param pixmap The pixmap to use as the default (normal) one + */ + void setDefaultPixmap(const QPixmap& pixmap) KDE_DEPRECATED; + + /** + * @deprecated + * Force the button to use this pixmap when disabled one rather then + * generating it using effects. + * + * @param pixmap The pixmap to use when disabled + */ + void setDisabledPixmap(const QPixmap& pixmap) KDE_DEPRECATED; +#endif + + /** + * Set the text for this button. The text will be either used as a + * tooltip (IconOnly) or will be along side the icon + * + * @param text The button (or tooltip) text + */ + virtual void setText(const QString &text); + + /** + * Set the icon for this button. The icon will be loaded internally + * with the correct size. This function is preferred over setIconSet + * + * @param icon The name of the icon + */ + virtual void setIcon(const QString &icon); + + /// @since 3.1 + virtual void setIcon( const QPixmap &pixmap ) + { QToolButton::setIcon( pixmap ); } + + /** + * Set the pixmaps for this toolbar button from a QIconSet. + * If you call this you don't need to call any of the other methods + * that set icons or pixmaps. + * @param iconset The iconset to use + */ + virtual void setIconSet( const QIconSet &iconset ); + +#ifndef KDE_NO_COMPAT + /** + * @deprecated + * Set the active icon for this button. The pixmap itself is loaded + * internally based on the icon size... .. the disabled and default + * pixmaps, however will only be constructed if generate is + * true. This function is preferred over setPixmap + * + * @param icon The name of the active icon + * @param generate If true, then the other icons are automagically + * generated from this one + */ + KDE_DEPRECATED void setIcon(const QString &icon, bool generate ) { Q_UNUSED(generate); setIcon( icon ); } + + /** + * @deprecated + * Force the button to use this icon as the default one rather + * then generating it using effects. + * + * @param icon The icon to use as the default (normal) one + */ + void setDefaultIcon(const QString& icon) KDE_DEPRECATED; + + /** + * @deprecated + * Force the button to use this icon when disabled one rather then + * generating it using effects. + * + * @param icon The icon to use when disabled + */ + void setDisabledIcon(const QString& icon) KDE_DEPRECATED; +#endif + + /** + * Turn this button on or off + * + * @param flag true or false + */ + void on(bool flag = true); + + /** + * Toggle this button + */ + void toggle(); + + /** + * Turn this button into a toggle button or disable the toggle + * aspects of it. This does not toggle the button itself. + * Use toggle() for that. + * + * @param toggle true or false + */ + void setToggle(bool toggle = true); + + /** + * Return a pointer to this button's popup menu (if it exists) + */ + QPopupMenu *popup(); + + /** + * Returns the button's id. + * @since 3.2 + */ + int id() const; + + /** + * Give this button a popup menu. There will not be a delay when + * you press the button. Use setDelayedPopup if you want that + * behavior. + * + * @param p The new popup menu + * @param unused Has no effect - ignore it. + */ + void setPopup (QPopupMenu *p, bool unused = false); + + /** + * Gives this button a delayed popup menu. + * + * This function allows you to add a delayed popup menu to the button. + * The popup menu is then only displayed when the button is pressed and + * held down for about half a second. + * + * @param p the new popup menu + * @param unused Has no effect - ignore it. + */ + void setDelayedPopup(QPopupMenu *p, bool unused = false); + + /** + * Turn this button into a radio button + * + * @param f true or false + */ + void setRadio(bool f = true); + + /** + * Toolbar buttons naturally will assume the global styles + * concerning icons, icons sizes, etc. You can use this function to + * explicitly turn this off, if you like. + * + * @param no_style Will disable styles if true + */ + void setNoStyle(bool no_style = true); + +signals: + /** + * Emitted when the toolbar button is clicked (with LMB or MMB) + */ + void clicked(int); + /** + * Emitted when the toolbar button is clicked (with any mouse button) + * @param state makes it possible to find out which button was pressed, + * and whether any keyboard modifiers were held. + * @since 3.4 + */ + void buttonClicked(int, Qt::ButtonState state); + void doubleClicked(int); + void pressed(int); + void released(int); + void toggled(int); + void highlighted(int, bool); + +public slots: + /** + * This slot should be called whenever the toolbar mode has + * potentially changed. This includes such events as text changing, + * orientation changing, etc. + */ + void modeChange(); + virtual void setTextLabel(const QString&, bool tipToo); + +protected: + void paletteChange(const QPalette &); + void leaveEvent(QEvent *e); + void enterEvent(QEvent *e); + void drawButton(QPainter *p); + bool eventFilter (QObject *o, QEvent *e); + /// @since 3.4 + void mousePressEvent( QMouseEvent * ); + /// @since 3.4 + void mouseReleaseEvent( QMouseEvent * ); + void showMenu(); + QSize sizeHint() const; + QSize minimumSizeHint() const; + QSize minimumSize() const; + + /// @since 3.1 + bool isRaised() const; + /// @since 3.1 + bool isActive() const; + /// @since 3.1 + int iconTextMode() const; + +protected slots: + void slotClicked(); + void slotPressed(); + void slotReleased(); + void slotToggled(); + void slotDelayTimeout(); + +protected: + virtual void virtual_hook( int id, void* data ); +private: + KToolBarButtonPrivate *d; +}; + +/** +* List of KToolBarButton objects. +* @internal +* @version $Id: ktoolbarbutton.h,v 1.39 2004/12/22 14:08:36 faure Exp $ +*/ +class KDEUI_EXPORT KToolBarButtonList : public QIntDict +{ +public: + KToolBarButtonList(); + ~KToolBarButtonList() {} +}; + +#endif diff --git a/extra/kde340/kurifilter.h b/extra/kde340/kurifilter.h new file mode 100644 index 0000000..21ad4ed --- /dev/null +++ b/extra/kde340/kurifilter.h @@ -0,0 +1,647 @@ +/* + * This file is part of the KDE libraries + * Copyright (C) 2000-2001,2003 Dawit Alemayehu + * + * Original author + * Copyright (C) 2000 Yves Arrouye + * + * + * This library 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. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public License + * along with this library; see the file COPYING.LIB. If not, write to + * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA. + **/ + +#ifndef __kurifilter_h__ +#define __kurifilter_h__ + +#include +#include +#include + +#include + +#ifdef Q_OS_WIN +#undef ERROR +#endif + +class KURIFilterPrivate; +class KURIFilterDataPrivate; + +class KCModule; + +/** +* A basic message object used for exchanging filtering +* information between the filter plugins and the application +* requesting the filtering service. +* +* Use this object if you require a more detailed information +* about the URI you want to filter. Any application can create +* an instance of this class and send it to KURIFilter to +* have the plugins fill out all possible information about the +* URI. +* +* \b Example +* +* \code +* QString text = "kde.org"; +* KURIFilterData d = text; +* bool filtered = KURIFilter::self()->filter( d ); +* cout << "URL: " << text.latin1() << endl +* << "Filtered URL: " << d.uri().url().latin1() << endl +* << "URI Type: " << d.uriType() << endl +* << "Was Filtered: " << filtered << endl; +* \endcode +* +* The above code should yield the following output: +* \code +* URI: kde.org +* Filtered URI: http://kde.org +* URI Type: 0 <== means NET_PROTOCOL +* Was Filtered: 1 <== means the URL was successfully filtered +* \endcode +* +* @short A message object for exchanging filtering URI info. +* @author Dawit Alemayehu +*/ + +class KIO_EXPORT KURIFilterData +{ +friend class KURIFilterPlugin; + +public: + /** + * Describes the type of the URI that was filtered. + * Here is a brief description of the types: + * + * @li NET_PROTOCOL - Any network protocol: http, ftp, nttp, pop3, etc... + * @li LOCAL_FILE - A local file whose executable flag is not set + * @li LOCAL_DIR - A local directory + * @li EXECUTABLE - A local file whose executable flag is set + * @li HELP - A man or info page + * @li SHELL - A shell executable (ex: echo "Test..." >> ~/testfile) + * @li BLOCKED - A URI that should be blocked/filtered (ex: ad filtering) + * @li ERROR - An incorrect URI (ex: "~johndoe" when user johndoe + * does not exist in that system ) + * @li UNKNOWN - A URI that is not identified. Default value when + * a KURIFilterData is first created. + */ + enum URITypes { NET_PROTOCOL=0, LOCAL_FILE, LOCAL_DIR, EXECUTABLE, HELP, SHELL, BLOCKED, ERROR, UNKNOWN }; + + /** + * Default constructor. + * + * Creates a URIFilterData object. + */ + KURIFilterData() { init(); } + + /** + * Creates a URIFilterData object from the given URL. + * + * @param url is the URL to be filtered. + */ + KURIFilterData( const KURL& url ) { init( url); } + + /** + * Creates a URIFilterData object from the given string. + * + * @param url is the string to be filtered. + */ + KURIFilterData( const QString& url ) { init( url ); } + + /** + * Copy constructor. + * + * Creates a URIFilterData object from another + * URI filter data object. + * + * @param data the uri filter data to be copied. + */ + KURIFilterData( const KURIFilterData& data); + + /** + * Destructor. + */ + ~KURIFilterData(); + + /** + * This method has been deprecated and will always return + * true. You should instead use the result from the + * KURIFilter::filterURI() calls. + * + * @deprecated + */ + KDE_DEPRECATED bool hasBeenFiltered() const { return true; } + + /** + * Returns the filtered or the original URL. + * + * This function returns the filtered url if one + * of the plugins successfully filtered the original + * URL. Otherwise, it returns the original URL. + * See hasBeenFiltered() and + * + * @return the filtered or original url. + */ + KURL uri() const { return m_pURI; } + + /** + * Returns an error message. + * + * This functions returns the error message set + * by the plugin whenever the uri type is set to + * KURIFilterData::ERROR. Otherwise, it returns + * a QString::null. + * + * @return the error message or a NULL when there is none. + */ + QString errorMsg() const { return m_strErrMsg; } + + /** + * Returns the URI type. + * + * This method always returns KURIFilterData::UNKNOWN + * if the given URL was not filtered. + * @return the type of the URI + */ + URITypes uriType() const { return m_iType; } + + /** + * Sets the URL to be filtered. + * + * Use this function to set the string to be + * filtered when you construct an empty filter + * object. + * + * @param url the string to be filtered. + */ + void setData( const QString& url ) { init( url ); } + + /** + * Same as above except the argument is a URL. + * + * Use this function to set the string to be + * filtered when you construct an empty filter + * object. + * + * @param url the URL to be filtered. + */ + void setData( const KURL& url ) { init( url ); } + + /** + * Sets the absolute path to be used whenever the supplied + * data is a relative local URL. + * + * NOTE: This function should only be used for local resources, + * i.e. the "file:/" protocol. It is useful for specifying the + * absolute path in cases where the actual URL might be relative. + * meta object. If deriving the path from a KURL, make sure you + * set the argument for this function to the result of calling + * path () instead of url (). + * + * @param abs_path the abolute path to the local resource. + * @return true if absolute path is successfully set. Otherwise, false. + */ + bool setAbsolutePath( const QString& abs_path ); + + /** + * Returns the absolute path if one has already been set. + * @return the absolute path, or QString::null + * @see hasAbsolutePath() + */ + QString absolutePath() const; + + /** + * Checks whether the supplied data had an absolute path. + * @return true if the supplied data has an absolute path + * @see absolutePath() + */ + bool hasAbsolutePath() const; + + /** + * Returns the command line options and arguments for a + * local resource when present. + * + * @return options and arguments when present, otherwise QString::null + */ + QString argsAndOptions() const; + + /** + * Checks whether the current data is a local resource with + * command line options and arguments. + * @return true if the current data has command line options and arguments + */ + bool hasArgsAndOptions() const; + + /** + * Returns the name of the icon that matches + * the current filtered URL. + * + * NOTE that this function will return a NULL + * string by default and when no associated icon + * is found. + * + * @return the name of the icon associated with the resource, + * or QString::null if not found + */ + QString iconName(); + + /** + * Check whether the provided uri is executable or not. + * + * Setting this to false ensures that typing the name of + * an executable does not start that application. This is + * useful in the location bar of a browser. The default + * value is true. + * + * @since 3.2 + */ + void setCheckForExecutables (bool check); + + /** + * @return true if the filters should attempt to check whether the + * supplied uri is an executable. False otherwise. + * + * @since 3.2 + */ + bool checkForExecutables() const { return m_bCheckForExecutables; } + + /** + * @return the string as typed by the user, before any URL processing is done + * @since 3.2 + */ + QString typedString() const; + + /** + * Overloaded assigenment operator. + * + * This function allows you to easily assign a KURL + * to a KURIFilterData object. + * + * @return an instance of a KURIFilterData object. + */ + KURIFilterData& operator=( const KURL& url ) { init( url ); return *this; } + + /** + * Overloaded assigenment operator. + * + * This function allows you to easily assign a QString + * to a KURIFilterData object. + * + * @return an instance of a KURIFilterData object. + */ + KURIFilterData& operator=( const QString& url ) { init( url ); return *this; } + +protected: + + /** + * Initializes the KURIFilterData on construction. + * @param url the URL to initialize the object with + */ + void init( const KURL& url); + + /** + * Initializes the KURIFilterData on construction. + * @param url the URL to initialize the object with + */ + void init( const QString& url = QString::null ); + +private: + bool m_bCheckForExecutables; + bool m_bChanged; + + QString m_strErrMsg; + QString m_strIconName; + + KURL m_pURI; + URITypes m_iType; + KURIFilterDataPrivate *d; +}; + + +/** + * Base class for URI filter plugins. + * + * This class applies a single filter to a URI. All plugins designed + * to provide URI filtering service should inherit from this abstract + * class and provide a concrete implementation. + * + * All inheriting classes need to implement the pure virtual function + * filterURI. + * + * @short Abstract class for URI filter plugins. + */ +class KIO_EXPORT KURIFilterPlugin : public QObject +{ + Q_OBJECT + +public: + + /** + * Constructs a filter plugin with a given name and + * priority. + * + * @param parent the parent object, or 0 for no parent + * @param name the name of the plugin, or 0 for no name + * @param pri the priority of the plugin. + */ + KURIFilterPlugin( QObject *parent = 0, const char *name = 0, double pri = 1.0 ); + + /** + * Returns the filter's name. + * + * @return A string naming the filter. + */ + virtual QString name() const { return m_strName; } + + /** + * Returns the filter's priority. + * + * Each filter has an assigned priority, a float from 0 to 1. Filters + * with the lowest priority are first given a chance to filter a URI. + * + * @return The priority of the filter. + */ + virtual double priority() const { return m_dblPriority; } + + /** + * Filters a URI. + * + * @param data the URI data to be filtered. + * @return A boolean indicating whether the URI has been changed. + */ + virtual bool filterURI( KURIFilterData& data ) const = 0; + + /** + * Creates a configuration module for the filter. + * + * It is the responsibility of the caller to delete the module + * once it is not needed anymore. + * + * @return A configuration module, 0 if the filter isn't configurable. + */ + virtual KCModule *configModule( QWidget*, const char* ) const { return 0; } + + /** + * Returns the name of the configuration module for the filter. + * + * @return the name of a configuration module or QString::null if none. + */ + virtual QString configName() const { return name(); } + +protected: + + /** + * Sets the the URL in @p data to @p uri. + */ + void setFilteredURI ( KURIFilterData& data, const KURL& uri ) const; + + /** + * Sets the error message in @p data to @p errormsg. + */ + void setErrorMsg ( KURIFilterData& data, const QString& errmsg ) const { + data.m_strErrMsg = errmsg; + } + + /** + * Sets the URI type in @p data to @p type. + */ + void setURIType ( KURIFilterData& data, KURIFilterData::URITypes type) const { + data.m_iType = type; + data.m_bChanged = true; + } + + /** + * Sets the arguments and options string in @p data + * to @p args if any were found during filterting. + */ + void setArguments( KURIFilterData& data, const QString& args ) const; + + QString m_strName; + double m_dblPriority; + +protected: + virtual void virtual_hook( int id, void* data ); +private: + class KURIFilterPluginPrivate *d; +}; + + +/** + * A list of filter plugins. + */ +class KIO_EXPORT KURIFilterPluginList : public QPtrList +{ +public: + virtual int compareItems(Item a, Item b) + { + double diff = ((KURIFilterPlugin *) a)->priority() - ((KURIFilterPlugin *) b)->priority(); + return diff < 0 ? -1 : (diff > 0 ? 1 : 0); + } + +private: + KURIFilterPrivate *d; + +}; + +/** + * Manages the filtering of URIs. + * + * The intention of this plugin class is to allow people to extend the + * functionality of KURL without modifying it directly. This way KURL will + * remain a generic parser capable of parsing any generic URL that adheres + * to specifications. + * + * The KURIFilter class applies a number of filters to a URI and returns the + * filtered version whenever possible. The filters are implemented using + * plugins to provide easy extensibility of the filtering mechanism. New + * filters can be added in the future by simply inheriting from + * KURIFilterPlugin and implementing the KURIFilterPlugin::filterURI + * method. + * + * Use of this plugin-manager class is straight forward. Since it is a + * singleton object, all you have to do is obtain an instance by doing + * @p KURIFilter::self() and use any of the public member functions to + * preform the filtering. + * + * \b Example + * + * To simply filter a given string: + * + * \code + * bool filtered = KURIFilter::self()->filterURI( "kde.org" ); + * \endcode + * + * You can alternatively use a KURL: + * + * \code + * KURL url = "kde.org"; + * bool filtered = KURIFilter::self()->filterURI( url ); + * \endcode + * + * If you have a constant string or a constant URL, simply invoke the + * corresponding function to obtain the filtered string or URL instead + * of a boolean flag: + * + * \code + * QString u = KURIFilter::self()->filteredURI( "kde.org" ); + * \endcode + * + * You can also restrict the filter(s) to be used by supplying + * the name of the filter(s) to use. By defualt all available + * filters will be used. To use specific filters, add the names + * of the filters you want to use to a QStringList and invoke + * the appropriate filtering function. The examples below show + * the use of specific filters. The first one uses a single + * filter called kshorturifilter while the second example uses + * multiple filters: + * + * \code + * QString text = "kde.org"; + * bool filtered = KURIFilter::self()->filterURI( text, "kshorturifilter" ); + * \endcode + * + * \code + * QStringList list; + * list << "kshorturifilter" << "localdomainfilter"; + * bool filtered = KURIFilter::self()->filterURI( text, list ); + * \endcode + * + * KURIFilter also allows richer data exchange through a simple + * meta-object called @p KURIFilterData. Using this meta-object + * you can find out more information about the URL you want to + * filter. See KURIFilterData for examples and details. + * + * @short Filters a given URL into its proper format whenever possible. + */ + +class KIO_EXPORT KURIFilter +{ +public: + /** + * Destructor + */ + ~KURIFilter (); + + /** + * Returns an instance of KURIFilter. + */ + static KURIFilter* self(); + + /** + * Filters the URI given by the object URIFilterData. + * + * The given URL is filtered based on the specified list of filters. + * If the list is empty all available filters would be used. + * + * @param data object that contains the URI to be filtered. + * @param filters specify the list of filters to be used. + * + * @return a boolean indicating whether the URI has been changed + */ + bool filterURI( KURIFilterData& data, const QStringList& filters = QStringList() ); + + /** + * Filters the URI given by the URL. + * + * The given URL is filtered based on the specified list of filters. + * If the list is empty all available filters would be used. + * + * @param uri the URI to filter. + * @param filters specify the list of filters to be used. + * + * @return a boolean indicating whether the URI has been changed + */ + bool filterURI( KURL &uri, const QStringList& filters = QStringList() ); + + /** + * Filters a string representing a URI. + * + * The given URL is filtered based on the specified list of filters. + * If the list is empty all available filters would be used. + * + * @param uri The URI to filter. + * @param filters specify the list of filters to be used. + * + * @return a boolean indicating whether the URI has been changed + */ + bool filterURI( QString &uri, const QStringList& filters = QStringList() ); + + /** + * Returns the filtered URI. + * + * The given URL is filtered based on the specified list of filters. + * If the list is empty all available filters would be used. + * + * @param uri The URI to filter. + * @param filters specify the list of filters to be used. + * + * @return the filtered URI or null if it cannot be filtered + */ + KURL filteredURI( const KURL &uri, const QStringList& filters = QStringList() ); + + /** + * Return a filtered string representation of a URI. + * + * The given URL is filtered based on the specified list of filters. + * If the list is empty all available filters would be used. + * + * @param uri the URI to filter. + * @param filters specify the list of filters to be used. + * + * @return the filtered URI or null if it cannot be filtered + */ + QString filteredURI( const QString &uri, const QStringList& filters = QStringList() ); + + /** + * Return an iterator to iterate over all loaded + * plugins. + * + * @return a plugin iterator. + */ + QPtrListIterator pluginsIterator() const; + + /** + * Return a list of the names of all loaded plugins. + * + * @return a QStringList of plugin names + * @since 3.1 + */ + QStringList pluginNames() const; + +protected: + + /** + * A protected constructor. + * + * This constructor creates a KURIFilter and + * initializes all plugins it can find by invoking + * loadPlugins. + */ + KURIFilter(); + + /** + * Loads all allowed plugins. + * + * This function loads all filters that have not + * been disbled. + */ + void loadPlugins(); + +private: + static KURIFilter *m_self; + KURIFilterPluginList m_lstPlugins; + KURIFilterPrivate *d; +}; + +#endif diff --git a/extra/kde340/selectdialog.h b/extra/kde340/selectdialog.h new file mode 100644 index 0000000..20b899a --- /dev/null +++ b/extra/kde340/selectdialog.h @@ -0,0 +1,87 @@ +/* + This file is part of libkresources. + + Copyright (c) 2002 Tobias Koenig + Copyright (c) 2002 Jan-Pascal van Best + Copyright (c) 2003 Cornelius Schumacher + + This library 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. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef KRESOURCES_SELECTDIALOG_H +#define KRESOURCES_SELECTDIALOG_H + +#include +#include +#include + +#include + +class KListBox; + +namespace KRES { + +class Resource; + +/** + * Dialog for selecting a resource. + * + * Example: + * + * \code + * + * QPtrList list = ... // can be retrived from KRES::Manager (e.g. KABC::AddressBook) + * + * KABC::Resource *res = KABC::SelectDialog::getResource( list, parentWdg ); + * if ( !res ) { + * // no resource selected + * } else { + * // do something with resource + * } + * \endcode + */ +class KRESOURCES_EXPORT SelectDialog +{ + public: + /** + * Constructor. + * @param list The list of available resources + * @param parent The parent widget + * @param name The name of the dialog + */ + SelectDialog( QPtrList list, QWidget *parent = 0, + const char *name = 0); + + /** + * Returns selected resource. + */ + Resource *resource(); + + /** + * Opens a dialog showing the available resources and returns the resource the + * user has selected. Returns 0, if the dialog was canceled. + */ + static Resource *getResource( QPtrList list, QWidget *parent = 0 ); + + private: + KListBox *mResourceId; + + QMap mResourceMap; +}; + +} + +#endif diff --git a/extra/kde341/configwidget.h b/extra/kde341/configwidget.h new file mode 100644 index 0000000..ae76397 --- /dev/null +++ b/extra/kde341/configwidget.h @@ -0,0 +1,58 @@ +/* + This file is part of libkresources. + Copyright (c) 2002 Tobias Koenig + Copyright (c) 2002 Jan-Pascal van Best + + This library 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. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef KRESOURCES_CONFIGWIDGET_H +#define KRESOURCES_CONFIGWIDGET_H + +#include "resource.h" + +#include + +#include + +namespace KRES { + +class KRESOURCES_EXPORT ConfigWidget : public QWidget +{ + Q_OBJECT + public: + ConfigWidget( QWidget *parent = 0, const char *name = 0 ); + + /** + Sets the widget to 'edit' mode. Reimplement this method if you are + interested in the mode change (to disable some GUI element for + example). By default the widget is in 'create new' mode. + */ + virtual void setInEditMode( bool value ); + + public slots: + virtual void loadSettings( Resource *resource ) = 0; + virtual void saveSettings( Resource *resource ) = 0; + + signals: + void setReadOnly( bool value ); + + protected: + Resource *mResource; +}; + +} +#endif diff --git a/extra/kde341/kaccelaction.h b/extra/kde341/kaccelaction.h new file mode 100644 index 0000000..396e218 --- /dev/null +++ b/extra/kde341/kaccelaction.h @@ -0,0 +1,564 @@ +/* This file is part of the KDE libraries + Copyright (C) 2001,2002 Ellis Whitehead + + This library 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. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef _KACCELACTION_H +#define _KACCELACTION_H + +#include +#include +#include +#include + +#include + +class KAccelBase; + +class QObject; +class KConfig; +class KConfigBase; + +/** + * @internal + * A KAccelAction prepresents an action that can be executed using + * an accelerator key. Each KAccelAction has a name, a label, a + * "What's this" string and a KShortcut. The user can configure and + * enable/disable them using KKeyDialog. + * + * \code + * 1) KAccelAction = "Run Command" + * Default3 = "Alt+F2" + * Default4 = "Meta+Enter;Alt+F2" + * 1) KShortcut = "Meta+Enter" + * 1) KKeySequence = "Meta+Enter" + * 1) KKey = "Meta+Enter" + * 1) Meta+Enter + * 2) Meta+Keypad_Enter + * 2) KShortcut = "Alt+F2" + * 1) KKeySequence = "Alt+F2" + * 1) Alt+F2 + * 2) KAccelAction = "Something" + * Default3 = "" + * Default4 = "" + * 1) KShortcut = "Meta+X,Asterisk" + * 1) KKeySequence = "Meta+X,Asterisk" + * 1) KKey = "Meta+X" + * 1) Meta+X + * 2) KKey = "Asterisk" + * 1) Shift+8 (English layout) + * 2) Keypad_Asterisk + * \endcode + * @short An accelerator action + * @see KAccel + * @see KGlobalAccel + * @see KKeyChooser + * @see KKeyDialog + */ +class KDECORE_EXPORT KAccelAction +{ + public: + /** + * Creates an empty KAccelAction. + * @see clear() + */ + KAccelAction(); + + /** + * Copy constructor. + */ + KAccelAction( const KAccelAction& ); + + /** + * Creates a new KAccelAction. + * @param sName the name of the accelerator + * @param sLabel the label of the accelerator (i18n!) + * @param sWhatsThis the What's This text (18n!) + * @param cutDef3 the default shortcut for 3 modifier systems + * @param cutDef4 the default shortcut for 4 modifier systems + * @param pObjSlot the receiver of a signal when the key has been + * pressed + * @param psMethodSlot the slot to connect for key presses. Receives + * an int, as set by setID(), as only argument + * @param bConfigurable if true the user can configure the shortcut + * @param bEnabled true if the accelerator should be enabled + */ + KAccelAction( const QString& sName, const QString& sLabel, const QString& sWhatsThis, + const KShortcut& cutDef3, const KShortcut& cutDef4, + const QObject* pObjSlot, const char* psMethodSlot, + bool bConfigurable, bool bEnabled ); + ~KAccelAction(); + + /** + * Clears the accelerator. + */ + void clear(); + + /** + * Re-initialized the KAccelAction. + * @param sName the name of the accelerator + * @param sLabel the label of the accelerator (i18n!) + * @param sWhatsThis the What's This text (18n!) + * @param cutDef3 the default shortcut for 3 modifier systems + * @param cutDef4 the default shortcut for 4 modifier systems + * @param pObjSlot the receiver of a signal when the key has been + * pressed + * @param psMethodSlot the slot to connect for key presses. Receives + * an int, as set by setID(), as only argument + * @param bConfigurable if true the user can configure the shortcut + * @param bEnabled true if the accelerator should be enabled + * @return true if successful, false otherwise + */ + bool init( const QString& sName, const QString& sLabel, const QString& sWhatsThis, + const KShortcut& cutDef3, const KShortcut& cutDef4, + const QObject* pObjSlot, const char* psMethodSlot, + bool bConfigurable, bool bEnabled ); + + /** + * Copies this KAccelAction. + */ + KAccelAction& operator=( const KAccelAction& ); + + /** + * Returns the name of the accelerator action. + * @return the name of the accelerator action, can be null if not + * set + */ + const QString& name() const { return m_sName; } + + /** + * Returns the label of the accelerator action. + * @return the label of the accelerator action, can be null if + * not set + */ + const QString& label() const { return m_sLabel; } + + /** + * Returns the What's This text of the accelerator action. + * @return the What's This text of the accelerator action, can be + * null if not set + */ + const QString& whatsThis() const { return m_sWhatsThis; } + + /** + * The shortcut that is actually used (may be used configured). + * @return the shortcut of the KAccelAction, can be null if not set + * @see shortcutDefault() + */ + const KShortcut& shortcut() const { return m_cut; } + + /** + * The default shortcut for this system. + * @return the default shortcut on this system, can be null if not set + * @see shortcut() + * @see shortcutDefault3() + * @see shortcutDefault4() + */ + const KShortcut& shortcutDefault() const; + + /** + * The default shortcut for 3 modifier systems. + * @return the default shortcut for 3 modifier systems, can be null + * if not set + * @see shortcutDefault() + * @see shortcutDefault4() + * @see useFourModifierKeys() + */ + const KShortcut& shortcutDefault3() const { return m_cutDefault3; } + + /** + * The default shortcut for 4 modifier systems. + * @return the default shortcut for 4 modifier systems, can be null + * if not set + * @see shortcutDefault() + * @see shortcutDefault3() + * @see useFourModifierKeys() + */ + const KShortcut& shortcutDefault4() const { return m_cutDefault4; } + + /** + * Returns the receiver of signals. + * @return the receiver of signals (can be 0 if not set) + */ + const QObject* objSlotPtr() const { return m_pObjSlot; } + + /** + * Returns the slot for the signal. + * @return the slot for the signal + */ + const char* methodSlotPtr() const { return m_psMethodSlot; } + + /** + * Checks whether the user can configure the action. + * @return true if configurable, false otherwise + */ + bool isConfigurable() const { return m_bConfigurable; } + + /** + * Checks whether the action is enabled. + * @return true if enabled, false otherwise + */ + bool isEnabled() const { return m_bEnabled; } + + /** + * Sets the name of the accelerator action. + * @param name the new name + */ + void setName( const QString& name ); + + /** + * Sets the user-readable label of the accelerator action. + * @param label the new label (i18n!) + */ + void setLabel( const QString& label ); + + /** + * Sets the What's This text for the accelerator action. + * @param whatsThis the new What's This text (i18n!) + */ + void setWhatsThis( const QString& whatsThis ); + + /** + * Sets the new shortcut of the accelerator action. + * @param rgCuts the shortcut to set + * @return true if successful, false otherwise + */ + bool setShortcut( const KShortcut& rgCuts ); + + /** + * Sets the slot of the accelerator action. + * @param pObjSlot the receiver object of the signal + * @param psMethodSlot the slot for the signal + */ + void setSlot( const QObject* pObjSlot, const char* psMethodSlot ); + + /** + * Enables or disabled configuring the action. + * @param configurable true to enable configurability, false to disable + */ + void setConfigurable( bool configurable ); + + /** + * Enables or disabled the action. + * @param configurable true to enable the action, false to disable + */ + void setEnabled( bool enable ); + + /** + * Retrieves the id set using setID. + * @return the id of the accelerator action + */ + int getID() const { return m_nIDAccel; } + + /** + * Allows you to set an id that will be used as the action + * signal's argument. + * + * @param n the new id + * @see getID() + */ + void setID( int n ) { m_nIDAccel = n; } + + /** + * Checkes whether the action is connected (emits signals). + * @return true if connected, false otherwise + */ + bool isConnected() const; + + /** + * Sets a key sequence of the action's shortcut. + * @param i the position of the sequence + * @param keySeq the new new sequence + * @return true if successful, false otherwise + * @see KShortcut::setSeq() + */ + bool setKeySequence( uint i, const KKeySequence &keySeq ); + + /** + * Clears the action's shortcut. It will not contain any sequences after + * calling this method. + * @see KShortcut::clear() + */ + void clearShortcut(); + + /** + * Checks whether the action's shortcut contains the given key sequence. + * @param keySeq the key sequence to check + * @return true if the shortcut contains the given sequence + * @see KShortcut::contains() + */ + bool contains( const KKeySequence &keySeq ); + + /** + * Returns the string representation of the action's shortcut. + * @return the string representation of the action's shortcut. + * @see KShortcut::toString() + */ + QString toString() const; + + /** + * @internal + */ + QString toStringInternal() const; + + /** + * Returns true if four modifier keys will be used. + * @return true if four modifier keys will be used. + */ + static bool useFourModifierKeys(); + + /** + * Selects 3 or 4 modifier default shortcuts. + * @param use true to use 4 modifier shortcuts, false to use + * 3 modifier shortcuts + */ + static void useFourModifierKeys( bool use ); + + protected: + QString m_sName, + m_sLabel, + m_sWhatsThis; + KShortcut m_cut; + KShortcut m_cutDefault3, m_cutDefault4; + const QObject* m_pObjSlot; + const char* m_psMethodSlot; + bool m_bConfigurable, + m_bEnabled; + int m_nIDAccel; + uint m_nConnections; + + void incConnections(); + void decConnections(); + + private: + static int g_bUseFourModifierKeys; + class KAccelActionPrivate* d; + + friend class KAccelActions; + friend class KAccelBase; +}; + +//--------------------------------------------------------------------- +// KAccelActions +//--------------------------------------------------------------------- + +/** + * @internal + * This class represents a collection of KAccelAction objects. + * + * @short A collection of accelerator actions + * @see KAccelAction + */ +class KDECORE_EXPORT KAccelActions +{ + public: + /** + * Creates a new, empty KAccelActions object. + */ + KAccelActions(); + + /** + * Copy constructor (deep copy). + */ + KAccelActions( const KAccelActions& ); + virtual ~KAccelActions(); + + /** + * Removes all items from this collection. + */ + void clear(); + + /** + * Initializes this object with the given actions. + * It will make a deep copy of all actions. + * @param actions the actions to copy + * @return true if successful, false otherwise + */ + bool init( const KAccelActions &actions ); + + /** + * Loads the actions from the given configuration file. + * + * @param config the configuration file to load from + * @param sGroup the group in the configuration file + * @return true if successful, false otherwise + */ + bool init( KConfigBase& config, const QString& sGroup ); + + /** + * Updates the shortcuts of all actions in this object + * with the shortcuts from the given object. + * @param shortcuts the collection that contains the new + * shortcuts + */ + void updateShortcuts( KAccelActions &shortcuts ); + + /** + * Retrieves the index of the action with the given name. + * @param sAction the action to search + * @return the index of the action, or -1 if not found + */ + int actionIndex( const QString& sAction ) const; + + /** + * Returns the action with the given @p index. + * @param index the index of an action. You must not + * use an index that is too high. + * @return the KAccelAction with the given index + * @see count() + */ + KAccelAction* actionPtr( uint index ); + + /** + * Returns the action with the given @p index. + * @param index the index of an action. You must not + * use an index that is too high. + * @return the KAccelAction with the given index + * @see count() + */ + const KAccelAction* actionPtr( uint index ) const; + + /** + * Returns the action with the given name. + * @param aAction the name of the action to search + * @return the KAccelAction with the given name, or 0 + * if not found + */ + KAccelAction* actionPtr( const QString& sAction ); + + /** + * Returns the action with the given name. + * @param aAction the name of the action to search + * @return the KAccelAction with the given name, or 0 + * if not found + */ + const KAccelAction* actionPtr( const QString& sAction ) const; + + /** + * Returns the action with the given key sequence. + * @param cut the sequence to search for + * @return the KAccelAction with the given sequence, or 0 + * if not found + */ + KAccelAction* actionPtr( KKeySequence cut ); + + /** + * Returns the action with the given @p index. + * @param index the index of an action. You must not + * use an index that is too high. + * @return the KAccelAction with the given index + * @see actionPtr() + * @see count() + */ + KAccelAction& operator []( uint index ); + + /** + * Returns the action with the given @p index. + * @param index the index of an action. You must not + * use an index that is too high. + * @return the KAccelAction with the given index + * @see actionPtr() + * @see count() + */ + const KAccelAction& operator []( uint index ) const; + + /** + * Inserts an action into the collection. + * @param sName the name of the accelerator + * @param sLabel the label of the accelerator (i18n!) + * @param sWhatsThis the What's This text (18n!) + * @param cutDef3 the default shortcut for 3 modifier systems + * @param cutDef4 the default shortcut for 4 modifier systems + * @param pObjSlot the receiver of a signal when the key has been + * pressed + * @param psMethodSlot the slot to connect for key presses. Receives + * an int, as set by setID(), as only argument + * @param bConfigurable if true the user can configure the shortcut + * @param bEnabled true if the accelerator should be enabled + * @return the new action + */ + KAccelAction* insert( const QString& sAction, const QString& sLabel, const QString& sWhatsThis, + const KShortcut& rgCutDefaults3, const KShortcut& rgCutDefaults4, + const QObject* pObjSlot = 0, const char* psMethodSlot = 0, + bool bConfigurable = true, bool bEnabled = true ); + + /** + * Inserts an action into the collection. + * @param sName the name of the accelerator + * @param sLabel the label of the accelerator (i18n!) + * @return the new action + */ + KAccelAction* insert( const QString& sName, const QString& sLabel ); + + /** + * Removes the given action. + * @param sAction the name of the action. + * @return true if successful, false otherwise + */ + bool remove( const QString& sAction ); + + /** + * Loads the actions from the given configuration file. + * + * @param sConfigGroup the group in the configuration file + * @param pConfig the configuration file to load from + * @return true if successful, false otherwise + */ + bool readActions( const QString& sConfigGroup = "Shortcuts", KConfigBase* pConfig = 0 ); + + /** + * Writes the actions to the given configuration file. + * + * @param sConfigGroup the group in the configuration file + * @param pConfig the configuration file to save to + * @param bWriteAll true to write all actions + * @param bGlobal true to write to the global configuration file + * @return true if successful, false otherwise + */ + bool writeActions( const QString& sConfigGroup = "Shortcuts", KConfigBase* pConfig = 0, + bool bWriteAll = false, bool bGlobal = false ) const; + + /** + * Emit a keycodeChanged signal. + */ + void emitKeycodeChanged(); + + /** + * Returns the number of actions in the collection. + * @return the number of actions + */ + uint count() const; + + protected: + KAccelBase* m_pKAccelBase; + KAccelAction** m_prgActions; + uint m_nSizeAllocated, m_nSize; + + void resize( uint ); + void insertPtr( KAccelAction* ); + + private: + class KAccelActionsPrivate* d; + + KAccelActions( KAccelBase* ); + void initPrivate( KAccelBase* ); + KAccelActions& operator =( KAccelActions& ); + + friend class KAccelBase; +}; + +#endif // _KACCELACTION_H diff --git a/extra/kde341/kaccelbase.h b/extra/kde341/kaccelbase.h new file mode 100644 index 0000000..f582cce --- /dev/null +++ b/extra/kde341/kaccelbase.h @@ -0,0 +1,229 @@ +/* This file is part of the KDE libraries + Copyright (C) 2001 Ellis Whitehead + + This library 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. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef _KACCELBASE_H +#define _KACCELBASE_H + +#include +#include +#include +#include +#include + +#include "kaccelaction.h" +#include "kkeyserver.h" + +class QPopupMenu; +class QWidget; + +//---------------------------------------------------- + +/** + * @internal + * Handle keyboard accelerators. + * + * Allow an user to configure + * key bindings through application configuration files or through the + * KKeyChooser GUI. + * + * A KAccel contains a list of accelerator items. Each accelerator item + * consists of an action name and a keyboard code combined with modifiers + * (Shift, Ctrl and Alt.) + * + * For example, "Ctrl+P" could be a shortcut for printing a document. The key + * codes are listed in ckey.h. "Print" could be the action name for printing. + * The action name identifies the key binding in configuration files and the + * KKeyChooser GUI. + * + * When pressed, an accelerator key calls the slot to which it has been + * connected. Accelerator items can be connected so that a key will activate + * two different slots. + * + * A KAccel object handles key events sent to its parent widget and to all + * children of this parent widget. + * + * Key binding reconfiguration during run time can be prevented by specifying + * that an accelerator item is not configurable when it is inserted. A special + * group of non-configurable key bindings are known as the + * standard accelerators. + * + * The standard accelerators appear repeatedly in applications for + * standard document actions such as printing and saving. Convenience methods are + * available to insert and connect these accelerators which are configurable on + * a desktop-wide basis. + * + * It is possible for a user to choose to have no key associated with + * an action. + * + * The translated first argument for insertItem() is used only + * in the configuration dialog. + *\code + * KAccel *a = new KAccel( myWindow ); + * // Insert an action "Scroll Up" which is associated with the "Up" key: + * a->insertItem( i18n("Scroll Up"), "Scroll Up", "Up" ); + * // Insert an action "Scroll Down" which is not associated with any key: + * a->insertItem( i18n("Scroll Down"), "Scroll Down", 0); + * a->connectItem( "Scroll up", myWindow, SLOT( scrollUp() ) ); + * // a->insertStdItem( KStdAccel::Print ); //not necessary, since it + * // is done automatially with the + * // connect below! + * a->connectItem(KStdAccel::Print, myWindow, SLOT( printDoc() ) ); + * + * a->readSettings(); + *\endcode + * + * If a shortcut has a menu entry as well, you could insert them like + * this. The example is again the KStdAccel::Print from above. + * + * \code + * int id; + * id = popup->insertItem("&Print",this, SLOT(printDoc())); + * a->changeMenuAccel(popup, id, KStdAccel::Print ); + * \endcode + * + * If you want a somewhat "exotic" name for your standard print action, like + * id = popup->insertItem(i18n("Print &Document"),this, SLOT(printDoc())); + * it might be a good idea to insert the standard action before as + * a->insertStdItem( KStdAccel::Print, i18n("Print Document") ) + * as well, so that the user can easily find the corresponding function. + * + * This technique works for other actions as well. Your "scroll up" function + * in a menu could be done with + * + * \code + * id = popup->insertItem(i18n"Scroll &up",this, SLOT(scrollUp())); + * a->changeMenuAccel(popup, id, "Scroll Up" ); + * \endcode + * + * Please keep the order right: First insert all functions in the + * acceleratior, then call a -> readSettings() and @em then build your + * menu structure. + * + * @short Configurable key binding support. + */ + +class KDECORE_EXPORT KAccelBase +{ + public: + enum Init { QT_KEYS = 0x00, NATIVE_KEYS = 0x01 }; + enum Signal { KEYCODE_CHANGED }; + + KAccelBase( int fInitCode ); + virtual ~KAccelBase(); + + uint actionCount() const; + KAccelActions& actions(); + bool isEnabled() const; + + KAccelAction* actionPtr( const QString& sAction ); + const KAccelAction* actionPtr( const QString& sAction ) const; + KAccelAction* actionPtr( const KKey& key ); + KAccelAction* actionPtr( const KKeyServer::Key& key ); + + const QString& configGroup() const { return m_sConfigGroup; } + void setConfigGroup( const QString& group ); + void setConfigGlobal( bool global ); + virtual void setEnabled( bool bEnabled ) = 0; + bool getAutoUpdate() { return m_bAutoUpdate; } + // return value of AutoUpdate flag before this call. + bool setAutoUpdate( bool bAuto ); + +// Procedures for manipulating Actions. + //void clearActions(); + + KAccelAction* insert( const QString& sName, const QString& sDesc ); + KAccelAction* insert( + const QString& sAction, const QString& sDesc, const QString& sHelp, + const KShortcut& rgCutDefaults3, const KShortcut& rgCutDefaults4, + const QObject* pObjSlot, const char* psMethodSlot, + bool bConfigurable = true, bool bEnabled = true ); + bool remove( const QString& sAction ); + bool setActionSlot( const QString& sAction, const QObject* pObjSlot, const char* psMethodSlot ); + + bool updateConnections(); + + bool setShortcut( const QString& sAction, const KShortcut& cut ); + +// Modify individual Action sub-items + bool setActionEnabled( const QString& sAction, bool bEnable ); + + /** + * Read all key associations from @p config, or (if @p config + * is zero) from the application's configuration file + * KGlobal::config(). + * + * The group in which the configuration is stored can be + * set with setConfigGroup(). + */ + void readSettings( KConfigBase* pConfig = 0 ); + + /** + * Write the current configurable associations to @p config, + * or (if @p config is zero) to the application's + * configuration file. + */ + void writeSettings( KConfigBase* pConfig = 0 ) const; + + QPopupMenu* createPopupMenu( QWidget* pParent, const KKeySequence& ); + + // Protected methods + protected: + void slotRemoveAction( KAccelAction* ); + + struct X; + void createKeyList( QValueVector& rgKeys ); + bool insertConnection( KAccelAction* ); + bool removeConnection( KAccelAction* ); + + virtual bool emitSignal( Signal ) = 0; + virtual bool connectKey( KAccelAction&, const KKeyServer::Key& ) = 0; + virtual bool connectKey( const KKeyServer::Key& ) = 0; + virtual bool disconnectKey( KAccelAction&, const KKeyServer::Key& ) = 0; + virtual bool disconnectKey( const KKeyServer::Key& ) = 0; + + protected: + struct ActionInfo + { + KAccelAction* pAction; + uint iSeq, iVariation; + //ActionInfo* pInfoNext; // nil if only one action uses this key. + + ActionInfo() { pAction = 0; iSeq = 0xffff; iVariation = 0xffff; } + ActionInfo( KAccelAction* _pAction, uint _iSeq, uint _iVariation ) + { pAction = _pAction; iSeq = _iSeq; iVariation = _iVariation; } + }; + typedef QMap KKeyToActionMap; + + KAccelActions m_rgActions; + KKeyToActionMap m_mapKeyToAction; + QValueList m_rgActionsNonUnique; + bool m_bNativeKeys; // Use native key codes instead of Qt codes + bool m_bEnabled; + bool m_bConfigIsGlobal; + QString m_sConfigGroup; + bool m_bAutoUpdate; + KAccelAction* mtemp_pActionRemoving; + + private: + KAccelBase& operator =( const KAccelBase& ); + + friend class KAccelActions; +}; + +#endif // _KACCELBASE_H diff --git a/extra/kde341/kicontheme.h b/extra/kde341/kicontheme.h new file mode 100644 index 0000000..95fbd8f --- /dev/null +++ b/extra/kde341/kicontheme.h @@ -0,0 +1,355 @@ +/* vi: ts=8 sts=4 sw=4 + * + * This file is part of the KDE project, module kdecore. + * Copyright (C) 2000 Geert Jansen + * Antonio Larrosa + * + * This is free software; it comes under the GNU Library General + * Public License, version 2. See the file "COPYING.LIB" for the + * exact licensing terms. + * + */ + +#ifndef __KIconTheme_h_Included__ +#define __KIconTheme_h_Included__ + +#include +#include +#include +#include "kdelibs_export.h" + +class KConfig; +//class KIconThemeDir; + +class KIconThemePrivate; + +class KIconPrivate; + +/** + * One icon as found by KIconTheme. Also serves as a namespace containing + * icon related constants. + * @see KIconEffect + * @see KIconTheme + * @see KIconLoader + */ +class KDECORE_EXPORT KIcon +{ +public: + KIcon() { size = 0; } + + /** + * Return true if this icon is valid, false otherwise. + */ + bool isValid() const { return size != 0; } + + /** + * Defines the context of the icon. + */ + enum Context { + Any, ///< Some icon with unknown purpose. + Action, ///< An action icon (e.g. 'save', 'print'). + Application, ///< An icon that represents an application. + Device, ///< An icon that represents a device. + FileSystem, ///< An icon that represents a file system. + MimeType ///< An icon that represents a mime type (or file type). + }; + + /** + * The type of the icon. + */ + enum Type { + Fixed, ///< Fixed-size icon. + Scalable, ///< Scalable-size icon. + Threshold ///< A threshold icon. + }; + + /** + * The type of a match. + */ + enum MatchType { + MatchExact, ///< Only try to find an exact match. + MatchBest ///< Take the best match if there is no exact match. + + }; + + // if you add a group here, make sure to change the config reading in + // KIconLoader too + /** + * The group of the icon. + */ + enum Group { + /// No group + NoGroup=-1, + /// Desktop icons + Desktop=0, + /// First group + FirstGroup=0, + /// Toolbar icons + Toolbar, + /// Main toolbar icons + MainToolbar, + /// Small icons + Small, + /// Panel (Kicker) icons + Panel, + /// Last group + LastGroup, + /// User icons + User + }; + + /** + * These are the standard sizes for icons. + */ + enum StdSizes { + /// small icons for menu entries + SizeSmall=16, + /// slightly larger small icons for toolbars, panels, etc + SizeSmallMedium=22, + /// medium sized icons for the desktop + SizeMedium=32, + /// large sized icons for the panel + SizeLarge=48, + /// huge sized icons for iconviews + SizeHuge=64, + /// enormous sized icons for iconviews + SizeEnormous=128 + }; + + /** + * Defines the possible states of an icon. + */ + enum States { DefaultState, ///< The default state. + ActiveState, ///< Icon is active. + DisabledState, ///< Icon is disabled. + LastState ///< Last state (last constant) + }; + + /** + * This defines an overlay, a semi-transparent image that is + * projected onto the icon. They are used to show that the file + * represented by the icon is, for example, locked, zipped or hidden. + */ + enum Overlays { + LockOverlay=0x100, ///< a file is locked + ZipOverlay=0x200, ///< a file is zipped + LinkOverlay=0x400, ///< a file is a link + HiddenOverlay=0x800, ///< a file is hidden + ShareOverlay=0x1000, ///< a file is shared + OverlayMask = ~0xff + }; + + /** + * The size in pixels of the icon. + */ + int size; + + /** + * The context of the icon. + */ + Context context; + + /** + * The type of the icon: Fixed, Scalable or Threshold. + **/ + Type type; + + /** + * The threshold in case type == Threshold + */ + int threshold; + + /** + * The full path of the icon. + */ + QString path; + +private: + KIconPrivate *d; +}; + +inline KIcon::Group& operator++(KIcon::Group& group) { group = static_cast(group+1); return group; } +inline KIcon::Group operator++(KIcon::Group& group,int) { KIcon::Group ret = group; ++group; return ret; } + +/** + * Class to use/access icon themes in KDE. This class is used by the + * iconloader but can be used by others too. + * @see KIconLoader + */ +class KDECORE_EXPORT KIconTheme +{ +public: + /** + * Load an icon theme by name. + * @param name the name of the theme (e.g. "hicolor" or "keramik") + * @param appName the name of the application. Can be null. This argument + * allows applications to have themed application icons. + */ + KIconTheme(const QString& name, const QString& appName=QString::null); + ~KIconTheme(); + + /** + * The stylized name of the icon theme. + * @return the (human-readable) name of the theme + */ + QString name() const { return mName; } + + /** + * A description for the icon theme. + * @return a human-readable description of the theme, QString::null + * if there is none + */ + QString description() const { return mDesc; } + + /** + * Return the name of the "example" icon. This can be used to + * present the theme to the user. + * @return the name of the example icon, QString::null if there is none + */ + QString example() const; + + /** + * Return the name of the screenshot. + * @return the name of the screenshot, QString::null if there is none + */ + QString screenshot() const; + + /** + * Returns the name of this theme's link overlay. + * @return the name of the link overlay + */ + QString linkOverlay() const; + + /** + * Returns the name of this theme's zip overlay. + * @return the name of the zip overlay + */ + QString zipOverlay() const; + + /** + * Returns the name of this theme's lock overlay. + * @return the name of the lock overlay + */ + QString lockOverlay() const; + + /** + * Returns the name of this theme's share overlay. + * @return the name of the share overlay + * @since 3.1 + */ + QString shareOverlay () const; + + /** + * Returns the toplevel theme directory. + * @return the directory of the theme + */ + QString dir() const { return mDir; } + + /** + * The themes this icon theme falls back on. + * @return a list of icon themes that are used as fall-backs + */ + QStringList inherits() const { return mInherits; } + + /** + * The icon theme exists? + * @return true if the icon theme is valid + */ + bool isValid() const; + + /** + * The icon theme should be hidden to the user? + * @return true if the icon theme is hidden + * @since 3.1 + */ + bool isHidden() const; + + /** + * The minimum display depth required for this theme. This can either + * be 8 or 32. + * @return the minimum bpp (8 or 32) + */ + int depth() const { return mDepth; } + + /** + * The default size of this theme for a certain icon group. + * @param group The icon group. See KIcon::Group. + * @return The default size in pixels for the given icon group. + */ + int defaultSize(KIcon::Group group) const; + + /** + * Query available sizes for a group. + * @param group The icon group. See KIcon::Group. + * @return a list of available sized for the given group + */ + QValueList querySizes(KIcon::Group group) const; + + /** + * Query available icons for a size and context. + * @param size the size of the icons + * @param context the context of the icons + * @return the list of icon names + */ + QStringList queryIcons(int size, KIcon::Context context = KIcon::Any) const; + + /** + * Query available icons for a context and preferred size. + * @param size the size of the icons + * @param context the context of the icons + * @return the list of icon names + */ + QStringList queryIconsByContext(int size, KIcon::Context context = KIcon::Any) const; + + + /** + * Lookup an icon in the theme. + * @param name The name of the icon, without extension. + * @param size The desired size of the icon. + * @param match The matching mode. KIcon::MatchExact returns an icon + * only if matches exactly. KIcon::MatchBest returns the best matching + * icon. + * @return A KIcon class that describes the icon. If an icon is found, + * @see KIcon::isValid will return true, and false otherwise. + */ + KIcon iconPath(const QString& name, int size, KIcon::MatchType match) const; + + /** + * List all icon themes installed on the system, global and local. + * @return the list of all icon themes + */ + static QStringList list(); + + /** + * Returns the current icon theme. + * @return the name of the current theme + */ + static QString current(); + + /** + * Reconfigure the theme. + */ + static void reconfigure(); + + /** + * Returns the default icon theme. + * @return the name of the default theme name + * @since 3.1 + */ + static QString defaultThemeName(); + +private: + int mDefSize[8]; + QValueList mSizes[8]; + + int mDepth; + QString mDir, mName, mDesc; + QStringList mInherits; +// QPtrList mDirs; +// KIconThemePrivate *d; + + static QString *_theme; + static QStringList *_theme_list; +}; + +#endif diff --git a/extra/kde341/kkeyserver.h b/extra/kde341/kkeyserver.h new file mode 100644 index 0000000..ef673ea --- /dev/null +++ b/extra/kde341/kkeyserver.h @@ -0,0 +1,29 @@ +/* + Copyright (C) 2001 Ellis Whitehead + + Win32 port: + Copyright (C) 2004 Jaroslaw Staniek + + This library 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. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef _KKEYSERVER_H +#define _KKEYSERVER_H + +//FOR COMPATIBILITY +#include "kkeyserver_x11.h" + +#endif // !_KKEYSERVER_H diff --git a/extra/kde341/kkeyserver_x11.h b/extra/kde341/kkeyserver_x11.h new file mode 100644 index 0000000..dbd983f --- /dev/null +++ b/extra/kde341/kkeyserver_x11.h @@ -0,0 +1,461 @@ +/* + Copyright (C) 2001 Ellis Whitehead + + Win32 port: + Copyright (C) 2004 Jaroslaw Staniek + + This library 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. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef _KKEYSERVER_X11_H +#define _KKEYSERVER_X11_H + +#include "kshortcut.h" +#include "kkeynative.h" + +/** + * A collection of functions for the conversion of key presses and + * their modifiers from the window system specific format + * to the generic format and vice-versa. + */ +namespace KKeyServer +{ + /** + * Supplement enum KKey::ModFlag + * @since 3.1 + */ + enum ExtraModFlag { MODE_SWITCH = 0x2000 }; + + /** + * Represents a key symbol. + * @see KKey + * @see KKeyServer + */ + struct KDECORE_EXPORT Sym + { + public: + /// the actual value of the symbol + uint m_sym; + + /// Creates a null symbol. + Sym() + { m_sym = 0; } + /** + * Creates asymbol with the given value. + * @param sym the value + */ + Sym( uint sym ) + { m_sym = sym; } + /** + * Creates a symbol from the given string description. + * @param s the description of the symbol + * @see toString() + */ + Sym( const QString& s ) + { init( s ); } + + /** + * Initializes the symbol with the given Qt key code. + * @param keyQt the qt key code + * @return true if successful, false otherwise + * @see Qt::Key + */ + bool initQt( int keyQt ); + + /** + * Initializes the key with the given string description. + * @param s the string description + * @return true if successful, false otherwise + * @see toString() + */ + bool init( const QString &s ); + + /** + * Returns the qt key code of the symbol. + * @return the qt key code + */ + int qt() const; + + /** + * @internal + */ + QString toStringInternal() const; + + /** + * Returns the string representation of the symbol. + * @return the string representation of the symbol + */ + QString toString() const; + + /** + * Returns the mods that are required for this symbol as + * ORed KKey::ModFlag's. For example, Break requires a + * Ctrl to be valid. + * @return the required KKey::ModFlag's + * @see KKey::ModFlag + */ + uint getModsRequired() const; + + /** + * TODO: please find out what this method does and document it + */ + uint getSymVariation() const; + + /** + * Casts the symbol to its integer representation. + */ + operator uint() const { return m_sym; } + + /** + * Overloaded operator to convert ints to Sym. + */ + Sym& operator =( uint sym ) { m_sym = sym; return *this; } + + private: + QString toString( bool bUserSpace ) const; + + static void capitalizeKeyname( QString& ); + }; + + /** + * Represents a key press. + * @see KKey + */ + struct KDECORE_EXPORT Key + { + /// Code for native Keys in Qt + enum { CODE_FOR_QT = 256 }; + + /// The code of the key + uint m_code; + + /// The modifiers of the key + uint m_mod; + + /// The symbol of the key + uint m_sym; + + /** + * Initializes the key with a KKey. + * @param key the key to get the data from + * @param bQt true to take the Qt keycode, false + * for the native key code + * @see Qt::Key + * @see KKeyNative + */ + bool init( const KKey& key, bool bQt ); + + /** + * Checks whether the key code is a native code. + * @return true if native code of the window system, + * false if it is a Qt keycode + * @see Qt::Key + * @see KKeyNative + */ + bool isNative() const { return m_code != CODE_FOR_QT; } + + /** + * Returns the code of the key. + * @return the code of the key + */ + uint code() const { return m_code; } + + /** + * Returns the modifiers of the key. + * @return the modifiers of the key + */ + uint mod() const { return m_mod; } + + /** + * Returns the symbol of the key. + * @return the symbol of the key + */ + uint sym() const { return m_sym; } + + /** + * Returns the qt key code. + * @return the qt key code + */ + int keyCodeQt() const { return (int) m_sym; } + + /** + * Sets the qt key code. + * @param keyQt the qt key code + */ + void setKeycodeQt( int keyQt ) + { m_code = CODE_FOR_QT; m_sym = keyQt; } + + /** + * Initializes this key with a KKeyNative. + * @return this key + */ + Key& operator =( const KKeyNative& key ); + + /** + * Compares this key with the given Key object. Returns a + * negative number if the given Key is larger, 0 if they + * are equal and a positive number this Key is larger. The + * returned value is the difference between the symbol, modifier + * or code, whatever is non-zero first. + * + * @param key the key to compare with this key + * @return a negative number if the given Key is larger, 0 if + * they are equal and a positive number this Key is larger + */ + int compare( const Key& key ) const; + + /** + * Compares the symbol, modifiers and code of both keys. + * @see compare() + */ + bool operator ==( const Key& b ) const + { return compare( b ) == 0; } + + /** + * Compares the symbol, modifiers and code of both keys. + * @see compare() + */ + bool operator <( const Key& b ) const + { return compare( b ) < 0; } + + /** + * Converts this Key to a KKey. + * @return the KKey + */ + KKey key() const; + }; + + /** + * TODO: please document this class + */ + struct KDECORE_EXPORT Variations + { + enum { MAX_VARIATIONS = 4 }; + + Key m_rgkey[MAX_VARIATIONS]; + uint m_nVariations; + + Variations() { m_nVariations = 0; } + + void init( const KKey&, bool bQt ); + + uint count() const { return m_nVariations; } + const Key& key( uint i ) const { return m_rgkey[i]; } + }; + + /// TODO: please document + KDECORE_EXPORT bool initializeMods(); + + /** + * Returns the equivalent X modifier mask of the given modifier flag. + * @param modFlag the generic flags to check + * @return the window system specific flags + */ + KDECORE_EXPORT uint modX( KKey::ModFlag modFlag ); + + /** + * Returns true if the current keyboard layout supports the Win key. + * Specifically, whether the Super or Meta keys are assigned to an X modifier. + * @return true if the keyboard has a Win key + * @see modXWin() + */ + KDECORE_EXPORT bool keyboardHasWinKey(); + + /** + * Returns the X11 Shift modifier mask/flag. + * @return the X11 Shift modifier mask/flag. + * @see accelModMaskX() + */ + KDECORE_EXPORT uint modXShift(); + + /** + * Returns the X11 Lock modifier mask/flag. + * @return the X11 Lock modifier mask/flag. + * @see accelModMaskX() + */ + KDECORE_EXPORT uint modXLock(); + + /** + * Returns the X11 Ctrl modifier mask/flag. + * @return the X11 Ctrl modifier mask/flag. + * @see accelModMaskX() + */ + KDECORE_EXPORT uint modXCtrl(); + + /** + * Returns the X11 Alt (Mod1) modifier mask/flag. + * @return the X11 Alt (Mod1) modifier mask/flag. + * @see accelModMaskX() + */ + KDECORE_EXPORT uint modXAlt(); + + /** + * Returns the X11 NumLock modifier mask/flag. + * @return the X11 NumLock modifier mask/flag. + * @see accelModMaskX() + */ + KDECORE_EXPORT uint modXNumLock(); + + /** + * Returns the X11 Win (Mod3) modifier mask/flag. + * @return the X11 Win (Mod3) modifier mask/flag. + * @see keyboardHasWinKey() + * @see accelModMaskX() + */ + KDECORE_EXPORT uint modXWin(); + + /** + * Returns the X11 ScrollLock modifier mask/flag. + * @return the X11 ScrollLock modifier mask/flag. + * @see accelModMaskX() + */ + KDECORE_EXPORT uint modXScrollLock(); + + /** + * Returns bitwise OR'ed mask containing Shift, Ctrl, Alt, and + * Win (if available). + * @see modXShift() + * @see modXLock() + * @see modXCtrl() + * @see modXAlt() + * @see modXNumLock() + * @see modXWin() + * @see modXScrollLock() + */ + KDECORE_EXPORT uint accelModMaskX(); + + /** + * Extracts the symbol from the given Qt key and + * converts it to a symbol. + * @param keyQt the qt key code + * @param sym if successful, the symbol will be written here + * @return true if successful, false otherwise + * @see Qt::Key + * @see Sym + */ + KDECORE_EXPORT bool keyQtToSym( int keyQt, uint& sym ); + + /** + * Extracts the modifiers from the given Qt key and + * converts them in a mask of ORed KKey::ModFlag modifiers. + * @param keyQt the qt key code + * @param mod if successful, the modifiers will be written here + * @return true if successful, false otherwise + * @see Qt::Key + */ + KDECORE_EXPORT bool keyQtToMod( int keyQt, uint& mod ); + + /** + * Converts the given symbol to a Qt key code. + * @param sym the symbol + * @param keyQt if successful, the qt key code will be written here + * @return true if successful, false otherwise + * @see Qt::Key + * @see Sym + */ + KDECORE_EXPORT bool symToKeyQt( uint sym, int& keyQt ); + + /** + * Converts the mask of ORed KKey::ModFlag modifiers to + * a mask of ORed Qt key code modifiers. + * @param mod the mask of KKey::ModFlag modifiers + * @param modQt the mask of Qt key code modifiers will be written here, + * if successful + * @return true if successful, false otherwise + * @see Qt::Key + * @see KKey + */ + KDECORE_EXPORT bool modToModQt( uint mod, int& modQt ); + + /** + * Converts the mask of ORed KKey::ModFlag modifiers to + * a mask of ORed X11 modifiers. + * @param mod the mask of KKey::ModFlag modifiers + * @param modX the mask of X11 modifiers will be written here, + * if successful + * @return true if successful, false otherwise + * @see KKey + */ + KDECORE_EXPORT bool modToModX( uint mod, uint& modX ); + + /** + * Converts the mask of ORed X11 modifiers to + * a mask of ORed Qt key code modifiers. + * @param modX the mask of X11 modifiers + * @param modQt the mask of Qt key code modifiers will be written here + * if successful + * @return true if successful, false otherwise + * @see Qt::Key + */ + //wrapped for win32 + KDECORE_EXPORT bool modXToModQt( uint modX, int& modQt ); + + /** + * Converts the Qt-compatible button state to x11 modifier. + */ + KDECORE_EXPORT int qtButtonStateToMod( Qt::ButtonState s ); + + /** + * Converts the mask of ORed X11 modifiers to + * a mask of ORed KKey::ModFlag modifiers. + * @param modX the mask of X11 modifiers + * @param mod the mask of KKey::ModFlag modifiers will be written here, + * if successful + * @return true if successful, false otherwise + * @see KKey + */ + KDECORE_EXPORT bool modXToMod( uint modX, uint& mod ); + + /** + * Converts a X11 key code and a mask of ORed X11 modifiers + * into a X11 symbol. + * converts it to a symbol. + * @param codeX the X11 key code + * @param modX the mask of ORed X11 modifiers + * @param symX if successful, the X11 symbol will be written here + * @return true if successful, false otherwise + * @see Qt::Key + * @see Sym + */ + KDECORE_EXPORT bool codeXToSym( uchar codeX, uint modX, uint& symX ); + + /** + * @internal + */ + KDECORE_EXPORT QString modToStringInternal( uint mod ); + + /** + * Converts the mask of ORed KKey::ModFlag modifiers to a + * user-readable string. + * @param mod the mask of ORed KKey::ModFlag modifiers + * @return the user-readable string + */ + KDECORE_EXPORT QString modToStringUser( uint mod ); + + /** + * @internal + * Unimplemented? + */ + KDECORE_EXPORT bool stringToSymMod( const QString&, uint& sym, uint& mod ); + + /** + * @internal + * Unimplemented? + */ + KDECORE_EXPORT void keyQtToKeyX( uint keyCombQt, unsigned char *pKeyCodeX, uint *pKeySymX, uint *pKeyModX ); +} + +#endif // !_KKEYSERVER_X11_H diff --git a/extra/kde341/konsole_part.h b/extra/kde341/konsole_part.h new file mode 100644 index 0000000..a899374 --- /dev/null +++ b/extra/kde341/konsole_part.h @@ -0,0 +1,228 @@ +/* + This file is part of the KDE system + Copyright (C) 1999,2000 Boloni Laszlo + + 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. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. + */ + +#ifndef __KONSOLE_PART_H__ +#define __KONSOLE_PART_H__ + +#include +#include + + +#include + +#include + +//#include "schema.h" +//#include "session.h" + +class KInstance; +class konsoleBrowserExtension; +class QPushButton; +class QSpinBox; +class KPopupMenu; +class QCheckBox; +class KRootPixmap; +class KToggleAction; +class KSelectAction; + +namespace KParts { class GUIActivateEvent; } + +class konsoleFactory : public KParts::Factory +{ + Q_OBJECT +public: + konsoleFactory(); + virtual ~konsoleFactory(); + + virtual KParts::Part* createPartObject(QWidget *parentWidget = 0, const char *widgetName = 0, + QObject* parent = 0, const char* name = 0, + const char* classname = "KParts::Part", + const QStringList &args = QStringList()); + + static KInstance *instance(); + + private: + static KInstance *s_instance; + static KAboutData *s_aboutData; +}; + +////////////////////////////////////////////////////////////////////// + +class konsolePart: public KParts::ReadOnlyPart, public TerminalInterface +{ + Q_OBJECT + public: + konsolePart(QWidget *parentWidget, const char *widgetName, QObject * parent, const char *name, const char *classname = 0); + virtual ~konsolePart(); + +signals: + void processExited(); + void receivedData( const QString& s ); + protected: + virtual bool openURL( const KURL & url ); + virtual bool openFile() {return false;} // never used + virtual bool closeURL() {return true;} + virtual void guiActivateEvent( KParts::GUIActivateEvent * event ); + + protected slots: + void showShell(); + void slotProcessExited(); + void slotReceivedData( const QString& s ); + +// void doneSession(TESession*); + void sessionDestroyed(); +// void configureRequest(TEWidget*,int,int x,int y); + void updateTitle(); + void enableMasterModeConnections(); + + private slots: + void emitOpenURLRequest(const QString &url); + + void readProperties(); + void saveProperties(); + + void sendSignal(int n); + void closeCurrentSession(); + + void notifySize(int,int); + + void slotToggleFrame(); + void slotSelectScrollbar(); + void slotSelectFont(); + void schema_menu_check(); + void keytab_menu_activated(int item); + void updateSchemaMenu(); + void setSchema(int n); + void pixmap_menu_activated(int item); + void schema_menu_activated(int item); + void slotHistoryType(); + void slotSelectBell(); + void slotSelectLineSpacing(); + void slotBlinkingCursor(); + void slotWordSeps(); + void fontNotFound(); + void slotSetEncoding(); + void slotFontChanged(); + + private: + konsoleBrowserExtension *m_extension; + KURL currentURL; + + void makeGUI(); + void applySettingsToGUI(); + + void setFont(int fontno); +// void setSchema(ColorSchema* s); + void updateKeytabMenu(); + + bool doOpenStream( const QString& ); + bool doWriteStream( const QByteArray& ); + bool doCloseStream(); + + QWidget* parentWidget; +// TEWidget* te; +// TESession* se; +// ColorSchemaList* colors; + KRootPixmap* rootxpm; + + KToggleAction* blinkingCursor; + KToggleAction* showFrame; + + KSelectAction* selectBell; + KSelectAction* selectFont; + KSelectAction* selectLineSpacing; + KSelectAction* selectScrollbar; + KSelectAction* selectSetEncoding; + + KPopupMenu* m_keytab; + KPopupMenu* m_schema; + KPopupMenu* m_signals; + KPopupMenu* m_options; + KPopupMenu* m_popupMenu; + + QFont defaultFont; + + QString pmPath; // pixmap path + QString s_schema; + QString s_kconfigSchema; + QString s_word_seps; // characters that are considered part of a word + QString fontNotFound_par; + + bool b_framevis:1; + bool b_histEnabled:1; + + int curr_schema; // current schema no + int n_bell; + int n_font; + int n_keytab; + int n_render; + int n_scroll; + unsigned m_histSize; + bool m_runningShell; + bool m_streamEnabled; + int n_encoding; + +public: + // these are the implementations for the TermEmuInterface + // functions... + void startProgram( const QString& program, + const QStrList& args ); + void showShellInDir( const QString& dir ); + void sendInput( const QString& text ); +}; + +////////////////////////////////////////////////////////////////////// + +/*class HistoryTypeDialog : public KDialogBase +{ + Q_OBJECT +public: + HistoryTypeDialog(const HistoryType& histType, + unsigned int histSize, + QWidget *parent); + +public slots: + void slotDefault(); + void slotSetUnlimited(); + void slotHistEnable(bool); + + unsigned int nbLines() const; + bool isOn() const; + +protected: + QCheckBox* m_btnEnable; + QSpinBox* m_size; + QPushButton* m_setUnlimited; +};*/ + +////////////////////////////////////////////////////////////////////// + +class konsoleBrowserExtension : public KParts::BrowserExtension +{ + Q_OBJECT + friend class konsolePart; + public: + konsoleBrowserExtension(konsolePart *parent); + virtual ~konsoleBrowserExtension(); + + void emitOpenURLRequest(const KURL &url); +}; + +#endif diff --git a/extra/kde341/kpanelmenu.h b/extra/kde341/kpanelmenu.h new file mode 100644 index 0000000..61ec7f1 --- /dev/null +++ b/extra/kde341/kpanelmenu.h @@ -0,0 +1,182 @@ +/***************************************************************** + +Copyright (c) 1996-2000 the kicker authors. See file AUTHORS. + (c) 2001 Michael Goffioul + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN +AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +******************************************************************/ + +#ifndef __KPANELMENU_H__ +#define __KPANELMENU_H__ + +#include +#include +#include + +class KPanelMenuPrivate; + +/** + * @short Base class to build dynamically loaded menu entries for the K-menu, or the panel. + * + * This class allows to build menu entries that will be dynamically added either to + * the K-menu, or to the panel as a normal button. These dynamic menus are located + * in shared libraries that will be loaded at runtime by Kicker (the %KDE panel). + * + * To build such a menu, you have to inherit this class and implement the pure virtual + * functions #initialize() and slotExec(). You also have to provide a factory + * object in your library, see KLibFactory. This factory is only used to construct + * the menu object. + * + * Finally, you also have to provide a desktop file describing your dynamic menu. The + * relevant entries are: Name, Comment, Icon and X-KDE-Library (which contains the + * library name without any extension). This desktop file has to be installed in + * $KDEDIR/share/apps/kicker/menuext/. + * + * @author The kicker maintainers, Michael Goffioul + */ +class KDEUI_EXPORT KPanelMenu : public KPopupMenu +{ + Q_OBJECT + +public: + /** + * Construct a KPanelMenu object. This is the normal constructor to use when + * building extrernal menu entries. + */ + KPanelMenu(QWidget *parent=0, const char *name=0); + /** + * Constructor used internally by Kicker. You don't really want to use it. + * @param startDir a directory to associate with this menu + * @param parent parent object + * @param name name of the object + * @see path(), setPath() + */ + KPanelMenu(const QString &startDir, QWidget *parent=0, const char *name=0); + /** + * Destructor. + */ + virtual ~KPanelMenu(); + + /** + * Get the directory path associated with this menu, or QString::null if + * there's no such associated path. + * @return the associated directory path + * @see setPath() + */ + const QString& path() const; + /** + * Set a directory path to be associated with this menu. + * @param p the directory path + * @see path() + */ + void setPath(const QString &p); + /** + * Tell if the menu has been initialized, that is it already contains items. + * This is useful when you need to know if you have to clear the menu, or to + * fill it. + * @return the initial state + * @see setInitialized(), initialize() + */ + bool initialized() const; + /** + * Set the initial state. Set it to true when you menu is filled with the items + * you want. + * @param on the initial state + * @see initialized(), initialize() + */ + void setInitialized(bool on); + + /** + * Disable the automatic clearing of the menu. Kicker uses a cache system for + * its menus. After a specific configurable delay, the menu will be cleared. + * Use this function if you want to disable kicker's cache system, and avoid + * the clearing of your menu. + */ + void disableAutoClear(); + +public slots: + /** + * Reinitialize the menu: the menu is first cleared, the initial state is set + * to false, and finally #initialize() is called. Use this if you want to + * refill your menu immediately. + */ + void reinitialize(); + /** + * Deinitialize the menu: the menu is cleared and the initialized state is set to + * false. #initialize() is NOT called. It will be called before the menu is + * next shown, however. Use this slot if you want a delayed reinitialization. + * @since 3.1 + */ + void deinitialize(); + +protected slots: + /** + * This slot is called just before the menu is shown. This allows your menu + * to update itself if needed. However you should instead re-implement + * #initialize to provide this feature. This function is responsible for + * the cache system handling, so if you re-implement it, you should call + * the base function also. Calls #initialize(). + * @see disableAutoClear() + */ + virtual void slotAboutToShow(); + /** + * This is slot is called when an item from the menu has been selected. Your + * applet is then supposed to perform some action. You must re-implement this + * function. + * @param id the ID associated with the selected item + */ + virtual void slotExec(int id) = 0; + /** + * This slots is called to initialize the menu. It is called automatically by + * slotAboutToShow(). By re-implementing this functions, you can reconstruct + * the menu before it is being shown. At the end of this function, you should + * call setInitialize() with true to tell the system that the menu is OK. + * You applet must re-implement this function. + * @see slotAboutToShow(), initialized(), setInitialized() + */ + virtual void initialize() = 0; + /** + * Clears the menu, and update the initial state accordingly. + * @see initialized() + */ + void slotClear(); + +protected: + /** + * Re-implemented for internal reasons. + */ + virtual void hideEvent(QHideEvent *ev); + /** + * For internal use only. Used by constructors. + */ + void init(const QString& path = QString::null); + +protected: + virtual void virtual_hook( int id, void* data ); +private: + void internalInitialize(); + KPanelMenuPrivate *d; +}; + +#define K_EXPORT_KICKER_MENUEXT( libname, classname ) \ + K_EXPORT_COMPONENT_FACTORY( \ + kickermenu_##libname, \ + KGenericFactory("libkickermenu_" #libname) ) + +#endif diff --git a/extra/kde341/krecentdirs.h b/extra/kde341/krecentdirs.h new file mode 100644 index 0000000..078efcc --- /dev/null +++ b/extra/kde341/krecentdirs.h @@ -0,0 +1,70 @@ +/* -*- c++ -*- + * Copyright (C)2000 Waldo Bastian + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * + */ +#ifndef __KRECENTDIRS_H +#define __KRECENTDIRS_H + +#include + +#include + +/** + * The goal of this class is to make sure that, when the user needs to + * specify a file via the file selection dialog, this dialog will start + * in the directory most likely to contain the desired files. + * + * This works as follows: Each time the file selection dialog is + * shown, the programmer can specify a "file-class". The file-dialog will + * then start with the directory associated with this file-class. When + * the dialog closes, the directory currently shown in the file-dialog + * will be associated with the file-class. + * + * A file-class can either start with ':' or with '::'. If it starts with + * a single ':' the file-class is specific to the current application. + * If the file-class starts with '::' it is global to all applications. + */ +class KIO_EXPORT KRecentDirs +{ +public: + /** + * Returns a list of directories associated with this file-class. + * The most recently used directory is at the front of the list. + */ + static QStringList list(const QString &fileClass); + + /** + * Returns the most recently used directory accociated with this file-class. + */ + static QString dir(const QString &fileClass); + + /** + * Associates @p directory with @p fileClass + */ + static void add(const QString &fileClass, const QString &directory); +}; + +#endif diff --git a/extra/kde341/ksharedptr.h b/extra/kde341/ksharedptr.h new file mode 100644 index 0000000..ada0841 --- /dev/null +++ b/extra/kde341/ksharedptr.h @@ -0,0 +1,175 @@ +/* This file is part of the KDE libraries + Copyright (c) 1999 Waldo Bastian + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License version 2 as published by the Free Software Foundation. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ +#ifndef KSharedPTR_H +#define KSharedPTR_H + +#include "kdelibs_export.h" + +/** + * Reference counting for shared objects. If you derive your object + * from this class, then you may use it in conjunction with + * KSharedPtr to control the lifetime of your object. + * + * Specifically, all classes that derive from KShared have an internal + * counter keeping track of how many other objects have a reference to + * their object. If used with KSharedPtr, then your object will + * not be deleted until all references to the object have been + * released. + * + * You should probably not ever use any of the methods in this class + * directly -- let the KSharedPtr take care of that. Just derive + * your class from KShared and forget about it. + * + * @author Waldo Bastian + */ +class KDECORE_EXPORT KShared { +public: + /** + * Standard constructor. This will initialize the reference count + * on this object to 0. + */ + KShared() : count(0) { } + + /** + * Copy constructor. This will @em not actually copy the objects + * but it will initialize the reference count on this object to 0. + */ + KShared( const KShared & ) : count(0) { } + + /** + * Overloaded assignment operator. + */ + KShared &operator=(const KShared & ) { return *this; } + + /** + * Increases the reference count by one. + */ + void _KShared_ref() const { count++; } + + /** + * Releases a reference (decreases the reference count by one). If + * the count goes to 0, this object will delete itself. + */ + void _KShared_unref() const { if (!--count) delete this; } + + /** + * Return the current number of references held. + * + * @return Number of references + */ + int _KShared_count() const { return count; } + +protected: + virtual ~KShared() { } +private: + mutable int count; +}; + +/** + * Can be used to control the lifetime of an object that has derived + * KShared. As long a someone holds a KSharedPtr on some KShared + * object it won't become deleted but is deleted once its reference + * count is 0. This struct emulates C++ pointers virtually perfectly. + * So just use it like a simple C++ pointer. + * + * KShared and KSharedPtr are preferred over QShared / QSharedPtr + * since they are more safe. + * + * WARNING: Please note that this class template provides an implicit + * conversion to T*. Do *not* change this pointer or the pointee (don't + * call delete on it, for instance) behind KSharedPtr's back. + * + * @author Waldo Bastian + */ +template< class T > +class KSharedPtr +{ +public: +/** + * Creates a null pointer. + */ + KSharedPtr() + : ptr(0) { } + /** + * Creates a new pointer. + * @param t the pointer + */ + KSharedPtr( T* t ) + : ptr(t) { if ( ptr ) ptr->_KShared_ref(); } + + /** + * Copies a pointer. + * @param p the pointer to copy + */ + KSharedPtr( const KSharedPtr& p ) + : ptr(p.ptr) { if ( ptr ) ptr->_KShared_ref(); } + + /** + * Unreferences the object that this pointer points to. If it was + * the last reference, the object will be deleted. + */ + ~KSharedPtr() { if ( ptr ) ptr->_KShared_unref(); } + + KSharedPtr& operator= ( const KSharedPtr& p ) { + if ( ptr == p.ptr ) return *this; + if ( ptr ) ptr->_KShared_unref(); + ptr = p.ptr; + if ( ptr ) ptr->_KShared_ref(); + return *this; + } + KSharedPtr& operator= ( T* p ) { + if ( ptr == p ) return *this; + if ( ptr ) ptr->_KShared_unref(); + ptr = p; + if ( ptr ) ptr->_KShared_ref(); + return *this; + } + bool operator== ( const KSharedPtr& p ) const { return ( ptr == p.ptr ); } + bool operator!= ( const KSharedPtr& p ) const { return ( ptr != p.ptr ); } + bool operator== ( const T* p ) const { return ( ptr == p ); } + bool operator!= ( const T* p ) const { return ( ptr != p ); } + bool operator!() const { return ( ptr == 0 ); } + operator T*() const { return ptr; } + + /** + * Returns the pointer. + * @return the pointer + */ + T* data() { return ptr; } + + /** + * Returns the pointer. + * @return the pointer + */ + const T* data() const { return ptr; } + + const T& operator*() const { return *ptr; } + T& operator*() { return *ptr; } + const T* operator->() const { return ptr; } + T* operator->() { return ptr; } + + /** + * Returns the number of references. + * @return the number of references + */ + int count() const { return ptr->_KShared_count(); } // for debugging purposes +private: + T* ptr; +}; + +#endif diff --git a/extra/kde341/ksycocafactory.h b/extra/kde341/ksycocafactory.h new file mode 100644 index 0000000..65bb9d9 --- /dev/null +++ b/extra/kde341/ksycocafactory.h @@ -0,0 +1,143 @@ +/* This file is part of the KDE libraries + * Copyright (C) 1999 Waldo Bastian + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License version 2 as published by the Free Software Foundation; + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public License + * along with this library; see the file COPYING.LIB. If not, write to + * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA. + **/ + +#ifndef __ksycocafactory_h__ +#define __ksycocafactory_h__ + +#include "ksycocatype.h" +#include "ksycocaentry.h" + +#include +#include +class KSycoca; +class QStringList; +class QString; +class KSycocaDict; +class KSycocaResourceList; + +typedef QDict KSycocaEntryDict; + +/** + * @internal + * Base class for sycoca factories + */ +class KDECORE_EXPORT KSycocaFactory +{ +public: + virtual KSycocaFactoryId factoryId() const = 0; + +protected: // virtual class + /** + * Create a factory which can be used to lookup from/create a database + * (depending on KSycoca::isBuilding()) + */ + KSycocaFactory( KSycocaFactoryId factory_id ); + +public: + virtual ~KSycocaFactory(); + + /** + * @return the position of the factory in the sycoca file + */ + int offset() { return mOffset; } + + /** + * @return the dict, for special use by KBuildSycoca + */ + KSycocaEntryDict * entryDict() { return m_entryDict; } + + /** + * Construct an entry from a config file. + * To be implemented in the real factories. + */ + virtual KSycocaEntry *createEntry(const QString &file, const char *resource) = 0; + + /** + * Add an entry + */ + virtual void addEntry(KSycocaEntry *newEntry, const char *resource); + + /** + * Remove an entry + * Not very fast, use with care. O(N) + */ + void removeEntry(KSycocaEntry *newEntry); + + /** + * Read an entry from the database + */ + virtual KSycocaEntry *createEntry(int offset)=0; + + /** + * Get a list of all entries from the database. + */ + KSycocaEntry::List allEntries(); + + /** + * Saves all entries it maintains as well as index files + * for these entries to the stream 'str'. + * + * Also sets mOffset to the starting position. + * + * The stream is positioned at the end of the last index. + * + * Don't forget to call the parent first when you override + * this function. + */ + virtual void save(QDataStream &str); + + /** + * Writes out a header to the stream 'str'. + * The baseclass positions the stream correctly. + * + * Don't forget to call the parent first when you override + * this function. + */ + virtual void saveHeader(QDataStream &str); + + /** + * @return the resources for which this factory is responsible. + */ + virtual const KSycocaResourceList * resourceList() const { return m_resourceList; } + +private: + int mOffset; + +protected: + int m_sycocaDictOffset; + int m_beginEntryOffset; + int m_endEntryOffset; + QDataStream *m_str; + + KSycocaResourceList *m_resourceList; + KSycocaEntryDict *m_entryDict; + KSycocaDict *m_sycocaDict; +protected: + virtual void virtual_hook( int id, void* data ); +}; + +/** This, instead of a typedef, allows to declare "class ..." in header files + * @internal + */ +class KDECORE_EXPORT KSycocaFactoryList : public QPtrList +{ +public: + KSycocaFactoryList() { } +}; + +#endif diff --git a/extra/kde341/ktoolbarbutton.h b/extra/kde341/ktoolbarbutton.h new file mode 100644 index 0000000..7b748a0 --- /dev/null +++ b/extra/kde341/ktoolbarbutton.h @@ -0,0 +1,329 @@ +/* This file is part of the KDE libraries + Copyright (C) 1997, 1998 Stephan Kulow (coolo@kde.org) + (C) 1997, 1998 Sven Radej (radej@kde.org) + (C) 1997, 1998 Mark Donohoe (donohoe@kde.org) + (C) 1997, 1998 Matthias Ettrich (ettrich@kde.org) + (C) 2000 Kurt Granroth (granroth@kde.org) + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License version 2 as published by the Free Software Foundation. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef _KTOOLBARBUTTON_H +#define _KTOOLBARBUTTON_H + +#include +#include +#include +#include +#include + +class KToolBar; +class KToolBarButtonPrivate; +class KInstance; +class QEvent; +class QPopupMenu; +class QPainter; + +/** + * A toolbar button. This is used internally by KToolBar, use the + * KToolBar methods instead. + * @internal + */ +class KDEUI_EXPORT KToolBarButton : public QToolButton +{ + Q_OBJECT + +public: + /** + * Construct a button with an icon loaded by the button itself. + * This will trust the button to load the correct icon with the + * correct size. + * + * @param icon Name of icon to load (may be absolute or relative) + * @param id Id of this button + * @param parent This button's parent + * @param name This button's internal name + * @param txt This button's text (in a tooltip or otherwise) + * @param _instance the instance to use for this button + */ + KToolBarButton(const QString& icon, int id, QWidget *parent, + const char *name=0L, const QString &txt=QString::null, + KInstance *_instance = KGlobal::instance()); + + /** + * Construct a button with an existing pixmap. It is not + * recommended that you use this as the internal icon loading code + * will almost always get it "right". + * + * @param pixmap Name of icon to load (may be absolute or relative) + * @param id Id of this button + * @param parent This button's parent + * @param name This button's internal name + * @param txt This button's text (in a tooltip or otherwise) + */ + KToolBarButton(const QPixmap& pixmap, int id, QWidget *parent, + const char *name=0L, const QString &txt=QString::null); + + /** + * Construct a separator button + * + * @param parent This button's parent + * @param name This button's internal name + */ + KToolBarButton(QWidget *parent=0L, const char *name=0L); + + /** + * Standard destructor + */ + ~KToolBarButton(); + +#ifndef KDE_NO_COMPAT + /** + * @deprecated + * Set the pixmap directly for this button. This pixmap should be + * the active one... the dimmed and disabled pixmaps are constructed + * based on this one. However, don't use this function unless you + * are positive that you don't want to use setIcon. + * + * @param pixmap The active pixmap + */ + // this one is from QButton, so #ifdef-ing it out doesn't break BC + virtual void setPixmap(const QPixmap &pixmap) KDE_DEPRECATED; + + /** + * @deprecated + * Force the button to use this pixmap as the default one rather + * then generating it using effects. + * + * @param pixmap The pixmap to use as the default (normal) one + */ + void setDefaultPixmap(const QPixmap& pixmap) KDE_DEPRECATED; + + /** + * @deprecated + * Force the button to use this pixmap when disabled one rather then + * generating it using effects. + * + * @param pixmap The pixmap to use when disabled + */ + void setDisabledPixmap(const QPixmap& pixmap) KDE_DEPRECATED; +#endif + + /** + * Set the text for this button. The text will be either used as a + * tooltip (IconOnly) or will be along side the icon + * + * @param text The button (or tooltip) text + */ + virtual void setText(const QString &text); + + /** + * Set the icon for this button. The icon will be loaded internally + * with the correct size. This function is preferred over setIconSet + * + * @param icon The name of the icon + */ + virtual void setIcon(const QString &icon); + + /// @since 3.1 + virtual void setIcon( const QPixmap &pixmap ) + { QToolButton::setIcon( pixmap ); } + + /** + * Set the pixmaps for this toolbar button from a QIconSet. + * If you call this you don't need to call any of the other methods + * that set icons or pixmaps. + * @param iconset The iconset to use + */ + virtual void setIconSet( const QIconSet &iconset ); + +#ifndef KDE_NO_COMPAT + /** + * @deprecated + * Set the active icon for this button. The pixmap itself is loaded + * internally based on the icon size... .. the disabled and default + * pixmaps, however will only be constructed if generate is + * true. This function is preferred over setPixmap + * + * @param icon The name of the active icon + * @param generate If true, then the other icons are automagically + * generated from this one + */ + KDE_DEPRECATED void setIcon(const QString &icon, bool generate ) { Q_UNUSED(generate); setIcon( icon ); } + + /** + * @deprecated + * Force the button to use this icon as the default one rather + * then generating it using effects. + * + * @param icon The icon to use as the default (normal) one + */ + void setDefaultIcon(const QString& icon) KDE_DEPRECATED; + + /** + * @deprecated + * Force the button to use this icon when disabled one rather then + * generating it using effects. + * + * @param icon The icon to use when disabled + */ + void setDisabledIcon(const QString& icon) KDE_DEPRECATED; +#endif + + /** + * Turn this button on or off + * + * @param flag true or false + */ + void on(bool flag = true); + + /** + * Toggle this button + */ + void toggle(); + + /** + * Turn this button into a toggle button or disable the toggle + * aspects of it. This does not toggle the button itself. + * Use toggle() for that. + * + * @param toggle true or false + */ + void setToggle(bool toggle = true); + + /** + * Return a pointer to this button's popup menu (if it exists) + */ + QPopupMenu *popup(); + + /** + * Returns the button's id. + * @since 3.2 + */ + int id() const; + + /** + * Give this button a popup menu. There will not be a delay when + * you press the button. Use setDelayedPopup if you want that + * behavior. + * + * @param p The new popup menu + * @param unused Has no effect - ignore it. + */ + void setPopup (QPopupMenu *p, bool unused = false); + + /** + * Gives this button a delayed popup menu. + * + * This function allows you to add a delayed popup menu to the button. + * The popup menu is then only displayed when the button is pressed and + * held down for about half a second. + * + * @param p the new popup menu + * @param unused Has no effect - ignore it. + */ + void setDelayedPopup(QPopupMenu *p, bool unused = false); + + /** + * Turn this button into a radio button + * + * @param f true or false + */ + void setRadio(bool f = true); + + /** + * Toolbar buttons naturally will assume the global styles + * concerning icons, icons sizes, etc. You can use this function to + * explicitly turn this off, if you like. + * + * @param no_style Will disable styles if true + */ + void setNoStyle(bool no_style = true); + +signals: + /** + * Emitted when the toolbar button is clicked (with LMB or MMB) + */ + void clicked(int); + /** + * Emitted when the toolbar button is clicked (with any mouse button) + * @param state makes it possible to find out which button was pressed, + * and whether any keyboard modifiers were held. + * @since 3.4 + */ + void buttonClicked(int, Qt::ButtonState state); + void doubleClicked(int); + void pressed(int); + void released(int); + void toggled(int); + void highlighted(int, bool); + +public slots: + /** + * This slot should be called whenever the toolbar mode has + * potentially changed. This includes such events as text changing, + * orientation changing, etc. + */ + void modeChange(); + virtual void setTextLabel(const QString&, bool tipToo); + +protected: + void paletteChange(const QPalette &); + void leaveEvent(QEvent *e); + void enterEvent(QEvent *e); + void drawButton(QPainter *p); + bool eventFilter (QObject *o, QEvent *e); + /// @since 3.4 + void mousePressEvent( QMouseEvent * ); + /// @since 3.4 + void mouseReleaseEvent( QMouseEvent * ); + void showMenu(); + QSize sizeHint() const; + QSize minimumSizeHint() const; + QSize minimumSize() const; + + /// @since 3.1 + bool isRaised() const; + /// @since 3.1 + bool isActive() const; + /// @since 3.1 + int iconTextMode() const; + +protected slots: + void slotClicked(); + void slotPressed(); + void slotReleased(); + void slotToggled(); + void slotDelayTimeout(); + +protected: + virtual void virtual_hook( int id, void* data ); +private: + KToolBarButtonPrivate *d; +}; + +/** +* List of KToolBarButton objects. +* @internal +* @version $Id: ktoolbarbutton.h,v 1.39 2004/12/22 14:08:36 faure Exp $ +*/ +class KDEUI_EXPORT KToolBarButtonList : public QIntDict +{ +public: + KToolBarButtonList(); + ~KToolBarButtonList() {} +}; + +#endif diff --git a/extra/kde341/kurifilter.h b/extra/kde341/kurifilter.h new file mode 100644 index 0000000..21ad4ed --- /dev/null +++ b/extra/kde341/kurifilter.h @@ -0,0 +1,647 @@ +/* + * This file is part of the KDE libraries + * Copyright (C) 2000-2001,2003 Dawit Alemayehu + * + * Original author + * Copyright (C) 2000 Yves Arrouye + * + * + * This library 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. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public License + * along with this library; see the file COPYING.LIB. If not, write to + * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA. + **/ + +#ifndef __kurifilter_h__ +#define __kurifilter_h__ + +#include +#include +#include + +#include + +#ifdef Q_OS_WIN +#undef ERROR +#endif + +class KURIFilterPrivate; +class KURIFilterDataPrivate; + +class KCModule; + +/** +* A basic message object used for exchanging filtering +* information between the filter plugins and the application +* requesting the filtering service. +* +* Use this object if you require a more detailed information +* about the URI you want to filter. Any application can create +* an instance of this class and send it to KURIFilter to +* have the plugins fill out all possible information about the +* URI. +* +* \b Example +* +* \code +* QString text = "kde.org"; +* KURIFilterData d = text; +* bool filtered = KURIFilter::self()->filter( d ); +* cout << "URL: " << text.latin1() << endl +* << "Filtered URL: " << d.uri().url().latin1() << endl +* << "URI Type: " << d.uriType() << endl +* << "Was Filtered: " << filtered << endl; +* \endcode +* +* The above code should yield the following output: +* \code +* URI: kde.org +* Filtered URI: http://kde.org +* URI Type: 0 <== means NET_PROTOCOL +* Was Filtered: 1 <== means the URL was successfully filtered +* \endcode +* +* @short A message object for exchanging filtering URI info. +* @author Dawit Alemayehu +*/ + +class KIO_EXPORT KURIFilterData +{ +friend class KURIFilterPlugin; + +public: + /** + * Describes the type of the URI that was filtered. + * Here is a brief description of the types: + * + * @li NET_PROTOCOL - Any network protocol: http, ftp, nttp, pop3, etc... + * @li LOCAL_FILE - A local file whose executable flag is not set + * @li LOCAL_DIR - A local directory + * @li EXECUTABLE - A local file whose executable flag is set + * @li HELP - A man or info page + * @li SHELL - A shell executable (ex: echo "Test..." >> ~/testfile) + * @li BLOCKED - A URI that should be blocked/filtered (ex: ad filtering) + * @li ERROR - An incorrect URI (ex: "~johndoe" when user johndoe + * does not exist in that system ) + * @li UNKNOWN - A URI that is not identified. Default value when + * a KURIFilterData is first created. + */ + enum URITypes { NET_PROTOCOL=0, LOCAL_FILE, LOCAL_DIR, EXECUTABLE, HELP, SHELL, BLOCKED, ERROR, UNKNOWN }; + + /** + * Default constructor. + * + * Creates a URIFilterData object. + */ + KURIFilterData() { init(); } + + /** + * Creates a URIFilterData object from the given URL. + * + * @param url is the URL to be filtered. + */ + KURIFilterData( const KURL& url ) { init( url); } + + /** + * Creates a URIFilterData object from the given string. + * + * @param url is the string to be filtered. + */ + KURIFilterData( const QString& url ) { init( url ); } + + /** + * Copy constructor. + * + * Creates a URIFilterData object from another + * URI filter data object. + * + * @param data the uri filter data to be copied. + */ + KURIFilterData( const KURIFilterData& data); + + /** + * Destructor. + */ + ~KURIFilterData(); + + /** + * This method has been deprecated and will always return + * true. You should instead use the result from the + * KURIFilter::filterURI() calls. + * + * @deprecated + */ + KDE_DEPRECATED bool hasBeenFiltered() const { return true; } + + /** + * Returns the filtered or the original URL. + * + * This function returns the filtered url if one + * of the plugins successfully filtered the original + * URL. Otherwise, it returns the original URL. + * See hasBeenFiltered() and + * + * @return the filtered or original url. + */ + KURL uri() const { return m_pURI; } + + /** + * Returns an error message. + * + * This functions returns the error message set + * by the plugin whenever the uri type is set to + * KURIFilterData::ERROR. Otherwise, it returns + * a QString::null. + * + * @return the error message or a NULL when there is none. + */ + QString errorMsg() const { return m_strErrMsg; } + + /** + * Returns the URI type. + * + * This method always returns KURIFilterData::UNKNOWN + * if the given URL was not filtered. + * @return the type of the URI + */ + URITypes uriType() const { return m_iType; } + + /** + * Sets the URL to be filtered. + * + * Use this function to set the string to be + * filtered when you construct an empty filter + * object. + * + * @param url the string to be filtered. + */ + void setData( const QString& url ) { init( url ); } + + /** + * Same as above except the argument is a URL. + * + * Use this function to set the string to be + * filtered when you construct an empty filter + * object. + * + * @param url the URL to be filtered. + */ + void setData( const KURL& url ) { init( url ); } + + /** + * Sets the absolute path to be used whenever the supplied + * data is a relative local URL. + * + * NOTE: This function should only be used for local resources, + * i.e. the "file:/" protocol. It is useful for specifying the + * absolute path in cases where the actual URL might be relative. + * meta object. If deriving the path from a KURL, make sure you + * set the argument for this function to the result of calling + * path () instead of url (). + * + * @param abs_path the abolute path to the local resource. + * @return true if absolute path is successfully set. Otherwise, false. + */ + bool setAbsolutePath( const QString& abs_path ); + + /** + * Returns the absolute path if one has already been set. + * @return the absolute path, or QString::null + * @see hasAbsolutePath() + */ + QString absolutePath() const; + + /** + * Checks whether the supplied data had an absolute path. + * @return true if the supplied data has an absolute path + * @see absolutePath() + */ + bool hasAbsolutePath() const; + + /** + * Returns the command line options and arguments for a + * local resource when present. + * + * @return options and arguments when present, otherwise QString::null + */ + QString argsAndOptions() const; + + /** + * Checks whether the current data is a local resource with + * command line options and arguments. + * @return true if the current data has command line options and arguments + */ + bool hasArgsAndOptions() const; + + /** + * Returns the name of the icon that matches + * the current filtered URL. + * + * NOTE that this function will return a NULL + * string by default and when no associated icon + * is found. + * + * @return the name of the icon associated with the resource, + * or QString::null if not found + */ + QString iconName(); + + /** + * Check whether the provided uri is executable or not. + * + * Setting this to false ensures that typing the name of + * an executable does not start that application. This is + * useful in the location bar of a browser. The default + * value is true. + * + * @since 3.2 + */ + void setCheckForExecutables (bool check); + + /** + * @return true if the filters should attempt to check whether the + * supplied uri is an executable. False otherwise. + * + * @since 3.2 + */ + bool checkForExecutables() const { return m_bCheckForExecutables; } + + /** + * @return the string as typed by the user, before any URL processing is done + * @since 3.2 + */ + QString typedString() const; + + /** + * Overloaded assigenment operator. + * + * This function allows you to easily assign a KURL + * to a KURIFilterData object. + * + * @return an instance of a KURIFilterData object. + */ + KURIFilterData& operator=( const KURL& url ) { init( url ); return *this; } + + /** + * Overloaded assigenment operator. + * + * This function allows you to easily assign a QString + * to a KURIFilterData object. + * + * @return an instance of a KURIFilterData object. + */ + KURIFilterData& operator=( const QString& url ) { init( url ); return *this; } + +protected: + + /** + * Initializes the KURIFilterData on construction. + * @param url the URL to initialize the object with + */ + void init( const KURL& url); + + /** + * Initializes the KURIFilterData on construction. + * @param url the URL to initialize the object with + */ + void init( const QString& url = QString::null ); + +private: + bool m_bCheckForExecutables; + bool m_bChanged; + + QString m_strErrMsg; + QString m_strIconName; + + KURL m_pURI; + URITypes m_iType; + KURIFilterDataPrivate *d; +}; + + +/** + * Base class for URI filter plugins. + * + * This class applies a single filter to a URI. All plugins designed + * to provide URI filtering service should inherit from this abstract + * class and provide a concrete implementation. + * + * All inheriting classes need to implement the pure virtual function + * filterURI. + * + * @short Abstract class for URI filter plugins. + */ +class KIO_EXPORT KURIFilterPlugin : public QObject +{ + Q_OBJECT + +public: + + /** + * Constructs a filter plugin with a given name and + * priority. + * + * @param parent the parent object, or 0 for no parent + * @param name the name of the plugin, or 0 for no name + * @param pri the priority of the plugin. + */ + KURIFilterPlugin( QObject *parent = 0, const char *name = 0, double pri = 1.0 ); + + /** + * Returns the filter's name. + * + * @return A string naming the filter. + */ + virtual QString name() const { return m_strName; } + + /** + * Returns the filter's priority. + * + * Each filter has an assigned priority, a float from 0 to 1. Filters + * with the lowest priority are first given a chance to filter a URI. + * + * @return The priority of the filter. + */ + virtual double priority() const { return m_dblPriority; } + + /** + * Filters a URI. + * + * @param data the URI data to be filtered. + * @return A boolean indicating whether the URI has been changed. + */ + virtual bool filterURI( KURIFilterData& data ) const = 0; + + /** + * Creates a configuration module for the filter. + * + * It is the responsibility of the caller to delete the module + * once it is not needed anymore. + * + * @return A configuration module, 0 if the filter isn't configurable. + */ + virtual KCModule *configModule( QWidget*, const char* ) const { return 0; } + + /** + * Returns the name of the configuration module for the filter. + * + * @return the name of a configuration module or QString::null if none. + */ + virtual QString configName() const { return name(); } + +protected: + + /** + * Sets the the URL in @p data to @p uri. + */ + void setFilteredURI ( KURIFilterData& data, const KURL& uri ) const; + + /** + * Sets the error message in @p data to @p errormsg. + */ + void setErrorMsg ( KURIFilterData& data, const QString& errmsg ) const { + data.m_strErrMsg = errmsg; + } + + /** + * Sets the URI type in @p data to @p type. + */ + void setURIType ( KURIFilterData& data, KURIFilterData::URITypes type) const { + data.m_iType = type; + data.m_bChanged = true; + } + + /** + * Sets the arguments and options string in @p data + * to @p args if any were found during filterting. + */ + void setArguments( KURIFilterData& data, const QString& args ) const; + + QString m_strName; + double m_dblPriority; + +protected: + virtual void virtual_hook( int id, void* data ); +private: + class KURIFilterPluginPrivate *d; +}; + + +/** + * A list of filter plugins. + */ +class KIO_EXPORT KURIFilterPluginList : public QPtrList +{ +public: + virtual int compareItems(Item a, Item b) + { + double diff = ((KURIFilterPlugin *) a)->priority() - ((KURIFilterPlugin *) b)->priority(); + return diff < 0 ? -1 : (diff > 0 ? 1 : 0); + } + +private: + KURIFilterPrivate *d; + +}; + +/** + * Manages the filtering of URIs. + * + * The intention of this plugin class is to allow people to extend the + * functionality of KURL without modifying it directly. This way KURL will + * remain a generic parser capable of parsing any generic URL that adheres + * to specifications. + * + * The KURIFilter class applies a number of filters to a URI and returns the + * filtered version whenever possible. The filters are implemented using + * plugins to provide easy extensibility of the filtering mechanism. New + * filters can be added in the future by simply inheriting from + * KURIFilterPlugin and implementing the KURIFilterPlugin::filterURI + * method. + * + * Use of this plugin-manager class is straight forward. Since it is a + * singleton object, all you have to do is obtain an instance by doing + * @p KURIFilter::self() and use any of the public member functions to + * preform the filtering. + * + * \b Example + * + * To simply filter a given string: + * + * \code + * bool filtered = KURIFilter::self()->filterURI( "kde.org" ); + * \endcode + * + * You can alternatively use a KURL: + * + * \code + * KURL url = "kde.org"; + * bool filtered = KURIFilter::self()->filterURI( url ); + * \endcode + * + * If you have a constant string or a constant URL, simply invoke the + * corresponding function to obtain the filtered string or URL instead + * of a boolean flag: + * + * \code + * QString u = KURIFilter::self()->filteredURI( "kde.org" ); + * \endcode + * + * You can also restrict the filter(s) to be used by supplying + * the name of the filter(s) to use. By defualt all available + * filters will be used. To use specific filters, add the names + * of the filters you want to use to a QStringList and invoke + * the appropriate filtering function. The examples below show + * the use of specific filters. The first one uses a single + * filter called kshorturifilter while the second example uses + * multiple filters: + * + * \code + * QString text = "kde.org"; + * bool filtered = KURIFilter::self()->filterURI( text, "kshorturifilter" ); + * \endcode + * + * \code + * QStringList list; + * list << "kshorturifilter" << "localdomainfilter"; + * bool filtered = KURIFilter::self()->filterURI( text, list ); + * \endcode + * + * KURIFilter also allows richer data exchange through a simple + * meta-object called @p KURIFilterData. Using this meta-object + * you can find out more information about the URL you want to + * filter. See KURIFilterData for examples and details. + * + * @short Filters a given URL into its proper format whenever possible. + */ + +class KIO_EXPORT KURIFilter +{ +public: + /** + * Destructor + */ + ~KURIFilter (); + + /** + * Returns an instance of KURIFilter. + */ + static KURIFilter* self(); + + /** + * Filters the URI given by the object URIFilterData. + * + * The given URL is filtered based on the specified list of filters. + * If the list is empty all available filters would be used. + * + * @param data object that contains the URI to be filtered. + * @param filters specify the list of filters to be used. + * + * @return a boolean indicating whether the URI has been changed + */ + bool filterURI( KURIFilterData& data, const QStringList& filters = QStringList() ); + + /** + * Filters the URI given by the URL. + * + * The given URL is filtered based on the specified list of filters. + * If the list is empty all available filters would be used. + * + * @param uri the URI to filter. + * @param filters specify the list of filters to be used. + * + * @return a boolean indicating whether the URI has been changed + */ + bool filterURI( KURL &uri, const QStringList& filters = QStringList() ); + + /** + * Filters a string representing a URI. + * + * The given URL is filtered based on the specified list of filters. + * If the list is empty all available filters would be used. + * + * @param uri The URI to filter. + * @param filters specify the list of filters to be used. + * + * @return a boolean indicating whether the URI has been changed + */ + bool filterURI( QString &uri, const QStringList& filters = QStringList() ); + + /** + * Returns the filtered URI. + * + * The given URL is filtered based on the specified list of filters. + * If the list is empty all available filters would be used. + * + * @param uri The URI to filter. + * @param filters specify the list of filters to be used. + * + * @return the filtered URI or null if it cannot be filtered + */ + KURL filteredURI( const KURL &uri, const QStringList& filters = QStringList() ); + + /** + * Return a filtered string representation of a URI. + * + * The given URL is filtered based on the specified list of filters. + * If the list is empty all available filters would be used. + * + * @param uri the URI to filter. + * @param filters specify the list of filters to be used. + * + * @return the filtered URI or null if it cannot be filtered + */ + QString filteredURI( const QString &uri, const QStringList& filters = QStringList() ); + + /** + * Return an iterator to iterate over all loaded + * plugins. + * + * @return a plugin iterator. + */ + QPtrListIterator pluginsIterator() const; + + /** + * Return a list of the names of all loaded plugins. + * + * @return a QStringList of plugin names + * @since 3.1 + */ + QStringList pluginNames() const; + +protected: + + /** + * A protected constructor. + * + * This constructor creates a KURIFilter and + * initializes all plugins it can find by invoking + * loadPlugins. + */ + KURIFilter(); + + /** + * Loads all allowed plugins. + * + * This function loads all filters that have not + * been disbled. + */ + void loadPlugins(); + +private: + static KURIFilter *m_self; + KURIFilterPluginList m_lstPlugins; + KURIFilterPrivate *d; +}; + +#endif diff --git a/extra/kde341/selectdialog.h b/extra/kde341/selectdialog.h new file mode 100644 index 0000000..20b899a --- /dev/null +++ b/extra/kde341/selectdialog.h @@ -0,0 +1,87 @@ +/* + This file is part of libkresources. + + Copyright (c) 2002 Tobias Koenig + Copyright (c) 2002 Jan-Pascal van Best + Copyright (c) 2003 Cornelius Schumacher + + This library 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. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef KRESOURCES_SELECTDIALOG_H +#define KRESOURCES_SELECTDIALOG_H + +#include +#include +#include + +#include + +class KListBox; + +namespace KRES { + +class Resource; + +/** + * Dialog for selecting a resource. + * + * Example: + * + * \code + * + * QPtrList list = ... // can be retrived from KRES::Manager (e.g. KABC::AddressBook) + * + * KABC::Resource *res = KABC::SelectDialog::getResource( list, parentWdg ); + * if ( !res ) { + * // no resource selected + * } else { + * // do something with resource + * } + * \endcode + */ +class KRESOURCES_EXPORT SelectDialog +{ + public: + /** + * Constructor. + * @param list The list of available resources + * @param parent The parent widget + * @param name The name of the dialog + */ + SelectDialog( QPtrList list, QWidget *parent = 0, + const char *name = 0); + + /** + * Returns selected resource. + */ + Resource *resource(); + + /** + * Opens a dialog showing the available resources and returns the resource the + * user has selected. Returns 0, if the dialog was canceled. + */ + static Resource *getResource( QPtrList list, QWidget *parent = 0 ); + + private: + KListBox *mResourceId; + + QMap mResourceMap; +}; + +} + +#endif diff --git a/extra/kde342/configwidget.h b/extra/kde342/configwidget.h new file mode 100644 index 0000000..ae76397 --- /dev/null +++ b/extra/kde342/configwidget.h @@ -0,0 +1,58 @@ +/* + This file is part of libkresources. + Copyright (c) 2002 Tobias Koenig + Copyright (c) 2002 Jan-Pascal van Best + + This library 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. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef KRESOURCES_CONFIGWIDGET_H +#define KRESOURCES_CONFIGWIDGET_H + +#include "resource.h" + +#include + +#include + +namespace KRES { + +class KRESOURCES_EXPORT ConfigWidget : public QWidget +{ + Q_OBJECT + public: + ConfigWidget( QWidget *parent = 0, const char *name = 0 ); + + /** + Sets the widget to 'edit' mode. Reimplement this method if you are + interested in the mode change (to disable some GUI element for + example). By default the widget is in 'create new' mode. + */ + virtual void setInEditMode( bool value ); + + public slots: + virtual void loadSettings( Resource *resource ) = 0; + virtual void saveSettings( Resource *resource ) = 0; + + signals: + void setReadOnly( bool value ); + + protected: + Resource *mResource; +}; + +} +#endif diff --git a/extra/kde342/kaccelaction.h b/extra/kde342/kaccelaction.h new file mode 100644 index 0000000..396e218 --- /dev/null +++ b/extra/kde342/kaccelaction.h @@ -0,0 +1,564 @@ +/* This file is part of the KDE libraries + Copyright (C) 2001,2002 Ellis Whitehead + + This library 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. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef _KACCELACTION_H +#define _KACCELACTION_H + +#include +#include +#include +#include + +#include + +class KAccelBase; + +class QObject; +class KConfig; +class KConfigBase; + +/** + * @internal + * A KAccelAction prepresents an action that can be executed using + * an accelerator key. Each KAccelAction has a name, a label, a + * "What's this" string and a KShortcut. The user can configure and + * enable/disable them using KKeyDialog. + * + * \code + * 1) KAccelAction = "Run Command" + * Default3 = "Alt+F2" + * Default4 = "Meta+Enter;Alt+F2" + * 1) KShortcut = "Meta+Enter" + * 1) KKeySequence = "Meta+Enter" + * 1) KKey = "Meta+Enter" + * 1) Meta+Enter + * 2) Meta+Keypad_Enter + * 2) KShortcut = "Alt+F2" + * 1) KKeySequence = "Alt+F2" + * 1) Alt+F2 + * 2) KAccelAction = "Something" + * Default3 = "" + * Default4 = "" + * 1) KShortcut = "Meta+X,Asterisk" + * 1) KKeySequence = "Meta+X,Asterisk" + * 1) KKey = "Meta+X" + * 1) Meta+X + * 2) KKey = "Asterisk" + * 1) Shift+8 (English layout) + * 2) Keypad_Asterisk + * \endcode + * @short An accelerator action + * @see KAccel + * @see KGlobalAccel + * @see KKeyChooser + * @see KKeyDialog + */ +class KDECORE_EXPORT KAccelAction +{ + public: + /** + * Creates an empty KAccelAction. + * @see clear() + */ + KAccelAction(); + + /** + * Copy constructor. + */ + KAccelAction( const KAccelAction& ); + + /** + * Creates a new KAccelAction. + * @param sName the name of the accelerator + * @param sLabel the label of the accelerator (i18n!) + * @param sWhatsThis the What's This text (18n!) + * @param cutDef3 the default shortcut for 3 modifier systems + * @param cutDef4 the default shortcut for 4 modifier systems + * @param pObjSlot the receiver of a signal when the key has been + * pressed + * @param psMethodSlot the slot to connect for key presses. Receives + * an int, as set by setID(), as only argument + * @param bConfigurable if true the user can configure the shortcut + * @param bEnabled true if the accelerator should be enabled + */ + KAccelAction( const QString& sName, const QString& sLabel, const QString& sWhatsThis, + const KShortcut& cutDef3, const KShortcut& cutDef4, + const QObject* pObjSlot, const char* psMethodSlot, + bool bConfigurable, bool bEnabled ); + ~KAccelAction(); + + /** + * Clears the accelerator. + */ + void clear(); + + /** + * Re-initialized the KAccelAction. + * @param sName the name of the accelerator + * @param sLabel the label of the accelerator (i18n!) + * @param sWhatsThis the What's This text (18n!) + * @param cutDef3 the default shortcut for 3 modifier systems + * @param cutDef4 the default shortcut for 4 modifier systems + * @param pObjSlot the receiver of a signal when the key has been + * pressed + * @param psMethodSlot the slot to connect for key presses. Receives + * an int, as set by setID(), as only argument + * @param bConfigurable if true the user can configure the shortcut + * @param bEnabled true if the accelerator should be enabled + * @return true if successful, false otherwise + */ + bool init( const QString& sName, const QString& sLabel, const QString& sWhatsThis, + const KShortcut& cutDef3, const KShortcut& cutDef4, + const QObject* pObjSlot, const char* psMethodSlot, + bool bConfigurable, bool bEnabled ); + + /** + * Copies this KAccelAction. + */ + KAccelAction& operator=( const KAccelAction& ); + + /** + * Returns the name of the accelerator action. + * @return the name of the accelerator action, can be null if not + * set + */ + const QString& name() const { return m_sName; } + + /** + * Returns the label of the accelerator action. + * @return the label of the accelerator action, can be null if + * not set + */ + const QString& label() const { return m_sLabel; } + + /** + * Returns the What's This text of the accelerator action. + * @return the What's This text of the accelerator action, can be + * null if not set + */ + const QString& whatsThis() const { return m_sWhatsThis; } + + /** + * The shortcut that is actually used (may be used configured). + * @return the shortcut of the KAccelAction, can be null if not set + * @see shortcutDefault() + */ + const KShortcut& shortcut() const { return m_cut; } + + /** + * The default shortcut for this system. + * @return the default shortcut on this system, can be null if not set + * @see shortcut() + * @see shortcutDefault3() + * @see shortcutDefault4() + */ + const KShortcut& shortcutDefault() const; + + /** + * The default shortcut for 3 modifier systems. + * @return the default shortcut for 3 modifier systems, can be null + * if not set + * @see shortcutDefault() + * @see shortcutDefault4() + * @see useFourModifierKeys() + */ + const KShortcut& shortcutDefault3() const { return m_cutDefault3; } + + /** + * The default shortcut for 4 modifier systems. + * @return the default shortcut for 4 modifier systems, can be null + * if not set + * @see shortcutDefault() + * @see shortcutDefault3() + * @see useFourModifierKeys() + */ + const KShortcut& shortcutDefault4() const { return m_cutDefault4; } + + /** + * Returns the receiver of signals. + * @return the receiver of signals (can be 0 if not set) + */ + const QObject* objSlotPtr() const { return m_pObjSlot; } + + /** + * Returns the slot for the signal. + * @return the slot for the signal + */ + const char* methodSlotPtr() const { return m_psMethodSlot; } + + /** + * Checks whether the user can configure the action. + * @return true if configurable, false otherwise + */ + bool isConfigurable() const { return m_bConfigurable; } + + /** + * Checks whether the action is enabled. + * @return true if enabled, false otherwise + */ + bool isEnabled() const { return m_bEnabled; } + + /** + * Sets the name of the accelerator action. + * @param name the new name + */ + void setName( const QString& name ); + + /** + * Sets the user-readable label of the accelerator action. + * @param label the new label (i18n!) + */ + void setLabel( const QString& label ); + + /** + * Sets the What's This text for the accelerator action. + * @param whatsThis the new What's This text (i18n!) + */ + void setWhatsThis( const QString& whatsThis ); + + /** + * Sets the new shortcut of the accelerator action. + * @param rgCuts the shortcut to set + * @return true if successful, false otherwise + */ + bool setShortcut( const KShortcut& rgCuts ); + + /** + * Sets the slot of the accelerator action. + * @param pObjSlot the receiver object of the signal + * @param psMethodSlot the slot for the signal + */ + void setSlot( const QObject* pObjSlot, const char* psMethodSlot ); + + /** + * Enables or disabled configuring the action. + * @param configurable true to enable configurability, false to disable + */ + void setConfigurable( bool configurable ); + + /** + * Enables or disabled the action. + * @param configurable true to enable the action, false to disable + */ + void setEnabled( bool enable ); + + /** + * Retrieves the id set using setID. + * @return the id of the accelerator action + */ + int getID() const { return m_nIDAccel; } + + /** + * Allows you to set an id that will be used as the action + * signal's argument. + * + * @param n the new id + * @see getID() + */ + void setID( int n ) { m_nIDAccel = n; } + + /** + * Checkes whether the action is connected (emits signals). + * @return true if connected, false otherwise + */ + bool isConnected() const; + + /** + * Sets a key sequence of the action's shortcut. + * @param i the position of the sequence + * @param keySeq the new new sequence + * @return true if successful, false otherwise + * @see KShortcut::setSeq() + */ + bool setKeySequence( uint i, const KKeySequence &keySeq ); + + /** + * Clears the action's shortcut. It will not contain any sequences after + * calling this method. + * @see KShortcut::clear() + */ + void clearShortcut(); + + /** + * Checks whether the action's shortcut contains the given key sequence. + * @param keySeq the key sequence to check + * @return true if the shortcut contains the given sequence + * @see KShortcut::contains() + */ + bool contains( const KKeySequence &keySeq ); + + /** + * Returns the string representation of the action's shortcut. + * @return the string representation of the action's shortcut. + * @see KShortcut::toString() + */ + QString toString() const; + + /** + * @internal + */ + QString toStringInternal() const; + + /** + * Returns true if four modifier keys will be used. + * @return true if four modifier keys will be used. + */ + static bool useFourModifierKeys(); + + /** + * Selects 3 or 4 modifier default shortcuts. + * @param use true to use 4 modifier shortcuts, false to use + * 3 modifier shortcuts + */ + static void useFourModifierKeys( bool use ); + + protected: + QString m_sName, + m_sLabel, + m_sWhatsThis; + KShortcut m_cut; + KShortcut m_cutDefault3, m_cutDefault4; + const QObject* m_pObjSlot; + const char* m_psMethodSlot; + bool m_bConfigurable, + m_bEnabled; + int m_nIDAccel; + uint m_nConnections; + + void incConnections(); + void decConnections(); + + private: + static int g_bUseFourModifierKeys; + class KAccelActionPrivate* d; + + friend class KAccelActions; + friend class KAccelBase; +}; + +//--------------------------------------------------------------------- +// KAccelActions +//--------------------------------------------------------------------- + +/** + * @internal + * This class represents a collection of KAccelAction objects. + * + * @short A collection of accelerator actions + * @see KAccelAction + */ +class KDECORE_EXPORT KAccelActions +{ + public: + /** + * Creates a new, empty KAccelActions object. + */ + KAccelActions(); + + /** + * Copy constructor (deep copy). + */ + KAccelActions( const KAccelActions& ); + virtual ~KAccelActions(); + + /** + * Removes all items from this collection. + */ + void clear(); + + /** + * Initializes this object with the given actions. + * It will make a deep copy of all actions. + * @param actions the actions to copy + * @return true if successful, false otherwise + */ + bool init( const KAccelActions &actions ); + + /** + * Loads the actions from the given configuration file. + * + * @param config the configuration file to load from + * @param sGroup the group in the configuration file + * @return true if successful, false otherwise + */ + bool init( KConfigBase& config, const QString& sGroup ); + + /** + * Updates the shortcuts of all actions in this object + * with the shortcuts from the given object. + * @param shortcuts the collection that contains the new + * shortcuts + */ + void updateShortcuts( KAccelActions &shortcuts ); + + /** + * Retrieves the index of the action with the given name. + * @param sAction the action to search + * @return the index of the action, or -1 if not found + */ + int actionIndex( const QString& sAction ) const; + + /** + * Returns the action with the given @p index. + * @param index the index of an action. You must not + * use an index that is too high. + * @return the KAccelAction with the given index + * @see count() + */ + KAccelAction* actionPtr( uint index ); + + /** + * Returns the action with the given @p index. + * @param index the index of an action. You must not + * use an index that is too high. + * @return the KAccelAction with the given index + * @see count() + */ + const KAccelAction* actionPtr( uint index ) const; + + /** + * Returns the action with the given name. + * @param aAction the name of the action to search + * @return the KAccelAction with the given name, or 0 + * if not found + */ + KAccelAction* actionPtr( const QString& sAction ); + + /** + * Returns the action with the given name. + * @param aAction the name of the action to search + * @return the KAccelAction with the given name, or 0 + * if not found + */ + const KAccelAction* actionPtr( const QString& sAction ) const; + + /** + * Returns the action with the given key sequence. + * @param cut the sequence to search for + * @return the KAccelAction with the given sequence, or 0 + * if not found + */ + KAccelAction* actionPtr( KKeySequence cut ); + + /** + * Returns the action with the given @p index. + * @param index the index of an action. You must not + * use an index that is too high. + * @return the KAccelAction with the given index + * @see actionPtr() + * @see count() + */ + KAccelAction& operator []( uint index ); + + /** + * Returns the action with the given @p index. + * @param index the index of an action. You must not + * use an index that is too high. + * @return the KAccelAction with the given index + * @see actionPtr() + * @see count() + */ + const KAccelAction& operator []( uint index ) const; + + /** + * Inserts an action into the collection. + * @param sName the name of the accelerator + * @param sLabel the label of the accelerator (i18n!) + * @param sWhatsThis the What's This text (18n!) + * @param cutDef3 the default shortcut for 3 modifier systems + * @param cutDef4 the default shortcut for 4 modifier systems + * @param pObjSlot the receiver of a signal when the key has been + * pressed + * @param psMethodSlot the slot to connect for key presses. Receives + * an int, as set by setID(), as only argument + * @param bConfigurable if true the user can configure the shortcut + * @param bEnabled true if the accelerator should be enabled + * @return the new action + */ + KAccelAction* insert( const QString& sAction, const QString& sLabel, const QString& sWhatsThis, + const KShortcut& rgCutDefaults3, const KShortcut& rgCutDefaults4, + const QObject* pObjSlot = 0, const char* psMethodSlot = 0, + bool bConfigurable = true, bool bEnabled = true ); + + /** + * Inserts an action into the collection. + * @param sName the name of the accelerator + * @param sLabel the label of the accelerator (i18n!) + * @return the new action + */ + KAccelAction* insert( const QString& sName, const QString& sLabel ); + + /** + * Removes the given action. + * @param sAction the name of the action. + * @return true if successful, false otherwise + */ + bool remove( const QString& sAction ); + + /** + * Loads the actions from the given configuration file. + * + * @param sConfigGroup the group in the configuration file + * @param pConfig the configuration file to load from + * @return true if successful, false otherwise + */ + bool readActions( const QString& sConfigGroup = "Shortcuts", KConfigBase* pConfig = 0 ); + + /** + * Writes the actions to the given configuration file. + * + * @param sConfigGroup the group in the configuration file + * @param pConfig the configuration file to save to + * @param bWriteAll true to write all actions + * @param bGlobal true to write to the global configuration file + * @return true if successful, false otherwise + */ + bool writeActions( const QString& sConfigGroup = "Shortcuts", KConfigBase* pConfig = 0, + bool bWriteAll = false, bool bGlobal = false ) const; + + /** + * Emit a keycodeChanged signal. + */ + void emitKeycodeChanged(); + + /** + * Returns the number of actions in the collection. + * @return the number of actions + */ + uint count() const; + + protected: + KAccelBase* m_pKAccelBase; + KAccelAction** m_prgActions; + uint m_nSizeAllocated, m_nSize; + + void resize( uint ); + void insertPtr( KAccelAction* ); + + private: + class KAccelActionsPrivate* d; + + KAccelActions( KAccelBase* ); + void initPrivate( KAccelBase* ); + KAccelActions& operator =( KAccelActions& ); + + friend class KAccelBase; +}; + +#endif // _KACCELACTION_H diff --git a/extra/kde342/kaccelbase.h b/extra/kde342/kaccelbase.h new file mode 100644 index 0000000..f582cce --- /dev/null +++ b/extra/kde342/kaccelbase.h @@ -0,0 +1,229 @@ +/* This file is part of the KDE libraries + Copyright (C) 2001 Ellis Whitehead + + This library 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. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef _KACCELBASE_H +#define _KACCELBASE_H + +#include +#include +#include +#include +#include + +#include "kaccelaction.h" +#include "kkeyserver.h" + +class QPopupMenu; +class QWidget; + +//---------------------------------------------------- + +/** + * @internal + * Handle keyboard accelerators. + * + * Allow an user to configure + * key bindings through application configuration files or through the + * KKeyChooser GUI. + * + * A KAccel contains a list of accelerator items. Each accelerator item + * consists of an action name and a keyboard code combined with modifiers + * (Shift, Ctrl and Alt.) + * + * For example, "Ctrl+P" could be a shortcut for printing a document. The key + * codes are listed in ckey.h. "Print" could be the action name for printing. + * The action name identifies the key binding in configuration files and the + * KKeyChooser GUI. + * + * When pressed, an accelerator key calls the slot to which it has been + * connected. Accelerator items can be connected so that a key will activate + * two different slots. + * + * A KAccel object handles key events sent to its parent widget and to all + * children of this parent widget. + * + * Key binding reconfiguration during run time can be prevented by specifying + * that an accelerator item is not configurable when it is inserted. A special + * group of non-configurable key bindings are known as the + * standard accelerators. + * + * The standard accelerators appear repeatedly in applications for + * standard document actions such as printing and saving. Convenience methods are + * available to insert and connect these accelerators which are configurable on + * a desktop-wide basis. + * + * It is possible for a user to choose to have no key associated with + * an action. + * + * The translated first argument for insertItem() is used only + * in the configuration dialog. + *\code + * KAccel *a = new KAccel( myWindow ); + * // Insert an action "Scroll Up" which is associated with the "Up" key: + * a->insertItem( i18n("Scroll Up"), "Scroll Up", "Up" ); + * // Insert an action "Scroll Down" which is not associated with any key: + * a->insertItem( i18n("Scroll Down"), "Scroll Down", 0); + * a->connectItem( "Scroll up", myWindow, SLOT( scrollUp() ) ); + * // a->insertStdItem( KStdAccel::Print ); //not necessary, since it + * // is done automatially with the + * // connect below! + * a->connectItem(KStdAccel::Print, myWindow, SLOT( printDoc() ) ); + * + * a->readSettings(); + *\endcode + * + * If a shortcut has a menu entry as well, you could insert them like + * this. The example is again the KStdAccel::Print from above. + * + * \code + * int id; + * id = popup->insertItem("&Print",this, SLOT(printDoc())); + * a->changeMenuAccel(popup, id, KStdAccel::Print ); + * \endcode + * + * If you want a somewhat "exotic" name for your standard print action, like + * id = popup->insertItem(i18n("Print &Document"),this, SLOT(printDoc())); + * it might be a good idea to insert the standard action before as + * a->insertStdItem( KStdAccel::Print, i18n("Print Document") ) + * as well, so that the user can easily find the corresponding function. + * + * This technique works for other actions as well. Your "scroll up" function + * in a menu could be done with + * + * \code + * id = popup->insertItem(i18n"Scroll &up",this, SLOT(scrollUp())); + * a->changeMenuAccel(popup, id, "Scroll Up" ); + * \endcode + * + * Please keep the order right: First insert all functions in the + * acceleratior, then call a -> readSettings() and @em then build your + * menu structure. + * + * @short Configurable key binding support. + */ + +class KDECORE_EXPORT KAccelBase +{ + public: + enum Init { QT_KEYS = 0x00, NATIVE_KEYS = 0x01 }; + enum Signal { KEYCODE_CHANGED }; + + KAccelBase( int fInitCode ); + virtual ~KAccelBase(); + + uint actionCount() const; + KAccelActions& actions(); + bool isEnabled() const; + + KAccelAction* actionPtr( const QString& sAction ); + const KAccelAction* actionPtr( const QString& sAction ) const; + KAccelAction* actionPtr( const KKey& key ); + KAccelAction* actionPtr( const KKeyServer::Key& key ); + + const QString& configGroup() const { return m_sConfigGroup; } + void setConfigGroup( const QString& group ); + void setConfigGlobal( bool global ); + virtual void setEnabled( bool bEnabled ) = 0; + bool getAutoUpdate() { return m_bAutoUpdate; } + // return value of AutoUpdate flag before this call. + bool setAutoUpdate( bool bAuto ); + +// Procedures for manipulating Actions. + //void clearActions(); + + KAccelAction* insert( const QString& sName, const QString& sDesc ); + KAccelAction* insert( + const QString& sAction, const QString& sDesc, const QString& sHelp, + const KShortcut& rgCutDefaults3, const KShortcut& rgCutDefaults4, + const QObject* pObjSlot, const char* psMethodSlot, + bool bConfigurable = true, bool bEnabled = true ); + bool remove( const QString& sAction ); + bool setActionSlot( const QString& sAction, const QObject* pObjSlot, const char* psMethodSlot ); + + bool updateConnections(); + + bool setShortcut( const QString& sAction, const KShortcut& cut ); + +// Modify individual Action sub-items + bool setActionEnabled( const QString& sAction, bool bEnable ); + + /** + * Read all key associations from @p config, or (if @p config + * is zero) from the application's configuration file + * KGlobal::config(). + * + * The group in which the configuration is stored can be + * set with setConfigGroup(). + */ + void readSettings( KConfigBase* pConfig = 0 ); + + /** + * Write the current configurable associations to @p config, + * or (if @p config is zero) to the application's + * configuration file. + */ + void writeSettings( KConfigBase* pConfig = 0 ) const; + + QPopupMenu* createPopupMenu( QWidget* pParent, const KKeySequence& ); + + // Protected methods + protected: + void slotRemoveAction( KAccelAction* ); + + struct X; + void createKeyList( QValueVector& rgKeys ); + bool insertConnection( KAccelAction* ); + bool removeConnection( KAccelAction* ); + + virtual bool emitSignal( Signal ) = 0; + virtual bool connectKey( KAccelAction&, const KKeyServer::Key& ) = 0; + virtual bool connectKey( const KKeyServer::Key& ) = 0; + virtual bool disconnectKey( KAccelAction&, const KKeyServer::Key& ) = 0; + virtual bool disconnectKey( const KKeyServer::Key& ) = 0; + + protected: + struct ActionInfo + { + KAccelAction* pAction; + uint iSeq, iVariation; + //ActionInfo* pInfoNext; // nil if only one action uses this key. + + ActionInfo() { pAction = 0; iSeq = 0xffff; iVariation = 0xffff; } + ActionInfo( KAccelAction* _pAction, uint _iSeq, uint _iVariation ) + { pAction = _pAction; iSeq = _iSeq; iVariation = _iVariation; } + }; + typedef QMap KKeyToActionMap; + + KAccelActions m_rgActions; + KKeyToActionMap m_mapKeyToAction; + QValueList m_rgActionsNonUnique; + bool m_bNativeKeys; // Use native key codes instead of Qt codes + bool m_bEnabled; + bool m_bConfigIsGlobal; + QString m_sConfigGroup; + bool m_bAutoUpdate; + KAccelAction* mtemp_pActionRemoving; + + private: + KAccelBase& operator =( const KAccelBase& ); + + friend class KAccelActions; +}; + +#endif // _KACCELBASE_H diff --git a/extra/kde342/kicontheme.h b/extra/kde342/kicontheme.h new file mode 100644 index 0000000..0079e71 --- /dev/null +++ b/extra/kde342/kicontheme.h @@ -0,0 +1,355 @@ +/* vi: ts=8 sts=4 sw=4 + * + * This file is part of the KDE project, module kdecore. + * Copyright (C) 2000 Geert Jansen + * Antonio Larrosa + * + * This is free software; it comes under the GNU Library General + * Public License, version 2. See the file "COPYING.LIB" for the + * exact licensing terms. + * + */ + +#ifndef __KIconTheme_h_Included__ +#define __KIconTheme_h_Included__ + +#include +#include +#include +#include "kdelibs_export.h" + +class KConfig; +//class KIconThemeDir; + +class KIconThemePrivate; + +class KIconPrivate; + +/** + * One icon as found by KIconTheme. Also serves as a namespace containing + * icon related constants. + * @see KIconEffect + * @see KIconTheme + * @see KIconLoader + */ +class KDECORE_EXPORT KIcon +{ +public: + KIcon() { size = 0; } + + /** + * Return true if this icon is valid, false otherwise. + */ + bool isValid() const { return size != 0; } + + /** + * Defines the context of the icon. + */ + enum Context { + Any, ///< Some icon with unknown purpose. + Action, ///< An action icon (e.g. 'save', 'print'). + Application, ///< An icon that represents an application. + Device, ///< An icon that represents a device. + FileSystem, ///< An icon that represents a file system. + MimeType ///< An icon that represents a mime type (or file type). + }; + + /** + * The type of the icon. + */ + enum Type { + Fixed, ///< Fixed-size icon. + Scalable, ///< Scalable-size icon. + Threshold ///< A threshold icon. + }; + + /** + * The type of a match. + */ + enum MatchType { + MatchExact, ///< Only try to find an exact match. + MatchBest ///< Take the best match if there is no exact match. + + }; + + // if you add a group here, make sure to change the config reading in + // KIconLoader too + /** + * The group of the icon. + */ + enum Group { + /// No group + NoGroup=-1, + /// Desktop icons + Desktop=0, + /// First group + FirstGroup=0, + /// Toolbar icons + Toolbar, + /// Main toolbar icons + MainToolbar, + /// Small icons + Small, + /// Panel (Kicker) icons + Panel, + /// Last group + LastGroup, + /// User icons + User + }; + + /** + * These are the standard sizes for icons. + */ + enum StdSizes { + /// small icons for menu entries + SizeSmall=16, + /// slightly larger small icons for toolbars, panels, etc + SizeSmallMedium=22, + /// medium sized icons for the desktop + SizeMedium=32, + /// large sized icons for the panel + SizeLarge=48, + /// huge sized icons for iconviews + SizeHuge=64, + /// enormous sized icons for iconviews + SizeEnormous=128 + }; + + /** + * Defines the possible states of an icon. + */ + enum States { DefaultState, ///< The default state. + ActiveState, ///< Icon is active. + DisabledState, ///< Icon is disabled. + LastState ///< Last state (last constant) + }; + + /** + * This defines an overlay, a semi-transparent image that is + * projected onto the icon. They are used to show that the file + * represented by the icon is, for example, locked, zipped or hidden. + */ + enum Overlays { + LockOverlay=0x100, ///< a file is locked + ZipOverlay=0x200, ///< a file is zipped + LinkOverlay=0x400, ///< a file is a link + HiddenOverlay=0x800, ///< a file is hidden + ShareOverlay=0x1000, ///< a file is shared + OverlayMask = ~0xff + }; + + /** + * The size in pixels of the icon. + */ + int size; + + /** + * The context of the icon. + */ + Context context; + + /** + * The type of the icon: Fixed, Scalable or Threshold. + **/ + Type type; + + /** + * The threshold in case type == Threshold + */ + int threshold; + + /** + * The full path of the icon. + */ + QString path; + +private: + KIconPrivate *d; +}; + +inline KIcon::Group& operator++(KIcon::Group& group) { group = static_cast(group+1); return group; } +inline KIcon::Group operator++(KIcon::Group& group,int) { KIcon::Group ret = group; ++group; return ret; } + +/** + * Class to use/access icon themes in KDE. This class is used by the + * iconloader but can be used by others too. + * @see KIconLoader + */ +class KDECORE_EXPORT KIconTheme +{ +public: + /** + * Load an icon theme by name. + * @param name the name of the theme (e.g. "hicolor" or "keramik") + * @param appName the name of the application. Can be null. This argument + * allows applications to have themed application icons. + */ + KIconTheme(const QString& name, const QString& appName=QString::null); + ~KIconTheme(); + + /** + * The stylized name of the icon theme. + * @return the (human-readable) name of the theme + */ + QString name() const { return mName; } + + /** + * A description for the icon theme. + * @return a human-readable description of the theme, QString::null + * if there is none + */ + QString description() const { return mDesc; } + + /** + * Return the name of the "example" icon. This can be used to + * present the theme to the user. + * @return the name of the example icon, QString::null if there is none + */ + QString example() const; + + /** + * Return the name of the screenshot. + * @return the name of the screenshot, QString::null if there is none + */ + QString screenshot() const; + + /** + * Returns the name of this theme's link overlay. + * @return the name of the link overlay + */ + QString linkOverlay() const; + + /** + * Returns the name of this theme's zip overlay. + * @return the name of the zip overlay + */ + QString zipOverlay() const; + + /** + * Returns the name of this theme's lock overlay. + * @return the name of the lock overlay + */ + QString lockOverlay() const; + + /** + * Returns the name of this theme's share overlay. + * @return the name of the share overlay + * @since 3.1 + */ + QString shareOverlay () const; + + /** + * Returns the toplevel theme directory. + * @return the directory of the theme + */ + QString dir() const { return mDir; } + + /** + * The themes this icon theme falls back on. + * @return a list of icon themes that are used as fall-backs + */ + QStringList inherits() const { return mInherits; } + + /** + * The icon theme exists? + * @return true if the icon theme is valid + */ + bool isValid() const; + + /** + * The icon theme should be hidden to the user? + * @return true if the icon theme is hidden + * @since 3.1 + */ + bool isHidden() const; + + /** + * The minimum display depth required for this theme. This can either + * be 8 or 32. + * @return the minimum bpp (8 or 32) + */ + int depth() const { return mDepth; } + + /** + * The default size of this theme for a certain icon group. + * @param group The icon group. See KIcon::Group. + * @return The default size in pixels for the given icon group. + */ + int defaultSize(KIcon::Group group) const; + + /** + * Query available sizes for a group. + * @param group The icon group. See KIcon::Group. + * @return a list of available sized for the given group + */ + QValueList querySizes(KIcon::Group group) const; + + /** + * Query available icons for a size and context. + * @param size the size of the icons + * @param context the context of the icons + * @return the list of icon names + */ + QStringList queryIcons(int size, KIcon::Context context = KIcon::Any) const; + + /** + * Query available icons for a context and preferred size. + * @param size the size of the icons + * @param context the context of the icons + * @return the list of icon names + */ + QStringList queryIconsByContext(int size, KIcon::Context context = KIcon::Any) const; + + + /** + * Lookup an icon in the theme. + * @param name The name of the icon, without extension. + * @param size The desired size of the icon. + * @param match The matching mode. KIcon::MatchExact returns an icon + * only if matches exactly. KIcon::MatchBest returns the best matching + * icon. + * @return A KIcon class that describes the icon. If an icon is found, + * @see KIcon::isValid will return true, and false otherwise. + */ + KIcon iconPath(const QString& name, int size, KIcon::MatchType match) const; + + /** + * List all icon themes installed on the system, global and local. + * @return the list of all icon themes + */ + static QStringList list(); + + /** + * Returns the current icon theme. + * @return the name of the current theme + */ + static QString current(); + + /** + * Reconfigure the theme. + */ + static void reconfigure(); + + /** + * Returns the default icon theme. + * @return the name of the default theme name + * @since 3.1 + */ + static QString defaultThemeName(); + +private: + int mDefSize[8]; + QValueList mSizes[8]; + + int mDepth; + QString mDir, mName, mDesc; + QStringList mInherits; +// QPtrList mDirs; +// KIconThemePrivate *d; + + static QString *_theme; + static QStringList *_theme_list; +}; + +#endif diff --git a/extra/kde342/kkeyserver.h b/extra/kde342/kkeyserver.h new file mode 100644 index 0000000..ef673ea --- /dev/null +++ b/extra/kde342/kkeyserver.h @@ -0,0 +1,29 @@ +/* + Copyright (C) 2001 Ellis Whitehead + + Win32 port: + Copyright (C) 2004 Jaroslaw Staniek + + This library 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. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef _KKEYSERVER_H +#define _KKEYSERVER_H + +//FOR COMPATIBILITY +#include "kkeyserver_x11.h" + +#endif // !_KKEYSERVER_H diff --git a/extra/kde342/kkeyserver_x11.h b/extra/kde342/kkeyserver_x11.h new file mode 100644 index 0000000..65d4e0c --- /dev/null +++ b/extra/kde342/kkeyserver_x11.h @@ -0,0 +1,469 @@ +/* + Copyright (C) 2001 Ellis Whitehead + + Win32 port: + Copyright (C) 2004 Jaroslaw Staniek + + This library 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. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef _KKEYSERVER_X11_H +#define _KKEYSERVER_X11_H + +#include "kshortcut.h" +#include "kkeynative.h" + +/** + * A collection of functions for the conversion of key presses and + * their modifiers from the window system specific format + * to the generic format and vice-versa. + */ +namespace KKeyServer +{ + /** + * Supplement enum KKey::ModFlag + * @since 3.1 + */ + enum ExtraModFlag { MODE_SWITCH = 0x2000 }; + + /** + * Represents a key symbol. + * @see KKey + * @see KKeyServer + */ + struct KDECORE_EXPORT Sym + { + public: + /// the actual value of the symbol + uint m_sym; + + /// Creates a null symbol. + Sym() + { m_sym = 0; } + /** + * Creates asymbol with the given value. + * @param sym the value + */ + Sym( uint sym ) + { m_sym = sym; } + /** + * Creates a symbol from the given string description. + * @param s the description of the symbol + * @see toString() + */ + Sym( const QString& s ) + { init( s ); } + + /** + * Initializes the symbol with the given Qt key code. + * @param keyQt the qt key code + * @return true if successful, false otherwise + * @see Qt::Key + */ + bool initQt( int keyQt ); + + /** + * Initializes the key with the given string description. + * @param s the string description + * @return true if successful, false otherwise + * @see toString() + */ + bool init( const QString &s ); + + /** + * Returns the qt key code of the symbol. + * @return the qt key code + */ + int qt() const; + + /** + * @internal + */ + QString toStringInternal() const; + + /** + * Returns the string representation of the symbol. + * @return the string representation of the symbol + */ + QString toString() const; + + /** + * Returns the mods that are required for this symbol as + * ORed KKey::ModFlag's. For example, Break requires a + * Ctrl to be valid. + * @return the required KKey::ModFlag's + * @see KKey::ModFlag + */ + uint getModsRequired() const; + + /** + * TODO: please find out what this method does and document it + */ + uint getSymVariation() const; + + /** + * Casts the symbol to its integer representation. + */ + operator uint() const { return m_sym; } + + /** + * Overloaded operator to convert ints to Sym. + */ + Sym& operator =( uint sym ) { m_sym = sym; return *this; } + + private: + QString toString( bool bUserSpace ) const; + + static void capitalizeKeyname( QString& ); + }; + + /** + * Represents a key press. + * @see KKey + */ + struct KDECORE_EXPORT Key + { + /// Code for native Keys in Qt + enum { CODE_FOR_QT = 256 }; + + /// The code of the key + uint m_code; + + /// The modifiers of the key + uint m_mod; + + /// The symbol of the key + uint m_sym; + + /** + * Initializes the key with a KKey. + * @param key the key to get the data from + * @param bQt true to take the Qt keycode, false + * for the native key code + * @see Qt::Key + * @see KKeyNative + */ + bool init( const KKey& key, bool bQt ); + + /** + * Checks whether the key code is a native code. + * @return true if native code of the window system, + * false if it is a Qt keycode + * @see Qt::Key + * @see KKeyNative + */ + bool isNative() const { return m_code != CODE_FOR_QT; } + + /** + * Returns the code of the key. + * @return the code of the key + */ + uint code() const { return m_code; } + + /** + * Returns the modifiers of the key. + * @return the modifiers of the key + */ + uint mod() const { return m_mod; } + + /** + * Returns the symbol of the key. + * @return the symbol of the key + */ + uint sym() const { return m_sym; } + + /** + * Returns the qt key code. + * @return the qt key code + */ + int keyCodeQt() const { return (int) m_sym; } + + /** + * Sets the qt key code. + * @param keyQt the qt key code + */ + void setKeycodeQt( int keyQt ) + { m_code = CODE_FOR_QT; m_sym = keyQt; } + + /** + * Initializes this key with a KKeyNative. + * @return this key + */ + Key& operator =( const KKeyNative& key ); + + /** + * Compares this key with the given Key object. Returns a + * negative number if the given Key is larger, 0 if they + * are equal and a positive number this Key is larger. The + * returned value is the difference between the symbol, modifier + * or code, whatever is non-zero first. + * + * @param key the key to compare with this key + * @return a negative number if the given Key is larger, 0 if + * they are equal and a positive number this Key is larger + */ + int compare( const Key& key ) const; + + /** + * Compares the symbol, modifiers and code of both keys. + * @see compare() + */ + bool operator ==( const Key& b ) const + { return compare( b ) == 0; } + + /** + * Compares the symbol, modifiers and code of both keys. + * @see compare() + */ + bool operator <( const Key& b ) const + { return compare( b ) < 0; } + + /** + * Converts this Key to a KKey. + * @return the KKey + */ + KKey key() const; + }; + + /** + * TODO: please document this class + */ + struct KDECORE_EXPORT Variations + { + enum { MAX_VARIATIONS = 4 }; + + Key m_rgkey[MAX_VARIATIONS]; + uint m_nVariations; + + Variations() { m_nVariations = 0; } + + void init( const KKey&, bool bQt ); + + uint count() const { return m_nVariations; } + const Key& key( uint i ) const { return m_rgkey[i]; } + }; + + /// TODO: please document + KDECORE_EXPORT bool initializeMods(); + + /** + * Returns the equivalent X modifier mask of the given modifier flag. + * @param modFlag the generic flags to check + * @return the window system specific flags + */ + KDECORE_EXPORT uint modX( KKey::ModFlag modFlag ); + + /** + * Returns true if the current keyboard layout supports the Win key. + * Specifically, whether the Super or Meta keys are assigned to an X modifier. + * @return true if the keyboard has a Win key + * @see modXWin() + */ + KDECORE_EXPORT bool keyboardHasWinKey(); + + /** + * Returns the X11 Shift modifier mask/flag. + * @return the X11 Shift modifier mask/flag. + * @see accelModMaskX() + */ + KDECORE_EXPORT uint modXShift(); + + /** + * Returns the X11 Lock modifier mask/flag. + * @return the X11 Lock modifier mask/flag. + * @see accelModMaskX() + */ + KDECORE_EXPORT uint modXLock(); + + /** + * Returns the X11 Ctrl modifier mask/flag. + * @return the X11 Ctrl modifier mask/flag. + * @see accelModMaskX() + */ + KDECORE_EXPORT uint modXCtrl(); + + /** + * Returns the X11 Alt (Mod1) modifier mask/flag. + * @return the X11 Alt (Mod1) modifier mask/flag. + * @see accelModMaskX() + */ + KDECORE_EXPORT uint modXAlt(); + + /** + * Returns the X11 NumLock modifier mask/flag. + * @return the X11 NumLock modifier mask/flag. + * @see accelModMaskX() + */ + KDECORE_EXPORT uint modXNumLock(); + + /** + * Returns the X11 Win (Mod3) modifier mask/flag. + * @return the X11 Win (Mod3) modifier mask/flag. + * @see keyboardHasWinKey() + * @see accelModMaskX() + */ + KDECORE_EXPORT uint modXWin(); + + /** + * Returns the X11 ScrollLock modifier mask/flag. + * @return the X11 ScrollLock modifier mask/flag. + * @see accelModMaskX() + */ + KDECORE_EXPORT uint modXScrollLock(); + + /** + * Returns the X11 Mode_switch modifier mask/flag. + * @return the X11 Mode_switch modifier mask/flag. + * @see accelModMaskX() + * @since 3.5 + */ + KDECORE_EXPORT uint modXModeSwitch(); + + /** + * Returns bitwise OR'ed mask containing Shift, Ctrl, Alt, and + * Win (if available). + * @see modXShift() + * @see modXLock() + * @see modXCtrl() + * @see modXAlt() + * @see modXNumLock() + * @see modXWin() + * @see modXScrollLock() + */ + KDECORE_EXPORT uint accelModMaskX(); + + /** + * Extracts the symbol from the given Qt key and + * converts it to a symbol. + * @param keyQt the qt key code + * @param sym if successful, the symbol will be written here + * @return true if successful, false otherwise + * @see Qt::Key + * @see Sym + */ + KDECORE_EXPORT bool keyQtToSym( int keyQt, uint& sym ); + + /** + * Extracts the modifiers from the given Qt key and + * converts them in a mask of ORed KKey::ModFlag modifiers. + * @param keyQt the qt key code + * @param mod if successful, the modifiers will be written here + * @return true if successful, false otherwise + * @see Qt::Key + */ + KDECORE_EXPORT bool keyQtToMod( int keyQt, uint& mod ); + + /** + * Converts the given symbol to a Qt key code. + * @param sym the symbol + * @param keyQt if successful, the qt key code will be written here + * @return true if successful, false otherwise + * @see Qt::Key + * @see Sym + */ + KDECORE_EXPORT bool symToKeyQt( uint sym, int& keyQt ); + + /** + * Converts the mask of ORed KKey::ModFlag modifiers to + * a mask of ORed Qt key code modifiers. + * @param mod the mask of KKey::ModFlag modifiers + * @param modQt the mask of Qt key code modifiers will be written here, + * if successful + * @return true if successful, false otherwise + * @see Qt::Key + * @see KKey + */ + KDECORE_EXPORT bool modToModQt( uint mod, int& modQt ); + + /** + * Converts the mask of ORed KKey::ModFlag modifiers to + * a mask of ORed X11 modifiers. + * @param mod the mask of KKey::ModFlag modifiers + * @param modX the mask of X11 modifiers will be written here, + * if successful + * @return true if successful, false otherwise + * @see KKey + */ + KDECORE_EXPORT bool modToModX( uint mod, uint& modX ); + + /** + * Converts the mask of ORed X11 modifiers to + * a mask of ORed Qt key code modifiers. + * @param modX the mask of X11 modifiers + * @param modQt the mask of Qt key code modifiers will be written here + * if successful + * @return true if successful, false otherwise + * @see Qt::Key + */ + //wrapped for win32 + KDECORE_EXPORT bool modXToModQt( uint modX, int& modQt ); + + /** + * Converts the Qt-compatible button state to x11 modifier. + */ + KDECORE_EXPORT int qtButtonStateToMod( Qt::ButtonState s ); + + /** + * Converts the mask of ORed X11 modifiers to + * a mask of ORed KKey::ModFlag modifiers. + * @param modX the mask of X11 modifiers + * @param mod the mask of KKey::ModFlag modifiers will be written here, + * if successful + * @return true if successful, false otherwise + * @see KKey + */ + KDECORE_EXPORT bool modXToMod( uint modX, uint& mod ); + + /** + * Converts a X11 key code and a mask of ORed X11 modifiers + * into a X11 symbol. + * converts it to a symbol. + * @param codeX the X11 key code + * @param modX the mask of ORed X11 modifiers + * @param symX if successful, the X11 symbol will be written here + * @return true if successful, false otherwise + * @see Qt::Key + * @see Sym + */ + KDECORE_EXPORT bool codeXToSym( uchar codeX, uint modX, uint& symX ); + + /** + * @internal + */ + KDECORE_EXPORT QString modToStringInternal( uint mod ); + + /** + * Converts the mask of ORed KKey::ModFlag modifiers to a + * user-readable string. + * @param mod the mask of ORed KKey::ModFlag modifiers + * @return the user-readable string + */ + KDECORE_EXPORT QString modToStringUser( uint mod ); + + /** + * @internal + * Unimplemented? + */ + KDECORE_EXPORT bool stringToSymMod( const QString&, uint& sym, uint& mod ); + + /** + * @internal + * Unimplemented? + */ + KDECORE_EXPORT void keyQtToKeyX( uint keyCombQt, unsigned char *pKeyCodeX, uint *pKeySymX, uint *pKeyModX ); +} + +#endif // !_KKEYSERVER_X11_H diff --git a/extra/kde342/konsole_part.h b/extra/kde342/konsole_part.h new file mode 100644 index 0000000..a899374 --- /dev/null +++ b/extra/kde342/konsole_part.h @@ -0,0 +1,228 @@ +/* + This file is part of the KDE system + Copyright (C) 1999,2000 Boloni Laszlo + + 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. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. + */ + +#ifndef __KONSOLE_PART_H__ +#define __KONSOLE_PART_H__ + +#include +#include + + +#include + +#include + +//#include "schema.h" +//#include "session.h" + +class KInstance; +class konsoleBrowserExtension; +class QPushButton; +class QSpinBox; +class KPopupMenu; +class QCheckBox; +class KRootPixmap; +class KToggleAction; +class KSelectAction; + +namespace KParts { class GUIActivateEvent; } + +class konsoleFactory : public KParts::Factory +{ + Q_OBJECT +public: + konsoleFactory(); + virtual ~konsoleFactory(); + + virtual KParts::Part* createPartObject(QWidget *parentWidget = 0, const char *widgetName = 0, + QObject* parent = 0, const char* name = 0, + const char* classname = "KParts::Part", + const QStringList &args = QStringList()); + + static KInstance *instance(); + + private: + static KInstance *s_instance; + static KAboutData *s_aboutData; +}; + +////////////////////////////////////////////////////////////////////// + +class konsolePart: public KParts::ReadOnlyPart, public TerminalInterface +{ + Q_OBJECT + public: + konsolePart(QWidget *parentWidget, const char *widgetName, QObject * parent, const char *name, const char *classname = 0); + virtual ~konsolePart(); + +signals: + void processExited(); + void receivedData( const QString& s ); + protected: + virtual bool openURL( const KURL & url ); + virtual bool openFile() {return false;} // never used + virtual bool closeURL() {return true;} + virtual void guiActivateEvent( KParts::GUIActivateEvent * event ); + + protected slots: + void showShell(); + void slotProcessExited(); + void slotReceivedData( const QString& s ); + +// void doneSession(TESession*); + void sessionDestroyed(); +// void configureRequest(TEWidget*,int,int x,int y); + void updateTitle(); + void enableMasterModeConnections(); + + private slots: + void emitOpenURLRequest(const QString &url); + + void readProperties(); + void saveProperties(); + + void sendSignal(int n); + void closeCurrentSession(); + + void notifySize(int,int); + + void slotToggleFrame(); + void slotSelectScrollbar(); + void slotSelectFont(); + void schema_menu_check(); + void keytab_menu_activated(int item); + void updateSchemaMenu(); + void setSchema(int n); + void pixmap_menu_activated(int item); + void schema_menu_activated(int item); + void slotHistoryType(); + void slotSelectBell(); + void slotSelectLineSpacing(); + void slotBlinkingCursor(); + void slotWordSeps(); + void fontNotFound(); + void slotSetEncoding(); + void slotFontChanged(); + + private: + konsoleBrowserExtension *m_extension; + KURL currentURL; + + void makeGUI(); + void applySettingsToGUI(); + + void setFont(int fontno); +// void setSchema(ColorSchema* s); + void updateKeytabMenu(); + + bool doOpenStream( const QString& ); + bool doWriteStream( const QByteArray& ); + bool doCloseStream(); + + QWidget* parentWidget; +// TEWidget* te; +// TESession* se; +// ColorSchemaList* colors; + KRootPixmap* rootxpm; + + KToggleAction* blinkingCursor; + KToggleAction* showFrame; + + KSelectAction* selectBell; + KSelectAction* selectFont; + KSelectAction* selectLineSpacing; + KSelectAction* selectScrollbar; + KSelectAction* selectSetEncoding; + + KPopupMenu* m_keytab; + KPopupMenu* m_schema; + KPopupMenu* m_signals; + KPopupMenu* m_options; + KPopupMenu* m_popupMenu; + + QFont defaultFont; + + QString pmPath; // pixmap path + QString s_schema; + QString s_kconfigSchema; + QString s_word_seps; // characters that are considered part of a word + QString fontNotFound_par; + + bool b_framevis:1; + bool b_histEnabled:1; + + int curr_schema; // current schema no + int n_bell; + int n_font; + int n_keytab; + int n_render; + int n_scroll; + unsigned m_histSize; + bool m_runningShell; + bool m_streamEnabled; + int n_encoding; + +public: + // these are the implementations for the TermEmuInterface + // functions... + void startProgram( const QString& program, + const QStrList& args ); + void showShellInDir( const QString& dir ); + void sendInput( const QString& text ); +}; + +////////////////////////////////////////////////////////////////////// + +/*class HistoryTypeDialog : public KDialogBase +{ + Q_OBJECT +public: + HistoryTypeDialog(const HistoryType& histType, + unsigned int histSize, + QWidget *parent); + +public slots: + void slotDefault(); + void slotSetUnlimited(); + void slotHistEnable(bool); + + unsigned int nbLines() const; + bool isOn() const; + +protected: + QCheckBox* m_btnEnable; + QSpinBox* m_size; + QPushButton* m_setUnlimited; +};*/ + +////////////////////////////////////////////////////////////////////// + +class konsoleBrowserExtension : public KParts::BrowserExtension +{ + Q_OBJECT + friend class konsolePart; + public: + konsoleBrowserExtension(konsolePart *parent); + virtual ~konsoleBrowserExtension(); + + void emitOpenURLRequest(const KURL &url); +}; + +#endif diff --git a/extra/kde342/kpanelmenu.h b/extra/kde342/kpanelmenu.h new file mode 100644 index 0000000..61ec7f1 --- /dev/null +++ b/extra/kde342/kpanelmenu.h @@ -0,0 +1,182 @@ +/***************************************************************** + +Copyright (c) 1996-2000 the kicker authors. See file AUTHORS. + (c) 2001 Michael Goffioul + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN +AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +******************************************************************/ + +#ifndef __KPANELMENU_H__ +#define __KPANELMENU_H__ + +#include +#include +#include + +class KPanelMenuPrivate; + +/** + * @short Base class to build dynamically loaded menu entries for the K-menu, or the panel. + * + * This class allows to build menu entries that will be dynamically added either to + * the K-menu, or to the panel as a normal button. These dynamic menus are located + * in shared libraries that will be loaded at runtime by Kicker (the %KDE panel). + * + * To build such a menu, you have to inherit this class and implement the pure virtual + * functions #initialize() and slotExec(). You also have to provide a factory + * object in your library, see KLibFactory. This factory is only used to construct + * the menu object. + * + * Finally, you also have to provide a desktop file describing your dynamic menu. The + * relevant entries are: Name, Comment, Icon and X-KDE-Library (which contains the + * library name without any extension). This desktop file has to be installed in + * $KDEDIR/share/apps/kicker/menuext/. + * + * @author The kicker maintainers, Michael Goffioul + */ +class KDEUI_EXPORT KPanelMenu : public KPopupMenu +{ + Q_OBJECT + +public: + /** + * Construct a KPanelMenu object. This is the normal constructor to use when + * building extrernal menu entries. + */ + KPanelMenu(QWidget *parent=0, const char *name=0); + /** + * Constructor used internally by Kicker. You don't really want to use it. + * @param startDir a directory to associate with this menu + * @param parent parent object + * @param name name of the object + * @see path(), setPath() + */ + KPanelMenu(const QString &startDir, QWidget *parent=0, const char *name=0); + /** + * Destructor. + */ + virtual ~KPanelMenu(); + + /** + * Get the directory path associated with this menu, or QString::null if + * there's no such associated path. + * @return the associated directory path + * @see setPath() + */ + const QString& path() const; + /** + * Set a directory path to be associated with this menu. + * @param p the directory path + * @see path() + */ + void setPath(const QString &p); + /** + * Tell if the menu has been initialized, that is it already contains items. + * This is useful when you need to know if you have to clear the menu, or to + * fill it. + * @return the initial state + * @see setInitialized(), initialize() + */ + bool initialized() const; + /** + * Set the initial state. Set it to true when you menu is filled with the items + * you want. + * @param on the initial state + * @see initialized(), initialize() + */ + void setInitialized(bool on); + + /** + * Disable the automatic clearing of the menu. Kicker uses a cache system for + * its menus. After a specific configurable delay, the menu will be cleared. + * Use this function if you want to disable kicker's cache system, and avoid + * the clearing of your menu. + */ + void disableAutoClear(); + +public slots: + /** + * Reinitialize the menu: the menu is first cleared, the initial state is set + * to false, and finally #initialize() is called. Use this if you want to + * refill your menu immediately. + */ + void reinitialize(); + /** + * Deinitialize the menu: the menu is cleared and the initialized state is set to + * false. #initialize() is NOT called. It will be called before the menu is + * next shown, however. Use this slot if you want a delayed reinitialization. + * @since 3.1 + */ + void deinitialize(); + +protected slots: + /** + * This slot is called just before the menu is shown. This allows your menu + * to update itself if needed. However you should instead re-implement + * #initialize to provide this feature. This function is responsible for + * the cache system handling, so if you re-implement it, you should call + * the base function also. Calls #initialize(). + * @see disableAutoClear() + */ + virtual void slotAboutToShow(); + /** + * This is slot is called when an item from the menu has been selected. Your + * applet is then supposed to perform some action. You must re-implement this + * function. + * @param id the ID associated with the selected item + */ + virtual void slotExec(int id) = 0; + /** + * This slots is called to initialize the menu. It is called automatically by + * slotAboutToShow(). By re-implementing this functions, you can reconstruct + * the menu before it is being shown. At the end of this function, you should + * call setInitialize() with true to tell the system that the menu is OK. + * You applet must re-implement this function. + * @see slotAboutToShow(), initialized(), setInitialized() + */ + virtual void initialize() = 0; + /** + * Clears the menu, and update the initial state accordingly. + * @see initialized() + */ + void slotClear(); + +protected: + /** + * Re-implemented for internal reasons. + */ + virtual void hideEvent(QHideEvent *ev); + /** + * For internal use only. Used by constructors. + */ + void init(const QString& path = QString::null); + +protected: + virtual void virtual_hook( int id, void* data ); +private: + void internalInitialize(); + KPanelMenuPrivate *d; +}; + +#define K_EXPORT_KICKER_MENUEXT( libname, classname ) \ + K_EXPORT_COMPONENT_FACTORY( \ + kickermenu_##libname, \ + KGenericFactory("libkickermenu_" #libname) ) + +#endif diff --git a/extra/kde342/krecentdirs.h b/extra/kde342/krecentdirs.h new file mode 100644 index 0000000..078efcc --- /dev/null +++ b/extra/kde342/krecentdirs.h @@ -0,0 +1,70 @@ +/* -*- c++ -*- + * Copyright (C)2000 Waldo Bastian + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * + */ +#ifndef __KRECENTDIRS_H +#define __KRECENTDIRS_H + +#include + +#include + +/** + * The goal of this class is to make sure that, when the user needs to + * specify a file via the file selection dialog, this dialog will start + * in the directory most likely to contain the desired files. + * + * This works as follows: Each time the file selection dialog is + * shown, the programmer can specify a "file-class". The file-dialog will + * then start with the directory associated with this file-class. When + * the dialog closes, the directory currently shown in the file-dialog + * will be associated with the file-class. + * + * A file-class can either start with ':' or with '::'. If it starts with + * a single ':' the file-class is specific to the current application. + * If the file-class starts with '::' it is global to all applications. + */ +class KIO_EXPORT KRecentDirs +{ +public: + /** + * Returns a list of directories associated with this file-class. + * The most recently used directory is at the front of the list. + */ + static QStringList list(const QString &fileClass); + + /** + * Returns the most recently used directory accociated with this file-class. + */ + static QString dir(const QString &fileClass); + + /** + * Associates @p directory with @p fileClass + */ + static void add(const QString &fileClass, const QString &directory); +}; + +#endif diff --git a/extra/kde342/ksharedptr.h b/extra/kde342/ksharedptr.h new file mode 100644 index 0000000..ada0841 --- /dev/null +++ b/extra/kde342/ksharedptr.h @@ -0,0 +1,175 @@ +/* This file is part of the KDE libraries + Copyright (c) 1999 Waldo Bastian + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License version 2 as published by the Free Software Foundation. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ +#ifndef KSharedPTR_H +#define KSharedPTR_H + +#include "kdelibs_export.h" + +/** + * Reference counting for shared objects. If you derive your object + * from this class, then you may use it in conjunction with + * KSharedPtr to control the lifetime of your object. + * + * Specifically, all classes that derive from KShared have an internal + * counter keeping track of how many other objects have a reference to + * their object. If used with KSharedPtr, then your object will + * not be deleted until all references to the object have been + * released. + * + * You should probably not ever use any of the methods in this class + * directly -- let the KSharedPtr take care of that. Just derive + * your class from KShared and forget about it. + * + * @author Waldo Bastian + */ +class KDECORE_EXPORT KShared { +public: + /** + * Standard constructor. This will initialize the reference count + * on this object to 0. + */ + KShared() : count(0) { } + + /** + * Copy constructor. This will @em not actually copy the objects + * but it will initialize the reference count on this object to 0. + */ + KShared( const KShared & ) : count(0) { } + + /** + * Overloaded assignment operator. + */ + KShared &operator=(const KShared & ) { return *this; } + + /** + * Increases the reference count by one. + */ + void _KShared_ref() const { count++; } + + /** + * Releases a reference (decreases the reference count by one). If + * the count goes to 0, this object will delete itself. + */ + void _KShared_unref() const { if (!--count) delete this; } + + /** + * Return the current number of references held. + * + * @return Number of references + */ + int _KShared_count() const { return count; } + +protected: + virtual ~KShared() { } +private: + mutable int count; +}; + +/** + * Can be used to control the lifetime of an object that has derived + * KShared. As long a someone holds a KSharedPtr on some KShared + * object it won't become deleted but is deleted once its reference + * count is 0. This struct emulates C++ pointers virtually perfectly. + * So just use it like a simple C++ pointer. + * + * KShared and KSharedPtr are preferred over QShared / QSharedPtr + * since they are more safe. + * + * WARNING: Please note that this class template provides an implicit + * conversion to T*. Do *not* change this pointer or the pointee (don't + * call delete on it, for instance) behind KSharedPtr's back. + * + * @author Waldo Bastian + */ +template< class T > +class KSharedPtr +{ +public: +/** + * Creates a null pointer. + */ + KSharedPtr() + : ptr(0) { } + /** + * Creates a new pointer. + * @param t the pointer + */ + KSharedPtr( T* t ) + : ptr(t) { if ( ptr ) ptr->_KShared_ref(); } + + /** + * Copies a pointer. + * @param p the pointer to copy + */ + KSharedPtr( const KSharedPtr& p ) + : ptr(p.ptr) { if ( ptr ) ptr->_KShared_ref(); } + + /** + * Unreferences the object that this pointer points to. If it was + * the last reference, the object will be deleted. + */ + ~KSharedPtr() { if ( ptr ) ptr->_KShared_unref(); } + + KSharedPtr& operator= ( const KSharedPtr& p ) { + if ( ptr == p.ptr ) return *this; + if ( ptr ) ptr->_KShared_unref(); + ptr = p.ptr; + if ( ptr ) ptr->_KShared_ref(); + return *this; + } + KSharedPtr& operator= ( T* p ) { + if ( ptr == p ) return *this; + if ( ptr ) ptr->_KShared_unref(); + ptr = p; + if ( ptr ) ptr->_KShared_ref(); + return *this; + } + bool operator== ( const KSharedPtr& p ) const { return ( ptr == p.ptr ); } + bool operator!= ( const KSharedPtr& p ) const { return ( ptr != p.ptr ); } + bool operator== ( const T* p ) const { return ( ptr == p ); } + bool operator!= ( const T* p ) const { return ( ptr != p ); } + bool operator!() const { return ( ptr == 0 ); } + operator T*() const { return ptr; } + + /** + * Returns the pointer. + * @return the pointer + */ + T* data() { return ptr; } + + /** + * Returns the pointer. + * @return the pointer + */ + const T* data() const { return ptr; } + + const T& operator*() const { return *ptr; } + T& operator*() { return *ptr; } + const T* operator->() const { return ptr; } + T* operator->() { return ptr; } + + /** + * Returns the number of references. + * @return the number of references + */ + int count() const { return ptr->_KShared_count(); } // for debugging purposes +private: + T* ptr; +}; + +#endif diff --git a/extra/kde342/ksycocafactory.h b/extra/kde342/ksycocafactory.h new file mode 100644 index 0000000..65bb9d9 --- /dev/null +++ b/extra/kde342/ksycocafactory.h @@ -0,0 +1,143 @@ +/* This file is part of the KDE libraries + * Copyright (C) 1999 Waldo Bastian + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License version 2 as published by the Free Software Foundation; + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public License + * along with this library; see the file COPYING.LIB. If not, write to + * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA. + **/ + +#ifndef __ksycocafactory_h__ +#define __ksycocafactory_h__ + +#include "ksycocatype.h" +#include "ksycocaentry.h" + +#include +#include +class KSycoca; +class QStringList; +class QString; +class KSycocaDict; +class KSycocaResourceList; + +typedef QDict KSycocaEntryDict; + +/** + * @internal + * Base class for sycoca factories + */ +class KDECORE_EXPORT KSycocaFactory +{ +public: + virtual KSycocaFactoryId factoryId() const = 0; + +protected: // virtual class + /** + * Create a factory which can be used to lookup from/create a database + * (depending on KSycoca::isBuilding()) + */ + KSycocaFactory( KSycocaFactoryId factory_id ); + +public: + virtual ~KSycocaFactory(); + + /** + * @return the position of the factory in the sycoca file + */ + int offset() { return mOffset; } + + /** + * @return the dict, for special use by KBuildSycoca + */ + KSycocaEntryDict * entryDict() { return m_entryDict; } + + /** + * Construct an entry from a config file. + * To be implemented in the real factories. + */ + virtual KSycocaEntry *createEntry(const QString &file, const char *resource) = 0; + + /** + * Add an entry + */ + virtual void addEntry(KSycocaEntry *newEntry, const char *resource); + + /** + * Remove an entry + * Not very fast, use with care. O(N) + */ + void removeEntry(KSycocaEntry *newEntry); + + /** + * Read an entry from the database + */ + virtual KSycocaEntry *createEntry(int offset)=0; + + /** + * Get a list of all entries from the database. + */ + KSycocaEntry::List allEntries(); + + /** + * Saves all entries it maintains as well as index files + * for these entries to the stream 'str'. + * + * Also sets mOffset to the starting position. + * + * The stream is positioned at the end of the last index. + * + * Don't forget to call the parent first when you override + * this function. + */ + virtual void save(QDataStream &str); + + /** + * Writes out a header to the stream 'str'. + * The baseclass positions the stream correctly. + * + * Don't forget to call the parent first when you override + * this function. + */ + virtual void saveHeader(QDataStream &str); + + /** + * @return the resources for which this factory is responsible. + */ + virtual const KSycocaResourceList * resourceList() const { return m_resourceList; } + +private: + int mOffset; + +protected: + int m_sycocaDictOffset; + int m_beginEntryOffset; + int m_endEntryOffset; + QDataStream *m_str; + + KSycocaResourceList *m_resourceList; + KSycocaEntryDict *m_entryDict; + KSycocaDict *m_sycocaDict; +protected: + virtual void virtual_hook( int id, void* data ); +}; + +/** This, instead of a typedef, allows to declare "class ..." in header files + * @internal + */ +class KDECORE_EXPORT KSycocaFactoryList : public QPtrList +{ +public: + KSycocaFactoryList() { } +}; + +#endif diff --git a/extra/kde342/ktoolbarbutton.h b/extra/kde342/ktoolbarbutton.h new file mode 100644 index 0000000..f5e3be3 --- /dev/null +++ b/extra/kde342/ktoolbarbutton.h @@ -0,0 +1,329 @@ +/* This file is part of the KDE libraries + Copyright (C) 1997, 1998 Stephan Kulow (coolo@kde.org) + (C) 1997, 1998 Sven Radej (radej@kde.org) + (C) 1997, 1998 Mark Donohoe (donohoe@kde.org) + (C) 1997, 1998 Matthias Ettrich (ettrich@kde.org) + (C) 2000 Kurt Granroth (granroth@kde.org) + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License version 2 as published by the Free Software Foundation. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef _KTOOLBARBUTTON_H +#define _KTOOLBARBUTTON_H + +#include +#include +#include +#include +#include + +class KToolBar; +class KToolBarButtonPrivate; +class KInstance; +class QEvent; +class QPopupMenu; +class QPainter; + +/** + * A toolbar button. This is used internally by KToolBar, use the + * KToolBar methods instead. + * @internal + */ +class KDEUI_EXPORT KToolBarButton : public QToolButton +{ + Q_OBJECT + +public: + /** + * Construct a button with an icon loaded by the button itself. + * This will trust the button to load the correct icon with the + * correct size. + * + * @param icon Name of icon to load (may be absolute or relative) + * @param id Id of this button + * @param parent This button's parent + * @param name This button's internal name + * @param txt This button's text (in a tooltip or otherwise) + * @param _instance the instance to use for this button + */ + KToolBarButton(const QString& icon, int id, QWidget *parent, + const char *name=0L, const QString &txt=QString::null, + KInstance *_instance = KGlobal::instance()); + + /** + * Construct a button with an existing pixmap. It is not + * recommended that you use this as the internal icon loading code + * will almost always get it "right". + * + * @param pixmap Name of icon to load (may be absolute or relative) + * @param id Id of this button + * @param parent This button's parent + * @param name This button's internal name + * @param txt This button's text (in a tooltip or otherwise) + */ + KToolBarButton(const QPixmap& pixmap, int id, QWidget *parent, + const char *name=0L, const QString &txt=QString::null); + + /** + * Construct a separator button + * + * @param parent This button's parent + * @param name This button's internal name + */ + KToolBarButton(QWidget *parent=0L, const char *name=0L); + + /** + * Standard destructor + */ + ~KToolBarButton(); + +#ifndef KDE_NO_COMPAT + /** + * @deprecated + * Set the pixmap directly for this button. This pixmap should be + * the active one... the dimmed and disabled pixmaps are constructed + * based on this one. However, don't use this function unless you + * are positive that you don't want to use setIcon. + * + * @param pixmap The active pixmap + */ + // this one is from QButton, so #ifdef-ing it out doesn't break BC + virtual void setPixmap(const QPixmap &pixmap) KDE_DEPRECATED; + + /** + * @deprecated + * Force the button to use this pixmap as the default one rather + * then generating it using effects. + * + * @param pixmap The pixmap to use as the default (normal) one + */ + void setDefaultPixmap(const QPixmap& pixmap) KDE_DEPRECATED; + + /** + * @deprecated + * Force the button to use this pixmap when disabled one rather then + * generating it using effects. + * + * @param pixmap The pixmap to use when disabled + */ + void setDisabledPixmap(const QPixmap& pixmap) KDE_DEPRECATED; +#endif + + /** + * Set the text for this button. The text will be either used as a + * tooltip (IconOnly) or will be along side the icon + * + * @param text The button (or tooltip) text + */ + virtual void setText(const QString &text); + + /** + * Set the icon for this button. The icon will be loaded internally + * with the correct size. This function is preferred over setIconSet + * + * @param icon The name of the icon + */ + virtual void setIcon(const QString &icon); + + /// @since 3.1 + virtual void setIcon( const QPixmap &pixmap ) + { QToolButton::setIcon( pixmap ); } + + /** + * Set the pixmaps for this toolbar button from a QIconSet. + * If you call this you don't need to call any of the other methods + * that set icons or pixmaps. + * @param iconset The iconset to use + */ + virtual void setIconSet( const QIconSet &iconset ); + +#ifndef KDE_NO_COMPAT + /** + * @deprecated + * Set the active icon for this button. The pixmap itself is loaded + * internally based on the icon size... .. the disabled and default + * pixmaps, however will only be constructed if generate is + * true. This function is preferred over setPixmap + * + * @param icon The name of the active icon + * @param generate If true, then the other icons are automagically + * generated from this one + */ + KDE_DEPRECATED void setIcon(const QString &icon, bool generate ) { Q_UNUSED(generate); setIcon( icon ); } + + /** + * @deprecated + * Force the button to use this icon as the default one rather + * then generating it using effects. + * + * @param icon The icon to use as the default (normal) one + */ + void setDefaultIcon(const QString& icon) KDE_DEPRECATED; + + /** + * @deprecated + * Force the button to use this icon when disabled one rather then + * generating it using effects. + * + * @param icon The icon to use when disabled + */ + void setDisabledIcon(const QString& icon) KDE_DEPRECATED; +#endif + + /** + * Turn this button on or off + * + * @param flag true or false + */ + void on(bool flag = true); + + /** + * Toggle this button + */ + void toggle(); + + /** + * Turn this button into a toggle button or disable the toggle + * aspects of it. This does not toggle the button itself. + * Use toggle() for that. + * + * @param toggle true or false + */ + void setToggle(bool toggle = true); + + /** + * Return a pointer to this button's popup menu (if it exists) + */ + QPopupMenu *popup(); + + /** + * Returns the button's id. + * @since 3.2 + */ + int id() const; + + /** + * Give this button a popup menu. There will not be a delay when + * you press the button. Use setDelayedPopup if you want that + * behavior. + * + * @param p The new popup menu + * @param unused Has no effect - ignore it. + */ + void setPopup (QPopupMenu *p, bool unused = false); + + /** + * Gives this button a delayed popup menu. + * + * This function allows you to add a delayed popup menu to the button. + * The popup menu is then only displayed when the button is pressed and + * held down for about half a second. + * + * @param p the new popup menu + * @param unused Has no effect - ignore it. + */ + void setDelayedPopup(QPopupMenu *p, bool unused = false); + + /** + * Turn this button into a radio button + * + * @param f true or false + */ + void setRadio(bool f = true); + + /** + * Toolbar buttons naturally will assume the global styles + * concerning icons, icons sizes, etc. You can use this function to + * explicitly turn this off, if you like. + * + * @param no_style Will disable styles if true + */ + void setNoStyle(bool no_style = true); + +signals: + /** + * Emitted when the toolbar button is clicked (with LMB or MMB) + */ + void clicked(int); + /** + * Emitted when the toolbar button is clicked (with any mouse button) + * @param state makes it possible to find out which button was pressed, + * and whether any keyboard modifiers were held. + * @since 3.4 + */ + void buttonClicked(int, Qt::ButtonState state); + void doubleClicked(int); + void pressed(int); + void released(int); + void toggled(int); + void highlighted(int, bool); + +public slots: + /** + * This slot should be called whenever the toolbar mode has + * potentially changed. This includes such events as text changing, + * orientation changing, etc. + */ + void modeChange(); + virtual void setTextLabel(const QString&, bool tipToo); + +protected: + void paletteChange(const QPalette &); + void leaveEvent(QEvent *e); + void enterEvent(QEvent *e); + void drawButton(QPainter *p); + bool eventFilter (QObject *o, QEvent *e); + /// @since 3.4 + void mousePressEvent( QMouseEvent * ); + /// @since 3.4 + void mouseReleaseEvent( QMouseEvent * ); + void showMenu(); + QSize sizeHint() const; + QSize minimumSizeHint() const; + QSize minimumSize() const; + + /// @since 3.1 + bool isRaised() const; + /// @since 3.1 + bool isActive() const; + /// @since 3.1 + int iconTextMode() const; + +protected slots: + void slotClicked(); + void slotPressed(); + void slotReleased(); + void slotToggled(); + void slotDelayTimeout(); + +protected: + virtual void virtual_hook( int id, void* data ); +private: + KToolBarButtonPrivate *d; +}; + +/** +* List of KToolBarButton objects. +* @internal +* @version $Id: ktoolbarbutton.h 372745 2004-12-22 14:08:36Z dfaure $ +*/ +class KDEUI_EXPORT KToolBarButtonList : public QIntDict +{ +public: + KToolBarButtonList(); + ~KToolBarButtonList() {} +}; + +#endif diff --git a/extra/kde342/kurifilter.h b/extra/kde342/kurifilter.h new file mode 100644 index 0000000..21ad4ed --- /dev/null +++ b/extra/kde342/kurifilter.h @@ -0,0 +1,647 @@ +/* + * This file is part of the KDE libraries + * Copyright (C) 2000-2001,2003 Dawit Alemayehu + * + * Original author + * Copyright (C) 2000 Yves Arrouye + * + * + * This library 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. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public License + * along with this library; see the file COPYING.LIB. If not, write to + * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA. + **/ + +#ifndef __kurifilter_h__ +#define __kurifilter_h__ + +#include +#include +#include + +#include + +#ifdef Q_OS_WIN +#undef ERROR +#endif + +class KURIFilterPrivate; +class KURIFilterDataPrivate; + +class KCModule; + +/** +* A basic message object used for exchanging filtering +* information between the filter plugins and the application +* requesting the filtering service. +* +* Use this object if you require a more detailed information +* about the URI you want to filter. Any application can create +* an instance of this class and send it to KURIFilter to +* have the plugins fill out all possible information about the +* URI. +* +* \b Example +* +* \code +* QString text = "kde.org"; +* KURIFilterData d = text; +* bool filtered = KURIFilter::self()->filter( d ); +* cout << "URL: " << text.latin1() << endl +* << "Filtered URL: " << d.uri().url().latin1() << endl +* << "URI Type: " << d.uriType() << endl +* << "Was Filtered: " << filtered << endl; +* \endcode +* +* The above code should yield the following output: +* \code +* URI: kde.org +* Filtered URI: http://kde.org +* URI Type: 0 <== means NET_PROTOCOL +* Was Filtered: 1 <== means the URL was successfully filtered +* \endcode +* +* @short A message object for exchanging filtering URI info. +* @author Dawit Alemayehu +*/ + +class KIO_EXPORT KURIFilterData +{ +friend class KURIFilterPlugin; + +public: + /** + * Describes the type of the URI that was filtered. + * Here is a brief description of the types: + * + * @li NET_PROTOCOL - Any network protocol: http, ftp, nttp, pop3, etc... + * @li LOCAL_FILE - A local file whose executable flag is not set + * @li LOCAL_DIR - A local directory + * @li EXECUTABLE - A local file whose executable flag is set + * @li HELP - A man or info page + * @li SHELL - A shell executable (ex: echo "Test..." >> ~/testfile) + * @li BLOCKED - A URI that should be blocked/filtered (ex: ad filtering) + * @li ERROR - An incorrect URI (ex: "~johndoe" when user johndoe + * does not exist in that system ) + * @li UNKNOWN - A URI that is not identified. Default value when + * a KURIFilterData is first created. + */ + enum URITypes { NET_PROTOCOL=0, LOCAL_FILE, LOCAL_DIR, EXECUTABLE, HELP, SHELL, BLOCKED, ERROR, UNKNOWN }; + + /** + * Default constructor. + * + * Creates a URIFilterData object. + */ + KURIFilterData() { init(); } + + /** + * Creates a URIFilterData object from the given URL. + * + * @param url is the URL to be filtered. + */ + KURIFilterData( const KURL& url ) { init( url); } + + /** + * Creates a URIFilterData object from the given string. + * + * @param url is the string to be filtered. + */ + KURIFilterData( const QString& url ) { init( url ); } + + /** + * Copy constructor. + * + * Creates a URIFilterData object from another + * URI filter data object. + * + * @param data the uri filter data to be copied. + */ + KURIFilterData( const KURIFilterData& data); + + /** + * Destructor. + */ + ~KURIFilterData(); + + /** + * This method has been deprecated and will always return + * true. You should instead use the result from the + * KURIFilter::filterURI() calls. + * + * @deprecated + */ + KDE_DEPRECATED bool hasBeenFiltered() const { return true; } + + /** + * Returns the filtered or the original URL. + * + * This function returns the filtered url if one + * of the plugins successfully filtered the original + * URL. Otherwise, it returns the original URL. + * See hasBeenFiltered() and + * + * @return the filtered or original url. + */ + KURL uri() const { return m_pURI; } + + /** + * Returns an error message. + * + * This functions returns the error message set + * by the plugin whenever the uri type is set to + * KURIFilterData::ERROR. Otherwise, it returns + * a QString::null. + * + * @return the error message or a NULL when there is none. + */ + QString errorMsg() const { return m_strErrMsg; } + + /** + * Returns the URI type. + * + * This method always returns KURIFilterData::UNKNOWN + * if the given URL was not filtered. + * @return the type of the URI + */ + URITypes uriType() const { return m_iType; } + + /** + * Sets the URL to be filtered. + * + * Use this function to set the string to be + * filtered when you construct an empty filter + * object. + * + * @param url the string to be filtered. + */ + void setData( const QString& url ) { init( url ); } + + /** + * Same as above except the argument is a URL. + * + * Use this function to set the string to be + * filtered when you construct an empty filter + * object. + * + * @param url the URL to be filtered. + */ + void setData( const KURL& url ) { init( url ); } + + /** + * Sets the absolute path to be used whenever the supplied + * data is a relative local URL. + * + * NOTE: This function should only be used for local resources, + * i.e. the "file:/" protocol. It is useful for specifying the + * absolute path in cases where the actual URL might be relative. + * meta object. If deriving the path from a KURL, make sure you + * set the argument for this function to the result of calling + * path () instead of url (). + * + * @param abs_path the abolute path to the local resource. + * @return true if absolute path is successfully set. Otherwise, false. + */ + bool setAbsolutePath( const QString& abs_path ); + + /** + * Returns the absolute path if one has already been set. + * @return the absolute path, or QString::null + * @see hasAbsolutePath() + */ + QString absolutePath() const; + + /** + * Checks whether the supplied data had an absolute path. + * @return true if the supplied data has an absolute path + * @see absolutePath() + */ + bool hasAbsolutePath() const; + + /** + * Returns the command line options and arguments for a + * local resource when present. + * + * @return options and arguments when present, otherwise QString::null + */ + QString argsAndOptions() const; + + /** + * Checks whether the current data is a local resource with + * command line options and arguments. + * @return true if the current data has command line options and arguments + */ + bool hasArgsAndOptions() const; + + /** + * Returns the name of the icon that matches + * the current filtered URL. + * + * NOTE that this function will return a NULL + * string by default and when no associated icon + * is found. + * + * @return the name of the icon associated with the resource, + * or QString::null if not found + */ + QString iconName(); + + /** + * Check whether the provided uri is executable or not. + * + * Setting this to false ensures that typing the name of + * an executable does not start that application. This is + * useful in the location bar of a browser. The default + * value is true. + * + * @since 3.2 + */ + void setCheckForExecutables (bool check); + + /** + * @return true if the filters should attempt to check whether the + * supplied uri is an executable. False otherwise. + * + * @since 3.2 + */ + bool checkForExecutables() const { return m_bCheckForExecutables; } + + /** + * @return the string as typed by the user, before any URL processing is done + * @since 3.2 + */ + QString typedString() const; + + /** + * Overloaded assigenment operator. + * + * This function allows you to easily assign a KURL + * to a KURIFilterData object. + * + * @return an instance of a KURIFilterData object. + */ + KURIFilterData& operator=( const KURL& url ) { init( url ); return *this; } + + /** + * Overloaded assigenment operator. + * + * This function allows you to easily assign a QString + * to a KURIFilterData object. + * + * @return an instance of a KURIFilterData object. + */ + KURIFilterData& operator=( const QString& url ) { init( url ); return *this; } + +protected: + + /** + * Initializes the KURIFilterData on construction. + * @param url the URL to initialize the object with + */ + void init( const KURL& url); + + /** + * Initializes the KURIFilterData on construction. + * @param url the URL to initialize the object with + */ + void init( const QString& url = QString::null ); + +private: + bool m_bCheckForExecutables; + bool m_bChanged; + + QString m_strErrMsg; + QString m_strIconName; + + KURL m_pURI; + URITypes m_iType; + KURIFilterDataPrivate *d; +}; + + +/** + * Base class for URI filter plugins. + * + * This class applies a single filter to a URI. All plugins designed + * to provide URI filtering service should inherit from this abstract + * class and provide a concrete implementation. + * + * All inheriting classes need to implement the pure virtual function + * filterURI. + * + * @short Abstract class for URI filter plugins. + */ +class KIO_EXPORT KURIFilterPlugin : public QObject +{ + Q_OBJECT + +public: + + /** + * Constructs a filter plugin with a given name and + * priority. + * + * @param parent the parent object, or 0 for no parent + * @param name the name of the plugin, or 0 for no name + * @param pri the priority of the plugin. + */ + KURIFilterPlugin( QObject *parent = 0, const char *name = 0, double pri = 1.0 ); + + /** + * Returns the filter's name. + * + * @return A string naming the filter. + */ + virtual QString name() const { return m_strName; } + + /** + * Returns the filter's priority. + * + * Each filter has an assigned priority, a float from 0 to 1. Filters + * with the lowest priority are first given a chance to filter a URI. + * + * @return The priority of the filter. + */ + virtual double priority() const { return m_dblPriority; } + + /** + * Filters a URI. + * + * @param data the URI data to be filtered. + * @return A boolean indicating whether the URI has been changed. + */ + virtual bool filterURI( KURIFilterData& data ) const = 0; + + /** + * Creates a configuration module for the filter. + * + * It is the responsibility of the caller to delete the module + * once it is not needed anymore. + * + * @return A configuration module, 0 if the filter isn't configurable. + */ + virtual KCModule *configModule( QWidget*, const char* ) const { return 0; } + + /** + * Returns the name of the configuration module for the filter. + * + * @return the name of a configuration module or QString::null if none. + */ + virtual QString configName() const { return name(); } + +protected: + + /** + * Sets the the URL in @p data to @p uri. + */ + void setFilteredURI ( KURIFilterData& data, const KURL& uri ) const; + + /** + * Sets the error message in @p data to @p errormsg. + */ + void setErrorMsg ( KURIFilterData& data, const QString& errmsg ) const { + data.m_strErrMsg = errmsg; + } + + /** + * Sets the URI type in @p data to @p type. + */ + void setURIType ( KURIFilterData& data, KURIFilterData::URITypes type) const { + data.m_iType = type; + data.m_bChanged = true; + } + + /** + * Sets the arguments and options string in @p data + * to @p args if any were found during filterting. + */ + void setArguments( KURIFilterData& data, const QString& args ) const; + + QString m_strName; + double m_dblPriority; + +protected: + virtual void virtual_hook( int id, void* data ); +private: + class KURIFilterPluginPrivate *d; +}; + + +/** + * A list of filter plugins. + */ +class KIO_EXPORT KURIFilterPluginList : public QPtrList +{ +public: + virtual int compareItems(Item a, Item b) + { + double diff = ((KURIFilterPlugin *) a)->priority() - ((KURIFilterPlugin *) b)->priority(); + return diff < 0 ? -1 : (diff > 0 ? 1 : 0); + } + +private: + KURIFilterPrivate *d; + +}; + +/** + * Manages the filtering of URIs. + * + * The intention of this plugin class is to allow people to extend the + * functionality of KURL without modifying it directly. This way KURL will + * remain a generic parser capable of parsing any generic URL that adheres + * to specifications. + * + * The KURIFilter class applies a number of filters to a URI and returns the + * filtered version whenever possible. The filters are implemented using + * plugins to provide easy extensibility of the filtering mechanism. New + * filters can be added in the future by simply inheriting from + * KURIFilterPlugin and implementing the KURIFilterPlugin::filterURI + * method. + * + * Use of this plugin-manager class is straight forward. Since it is a + * singleton object, all you have to do is obtain an instance by doing + * @p KURIFilter::self() and use any of the public member functions to + * preform the filtering. + * + * \b Example + * + * To simply filter a given string: + * + * \code + * bool filtered = KURIFilter::self()->filterURI( "kde.org" ); + * \endcode + * + * You can alternatively use a KURL: + * + * \code + * KURL url = "kde.org"; + * bool filtered = KURIFilter::self()->filterURI( url ); + * \endcode + * + * If you have a constant string or a constant URL, simply invoke the + * corresponding function to obtain the filtered string or URL instead + * of a boolean flag: + * + * \code + * QString u = KURIFilter::self()->filteredURI( "kde.org" ); + * \endcode + * + * You can also restrict the filter(s) to be used by supplying + * the name of the filter(s) to use. By defualt all available + * filters will be used. To use specific filters, add the names + * of the filters you want to use to a QStringList and invoke + * the appropriate filtering function. The examples below show + * the use of specific filters. The first one uses a single + * filter called kshorturifilter while the second example uses + * multiple filters: + * + * \code + * QString text = "kde.org"; + * bool filtered = KURIFilter::self()->filterURI( text, "kshorturifilter" ); + * \endcode + * + * \code + * QStringList list; + * list << "kshorturifilter" << "localdomainfilter"; + * bool filtered = KURIFilter::self()->filterURI( text, list ); + * \endcode + * + * KURIFilter also allows richer data exchange through a simple + * meta-object called @p KURIFilterData. Using this meta-object + * you can find out more information about the URL you want to + * filter. See KURIFilterData for examples and details. + * + * @short Filters a given URL into its proper format whenever possible. + */ + +class KIO_EXPORT KURIFilter +{ +public: + /** + * Destructor + */ + ~KURIFilter (); + + /** + * Returns an instance of KURIFilter. + */ + static KURIFilter* self(); + + /** + * Filters the URI given by the object URIFilterData. + * + * The given URL is filtered based on the specified list of filters. + * If the list is empty all available filters would be used. + * + * @param data object that contains the URI to be filtered. + * @param filters specify the list of filters to be used. + * + * @return a boolean indicating whether the URI has been changed + */ + bool filterURI( KURIFilterData& data, const QStringList& filters = QStringList() ); + + /** + * Filters the URI given by the URL. + * + * The given URL is filtered based on the specified list of filters. + * If the list is empty all available filters would be used. + * + * @param uri the URI to filter. + * @param filters specify the list of filters to be used. + * + * @return a boolean indicating whether the URI has been changed + */ + bool filterURI( KURL &uri, const QStringList& filters = QStringList() ); + + /** + * Filters a string representing a URI. + * + * The given URL is filtered based on the specified list of filters. + * If the list is empty all available filters would be used. + * + * @param uri The URI to filter. + * @param filters specify the list of filters to be used. + * + * @return a boolean indicating whether the URI has been changed + */ + bool filterURI( QString &uri, const QStringList& filters = QStringList() ); + + /** + * Returns the filtered URI. + * + * The given URL is filtered based on the specified list of filters. + * If the list is empty all available filters would be used. + * + * @param uri The URI to filter. + * @param filters specify the list of filters to be used. + * + * @return the filtered URI or null if it cannot be filtered + */ + KURL filteredURI( const KURL &uri, const QStringList& filters = QStringList() ); + + /** + * Return a filtered string representation of a URI. + * + * The given URL is filtered based on the specified list of filters. + * If the list is empty all available filters would be used. + * + * @param uri the URI to filter. + * @param filters specify the list of filters to be used. + * + * @return the filtered URI or null if it cannot be filtered + */ + QString filteredURI( const QString &uri, const QStringList& filters = QStringList() ); + + /** + * Return an iterator to iterate over all loaded + * plugins. + * + * @return a plugin iterator. + */ + QPtrListIterator pluginsIterator() const; + + /** + * Return a list of the names of all loaded plugins. + * + * @return a QStringList of plugin names + * @since 3.1 + */ + QStringList pluginNames() const; + +protected: + + /** + * A protected constructor. + * + * This constructor creates a KURIFilter and + * initializes all plugins it can find by invoking + * loadPlugins. + */ + KURIFilter(); + + /** + * Loads all allowed plugins. + * + * This function loads all filters that have not + * been disbled. + */ + void loadPlugins(); + +private: + static KURIFilter *m_self; + KURIFilterPluginList m_lstPlugins; + KURIFilterPrivate *d; +}; + +#endif diff --git a/extra/kde342/selectdialog.h b/extra/kde342/selectdialog.h new file mode 100644 index 0000000..20b899a --- /dev/null +++ b/extra/kde342/selectdialog.h @@ -0,0 +1,87 @@ +/* + This file is part of libkresources. + + Copyright (c) 2002 Tobias Koenig + Copyright (c) 2002 Jan-Pascal van Best + Copyright (c) 2003 Cornelius Schumacher + + This library 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. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef KRESOURCES_SELECTDIALOG_H +#define KRESOURCES_SELECTDIALOG_H + +#include +#include +#include + +#include + +class KListBox; + +namespace KRES { + +class Resource; + +/** + * Dialog for selecting a resource. + * + * Example: + * + * \code + * + * QPtrList list = ... // can be retrived from KRES::Manager (e.g. KABC::AddressBook) + * + * KABC::Resource *res = KABC::SelectDialog::getResource( list, parentWdg ); + * if ( !res ) { + * // no resource selected + * } else { + * // do something with resource + * } + * \endcode + */ +class KRESOURCES_EXPORT SelectDialog +{ + public: + /** + * Constructor. + * @param list The list of available resources + * @param parent The parent widget + * @param name The name of the dialog + */ + SelectDialog( QPtrList list, QWidget *parent = 0, + const char *name = 0); + + /** + * Returns selected resource. + */ + Resource *resource(); + + /** + * Opens a dialog showing the available resources and returns the resource the + * user has selected. Returns 0, if the dialog was canceled. + */ + static Resource *getResource( QPtrList list, QWidget *parent = 0 ); + + private: + KListBox *mResourceId; + + QMap mResourceMap; +}; + +} + +#endif diff --git a/extra/kde343/configwidget.h b/extra/kde343/configwidget.h new file mode 100644 index 0000000..ae76397 --- /dev/null +++ b/extra/kde343/configwidget.h @@ -0,0 +1,58 @@ +/* + This file is part of libkresources. + Copyright (c) 2002 Tobias Koenig + Copyright (c) 2002 Jan-Pascal van Best + + This library 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. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef KRESOURCES_CONFIGWIDGET_H +#define KRESOURCES_CONFIGWIDGET_H + +#include "resource.h" + +#include + +#include + +namespace KRES { + +class KRESOURCES_EXPORT ConfigWidget : public QWidget +{ + Q_OBJECT + public: + ConfigWidget( QWidget *parent = 0, const char *name = 0 ); + + /** + Sets the widget to 'edit' mode. Reimplement this method if you are + interested in the mode change (to disable some GUI element for + example). By default the widget is in 'create new' mode. + */ + virtual void setInEditMode( bool value ); + + public slots: + virtual void loadSettings( Resource *resource ) = 0; + virtual void saveSettings( Resource *resource ) = 0; + + signals: + void setReadOnly( bool value ); + + protected: + Resource *mResource; +}; + +} +#endif diff --git a/extra/kde343/kaccelaction.h b/extra/kde343/kaccelaction.h new file mode 100644 index 0000000..396e218 --- /dev/null +++ b/extra/kde343/kaccelaction.h @@ -0,0 +1,564 @@ +/* This file is part of the KDE libraries + Copyright (C) 2001,2002 Ellis Whitehead + + This library 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. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef _KACCELACTION_H +#define _KACCELACTION_H + +#include +#include +#include +#include + +#include + +class KAccelBase; + +class QObject; +class KConfig; +class KConfigBase; + +/** + * @internal + * A KAccelAction prepresents an action that can be executed using + * an accelerator key. Each KAccelAction has a name, a label, a + * "What's this" string and a KShortcut. The user can configure and + * enable/disable them using KKeyDialog. + * + * \code + * 1) KAccelAction = "Run Command" + * Default3 = "Alt+F2" + * Default4 = "Meta+Enter;Alt+F2" + * 1) KShortcut = "Meta+Enter" + * 1) KKeySequence = "Meta+Enter" + * 1) KKey = "Meta+Enter" + * 1) Meta+Enter + * 2) Meta+Keypad_Enter + * 2) KShortcut = "Alt+F2" + * 1) KKeySequence = "Alt+F2" + * 1) Alt+F2 + * 2) KAccelAction = "Something" + * Default3 = "" + * Default4 = "" + * 1) KShortcut = "Meta+X,Asterisk" + * 1) KKeySequence = "Meta+X,Asterisk" + * 1) KKey = "Meta+X" + * 1) Meta+X + * 2) KKey = "Asterisk" + * 1) Shift+8 (English layout) + * 2) Keypad_Asterisk + * \endcode + * @short An accelerator action + * @see KAccel + * @see KGlobalAccel + * @see KKeyChooser + * @see KKeyDialog + */ +class KDECORE_EXPORT KAccelAction +{ + public: + /** + * Creates an empty KAccelAction. + * @see clear() + */ + KAccelAction(); + + /** + * Copy constructor. + */ + KAccelAction( const KAccelAction& ); + + /** + * Creates a new KAccelAction. + * @param sName the name of the accelerator + * @param sLabel the label of the accelerator (i18n!) + * @param sWhatsThis the What's This text (18n!) + * @param cutDef3 the default shortcut for 3 modifier systems + * @param cutDef4 the default shortcut for 4 modifier systems + * @param pObjSlot the receiver of a signal when the key has been + * pressed + * @param psMethodSlot the slot to connect for key presses. Receives + * an int, as set by setID(), as only argument + * @param bConfigurable if true the user can configure the shortcut + * @param bEnabled true if the accelerator should be enabled + */ + KAccelAction( const QString& sName, const QString& sLabel, const QString& sWhatsThis, + const KShortcut& cutDef3, const KShortcut& cutDef4, + const QObject* pObjSlot, const char* psMethodSlot, + bool bConfigurable, bool bEnabled ); + ~KAccelAction(); + + /** + * Clears the accelerator. + */ + void clear(); + + /** + * Re-initialized the KAccelAction. + * @param sName the name of the accelerator + * @param sLabel the label of the accelerator (i18n!) + * @param sWhatsThis the What's This text (18n!) + * @param cutDef3 the default shortcut for 3 modifier systems + * @param cutDef4 the default shortcut for 4 modifier systems + * @param pObjSlot the receiver of a signal when the key has been + * pressed + * @param psMethodSlot the slot to connect for key presses. Receives + * an int, as set by setID(), as only argument + * @param bConfigurable if true the user can configure the shortcut + * @param bEnabled true if the accelerator should be enabled + * @return true if successful, false otherwise + */ + bool init( const QString& sName, const QString& sLabel, const QString& sWhatsThis, + const KShortcut& cutDef3, const KShortcut& cutDef4, + const QObject* pObjSlot, const char* psMethodSlot, + bool bConfigurable, bool bEnabled ); + + /** + * Copies this KAccelAction. + */ + KAccelAction& operator=( const KAccelAction& ); + + /** + * Returns the name of the accelerator action. + * @return the name of the accelerator action, can be null if not + * set + */ + const QString& name() const { return m_sName; } + + /** + * Returns the label of the accelerator action. + * @return the label of the accelerator action, can be null if + * not set + */ + const QString& label() const { return m_sLabel; } + + /** + * Returns the What's This text of the accelerator action. + * @return the What's This text of the accelerator action, can be + * null if not set + */ + const QString& whatsThis() const { return m_sWhatsThis; } + + /** + * The shortcut that is actually used (may be used configured). + * @return the shortcut of the KAccelAction, can be null if not set + * @see shortcutDefault() + */ + const KShortcut& shortcut() const { return m_cut; } + + /** + * The default shortcut for this system. + * @return the default shortcut on this system, can be null if not set + * @see shortcut() + * @see shortcutDefault3() + * @see shortcutDefault4() + */ + const KShortcut& shortcutDefault() const; + + /** + * The default shortcut for 3 modifier systems. + * @return the default shortcut for 3 modifier systems, can be null + * if not set + * @see shortcutDefault() + * @see shortcutDefault4() + * @see useFourModifierKeys() + */ + const KShortcut& shortcutDefault3() const { return m_cutDefault3; } + + /** + * The default shortcut for 4 modifier systems. + * @return the default shortcut for 4 modifier systems, can be null + * if not set + * @see shortcutDefault() + * @see shortcutDefault3() + * @see useFourModifierKeys() + */ + const KShortcut& shortcutDefault4() const { return m_cutDefault4; } + + /** + * Returns the receiver of signals. + * @return the receiver of signals (can be 0 if not set) + */ + const QObject* objSlotPtr() const { return m_pObjSlot; } + + /** + * Returns the slot for the signal. + * @return the slot for the signal + */ + const char* methodSlotPtr() const { return m_psMethodSlot; } + + /** + * Checks whether the user can configure the action. + * @return true if configurable, false otherwise + */ + bool isConfigurable() const { return m_bConfigurable; } + + /** + * Checks whether the action is enabled. + * @return true if enabled, false otherwise + */ + bool isEnabled() const { return m_bEnabled; } + + /** + * Sets the name of the accelerator action. + * @param name the new name + */ + void setName( const QString& name ); + + /** + * Sets the user-readable label of the accelerator action. + * @param label the new label (i18n!) + */ + void setLabel( const QString& label ); + + /** + * Sets the What's This text for the accelerator action. + * @param whatsThis the new What's This text (i18n!) + */ + void setWhatsThis( const QString& whatsThis ); + + /** + * Sets the new shortcut of the accelerator action. + * @param rgCuts the shortcut to set + * @return true if successful, false otherwise + */ + bool setShortcut( const KShortcut& rgCuts ); + + /** + * Sets the slot of the accelerator action. + * @param pObjSlot the receiver object of the signal + * @param psMethodSlot the slot for the signal + */ + void setSlot( const QObject* pObjSlot, const char* psMethodSlot ); + + /** + * Enables or disabled configuring the action. + * @param configurable true to enable configurability, false to disable + */ + void setConfigurable( bool configurable ); + + /** + * Enables or disabled the action. + * @param configurable true to enable the action, false to disable + */ + void setEnabled( bool enable ); + + /** + * Retrieves the id set using setID. + * @return the id of the accelerator action + */ + int getID() const { return m_nIDAccel; } + + /** + * Allows you to set an id that will be used as the action + * signal's argument. + * + * @param n the new id + * @see getID() + */ + void setID( int n ) { m_nIDAccel = n; } + + /** + * Checkes whether the action is connected (emits signals). + * @return true if connected, false otherwise + */ + bool isConnected() const; + + /** + * Sets a key sequence of the action's shortcut. + * @param i the position of the sequence + * @param keySeq the new new sequence + * @return true if successful, false otherwise + * @see KShortcut::setSeq() + */ + bool setKeySequence( uint i, const KKeySequence &keySeq ); + + /** + * Clears the action's shortcut. It will not contain any sequences after + * calling this method. + * @see KShortcut::clear() + */ + void clearShortcut(); + + /** + * Checks whether the action's shortcut contains the given key sequence. + * @param keySeq the key sequence to check + * @return true if the shortcut contains the given sequence + * @see KShortcut::contains() + */ + bool contains( const KKeySequence &keySeq ); + + /** + * Returns the string representation of the action's shortcut. + * @return the string representation of the action's shortcut. + * @see KShortcut::toString() + */ + QString toString() const; + + /** + * @internal + */ + QString toStringInternal() const; + + /** + * Returns true if four modifier keys will be used. + * @return true if four modifier keys will be used. + */ + static bool useFourModifierKeys(); + + /** + * Selects 3 or 4 modifier default shortcuts. + * @param use true to use 4 modifier shortcuts, false to use + * 3 modifier shortcuts + */ + static void useFourModifierKeys( bool use ); + + protected: + QString m_sName, + m_sLabel, + m_sWhatsThis; + KShortcut m_cut; + KShortcut m_cutDefault3, m_cutDefault4; + const QObject* m_pObjSlot; + const char* m_psMethodSlot; + bool m_bConfigurable, + m_bEnabled; + int m_nIDAccel; + uint m_nConnections; + + void incConnections(); + void decConnections(); + + private: + static int g_bUseFourModifierKeys; + class KAccelActionPrivate* d; + + friend class KAccelActions; + friend class KAccelBase; +}; + +//--------------------------------------------------------------------- +// KAccelActions +//--------------------------------------------------------------------- + +/** + * @internal + * This class represents a collection of KAccelAction objects. + * + * @short A collection of accelerator actions + * @see KAccelAction + */ +class KDECORE_EXPORT KAccelActions +{ + public: + /** + * Creates a new, empty KAccelActions object. + */ + KAccelActions(); + + /** + * Copy constructor (deep copy). + */ + KAccelActions( const KAccelActions& ); + virtual ~KAccelActions(); + + /** + * Removes all items from this collection. + */ + void clear(); + + /** + * Initializes this object with the given actions. + * It will make a deep copy of all actions. + * @param actions the actions to copy + * @return true if successful, false otherwise + */ + bool init( const KAccelActions &actions ); + + /** + * Loads the actions from the given configuration file. + * + * @param config the configuration file to load from + * @param sGroup the group in the configuration file + * @return true if successful, false otherwise + */ + bool init( KConfigBase& config, const QString& sGroup ); + + /** + * Updates the shortcuts of all actions in this object + * with the shortcuts from the given object. + * @param shortcuts the collection that contains the new + * shortcuts + */ + void updateShortcuts( KAccelActions &shortcuts ); + + /** + * Retrieves the index of the action with the given name. + * @param sAction the action to search + * @return the index of the action, or -1 if not found + */ + int actionIndex( const QString& sAction ) const; + + /** + * Returns the action with the given @p index. + * @param index the index of an action. You must not + * use an index that is too high. + * @return the KAccelAction with the given index + * @see count() + */ + KAccelAction* actionPtr( uint index ); + + /** + * Returns the action with the given @p index. + * @param index the index of an action. You must not + * use an index that is too high. + * @return the KAccelAction with the given index + * @see count() + */ + const KAccelAction* actionPtr( uint index ) const; + + /** + * Returns the action with the given name. + * @param aAction the name of the action to search + * @return the KAccelAction with the given name, or 0 + * if not found + */ + KAccelAction* actionPtr( const QString& sAction ); + + /** + * Returns the action with the given name. + * @param aAction the name of the action to search + * @return the KAccelAction with the given name, or 0 + * if not found + */ + const KAccelAction* actionPtr( const QString& sAction ) const; + + /** + * Returns the action with the given key sequence. + * @param cut the sequence to search for + * @return the KAccelAction with the given sequence, or 0 + * if not found + */ + KAccelAction* actionPtr( KKeySequence cut ); + + /** + * Returns the action with the given @p index. + * @param index the index of an action. You must not + * use an index that is too high. + * @return the KAccelAction with the given index + * @see actionPtr() + * @see count() + */ + KAccelAction& operator []( uint index ); + + /** + * Returns the action with the given @p index. + * @param index the index of an action. You must not + * use an index that is too high. + * @return the KAccelAction with the given index + * @see actionPtr() + * @see count() + */ + const KAccelAction& operator []( uint index ) const; + + /** + * Inserts an action into the collection. + * @param sName the name of the accelerator + * @param sLabel the label of the accelerator (i18n!) + * @param sWhatsThis the What's This text (18n!) + * @param cutDef3 the default shortcut for 3 modifier systems + * @param cutDef4 the default shortcut for 4 modifier systems + * @param pObjSlot the receiver of a signal when the key has been + * pressed + * @param psMethodSlot the slot to connect for key presses. Receives + * an int, as set by setID(), as only argument + * @param bConfigurable if true the user can configure the shortcut + * @param bEnabled true if the accelerator should be enabled + * @return the new action + */ + KAccelAction* insert( const QString& sAction, const QString& sLabel, const QString& sWhatsThis, + const KShortcut& rgCutDefaults3, const KShortcut& rgCutDefaults4, + const QObject* pObjSlot = 0, const char* psMethodSlot = 0, + bool bConfigurable = true, bool bEnabled = true ); + + /** + * Inserts an action into the collection. + * @param sName the name of the accelerator + * @param sLabel the label of the accelerator (i18n!) + * @return the new action + */ + KAccelAction* insert( const QString& sName, const QString& sLabel ); + + /** + * Removes the given action. + * @param sAction the name of the action. + * @return true if successful, false otherwise + */ + bool remove( const QString& sAction ); + + /** + * Loads the actions from the given configuration file. + * + * @param sConfigGroup the group in the configuration file + * @param pConfig the configuration file to load from + * @return true if successful, false otherwise + */ + bool readActions( const QString& sConfigGroup = "Shortcuts", KConfigBase* pConfig = 0 ); + + /** + * Writes the actions to the given configuration file. + * + * @param sConfigGroup the group in the configuration file + * @param pConfig the configuration file to save to + * @param bWriteAll true to write all actions + * @param bGlobal true to write to the global configuration file + * @return true if successful, false otherwise + */ + bool writeActions( const QString& sConfigGroup = "Shortcuts", KConfigBase* pConfig = 0, + bool bWriteAll = false, bool bGlobal = false ) const; + + /** + * Emit a keycodeChanged signal. + */ + void emitKeycodeChanged(); + + /** + * Returns the number of actions in the collection. + * @return the number of actions + */ + uint count() const; + + protected: + KAccelBase* m_pKAccelBase; + KAccelAction** m_prgActions; + uint m_nSizeAllocated, m_nSize; + + void resize( uint ); + void insertPtr( KAccelAction* ); + + private: + class KAccelActionsPrivate* d; + + KAccelActions( KAccelBase* ); + void initPrivate( KAccelBase* ); + KAccelActions& operator =( KAccelActions& ); + + friend class KAccelBase; +}; + +#endif // _KACCELACTION_H diff --git a/extra/kde343/kaccelbase.h b/extra/kde343/kaccelbase.h new file mode 100644 index 0000000..f582cce --- /dev/null +++ b/extra/kde343/kaccelbase.h @@ -0,0 +1,229 @@ +/* This file is part of the KDE libraries + Copyright (C) 2001 Ellis Whitehead + + This library 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. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef _KACCELBASE_H +#define _KACCELBASE_H + +#include +#include +#include +#include +#include + +#include "kaccelaction.h" +#include "kkeyserver.h" + +class QPopupMenu; +class QWidget; + +//---------------------------------------------------- + +/** + * @internal + * Handle keyboard accelerators. + * + * Allow an user to configure + * key bindings through application configuration files or through the + * KKeyChooser GUI. + * + * A KAccel contains a list of accelerator items. Each accelerator item + * consists of an action name and a keyboard code combined with modifiers + * (Shift, Ctrl and Alt.) + * + * For example, "Ctrl+P" could be a shortcut for printing a document. The key + * codes are listed in ckey.h. "Print" could be the action name for printing. + * The action name identifies the key binding in configuration files and the + * KKeyChooser GUI. + * + * When pressed, an accelerator key calls the slot to which it has been + * connected. Accelerator items can be connected so that a key will activate + * two different slots. + * + * A KAccel object handles key events sent to its parent widget and to all + * children of this parent widget. + * + * Key binding reconfiguration during run time can be prevented by specifying + * that an accelerator item is not configurable when it is inserted. A special + * group of non-configurable key bindings are known as the + * standard accelerators. + * + * The standard accelerators appear repeatedly in applications for + * standard document actions such as printing and saving. Convenience methods are + * available to insert and connect these accelerators which are configurable on + * a desktop-wide basis. + * + * It is possible for a user to choose to have no key associated with + * an action. + * + * The translated first argument for insertItem() is used only + * in the configuration dialog. + *\code + * KAccel *a = new KAccel( myWindow ); + * // Insert an action "Scroll Up" which is associated with the "Up" key: + * a->insertItem( i18n("Scroll Up"), "Scroll Up", "Up" ); + * // Insert an action "Scroll Down" which is not associated with any key: + * a->insertItem( i18n("Scroll Down"), "Scroll Down", 0); + * a->connectItem( "Scroll up", myWindow, SLOT( scrollUp() ) ); + * // a->insertStdItem( KStdAccel::Print ); //not necessary, since it + * // is done automatially with the + * // connect below! + * a->connectItem(KStdAccel::Print, myWindow, SLOT( printDoc() ) ); + * + * a->readSettings(); + *\endcode + * + * If a shortcut has a menu entry as well, you could insert them like + * this. The example is again the KStdAccel::Print from above. + * + * \code + * int id; + * id = popup->insertItem("&Print",this, SLOT(printDoc())); + * a->changeMenuAccel(popup, id, KStdAccel::Print ); + * \endcode + * + * If you want a somewhat "exotic" name for your standard print action, like + * id = popup->insertItem(i18n("Print &Document"),this, SLOT(printDoc())); + * it might be a good idea to insert the standard action before as + * a->insertStdItem( KStdAccel::Print, i18n("Print Document") ) + * as well, so that the user can easily find the corresponding function. + * + * This technique works for other actions as well. Your "scroll up" function + * in a menu could be done with + * + * \code + * id = popup->insertItem(i18n"Scroll &up",this, SLOT(scrollUp())); + * a->changeMenuAccel(popup, id, "Scroll Up" ); + * \endcode + * + * Please keep the order right: First insert all functions in the + * acceleratior, then call a -> readSettings() and @em then build your + * menu structure. + * + * @short Configurable key binding support. + */ + +class KDECORE_EXPORT KAccelBase +{ + public: + enum Init { QT_KEYS = 0x00, NATIVE_KEYS = 0x01 }; + enum Signal { KEYCODE_CHANGED }; + + KAccelBase( int fInitCode ); + virtual ~KAccelBase(); + + uint actionCount() const; + KAccelActions& actions(); + bool isEnabled() const; + + KAccelAction* actionPtr( const QString& sAction ); + const KAccelAction* actionPtr( const QString& sAction ) const; + KAccelAction* actionPtr( const KKey& key ); + KAccelAction* actionPtr( const KKeyServer::Key& key ); + + const QString& configGroup() const { return m_sConfigGroup; } + void setConfigGroup( const QString& group ); + void setConfigGlobal( bool global ); + virtual void setEnabled( bool bEnabled ) = 0; + bool getAutoUpdate() { return m_bAutoUpdate; } + // return value of AutoUpdate flag before this call. + bool setAutoUpdate( bool bAuto ); + +// Procedures for manipulating Actions. + //void clearActions(); + + KAccelAction* insert( const QString& sName, const QString& sDesc ); + KAccelAction* insert( + const QString& sAction, const QString& sDesc, const QString& sHelp, + const KShortcut& rgCutDefaults3, const KShortcut& rgCutDefaults4, + const QObject* pObjSlot, const char* psMethodSlot, + bool bConfigurable = true, bool bEnabled = true ); + bool remove( const QString& sAction ); + bool setActionSlot( const QString& sAction, const QObject* pObjSlot, const char* psMethodSlot ); + + bool updateConnections(); + + bool setShortcut( const QString& sAction, const KShortcut& cut ); + +// Modify individual Action sub-items + bool setActionEnabled( const QString& sAction, bool bEnable ); + + /** + * Read all key associations from @p config, or (if @p config + * is zero) from the application's configuration file + * KGlobal::config(). + * + * The group in which the configuration is stored can be + * set with setConfigGroup(). + */ + void readSettings( KConfigBase* pConfig = 0 ); + + /** + * Write the current configurable associations to @p config, + * or (if @p config is zero) to the application's + * configuration file. + */ + void writeSettings( KConfigBase* pConfig = 0 ) const; + + QPopupMenu* createPopupMenu( QWidget* pParent, const KKeySequence& ); + + // Protected methods + protected: + void slotRemoveAction( KAccelAction* ); + + struct X; + void createKeyList( QValueVector& rgKeys ); + bool insertConnection( KAccelAction* ); + bool removeConnection( KAccelAction* ); + + virtual bool emitSignal( Signal ) = 0; + virtual bool connectKey( KAccelAction&, const KKeyServer::Key& ) = 0; + virtual bool connectKey( const KKeyServer::Key& ) = 0; + virtual bool disconnectKey( KAccelAction&, const KKeyServer::Key& ) = 0; + virtual bool disconnectKey( const KKeyServer::Key& ) = 0; + + protected: + struct ActionInfo + { + KAccelAction* pAction; + uint iSeq, iVariation; + //ActionInfo* pInfoNext; // nil if only one action uses this key. + + ActionInfo() { pAction = 0; iSeq = 0xffff; iVariation = 0xffff; } + ActionInfo( KAccelAction* _pAction, uint _iSeq, uint _iVariation ) + { pAction = _pAction; iSeq = _iSeq; iVariation = _iVariation; } + }; + typedef QMap KKeyToActionMap; + + KAccelActions m_rgActions; + KKeyToActionMap m_mapKeyToAction; + QValueList m_rgActionsNonUnique; + bool m_bNativeKeys; // Use native key codes instead of Qt codes + bool m_bEnabled; + bool m_bConfigIsGlobal; + QString m_sConfigGroup; + bool m_bAutoUpdate; + KAccelAction* mtemp_pActionRemoving; + + private: + KAccelBase& operator =( const KAccelBase& ); + + friend class KAccelActions; +}; + +#endif // _KACCELBASE_H diff --git a/extra/kde343/kicontheme.h b/extra/kde343/kicontheme.h new file mode 100644 index 0000000..0079e71 --- /dev/null +++ b/extra/kde343/kicontheme.h @@ -0,0 +1,355 @@ +/* vi: ts=8 sts=4 sw=4 + * + * This file is part of the KDE project, module kdecore. + * Copyright (C) 2000 Geert Jansen + * Antonio Larrosa + * + * This is free software; it comes under the GNU Library General + * Public License, version 2. See the file "COPYING.LIB" for the + * exact licensing terms. + * + */ + +#ifndef __KIconTheme_h_Included__ +#define __KIconTheme_h_Included__ + +#include +#include +#include +#include "kdelibs_export.h" + +class KConfig; +//class KIconThemeDir; + +class KIconThemePrivate; + +class KIconPrivate; + +/** + * One icon as found by KIconTheme. Also serves as a namespace containing + * icon related constants. + * @see KIconEffect + * @see KIconTheme + * @see KIconLoader + */ +class KDECORE_EXPORT KIcon +{ +public: + KIcon() { size = 0; } + + /** + * Return true if this icon is valid, false otherwise. + */ + bool isValid() const { return size != 0; } + + /** + * Defines the context of the icon. + */ + enum Context { + Any, ///< Some icon with unknown purpose. + Action, ///< An action icon (e.g. 'save', 'print'). + Application, ///< An icon that represents an application. + Device, ///< An icon that represents a device. + FileSystem, ///< An icon that represents a file system. + MimeType ///< An icon that represents a mime type (or file type). + }; + + /** + * The type of the icon. + */ + enum Type { + Fixed, ///< Fixed-size icon. + Scalable, ///< Scalable-size icon. + Threshold ///< A threshold icon. + }; + + /** + * The type of a match. + */ + enum MatchType { + MatchExact, ///< Only try to find an exact match. + MatchBest ///< Take the best match if there is no exact match. + + }; + + // if you add a group here, make sure to change the config reading in + // KIconLoader too + /** + * The group of the icon. + */ + enum Group { + /// No group + NoGroup=-1, + /// Desktop icons + Desktop=0, + /// First group + FirstGroup=0, + /// Toolbar icons + Toolbar, + /// Main toolbar icons + MainToolbar, + /// Small icons + Small, + /// Panel (Kicker) icons + Panel, + /// Last group + LastGroup, + /// User icons + User + }; + + /** + * These are the standard sizes for icons. + */ + enum StdSizes { + /// small icons for menu entries + SizeSmall=16, + /// slightly larger small icons for toolbars, panels, etc + SizeSmallMedium=22, + /// medium sized icons for the desktop + SizeMedium=32, + /// large sized icons for the panel + SizeLarge=48, + /// huge sized icons for iconviews + SizeHuge=64, + /// enormous sized icons for iconviews + SizeEnormous=128 + }; + + /** + * Defines the possible states of an icon. + */ + enum States { DefaultState, ///< The default state. + ActiveState, ///< Icon is active. + DisabledState, ///< Icon is disabled. + LastState ///< Last state (last constant) + }; + + /** + * This defines an overlay, a semi-transparent image that is + * projected onto the icon. They are used to show that the file + * represented by the icon is, for example, locked, zipped or hidden. + */ + enum Overlays { + LockOverlay=0x100, ///< a file is locked + ZipOverlay=0x200, ///< a file is zipped + LinkOverlay=0x400, ///< a file is a link + HiddenOverlay=0x800, ///< a file is hidden + ShareOverlay=0x1000, ///< a file is shared + OverlayMask = ~0xff + }; + + /** + * The size in pixels of the icon. + */ + int size; + + /** + * The context of the icon. + */ + Context context; + + /** + * The type of the icon: Fixed, Scalable or Threshold. + **/ + Type type; + + /** + * The threshold in case type == Threshold + */ + int threshold; + + /** + * The full path of the icon. + */ + QString path; + +private: + KIconPrivate *d; +}; + +inline KIcon::Group& operator++(KIcon::Group& group) { group = static_cast(group+1); return group; } +inline KIcon::Group operator++(KIcon::Group& group,int) { KIcon::Group ret = group; ++group; return ret; } + +/** + * Class to use/access icon themes in KDE. This class is used by the + * iconloader but can be used by others too. + * @see KIconLoader + */ +class KDECORE_EXPORT KIconTheme +{ +public: + /** + * Load an icon theme by name. + * @param name the name of the theme (e.g. "hicolor" or "keramik") + * @param appName the name of the application. Can be null. This argument + * allows applications to have themed application icons. + */ + KIconTheme(const QString& name, const QString& appName=QString::null); + ~KIconTheme(); + + /** + * The stylized name of the icon theme. + * @return the (human-readable) name of the theme + */ + QString name() const { return mName; } + + /** + * A description for the icon theme. + * @return a human-readable description of the theme, QString::null + * if there is none + */ + QString description() const { return mDesc; } + + /** + * Return the name of the "example" icon. This can be used to + * present the theme to the user. + * @return the name of the example icon, QString::null if there is none + */ + QString example() const; + + /** + * Return the name of the screenshot. + * @return the name of the screenshot, QString::null if there is none + */ + QString screenshot() const; + + /** + * Returns the name of this theme's link overlay. + * @return the name of the link overlay + */ + QString linkOverlay() const; + + /** + * Returns the name of this theme's zip overlay. + * @return the name of the zip overlay + */ + QString zipOverlay() const; + + /** + * Returns the name of this theme's lock overlay. + * @return the name of the lock overlay + */ + QString lockOverlay() const; + + /** + * Returns the name of this theme's share overlay. + * @return the name of the share overlay + * @since 3.1 + */ + QString shareOverlay () const; + + /** + * Returns the toplevel theme directory. + * @return the directory of the theme + */ + QString dir() const { return mDir; } + + /** + * The themes this icon theme falls back on. + * @return a list of icon themes that are used as fall-backs + */ + QStringList inherits() const { return mInherits; } + + /** + * The icon theme exists? + * @return true if the icon theme is valid + */ + bool isValid() const; + + /** + * The icon theme should be hidden to the user? + * @return true if the icon theme is hidden + * @since 3.1 + */ + bool isHidden() const; + + /** + * The minimum display depth required for this theme. This can either + * be 8 or 32. + * @return the minimum bpp (8 or 32) + */ + int depth() const { return mDepth; } + + /** + * The default size of this theme for a certain icon group. + * @param group The icon group. See KIcon::Group. + * @return The default size in pixels for the given icon group. + */ + int defaultSize(KIcon::Group group) const; + + /** + * Query available sizes for a group. + * @param group The icon group. See KIcon::Group. + * @return a list of available sized for the given group + */ + QValueList querySizes(KIcon::Group group) const; + + /** + * Query available icons for a size and context. + * @param size the size of the icons + * @param context the context of the icons + * @return the list of icon names + */ + QStringList queryIcons(int size, KIcon::Context context = KIcon::Any) const; + + /** + * Query available icons for a context and preferred size. + * @param size the size of the icons + * @param context the context of the icons + * @return the list of icon names + */ + QStringList queryIconsByContext(int size, KIcon::Context context = KIcon::Any) const; + + + /** + * Lookup an icon in the theme. + * @param name The name of the icon, without extension. + * @param size The desired size of the icon. + * @param match The matching mode. KIcon::MatchExact returns an icon + * only if matches exactly. KIcon::MatchBest returns the best matching + * icon. + * @return A KIcon class that describes the icon. If an icon is found, + * @see KIcon::isValid will return true, and false otherwise. + */ + KIcon iconPath(const QString& name, int size, KIcon::MatchType match) const; + + /** + * List all icon themes installed on the system, global and local. + * @return the list of all icon themes + */ + static QStringList list(); + + /** + * Returns the current icon theme. + * @return the name of the current theme + */ + static QString current(); + + /** + * Reconfigure the theme. + */ + static void reconfigure(); + + /** + * Returns the default icon theme. + * @return the name of the default theme name + * @since 3.1 + */ + static QString defaultThemeName(); + +private: + int mDefSize[8]; + QValueList mSizes[8]; + + int mDepth; + QString mDir, mName, mDesc; + QStringList mInherits; +// QPtrList mDirs; +// KIconThemePrivate *d; + + static QString *_theme; + static QStringList *_theme_list; +}; + +#endif diff --git a/extra/kde343/kkeyserver.h b/extra/kde343/kkeyserver.h new file mode 100644 index 0000000..ef673ea --- /dev/null +++ b/extra/kde343/kkeyserver.h @@ -0,0 +1,29 @@ +/* + Copyright (C) 2001 Ellis Whitehead + + Win32 port: + Copyright (C) 2004 Jaroslaw Staniek + + This library 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. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef _KKEYSERVER_H +#define _KKEYSERVER_H + +//FOR COMPATIBILITY +#include "kkeyserver_x11.h" + +#endif // !_KKEYSERVER_H diff --git a/extra/kde343/kkeyserver_x11.h b/extra/kde343/kkeyserver_x11.h new file mode 100644 index 0000000..65d4e0c --- /dev/null +++ b/extra/kde343/kkeyserver_x11.h @@ -0,0 +1,469 @@ +/* + Copyright (C) 2001 Ellis Whitehead + + Win32 port: + Copyright (C) 2004 Jaroslaw Staniek + + This library 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. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef _KKEYSERVER_X11_H +#define _KKEYSERVER_X11_H + +#include "kshortcut.h" +#include "kkeynative.h" + +/** + * A collection of functions for the conversion of key presses and + * their modifiers from the window system specific format + * to the generic format and vice-versa. + */ +namespace KKeyServer +{ + /** + * Supplement enum KKey::ModFlag + * @since 3.1 + */ + enum ExtraModFlag { MODE_SWITCH = 0x2000 }; + + /** + * Represents a key symbol. + * @see KKey + * @see KKeyServer + */ + struct KDECORE_EXPORT Sym + { + public: + /// the actual value of the symbol + uint m_sym; + + /// Creates a null symbol. + Sym() + { m_sym = 0; } + /** + * Creates asymbol with the given value. + * @param sym the value + */ + Sym( uint sym ) + { m_sym = sym; } + /** + * Creates a symbol from the given string description. + * @param s the description of the symbol + * @see toString() + */ + Sym( const QString& s ) + { init( s ); } + + /** + * Initializes the symbol with the given Qt key code. + * @param keyQt the qt key code + * @return true if successful, false otherwise + * @see Qt::Key + */ + bool initQt( int keyQt ); + + /** + * Initializes the key with the given string description. + * @param s the string description + * @return true if successful, false otherwise + * @see toString() + */ + bool init( const QString &s ); + + /** + * Returns the qt key code of the symbol. + * @return the qt key code + */ + int qt() const; + + /** + * @internal + */ + QString toStringInternal() const; + + /** + * Returns the string representation of the symbol. + * @return the string representation of the symbol + */ + QString toString() const; + + /** + * Returns the mods that are required for this symbol as + * ORed KKey::ModFlag's. For example, Break requires a + * Ctrl to be valid. + * @return the required KKey::ModFlag's + * @see KKey::ModFlag + */ + uint getModsRequired() const; + + /** + * TODO: please find out what this method does and document it + */ + uint getSymVariation() const; + + /** + * Casts the symbol to its integer representation. + */ + operator uint() const { return m_sym; } + + /** + * Overloaded operator to convert ints to Sym. + */ + Sym& operator =( uint sym ) { m_sym = sym; return *this; } + + private: + QString toString( bool bUserSpace ) const; + + static void capitalizeKeyname( QString& ); + }; + + /** + * Represents a key press. + * @see KKey + */ + struct KDECORE_EXPORT Key + { + /// Code for native Keys in Qt + enum { CODE_FOR_QT = 256 }; + + /// The code of the key + uint m_code; + + /// The modifiers of the key + uint m_mod; + + /// The symbol of the key + uint m_sym; + + /** + * Initializes the key with a KKey. + * @param key the key to get the data from + * @param bQt true to take the Qt keycode, false + * for the native key code + * @see Qt::Key + * @see KKeyNative + */ + bool init( const KKey& key, bool bQt ); + + /** + * Checks whether the key code is a native code. + * @return true if native code of the window system, + * false if it is a Qt keycode + * @see Qt::Key + * @see KKeyNative + */ + bool isNative() const { return m_code != CODE_FOR_QT; } + + /** + * Returns the code of the key. + * @return the code of the key + */ + uint code() const { return m_code; } + + /** + * Returns the modifiers of the key. + * @return the modifiers of the key + */ + uint mod() const { return m_mod; } + + /** + * Returns the symbol of the key. + * @return the symbol of the key + */ + uint sym() const { return m_sym; } + + /** + * Returns the qt key code. + * @return the qt key code + */ + int keyCodeQt() const { return (int) m_sym; } + + /** + * Sets the qt key code. + * @param keyQt the qt key code + */ + void setKeycodeQt( int keyQt ) + { m_code = CODE_FOR_QT; m_sym = keyQt; } + + /** + * Initializes this key with a KKeyNative. + * @return this key + */ + Key& operator =( const KKeyNative& key ); + + /** + * Compares this key with the given Key object. Returns a + * negative number if the given Key is larger, 0 if they + * are equal and a positive number this Key is larger. The + * returned value is the difference between the symbol, modifier + * or code, whatever is non-zero first. + * + * @param key the key to compare with this key + * @return a negative number if the given Key is larger, 0 if + * they are equal and a positive number this Key is larger + */ + int compare( const Key& key ) const; + + /** + * Compares the symbol, modifiers and code of both keys. + * @see compare() + */ + bool operator ==( const Key& b ) const + { return compare( b ) == 0; } + + /** + * Compares the symbol, modifiers and code of both keys. + * @see compare() + */ + bool operator <( const Key& b ) const + { return compare( b ) < 0; } + + /** + * Converts this Key to a KKey. + * @return the KKey + */ + KKey key() const; + }; + + /** + * TODO: please document this class + */ + struct KDECORE_EXPORT Variations + { + enum { MAX_VARIATIONS = 4 }; + + Key m_rgkey[MAX_VARIATIONS]; + uint m_nVariations; + + Variations() { m_nVariations = 0; } + + void init( const KKey&, bool bQt ); + + uint count() const { return m_nVariations; } + const Key& key( uint i ) const { return m_rgkey[i]; } + }; + + /// TODO: please document + KDECORE_EXPORT bool initializeMods(); + + /** + * Returns the equivalent X modifier mask of the given modifier flag. + * @param modFlag the generic flags to check + * @return the window system specific flags + */ + KDECORE_EXPORT uint modX( KKey::ModFlag modFlag ); + + /** + * Returns true if the current keyboard layout supports the Win key. + * Specifically, whether the Super or Meta keys are assigned to an X modifier. + * @return true if the keyboard has a Win key + * @see modXWin() + */ + KDECORE_EXPORT bool keyboardHasWinKey(); + + /** + * Returns the X11 Shift modifier mask/flag. + * @return the X11 Shift modifier mask/flag. + * @see accelModMaskX() + */ + KDECORE_EXPORT uint modXShift(); + + /** + * Returns the X11 Lock modifier mask/flag. + * @return the X11 Lock modifier mask/flag. + * @see accelModMaskX() + */ + KDECORE_EXPORT uint modXLock(); + + /** + * Returns the X11 Ctrl modifier mask/flag. + * @return the X11 Ctrl modifier mask/flag. + * @see accelModMaskX() + */ + KDECORE_EXPORT uint modXCtrl(); + + /** + * Returns the X11 Alt (Mod1) modifier mask/flag. + * @return the X11 Alt (Mod1) modifier mask/flag. + * @see accelModMaskX() + */ + KDECORE_EXPORT uint modXAlt(); + + /** + * Returns the X11 NumLock modifier mask/flag. + * @return the X11 NumLock modifier mask/flag. + * @see accelModMaskX() + */ + KDECORE_EXPORT uint modXNumLock(); + + /** + * Returns the X11 Win (Mod3) modifier mask/flag. + * @return the X11 Win (Mod3) modifier mask/flag. + * @see keyboardHasWinKey() + * @see accelModMaskX() + */ + KDECORE_EXPORT uint modXWin(); + + /** + * Returns the X11 ScrollLock modifier mask/flag. + * @return the X11 ScrollLock modifier mask/flag. + * @see accelModMaskX() + */ + KDECORE_EXPORT uint modXScrollLock(); + + /** + * Returns the X11 Mode_switch modifier mask/flag. + * @return the X11 Mode_switch modifier mask/flag. + * @see accelModMaskX() + * @since 3.5 + */ + KDECORE_EXPORT uint modXModeSwitch(); + + /** + * Returns bitwise OR'ed mask containing Shift, Ctrl, Alt, and + * Win (if available). + * @see modXShift() + * @see modXLock() + * @see modXCtrl() + * @see modXAlt() + * @see modXNumLock() + * @see modXWin() + * @see modXScrollLock() + */ + KDECORE_EXPORT uint accelModMaskX(); + + /** + * Extracts the symbol from the given Qt key and + * converts it to a symbol. + * @param keyQt the qt key code + * @param sym if successful, the symbol will be written here + * @return true if successful, false otherwise + * @see Qt::Key + * @see Sym + */ + KDECORE_EXPORT bool keyQtToSym( int keyQt, uint& sym ); + + /** + * Extracts the modifiers from the given Qt key and + * converts them in a mask of ORed KKey::ModFlag modifiers. + * @param keyQt the qt key code + * @param mod if successful, the modifiers will be written here + * @return true if successful, false otherwise + * @see Qt::Key + */ + KDECORE_EXPORT bool keyQtToMod( int keyQt, uint& mod ); + + /** + * Converts the given symbol to a Qt key code. + * @param sym the symbol + * @param keyQt if successful, the qt key code will be written here + * @return true if successful, false otherwise + * @see Qt::Key + * @see Sym + */ + KDECORE_EXPORT bool symToKeyQt( uint sym, int& keyQt ); + + /** + * Converts the mask of ORed KKey::ModFlag modifiers to + * a mask of ORed Qt key code modifiers. + * @param mod the mask of KKey::ModFlag modifiers + * @param modQt the mask of Qt key code modifiers will be written here, + * if successful + * @return true if successful, false otherwise + * @see Qt::Key + * @see KKey + */ + KDECORE_EXPORT bool modToModQt( uint mod, int& modQt ); + + /** + * Converts the mask of ORed KKey::ModFlag modifiers to + * a mask of ORed X11 modifiers. + * @param mod the mask of KKey::ModFlag modifiers + * @param modX the mask of X11 modifiers will be written here, + * if successful + * @return true if successful, false otherwise + * @see KKey + */ + KDECORE_EXPORT bool modToModX( uint mod, uint& modX ); + + /** + * Converts the mask of ORed X11 modifiers to + * a mask of ORed Qt key code modifiers. + * @param modX the mask of X11 modifiers + * @param modQt the mask of Qt key code modifiers will be written here + * if successful + * @return true if successful, false otherwise + * @see Qt::Key + */ + //wrapped for win32 + KDECORE_EXPORT bool modXToModQt( uint modX, int& modQt ); + + /** + * Converts the Qt-compatible button state to x11 modifier. + */ + KDECORE_EXPORT int qtButtonStateToMod( Qt::ButtonState s ); + + /** + * Converts the mask of ORed X11 modifiers to + * a mask of ORed KKey::ModFlag modifiers. + * @param modX the mask of X11 modifiers + * @param mod the mask of KKey::ModFlag modifiers will be written here, + * if successful + * @return true if successful, false otherwise + * @see KKey + */ + KDECORE_EXPORT bool modXToMod( uint modX, uint& mod ); + + /** + * Converts a X11 key code and a mask of ORed X11 modifiers + * into a X11 symbol. + * converts it to a symbol. + * @param codeX the X11 key code + * @param modX the mask of ORed X11 modifiers + * @param symX if successful, the X11 symbol will be written here + * @return true if successful, false otherwise + * @see Qt::Key + * @see Sym + */ + KDECORE_EXPORT bool codeXToSym( uchar codeX, uint modX, uint& symX ); + + /** + * @internal + */ + KDECORE_EXPORT QString modToStringInternal( uint mod ); + + /** + * Converts the mask of ORed KKey::ModFlag modifiers to a + * user-readable string. + * @param mod the mask of ORed KKey::ModFlag modifiers + * @return the user-readable string + */ + KDECORE_EXPORT QString modToStringUser( uint mod ); + + /** + * @internal + * Unimplemented? + */ + KDECORE_EXPORT bool stringToSymMod( const QString&, uint& sym, uint& mod ); + + /** + * @internal + * Unimplemented? + */ + KDECORE_EXPORT void keyQtToKeyX( uint keyCombQt, unsigned char *pKeyCodeX, uint *pKeySymX, uint *pKeyModX ); +} + +#endif // !_KKEYSERVER_X11_H diff --git a/extra/kde343/konsole_part.h b/extra/kde343/konsole_part.h new file mode 100644 index 0000000..a899374 --- /dev/null +++ b/extra/kde343/konsole_part.h @@ -0,0 +1,228 @@ +/* + This file is part of the KDE system + Copyright (C) 1999,2000 Boloni Laszlo + + 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. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. + */ + +#ifndef __KONSOLE_PART_H__ +#define __KONSOLE_PART_H__ + +#include +#include + + +#include + +#include + +//#include "schema.h" +//#include "session.h" + +class KInstance; +class konsoleBrowserExtension; +class QPushButton; +class QSpinBox; +class KPopupMenu; +class QCheckBox; +class KRootPixmap; +class KToggleAction; +class KSelectAction; + +namespace KParts { class GUIActivateEvent; } + +class konsoleFactory : public KParts::Factory +{ + Q_OBJECT +public: + konsoleFactory(); + virtual ~konsoleFactory(); + + virtual KParts::Part* createPartObject(QWidget *parentWidget = 0, const char *widgetName = 0, + QObject* parent = 0, const char* name = 0, + const char* classname = "KParts::Part", + const QStringList &args = QStringList()); + + static KInstance *instance(); + + private: + static KInstance *s_instance; + static KAboutData *s_aboutData; +}; + +////////////////////////////////////////////////////////////////////// + +class konsolePart: public KParts::ReadOnlyPart, public TerminalInterface +{ + Q_OBJECT + public: + konsolePart(QWidget *parentWidget, const char *widgetName, QObject * parent, const char *name, const char *classname = 0); + virtual ~konsolePart(); + +signals: + void processExited(); + void receivedData( const QString& s ); + protected: + virtual bool openURL( const KURL & url ); + virtual bool openFile() {return false;} // never used + virtual bool closeURL() {return true;} + virtual void guiActivateEvent( KParts::GUIActivateEvent * event ); + + protected slots: + void showShell(); + void slotProcessExited(); + void slotReceivedData( const QString& s ); + +// void doneSession(TESession*); + void sessionDestroyed(); +// void configureRequest(TEWidget*,int,int x,int y); + void updateTitle(); + void enableMasterModeConnections(); + + private slots: + void emitOpenURLRequest(const QString &url); + + void readProperties(); + void saveProperties(); + + void sendSignal(int n); + void closeCurrentSession(); + + void notifySize(int,int); + + void slotToggleFrame(); + void slotSelectScrollbar(); + void slotSelectFont(); + void schema_menu_check(); + void keytab_menu_activated(int item); + void updateSchemaMenu(); + void setSchema(int n); + void pixmap_menu_activated(int item); + void schema_menu_activated(int item); + void slotHistoryType(); + void slotSelectBell(); + void slotSelectLineSpacing(); + void slotBlinkingCursor(); + void slotWordSeps(); + void fontNotFound(); + void slotSetEncoding(); + void slotFontChanged(); + + private: + konsoleBrowserExtension *m_extension; + KURL currentURL; + + void makeGUI(); + void applySettingsToGUI(); + + void setFont(int fontno); +// void setSchema(ColorSchema* s); + void updateKeytabMenu(); + + bool doOpenStream( const QString& ); + bool doWriteStream( const QByteArray& ); + bool doCloseStream(); + + QWidget* parentWidget; +// TEWidget* te; +// TESession* se; +// ColorSchemaList* colors; + KRootPixmap* rootxpm; + + KToggleAction* blinkingCursor; + KToggleAction* showFrame; + + KSelectAction* selectBell; + KSelectAction* selectFont; + KSelectAction* selectLineSpacing; + KSelectAction* selectScrollbar; + KSelectAction* selectSetEncoding; + + KPopupMenu* m_keytab; + KPopupMenu* m_schema; + KPopupMenu* m_signals; + KPopupMenu* m_options; + KPopupMenu* m_popupMenu; + + QFont defaultFont; + + QString pmPath; // pixmap path + QString s_schema; + QString s_kconfigSchema; + QString s_word_seps; // characters that are considered part of a word + QString fontNotFound_par; + + bool b_framevis:1; + bool b_histEnabled:1; + + int curr_schema; // current schema no + int n_bell; + int n_font; + int n_keytab; + int n_render; + int n_scroll; + unsigned m_histSize; + bool m_runningShell; + bool m_streamEnabled; + int n_encoding; + +public: + // these are the implementations for the TermEmuInterface + // functions... + void startProgram( const QString& program, + const QStrList& args ); + void showShellInDir( const QString& dir ); + void sendInput( const QString& text ); +}; + +////////////////////////////////////////////////////////////////////// + +/*class HistoryTypeDialog : public KDialogBase +{ + Q_OBJECT +public: + HistoryTypeDialog(const HistoryType& histType, + unsigned int histSize, + QWidget *parent); + +public slots: + void slotDefault(); + void slotSetUnlimited(); + void slotHistEnable(bool); + + unsigned int nbLines() const; + bool isOn() const; + +protected: + QCheckBox* m_btnEnable; + QSpinBox* m_size; + QPushButton* m_setUnlimited; +};*/ + +////////////////////////////////////////////////////////////////////// + +class konsoleBrowserExtension : public KParts::BrowserExtension +{ + Q_OBJECT + friend class konsolePart; + public: + konsoleBrowserExtension(konsolePart *parent); + virtual ~konsoleBrowserExtension(); + + void emitOpenURLRequest(const KURL &url); +}; + +#endif diff --git a/extra/kde343/kpanelmenu.h b/extra/kde343/kpanelmenu.h new file mode 100644 index 0000000..61ec7f1 --- /dev/null +++ b/extra/kde343/kpanelmenu.h @@ -0,0 +1,182 @@ +/***************************************************************** + +Copyright (c) 1996-2000 the kicker authors. See file AUTHORS. + (c) 2001 Michael Goffioul + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN +AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +******************************************************************/ + +#ifndef __KPANELMENU_H__ +#define __KPANELMENU_H__ + +#include +#include +#include + +class KPanelMenuPrivate; + +/** + * @short Base class to build dynamically loaded menu entries for the K-menu, or the panel. + * + * This class allows to build menu entries that will be dynamically added either to + * the K-menu, or to the panel as a normal button. These dynamic menus are located + * in shared libraries that will be loaded at runtime by Kicker (the %KDE panel). + * + * To build such a menu, you have to inherit this class and implement the pure virtual + * functions #initialize() and slotExec(). You also have to provide a factory + * object in your library, see KLibFactory. This factory is only used to construct + * the menu object. + * + * Finally, you also have to provide a desktop file describing your dynamic menu. The + * relevant entries are: Name, Comment, Icon and X-KDE-Library (which contains the + * library name without any extension). This desktop file has to be installed in + * $KDEDIR/share/apps/kicker/menuext/. + * + * @author The kicker maintainers, Michael Goffioul + */ +class KDEUI_EXPORT KPanelMenu : public KPopupMenu +{ + Q_OBJECT + +public: + /** + * Construct a KPanelMenu object. This is the normal constructor to use when + * building extrernal menu entries. + */ + KPanelMenu(QWidget *parent=0, const char *name=0); + /** + * Constructor used internally by Kicker. You don't really want to use it. + * @param startDir a directory to associate with this menu + * @param parent parent object + * @param name name of the object + * @see path(), setPath() + */ + KPanelMenu(const QString &startDir, QWidget *parent=0, const char *name=0); + /** + * Destructor. + */ + virtual ~KPanelMenu(); + + /** + * Get the directory path associated with this menu, or QString::null if + * there's no such associated path. + * @return the associated directory path + * @see setPath() + */ + const QString& path() const; + /** + * Set a directory path to be associated with this menu. + * @param p the directory path + * @see path() + */ + void setPath(const QString &p); + /** + * Tell if the menu has been initialized, that is it already contains items. + * This is useful when you need to know if you have to clear the menu, or to + * fill it. + * @return the initial state + * @see setInitialized(), initialize() + */ + bool initialized() const; + /** + * Set the initial state. Set it to true when you menu is filled with the items + * you want. + * @param on the initial state + * @see initialized(), initialize() + */ + void setInitialized(bool on); + + /** + * Disable the automatic clearing of the menu. Kicker uses a cache system for + * its menus. After a specific configurable delay, the menu will be cleared. + * Use this function if you want to disable kicker's cache system, and avoid + * the clearing of your menu. + */ + void disableAutoClear(); + +public slots: + /** + * Reinitialize the menu: the menu is first cleared, the initial state is set + * to false, and finally #initialize() is called. Use this if you want to + * refill your menu immediately. + */ + void reinitialize(); + /** + * Deinitialize the menu: the menu is cleared and the initialized state is set to + * false. #initialize() is NOT called. It will be called before the menu is + * next shown, however. Use this slot if you want a delayed reinitialization. + * @since 3.1 + */ + void deinitialize(); + +protected slots: + /** + * This slot is called just before the menu is shown. This allows your menu + * to update itself if needed. However you should instead re-implement + * #initialize to provide this feature. This function is responsible for + * the cache system handling, so if you re-implement it, you should call + * the base function also. Calls #initialize(). + * @see disableAutoClear() + */ + virtual void slotAboutToShow(); + /** + * This is slot is called when an item from the menu has been selected. Your + * applet is then supposed to perform some action. You must re-implement this + * function. + * @param id the ID associated with the selected item + */ + virtual void slotExec(int id) = 0; + /** + * This slots is called to initialize the menu. It is called automatically by + * slotAboutToShow(). By re-implementing this functions, you can reconstruct + * the menu before it is being shown. At the end of this function, you should + * call setInitialize() with true to tell the system that the menu is OK. + * You applet must re-implement this function. + * @see slotAboutToShow(), initialized(), setInitialized() + */ + virtual void initialize() = 0; + /** + * Clears the menu, and update the initial state accordingly. + * @see initialized() + */ + void slotClear(); + +protected: + /** + * Re-implemented for internal reasons. + */ + virtual void hideEvent(QHideEvent *ev); + /** + * For internal use only. Used by constructors. + */ + void init(const QString& path = QString::null); + +protected: + virtual void virtual_hook( int id, void* data ); +private: + void internalInitialize(); + KPanelMenuPrivate *d; +}; + +#define K_EXPORT_KICKER_MENUEXT( libname, classname ) \ + K_EXPORT_COMPONENT_FACTORY( \ + kickermenu_##libname, \ + KGenericFactory("libkickermenu_" #libname) ) + +#endif diff --git a/extra/kde343/krecentdirs.h b/extra/kde343/krecentdirs.h new file mode 100644 index 0000000..078efcc --- /dev/null +++ b/extra/kde343/krecentdirs.h @@ -0,0 +1,70 @@ +/* -*- c++ -*- + * Copyright (C)2000 Waldo Bastian + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * + */ +#ifndef __KRECENTDIRS_H +#define __KRECENTDIRS_H + +#include + +#include + +/** + * The goal of this class is to make sure that, when the user needs to + * specify a file via the file selection dialog, this dialog will start + * in the directory most likely to contain the desired files. + * + * This works as follows: Each time the file selection dialog is + * shown, the programmer can specify a "file-class". The file-dialog will + * then start with the directory associated with this file-class. When + * the dialog closes, the directory currently shown in the file-dialog + * will be associated with the file-class. + * + * A file-class can either start with ':' or with '::'. If it starts with + * a single ':' the file-class is specific to the current application. + * If the file-class starts with '::' it is global to all applications. + */ +class KIO_EXPORT KRecentDirs +{ +public: + /** + * Returns a list of directories associated with this file-class. + * The most recently used directory is at the front of the list. + */ + static QStringList list(const QString &fileClass); + + /** + * Returns the most recently used directory accociated with this file-class. + */ + static QString dir(const QString &fileClass); + + /** + * Associates @p directory with @p fileClass + */ + static void add(const QString &fileClass, const QString &directory); +}; + +#endif diff --git a/extra/kde343/ksharedptr.h b/extra/kde343/ksharedptr.h new file mode 100644 index 0000000..ada0841 --- /dev/null +++ b/extra/kde343/ksharedptr.h @@ -0,0 +1,175 @@ +/* This file is part of the KDE libraries + Copyright (c) 1999 Waldo Bastian + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License version 2 as published by the Free Software Foundation. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ +#ifndef KSharedPTR_H +#define KSharedPTR_H + +#include "kdelibs_export.h" + +/** + * Reference counting for shared objects. If you derive your object + * from this class, then you may use it in conjunction with + * KSharedPtr to control the lifetime of your object. + * + * Specifically, all classes that derive from KShared have an internal + * counter keeping track of how many other objects have a reference to + * their object. If used with KSharedPtr, then your object will + * not be deleted until all references to the object have been + * released. + * + * You should probably not ever use any of the methods in this class + * directly -- let the KSharedPtr take care of that. Just derive + * your class from KShared and forget about it. + * + * @author Waldo Bastian + */ +class KDECORE_EXPORT KShared { +public: + /** + * Standard constructor. This will initialize the reference count + * on this object to 0. + */ + KShared() : count(0) { } + + /** + * Copy constructor. This will @em not actually copy the objects + * but it will initialize the reference count on this object to 0. + */ + KShared( const KShared & ) : count(0) { } + + /** + * Overloaded assignment operator. + */ + KShared &operator=(const KShared & ) { return *this; } + + /** + * Increases the reference count by one. + */ + void _KShared_ref() const { count++; } + + /** + * Releases a reference (decreases the reference count by one). If + * the count goes to 0, this object will delete itself. + */ + void _KShared_unref() const { if (!--count) delete this; } + + /** + * Return the current number of references held. + * + * @return Number of references + */ + int _KShared_count() const { return count; } + +protected: + virtual ~KShared() { } +private: + mutable int count; +}; + +/** + * Can be used to control the lifetime of an object that has derived + * KShared. As long a someone holds a KSharedPtr on some KShared + * object it won't become deleted but is deleted once its reference + * count is 0. This struct emulates C++ pointers virtually perfectly. + * So just use it like a simple C++ pointer. + * + * KShared and KSharedPtr are preferred over QShared / QSharedPtr + * since they are more safe. + * + * WARNING: Please note that this class template provides an implicit + * conversion to T*. Do *not* change this pointer or the pointee (don't + * call delete on it, for instance) behind KSharedPtr's back. + * + * @author Waldo Bastian + */ +template< class T > +class KSharedPtr +{ +public: +/** + * Creates a null pointer. + */ + KSharedPtr() + : ptr(0) { } + /** + * Creates a new pointer. + * @param t the pointer + */ + KSharedPtr( T* t ) + : ptr(t) { if ( ptr ) ptr->_KShared_ref(); } + + /** + * Copies a pointer. + * @param p the pointer to copy + */ + KSharedPtr( const KSharedPtr& p ) + : ptr(p.ptr) { if ( ptr ) ptr->_KShared_ref(); } + + /** + * Unreferences the object that this pointer points to. If it was + * the last reference, the object will be deleted. + */ + ~KSharedPtr() { if ( ptr ) ptr->_KShared_unref(); } + + KSharedPtr& operator= ( const KSharedPtr& p ) { + if ( ptr == p.ptr ) return *this; + if ( ptr ) ptr->_KShared_unref(); + ptr = p.ptr; + if ( ptr ) ptr->_KShared_ref(); + return *this; + } + KSharedPtr& operator= ( T* p ) { + if ( ptr == p ) return *this; + if ( ptr ) ptr->_KShared_unref(); + ptr = p; + if ( ptr ) ptr->_KShared_ref(); + return *this; + } + bool operator== ( const KSharedPtr& p ) const { return ( ptr == p.ptr ); } + bool operator!= ( const KSharedPtr& p ) const { return ( ptr != p.ptr ); } + bool operator== ( const T* p ) const { return ( ptr == p ); } + bool operator!= ( const T* p ) const { return ( ptr != p ); } + bool operator!() const { return ( ptr == 0 ); } + operator T*() const { return ptr; } + + /** + * Returns the pointer. + * @return the pointer + */ + T* data() { return ptr; } + + /** + * Returns the pointer. + * @return the pointer + */ + const T* data() const { return ptr; } + + const T& operator*() const { return *ptr; } + T& operator*() { return *ptr; } + const T* operator->() const { return ptr; } + T* operator->() { return ptr; } + + /** + * Returns the number of references. + * @return the number of references + */ + int count() const { return ptr->_KShared_count(); } // for debugging purposes +private: + T* ptr; +}; + +#endif diff --git a/extra/kde343/ksycocafactory.h b/extra/kde343/ksycocafactory.h new file mode 100644 index 0000000..65bb9d9 --- /dev/null +++ b/extra/kde343/ksycocafactory.h @@ -0,0 +1,143 @@ +/* This file is part of the KDE libraries + * Copyright (C) 1999 Waldo Bastian + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License version 2 as published by the Free Software Foundation; + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public License + * along with this library; see the file COPYING.LIB. If not, write to + * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA. + **/ + +#ifndef __ksycocafactory_h__ +#define __ksycocafactory_h__ + +#include "ksycocatype.h" +#include "ksycocaentry.h" + +#include +#include +class KSycoca; +class QStringList; +class QString; +class KSycocaDict; +class KSycocaResourceList; + +typedef QDict KSycocaEntryDict; + +/** + * @internal + * Base class for sycoca factories + */ +class KDECORE_EXPORT KSycocaFactory +{ +public: + virtual KSycocaFactoryId factoryId() const = 0; + +protected: // virtual class + /** + * Create a factory which can be used to lookup from/create a database + * (depending on KSycoca::isBuilding()) + */ + KSycocaFactory( KSycocaFactoryId factory_id ); + +public: + virtual ~KSycocaFactory(); + + /** + * @return the position of the factory in the sycoca file + */ + int offset() { return mOffset; } + + /** + * @return the dict, for special use by KBuildSycoca + */ + KSycocaEntryDict * entryDict() { return m_entryDict; } + + /** + * Construct an entry from a config file. + * To be implemented in the real factories. + */ + virtual KSycocaEntry *createEntry(const QString &file, const char *resource) = 0; + + /** + * Add an entry + */ + virtual void addEntry(KSycocaEntry *newEntry, const char *resource); + + /** + * Remove an entry + * Not very fast, use with care. O(N) + */ + void removeEntry(KSycocaEntry *newEntry); + + /** + * Read an entry from the database + */ + virtual KSycocaEntry *createEntry(int offset)=0; + + /** + * Get a list of all entries from the database. + */ + KSycocaEntry::List allEntries(); + + /** + * Saves all entries it maintains as well as index files + * for these entries to the stream 'str'. + * + * Also sets mOffset to the starting position. + * + * The stream is positioned at the end of the last index. + * + * Don't forget to call the parent first when you override + * this function. + */ + virtual void save(QDataStream &str); + + /** + * Writes out a header to the stream 'str'. + * The baseclass positions the stream correctly. + * + * Don't forget to call the parent first when you override + * this function. + */ + virtual void saveHeader(QDataStream &str); + + /** + * @return the resources for which this factory is responsible. + */ + virtual const KSycocaResourceList * resourceList() const { return m_resourceList; } + +private: + int mOffset; + +protected: + int m_sycocaDictOffset; + int m_beginEntryOffset; + int m_endEntryOffset; + QDataStream *m_str; + + KSycocaResourceList *m_resourceList; + KSycocaEntryDict *m_entryDict; + KSycocaDict *m_sycocaDict; +protected: + virtual void virtual_hook( int id, void* data ); +}; + +/** This, instead of a typedef, allows to declare "class ..." in header files + * @internal + */ +class KDECORE_EXPORT KSycocaFactoryList : public QPtrList +{ +public: + KSycocaFactoryList() { } +}; + +#endif diff --git a/extra/kde343/ktoolbarbutton.h b/extra/kde343/ktoolbarbutton.h new file mode 100644 index 0000000..f5e3be3 --- /dev/null +++ b/extra/kde343/ktoolbarbutton.h @@ -0,0 +1,329 @@ +/* This file is part of the KDE libraries + Copyright (C) 1997, 1998 Stephan Kulow (coolo@kde.org) + (C) 1997, 1998 Sven Radej (radej@kde.org) + (C) 1997, 1998 Mark Donohoe (donohoe@kde.org) + (C) 1997, 1998 Matthias Ettrich (ettrich@kde.org) + (C) 2000 Kurt Granroth (granroth@kde.org) + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License version 2 as published by the Free Software Foundation. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef _KTOOLBARBUTTON_H +#define _KTOOLBARBUTTON_H + +#include +#include +#include +#include +#include + +class KToolBar; +class KToolBarButtonPrivate; +class KInstance; +class QEvent; +class QPopupMenu; +class QPainter; + +/** + * A toolbar button. This is used internally by KToolBar, use the + * KToolBar methods instead. + * @internal + */ +class KDEUI_EXPORT KToolBarButton : public QToolButton +{ + Q_OBJECT + +public: + /** + * Construct a button with an icon loaded by the button itself. + * This will trust the button to load the correct icon with the + * correct size. + * + * @param icon Name of icon to load (may be absolute or relative) + * @param id Id of this button + * @param parent This button's parent + * @param name This button's internal name + * @param txt This button's text (in a tooltip or otherwise) + * @param _instance the instance to use for this button + */ + KToolBarButton(const QString& icon, int id, QWidget *parent, + const char *name=0L, const QString &txt=QString::null, + KInstance *_instance = KGlobal::instance()); + + /** + * Construct a button with an existing pixmap. It is not + * recommended that you use this as the internal icon loading code + * will almost always get it "right". + * + * @param pixmap Name of icon to load (may be absolute or relative) + * @param id Id of this button + * @param parent This button's parent + * @param name This button's internal name + * @param txt This button's text (in a tooltip or otherwise) + */ + KToolBarButton(const QPixmap& pixmap, int id, QWidget *parent, + const char *name=0L, const QString &txt=QString::null); + + /** + * Construct a separator button + * + * @param parent This button's parent + * @param name This button's internal name + */ + KToolBarButton(QWidget *parent=0L, const char *name=0L); + + /** + * Standard destructor + */ + ~KToolBarButton(); + +#ifndef KDE_NO_COMPAT + /** + * @deprecated + * Set the pixmap directly for this button. This pixmap should be + * the active one... the dimmed and disabled pixmaps are constructed + * based on this one. However, don't use this function unless you + * are positive that you don't want to use setIcon. + * + * @param pixmap The active pixmap + */ + // this one is from QButton, so #ifdef-ing it out doesn't break BC + virtual void setPixmap(const QPixmap &pixmap) KDE_DEPRECATED; + + /** + * @deprecated + * Force the button to use this pixmap as the default one rather + * then generating it using effects. + * + * @param pixmap The pixmap to use as the default (normal) one + */ + void setDefaultPixmap(const QPixmap& pixmap) KDE_DEPRECATED; + + /** + * @deprecated + * Force the button to use this pixmap when disabled one rather then + * generating it using effects. + * + * @param pixmap The pixmap to use when disabled + */ + void setDisabledPixmap(const QPixmap& pixmap) KDE_DEPRECATED; +#endif + + /** + * Set the text for this button. The text will be either used as a + * tooltip (IconOnly) or will be along side the icon + * + * @param text The button (or tooltip) text + */ + virtual void setText(const QString &text); + + /** + * Set the icon for this button. The icon will be loaded internally + * with the correct size. This function is preferred over setIconSet + * + * @param icon The name of the icon + */ + virtual void setIcon(const QString &icon); + + /// @since 3.1 + virtual void setIcon( const QPixmap &pixmap ) + { QToolButton::setIcon( pixmap ); } + + /** + * Set the pixmaps for this toolbar button from a QIconSet. + * If you call this you don't need to call any of the other methods + * that set icons or pixmaps. + * @param iconset The iconset to use + */ + virtual void setIconSet( const QIconSet &iconset ); + +#ifndef KDE_NO_COMPAT + /** + * @deprecated + * Set the active icon for this button. The pixmap itself is loaded + * internally based on the icon size... .. the disabled and default + * pixmaps, however will only be constructed if generate is + * true. This function is preferred over setPixmap + * + * @param icon The name of the active icon + * @param generate If true, then the other icons are automagically + * generated from this one + */ + KDE_DEPRECATED void setIcon(const QString &icon, bool generate ) { Q_UNUSED(generate); setIcon( icon ); } + + /** + * @deprecated + * Force the button to use this icon as the default one rather + * then generating it using effects. + * + * @param icon The icon to use as the default (normal) one + */ + void setDefaultIcon(const QString& icon) KDE_DEPRECATED; + + /** + * @deprecated + * Force the button to use this icon when disabled one rather then + * generating it using effects. + * + * @param icon The icon to use when disabled + */ + void setDisabledIcon(const QString& icon) KDE_DEPRECATED; +#endif + + /** + * Turn this button on or off + * + * @param flag true or false + */ + void on(bool flag = true); + + /** + * Toggle this button + */ + void toggle(); + + /** + * Turn this button into a toggle button or disable the toggle + * aspects of it. This does not toggle the button itself. + * Use toggle() for that. + * + * @param toggle true or false + */ + void setToggle(bool toggle = true); + + /** + * Return a pointer to this button's popup menu (if it exists) + */ + QPopupMenu *popup(); + + /** + * Returns the button's id. + * @since 3.2 + */ + int id() const; + + /** + * Give this button a popup menu. There will not be a delay when + * you press the button. Use setDelayedPopup if you want that + * behavior. + * + * @param p The new popup menu + * @param unused Has no effect - ignore it. + */ + void setPopup (QPopupMenu *p, bool unused = false); + + /** + * Gives this button a delayed popup menu. + * + * This function allows you to add a delayed popup menu to the button. + * The popup menu is then only displayed when the button is pressed and + * held down for about half a second. + * + * @param p the new popup menu + * @param unused Has no effect - ignore it. + */ + void setDelayedPopup(QPopupMenu *p, bool unused = false); + + /** + * Turn this button into a radio button + * + * @param f true or false + */ + void setRadio(bool f = true); + + /** + * Toolbar buttons naturally will assume the global styles + * concerning icons, icons sizes, etc. You can use this function to + * explicitly turn this off, if you like. + * + * @param no_style Will disable styles if true + */ + void setNoStyle(bool no_style = true); + +signals: + /** + * Emitted when the toolbar button is clicked (with LMB or MMB) + */ + void clicked(int); + /** + * Emitted when the toolbar button is clicked (with any mouse button) + * @param state makes it possible to find out which button was pressed, + * and whether any keyboard modifiers were held. + * @since 3.4 + */ + void buttonClicked(int, Qt::ButtonState state); + void doubleClicked(int); + void pressed(int); + void released(int); + void toggled(int); + void highlighted(int, bool); + +public slots: + /** + * This slot should be called whenever the toolbar mode has + * potentially changed. This includes such events as text changing, + * orientation changing, etc. + */ + void modeChange(); + virtual void setTextLabel(const QString&, bool tipToo); + +protected: + void paletteChange(const QPalette &); + void leaveEvent(QEvent *e); + void enterEvent(QEvent *e); + void drawButton(QPainter *p); + bool eventFilter (QObject *o, QEvent *e); + /// @since 3.4 + void mousePressEvent( QMouseEvent * ); + /// @since 3.4 + void mouseReleaseEvent( QMouseEvent * ); + void showMenu(); + QSize sizeHint() const; + QSize minimumSizeHint() const; + QSize minimumSize() const; + + /// @since 3.1 + bool isRaised() const; + /// @since 3.1 + bool isActive() const; + /// @since 3.1 + int iconTextMode() const; + +protected slots: + void slotClicked(); + void slotPressed(); + void slotReleased(); + void slotToggled(); + void slotDelayTimeout(); + +protected: + virtual void virtual_hook( int id, void* data ); +private: + KToolBarButtonPrivate *d; +}; + +/** +* List of KToolBarButton objects. +* @internal +* @version $Id: ktoolbarbutton.h 372745 2004-12-22 14:08:36Z dfaure $ +*/ +class KDEUI_EXPORT KToolBarButtonList : public QIntDict +{ +public: + KToolBarButtonList(); + ~KToolBarButtonList() {} +}; + +#endif diff --git a/extra/kde343/kurifilter.h b/extra/kde343/kurifilter.h new file mode 100644 index 0000000..21ad4ed --- /dev/null +++ b/extra/kde343/kurifilter.h @@ -0,0 +1,647 @@ +/* + * This file is part of the KDE libraries + * Copyright (C) 2000-2001,2003 Dawit Alemayehu + * + * Original author + * Copyright (C) 2000 Yves Arrouye + * + * + * This library 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. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public License + * along with this library; see the file COPYING.LIB. If not, write to + * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA. + **/ + +#ifndef __kurifilter_h__ +#define __kurifilter_h__ + +#include +#include +#include + +#include + +#ifdef Q_OS_WIN +#undef ERROR +#endif + +class KURIFilterPrivate; +class KURIFilterDataPrivate; + +class KCModule; + +/** +* A basic message object used for exchanging filtering +* information between the filter plugins and the application +* requesting the filtering service. +* +* Use this object if you require a more detailed information +* about the URI you want to filter. Any application can create +* an instance of this class and send it to KURIFilter to +* have the plugins fill out all possible information about the +* URI. +* +* \b Example +* +* \code +* QString text = "kde.org"; +* KURIFilterData d = text; +* bool filtered = KURIFilter::self()->filter( d ); +* cout << "URL: " << text.latin1() << endl +* << "Filtered URL: " << d.uri().url().latin1() << endl +* << "URI Type: " << d.uriType() << endl +* << "Was Filtered: " << filtered << endl; +* \endcode +* +* The above code should yield the following output: +* \code +* URI: kde.org +* Filtered URI: http://kde.org +* URI Type: 0 <== means NET_PROTOCOL +* Was Filtered: 1 <== means the URL was successfully filtered +* \endcode +* +* @short A message object for exchanging filtering URI info. +* @author Dawit Alemayehu +*/ + +class KIO_EXPORT KURIFilterData +{ +friend class KURIFilterPlugin; + +public: + /** + * Describes the type of the URI that was filtered. + * Here is a brief description of the types: + * + * @li NET_PROTOCOL - Any network protocol: http, ftp, nttp, pop3, etc... + * @li LOCAL_FILE - A local file whose executable flag is not set + * @li LOCAL_DIR - A local directory + * @li EXECUTABLE - A local file whose executable flag is set + * @li HELP - A man or info page + * @li SHELL - A shell executable (ex: echo "Test..." >> ~/testfile) + * @li BLOCKED - A URI that should be blocked/filtered (ex: ad filtering) + * @li ERROR - An incorrect URI (ex: "~johndoe" when user johndoe + * does not exist in that system ) + * @li UNKNOWN - A URI that is not identified. Default value when + * a KURIFilterData is first created. + */ + enum URITypes { NET_PROTOCOL=0, LOCAL_FILE, LOCAL_DIR, EXECUTABLE, HELP, SHELL, BLOCKED, ERROR, UNKNOWN }; + + /** + * Default constructor. + * + * Creates a URIFilterData object. + */ + KURIFilterData() { init(); } + + /** + * Creates a URIFilterData object from the given URL. + * + * @param url is the URL to be filtered. + */ + KURIFilterData( const KURL& url ) { init( url); } + + /** + * Creates a URIFilterData object from the given string. + * + * @param url is the string to be filtered. + */ + KURIFilterData( const QString& url ) { init( url ); } + + /** + * Copy constructor. + * + * Creates a URIFilterData object from another + * URI filter data object. + * + * @param data the uri filter data to be copied. + */ + KURIFilterData( const KURIFilterData& data); + + /** + * Destructor. + */ + ~KURIFilterData(); + + /** + * This method has been deprecated and will always return + * true. You should instead use the result from the + * KURIFilter::filterURI() calls. + * + * @deprecated + */ + KDE_DEPRECATED bool hasBeenFiltered() const { return true; } + + /** + * Returns the filtered or the original URL. + * + * This function returns the filtered url if one + * of the plugins successfully filtered the original + * URL. Otherwise, it returns the original URL. + * See hasBeenFiltered() and + * + * @return the filtered or original url. + */ + KURL uri() const { return m_pURI; } + + /** + * Returns an error message. + * + * This functions returns the error message set + * by the plugin whenever the uri type is set to + * KURIFilterData::ERROR. Otherwise, it returns + * a QString::null. + * + * @return the error message or a NULL when there is none. + */ + QString errorMsg() const { return m_strErrMsg; } + + /** + * Returns the URI type. + * + * This method always returns KURIFilterData::UNKNOWN + * if the given URL was not filtered. + * @return the type of the URI + */ + URITypes uriType() const { return m_iType; } + + /** + * Sets the URL to be filtered. + * + * Use this function to set the string to be + * filtered when you construct an empty filter + * object. + * + * @param url the string to be filtered. + */ + void setData( const QString& url ) { init( url ); } + + /** + * Same as above except the argument is a URL. + * + * Use this function to set the string to be + * filtered when you construct an empty filter + * object. + * + * @param url the URL to be filtered. + */ + void setData( const KURL& url ) { init( url ); } + + /** + * Sets the absolute path to be used whenever the supplied + * data is a relative local URL. + * + * NOTE: This function should only be used for local resources, + * i.e. the "file:/" protocol. It is useful for specifying the + * absolute path in cases where the actual URL might be relative. + * meta object. If deriving the path from a KURL, make sure you + * set the argument for this function to the result of calling + * path () instead of url (). + * + * @param abs_path the abolute path to the local resource. + * @return true if absolute path is successfully set. Otherwise, false. + */ + bool setAbsolutePath( const QString& abs_path ); + + /** + * Returns the absolute path if one has already been set. + * @return the absolute path, or QString::null + * @see hasAbsolutePath() + */ + QString absolutePath() const; + + /** + * Checks whether the supplied data had an absolute path. + * @return true if the supplied data has an absolute path + * @see absolutePath() + */ + bool hasAbsolutePath() const; + + /** + * Returns the command line options and arguments for a + * local resource when present. + * + * @return options and arguments when present, otherwise QString::null + */ + QString argsAndOptions() const; + + /** + * Checks whether the current data is a local resource with + * command line options and arguments. + * @return true if the current data has command line options and arguments + */ + bool hasArgsAndOptions() const; + + /** + * Returns the name of the icon that matches + * the current filtered URL. + * + * NOTE that this function will return a NULL + * string by default and when no associated icon + * is found. + * + * @return the name of the icon associated with the resource, + * or QString::null if not found + */ + QString iconName(); + + /** + * Check whether the provided uri is executable or not. + * + * Setting this to false ensures that typing the name of + * an executable does not start that application. This is + * useful in the location bar of a browser. The default + * value is true. + * + * @since 3.2 + */ + void setCheckForExecutables (bool check); + + /** + * @return true if the filters should attempt to check whether the + * supplied uri is an executable. False otherwise. + * + * @since 3.2 + */ + bool checkForExecutables() const { return m_bCheckForExecutables; } + + /** + * @return the string as typed by the user, before any URL processing is done + * @since 3.2 + */ + QString typedString() const; + + /** + * Overloaded assigenment operator. + * + * This function allows you to easily assign a KURL + * to a KURIFilterData object. + * + * @return an instance of a KURIFilterData object. + */ + KURIFilterData& operator=( const KURL& url ) { init( url ); return *this; } + + /** + * Overloaded assigenment operator. + * + * This function allows you to easily assign a QString + * to a KURIFilterData object. + * + * @return an instance of a KURIFilterData object. + */ + KURIFilterData& operator=( const QString& url ) { init( url ); return *this; } + +protected: + + /** + * Initializes the KURIFilterData on construction. + * @param url the URL to initialize the object with + */ + void init( const KURL& url); + + /** + * Initializes the KURIFilterData on construction. + * @param url the URL to initialize the object with + */ + void init( const QString& url = QString::null ); + +private: + bool m_bCheckForExecutables; + bool m_bChanged; + + QString m_strErrMsg; + QString m_strIconName; + + KURL m_pURI; + URITypes m_iType; + KURIFilterDataPrivate *d; +}; + + +/** + * Base class for URI filter plugins. + * + * This class applies a single filter to a URI. All plugins designed + * to provide URI filtering service should inherit from this abstract + * class and provide a concrete implementation. + * + * All inheriting classes need to implement the pure virtual function + * filterURI. + * + * @short Abstract class for URI filter plugins. + */ +class KIO_EXPORT KURIFilterPlugin : public QObject +{ + Q_OBJECT + +public: + + /** + * Constructs a filter plugin with a given name and + * priority. + * + * @param parent the parent object, or 0 for no parent + * @param name the name of the plugin, or 0 for no name + * @param pri the priority of the plugin. + */ + KURIFilterPlugin( QObject *parent = 0, const char *name = 0, double pri = 1.0 ); + + /** + * Returns the filter's name. + * + * @return A string naming the filter. + */ + virtual QString name() const { return m_strName; } + + /** + * Returns the filter's priority. + * + * Each filter has an assigned priority, a float from 0 to 1. Filters + * with the lowest priority are first given a chance to filter a URI. + * + * @return The priority of the filter. + */ + virtual double priority() const { return m_dblPriority; } + + /** + * Filters a URI. + * + * @param data the URI data to be filtered. + * @return A boolean indicating whether the URI has been changed. + */ + virtual bool filterURI( KURIFilterData& data ) const = 0; + + /** + * Creates a configuration module for the filter. + * + * It is the responsibility of the caller to delete the module + * once it is not needed anymore. + * + * @return A configuration module, 0 if the filter isn't configurable. + */ + virtual KCModule *configModule( QWidget*, const char* ) const { return 0; } + + /** + * Returns the name of the configuration module for the filter. + * + * @return the name of a configuration module or QString::null if none. + */ + virtual QString configName() const { return name(); } + +protected: + + /** + * Sets the the URL in @p data to @p uri. + */ + void setFilteredURI ( KURIFilterData& data, const KURL& uri ) const; + + /** + * Sets the error message in @p data to @p errormsg. + */ + void setErrorMsg ( KURIFilterData& data, const QString& errmsg ) const { + data.m_strErrMsg = errmsg; + } + + /** + * Sets the URI type in @p data to @p type. + */ + void setURIType ( KURIFilterData& data, KURIFilterData::URITypes type) const { + data.m_iType = type; + data.m_bChanged = true; + } + + /** + * Sets the arguments and options string in @p data + * to @p args if any were found during filterting. + */ + void setArguments( KURIFilterData& data, const QString& args ) const; + + QString m_strName; + double m_dblPriority; + +protected: + virtual void virtual_hook( int id, void* data ); +private: + class KURIFilterPluginPrivate *d; +}; + + +/** + * A list of filter plugins. + */ +class KIO_EXPORT KURIFilterPluginList : public QPtrList +{ +public: + virtual int compareItems(Item a, Item b) + { + double diff = ((KURIFilterPlugin *) a)->priority() - ((KURIFilterPlugin *) b)->priority(); + return diff < 0 ? -1 : (diff > 0 ? 1 : 0); + } + +private: + KURIFilterPrivate *d; + +}; + +/** + * Manages the filtering of URIs. + * + * The intention of this plugin class is to allow people to extend the + * functionality of KURL without modifying it directly. This way KURL will + * remain a generic parser capable of parsing any generic URL that adheres + * to specifications. + * + * The KURIFilter class applies a number of filters to a URI and returns the + * filtered version whenever possible. The filters are implemented using + * plugins to provide easy extensibility of the filtering mechanism. New + * filters can be added in the future by simply inheriting from + * KURIFilterPlugin and implementing the KURIFilterPlugin::filterURI + * method. + * + * Use of this plugin-manager class is straight forward. Since it is a + * singleton object, all you have to do is obtain an instance by doing + * @p KURIFilter::self() and use any of the public member functions to + * preform the filtering. + * + * \b Example + * + * To simply filter a given string: + * + * \code + * bool filtered = KURIFilter::self()->filterURI( "kde.org" ); + * \endcode + * + * You can alternatively use a KURL: + * + * \code + * KURL url = "kde.org"; + * bool filtered = KURIFilter::self()->filterURI( url ); + * \endcode + * + * If you have a constant string or a constant URL, simply invoke the + * corresponding function to obtain the filtered string or URL instead + * of a boolean flag: + * + * \code + * QString u = KURIFilter::self()->filteredURI( "kde.org" ); + * \endcode + * + * You can also restrict the filter(s) to be used by supplying + * the name of the filter(s) to use. By defualt all available + * filters will be used. To use specific filters, add the names + * of the filters you want to use to a QStringList and invoke + * the appropriate filtering function. The examples below show + * the use of specific filters. The first one uses a single + * filter called kshorturifilter while the second example uses + * multiple filters: + * + * \code + * QString text = "kde.org"; + * bool filtered = KURIFilter::self()->filterURI( text, "kshorturifilter" ); + * \endcode + * + * \code + * QStringList list; + * list << "kshorturifilter" << "localdomainfilter"; + * bool filtered = KURIFilter::self()->filterURI( text, list ); + * \endcode + * + * KURIFilter also allows richer data exchange through a simple + * meta-object called @p KURIFilterData. Using this meta-object + * you can find out more information about the URL you want to + * filter. See KURIFilterData for examples and details. + * + * @short Filters a given URL into its proper format whenever possible. + */ + +class KIO_EXPORT KURIFilter +{ +public: + /** + * Destructor + */ + ~KURIFilter (); + + /** + * Returns an instance of KURIFilter. + */ + static KURIFilter* self(); + + /** + * Filters the URI given by the object URIFilterData. + * + * The given URL is filtered based on the specified list of filters. + * If the list is empty all available filters would be used. + * + * @param data object that contains the URI to be filtered. + * @param filters specify the list of filters to be used. + * + * @return a boolean indicating whether the URI has been changed + */ + bool filterURI( KURIFilterData& data, const QStringList& filters = QStringList() ); + + /** + * Filters the URI given by the URL. + * + * The given URL is filtered based on the specified list of filters. + * If the list is empty all available filters would be used. + * + * @param uri the URI to filter. + * @param filters specify the list of filters to be used. + * + * @return a boolean indicating whether the URI has been changed + */ + bool filterURI( KURL &uri, const QStringList& filters = QStringList() ); + + /** + * Filters a string representing a URI. + * + * The given URL is filtered based on the specified list of filters. + * If the list is empty all available filters would be used. + * + * @param uri The URI to filter. + * @param filters specify the list of filters to be used. + * + * @return a boolean indicating whether the URI has been changed + */ + bool filterURI( QString &uri, const QStringList& filters = QStringList() ); + + /** + * Returns the filtered URI. + * + * The given URL is filtered based on the specified list of filters. + * If the list is empty all available filters would be used. + * + * @param uri The URI to filter. + * @param filters specify the list of filters to be used. + * + * @return the filtered URI or null if it cannot be filtered + */ + KURL filteredURI( const KURL &uri, const QStringList& filters = QStringList() ); + + /** + * Return a filtered string representation of a URI. + * + * The given URL is filtered based on the specified list of filters. + * If the list is empty all available filters would be used. + * + * @param uri the URI to filter. + * @param filters specify the list of filters to be used. + * + * @return the filtered URI or null if it cannot be filtered + */ + QString filteredURI( const QString &uri, const QStringList& filters = QStringList() ); + + /** + * Return an iterator to iterate over all loaded + * plugins. + * + * @return a plugin iterator. + */ + QPtrListIterator pluginsIterator() const; + + /** + * Return a list of the names of all loaded plugins. + * + * @return a QStringList of plugin names + * @since 3.1 + */ + QStringList pluginNames() const; + +protected: + + /** + * A protected constructor. + * + * This constructor creates a KURIFilter and + * initializes all plugins it can find by invoking + * loadPlugins. + */ + KURIFilter(); + + /** + * Loads all allowed plugins. + * + * This function loads all filters that have not + * been disbled. + */ + void loadPlugins(); + +private: + static KURIFilter *m_self; + KURIFilterPluginList m_lstPlugins; + KURIFilterPrivate *d; +}; + +#endif diff --git a/extra/kde343/selectdialog.h b/extra/kde343/selectdialog.h new file mode 100644 index 0000000..20b899a --- /dev/null +++ b/extra/kde343/selectdialog.h @@ -0,0 +1,87 @@ +/* + This file is part of libkresources. + + Copyright (c) 2002 Tobias Koenig + Copyright (c) 2002 Jan-Pascal van Best + Copyright (c) 2003 Cornelius Schumacher + + This library 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. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef KRESOURCES_SELECTDIALOG_H +#define KRESOURCES_SELECTDIALOG_H + +#include +#include +#include + +#include + +class KListBox; + +namespace KRES { + +class Resource; + +/** + * Dialog for selecting a resource. + * + * Example: + * + * \code + * + * QPtrList list = ... // can be retrived from KRES::Manager (e.g. KABC::AddressBook) + * + * KABC::Resource *res = KABC::SelectDialog::getResource( list, parentWdg ); + * if ( !res ) { + * // no resource selected + * } else { + * // do something with resource + * } + * \endcode + */ +class KRESOURCES_EXPORT SelectDialog +{ + public: + /** + * Constructor. + * @param list The list of available resources + * @param parent The parent widget + * @param name The name of the dialog + */ + SelectDialog( QPtrList list, QWidget *parent = 0, + const char *name = 0); + + /** + * Returns selected resource. + */ + Resource *resource(); + + /** + * Opens a dialog showing the available resources and returns the resource the + * user has selected. Returns 0, if the dialog was canceled. + */ + static Resource *getResource( QPtrList list, QWidget *parent = 0 ); + + private: + KListBox *mResourceId; + + QMap mResourceMap; +}; + +} + +#endif diff --git a/extra/kde350/configwidget.h b/extra/kde350/configwidget.h new file mode 100644 index 0000000..ae76397 --- /dev/null +++ b/extra/kde350/configwidget.h @@ -0,0 +1,58 @@ +/* + This file is part of libkresources. + Copyright (c) 2002 Tobias Koenig + Copyright (c) 2002 Jan-Pascal van Best + + This library 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. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef KRESOURCES_CONFIGWIDGET_H +#define KRESOURCES_CONFIGWIDGET_H + +#include "resource.h" + +#include + +#include + +namespace KRES { + +class KRESOURCES_EXPORT ConfigWidget : public QWidget +{ + Q_OBJECT + public: + ConfigWidget( QWidget *parent = 0, const char *name = 0 ); + + /** + Sets the widget to 'edit' mode. Reimplement this method if you are + interested in the mode change (to disable some GUI element for + example). By default the widget is in 'create new' mode. + */ + virtual void setInEditMode( bool value ); + + public slots: + virtual void loadSettings( Resource *resource ) = 0; + virtual void saveSettings( Resource *resource ) = 0; + + signals: + void setReadOnly( bool value ); + + protected: + Resource *mResource; +}; + +} +#endif diff --git a/extra/kde350/kaccelaction.h b/extra/kde350/kaccelaction.h new file mode 100644 index 0000000..4164ca5 --- /dev/null +++ b/extra/kde350/kaccelaction.h @@ -0,0 +1,576 @@ +/* This file is part of the KDE libraries + Copyright (C) 2001,2002 Ellis Whitehead + + This library 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. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef _KACCELACTION_H +#define _KACCELACTION_H + +#include +#include +#include +#include + +#include + +class KAccelBase; + +class QObject; +class KConfig; +class KConfigBase; + +/** + * @internal + * A KAccelAction prepresents an action that can be executed using + * an accelerator key. Each KAccelAction has a name, a label, a + * "What's this" string and a KShortcut. The user can configure and + * enable/disable them using KKeyDialog. + * + * \code + * 1) KAccelAction = "Run Command" + * Default3 = "Alt+F2" + * Default4 = "Meta+Enter;Alt+F2" + * 1) KShortcut = "Meta+Enter" + * 1) KKeySequence = "Meta+Enter" + * 1) KKey = "Meta+Enter" + * 1) Meta+Enter + * 2) Meta+Keypad_Enter + * 2) KShortcut = "Alt+F2" + * 1) KKeySequence = "Alt+F2" + * 1) Alt+F2 + * 2) KAccelAction = "Something" + * Default3 = "" + * Default4 = "" + * 1) KShortcut = "Meta+X,Asterisk" + * 1) KKeySequence = "Meta+X,Asterisk" + * 1) KKey = "Meta+X" + * 1) Meta+X + * 2) KKey = "Asterisk" + * 1) Shift+8 (English layout) + * 2) Keypad_Asterisk + * \endcode + * @short An accelerator action + * @see KAccel + * @see KGlobalAccel + * @see KKeyChooser + * @see KKeyDialog + */ +class KDECORE_EXPORT KAccelAction +{ + public: + /** + * Creates an empty KAccelAction. + * @see clear() + */ + KAccelAction(); + + /** + * Copy constructor. + */ + KAccelAction( const KAccelAction& ); + + /** + * Creates a new KAccelAction. + * @param sName the name of the accelerator + * @param sLabel the label of the accelerator (i18n!) + * @param sWhatsThis the What's This text (18n!) + * @param cutDef3 the default shortcut for 3 modifier systems + * @param cutDef4 the default shortcut for 4 modifier systems + * @param pObjSlot the receiver of a signal when the key has been + * pressed + * @param psMethodSlot the slot to connect for key presses. Receives + * an int, as set by setID(), as only argument + * @param bConfigurable if true the user can configure the shortcut + * @param bEnabled true if the accelerator should be enabled + */ + KAccelAction( const QString& sName, const QString& sLabel, const QString& sWhatsThis, + const KShortcut& cutDef3, const KShortcut& cutDef4, + const QObject* pObjSlot, const char* psMethodSlot, + bool bConfigurable, bool bEnabled ); + ~KAccelAction(); + + /** + * Clears the accelerator. + */ + void clear(); + + /** + * Re-initialized the KAccelAction. + * @param sName the name of the accelerator + * @param sLabel the label of the accelerator (i18n!) + * @param sWhatsThis the What's This text (18n!) + * @param cutDef3 the default shortcut for 3 modifier systems + * @param cutDef4 the default shortcut for 4 modifier systems + * @param pObjSlot the receiver of a signal when the key has been + * pressed + * @param psMethodSlot the slot to connect for key presses. Receives + * an int, as set by setID(), as only argument + * @param bConfigurable if true the user can configure the shortcut + * @param bEnabled true if the accelerator should be enabled + * @return true if successful, false otherwise + */ + bool init( const QString& sName, const QString& sLabel, const QString& sWhatsThis, + const KShortcut& cutDef3, const KShortcut& cutDef4, + const QObject* pObjSlot, const char* psMethodSlot, + bool bConfigurable, bool bEnabled ); + + /** + * Copies this KAccelAction. + */ + KAccelAction& operator=( const KAccelAction& ); + + /** + * Returns the name of the accelerator action. + * @return the name of the accelerator action, can be null if not + * set + */ + const QString& name() const { return m_sName; } + + /** + * Returns the label of the accelerator action. + * @return the label of the accelerator action, can be null if + * not set + */ + const QString& label() const { return m_sLabel; } + + /** + * Returns the What's This text of the accelerator action. + * @return the What's This text of the accelerator action, can be + * null if not set + */ + const QString& whatsThis() const { return m_sWhatsThis; } + + /** + * The shortcut that is actually used (may be used configured). + * @return the shortcut of the KAccelAction, can be null if not set + * @see shortcutDefault() + */ + const KShortcut& shortcut() const { return m_cut; } + + /** + * The default shortcut for this system. + * @return the default shortcut on this system, can be null if not set + * @see shortcut() + * @see shortcutDefault3() + * @see shortcutDefault4() + */ + const KShortcut& shortcutDefault() const; + + /** + * The default shortcut for 3 modifier systems. + * @return the default shortcut for 3 modifier systems, can be null + * if not set + * @see shortcutDefault() + * @see shortcutDefault4() + * @see useFourModifierKeys() + */ + const KShortcut& shortcutDefault3() const { return m_cutDefault3; } + + /** + * The default shortcut for 4 modifier systems. + * @return the default shortcut for 4 modifier systems, can be null + * if not set + * @see shortcutDefault() + * @see shortcutDefault3() + * @see useFourModifierKeys() + */ + const KShortcut& shortcutDefault4() const { return m_cutDefault4; } + + /** + * Returns the receiver of signals. + * @return the receiver of signals (can be 0 if not set) + */ + const QObject* objSlotPtr() const { return m_pObjSlot; } + + /** + * Returns the slot for the signal. + * @return the slot for the signal + */ + const char* methodSlotPtr() const { return m_psMethodSlot; } + + /** + * Checks whether the user can configure the action. + * @return true if configurable, false otherwise + */ + bool isConfigurable() const { return m_bConfigurable; } + + /** + * Checks whether the action is enabled. + * @return true if enabled, false otherwise + */ + bool isEnabled() const { return m_bEnabled; } + + /** + * Sets the name of the accelerator action. + * @param name the new name + */ + void setName( const QString& name ); + + /** + * Sets the user-readable label of the accelerator action. + * @param label the new label (i18n!) + */ + void setLabel( const QString& label ); + + /** + * Sets the What's This text for the accelerator action. + * @param whatsThis the new What's This text (i18n!) + */ + void setWhatsThis( const QString& whatsThis ); + + /** + * Sets the new shortcut of the accelerator action. + * @param rgCuts the shortcut to set + * @return true if successful, false otherwise + */ + bool setShortcut( const KShortcut& rgCuts ); + + /** + * Sets the slot of the accelerator action. + * @param pObjSlot the receiver object of the signal + * @param psMethodSlot the slot for the signal + */ + void setSlot( const QObject* pObjSlot, const char* psMethodSlot ); + + /** + * Enables or disabled configuring the action. + * @param configurable true to enable configurability, false to disable + */ + void setConfigurable( bool configurable ); + + /** + * Enables or disabled the action. + * @param enable true to enable the action, false to disable + */ + void setEnabled( bool enable ); + + /** + * Retrieves the id set using setID. + * @return the id of the accelerator action + */ + int getID() const { return m_nIDAccel; } + + /** + * Allows you to set an id that will be used as the action + * signal's argument. + * + * @param n the new id + * @see getID() + */ + void setID( int n ) { m_nIDAccel = n; } + + /** + * Checkes whether the action is connected (emits signals). + * @return true if connected, false otherwise + */ + bool isConnected() const; + + /** + * Sets a key sequence of the action's shortcut. + * @param i the position of the sequence + * @param keySeq the new new sequence + * @return true if successful, false otherwise + * @see KShortcut::setSeq() + */ + bool setKeySequence( uint i, const KKeySequence &keySeq ); + + /** + * Clears the action's shortcut. It will not contain any sequences after + * calling this method. + * @see KShortcut::clear() + */ + void clearShortcut(); + + /** + * Checks whether the action's shortcut contains the given key sequence. + * @param keySeq the key sequence to check + * @return true if the shortcut contains the given sequence + * @see KShortcut::contains() + */ + bool contains( const KKeySequence &keySeq ); + + /** + * Returns the string representation of the action's shortcut. + * @return the string representation of the action's shortcut. + * @see KShortcut::toString() + */ + QString toString() const; + + /** + * @internal + */ + QString toStringInternal() const; + + /** + * Returns true if four modifier keys will be used. + * @return true if four modifier keys will be used. + */ + static bool useFourModifierKeys(); + + /** + * Selects 3 or 4 modifier default shortcuts. + * @param use true to use 4 modifier shortcuts, false to use + * 3 modifier shortcuts + */ + static void useFourModifierKeys( bool use ); + + protected: + QString m_sName /**< Name of accel. @sa setName() */, + m_sLabel /**< Label of accel. User-visible. */, + m_sWhatsThis /**< WhatsThis help for accel. User-visible. */; + KShortcut m_cut /**< Shortcut actually assigned. */; + KShortcut m_cutDefault3 /**< Default shortcut in 3-modifier layout */, + m_cutDefault4 /**< Default shortcur in 4-modifier layout */; + const QObject* m_pObjSlot /**< Object we will send signals to. */; + const char* m_psMethodSlot /**< Slot we send signals to, in m_pObjSlot */; + bool m_bConfigurable /**< Can this accel be configured by the user? */, + m_bEnabled /**< Is this accel enabled? */; + int m_nIDAccel /**< Id of this accel, from the list of IDs */; + uint m_nConnections /**< Number of connections to this accel. */ ; + + /** @internal Increment the number of connections to this accel. */ + void incConnections(); + /** @internal Decrement the number of connections to this accel (bouded by zero). */ + void decConnections(); + + private: + static int g_bUseFourModifierKeys; + class KAccelActionPrivate* d; + + friend class KAccelActions; + friend class KAccelBase; +}; + +//--------------------------------------------------------------------- +// KAccelActions +//--------------------------------------------------------------------- + +/** + * @internal + * This class represents a collection of KAccelAction objects. + * + * @short A collection of accelerator actions + * @see KAccelAction + */ +class KDECORE_EXPORT KAccelActions +{ + public: + /** + * Creates a new, empty KAccelActions object. + */ + KAccelActions(); + + /** + * Copy constructor (deep copy). + */ + KAccelActions( const KAccelActions& ); + virtual ~KAccelActions(); + + /** + * Removes all items from this collection. + */ + void clear(); + + /** + * Initializes this object with the given actions. + * It will make a deep copy of all actions. + * @param actions the actions to copy + * @return true if successful, false otherwise + */ + bool init( const KAccelActions &actions ); + + /** + * Loads the actions from the given configuration file. + * + * @param config the configuration file to load from + * @param sGroup the group in the configuration file + * @return true if successful, false otherwise + */ + bool init( KConfigBase& config, const QString& sGroup ); + + /** + * Updates the shortcuts of all actions in this object + * with the shortcuts from the given object. + * @param shortcuts the collection that contains the new + * shortcuts + */ + void updateShortcuts( KAccelActions &shortcuts ); + + /** + * Retrieves the index of the action with the given name. + * @param sAction the action to search + * @return the index of the action, or -1 if not found + */ + int actionIndex( const QString& sAction ) const; + + /** + * Returns the action with the given @p index. + * @param index the index of an action. You must not + * use an index that is too high. + * @return the KAccelAction with the given index + * @see count() + */ + KAccelAction* actionPtr( uint index ); + + /** + * Returns the action with the given @p index. + * @param index the index of an action. You must not + * use an index that is too high. + * @return the KAccelAction with the given index + * @see count() + */ + const KAccelAction* actionPtr( uint index ) const; + + /** + * Returns the action with the given name. + * @param sAction the name of the action to search + * @return the KAccelAction with the given name, or 0 + * if not found + */ + KAccelAction* actionPtr( const QString& sAction ); + + /** + * Returns the action with the given name. + * @param sAction the name of the action to search + * @return the KAccelAction with the given name, or 0 + * if not found + */ + const KAccelAction* actionPtr( const QString& sAction ) const; + + /** + * Returns the action with the given key sequence. + * @param cut the sequence to search for + * @return the KAccelAction with the given sequence, or 0 + * if not found + */ + KAccelAction* actionPtr( KKeySequence cut ); + + /** + * Returns the action with the given @p index. + * @param index the index of an action. You must not + * use an index that is too high. + * @return the KAccelAction with the given index + * @see actionPtr() + * @see count() + */ + KAccelAction& operator []( uint index ); + + /** + * Returns the action with the given @p index. + * @param index the index of an action. You must not + * use an index that is too high. + * @return the KAccelAction with the given index + * @see actionPtr() + * @see count() + */ + const KAccelAction& operator []( uint index ) const; + + /** + * Inserts an action into the collection. + * @param sAction the name of the accelerator + * @param sLabel the label of the accelerator (i18n!) + * @param sWhatsThis the What's This text (18n!) + * @param rgCutDefaults3 the default shortcut for 3 modifier systems + * @param rgCutDefaults4 the default shortcut for 4 modifier systems + * @param pObjSlot the receiver of a signal when the key has been + * pressed + * @param psMethodSlot the slot to connect for key presses. Receives + * an int, as set by setID(), as only argument + * @param bConfigurable if true the user can configure the shortcut + * @param bEnabled if true the accelerator should be enabled + * @return the new action + */ + KAccelAction* insert( const QString& sAction, const QString& sLabel, const QString& sWhatsThis, + const KShortcut& rgCutDefaults3, const KShortcut& rgCutDefaults4, + const QObject* pObjSlot = 0, const char* psMethodSlot = 0, + bool bConfigurable = true, bool bEnabled = true ); + + /** + * Inserts an action into the collection. + * @param sName the name of the accelerator + * @param sLabel the label of the accelerator (i18n!) + * @return the new action + */ + KAccelAction* insert( const QString& sName, const QString& sLabel ); + + /** + * Removes the given action. + * @param sAction the name of the action. + * @return true if successful, false otherwise + */ + bool remove( const QString& sAction ); + + /** + * Loads the actions from the given configuration file. + * + * @param sConfigGroup the group in the configuration file + * @param pConfig the configuration file to load from + * @return true if successful, false otherwise + */ + bool readActions( const QString& sConfigGroup = "Shortcuts", KConfigBase* pConfig = 0 ); + + /** + * Writes the actions to the given configuration file. + * + * @param sConfigGroup the group in the configuration file + * @param pConfig the configuration file to save to + * @param bWriteAll true to write all actions + * @param bGlobal true to write to the global configuration file + * @return true if successful, false otherwise + */ + bool writeActions( const QString& sConfigGroup = "Shortcuts", KConfigBase* pConfig = 0, + bool bWriteAll = false, bool bGlobal = false ) const; + + /** + * Emit a keycodeChanged signal. + */ + void emitKeycodeChanged(); + + /** + * Returns the number of actions in the collection. + * @return the number of actions + */ + uint count() const; + + protected: + /** Base object that proxies signals from us. */ + KAccelBase* m_pKAccelBase; + /** Array of actions we're hanging on to. */ + KAccelAction** m_prgActions; + uint m_nSizeAllocated /**< Allocated size of the array. */, + m_nSize /**< Amount in use. */ ; + + /** + * Resize the list to the given number @p new_size of entries. + * @todo Can you make it smaller? + * @todo Implementation seems to break m_nSize. + */ + void resize( uint new_size ); + /** Add a action to this collection. @todo Document ownership. */ + void insertPtr( KAccelAction* ); + + private: + class KAccelActionsPrivate* d; + + KAccelActions( KAccelBase* ); + void initPrivate( KAccelBase* ); + KAccelActions& operator =( KAccelActions& ); + + friend class KAccelBase; +}; + +#endif // _KACCELACTION_H diff --git a/extra/kde350/kaccelbase.h b/extra/kde350/kaccelbase.h new file mode 100644 index 0000000..0becbe0 --- /dev/null +++ b/extra/kde350/kaccelbase.h @@ -0,0 +1,260 @@ +/* This file is part of the KDE libraries + Copyright (C) 2001 Ellis Whitehead + + This library 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. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef _KACCELBASE_H +#define _KACCELBASE_H + +#include +#include +#include +#include +#include + +#include "kaccelaction.h" +#include "kkeyserver.h" + +class QPopupMenu; +class QWidget; + +//---------------------------------------------------- + +/** + * @internal + * Handle keyboard accelerators. + * + * Allow an user to configure + * key bindings through application configuration files or through the + * KKeyChooser GUI. + * + * A KAccel contains a list of accelerator items. Each accelerator item + * consists of an action name and a keyboard code combined with modifiers + * (Shift, Ctrl and Alt.) + * + * For example, "Ctrl+P" could be a shortcut for printing a document. The key + * codes are listed in ckey.h. "Print" could be the action name for printing. + * The action name identifies the key binding in configuration files and the + * KKeyChooser GUI. + * + * When pressed, an accelerator key calls the slot to which it has been + * connected. Accelerator items can be connected so that a key will activate + * two different slots. + * + * A KAccel object handles key events sent to its parent widget and to all + * children of this parent widget. + * + * Key binding reconfiguration during run time can be prevented by specifying + * that an accelerator item is not configurable when it is inserted. A special + * group of non-configurable key bindings are known as the + * standard accelerators. + * + * The standard accelerators appear repeatedly in applications for + * standard document actions such as printing and saving. Convenience methods are + * available to insert and connect these accelerators which are configurable on + * a desktop-wide basis. + * + * It is possible for a user to choose to have no key associated with + * an action. + * + * The translated first argument for insertItem() is used only + * in the configuration dialog. + *\code + * KAccel *a = new KAccel( myWindow ); + * // Insert an action "Scroll Up" which is associated with the "Up" key: + * a->insertItem( i18n("Scroll Up"), "Scroll Up", "Up" ); + * // Insert an action "Scroll Down" which is not associated with any key: + * a->insertItem( i18n("Scroll Down"), "Scroll Down", 0); + * a->connectItem( "Scroll up", myWindow, SLOT( scrollUp() ) ); + * // a->insertStdItem( KStdAccel::Print ); //not necessary, since it + * // is done automatially with the + * // connect below! + * a->connectItem(KStdAccel::Print, myWindow, SLOT( printDoc() ) ); + * + * a->readSettings(); + *\endcode + * + * If a shortcut has a menu entry as well, you could insert them like + * this. The example is again the KStdAccel::Print from above. + * + * \code + * int id; + * id = popup->insertItem("&Print",this, SLOT(printDoc())); + * a->changeMenuAccel(popup, id, KStdAccel::Print ); + * \endcode + * + * If you want a somewhat "exotic" name for your standard print action, like + * id = popup->insertItem(i18n("Print &Document"),this, SLOT(printDoc())); + * it might be a good idea to insert the standard action before as + * a->insertStdItem( KStdAccel::Print, i18n("Print Document") ) + * as well, so that the user can easily find the corresponding function. + * + * This technique works for other actions as well. Your "scroll up" function + * in a menu could be done with + * + * \code + * id = popup->insertItem(i18n"Scroll &up",this, SLOT(scrollUp())); + * a->changeMenuAccel(popup, id, "Scroll Up" ); + * \endcode + * + * Please keep the order right: First insert all functions in the + * acceleratior, then call a -> readSettings() and @em then build your + * menu structure. + * + * @short Configurable key binding support. + */ + +class KDECORE_EXPORT KAccelBase +{ + public: + /** Initialization mode of the KAccelBase, used in constructor. */ + enum Init { QT_KEYS = 0x00, NATIVE_KEYS = 0x01 }; + + /** Enum for kinds of signals which may be emitted. */ + enum Signal { KEYCODE_CHANGED }; + + /** Constructor. @p fInitCode should be a bitwise OR of + * values from the Init enum. + */ + KAccelBase( int fInitCode ); + virtual ~KAccelBase(); + + /** Returns number of actions in this handler. */ + uint actionCount() const; + /** Returns a list of all the actions in this handler. */ + KAccelActions& actions(); + /** Returns whether this accelerator handler is enabled or not. */ + bool isEnabled() const; + + /** Returns a pointer to the KAccelAction named @p sAction. */ + KAccelAction* actionPtr( const QString& sAction ); + /** Const version of the above. */ + const KAccelAction* actionPtr( const QString& sAction ) const; + /** Returns a pointer to the KAccelAction associated with + * the key @p key. This function takes into account the + * key mapping defined in the constructor. + * + * May return 0 if no (or more than one) + * action is associated with the key. + */ + KAccelAction* actionPtr( const KKey& key ); + /** Basically the same as above, except a KKeyServer::Key + * already has a key mapping defined (either NATIVE_KEYS or not). + */ + KAccelAction* actionPtr( const KKeyServer::Key& key ); + + /** Returns the name of the configuration group these + * accelerators are stored in. The default is "Shortcuts". + */ + const QString& configGroup() const { return m_sConfigGroup; } + /** Set the group (in the configuration file) for storing + * accelerators. + */ + void setConfigGroup( const QString& group ); + void setConfigGlobal( bool global ); + virtual void setEnabled( bool bEnabled ) = 0; + /** Returns whether autoupdate is enabled for these accelerators. */ + bool getAutoUpdate() { return m_bAutoUpdate; } + /** Enables (or disables) autoupdate for these accelerators. + * @return the value of autoupdate before the call. + */ + bool setAutoUpdate( bool bAuto ); + +// Procedures for manipulating Actions. + //void clearActions(); + + KAccelAction* insert( const QString& sName, const QString& sDesc ); + KAccelAction* insert( + const QString& sAction, const QString& sDesc, const QString& sHelp, + const KShortcut& rgCutDefaults3, const KShortcut& rgCutDefaults4, + const QObject* pObjSlot, const char* psMethodSlot, + bool bConfigurable = true, bool bEnabled = true ); + bool remove( const QString& sAction ); + bool setActionSlot( const QString& sAction, const QObject* pObjSlot, const char* psMethodSlot ); + + bool updateConnections(); + + bool setShortcut( const QString& sAction, const KShortcut& cut ); + +// Modify individual Action sub-items + bool setActionEnabled( const QString& sAction, bool bEnable ); + + /** + * Read all key associations from @p config, or (if @p config + * is zero) from the application's configuration file + * KGlobal::config(). + * + * The group in which the configuration is stored can be + * set with setConfigGroup(). + */ + void readSettings( KConfigBase* pConfig = 0 ); + + /** + * Write the current configurable associations to @p config, + * or (if @p config is zero) to the application's + * configuration file. + */ + void writeSettings( KConfigBase* pConfig = 0 ) const; + + QPopupMenu* createPopupMenu( QWidget* pParent, const KKeySequence& ); + + // Protected methods + protected: + void slotRemoveAction( KAccelAction* ); + + struct X; + void createKeyList( QValueVector& rgKeys ); + bool insertConnection( KAccelAction* ); + bool removeConnection( KAccelAction* ); + + virtual bool emitSignal( Signal ) = 0; + virtual bool connectKey( KAccelAction&, const KKeyServer::Key& ) = 0; + virtual bool connectKey( const KKeyServer::Key& ) = 0; + virtual bool disconnectKey( KAccelAction&, const KKeyServer::Key& ) = 0; + virtual bool disconnectKey( const KKeyServer::Key& ) = 0; + + protected: + virtual bool isEnabledInternal() const; + struct ActionInfo + { + KAccelAction* pAction; + uint iSeq, iVariation; + //ActionInfo* pInfoNext; // nil if only one action uses this key. + + ActionInfo() { pAction = 0; iSeq = 0xffff; iVariation = 0xffff; } + ActionInfo( KAccelAction* _pAction, uint _iSeq, uint _iVariation ) + { pAction = _pAction; iSeq = _iSeq; iVariation = _iVariation; } + }; + typedef QMap KKeyToActionMap; + + KAccelActions m_rgActions; + KKeyToActionMap m_mapKeyToAction; + QValueList m_rgActionsNonUnique; + bool m_bNativeKeys; // Use native key codes instead of Qt codes + bool m_bEnabled; + bool m_bConfigIsGlobal; + QString m_sConfigGroup; + bool m_bAutoUpdate; + KAccelAction* mtemp_pActionRemoving; + + private: + KAccelBase& operator =( const KAccelBase& ); + + friend class KAccelActions; +}; + +#endif // _KACCELBASE_H diff --git a/extra/kde350/kicontheme.h b/extra/kde350/kicontheme.h new file mode 100644 index 0000000..a339ecf --- /dev/null +++ b/extra/kde350/kicontheme.h @@ -0,0 +1,355 @@ +/* vi: ts=8 sts=4 sw=4 + * + * This file is part of the KDE project, module kdecore. + * Copyright (C) 2000 Geert Jansen + * Antonio Larrosa + * + * This is free software; it comes under the GNU Library General + * Public License, version 2. See the file "COPYING.LIB" for the + * exact licensing terms. + * + */ + +#ifndef __KIconTheme_h_Included__ +#define __KIconTheme_h_Included__ + +#include +#include +#include +#include "kdelibs_export.h" + +class KConfig; +//class KIconThemeDir; + +class KIconThemePrivate; + +class KIconPrivate; + +/** + * One icon as found by KIconTheme. Also serves as a namespace containing + * icon related constants. + * @see KIconEffect + * @see KIconTheme + * @see KIconLoader + */ +class KDECORE_EXPORT KIcon +{ +public: + KIcon() { size = 0; } + + /** + * Return true if this icon is valid, false otherwise. + */ + bool isValid() const { return size != 0; } + + /** + * Defines the context of the icon. + */ + enum Context { + Any, ///< Some icon with unknown purpose. + Action, ///< An action icon (e.g. 'save', 'print'). + Application, ///< An icon that represents an application. + Device, ///< An icon that represents a device. + FileSystem, ///< An icon that represents a file system. + MimeType ///< An icon that represents a mime type (or file type). + }; + + /** + * The type of the icon. + */ + enum Type { + Fixed, ///< Fixed-size icon. + Scalable, ///< Scalable-size icon. + Threshold ///< A threshold icon. + }; + + /** + * The type of a match. + */ + enum MatchType { + MatchExact, ///< Only try to find an exact match. + MatchBest ///< Take the best match if there is no exact match. + + }; + + // if you add a group here, make sure to change the config reading in + // KIconLoader too + /** + * The group of the icon. + */ + enum Group { + /// No group + NoGroup=-1, + /// Desktop icons + Desktop=0, + /// First group + FirstGroup=0, + /// Toolbar icons + Toolbar, + /// Main toolbar icons + MainToolbar, + /// Small icons + Small, + /// Panel (Kicker) icons + Panel, + /// Last group + LastGroup, + /// User icons + User + }; + + /** + * These are the standard sizes for icons. + */ + enum StdSizes { + /// small icons for menu entries + SizeSmall=16, + /// slightly larger small icons for toolbars, panels, etc + SizeSmallMedium=22, + /// medium sized icons for the desktop + SizeMedium=32, + /// large sized icons for the panel + SizeLarge=48, + /// huge sized icons for iconviews + SizeHuge=64, + /// enormous sized icons for iconviews + SizeEnormous=128 + }; + + /** + * Defines the possible states of an icon. + */ + enum States { DefaultState, ///< The default state. + ActiveState, ///< Icon is active. + DisabledState, ///< Icon is disabled. + LastState ///< Last state (last constant) + }; + + /** + * This defines an overlay, a semi-transparent image that is + * projected onto the icon. They are used to show that the file + * represented by the icon is, for example, locked, zipped or hidden. + */ + enum Overlays { + LockOverlay=0x100, ///< a file is locked + ZipOverlay=0x200, ///< a file is zipped + LinkOverlay=0x400, ///< a file is a link + HiddenOverlay=0x800, ///< a file is hidden + ShareOverlay=0x1000, ///< a file is shared + OverlayMask = ~0xff + }; + + /** + * The size in pixels of the icon. + */ + int size; + + /** + * The context of the icon. + */ + Context context; + + /** + * The type of the icon: Fixed, Scalable or Threshold. + **/ + Type type; + + /** + * The threshold in case type == Threshold + */ + int threshold; + + /** + * The full path of the icon. + */ + QString path; + +private: + KIconPrivate *d; +}; + +inline KIcon::Group& operator++(KIcon::Group& group) { group = static_cast(group+1); return group; } +inline KIcon::Group operator++(KIcon::Group& group,int) { KIcon::Group ret = group; ++group; return ret; } + +/** + * Class to use/access icon themes in KDE. This class is used by the + * iconloader but can be used by others too. + * @see KIconLoader + */ +class KDECORE_EXPORT KIconTheme +{ +public: + /** + * Load an icon theme by name. + * @param name the name of the theme (e.g. "hicolor" or "keramik") + * @param appName the name of the application. Can be null. This argument + * allows applications to have themed application icons. + */ + KIconTheme(const QString& name, const QString& appName=QString::null); + ~KIconTheme(); + + /** + * The stylized name of the icon theme. + * @return the (human-readable) name of the theme + */ + QString name() const { return mName; } + + /** + * A description for the icon theme. + * @return a human-readable description of the theme, QString::null + * if there is none + */ + QString description() const { return mDesc; } + + /** + * Return the name of the "example" icon. This can be used to + * present the theme to the user. + * @return the name of the example icon, QString::null if there is none + */ + QString example() const; + + /** + * Return the name of the screenshot. + * @return the name of the screenshot, QString::null if there is none + */ + QString screenshot() const; + + /** + * Returns the name of this theme's link overlay. + * @return the name of the link overlay + */ + QString linkOverlay() const; + + /** + * Returns the name of this theme's zip overlay. + * @return the name of the zip overlay + */ + QString zipOverlay() const; + + /** + * Returns the name of this theme's lock overlay. + * @return the name of the lock overlay + */ + QString lockOverlay() const; + + /** + * Returns the name of this theme's share overlay. + * @return the name of the share overlay + * @since 3.1 + */ + QString shareOverlay () const; + + /** + * Returns the toplevel theme directory. + * @return the directory of the theme + */ + QString dir() const { return mDir; } + + /** + * The themes this icon theme falls back on. + * @return a list of icon themes that are used as fall-backs + */ + QStringList inherits() const { return mInherits; } + + /** + * The icon theme exists? + * @return true if the icon theme is valid + */ + bool isValid() const; + + /** + * The icon theme should be hidden to the user? + * @return true if the icon theme is hidden + * @since 3.1 + */ + bool isHidden() const; + + /** + * The minimum display depth required for this theme. This can either + * be 8 or 32. + * @return the minimum bpp (8 or 32) + */ + int depth() const { return mDepth; } + + /** + * The default size of this theme for a certain icon group. + * @param group The icon group. See KIcon::Group. + * @return The default size in pixels for the given icon group. + */ + int defaultSize(KIcon::Group group) const; + + /** + * Query available sizes for a group. + * @param group The icon group. See KIcon::Group. + * @return a list of available sized for the given group + */ + QValueList querySizes(KIcon::Group group) const; + + /** + * Query available icons for a size and context. + * @param size the size of the icons + * @param context the context of the icons + * @return the list of icon names + */ + QStringList queryIcons(int size, KIcon::Context context = KIcon::Any) const; + + /** + * Query available icons for a context and preferred size. + * @param size the size of the icons + * @param context the context of the icons + * @return the list of icon names + */ + QStringList queryIconsByContext(int size, KIcon::Context context = KIcon::Any) const; + + + /** + * Lookup an icon in the theme. + * @param name The name of the icon, without extension. + * @param size The desired size of the icon. + * @param match The matching mode. KIcon::MatchExact returns an icon + * only if matches exactly. KIcon::MatchBest returns the best matching + * icon. + * @return A KIcon class that describes the icon. If an icon is found, + * @see KIcon::isValid will return true, and false otherwise. + */ + KIcon iconPath(const QString& name, int size, KIcon::MatchType match) const; + + /** + * List all icon themes installed on the system, global and local. + * @return the list of all icon themes + */ + static QStringList list(); + + /** + * Returns the current icon theme. + * @return the name of the current theme + */ + static QString current(); + + /** + * Reconfigure the theme. + */ + static void reconfigure(); + + /** + * Returns the default icon theme. + * @return the name of the default theme name + * @since 3.1 + */ + static QString defaultThemeName(); + +private: + int mDefSize[8]; + QValueList mSizes[8]; + + int mDepth; + QString mDir, mName, mDesc; + QStringList mInherits; +// QPtrList mDirs; + KIconThemePrivate *d; + + static QString *_theme; + static QStringList *_theme_list; +}; + +#endif diff --git a/extra/kde350/kkeyserver.h b/extra/kde350/kkeyserver.h new file mode 100644 index 0000000..ef673ea --- /dev/null +++ b/extra/kde350/kkeyserver.h @@ -0,0 +1,29 @@ +/* + Copyright (C) 2001 Ellis Whitehead + + Win32 port: + Copyright (C) 2004 Jaroslaw Staniek + + This library 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. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef _KKEYSERVER_H +#define _KKEYSERVER_H + +//FOR COMPATIBILITY +#include "kkeyserver_x11.h" + +#endif // !_KKEYSERVER_H diff --git a/extra/kde350/kkeyserver_x11.h b/extra/kde350/kkeyserver_x11.h new file mode 100644 index 0000000..73c800d --- /dev/null +++ b/extra/kde350/kkeyserver_x11.h @@ -0,0 +1,477 @@ +/* + Copyright (C) 2001 Ellis Whitehead + + Win32 port: + Copyright (C) 2004 Jaroslaw Staniek + + This library 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. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef _KKEYSERVER_X11_H +#define _KKEYSERVER_X11_H + +#include "kshortcut.h" +#include "kkeynative.h" + +/** + * A collection of functions for the conversion of key presses and + * their modifiers from the window system specific format + * to the generic format and vice-versa. + */ +namespace KKeyServer +{ + /** + * Supplement enum KKey::ModFlag + * @since 3.1 + */ + enum ExtraModFlag { MODE_SWITCH = 0x2000 }; + + /** + * Represents a key symbol. + * @see KKey + * @see KKeyServer + */ + struct KDECORE_EXPORT Sym + { + public: + /// the actual value of the symbol + uint m_sym; + + /// Creates a null symbol. + Sym() + { m_sym = 0; } + /** + * Creates asymbol with the given value. + * @param sym the value + */ + Sym( uint sym ) + { m_sym = sym; } + /** + * Creates a symbol from the given string description. + * @param s the description of the symbol + * @see toString() + */ + Sym( const QString& s ) + { init( s ); } + + /** + * Initializes the symbol with the given Qt key code. + * @param keyQt the qt key code + * @return true if successful, false otherwise + * @see Qt::Key + */ + bool initQt( int keyQt ); + + /** + * Initializes the key with the given string description. + * @param s the string description + * @return true if successful, false otherwise + * @see toString() + */ + bool init( const QString &s ); + + /** + * Returns the qt key code of the symbol. + * @return the qt key code + */ + int qt() const; + + /** + * @internal + */ + QString toStringInternal() const; + + /** + * Returns the string representation of the symbol. + * @return the string representation of the symbol + */ + QString toString() const; + + /** + * Returns the mods that are required for this symbol as + * ORed KKey::ModFlag's. For example, Break requires a + * Ctrl to be valid. + * @return the required KKey::ModFlag's + * @see KKey::ModFlag + */ + uint getModsRequired() const; + + /** + * TODO: please find out what this method does and document it + */ + uint getSymVariation() const; + + /** + * Casts the symbol to its integer representation. + */ + operator uint() const { return m_sym; } + + /** + * Overloaded operator to convert ints to Sym. + */ + Sym& operator =( uint sym ) { m_sym = sym; return *this; } + + private: + QString toString( bool bUserSpace ) const; + + static void capitalizeKeyname( QString& ); + }; + + /** + * Represents a key press. + * @see KKey + */ + struct KDECORE_EXPORT Key + { + /// Code for native Keys in Qt + enum { CODE_FOR_QT = 256 }; + + /// The code of the key + uint m_code; + + /// The modifiers of the key + uint m_mod; + + /// The symbol of the key + uint m_sym; + + /** + * Initializes the key with a KKey. + * @param key the key to get the data from + * @param bQt true to take the Qt keycode, false + * for the native key code + * @see Qt::Key + * @see KKeyNative + */ + bool init( const KKey& key, bool bQt ); + + /** + * Checks whether the key code is a native code. + * @return true if native code of the window system, + * false if it is a Qt keycode + * @see Qt::Key + * @see KKeyNative + */ + bool isNative() const { return m_code != CODE_FOR_QT; } + + /** + * Returns the code of the key. + * @return the code of the key + */ + uint code() const { return m_code; } + + /** + * Returns the modifiers of the key. + * @return the modifiers of the key + */ + uint mod() const { return m_mod; } + + /** + * Returns the symbol of the key. + * @return the symbol of the key + */ + uint sym() const { return m_sym; } + + /** + * Returns the qt key code. + * @return the qt key code + */ + int keyCodeQt() const { return (int) m_sym; } + + /** + * Sets the qt key code. + * @param keyQt the qt key code + */ + void setKeycodeQt( int keyQt ) + { m_code = CODE_FOR_QT; m_sym = keyQt; } + + /** + * Initializes this key with a KKeyNative. + * @return this key + */ + Key& operator =( const KKeyNative& key ); + + /** + * Compares this key with the given Key object. Returns a + * negative number if the given Key is larger, 0 if they + * are equal and a positive number this Key is larger. The + * returned value is the difference between the symbol, modifier + * or code, whatever is non-zero first. + * + * @param key the key to compare with this key + * @return a negative number if the given Key is larger, 0 if + * they are equal and a positive number this Key is larger + */ + int compare( const Key& key ) const; + + /** + * Compares the symbol, modifiers and code of both keys. + * @see compare() + */ + bool operator ==( const Key& b ) const + { return compare( b ) == 0; } + + /** + * Compares the symbol, modifiers and code of both keys. + * @see compare() + */ + bool operator <( const Key& b ) const + { return compare( b ) < 0; } + + /** + * Converts this Key to a KKey. + * @return the KKey + */ + KKey key() const; + }; + + /** + * TODO: please document this class + */ + struct KDECORE_EXPORT Variations + { + enum { MAX_VARIATIONS = 4 }; + + Key m_rgkey[MAX_VARIATIONS]; + uint m_nVariations; + + Variations() { m_nVariations = 0; } + + void init( const KKey&, bool bQt ); + + uint count() const { return m_nVariations; } + const Key& key( uint i ) const { return m_rgkey[i]; } + }; + + /// TODO: please document + KDECORE_EXPORT bool initializeMods(); + + /** + * Returns the equivalent X modifier mask of the given modifier flag. + * @param modFlag the generic flags to check + * @return the window system specific flags + */ + KDECORE_EXPORT uint modX( KKey::ModFlag modFlag ); + + /** + * Returns true if the current keyboard layout supports the Win key. + * Specifically, whether the Super or Meta keys are assigned to an X modifier. + * @return true if the keyboard has a Win key + * @see modXWin() + */ + KDECORE_EXPORT bool keyboardHasWinKey(); + + /** + * Returns the X11 Shift modifier mask/flag. + * @return the X11 Shift modifier mask/flag. + * @see accelModMaskX() + */ + KDECORE_EXPORT uint modXShift(); + + /** + * Returns the X11 Lock modifier mask/flag. + * @return the X11 Lock modifier mask/flag. + * @see accelModMaskX() + */ + KDECORE_EXPORT uint modXLock(); + + /** + * Returns the X11 Ctrl modifier mask/flag. + * @return the X11 Ctrl modifier mask/flag. + * @see accelModMaskX() + */ + KDECORE_EXPORT uint modXCtrl(); + + /** + * Returns the X11 Alt (Mod1) modifier mask/flag. + * @return the X11 Alt (Mod1) modifier mask/flag. + * @see accelModMaskX() + */ + KDECORE_EXPORT uint modXAlt(); + + /** + * Returns the X11 NumLock modifier mask/flag. + * @return the X11 NumLock modifier mask/flag. + * @see accelModMaskX() + */ + KDECORE_EXPORT uint modXNumLock(); + + /** + * Returns the X11 Win (Mod3) modifier mask/flag. + * @return the X11 Win (Mod3) modifier mask/flag. + * @see keyboardHasWinKey() + * @see accelModMaskX() + */ + KDECORE_EXPORT uint modXWin(); + + /** + * Returns the X11 ScrollLock modifier mask/flag. + * @return the X11 ScrollLock modifier mask/flag. + * @see accelModMaskX() + */ + KDECORE_EXPORT uint modXScrollLock(); + + /** + * Returns the X11 Mode_switch modifier mask/flag. + * @return the X11 Mode_switch modifier mask/flag. + * @see accelModMaskX() + * @since 3.5 + */ + KDECORE_EXPORT uint modXModeSwitch(); + + /** + * Returns bitwise OR'ed mask containing Shift, Ctrl, Alt, and + * Win (if available). + * @see modXShift() + * @see modXLock() + * @see modXCtrl() + * @see modXAlt() + * @see modXNumLock() + * @see modXWin() + * @see modXScrollLock() + */ + KDECORE_EXPORT uint accelModMaskX(); + + /** + * Extracts the symbol from the given Qt key and + * converts it to a symbol. + * @param keyQt the qt key code + * @param sym if successful, the symbol will be written here + * @return true if successful, false otherwise + * @see Qt::Key + * @see Sym + */ + KDECORE_EXPORT bool keyQtToSym( int keyQt, uint& sym ); + + /** + * Extracts the modifiers from the given Qt key and + * converts them in a mask of ORed KKey::ModFlag modifiers. + * @param keyQt the qt key code + * @param mod if successful, the modifiers will be written here + * @return true if successful, false otherwise + * @see Qt::Key + */ + KDECORE_EXPORT bool keyQtToMod( int keyQt, uint& mod ); + + /** + * Converts the given symbol to a Qt key code. + * @param sym the symbol + * @param keyQt if successful, the qt key code will be written here + * @return true if successful, false otherwise + * @see Qt::Key + * @see Sym + */ + KDECORE_EXPORT bool symToKeyQt( uint sym, int& keyQt ); + + /** + * Converts the mask of ORed KKey::ModFlag modifiers to + * a mask of ORed Qt key code modifiers. + * @param mod the mask of KKey::ModFlag modifiers + * @param modQt the mask of Qt key code modifiers will be written here, + * if successful + * @return true if successful, false otherwise + * @see Qt::Key + * @see KKey + */ + KDECORE_EXPORT bool modToModQt( uint mod, int& modQt ); + + /** + * Converts the mask of ORed KKey::ModFlag modifiers to + * a mask of ORed X11 modifiers. + * @param mod the mask of KKey::ModFlag modifiers + * @param modX the mask of X11 modifiers will be written here, + * if successful + * @return true if successful, false otherwise + * @see KKey + */ + KDECORE_EXPORT bool modToModX( uint mod, uint& modX ); + + /** + * Converts the mask of ORed X11 modifiers to + * a mask of ORed Qt key code modifiers. + * @param modX the mask of X11 modifiers + * @param modQt the mask of Qt key code modifiers will be written here + * if successful + * @return true if successful, false otherwise + * @see Qt::Key + */ + //wrapped for win32 + KDECORE_EXPORT bool modXToModQt( uint modX, int& modQt ); + + /** + * Converts the Qt-compatible button state to x11 modifier. + */ + KDECORE_EXPORT int qtButtonStateToMod( Qt::ButtonState s ); + + /** + * Converts the mask of ORed X11 modifiers to + * a mask of ORed KKey::ModFlag modifiers. + * @param modX the mask of X11 modifiers + * @param mod the mask of KKey::ModFlag modifiers will be written here, + * if successful + * @return true if successful, false otherwise + * @see KKey + */ + KDECORE_EXPORT bool modXToMod( uint modX, uint& mod ); + + /** + * Converts a X11 key code and a mask of ORed X11 modifiers + * into a X11 symbol. + * converts it to a symbol. + * @param codeX the X11 key code + * @param modX the mask of ORed X11 modifiers + * @param symX if successful, the X11 symbol will be written here + * @return true if successful, false otherwise + * @see Qt::Key + * @see Sym + */ + KDECORE_EXPORT bool codeXToSym( uchar codeX, uint modX, uint& symX ); + + /** + * @internal + */ + KDECORE_EXPORT QString modToStringInternal( uint mod ); + + /** + * Converts the mask of ORed KKey::ModFlag modifiers to a + * user-readable string. + * @param mod the mask of ORed KKey::ModFlag modifiers + * @return the user-readable string + */ + KDECORE_EXPORT QString modToStringUser( uint mod ); + + /** + * Converts the modifier given as user-readable string + * to KKey::ModFlag modifier, or 0. + * @internal + * @since 3.5 + */ + KDECORE_EXPORT uint stringUserToMod( const QString& mod ); + + /** + * @internal + * Unimplemented? + */ + KDECORE_EXPORT bool stringToSymMod( const QString&, uint& sym, uint& mod ); + + /** + * @internal + * Unimplemented? + */ + KDECORE_EXPORT void keyQtToKeyX( uint keyCombQt, unsigned char *pKeyCodeX, uint *pKeySymX, uint *pKeyModX ); +} + +#endif // !_KKEYSERVER_X11_H diff --git a/extra/kde350/konsole_part.h b/extra/kde350/konsole_part.h new file mode 100644 index 0000000..16028ea --- /dev/null +++ b/extra/kde350/konsole_part.h @@ -0,0 +1,241 @@ +/* -*- C++ -*- + This file is part of the KDE system + Copyright (C) 1999,2000 Boloni Laszlo + + 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. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. + */ + +#ifndef KONSOLE_PART_H +#define KONSOLE_PART_H + +#include +#include + + +#include + +#include + +//#include "schema.h" +//#include "session.h" + +class KInstance; +class konsoleBrowserExtension; +class QPushButton; +class QSpinBox; +class KPopupMenu; +class KActionMenu; +class QCheckBox; +class KRootPixmap; +class KToggleAction; +class KSelectAction; + +namespace KParts { class GUIActivateEvent; } + +class konsoleFactory : public KParts::Factory +{ + Q_OBJECT +public: + konsoleFactory(); + virtual ~konsoleFactory(); + + virtual KParts::Part* createPartObject(QWidget *parentWidget = 0, const char *widgetName = 0, + QObject* parent = 0, const char* name = 0, + const char* classname = "KParts::Part", + const QStringList &args = QStringList()); + + static KInstance *instance(); + + private: + static KInstance *s_instance; + static KAboutData *s_aboutData; +}; + +////////////////////////////////////////////////////////////////////// + +class konsolePart: public KParts::ReadOnlyPart, public TerminalInterface, public ExtTerminalInterface +{ + Q_OBJECT + public: + konsolePart(QWidget *parentWidget, const char *widgetName, QObject * parent, const char *name, const char *classname = 0); + virtual ~konsolePart(); + +signals: + void processExited( KProcess * ); + void receivedData( const QString& s ); + void forkedChild(); + protected: + virtual bool openURL( const KURL & url ); + virtual bool openFile() {return false;} // never used + virtual bool closeURL() {return true;} + virtual void guiActivateEvent( KParts::GUIActivateEvent * event ); + + protected slots: + void showShell(); + +// void doneSession(TESession*); + void sessionDestroyed(); +// void configureRequest(TEWidget*,int,int x,int y); +// void updateTitle(TESession*); + void enableMasterModeConnections(); + + private slots: + void emitOpenURLRequest(const QString &url); + + void readProperties(); + void saveProperties(); + void applyProperties(); + void setSettingsMenuEnabled( bool ); + + void sendSignal(int n); + void closeCurrentSession(); + + void notifySize(int /*columns*/, int /*lines*/); + + void slotToggleFrame(); + void slotSelectScrollbar(); + void slotSelectFont(); + void schema_menu_check(); + void keytab_menu_activated(int item); + void updateSchemaMenu(); + void setSchema(int n); + void pixmap_menu_activated(int item); + void schema_menu_activated(int item); + void slotHistoryType(); + void slotSelectBell(); + void slotSelectLineSpacing(); + void slotBlinkingCursor(); + void slotUseKonsoleSettings(); + void slotWordSeps(); + void slotSetEncoding(); + void biggerFont(); + void smallerFont(); + + void autoShowShell(); + + private: + konsoleBrowserExtension *m_extension; + KURL currentURL; + + void makeGUI(); + void applySettingsToGUI(); + +// void setSchema(ColorSchema* s); + void updateKeytabMenu(); + + bool doOpenStream( const QString& ); + bool doWriteStream( const QByteArray& ); + bool doCloseStream(); + + QWidget* parentWidget; +// TEWidget* te; +// TESession* se; + // ColorSchemaList* colors; + KRootPixmap* rootxpm; + + KActionCollection* actions; + KActionCollection* settingsActions; + + KToggleAction* blinkingCursor; + KToggleAction* showFrame; + KToggleAction* m_useKonsoleSettings; + + KSelectAction* selectBell; + KSelectAction* selectLineSpacing; + KSelectAction* selectScrollbar; + KSelectAction* selectSetEncoding; + + KActionMenu* m_fontsizes; + + KPopupMenu* m_keytab; + KPopupMenu* m_schema; + KPopupMenu* m_signals; + KPopupMenu* m_options; + KPopupMenu* m_popupMenu; + + QFont defaultFont; + + QString pmPath; // pixmap path + QString s_schema; + QString s_kconfigSchema; + QString s_word_seps; // characters that are considered part of a word + + bool b_framevis:1; + bool b_histEnabled:1; + bool b_useKonsoleSettings:1; + bool b_autoDestroy:1; + bool b_autoStartShell:1; + + int curr_schema; // current schema no + int n_bell; + int n_keytab; + int n_render; + int n_scroll; + unsigned m_histSize; + bool m_runningShell; + bool m_streamEnabled; + int n_encoding; + +public: + // these are the implementations for the TermEmuInterface + // functions... + void startProgram( const QString& program, + const QStrList& args ); + void newSession(); + void showShellInDir( const QString& dir ); + void sendInput( const QString& text ); + void setAutoDestroy( bool ); + void setAutoStartShell( bool ); +}; + +////////////////////////////////////////////////////////////////////// + +/*class HistoryTypeDialog : public KDialogBase +{ + Q_OBJECT +public: + HistoryTypeDialog(const HistoryType& histType, + unsigned int histSize, + QWidget *parent); + +public slots: + void slotDefault(); + void slotSetUnlimited(); + void slotHistEnable(bool); + + unsigned int nbLines() const; + bool isOn() const; + +protected: + QCheckBox* m_btnEnable; + QSpinBox* m_size; + QPushButton* m_setUnlimited; +};*/ + +////////////////////////////////////////////////////////////////////// + +class konsoleBrowserExtension : public KParts::BrowserExtension +{ + Q_OBJECT + friend class konsolePart; + public: + konsoleBrowserExtension(konsolePart *parent); + virtual ~konsoleBrowserExtension(); + + void emitOpenURLRequest(const KURL &url); +}; + +#endif diff --git a/extra/kde350/kpanelmenu.h b/extra/kde350/kpanelmenu.h new file mode 100644 index 0000000..61ec7f1 --- /dev/null +++ b/extra/kde350/kpanelmenu.h @@ -0,0 +1,182 @@ +/***************************************************************** + +Copyright (c) 1996-2000 the kicker authors. See file AUTHORS. + (c) 2001 Michael Goffioul + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN +AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +******************************************************************/ + +#ifndef __KPANELMENU_H__ +#define __KPANELMENU_H__ + +#include +#include +#include + +class KPanelMenuPrivate; + +/** + * @short Base class to build dynamically loaded menu entries for the K-menu, or the panel. + * + * This class allows to build menu entries that will be dynamically added either to + * the K-menu, or to the panel as a normal button. These dynamic menus are located + * in shared libraries that will be loaded at runtime by Kicker (the %KDE panel). + * + * To build such a menu, you have to inherit this class and implement the pure virtual + * functions #initialize() and slotExec(). You also have to provide a factory + * object in your library, see KLibFactory. This factory is only used to construct + * the menu object. + * + * Finally, you also have to provide a desktop file describing your dynamic menu. The + * relevant entries are: Name, Comment, Icon and X-KDE-Library (which contains the + * library name without any extension). This desktop file has to be installed in + * $KDEDIR/share/apps/kicker/menuext/. + * + * @author The kicker maintainers, Michael Goffioul + */ +class KDEUI_EXPORT KPanelMenu : public KPopupMenu +{ + Q_OBJECT + +public: + /** + * Construct a KPanelMenu object. This is the normal constructor to use when + * building extrernal menu entries. + */ + KPanelMenu(QWidget *parent=0, const char *name=0); + /** + * Constructor used internally by Kicker. You don't really want to use it. + * @param startDir a directory to associate with this menu + * @param parent parent object + * @param name name of the object + * @see path(), setPath() + */ + KPanelMenu(const QString &startDir, QWidget *parent=0, const char *name=0); + /** + * Destructor. + */ + virtual ~KPanelMenu(); + + /** + * Get the directory path associated with this menu, or QString::null if + * there's no such associated path. + * @return the associated directory path + * @see setPath() + */ + const QString& path() const; + /** + * Set a directory path to be associated with this menu. + * @param p the directory path + * @see path() + */ + void setPath(const QString &p); + /** + * Tell if the menu has been initialized, that is it already contains items. + * This is useful when you need to know if you have to clear the menu, or to + * fill it. + * @return the initial state + * @see setInitialized(), initialize() + */ + bool initialized() const; + /** + * Set the initial state. Set it to true when you menu is filled with the items + * you want. + * @param on the initial state + * @see initialized(), initialize() + */ + void setInitialized(bool on); + + /** + * Disable the automatic clearing of the menu. Kicker uses a cache system for + * its menus. After a specific configurable delay, the menu will be cleared. + * Use this function if you want to disable kicker's cache system, and avoid + * the clearing of your menu. + */ + void disableAutoClear(); + +public slots: + /** + * Reinitialize the menu: the menu is first cleared, the initial state is set + * to false, and finally #initialize() is called. Use this if you want to + * refill your menu immediately. + */ + void reinitialize(); + /** + * Deinitialize the menu: the menu is cleared and the initialized state is set to + * false. #initialize() is NOT called. It will be called before the menu is + * next shown, however. Use this slot if you want a delayed reinitialization. + * @since 3.1 + */ + void deinitialize(); + +protected slots: + /** + * This slot is called just before the menu is shown. This allows your menu + * to update itself if needed. However you should instead re-implement + * #initialize to provide this feature. This function is responsible for + * the cache system handling, so if you re-implement it, you should call + * the base function also. Calls #initialize(). + * @see disableAutoClear() + */ + virtual void slotAboutToShow(); + /** + * This is slot is called when an item from the menu has been selected. Your + * applet is then supposed to perform some action. You must re-implement this + * function. + * @param id the ID associated with the selected item + */ + virtual void slotExec(int id) = 0; + /** + * This slots is called to initialize the menu. It is called automatically by + * slotAboutToShow(). By re-implementing this functions, you can reconstruct + * the menu before it is being shown. At the end of this function, you should + * call setInitialize() with true to tell the system that the menu is OK. + * You applet must re-implement this function. + * @see slotAboutToShow(), initialized(), setInitialized() + */ + virtual void initialize() = 0; + /** + * Clears the menu, and update the initial state accordingly. + * @see initialized() + */ + void slotClear(); + +protected: + /** + * Re-implemented for internal reasons. + */ + virtual void hideEvent(QHideEvent *ev); + /** + * For internal use only. Used by constructors. + */ + void init(const QString& path = QString::null); + +protected: + virtual void virtual_hook( int id, void* data ); +private: + void internalInitialize(); + KPanelMenuPrivate *d; +}; + +#define K_EXPORT_KICKER_MENUEXT( libname, classname ) \ + K_EXPORT_COMPONENT_FACTORY( \ + kickermenu_##libname, \ + KGenericFactory("libkickermenu_" #libname) ) + +#endif diff --git a/extra/kde350/krecentdirs.h b/extra/kde350/krecentdirs.h new file mode 100644 index 0000000..078efcc --- /dev/null +++ b/extra/kde350/krecentdirs.h @@ -0,0 +1,70 @@ +/* -*- c++ -*- + * Copyright (C)2000 Waldo Bastian + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * + */ +#ifndef __KRECENTDIRS_H +#define __KRECENTDIRS_H + +#include + +#include + +/** + * The goal of this class is to make sure that, when the user needs to + * specify a file via the file selection dialog, this dialog will start + * in the directory most likely to contain the desired files. + * + * This works as follows: Each time the file selection dialog is + * shown, the programmer can specify a "file-class". The file-dialog will + * then start with the directory associated with this file-class. When + * the dialog closes, the directory currently shown in the file-dialog + * will be associated with the file-class. + * + * A file-class can either start with ':' or with '::'. If it starts with + * a single ':' the file-class is specific to the current application. + * If the file-class starts with '::' it is global to all applications. + */ +class KIO_EXPORT KRecentDirs +{ +public: + /** + * Returns a list of directories associated with this file-class. + * The most recently used directory is at the front of the list. + */ + static QStringList list(const QString &fileClass); + + /** + * Returns the most recently used directory accociated with this file-class. + */ + static QString dir(const QString &fileClass); + + /** + * Associates @p directory with @p fileClass + */ + static void add(const QString &fileClass, const QString &directory); +}; + +#endif diff --git a/extra/kde350/ksharedptr.h b/extra/kde350/ksharedptr.h new file mode 100644 index 0000000..ada0841 --- /dev/null +++ b/extra/kde350/ksharedptr.h @@ -0,0 +1,175 @@ +/* This file is part of the KDE libraries + Copyright (c) 1999 Waldo Bastian + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License version 2 as published by the Free Software Foundation. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ +#ifndef KSharedPTR_H +#define KSharedPTR_H + +#include "kdelibs_export.h" + +/** + * Reference counting for shared objects. If you derive your object + * from this class, then you may use it in conjunction with + * KSharedPtr to control the lifetime of your object. + * + * Specifically, all classes that derive from KShared have an internal + * counter keeping track of how many other objects have a reference to + * their object. If used with KSharedPtr, then your object will + * not be deleted until all references to the object have been + * released. + * + * You should probably not ever use any of the methods in this class + * directly -- let the KSharedPtr take care of that. Just derive + * your class from KShared and forget about it. + * + * @author Waldo Bastian + */ +class KDECORE_EXPORT KShared { +public: + /** + * Standard constructor. This will initialize the reference count + * on this object to 0. + */ + KShared() : count(0) { } + + /** + * Copy constructor. This will @em not actually copy the objects + * but it will initialize the reference count on this object to 0. + */ + KShared( const KShared & ) : count(0) { } + + /** + * Overloaded assignment operator. + */ + KShared &operator=(const KShared & ) { return *this; } + + /** + * Increases the reference count by one. + */ + void _KShared_ref() const { count++; } + + /** + * Releases a reference (decreases the reference count by one). If + * the count goes to 0, this object will delete itself. + */ + void _KShared_unref() const { if (!--count) delete this; } + + /** + * Return the current number of references held. + * + * @return Number of references + */ + int _KShared_count() const { return count; } + +protected: + virtual ~KShared() { } +private: + mutable int count; +}; + +/** + * Can be used to control the lifetime of an object that has derived + * KShared. As long a someone holds a KSharedPtr on some KShared + * object it won't become deleted but is deleted once its reference + * count is 0. This struct emulates C++ pointers virtually perfectly. + * So just use it like a simple C++ pointer. + * + * KShared and KSharedPtr are preferred over QShared / QSharedPtr + * since they are more safe. + * + * WARNING: Please note that this class template provides an implicit + * conversion to T*. Do *not* change this pointer or the pointee (don't + * call delete on it, for instance) behind KSharedPtr's back. + * + * @author Waldo Bastian + */ +template< class T > +class KSharedPtr +{ +public: +/** + * Creates a null pointer. + */ + KSharedPtr() + : ptr(0) { } + /** + * Creates a new pointer. + * @param t the pointer + */ + KSharedPtr( T* t ) + : ptr(t) { if ( ptr ) ptr->_KShared_ref(); } + + /** + * Copies a pointer. + * @param p the pointer to copy + */ + KSharedPtr( const KSharedPtr& p ) + : ptr(p.ptr) { if ( ptr ) ptr->_KShared_ref(); } + + /** + * Unreferences the object that this pointer points to. If it was + * the last reference, the object will be deleted. + */ + ~KSharedPtr() { if ( ptr ) ptr->_KShared_unref(); } + + KSharedPtr& operator= ( const KSharedPtr& p ) { + if ( ptr == p.ptr ) return *this; + if ( ptr ) ptr->_KShared_unref(); + ptr = p.ptr; + if ( ptr ) ptr->_KShared_ref(); + return *this; + } + KSharedPtr& operator= ( T* p ) { + if ( ptr == p ) return *this; + if ( ptr ) ptr->_KShared_unref(); + ptr = p; + if ( ptr ) ptr->_KShared_ref(); + return *this; + } + bool operator== ( const KSharedPtr& p ) const { return ( ptr == p.ptr ); } + bool operator!= ( const KSharedPtr& p ) const { return ( ptr != p.ptr ); } + bool operator== ( const T* p ) const { return ( ptr == p ); } + bool operator!= ( const T* p ) const { return ( ptr != p ); } + bool operator!() const { return ( ptr == 0 ); } + operator T*() const { return ptr; } + + /** + * Returns the pointer. + * @return the pointer + */ + T* data() { return ptr; } + + /** + * Returns the pointer. + * @return the pointer + */ + const T* data() const { return ptr; } + + const T& operator*() const { return *ptr; } + T& operator*() { return *ptr; } + const T* operator->() const { return ptr; } + T* operator->() { return ptr; } + + /** + * Returns the number of references. + * @return the number of references + */ + int count() const { return ptr->_KShared_count(); } // for debugging purposes +private: + T* ptr; +}; + +#endif diff --git a/extra/kde350/ksycocafactory.h b/extra/kde350/ksycocafactory.h new file mode 100644 index 0000000..65bb9d9 --- /dev/null +++ b/extra/kde350/ksycocafactory.h @@ -0,0 +1,143 @@ +/* This file is part of the KDE libraries + * Copyright (C) 1999 Waldo Bastian + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License version 2 as published by the Free Software Foundation; + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public License + * along with this library; see the file COPYING.LIB. If not, write to + * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA. + **/ + +#ifndef __ksycocafactory_h__ +#define __ksycocafactory_h__ + +#include "ksycocatype.h" +#include "ksycocaentry.h" + +#include +#include +class KSycoca; +class QStringList; +class QString; +class KSycocaDict; +class KSycocaResourceList; + +typedef QDict KSycocaEntryDict; + +/** + * @internal + * Base class for sycoca factories + */ +class KDECORE_EXPORT KSycocaFactory +{ +public: + virtual KSycocaFactoryId factoryId() const = 0; + +protected: // virtual class + /** + * Create a factory which can be used to lookup from/create a database + * (depending on KSycoca::isBuilding()) + */ + KSycocaFactory( KSycocaFactoryId factory_id ); + +public: + virtual ~KSycocaFactory(); + + /** + * @return the position of the factory in the sycoca file + */ + int offset() { return mOffset; } + + /** + * @return the dict, for special use by KBuildSycoca + */ + KSycocaEntryDict * entryDict() { return m_entryDict; } + + /** + * Construct an entry from a config file. + * To be implemented in the real factories. + */ + virtual KSycocaEntry *createEntry(const QString &file, const char *resource) = 0; + + /** + * Add an entry + */ + virtual void addEntry(KSycocaEntry *newEntry, const char *resource); + + /** + * Remove an entry + * Not very fast, use with care. O(N) + */ + void removeEntry(KSycocaEntry *newEntry); + + /** + * Read an entry from the database + */ + virtual KSycocaEntry *createEntry(int offset)=0; + + /** + * Get a list of all entries from the database. + */ + KSycocaEntry::List allEntries(); + + /** + * Saves all entries it maintains as well as index files + * for these entries to the stream 'str'. + * + * Also sets mOffset to the starting position. + * + * The stream is positioned at the end of the last index. + * + * Don't forget to call the parent first when you override + * this function. + */ + virtual void save(QDataStream &str); + + /** + * Writes out a header to the stream 'str'. + * The baseclass positions the stream correctly. + * + * Don't forget to call the parent first when you override + * this function. + */ + virtual void saveHeader(QDataStream &str); + + /** + * @return the resources for which this factory is responsible. + */ + virtual const KSycocaResourceList * resourceList() const { return m_resourceList; } + +private: + int mOffset; + +protected: + int m_sycocaDictOffset; + int m_beginEntryOffset; + int m_endEntryOffset; + QDataStream *m_str; + + KSycocaResourceList *m_resourceList; + KSycocaEntryDict *m_entryDict; + KSycocaDict *m_sycocaDict; +protected: + virtual void virtual_hook( int id, void* data ); +}; + +/** This, instead of a typedef, allows to declare "class ..." in header files + * @internal + */ +class KDECORE_EXPORT KSycocaFactoryList : public QPtrList +{ +public: + KSycocaFactoryList() { } +}; + +#endif diff --git a/extra/kde350/ktoolbarbutton.h b/extra/kde350/ktoolbarbutton.h new file mode 100644 index 0000000..7526f02 --- /dev/null +++ b/extra/kde350/ktoolbarbutton.h @@ -0,0 +1,330 @@ +/* This file is part of the KDE libraries + Copyright (C) 1997, 1998 Stephan Kulow (coolo@kde.org) + (C) 1997, 1998 Sven Radej (radej@kde.org) + (C) 1997, 1998 Mark Donohoe (donohoe@kde.org) + (C) 1997, 1998 Matthias Ettrich (ettrich@kde.org) + (C) 2000 Kurt Granroth (granroth@kde.org) + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License version 2 as published by the Free Software Foundation. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef _KTOOLBARBUTTON_H +#define _KTOOLBARBUTTON_H + +#include +#include +#include +#include +#include + +class KToolBar; +class KToolBarButtonPrivate; +class KInstance; +class QEvent; +class QPopupMenu; +class QPainter; + +/** + * A toolbar button. This is used internally by KToolBar, use the + * KToolBar methods instead. + * @internal + */ +class KDEUI_EXPORT KToolBarButton : public QToolButton +{ + Q_OBJECT + +public: + /** + * Construct a button with an icon loaded by the button itself. + * This will trust the button to load the correct icon with the + * correct size. + * + * @param icon Name of icon to load (may be absolute or relative) + * @param id Id of this button + * @param parent This button's parent + * @param name This button's internal name + * @param txt This button's text (in a tooltip or otherwise) + * @param _instance the instance to use for this button + */ + KToolBarButton(const QString& icon, int id, QWidget *parent, + const char *name=0L, const QString &txt=QString::null, + KInstance *_instance = KGlobal::instance()); + + /** + * Construct a button with an existing pixmap. It is not + * recommended that you use this as the internal icon loading code + * will almost always get it "right". + * + * @param pixmap Name of icon to load (may be absolute or relative) + * @param id Id of this button + * @param parent This button's parent + * @param name This button's internal name + * @param txt This button's text (in a tooltip or otherwise) + */ + KToolBarButton(const QPixmap& pixmap, int id, QWidget *parent, + const char *name=0L, const QString &txt=QString::null); + + /** + * Construct a separator button + * + * @param parent This button's parent + * @param name This button's internal name + */ + KToolBarButton(QWidget *parent=0L, const char *name=0L); + + /** + * Standard destructor + */ + ~KToolBarButton(); + +#ifndef KDE_NO_COMPAT + /** + * @deprecated + * Set the pixmap directly for this button. This pixmap should be + * the active one... the dimmed and disabled pixmaps are constructed + * based on this one. However, don't use this function unless you + * are positive that you don't want to use setIcon. + * + * @param pixmap The active pixmap + */ + // this one is from QButton, so #ifdef-ing it out doesn't break BC + virtual void setPixmap(const QPixmap &pixmap) KDE_DEPRECATED; + + /** + * @deprecated + * Force the button to use this pixmap as the default one rather + * then generating it using effects. + * + * @param pixmap The pixmap to use as the default (normal) one + */ + void setDefaultPixmap(const QPixmap& pixmap) KDE_DEPRECATED; + + /** + * @deprecated + * Force the button to use this pixmap when disabled one rather then + * generating it using effects. + * + * @param pixmap The pixmap to use when disabled + */ + void setDisabledPixmap(const QPixmap& pixmap) KDE_DEPRECATED; +#endif + + /** + * Set the text for this button. The text will be either used as a + * tooltip (IconOnly) or will be along side the icon + * + * @param text The button (or tooltip) text + */ + virtual void setText(const QString &text); + + /** + * Set the icon for this button. The icon will be loaded internally + * with the correct size. This function is preferred over setIconSet + * + * @param icon The name of the icon + */ + virtual void setIcon(const QString &icon); + + /// @since 3.1 + virtual void setIcon( const QPixmap &pixmap ) + { QToolButton::setIcon( pixmap ); } + + /** + * Set the pixmaps for this toolbar button from a QIconSet. + * If you call this you don't need to call any of the other methods + * that set icons or pixmaps. + * @param iconset The iconset to use + */ + virtual void setIconSet( const QIconSet &iconset ); + +#ifndef KDE_NO_COMPAT + /** + * @deprecated + * Set the active icon for this button. The pixmap itself is loaded + * internally based on the icon size... .. the disabled and default + * pixmaps, however will only be constructed if generate is + * true. This function is preferred over setPixmap + * + * @param icon The name of the active icon + * @param generate If true, then the other icons are automagically + * generated from this one + */ + KDE_DEPRECATED void setIcon(const QString &icon, bool generate ) { Q_UNUSED(generate); setIcon( icon ); } + + /** + * @deprecated + * Force the button to use this icon as the default one rather + * then generating it using effects. + * + * @param icon The icon to use as the default (normal) one + */ + void setDefaultIcon(const QString& icon) KDE_DEPRECATED; + + /** + * @deprecated + * Force the button to use this icon when disabled one rather then + * generating it using effects. + * + * @param icon The icon to use when disabled + */ + void setDisabledIcon(const QString& icon) KDE_DEPRECATED; +#endif + + /** + * Turn this button on or off + * + * @param flag true or false + */ + void on(bool flag = true); + + /** + * Toggle this button + */ + void toggle(); + + /** + * Turn this button into a toggle button or disable the toggle + * aspects of it. This does not toggle the button itself. + * Use toggle() for that. + * + * @param toggle true or false + */ + void setToggle(bool toggle = true); + + /** + * Return a pointer to this button's popup menu (if it exists) + */ + QPopupMenu *popup(); + + /** + * Returns the button's id. + * @since 3.2 + */ + int id() const; + + /** + * Give this button a popup menu. There will not be a delay when + * you press the button. Use setDelayedPopup if you want that + * behavior. + * + * @param p The new popup menu + * @param unused Has no effect - ignore it. + */ + void setPopup (QPopupMenu *p, bool unused = false); + + /** + * Gives this button a delayed popup menu. + * + * This function allows you to add a delayed popup menu to the button. + * The popup menu is then only displayed when the button is pressed and + * held down for about half a second. + * + * @param p the new popup menu + * @param unused Has no effect - ignore it. + */ + void setDelayedPopup(QPopupMenu *p, bool unused = false); + + /** + * Turn this button into a radio button + * + * @param f true or false + */ + void setRadio(bool f = true); + + /** + * Toolbar buttons naturally will assume the global styles + * concerning icons, icons sizes, etc. You can use this function to + * explicitly turn this off, if you like. + * + * @param no_style Will disable styles if true + */ + void setNoStyle(bool no_style = true); + +signals: + /** + * Emitted when the toolbar button is clicked (with LMB or MMB) + */ + void clicked(int); + /** + * Emitted when the toolbar button is clicked (with any mouse button) + * @param state makes it possible to find out which button was pressed, + * and whether any keyboard modifiers were held. + * @since 3.4 + */ + void buttonClicked(int, Qt::ButtonState state); + void doubleClicked(int); + void pressed(int); + void released(int); + void toggled(int); + void highlighted(int, bool); + +public slots: + /** + * This slot should be called whenever the toolbar mode has + * potentially changed. This includes such events as text changing, + * orientation changing, etc. + */ + void modeChange(); + virtual void setTextLabel(const QString&, bool tipToo); + +protected: + bool event(QEvent *e); + void paletteChange(const QPalette &); + void leaveEvent(QEvent *e); + void enterEvent(QEvent *e); + void drawButton(QPainter *p); + bool eventFilter (QObject *o, QEvent *e); + /// @since 3.4 + void mousePressEvent( QMouseEvent * ); + /// @since 3.4 + void mouseReleaseEvent( QMouseEvent * ); + void showMenu(); + QSize sizeHint() const; + QSize minimumSizeHint() const; + QSize minimumSize() const; + + /// @since 3.1 + bool isRaised() const; + /// @since 3.1 + bool isActive() const; + /// @since 3.1 + int iconTextMode() const; + +protected slots: + void slotClicked(); + void slotPressed(); + void slotReleased(); + void slotToggled(); + void slotDelayTimeout(); + +protected: + virtual void virtual_hook( int id, void* data ); +private: + KToolBarButtonPrivate *d; +}; + +/** +* List of KToolBarButton objects. +* @internal +* @version $Id: ktoolbarbutton.h 465272 2005-09-29 09:47:40Z mueller $ +*/ +class KDEUI_EXPORT KToolBarButtonList : public QIntDict +{ +public: + KToolBarButtonList(); + ~KToolBarButtonList() {} +}; + +#endif diff --git a/extra/kde350/kurifilter.h b/extra/kde350/kurifilter.h new file mode 100644 index 0000000..355ce38 --- /dev/null +++ b/extra/kde350/kurifilter.h @@ -0,0 +1,647 @@ +/* + * This file is part of the KDE libraries + * Copyright (C) 2000-2001,2003 Dawit Alemayehu + * + * Original author + * Copyright (C) 2000 Yves Arrouye + * + * + * This library 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. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public License + * along with this library; see the file COPYING.LIB. If not, write to + * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA. + **/ + +#ifndef __kurifilter_h__ +#define __kurifilter_h__ + +#include +#include +#include + +#include + +#ifdef Q_OS_WIN +#undef ERROR +#endif + +class KURIFilterPrivate; +class KURIFilterDataPrivate; + +class KCModule; + +/** +* A basic message object used for exchanging filtering +* information between the filter plugins and the application +* requesting the filtering service. +* +* Use this object if you require a more detailed information +* about the URI you want to filter. Any application can create +* an instance of this class and send it to KURIFilter to +* have the plugins fill out all possible information about the +* URI. +* +* \b Example +* +* \code +* QString text = "kde.org"; +* KURIFilterData d = text; +* bool filtered = KURIFilter::self()->filter( d ); +* cout << "URL: " << text.latin1() << endl +* << "Filtered URL: " << d.uri().url().latin1() << endl +* << "URI Type: " << d.uriType() << endl +* << "Was Filtered: " << filtered << endl; +* \endcode +* +* The above code should yield the following output: +* \code +* URI: kde.org +* Filtered URI: http://kde.org +* URI Type: 0 <== means NET_PROTOCOL +* Was Filtered: 1 <== means the URL was successfully filtered +* \endcode +* +* @short A message object for exchanging filtering URI info. +* @author Dawit Alemayehu +*/ + +class KIO_EXPORT KURIFilterData +{ +friend class KURIFilterPlugin; + +public: + /** + * Describes the type of the URI that was filtered. + * Here is a brief description of the types: + * + * @li NET_PROTOCOL - Any network protocol: http, ftp, nttp, pop3, etc... + * @li LOCAL_FILE - A local file whose executable flag is not set + * @li LOCAL_DIR - A local directory + * @li EXECUTABLE - A local file whose executable flag is set + * @li HELP - A man or info page + * @li SHELL - A shell executable (ex: echo "Test..." >> ~/testfile) + * @li BLOCKED - A URI that should be blocked/filtered (ex: ad filtering) + * @li ERROR - An incorrect URI (ex: "~johndoe" when user johndoe + * does not exist in that system ) + * @li UNKNOWN - A URI that is not identified. Default value when + * a KURIFilterData is first created. + */ + enum URITypes { NET_PROTOCOL=0, LOCAL_FILE, LOCAL_DIR, EXECUTABLE, HELP, SHELL, BLOCKED, ERROR, UNKNOWN }; + + /** + * Default constructor. + * + * Creates a URIFilterData object. + */ + KURIFilterData() { init(); } + + /** + * Creates a URIFilterData object from the given URL. + * + * @param url is the URL to be filtered. + */ + KURIFilterData( const KURL& url ) { init( url); } + + /** + * Creates a URIFilterData object from the given string. + * + * @param url is the string to be filtered. + */ + KURIFilterData( const QString& url ) { init( url ); } + + /** + * Copy constructor. + * + * Creates a URIFilterData object from another + * URI filter data object. + * + * @param data the uri filter data to be copied. + */ + KURIFilterData( const KURIFilterData& data); + + /** + * Destructor. + */ + ~KURIFilterData(); + + /** + * This method has been deprecated and will always return + * true. You should instead use the result from the + * KURIFilter::filterURI() calls. + * + * @deprecated + */ + KDE_DEPRECATED bool hasBeenFiltered() const { return true; } + + /** + * Returns the filtered or the original URL. + * + * This function returns the filtered url if one + * of the plugins successfully filtered the original + * URL. Otherwise, it returns the original URL. + * See hasBeenFiltered() and + * + * @return the filtered or original url. + */ + KURL uri() const { return m_pURI; } + + /** + * Returns an error message. + * + * This functions returns the error message set + * by the plugin whenever the uri type is set to + * KURIFilterData::ERROR. Otherwise, it returns + * a QString::null. + * + * @return the error message or a NULL when there is none. + */ + QString errorMsg() const { return m_strErrMsg; } + + /** + * Returns the URI type. + * + * This method always returns KURIFilterData::UNKNOWN + * if the given URL was not filtered. + * @return the type of the URI + */ + URITypes uriType() const { return m_iType; } + + /** + * Sets the URL to be filtered. + * + * Use this function to set the string to be + * filtered when you construct an empty filter + * object. + * + * @param url the string to be filtered. + */ + void setData( const QString& url ) { init( url ); } + + /** + * Same as above except the argument is a URL. + * + * Use this function to set the string to be + * filtered when you construct an empty filter + * object. + * + * @param url the URL to be filtered. + */ + void setData( const KURL& url ) { init( url ); } + + /** + * Sets the absolute path to be used whenever the supplied + * data is a relative local URL. + * + * NOTE: This function should only be used for local resources, + * i.e. the "file:/" protocol. It is useful for specifying the + * absolute path in cases where the actual URL might be relative. + * meta object. If deriving the path from a KURL, make sure you + * set the argument for this function to the result of calling + * path () instead of url (). + * + * @param abs_path the abolute path to the local resource. + * @return true if absolute path is successfully set. Otherwise, false. + */ + bool setAbsolutePath( const QString& abs_path ); + + /** + * Returns the absolute path if one has already been set. + * @return the absolute path, or QString::null + * @see hasAbsolutePath() + */ + QString absolutePath() const; + + /** + * Checks whether the supplied data had an absolute path. + * @return true if the supplied data has an absolute path + * @see absolutePath() + */ + bool hasAbsolutePath() const; + + /** + * Returns the command line options and arguments for a + * local resource when present. + * + * @return options and arguments when present, otherwise QString::null + */ + QString argsAndOptions() const; + + /** + * Checks whether the current data is a local resource with + * command line options and arguments. + * @return true if the current data has command line options and arguments + */ + bool hasArgsAndOptions() const; + + /** + * Returns the name of the icon that matches + * the current filtered URL. + * + * NOTE that this function will return a NULL + * string by default and when no associated icon + * is found. + * + * @return the name of the icon associated with the resource, + * or QString::null if not found + */ + QString iconName(); + + /** + * Check whether the provided uri is executable or not. + * + * Setting this to false ensures that typing the name of + * an executable does not start that application. This is + * useful in the location bar of a browser. The default + * value is true. + * + * @since 3.2 + */ + void setCheckForExecutables (bool check); + + /** + * @return true if the filters should attempt to check whether the + * supplied uri is an executable. False otherwise. + * + * @since 3.2 + */ + bool checkForExecutables() const { return m_bCheckForExecutables; } + + /** + * @return the string as typed by the user, before any URL processing is done + * @since 3.2 + */ + QString typedString() const; + + /** + * Overloaded assigenment operator. + * + * This function allows you to easily assign a KURL + * to a KURIFilterData object. + * + * @return an instance of a KURIFilterData object. + */ + KURIFilterData& operator=( const KURL& url ) { init( url ); return *this; } + + /** + * Overloaded assigenment operator. + * + * This function allows you to easily assign a QString + * to a KURIFilterData object. + * + * @return an instance of a KURIFilterData object. + */ + KURIFilterData& operator=( const QString& url ) { init( url ); return *this; } + +protected: + + /** + * Initializes the KURIFilterData on construction. + * @param url the URL to initialize the object with + */ + void init( const KURL& url); + + /** + * Initializes the KURIFilterData on construction. + * @param url the URL to initialize the object with + */ + void init( const QString& url = QString::null ); + +private: + bool m_bCheckForExecutables; + bool m_bChanged; + + QString m_strErrMsg; + QString m_strIconName; + + KURL m_pURI; + URITypes m_iType; + KURIFilterDataPrivate *d; +}; + + +/** + * Base class for URI filter plugins. + * + * This class applies a single filter to a URI. All plugins designed + * to provide URI filtering service should inherit from this abstract + * class and provide a concrete implementation. + * + * All inheriting classes need to implement the pure virtual function + * filterURI. + * + * @short Abstract class for URI filter plugins. + */ +class KIO_EXPORT KURIFilterPlugin : public QObject +{ + Q_OBJECT + +public: + + /** + * Constructs a filter plugin with a given name and + * priority. + * + * @param parent the parent object, or 0 for no parent + * @param name the name of the plugin, or 0 for no name + * @param pri the priority of the plugin. + */ + KURIFilterPlugin( QObject *parent = 0, const char *name = 0, double pri = 1.0 ); + + /** + * Returns the filter's name. + * + * @return A string naming the filter. + */ + virtual QString name() const { return m_strName; } + + /** + * Returns the filter's priority. + * + * Each filter has an assigned priority, a float from 0 to 1. Filters + * with the lowest priority are first given a chance to filter a URI. + * + * @return The priority of the filter. + */ + virtual double priority() const { return m_dblPriority; } + + /** + * Filters a URI. + * + * @param data the URI data to be filtered. + * @return A boolean indicating whether the URI has been changed. + */ + virtual bool filterURI( KURIFilterData& data ) const = 0; + + /** + * Creates a configuration module for the filter. + * + * It is the responsibility of the caller to delete the module + * once it is not needed anymore. + * + * @return A configuration module, 0 if the filter isn't configurable. + */ + virtual KCModule *configModule( QWidget*, const char* ) const { return 0; } + + /** + * Returns the name of the configuration module for the filter. + * + * @return the name of a configuration module or QString::null if none. + */ + virtual QString configName() const { return name(); } + +protected: + + /** + * Sets the the URL in @p data to @p uri. + */ + void setFilteredURI ( KURIFilterData& data, const KURL& uri ) const; + + /** + * Sets the error message in @p data to @p errormsg. + */ + void setErrorMsg ( KURIFilterData& data, const QString& errmsg ) const { + data.m_strErrMsg = errmsg; + } + + /** + * Sets the URI type in @p data to @p type. + */ + void setURIType ( KURIFilterData& data, KURIFilterData::URITypes type) const { + data.m_iType = type; + data.m_bChanged = true; + } + + /** + * Sets the arguments and options string in @p data + * to @p args if any were found during filterting. + */ + void setArguments( KURIFilterData& data, const QString& args ) const; + + QString m_strName; + double m_dblPriority; + +protected: + virtual void virtual_hook( int id, void* data ); +private: + class KURIFilterPluginPrivate *d; +}; + + +/** + * A list of filter plugins. + */ +class KIO_EXPORT KURIFilterPluginList : public QPtrList +{ +public: + virtual int compareItems(Item a, Item b) + { + double diff = ((KURIFilterPlugin *) a)->priority() - ((KURIFilterPlugin *) b)->priority(); + return diff < 0 ? -1 : (diff > 0 ? 1 : 0); + } + +private: + KURIFilterPrivate *d; + +}; + +/** + * Manages the filtering of URIs. + * + * The intention of this plugin class is to allow people to extend the + * functionality of KURL without modifying it directly. This way KURL will + * remain a generic parser capable of parsing any generic URL that adheres + * to specifications. + * + * The KURIFilter class applies a number of filters to a URI and returns the + * filtered version whenever possible. The filters are implemented using + * plugins to provide easy extensibility of the filtering mechanism. New + * filters can be added in the future by simply inheriting from + * KURIFilterPlugin and implementing the KURIFilterPlugin::filterURI + * method. + * + * Use of this plugin-manager class is straight forward. Since it is a + * singleton object, all you have to do is obtain an instance by doing + * @p KURIFilter::self() and use any of the public member functions to + * preform the filtering. + * + * \b Example + * + * To simply filter a given string: + * + * \code + * bool filtered = KURIFilter::self()->filterURI( "kde.org" ); + * \endcode + * + * You can alternatively use a KURL: + * + * \code + * KURL url = "kde.org"; + * bool filtered = KURIFilter::self()->filterURI( url ); + * \endcode + * + * If you have a constant string or a constant URL, simply invoke the + * corresponding function to obtain the filtered string or URL instead + * of a boolean flag: + * + * \code + * QString u = KURIFilter::self()->filteredURI( "kde.org" ); + * \endcode + * + * You can also restrict the filter(s) to be used by supplying + * the name of the filter(s) to use. By defualt all available + * filters will be used. To use specific filters, add the names + * of the filters you want to use to a QStringList and invoke + * the appropriate filtering function. The examples below show + * the use of specific filters. The first one uses a single + * filter called kshorturifilter while the second example uses + * multiple filters: + * + * \code + * QString text = "kde.org"; + * bool filtered = KURIFilter::self()->filterURI( text, "kshorturifilter" ); + * \endcode + * + * \code + * QStringList list; + * list << "kshorturifilter" << "localdomainfilter"; + * bool filtered = KURIFilter::self()->filterURI( text, list ); + * \endcode + * + * KURIFilter also allows richer data exchange through a simple + * meta-object called @p KURIFilterData. Using this meta-object + * you can find out more information about the URL you want to + * filter. See KURIFilterData for examples and details. + * + * @short Filters a given URL into its proper format whenever possible. + */ + +class KIO_EXPORT KURIFilter +{ +public: + /** + * Destructor + */ + ~KURIFilter (); + + /** + * Returns an instance of KURIFilter. + */ + static KURIFilter* self(); + + /** + * Filters the URI given by the object URIFilterData. + * + * The given URL is filtered based on the specified list of filters. + * If the list is empty all available filters would be used. + * + * @param data object that contains the URI to be filtered. + * @param filters specify the list of filters to be used. + * + * @return a boolean indicating whether the URI has been changed + */ + bool filterURI( KURIFilterData& data, const QStringList& filters = QStringList() ); + + /** + * Filters the URI given by the URL. + * + * The given URL is filtered based on the specified list of filters. + * If the list is empty all available filters would be used. + * + * @param uri the URI to filter. + * @param filters specify the list of filters to be used. + * + * @return a boolean indicating whether the URI has been changed + */ + bool filterURI( KURL &uri, const QStringList& filters = QStringList() ); + + /** + * Filters a string representing a URI. + * + * The given URL is filtered based on the specified list of filters. + * If the list is empty all available filters would be used. + * + * @param uri The URI to filter. + * @param filters specify the list of filters to be used. + * + * @return a boolean indicating whether the URI has been changed + */ + bool filterURI( QString &uri, const QStringList& filters = QStringList() ); + + /** + * Returns the filtered URI. + * + * The given URL is filtered based on the specified list of filters. + * If the list is empty all available filters would be used. + * + * @param uri The URI to filter. + * @param filters specify the list of filters to be used. + * + * @return the filtered URI or null if it cannot be filtered + */ + KURL filteredURI( const KURL &uri, const QStringList& filters = QStringList() ); + + /** + * Return a filtered string representation of a URI. + * + * The given URL is filtered based on the specified list of filters. + * If the list is empty all available filters would be used. + * + * @param uri the URI to filter. + * @param filters specify the list of filters to be used. + * + * @return the filtered URI or null if it cannot be filtered + */ + QString filteredURI( const QString &uri, const QStringList& filters = QStringList() ); + + /** + * Return an iterator to iterate over all loaded + * plugins. + * + * @return a plugin iterator. + */ + QPtrListIterator pluginsIterator() const; + + /** + * Return a list of the names of all loaded plugins. + * + * @return a QStringList of plugin names + * @since 3.1 + */ + QStringList pluginNames() const; + +protected: + + /** + * A protected constructor. + * + * This constructor creates a KURIFilter and + * initializes all plugins it can find by invoking + * loadPlugins. + */ + KURIFilter(); + + /** + * Loads all allowed plugins. + * + * This function loads all filters that have not + * been disbled. + */ + void loadPlugins(); + +private: + static KURIFilter *s_self; + KURIFilterPluginList m_lstPlugins; + KURIFilterPrivate *d; +}; + +#endif diff --git a/extra/kde350/selectdialog.h b/extra/kde350/selectdialog.h new file mode 100644 index 0000000..20b899a --- /dev/null +++ b/extra/kde350/selectdialog.h @@ -0,0 +1,87 @@ +/* + This file is part of libkresources. + + Copyright (c) 2002 Tobias Koenig + Copyright (c) 2002 Jan-Pascal van Best + Copyright (c) 2003 Cornelius Schumacher + + This library 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. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef KRESOURCES_SELECTDIALOG_H +#define KRESOURCES_SELECTDIALOG_H + +#include +#include +#include + +#include + +class KListBox; + +namespace KRES { + +class Resource; + +/** + * Dialog for selecting a resource. + * + * Example: + * + * \code + * + * QPtrList list = ... // can be retrived from KRES::Manager (e.g. KABC::AddressBook) + * + * KABC::Resource *res = KABC::SelectDialog::getResource( list, parentWdg ); + * if ( !res ) { + * // no resource selected + * } else { + * // do something with resource + * } + * \endcode + */ +class KRESOURCES_EXPORT SelectDialog +{ + public: + /** + * Constructor. + * @param list The list of available resources + * @param parent The parent widget + * @param name The name of the dialog + */ + SelectDialog( QPtrList list, QWidget *parent = 0, + const char *name = 0); + + /** + * Returns selected resource. + */ + Resource *resource(); + + /** + * Opens a dialog showing the available resources and returns the resource the + * user has selected. Returns 0, if the dialog was canceled. + */ + static Resource *getResource( QPtrList list, QWidget *parent = 0 ); + + private: + KListBox *mResourceId; + + QMap mResourceMap; +}; + +} + +#endif diff --git a/extra/kde351/kaccelaction.h b/extra/kde351/kaccelaction.h new file mode 100644 index 0000000..4164ca5 --- /dev/null +++ b/extra/kde351/kaccelaction.h @@ -0,0 +1,576 @@ +/* This file is part of the KDE libraries + Copyright (C) 2001,2002 Ellis Whitehead + + This library 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. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef _KACCELACTION_H +#define _KACCELACTION_H + +#include +#include +#include +#include + +#include + +class KAccelBase; + +class QObject; +class KConfig; +class KConfigBase; + +/** + * @internal + * A KAccelAction prepresents an action that can be executed using + * an accelerator key. Each KAccelAction has a name, a label, a + * "What's this" string and a KShortcut. The user can configure and + * enable/disable them using KKeyDialog. + * + * \code + * 1) KAccelAction = "Run Command" + * Default3 = "Alt+F2" + * Default4 = "Meta+Enter;Alt+F2" + * 1) KShortcut = "Meta+Enter" + * 1) KKeySequence = "Meta+Enter" + * 1) KKey = "Meta+Enter" + * 1) Meta+Enter + * 2) Meta+Keypad_Enter + * 2) KShortcut = "Alt+F2" + * 1) KKeySequence = "Alt+F2" + * 1) Alt+F2 + * 2) KAccelAction = "Something" + * Default3 = "" + * Default4 = "" + * 1) KShortcut = "Meta+X,Asterisk" + * 1) KKeySequence = "Meta+X,Asterisk" + * 1) KKey = "Meta+X" + * 1) Meta+X + * 2) KKey = "Asterisk" + * 1) Shift+8 (English layout) + * 2) Keypad_Asterisk + * \endcode + * @short An accelerator action + * @see KAccel + * @see KGlobalAccel + * @see KKeyChooser + * @see KKeyDialog + */ +class KDECORE_EXPORT KAccelAction +{ + public: + /** + * Creates an empty KAccelAction. + * @see clear() + */ + KAccelAction(); + + /** + * Copy constructor. + */ + KAccelAction( const KAccelAction& ); + + /** + * Creates a new KAccelAction. + * @param sName the name of the accelerator + * @param sLabel the label of the accelerator (i18n!) + * @param sWhatsThis the What's This text (18n!) + * @param cutDef3 the default shortcut for 3 modifier systems + * @param cutDef4 the default shortcut for 4 modifier systems + * @param pObjSlot the receiver of a signal when the key has been + * pressed + * @param psMethodSlot the slot to connect for key presses. Receives + * an int, as set by setID(), as only argument + * @param bConfigurable if true the user can configure the shortcut + * @param bEnabled true if the accelerator should be enabled + */ + KAccelAction( const QString& sName, const QString& sLabel, const QString& sWhatsThis, + const KShortcut& cutDef3, const KShortcut& cutDef4, + const QObject* pObjSlot, const char* psMethodSlot, + bool bConfigurable, bool bEnabled ); + ~KAccelAction(); + + /** + * Clears the accelerator. + */ + void clear(); + + /** + * Re-initialized the KAccelAction. + * @param sName the name of the accelerator + * @param sLabel the label of the accelerator (i18n!) + * @param sWhatsThis the What's This text (18n!) + * @param cutDef3 the default shortcut for 3 modifier systems + * @param cutDef4 the default shortcut for 4 modifier systems + * @param pObjSlot the receiver of a signal when the key has been + * pressed + * @param psMethodSlot the slot to connect for key presses. Receives + * an int, as set by setID(), as only argument + * @param bConfigurable if true the user can configure the shortcut + * @param bEnabled true if the accelerator should be enabled + * @return true if successful, false otherwise + */ + bool init( const QString& sName, const QString& sLabel, const QString& sWhatsThis, + const KShortcut& cutDef3, const KShortcut& cutDef4, + const QObject* pObjSlot, const char* psMethodSlot, + bool bConfigurable, bool bEnabled ); + + /** + * Copies this KAccelAction. + */ + KAccelAction& operator=( const KAccelAction& ); + + /** + * Returns the name of the accelerator action. + * @return the name of the accelerator action, can be null if not + * set + */ + const QString& name() const { return m_sName; } + + /** + * Returns the label of the accelerator action. + * @return the label of the accelerator action, can be null if + * not set + */ + const QString& label() const { return m_sLabel; } + + /** + * Returns the What's This text of the accelerator action. + * @return the What's This text of the accelerator action, can be + * null if not set + */ + const QString& whatsThis() const { return m_sWhatsThis; } + + /** + * The shortcut that is actually used (may be used configured). + * @return the shortcut of the KAccelAction, can be null if not set + * @see shortcutDefault() + */ + const KShortcut& shortcut() const { return m_cut; } + + /** + * The default shortcut for this system. + * @return the default shortcut on this system, can be null if not set + * @see shortcut() + * @see shortcutDefault3() + * @see shortcutDefault4() + */ + const KShortcut& shortcutDefault() const; + + /** + * The default shortcut for 3 modifier systems. + * @return the default shortcut for 3 modifier systems, can be null + * if not set + * @see shortcutDefault() + * @see shortcutDefault4() + * @see useFourModifierKeys() + */ + const KShortcut& shortcutDefault3() const { return m_cutDefault3; } + + /** + * The default shortcut for 4 modifier systems. + * @return the default shortcut for 4 modifier systems, can be null + * if not set + * @see shortcutDefault() + * @see shortcutDefault3() + * @see useFourModifierKeys() + */ + const KShortcut& shortcutDefault4() const { return m_cutDefault4; } + + /** + * Returns the receiver of signals. + * @return the receiver of signals (can be 0 if not set) + */ + const QObject* objSlotPtr() const { return m_pObjSlot; } + + /** + * Returns the slot for the signal. + * @return the slot for the signal + */ + const char* methodSlotPtr() const { return m_psMethodSlot; } + + /** + * Checks whether the user can configure the action. + * @return true if configurable, false otherwise + */ + bool isConfigurable() const { return m_bConfigurable; } + + /** + * Checks whether the action is enabled. + * @return true if enabled, false otherwise + */ + bool isEnabled() const { return m_bEnabled; } + + /** + * Sets the name of the accelerator action. + * @param name the new name + */ + void setName( const QString& name ); + + /** + * Sets the user-readable label of the accelerator action. + * @param label the new label (i18n!) + */ + void setLabel( const QString& label ); + + /** + * Sets the What's This text for the accelerator action. + * @param whatsThis the new What's This text (i18n!) + */ + void setWhatsThis( const QString& whatsThis ); + + /** + * Sets the new shortcut of the accelerator action. + * @param rgCuts the shortcut to set + * @return true if successful, false otherwise + */ + bool setShortcut( const KShortcut& rgCuts ); + + /** + * Sets the slot of the accelerator action. + * @param pObjSlot the receiver object of the signal + * @param psMethodSlot the slot for the signal + */ + void setSlot( const QObject* pObjSlot, const char* psMethodSlot ); + + /** + * Enables or disabled configuring the action. + * @param configurable true to enable configurability, false to disable + */ + void setConfigurable( bool configurable ); + + /** + * Enables or disabled the action. + * @param enable true to enable the action, false to disable + */ + void setEnabled( bool enable ); + + /** + * Retrieves the id set using setID. + * @return the id of the accelerator action + */ + int getID() const { return m_nIDAccel; } + + /** + * Allows you to set an id that will be used as the action + * signal's argument. + * + * @param n the new id + * @see getID() + */ + void setID( int n ) { m_nIDAccel = n; } + + /** + * Checkes whether the action is connected (emits signals). + * @return true if connected, false otherwise + */ + bool isConnected() const; + + /** + * Sets a key sequence of the action's shortcut. + * @param i the position of the sequence + * @param keySeq the new new sequence + * @return true if successful, false otherwise + * @see KShortcut::setSeq() + */ + bool setKeySequence( uint i, const KKeySequence &keySeq ); + + /** + * Clears the action's shortcut. It will not contain any sequences after + * calling this method. + * @see KShortcut::clear() + */ + void clearShortcut(); + + /** + * Checks whether the action's shortcut contains the given key sequence. + * @param keySeq the key sequence to check + * @return true if the shortcut contains the given sequence + * @see KShortcut::contains() + */ + bool contains( const KKeySequence &keySeq ); + + /** + * Returns the string representation of the action's shortcut. + * @return the string representation of the action's shortcut. + * @see KShortcut::toString() + */ + QString toString() const; + + /** + * @internal + */ + QString toStringInternal() const; + + /** + * Returns true if four modifier keys will be used. + * @return true if four modifier keys will be used. + */ + static bool useFourModifierKeys(); + + /** + * Selects 3 or 4 modifier default shortcuts. + * @param use true to use 4 modifier shortcuts, false to use + * 3 modifier shortcuts + */ + static void useFourModifierKeys( bool use ); + + protected: + QString m_sName /**< Name of accel. @sa setName() */, + m_sLabel /**< Label of accel. User-visible. */, + m_sWhatsThis /**< WhatsThis help for accel. User-visible. */; + KShortcut m_cut /**< Shortcut actually assigned. */; + KShortcut m_cutDefault3 /**< Default shortcut in 3-modifier layout */, + m_cutDefault4 /**< Default shortcur in 4-modifier layout */; + const QObject* m_pObjSlot /**< Object we will send signals to. */; + const char* m_psMethodSlot /**< Slot we send signals to, in m_pObjSlot */; + bool m_bConfigurable /**< Can this accel be configured by the user? */, + m_bEnabled /**< Is this accel enabled? */; + int m_nIDAccel /**< Id of this accel, from the list of IDs */; + uint m_nConnections /**< Number of connections to this accel. */ ; + + /** @internal Increment the number of connections to this accel. */ + void incConnections(); + /** @internal Decrement the number of connections to this accel (bouded by zero). */ + void decConnections(); + + private: + static int g_bUseFourModifierKeys; + class KAccelActionPrivate* d; + + friend class KAccelActions; + friend class KAccelBase; +}; + +//--------------------------------------------------------------------- +// KAccelActions +//--------------------------------------------------------------------- + +/** + * @internal + * This class represents a collection of KAccelAction objects. + * + * @short A collection of accelerator actions + * @see KAccelAction + */ +class KDECORE_EXPORT KAccelActions +{ + public: + /** + * Creates a new, empty KAccelActions object. + */ + KAccelActions(); + + /** + * Copy constructor (deep copy). + */ + KAccelActions( const KAccelActions& ); + virtual ~KAccelActions(); + + /** + * Removes all items from this collection. + */ + void clear(); + + /** + * Initializes this object with the given actions. + * It will make a deep copy of all actions. + * @param actions the actions to copy + * @return true if successful, false otherwise + */ + bool init( const KAccelActions &actions ); + + /** + * Loads the actions from the given configuration file. + * + * @param config the configuration file to load from + * @param sGroup the group in the configuration file + * @return true if successful, false otherwise + */ + bool init( KConfigBase& config, const QString& sGroup ); + + /** + * Updates the shortcuts of all actions in this object + * with the shortcuts from the given object. + * @param shortcuts the collection that contains the new + * shortcuts + */ + void updateShortcuts( KAccelActions &shortcuts ); + + /** + * Retrieves the index of the action with the given name. + * @param sAction the action to search + * @return the index of the action, or -1 if not found + */ + int actionIndex( const QString& sAction ) const; + + /** + * Returns the action with the given @p index. + * @param index the index of an action. You must not + * use an index that is too high. + * @return the KAccelAction with the given index + * @see count() + */ + KAccelAction* actionPtr( uint index ); + + /** + * Returns the action with the given @p index. + * @param index the index of an action. You must not + * use an index that is too high. + * @return the KAccelAction with the given index + * @see count() + */ + const KAccelAction* actionPtr( uint index ) const; + + /** + * Returns the action with the given name. + * @param sAction the name of the action to search + * @return the KAccelAction with the given name, or 0 + * if not found + */ + KAccelAction* actionPtr( const QString& sAction ); + + /** + * Returns the action with the given name. + * @param sAction the name of the action to search + * @return the KAccelAction with the given name, or 0 + * if not found + */ + const KAccelAction* actionPtr( const QString& sAction ) const; + + /** + * Returns the action with the given key sequence. + * @param cut the sequence to search for + * @return the KAccelAction with the given sequence, or 0 + * if not found + */ + KAccelAction* actionPtr( KKeySequence cut ); + + /** + * Returns the action with the given @p index. + * @param index the index of an action. You must not + * use an index that is too high. + * @return the KAccelAction with the given index + * @see actionPtr() + * @see count() + */ + KAccelAction& operator []( uint index ); + + /** + * Returns the action with the given @p index. + * @param index the index of an action. You must not + * use an index that is too high. + * @return the KAccelAction with the given index + * @see actionPtr() + * @see count() + */ + const KAccelAction& operator []( uint index ) const; + + /** + * Inserts an action into the collection. + * @param sAction the name of the accelerator + * @param sLabel the label of the accelerator (i18n!) + * @param sWhatsThis the What's This text (18n!) + * @param rgCutDefaults3 the default shortcut for 3 modifier systems + * @param rgCutDefaults4 the default shortcut for 4 modifier systems + * @param pObjSlot the receiver of a signal when the key has been + * pressed + * @param psMethodSlot the slot to connect for key presses. Receives + * an int, as set by setID(), as only argument + * @param bConfigurable if true the user can configure the shortcut + * @param bEnabled if true the accelerator should be enabled + * @return the new action + */ + KAccelAction* insert( const QString& sAction, const QString& sLabel, const QString& sWhatsThis, + const KShortcut& rgCutDefaults3, const KShortcut& rgCutDefaults4, + const QObject* pObjSlot = 0, const char* psMethodSlot = 0, + bool bConfigurable = true, bool bEnabled = true ); + + /** + * Inserts an action into the collection. + * @param sName the name of the accelerator + * @param sLabel the label of the accelerator (i18n!) + * @return the new action + */ + KAccelAction* insert( const QString& sName, const QString& sLabel ); + + /** + * Removes the given action. + * @param sAction the name of the action. + * @return true if successful, false otherwise + */ + bool remove( const QString& sAction ); + + /** + * Loads the actions from the given configuration file. + * + * @param sConfigGroup the group in the configuration file + * @param pConfig the configuration file to load from + * @return true if successful, false otherwise + */ + bool readActions( const QString& sConfigGroup = "Shortcuts", KConfigBase* pConfig = 0 ); + + /** + * Writes the actions to the given configuration file. + * + * @param sConfigGroup the group in the configuration file + * @param pConfig the configuration file to save to + * @param bWriteAll true to write all actions + * @param bGlobal true to write to the global configuration file + * @return true if successful, false otherwise + */ + bool writeActions( const QString& sConfigGroup = "Shortcuts", KConfigBase* pConfig = 0, + bool bWriteAll = false, bool bGlobal = false ) const; + + /** + * Emit a keycodeChanged signal. + */ + void emitKeycodeChanged(); + + /** + * Returns the number of actions in the collection. + * @return the number of actions + */ + uint count() const; + + protected: + /** Base object that proxies signals from us. */ + KAccelBase* m_pKAccelBase; + /** Array of actions we're hanging on to. */ + KAccelAction** m_prgActions; + uint m_nSizeAllocated /**< Allocated size of the array. */, + m_nSize /**< Amount in use. */ ; + + /** + * Resize the list to the given number @p new_size of entries. + * @todo Can you make it smaller? + * @todo Implementation seems to break m_nSize. + */ + void resize( uint new_size ); + /** Add a action to this collection. @todo Document ownership. */ + void insertPtr( KAccelAction* ); + + private: + class KAccelActionsPrivate* d; + + KAccelActions( KAccelBase* ); + void initPrivate( KAccelBase* ); + KAccelActions& operator =( KAccelActions& ); + + friend class KAccelBase; +}; + +#endif // _KACCELACTION_H diff --git a/extra/kde351/kaccelbase.h b/extra/kde351/kaccelbase.h new file mode 100644 index 0000000..0becbe0 --- /dev/null +++ b/extra/kde351/kaccelbase.h @@ -0,0 +1,260 @@ +/* This file is part of the KDE libraries + Copyright (C) 2001 Ellis Whitehead + + This library 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. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef _KACCELBASE_H +#define _KACCELBASE_H + +#include +#include +#include +#include +#include + +#include "kaccelaction.h" +#include "kkeyserver.h" + +class QPopupMenu; +class QWidget; + +//---------------------------------------------------- + +/** + * @internal + * Handle keyboard accelerators. + * + * Allow an user to configure + * key bindings through application configuration files or through the + * KKeyChooser GUI. + * + * A KAccel contains a list of accelerator items. Each accelerator item + * consists of an action name and a keyboard code combined with modifiers + * (Shift, Ctrl and Alt.) + * + * For example, "Ctrl+P" could be a shortcut for printing a document. The key + * codes are listed in ckey.h. "Print" could be the action name for printing. + * The action name identifies the key binding in configuration files and the + * KKeyChooser GUI. + * + * When pressed, an accelerator key calls the slot to which it has been + * connected. Accelerator items can be connected so that a key will activate + * two different slots. + * + * A KAccel object handles key events sent to its parent widget and to all + * children of this parent widget. + * + * Key binding reconfiguration during run time can be prevented by specifying + * that an accelerator item is not configurable when it is inserted. A special + * group of non-configurable key bindings are known as the + * standard accelerators. + * + * The standard accelerators appear repeatedly in applications for + * standard document actions such as printing and saving. Convenience methods are + * available to insert and connect these accelerators which are configurable on + * a desktop-wide basis. + * + * It is possible for a user to choose to have no key associated with + * an action. + * + * The translated first argument for insertItem() is used only + * in the configuration dialog. + *\code + * KAccel *a = new KAccel( myWindow ); + * // Insert an action "Scroll Up" which is associated with the "Up" key: + * a->insertItem( i18n("Scroll Up"), "Scroll Up", "Up" ); + * // Insert an action "Scroll Down" which is not associated with any key: + * a->insertItem( i18n("Scroll Down"), "Scroll Down", 0); + * a->connectItem( "Scroll up", myWindow, SLOT( scrollUp() ) ); + * // a->insertStdItem( KStdAccel::Print ); //not necessary, since it + * // is done automatially with the + * // connect below! + * a->connectItem(KStdAccel::Print, myWindow, SLOT( printDoc() ) ); + * + * a->readSettings(); + *\endcode + * + * If a shortcut has a menu entry as well, you could insert them like + * this. The example is again the KStdAccel::Print from above. + * + * \code + * int id; + * id = popup->insertItem("&Print",this, SLOT(printDoc())); + * a->changeMenuAccel(popup, id, KStdAccel::Print ); + * \endcode + * + * If you want a somewhat "exotic" name for your standard print action, like + * id = popup->insertItem(i18n("Print &Document"),this, SLOT(printDoc())); + * it might be a good idea to insert the standard action before as + * a->insertStdItem( KStdAccel::Print, i18n("Print Document") ) + * as well, so that the user can easily find the corresponding function. + * + * This technique works for other actions as well. Your "scroll up" function + * in a menu could be done with + * + * \code + * id = popup->insertItem(i18n"Scroll &up",this, SLOT(scrollUp())); + * a->changeMenuAccel(popup, id, "Scroll Up" ); + * \endcode + * + * Please keep the order right: First insert all functions in the + * acceleratior, then call a -> readSettings() and @em then build your + * menu structure. + * + * @short Configurable key binding support. + */ + +class KDECORE_EXPORT KAccelBase +{ + public: + /** Initialization mode of the KAccelBase, used in constructor. */ + enum Init { QT_KEYS = 0x00, NATIVE_KEYS = 0x01 }; + + /** Enum for kinds of signals which may be emitted. */ + enum Signal { KEYCODE_CHANGED }; + + /** Constructor. @p fInitCode should be a bitwise OR of + * values from the Init enum. + */ + KAccelBase( int fInitCode ); + virtual ~KAccelBase(); + + /** Returns number of actions in this handler. */ + uint actionCount() const; + /** Returns a list of all the actions in this handler. */ + KAccelActions& actions(); + /** Returns whether this accelerator handler is enabled or not. */ + bool isEnabled() const; + + /** Returns a pointer to the KAccelAction named @p sAction. */ + KAccelAction* actionPtr( const QString& sAction ); + /** Const version of the above. */ + const KAccelAction* actionPtr( const QString& sAction ) const; + /** Returns a pointer to the KAccelAction associated with + * the key @p key. This function takes into account the + * key mapping defined in the constructor. + * + * May return 0 if no (or more than one) + * action is associated with the key. + */ + KAccelAction* actionPtr( const KKey& key ); + /** Basically the same as above, except a KKeyServer::Key + * already has a key mapping defined (either NATIVE_KEYS or not). + */ + KAccelAction* actionPtr( const KKeyServer::Key& key ); + + /** Returns the name of the configuration group these + * accelerators are stored in. The default is "Shortcuts". + */ + const QString& configGroup() const { return m_sConfigGroup; } + /** Set the group (in the configuration file) for storing + * accelerators. + */ + void setConfigGroup( const QString& group ); + void setConfigGlobal( bool global ); + virtual void setEnabled( bool bEnabled ) = 0; + /** Returns whether autoupdate is enabled for these accelerators. */ + bool getAutoUpdate() { return m_bAutoUpdate; } + /** Enables (or disables) autoupdate for these accelerators. + * @return the value of autoupdate before the call. + */ + bool setAutoUpdate( bool bAuto ); + +// Procedures for manipulating Actions. + //void clearActions(); + + KAccelAction* insert( const QString& sName, const QString& sDesc ); + KAccelAction* insert( + const QString& sAction, const QString& sDesc, const QString& sHelp, + const KShortcut& rgCutDefaults3, const KShortcut& rgCutDefaults4, + const QObject* pObjSlot, const char* psMethodSlot, + bool bConfigurable = true, bool bEnabled = true ); + bool remove( const QString& sAction ); + bool setActionSlot( const QString& sAction, const QObject* pObjSlot, const char* psMethodSlot ); + + bool updateConnections(); + + bool setShortcut( const QString& sAction, const KShortcut& cut ); + +// Modify individual Action sub-items + bool setActionEnabled( const QString& sAction, bool bEnable ); + + /** + * Read all key associations from @p config, or (if @p config + * is zero) from the application's configuration file + * KGlobal::config(). + * + * The group in which the configuration is stored can be + * set with setConfigGroup(). + */ + void readSettings( KConfigBase* pConfig = 0 ); + + /** + * Write the current configurable associations to @p config, + * or (if @p config is zero) to the application's + * configuration file. + */ + void writeSettings( KConfigBase* pConfig = 0 ) const; + + QPopupMenu* createPopupMenu( QWidget* pParent, const KKeySequence& ); + + // Protected methods + protected: + void slotRemoveAction( KAccelAction* ); + + struct X; + void createKeyList( QValueVector& rgKeys ); + bool insertConnection( KAccelAction* ); + bool removeConnection( KAccelAction* ); + + virtual bool emitSignal( Signal ) = 0; + virtual bool connectKey( KAccelAction&, const KKeyServer::Key& ) = 0; + virtual bool connectKey( const KKeyServer::Key& ) = 0; + virtual bool disconnectKey( KAccelAction&, const KKeyServer::Key& ) = 0; + virtual bool disconnectKey( const KKeyServer::Key& ) = 0; + + protected: + virtual bool isEnabledInternal() const; + struct ActionInfo + { + KAccelAction* pAction; + uint iSeq, iVariation; + //ActionInfo* pInfoNext; // nil if only one action uses this key. + + ActionInfo() { pAction = 0; iSeq = 0xffff; iVariation = 0xffff; } + ActionInfo( KAccelAction* _pAction, uint _iSeq, uint _iVariation ) + { pAction = _pAction; iSeq = _iSeq; iVariation = _iVariation; } + }; + typedef QMap KKeyToActionMap; + + KAccelActions m_rgActions; + KKeyToActionMap m_mapKeyToAction; + QValueList m_rgActionsNonUnique; + bool m_bNativeKeys; // Use native key codes instead of Qt codes + bool m_bEnabled; + bool m_bConfigIsGlobal; + QString m_sConfigGroup; + bool m_bAutoUpdate; + KAccelAction* mtemp_pActionRemoving; + + private: + KAccelBase& operator =( const KAccelBase& ); + + friend class KAccelActions; +}; + +#endif // _KACCELBASE_H diff --git a/extra/kde351/kicontheme.h b/extra/kde351/kicontheme.h new file mode 100644 index 0000000..b776444 --- /dev/null +++ b/extra/kde351/kicontheme.h @@ -0,0 +1,355 @@ +/* vi: ts=8 sts=4 sw=4 + * + * This file is part of the KDE project, module kdecore. + * Copyright (C) 2000 Geert Jansen + * Antonio Larrosa + * + * This is free software; it comes under the GNU Library General + * Public License, version 2. See the file "COPYING.LIB" for the + * exact licensing terms. + * + */ + +#ifndef __KIconTheme_h_Included__ +#define __KIconTheme_h_Included__ + +#include +#include +#include +#include "kdelibs_export.h" + +class KConfig; +//class KIconThemeDir; + +class KIconThemePrivate; + +class KIconPrivate; + +/** + * One icon as found by KIconTheme. Also serves as a namespace containing + * icon related constants. + * @see KIconEffect + * @see KIconTheme + * @see KIconLoader + */ +class KDECORE_EXPORT KIcon +{ +public: + KIcon() { size = 0; } + + /** + * Return true if this icon is valid, false otherwise. + */ + bool isValid() const { return size != 0; } + + /** + * Defines the context of the icon. + */ + enum Context { + Any, ///< Some icon with unknown purpose. + Action, ///< An action icon (e.g. 'save', 'print'). + Application, ///< An icon that represents an application. + Device, ///< An icon that represents a device. + FileSystem, ///< An icon that represents a file system. + MimeType ///< An icon that represents a mime type (or file type). + }; + + /** + * The type of the icon. + */ + enum Type { + Fixed, ///< Fixed-size icon. + Scalable, ///< Scalable-size icon. + Threshold ///< A threshold icon. + }; + + /** + * The type of a match. + */ + enum MatchType { + MatchExact, ///< Only try to find an exact match. + MatchBest ///< Take the best match if there is no exact match. + + }; + + // if you add a group here, make sure to change the config reading in + // KIconLoader too + /** + * The group of the icon. + */ + enum Group { + /// No group + NoGroup=-1, + /// Desktop icons + Desktop=0, + /// First group + FirstGroup=0, + /// Toolbar icons + Toolbar, + /// Main toolbar icons + MainToolbar, + /// Small icons + Small, + /// Panel (Kicker) icons + Panel, + /// Last group + LastGroup, + /// User icons + User + }; + + /** + * These are the standard sizes for icons. + */ + enum StdSizes { + /// small icons for menu entries + SizeSmall=16, + /// slightly larger small icons for toolbars, panels, etc + SizeSmallMedium=22, + /// medium sized icons for the desktop + SizeMedium=32, + /// large sized icons for the panel + SizeLarge=48, + /// huge sized icons for iconviews + SizeHuge=64, + /// enormous sized icons for iconviews + SizeEnormous=128 + }; + + /** + * Defines the possible states of an icon. + */ + enum States { DefaultState, ///< The default state. + ActiveState, ///< Icon is active. + DisabledState, ///< Icon is disabled. + LastState ///< Last state (last constant) + }; + + /** + * This defines an overlay, a semi-transparent image that is + * projected onto the icon. They are used to show that the file + * represented by the icon is, for example, locked, zipped or hidden. + */ + enum Overlays { + LockOverlay=0x100, ///< a file is locked + ZipOverlay=0x200, ///< a file is zipped + LinkOverlay=0x400, ///< a file is a link + HiddenOverlay=0x800, ///< a file is hidden + ShareOverlay=0x1000, ///< a file is shared + OverlayMask = ~0xff + }; + + /** + * The size in pixels of the icon. + */ + int size; + + /** + * The context of the icon. + */ + Context context; + + /** + * The type of the icon: Fixed, Scalable or Threshold. + **/ + Type type; + + /** + * The threshold in case type == Threshold + */ + int threshold; + + /** + * The full path of the icon. + */ + QString path; + +private: + KIconPrivate *d; +}; + +inline KIcon::Group& operator++(KIcon::Group& group) { group = static_cast(group+1); return group; } +inline KIcon::Group operator++(KIcon::Group& group,int) { KIcon::Group ret = group; ++group; return ret; } + +/** + * Class to use/access icon themes in KDE. This class is used by the + * iconloader but can be used by others too. + * @see KIconLoader + */ +class KDECORE_EXPORT KIconTheme +{ +public: + /** + * Load an icon theme by name. + * @param name the name of the theme (e.g. "hicolor" or "keramik") + * @param appName the name of the application. Can be null. This argument + * allows applications to have themed application icons. + */ + KIconTheme(const QString& name, const QString& appName=QString::null); + ~KIconTheme(); + + /** + * The stylized name of the icon theme. + * @return the (human-readable) name of the theme + */ + QString name() const { return mName; } + + /** + * A description for the icon theme. + * @return a human-readable description of the theme, QString::null + * if there is none + */ + QString description() const { return mDesc; } + + /** + * Return the name of the "example" icon. This can be used to + * present the theme to the user. + * @return the name of the example icon, QString::null if there is none + */ + QString example() const; + + /** + * Return the name of the screenshot. + * @return the name of the screenshot, QString::null if there is none + */ + QString screenshot() const; + + /** + * Returns the name of this theme's link overlay. + * @return the name of the link overlay + */ + QString linkOverlay() const; + + /** + * Returns the name of this theme's zip overlay. + * @return the name of the zip overlay + */ + QString zipOverlay() const; + + /** + * Returns the name of this theme's lock overlay. + * @return the name of the lock overlay + */ + QString lockOverlay() const; + + /** + * Returns the name of this theme's share overlay. + * @return the name of the share overlay + * @since 3.1 + */ + QString shareOverlay () const; + + /** + * Returns the toplevel theme directory. + * @return the directory of the theme + */ + QString dir() const { return mDir; } + + /** + * The themes this icon theme falls back on. + * @return a list of icon themes that are used as fall-backs + */ + QStringList inherits() const { return mInherits; } + + /** + * The icon theme exists? + * @return true if the icon theme is valid + */ + bool isValid() const; + + /** + * The icon theme should be hidden to the user? + * @return true if the icon theme is hidden + * @since 3.1 + */ + bool isHidden() const; + + /** + * The minimum display depth required for this theme. This can either + * be 8 or 32. + * @return the minimum bpp (8 or 32) + */ + int depth() const { return mDepth; } + + /** + * The default size of this theme for a certain icon group. + * @param group The icon group. See KIcon::Group. + * @return The default size in pixels for the given icon group. + */ + int defaultSize(KIcon::Group group) const; + + /** + * Query available sizes for a group. + * @param group The icon group. See KIcon::Group. + * @return a list of available sized for the given group + */ + QValueList querySizes(KIcon::Group group) const; + + /** + * Query available icons for a size and context. + * @param size the size of the icons + * @param context the context of the icons + * @return the list of icon names + */ + QStringList queryIcons(int size, KIcon::Context context = KIcon::Any) const; + + /** + * Query available icons for a context and preferred size. + * @param size the size of the icons + * @param context the context of the icons + * @return the list of icon names + */ + QStringList queryIconsByContext(int size, KIcon::Context context = KIcon::Any) const; + + + /** + * Lookup an icon in the theme. + * @param name The name of the icon, without extension. + * @param size The desired size of the icon. + * @param match The matching mode. KIcon::MatchExact returns an icon + * only if matches exactly. KIcon::MatchBest returns the best matching + * icon. + * @return A KIcon class that describes the icon. If an icon is found, + * @see KIcon::isValid will return true, and false otherwise. + */ + KIcon iconPath(const QString& name, int size, KIcon::MatchType match) const; + + /** + * List all icon themes installed on the system, global and local. + * @return the list of all icon themes + */ + static QStringList list(); + + /** + * Returns the current icon theme. + * @return the name of the current theme + */ + static QString current(); + + /** + * Reconfigure the theme. + */ + static void reconfigure(); + + /** + * Returns the default icon theme. + * @return the name of the default theme name + * @since 3.1 + */ + static QString defaultThemeName(); + +private: + int mDefSize[8]; + QValueList mSizes[8]; + + int mDepth; + QString mDir, mName, mDesc; + QStringList mInherits; +// QPtrList mDirs; + KIconThemePrivate *d; + + static QString *_theme; + static QStringList *_theme_list; +}; + +#endif diff --git a/extra/kde351/kkeyserver.h b/extra/kde351/kkeyserver.h new file mode 100644 index 0000000..ef673ea --- /dev/null +++ b/extra/kde351/kkeyserver.h @@ -0,0 +1,29 @@ +/* + Copyright (C) 2001 Ellis Whitehead + + Win32 port: + Copyright (C) 2004 Jaroslaw Staniek + + This library 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. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef _KKEYSERVER_H +#define _KKEYSERVER_H + +//FOR COMPATIBILITY +#include "kkeyserver_x11.h" + +#endif // !_KKEYSERVER_H diff --git a/extra/kde351/kkeyserver_x11.h b/extra/kde351/kkeyserver_x11.h new file mode 100644 index 0000000..73c800d --- /dev/null +++ b/extra/kde351/kkeyserver_x11.h @@ -0,0 +1,477 @@ +/* + Copyright (C) 2001 Ellis Whitehead + + Win32 port: + Copyright (C) 2004 Jaroslaw Staniek + + This library 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. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef _KKEYSERVER_X11_H +#define _KKEYSERVER_X11_H + +#include "kshortcut.h" +#include "kkeynative.h" + +/** + * A collection of functions for the conversion of key presses and + * their modifiers from the window system specific format + * to the generic format and vice-versa. + */ +namespace KKeyServer +{ + /** + * Supplement enum KKey::ModFlag + * @since 3.1 + */ + enum ExtraModFlag { MODE_SWITCH = 0x2000 }; + + /** + * Represents a key symbol. + * @see KKey + * @see KKeyServer + */ + struct KDECORE_EXPORT Sym + { + public: + /// the actual value of the symbol + uint m_sym; + + /// Creates a null symbol. + Sym() + { m_sym = 0; } + /** + * Creates asymbol with the given value. + * @param sym the value + */ + Sym( uint sym ) + { m_sym = sym; } + /** + * Creates a symbol from the given string description. + * @param s the description of the symbol + * @see toString() + */ + Sym( const QString& s ) + { init( s ); } + + /** + * Initializes the symbol with the given Qt key code. + * @param keyQt the qt key code + * @return true if successful, false otherwise + * @see Qt::Key + */ + bool initQt( int keyQt ); + + /** + * Initializes the key with the given string description. + * @param s the string description + * @return true if successful, false otherwise + * @see toString() + */ + bool init( const QString &s ); + + /** + * Returns the qt key code of the symbol. + * @return the qt key code + */ + int qt() const; + + /** + * @internal + */ + QString toStringInternal() const; + + /** + * Returns the string representation of the symbol. + * @return the string representation of the symbol + */ + QString toString() const; + + /** + * Returns the mods that are required for this symbol as + * ORed KKey::ModFlag's. For example, Break requires a + * Ctrl to be valid. + * @return the required KKey::ModFlag's + * @see KKey::ModFlag + */ + uint getModsRequired() const; + + /** + * TODO: please find out what this method does and document it + */ + uint getSymVariation() const; + + /** + * Casts the symbol to its integer representation. + */ + operator uint() const { return m_sym; } + + /** + * Overloaded operator to convert ints to Sym. + */ + Sym& operator =( uint sym ) { m_sym = sym; return *this; } + + private: + QString toString( bool bUserSpace ) const; + + static void capitalizeKeyname( QString& ); + }; + + /** + * Represents a key press. + * @see KKey + */ + struct KDECORE_EXPORT Key + { + /// Code for native Keys in Qt + enum { CODE_FOR_QT = 256 }; + + /// The code of the key + uint m_code; + + /// The modifiers of the key + uint m_mod; + + /// The symbol of the key + uint m_sym; + + /** + * Initializes the key with a KKey. + * @param key the key to get the data from + * @param bQt true to take the Qt keycode, false + * for the native key code + * @see Qt::Key + * @see KKeyNative + */ + bool init( const KKey& key, bool bQt ); + + /** + * Checks whether the key code is a native code. + * @return true if native code of the window system, + * false if it is a Qt keycode + * @see Qt::Key + * @see KKeyNative + */ + bool isNative() const { return m_code != CODE_FOR_QT; } + + /** + * Returns the code of the key. + * @return the code of the key + */ + uint code() const { return m_code; } + + /** + * Returns the modifiers of the key. + * @return the modifiers of the key + */ + uint mod() const { return m_mod; } + + /** + * Returns the symbol of the key. + * @return the symbol of the key + */ + uint sym() const { return m_sym; } + + /** + * Returns the qt key code. + * @return the qt key code + */ + int keyCodeQt() const { return (int) m_sym; } + + /** + * Sets the qt key code. + * @param keyQt the qt key code + */ + void setKeycodeQt( int keyQt ) + { m_code = CODE_FOR_QT; m_sym = keyQt; } + + /** + * Initializes this key with a KKeyNative. + * @return this key + */ + Key& operator =( const KKeyNative& key ); + + /** + * Compares this key with the given Key object. Returns a + * negative number if the given Key is larger, 0 if they + * are equal and a positive number this Key is larger. The + * returned value is the difference between the symbol, modifier + * or code, whatever is non-zero first. + * + * @param key the key to compare with this key + * @return a negative number if the given Key is larger, 0 if + * they are equal and a positive number this Key is larger + */ + int compare( const Key& key ) const; + + /** + * Compares the symbol, modifiers and code of both keys. + * @see compare() + */ + bool operator ==( const Key& b ) const + { return compare( b ) == 0; } + + /** + * Compares the symbol, modifiers and code of both keys. + * @see compare() + */ + bool operator <( const Key& b ) const + { return compare( b ) < 0; } + + /** + * Converts this Key to a KKey. + * @return the KKey + */ + KKey key() const; + }; + + /** + * TODO: please document this class + */ + struct KDECORE_EXPORT Variations + { + enum { MAX_VARIATIONS = 4 }; + + Key m_rgkey[MAX_VARIATIONS]; + uint m_nVariations; + + Variations() { m_nVariations = 0; } + + void init( const KKey&, bool bQt ); + + uint count() const { return m_nVariations; } + const Key& key( uint i ) const { return m_rgkey[i]; } + }; + + /// TODO: please document + KDECORE_EXPORT bool initializeMods(); + + /** + * Returns the equivalent X modifier mask of the given modifier flag. + * @param modFlag the generic flags to check + * @return the window system specific flags + */ + KDECORE_EXPORT uint modX( KKey::ModFlag modFlag ); + + /** + * Returns true if the current keyboard layout supports the Win key. + * Specifically, whether the Super or Meta keys are assigned to an X modifier. + * @return true if the keyboard has a Win key + * @see modXWin() + */ + KDECORE_EXPORT bool keyboardHasWinKey(); + + /** + * Returns the X11 Shift modifier mask/flag. + * @return the X11 Shift modifier mask/flag. + * @see accelModMaskX() + */ + KDECORE_EXPORT uint modXShift(); + + /** + * Returns the X11 Lock modifier mask/flag. + * @return the X11 Lock modifier mask/flag. + * @see accelModMaskX() + */ + KDECORE_EXPORT uint modXLock(); + + /** + * Returns the X11 Ctrl modifier mask/flag. + * @return the X11 Ctrl modifier mask/flag. + * @see accelModMaskX() + */ + KDECORE_EXPORT uint modXCtrl(); + + /** + * Returns the X11 Alt (Mod1) modifier mask/flag. + * @return the X11 Alt (Mod1) modifier mask/flag. + * @see accelModMaskX() + */ + KDECORE_EXPORT uint modXAlt(); + + /** + * Returns the X11 NumLock modifier mask/flag. + * @return the X11 NumLock modifier mask/flag. + * @see accelModMaskX() + */ + KDECORE_EXPORT uint modXNumLock(); + + /** + * Returns the X11 Win (Mod3) modifier mask/flag. + * @return the X11 Win (Mod3) modifier mask/flag. + * @see keyboardHasWinKey() + * @see accelModMaskX() + */ + KDECORE_EXPORT uint modXWin(); + + /** + * Returns the X11 ScrollLock modifier mask/flag. + * @return the X11 ScrollLock modifier mask/flag. + * @see accelModMaskX() + */ + KDECORE_EXPORT uint modXScrollLock(); + + /** + * Returns the X11 Mode_switch modifier mask/flag. + * @return the X11 Mode_switch modifier mask/flag. + * @see accelModMaskX() + * @since 3.5 + */ + KDECORE_EXPORT uint modXModeSwitch(); + + /** + * Returns bitwise OR'ed mask containing Shift, Ctrl, Alt, and + * Win (if available). + * @see modXShift() + * @see modXLock() + * @see modXCtrl() + * @see modXAlt() + * @see modXNumLock() + * @see modXWin() + * @see modXScrollLock() + */ + KDECORE_EXPORT uint accelModMaskX(); + + /** + * Extracts the symbol from the given Qt key and + * converts it to a symbol. + * @param keyQt the qt key code + * @param sym if successful, the symbol will be written here + * @return true if successful, false otherwise + * @see Qt::Key + * @see Sym + */ + KDECORE_EXPORT bool keyQtToSym( int keyQt, uint& sym ); + + /** + * Extracts the modifiers from the given Qt key and + * converts them in a mask of ORed KKey::ModFlag modifiers. + * @param keyQt the qt key code + * @param mod if successful, the modifiers will be written here + * @return true if successful, false otherwise + * @see Qt::Key + */ + KDECORE_EXPORT bool keyQtToMod( int keyQt, uint& mod ); + + /** + * Converts the given symbol to a Qt key code. + * @param sym the symbol + * @param keyQt if successful, the qt key code will be written here + * @return true if successful, false otherwise + * @see Qt::Key + * @see Sym + */ + KDECORE_EXPORT bool symToKeyQt( uint sym, int& keyQt ); + + /** + * Converts the mask of ORed KKey::ModFlag modifiers to + * a mask of ORed Qt key code modifiers. + * @param mod the mask of KKey::ModFlag modifiers + * @param modQt the mask of Qt key code modifiers will be written here, + * if successful + * @return true if successful, false otherwise + * @see Qt::Key + * @see KKey + */ + KDECORE_EXPORT bool modToModQt( uint mod, int& modQt ); + + /** + * Converts the mask of ORed KKey::ModFlag modifiers to + * a mask of ORed X11 modifiers. + * @param mod the mask of KKey::ModFlag modifiers + * @param modX the mask of X11 modifiers will be written here, + * if successful + * @return true if successful, false otherwise + * @see KKey + */ + KDECORE_EXPORT bool modToModX( uint mod, uint& modX ); + + /** + * Converts the mask of ORed X11 modifiers to + * a mask of ORed Qt key code modifiers. + * @param modX the mask of X11 modifiers + * @param modQt the mask of Qt key code modifiers will be written here + * if successful + * @return true if successful, false otherwise + * @see Qt::Key + */ + //wrapped for win32 + KDECORE_EXPORT bool modXToModQt( uint modX, int& modQt ); + + /** + * Converts the Qt-compatible button state to x11 modifier. + */ + KDECORE_EXPORT int qtButtonStateToMod( Qt::ButtonState s ); + + /** + * Converts the mask of ORed X11 modifiers to + * a mask of ORed KKey::ModFlag modifiers. + * @param modX the mask of X11 modifiers + * @param mod the mask of KKey::ModFlag modifiers will be written here, + * if successful + * @return true if successful, false otherwise + * @see KKey + */ + KDECORE_EXPORT bool modXToMod( uint modX, uint& mod ); + + /** + * Converts a X11 key code and a mask of ORed X11 modifiers + * into a X11 symbol. + * converts it to a symbol. + * @param codeX the X11 key code + * @param modX the mask of ORed X11 modifiers + * @param symX if successful, the X11 symbol will be written here + * @return true if successful, false otherwise + * @see Qt::Key + * @see Sym + */ + KDECORE_EXPORT bool codeXToSym( uchar codeX, uint modX, uint& symX ); + + /** + * @internal + */ + KDECORE_EXPORT QString modToStringInternal( uint mod ); + + /** + * Converts the mask of ORed KKey::ModFlag modifiers to a + * user-readable string. + * @param mod the mask of ORed KKey::ModFlag modifiers + * @return the user-readable string + */ + KDECORE_EXPORT QString modToStringUser( uint mod ); + + /** + * Converts the modifier given as user-readable string + * to KKey::ModFlag modifier, or 0. + * @internal + * @since 3.5 + */ + KDECORE_EXPORT uint stringUserToMod( const QString& mod ); + + /** + * @internal + * Unimplemented? + */ + KDECORE_EXPORT bool stringToSymMod( const QString&, uint& sym, uint& mod ); + + /** + * @internal + * Unimplemented? + */ + KDECORE_EXPORT void keyQtToKeyX( uint keyCombQt, unsigned char *pKeyCodeX, uint *pKeySymX, uint *pKeyModX ); +} + +#endif // !_KKEYSERVER_X11_H diff --git a/extra/kde351/konsole_part.h b/extra/kde351/konsole_part.h new file mode 100644 index 0000000..16028ea --- /dev/null +++ b/extra/kde351/konsole_part.h @@ -0,0 +1,241 @@ +/* -*- C++ -*- + This file is part of the KDE system + Copyright (C) 1999,2000 Boloni Laszlo + + 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. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. + */ + +#ifndef KONSOLE_PART_H +#define KONSOLE_PART_H + +#include +#include + + +#include + +#include + +//#include "schema.h" +//#include "session.h" + +class KInstance; +class konsoleBrowserExtension; +class QPushButton; +class QSpinBox; +class KPopupMenu; +class KActionMenu; +class QCheckBox; +class KRootPixmap; +class KToggleAction; +class KSelectAction; + +namespace KParts { class GUIActivateEvent; } + +class konsoleFactory : public KParts::Factory +{ + Q_OBJECT +public: + konsoleFactory(); + virtual ~konsoleFactory(); + + virtual KParts::Part* createPartObject(QWidget *parentWidget = 0, const char *widgetName = 0, + QObject* parent = 0, const char* name = 0, + const char* classname = "KParts::Part", + const QStringList &args = QStringList()); + + static KInstance *instance(); + + private: + static KInstance *s_instance; + static KAboutData *s_aboutData; +}; + +////////////////////////////////////////////////////////////////////// + +class konsolePart: public KParts::ReadOnlyPart, public TerminalInterface, public ExtTerminalInterface +{ + Q_OBJECT + public: + konsolePart(QWidget *parentWidget, const char *widgetName, QObject * parent, const char *name, const char *classname = 0); + virtual ~konsolePart(); + +signals: + void processExited( KProcess * ); + void receivedData( const QString& s ); + void forkedChild(); + protected: + virtual bool openURL( const KURL & url ); + virtual bool openFile() {return false;} // never used + virtual bool closeURL() {return true;} + virtual void guiActivateEvent( KParts::GUIActivateEvent * event ); + + protected slots: + void showShell(); + +// void doneSession(TESession*); + void sessionDestroyed(); +// void configureRequest(TEWidget*,int,int x,int y); +// void updateTitle(TESession*); + void enableMasterModeConnections(); + + private slots: + void emitOpenURLRequest(const QString &url); + + void readProperties(); + void saveProperties(); + void applyProperties(); + void setSettingsMenuEnabled( bool ); + + void sendSignal(int n); + void closeCurrentSession(); + + void notifySize(int /*columns*/, int /*lines*/); + + void slotToggleFrame(); + void slotSelectScrollbar(); + void slotSelectFont(); + void schema_menu_check(); + void keytab_menu_activated(int item); + void updateSchemaMenu(); + void setSchema(int n); + void pixmap_menu_activated(int item); + void schema_menu_activated(int item); + void slotHistoryType(); + void slotSelectBell(); + void slotSelectLineSpacing(); + void slotBlinkingCursor(); + void slotUseKonsoleSettings(); + void slotWordSeps(); + void slotSetEncoding(); + void biggerFont(); + void smallerFont(); + + void autoShowShell(); + + private: + konsoleBrowserExtension *m_extension; + KURL currentURL; + + void makeGUI(); + void applySettingsToGUI(); + +// void setSchema(ColorSchema* s); + void updateKeytabMenu(); + + bool doOpenStream( const QString& ); + bool doWriteStream( const QByteArray& ); + bool doCloseStream(); + + QWidget* parentWidget; +// TEWidget* te; +// TESession* se; + // ColorSchemaList* colors; + KRootPixmap* rootxpm; + + KActionCollection* actions; + KActionCollection* settingsActions; + + KToggleAction* blinkingCursor; + KToggleAction* showFrame; + KToggleAction* m_useKonsoleSettings; + + KSelectAction* selectBell; + KSelectAction* selectLineSpacing; + KSelectAction* selectScrollbar; + KSelectAction* selectSetEncoding; + + KActionMenu* m_fontsizes; + + KPopupMenu* m_keytab; + KPopupMenu* m_schema; + KPopupMenu* m_signals; + KPopupMenu* m_options; + KPopupMenu* m_popupMenu; + + QFont defaultFont; + + QString pmPath; // pixmap path + QString s_schema; + QString s_kconfigSchema; + QString s_word_seps; // characters that are considered part of a word + + bool b_framevis:1; + bool b_histEnabled:1; + bool b_useKonsoleSettings:1; + bool b_autoDestroy:1; + bool b_autoStartShell:1; + + int curr_schema; // current schema no + int n_bell; + int n_keytab; + int n_render; + int n_scroll; + unsigned m_histSize; + bool m_runningShell; + bool m_streamEnabled; + int n_encoding; + +public: + // these are the implementations for the TermEmuInterface + // functions... + void startProgram( const QString& program, + const QStrList& args ); + void newSession(); + void showShellInDir( const QString& dir ); + void sendInput( const QString& text ); + void setAutoDestroy( bool ); + void setAutoStartShell( bool ); +}; + +////////////////////////////////////////////////////////////////////// + +/*class HistoryTypeDialog : public KDialogBase +{ + Q_OBJECT +public: + HistoryTypeDialog(const HistoryType& histType, + unsigned int histSize, + QWidget *parent); + +public slots: + void slotDefault(); + void slotSetUnlimited(); + void slotHistEnable(bool); + + unsigned int nbLines() const; + bool isOn() const; + +protected: + QCheckBox* m_btnEnable; + QSpinBox* m_size; + QPushButton* m_setUnlimited; +};*/ + +////////////////////////////////////////////////////////////////////// + +class konsoleBrowserExtension : public KParts::BrowserExtension +{ + Q_OBJECT + friend class konsolePart; + public: + konsoleBrowserExtension(konsolePart *parent); + virtual ~konsoleBrowserExtension(); + + void emitOpenURLRequest(const KURL &url); +}; + +#endif diff --git a/extra/kde351/kpanelmenu.h b/extra/kde351/kpanelmenu.h new file mode 100644 index 0000000..61ec7f1 --- /dev/null +++ b/extra/kde351/kpanelmenu.h @@ -0,0 +1,182 @@ +/***************************************************************** + +Copyright (c) 1996-2000 the kicker authors. See file AUTHORS. + (c) 2001 Michael Goffioul + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN +AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +******************************************************************/ + +#ifndef __KPANELMENU_H__ +#define __KPANELMENU_H__ + +#include +#include +#include + +class KPanelMenuPrivate; + +/** + * @short Base class to build dynamically loaded menu entries for the K-menu, or the panel. + * + * This class allows to build menu entries that will be dynamically added either to + * the K-menu, or to the panel as a normal button. These dynamic menus are located + * in shared libraries that will be loaded at runtime by Kicker (the %KDE panel). + * + * To build such a menu, you have to inherit this class and implement the pure virtual + * functions #initialize() and slotExec(). You also have to provide a factory + * object in your library, see KLibFactory. This factory is only used to construct + * the menu object. + * + * Finally, you also have to provide a desktop file describing your dynamic menu. The + * relevant entries are: Name, Comment, Icon and X-KDE-Library (which contains the + * library name without any extension). This desktop file has to be installed in + * $KDEDIR/share/apps/kicker/menuext/. + * + * @author The kicker maintainers, Michael Goffioul + */ +class KDEUI_EXPORT KPanelMenu : public KPopupMenu +{ + Q_OBJECT + +public: + /** + * Construct a KPanelMenu object. This is the normal constructor to use when + * building extrernal menu entries. + */ + KPanelMenu(QWidget *parent=0, const char *name=0); + /** + * Constructor used internally by Kicker. You don't really want to use it. + * @param startDir a directory to associate with this menu + * @param parent parent object + * @param name name of the object + * @see path(), setPath() + */ + KPanelMenu(const QString &startDir, QWidget *parent=0, const char *name=0); + /** + * Destructor. + */ + virtual ~KPanelMenu(); + + /** + * Get the directory path associated with this menu, or QString::null if + * there's no such associated path. + * @return the associated directory path + * @see setPath() + */ + const QString& path() const; + /** + * Set a directory path to be associated with this menu. + * @param p the directory path + * @see path() + */ + void setPath(const QString &p); + /** + * Tell if the menu has been initialized, that is it already contains items. + * This is useful when you need to know if you have to clear the menu, or to + * fill it. + * @return the initial state + * @see setInitialized(), initialize() + */ + bool initialized() const; + /** + * Set the initial state. Set it to true when you menu is filled with the items + * you want. + * @param on the initial state + * @see initialized(), initialize() + */ + void setInitialized(bool on); + + /** + * Disable the automatic clearing of the menu. Kicker uses a cache system for + * its menus. After a specific configurable delay, the menu will be cleared. + * Use this function if you want to disable kicker's cache system, and avoid + * the clearing of your menu. + */ + void disableAutoClear(); + +public slots: + /** + * Reinitialize the menu: the menu is first cleared, the initial state is set + * to false, and finally #initialize() is called. Use this if you want to + * refill your menu immediately. + */ + void reinitialize(); + /** + * Deinitialize the menu: the menu is cleared and the initialized state is set to + * false. #initialize() is NOT called. It will be called before the menu is + * next shown, however. Use this slot if you want a delayed reinitialization. + * @since 3.1 + */ + void deinitialize(); + +protected slots: + /** + * This slot is called just before the menu is shown. This allows your menu + * to update itself if needed. However you should instead re-implement + * #initialize to provide this feature. This function is responsible for + * the cache system handling, so if you re-implement it, you should call + * the base function also. Calls #initialize(). + * @see disableAutoClear() + */ + virtual void slotAboutToShow(); + /** + * This is slot is called when an item from the menu has been selected. Your + * applet is then supposed to perform some action. You must re-implement this + * function. + * @param id the ID associated with the selected item + */ + virtual void slotExec(int id) = 0; + /** + * This slots is called to initialize the menu. It is called automatically by + * slotAboutToShow(). By re-implementing this functions, you can reconstruct + * the menu before it is being shown. At the end of this function, you should + * call setInitialize() with true to tell the system that the menu is OK. + * You applet must re-implement this function. + * @see slotAboutToShow(), initialized(), setInitialized() + */ + virtual void initialize() = 0; + /** + * Clears the menu, and update the initial state accordingly. + * @see initialized() + */ + void slotClear(); + +protected: + /** + * Re-implemented for internal reasons. + */ + virtual void hideEvent(QHideEvent *ev); + /** + * For internal use only. Used by constructors. + */ + void init(const QString& path = QString::null); + +protected: + virtual void virtual_hook( int id, void* data ); +private: + void internalInitialize(); + KPanelMenuPrivate *d; +}; + +#define K_EXPORT_KICKER_MENUEXT( libname, classname ) \ + K_EXPORT_COMPONENT_FACTORY( \ + kickermenu_##libname, \ + KGenericFactory("libkickermenu_" #libname) ) + +#endif diff --git a/extra/kde351/ksharedptr.h b/extra/kde351/ksharedptr.h new file mode 100644 index 0000000..ada0841 --- /dev/null +++ b/extra/kde351/ksharedptr.h @@ -0,0 +1,175 @@ +/* This file is part of the KDE libraries + Copyright (c) 1999 Waldo Bastian + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License version 2 as published by the Free Software Foundation. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ +#ifndef KSharedPTR_H +#define KSharedPTR_H + +#include "kdelibs_export.h" + +/** + * Reference counting for shared objects. If you derive your object + * from this class, then you may use it in conjunction with + * KSharedPtr to control the lifetime of your object. + * + * Specifically, all classes that derive from KShared have an internal + * counter keeping track of how many other objects have a reference to + * their object. If used with KSharedPtr, then your object will + * not be deleted until all references to the object have been + * released. + * + * You should probably not ever use any of the methods in this class + * directly -- let the KSharedPtr take care of that. Just derive + * your class from KShared and forget about it. + * + * @author Waldo Bastian + */ +class KDECORE_EXPORT KShared { +public: + /** + * Standard constructor. This will initialize the reference count + * on this object to 0. + */ + KShared() : count(0) { } + + /** + * Copy constructor. This will @em not actually copy the objects + * but it will initialize the reference count on this object to 0. + */ + KShared( const KShared & ) : count(0) { } + + /** + * Overloaded assignment operator. + */ + KShared &operator=(const KShared & ) { return *this; } + + /** + * Increases the reference count by one. + */ + void _KShared_ref() const { count++; } + + /** + * Releases a reference (decreases the reference count by one). If + * the count goes to 0, this object will delete itself. + */ + void _KShared_unref() const { if (!--count) delete this; } + + /** + * Return the current number of references held. + * + * @return Number of references + */ + int _KShared_count() const { return count; } + +protected: + virtual ~KShared() { } +private: + mutable int count; +}; + +/** + * Can be used to control the lifetime of an object that has derived + * KShared. As long a someone holds a KSharedPtr on some KShared + * object it won't become deleted but is deleted once its reference + * count is 0. This struct emulates C++ pointers virtually perfectly. + * So just use it like a simple C++ pointer. + * + * KShared and KSharedPtr are preferred over QShared / QSharedPtr + * since they are more safe. + * + * WARNING: Please note that this class template provides an implicit + * conversion to T*. Do *not* change this pointer or the pointee (don't + * call delete on it, for instance) behind KSharedPtr's back. + * + * @author Waldo Bastian + */ +template< class T > +class KSharedPtr +{ +public: +/** + * Creates a null pointer. + */ + KSharedPtr() + : ptr(0) { } + /** + * Creates a new pointer. + * @param t the pointer + */ + KSharedPtr( T* t ) + : ptr(t) { if ( ptr ) ptr->_KShared_ref(); } + + /** + * Copies a pointer. + * @param p the pointer to copy + */ + KSharedPtr( const KSharedPtr& p ) + : ptr(p.ptr) { if ( ptr ) ptr->_KShared_ref(); } + + /** + * Unreferences the object that this pointer points to. If it was + * the last reference, the object will be deleted. + */ + ~KSharedPtr() { if ( ptr ) ptr->_KShared_unref(); } + + KSharedPtr& operator= ( const KSharedPtr& p ) { + if ( ptr == p.ptr ) return *this; + if ( ptr ) ptr->_KShared_unref(); + ptr = p.ptr; + if ( ptr ) ptr->_KShared_ref(); + return *this; + } + KSharedPtr& operator= ( T* p ) { + if ( ptr == p ) return *this; + if ( ptr ) ptr->_KShared_unref(); + ptr = p; + if ( ptr ) ptr->_KShared_ref(); + return *this; + } + bool operator== ( const KSharedPtr& p ) const { return ( ptr == p.ptr ); } + bool operator!= ( const KSharedPtr& p ) const { return ( ptr != p.ptr ); } + bool operator== ( const T* p ) const { return ( ptr == p ); } + bool operator!= ( const T* p ) const { return ( ptr != p ); } + bool operator!() const { return ( ptr == 0 ); } + operator T*() const { return ptr; } + + /** + * Returns the pointer. + * @return the pointer + */ + T* data() { return ptr; } + + /** + * Returns the pointer. + * @return the pointer + */ + const T* data() const { return ptr; } + + const T& operator*() const { return *ptr; } + T& operator*() { return *ptr; } + const T* operator->() const { return ptr; } + T* operator->() { return ptr; } + + /** + * Returns the number of references. + * @return the number of references + */ + int count() const { return ptr->_KShared_count(); } // for debugging purposes +private: + T* ptr; +}; + +#endif diff --git a/extra/kde351/ksycocafactory.h b/extra/kde351/ksycocafactory.h new file mode 100644 index 0000000..65bb9d9 --- /dev/null +++ b/extra/kde351/ksycocafactory.h @@ -0,0 +1,143 @@ +/* This file is part of the KDE libraries + * Copyright (C) 1999 Waldo Bastian + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License version 2 as published by the Free Software Foundation; + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public License + * along with this library; see the file COPYING.LIB. If not, write to + * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA. + **/ + +#ifndef __ksycocafactory_h__ +#define __ksycocafactory_h__ + +#include "ksycocatype.h" +#include "ksycocaentry.h" + +#include +#include +class KSycoca; +class QStringList; +class QString; +class KSycocaDict; +class KSycocaResourceList; + +typedef QDict KSycocaEntryDict; + +/** + * @internal + * Base class for sycoca factories + */ +class KDECORE_EXPORT KSycocaFactory +{ +public: + virtual KSycocaFactoryId factoryId() const = 0; + +protected: // virtual class + /** + * Create a factory which can be used to lookup from/create a database + * (depending on KSycoca::isBuilding()) + */ + KSycocaFactory( KSycocaFactoryId factory_id ); + +public: + virtual ~KSycocaFactory(); + + /** + * @return the position of the factory in the sycoca file + */ + int offset() { return mOffset; } + + /** + * @return the dict, for special use by KBuildSycoca + */ + KSycocaEntryDict * entryDict() { return m_entryDict; } + + /** + * Construct an entry from a config file. + * To be implemented in the real factories. + */ + virtual KSycocaEntry *createEntry(const QString &file, const char *resource) = 0; + + /** + * Add an entry + */ + virtual void addEntry(KSycocaEntry *newEntry, const char *resource); + + /** + * Remove an entry + * Not very fast, use with care. O(N) + */ + void removeEntry(KSycocaEntry *newEntry); + + /** + * Read an entry from the database + */ + virtual KSycocaEntry *createEntry(int offset)=0; + + /** + * Get a list of all entries from the database. + */ + KSycocaEntry::List allEntries(); + + /** + * Saves all entries it maintains as well as index files + * for these entries to the stream 'str'. + * + * Also sets mOffset to the starting position. + * + * The stream is positioned at the end of the last index. + * + * Don't forget to call the parent first when you override + * this function. + */ + virtual void save(QDataStream &str); + + /** + * Writes out a header to the stream 'str'. + * The baseclass positions the stream correctly. + * + * Don't forget to call the parent first when you override + * this function. + */ + virtual void saveHeader(QDataStream &str); + + /** + * @return the resources for which this factory is responsible. + */ + virtual const KSycocaResourceList * resourceList() const { return m_resourceList; } + +private: + int mOffset; + +protected: + int m_sycocaDictOffset; + int m_beginEntryOffset; + int m_endEntryOffset; + QDataStream *m_str; + + KSycocaResourceList *m_resourceList; + KSycocaEntryDict *m_entryDict; + KSycocaDict *m_sycocaDict; +protected: + virtual void virtual_hook( int id, void* data ); +}; + +/** This, instead of a typedef, allows to declare "class ..." in header files + * @internal + */ +class KDECORE_EXPORT KSycocaFactoryList : public QPtrList +{ +public: + KSycocaFactoryList() { } +}; + +#endif diff --git a/extra/kde351/ktoolbarbutton.h b/extra/kde351/ktoolbarbutton.h new file mode 100644 index 0000000..7526f02 --- /dev/null +++ b/extra/kde351/ktoolbarbutton.h @@ -0,0 +1,330 @@ +/* This file is part of the KDE libraries + Copyright (C) 1997, 1998 Stephan Kulow (coolo@kde.org) + (C) 1997, 1998 Sven Radej (radej@kde.org) + (C) 1997, 1998 Mark Donohoe (donohoe@kde.org) + (C) 1997, 1998 Matthias Ettrich (ettrich@kde.org) + (C) 2000 Kurt Granroth (granroth@kde.org) + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License version 2 as published by the Free Software Foundation. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef _KTOOLBARBUTTON_H +#define _KTOOLBARBUTTON_H + +#include +#include +#include +#include +#include + +class KToolBar; +class KToolBarButtonPrivate; +class KInstance; +class QEvent; +class QPopupMenu; +class QPainter; + +/** + * A toolbar button. This is used internally by KToolBar, use the + * KToolBar methods instead. + * @internal + */ +class KDEUI_EXPORT KToolBarButton : public QToolButton +{ + Q_OBJECT + +public: + /** + * Construct a button with an icon loaded by the button itself. + * This will trust the button to load the correct icon with the + * correct size. + * + * @param icon Name of icon to load (may be absolute or relative) + * @param id Id of this button + * @param parent This button's parent + * @param name This button's internal name + * @param txt This button's text (in a tooltip or otherwise) + * @param _instance the instance to use for this button + */ + KToolBarButton(const QString& icon, int id, QWidget *parent, + const char *name=0L, const QString &txt=QString::null, + KInstance *_instance = KGlobal::instance()); + + /** + * Construct a button with an existing pixmap. It is not + * recommended that you use this as the internal icon loading code + * will almost always get it "right". + * + * @param pixmap Name of icon to load (may be absolute or relative) + * @param id Id of this button + * @param parent This button's parent + * @param name This button's internal name + * @param txt This button's text (in a tooltip or otherwise) + */ + KToolBarButton(const QPixmap& pixmap, int id, QWidget *parent, + const char *name=0L, const QString &txt=QString::null); + + /** + * Construct a separator button + * + * @param parent This button's parent + * @param name This button's internal name + */ + KToolBarButton(QWidget *parent=0L, const char *name=0L); + + /** + * Standard destructor + */ + ~KToolBarButton(); + +#ifndef KDE_NO_COMPAT + /** + * @deprecated + * Set the pixmap directly for this button. This pixmap should be + * the active one... the dimmed and disabled pixmaps are constructed + * based on this one. However, don't use this function unless you + * are positive that you don't want to use setIcon. + * + * @param pixmap The active pixmap + */ + // this one is from QButton, so #ifdef-ing it out doesn't break BC + virtual void setPixmap(const QPixmap &pixmap) KDE_DEPRECATED; + + /** + * @deprecated + * Force the button to use this pixmap as the default one rather + * then generating it using effects. + * + * @param pixmap The pixmap to use as the default (normal) one + */ + void setDefaultPixmap(const QPixmap& pixmap) KDE_DEPRECATED; + + /** + * @deprecated + * Force the button to use this pixmap when disabled one rather then + * generating it using effects. + * + * @param pixmap The pixmap to use when disabled + */ + void setDisabledPixmap(const QPixmap& pixmap) KDE_DEPRECATED; +#endif + + /** + * Set the text for this button. The text will be either used as a + * tooltip (IconOnly) or will be along side the icon + * + * @param text The button (or tooltip) text + */ + virtual void setText(const QString &text); + + /** + * Set the icon for this button. The icon will be loaded internally + * with the correct size. This function is preferred over setIconSet + * + * @param icon The name of the icon + */ + virtual void setIcon(const QString &icon); + + /// @since 3.1 + virtual void setIcon( const QPixmap &pixmap ) + { QToolButton::setIcon( pixmap ); } + + /** + * Set the pixmaps for this toolbar button from a QIconSet. + * If you call this you don't need to call any of the other methods + * that set icons or pixmaps. + * @param iconset The iconset to use + */ + virtual void setIconSet( const QIconSet &iconset ); + +#ifndef KDE_NO_COMPAT + /** + * @deprecated + * Set the active icon for this button. The pixmap itself is loaded + * internally based on the icon size... .. the disabled and default + * pixmaps, however will only be constructed if generate is + * true. This function is preferred over setPixmap + * + * @param icon The name of the active icon + * @param generate If true, then the other icons are automagically + * generated from this one + */ + KDE_DEPRECATED void setIcon(const QString &icon, bool generate ) { Q_UNUSED(generate); setIcon( icon ); } + + /** + * @deprecated + * Force the button to use this icon as the default one rather + * then generating it using effects. + * + * @param icon The icon to use as the default (normal) one + */ + void setDefaultIcon(const QString& icon) KDE_DEPRECATED; + + /** + * @deprecated + * Force the button to use this icon when disabled one rather then + * generating it using effects. + * + * @param icon The icon to use when disabled + */ + void setDisabledIcon(const QString& icon) KDE_DEPRECATED; +#endif + + /** + * Turn this button on or off + * + * @param flag true or false + */ + void on(bool flag = true); + + /** + * Toggle this button + */ + void toggle(); + + /** + * Turn this button into a toggle button or disable the toggle + * aspects of it. This does not toggle the button itself. + * Use toggle() for that. + * + * @param toggle true or false + */ + void setToggle(bool toggle = true); + + /** + * Return a pointer to this button's popup menu (if it exists) + */ + QPopupMenu *popup(); + + /** + * Returns the button's id. + * @since 3.2 + */ + int id() const; + + /** + * Give this button a popup menu. There will not be a delay when + * you press the button. Use setDelayedPopup if you want that + * behavior. + * + * @param p The new popup menu + * @param unused Has no effect - ignore it. + */ + void setPopup (QPopupMenu *p, bool unused = false); + + /** + * Gives this button a delayed popup menu. + * + * This function allows you to add a delayed popup menu to the button. + * The popup menu is then only displayed when the button is pressed and + * held down for about half a second. + * + * @param p the new popup menu + * @param unused Has no effect - ignore it. + */ + void setDelayedPopup(QPopupMenu *p, bool unused = false); + + /** + * Turn this button into a radio button + * + * @param f true or false + */ + void setRadio(bool f = true); + + /** + * Toolbar buttons naturally will assume the global styles + * concerning icons, icons sizes, etc. You can use this function to + * explicitly turn this off, if you like. + * + * @param no_style Will disable styles if true + */ + void setNoStyle(bool no_style = true); + +signals: + /** + * Emitted when the toolbar button is clicked (with LMB or MMB) + */ + void clicked(int); + /** + * Emitted when the toolbar button is clicked (with any mouse button) + * @param state makes it possible to find out which button was pressed, + * and whether any keyboard modifiers were held. + * @since 3.4 + */ + void buttonClicked(int, Qt::ButtonState state); + void doubleClicked(int); + void pressed(int); + void released(int); + void toggled(int); + void highlighted(int, bool); + +public slots: + /** + * This slot should be called whenever the toolbar mode has + * potentially changed. This includes such events as text changing, + * orientation changing, etc. + */ + void modeChange(); + virtual void setTextLabel(const QString&, bool tipToo); + +protected: + bool event(QEvent *e); + void paletteChange(const QPalette &); + void leaveEvent(QEvent *e); + void enterEvent(QEvent *e); + void drawButton(QPainter *p); + bool eventFilter (QObject *o, QEvent *e); + /// @since 3.4 + void mousePressEvent( QMouseEvent * ); + /// @since 3.4 + void mouseReleaseEvent( QMouseEvent * ); + void showMenu(); + QSize sizeHint() const; + QSize minimumSizeHint() const; + QSize minimumSize() const; + + /// @since 3.1 + bool isRaised() const; + /// @since 3.1 + bool isActive() const; + /// @since 3.1 + int iconTextMode() const; + +protected slots: + void slotClicked(); + void slotPressed(); + void slotReleased(); + void slotToggled(); + void slotDelayTimeout(); + +protected: + virtual void virtual_hook( int id, void* data ); +private: + KToolBarButtonPrivate *d; +}; + +/** +* List of KToolBarButton objects. +* @internal +* @version $Id: ktoolbarbutton.h 465272 2005-09-29 09:47:40Z mueller $ +*/ +class KDEUI_EXPORT KToolBarButtonList : public QIntDict +{ +public: + KToolBarButtonList(); + ~KToolBarButtonList() {} +}; + +#endif diff --git a/extra/kde351/kurifilter.h b/extra/kde351/kurifilter.h new file mode 100644 index 0000000..355ce38 --- /dev/null +++ b/extra/kde351/kurifilter.h @@ -0,0 +1,647 @@ +/* + * This file is part of the KDE libraries + * Copyright (C) 2000-2001,2003 Dawit Alemayehu + * + * Original author + * Copyright (C) 2000 Yves Arrouye + * + * + * This library 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. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public License + * along with this library; see the file COPYING.LIB. If not, write to + * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA. + **/ + +#ifndef __kurifilter_h__ +#define __kurifilter_h__ + +#include +#include +#include + +#include + +#ifdef Q_OS_WIN +#undef ERROR +#endif + +class KURIFilterPrivate; +class KURIFilterDataPrivate; + +class KCModule; + +/** +* A basic message object used for exchanging filtering +* information between the filter plugins and the application +* requesting the filtering service. +* +* Use this object if you require a more detailed information +* about the URI you want to filter. Any application can create +* an instance of this class and send it to KURIFilter to +* have the plugins fill out all possible information about the +* URI. +* +* \b Example +* +* \code +* QString text = "kde.org"; +* KURIFilterData d = text; +* bool filtered = KURIFilter::self()->filter( d ); +* cout << "URL: " << text.latin1() << endl +* << "Filtered URL: " << d.uri().url().latin1() << endl +* << "URI Type: " << d.uriType() << endl +* << "Was Filtered: " << filtered << endl; +* \endcode +* +* The above code should yield the following output: +* \code +* URI: kde.org +* Filtered URI: http://kde.org +* URI Type: 0 <== means NET_PROTOCOL +* Was Filtered: 1 <== means the URL was successfully filtered +* \endcode +* +* @short A message object for exchanging filtering URI info. +* @author Dawit Alemayehu +*/ + +class KIO_EXPORT KURIFilterData +{ +friend class KURIFilterPlugin; + +public: + /** + * Describes the type of the URI that was filtered. + * Here is a brief description of the types: + * + * @li NET_PROTOCOL - Any network protocol: http, ftp, nttp, pop3, etc... + * @li LOCAL_FILE - A local file whose executable flag is not set + * @li LOCAL_DIR - A local directory + * @li EXECUTABLE - A local file whose executable flag is set + * @li HELP - A man or info page + * @li SHELL - A shell executable (ex: echo "Test..." >> ~/testfile) + * @li BLOCKED - A URI that should be blocked/filtered (ex: ad filtering) + * @li ERROR - An incorrect URI (ex: "~johndoe" when user johndoe + * does not exist in that system ) + * @li UNKNOWN - A URI that is not identified. Default value when + * a KURIFilterData is first created. + */ + enum URITypes { NET_PROTOCOL=0, LOCAL_FILE, LOCAL_DIR, EXECUTABLE, HELP, SHELL, BLOCKED, ERROR, UNKNOWN }; + + /** + * Default constructor. + * + * Creates a URIFilterData object. + */ + KURIFilterData() { init(); } + + /** + * Creates a URIFilterData object from the given URL. + * + * @param url is the URL to be filtered. + */ + KURIFilterData( const KURL& url ) { init( url); } + + /** + * Creates a URIFilterData object from the given string. + * + * @param url is the string to be filtered. + */ + KURIFilterData( const QString& url ) { init( url ); } + + /** + * Copy constructor. + * + * Creates a URIFilterData object from another + * URI filter data object. + * + * @param data the uri filter data to be copied. + */ + KURIFilterData( const KURIFilterData& data); + + /** + * Destructor. + */ + ~KURIFilterData(); + + /** + * This method has been deprecated and will always return + * true. You should instead use the result from the + * KURIFilter::filterURI() calls. + * + * @deprecated + */ + KDE_DEPRECATED bool hasBeenFiltered() const { return true; } + + /** + * Returns the filtered or the original URL. + * + * This function returns the filtered url if one + * of the plugins successfully filtered the original + * URL. Otherwise, it returns the original URL. + * See hasBeenFiltered() and + * + * @return the filtered or original url. + */ + KURL uri() const { return m_pURI; } + + /** + * Returns an error message. + * + * This functions returns the error message set + * by the plugin whenever the uri type is set to + * KURIFilterData::ERROR. Otherwise, it returns + * a QString::null. + * + * @return the error message or a NULL when there is none. + */ + QString errorMsg() const { return m_strErrMsg; } + + /** + * Returns the URI type. + * + * This method always returns KURIFilterData::UNKNOWN + * if the given URL was not filtered. + * @return the type of the URI + */ + URITypes uriType() const { return m_iType; } + + /** + * Sets the URL to be filtered. + * + * Use this function to set the string to be + * filtered when you construct an empty filter + * object. + * + * @param url the string to be filtered. + */ + void setData( const QString& url ) { init( url ); } + + /** + * Same as above except the argument is a URL. + * + * Use this function to set the string to be + * filtered when you construct an empty filter + * object. + * + * @param url the URL to be filtered. + */ + void setData( const KURL& url ) { init( url ); } + + /** + * Sets the absolute path to be used whenever the supplied + * data is a relative local URL. + * + * NOTE: This function should only be used for local resources, + * i.e. the "file:/" protocol. It is useful for specifying the + * absolute path in cases where the actual URL might be relative. + * meta object. If deriving the path from a KURL, make sure you + * set the argument for this function to the result of calling + * path () instead of url (). + * + * @param abs_path the abolute path to the local resource. + * @return true if absolute path is successfully set. Otherwise, false. + */ + bool setAbsolutePath( const QString& abs_path ); + + /** + * Returns the absolute path if one has already been set. + * @return the absolute path, or QString::null + * @see hasAbsolutePath() + */ + QString absolutePath() const; + + /** + * Checks whether the supplied data had an absolute path. + * @return true if the supplied data has an absolute path + * @see absolutePath() + */ + bool hasAbsolutePath() const; + + /** + * Returns the command line options and arguments for a + * local resource when present. + * + * @return options and arguments when present, otherwise QString::null + */ + QString argsAndOptions() const; + + /** + * Checks whether the current data is a local resource with + * command line options and arguments. + * @return true if the current data has command line options and arguments + */ + bool hasArgsAndOptions() const; + + /** + * Returns the name of the icon that matches + * the current filtered URL. + * + * NOTE that this function will return a NULL + * string by default and when no associated icon + * is found. + * + * @return the name of the icon associated with the resource, + * or QString::null if not found + */ + QString iconName(); + + /** + * Check whether the provided uri is executable or not. + * + * Setting this to false ensures that typing the name of + * an executable does not start that application. This is + * useful in the location bar of a browser. The default + * value is true. + * + * @since 3.2 + */ + void setCheckForExecutables (bool check); + + /** + * @return true if the filters should attempt to check whether the + * supplied uri is an executable. False otherwise. + * + * @since 3.2 + */ + bool checkForExecutables() const { return m_bCheckForExecutables; } + + /** + * @return the string as typed by the user, before any URL processing is done + * @since 3.2 + */ + QString typedString() const; + + /** + * Overloaded assigenment operator. + * + * This function allows you to easily assign a KURL + * to a KURIFilterData object. + * + * @return an instance of a KURIFilterData object. + */ + KURIFilterData& operator=( const KURL& url ) { init( url ); return *this; } + + /** + * Overloaded assigenment operator. + * + * This function allows you to easily assign a QString + * to a KURIFilterData object. + * + * @return an instance of a KURIFilterData object. + */ + KURIFilterData& operator=( const QString& url ) { init( url ); return *this; } + +protected: + + /** + * Initializes the KURIFilterData on construction. + * @param url the URL to initialize the object with + */ + void init( const KURL& url); + + /** + * Initializes the KURIFilterData on construction. + * @param url the URL to initialize the object with + */ + void init( const QString& url = QString::null ); + +private: + bool m_bCheckForExecutables; + bool m_bChanged; + + QString m_strErrMsg; + QString m_strIconName; + + KURL m_pURI; + URITypes m_iType; + KURIFilterDataPrivate *d; +}; + + +/** + * Base class for URI filter plugins. + * + * This class applies a single filter to a URI. All plugins designed + * to provide URI filtering service should inherit from this abstract + * class and provide a concrete implementation. + * + * All inheriting classes need to implement the pure virtual function + * filterURI. + * + * @short Abstract class for URI filter plugins. + */ +class KIO_EXPORT KURIFilterPlugin : public QObject +{ + Q_OBJECT + +public: + + /** + * Constructs a filter plugin with a given name and + * priority. + * + * @param parent the parent object, or 0 for no parent + * @param name the name of the plugin, or 0 for no name + * @param pri the priority of the plugin. + */ + KURIFilterPlugin( QObject *parent = 0, const char *name = 0, double pri = 1.0 ); + + /** + * Returns the filter's name. + * + * @return A string naming the filter. + */ + virtual QString name() const { return m_strName; } + + /** + * Returns the filter's priority. + * + * Each filter has an assigned priority, a float from 0 to 1. Filters + * with the lowest priority are first given a chance to filter a URI. + * + * @return The priority of the filter. + */ + virtual double priority() const { return m_dblPriority; } + + /** + * Filters a URI. + * + * @param data the URI data to be filtered. + * @return A boolean indicating whether the URI has been changed. + */ + virtual bool filterURI( KURIFilterData& data ) const = 0; + + /** + * Creates a configuration module for the filter. + * + * It is the responsibility of the caller to delete the module + * once it is not needed anymore. + * + * @return A configuration module, 0 if the filter isn't configurable. + */ + virtual KCModule *configModule( QWidget*, const char* ) const { return 0; } + + /** + * Returns the name of the configuration module for the filter. + * + * @return the name of a configuration module or QString::null if none. + */ + virtual QString configName() const { return name(); } + +protected: + + /** + * Sets the the URL in @p data to @p uri. + */ + void setFilteredURI ( KURIFilterData& data, const KURL& uri ) const; + + /** + * Sets the error message in @p data to @p errormsg. + */ + void setErrorMsg ( KURIFilterData& data, const QString& errmsg ) const { + data.m_strErrMsg = errmsg; + } + + /** + * Sets the URI type in @p data to @p type. + */ + void setURIType ( KURIFilterData& data, KURIFilterData::URITypes type) const { + data.m_iType = type; + data.m_bChanged = true; + } + + /** + * Sets the arguments and options string in @p data + * to @p args if any were found during filterting. + */ + void setArguments( KURIFilterData& data, const QString& args ) const; + + QString m_strName; + double m_dblPriority; + +protected: + virtual void virtual_hook( int id, void* data ); +private: + class KURIFilterPluginPrivate *d; +}; + + +/** + * A list of filter plugins. + */ +class KIO_EXPORT KURIFilterPluginList : public QPtrList +{ +public: + virtual int compareItems(Item a, Item b) + { + double diff = ((KURIFilterPlugin *) a)->priority() - ((KURIFilterPlugin *) b)->priority(); + return diff < 0 ? -1 : (diff > 0 ? 1 : 0); + } + +private: + KURIFilterPrivate *d; + +}; + +/** + * Manages the filtering of URIs. + * + * The intention of this plugin class is to allow people to extend the + * functionality of KURL without modifying it directly. This way KURL will + * remain a generic parser capable of parsing any generic URL that adheres + * to specifications. + * + * The KURIFilter class applies a number of filters to a URI and returns the + * filtered version whenever possible. The filters are implemented using + * plugins to provide easy extensibility of the filtering mechanism. New + * filters can be added in the future by simply inheriting from + * KURIFilterPlugin and implementing the KURIFilterPlugin::filterURI + * method. + * + * Use of this plugin-manager class is straight forward. Since it is a + * singleton object, all you have to do is obtain an instance by doing + * @p KURIFilter::self() and use any of the public member functions to + * preform the filtering. + * + * \b Example + * + * To simply filter a given string: + * + * \code + * bool filtered = KURIFilter::self()->filterURI( "kde.org" ); + * \endcode + * + * You can alternatively use a KURL: + * + * \code + * KURL url = "kde.org"; + * bool filtered = KURIFilter::self()->filterURI( url ); + * \endcode + * + * If you have a constant string or a constant URL, simply invoke the + * corresponding function to obtain the filtered string or URL instead + * of a boolean flag: + * + * \code + * QString u = KURIFilter::self()->filteredURI( "kde.org" ); + * \endcode + * + * You can also restrict the filter(s) to be used by supplying + * the name of the filter(s) to use. By defualt all available + * filters will be used. To use specific filters, add the names + * of the filters you want to use to a QStringList and invoke + * the appropriate filtering function. The examples below show + * the use of specific filters. The first one uses a single + * filter called kshorturifilter while the second example uses + * multiple filters: + * + * \code + * QString text = "kde.org"; + * bool filtered = KURIFilter::self()->filterURI( text, "kshorturifilter" ); + * \endcode + * + * \code + * QStringList list; + * list << "kshorturifilter" << "localdomainfilter"; + * bool filtered = KURIFilter::self()->filterURI( text, list ); + * \endcode + * + * KURIFilter also allows richer data exchange through a simple + * meta-object called @p KURIFilterData. Using this meta-object + * you can find out more information about the URL you want to + * filter. See KURIFilterData for examples and details. + * + * @short Filters a given URL into its proper format whenever possible. + */ + +class KIO_EXPORT KURIFilter +{ +public: + /** + * Destructor + */ + ~KURIFilter (); + + /** + * Returns an instance of KURIFilter. + */ + static KURIFilter* self(); + + /** + * Filters the URI given by the object URIFilterData. + * + * The given URL is filtered based on the specified list of filters. + * If the list is empty all available filters would be used. + * + * @param data object that contains the URI to be filtered. + * @param filters specify the list of filters to be used. + * + * @return a boolean indicating whether the URI has been changed + */ + bool filterURI( KURIFilterData& data, const QStringList& filters = QStringList() ); + + /** + * Filters the URI given by the URL. + * + * The given URL is filtered based on the specified list of filters. + * If the list is empty all available filters would be used. + * + * @param uri the URI to filter. + * @param filters specify the list of filters to be used. + * + * @return a boolean indicating whether the URI has been changed + */ + bool filterURI( KURL &uri, const QStringList& filters = QStringList() ); + + /** + * Filters a string representing a URI. + * + * The given URL is filtered based on the specified list of filters. + * If the list is empty all available filters would be used. + * + * @param uri The URI to filter. + * @param filters specify the list of filters to be used. + * + * @return a boolean indicating whether the URI has been changed + */ + bool filterURI( QString &uri, const QStringList& filters = QStringList() ); + + /** + * Returns the filtered URI. + * + * The given URL is filtered based on the specified list of filters. + * If the list is empty all available filters would be used. + * + * @param uri The URI to filter. + * @param filters specify the list of filters to be used. + * + * @return the filtered URI or null if it cannot be filtered + */ + KURL filteredURI( const KURL &uri, const QStringList& filters = QStringList() ); + + /** + * Return a filtered string representation of a URI. + * + * The given URL is filtered based on the specified list of filters. + * If the list is empty all available filters would be used. + * + * @param uri the URI to filter. + * @param filters specify the list of filters to be used. + * + * @return the filtered URI or null if it cannot be filtered + */ + QString filteredURI( const QString &uri, const QStringList& filters = QStringList() ); + + /** + * Return an iterator to iterate over all loaded + * plugins. + * + * @return a plugin iterator. + */ + QPtrListIterator pluginsIterator() const; + + /** + * Return a list of the names of all loaded plugins. + * + * @return a QStringList of plugin names + * @since 3.1 + */ + QStringList pluginNames() const; + +protected: + + /** + * A protected constructor. + * + * This constructor creates a KURIFilter and + * initializes all plugins it can find by invoking + * loadPlugins. + */ + KURIFilter(); + + /** + * Loads all allowed plugins. + * + * This function loads all filters that have not + * been disbled. + */ + void loadPlugins(); + +private: + static KURIFilter *s_self; + KURIFilterPluginList m_lstPlugins; + KURIFilterPrivate *d; +}; + +#endif diff --git a/extra/kde352/kaccelaction.h b/extra/kde352/kaccelaction.h new file mode 100644 index 0000000..4164ca5 --- /dev/null +++ b/extra/kde352/kaccelaction.h @@ -0,0 +1,576 @@ +/* This file is part of the KDE libraries + Copyright (C) 2001,2002 Ellis Whitehead + + This library 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. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef _KACCELACTION_H +#define _KACCELACTION_H + +#include +#include +#include +#include + +#include + +class KAccelBase; + +class QObject; +class KConfig; +class KConfigBase; + +/** + * @internal + * A KAccelAction prepresents an action that can be executed using + * an accelerator key. Each KAccelAction has a name, a label, a + * "What's this" string and a KShortcut. The user can configure and + * enable/disable them using KKeyDialog. + * + * \code + * 1) KAccelAction = "Run Command" + * Default3 = "Alt+F2" + * Default4 = "Meta+Enter;Alt+F2" + * 1) KShortcut = "Meta+Enter" + * 1) KKeySequence = "Meta+Enter" + * 1) KKey = "Meta+Enter" + * 1) Meta+Enter + * 2) Meta+Keypad_Enter + * 2) KShortcut = "Alt+F2" + * 1) KKeySequence = "Alt+F2" + * 1) Alt+F2 + * 2) KAccelAction = "Something" + * Default3 = "" + * Default4 = "" + * 1) KShortcut = "Meta+X,Asterisk" + * 1) KKeySequence = "Meta+X,Asterisk" + * 1) KKey = "Meta+X" + * 1) Meta+X + * 2) KKey = "Asterisk" + * 1) Shift+8 (English layout) + * 2) Keypad_Asterisk + * \endcode + * @short An accelerator action + * @see KAccel + * @see KGlobalAccel + * @see KKeyChooser + * @see KKeyDialog + */ +class KDECORE_EXPORT KAccelAction +{ + public: + /** + * Creates an empty KAccelAction. + * @see clear() + */ + KAccelAction(); + + /** + * Copy constructor. + */ + KAccelAction( const KAccelAction& ); + + /** + * Creates a new KAccelAction. + * @param sName the name of the accelerator + * @param sLabel the label of the accelerator (i18n!) + * @param sWhatsThis the What's This text (18n!) + * @param cutDef3 the default shortcut for 3 modifier systems + * @param cutDef4 the default shortcut for 4 modifier systems + * @param pObjSlot the receiver of a signal when the key has been + * pressed + * @param psMethodSlot the slot to connect for key presses. Receives + * an int, as set by setID(), as only argument + * @param bConfigurable if true the user can configure the shortcut + * @param bEnabled true if the accelerator should be enabled + */ + KAccelAction( const QString& sName, const QString& sLabel, const QString& sWhatsThis, + const KShortcut& cutDef3, const KShortcut& cutDef4, + const QObject* pObjSlot, const char* psMethodSlot, + bool bConfigurable, bool bEnabled ); + ~KAccelAction(); + + /** + * Clears the accelerator. + */ + void clear(); + + /** + * Re-initialized the KAccelAction. + * @param sName the name of the accelerator + * @param sLabel the label of the accelerator (i18n!) + * @param sWhatsThis the What's This text (18n!) + * @param cutDef3 the default shortcut for 3 modifier systems + * @param cutDef4 the default shortcut for 4 modifier systems + * @param pObjSlot the receiver of a signal when the key has been + * pressed + * @param psMethodSlot the slot to connect for key presses. Receives + * an int, as set by setID(), as only argument + * @param bConfigurable if true the user can configure the shortcut + * @param bEnabled true if the accelerator should be enabled + * @return true if successful, false otherwise + */ + bool init( const QString& sName, const QString& sLabel, const QString& sWhatsThis, + const KShortcut& cutDef3, const KShortcut& cutDef4, + const QObject* pObjSlot, const char* psMethodSlot, + bool bConfigurable, bool bEnabled ); + + /** + * Copies this KAccelAction. + */ + KAccelAction& operator=( const KAccelAction& ); + + /** + * Returns the name of the accelerator action. + * @return the name of the accelerator action, can be null if not + * set + */ + const QString& name() const { return m_sName; } + + /** + * Returns the label of the accelerator action. + * @return the label of the accelerator action, can be null if + * not set + */ + const QString& label() const { return m_sLabel; } + + /** + * Returns the What's This text of the accelerator action. + * @return the What's This text of the accelerator action, can be + * null if not set + */ + const QString& whatsThis() const { return m_sWhatsThis; } + + /** + * The shortcut that is actually used (may be used configured). + * @return the shortcut of the KAccelAction, can be null if not set + * @see shortcutDefault() + */ + const KShortcut& shortcut() const { return m_cut; } + + /** + * The default shortcut for this system. + * @return the default shortcut on this system, can be null if not set + * @see shortcut() + * @see shortcutDefault3() + * @see shortcutDefault4() + */ + const KShortcut& shortcutDefault() const; + + /** + * The default shortcut for 3 modifier systems. + * @return the default shortcut for 3 modifier systems, can be null + * if not set + * @see shortcutDefault() + * @see shortcutDefault4() + * @see useFourModifierKeys() + */ + const KShortcut& shortcutDefault3() const { return m_cutDefault3; } + + /** + * The default shortcut for 4 modifier systems. + * @return the default shortcut for 4 modifier systems, can be null + * if not set + * @see shortcutDefault() + * @see shortcutDefault3() + * @see useFourModifierKeys() + */ + const KShortcut& shortcutDefault4() const { return m_cutDefault4; } + + /** + * Returns the receiver of signals. + * @return the receiver of signals (can be 0 if not set) + */ + const QObject* objSlotPtr() const { return m_pObjSlot; } + + /** + * Returns the slot for the signal. + * @return the slot for the signal + */ + const char* methodSlotPtr() const { return m_psMethodSlot; } + + /** + * Checks whether the user can configure the action. + * @return true if configurable, false otherwise + */ + bool isConfigurable() const { return m_bConfigurable; } + + /** + * Checks whether the action is enabled. + * @return true if enabled, false otherwise + */ + bool isEnabled() const { return m_bEnabled; } + + /** + * Sets the name of the accelerator action. + * @param name the new name + */ + void setName( const QString& name ); + + /** + * Sets the user-readable label of the accelerator action. + * @param label the new label (i18n!) + */ + void setLabel( const QString& label ); + + /** + * Sets the What's This text for the accelerator action. + * @param whatsThis the new What's This text (i18n!) + */ + void setWhatsThis( const QString& whatsThis ); + + /** + * Sets the new shortcut of the accelerator action. + * @param rgCuts the shortcut to set + * @return true if successful, false otherwise + */ + bool setShortcut( const KShortcut& rgCuts ); + + /** + * Sets the slot of the accelerator action. + * @param pObjSlot the receiver object of the signal + * @param psMethodSlot the slot for the signal + */ + void setSlot( const QObject* pObjSlot, const char* psMethodSlot ); + + /** + * Enables or disabled configuring the action. + * @param configurable true to enable configurability, false to disable + */ + void setConfigurable( bool configurable ); + + /** + * Enables or disabled the action. + * @param enable true to enable the action, false to disable + */ + void setEnabled( bool enable ); + + /** + * Retrieves the id set using setID. + * @return the id of the accelerator action + */ + int getID() const { return m_nIDAccel; } + + /** + * Allows you to set an id that will be used as the action + * signal's argument. + * + * @param n the new id + * @see getID() + */ + void setID( int n ) { m_nIDAccel = n; } + + /** + * Checkes whether the action is connected (emits signals). + * @return true if connected, false otherwise + */ + bool isConnected() const; + + /** + * Sets a key sequence of the action's shortcut. + * @param i the position of the sequence + * @param keySeq the new new sequence + * @return true if successful, false otherwise + * @see KShortcut::setSeq() + */ + bool setKeySequence( uint i, const KKeySequence &keySeq ); + + /** + * Clears the action's shortcut. It will not contain any sequences after + * calling this method. + * @see KShortcut::clear() + */ + void clearShortcut(); + + /** + * Checks whether the action's shortcut contains the given key sequence. + * @param keySeq the key sequence to check + * @return true if the shortcut contains the given sequence + * @see KShortcut::contains() + */ + bool contains( const KKeySequence &keySeq ); + + /** + * Returns the string representation of the action's shortcut. + * @return the string representation of the action's shortcut. + * @see KShortcut::toString() + */ + QString toString() const; + + /** + * @internal + */ + QString toStringInternal() const; + + /** + * Returns true if four modifier keys will be used. + * @return true if four modifier keys will be used. + */ + static bool useFourModifierKeys(); + + /** + * Selects 3 or 4 modifier default shortcuts. + * @param use true to use 4 modifier shortcuts, false to use + * 3 modifier shortcuts + */ + static void useFourModifierKeys( bool use ); + + protected: + QString m_sName /**< Name of accel. @sa setName() */, + m_sLabel /**< Label of accel. User-visible. */, + m_sWhatsThis /**< WhatsThis help for accel. User-visible. */; + KShortcut m_cut /**< Shortcut actually assigned. */; + KShortcut m_cutDefault3 /**< Default shortcut in 3-modifier layout */, + m_cutDefault4 /**< Default shortcur in 4-modifier layout */; + const QObject* m_pObjSlot /**< Object we will send signals to. */; + const char* m_psMethodSlot /**< Slot we send signals to, in m_pObjSlot */; + bool m_bConfigurable /**< Can this accel be configured by the user? */, + m_bEnabled /**< Is this accel enabled? */; + int m_nIDAccel /**< Id of this accel, from the list of IDs */; + uint m_nConnections /**< Number of connections to this accel. */ ; + + /** @internal Increment the number of connections to this accel. */ + void incConnections(); + /** @internal Decrement the number of connections to this accel (bouded by zero). */ + void decConnections(); + + private: + static int g_bUseFourModifierKeys; + class KAccelActionPrivate* d; + + friend class KAccelActions; + friend class KAccelBase; +}; + +//--------------------------------------------------------------------- +// KAccelActions +//--------------------------------------------------------------------- + +/** + * @internal + * This class represents a collection of KAccelAction objects. + * + * @short A collection of accelerator actions + * @see KAccelAction + */ +class KDECORE_EXPORT KAccelActions +{ + public: + /** + * Creates a new, empty KAccelActions object. + */ + KAccelActions(); + + /** + * Copy constructor (deep copy). + */ + KAccelActions( const KAccelActions& ); + virtual ~KAccelActions(); + + /** + * Removes all items from this collection. + */ + void clear(); + + /** + * Initializes this object with the given actions. + * It will make a deep copy of all actions. + * @param actions the actions to copy + * @return true if successful, false otherwise + */ + bool init( const KAccelActions &actions ); + + /** + * Loads the actions from the given configuration file. + * + * @param config the configuration file to load from + * @param sGroup the group in the configuration file + * @return true if successful, false otherwise + */ + bool init( KConfigBase& config, const QString& sGroup ); + + /** + * Updates the shortcuts of all actions in this object + * with the shortcuts from the given object. + * @param shortcuts the collection that contains the new + * shortcuts + */ + void updateShortcuts( KAccelActions &shortcuts ); + + /** + * Retrieves the index of the action with the given name. + * @param sAction the action to search + * @return the index of the action, or -1 if not found + */ + int actionIndex( const QString& sAction ) const; + + /** + * Returns the action with the given @p index. + * @param index the index of an action. You must not + * use an index that is too high. + * @return the KAccelAction with the given index + * @see count() + */ + KAccelAction* actionPtr( uint index ); + + /** + * Returns the action with the given @p index. + * @param index the index of an action. You must not + * use an index that is too high. + * @return the KAccelAction with the given index + * @see count() + */ + const KAccelAction* actionPtr( uint index ) const; + + /** + * Returns the action with the given name. + * @param sAction the name of the action to search + * @return the KAccelAction with the given name, or 0 + * if not found + */ + KAccelAction* actionPtr( const QString& sAction ); + + /** + * Returns the action with the given name. + * @param sAction the name of the action to search + * @return the KAccelAction with the given name, or 0 + * if not found + */ + const KAccelAction* actionPtr( const QString& sAction ) const; + + /** + * Returns the action with the given key sequence. + * @param cut the sequence to search for + * @return the KAccelAction with the given sequence, or 0 + * if not found + */ + KAccelAction* actionPtr( KKeySequence cut ); + + /** + * Returns the action with the given @p index. + * @param index the index of an action. You must not + * use an index that is too high. + * @return the KAccelAction with the given index + * @see actionPtr() + * @see count() + */ + KAccelAction& operator []( uint index ); + + /** + * Returns the action with the given @p index. + * @param index the index of an action. You must not + * use an index that is too high. + * @return the KAccelAction with the given index + * @see actionPtr() + * @see count() + */ + const KAccelAction& operator []( uint index ) const; + + /** + * Inserts an action into the collection. + * @param sAction the name of the accelerator + * @param sLabel the label of the accelerator (i18n!) + * @param sWhatsThis the What's This text (18n!) + * @param rgCutDefaults3 the default shortcut for 3 modifier systems + * @param rgCutDefaults4 the default shortcut for 4 modifier systems + * @param pObjSlot the receiver of a signal when the key has been + * pressed + * @param psMethodSlot the slot to connect for key presses. Receives + * an int, as set by setID(), as only argument + * @param bConfigurable if true the user can configure the shortcut + * @param bEnabled if true the accelerator should be enabled + * @return the new action + */ + KAccelAction* insert( const QString& sAction, const QString& sLabel, const QString& sWhatsThis, + const KShortcut& rgCutDefaults3, const KShortcut& rgCutDefaults4, + const QObject* pObjSlot = 0, const char* psMethodSlot = 0, + bool bConfigurable = true, bool bEnabled = true ); + + /** + * Inserts an action into the collection. + * @param sName the name of the accelerator + * @param sLabel the label of the accelerator (i18n!) + * @return the new action + */ + KAccelAction* insert( const QString& sName, const QString& sLabel ); + + /** + * Removes the given action. + * @param sAction the name of the action. + * @return true if successful, false otherwise + */ + bool remove( const QString& sAction ); + + /** + * Loads the actions from the given configuration file. + * + * @param sConfigGroup the group in the configuration file + * @param pConfig the configuration file to load from + * @return true if successful, false otherwise + */ + bool readActions( const QString& sConfigGroup = "Shortcuts", KConfigBase* pConfig = 0 ); + + /** + * Writes the actions to the given configuration file. + * + * @param sConfigGroup the group in the configuration file + * @param pConfig the configuration file to save to + * @param bWriteAll true to write all actions + * @param bGlobal true to write to the global configuration file + * @return true if successful, false otherwise + */ + bool writeActions( const QString& sConfigGroup = "Shortcuts", KConfigBase* pConfig = 0, + bool bWriteAll = false, bool bGlobal = false ) const; + + /** + * Emit a keycodeChanged signal. + */ + void emitKeycodeChanged(); + + /** + * Returns the number of actions in the collection. + * @return the number of actions + */ + uint count() const; + + protected: + /** Base object that proxies signals from us. */ + KAccelBase* m_pKAccelBase; + /** Array of actions we're hanging on to. */ + KAccelAction** m_prgActions; + uint m_nSizeAllocated /**< Allocated size of the array. */, + m_nSize /**< Amount in use. */ ; + + /** + * Resize the list to the given number @p new_size of entries. + * @todo Can you make it smaller? + * @todo Implementation seems to break m_nSize. + */ + void resize( uint new_size ); + /** Add a action to this collection. @todo Document ownership. */ + void insertPtr( KAccelAction* ); + + private: + class KAccelActionsPrivate* d; + + KAccelActions( KAccelBase* ); + void initPrivate( KAccelBase* ); + KAccelActions& operator =( KAccelActions& ); + + friend class KAccelBase; +}; + +#endif // _KACCELACTION_H diff --git a/extra/kde352/kaccelbase.h b/extra/kde352/kaccelbase.h new file mode 100644 index 0000000..0becbe0 --- /dev/null +++ b/extra/kde352/kaccelbase.h @@ -0,0 +1,260 @@ +/* This file is part of the KDE libraries + Copyright (C) 2001 Ellis Whitehead + + This library 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. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef _KACCELBASE_H +#define _KACCELBASE_H + +#include +#include +#include +#include +#include + +#include "kaccelaction.h" +#include "kkeyserver.h" + +class QPopupMenu; +class QWidget; + +//---------------------------------------------------- + +/** + * @internal + * Handle keyboard accelerators. + * + * Allow an user to configure + * key bindings through application configuration files or through the + * KKeyChooser GUI. + * + * A KAccel contains a list of accelerator items. Each accelerator item + * consists of an action name and a keyboard code combined with modifiers + * (Shift, Ctrl and Alt.) + * + * For example, "Ctrl+P" could be a shortcut for printing a document. The key + * codes are listed in ckey.h. "Print" could be the action name for printing. + * The action name identifies the key binding in configuration files and the + * KKeyChooser GUI. + * + * When pressed, an accelerator key calls the slot to which it has been + * connected. Accelerator items can be connected so that a key will activate + * two different slots. + * + * A KAccel object handles key events sent to its parent widget and to all + * children of this parent widget. + * + * Key binding reconfiguration during run time can be prevented by specifying + * that an accelerator item is not configurable when it is inserted. A special + * group of non-configurable key bindings are known as the + * standard accelerators. + * + * The standard accelerators appear repeatedly in applications for + * standard document actions such as printing and saving. Convenience methods are + * available to insert and connect these accelerators which are configurable on + * a desktop-wide basis. + * + * It is possible for a user to choose to have no key associated with + * an action. + * + * The translated first argument for insertItem() is used only + * in the configuration dialog. + *\code + * KAccel *a = new KAccel( myWindow ); + * // Insert an action "Scroll Up" which is associated with the "Up" key: + * a->insertItem( i18n("Scroll Up"), "Scroll Up", "Up" ); + * // Insert an action "Scroll Down" which is not associated with any key: + * a->insertItem( i18n("Scroll Down"), "Scroll Down", 0); + * a->connectItem( "Scroll up", myWindow, SLOT( scrollUp() ) ); + * // a->insertStdItem( KStdAccel::Print ); //not necessary, since it + * // is done automatially with the + * // connect below! + * a->connectItem(KStdAccel::Print, myWindow, SLOT( printDoc() ) ); + * + * a->readSettings(); + *\endcode + * + * If a shortcut has a menu entry as well, you could insert them like + * this. The example is again the KStdAccel::Print from above. + * + * \code + * int id; + * id = popup->insertItem("&Print",this, SLOT(printDoc())); + * a->changeMenuAccel(popup, id, KStdAccel::Print ); + * \endcode + * + * If you want a somewhat "exotic" name for your standard print action, like + * id = popup->insertItem(i18n("Print &Document"),this, SLOT(printDoc())); + * it might be a good idea to insert the standard action before as + * a->insertStdItem( KStdAccel::Print, i18n("Print Document") ) + * as well, so that the user can easily find the corresponding function. + * + * This technique works for other actions as well. Your "scroll up" function + * in a menu could be done with + * + * \code + * id = popup->insertItem(i18n"Scroll &up",this, SLOT(scrollUp())); + * a->changeMenuAccel(popup, id, "Scroll Up" ); + * \endcode + * + * Please keep the order right: First insert all functions in the + * acceleratior, then call a -> readSettings() and @em then build your + * menu structure. + * + * @short Configurable key binding support. + */ + +class KDECORE_EXPORT KAccelBase +{ + public: + /** Initialization mode of the KAccelBase, used in constructor. */ + enum Init { QT_KEYS = 0x00, NATIVE_KEYS = 0x01 }; + + /** Enum for kinds of signals which may be emitted. */ + enum Signal { KEYCODE_CHANGED }; + + /** Constructor. @p fInitCode should be a bitwise OR of + * values from the Init enum. + */ + KAccelBase( int fInitCode ); + virtual ~KAccelBase(); + + /** Returns number of actions in this handler. */ + uint actionCount() const; + /** Returns a list of all the actions in this handler. */ + KAccelActions& actions(); + /** Returns whether this accelerator handler is enabled or not. */ + bool isEnabled() const; + + /** Returns a pointer to the KAccelAction named @p sAction. */ + KAccelAction* actionPtr( const QString& sAction ); + /** Const version of the above. */ + const KAccelAction* actionPtr( const QString& sAction ) const; + /** Returns a pointer to the KAccelAction associated with + * the key @p key. This function takes into account the + * key mapping defined in the constructor. + * + * May return 0 if no (or more than one) + * action is associated with the key. + */ + KAccelAction* actionPtr( const KKey& key ); + /** Basically the same as above, except a KKeyServer::Key + * already has a key mapping defined (either NATIVE_KEYS or not). + */ + KAccelAction* actionPtr( const KKeyServer::Key& key ); + + /** Returns the name of the configuration group these + * accelerators are stored in. The default is "Shortcuts". + */ + const QString& configGroup() const { return m_sConfigGroup; } + /** Set the group (in the configuration file) for storing + * accelerators. + */ + void setConfigGroup( const QString& group ); + void setConfigGlobal( bool global ); + virtual void setEnabled( bool bEnabled ) = 0; + /** Returns whether autoupdate is enabled for these accelerators. */ + bool getAutoUpdate() { return m_bAutoUpdate; } + /** Enables (or disables) autoupdate for these accelerators. + * @return the value of autoupdate before the call. + */ + bool setAutoUpdate( bool bAuto ); + +// Procedures for manipulating Actions. + //void clearActions(); + + KAccelAction* insert( const QString& sName, const QString& sDesc ); + KAccelAction* insert( + const QString& sAction, const QString& sDesc, const QString& sHelp, + const KShortcut& rgCutDefaults3, const KShortcut& rgCutDefaults4, + const QObject* pObjSlot, const char* psMethodSlot, + bool bConfigurable = true, bool bEnabled = true ); + bool remove( const QString& sAction ); + bool setActionSlot( const QString& sAction, const QObject* pObjSlot, const char* psMethodSlot ); + + bool updateConnections(); + + bool setShortcut( const QString& sAction, const KShortcut& cut ); + +// Modify individual Action sub-items + bool setActionEnabled( const QString& sAction, bool bEnable ); + + /** + * Read all key associations from @p config, or (if @p config + * is zero) from the application's configuration file + * KGlobal::config(). + * + * The group in which the configuration is stored can be + * set with setConfigGroup(). + */ + void readSettings( KConfigBase* pConfig = 0 ); + + /** + * Write the current configurable associations to @p config, + * or (if @p config is zero) to the application's + * configuration file. + */ + void writeSettings( KConfigBase* pConfig = 0 ) const; + + QPopupMenu* createPopupMenu( QWidget* pParent, const KKeySequence& ); + + // Protected methods + protected: + void slotRemoveAction( KAccelAction* ); + + struct X; + void createKeyList( QValueVector& rgKeys ); + bool insertConnection( KAccelAction* ); + bool removeConnection( KAccelAction* ); + + virtual bool emitSignal( Signal ) = 0; + virtual bool connectKey( KAccelAction&, const KKeyServer::Key& ) = 0; + virtual bool connectKey( const KKeyServer::Key& ) = 0; + virtual bool disconnectKey( KAccelAction&, const KKeyServer::Key& ) = 0; + virtual bool disconnectKey( const KKeyServer::Key& ) = 0; + + protected: + virtual bool isEnabledInternal() const; + struct ActionInfo + { + KAccelAction* pAction; + uint iSeq, iVariation; + //ActionInfo* pInfoNext; // nil if only one action uses this key. + + ActionInfo() { pAction = 0; iSeq = 0xffff; iVariation = 0xffff; } + ActionInfo( KAccelAction* _pAction, uint _iSeq, uint _iVariation ) + { pAction = _pAction; iSeq = _iSeq; iVariation = _iVariation; } + }; + typedef QMap KKeyToActionMap; + + KAccelActions m_rgActions; + KKeyToActionMap m_mapKeyToAction; + QValueList m_rgActionsNonUnique; + bool m_bNativeKeys; // Use native key codes instead of Qt codes + bool m_bEnabled; + bool m_bConfigIsGlobal; + QString m_sConfigGroup; + bool m_bAutoUpdate; + KAccelAction* mtemp_pActionRemoving; + + private: + KAccelBase& operator =( const KAccelBase& ); + + friend class KAccelActions; +}; + +#endif // _KACCELBASE_H diff --git a/extra/kde352/kicontheme.h b/extra/kde352/kicontheme.h new file mode 100644 index 0000000..b776444 --- /dev/null +++ b/extra/kde352/kicontheme.h @@ -0,0 +1,355 @@ +/* vi: ts=8 sts=4 sw=4 + * + * This file is part of the KDE project, module kdecore. + * Copyright (C) 2000 Geert Jansen + * Antonio Larrosa + * + * This is free software; it comes under the GNU Library General + * Public License, version 2. See the file "COPYING.LIB" for the + * exact licensing terms. + * + */ + +#ifndef __KIconTheme_h_Included__ +#define __KIconTheme_h_Included__ + +#include +#include +#include +#include "kdelibs_export.h" + +class KConfig; +//class KIconThemeDir; + +class KIconThemePrivate; + +class KIconPrivate; + +/** + * One icon as found by KIconTheme. Also serves as a namespace containing + * icon related constants. + * @see KIconEffect + * @see KIconTheme + * @see KIconLoader + */ +class KDECORE_EXPORT KIcon +{ +public: + KIcon() { size = 0; } + + /** + * Return true if this icon is valid, false otherwise. + */ + bool isValid() const { return size != 0; } + + /** + * Defines the context of the icon. + */ + enum Context { + Any, ///< Some icon with unknown purpose. + Action, ///< An action icon (e.g. 'save', 'print'). + Application, ///< An icon that represents an application. + Device, ///< An icon that represents a device. + FileSystem, ///< An icon that represents a file system. + MimeType ///< An icon that represents a mime type (or file type). + }; + + /** + * The type of the icon. + */ + enum Type { + Fixed, ///< Fixed-size icon. + Scalable, ///< Scalable-size icon. + Threshold ///< A threshold icon. + }; + + /** + * The type of a match. + */ + enum MatchType { + MatchExact, ///< Only try to find an exact match. + MatchBest ///< Take the best match if there is no exact match. + + }; + + // if you add a group here, make sure to change the config reading in + // KIconLoader too + /** + * The group of the icon. + */ + enum Group { + /// No group + NoGroup=-1, + /// Desktop icons + Desktop=0, + /// First group + FirstGroup=0, + /// Toolbar icons + Toolbar, + /// Main toolbar icons + MainToolbar, + /// Small icons + Small, + /// Panel (Kicker) icons + Panel, + /// Last group + LastGroup, + /// User icons + User + }; + + /** + * These are the standard sizes for icons. + */ + enum StdSizes { + /// small icons for menu entries + SizeSmall=16, + /// slightly larger small icons for toolbars, panels, etc + SizeSmallMedium=22, + /// medium sized icons for the desktop + SizeMedium=32, + /// large sized icons for the panel + SizeLarge=48, + /// huge sized icons for iconviews + SizeHuge=64, + /// enormous sized icons for iconviews + SizeEnormous=128 + }; + + /** + * Defines the possible states of an icon. + */ + enum States { DefaultState, ///< The default state. + ActiveState, ///< Icon is active. + DisabledState, ///< Icon is disabled. + LastState ///< Last state (last constant) + }; + + /** + * This defines an overlay, a semi-transparent image that is + * projected onto the icon. They are used to show that the file + * represented by the icon is, for example, locked, zipped or hidden. + */ + enum Overlays { + LockOverlay=0x100, ///< a file is locked + ZipOverlay=0x200, ///< a file is zipped + LinkOverlay=0x400, ///< a file is a link + HiddenOverlay=0x800, ///< a file is hidden + ShareOverlay=0x1000, ///< a file is shared + OverlayMask = ~0xff + }; + + /** + * The size in pixels of the icon. + */ + int size; + + /** + * The context of the icon. + */ + Context context; + + /** + * The type of the icon: Fixed, Scalable or Threshold. + **/ + Type type; + + /** + * The threshold in case type == Threshold + */ + int threshold; + + /** + * The full path of the icon. + */ + QString path; + +private: + KIconPrivate *d; +}; + +inline KIcon::Group& operator++(KIcon::Group& group) { group = static_cast(group+1); return group; } +inline KIcon::Group operator++(KIcon::Group& group,int) { KIcon::Group ret = group; ++group; return ret; } + +/** + * Class to use/access icon themes in KDE. This class is used by the + * iconloader but can be used by others too. + * @see KIconLoader + */ +class KDECORE_EXPORT KIconTheme +{ +public: + /** + * Load an icon theme by name. + * @param name the name of the theme (e.g. "hicolor" or "keramik") + * @param appName the name of the application. Can be null. This argument + * allows applications to have themed application icons. + */ + KIconTheme(const QString& name, const QString& appName=QString::null); + ~KIconTheme(); + + /** + * The stylized name of the icon theme. + * @return the (human-readable) name of the theme + */ + QString name() const { return mName; } + + /** + * A description for the icon theme. + * @return a human-readable description of the theme, QString::null + * if there is none + */ + QString description() const { return mDesc; } + + /** + * Return the name of the "example" icon. This can be used to + * present the theme to the user. + * @return the name of the example icon, QString::null if there is none + */ + QString example() const; + + /** + * Return the name of the screenshot. + * @return the name of the screenshot, QString::null if there is none + */ + QString screenshot() const; + + /** + * Returns the name of this theme's link overlay. + * @return the name of the link overlay + */ + QString linkOverlay() const; + + /** + * Returns the name of this theme's zip overlay. + * @return the name of the zip overlay + */ + QString zipOverlay() const; + + /** + * Returns the name of this theme's lock overlay. + * @return the name of the lock overlay + */ + QString lockOverlay() const; + + /** + * Returns the name of this theme's share overlay. + * @return the name of the share overlay + * @since 3.1 + */ + QString shareOverlay () const; + + /** + * Returns the toplevel theme directory. + * @return the directory of the theme + */ + QString dir() const { return mDir; } + + /** + * The themes this icon theme falls back on. + * @return a list of icon themes that are used as fall-backs + */ + QStringList inherits() const { return mInherits; } + + /** + * The icon theme exists? + * @return true if the icon theme is valid + */ + bool isValid() const; + + /** + * The icon theme should be hidden to the user? + * @return true if the icon theme is hidden + * @since 3.1 + */ + bool isHidden() const; + + /** + * The minimum display depth required for this theme. This can either + * be 8 or 32. + * @return the minimum bpp (8 or 32) + */ + int depth() const { return mDepth; } + + /** + * The default size of this theme for a certain icon group. + * @param group The icon group. See KIcon::Group. + * @return The default size in pixels for the given icon group. + */ + int defaultSize(KIcon::Group group) const; + + /** + * Query available sizes for a group. + * @param group The icon group. See KIcon::Group. + * @return a list of available sized for the given group + */ + QValueList querySizes(KIcon::Group group) const; + + /** + * Query available icons for a size and context. + * @param size the size of the icons + * @param context the context of the icons + * @return the list of icon names + */ + QStringList queryIcons(int size, KIcon::Context context = KIcon::Any) const; + + /** + * Query available icons for a context and preferred size. + * @param size the size of the icons + * @param context the context of the icons + * @return the list of icon names + */ + QStringList queryIconsByContext(int size, KIcon::Context context = KIcon::Any) const; + + + /** + * Lookup an icon in the theme. + * @param name The name of the icon, without extension. + * @param size The desired size of the icon. + * @param match The matching mode. KIcon::MatchExact returns an icon + * only if matches exactly. KIcon::MatchBest returns the best matching + * icon. + * @return A KIcon class that describes the icon. If an icon is found, + * @see KIcon::isValid will return true, and false otherwise. + */ + KIcon iconPath(const QString& name, int size, KIcon::MatchType match) const; + + /** + * List all icon themes installed on the system, global and local. + * @return the list of all icon themes + */ + static QStringList list(); + + /** + * Returns the current icon theme. + * @return the name of the current theme + */ + static QString current(); + + /** + * Reconfigure the theme. + */ + static void reconfigure(); + + /** + * Returns the default icon theme. + * @return the name of the default theme name + * @since 3.1 + */ + static QString defaultThemeName(); + +private: + int mDefSize[8]; + QValueList mSizes[8]; + + int mDepth; + QString mDir, mName, mDesc; + QStringList mInherits; +// QPtrList mDirs; + KIconThemePrivate *d; + + static QString *_theme; + static QStringList *_theme_list; +}; + +#endif diff --git a/extra/kde352/kkeyserver.h b/extra/kde352/kkeyserver.h new file mode 100644 index 0000000..ef673ea --- /dev/null +++ b/extra/kde352/kkeyserver.h @@ -0,0 +1,29 @@ +/* + Copyright (C) 2001 Ellis Whitehead + + Win32 port: + Copyright (C) 2004 Jaroslaw Staniek + + This library 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. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef _KKEYSERVER_H +#define _KKEYSERVER_H + +//FOR COMPATIBILITY +#include "kkeyserver_x11.h" + +#endif // !_KKEYSERVER_H diff --git a/extra/kde352/kkeyserver_x11.h b/extra/kde352/kkeyserver_x11.h new file mode 100644 index 0000000..73c800d --- /dev/null +++ b/extra/kde352/kkeyserver_x11.h @@ -0,0 +1,477 @@ +/* + Copyright (C) 2001 Ellis Whitehead + + Win32 port: + Copyright (C) 2004 Jaroslaw Staniek + + This library 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. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef _KKEYSERVER_X11_H +#define _KKEYSERVER_X11_H + +#include "kshortcut.h" +#include "kkeynative.h" + +/** + * A collection of functions for the conversion of key presses and + * their modifiers from the window system specific format + * to the generic format and vice-versa. + */ +namespace KKeyServer +{ + /** + * Supplement enum KKey::ModFlag + * @since 3.1 + */ + enum ExtraModFlag { MODE_SWITCH = 0x2000 }; + + /** + * Represents a key symbol. + * @see KKey + * @see KKeyServer + */ + struct KDECORE_EXPORT Sym + { + public: + /// the actual value of the symbol + uint m_sym; + + /// Creates a null symbol. + Sym() + { m_sym = 0; } + /** + * Creates asymbol with the given value. + * @param sym the value + */ + Sym( uint sym ) + { m_sym = sym; } + /** + * Creates a symbol from the given string description. + * @param s the description of the symbol + * @see toString() + */ + Sym( const QString& s ) + { init( s ); } + + /** + * Initializes the symbol with the given Qt key code. + * @param keyQt the qt key code + * @return true if successful, false otherwise + * @see Qt::Key + */ + bool initQt( int keyQt ); + + /** + * Initializes the key with the given string description. + * @param s the string description + * @return true if successful, false otherwise + * @see toString() + */ + bool init( const QString &s ); + + /** + * Returns the qt key code of the symbol. + * @return the qt key code + */ + int qt() const; + + /** + * @internal + */ + QString toStringInternal() const; + + /** + * Returns the string representation of the symbol. + * @return the string representation of the symbol + */ + QString toString() const; + + /** + * Returns the mods that are required for this symbol as + * ORed KKey::ModFlag's. For example, Break requires a + * Ctrl to be valid. + * @return the required KKey::ModFlag's + * @see KKey::ModFlag + */ + uint getModsRequired() const; + + /** + * TODO: please find out what this method does and document it + */ + uint getSymVariation() const; + + /** + * Casts the symbol to its integer representation. + */ + operator uint() const { return m_sym; } + + /** + * Overloaded operator to convert ints to Sym. + */ + Sym& operator =( uint sym ) { m_sym = sym; return *this; } + + private: + QString toString( bool bUserSpace ) const; + + static void capitalizeKeyname( QString& ); + }; + + /** + * Represents a key press. + * @see KKey + */ + struct KDECORE_EXPORT Key + { + /// Code for native Keys in Qt + enum { CODE_FOR_QT = 256 }; + + /// The code of the key + uint m_code; + + /// The modifiers of the key + uint m_mod; + + /// The symbol of the key + uint m_sym; + + /** + * Initializes the key with a KKey. + * @param key the key to get the data from + * @param bQt true to take the Qt keycode, false + * for the native key code + * @see Qt::Key + * @see KKeyNative + */ + bool init( const KKey& key, bool bQt ); + + /** + * Checks whether the key code is a native code. + * @return true if native code of the window system, + * false if it is a Qt keycode + * @see Qt::Key + * @see KKeyNative + */ + bool isNative() const { return m_code != CODE_FOR_QT; } + + /** + * Returns the code of the key. + * @return the code of the key + */ + uint code() const { return m_code; } + + /** + * Returns the modifiers of the key. + * @return the modifiers of the key + */ + uint mod() const { return m_mod; } + + /** + * Returns the symbol of the key. + * @return the symbol of the key + */ + uint sym() const { return m_sym; } + + /** + * Returns the qt key code. + * @return the qt key code + */ + int keyCodeQt() const { return (int) m_sym; } + + /** + * Sets the qt key code. + * @param keyQt the qt key code + */ + void setKeycodeQt( int keyQt ) + { m_code = CODE_FOR_QT; m_sym = keyQt; } + + /** + * Initializes this key with a KKeyNative. + * @return this key + */ + Key& operator =( const KKeyNative& key ); + + /** + * Compares this key with the given Key object. Returns a + * negative number if the given Key is larger, 0 if they + * are equal and a positive number this Key is larger. The + * returned value is the difference between the symbol, modifier + * or code, whatever is non-zero first. + * + * @param key the key to compare with this key + * @return a negative number if the given Key is larger, 0 if + * they are equal and a positive number this Key is larger + */ + int compare( const Key& key ) const; + + /** + * Compares the symbol, modifiers and code of both keys. + * @see compare() + */ + bool operator ==( const Key& b ) const + { return compare( b ) == 0; } + + /** + * Compares the symbol, modifiers and code of both keys. + * @see compare() + */ + bool operator <( const Key& b ) const + { return compare( b ) < 0; } + + /** + * Converts this Key to a KKey. + * @return the KKey + */ + KKey key() const; + }; + + /** + * TODO: please document this class + */ + struct KDECORE_EXPORT Variations + { + enum { MAX_VARIATIONS = 4 }; + + Key m_rgkey[MAX_VARIATIONS]; + uint m_nVariations; + + Variations() { m_nVariations = 0; } + + void init( const KKey&, bool bQt ); + + uint count() const { return m_nVariations; } + const Key& key( uint i ) const { return m_rgkey[i]; } + }; + + /// TODO: please document + KDECORE_EXPORT bool initializeMods(); + + /** + * Returns the equivalent X modifier mask of the given modifier flag. + * @param modFlag the generic flags to check + * @return the window system specific flags + */ + KDECORE_EXPORT uint modX( KKey::ModFlag modFlag ); + + /** + * Returns true if the current keyboard layout supports the Win key. + * Specifically, whether the Super or Meta keys are assigned to an X modifier. + * @return true if the keyboard has a Win key + * @see modXWin() + */ + KDECORE_EXPORT bool keyboardHasWinKey(); + + /** + * Returns the X11 Shift modifier mask/flag. + * @return the X11 Shift modifier mask/flag. + * @see accelModMaskX() + */ + KDECORE_EXPORT uint modXShift(); + + /** + * Returns the X11 Lock modifier mask/flag. + * @return the X11 Lock modifier mask/flag. + * @see accelModMaskX() + */ + KDECORE_EXPORT uint modXLock(); + + /** + * Returns the X11 Ctrl modifier mask/flag. + * @return the X11 Ctrl modifier mask/flag. + * @see accelModMaskX() + */ + KDECORE_EXPORT uint modXCtrl(); + + /** + * Returns the X11 Alt (Mod1) modifier mask/flag. + * @return the X11 Alt (Mod1) modifier mask/flag. + * @see accelModMaskX() + */ + KDECORE_EXPORT uint modXAlt(); + + /** + * Returns the X11 NumLock modifier mask/flag. + * @return the X11 NumLock modifier mask/flag. + * @see accelModMaskX() + */ + KDECORE_EXPORT uint modXNumLock(); + + /** + * Returns the X11 Win (Mod3) modifier mask/flag. + * @return the X11 Win (Mod3) modifier mask/flag. + * @see keyboardHasWinKey() + * @see accelModMaskX() + */ + KDECORE_EXPORT uint modXWin(); + + /** + * Returns the X11 ScrollLock modifier mask/flag. + * @return the X11 ScrollLock modifier mask/flag. + * @see accelModMaskX() + */ + KDECORE_EXPORT uint modXScrollLock(); + + /** + * Returns the X11 Mode_switch modifier mask/flag. + * @return the X11 Mode_switch modifier mask/flag. + * @see accelModMaskX() + * @since 3.5 + */ + KDECORE_EXPORT uint modXModeSwitch(); + + /** + * Returns bitwise OR'ed mask containing Shift, Ctrl, Alt, and + * Win (if available). + * @see modXShift() + * @see modXLock() + * @see modXCtrl() + * @see modXAlt() + * @see modXNumLock() + * @see modXWin() + * @see modXScrollLock() + */ + KDECORE_EXPORT uint accelModMaskX(); + + /** + * Extracts the symbol from the given Qt key and + * converts it to a symbol. + * @param keyQt the qt key code + * @param sym if successful, the symbol will be written here + * @return true if successful, false otherwise + * @see Qt::Key + * @see Sym + */ + KDECORE_EXPORT bool keyQtToSym( int keyQt, uint& sym ); + + /** + * Extracts the modifiers from the given Qt key and + * converts them in a mask of ORed KKey::ModFlag modifiers. + * @param keyQt the qt key code + * @param mod if successful, the modifiers will be written here + * @return true if successful, false otherwise + * @see Qt::Key + */ + KDECORE_EXPORT bool keyQtToMod( int keyQt, uint& mod ); + + /** + * Converts the given symbol to a Qt key code. + * @param sym the symbol + * @param keyQt if successful, the qt key code will be written here + * @return true if successful, false otherwise + * @see Qt::Key + * @see Sym + */ + KDECORE_EXPORT bool symToKeyQt( uint sym, int& keyQt ); + + /** + * Converts the mask of ORed KKey::ModFlag modifiers to + * a mask of ORed Qt key code modifiers. + * @param mod the mask of KKey::ModFlag modifiers + * @param modQt the mask of Qt key code modifiers will be written here, + * if successful + * @return true if successful, false otherwise + * @see Qt::Key + * @see KKey + */ + KDECORE_EXPORT bool modToModQt( uint mod, int& modQt ); + + /** + * Converts the mask of ORed KKey::ModFlag modifiers to + * a mask of ORed X11 modifiers. + * @param mod the mask of KKey::ModFlag modifiers + * @param modX the mask of X11 modifiers will be written here, + * if successful + * @return true if successful, false otherwise + * @see KKey + */ + KDECORE_EXPORT bool modToModX( uint mod, uint& modX ); + + /** + * Converts the mask of ORed X11 modifiers to + * a mask of ORed Qt key code modifiers. + * @param modX the mask of X11 modifiers + * @param modQt the mask of Qt key code modifiers will be written here + * if successful + * @return true if successful, false otherwise + * @see Qt::Key + */ + //wrapped for win32 + KDECORE_EXPORT bool modXToModQt( uint modX, int& modQt ); + + /** + * Converts the Qt-compatible button state to x11 modifier. + */ + KDECORE_EXPORT int qtButtonStateToMod( Qt::ButtonState s ); + + /** + * Converts the mask of ORed X11 modifiers to + * a mask of ORed KKey::ModFlag modifiers. + * @param modX the mask of X11 modifiers + * @param mod the mask of KKey::ModFlag modifiers will be written here, + * if successful + * @return true if successful, false otherwise + * @see KKey + */ + KDECORE_EXPORT bool modXToMod( uint modX, uint& mod ); + + /** + * Converts a X11 key code and a mask of ORed X11 modifiers + * into a X11 symbol. + * converts it to a symbol. + * @param codeX the X11 key code + * @param modX the mask of ORed X11 modifiers + * @param symX if successful, the X11 symbol will be written here + * @return true if successful, false otherwise + * @see Qt::Key + * @see Sym + */ + KDECORE_EXPORT bool codeXToSym( uchar codeX, uint modX, uint& symX ); + + /** + * @internal + */ + KDECORE_EXPORT QString modToStringInternal( uint mod ); + + /** + * Converts the mask of ORed KKey::ModFlag modifiers to a + * user-readable string. + * @param mod the mask of ORed KKey::ModFlag modifiers + * @return the user-readable string + */ + KDECORE_EXPORT QString modToStringUser( uint mod ); + + /** + * Converts the modifier given as user-readable string + * to KKey::ModFlag modifier, or 0. + * @internal + * @since 3.5 + */ + KDECORE_EXPORT uint stringUserToMod( const QString& mod ); + + /** + * @internal + * Unimplemented? + */ + KDECORE_EXPORT bool stringToSymMod( const QString&, uint& sym, uint& mod ); + + /** + * @internal + * Unimplemented? + */ + KDECORE_EXPORT void keyQtToKeyX( uint keyCombQt, unsigned char *pKeyCodeX, uint *pKeySymX, uint *pKeyModX ); +} + +#endif // !_KKEYSERVER_X11_H diff --git a/extra/kde352/konsole_part.h b/extra/kde352/konsole_part.h new file mode 100644 index 0000000..16028ea --- /dev/null +++ b/extra/kde352/konsole_part.h @@ -0,0 +1,241 @@ +/* -*- C++ -*- + This file is part of the KDE system + Copyright (C) 1999,2000 Boloni Laszlo + + 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. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. + */ + +#ifndef KONSOLE_PART_H +#define KONSOLE_PART_H + +#include +#include + + +#include + +#include + +//#include "schema.h" +//#include "session.h" + +class KInstance; +class konsoleBrowserExtension; +class QPushButton; +class QSpinBox; +class KPopupMenu; +class KActionMenu; +class QCheckBox; +class KRootPixmap; +class KToggleAction; +class KSelectAction; + +namespace KParts { class GUIActivateEvent; } + +class konsoleFactory : public KParts::Factory +{ + Q_OBJECT +public: + konsoleFactory(); + virtual ~konsoleFactory(); + + virtual KParts::Part* createPartObject(QWidget *parentWidget = 0, const char *widgetName = 0, + QObject* parent = 0, const char* name = 0, + const char* classname = "KParts::Part", + const QStringList &args = QStringList()); + + static KInstance *instance(); + + private: + static KInstance *s_instance; + static KAboutData *s_aboutData; +}; + +////////////////////////////////////////////////////////////////////// + +class konsolePart: public KParts::ReadOnlyPart, public TerminalInterface, public ExtTerminalInterface +{ + Q_OBJECT + public: + konsolePart(QWidget *parentWidget, const char *widgetName, QObject * parent, const char *name, const char *classname = 0); + virtual ~konsolePart(); + +signals: + void processExited( KProcess * ); + void receivedData( const QString& s ); + void forkedChild(); + protected: + virtual bool openURL( const KURL & url ); + virtual bool openFile() {return false;} // never used + virtual bool closeURL() {return true;} + virtual void guiActivateEvent( KParts::GUIActivateEvent * event ); + + protected slots: + void showShell(); + +// void doneSession(TESession*); + void sessionDestroyed(); +// void configureRequest(TEWidget*,int,int x,int y); +// void updateTitle(TESession*); + void enableMasterModeConnections(); + + private slots: + void emitOpenURLRequest(const QString &url); + + void readProperties(); + void saveProperties(); + void applyProperties(); + void setSettingsMenuEnabled( bool ); + + void sendSignal(int n); + void closeCurrentSession(); + + void notifySize(int /*columns*/, int /*lines*/); + + void slotToggleFrame(); + void slotSelectScrollbar(); + void slotSelectFont(); + void schema_menu_check(); + void keytab_menu_activated(int item); + void updateSchemaMenu(); + void setSchema(int n); + void pixmap_menu_activated(int item); + void schema_menu_activated(int item); + void slotHistoryType(); + void slotSelectBell(); + void slotSelectLineSpacing(); + void slotBlinkingCursor(); + void slotUseKonsoleSettings(); + void slotWordSeps(); + void slotSetEncoding(); + void biggerFont(); + void smallerFont(); + + void autoShowShell(); + + private: + konsoleBrowserExtension *m_extension; + KURL currentURL; + + void makeGUI(); + void applySettingsToGUI(); + +// void setSchema(ColorSchema* s); + void updateKeytabMenu(); + + bool doOpenStream( const QString& ); + bool doWriteStream( const QByteArray& ); + bool doCloseStream(); + + QWidget* parentWidget; +// TEWidget* te; +// TESession* se; + // ColorSchemaList* colors; + KRootPixmap* rootxpm; + + KActionCollection* actions; + KActionCollection* settingsActions; + + KToggleAction* blinkingCursor; + KToggleAction* showFrame; + KToggleAction* m_useKonsoleSettings; + + KSelectAction* selectBell; + KSelectAction* selectLineSpacing; + KSelectAction* selectScrollbar; + KSelectAction* selectSetEncoding; + + KActionMenu* m_fontsizes; + + KPopupMenu* m_keytab; + KPopupMenu* m_schema; + KPopupMenu* m_signals; + KPopupMenu* m_options; + KPopupMenu* m_popupMenu; + + QFont defaultFont; + + QString pmPath; // pixmap path + QString s_schema; + QString s_kconfigSchema; + QString s_word_seps; // characters that are considered part of a word + + bool b_framevis:1; + bool b_histEnabled:1; + bool b_useKonsoleSettings:1; + bool b_autoDestroy:1; + bool b_autoStartShell:1; + + int curr_schema; // current schema no + int n_bell; + int n_keytab; + int n_render; + int n_scroll; + unsigned m_histSize; + bool m_runningShell; + bool m_streamEnabled; + int n_encoding; + +public: + // these are the implementations for the TermEmuInterface + // functions... + void startProgram( const QString& program, + const QStrList& args ); + void newSession(); + void showShellInDir( const QString& dir ); + void sendInput( const QString& text ); + void setAutoDestroy( bool ); + void setAutoStartShell( bool ); +}; + +////////////////////////////////////////////////////////////////////// + +/*class HistoryTypeDialog : public KDialogBase +{ + Q_OBJECT +public: + HistoryTypeDialog(const HistoryType& histType, + unsigned int histSize, + QWidget *parent); + +public slots: + void slotDefault(); + void slotSetUnlimited(); + void slotHistEnable(bool); + + unsigned int nbLines() const; + bool isOn() const; + +protected: + QCheckBox* m_btnEnable; + QSpinBox* m_size; + QPushButton* m_setUnlimited; +};*/ + +////////////////////////////////////////////////////////////////////// + +class konsoleBrowserExtension : public KParts::BrowserExtension +{ + Q_OBJECT + friend class konsolePart; + public: + konsoleBrowserExtension(konsolePart *parent); + virtual ~konsoleBrowserExtension(); + + void emitOpenURLRequest(const KURL &url); +}; + +#endif diff --git a/extra/kde352/kpanelmenu.h b/extra/kde352/kpanelmenu.h new file mode 100644 index 0000000..61ec7f1 --- /dev/null +++ b/extra/kde352/kpanelmenu.h @@ -0,0 +1,182 @@ +/***************************************************************** + +Copyright (c) 1996-2000 the kicker authors. See file AUTHORS. + (c) 2001 Michael Goffioul + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN +AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +******************************************************************/ + +#ifndef __KPANELMENU_H__ +#define __KPANELMENU_H__ + +#include +#include +#include + +class KPanelMenuPrivate; + +/** + * @short Base class to build dynamically loaded menu entries for the K-menu, or the panel. + * + * This class allows to build menu entries that will be dynamically added either to + * the K-menu, or to the panel as a normal button. These dynamic menus are located + * in shared libraries that will be loaded at runtime by Kicker (the %KDE panel). + * + * To build such a menu, you have to inherit this class and implement the pure virtual + * functions #initialize() and slotExec(). You also have to provide a factory + * object in your library, see KLibFactory. This factory is only used to construct + * the menu object. + * + * Finally, you also have to provide a desktop file describing your dynamic menu. The + * relevant entries are: Name, Comment, Icon and X-KDE-Library (which contains the + * library name without any extension). This desktop file has to be installed in + * $KDEDIR/share/apps/kicker/menuext/. + * + * @author The kicker maintainers, Michael Goffioul + */ +class KDEUI_EXPORT KPanelMenu : public KPopupMenu +{ + Q_OBJECT + +public: + /** + * Construct a KPanelMenu object. This is the normal constructor to use when + * building extrernal menu entries. + */ + KPanelMenu(QWidget *parent=0, const char *name=0); + /** + * Constructor used internally by Kicker. You don't really want to use it. + * @param startDir a directory to associate with this menu + * @param parent parent object + * @param name name of the object + * @see path(), setPath() + */ + KPanelMenu(const QString &startDir, QWidget *parent=0, const char *name=0); + /** + * Destructor. + */ + virtual ~KPanelMenu(); + + /** + * Get the directory path associated with this menu, or QString::null if + * there's no such associated path. + * @return the associated directory path + * @see setPath() + */ + const QString& path() const; + /** + * Set a directory path to be associated with this menu. + * @param p the directory path + * @see path() + */ + void setPath(const QString &p); + /** + * Tell if the menu has been initialized, that is it already contains items. + * This is useful when you need to know if you have to clear the menu, or to + * fill it. + * @return the initial state + * @see setInitialized(), initialize() + */ + bool initialized() const; + /** + * Set the initial state. Set it to true when you menu is filled with the items + * you want. + * @param on the initial state + * @see initialized(), initialize() + */ + void setInitialized(bool on); + + /** + * Disable the automatic clearing of the menu. Kicker uses a cache system for + * its menus. After a specific configurable delay, the menu will be cleared. + * Use this function if you want to disable kicker's cache system, and avoid + * the clearing of your menu. + */ + void disableAutoClear(); + +public slots: + /** + * Reinitialize the menu: the menu is first cleared, the initial state is set + * to false, and finally #initialize() is called. Use this if you want to + * refill your menu immediately. + */ + void reinitialize(); + /** + * Deinitialize the menu: the menu is cleared and the initialized state is set to + * false. #initialize() is NOT called. It will be called before the menu is + * next shown, however. Use this slot if you want a delayed reinitialization. + * @since 3.1 + */ + void deinitialize(); + +protected slots: + /** + * This slot is called just before the menu is shown. This allows your menu + * to update itself if needed. However you should instead re-implement + * #initialize to provide this feature. This function is responsible for + * the cache system handling, so if you re-implement it, you should call + * the base function also. Calls #initialize(). + * @see disableAutoClear() + */ + virtual void slotAboutToShow(); + /** + * This is slot is called when an item from the menu has been selected. Your + * applet is then supposed to perform some action. You must re-implement this + * function. + * @param id the ID associated with the selected item + */ + virtual void slotExec(int id) = 0; + /** + * This slots is called to initialize the menu. It is called automatically by + * slotAboutToShow(). By re-implementing this functions, you can reconstruct + * the menu before it is being shown. At the end of this function, you should + * call setInitialize() with true to tell the system that the menu is OK. + * You applet must re-implement this function. + * @see slotAboutToShow(), initialized(), setInitialized() + */ + virtual void initialize() = 0; + /** + * Clears the menu, and update the initial state accordingly. + * @see initialized() + */ + void slotClear(); + +protected: + /** + * Re-implemented for internal reasons. + */ + virtual void hideEvent(QHideEvent *ev); + /** + * For internal use only. Used by constructors. + */ + void init(const QString& path = QString::null); + +protected: + virtual void virtual_hook( int id, void* data ); +private: + void internalInitialize(); + KPanelMenuPrivate *d; +}; + +#define K_EXPORT_KICKER_MENUEXT( libname, classname ) \ + K_EXPORT_COMPONENT_FACTORY( \ + kickermenu_##libname, \ + KGenericFactory("libkickermenu_" #libname) ) + +#endif diff --git a/extra/kde352/ksharedptr.h b/extra/kde352/ksharedptr.h new file mode 100644 index 0000000..ada0841 --- /dev/null +++ b/extra/kde352/ksharedptr.h @@ -0,0 +1,175 @@ +/* This file is part of the KDE libraries + Copyright (c) 1999 Waldo Bastian + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License version 2 as published by the Free Software Foundation. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ +#ifndef KSharedPTR_H +#define KSharedPTR_H + +#include "kdelibs_export.h" + +/** + * Reference counting for shared objects. If you derive your object + * from this class, then you may use it in conjunction with + * KSharedPtr to control the lifetime of your object. + * + * Specifically, all classes that derive from KShared have an internal + * counter keeping track of how many other objects have a reference to + * their object. If used with KSharedPtr, then your object will + * not be deleted until all references to the object have been + * released. + * + * You should probably not ever use any of the methods in this class + * directly -- let the KSharedPtr take care of that. Just derive + * your class from KShared and forget about it. + * + * @author Waldo Bastian + */ +class KDECORE_EXPORT KShared { +public: + /** + * Standard constructor. This will initialize the reference count + * on this object to 0. + */ + KShared() : count(0) { } + + /** + * Copy constructor. This will @em not actually copy the objects + * but it will initialize the reference count on this object to 0. + */ + KShared( const KShared & ) : count(0) { } + + /** + * Overloaded assignment operator. + */ + KShared &operator=(const KShared & ) { return *this; } + + /** + * Increases the reference count by one. + */ + void _KShared_ref() const { count++; } + + /** + * Releases a reference (decreases the reference count by one). If + * the count goes to 0, this object will delete itself. + */ + void _KShared_unref() const { if (!--count) delete this; } + + /** + * Return the current number of references held. + * + * @return Number of references + */ + int _KShared_count() const { return count; } + +protected: + virtual ~KShared() { } +private: + mutable int count; +}; + +/** + * Can be used to control the lifetime of an object that has derived + * KShared. As long a someone holds a KSharedPtr on some KShared + * object it won't become deleted but is deleted once its reference + * count is 0. This struct emulates C++ pointers virtually perfectly. + * So just use it like a simple C++ pointer. + * + * KShared and KSharedPtr are preferred over QShared / QSharedPtr + * since they are more safe. + * + * WARNING: Please note that this class template provides an implicit + * conversion to T*. Do *not* change this pointer or the pointee (don't + * call delete on it, for instance) behind KSharedPtr's back. + * + * @author Waldo Bastian + */ +template< class T > +class KSharedPtr +{ +public: +/** + * Creates a null pointer. + */ + KSharedPtr() + : ptr(0) { } + /** + * Creates a new pointer. + * @param t the pointer + */ + KSharedPtr( T* t ) + : ptr(t) { if ( ptr ) ptr->_KShared_ref(); } + + /** + * Copies a pointer. + * @param p the pointer to copy + */ + KSharedPtr( const KSharedPtr& p ) + : ptr(p.ptr) { if ( ptr ) ptr->_KShared_ref(); } + + /** + * Unreferences the object that this pointer points to. If it was + * the last reference, the object will be deleted. + */ + ~KSharedPtr() { if ( ptr ) ptr->_KShared_unref(); } + + KSharedPtr& operator= ( const KSharedPtr& p ) { + if ( ptr == p.ptr ) return *this; + if ( ptr ) ptr->_KShared_unref(); + ptr = p.ptr; + if ( ptr ) ptr->_KShared_ref(); + return *this; + } + KSharedPtr& operator= ( T* p ) { + if ( ptr == p ) return *this; + if ( ptr ) ptr->_KShared_unref(); + ptr = p; + if ( ptr ) ptr->_KShared_ref(); + return *this; + } + bool operator== ( const KSharedPtr& p ) const { return ( ptr == p.ptr ); } + bool operator!= ( const KSharedPtr& p ) const { return ( ptr != p.ptr ); } + bool operator== ( const T* p ) const { return ( ptr == p ); } + bool operator!= ( const T* p ) const { return ( ptr != p ); } + bool operator!() const { return ( ptr == 0 ); } + operator T*() const { return ptr; } + + /** + * Returns the pointer. + * @return the pointer + */ + T* data() { return ptr; } + + /** + * Returns the pointer. + * @return the pointer + */ + const T* data() const { return ptr; } + + const T& operator*() const { return *ptr; } + T& operator*() { return *ptr; } + const T* operator->() const { return ptr; } + T* operator->() { return ptr; } + + /** + * Returns the number of references. + * @return the number of references + */ + int count() const { return ptr->_KShared_count(); } // for debugging purposes +private: + T* ptr; +}; + +#endif diff --git a/extra/kde352/ksycocafactory.h b/extra/kde352/ksycocafactory.h new file mode 100644 index 0000000..65bb9d9 --- /dev/null +++ b/extra/kde352/ksycocafactory.h @@ -0,0 +1,143 @@ +/* This file is part of the KDE libraries + * Copyright (C) 1999 Waldo Bastian + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License version 2 as published by the Free Software Foundation; + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public License + * along with this library; see the file COPYING.LIB. If not, write to + * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA. + **/ + +#ifndef __ksycocafactory_h__ +#define __ksycocafactory_h__ + +#include "ksycocatype.h" +#include "ksycocaentry.h" + +#include +#include +class KSycoca; +class QStringList; +class QString; +class KSycocaDict; +class KSycocaResourceList; + +typedef QDict KSycocaEntryDict; + +/** + * @internal + * Base class for sycoca factories + */ +class KDECORE_EXPORT KSycocaFactory +{ +public: + virtual KSycocaFactoryId factoryId() const = 0; + +protected: // virtual class + /** + * Create a factory which can be used to lookup from/create a database + * (depending on KSycoca::isBuilding()) + */ + KSycocaFactory( KSycocaFactoryId factory_id ); + +public: + virtual ~KSycocaFactory(); + + /** + * @return the position of the factory in the sycoca file + */ + int offset() { return mOffset; } + + /** + * @return the dict, for special use by KBuildSycoca + */ + KSycocaEntryDict * entryDict() { return m_entryDict; } + + /** + * Construct an entry from a config file. + * To be implemented in the real factories. + */ + virtual KSycocaEntry *createEntry(const QString &file, const char *resource) = 0; + + /** + * Add an entry + */ + virtual void addEntry(KSycocaEntry *newEntry, const char *resource); + + /** + * Remove an entry + * Not very fast, use with care. O(N) + */ + void removeEntry(KSycocaEntry *newEntry); + + /** + * Read an entry from the database + */ + virtual KSycocaEntry *createEntry(int offset)=0; + + /** + * Get a list of all entries from the database. + */ + KSycocaEntry::List allEntries(); + + /** + * Saves all entries it maintains as well as index files + * for these entries to the stream 'str'. + * + * Also sets mOffset to the starting position. + * + * The stream is positioned at the end of the last index. + * + * Don't forget to call the parent first when you override + * this function. + */ + virtual void save(QDataStream &str); + + /** + * Writes out a header to the stream 'str'. + * The baseclass positions the stream correctly. + * + * Don't forget to call the parent first when you override + * this function. + */ + virtual void saveHeader(QDataStream &str); + + /** + * @return the resources for which this factory is responsible. + */ + virtual const KSycocaResourceList * resourceList() const { return m_resourceList; } + +private: + int mOffset; + +protected: + int m_sycocaDictOffset; + int m_beginEntryOffset; + int m_endEntryOffset; + QDataStream *m_str; + + KSycocaResourceList *m_resourceList; + KSycocaEntryDict *m_entryDict; + KSycocaDict *m_sycocaDict; +protected: + virtual void virtual_hook( int id, void* data ); +}; + +/** This, instead of a typedef, allows to declare "class ..." in header files + * @internal + */ +class KDECORE_EXPORT KSycocaFactoryList : public QPtrList +{ +public: + KSycocaFactoryList() { } +}; + +#endif diff --git a/extra/kde352/ktoolbarbutton.h b/extra/kde352/ktoolbarbutton.h new file mode 100644 index 0000000..7526f02 --- /dev/null +++ b/extra/kde352/ktoolbarbutton.h @@ -0,0 +1,330 @@ +/* This file is part of the KDE libraries + Copyright (C) 1997, 1998 Stephan Kulow (coolo@kde.org) + (C) 1997, 1998 Sven Radej (radej@kde.org) + (C) 1997, 1998 Mark Donohoe (donohoe@kde.org) + (C) 1997, 1998 Matthias Ettrich (ettrich@kde.org) + (C) 2000 Kurt Granroth (granroth@kde.org) + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License version 2 as published by the Free Software Foundation. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef _KTOOLBARBUTTON_H +#define _KTOOLBARBUTTON_H + +#include +#include +#include +#include +#include + +class KToolBar; +class KToolBarButtonPrivate; +class KInstance; +class QEvent; +class QPopupMenu; +class QPainter; + +/** + * A toolbar button. This is used internally by KToolBar, use the + * KToolBar methods instead. + * @internal + */ +class KDEUI_EXPORT KToolBarButton : public QToolButton +{ + Q_OBJECT + +public: + /** + * Construct a button with an icon loaded by the button itself. + * This will trust the button to load the correct icon with the + * correct size. + * + * @param icon Name of icon to load (may be absolute or relative) + * @param id Id of this button + * @param parent This button's parent + * @param name This button's internal name + * @param txt This button's text (in a tooltip or otherwise) + * @param _instance the instance to use for this button + */ + KToolBarButton(const QString& icon, int id, QWidget *parent, + const char *name=0L, const QString &txt=QString::null, + KInstance *_instance = KGlobal::instance()); + + /** + * Construct a button with an existing pixmap. It is not + * recommended that you use this as the internal icon loading code + * will almost always get it "right". + * + * @param pixmap Name of icon to load (may be absolute or relative) + * @param id Id of this button + * @param parent This button's parent + * @param name This button's internal name + * @param txt This button's text (in a tooltip or otherwise) + */ + KToolBarButton(const QPixmap& pixmap, int id, QWidget *parent, + const char *name=0L, const QString &txt=QString::null); + + /** + * Construct a separator button + * + * @param parent This button's parent + * @param name This button's internal name + */ + KToolBarButton(QWidget *parent=0L, const char *name=0L); + + /** + * Standard destructor + */ + ~KToolBarButton(); + +#ifndef KDE_NO_COMPAT + /** + * @deprecated + * Set the pixmap directly for this button. This pixmap should be + * the active one... the dimmed and disabled pixmaps are constructed + * based on this one. However, don't use this function unless you + * are positive that you don't want to use setIcon. + * + * @param pixmap The active pixmap + */ + // this one is from QButton, so #ifdef-ing it out doesn't break BC + virtual void setPixmap(const QPixmap &pixmap) KDE_DEPRECATED; + + /** + * @deprecated + * Force the button to use this pixmap as the default one rather + * then generating it using effects. + * + * @param pixmap The pixmap to use as the default (normal) one + */ + void setDefaultPixmap(const QPixmap& pixmap) KDE_DEPRECATED; + + /** + * @deprecated + * Force the button to use this pixmap when disabled one rather then + * generating it using effects. + * + * @param pixmap The pixmap to use when disabled + */ + void setDisabledPixmap(const QPixmap& pixmap) KDE_DEPRECATED; +#endif + + /** + * Set the text for this button. The text will be either used as a + * tooltip (IconOnly) or will be along side the icon + * + * @param text The button (or tooltip) text + */ + virtual void setText(const QString &text); + + /** + * Set the icon for this button. The icon will be loaded internally + * with the correct size. This function is preferred over setIconSet + * + * @param icon The name of the icon + */ + virtual void setIcon(const QString &icon); + + /// @since 3.1 + virtual void setIcon( const QPixmap &pixmap ) + { QToolButton::setIcon( pixmap ); } + + /** + * Set the pixmaps for this toolbar button from a QIconSet. + * If you call this you don't need to call any of the other methods + * that set icons or pixmaps. + * @param iconset The iconset to use + */ + virtual void setIconSet( const QIconSet &iconset ); + +#ifndef KDE_NO_COMPAT + /** + * @deprecated + * Set the active icon for this button. The pixmap itself is loaded + * internally based on the icon size... .. the disabled and default + * pixmaps, however will only be constructed if generate is + * true. This function is preferred over setPixmap + * + * @param icon The name of the active icon + * @param generate If true, then the other icons are automagically + * generated from this one + */ + KDE_DEPRECATED void setIcon(const QString &icon, bool generate ) { Q_UNUSED(generate); setIcon( icon ); } + + /** + * @deprecated + * Force the button to use this icon as the default one rather + * then generating it using effects. + * + * @param icon The icon to use as the default (normal) one + */ + void setDefaultIcon(const QString& icon) KDE_DEPRECATED; + + /** + * @deprecated + * Force the button to use this icon when disabled one rather then + * generating it using effects. + * + * @param icon The icon to use when disabled + */ + void setDisabledIcon(const QString& icon) KDE_DEPRECATED; +#endif + + /** + * Turn this button on or off + * + * @param flag true or false + */ + void on(bool flag = true); + + /** + * Toggle this button + */ + void toggle(); + + /** + * Turn this button into a toggle button or disable the toggle + * aspects of it. This does not toggle the button itself. + * Use toggle() for that. + * + * @param toggle true or false + */ + void setToggle(bool toggle = true); + + /** + * Return a pointer to this button's popup menu (if it exists) + */ + QPopupMenu *popup(); + + /** + * Returns the button's id. + * @since 3.2 + */ + int id() const; + + /** + * Give this button a popup menu. There will not be a delay when + * you press the button. Use setDelayedPopup if you want that + * behavior. + * + * @param p The new popup menu + * @param unused Has no effect - ignore it. + */ + void setPopup (QPopupMenu *p, bool unused = false); + + /** + * Gives this button a delayed popup menu. + * + * This function allows you to add a delayed popup menu to the button. + * The popup menu is then only displayed when the button is pressed and + * held down for about half a second. + * + * @param p the new popup menu + * @param unused Has no effect - ignore it. + */ + void setDelayedPopup(QPopupMenu *p, bool unused = false); + + /** + * Turn this button into a radio button + * + * @param f true or false + */ + void setRadio(bool f = true); + + /** + * Toolbar buttons naturally will assume the global styles + * concerning icons, icons sizes, etc. You can use this function to + * explicitly turn this off, if you like. + * + * @param no_style Will disable styles if true + */ + void setNoStyle(bool no_style = true); + +signals: + /** + * Emitted when the toolbar button is clicked (with LMB or MMB) + */ + void clicked(int); + /** + * Emitted when the toolbar button is clicked (with any mouse button) + * @param state makes it possible to find out which button was pressed, + * and whether any keyboard modifiers were held. + * @since 3.4 + */ + void buttonClicked(int, Qt::ButtonState state); + void doubleClicked(int); + void pressed(int); + void released(int); + void toggled(int); + void highlighted(int, bool); + +public slots: + /** + * This slot should be called whenever the toolbar mode has + * potentially changed. This includes such events as text changing, + * orientation changing, etc. + */ + void modeChange(); + virtual void setTextLabel(const QString&, bool tipToo); + +protected: + bool event(QEvent *e); + void paletteChange(const QPalette &); + void leaveEvent(QEvent *e); + void enterEvent(QEvent *e); + void drawButton(QPainter *p); + bool eventFilter (QObject *o, QEvent *e); + /// @since 3.4 + void mousePressEvent( QMouseEvent * ); + /// @since 3.4 + void mouseReleaseEvent( QMouseEvent * ); + void showMenu(); + QSize sizeHint() const; + QSize minimumSizeHint() const; + QSize minimumSize() const; + + /// @since 3.1 + bool isRaised() const; + /// @since 3.1 + bool isActive() const; + /// @since 3.1 + int iconTextMode() const; + +protected slots: + void slotClicked(); + void slotPressed(); + void slotReleased(); + void slotToggled(); + void slotDelayTimeout(); + +protected: + virtual void virtual_hook( int id, void* data ); +private: + KToolBarButtonPrivate *d; +}; + +/** +* List of KToolBarButton objects. +* @internal +* @version $Id: ktoolbarbutton.h 465272 2005-09-29 09:47:40Z mueller $ +*/ +class KDEUI_EXPORT KToolBarButtonList : public QIntDict +{ +public: + KToolBarButtonList(); + ~KToolBarButtonList() {} +}; + +#endif diff --git a/extra/kde352/kurifilter.h b/extra/kde352/kurifilter.h new file mode 100644 index 0000000..355ce38 --- /dev/null +++ b/extra/kde352/kurifilter.h @@ -0,0 +1,647 @@ +/* + * This file is part of the KDE libraries + * Copyright (C) 2000-2001,2003 Dawit Alemayehu + * + * Original author + * Copyright (C) 2000 Yves Arrouye + * + * + * This library 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. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public License + * along with this library; see the file COPYING.LIB. If not, write to + * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA. + **/ + +#ifndef __kurifilter_h__ +#define __kurifilter_h__ + +#include +#include +#include + +#include + +#ifdef Q_OS_WIN +#undef ERROR +#endif + +class KURIFilterPrivate; +class KURIFilterDataPrivate; + +class KCModule; + +/** +* A basic message object used for exchanging filtering +* information between the filter plugins and the application +* requesting the filtering service. +* +* Use this object if you require a more detailed information +* about the URI you want to filter. Any application can create +* an instance of this class and send it to KURIFilter to +* have the plugins fill out all possible information about the +* URI. +* +* \b Example +* +* \code +* QString text = "kde.org"; +* KURIFilterData d = text; +* bool filtered = KURIFilter::self()->filter( d ); +* cout << "URL: " << text.latin1() << endl +* << "Filtered URL: " << d.uri().url().latin1() << endl +* << "URI Type: " << d.uriType() << endl +* << "Was Filtered: " << filtered << endl; +* \endcode +* +* The above code should yield the following output: +* \code +* URI: kde.org +* Filtered URI: http://kde.org +* URI Type: 0 <== means NET_PROTOCOL +* Was Filtered: 1 <== means the URL was successfully filtered +* \endcode +* +* @short A message object for exchanging filtering URI info. +* @author Dawit Alemayehu +*/ + +class KIO_EXPORT KURIFilterData +{ +friend class KURIFilterPlugin; + +public: + /** + * Describes the type of the URI that was filtered. + * Here is a brief description of the types: + * + * @li NET_PROTOCOL - Any network protocol: http, ftp, nttp, pop3, etc... + * @li LOCAL_FILE - A local file whose executable flag is not set + * @li LOCAL_DIR - A local directory + * @li EXECUTABLE - A local file whose executable flag is set + * @li HELP - A man or info page + * @li SHELL - A shell executable (ex: echo "Test..." >> ~/testfile) + * @li BLOCKED - A URI that should be blocked/filtered (ex: ad filtering) + * @li ERROR - An incorrect URI (ex: "~johndoe" when user johndoe + * does not exist in that system ) + * @li UNKNOWN - A URI that is not identified. Default value when + * a KURIFilterData is first created. + */ + enum URITypes { NET_PROTOCOL=0, LOCAL_FILE, LOCAL_DIR, EXECUTABLE, HELP, SHELL, BLOCKED, ERROR, UNKNOWN }; + + /** + * Default constructor. + * + * Creates a URIFilterData object. + */ + KURIFilterData() { init(); } + + /** + * Creates a URIFilterData object from the given URL. + * + * @param url is the URL to be filtered. + */ + KURIFilterData( const KURL& url ) { init( url); } + + /** + * Creates a URIFilterData object from the given string. + * + * @param url is the string to be filtered. + */ + KURIFilterData( const QString& url ) { init( url ); } + + /** + * Copy constructor. + * + * Creates a URIFilterData object from another + * URI filter data object. + * + * @param data the uri filter data to be copied. + */ + KURIFilterData( const KURIFilterData& data); + + /** + * Destructor. + */ + ~KURIFilterData(); + + /** + * This method has been deprecated and will always return + * true. You should instead use the result from the + * KURIFilter::filterURI() calls. + * + * @deprecated + */ + KDE_DEPRECATED bool hasBeenFiltered() const { return true; } + + /** + * Returns the filtered or the original URL. + * + * This function returns the filtered url if one + * of the plugins successfully filtered the original + * URL. Otherwise, it returns the original URL. + * See hasBeenFiltered() and + * + * @return the filtered or original url. + */ + KURL uri() const { return m_pURI; } + + /** + * Returns an error message. + * + * This functions returns the error message set + * by the plugin whenever the uri type is set to + * KURIFilterData::ERROR. Otherwise, it returns + * a QString::null. + * + * @return the error message or a NULL when there is none. + */ + QString errorMsg() const { return m_strErrMsg; } + + /** + * Returns the URI type. + * + * This method always returns KURIFilterData::UNKNOWN + * if the given URL was not filtered. + * @return the type of the URI + */ + URITypes uriType() const { return m_iType; } + + /** + * Sets the URL to be filtered. + * + * Use this function to set the string to be + * filtered when you construct an empty filter + * object. + * + * @param url the string to be filtered. + */ + void setData( const QString& url ) { init( url ); } + + /** + * Same as above except the argument is a URL. + * + * Use this function to set the string to be + * filtered when you construct an empty filter + * object. + * + * @param url the URL to be filtered. + */ + void setData( const KURL& url ) { init( url ); } + + /** + * Sets the absolute path to be used whenever the supplied + * data is a relative local URL. + * + * NOTE: This function should only be used for local resources, + * i.e. the "file:/" protocol. It is useful for specifying the + * absolute path in cases where the actual URL might be relative. + * meta object. If deriving the path from a KURL, make sure you + * set the argument for this function to the result of calling + * path () instead of url (). + * + * @param abs_path the abolute path to the local resource. + * @return true if absolute path is successfully set. Otherwise, false. + */ + bool setAbsolutePath( const QString& abs_path ); + + /** + * Returns the absolute path if one has already been set. + * @return the absolute path, or QString::null + * @see hasAbsolutePath() + */ + QString absolutePath() const; + + /** + * Checks whether the supplied data had an absolute path. + * @return true if the supplied data has an absolute path + * @see absolutePath() + */ + bool hasAbsolutePath() const; + + /** + * Returns the command line options and arguments for a + * local resource when present. + * + * @return options and arguments when present, otherwise QString::null + */ + QString argsAndOptions() const; + + /** + * Checks whether the current data is a local resource with + * command line options and arguments. + * @return true if the current data has command line options and arguments + */ + bool hasArgsAndOptions() const; + + /** + * Returns the name of the icon that matches + * the current filtered URL. + * + * NOTE that this function will return a NULL + * string by default and when no associated icon + * is found. + * + * @return the name of the icon associated with the resource, + * or QString::null if not found + */ + QString iconName(); + + /** + * Check whether the provided uri is executable or not. + * + * Setting this to false ensures that typing the name of + * an executable does not start that application. This is + * useful in the location bar of a browser. The default + * value is true. + * + * @since 3.2 + */ + void setCheckForExecutables (bool check); + + /** + * @return true if the filters should attempt to check whether the + * supplied uri is an executable. False otherwise. + * + * @since 3.2 + */ + bool checkForExecutables() const { return m_bCheckForExecutables; } + + /** + * @return the string as typed by the user, before any URL processing is done + * @since 3.2 + */ + QString typedString() const; + + /** + * Overloaded assigenment operator. + * + * This function allows you to easily assign a KURL + * to a KURIFilterData object. + * + * @return an instance of a KURIFilterData object. + */ + KURIFilterData& operator=( const KURL& url ) { init( url ); return *this; } + + /** + * Overloaded assigenment operator. + * + * This function allows you to easily assign a QString + * to a KURIFilterData object. + * + * @return an instance of a KURIFilterData object. + */ + KURIFilterData& operator=( const QString& url ) { init( url ); return *this; } + +protected: + + /** + * Initializes the KURIFilterData on construction. + * @param url the URL to initialize the object with + */ + void init( const KURL& url); + + /** + * Initializes the KURIFilterData on construction. + * @param url the URL to initialize the object with + */ + void init( const QString& url = QString::null ); + +private: + bool m_bCheckForExecutables; + bool m_bChanged; + + QString m_strErrMsg; + QString m_strIconName; + + KURL m_pURI; + URITypes m_iType; + KURIFilterDataPrivate *d; +}; + + +/** + * Base class for URI filter plugins. + * + * This class applies a single filter to a URI. All plugins designed + * to provide URI filtering service should inherit from this abstract + * class and provide a concrete implementation. + * + * All inheriting classes need to implement the pure virtual function + * filterURI. + * + * @short Abstract class for URI filter plugins. + */ +class KIO_EXPORT KURIFilterPlugin : public QObject +{ + Q_OBJECT + +public: + + /** + * Constructs a filter plugin with a given name and + * priority. + * + * @param parent the parent object, or 0 for no parent + * @param name the name of the plugin, or 0 for no name + * @param pri the priority of the plugin. + */ + KURIFilterPlugin( QObject *parent = 0, const char *name = 0, double pri = 1.0 ); + + /** + * Returns the filter's name. + * + * @return A string naming the filter. + */ + virtual QString name() const { return m_strName; } + + /** + * Returns the filter's priority. + * + * Each filter has an assigned priority, a float from 0 to 1. Filters + * with the lowest priority are first given a chance to filter a URI. + * + * @return The priority of the filter. + */ + virtual double priority() const { return m_dblPriority; } + + /** + * Filters a URI. + * + * @param data the URI data to be filtered. + * @return A boolean indicating whether the URI has been changed. + */ + virtual bool filterURI( KURIFilterData& data ) const = 0; + + /** + * Creates a configuration module for the filter. + * + * It is the responsibility of the caller to delete the module + * once it is not needed anymore. + * + * @return A configuration module, 0 if the filter isn't configurable. + */ + virtual KCModule *configModule( QWidget*, const char* ) const { return 0; } + + /** + * Returns the name of the configuration module for the filter. + * + * @return the name of a configuration module or QString::null if none. + */ + virtual QString configName() const { return name(); } + +protected: + + /** + * Sets the the URL in @p data to @p uri. + */ + void setFilteredURI ( KURIFilterData& data, const KURL& uri ) const; + + /** + * Sets the error message in @p data to @p errormsg. + */ + void setErrorMsg ( KURIFilterData& data, const QString& errmsg ) const { + data.m_strErrMsg = errmsg; + } + + /** + * Sets the URI type in @p data to @p type. + */ + void setURIType ( KURIFilterData& data, KURIFilterData::URITypes type) const { + data.m_iType = type; + data.m_bChanged = true; + } + + /** + * Sets the arguments and options string in @p data + * to @p args if any were found during filterting. + */ + void setArguments( KURIFilterData& data, const QString& args ) const; + + QString m_strName; + double m_dblPriority; + +protected: + virtual void virtual_hook( int id, void* data ); +private: + class KURIFilterPluginPrivate *d; +}; + + +/** + * A list of filter plugins. + */ +class KIO_EXPORT KURIFilterPluginList : public QPtrList +{ +public: + virtual int compareItems(Item a, Item b) + { + double diff = ((KURIFilterPlugin *) a)->priority() - ((KURIFilterPlugin *) b)->priority(); + return diff < 0 ? -1 : (diff > 0 ? 1 : 0); + } + +private: + KURIFilterPrivate *d; + +}; + +/** + * Manages the filtering of URIs. + * + * The intention of this plugin class is to allow people to extend the + * functionality of KURL without modifying it directly. This way KURL will + * remain a generic parser capable of parsing any generic URL that adheres + * to specifications. + * + * The KURIFilter class applies a number of filters to a URI and returns the + * filtered version whenever possible. The filters are implemented using + * plugins to provide easy extensibility of the filtering mechanism. New + * filters can be added in the future by simply inheriting from + * KURIFilterPlugin and implementing the KURIFilterPlugin::filterURI + * method. + * + * Use of this plugin-manager class is straight forward. Since it is a + * singleton object, all you have to do is obtain an instance by doing + * @p KURIFilter::self() and use any of the public member functions to + * preform the filtering. + * + * \b Example + * + * To simply filter a given string: + * + * \code + * bool filtered = KURIFilter::self()->filterURI( "kde.org" ); + * \endcode + * + * You can alternatively use a KURL: + * + * \code + * KURL url = "kde.org"; + * bool filtered = KURIFilter::self()->filterURI( url ); + * \endcode + * + * If you have a constant string or a constant URL, simply invoke the + * corresponding function to obtain the filtered string or URL instead + * of a boolean flag: + * + * \code + * QString u = KURIFilter::self()->filteredURI( "kde.org" ); + * \endcode + * + * You can also restrict the filter(s) to be used by supplying + * the name of the filter(s) to use. By defualt all available + * filters will be used. To use specific filters, add the names + * of the filters you want to use to a QStringList and invoke + * the appropriate filtering function. The examples below show + * the use of specific filters. The first one uses a single + * filter called kshorturifilter while the second example uses + * multiple filters: + * + * \code + * QString text = "kde.org"; + * bool filtered = KURIFilter::self()->filterURI( text, "kshorturifilter" ); + * \endcode + * + * \code + * QStringList list; + * list << "kshorturifilter" << "localdomainfilter"; + * bool filtered = KURIFilter::self()->filterURI( text, list ); + * \endcode + * + * KURIFilter also allows richer data exchange through a simple + * meta-object called @p KURIFilterData. Using this meta-object + * you can find out more information about the URL you want to + * filter. See KURIFilterData for examples and details. + * + * @short Filters a given URL into its proper format whenever possible. + */ + +class KIO_EXPORT KURIFilter +{ +public: + /** + * Destructor + */ + ~KURIFilter (); + + /** + * Returns an instance of KURIFilter. + */ + static KURIFilter* self(); + + /** + * Filters the URI given by the object URIFilterData. + * + * The given URL is filtered based on the specified list of filters. + * If the list is empty all available filters would be used. + * + * @param data object that contains the URI to be filtered. + * @param filters specify the list of filters to be used. + * + * @return a boolean indicating whether the URI has been changed + */ + bool filterURI( KURIFilterData& data, const QStringList& filters = QStringList() ); + + /** + * Filters the URI given by the URL. + * + * The given URL is filtered based on the specified list of filters. + * If the list is empty all available filters would be used. + * + * @param uri the URI to filter. + * @param filters specify the list of filters to be used. + * + * @return a boolean indicating whether the URI has been changed + */ + bool filterURI( KURL &uri, const QStringList& filters = QStringList() ); + + /** + * Filters a string representing a URI. + * + * The given URL is filtered based on the specified list of filters. + * If the list is empty all available filters would be used. + * + * @param uri The URI to filter. + * @param filters specify the list of filters to be used. + * + * @return a boolean indicating whether the URI has been changed + */ + bool filterURI( QString &uri, const QStringList& filters = QStringList() ); + + /** + * Returns the filtered URI. + * + * The given URL is filtered based on the specified list of filters. + * If the list is empty all available filters would be used. + * + * @param uri The URI to filter. + * @param filters specify the list of filters to be used. + * + * @return the filtered URI or null if it cannot be filtered + */ + KURL filteredURI( const KURL &uri, const QStringList& filters = QStringList() ); + + /** + * Return a filtered string representation of a URI. + * + * The given URL is filtered based on the specified list of filters. + * If the list is empty all available filters would be used. + * + * @param uri the URI to filter. + * @param filters specify the list of filters to be used. + * + * @return the filtered URI or null if it cannot be filtered + */ + QString filteredURI( const QString &uri, const QStringList& filters = QStringList() ); + + /** + * Return an iterator to iterate over all loaded + * plugins. + * + * @return a plugin iterator. + */ + QPtrListIterator pluginsIterator() const; + + /** + * Return a list of the names of all loaded plugins. + * + * @return a QStringList of plugin names + * @since 3.1 + */ + QStringList pluginNames() const; + +protected: + + /** + * A protected constructor. + * + * This constructor creates a KURIFilter and + * initializes all plugins it can find by invoking + * loadPlugins. + */ + KURIFilter(); + + /** + * Loads all allowed plugins. + * + * This function loads all filters that have not + * been disbled. + */ + void loadPlugins(); + +private: + static KURIFilter *s_self; + KURIFilterPluginList m_lstPlugins; + KURIFilterPrivate *d; +}; + +#endif diff --git a/extra/kde353/kaccelaction.h b/extra/kde353/kaccelaction.h new file mode 100644 index 0000000..4164ca5 --- /dev/null +++ b/extra/kde353/kaccelaction.h @@ -0,0 +1,576 @@ +/* This file is part of the KDE libraries + Copyright (C) 2001,2002 Ellis Whitehead + + This library 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. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef _KACCELACTION_H +#define _KACCELACTION_H + +#include +#include +#include +#include + +#include + +class KAccelBase; + +class QObject; +class KConfig; +class KConfigBase; + +/** + * @internal + * A KAccelAction prepresents an action that can be executed using + * an accelerator key. Each KAccelAction has a name, a label, a + * "What's this" string and a KShortcut. The user can configure and + * enable/disable them using KKeyDialog. + * + * \code + * 1) KAccelAction = "Run Command" + * Default3 = "Alt+F2" + * Default4 = "Meta+Enter;Alt+F2" + * 1) KShortcut = "Meta+Enter" + * 1) KKeySequence = "Meta+Enter" + * 1) KKey = "Meta+Enter" + * 1) Meta+Enter + * 2) Meta+Keypad_Enter + * 2) KShortcut = "Alt+F2" + * 1) KKeySequence = "Alt+F2" + * 1) Alt+F2 + * 2) KAccelAction = "Something" + * Default3 = "" + * Default4 = "" + * 1) KShortcut = "Meta+X,Asterisk" + * 1) KKeySequence = "Meta+X,Asterisk" + * 1) KKey = "Meta+X" + * 1) Meta+X + * 2) KKey = "Asterisk" + * 1) Shift+8 (English layout) + * 2) Keypad_Asterisk + * \endcode + * @short An accelerator action + * @see KAccel + * @see KGlobalAccel + * @see KKeyChooser + * @see KKeyDialog + */ +class KDECORE_EXPORT KAccelAction +{ + public: + /** + * Creates an empty KAccelAction. + * @see clear() + */ + KAccelAction(); + + /** + * Copy constructor. + */ + KAccelAction( const KAccelAction& ); + + /** + * Creates a new KAccelAction. + * @param sName the name of the accelerator + * @param sLabel the label of the accelerator (i18n!) + * @param sWhatsThis the What's This text (18n!) + * @param cutDef3 the default shortcut for 3 modifier systems + * @param cutDef4 the default shortcut for 4 modifier systems + * @param pObjSlot the receiver of a signal when the key has been + * pressed + * @param psMethodSlot the slot to connect for key presses. Receives + * an int, as set by setID(), as only argument + * @param bConfigurable if true the user can configure the shortcut + * @param bEnabled true if the accelerator should be enabled + */ + KAccelAction( const QString& sName, const QString& sLabel, const QString& sWhatsThis, + const KShortcut& cutDef3, const KShortcut& cutDef4, + const QObject* pObjSlot, const char* psMethodSlot, + bool bConfigurable, bool bEnabled ); + ~KAccelAction(); + + /** + * Clears the accelerator. + */ + void clear(); + + /** + * Re-initialized the KAccelAction. + * @param sName the name of the accelerator + * @param sLabel the label of the accelerator (i18n!) + * @param sWhatsThis the What's This text (18n!) + * @param cutDef3 the default shortcut for 3 modifier systems + * @param cutDef4 the default shortcut for 4 modifier systems + * @param pObjSlot the receiver of a signal when the key has been + * pressed + * @param psMethodSlot the slot to connect for key presses. Receives + * an int, as set by setID(), as only argument + * @param bConfigurable if true the user can configure the shortcut + * @param bEnabled true if the accelerator should be enabled + * @return true if successful, false otherwise + */ + bool init( const QString& sName, const QString& sLabel, const QString& sWhatsThis, + const KShortcut& cutDef3, const KShortcut& cutDef4, + const QObject* pObjSlot, const char* psMethodSlot, + bool bConfigurable, bool bEnabled ); + + /** + * Copies this KAccelAction. + */ + KAccelAction& operator=( const KAccelAction& ); + + /** + * Returns the name of the accelerator action. + * @return the name of the accelerator action, can be null if not + * set + */ + const QString& name() const { return m_sName; } + + /** + * Returns the label of the accelerator action. + * @return the label of the accelerator action, can be null if + * not set + */ + const QString& label() const { return m_sLabel; } + + /** + * Returns the What's This text of the accelerator action. + * @return the What's This text of the accelerator action, can be + * null if not set + */ + const QString& whatsThis() const { return m_sWhatsThis; } + + /** + * The shortcut that is actually used (may be used configured). + * @return the shortcut of the KAccelAction, can be null if not set + * @see shortcutDefault() + */ + const KShortcut& shortcut() const { return m_cut; } + + /** + * The default shortcut for this system. + * @return the default shortcut on this system, can be null if not set + * @see shortcut() + * @see shortcutDefault3() + * @see shortcutDefault4() + */ + const KShortcut& shortcutDefault() const; + + /** + * The default shortcut for 3 modifier systems. + * @return the default shortcut for 3 modifier systems, can be null + * if not set + * @see shortcutDefault() + * @see shortcutDefault4() + * @see useFourModifierKeys() + */ + const KShortcut& shortcutDefault3() const { return m_cutDefault3; } + + /** + * The default shortcut for 4 modifier systems. + * @return the default shortcut for 4 modifier systems, can be null + * if not set + * @see shortcutDefault() + * @see shortcutDefault3() + * @see useFourModifierKeys() + */ + const KShortcut& shortcutDefault4() const { return m_cutDefault4; } + + /** + * Returns the receiver of signals. + * @return the receiver of signals (can be 0 if not set) + */ + const QObject* objSlotPtr() const { return m_pObjSlot; } + + /** + * Returns the slot for the signal. + * @return the slot for the signal + */ + const char* methodSlotPtr() const { return m_psMethodSlot; } + + /** + * Checks whether the user can configure the action. + * @return true if configurable, false otherwise + */ + bool isConfigurable() const { return m_bConfigurable; } + + /** + * Checks whether the action is enabled. + * @return true if enabled, false otherwise + */ + bool isEnabled() const { return m_bEnabled; } + + /** + * Sets the name of the accelerator action. + * @param name the new name + */ + void setName( const QString& name ); + + /** + * Sets the user-readable label of the accelerator action. + * @param label the new label (i18n!) + */ + void setLabel( const QString& label ); + + /** + * Sets the What's This text for the accelerator action. + * @param whatsThis the new What's This text (i18n!) + */ + void setWhatsThis( const QString& whatsThis ); + + /** + * Sets the new shortcut of the accelerator action. + * @param rgCuts the shortcut to set + * @return true if successful, false otherwise + */ + bool setShortcut( const KShortcut& rgCuts ); + + /** + * Sets the slot of the accelerator action. + * @param pObjSlot the receiver object of the signal + * @param psMethodSlot the slot for the signal + */ + void setSlot( const QObject* pObjSlot, const char* psMethodSlot ); + + /** + * Enables or disabled configuring the action. + * @param configurable true to enable configurability, false to disable + */ + void setConfigurable( bool configurable ); + + /** + * Enables or disabled the action. + * @param enable true to enable the action, false to disable + */ + void setEnabled( bool enable ); + + /** + * Retrieves the id set using setID. + * @return the id of the accelerator action + */ + int getID() const { return m_nIDAccel; } + + /** + * Allows you to set an id that will be used as the action + * signal's argument. + * + * @param n the new id + * @see getID() + */ + void setID( int n ) { m_nIDAccel = n; } + + /** + * Checkes whether the action is connected (emits signals). + * @return true if connected, false otherwise + */ + bool isConnected() const; + + /** + * Sets a key sequence of the action's shortcut. + * @param i the position of the sequence + * @param keySeq the new new sequence + * @return true if successful, false otherwise + * @see KShortcut::setSeq() + */ + bool setKeySequence( uint i, const KKeySequence &keySeq ); + + /** + * Clears the action's shortcut. It will not contain any sequences after + * calling this method. + * @see KShortcut::clear() + */ + void clearShortcut(); + + /** + * Checks whether the action's shortcut contains the given key sequence. + * @param keySeq the key sequence to check + * @return true if the shortcut contains the given sequence + * @see KShortcut::contains() + */ + bool contains( const KKeySequence &keySeq ); + + /** + * Returns the string representation of the action's shortcut. + * @return the string representation of the action's shortcut. + * @see KShortcut::toString() + */ + QString toString() const; + + /** + * @internal + */ + QString toStringInternal() const; + + /** + * Returns true if four modifier keys will be used. + * @return true if four modifier keys will be used. + */ + static bool useFourModifierKeys(); + + /** + * Selects 3 or 4 modifier default shortcuts. + * @param use true to use 4 modifier shortcuts, false to use + * 3 modifier shortcuts + */ + static void useFourModifierKeys( bool use ); + + protected: + QString m_sName /**< Name of accel. @sa setName() */, + m_sLabel /**< Label of accel. User-visible. */, + m_sWhatsThis /**< WhatsThis help for accel. User-visible. */; + KShortcut m_cut /**< Shortcut actually assigned. */; + KShortcut m_cutDefault3 /**< Default shortcut in 3-modifier layout */, + m_cutDefault4 /**< Default shortcur in 4-modifier layout */; + const QObject* m_pObjSlot /**< Object we will send signals to. */; + const char* m_psMethodSlot /**< Slot we send signals to, in m_pObjSlot */; + bool m_bConfigurable /**< Can this accel be configured by the user? */, + m_bEnabled /**< Is this accel enabled? */; + int m_nIDAccel /**< Id of this accel, from the list of IDs */; + uint m_nConnections /**< Number of connections to this accel. */ ; + + /** @internal Increment the number of connections to this accel. */ + void incConnections(); + /** @internal Decrement the number of connections to this accel (bouded by zero). */ + void decConnections(); + + private: + static int g_bUseFourModifierKeys; + class KAccelActionPrivate* d; + + friend class KAccelActions; + friend class KAccelBase; +}; + +//--------------------------------------------------------------------- +// KAccelActions +//--------------------------------------------------------------------- + +/** + * @internal + * This class represents a collection of KAccelAction objects. + * + * @short A collection of accelerator actions + * @see KAccelAction + */ +class KDECORE_EXPORT KAccelActions +{ + public: + /** + * Creates a new, empty KAccelActions object. + */ + KAccelActions(); + + /** + * Copy constructor (deep copy). + */ + KAccelActions( const KAccelActions& ); + virtual ~KAccelActions(); + + /** + * Removes all items from this collection. + */ + void clear(); + + /** + * Initializes this object with the given actions. + * It will make a deep copy of all actions. + * @param actions the actions to copy + * @return true if successful, false otherwise + */ + bool init( const KAccelActions &actions ); + + /** + * Loads the actions from the given configuration file. + * + * @param config the configuration file to load from + * @param sGroup the group in the configuration file + * @return true if successful, false otherwise + */ + bool init( KConfigBase& config, const QString& sGroup ); + + /** + * Updates the shortcuts of all actions in this object + * with the shortcuts from the given object. + * @param shortcuts the collection that contains the new + * shortcuts + */ + void updateShortcuts( KAccelActions &shortcuts ); + + /** + * Retrieves the index of the action with the given name. + * @param sAction the action to search + * @return the index of the action, or -1 if not found + */ + int actionIndex( const QString& sAction ) const; + + /** + * Returns the action with the given @p index. + * @param index the index of an action. You must not + * use an index that is too high. + * @return the KAccelAction with the given index + * @see count() + */ + KAccelAction* actionPtr( uint index ); + + /** + * Returns the action with the given @p index. + * @param index the index of an action. You must not + * use an index that is too high. + * @return the KAccelAction with the given index + * @see count() + */ + const KAccelAction* actionPtr( uint index ) const; + + /** + * Returns the action with the given name. + * @param sAction the name of the action to search + * @return the KAccelAction with the given name, or 0 + * if not found + */ + KAccelAction* actionPtr( const QString& sAction ); + + /** + * Returns the action with the given name. + * @param sAction the name of the action to search + * @return the KAccelAction with the given name, or 0 + * if not found + */ + const KAccelAction* actionPtr( const QString& sAction ) const; + + /** + * Returns the action with the given key sequence. + * @param cut the sequence to search for + * @return the KAccelAction with the given sequence, or 0 + * if not found + */ + KAccelAction* actionPtr( KKeySequence cut ); + + /** + * Returns the action with the given @p index. + * @param index the index of an action. You must not + * use an index that is too high. + * @return the KAccelAction with the given index + * @see actionPtr() + * @see count() + */ + KAccelAction& operator []( uint index ); + + /** + * Returns the action with the given @p index. + * @param index the index of an action. You must not + * use an index that is too high. + * @return the KAccelAction with the given index + * @see actionPtr() + * @see count() + */ + const KAccelAction& operator []( uint index ) const; + + /** + * Inserts an action into the collection. + * @param sAction the name of the accelerator + * @param sLabel the label of the accelerator (i18n!) + * @param sWhatsThis the What's This text (18n!) + * @param rgCutDefaults3 the default shortcut for 3 modifier systems + * @param rgCutDefaults4 the default shortcut for 4 modifier systems + * @param pObjSlot the receiver of a signal when the key has been + * pressed + * @param psMethodSlot the slot to connect for key presses. Receives + * an int, as set by setID(), as only argument + * @param bConfigurable if true the user can configure the shortcut + * @param bEnabled if true the accelerator should be enabled + * @return the new action + */ + KAccelAction* insert( const QString& sAction, const QString& sLabel, const QString& sWhatsThis, + const KShortcut& rgCutDefaults3, const KShortcut& rgCutDefaults4, + const QObject* pObjSlot = 0, const char* psMethodSlot = 0, + bool bConfigurable = true, bool bEnabled = true ); + + /** + * Inserts an action into the collection. + * @param sName the name of the accelerator + * @param sLabel the label of the accelerator (i18n!) + * @return the new action + */ + KAccelAction* insert( const QString& sName, const QString& sLabel ); + + /** + * Removes the given action. + * @param sAction the name of the action. + * @return true if successful, false otherwise + */ + bool remove( const QString& sAction ); + + /** + * Loads the actions from the given configuration file. + * + * @param sConfigGroup the group in the configuration file + * @param pConfig the configuration file to load from + * @return true if successful, false otherwise + */ + bool readActions( const QString& sConfigGroup = "Shortcuts", KConfigBase* pConfig = 0 ); + + /** + * Writes the actions to the given configuration file. + * + * @param sConfigGroup the group in the configuration file + * @param pConfig the configuration file to save to + * @param bWriteAll true to write all actions + * @param bGlobal true to write to the global configuration file + * @return true if successful, false otherwise + */ + bool writeActions( const QString& sConfigGroup = "Shortcuts", KConfigBase* pConfig = 0, + bool bWriteAll = false, bool bGlobal = false ) const; + + /** + * Emit a keycodeChanged signal. + */ + void emitKeycodeChanged(); + + /** + * Returns the number of actions in the collection. + * @return the number of actions + */ + uint count() const; + + protected: + /** Base object that proxies signals from us. */ + KAccelBase* m_pKAccelBase; + /** Array of actions we're hanging on to. */ + KAccelAction** m_prgActions; + uint m_nSizeAllocated /**< Allocated size of the array. */, + m_nSize /**< Amount in use. */ ; + + /** + * Resize the list to the given number @p new_size of entries. + * @todo Can you make it smaller? + * @todo Implementation seems to break m_nSize. + */ + void resize( uint new_size ); + /** Add a action to this collection. @todo Document ownership. */ + void insertPtr( KAccelAction* ); + + private: + class KAccelActionsPrivate* d; + + KAccelActions( KAccelBase* ); + void initPrivate( KAccelBase* ); + KAccelActions& operator =( KAccelActions& ); + + friend class KAccelBase; +}; + +#endif // _KACCELACTION_H diff --git a/extra/kde353/kaccelbase.h b/extra/kde353/kaccelbase.h new file mode 100644 index 0000000..0becbe0 --- /dev/null +++ b/extra/kde353/kaccelbase.h @@ -0,0 +1,260 @@ +/* This file is part of the KDE libraries + Copyright (C) 2001 Ellis Whitehead + + This library 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. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef _KACCELBASE_H +#define _KACCELBASE_H + +#include +#include +#include +#include +#include + +#include "kaccelaction.h" +#include "kkeyserver.h" + +class QPopupMenu; +class QWidget; + +//---------------------------------------------------- + +/** + * @internal + * Handle keyboard accelerators. + * + * Allow an user to configure + * key bindings through application configuration files or through the + * KKeyChooser GUI. + * + * A KAccel contains a list of accelerator items. Each accelerator item + * consists of an action name and a keyboard code combined with modifiers + * (Shift, Ctrl and Alt.) + * + * For example, "Ctrl+P" could be a shortcut for printing a document. The key + * codes are listed in ckey.h. "Print" could be the action name for printing. + * The action name identifies the key binding in configuration files and the + * KKeyChooser GUI. + * + * When pressed, an accelerator key calls the slot to which it has been + * connected. Accelerator items can be connected so that a key will activate + * two different slots. + * + * A KAccel object handles key events sent to its parent widget and to all + * children of this parent widget. + * + * Key binding reconfiguration during run time can be prevented by specifying + * that an accelerator item is not configurable when it is inserted. A special + * group of non-configurable key bindings are known as the + * standard accelerators. + * + * The standard accelerators appear repeatedly in applications for + * standard document actions such as printing and saving. Convenience methods are + * available to insert and connect these accelerators which are configurable on + * a desktop-wide basis. + * + * It is possible for a user to choose to have no key associated with + * an action. + * + * The translated first argument for insertItem() is used only + * in the configuration dialog. + *\code + * KAccel *a = new KAccel( myWindow ); + * // Insert an action "Scroll Up" which is associated with the "Up" key: + * a->insertItem( i18n("Scroll Up"), "Scroll Up", "Up" ); + * // Insert an action "Scroll Down" which is not associated with any key: + * a->insertItem( i18n("Scroll Down"), "Scroll Down", 0); + * a->connectItem( "Scroll up", myWindow, SLOT( scrollUp() ) ); + * // a->insertStdItem( KStdAccel::Print ); //not necessary, since it + * // is done automatially with the + * // connect below! + * a->connectItem(KStdAccel::Print, myWindow, SLOT( printDoc() ) ); + * + * a->readSettings(); + *\endcode + * + * If a shortcut has a menu entry as well, you could insert them like + * this. The example is again the KStdAccel::Print from above. + * + * \code + * int id; + * id = popup->insertItem("&Print",this, SLOT(printDoc())); + * a->changeMenuAccel(popup, id, KStdAccel::Print ); + * \endcode + * + * If you want a somewhat "exotic" name for your standard print action, like + * id = popup->insertItem(i18n("Print &Document"),this, SLOT(printDoc())); + * it might be a good idea to insert the standard action before as + * a->insertStdItem( KStdAccel::Print, i18n("Print Document") ) + * as well, so that the user can easily find the corresponding function. + * + * This technique works for other actions as well. Your "scroll up" function + * in a menu could be done with + * + * \code + * id = popup->insertItem(i18n"Scroll &up",this, SLOT(scrollUp())); + * a->changeMenuAccel(popup, id, "Scroll Up" ); + * \endcode + * + * Please keep the order right: First insert all functions in the + * acceleratior, then call a -> readSettings() and @em then build your + * menu structure. + * + * @short Configurable key binding support. + */ + +class KDECORE_EXPORT KAccelBase +{ + public: + /** Initialization mode of the KAccelBase, used in constructor. */ + enum Init { QT_KEYS = 0x00, NATIVE_KEYS = 0x01 }; + + /** Enum for kinds of signals which may be emitted. */ + enum Signal { KEYCODE_CHANGED }; + + /** Constructor. @p fInitCode should be a bitwise OR of + * values from the Init enum. + */ + KAccelBase( int fInitCode ); + virtual ~KAccelBase(); + + /** Returns number of actions in this handler. */ + uint actionCount() const; + /** Returns a list of all the actions in this handler. */ + KAccelActions& actions(); + /** Returns whether this accelerator handler is enabled or not. */ + bool isEnabled() const; + + /** Returns a pointer to the KAccelAction named @p sAction. */ + KAccelAction* actionPtr( const QString& sAction ); + /** Const version of the above. */ + const KAccelAction* actionPtr( const QString& sAction ) const; + /** Returns a pointer to the KAccelAction associated with + * the key @p key. This function takes into account the + * key mapping defined in the constructor. + * + * May return 0 if no (or more than one) + * action is associated with the key. + */ + KAccelAction* actionPtr( const KKey& key ); + /** Basically the same as above, except a KKeyServer::Key + * already has a key mapping defined (either NATIVE_KEYS or not). + */ + KAccelAction* actionPtr( const KKeyServer::Key& key ); + + /** Returns the name of the configuration group these + * accelerators are stored in. The default is "Shortcuts". + */ + const QString& configGroup() const { return m_sConfigGroup; } + /** Set the group (in the configuration file) for storing + * accelerators. + */ + void setConfigGroup( const QString& group ); + void setConfigGlobal( bool global ); + virtual void setEnabled( bool bEnabled ) = 0; + /** Returns whether autoupdate is enabled for these accelerators. */ + bool getAutoUpdate() { return m_bAutoUpdate; } + /** Enables (or disables) autoupdate for these accelerators. + * @return the value of autoupdate before the call. + */ + bool setAutoUpdate( bool bAuto ); + +// Procedures for manipulating Actions. + //void clearActions(); + + KAccelAction* insert( const QString& sName, const QString& sDesc ); + KAccelAction* insert( + const QString& sAction, const QString& sDesc, const QString& sHelp, + const KShortcut& rgCutDefaults3, const KShortcut& rgCutDefaults4, + const QObject* pObjSlot, const char* psMethodSlot, + bool bConfigurable = true, bool bEnabled = true ); + bool remove( const QString& sAction ); + bool setActionSlot( const QString& sAction, const QObject* pObjSlot, const char* psMethodSlot ); + + bool updateConnections(); + + bool setShortcut( const QString& sAction, const KShortcut& cut ); + +// Modify individual Action sub-items + bool setActionEnabled( const QString& sAction, bool bEnable ); + + /** + * Read all key associations from @p config, or (if @p config + * is zero) from the application's configuration file + * KGlobal::config(). + * + * The group in which the configuration is stored can be + * set with setConfigGroup(). + */ + void readSettings( KConfigBase* pConfig = 0 ); + + /** + * Write the current configurable associations to @p config, + * or (if @p config is zero) to the application's + * configuration file. + */ + void writeSettings( KConfigBase* pConfig = 0 ) const; + + QPopupMenu* createPopupMenu( QWidget* pParent, const KKeySequence& ); + + // Protected methods + protected: + void slotRemoveAction( KAccelAction* ); + + struct X; + void createKeyList( QValueVector& rgKeys ); + bool insertConnection( KAccelAction* ); + bool removeConnection( KAccelAction* ); + + virtual bool emitSignal( Signal ) = 0; + virtual bool connectKey( KAccelAction&, const KKeyServer::Key& ) = 0; + virtual bool connectKey( const KKeyServer::Key& ) = 0; + virtual bool disconnectKey( KAccelAction&, const KKeyServer::Key& ) = 0; + virtual bool disconnectKey( const KKeyServer::Key& ) = 0; + + protected: + virtual bool isEnabledInternal() const; + struct ActionInfo + { + KAccelAction* pAction; + uint iSeq, iVariation; + //ActionInfo* pInfoNext; // nil if only one action uses this key. + + ActionInfo() { pAction = 0; iSeq = 0xffff; iVariation = 0xffff; } + ActionInfo( KAccelAction* _pAction, uint _iSeq, uint _iVariation ) + { pAction = _pAction; iSeq = _iSeq; iVariation = _iVariation; } + }; + typedef QMap KKeyToActionMap; + + KAccelActions m_rgActions; + KKeyToActionMap m_mapKeyToAction; + QValueList m_rgActionsNonUnique; + bool m_bNativeKeys; // Use native key codes instead of Qt codes + bool m_bEnabled; + bool m_bConfigIsGlobal; + QString m_sConfigGroup; + bool m_bAutoUpdate; + KAccelAction* mtemp_pActionRemoving; + + private: + KAccelBase& operator =( const KAccelBase& ); + + friend class KAccelActions; +}; + +#endif // _KACCELBASE_H diff --git a/extra/kde353/kicontheme.h b/extra/kde353/kicontheme.h new file mode 100644 index 0000000..b776444 --- /dev/null +++ b/extra/kde353/kicontheme.h @@ -0,0 +1,355 @@ +/* vi: ts=8 sts=4 sw=4 + * + * This file is part of the KDE project, module kdecore. + * Copyright (C) 2000 Geert Jansen + * Antonio Larrosa + * + * This is free software; it comes under the GNU Library General + * Public License, version 2. See the file "COPYING.LIB" for the + * exact licensing terms. + * + */ + +#ifndef __KIconTheme_h_Included__ +#define __KIconTheme_h_Included__ + +#include +#include +#include +#include "kdelibs_export.h" + +class KConfig; +//class KIconThemeDir; + +class KIconThemePrivate; + +class KIconPrivate; + +/** + * One icon as found by KIconTheme. Also serves as a namespace containing + * icon related constants. + * @see KIconEffect + * @see KIconTheme + * @see KIconLoader + */ +class KDECORE_EXPORT KIcon +{ +public: + KIcon() { size = 0; } + + /** + * Return true if this icon is valid, false otherwise. + */ + bool isValid() const { return size != 0; } + + /** + * Defines the context of the icon. + */ + enum Context { + Any, ///< Some icon with unknown purpose. + Action, ///< An action icon (e.g. 'save', 'print'). + Application, ///< An icon that represents an application. + Device, ///< An icon that represents a device. + FileSystem, ///< An icon that represents a file system. + MimeType ///< An icon that represents a mime type (or file type). + }; + + /** + * The type of the icon. + */ + enum Type { + Fixed, ///< Fixed-size icon. + Scalable, ///< Scalable-size icon. + Threshold ///< A threshold icon. + }; + + /** + * The type of a match. + */ + enum MatchType { + MatchExact, ///< Only try to find an exact match. + MatchBest ///< Take the best match if there is no exact match. + + }; + + // if you add a group here, make sure to change the config reading in + // KIconLoader too + /** + * The group of the icon. + */ + enum Group { + /// No group + NoGroup=-1, + /// Desktop icons + Desktop=0, + /// First group + FirstGroup=0, + /// Toolbar icons + Toolbar, + /// Main toolbar icons + MainToolbar, + /// Small icons + Small, + /// Panel (Kicker) icons + Panel, + /// Last group + LastGroup, + /// User icons + User + }; + + /** + * These are the standard sizes for icons. + */ + enum StdSizes { + /// small icons for menu entries + SizeSmall=16, + /// slightly larger small icons for toolbars, panels, etc + SizeSmallMedium=22, + /// medium sized icons for the desktop + SizeMedium=32, + /// large sized icons for the panel + SizeLarge=48, + /// huge sized icons for iconviews + SizeHuge=64, + /// enormous sized icons for iconviews + SizeEnormous=128 + }; + + /** + * Defines the possible states of an icon. + */ + enum States { DefaultState, ///< The default state. + ActiveState, ///< Icon is active. + DisabledState, ///< Icon is disabled. + LastState ///< Last state (last constant) + }; + + /** + * This defines an overlay, a semi-transparent image that is + * projected onto the icon. They are used to show that the file + * represented by the icon is, for example, locked, zipped or hidden. + */ + enum Overlays { + LockOverlay=0x100, ///< a file is locked + ZipOverlay=0x200, ///< a file is zipped + LinkOverlay=0x400, ///< a file is a link + HiddenOverlay=0x800, ///< a file is hidden + ShareOverlay=0x1000, ///< a file is shared + OverlayMask = ~0xff + }; + + /** + * The size in pixels of the icon. + */ + int size; + + /** + * The context of the icon. + */ + Context context; + + /** + * The type of the icon: Fixed, Scalable or Threshold. + **/ + Type type; + + /** + * The threshold in case type == Threshold + */ + int threshold; + + /** + * The full path of the icon. + */ + QString path; + +private: + KIconPrivate *d; +}; + +inline KIcon::Group& operator++(KIcon::Group& group) { group = static_cast(group+1); return group; } +inline KIcon::Group operator++(KIcon::Group& group,int) { KIcon::Group ret = group; ++group; return ret; } + +/** + * Class to use/access icon themes in KDE. This class is used by the + * iconloader but can be used by others too. + * @see KIconLoader + */ +class KDECORE_EXPORT KIconTheme +{ +public: + /** + * Load an icon theme by name. + * @param name the name of the theme (e.g. "hicolor" or "keramik") + * @param appName the name of the application. Can be null. This argument + * allows applications to have themed application icons. + */ + KIconTheme(const QString& name, const QString& appName=QString::null); + ~KIconTheme(); + + /** + * The stylized name of the icon theme. + * @return the (human-readable) name of the theme + */ + QString name() const { return mName; } + + /** + * A description for the icon theme. + * @return a human-readable description of the theme, QString::null + * if there is none + */ + QString description() const { return mDesc; } + + /** + * Return the name of the "example" icon. This can be used to + * present the theme to the user. + * @return the name of the example icon, QString::null if there is none + */ + QString example() const; + + /** + * Return the name of the screenshot. + * @return the name of the screenshot, QString::null if there is none + */ + QString screenshot() const; + + /** + * Returns the name of this theme's link overlay. + * @return the name of the link overlay + */ + QString linkOverlay() const; + + /** + * Returns the name of this theme's zip overlay. + * @return the name of the zip overlay + */ + QString zipOverlay() const; + + /** + * Returns the name of this theme's lock overlay. + * @return the name of the lock overlay + */ + QString lockOverlay() const; + + /** + * Returns the name of this theme's share overlay. + * @return the name of the share overlay + * @since 3.1 + */ + QString shareOverlay () const; + + /** + * Returns the toplevel theme directory. + * @return the directory of the theme + */ + QString dir() const { return mDir; } + + /** + * The themes this icon theme falls back on. + * @return a list of icon themes that are used as fall-backs + */ + QStringList inherits() const { return mInherits; } + + /** + * The icon theme exists? + * @return true if the icon theme is valid + */ + bool isValid() const; + + /** + * The icon theme should be hidden to the user? + * @return true if the icon theme is hidden + * @since 3.1 + */ + bool isHidden() const; + + /** + * The minimum display depth required for this theme. This can either + * be 8 or 32. + * @return the minimum bpp (8 or 32) + */ + int depth() const { return mDepth; } + + /** + * The default size of this theme for a certain icon group. + * @param group The icon group. See KIcon::Group. + * @return The default size in pixels for the given icon group. + */ + int defaultSize(KIcon::Group group) const; + + /** + * Query available sizes for a group. + * @param group The icon group. See KIcon::Group. + * @return a list of available sized for the given group + */ + QValueList querySizes(KIcon::Group group) const; + + /** + * Query available icons for a size and context. + * @param size the size of the icons + * @param context the context of the icons + * @return the list of icon names + */ + QStringList queryIcons(int size, KIcon::Context context = KIcon::Any) const; + + /** + * Query available icons for a context and preferred size. + * @param size the size of the icons + * @param context the context of the icons + * @return the list of icon names + */ + QStringList queryIconsByContext(int size, KIcon::Context context = KIcon::Any) const; + + + /** + * Lookup an icon in the theme. + * @param name The name of the icon, without extension. + * @param size The desired size of the icon. + * @param match The matching mode. KIcon::MatchExact returns an icon + * only if matches exactly. KIcon::MatchBest returns the best matching + * icon. + * @return A KIcon class that describes the icon. If an icon is found, + * @see KIcon::isValid will return true, and false otherwise. + */ + KIcon iconPath(const QString& name, int size, KIcon::MatchType match) const; + + /** + * List all icon themes installed on the system, global and local. + * @return the list of all icon themes + */ + static QStringList list(); + + /** + * Returns the current icon theme. + * @return the name of the current theme + */ + static QString current(); + + /** + * Reconfigure the theme. + */ + static void reconfigure(); + + /** + * Returns the default icon theme. + * @return the name of the default theme name + * @since 3.1 + */ + static QString defaultThemeName(); + +private: + int mDefSize[8]; + QValueList mSizes[8]; + + int mDepth; + QString mDir, mName, mDesc; + QStringList mInherits; +// QPtrList mDirs; + KIconThemePrivate *d; + + static QString *_theme; + static QStringList *_theme_list; +}; + +#endif diff --git a/extra/kde353/kkeyserver.h b/extra/kde353/kkeyserver.h new file mode 100644 index 0000000..ef673ea --- /dev/null +++ b/extra/kde353/kkeyserver.h @@ -0,0 +1,29 @@ +/* + Copyright (C) 2001 Ellis Whitehead + + Win32 port: + Copyright (C) 2004 Jaroslaw Staniek + + This library 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. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef _KKEYSERVER_H +#define _KKEYSERVER_H + +//FOR COMPATIBILITY +#include "kkeyserver_x11.h" + +#endif // !_KKEYSERVER_H diff --git a/extra/kde353/kkeyserver_x11.h b/extra/kde353/kkeyserver_x11.h new file mode 100644 index 0000000..73c800d --- /dev/null +++ b/extra/kde353/kkeyserver_x11.h @@ -0,0 +1,477 @@ +/* + Copyright (C) 2001 Ellis Whitehead + + Win32 port: + Copyright (C) 2004 Jaroslaw Staniek + + This library 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. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef _KKEYSERVER_X11_H +#define _KKEYSERVER_X11_H + +#include "kshortcut.h" +#include "kkeynative.h" + +/** + * A collection of functions for the conversion of key presses and + * their modifiers from the window system specific format + * to the generic format and vice-versa. + */ +namespace KKeyServer +{ + /** + * Supplement enum KKey::ModFlag + * @since 3.1 + */ + enum ExtraModFlag { MODE_SWITCH = 0x2000 }; + + /** + * Represents a key symbol. + * @see KKey + * @see KKeyServer + */ + struct KDECORE_EXPORT Sym + { + public: + /// the actual value of the symbol + uint m_sym; + + /// Creates a null symbol. + Sym() + { m_sym = 0; } + /** + * Creates asymbol with the given value. + * @param sym the value + */ + Sym( uint sym ) + { m_sym = sym; } + /** + * Creates a symbol from the given string description. + * @param s the description of the symbol + * @see toString() + */ + Sym( const QString& s ) + { init( s ); } + + /** + * Initializes the symbol with the given Qt key code. + * @param keyQt the qt key code + * @return true if successful, false otherwise + * @see Qt::Key + */ + bool initQt( int keyQt ); + + /** + * Initializes the key with the given string description. + * @param s the string description + * @return true if successful, false otherwise + * @see toString() + */ + bool init( const QString &s ); + + /** + * Returns the qt key code of the symbol. + * @return the qt key code + */ + int qt() const; + + /** + * @internal + */ + QString toStringInternal() const; + + /** + * Returns the string representation of the symbol. + * @return the string representation of the symbol + */ + QString toString() const; + + /** + * Returns the mods that are required for this symbol as + * ORed KKey::ModFlag's. For example, Break requires a + * Ctrl to be valid. + * @return the required KKey::ModFlag's + * @see KKey::ModFlag + */ + uint getModsRequired() const; + + /** + * TODO: please find out what this method does and document it + */ + uint getSymVariation() const; + + /** + * Casts the symbol to its integer representation. + */ + operator uint() const { return m_sym; } + + /** + * Overloaded operator to convert ints to Sym. + */ + Sym& operator =( uint sym ) { m_sym = sym; return *this; } + + private: + QString toString( bool bUserSpace ) const; + + static void capitalizeKeyname( QString& ); + }; + + /** + * Represents a key press. + * @see KKey + */ + struct KDECORE_EXPORT Key + { + /// Code for native Keys in Qt + enum { CODE_FOR_QT = 256 }; + + /// The code of the key + uint m_code; + + /// The modifiers of the key + uint m_mod; + + /// The symbol of the key + uint m_sym; + + /** + * Initializes the key with a KKey. + * @param key the key to get the data from + * @param bQt true to take the Qt keycode, false + * for the native key code + * @see Qt::Key + * @see KKeyNative + */ + bool init( const KKey& key, bool bQt ); + + /** + * Checks whether the key code is a native code. + * @return true if native code of the window system, + * false if it is a Qt keycode + * @see Qt::Key + * @see KKeyNative + */ + bool isNative() const { return m_code != CODE_FOR_QT; } + + /** + * Returns the code of the key. + * @return the code of the key + */ + uint code() const { return m_code; } + + /** + * Returns the modifiers of the key. + * @return the modifiers of the key + */ + uint mod() const { return m_mod; } + + /** + * Returns the symbol of the key. + * @return the symbol of the key + */ + uint sym() const { return m_sym; } + + /** + * Returns the qt key code. + * @return the qt key code + */ + int keyCodeQt() const { return (int) m_sym; } + + /** + * Sets the qt key code. + * @param keyQt the qt key code + */ + void setKeycodeQt( int keyQt ) + { m_code = CODE_FOR_QT; m_sym = keyQt; } + + /** + * Initializes this key with a KKeyNative. + * @return this key + */ + Key& operator =( const KKeyNative& key ); + + /** + * Compares this key with the given Key object. Returns a + * negative number if the given Key is larger, 0 if they + * are equal and a positive number this Key is larger. The + * returned value is the difference between the symbol, modifier + * or code, whatever is non-zero first. + * + * @param key the key to compare with this key + * @return a negative number if the given Key is larger, 0 if + * they are equal and a positive number this Key is larger + */ + int compare( const Key& key ) const; + + /** + * Compares the symbol, modifiers and code of both keys. + * @see compare() + */ + bool operator ==( const Key& b ) const + { return compare( b ) == 0; } + + /** + * Compares the symbol, modifiers and code of both keys. + * @see compare() + */ + bool operator <( const Key& b ) const + { return compare( b ) < 0; } + + /** + * Converts this Key to a KKey. + * @return the KKey + */ + KKey key() const; + }; + + /** + * TODO: please document this class + */ + struct KDECORE_EXPORT Variations + { + enum { MAX_VARIATIONS = 4 }; + + Key m_rgkey[MAX_VARIATIONS]; + uint m_nVariations; + + Variations() { m_nVariations = 0; } + + void init( const KKey&, bool bQt ); + + uint count() const { return m_nVariations; } + const Key& key( uint i ) const { return m_rgkey[i]; } + }; + + /// TODO: please document + KDECORE_EXPORT bool initializeMods(); + + /** + * Returns the equivalent X modifier mask of the given modifier flag. + * @param modFlag the generic flags to check + * @return the window system specific flags + */ + KDECORE_EXPORT uint modX( KKey::ModFlag modFlag ); + + /** + * Returns true if the current keyboard layout supports the Win key. + * Specifically, whether the Super or Meta keys are assigned to an X modifier. + * @return true if the keyboard has a Win key + * @see modXWin() + */ + KDECORE_EXPORT bool keyboardHasWinKey(); + + /** + * Returns the X11 Shift modifier mask/flag. + * @return the X11 Shift modifier mask/flag. + * @see accelModMaskX() + */ + KDECORE_EXPORT uint modXShift(); + + /** + * Returns the X11 Lock modifier mask/flag. + * @return the X11 Lock modifier mask/flag. + * @see accelModMaskX() + */ + KDECORE_EXPORT uint modXLock(); + + /** + * Returns the X11 Ctrl modifier mask/flag. + * @return the X11 Ctrl modifier mask/flag. + * @see accelModMaskX() + */ + KDECORE_EXPORT uint modXCtrl(); + + /** + * Returns the X11 Alt (Mod1) modifier mask/flag. + * @return the X11 Alt (Mod1) modifier mask/flag. + * @see accelModMaskX() + */ + KDECORE_EXPORT uint modXAlt(); + + /** + * Returns the X11 NumLock modifier mask/flag. + * @return the X11 NumLock modifier mask/flag. + * @see accelModMaskX() + */ + KDECORE_EXPORT uint modXNumLock(); + + /** + * Returns the X11 Win (Mod3) modifier mask/flag. + * @return the X11 Win (Mod3) modifier mask/flag. + * @see keyboardHasWinKey() + * @see accelModMaskX() + */ + KDECORE_EXPORT uint modXWin(); + + /** + * Returns the X11 ScrollLock modifier mask/flag. + * @return the X11 ScrollLock modifier mask/flag. + * @see accelModMaskX() + */ + KDECORE_EXPORT uint modXScrollLock(); + + /** + * Returns the X11 Mode_switch modifier mask/flag. + * @return the X11 Mode_switch modifier mask/flag. + * @see accelModMaskX() + * @since 3.5 + */ + KDECORE_EXPORT uint modXModeSwitch(); + + /** + * Returns bitwise OR'ed mask containing Shift, Ctrl, Alt, and + * Win (if available). + * @see modXShift() + * @see modXLock() + * @see modXCtrl() + * @see modXAlt() + * @see modXNumLock() + * @see modXWin() + * @see modXScrollLock() + */ + KDECORE_EXPORT uint accelModMaskX(); + + /** + * Extracts the symbol from the given Qt key and + * converts it to a symbol. + * @param keyQt the qt key code + * @param sym if successful, the symbol will be written here + * @return true if successful, false otherwise + * @see Qt::Key + * @see Sym + */ + KDECORE_EXPORT bool keyQtToSym( int keyQt, uint& sym ); + + /** + * Extracts the modifiers from the given Qt key and + * converts them in a mask of ORed KKey::ModFlag modifiers. + * @param keyQt the qt key code + * @param mod if successful, the modifiers will be written here + * @return true if successful, false otherwise + * @see Qt::Key + */ + KDECORE_EXPORT bool keyQtToMod( int keyQt, uint& mod ); + + /** + * Converts the given symbol to a Qt key code. + * @param sym the symbol + * @param keyQt if successful, the qt key code will be written here + * @return true if successful, false otherwise + * @see Qt::Key + * @see Sym + */ + KDECORE_EXPORT bool symToKeyQt( uint sym, int& keyQt ); + + /** + * Converts the mask of ORed KKey::ModFlag modifiers to + * a mask of ORed Qt key code modifiers. + * @param mod the mask of KKey::ModFlag modifiers + * @param modQt the mask of Qt key code modifiers will be written here, + * if successful + * @return true if successful, false otherwise + * @see Qt::Key + * @see KKey + */ + KDECORE_EXPORT bool modToModQt( uint mod, int& modQt ); + + /** + * Converts the mask of ORed KKey::ModFlag modifiers to + * a mask of ORed X11 modifiers. + * @param mod the mask of KKey::ModFlag modifiers + * @param modX the mask of X11 modifiers will be written here, + * if successful + * @return true if successful, false otherwise + * @see KKey + */ + KDECORE_EXPORT bool modToModX( uint mod, uint& modX ); + + /** + * Converts the mask of ORed X11 modifiers to + * a mask of ORed Qt key code modifiers. + * @param modX the mask of X11 modifiers + * @param modQt the mask of Qt key code modifiers will be written here + * if successful + * @return true if successful, false otherwise + * @see Qt::Key + */ + //wrapped for win32 + KDECORE_EXPORT bool modXToModQt( uint modX, int& modQt ); + + /** + * Converts the Qt-compatible button state to x11 modifier. + */ + KDECORE_EXPORT int qtButtonStateToMod( Qt::ButtonState s ); + + /** + * Converts the mask of ORed X11 modifiers to + * a mask of ORed KKey::ModFlag modifiers. + * @param modX the mask of X11 modifiers + * @param mod the mask of KKey::ModFlag modifiers will be written here, + * if successful + * @return true if successful, false otherwise + * @see KKey + */ + KDECORE_EXPORT bool modXToMod( uint modX, uint& mod ); + + /** + * Converts a X11 key code and a mask of ORed X11 modifiers + * into a X11 symbol. + * converts it to a symbol. + * @param codeX the X11 key code + * @param modX the mask of ORed X11 modifiers + * @param symX if successful, the X11 symbol will be written here + * @return true if successful, false otherwise + * @see Qt::Key + * @see Sym + */ + KDECORE_EXPORT bool codeXToSym( uchar codeX, uint modX, uint& symX ); + + /** + * @internal + */ + KDECORE_EXPORT QString modToStringInternal( uint mod ); + + /** + * Converts the mask of ORed KKey::ModFlag modifiers to a + * user-readable string. + * @param mod the mask of ORed KKey::ModFlag modifiers + * @return the user-readable string + */ + KDECORE_EXPORT QString modToStringUser( uint mod ); + + /** + * Converts the modifier given as user-readable string + * to KKey::ModFlag modifier, or 0. + * @internal + * @since 3.5 + */ + KDECORE_EXPORT uint stringUserToMod( const QString& mod ); + + /** + * @internal + * Unimplemented? + */ + KDECORE_EXPORT bool stringToSymMod( const QString&, uint& sym, uint& mod ); + + /** + * @internal + * Unimplemented? + */ + KDECORE_EXPORT void keyQtToKeyX( uint keyCombQt, unsigned char *pKeyCodeX, uint *pKeySymX, uint *pKeyModX ); +} + +#endif // !_KKEYSERVER_X11_H diff --git a/extra/kde353/konsole_part.h b/extra/kde353/konsole_part.h new file mode 100644 index 0000000..16028ea --- /dev/null +++ b/extra/kde353/konsole_part.h @@ -0,0 +1,241 @@ +/* -*- C++ -*- + This file is part of the KDE system + Copyright (C) 1999,2000 Boloni Laszlo + + 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. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. + */ + +#ifndef KONSOLE_PART_H +#define KONSOLE_PART_H + +#include +#include + + +#include + +#include + +//#include "schema.h" +//#include "session.h" + +class KInstance; +class konsoleBrowserExtension; +class QPushButton; +class QSpinBox; +class KPopupMenu; +class KActionMenu; +class QCheckBox; +class KRootPixmap; +class KToggleAction; +class KSelectAction; + +namespace KParts { class GUIActivateEvent; } + +class konsoleFactory : public KParts::Factory +{ + Q_OBJECT +public: + konsoleFactory(); + virtual ~konsoleFactory(); + + virtual KParts::Part* createPartObject(QWidget *parentWidget = 0, const char *widgetName = 0, + QObject* parent = 0, const char* name = 0, + const char* classname = "KParts::Part", + const QStringList &args = QStringList()); + + static KInstance *instance(); + + private: + static KInstance *s_instance; + static KAboutData *s_aboutData; +}; + +////////////////////////////////////////////////////////////////////// + +class konsolePart: public KParts::ReadOnlyPart, public TerminalInterface, public ExtTerminalInterface +{ + Q_OBJECT + public: + konsolePart(QWidget *parentWidget, const char *widgetName, QObject * parent, const char *name, const char *classname = 0); + virtual ~konsolePart(); + +signals: + void processExited( KProcess * ); + void receivedData( const QString& s ); + void forkedChild(); + protected: + virtual bool openURL( const KURL & url ); + virtual bool openFile() {return false;} // never used + virtual bool closeURL() {return true;} + virtual void guiActivateEvent( KParts::GUIActivateEvent * event ); + + protected slots: + void showShell(); + +// void doneSession(TESession*); + void sessionDestroyed(); +// void configureRequest(TEWidget*,int,int x,int y); +// void updateTitle(TESession*); + void enableMasterModeConnections(); + + private slots: + void emitOpenURLRequest(const QString &url); + + void readProperties(); + void saveProperties(); + void applyProperties(); + void setSettingsMenuEnabled( bool ); + + void sendSignal(int n); + void closeCurrentSession(); + + void notifySize(int /*columns*/, int /*lines*/); + + void slotToggleFrame(); + void slotSelectScrollbar(); + void slotSelectFont(); + void schema_menu_check(); + void keytab_menu_activated(int item); + void updateSchemaMenu(); + void setSchema(int n); + void pixmap_menu_activated(int item); + void schema_menu_activated(int item); + void slotHistoryType(); + void slotSelectBell(); + void slotSelectLineSpacing(); + void slotBlinkingCursor(); + void slotUseKonsoleSettings(); + void slotWordSeps(); + void slotSetEncoding(); + void biggerFont(); + void smallerFont(); + + void autoShowShell(); + + private: + konsoleBrowserExtension *m_extension; + KURL currentURL; + + void makeGUI(); + void applySettingsToGUI(); + +// void setSchema(ColorSchema* s); + void updateKeytabMenu(); + + bool doOpenStream( const QString& ); + bool doWriteStream( const QByteArray& ); + bool doCloseStream(); + + QWidget* parentWidget; +// TEWidget* te; +// TESession* se; + // ColorSchemaList* colors; + KRootPixmap* rootxpm; + + KActionCollection* actions; + KActionCollection* settingsActions; + + KToggleAction* blinkingCursor; + KToggleAction* showFrame; + KToggleAction* m_useKonsoleSettings; + + KSelectAction* selectBell; + KSelectAction* selectLineSpacing; + KSelectAction* selectScrollbar; + KSelectAction* selectSetEncoding; + + KActionMenu* m_fontsizes; + + KPopupMenu* m_keytab; + KPopupMenu* m_schema; + KPopupMenu* m_signals; + KPopupMenu* m_options; + KPopupMenu* m_popupMenu; + + QFont defaultFont; + + QString pmPath; // pixmap path + QString s_schema; + QString s_kconfigSchema; + QString s_word_seps; // characters that are considered part of a word + + bool b_framevis:1; + bool b_histEnabled:1; + bool b_useKonsoleSettings:1; + bool b_autoDestroy:1; + bool b_autoStartShell:1; + + int curr_schema; // current schema no + int n_bell; + int n_keytab; + int n_render; + int n_scroll; + unsigned m_histSize; + bool m_runningShell; + bool m_streamEnabled; + int n_encoding; + +public: + // these are the implementations for the TermEmuInterface + // functions... + void startProgram( const QString& program, + const QStrList& args ); + void newSession(); + void showShellInDir( const QString& dir ); + void sendInput( const QString& text ); + void setAutoDestroy( bool ); + void setAutoStartShell( bool ); +}; + +////////////////////////////////////////////////////////////////////// + +/*class HistoryTypeDialog : public KDialogBase +{ + Q_OBJECT +public: + HistoryTypeDialog(const HistoryType& histType, + unsigned int histSize, + QWidget *parent); + +public slots: + void slotDefault(); + void slotSetUnlimited(); + void slotHistEnable(bool); + + unsigned int nbLines() const; + bool isOn() const; + +protected: + QCheckBox* m_btnEnable; + QSpinBox* m_size; + QPushButton* m_setUnlimited; +};*/ + +////////////////////////////////////////////////////////////////////// + +class konsoleBrowserExtension : public KParts::BrowserExtension +{ + Q_OBJECT + friend class konsolePart; + public: + konsoleBrowserExtension(konsolePart *parent); + virtual ~konsoleBrowserExtension(); + + void emitOpenURLRequest(const KURL &url); +}; + +#endif diff --git a/extra/kde353/kpanelmenu.h b/extra/kde353/kpanelmenu.h new file mode 100644 index 0000000..61ec7f1 --- /dev/null +++ b/extra/kde353/kpanelmenu.h @@ -0,0 +1,182 @@ +/***************************************************************** + +Copyright (c) 1996-2000 the kicker authors. See file AUTHORS. + (c) 2001 Michael Goffioul + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN +AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +******************************************************************/ + +#ifndef __KPANELMENU_H__ +#define __KPANELMENU_H__ + +#include +#include +#include + +class KPanelMenuPrivate; + +/** + * @short Base class to build dynamically loaded menu entries for the K-menu, or the panel. + * + * This class allows to build menu entries that will be dynamically added either to + * the K-menu, or to the panel as a normal button. These dynamic menus are located + * in shared libraries that will be loaded at runtime by Kicker (the %KDE panel). + * + * To build such a menu, you have to inherit this class and implement the pure virtual + * functions #initialize() and slotExec(). You also have to provide a factory + * object in your library, see KLibFactory. This factory is only used to construct + * the menu object. + * + * Finally, you also have to provide a desktop file describing your dynamic menu. The + * relevant entries are: Name, Comment, Icon and X-KDE-Library (which contains the + * library name without any extension). This desktop file has to be installed in + * $KDEDIR/share/apps/kicker/menuext/. + * + * @author The kicker maintainers, Michael Goffioul + */ +class KDEUI_EXPORT KPanelMenu : public KPopupMenu +{ + Q_OBJECT + +public: + /** + * Construct a KPanelMenu object. This is the normal constructor to use when + * building extrernal menu entries. + */ + KPanelMenu(QWidget *parent=0, const char *name=0); + /** + * Constructor used internally by Kicker. You don't really want to use it. + * @param startDir a directory to associate with this menu + * @param parent parent object + * @param name name of the object + * @see path(), setPath() + */ + KPanelMenu(const QString &startDir, QWidget *parent=0, const char *name=0); + /** + * Destructor. + */ + virtual ~KPanelMenu(); + + /** + * Get the directory path associated with this menu, or QString::null if + * there's no such associated path. + * @return the associated directory path + * @see setPath() + */ + const QString& path() const; + /** + * Set a directory path to be associated with this menu. + * @param p the directory path + * @see path() + */ + void setPath(const QString &p); + /** + * Tell if the menu has been initialized, that is it already contains items. + * This is useful when you need to know if you have to clear the menu, or to + * fill it. + * @return the initial state + * @see setInitialized(), initialize() + */ + bool initialized() const; + /** + * Set the initial state. Set it to true when you menu is filled with the items + * you want. + * @param on the initial state + * @see initialized(), initialize() + */ + void setInitialized(bool on); + + /** + * Disable the automatic clearing of the menu. Kicker uses a cache system for + * its menus. After a specific configurable delay, the menu will be cleared. + * Use this function if you want to disable kicker's cache system, and avoid + * the clearing of your menu. + */ + void disableAutoClear(); + +public slots: + /** + * Reinitialize the menu: the menu is first cleared, the initial state is set + * to false, and finally #initialize() is called. Use this if you want to + * refill your menu immediately. + */ + void reinitialize(); + /** + * Deinitialize the menu: the menu is cleared and the initialized state is set to + * false. #initialize() is NOT called. It will be called before the menu is + * next shown, however. Use this slot if you want a delayed reinitialization. + * @since 3.1 + */ + void deinitialize(); + +protected slots: + /** + * This slot is called just before the menu is shown. This allows your menu + * to update itself if needed. However you should instead re-implement + * #initialize to provide this feature. This function is responsible for + * the cache system handling, so if you re-implement it, you should call + * the base function also. Calls #initialize(). + * @see disableAutoClear() + */ + virtual void slotAboutToShow(); + /** + * This is slot is called when an item from the menu has been selected. Your + * applet is then supposed to perform some action. You must re-implement this + * function. + * @param id the ID associated with the selected item + */ + virtual void slotExec(int id) = 0; + /** + * This slots is called to initialize the menu. It is called automatically by + * slotAboutToShow(). By re-implementing this functions, you can reconstruct + * the menu before it is being shown. At the end of this function, you should + * call setInitialize() with true to tell the system that the menu is OK. + * You applet must re-implement this function. + * @see slotAboutToShow(), initialized(), setInitialized() + */ + virtual void initialize() = 0; + /** + * Clears the menu, and update the initial state accordingly. + * @see initialized() + */ + void slotClear(); + +protected: + /** + * Re-implemented for internal reasons. + */ + virtual void hideEvent(QHideEvent *ev); + /** + * For internal use only. Used by constructors. + */ + void init(const QString& path = QString::null); + +protected: + virtual void virtual_hook( int id, void* data ); +private: + void internalInitialize(); + KPanelMenuPrivate *d; +}; + +#define K_EXPORT_KICKER_MENUEXT( libname, classname ) \ + K_EXPORT_COMPONENT_FACTORY( \ + kickermenu_##libname, \ + KGenericFactory("libkickermenu_" #libname) ) + +#endif diff --git a/extra/kde353/ksharedptr.h b/extra/kde353/ksharedptr.h new file mode 100644 index 0000000..ada0841 --- /dev/null +++ b/extra/kde353/ksharedptr.h @@ -0,0 +1,175 @@ +/* This file is part of the KDE libraries + Copyright (c) 1999 Waldo Bastian + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License version 2 as published by the Free Software Foundation. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ +#ifndef KSharedPTR_H +#define KSharedPTR_H + +#include "kdelibs_export.h" + +/** + * Reference counting for shared objects. If you derive your object + * from this class, then you may use it in conjunction with + * KSharedPtr to control the lifetime of your object. + * + * Specifically, all classes that derive from KShared have an internal + * counter keeping track of how many other objects have a reference to + * their object. If used with KSharedPtr, then your object will + * not be deleted until all references to the object have been + * released. + * + * You should probably not ever use any of the methods in this class + * directly -- let the KSharedPtr take care of that. Just derive + * your class from KShared and forget about it. + * + * @author Waldo Bastian + */ +class KDECORE_EXPORT KShared { +public: + /** + * Standard constructor. This will initialize the reference count + * on this object to 0. + */ + KShared() : count(0) { } + + /** + * Copy constructor. This will @em not actually copy the objects + * but it will initialize the reference count on this object to 0. + */ + KShared( const KShared & ) : count(0) { } + + /** + * Overloaded assignment operator. + */ + KShared &operator=(const KShared & ) { return *this; } + + /** + * Increases the reference count by one. + */ + void _KShared_ref() const { count++; } + + /** + * Releases a reference (decreases the reference count by one). If + * the count goes to 0, this object will delete itself. + */ + void _KShared_unref() const { if (!--count) delete this; } + + /** + * Return the current number of references held. + * + * @return Number of references + */ + int _KShared_count() const { return count; } + +protected: + virtual ~KShared() { } +private: + mutable int count; +}; + +/** + * Can be used to control the lifetime of an object that has derived + * KShared. As long a someone holds a KSharedPtr on some KShared + * object it won't become deleted but is deleted once its reference + * count is 0. This struct emulates C++ pointers virtually perfectly. + * So just use it like a simple C++ pointer. + * + * KShared and KSharedPtr are preferred over QShared / QSharedPtr + * since they are more safe. + * + * WARNING: Please note that this class template provides an implicit + * conversion to T*. Do *not* change this pointer or the pointee (don't + * call delete on it, for instance) behind KSharedPtr's back. + * + * @author Waldo Bastian + */ +template< class T > +class KSharedPtr +{ +public: +/** + * Creates a null pointer. + */ + KSharedPtr() + : ptr(0) { } + /** + * Creates a new pointer. + * @param t the pointer + */ + KSharedPtr( T* t ) + : ptr(t) { if ( ptr ) ptr->_KShared_ref(); } + + /** + * Copies a pointer. + * @param p the pointer to copy + */ + KSharedPtr( const KSharedPtr& p ) + : ptr(p.ptr) { if ( ptr ) ptr->_KShared_ref(); } + + /** + * Unreferences the object that this pointer points to. If it was + * the last reference, the object will be deleted. + */ + ~KSharedPtr() { if ( ptr ) ptr->_KShared_unref(); } + + KSharedPtr& operator= ( const KSharedPtr& p ) { + if ( ptr == p.ptr ) return *this; + if ( ptr ) ptr->_KShared_unref(); + ptr = p.ptr; + if ( ptr ) ptr->_KShared_ref(); + return *this; + } + KSharedPtr& operator= ( T* p ) { + if ( ptr == p ) return *this; + if ( ptr ) ptr->_KShared_unref(); + ptr = p; + if ( ptr ) ptr->_KShared_ref(); + return *this; + } + bool operator== ( const KSharedPtr& p ) const { return ( ptr == p.ptr ); } + bool operator!= ( const KSharedPtr& p ) const { return ( ptr != p.ptr ); } + bool operator== ( const T* p ) const { return ( ptr == p ); } + bool operator!= ( const T* p ) const { return ( ptr != p ); } + bool operator!() const { return ( ptr == 0 ); } + operator T*() const { return ptr; } + + /** + * Returns the pointer. + * @return the pointer + */ + T* data() { return ptr; } + + /** + * Returns the pointer. + * @return the pointer + */ + const T* data() const { return ptr; } + + const T& operator*() const { return *ptr; } + T& operator*() { return *ptr; } + const T* operator->() const { return ptr; } + T* operator->() { return ptr; } + + /** + * Returns the number of references. + * @return the number of references + */ + int count() const { return ptr->_KShared_count(); } // for debugging purposes +private: + T* ptr; +}; + +#endif diff --git a/extra/kde353/ksycocafactory.h b/extra/kde353/ksycocafactory.h new file mode 100644 index 0000000..65bb9d9 --- /dev/null +++ b/extra/kde353/ksycocafactory.h @@ -0,0 +1,143 @@ +/* This file is part of the KDE libraries + * Copyright (C) 1999 Waldo Bastian + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License version 2 as published by the Free Software Foundation; + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public License + * along with this library; see the file COPYING.LIB. If not, write to + * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA. + **/ + +#ifndef __ksycocafactory_h__ +#define __ksycocafactory_h__ + +#include "ksycocatype.h" +#include "ksycocaentry.h" + +#include +#include +class KSycoca; +class QStringList; +class QString; +class KSycocaDict; +class KSycocaResourceList; + +typedef QDict KSycocaEntryDict; + +/** + * @internal + * Base class for sycoca factories + */ +class KDECORE_EXPORT KSycocaFactory +{ +public: + virtual KSycocaFactoryId factoryId() const = 0; + +protected: // virtual class + /** + * Create a factory which can be used to lookup from/create a database + * (depending on KSycoca::isBuilding()) + */ + KSycocaFactory( KSycocaFactoryId factory_id ); + +public: + virtual ~KSycocaFactory(); + + /** + * @return the position of the factory in the sycoca file + */ + int offset() { return mOffset; } + + /** + * @return the dict, for special use by KBuildSycoca + */ + KSycocaEntryDict * entryDict() { return m_entryDict; } + + /** + * Construct an entry from a config file. + * To be implemented in the real factories. + */ + virtual KSycocaEntry *createEntry(const QString &file, const char *resource) = 0; + + /** + * Add an entry + */ + virtual void addEntry(KSycocaEntry *newEntry, const char *resource); + + /** + * Remove an entry + * Not very fast, use with care. O(N) + */ + void removeEntry(KSycocaEntry *newEntry); + + /** + * Read an entry from the database + */ + virtual KSycocaEntry *createEntry(int offset)=0; + + /** + * Get a list of all entries from the database. + */ + KSycocaEntry::List allEntries(); + + /** + * Saves all entries it maintains as well as index files + * for these entries to the stream 'str'. + * + * Also sets mOffset to the starting position. + * + * The stream is positioned at the end of the last index. + * + * Don't forget to call the parent first when you override + * this function. + */ + virtual void save(QDataStream &str); + + /** + * Writes out a header to the stream 'str'. + * The baseclass positions the stream correctly. + * + * Don't forget to call the parent first when you override + * this function. + */ + virtual void saveHeader(QDataStream &str); + + /** + * @return the resources for which this factory is responsible. + */ + virtual const KSycocaResourceList * resourceList() const { return m_resourceList; } + +private: + int mOffset; + +protected: + int m_sycocaDictOffset; + int m_beginEntryOffset; + int m_endEntryOffset; + QDataStream *m_str; + + KSycocaResourceList *m_resourceList; + KSycocaEntryDict *m_entryDict; + KSycocaDict *m_sycocaDict; +protected: + virtual void virtual_hook( int id, void* data ); +}; + +/** This, instead of a typedef, allows to declare "class ..." in header files + * @internal + */ +class KDECORE_EXPORT KSycocaFactoryList : public QPtrList +{ +public: + KSycocaFactoryList() { } +}; + +#endif diff --git a/extra/kde353/ktoolbarbutton.h b/extra/kde353/ktoolbarbutton.h new file mode 100644 index 0000000..7526f02 --- /dev/null +++ b/extra/kde353/ktoolbarbutton.h @@ -0,0 +1,330 @@ +/* This file is part of the KDE libraries + Copyright (C) 1997, 1998 Stephan Kulow (coolo@kde.org) + (C) 1997, 1998 Sven Radej (radej@kde.org) + (C) 1997, 1998 Mark Donohoe (donohoe@kde.org) + (C) 1997, 1998 Matthias Ettrich (ettrich@kde.org) + (C) 2000 Kurt Granroth (granroth@kde.org) + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License version 2 as published by the Free Software Foundation. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef _KTOOLBARBUTTON_H +#define _KTOOLBARBUTTON_H + +#include +#include +#include +#include +#include + +class KToolBar; +class KToolBarButtonPrivate; +class KInstance; +class QEvent; +class QPopupMenu; +class QPainter; + +/** + * A toolbar button. This is used internally by KToolBar, use the + * KToolBar methods instead. + * @internal + */ +class KDEUI_EXPORT KToolBarButton : public QToolButton +{ + Q_OBJECT + +public: + /** + * Construct a button with an icon loaded by the button itself. + * This will trust the button to load the correct icon with the + * correct size. + * + * @param icon Name of icon to load (may be absolute or relative) + * @param id Id of this button + * @param parent This button's parent + * @param name This button's internal name + * @param txt This button's text (in a tooltip or otherwise) + * @param _instance the instance to use for this button + */ + KToolBarButton(const QString& icon, int id, QWidget *parent, + const char *name=0L, const QString &txt=QString::null, + KInstance *_instance = KGlobal::instance()); + + /** + * Construct a button with an existing pixmap. It is not + * recommended that you use this as the internal icon loading code + * will almost always get it "right". + * + * @param pixmap Name of icon to load (may be absolute or relative) + * @param id Id of this button + * @param parent This button's parent + * @param name This button's internal name + * @param txt This button's text (in a tooltip or otherwise) + */ + KToolBarButton(const QPixmap& pixmap, int id, QWidget *parent, + const char *name=0L, const QString &txt=QString::null); + + /** + * Construct a separator button + * + * @param parent This button's parent + * @param name This button's internal name + */ + KToolBarButton(QWidget *parent=0L, const char *name=0L); + + /** + * Standard destructor + */ + ~KToolBarButton(); + +#ifndef KDE_NO_COMPAT + /** + * @deprecated + * Set the pixmap directly for this button. This pixmap should be + * the active one... the dimmed and disabled pixmaps are constructed + * based on this one. However, don't use this function unless you + * are positive that you don't want to use setIcon. + * + * @param pixmap The active pixmap + */ + // this one is from QButton, so #ifdef-ing it out doesn't break BC + virtual void setPixmap(const QPixmap &pixmap) KDE_DEPRECATED; + + /** + * @deprecated + * Force the button to use this pixmap as the default one rather + * then generating it using effects. + * + * @param pixmap The pixmap to use as the default (normal) one + */ + void setDefaultPixmap(const QPixmap& pixmap) KDE_DEPRECATED; + + /** + * @deprecated + * Force the button to use this pixmap when disabled one rather then + * generating it using effects. + * + * @param pixmap The pixmap to use when disabled + */ + void setDisabledPixmap(const QPixmap& pixmap) KDE_DEPRECATED; +#endif + + /** + * Set the text for this button. The text will be either used as a + * tooltip (IconOnly) or will be along side the icon + * + * @param text The button (or tooltip) text + */ + virtual void setText(const QString &text); + + /** + * Set the icon for this button. The icon will be loaded internally + * with the correct size. This function is preferred over setIconSet + * + * @param icon The name of the icon + */ + virtual void setIcon(const QString &icon); + + /// @since 3.1 + virtual void setIcon( const QPixmap &pixmap ) + { QToolButton::setIcon( pixmap ); } + + /** + * Set the pixmaps for this toolbar button from a QIconSet. + * If you call this you don't need to call any of the other methods + * that set icons or pixmaps. + * @param iconset The iconset to use + */ + virtual void setIconSet( const QIconSet &iconset ); + +#ifndef KDE_NO_COMPAT + /** + * @deprecated + * Set the active icon for this button. The pixmap itself is loaded + * internally based on the icon size... .. the disabled and default + * pixmaps, however will only be constructed if generate is + * true. This function is preferred over setPixmap + * + * @param icon The name of the active icon + * @param generate If true, then the other icons are automagically + * generated from this one + */ + KDE_DEPRECATED void setIcon(const QString &icon, bool generate ) { Q_UNUSED(generate); setIcon( icon ); } + + /** + * @deprecated + * Force the button to use this icon as the default one rather + * then generating it using effects. + * + * @param icon The icon to use as the default (normal) one + */ + void setDefaultIcon(const QString& icon) KDE_DEPRECATED; + + /** + * @deprecated + * Force the button to use this icon when disabled one rather then + * generating it using effects. + * + * @param icon The icon to use when disabled + */ + void setDisabledIcon(const QString& icon) KDE_DEPRECATED; +#endif + + /** + * Turn this button on or off + * + * @param flag true or false + */ + void on(bool flag = true); + + /** + * Toggle this button + */ + void toggle(); + + /** + * Turn this button into a toggle button or disable the toggle + * aspects of it. This does not toggle the button itself. + * Use toggle() for that. + * + * @param toggle true or false + */ + void setToggle(bool toggle = true); + + /** + * Return a pointer to this button's popup menu (if it exists) + */ + QPopupMenu *popup(); + + /** + * Returns the button's id. + * @since 3.2 + */ + int id() const; + + /** + * Give this button a popup menu. There will not be a delay when + * you press the button. Use setDelayedPopup if you want that + * behavior. + * + * @param p The new popup menu + * @param unused Has no effect - ignore it. + */ + void setPopup (QPopupMenu *p, bool unused = false); + + /** + * Gives this button a delayed popup menu. + * + * This function allows you to add a delayed popup menu to the button. + * The popup menu is then only displayed when the button is pressed and + * held down for about half a second. + * + * @param p the new popup menu + * @param unused Has no effect - ignore it. + */ + void setDelayedPopup(QPopupMenu *p, bool unused = false); + + /** + * Turn this button into a radio button + * + * @param f true or false + */ + void setRadio(bool f = true); + + /** + * Toolbar buttons naturally will assume the global styles + * concerning icons, icons sizes, etc. You can use this function to + * explicitly turn this off, if you like. + * + * @param no_style Will disable styles if true + */ + void setNoStyle(bool no_style = true); + +signals: + /** + * Emitted when the toolbar button is clicked (with LMB or MMB) + */ + void clicked(int); + /** + * Emitted when the toolbar button is clicked (with any mouse button) + * @param state makes it possible to find out which button was pressed, + * and whether any keyboard modifiers were held. + * @since 3.4 + */ + void buttonClicked(int, Qt::ButtonState state); + void doubleClicked(int); + void pressed(int); + void released(int); + void toggled(int); + void highlighted(int, bool); + +public slots: + /** + * This slot should be called whenever the toolbar mode has + * potentially changed. This includes such events as text changing, + * orientation changing, etc. + */ + void modeChange(); + virtual void setTextLabel(const QString&, bool tipToo); + +protected: + bool event(QEvent *e); + void paletteChange(const QPalette &); + void leaveEvent(QEvent *e); + void enterEvent(QEvent *e); + void drawButton(QPainter *p); + bool eventFilter (QObject *o, QEvent *e); + /// @since 3.4 + void mousePressEvent( QMouseEvent * ); + /// @since 3.4 + void mouseReleaseEvent( QMouseEvent * ); + void showMenu(); + QSize sizeHint() const; + QSize minimumSizeHint() const; + QSize minimumSize() const; + + /// @since 3.1 + bool isRaised() const; + /// @since 3.1 + bool isActive() const; + /// @since 3.1 + int iconTextMode() const; + +protected slots: + void slotClicked(); + void slotPressed(); + void slotReleased(); + void slotToggled(); + void slotDelayTimeout(); + +protected: + virtual void virtual_hook( int id, void* data ); +private: + KToolBarButtonPrivate *d; +}; + +/** +* List of KToolBarButton objects. +* @internal +* @version $Id: ktoolbarbutton.h 465272 2005-09-29 09:47:40Z mueller $ +*/ +class KDEUI_EXPORT KToolBarButtonList : public QIntDict +{ +public: + KToolBarButtonList(); + ~KToolBarButtonList() {} +}; + +#endif diff --git a/extra/kde353/kurifilter.h b/extra/kde353/kurifilter.h new file mode 100644 index 0000000..355ce38 --- /dev/null +++ b/extra/kde353/kurifilter.h @@ -0,0 +1,647 @@ +/* + * This file is part of the KDE libraries + * Copyright (C) 2000-2001,2003 Dawit Alemayehu + * + * Original author + * Copyright (C) 2000 Yves Arrouye + * + * + * This library 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. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public License + * along with this library; see the file COPYING.LIB. If not, write to + * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA. + **/ + +#ifndef __kurifilter_h__ +#define __kurifilter_h__ + +#include +#include +#include + +#include + +#ifdef Q_OS_WIN +#undef ERROR +#endif + +class KURIFilterPrivate; +class KURIFilterDataPrivate; + +class KCModule; + +/** +* A basic message object used for exchanging filtering +* information between the filter plugins and the application +* requesting the filtering service. +* +* Use this object if you require a more detailed information +* about the URI you want to filter. Any application can create +* an instance of this class and send it to KURIFilter to +* have the plugins fill out all possible information about the +* URI. +* +* \b Example +* +* \code +* QString text = "kde.org"; +* KURIFilterData d = text; +* bool filtered = KURIFilter::self()->filter( d ); +* cout << "URL: " << text.latin1() << endl +* << "Filtered URL: " << d.uri().url().latin1() << endl +* << "URI Type: " << d.uriType() << endl +* << "Was Filtered: " << filtered << endl; +* \endcode +* +* The above code should yield the following output: +* \code +* URI: kde.org +* Filtered URI: http://kde.org +* URI Type: 0 <== means NET_PROTOCOL +* Was Filtered: 1 <== means the URL was successfully filtered +* \endcode +* +* @short A message object for exchanging filtering URI info. +* @author Dawit Alemayehu +*/ + +class KIO_EXPORT KURIFilterData +{ +friend class KURIFilterPlugin; + +public: + /** + * Describes the type of the URI that was filtered. + * Here is a brief description of the types: + * + * @li NET_PROTOCOL - Any network protocol: http, ftp, nttp, pop3, etc... + * @li LOCAL_FILE - A local file whose executable flag is not set + * @li LOCAL_DIR - A local directory + * @li EXECUTABLE - A local file whose executable flag is set + * @li HELP - A man or info page + * @li SHELL - A shell executable (ex: echo "Test..." >> ~/testfile) + * @li BLOCKED - A URI that should be blocked/filtered (ex: ad filtering) + * @li ERROR - An incorrect URI (ex: "~johndoe" when user johndoe + * does not exist in that system ) + * @li UNKNOWN - A URI that is not identified. Default value when + * a KURIFilterData is first created. + */ + enum URITypes { NET_PROTOCOL=0, LOCAL_FILE, LOCAL_DIR, EXECUTABLE, HELP, SHELL, BLOCKED, ERROR, UNKNOWN }; + + /** + * Default constructor. + * + * Creates a URIFilterData object. + */ + KURIFilterData() { init(); } + + /** + * Creates a URIFilterData object from the given URL. + * + * @param url is the URL to be filtered. + */ + KURIFilterData( const KURL& url ) { init( url); } + + /** + * Creates a URIFilterData object from the given string. + * + * @param url is the string to be filtered. + */ + KURIFilterData( const QString& url ) { init( url ); } + + /** + * Copy constructor. + * + * Creates a URIFilterData object from another + * URI filter data object. + * + * @param data the uri filter data to be copied. + */ + KURIFilterData( const KURIFilterData& data); + + /** + * Destructor. + */ + ~KURIFilterData(); + + /** + * This method has been deprecated and will always return + * true. You should instead use the result from the + * KURIFilter::filterURI() calls. + * + * @deprecated + */ + KDE_DEPRECATED bool hasBeenFiltered() const { return true; } + + /** + * Returns the filtered or the original URL. + * + * This function returns the filtered url if one + * of the plugins successfully filtered the original + * URL. Otherwise, it returns the original URL. + * See hasBeenFiltered() and + * + * @return the filtered or original url. + */ + KURL uri() const { return m_pURI; } + + /** + * Returns an error message. + * + * This functions returns the error message set + * by the plugin whenever the uri type is set to + * KURIFilterData::ERROR. Otherwise, it returns + * a QString::null. + * + * @return the error message or a NULL when there is none. + */ + QString errorMsg() const { return m_strErrMsg; } + + /** + * Returns the URI type. + * + * This method always returns KURIFilterData::UNKNOWN + * if the given URL was not filtered. + * @return the type of the URI + */ + URITypes uriType() const { return m_iType; } + + /** + * Sets the URL to be filtered. + * + * Use this function to set the string to be + * filtered when you construct an empty filter + * object. + * + * @param url the string to be filtered. + */ + void setData( const QString& url ) { init( url ); } + + /** + * Same as above except the argument is a URL. + * + * Use this function to set the string to be + * filtered when you construct an empty filter + * object. + * + * @param url the URL to be filtered. + */ + void setData( const KURL& url ) { init( url ); } + + /** + * Sets the absolute path to be used whenever the supplied + * data is a relative local URL. + * + * NOTE: This function should only be used for local resources, + * i.e. the "file:/" protocol. It is useful for specifying the + * absolute path in cases where the actual URL might be relative. + * meta object. If deriving the path from a KURL, make sure you + * set the argument for this function to the result of calling + * path () instead of url (). + * + * @param abs_path the abolute path to the local resource. + * @return true if absolute path is successfully set. Otherwise, false. + */ + bool setAbsolutePath( const QString& abs_path ); + + /** + * Returns the absolute path if one has already been set. + * @return the absolute path, or QString::null + * @see hasAbsolutePath() + */ + QString absolutePath() const; + + /** + * Checks whether the supplied data had an absolute path. + * @return true if the supplied data has an absolute path + * @see absolutePath() + */ + bool hasAbsolutePath() const; + + /** + * Returns the command line options and arguments for a + * local resource when present. + * + * @return options and arguments when present, otherwise QString::null + */ + QString argsAndOptions() const; + + /** + * Checks whether the current data is a local resource with + * command line options and arguments. + * @return true if the current data has command line options and arguments + */ + bool hasArgsAndOptions() const; + + /** + * Returns the name of the icon that matches + * the current filtered URL. + * + * NOTE that this function will return a NULL + * string by default and when no associated icon + * is found. + * + * @return the name of the icon associated with the resource, + * or QString::null if not found + */ + QString iconName(); + + /** + * Check whether the provided uri is executable or not. + * + * Setting this to false ensures that typing the name of + * an executable does not start that application. This is + * useful in the location bar of a browser. The default + * value is true. + * + * @since 3.2 + */ + void setCheckForExecutables (bool check); + + /** + * @return true if the filters should attempt to check whether the + * supplied uri is an executable. False otherwise. + * + * @since 3.2 + */ + bool checkForExecutables() const { return m_bCheckForExecutables; } + + /** + * @return the string as typed by the user, before any URL processing is done + * @since 3.2 + */ + QString typedString() const; + + /** + * Overloaded assigenment operator. + * + * This function allows you to easily assign a KURL + * to a KURIFilterData object. + * + * @return an instance of a KURIFilterData object. + */ + KURIFilterData& operator=( const KURL& url ) { init( url ); return *this; } + + /** + * Overloaded assigenment operator. + * + * This function allows you to easily assign a QString + * to a KURIFilterData object. + * + * @return an instance of a KURIFilterData object. + */ + KURIFilterData& operator=( const QString& url ) { init( url ); return *this; } + +protected: + + /** + * Initializes the KURIFilterData on construction. + * @param url the URL to initialize the object with + */ + void init( const KURL& url); + + /** + * Initializes the KURIFilterData on construction. + * @param url the URL to initialize the object with + */ + void init( const QString& url = QString::null ); + +private: + bool m_bCheckForExecutables; + bool m_bChanged; + + QString m_strErrMsg; + QString m_strIconName; + + KURL m_pURI; + URITypes m_iType; + KURIFilterDataPrivate *d; +}; + + +/** + * Base class for URI filter plugins. + * + * This class applies a single filter to a URI. All plugins designed + * to provide URI filtering service should inherit from this abstract + * class and provide a concrete implementation. + * + * All inheriting classes need to implement the pure virtual function + * filterURI. + * + * @short Abstract class for URI filter plugins. + */ +class KIO_EXPORT KURIFilterPlugin : public QObject +{ + Q_OBJECT + +public: + + /** + * Constructs a filter plugin with a given name and + * priority. + * + * @param parent the parent object, or 0 for no parent + * @param name the name of the plugin, or 0 for no name + * @param pri the priority of the plugin. + */ + KURIFilterPlugin( QObject *parent = 0, const char *name = 0, double pri = 1.0 ); + + /** + * Returns the filter's name. + * + * @return A string naming the filter. + */ + virtual QString name() const { return m_strName; } + + /** + * Returns the filter's priority. + * + * Each filter has an assigned priority, a float from 0 to 1. Filters + * with the lowest priority are first given a chance to filter a URI. + * + * @return The priority of the filter. + */ + virtual double priority() const { return m_dblPriority; } + + /** + * Filters a URI. + * + * @param data the URI data to be filtered. + * @return A boolean indicating whether the URI has been changed. + */ + virtual bool filterURI( KURIFilterData& data ) const = 0; + + /** + * Creates a configuration module for the filter. + * + * It is the responsibility of the caller to delete the module + * once it is not needed anymore. + * + * @return A configuration module, 0 if the filter isn't configurable. + */ + virtual KCModule *configModule( QWidget*, const char* ) const { return 0; } + + /** + * Returns the name of the configuration module for the filter. + * + * @return the name of a configuration module or QString::null if none. + */ + virtual QString configName() const { return name(); } + +protected: + + /** + * Sets the the URL in @p data to @p uri. + */ + void setFilteredURI ( KURIFilterData& data, const KURL& uri ) const; + + /** + * Sets the error message in @p data to @p errormsg. + */ + void setErrorMsg ( KURIFilterData& data, const QString& errmsg ) const { + data.m_strErrMsg = errmsg; + } + + /** + * Sets the URI type in @p data to @p type. + */ + void setURIType ( KURIFilterData& data, KURIFilterData::URITypes type) const { + data.m_iType = type; + data.m_bChanged = true; + } + + /** + * Sets the arguments and options string in @p data + * to @p args if any were found during filterting. + */ + void setArguments( KURIFilterData& data, const QString& args ) const; + + QString m_strName; + double m_dblPriority; + +protected: + virtual void virtual_hook( int id, void* data ); +private: + class KURIFilterPluginPrivate *d; +}; + + +/** + * A list of filter plugins. + */ +class KIO_EXPORT KURIFilterPluginList : public QPtrList +{ +public: + virtual int compareItems(Item a, Item b) + { + double diff = ((KURIFilterPlugin *) a)->priority() - ((KURIFilterPlugin *) b)->priority(); + return diff < 0 ? -1 : (diff > 0 ? 1 : 0); + } + +private: + KURIFilterPrivate *d; + +}; + +/** + * Manages the filtering of URIs. + * + * The intention of this plugin class is to allow people to extend the + * functionality of KURL without modifying it directly. This way KURL will + * remain a generic parser capable of parsing any generic URL that adheres + * to specifications. + * + * The KURIFilter class applies a number of filters to a URI and returns the + * filtered version whenever possible. The filters are implemented using + * plugins to provide easy extensibility of the filtering mechanism. New + * filters can be added in the future by simply inheriting from + * KURIFilterPlugin and implementing the KURIFilterPlugin::filterURI + * method. + * + * Use of this plugin-manager class is straight forward. Since it is a + * singleton object, all you have to do is obtain an instance by doing + * @p KURIFilter::self() and use any of the public member functions to + * preform the filtering. + * + * \b Example + * + * To simply filter a given string: + * + * \code + * bool filtered = KURIFilter::self()->filterURI( "kde.org" ); + * \endcode + * + * You can alternatively use a KURL: + * + * \code + * KURL url = "kde.org"; + * bool filtered = KURIFilter::self()->filterURI( url ); + * \endcode + * + * If you have a constant string or a constant URL, simply invoke the + * corresponding function to obtain the filtered string or URL instead + * of a boolean flag: + * + * \code + * QString u = KURIFilter::self()->filteredURI( "kde.org" ); + * \endcode + * + * You can also restrict the filter(s) to be used by supplying + * the name of the filter(s) to use. By defualt all available + * filters will be used. To use specific filters, add the names + * of the filters you want to use to a QStringList and invoke + * the appropriate filtering function. The examples below show + * the use of specific filters. The first one uses a single + * filter called kshorturifilter while the second example uses + * multiple filters: + * + * \code + * QString text = "kde.org"; + * bool filtered = KURIFilter::self()->filterURI( text, "kshorturifilter" ); + * \endcode + * + * \code + * QStringList list; + * list << "kshorturifilter" << "localdomainfilter"; + * bool filtered = KURIFilter::self()->filterURI( text, list ); + * \endcode + * + * KURIFilter also allows richer data exchange through a simple + * meta-object called @p KURIFilterData. Using this meta-object + * you can find out more information about the URL you want to + * filter. See KURIFilterData for examples and details. + * + * @short Filters a given URL into its proper format whenever possible. + */ + +class KIO_EXPORT KURIFilter +{ +public: + /** + * Destructor + */ + ~KURIFilter (); + + /** + * Returns an instance of KURIFilter. + */ + static KURIFilter* self(); + + /** + * Filters the URI given by the object URIFilterData. + * + * The given URL is filtered based on the specified list of filters. + * If the list is empty all available filters would be used. + * + * @param data object that contains the URI to be filtered. + * @param filters specify the list of filters to be used. + * + * @return a boolean indicating whether the URI has been changed + */ + bool filterURI( KURIFilterData& data, const QStringList& filters = QStringList() ); + + /** + * Filters the URI given by the URL. + * + * The given URL is filtered based on the specified list of filters. + * If the list is empty all available filters would be used. + * + * @param uri the URI to filter. + * @param filters specify the list of filters to be used. + * + * @return a boolean indicating whether the URI has been changed + */ + bool filterURI( KURL &uri, const QStringList& filters = QStringList() ); + + /** + * Filters a string representing a URI. + * + * The given URL is filtered based on the specified list of filters. + * If the list is empty all available filters would be used. + * + * @param uri The URI to filter. + * @param filters specify the list of filters to be used. + * + * @return a boolean indicating whether the URI has been changed + */ + bool filterURI( QString &uri, const QStringList& filters = QStringList() ); + + /** + * Returns the filtered URI. + * + * The given URL is filtered based on the specified list of filters. + * If the list is empty all available filters would be used. + * + * @param uri The URI to filter. + * @param filters specify the list of filters to be used. + * + * @return the filtered URI or null if it cannot be filtered + */ + KURL filteredURI( const KURL &uri, const QStringList& filters = QStringList() ); + + /** + * Return a filtered string representation of a URI. + * + * The given URL is filtered based on the specified list of filters. + * If the list is empty all available filters would be used. + * + * @param uri the URI to filter. + * @param filters specify the list of filters to be used. + * + * @return the filtered URI or null if it cannot be filtered + */ + QString filteredURI( const QString &uri, const QStringList& filters = QStringList() ); + + /** + * Return an iterator to iterate over all loaded + * plugins. + * + * @return a plugin iterator. + */ + QPtrListIterator pluginsIterator() const; + + /** + * Return a list of the names of all loaded plugins. + * + * @return a QStringList of plugin names + * @since 3.1 + */ + QStringList pluginNames() const; + +protected: + + /** + * A protected constructor. + * + * This constructor creates a KURIFilter and + * initializes all plugins it can find by invoking + * loadPlugins. + */ + KURIFilter(); + + /** + * Loads all allowed plugins. + * + * This function loads all filters that have not + * been disbled. + */ + void loadPlugins(); + +private: + static KURIFilter *s_self; + KURIFilterPluginList m_lstPlugins; + KURIFilterPrivate *d; +}; + +#endif diff --git a/importTest.py b/importTest.py new file mode 100644 index 0000000..9f45771 --- /dev/null +++ b/importTest.py @@ -0,0 +1,22 @@ +print "\nTesting PyKDE module imports\n" +try: + import pykdeconfig +except: + print "Can't find pykdeconfig.py - please check installation" + raise + +pykdecfg = pykdeconfig.Configuration () + +#modules = ["dcop", "kdecore", "kdesu", "kdefx", "kdeui", "kio", "kfile", "kparts", "khtml", "kjs", "kspell", "kdeprint"] +print "Modules built:" +print " ",pykdecfg.pykde_modules +print +print "Importing:" +print + +for mod in pykdecfg.pykde_modules.split(): + print mod + if mod != "kdesu": + exec ("import " + mod) + +print diff --git a/postproc b/postproc new file mode 100755 index 0000000..754e7ec --- /dev/null +++ b/postproc @@ -0,0 +1,520 @@ +#!/usr/bin/python + +import sys, getopt, os, os.path, fnmatch, string, StringIO + +#---------- globals ---------- + +FALSE = 0 +TRUE = not FALSE + +ops = ['tr', 'qtNoTr', 'shpix', 'notify', 'varhier', 'appQuit', "kjsfix", "fixQVariant", "fixSignal"] +operation = '' +opPath = '' +pattern = '' + + +# --------- support functions ---------- + +def getOptions (): + global pattern + arglist = sys.argv [1:] + shortOptions = "p:o:" + longOptions = "path= op=" + + try: + optlist, args = getopt.getopt (arglist, shortOptions, longOptions) + except getopt.GetoptError: + optlist = [] + args = [] + + if (optlist == []) or (len (args) != 1): + print '\nUsage: postproc -p -o \n' + return FALSE + + pattern = args [0] + return checkOptions (optlist) + +def checkOptions (optlist): + havePath = FALSE + haveOp = FALSE + + for pair in optlist: + if (pair [0] == '--path') or (pair [0] == '-p'): + if not checkPath (pair [1]): + print '\nPath ' + pair [1] + ' does not exist\n' + else: + havePath = TRUE + + elif (pair [0] == '--op') or (pair [0] == '-o'): + if not checkOp (pair [1]): + print '\nOperation ' + pair [1] + ' does not exist\n' + else: + haveOp = TRUE + + return havePath and haveOp + +def checkPath (path): + global opPath + if not os.path.exists (path): + return FALSE + + opPath = path + if not (opPath [-1] == '/'): + opPath = opPath + '/' + + return TRUE + + +def checkOp (op): + global operation + if not op in ops: + return FALSE + + operation = op + return TRUE + +def getFilelist (): + filelist = [] + tmpfilelist = os.listdir (opPath) + for fn in tmpfilelist: + if fnmatch.fnmatchcase (fn, pattern): + filelist.append (fn) + + return filelist + +# --------- operations ---------- + +# removes sipDo__tr and table reference ('sipName_qt_tr') +# because KDE2 is compiled with QT_NO_TRANSLATION defined (which also +# makes QObject::tr methods invisible to any KDE2 QObject descendants) + +def trFix (filelist): + for fn in filelist: + m = open (opPath + fn, 'r') + tmpname = os.path.splitext (fn) [0] + '.tmp' + tmp = StringIO.StringIO () + + buff = m.readlines () + m.close () + + i = 0 + nLines = len (buff) + + # skip leading comments + while (i < nLines) and (buff [i][0:1] == '//'): + tmp.write (buff [i]) + i = i + 1 + + # find classname + while (i < nLines) and (not string.find (buff [i], 'PyObject *sipClass_') == 0): + tmp.write (buff [i]) + i = i + 1 + + if i >= nLines: # no classname - don't bother + tmp.close () + continue + + classname = buff [i][19:-2] + + trStr = 'static PyObject *sipDo_' + classname + '_tr(PyObject *sipThisObj,PyObject *sipArgs)\n' + + while (i < nLines) and (buff [i] != trStr): + tmp.write (buff [i]) + i = i + 1 + + if i >= nLines: # no sipDo_*_tr - done + tmp.close () + continue + + # skip over this method without writing it out + while (i < nLines) and (buff [i][0] != '}'): + i = i + 1 + + i = i + 1 # skip the '}' too + + + while (i < nLines): + # skip sipName_qt_tr table entry/write out everything else + if string.find (buff [i], '{sipName_qt_tr') < 0: + tmp.write (buff [i]) + i = i + 1 + + tmpfile = open (opPath + tmpname, 'w') + tmpfile.write (tmp.getvalue ()) + tmpfile.close () + tmp.close () + os.unlink (opPath + fn) + os.rename (opPath + tmpname, opPath + fn) + + return TRUE + +def qtNoTr (filelist): + for fn in filelist: + m = open (opPath + fn, 'r') + tmpname = os.path.splitext (fn) [0] + '.tmp' + tmp = StringIO.StringIO () + + buff = m.readlines () + m.close () + + i = 0 + nLines = len (buff) + + while (i < nLines) and (string.find (buff [i], 'Q_OBJECT') < 0): + tmp.write (buff [i]) + i = i + 1 + + tmp.write ("#define QT_NO_TRANSLATION\n") + + while (i < nLines): + tmp.write (buff [i]) + i = i + 1 + + tmpfile = open (opPath + tmpname, 'w') + tmpfile.write (tmp.getvalue ()) + tmpfile.close () + tmp.close () + os.unlink (opPath + fn) + os.rename (opPath + tmpname, opPath + fn) + + return TRUE + +# changes QPaintDevice to KPixmap for two method calls +# gcc reports QPaintDevice as "ambiguous" + +def shpix (): + # if concatenated, the sip*.cpp file doesn't exist + fn = ['sipkdeuiKSharedPixmap.cpp'] + if not os.path.exists (os.path.join (opPath, fn [0])): + files = os.listdir (opPath) + fn = [] + for file in files: + if string.find (file, "kdeuipart") >= 0 and file [-4:] == ".cpp": + fn.append (file) + + if not fn: + return FALSE + + for file in fn: + m = open (os.path.join (opPath, file), 'r') + tmpname = os.path.splitext (file) [0] + '.tmp' + + buff = m.readlines () + m.close () + + changed = 0 + state = None + for ln in range (0, len (buff)): + line = buff [ln] + if string.find (line, "sipKSharedPixmap::resolution") >= 0: + state = "res" + elif string.find (line, "sipKSharedPixmap::setResolution") >= 0: + state = "setRes" + else: + state = None + + if state and changed < 2: + changed = changed + 1 + while "}" not in line: + ln = ln + 1 + line = buff [ln] + if state == "res": + buff [ln] = string.replace (line, "QPaintDevice::resolution", "KPixmap::resolution") + elif state == "setRes": + buff [ln] = string.replace (line, "QPaintDevice::setResolution", "KPixmap::setResolution") + + tmpfile = open (os.path.join (opPath, tmpname), 'w') + for line in buff: + tmpfile.write (line) + tmpfile.close () + os.unlink (os.path.join (opPath, file)) + os.rename (os.path.join (opPath, tmpname), os.path.join (opPath, file)) + + return TRUE + +def notify (): + fn = os.path.join (opPath, pattern) + m = open (fn, "r") + tmpname = fn + '.tmp' + + buff = m.readlines () + m.close () + tmpfile = open (tmpname, 'w') + + tmpBuff = [] + flag = 0 + for line in buff: + if string.find (line, "class KNotify:") >= 0: + flag = 1 + + elif flag == 1 and string.find (line, "class KNotifyWidgetBase(QWidget):") >= 0: + flag = 2 + + elif flag == 2 and string.find (line, "class KNotifyWidget(KNotifyWidgetBase):") >= 0: + for ln in tmpBuff: + tmpfile.write (ln) + flag = 0 + + if flag != 1: + tmpfile.write (line) + else: + tmpBuff.append (line) + + tmpfile.close () + os.unlink (fn) + os.rename (tmpname, fn) + + return TRUE + +def varhier (filelist): + for fn in filelist: + m = open (opPath + fn, 'r') + tmpname = os.path.splitext (fn) [0] + '.tmp' + tmp = StringIO.StringIO () + + buff = m.readlines () + m.close () + + i = 0 + nLines = len (buff) + + while (i < nLines) and (string.find (buff [i], 'PyMethodDef *sipClassVarHierTab_') < 0): + tmp.write (buff [i]) + i = i + 1 + + while (i < nLines) and (string.find (buff [i], "};") < 0): + tmp.write (buff [i]) + i = i + 1 + + if i < nLines: + flag = TRUE + tmp.write (buff [i] + "\n") + while i < nLines: + if not flag: + tmp.write (buff [i]) + + if flag and not ((string.find (buff [i], "};") >= 0) or (string.find (buff [i], "NULL") >= 0)): + flag = FALSE + + i = i + 1 + + tmpfile = open (opPath + tmpname, 'w') + tmpfile.write (tmp.getvalue ()) + tmpfile.close () + tmp.close () + os.unlink (opPath + fn) + os.rename (opPath + tmpname, opPath + fn) + + return TRUE + + +def appQuit (filelist): + for fn in filelist: + m = open (opPath + fn, 'r') + tmpname = os.path.splitext (fn) [0] + '.tmp' + tmp = StringIO.StringIO () + + buff = m.readlines () + m.close () + + i = 0 + nLines = len (buff) + + while (i < nLines) and (string.find (buff [i], 'import libsip') < 0): + tmp.write (buff [i]) + i = i + 1 + + tmp.write (buff [i] + "\nfrom qt import QCloseEvent") + i = i + 1 + + while (i < nLines) and (string.find (buff [i], "class KApplication") < 0): + tmp.write (buff [i]) + i = i + 1 + + count = 0 + while count < 2: + while (i < nLines) and (string.find (buff [i], "return") < 0): + tmp.write (buff [i]) + i = i + 1 + + tmp.write (buff [i]) + i = i + 1 + count = count + 1 + + tmp.write (\ +"""\tdef quit (self): +\t\tk = KApplication.kApplication () +\t\te = QCloseEvent () + +\t\tfor w in k.topLevelWidgets (): +\t\t\tif w.inherits ("KMainWindow"): +\t\t\t\tk.sendEvent (w, e) +\t\t\t\tif not e.isAccepted (): +\t\t\t\t\treturn + +\t\tQApplication.quit (self) +""") + + while (i < nLines): + tmp.write (buff [i]) + i = i + 1 + + tmpfile = open (opPath + tmpname, 'w') + tmpfile.write (tmp.getvalue ()) + tmpfile.close () + tmp.close () + os.unlink (opPath + fn) + os.rename (opPath + tmpname, opPath + fn) + + return True + +def fixQVariant (): + infile = os.path.join (opPath, "sipkdecorecmodule.cpp") + if not os.path.exists (infile): + infile = os.path.join (opPath, "sipkdecorepart0.cpp") + if not os.path.exists (infile): + return TRUE + + m = open (infile, "r") + n = open (infile + ".new", "w") + looking = True + for line in m: + if looking and line.find ("sipAPIkdecore.h") > 0: + n.write (line) + n.write ('\n#include "sipqtQVariant.h"\n\n') + looking = False + continue + + n.write (line) + + m.close () + n.close () + os.unlink (infile) + os.rename (infile + ".new", infile) + + return TRUE + +def fixSignal (filelist): + for file in filelist: + if file [-1] == "h": + times = 1 + else: + times = 2 + + infile = os.path.join (opPath, file) + m = open (infile, "r") + n = open (infile + ".new", "w") + + count = 0 + for line in m: + if count < times: + if string.find (line, "proxySlot(unsigned long)") > 0\ + or string.find (line, "proxySlot(unsigned long a0)") > 0: + line = string.replace (line, "unsigned long", "WId") + count = count + 1 + + n.write (line) + + m.close () + n.close () + os.unlink (infile) + os.rename (infile + ".new", infile) + + return TRUE + + +def kjsfix (filelist): + for fn in filelist: + if not os.path.exists (opPath + fn): + continue + m = open (opPath + fn, 'r') + tmpname = os.path.splitext (fn) [0] + '.tmp' + + buff = m.readlines () + m.close () + + i = 0 + nLines = len (buff) + + purevirt = ["toPrimitive", "toBoolean", "toNumber", "toString", "toObject"] + + while (i < nLines): + if string.find (buff [i], "KJS::ExecState") >= 0: + for pv in purevirt: + if string.find (buff [i], pv) >= 0: + i = i + 2 + buff [i] = "\t\treturn KJS::ObjectImp::%s(a0);" % pv + i = i + 1 + while string.find (buff [i], "}") < 0: + buff [i] = "" + i = i + 1 + break + i = i + 1 + + tmpfile = open (opPath + tmpname, 'w') + i = 0 + while (i < nLines): + tmpfile.write (buff [i]) + i = i + 1 + tmpfile.close () + os.unlink (opPath + fn) + os.rename (opPath + tmpname, opPath + fn) + + return TRUE + +# --------- main ---------- + +if not getOptions (): + sys.exit (-1) + +if operation != "shpix": + filelist = getFilelist () + if filelist == []: + sys.exit (0) + +if operation == "tr": + if not trFix (filelist): + print 'operation error -- tr' + sys.exit (-1) + +elif operation == 'qtNoTr': + if not qtNoTr (filelist): + print 'operation error -- qtNoTr' + sys.exit (-1) + +elif operation == 'shpix': + if not shpix (): + print 'operation error -- shpix' + sys.exit (-1) + +elif operation == "notify": + if not notify (): + print "operation error -- notify" + sys.exit (-1) + +elif operation == "varhier": + if not varhier (filelist): + print "operation error -- varhier" + sys.exit (-1) + +elif operation == "appQuit": + if not appQuit (filelist): + print "operation error -- appQuit" + sys.exit (-1) + +elif operation == "kjsfix": + if not kjsfix (filelist): + print "operation error -- kjsfix" + sys.exit (-1) + +elif operation == "fixQVariant": + """if not fixQVariant (): + print "operation error -- fixQVariant" + sys.exit (-1)""" + +elif operation == "fixSignal": + if not fixSignal (filelist): + print "operation error -- fixSignal" + sys.exit (-1) + +sys.exit (0) diff --git a/pykde350.prj b/pykde350.prj new file mode 100644 index 0000000..4d6a17e --- /dev/null +++ b/pykde350.prj @@ -0,0 +1,495 @@ + +// Copyright 2002-2003 Jim Bublitz + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 331, Boston, MA 02110-1301, USA. + + +// project file for PyKDE +// ---------------------- + + +// ------------- project data --------------- + +project = PyKDE + +destination = /home/jim/PyKDE350 +source = /server/source/KDESrc/kdelibs-3.5.0 +compare = /opt/kde3/include +importpath = /usr/share/sip +prevpath = /home/jim/PyKDE/sip + +version = KDE_3_5_0 +secondary = WS_X11 +previous = KDE_3_4_3 + +license = GPL +copyright = + + +// ------------- module data ---------------- + +module = dcop + +timeline = KDE_3_0_0 KDE_3_0_1 KDE_3_0_3 KDE_3_1_0 KDE_3_1_1 KDE_3_1_2 KDE_3_1_3 KDE_3_1_4 KDE_3_1_5 KDE_3_2_0 KDE_3_2_1 KDE_3_2_2 KDE_3_2_3 KDE_3_3_0 KDE_3_3_1 KDE_3_3_2 KDE_3_4_0 KDE_3_4_1 KDE_3_4_2 KDE_3_4_3 KDE_3_5_0 +source = $SRC/dcop $DST/extra/kde350/dcop +ignore = dcopc.h dcopserver.h dcopsignals.h kdatastream.h dcoptypes.h +compare = $COMP $DST/extra/kde350/dcop +subst = $DST/extra/kde350 +import = qtmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +importpath = $IMP +sipslot = callBackObj callBackSlot dcopClient +include = ../extra/kde350/dcop +libs = -L@BL_KDEDIR@ -lsip -lqtcmodule -lDCOP +define = "KDE_DEPRECATED", "" +define = "DCOP_EXPORT", "" + +retain + +// ----------------------------------------- + +module = kdecore + +//trace = kapplication.h + +source = $SRC/kdecore +ignore = netwm_p.h kde_dmalloc.h kunload.h kdatastream.h ksockaddr.h kextsock.h ksocks.h +ignore = ksycocaentry.h ksycocafactory.h ksycocatype.h ksycoca.h kapp.h kstandarddirs.h +ignore = kgenericfactory.h ktypelist.h kvmallocator.h ksortablevaluelist.h +ignore = kextendedsocket.h klargefile.h kdebug.h kdebugclasses.h kxmessages.h kaccelmanager.h +ignore = kdemacros.h kxerrorhandler.h fixx11.h kuser.h kuniqueapp.h kde_file.h kdelibs_export.h +ignore = kswap.h +compare = $COMP $DST/extra/kde350 +subst = $DST/extra/kde350 +import = qtmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +import = dcop +importpath = $IMP +include = +libs = -L@BL_KDEDIR@ -lsip -lqtcmodule -lDCOP -lkdecore -ldcopcmodule +amend = * ctor parent /TransferThis/ +amend = * all parent /Transfer/ +sipslot = pObjSlot psMethodSlot kaccel kglobalaccel +define = "Q_WS_X11", "1" +define = "\(Qt::ALT \<\< 1\)", "16777216" +define = "\(Qt::META\)", "16777216" +define = "enum\ URIMode\ m_iUriMode\ \:\ 3\;", "" +define = "Q_INT32", "long" +define = "Q_UINT32", "ulong" +define = "Q_INT64", "longlong" +define = "Q_UINT64", "ulonglong" +define = "mutable union", "union" +define = "KDECORE_EXPORT", "" +define = "KDE_EXPORT", "" +retain + +// ----------------------------------------- + +module = kdesu + +source = $SRC/kdesu +ignore = +compare = $COMP/kdesu +subst = $DST/extra/kde350 +import = qtmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +import = dcop +import = kdecore +importpath = $IMP +amend = * ctor parent /TransferThis/ +amend = * all parent /Transfer/ +include = ../kdecore @KDE_INCLUDEPATH@/kdesu +libs = -L@BL_KDEDIR@ -lsip -lqtcmodule -lDCOP -lkdecore -lkdesu -ldcopcmodule -lkdecorecmodule + +retain + + +// ----------------------------------------- + +module = kdefx + +ignore = +source = $SRC/kdefx +compare = $COMP +subst = $DST/extra/kde350 +import = qtmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +import = dcop +import = kdecore +importpath = $IMP +amend = * ctor parent /TransferThis/ +amend = * all parent /Transfer/ +include = ../kdecore @KDE_INCLUDEPATH@/kdeprint +libs = -L@BL_KDEDIR@ -lsip -lqtcmodule -lDCOP -lkdefx -lkdeui -lkdecore -lkdecorecmodule -ldcopcmodule +define = "KDEFX_EXPORT", "" + +retain + +// ----------------------------------------- + +module = kdeui + +//trace = kactioncollection.sip + +source = $SRC/kdeui/ +ignore = kcolorbutton.h kcolordlg.h kwidgetid.h kaccelgen.h kdatepik.h kdualcolorbtn.h kxmlgui.h kdockwidget_p.h +ignore = kdockwindow.h ksconfig.h kspell.h kspelldlg.h klistviewlineedit.h ksyntaxhighlighter.h ksharedpixmap.h +compare = $COMP +subst = $DST/extra/kde350 +import = qtmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +import = qtxmlmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +import = dcop +import = kdecore +import = kdefx +importpath = $IMP +include = ../dcop ../kdecore ../pythonize ../pykpanelapplet +libs = -L@BL_KDEDIR@ -lsip -lqtcmodule -lqtxmlcmodule -lDCOP -lkdecore -lkdeui\ + -ldcopcmodule -lkdecorecmodule -lqt-mt -lkdefx -lkdefxcmodule -lpythonize +amend = * ctor parent /TransferThis/ +amend = KDockMainWindow all parent /TransferThis/ +amend = KDockArea all parent /TransferThis/ +amend = * all parent /Transfer/ +sipslot = receiver member kaccelmenu +sipslot = receiver slot kaction kactionclasses kbuttonbox ktoolbar +sipslot = recvr slot kstdaction +define = "QT_VERSION", "301" +define = "KDEUI_EXPORT", "" + +retain + +// ----------------------------------------- + +module = kio + +source = $SRC/kio/kio $DST/extra/kde350/kio +ignore = kmdbase.h uiserver_stub.h kdirnotify_stub.h uiserver.h http_slave_defaults.h ioslave_defaults.h +ignore = kmimetyperesolver.h +compare = $COMP $COMP/kio +subst = $DST/extra/kde350 +import = qtmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +import = qtxmlmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +import = dcop +import = kdecore +import = kdefx +import = kdeui +importpath = $IMP +amend = * ctor parent /TransferThis/ +amend = * all parent /Transfer/ +include = ../extra/kde350/kio @KDE_INCLUDEPATH@/kio ../kdecore +libs = -L@BL_KDEDIR@ -lsip -lqtcmodule -lDCOP -lkio -lkdeui -lkdecore -ldcopcmodule\ + -lkdecorecmodule -lkdeuicmodule +sipslot = +define = "\(KIO::filesize_t\)\-1", "-1" +define = "KIO_EXPORT_DEPRECATED", "" +define = "KIO_EXPORT", "" + +retain + +// ----------------------------------------- + +module = kresources + +source = $SRC/kresources +ignore = +compare = $COMP $COMP/kresources +subst = +ignore = manager.h manageriface.h managerimpl.h +import = qtmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +import = qtxmlmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +import = dcopmod.sip +import = kdecoremod.sip +import = kdefxmod.sip +import = kdeuimod.sip +import = kiomod.sip +importpath = $IMP +libs = -L@BL_KDEDIR@ -lsip -lqtcmodule -lkresources +define = "KDE_DEPRECATED", "" +define = "KRESOURCES_EXPORT", "" + +retain + +// ----------------------------------------- + +module = kabc + +source = $SRC/kabc +ignore = +compare = $COMP $COMP/kabc +subst = +import = qtmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +import = qtxmlmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +import = dcopmod.sip +import = kdecoremod.sip +import = kdefxmod.sip +import = kdeuimod.sip +import = kiomod.sip +import = kresourcesmod.sip +importpath = $IMP +libs = -L@BL_KDEDIR@ -lsip -lqtcmodule -lkabc +define = "KDE_DEPRECATED", "" +define = "KABC_EXPORT", "" +define = "typedef enum", "enum" + +retain + +// ----------------------------------------- + +module = kutils + +source = $SRC/kutils/ +ignore = +compare = $COMP +subst = $DST/extra/kde350 +ignore = kcmodulecontainer.h +import = qtmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +import = dcopmod.sip +import = kdecoremod.sip +import = qtxmlmod.sip +import = kdefxmod.sip +import = kdeuimod.sip +//import = kiomod.sip +//import = kfilemod.sip +//import = kpartsmod.sip +importpath = $IMP +include = ../dcop ../kdecore ../kdeui ../pythonize ../pykpanelapplet +libs = -L@BL_KDEDIR@ -lsip -lqtcmodule -lqtxmlcmodule -lDCOP -lkdecore -lkdeui\ + -ldcopcmodule -lkdecorecmodule -lqt-mt -lkdefx -lkdefxcmodule -lpythonize -lkdeuicmodule\ + -lkutils +define = "class\ KMultiTabBarButton\ \*", "KMultiTabBarButton *" +define = "class\ KMultiTabBarTab\ \*", "KMultiTabBarTab *" + +retain + +// ----------------------------------------- + +module = kfile + +source = $SRC/kio/kfile +ignore = kpropsdlg.h +compare = $COMP $COMP/kio +subst = $DST/extra/kde350 +import = qtmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +import = qtxmlmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +import = dcop +import = kdecore +import = kdefx +import = kdeui +import = kio +importpath = $IMP +amend = * ctor parent /TransferThis/ +amend = * all parent /Transfer/ +include = @KDE_INCLUDEPATH@/kio ../kdecore ../kio +libs = -L@BL_KDEDIR@ -lsip -lqtcmodule -lDCOP -lkio -lkdeui -lkdecore -ldcopcmodule\ + -lkdecorecmodule -lkdeuicmodule -lkiocmodule + +retain + +// ----------------------------------------- + +module = kparts + +source = $SRC/kparts +ignore = componentfactory.h +compare = $COMP/kparts +subst = $DST/extra/kde350 +import = qtmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +import = qtxmlmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +import = dcop +import = kdecore +import = kdefx +import = kdeui +import = kio +importpath = $IMP +amend = * ctor parent /TransferThis/ +amend = * all parent /Transfer/ +include = @KDE_INCLUDEPATH@/kparts @KDE_INCLUDEPATH@/kio ../kdecore ../kio +libs = -L@BL_KDEDIR@ -lsip -lqtcmodule -lDCOP -lkparts -lkdeui -lkdecore -lkio -lkdeuicmodule\ + -lkdecorecmodule -lkiocmodule -ldcopcmodule -lkiocmodule + +retain + +// ----------------------------------------- + +module = khtml + +source = $SRC/khtml $SRC/khtml/dom +ignore = khtmldefaults.h dom_core.h dom_html.h khtml_events.h +compare = $COMP $COMP/dom +subst = $DST/extra/kde350 +import = qtmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +import = qtxmlmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +import = dcop +import = kdecore +import = kdefx +import = kdeui +import = kio +import = kutils +import = kparts +importpath = $IMP +amend = * ctor parent /TransferThis/ +amend = * all parent /Transfer/ +include = @KDE_INCLUDEPATH@/khtml @KDE_INCLUDEPATH@/dom @KDE_INCLUDEPATH@/kparts\ + @KDE_INCLUDEPATH@/kio ../kdecore ../kio +libs = -L@BL_KDEDIR@ -lsip -lqtcmodule -lDCOP -lkdeui -lkhtml -lkparts -lkdecore -lkio\ + -lkdeuicmodule -lkdecorecmodule -lkiocmodule -lkpartscmodule -ldcopcmodule + +define = "KHTML_EXPORT", "" +retain + +// ----------------------------------------- + +//module = kjs + +//source = $SRC/kjs +//ignore = global.h +//compare = $COMP/kjs $DST/extra/kde350 +//subst = $DST/extra/kde350 +//import = qtmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +//import = qtxmlmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +//import = dcop +//import = kdecore +//import = kdefx +//import = kdeui +//import = kio +//import = kparts +//import = khtml +//importpath = $IMP +//include = @KDE_INCLUDEPATH@/kjs @KDE_INCLUDEPATH@/dom @KDE_INCLUDEPATH@/kio\ +// ../kdecore ../kio +//amend = * ctor parent /TransferThis/ +//amend = * all parent /Transfer/ +//libs = -L@BL_KDEDIR@ -lsip -lqtcmodule -lDCOP -lkjs -lkdeui -lkdecore -lkio -lkhtml\ +// -lkdeuicmodule -lkdecorecmodule -lkhtmlcmodule -lkiocmodule -ldcopcmodule + +//retain + +// ----------------------------------------- + +module = kspell + +ignore = +source = $DST/extra/kde350/kspell +compare = $COMP +subst = $DST/extra/kde350 +import = qtmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +import = qtxmlmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +import = dcop +import = kdecore +import = kdefx +import = kdeui +import = kfile +importpath = $IMP +include = ../kdecore @KDE_INCLUDEPATH@/kio +amend = * ctor parent /TransferThis/ const KGuiItem& nullGuiItem (QString::null); + +amend = * all parent /Transfer/ +libs = -L@BL_KDEDIR@ -lsip -lqtcmodule -lDCOP -lkspell -lkdeui -lkdecore -lkio\ + -lkdecorecmodule -lkdeuicmodule -lkfilecmodule -ldcopcmodule +sipslot = obj slot kspell + +code +%PrePythonCode +import kfile +%End +end + +retain + +// ----------------------------------------- + +module = kdeprint + +ignore = driver.h +source = $SRC/kdeprint +compare = $COMP $COMP/kdeprint +subst = $DST/extra/kde350 +import = qtmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +import = qtxmlmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +import = dcop +import = kdecore +import = kdefx +import = kdeui +importpath = $IMP +amend = * ctor parent /TransferThis/ +amend = * all parent /Transfer/ +include = ../kdecore @KDE_INCLUDEPATH@/kdeprint +libs = -L@BL_KDEDIR@ -lsip -lqtcmodule -lDCOP -lkdeprint -lkdecore -lkdecorecmodule\ + -ldcopcmodule -lkdeui -lkdeuicmodule +define = "KDEPRINT_EXPORT", "" +retain + +// ----------------------------------------- + +module = kmdi + +source = $SRC/kmdi/ +ignore = +compare = $COMP +subst = $DST/extra/kde350 +import = qtmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +import = dcopmod.sip +import = kdecoremod.sip +import = qtxmlmod.sip +import = kdefxmod.sip +import = kdeuimod.sip +//import = kiomod.sip +//import = kfilemod.sip +//import = kpartsmod.sip +importpath = $IMP +ignore = kmdiiterator.h kmdilistiterator.h kmdinulliterator.h + +include = ../dcop ../kdecore ../kdeui ../pythonize ../pykpanelapplet +libs = -L@BL_KDEDIR@ -lsip -lqtcmodule -lqtxmlcmodule -lDCOP -lkdecore -lkdeui\ + -ldcopcmodule -lkdecorecmodule -lqt-mt -lkdefx -lkdefxcmodule -lpythonize -lkdeuicmodule\ + -lkmdi +define = "QT_VERSION", "301" +define = "QMainWindow::ToolBarDock", "Qt::Dock" + +retain + + +// ----------------------------------------- + +//module = kspell2 + +//source = $SRC/kspell2/ +//ignore = +//compare = $COMP +//subst = $DST/extra/kde350 +//import = qtmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +//import = dcopmod.sip +//import = kdecoremod.sip +//import = qtxmlmod.sip +//import = kdefxmod.sip +//import = kdeuimod.sip +////import = kiomod.sip +////import = kfilemod.sip +////import = kpartsmod.sip +//importpath = $IMP +//include = ../dcop ../kdecore ../kdeui ../pythonize ../pykpanelapplet +//libs = -L@BL_KDEDIR@ -lsip -lqtcmodule -lqtxmlcmodule -lDCOP -lkdecore -lkdeui\ +// -ldcopcmodule -lkdecorecmodule -lqt-mt -lkdefx -lkdefxcmodule -lpythonize -lkdeuicmodule\ +// -lkspell2 +// +//retain + + + // ------------- build data ----------------- + +//build + +//release = 3.7-1 +//version = 3.7 +//usingQt +//usingKDE + + diff --git a/pykde351.prj b/pykde351.prj new file mode 100644 index 0000000..e2960a8 --- /dev/null +++ b/pykde351.prj @@ -0,0 +1,495 @@ + +// Copyright 2002-2003 Jim Bublitz + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 331, Boston, MA 02110-1301, USA. + + +// project file for PyKDE +// ---------------------- + + +// ------------- project data --------------- + +project = PyKDE + +destination = /home/jim/PyKDE351 +source = /server/source/KDESrc/kdelibs-3.5.1 +compare = /opt/kde3/include +importpath = /usr/share/sip +prevpath = /home/jim/PyKDE/sip + +version = KDE_3_5_1 +secondary = WS_X11 +previous = KDE_3_5_0 + +license = GPL +copyright = + + +// ------------- module data ---------------- + +module = dcop + +timeline = KDE_3_0_0 KDE_3_0_1 KDE_3_0_3 KDE_3_1_0 KDE_3_1_1 KDE_3_1_2 KDE_3_1_3 KDE_3_1_4 KDE_3_1_5 KDE_3_2_0 KDE_3_2_1 KDE_3_2_2 KDE_3_2_3 KDE_3_3_0 KDE_3_3_1 KDE_3_3_2 KDE_3_4_0 KDE_3_4_1 KDE_3_4_2 KDE_3_4_3 KDE_3_5_0 KDE_3_5_1 +source = $SRC/dcop $DST/extra/kde351/dcop +ignore = dcopc.h dcopserver.h dcopsignals.h kdatastream.h dcoptypes.h +compare = $COMP $DST/extra/kde351/dcop +subst = $DST/extra/kde351 +import = qtmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +importpath = $IMP +sipslot = callBackObj callBackSlot dcopClient +include = ../extra/kde351/dcop +libs = -L@BL_KDEDIR@ -lsip -lqtcmodule -lDCOP +define = "KDE_DEPRECATED", "" +define = "DCOP_EXPORT", "" + +retain + +// ----------------------------------------- + +module = kdecore + +//trace = kapplication.h + +source = $SRC/kdecore +ignore = netwm_p.h kde_dmalloc.h kunload.h kdatastream.h ksockaddr.h kextsock.h ksocks.h +ignore = ksycocaentry.h ksycocafactory.h ksycocatype.h ksycoca.h kapp.h kstandarddirs.h +ignore = kgenericfactory.h ktypelist.h kvmallocator.h ksortablevaluelist.h +ignore = kextendedsocket.h klargefile.h kdebug.h kdebugclasses.h kxmessages.h kaccelmanager.h +ignore = kdemacros.h kxerrorhandler.h fixx11.h kuser.h kuniqueapp.h kde_file.h kdelibs_export.h +ignore = kswap.h +compare = $COMP $DST/extra/kde351 +subst = $DST/extra/kde351 +import = qtmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +import = dcop +importpath = $IMP +include = +libs = -L@BL_KDEDIR@ -lsip -lqtcmodule -lDCOP -lkdecore -ldcopcmodule +amend = * ctor parent /TransferThis/ +amend = * all parent /Transfer/ +sipslot = pObjSlot psMethodSlot kaccel kglobalaccel +define = "Q_WS_X11", "1" +define = "\(Qt::ALT \<\< 1\)", "16777216" +define = "\(Qt::META\)", "16777216" +define = "enum\ URIMode\ m_iUriMode\ \:\ 3\;", "" +define = "Q_INT32", "long" +define = "Q_UINT32", "ulong" +define = "Q_INT64", "longlong" +define = "Q_UINT64", "ulonglong" +define = "mutable union", "union" +define = "KDECORE_EXPORT", "" +define = "KDE_EXPORT", "" +retain + +// ----------------------------------------- + +module = kdesu + +source = $SRC/kdesu +ignore = +compare = $COMP/kdesu +subst = $DST/extra/kde351 +import = qtmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +import = dcop +import = kdecore +importpath = $IMP +amend = * ctor parent /TransferThis/ +amend = * all parent /Transfer/ +include = ../kdecore @KDE_INCLUDEPATH@/kdesu +libs = -L@BL_KDEDIR@ -lsip -lqtcmodule -lDCOP -lkdecore -lkdesu -ldcopcmodule -lkdecorecmodule + +retain + + +// ----------------------------------------- + +module = kdefx + +ignore = +source = $SRC/kdefx +compare = $COMP +subst = $DST/extra/kde351 +import = qtmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +import = dcop +import = kdecore +importpath = $IMP +amend = * ctor parent /TransferThis/ +amend = * all parent /Transfer/ +include = ../kdecore @KDE_INCLUDEPATH@/kdeprint +libs = -L@BL_KDEDIR@ -lsip -lqtcmodule -lDCOP -lkdefx -lkdeui -lkdecore -lkdecorecmodule -ldcopcmodule +define = "KDEFX_EXPORT", "" + +retain + +// ----------------------------------------- + +module = kdeui + +//trace = kactioncollection.sip + +source = $SRC/kdeui/ +ignore = kcolorbutton.h kcolordlg.h kwidgetid.h kaccelgen.h kdatepik.h kdualcolorbtn.h kxmlgui.h kdockwidget_p.h +ignore = kdockwindow.h ksconfig.h kspell.h kspelldlg.h klistviewlineedit.h ksyntaxhighlighter.h ksharedpixmap.h +compare = $COMP +subst = $DST/extra/kde351 +import = qtmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +import = qtxmlmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +import = dcop +import = kdecore +import = kdefx +importpath = $IMP +include = ../dcop ../kdecore ../pythonize ../pykpanelapplet +libs = -L@BL_KDEDIR@ -lsip -lqtcmodule -lqtxmlcmodule -lDCOP -lkdecore -lkdeui\ + -ldcopcmodule -lkdecorecmodule -lqt-mt -lkdefx -lkdefxcmodule -lpythonize +amend = * ctor parent /TransferThis/ +amend = KDockMainWindow all parent /TransferThis/ +amend = KDockArea all parent /TransferThis/ +amend = * all parent /Transfer/ +sipslot = receiver member kaccelmenu +sipslot = receiver slot kaction kactionclasses kbuttonbox ktoolbar +sipslot = recvr slot kstdaction +define = "QT_VERSION", "301" +define = "KDEUI_EXPORT", "" + +retain + +// ----------------------------------------- + +module = kio + +source = $SRC/kio/kio $DST/extra/kde351/kio +ignore = kmdbase.h uiserver_stub.h kdirnotify_stub.h uiserver.h http_slave_defaults.h ioslave_defaults.h +ignore = kmimetyperesolver.h +compare = $COMP $COMP/kio +subst = $DST/extra/kde351 +import = qtmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +import = qtxmlmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +import = dcop +import = kdecore +import = kdefx +import = kdeui +importpath = $IMP +amend = * ctor parent /TransferThis/ +amend = * all parent /Transfer/ +include = ../extra/kde351/kio @KDE_INCLUDEPATH@/kio ../kdecore +libs = -L@BL_KDEDIR@ -lsip -lqtcmodule -lDCOP -lkio -lkdeui -lkdecore -ldcopcmodule\ + -lkdecorecmodule -lkdeuicmodule +sipslot = +define = "\(KIO::filesize_t\)\-1", "-1" +define = "KIO_EXPORT_DEPRECATED", "" +define = "KIO_EXPORT", "" + +retain + +// ----------------------------------------- + +module = kresources + +source = $SRC/kresources +ignore = +compare = $COMP $COMP/kresources +subst = +ignore = manager.h manageriface.h managerimpl.h +import = qtmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +import = qtxmlmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +import = dcopmod.sip +import = kdecoremod.sip +import = kdefxmod.sip +import = kdeuimod.sip +import = kiomod.sip +importpath = $IMP +libs = -L@BL_KDEDIR@ -lsip -lqtcmodule -lkresources +define = "KDE_DEPRECATED", "" +define = "KRESOURCES_EXPORT", "" + +retain + +// ----------------------------------------- + +module = kabc + +source = $SRC/kabc $SRC/kabc/plugins/file +ignore = +compare = $COMP $COMP/kabc +subst = +import = qtmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +import = qtxmlmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +import = dcopmod.sip +import = kdecoremod.sip +import = kdefxmod.sip +import = kdeuimod.sip +import = kiomod.sip +import = kresourcesmod.sip +importpath = $IMP +libs = -L@BL_KDEDIR@ -lsip -lqtcmodule -lkabc -lkabc_file +define = "KDE_DEPRECATED", "" +define = "KABC_EXPORT", "" +define = "typedef enum", "enum" + +retain + +// ----------------------------------------- + +module = kutils + +source = $SRC/kutils/ +ignore = +compare = $COMP +subst = $DST/extra/kde351 +ignore = kcmodulecontainer.h +import = qtmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +import = dcopmod.sip +import = kdecoremod.sip +import = qtxmlmod.sip +import = kdefxmod.sip +import = kdeuimod.sip +//import = kiomod.sip +//import = kfilemod.sip +//import = kpartsmod.sip +importpath = $IMP +include = ../dcop ../kdecore ../kdeui ../pythonize ../pykpanelapplet +libs = -L@BL_KDEDIR@ -lsip -lqtcmodule -lqtxmlcmodule -lDCOP -lkdecore -lkdeui\ + -ldcopcmodule -lkdecorecmodule -lqt-mt -lkdefx -lkdefxcmodule -lpythonize -lkdeuicmodule\ + -lkutils +define = "class\ KMultiTabBarButton\ \*", "KMultiTabBarButton *" +define = "class\ KMultiTabBarTab\ \*", "KMultiTabBarTab *" + +retain + +// ----------------------------------------- + +module = kfile + +source = $SRC/kio/kfile +ignore = kpropsdlg.h +compare = $COMP $COMP/kio +subst = $DST/extra/kde351 +import = qtmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +import = qtxmlmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +import = dcop +import = kdecore +import = kdefx +import = kdeui +import = kio +importpath = $IMP +amend = * ctor parent /TransferThis/ +amend = * all parent /Transfer/ +include = @KDE_INCLUDEPATH@/kio ../kdecore ../kio +libs = -L@BL_KDEDIR@ -lsip -lqtcmodule -lDCOP -lkio -lkdeui -lkdecore -ldcopcmodule\ + -lkdecorecmodule -lkdeuicmodule -lkiocmodule + +retain + +// ----------------------------------------- + +module = kparts + +source = $SRC/kparts +ignore = componentfactory.h +compare = $COMP/kparts +subst = $DST/extra/kde351 +import = qtmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +import = qtxmlmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +import = dcop +import = kdecore +import = kdefx +import = kdeui +import = kio +importpath = $IMP +amend = * ctor parent /TransferThis/ +amend = * all parent /Transfer/ +include = @KDE_INCLUDEPATH@/kparts @KDE_INCLUDEPATH@/kio ../kdecore ../kio +libs = -L@BL_KDEDIR@ -lsip -lqtcmodule -lDCOP -lkparts -lkdeui -lkdecore -lkio -lkdeuicmodule\ + -lkdecorecmodule -lkiocmodule -ldcopcmodule -lkiocmodule + +retain + +// ----------------------------------------- + +module = khtml + +source = $SRC/khtml $SRC/khtml/dom +ignore = khtmldefaults.h dom_core.h dom_html.h khtml_events.h +compare = $COMP $COMP/dom +subst = $DST/extra/kde351 +import = qtmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +import = qtxmlmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +import = dcop +import = kdecore +import = kdefx +import = kdeui +import = kio +import = kutils +import = kparts +importpath = $IMP +amend = * ctor parent /TransferThis/ +amend = * all parent /Transfer/ +include = @KDE_INCLUDEPATH@/khtml @KDE_INCLUDEPATH@/dom @KDE_INCLUDEPATH@/kparts\ + @KDE_INCLUDEPATH@/kio ../kdecore ../kio +libs = -L@BL_KDEDIR@ -lsip -lqtcmodule -lDCOP -lkdeui -lkhtml -lkparts -lkdecore -lkio\ + -lkdeuicmodule -lkdecorecmodule -lkiocmodule -lkpartscmodule -ldcopcmodule + +define = "KHTML_EXPORT", "" +retain + +// ----------------------------------------- + +//module = kjs + +//source = $SRC/kjs +//ignore = global.h +//compare = $COMP/kjs $DST/extra/kde351 +//subst = $DST/extra/kde351 +//import = qtmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +//import = qtxmlmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +//import = dcop +//import = kdecore +//import = kdefx +//import = kdeui +//import = kio +//import = kparts +//import = khtml +//importpath = $IMP +//include = @KDE_INCLUDEPATH@/kjs @KDE_INCLUDEPATH@/dom @KDE_INCLUDEPATH@/kio\ +// ../kdecore ../kio +//amend = * ctor parent /TransferThis/ +//amend = * all parent /Transfer/ +//libs = -L@BL_KDEDIR@ -lsip -lqtcmodule -lDCOP -lkjs -lkdeui -lkdecore -lkio -lkhtml\ +// -lkdeuicmodule -lkdecorecmodule -lkhtmlcmodule -lkiocmodule -ldcopcmodule + +//retain + +// ----------------------------------------- + +module = kspell + +ignore = +source = $DST/extra/kde351/kspell +compare = $COMP +subst = $DST/extra/kde351 +import = qtmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +import = qtxmlmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +import = dcop +import = kdecore +import = kdefx +import = kdeui +import = kfile +importpath = $IMP +include = ../kdecore @KDE_INCLUDEPATH@/kio +amend = * ctor parent /TransferThis/ const KGuiItem& nullGuiItem (QString::null); + +amend = * all parent /Transfer/ +libs = -L@BL_KDEDIR@ -lsip -lqtcmodule -lDCOP -lkspell -lkdeui -lkdecore -lkio\ + -lkdecorecmodule -lkdeuicmodule -lkfilecmodule -ldcopcmodule +sipslot = obj slot kspell + +code +%PrePythonCode +import kfile +%End +end + +retain + +// ----------------------------------------- + +module = kdeprint + +ignore = driver.h +source = $SRC/kdeprint +compare = $COMP $COMP/kdeprint +subst = $DST/extra/kde351 +import = qtmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +import = qtxmlmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +import = dcop +import = kdecore +import = kdefx +import = kdeui +importpath = $IMP +amend = * ctor parent /TransferThis/ +amend = * all parent /Transfer/ +include = ../kdecore @KDE_INCLUDEPATH@/kdeprint +libs = -L@BL_KDEDIR@ -lsip -lqtcmodule -lDCOP -lkdeprint -lkdecore -lkdecorecmodule\ + -ldcopcmodule -lkdeui -lkdeuicmodule +define = "KDEPRINT_EXPORT", "" +retain + +// ----------------------------------------- + +module = kmdi + +source = $SRC/kmdi/ +ignore = +compare = $COMP +subst = $DST/extra/kde351 +import = qtmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +import = dcopmod.sip +import = kdecoremod.sip +import = qtxmlmod.sip +import = kdefxmod.sip +import = kdeuimod.sip +//import = kiomod.sip +//import = kfilemod.sip +//import = kpartsmod.sip +importpath = $IMP +ignore = kmdiiterator.h kmdilistiterator.h kmdinulliterator.h + +include = ../dcop ../kdecore ../kdeui ../pythonize ../pykpanelapplet +libs = -L@BL_KDEDIR@ -lsip -lqtcmodule -lqtxmlcmodule -lDCOP -lkdecore -lkdeui\ + -ldcopcmodule -lkdecorecmodule -lqt-mt -lkdefx -lkdefxcmodule -lpythonize -lkdeuicmodule\ + -lkmdi +define = "QT_VERSION", "301" +define = "QMainWindow::ToolBarDock", "Qt::Dock" + +retain + + +// ----------------------------------------- + +//module = kspell2 + +//source = $SRC/kspell2/ +//ignore = +//compare = $COMP +//subst = $DST/extra/kde351 +//import = qtmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +//import = dcopmod.sip +//import = kdecoremod.sip +//import = qtxmlmod.sip +//import = kdefxmod.sip +//import = kdeuimod.sip +////import = kiomod.sip +////import = kfilemod.sip +////import = kpartsmod.sip +//importpath = $IMP +//include = ../dcop ../kdecore ../kdeui ../pythonize ../pykpanelapplet +//libs = -L@BL_KDEDIR@ -lsip -lqtcmodule -lqtxmlcmodule -lDCOP -lkdecore -lkdeui\ +// -ldcopcmodule -lkdecorecmodule -lqt-mt -lkdefx -lkdefxcmodule -lpythonize -lkdeuicmodule\ +// -lkspell2 +// +//retain + + + // ------------- build data ----------------- + +//build + +//release = 3.7-1 +//version = 3.7 +//usingQt +//usingKDE + + diff --git a/pykde352.prj b/pykde352.prj new file mode 100644 index 0000000..9f5e718 --- /dev/null +++ b/pykde352.prj @@ -0,0 +1,495 @@ + +// Copyright 2002-2003 Jim Bublitz + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 331, Boston, MA 02110-1301, USA. + + +// project file for PyKDE +// ---------------------- + + +// ------------- project data --------------- + +project = PyKDE + +destination = /home/jim/PyKDE352 +source = /server/source/KDESrc/kdelibs-3.5.2 +compare = /opt/kde3/include +importpath = /usr/share/sip +prevpath = /home/jim/PyKDE/sip + +version = KDE_3_5_2 +secondary = WS_X11 +previous = KDE_3_5_1 + +license = GPL +copyright = + + +// ------------- module data ---------------- + +module = dcop + +timeline = KDE_3_0_0 KDE_3_0_1 KDE_3_0_3 KDE_3_1_0 KDE_3_1_1 KDE_3_1_2 KDE_3_1_3 KDE_3_1_4 KDE_3_1_5 KDE_3_2_0 KDE_3_2_1 KDE_3_2_2 KDE_3_2_3 KDE_3_3_0 KDE_3_3_1 KDE_3_3_2 KDE_3_4_0 KDE_3_4_1 KDE_3_4_2 KDE_3_4_3 KDE_3_5_0 KDE_3_5_1 KDE_3_5_2 +source = $SRC/dcop $DST/extra/kde352/dcop +ignore = dcopc.h dcopserver.h dcopsignals.h kdatastream.h dcoptypes.h +compare = $COMP $DST/extra/kde352/dcop +subst = $DST/extra/kde352 +import = qtmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +importpath = $IMP +sipslot = callBackObj callBackSlot dcopClient +include = ../extra/kde352/dcop +libs = -L@BL_KDEDIR@ -lsip -lqtcmodule -lDCOP +define = "KDE_DEPRECATED", "" +define = "DCOP_EXPORT", "" + +retain + +// ----------------------------------------- + +module = kdecore + +//trace = kapplication.h + +source = $SRC/kdecore +ignore = netwm_p.h kde_dmalloc.h kunload.h kdatastream.h ksockaddr.h kextsock.h ksocks.h +ignore = ksycocaentry.h ksycocafactory.h ksycocatype.h ksycoca.h kapp.h kstandarddirs.h +ignore = kgenericfactory.h ktypelist.h kvmallocator.h ksortablevaluelist.h +ignore = kextendedsocket.h klargefile.h kdebug.h kdebugclasses.h kxmessages.h kaccelmanager.h +ignore = kdemacros.h kxerrorhandler.h fixx11.h kuser.h kuniqueapp.h kde_file.h kdelibs_export.h +ignore = kswap.h +compare = $COMP $DST/extra/kde352 +subst = $DST/extra/kde352 +import = qtmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +import = dcop +importpath = $IMP +include = +libs = -L@BL_KDEDIR@ -lsip -lqtcmodule -lDCOP -lkdecore -ldcopcmodule +amend = * ctor parent /TransferThis/ +amend = * all parent /Transfer/ +sipslot = pObjSlot psMethodSlot kaccel kglobalaccel +define = "Q_WS_X11", "1" +define = "\(Qt::ALT \<\< 1\)", "16777216" +define = "\(Qt::META\)", "16777216" +define = "enum\ URIMode\ m_iUriMode\ \:\ 3\;", "" +define = "Q_INT32", "long" +define = "Q_UINT32", "ulong" +define = "Q_INT64", "longlong" +define = "Q_UINT64", "ulonglong" +define = "mutable union", "union" +define = "KDECORE_EXPORT", "" +define = "KDE_EXPORT", "" +retain + +// ----------------------------------------- + +module = kdesu + +source = $SRC/kdesu +ignore = +compare = $COMP/kdesu +subst = $DST/extra/kde352 +import = qtmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +import = dcop +import = kdecore +importpath = $IMP +amend = * ctor parent /TransferThis/ +amend = * all parent /Transfer/ +include = ../kdecore @KDE_INCLUDEPATH@/kdesu +libs = -L@BL_KDEDIR@ -lsip -lqtcmodule -lDCOP -lkdecore -lkdesu -ldcopcmodule -lkdecorecmodule + +retain + + +// ----------------------------------------- + +module = kdefx + +ignore = +source = $SRC/kdefx +compare = $COMP +subst = $DST/extra/kde352 +import = qtmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +import = dcop +import = kdecore +importpath = $IMP +amend = * ctor parent /TransferThis/ +amend = * all parent /Transfer/ +include = ../kdecore @KDE_INCLUDEPATH@/kdeprint +libs = -L@BL_KDEDIR@ -lsip -lqtcmodule -lDCOP -lkdefx -lkdeui -lkdecore -lkdecorecmodule -ldcopcmodule +define = "KDEFX_EXPORT", "" + +retain + +// ----------------------------------------- + +module = kdeui + +//trace = kactioncollection.sip + +source = $SRC/kdeui/ +ignore = kcolorbutton.h kcolordlg.h kwidgetid.h kaccelgen.h kdatepik.h kdualcolorbtn.h kxmlgui.h kdockwidget_p.h +ignore = kdockwindow.h ksconfig.h kspell.h kspelldlg.h klistviewlineedit.h ksyntaxhighlighter.h ksharedpixmap.h +compare = $COMP +subst = $DST/extra/kde352 +import = qtmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +import = qtxmlmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +import = dcop +import = kdecore +import = kdefx +importpath = $IMP +include = ../dcop ../kdecore ../pythonize ../pykpanelapplet +libs = -L@BL_KDEDIR@ -lsip -lqtcmodule -lqtxmlcmodule -lDCOP -lkdecore -lkdeui\ + -ldcopcmodule -lkdecorecmodule -lqt-mt -lkdefx -lkdefxcmodule -lpythonize +amend = * ctor parent /TransferThis/ +amend = KDockMainWindow all parent /TransferThis/ +amend = KDockArea all parent /TransferThis/ +amend = * all parent /Transfer/ +sipslot = receiver member kaccelmenu +sipslot = receiver slot kaction kactionclasses kbuttonbox ktoolbar +sipslot = recvr slot kstdaction +define = "QT_VERSION", "301" +define = "KDEUI_EXPORT", "" + +retain + +// ----------------------------------------- + +module = kio + +source = $SRC/kio/kio $DST/extra/kde352/kio +ignore = kmdbase.h uiserver_stub.h kdirnotify_stub.h uiserver.h http_slave_defaults.h ioslave_defaults.h +ignore = kmimetyperesolver.h +compare = $COMP $COMP/kio +subst = $DST/extra/kde352 +import = qtmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +import = qtxmlmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +import = dcop +import = kdecore +import = kdefx +import = kdeui +importpath = $IMP +amend = * ctor parent /TransferThis/ +amend = * all parent /Transfer/ +include = ../extra/kde352/kio @KDE_INCLUDEPATH@/kio ../kdecore +libs = -L@BL_KDEDIR@ -lsip -lqtcmodule -lDCOP -lkio -lkdeui -lkdecore -ldcopcmodule\ + -lkdecorecmodule -lkdeuicmodule +sipslot = +define = "\(KIO::filesize_t\)\-1", "-1" +define = "KIO_EXPORT_DEPRECATED", "" +define = "KIO_EXPORT", "" + +retain + +// ----------------------------------------- + +module = kresources + +source = $SRC/kresources +ignore = +compare = $COMP $COMP/kresources +subst = +ignore = manager.h manageriface.h managerimpl.h +import = qtmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +import = qtxmlmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +import = dcopmod.sip +import = kdecoremod.sip +import = kdefxmod.sip +import = kdeuimod.sip +import = kiomod.sip +importpath = $IMP +libs = -L@BL_KDEDIR@ -lsip -lqtcmodule -lkresources +define = "KDE_DEPRECATED", "" +define = "KRESOURCES_EXPORT", "" + +retain + +// ----------------------------------------- + +module = kabc + +source = $SRC/kabc $SRC/kabc/plugins/file +ignore = +compare = $COMP $COMP/kabc +subst = +import = qtmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +import = qtxmlmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +import = dcopmod.sip +import = kdecoremod.sip +import = kdefxmod.sip +import = kdeuimod.sip +import = kiomod.sip +import = kresourcesmod.sip +importpath = $IMP +libs = -L@BL_KDEDIR@ -lsip -lqtcmodule -lkabc -lkabc_file +define = "KDE_DEPRECATED", "" +define = "KABC_EXPORT", "" +define = "typedef enum", "enum" + +retain + +// ----------------------------------------- + +module = kutils + +source = $SRC/kutils/ +ignore = +compare = $COMP +subst = $DST/extra/kde352 +ignore = kcmodulecontainer.h +import = qtmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +import = dcopmod.sip +import = kdecoremod.sip +import = qtxmlmod.sip +import = kdefxmod.sip +import = kdeuimod.sip +//import = kiomod.sip +//import = kfilemod.sip +//import = kpartsmod.sip +importpath = $IMP +include = ../dcop ../kdecore ../kdeui ../pythonize ../pykpanelapplet +libs = -L@BL_KDEDIR@ -lsip -lqtcmodule -lqtxmlcmodule -lDCOP -lkdecore -lkdeui\ + -ldcopcmodule -lkdecorecmodule -lqt-mt -lkdefx -lkdefxcmodule -lpythonize -lkdeuicmodule\ + -lkutils +define = "class\ KMultiTabBarButton\ \*", "KMultiTabBarButton *" +define = "class\ KMultiTabBarTab\ \*", "KMultiTabBarTab *" + +retain + +// ----------------------------------------- + +module = kfile + +source = $SRC/kio/kfile +ignore = kpropsdlg.h +compare = $COMP $COMP/kio +subst = $DST/extra/kde352 +import = qtmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +import = qtxmlmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +import = dcop +import = kdecore +import = kdefx +import = kdeui +import = kio +importpath = $IMP +amend = * ctor parent /TransferThis/ +amend = * all parent /Transfer/ +include = @KDE_INCLUDEPATH@/kio ../kdecore ../kio +libs = -L@BL_KDEDIR@ -lsip -lqtcmodule -lDCOP -lkio -lkdeui -lkdecore -ldcopcmodule\ + -lkdecorecmodule -lkdeuicmodule -lkiocmodule + +retain + +// ----------------------------------------- + +module = kparts + +source = $SRC/kparts +ignore = componentfactory.h +compare = $COMP/kparts +subst = $DST/extra/kde352 +import = qtmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +import = qtxmlmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +import = dcop +import = kdecore +import = kdefx +import = kdeui +import = kio +importpath = $IMP +amend = * ctor parent /TransferThis/ +amend = * all parent /Transfer/ +include = @KDE_INCLUDEPATH@/kparts @KDE_INCLUDEPATH@/kio ../kdecore ../kio +libs = -L@BL_KDEDIR@ -lsip -lqtcmodule -lDCOP -lkparts -lkdeui -lkdecore -lkio -lkdeuicmodule\ + -lkdecorecmodule -lkiocmodule -ldcopcmodule -lkiocmodule + +retain + +// ----------------------------------------- + +module = khtml + +source = $SRC/khtml $SRC/khtml/dom +ignore = khtmldefaults.h dom_core.h dom_html.h khtml_events.h +compare = $COMP $COMP/dom +subst = $DST/extra/kde352 +import = qtmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +import = qtxmlmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +import = dcop +import = kdecore +import = kdefx +import = kdeui +import = kio +import = kutils +import = kparts +importpath = $IMP +amend = * ctor parent /TransferThis/ +amend = * all parent /Transfer/ +include = @KDE_INCLUDEPATH@/khtml @KDE_INCLUDEPATH@/dom @KDE_INCLUDEPATH@/kparts\ + @KDE_INCLUDEPATH@/kio ../kdecore ../kio +libs = -L@BL_KDEDIR@ -lsip -lqtcmodule -lDCOP -lkdeui -lkhtml -lkparts -lkdecore -lkio\ + -lkdeuicmodule -lkdecorecmodule -lkiocmodule -lkpartscmodule -ldcopcmodule + +define = "KHTML_EXPORT", "" +retain + +// ----------------------------------------- + +//module = kjs + +//source = $SRC/kjs +//ignore = global.h +//compare = $COMP/kjs $DST/extra/kde352 +//subst = $DST/extra/kde352 +//import = qtmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +//import = qtxmlmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +//import = dcop +//import = kdecore +//import = kdefx +//import = kdeui +//import = kio +//import = kparts +//import = khtml +//importpath = $IMP +//include = @KDE_INCLUDEPATH@/kjs @KDE_INCLUDEPATH@/dom @KDE_INCLUDEPATH@/kio\ +// ../kdecore ../kio +//amend = * ctor parent /TransferThis/ +//amend = * all parent /Transfer/ +//libs = -L@BL_KDEDIR@ -lsip -lqtcmodule -lDCOP -lkjs -lkdeui -lkdecore -lkio -lkhtml\ +// -lkdeuicmodule -lkdecorecmodule -lkhtmlcmodule -lkiocmodule -ldcopcmodule + +//retain + +// ----------------------------------------- + +module = kspell + +ignore = +source = $DST/extra/kde352/kspell +compare = $COMP +subst = $DST/extra/kde352 +import = qtmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +import = qtxmlmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +import = dcop +import = kdecore +import = kdefx +import = kdeui +import = kfile +importpath = $IMP +include = ../kdecore @KDE_INCLUDEPATH@/kio +amend = * ctor parent /TransferThis/ const KGuiItem& nullGuiItem (QString::null); + +amend = * all parent /Transfer/ +libs = -L@BL_KDEDIR@ -lsip -lqtcmodule -lDCOP -lkspell -lkdeui -lkdecore -lkio\ + -lkdecorecmodule -lkdeuicmodule -lkfilecmodule -ldcopcmodule +sipslot = obj slot kspell + +code +%PrePythonCode +import kfile +%End +end + +retain + +// ----------------------------------------- + +module = kdeprint + +ignore = driver.h +source = $SRC/kdeprint +compare = $COMP $COMP/kdeprint +subst = $DST/extra/kde352 +import = qtmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +import = qtxmlmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +import = dcop +import = kdecore +import = kdefx +import = kdeui +importpath = $IMP +amend = * ctor parent /TransferThis/ +amend = * all parent /Transfer/ +include = ../kdecore @KDE_INCLUDEPATH@/kdeprint +libs = -L@BL_KDEDIR@ -lsip -lqtcmodule -lDCOP -lkdeprint -lkdecore -lkdecorecmodule\ + -ldcopcmodule -lkdeui -lkdeuicmodule +define = "KDEPRINT_EXPORT", "" +retain + +// ----------------------------------------- + +module = kmdi + +source = $SRC/kmdi/ +ignore = +compare = $COMP +subst = $DST/extra/kde352 +import = qtmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +import = dcopmod.sip +import = kdecoremod.sip +import = qtxmlmod.sip +import = kdefxmod.sip +import = kdeuimod.sip +//import = kiomod.sip +//import = kfilemod.sip +//import = kpartsmod.sip +importpath = $IMP +ignore = kmdiiterator.h kmdilistiterator.h kmdinulliterator.h + +include = ../dcop ../kdecore ../kdeui ../pythonize ../pykpanelapplet +libs = -L@BL_KDEDIR@ -lsip -lqtcmodule -lqtxmlcmodule -lDCOP -lkdecore -lkdeui\ + -ldcopcmodule -lkdecorecmodule -lqt-mt -lkdefx -lkdefxcmodule -lpythonize -lkdeuicmodule\ + -lkmdi +define = "QT_VERSION", "301" +define = "QMainWindow::ToolBarDock", "Qt::Dock" + +retain + + +// ----------------------------------------- + +//module = kspell2 + +//source = $SRC/kspell2/ +//ignore = +//compare = $COMP +//subst = $DST/extra/kde352 +//import = qtmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +//import = dcopmod.sip +//import = kdecoremod.sip +//import = qtxmlmod.sip +//import = kdefxmod.sip +//import = kdeuimod.sip +////import = kiomod.sip +////import = kfilemod.sip +////import = kpartsmod.sip +//importpath = $IMP +//include = ../dcop ../kdecore ../kdeui ../pythonize ../pykpanelapplet +//libs = -L@BL_KDEDIR@ -lsip -lqtcmodule -lqtxmlcmodule -lDCOP -lkdecore -lkdeui\ +// -ldcopcmodule -lkdecorecmodule -lqt-mt -lkdefx -lkdefxcmodule -lpythonize -lkdeuicmodule\ +// -lkspell2 +// +//retain + + + // ------------- build data ----------------- + +//build + +//release = 3.7-1 +//version = 3.7 +//usingQt +//usingKDE + + diff --git a/pykde353.prj b/pykde353.prj new file mode 100644 index 0000000..defdd72 --- /dev/null +++ b/pykde353.prj @@ -0,0 +1,495 @@ + +// Copyright 2002-2003 Jim Bublitz + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 331, Boston, MA 02110-1301, USA. + + +// project file for PyKDE +// ---------------------- + + +// ------------- project data --------------- + +project = PyKDE + +destination = /home/jim/PyKDE353 +source = /server/source/KDESrc/kdelibs-3.5.3 +compare = /opt/kde3/include +importpath = /usr/share/sip +prevpath = /home/jim/PyKDE/sip + +version = KDE_3_5_3 +secondary = WS_X11 +previous = KDE_3_5_2 + +license = GPL +copyright = + + +// ------------- module data ---------------- + +module = dcop + +timeline = KDE_3_0_0 KDE_3_0_1 KDE_3_0_3 KDE_3_1_0 KDE_3_1_1 KDE_3_1_2 KDE_3_1_3 KDE_3_1_4 KDE_3_1_5 KDE_3_2_0 KDE_3_2_1 KDE_3_2_2 KDE_3_2_3 KDE_3_3_0 KDE_3_3_1 KDE_3_3_2 KDE_3_4_0 KDE_3_4_1 KDE_3_4_2 KDE_3_4_3 KDE_3_5_0 KDE_3_5_1 KDE_3_5_2 KDE_3_5_3 +source = $SRC/dcop $DST/extra/kde353/dcop +ignore = dcopc.h dcopserver.h dcopsignals.h kdatastream.h dcoptypes.h +compare = $COMP $DST/extra/kde353/dcop +subst = $DST/extra/kde353 +import = qtmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +importpath = $IMP +sipslot = callBackObj callBackSlot dcopClient +include = ../extra/kde353/dcop +libs = -L@BL_KDEDIR@ -lsip -lqtcmodule -lDCOP +define = "KDE_DEPRECATED", "" +define = "DCOP_EXPORT", "" + +retain + +// ----------------------------------------- + +module = kdecore + +//trace = kapplication.h + +source = $SRC/kdecore +ignore = netwm_p.h kde_dmalloc.h kunload.h kdatastream.h ksockaddr.h kextsock.h ksocks.h +ignore = ksycocaentry.h ksycocafactory.h ksycocatype.h ksycoca.h kapp.h kstandarddirs.h +ignore = kgenericfactory.h ktypelist.h kvmallocator.h ksortablevaluelist.h +ignore = kextendedsocket.h klargefile.h kdebug.h kdebugclasses.h kxmessages.h kaccelmanager.h +ignore = kdemacros.h kxerrorhandler.h fixx11.h kuser.h kuniqueapp.h kde_file.h kdelibs_export.h +ignore = kswap.h +compare = $COMP $DST/extra/kde353 +subst = $DST/extra/kde353 +import = qtmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +import = dcop +importpath = $IMP +include = +libs = -L@BL_KDEDIR@ -lsip -lqtcmodule -lDCOP -lkdecore -ldcopcmodule +amend = * ctor parent /TransferThis/ +amend = * all parent /Transfer/ +sipslot = pObjSlot psMethodSlot kaccel kglobalaccel +define = "Q_WS_X11", "1" +define = "\(Qt::ALT \<\< 1\)", "16777216" +define = "\(Qt::META\)", "16777216" +define = "enum\ URIMode\ m_iUriMode\ \:\ 3\;", "" +define = "Q_INT32", "long" +define = "Q_UINT32", "ulong" +define = "Q_INT64", "longlong" +define = "Q_UINT64", "ulonglong" +define = "mutable union", "union" +define = "KDECORE_EXPORT", "" +define = "KDE_EXPORT", "" +retain + +// ----------------------------------------- + +module = kdesu + +source = $SRC/kdesu +ignore = +compare = $COMP/kdesu +subst = $DST/extra/kde353 +import = qtmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +import = dcop +import = kdecore +importpath = $IMP +amend = * ctor parent /TransferThis/ +amend = * all parent /Transfer/ +include = ../kdecore @KDE_INCLUDEPATH@/kdesu +libs = -L@BL_KDEDIR@ -lsip -lqtcmodule -lDCOP -lkdecore -lkdesu -ldcopcmodule -lkdecorecmodule + +retain + + +// ----------------------------------------- + +module = kdefx + +ignore = +source = $SRC/kdefx +compare = $COMP +subst = $DST/extra/kde353 +import = qtmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +import = dcop +import = kdecore +importpath = $IMP +amend = * ctor parent /TransferThis/ +amend = * all parent /Transfer/ +include = ../kdecore @KDE_INCLUDEPATH@/kdeprint +libs = -L@BL_KDEDIR@ -lsip -lqtcmodule -lDCOP -lkdefx -lkdeui -lkdecore -lkdecorecmodule -ldcopcmodule +define = "KDEFX_EXPORT", "" + +retain + +// ----------------------------------------- + +module = kdeui + +//trace = kactioncollection.sip + +source = $SRC/kdeui/ +ignore = kcolorbutton.h kcolordlg.h kwidgetid.h kaccelgen.h kdatepik.h kdualcolorbtn.h kxmlgui.h kdockwidget_p.h +ignore = kdockwindow.h ksconfig.h kspell.h kspelldlg.h klistviewlineedit.h ksyntaxhighlighter.h ksharedpixmap.h +compare = $COMP +subst = $DST/extra/kde353 +import = qtmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +import = qtxmlmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +import = dcop +import = kdecore +import = kdefx +importpath = $IMP +include = ../dcop ../kdecore ../pythonize ../pykpanelapplet +libs = -L@BL_KDEDIR@ -lsip -lqtcmodule -lqtxmlcmodule -lDCOP -lkdecore -lkdeui\ + -ldcopcmodule -lkdecorecmodule -lqt-mt -lkdefx -lkdefxcmodule -lpythonize +amend = * ctor parent /TransferThis/ +amend = KDockMainWindow all parent /TransferThis/ +amend = KDockArea all parent /TransferThis/ +amend = * all parent /Transfer/ +sipslot = receiver member kaccelmenu +sipslot = receiver slot kaction kactionclasses kbuttonbox ktoolbar +sipslot = recvr slot kstdaction +define = "QT_VERSION", "301" +define = "KDEUI_EXPORT", "" + +retain + +// ----------------------------------------- + +module = kio + +source = $SRC/kio/kio $DST/extra/kde353/kio +ignore = kmdbase.h uiserver_stub.h kdirnotify_stub.h uiserver.h http_slave_defaults.h ioslave_defaults.h +ignore = kmimetyperesolver.h +compare = $COMP $COMP/kio +subst = $DST/extra/kde353 +import = qtmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +import = qtxmlmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +import = dcop +import = kdecore +import = kdefx +import = kdeui +importpath = $IMP +amend = * ctor parent /TransferThis/ +amend = * all parent /Transfer/ +include = ../extra/kde353/kio @KDE_INCLUDEPATH@/kio ../kdecore +libs = -L@BL_KDEDIR@ -lsip -lqtcmodule -lDCOP -lkio -lkdeui -lkdecore -ldcopcmodule\ + -lkdecorecmodule -lkdeuicmodule +sipslot = +define = "\(KIO::filesize_t\)\-1", "-1" +define = "KIO_EXPORT_DEPRECATED", "" +define = "KIO_EXPORT", "" + +retain + +// ----------------------------------------- + +module = kresources + +source = $SRC/kresources +ignore = +compare = $COMP $COMP/kresources +subst = +ignore = manager.h manageriface.h managerimpl.h +import = qtmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +import = qtxmlmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +import = dcopmod.sip +import = kdecoremod.sip +import = kdefxmod.sip +import = kdeuimod.sip +import = kiomod.sip +importpath = $IMP +libs = -L@BL_KDEDIR@ -lsip -lqtcmodule -lkresources +define = "KDE_DEPRECATED", "" +define = "KRESOURCES_EXPORT", "" + +retain + +// ----------------------------------------- + +module = kabc + +source = $SRC/kabc $SRC/kabc/plugins/file +ignore = +compare = $COMP $COMP/kabc +subst = +import = qtmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +import = qtxmlmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +import = dcopmod.sip +import = kdecoremod.sip +import = kdefxmod.sip +import = kdeuimod.sip +import = kiomod.sip +import = kresourcesmod.sip +importpath = $IMP +libs = -L@BL_KDEDIR@ -lsip -lqtcmodule -lkabc -lkabc_file +define = "KDE_DEPRECATED", "" +define = "KABC_EXPORT", "" +define = "typedef enum", "enum" + +retain + +// ----------------------------------------- + +module = kutils + +source = $SRC/kutils/ +ignore = +compare = $COMP +subst = $DST/extra/kde353 +ignore = kcmodulecontainer.h +import = qtmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +import = dcopmod.sip +import = kdecoremod.sip +import = qtxmlmod.sip +import = kdefxmod.sip +import = kdeuimod.sip +//import = kiomod.sip +//import = kfilemod.sip +//import = kpartsmod.sip +importpath = $IMP +include = ../dcop ../kdecore ../kdeui ../pythonize ../pykpanelapplet +libs = -L@BL_KDEDIR@ -lsip -lqtcmodule -lqtxmlcmodule -lDCOP -lkdecore -lkdeui\ + -ldcopcmodule -lkdecorecmodule -lqt-mt -lkdefx -lkdefxcmodule -lpythonize -lkdeuicmodule\ + -lkutils +define = "class\ KMultiTabBarButton\ \*", "KMultiTabBarButton *" +define = "class\ KMultiTabBarTab\ \*", "KMultiTabBarTab *" + +retain + +// ----------------------------------------- + +module = kfile + +source = $SRC/kio/kfile +ignore = kpropsdlg.h +compare = $COMP $COMP/kio +subst = $DST/extra/kde353 +import = qtmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +import = qtxmlmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +import = dcop +import = kdecore +import = kdefx +import = kdeui +import = kio +importpath = $IMP +amend = * ctor parent /TransferThis/ +amend = * all parent /Transfer/ +include = @KDE_INCLUDEPATH@/kio ../kdecore ../kio +libs = -L@BL_KDEDIR@ -lsip -lqtcmodule -lDCOP -lkio -lkdeui -lkdecore -ldcopcmodule\ + -lkdecorecmodule -lkdeuicmodule -lkiocmodule + +retain + +// ----------------------------------------- + +module = kparts + +source = $SRC/kparts +ignore = componentfactory.h +compare = $COMP/kparts +subst = $DST/extra/kde353 +import = qtmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +import = qtxmlmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +import = dcop +import = kdecore +import = kdefx +import = kdeui +import = kio +importpath = $IMP +amend = * ctor parent /TransferThis/ +amend = * all parent /Transfer/ +include = @KDE_INCLUDEPATH@/kparts @KDE_INCLUDEPATH@/kio ../kdecore ../kio +libs = -L@BL_KDEDIR@ -lsip -lqtcmodule -lDCOP -lkparts -lkdeui -lkdecore -lkio -lkdeuicmodule\ + -lkdecorecmodule -lkiocmodule -ldcopcmodule -lkiocmodule + +retain + +// ----------------------------------------- + +module = khtml + +source = $SRC/khtml $SRC/khtml/dom +ignore = khtmldefaults.h dom_core.h dom_html.h khtml_events.h +compare = $COMP $COMP/dom +subst = $DST/extra/kde353 +import = qtmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +import = qtxmlmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +import = dcop +import = kdecore +import = kdefx +import = kdeui +import = kio +import = kutils +import = kparts +importpath = $IMP +amend = * ctor parent /TransferThis/ +amend = * all parent /Transfer/ +include = @KDE_INCLUDEPATH@/khtml @KDE_INCLUDEPATH@/dom @KDE_INCLUDEPATH@/kparts\ + @KDE_INCLUDEPATH@/kio ../kdecore ../kio +libs = -L@BL_KDEDIR@ -lsip -lqtcmodule -lDCOP -lkdeui -lkhtml -lkparts -lkdecore -lkio\ + -lkdeuicmodule -lkdecorecmodule -lkiocmodule -lkpartscmodule -ldcopcmodule + +define = "KHTML_EXPORT", "" +retain + +// ----------------------------------------- + +//module = kjs + +//source = $SRC/kjs +//ignore = global.h +//compare = $COMP/kjs $DST/extra/kde353 +//subst = $DST/extra/kde353 +//import = qtmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +//import = qtxmlmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +//import = dcop +//import = kdecore +//import = kdefx +//import = kdeui +//import = kio +//import = kparts +//import = khtml +//importpath = $IMP +//include = @KDE_INCLUDEPATH@/kjs @KDE_INCLUDEPATH@/dom @KDE_INCLUDEPATH@/kio\ +// ../kdecore ../kio +//amend = * ctor parent /TransferThis/ +//amend = * all parent /Transfer/ +//libs = -L@BL_KDEDIR@ -lsip -lqtcmodule -lDCOP -lkjs -lkdeui -lkdecore -lkio -lkhtml\ +// -lkdeuicmodule -lkdecorecmodule -lkhtmlcmodule -lkiocmodule -ldcopcmodule + +//retain + +// ----------------------------------------- + +module = kspell + +ignore = +source = $DST/extra/kde353/kspell +compare = $COMP +subst = $DST/extra/kde353 +import = qtmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +import = qtxmlmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +import = dcop +import = kdecore +import = kdefx +import = kdeui +import = kfile +importpath = $IMP +include = ../kdecore @KDE_INCLUDEPATH@/kio +amend = * ctor parent /TransferThis/ const KGuiItem& nullGuiItem (QString::null); + +amend = * all parent /Transfer/ +libs = -L@BL_KDEDIR@ -lsip -lqtcmodule -lDCOP -lkspell -lkdeui -lkdecore -lkio\ + -lkdecorecmodule -lkdeuicmodule -lkfilecmodule -ldcopcmodule +sipslot = obj slot kspell + +code +%PrePythonCode +import kfile +%End +end + +retain + +// ----------------------------------------- + +module = kdeprint + +ignore = driver.h +source = $SRC/kdeprint +compare = $COMP $COMP/kdeprint +subst = $DST/extra/kde353 +import = qtmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +import = qtxmlmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +import = dcop +import = kdecore +import = kdefx +import = kdeui +importpath = $IMP +amend = * ctor parent /TransferThis/ +amend = * all parent /Transfer/ +include = ../kdecore @KDE_INCLUDEPATH@/kdeprint +libs = -L@BL_KDEDIR@ -lsip -lqtcmodule -lDCOP -lkdeprint -lkdecore -lkdecorecmodule\ + -ldcopcmodule -lkdeui -lkdeuicmodule +define = "KDEPRINT_EXPORT", "" +retain + +// ----------------------------------------- + +module = kmdi + +source = $SRC/kmdi/ +ignore = +compare = $COMP +subst = $DST/extra/kde353 +import = qtmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +import = dcopmod.sip +import = kdecoremod.sip +import = qtxmlmod.sip +import = kdefxmod.sip +import = kdeuimod.sip +//import = kiomod.sip +//import = kfilemod.sip +//import = kpartsmod.sip +importpath = $IMP +ignore = kmdiiterator.h kmdilistiterator.h kmdinulliterator.h + +include = ../dcop ../kdecore ../kdeui ../pythonize ../pykpanelapplet +libs = -L@BL_KDEDIR@ -lsip -lqtcmodule -lqtxmlcmodule -lDCOP -lkdecore -lkdeui\ + -ldcopcmodule -lkdecorecmodule -lqt-mt -lkdefx -lkdefxcmodule -lpythonize -lkdeuicmodule\ + -lkmdi +define = "QT_VERSION", "301" +define = "QMainWindow::ToolBarDock", "Qt::Dock" + +retain + + +// ----------------------------------------- + +//module = kspell2 + +//source = $SRC/kspell2/ +//ignore = +//compare = $COMP +//subst = $DST/extra/kde353 +//import = qtmod.sip (Qt_3_0_0 Qt_4_0_0 WS_X11) +//import = dcopmod.sip +//import = kdecoremod.sip +//import = qtxmlmod.sip +//import = kdefxmod.sip +//import = kdeuimod.sip +////import = kiomod.sip +////import = kfilemod.sip +////import = kpartsmod.sip +//importpath = $IMP +//include = ../dcop ../kdecore ../kdeui ../pythonize ../pykpanelapplet +//libs = -L@BL_KDEDIR@ -lsip -lqtcmodule -lqtxmlcmodule -lDCOP -lkdecore -lkdeui\ +// -ldcopcmodule -lkdecorecmodule -lqt-mt -lkdefx -lkdefxcmodule -lpythonize -lkdeuicmodule\ +// -lkspell2 +// +//retain + + + // ------------- build data ----------------- + +//build + +//release = 3.7-1 +//version = 3.7 +//usingQt +//usingKDE + + diff --git a/pykdeconfig.py b/pykdeconfig.py new file mode 100644 index 0000000..5fcd38b --- /dev/null +++ b/pykdeconfig.py @@ -0,0 +1,225 @@ +# Copyright (c) 2004 +# Riverbank Computing Limited +# Jim Bublitz +# +# This file is part of PyKDE. +# +# This copy of PyKDE is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by the Free +# Software Foundation; either version 2, or (at your option) any later +# version. +# +# PyKDE is supplied in the hope that it will be useful, but WITHOUT ANY +# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +# details. +# +# You should have received a copy of the GNU General Public License along with +# PyKDE; see the file LICENSE. If not, write to the Free Software Foundation, +# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# +# This module is intended to be used by the configuration scripts of extension +# modules that %Import PyKDE modules. + + +import sipconfig, pyqtconfig + + +# These are installation specific values created when PyQt was configured. +_pkg_config = { + 'dist_name': '', + 'kde_version': 0x030503, + 'kde_version_extra': 'kde353', + 'kde_version_sfx': '-kde353.diff', + 'kde_version_str': '3.5.3', + 'kdebasedir': '/opt/kde3', + 'kdeincdir': '/opt/kde3/include', + 'kdelibdir': '/opt/kde3/lib', + 'libdir': 'lib', + 'pykde_kde_sip_flags': '-t ALL -x Qt_STYLE_WINDOWSXP -x Qt_STYLE_INTERLACE -x Qt_STYLE_WINDOWSXP -x Qt_SIP_PRE_4_7_2 -x VendorID -t WS_X11 -t Qt_3_3_6 -t KDE_3_5_3', + 'pykde_mod_dir': '/usr/lib/python2.5/site-packages', + 'pykde_modules': 'dcop kdecore kdefx kdeui kio kresources kabc kutils kfile kparts khtml kspell kdeprint kmdi', + 'pykde_sip_dir': '/usr/share/sip', + 'pykde_version': 0x031000, + 'pykde_version_str': '3.16.0' +} + +_default_macros = None + + +class Configuration(pyqtconfig.Configuration): + """The class that represents PyQt configuration values. + """ + def __init__(self, sub_cfg=None): + """Initialise an instance of the class. + + sub_cfg is the list of sub-class configurations. It should be None + when called normally. + """ + if sub_cfg: + cfg = sub_cfg + else: + cfg = [] + + cfg.append(_pkg_config) + + pyqtconfig.Configuration.__init__(self, cfg) + + +class DCOPModuleMakefile(pyqtconfig.QtModuleMakefile): + """The Makefile class for modules that %Import DCOP. + """ + def finalise(self): + """Finalise the macros. + """ + if self.config.sip_version < 0x040000: + # Note that we don't use self.extra_lib_dirs because we don't want + # it to be added to the rpath. + self.LIBDIR.append(self.config.pykde_mod_dir) + self.LIBDIR.append(self.config.pykde_lib_dir) + self.extra_libs.append(self.module_as_lib("DCOP")) + + pyqtconfig.QtModuleMakefile.finalise(self) + +class KdecoreModuleMakefile(DCOPModuleMakefile): + """The Makefile class for modules that %Import kdecore. + """ + def finalise(self): + """Finalise the macros. + """ + if self.config.sip_version < 0x040000: + # Note that we don't use self.extra_lib_dirs because we don't want + # it to be added to the rpath. + self.LIBDIR.append(self.config.pyqt_mod_dir) + self.extra_libs.append(self.module_as_lib("kdecore")) + + DCOPModuleMakefile.finalise(self) + +class KdesuModuleMakefile(KdecoreModuleMakefile): + """The Makefile class for modules that %Import kdesu. + """ + def finalise(self): + """Finalise the macros. + """ + if self.config.sip_version < 0x040000: + # Note that we don't use self.extra_lib_dirs because we don't want + # it to be added to the rpath. + self.LIBDIR.append(self.config.pyqt_mod_dir) + self.extra_libs.append(self.module_as_lib("kdesu")) + + KdecoreModuleMakefile.finalise(self) + +class KdefxModuleMakefile(KdecoreModuleMakefile): + """The Makefile class for modules that %Import kdefx. + """ + def finalise(self): + """Finalise the macros. + """ + if self.config.sip_version < 0x040000: + # Note that we don't use self.extra_lib_dirs because we don't want + # it to be added to the rpath. + self.LIBDIR.append(self.config.pyqt_mod_dir) + self.extra_libs.append(self.module_as_lib("kdefx")) + + KdecoreModuleMakefile.finalise(self) + +class KdeuiModuleMakefile(KdefxModuleMakefile): + """The Makefile class for modules that %Import kdeui. + """ + def finalise(self): + """Finalise the macros. + """ + if self.config.sip_version < 0x040000: + # Note that we don't use self.extra_lib_dirs because we don't want + # it to be added to the rpath. + self.LIBDIR.append(self.config.pyqt_mod_dir) + self.extra_libs.append(self.module_as_lib("kdeui")) + + if self.config.sip_version < 0x040000: + self.extra_libs.append(self.module_as_lib("qtxml")) + + KdefxModuleMakefile.finalise(self) + +class KioModuleMakefile(KdeuiModuleMakefile): + """The Makefile class for modules that %Import kio. + """ + def finalise(self): + """Finalise the macros. + """ + if self.config.sip_version < 0x040000: + # Note that we don't use self.extra_lib_dirs because we don't want + # it to be added to the rpath. + self.LIBDIR.append(self.config.pyqt_mod_dir) + self.extra_libs.append(self.module_as_lib("kio")) + + KdeuiModuleMakefile.finalise(self) + +class KfileModuleMakefile(KioModuleMakefile): + """The Makefile class for modules that %Import kfile. + """ + def finalise(self): + """Finalise the macros. + """ + if self.config.sip_version < 0x040000: + # Note that we don't use self.extra_lib_dirs because we don't want + # it to be added to the rpath. + self.LIBDIR.append(self.config.pyqt_mod_dir) + self.extra_libs.append(self.module_as_lib("kfile")) + + KioModuleMakefile.finalise(self) + +class KpartsModuleMakefile(KfileModuleMakefile): + """The Makefile class for modules that %Import kparts. + """ + def finalise(self): + """Finalise the macros. + """ + if self.config.sip_version < 0x040000: + # Note that we don't use self.extra_lib_dirs because we don't want + # it to be added to the rpath. + self.LIBDIR.append(self.config.pyqt_mod_dir) + self.extra_libs.append(self.module_as_lib("kparts")) + + KfileModuleMakefile.finalise(self) + +class KhtmlModuleMakefile(KpartsModuleMakefile): + """The Makefile class for modules that %Import khtml. + """ + def finalise(self): + """Finalise the macros. + """ + if self.config.sip_version < 0x040000: + # Note that we don't use self.extra_lib_dirs because we don't want + # it to be added to the rpath. + self.LIBDIR.append(self.config.pyqt_mod_dir) + self.extra_libs.append(self.module_as_lib("khtml")) + + KpartsModuleMakefile.finalise(self) + +class KjsModuleMakefile(KhtmlModuleMakefile): + """The Makefile class for modules that %Import kjs. + """ + def finalise(self): + """Finalise the macros. + """ + if self.config.sip_version < 0x040000: + # Note that we don't use self.extra_lib_dirs because we don't want + # it to be added to the rpath. + self.LIBDIR.append(self.config.pyqt_mod_dir) + self.extra_libs.append(self.module_as_lib("kjs")) + + KjsModuleMakefile.finalise(self) + +class KdeprintModuleMakefile(KdeuiModuleMakefile): + """The Makefile class for modules that %Import kdeprint. + """ + def finalise(self): + """Finalise the macros. + """ + if self.config.sip_version < 0x040000: + # Note that we don't use self.extra_lib_dirs because we don't want + # it to be added to the rpath. + self.LIBDIR.append(self.config.pyqt_mod_dir) + self.extra_libs.append(self.module_as_lib("kdeprint")) + + KdeuiModuleMakefile.finalise(self) diff --git a/pykdeconfig.py.in b/pykdeconfig.py.in new file mode 100644 index 0000000..18661c7 --- /dev/null +++ b/pykdeconfig.py.in @@ -0,0 +1,207 @@ +# Copyright (c) 2004 +# Riverbank Computing Limited +# Jim Bublitz +# +# This file is part of PyKDE. +# +# This copy of PyKDE is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by the Free +# Software Foundation; either version 2, or (at your option) any later +# version. +# +# PyKDE is supplied in the hope that it will be useful, but WITHOUT ANY +# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +# details. +# +# You should have received a copy of the GNU General Public License along with +# PyKDE; see the file LICENSE. If not, write to the Free Software Foundation, +# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# +# This module is intended to be used by the configuration scripts of extension +# modules that %Import PyKDE modules. + + +import sipconfig, pyqtconfig + + +# These are installation specific values created when PyQt was configured. +# @SIP_CONFIGURATION@ + + +class Configuration(pyqtconfig.Configuration): + """The class that represents PyQt configuration values. + """ + def __init__(self, sub_cfg=None): + """Initialise an instance of the class. + + sub_cfg is the list of sub-class configurations. It should be None + when called normally. + """ + if sub_cfg: + cfg = sub_cfg + else: + cfg = [] + + cfg.append(_pkg_config) + + pyqtconfig.Configuration.__init__(self, cfg) + + +class DCOPModuleMakefile(pyqtconfig.QtModuleMakefile): + """The Makefile class for modules that %Import DCOP. + """ + def finalise(self): + """Finalise the macros. + """ + if self.config.sip_version < 0x040000: + # Note that we don't use self.extra_lib_dirs because we don't want + # it to be added to the rpath. + self.LIBDIR.append(self.config.pykde_mod_dir) + self.LIBDIR.append(self.config.pykde_lib_dir) + self.extra_libs.append(self.module_as_lib("DCOP")) + + pyqtconfig.QtModuleMakefile.finalise(self) + +class KdecoreModuleMakefile(DCOPModuleMakefile): + """The Makefile class for modules that %Import kdecore. + """ + def finalise(self): + """Finalise the macros. + """ + if self.config.sip_version < 0x040000: + # Note that we don't use self.extra_lib_dirs because we don't want + # it to be added to the rpath. + self.LIBDIR.append(self.config.pyqt_mod_dir) + self.extra_libs.append(self.module_as_lib("kdecore")) + + DCOPModuleMakefile.finalise(self) + +class KdesuModuleMakefile(KdecoreModuleMakefile): + """The Makefile class for modules that %Import kdesu. + """ + def finalise(self): + """Finalise the macros. + """ + if self.config.sip_version < 0x040000: + # Note that we don't use self.extra_lib_dirs because we don't want + # it to be added to the rpath. + self.LIBDIR.append(self.config.pyqt_mod_dir) + self.extra_libs.append(self.module_as_lib("kdesu")) + + KdecoreModuleMakefile.finalise(self) + +class KdefxModuleMakefile(KdecoreModuleMakefile): + """The Makefile class for modules that %Import kdefx. + """ + def finalise(self): + """Finalise the macros. + """ + if self.config.sip_version < 0x040000: + # Note that we don't use self.extra_lib_dirs because we don't want + # it to be added to the rpath. + self.LIBDIR.append(self.config.pyqt_mod_dir) + self.extra_libs.append(self.module_as_lib("kdefx")) + + KdecoreModuleMakefile.finalise(self) + +class KdeuiModuleMakefile(KdefxModuleMakefile): + """The Makefile class for modules that %Import kdeui. + """ + def finalise(self): + """Finalise the macros. + """ + if self.config.sip_version < 0x040000: + # Note that we don't use self.extra_lib_dirs because we don't want + # it to be added to the rpath. + self.LIBDIR.append(self.config.pyqt_mod_dir) + self.extra_libs.append(self.module_as_lib("kdeui")) + + if self.config.sip_version < 0x040000: + self.extra_libs.append(self.module_as_lib("qtxml")) + + KdefxModuleMakefile.finalise(self) + +class KioModuleMakefile(KdeuiModuleMakefile): + """The Makefile class for modules that %Import kio. + """ + def finalise(self): + """Finalise the macros. + """ + if self.config.sip_version < 0x040000: + # Note that we don't use self.extra_lib_dirs because we don't want + # it to be added to the rpath. + self.LIBDIR.append(self.config.pyqt_mod_dir) + self.extra_libs.append(self.module_as_lib("kio")) + + KdeuiModuleMakefile.finalise(self) + +class KfileModuleMakefile(KioModuleMakefile): + """The Makefile class for modules that %Import kfile. + """ + def finalise(self): + """Finalise the macros. + """ + if self.config.sip_version < 0x040000: + # Note that we don't use self.extra_lib_dirs because we don't want + # it to be added to the rpath. + self.LIBDIR.append(self.config.pyqt_mod_dir) + self.extra_libs.append(self.module_as_lib("kfile")) + + KioModuleMakefile.finalise(self) + +class KpartsModuleMakefile(KfileModuleMakefile): + """The Makefile class for modules that %Import kparts. + """ + def finalise(self): + """Finalise the macros. + """ + if self.config.sip_version < 0x040000: + # Note that we don't use self.extra_lib_dirs because we don't want + # it to be added to the rpath. + self.LIBDIR.append(self.config.pyqt_mod_dir) + self.extra_libs.append(self.module_as_lib("kparts")) + + KfileModuleMakefile.finalise(self) + +class KhtmlModuleMakefile(KpartsModuleMakefile): + """The Makefile class for modules that %Import khtml. + """ + def finalise(self): + """Finalise the macros. + """ + if self.config.sip_version < 0x040000: + # Note that we don't use self.extra_lib_dirs because we don't want + # it to be added to the rpath. + self.LIBDIR.append(self.config.pyqt_mod_dir) + self.extra_libs.append(self.module_as_lib("khtml")) + + KpartsModuleMakefile.finalise(self) + +class KjsModuleMakefile(KhtmlModuleMakefile): + """The Makefile class for modules that %Import kjs. + """ + def finalise(self): + """Finalise the macros. + """ + if self.config.sip_version < 0x040000: + # Note that we don't use self.extra_lib_dirs because we don't want + # it to be added to the rpath. + self.LIBDIR.append(self.config.pyqt_mod_dir) + self.extra_libs.append(self.module_as_lib("kjs")) + + KjsModuleMakefile.finalise(self) + +class KdeprintModuleMakefile(KdeuiModuleMakefile): + """The Makefile class for modules that %Import kdeprint. + """ + def finalise(self): + """Finalise the macros. + """ + if self.config.sip_version < 0x040000: + # Note that we don't use self.extra_lib_dirs because we don't want + # it to be added to the rpath. + self.LIBDIR.append(self.config.pyqt_mod_dir) + self.extra_libs.append(self.module_as_lib("kdeprint")) + + KdeuiModuleMakefile.finalise(self) diff --git a/sip/dcop/dcopclient.sip b/sip/dcop/dcopclient.sip new file mode 100644 index 0000000..6c8dab3 --- /dev/null +++ b/sip/dcop/dcopclient.sip @@ -0,0 +1,175 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module dcop version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class DCOPClientTransaction; + +class DCOPClient : QObject +{ +%TypeHeaderCode +#include +%End + + +public: + DCOPClient (); + static void setServerAddress (const QCString&); + bool attach (); + void bindToApp (); + bool detach (); + bool isAttached () const; + bool isAttachedToForeignServer () const; + bool acceptCalls () const; + void setAcceptCalls (bool); + +%If ( KDE_3_0_3 - ) + bool qtBridgeEnabled (); + void setQtBridgeEnabled (bool); +%End + + QCString registerAs (const QCString&, bool = 1); + bool isRegistered () const; + QCString appId () const; + int socket () const; + void suspend (); + void resume (); + +%If ( KDE_3_1_0 - ) + bool isSuspended () const; +%End + + bool send (const QCString&, const QCString&, const QCString&, const QByteArray&); + bool send (const QCString&, const QCString&, const QCString&, const QString&); + +%If ( KDE_3_2_0 - ) + bool call (const QCString&, const QCString&, const QCString&, const QByteArray&, QCString& /Out/, QByteArray& /Out/, bool, int); +%End + + bool call (const QCString&, const QCString&, const QCString&, const QByteArray&, QCString& /Out/, QByteArray& /Out/, bool = 0); + +%If ( KDE_3_3_0 - ) + int callAsync (const QCString&, const QCString&, const QCString&, const QByteArray&, QObject*, const char*); +%End + + +%If ( KDE_3_2_0 - ) + bool findObject (const QCString&, const QCString&, const QCString&, const QByteArray&, QCString& /Out/, QCString& /Out/, bool, int); +%End + + bool findObject (const QCString&, const QCString&, const QCString&, const QByteArray&, QCString& /Out/, QCString& /Out/, bool = 0); + void emitDCOPSignal (const QCString&, const QCString&, const QByteArray&); + void emitDCOPSignal (const QCString&, const QByteArray&); + bool connectDCOPSignal (const QCString&, const QCString&, const QCString&, const QCString&, const QCString&, bool); + bool connectDCOPSignal (const QCString&, const QCString&, const QCString&, const QCString&, bool); + bool disconnectDCOPSignal (const QCString&, const QCString&, const QCString&, const QCString&, const QCString&); + bool disconnectDCOPSignal (const QCString&, const QCString&, const QCString&, const QCString&); + virtual bool process (const QCString&, const QByteArray&, QCString&, QByteArray&); + DCOPClientTransaction* beginTransaction (); + void endTransaction (DCOPClientTransaction*, QCString&, QByteArray&); + Q_INT32 transactionId (); + bool isApplicationRegistered (const QCString&); + QCStringList registeredApplications (); + QCStringList remoteObjects (const QCString&, bool* = 0); + QCStringList remoteInterfaces (const QCString&, const QCString&, bool* = 0); + QCStringList remoteFunctions (const QCString&, const QCString&, bool* = 0); + bool receive (const QCString&, const QCString&, const QCString&, const QByteArray&, QCString& /Out/, QByteArray& /Out/); + bool find (const QCString&, const QCString&, const QCString&, const QByteArray&, QCString& /Out/, QByteArray& /Out/); + static QCString normalizeFunctionSignature (const QCString&); + QCString senderId () const; + void setDefaultObject (const QCString&); + QCString defaultObject () const; + void setNotifications (bool); + void setDaemonMode (bool); + +%If ( KDE_3_2_0 - ) + void setPriorityCall (bool); +%End + + static DCOPClient* mainClient (); + static void setMainClient (DCOPClient*); + +%If ( KDE_3_2_0 - ) + static DCOPClient* findLocalClient (const QCString&); +%End + + static void emergencyClose (); + static const char* postMortemSender (); + static const char* postMortemObject (); + static const char* postMortemFunction (); + static QCString dcopServerFile (const QCString& = 0); + static QCString dcopServerFileOld (const QCString& = 0); + +%If ( KDE_3_2_0 - ) + static QCString iceauthPath (); +%End + + +signals: + void applicationRegistered (const QCString&); + void applicationRemoved (const QCString&); + void attachFailed (const QString&); + void blockUserInput (bool); + +%If ( KDE_3_2_0 - ) + void callBack (int, const QCString&, const QByteArray&); +%End + + +protected slots: + void processSocketData (int); + +public: + +%If ( KDE_3_2_3 - ) +//ig void handleAsyncReply (DCOPClient::ReplyStruct*); +%End + + +protected: +//igx virtual void virtual_hook (int, void*); + +public: + +%If ( KDE_3_2_0 - KDE_3_3_0 ) + int callAsync (const QCString&, const QCString&, const QCString&, const QByteArray&, SIP_RXOBJ_CON, SIP_SLOT_CON (int, const QCString&, const QByteArray&)); + +//force +%ConvertToSubClassCode + // The table of Python class objects indexed by their names. The table + // must be sorted by name. + + static sipStringTypeClassMap map[] = { + {sipName_DCOPClient, &sipClass_DCOPClient}, + }; + + sipClass = sipMapStringToClass(sipCpp -> className(),map,sizeof (map)/sizeof (map[0])); +%End +//end +%End + + +}; // class DCOPClient + +typedef QValueList QCStringList; diff --git a/sip/dcop/dcopmod.sip.in b/sip/dcop/dcopmod.sip.in new file mode 100644 index 0000000..9f9e0fb --- /dev/null +++ b/sip/dcop/dcopmod.sip.in @@ -0,0 +1,43 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module dcop version KDE_3_5_2 + +%Copying + + This software is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License as + published by the Free Software Foundation; either version 2 of + the License, or (at your option) any later version. + + This software is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public + License along with this library; see the file COPYING. + If not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +%End + +%Module dcop + +%Timeline { KDE_3_0_0 KDE_3_0_1 KDE_3_0_3 KDE_3_1_0 KDE_3_1_1 KDE_3_1_2 KDE_3_1_3 KDE_3_1_4 KDE_3_1_5 KDE_3_2_0 KDE_3_2_1 KDE_3_2_2 KDE_3_2_3 KDE_3_3_0 KDE_3_3_1 KDE_3_3_2 KDE_3_4_0 KDE_3_4_1 KDE_3_4_2 KDE_3_4_3 KDE_3_5_0 KDE_3_5_1 KDE_3_5_2 KDE_3_5_3 } + +%Platforms { D_MANDRAKE ALL } + +%Import qt/qtmod.sip + +%Include dcopclient.sip +%Include dcopobject.sip +%Include dcopref.sip +%Include dcopstub.sip +%Include typedefs.sip +@mark@ + diff --git a/sip/dcop/dcopobject.sip b/sip/dcop/dcopobject.sip new file mode 100644 index 0000000..7b7ee1c --- /dev/null +++ b/sip/dcop/dcopobject.sip @@ -0,0 +1,82 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module dcop version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class DCOPObject +{ +%TypeHeaderCode +#include +%End + + +public: + DCOPObject (); + DCOPObject (QObject*); + DCOPObject (const QCString&); + QCString objId () const; + bool setObjId (const QCString&); + virtual bool process (const QCString&, const QByteArray&, QCString&, QByteArray&); + virtual bool processDynamic (const QCString&, const QByteArray&, QCString&, QByteArray&); + virtual QCStringList functionsDynamic (); + virtual QCStringList interfacesDynamic (); + virtual QCStringList interfaces (); + virtual QCStringList functions (); + void emitDCOPSignal (const QCString&, const QByteArray&); + bool connectDCOPSignal (const QCString&, const QCString&, const QCString&, const QCString&, bool); + bool disconnectDCOPSignal (const QCString&, const QCString&, const QCString&, const QCString&); + +%If ( KDE_3_1_0 - ) + DCOPClient* callingDcopClient (); + void setCallingDcopClient (DCOPClient*); +%End + + static bool hasObject (const QCString&); + static DCOPObject* find (const QCString&); + static QPtrList match (const QCString&); + static QCString objectName (QObject*); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class DCOPObject + + +class DCOPObjectProxy +{ +%TypeHeaderCode +#include +%End + + +public: + DCOPObjectProxy (); + DCOPObjectProxy (DCOPClient*); + virtual bool process (const QCString&, const QCString&, const QByteArray&, QCString&, QByteArray&); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class DCOPObjectProxy + diff --git a/sip/dcop/dcopref.sip b/sip/dcop/dcopref.sip new file mode 100644 index 0000000..ec09034 --- /dev/null +++ b/sip/dcop/dcopref.sip @@ -0,0 +1,109 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module dcop version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_1_0 - ) + +class DCOPReply +{ +%TypeHeaderCode +#include +%End + + +public: + bool isValid () const; + QByteArray data; + QCString type; + +}; // class DCOPReply + +%End + + +%If ( KDE_3_1_0 - ) + +//ig class DCOPArg; + +%End + + +class DCOPRef +{ +%TypeHeaderCode +#include +%End + + +public: + DCOPRef (); + DCOPRef (const DCOPRef&); + DCOPRef (const QCString&, const QCString&); + DCOPRef (DCOPObject*); + DCOPRef (const QCString&, const QCString&, const QCString&); + bool isNull () const; + QCString app () const; + +%If ( KDE_3_1_0 - ) + QCString obj () const; +%End + + QCString object () const; + QCString type () const; + void setRef (const QCString&, const QCString&); + void setRef (const QCString&, const QCString&, const QCString&); + void clear (); + +%If ( KDE_3_1_0 - ) + DCOPClient* dcopClient () const; + void setDCOPClient (DCOPClient*); + +%If ( KDE_3_2_0 - ) + + enum EventLoopFlag + { + NoEventLoop, + UseEventLoop + }; + +%End + + DCOPReply call (const QCString&); + +%If ( KDE_3_2_0 - ) + DCOPReply callExt (const QCString&, DCOPRef::EventLoopFlag = NoEventLoop , int = -1); +%End + + bool send (const QCString&); +%End + + +}; // class DCOPRef + + +%If ( KDE_3_1_4 - ) +//igx QDataStream& operator << (QDataStream&, const DCOPRef&); +//igx QDataStream& operator >> (QDataStream&, DCOPRef&); +%End diff --git a/sip/dcop/dcopstub.sip b/sip/dcop/dcopstub.sip new file mode 100644 index 0000000..a6ba829 --- /dev/null +++ b/sip/dcop/dcopstub.sip @@ -0,0 +1,68 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module dcop version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class DCOPStub +{ +%TypeHeaderCode +#include +%End + + +public: + DCOPStub (const QCString&, const QCString&); + DCOPStub (DCOPClient*, const QCString&, const QCString&); + +%If ( KDE_3_2_0 - ) + DCOPStub (const DCOPRef&); +%End + + QCString app () const; + QCString obj () const; + + enum Status + { + CallSucceeded, + CallFailed + }; + + Status status () const; + bool ok () const; + +protected: + void setStatus (DCOPStub::Status); + virtual void callFailed (); + DCOPClient* dcopClient (); + +%If ( KDE_3_1_0 - ) +//ig DCOPStub (DCOPStub::never_use_t); +%End + + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class DCOPStub + diff --git a/sip/dcop/typedefs.sip b/sip/dcop/typedefs.sip new file mode 100644 index 0000000..ba1f4c5 --- /dev/null +++ b/sip/dcop/typedefs.sip @@ -0,0 +1,107 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module dcop version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +typedef uint mode_t; +typedef long time_t; +typedef ulong size_t; +typedef int ssize_t; +typedef int pid_t; +typedef ulong Window; +typedef bool Bool; +typedef long off_t; + + +/*%MappedType QValueList +//converts a Python list of long +{ +%TypeHeaderCode +#include +%End + +%ConvertFromTypeCode + // Handle no list. + + if (!sipCpp) + return PyList_New(0); + + // Convert to a Python list of long. + + PyObject *l; + + // Create the list. + + if ((l = PyList_New(sipCpp -> count())) == NULL) + return NULL; + + // Get it. + + for (uint i = 0; i < sipCpp -> count(); ++i) + if (PyList_SetItem(l,i,PyLong_FromLong((long)(*sipCpp)[i])) < 0) + { + Py_DECREF(l); + + return NULL; + } + + return l; +%End + +%ConvertToTypeCode + // Convert a Python list of long to a QValueList on the heap. + + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + if (sipPy == Py_None) + { + *sipCppPtr = NULL; + + return 0; + } + + QValueList *qvl = new QValueList; + + PyErr_Clear(); + + for (int i = 0; i < PyList_GET_SIZE(sipPy); ++i) + { + qvl -> append((pid_t)PyLong_AsLong(PyList_GET_ITEM(sipPy,i))); + + if (PyErr_Occurred() != NULL) + { + delete qvl; + *sipIsErr = 1; + + return 0; + } + } + + *sipCppPtr = qvl; + + return 1; +%End +};*/ + + diff --git a/sip/glossary.html b/sip/glossary.html new file mode 100644 index 0000000..0c026cb --- /dev/null +++ b/sip/glossary.html @@ -0,0 +1,40 @@ +

Abstract

+

+Abstract classes are used as base classes. You cannot create +an instance of an abstract class directly - you need to subclass +it. In the subclass, you need to overload all of the +class's pure virtual methods. These +are marked as "pure virtual" in these docs, and are also indicated +by a " = 0" at the end of the method declaration. +

+

+If your subclass doesn't overload the pure virtual methods in the +abstract base class, you won't be able to create an instance of it. +

+ +

pure virtual

+

+Pure virtual methods are members of an abstract +class (they're what makes the class abstract in the first place). Pure +virtual methods are nothing more than place holders - there is no code +associated with them +

+ + +

variables

+

+Class variables can be read and written from Python. Global or static +variables are read only. Variables that are "protected" or. +"private" in C++ are not implemented. +

+ +

slots

+

+When using Qt or KDE in C++, methods involving connections to slots +take 2 arguments: a QObject 'receiver' and a char* 'slot' name. In Python +you only need to provide a single value - the name of a Python callable +method or function which will be connected to a signal. The method or +function does not need to be in the class where it is reference, and does +not have to be in a class at all. There are other options - see the +"Signals and Slots" documentation for more information. +

diff --git a/sip/kabc/address.sip b/sip/kabc/address.sip new file mode 100644 index 0000000..d15d169 --- /dev/null +++ b/sip/kabc/address.sip @@ -0,0 +1,150 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kabc version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +namespace KABC +{ + +class Address +{ +%TypeHeaderCode +#include +%End + + +public: + typedef QValueList List; + +%If ( KDE_3_1_0 - ) + typedef QValueList TypeList; +%End + + + enum Type + { + Dom, + Intl, + Postal, + Parcel, + Home, + Work, + Pref + }; + + Address (); + Address (int); + +%If ( KDE_3_1_0 - ) + bool operator == (const KABC::Address&) const; + bool operator != (const KABC::Address&) const; +%End + + bool isEmpty () const; + void clear (); + void setId (const QString&); + QString id () const; + void setType (int); + int type () const; + +%If ( KDE_3_1_0 - ) + QString typeLabel () const; +%End + + void setPostOfficeBox (const QString&); + QString postOfficeBox () const; + +%If ( KDE_3_1_0 - ) + static QString postOfficeBoxLabel (); +%End + + void setExtended (const QString&); + QString extended () const; + +%If ( KDE_3_1_0 - ) + static QString extendedLabel (); +%End + + void setStreet (const QString&); + QString street () const; + +%If ( KDE_3_1_0 - ) + static QString streetLabel (); +%End + + void setLocality (const QString&); + QString locality () const; + +%If ( KDE_3_1_0 - ) + static QString localityLabel (); +%End + + void setRegion (const QString&); + QString region () const; + +%If ( KDE_3_1_0 - ) + static QString regionLabel (); +%End + + void setPostalCode (const QString&); + QString postalCode () const; + +%If ( KDE_3_1_0 - ) + static QString postalCodeLabel (); +%End + + void setCountry (const QString&); + QString country () const; + +%If ( KDE_3_1_0 - ) + static QString countryLabel (); +%End + + void setLabel (const QString&); + QString label () const; + +%If ( KDE_3_1_0 - ) + static QString labelLabel (); + static KABC::Address::TypeList typeList (); + static QString typeLabel (int); +%End + + void dump () const; + +%If ( KDE_3_2_0 - ) + QString formattedAddress (const QString& = QString ::null , const QString& = QString ::null ) const; + static QString countryToISO (const QString&); + static QString ISOtoCountry (const QString&); +%End + + +}; // class Address + + +%If ( KDE_3_1_0 - ) +//igx QDataStream& operator << (QDataStream&, const KABC::Address&); +//igx QDataStream& operator >> (QDataStream&, KABC::Address&); +%End + +}; // namespace KABC + diff --git a/sip/kabc/addressbook.sip b/sip/kabc/addressbook.sip new file mode 100644 index 0000000..a3fa824 --- /dev/null +++ b/sip/kabc/addressbook.sip @@ -0,0 +1,229 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kabc version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +namespace KABC +{ + +class AddressBook : QObject +{ +%TypeHeaderCode +#include +#include +%End + + +public: + +//ig class Iterator; + + +//ig class ConstIterator; + + AddressBook (); + +%If ( KDE_3_2_0 - ) + AddressBook (const QString&); +%End + + KABC::Ticket* requestSaveTicket (KABC::Resource* = 0); + +%If ( KDE_3_2_0 - ) + void releaseSaveTicket (KABC::Ticket*); +%End + + bool load (); + +%If ( KDE_3_2_0 - ) + bool asyncLoad (); +%End + + bool save (KABC::Ticket*); + +%If ( KDE_3_2_0 - ) + bool asyncSave (KABC::Ticket*); +%End + +//igx KABC::AddressBook::ConstIterator begin () const; +//igx KABC::AddressBook::Iterator begin (); +//igx KABC::AddressBook::ConstIterator end () const; +//igx KABC::AddressBook::Iterator end (); + void clear (); + void insertAddressee (const KABC::Addressee&); + void removeAddressee (const KABC::Addressee&); +//ig void removeAddressee (const KABC::AddressBook::Iterator&); +//igx KABC::AddressBook::Iterator find (const Addressee&); + KABC::Addressee findByUid (const QString&); + +%If ( KDE_3_2_0 - ) + KABC::Addressee::List allAddressees (); +%End + + KABC::Addressee::List findByName (const QString&); + KABC::Addressee::List findByEmail (const QString&); + KABC::Addressee::List findByCategory (const QString&); + virtual QString identifier (); + +%If ( KDE_3_1_0 - ) + KABC::Field::List fields (int = KABC ::Field ::All ); + bool addCustomField (const QString&, int = KABC ::Field ::All , const QString& = QString ::null , const QString& = QString ::null ); +%End + + bool addResource (KABC::Resource*); + +%If ( KDE_3_1_0 - ) + bool removeResource (KABC::Resource*); + QPtrList resources (); + void setErrorHandler (KABC::ErrorHandler*); + void error (const QString&); + void cleanUp (); +%End + + void dump () const; + void emitAddressBookLocked (); + void emitAddressBookUnlocked (); + void emitAddressBookChanged (); + +%If ( KDE_3_5_0 - ) + bool loadingHasFinished () const; +%End + + +signals: + void addressBookChanged (KABC::AddressBook*); + void addressBookLocked (KABC::AddressBook*); + void addressBookUnlocked (KABC::AddressBook*); + +%If ( KDE_3_2_0 - ) + void loadingFinished (KABC::Resource*); + void savingFinished (KABC::Resource*); +%End + + +protected slots: + +%If ( KDE_3_2_0 - ) + void resourceLoadingFinished (KABC::Resource*); + void resourceSavingFinished (KABC::Resource*); + void resourceLoadingError (KABC::Resource*, const QString&); + void resourceSavingError (KABC::Resource*, const QString&); +%End + + +protected: + +%If ( KDE_3_1_0 - ) + void deleteRemovedAddressees (); + void setStandardResource (KABC::Resource*); + KABC::Resource* standardResource (); + +%If ( KDE_3_2_0 - ) +//ig KRES::Manager* resourceManager (); +%End + +%End + + +}; // class AddressBook + + +%If ( KDE_3_1_0 - ) +//igx QDataStream& operator << (QDataStream&, const KABC::AddressBook&); +//igx QDataStream& operator >> (QDataStream&, KABC::AddressBook&); +%End + +}; // namespace KABC + + + +%MappedType QPtrList +//converts a Python list of KABC::Resource +{ +%TypeHeaderCode +#include +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New (0); + + PyObject *pylist; + + // Create the list + + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + // Get it. + + QPtrList *cpplist = (QPtrList *)sipCpp; + KABC::Resource *cpp; + PyObject *inst; + + // the loop depends on the type of iterator the tmeplate makes available + for(cpp = cpplist->first (); cpp != 0; cpp = cpplist->next () ) + { + if (((inst = sipConvertFromInstance (cpp, sipClass_KABC_Resource, sipTransferObj)) == NULL) + || PyList_Append (pylist, inst) < 0) + { + Py_DECREF (pylist); + return NULL; + } + } + + return pylist; +%End + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QPtrList *cpplist = new QPtrList; + + PyObject *elem; + KABC::Resource *cpp; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + cpp = (KABC::Resource *)sipForceConvertToType(elem, sipType_KABC_Resource, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + *sipIsErr = 1; + delete cpplist; + return 0; + } + + cpplist->append (cpp); + } + + *sipCppPtr = cpplist; + + return 1; +%End +}; + + diff --git a/sip/kabc/addressee.sip b/sip/kabc/addressee.sip new file mode 100644 index 0000000..803b4d2 --- /dev/null +++ b/sip/kabc/addressee.sip @@ -0,0 +1,468 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kabc version KDE_3_4_3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +namespace KABC +{ + +class Addressee +{ +%TypeHeaderCode +#include +%End + + +public: +//ig typedef QValueList List; + +%If ( KDE_3_4_2 - ) + typedef QMap Map; +%End + + Addressee (); + Addressee (const KABC::Addressee&); + +%If ( KDE_3_1_0 - ) + bool operator == (const KABC::Addressee&) const; + bool operator != (const KABC::Addressee&) const; +%End + + bool isEmpty () const; + void setUid (const QString&); + QString uid () const; + +%If ( KDE_3_1_0 - ) + static QString uidLabel (); +%End + + void setName (const QString&); + QString name () const; + +%If ( KDE_3_1_0 - ) + static QString nameLabel (); +%End + + void setFormattedName (const QString&); + QString formattedName () const; + +%If ( KDE_3_1_0 - ) + static QString formattedNameLabel (); +%End + + void setFamilyName (const QString&); + QString familyName () const; + +%If ( KDE_3_1_0 - ) + static QString familyNameLabel (); +%End + + void setGivenName (const QString&); + QString givenName () const; + +%If ( KDE_3_1_0 - ) + static QString givenNameLabel (); +%End + + void setAdditionalName (const QString&); + QString additionalName () const; + +%If ( KDE_3_1_0 - ) + static QString additionalNameLabel (); +%End + + void setPrefix (const QString&); + QString prefix () const; + +%If ( KDE_3_1_0 - ) + static QString prefixLabel (); +%End + + void setSuffix (const QString&); + QString suffix () const; + +%If ( KDE_3_1_0 - ) + static QString suffixLabel (); +%End + + void setNickName (const QString&); + QString nickName () const; + +%If ( KDE_3_1_0 - ) + static QString nickNameLabel (); +%End + + void setBirthday (const QDateTime&); + QDateTime birthday () const; + +%If ( KDE_3_1_0 - ) + static QString birthdayLabel (); + static QString homeAddressStreetLabel (); + static QString homeAddressLocalityLabel (); + static QString homeAddressRegionLabel (); + static QString homeAddressPostalCodeLabel (); + static QString homeAddressCountryLabel (); + static QString homeAddressLabelLabel (); + static QString businessAddressStreetLabel (); + static QString businessAddressLocalityLabel (); + static QString businessAddressRegionLabel (); + static QString businessAddressPostalCodeLabel (); + static QString businessAddressCountryLabel (); + static QString businessAddressLabelLabel (); + static QString homePhoneLabel (); + static QString businessPhoneLabel (); + static QString mobilePhoneLabel (); + static QString homeFaxLabel (); + static QString businessFaxLabel (); + static QString carPhoneLabel (); + static QString isdnLabel (); + static QString pagerLabel (); + static QString emailLabel (); +%End + + void setMailer (const QString&); + QString mailer () const; + +%If ( KDE_3_1_0 - ) + static QString mailerLabel (); +%End + + void setTimeZone (const KABC::TimeZone&); + KABC::TimeZone timeZone () const; + +%If ( KDE_3_1_0 - ) + static QString timeZoneLabel (); +%End + + void setGeo (const KABC::Geo&); + KABC::Geo geo () const; + +%If ( KDE_3_1_0 - ) + static QString geoLabel (); +%End + + void setTitle (const QString&); + QString title () const; + +%If ( KDE_3_1_0 - ) + static QString titleLabel (); +%End + + void setRole (const QString&); + QString role () const; + +%If ( KDE_3_1_0 - ) + static QString roleLabel (); +%End + + void setOrganization (const QString&); + QString organization () const; + +%If ( KDE_3_1_0 - ) + static QString organizationLabel (); +%End + + void setNote (const QString&); + QString note () const; + +%If ( KDE_3_1_0 - ) + static QString noteLabel (); +%End + + void setProductId (const QString&); + QString productId () const; + +%If ( KDE_3_1_0 - ) + static QString productIdLabel (); +%End + + void setRevision (const QDateTime&); + QDateTime revision () const; + +%If ( KDE_3_1_0 - ) + static QString revisionLabel (); +%End + + void setSortString (const QString&); + QString sortString () const; + +%If ( KDE_3_1_0 - ) + static QString sortStringLabel (); +%End + + void setUrl (const KURL&); + KURL url () const; + +%If ( KDE_3_1_0 - ) + static QString urlLabel (); + void setSecrecy (const KABC::Secrecy&); + KABC::Secrecy secrecy () const; + static QString secrecyLabel (); + void setLogo (const KABC::Picture&); + KABC::Picture logo () const; + static QString logoLabel (); + void setPhoto (const KABC::Picture&); + KABC::Picture photo () const; + static QString photoLabel (); + void setSound (const KABC::Sound&); + KABC::Sound sound () const; + static QString soundLabel (); + void setAgent (const KABC::Agent&); + KABC::Agent agent () const; + static QString agentLabel (); +%End + + void setNameFromString (const QString&); + QString realName () const; + +%If ( KDE_3_1_0 - ) + QString assembledName () const; +%End + + QString fullEmail (const QString& = QString ::null ) const; + void insertEmail (const QString&, bool = 0); + void removeEmail (const QString&); + QString preferredEmail () const; + QStringList emails () const; + +%If ( KDE_3_4_2 - ) + void setEmails (const QStringList&); +%End + + void insertPhoneNumber (const KABC::PhoneNumber&); + void removePhoneNumber (const KABC::PhoneNumber&); + KABC::PhoneNumber phoneNumber (int) const; + KABC::PhoneNumber::List phoneNumbers () const; + +%If ( KDE_3_1_0 - ) + KABC::PhoneNumber::List phoneNumbers (int) const; +%End + + KABC::PhoneNumber findPhoneNumber (const QString&) const; + +%If ( KDE_3_1_0 - ) + void insertKey (const KABC::Key&); + void removeKey (const KABC::Key&); + KABC::Key key (int, QString = QString ::null ) const; + KABC::Key::List keys () const; + +%If ( KDE_3_4_2 - ) + void setKeys (const KABC::Key::List&); +%End + + KABC::Key::List keys (int, QString = QString ::null ) const; + KABC::Key findKey (const QString&) const; +%End + + void insertAddress (const KABC::Address&); + void removeAddress (const KABC::Address&); + KABC::Address address (int) const; + KABC::Address::List addresses () const; + +%If ( KDE_3_1_0 - ) + KABC::Address::List addresses (int) const; +%End + + KABC::Address findAddress (const QString&) const; + void insertCategory (const QString&); + void removeCategory (const QString&); + bool hasCategory (const QString&) const; + void setCategories (const QStringList&); + QStringList categories () const; + void insertCustom (const QString&, const QString&, const QString&); + void removeCustom (const QString&, const QString&); + QString custom (const QString&, const QString&) const; + void setCustoms (const QStringList&); + QStringList customs () const; + +%If ( KDE_3_1_0 - ) + static void parseEmailAddress (const QString&, QString&, QString&); +%End + + void dump () const; + +%If ( KDE_3_1_0 - ) + QString asString () const; + void setResource (KABC::Resource*); + KABC::Resource* resource () const; + void setChanged (bool); + bool changed () const; + +%If ( KDE_3_4_2 - ) + static void setSortMode (KABC::SortMode*); + bool operator < (const KABC::Addressee&); +%End + +%End + + + + + + +}; // class Addressee + + +%If ( KDE_3_1_0 - ) +//igx QDataStream& operator << (QDataStream&, const KABC::Addressee&); +//igx QDataStream& operator >> (QDataStream&, KABC::Addressee&); +%End + +}; // namespace KABC + + + +%MappedType KABC::Addressee::List +//converts a Python list of KABC::Addressee +{ +%TypeHeaderCode +#include +//typedef QValueList List; +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New(0); + + // Create the list + PyObject *pylist; + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + QValueList *cpplist = (QValueList *)sipCpp; + PyObject *inst; + + // Get it. + QValueList::Iterator it; + for( it = cpplist->begin(); it != cpplist->end(); ++it ) + { + if (((inst = sipConvertFromNewType(new KABC::Addressee (*it), sipType_KABC_Addressee, NULL)) == NULL) + || PyList_Append (pylist, inst) < 0) + { + Py_DECREF (pylist); + return NULL; + } + } + + return pylist; +%End + + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QValueList *cpplist = new QValueList; + + PyObject *elem; + KABC::Addressee *cpp; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + cpp = (KABC::Addressee *)sipForceConvertToType(elem, sipType_KABC_Addressee, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + *sipIsErr = 1; + delete cpplist; + return 0; + } + + cpplist->append (*cpp); + } + + *sipCppPtr = cpplist; + + return 1; +%End +}; + +%MappedType KABC::Address::List +//converts a Python list of KABC::Address +{ +%TypeHeaderCode +#include +//typedef QValueList List; +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New(0); + + // Create the list + PyObject *pylist; + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + QValueList *cpplist = (QValueList *)sipCpp; + PyObject *inst; + + // Get it. + QValueList::Iterator it; + for( it = cpplist->begin(); it != cpplist->end(); ++it ) + { + if (((inst = sipConvertFromNewType(new KABC::Address (*it), sipType_KABC_Address, NULL)) == NULL) + || PyList_Append (pylist, inst) < 0) + { + Py_DECREF (pylist); + return NULL; + } + } + + return pylist; +%End + + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QValueList *cpplist = new QValueList; + + PyObject *elem; + KABC::Address *cpp; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + cpp = (KABC::Address *)sipForceConvertToType(elem, sipType_KABC_Address, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + *sipIsErr = 1; + delete cpplist; + return 0; + } + + cpplist->append (*cpp); + } + + *sipCppPtr = cpplist; + + return 1; +%End +}; + diff --git a/sip/kabc/addresseedialog.sip b/sip/kabc/addresseedialog.sip new file mode 100644 index 0000000..abfd6d2 --- /dev/null +++ b/sip/kabc/addresseedialog.sip @@ -0,0 +1,75 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kabc version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +namespace KABC +{ + +class AddresseeItem : QListViewItem +{ +%TypeHeaderCode +#include +%End + + +public: + + enum columns + { + Name, + Email + }; + + AddresseeItem (QListView*, const KABC::Addressee&); + KABC::Addressee addressee () const; + virtual QString key (int, bool) const; + +}; // class AddresseeItem + + +class AddresseeDialog : KDialogBase +{ +%TypeHeaderCode +#include +%End + + +public: + AddresseeDialog (QWidget* = 0, bool = 0); + KABC::Addressee addressee (); + KABC::Addressee::List addressees (); + static KABC::Addressee getAddressee (QWidget*); + static KABC::Addressee::List getAddressees (QWidget*); + +protected slots: + +%If ( KDE_3_1_0 - ) + void addressBookChanged (); +%End + + +}; // class AddresseeDialog + +}; // namespace KABC + diff --git a/sip/kabc/addresseelist.sip b/sip/kabc/addresseelist.sip new file mode 100644 index 0000000..f526464 --- /dev/null +++ b/sip/kabc/addresseelist.sip @@ -0,0 +1,122 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kabc version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +%ModuleHeaderCode +#include +#include +%End + + +%If ( KDE_3_1_0 - ) +namespace KABC +{ +namespace SortingTraits +{ + +class Uid +{ +%TypeHeaderCode +#include +%End + + +public: + static bool eq (const KABC::Addressee&, const KABC::Addressee&); + static bool lt (const KABC::Addressee&, const KABC::Addressee&); + +}; // class Uid + + +class Name +{ +%TypeHeaderCode +#include +%End + + +public: + static bool eq (const KABC::Addressee&, const KABC::Addressee&); + static bool lt (const KABC::Addressee&, const KABC::Addressee&); + +}; // class Name + + +class FormattedName +{ +%TypeHeaderCode +#include +%End + + +public: + static bool eq (const KABC::Addressee&, const KABC::Addressee&); + static bool lt (const KABC::Addressee&, const KABC::Addressee&); + +}; // class FormattedName + + +class FamilyName +{ +%TypeHeaderCode +#include +%End + + +public: + static bool eq (const KABC::Addressee&, const KABC::Addressee&); + static bool lt (const KABC::Addressee&, const KABC::Addressee&); + +}; // class FamilyName + + +class GivenName +{ +%TypeHeaderCode +#include +%End + + +public: + static bool eq (const KABC::Addressee&, const KABC::Addressee&); + static bool lt (const KABC::Addressee&, const KABC::Addressee&); + +}; // class GivenName + +}; // namespace SortingTraits + + +enum +{ + Uid, + Name, + FormattedName, + FamilyName, + GivenName +}; + +}; // namespace KABC + +%End + diff --git a/sip/kabc/addresslineedit.sip b/sip/kabc/addresslineedit.sip new file mode 100644 index 0000000..54606e9 --- /dev/null +++ b/sip/kabc/addresslineedit.sip @@ -0,0 +1,66 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kabc version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_1_0 - ) +namespace KABC +{ + +class AddressLineEdit : KLineEdit +{ +%TypeHeaderCode +#include +%End + + +public: + AddressLineEdit (QWidget*, bool = 1, const char* = 0); + virtual void setFont (const QFont&); + +%If ( KDE_3_2_0 - ) + static KConfig* config (); +%End + + +public slots: + void cursorAtEnd (); + void enableCompletion (bool); + +protected: + virtual void loadAddresses (); + void addAddress (const QString&); + virtual void keyPressEvent (QKeyEvent*); + virtual void dropEvent (QDropEvent*); + virtual void paste (); + virtual void insert (const QString&); + virtual void mouseReleaseEvent (QMouseEvent*); + void doCompletion (bool); + +}; // class AddressLineEdit + +}; // namespace KABC + +%End + diff --git a/sip/kabc/agent.sip b/sip/kabc/agent.sip new file mode 100644 index 0000000..4aff028 --- /dev/null +++ b/sip/kabc/agent.sip @@ -0,0 +1,58 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kabc version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_1_0 - ) +namespace KABC +{ + +class Agent +{ +%TypeHeaderCode +#include +%End + + +public: + Agent (); + Agent (const QString&); + Agent (KABC::Addressee*); + bool operator == (const KABC::Agent&) const; + bool operator != (const KABC::Agent&) const; + void setUrl (const QString&); + void setAddressee (KABC::Addressee*); + bool isIntern () const; + QString url () const; + KABC::Addressee* addressee () const; + QString asString () const; + +}; // class Agent + +//igx QDataStream& operator << (QDataStream&, const KABC::Agent&); +//igx QDataStream& operator >> (QDataStream&, KABC::Agent&); +}; // namespace KABC + +%End + diff --git a/sip/kabc/distributionlist.sip b/sip/kabc/distributionlist.sip new file mode 100644 index 0000000..a2bddbf --- /dev/null +++ b/sip/kabc/distributionlist.sip @@ -0,0 +1,175 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kabc version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +namespace KABC +{ + +class DistributionList +{ +%TypeHeaderCode +#include +%End + + +public: + + class Entry + { + + public: + typedef QValueList List; + Entry (); + Entry (const KABC::Addressee&, const QString&); + KABC::Addressee addressee; + QString email; + + }; // class Entry + + +public: + DistributionList (KABC::DistributionListManager*, const QString&); + void setName (const QString&); + QString name () const; + void insertEntry (const KABC::Addressee&, const QString& = QString ::null ); + void removeEntry (const KABC::Addressee&, const QString& = QString ::null ); + QStringList emails () const; + KABC::DistributionList::Entry::List entries () const; + +}; // class DistributionList + + +class DistributionListManager +{ +%TypeHeaderCode +#include +%End + + +public: + DistributionListManager (KABC::AddressBook*); + KABC::DistributionList* list (const QString&); + void insert (KABC::DistributionList*); + void remove (KABC::DistributionList*); + QStringList listNames (); + bool load (); + bool save (); + +}; // class DistributionListManager + + +%If ( KDE_3_1_0 - ) + +class DistributionListWatcher : QObject +{ +%TypeHeaderCode +#include +%End + + +public: + static KABC::DistributionListWatcher* self (); + +signals: + void changed (); + +protected: + DistributionListWatcher (); + ~DistributionListWatcher (); + +}; // class DistributionListWatcher + +%End + +}; // namespace KABC + + + +%MappedType KABC::DistributionList::Entry::List +//converts a Python list of KABC::DistributionList::Entry +{ +%TypeHeaderCode +#include +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New(0); + + // Create the list + PyObject *pylist; + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + QValueList *cpplist = (QValueList *)sipCpp; + PyObject *inst; + + // Get it. + QValueList::Iterator it; + for( it = cpplist->begin(); it != cpplist->end(); ++it ) + { + if (((inst = sipConvertFromNewType(new KABC::DistributionList::Entry (*it), sipType_KABC_DistributionList_Entry, NULL)) == NULL) + || PyList_Append (pylist, inst) < 0) + { + Py_DECREF (pylist); + return NULL; + } + } + + return pylist; +%End + + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QValueList *cpplist = new QValueList; + + PyObject *elem; + KABC::DistributionList::Entry *cpp; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + cpp = (KABC::DistributionList::Entry *)sipForceConvertToType(elem, sipType_KABC_DistributionList_Entry, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + *sipIsErr = 1; + delete cpplist; + return 0; + } + + cpplist->append (*cpp); + } + + *sipCppPtr = cpplist; + + return 1; +%End +}; + + diff --git a/sip/kabc/distributionlistdialog.sip b/sip/kabc/distributionlistdialog.sip new file mode 100644 index 0000000..720afd0 --- /dev/null +++ b/sip/kabc/distributionlistdialog.sip @@ -0,0 +1,74 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kabc version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_1_0 - ) +namespace KABC +{ + +class DistributionListDialog : KDialogBase +{ +%TypeHeaderCode +#include +%End + + +public: + DistributionListDialog (KABC::AddressBook*, QWidget*); + +}; // class DistributionListDialog + + +class EmailSelector : KDialogBase +{ +%TypeHeaderCode +#include +%End + + +public: + EmailSelector (const QStringList&, const QString&, QWidget*); + QString selected (); + static QString getEmail (const QStringList&, const QString&, QWidget*); + +}; // class EmailSelector + + +class DistributionListEditorWidget : QWidget +{ +%TypeHeaderCode +#include +%End + + +public: + DistributionListEditorWidget (KABC::AddressBook*, QWidget*); + +}; // class DistributionListEditorWidget + +}; // namespace KABC + +%End + diff --git a/sip/kabc/distributionlisteditor.sip b/sip/kabc/distributionlisteditor.sip new file mode 100644 index 0000000..e97df7f --- /dev/null +++ b/sip/kabc/distributionlisteditor.sip @@ -0,0 +1,47 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kabc version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +namespace KABC +{ + +class EmailSelectDialog : KDialogBase +{ +%TypeHeaderCode +#include +%End + + +public: + EmailSelectDialog (const QStringList&, const QString&, QWidget*); + QString selected (); + static QString getEmail (const QStringList&, const QString&, QWidget*); + +}; // class EmailSelectDialog + + +//ig class DistributionListEditor : QWidget; + +}; // namespace KABC + diff --git a/sip/kabc/errorhandler.sip b/sip/kabc/errorhandler.sip new file mode 100644 index 0000000..9a24483 --- /dev/null +++ b/sip/kabc/errorhandler.sip @@ -0,0 +1,97 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kabc version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_1_0 - ) +namespace KABC +{ + +class ErrorHandler +{ +%TypeHeaderCode +#include +#include +%End + + +public: + virtual void error (const QString&) = 0; + +}; // class ErrorHandler + + +class ConsoleErrorHandler : KABC::ErrorHandler +{ +%TypeHeaderCode +#include +#include +%End + + +public: + virtual void error (const QString&); + +}; // class ConsoleErrorHandler + + +%If ( KDE_3_5_1 - ) + +class GUIErrorHandler : KABC::ErrorHandler +{ +%TypeHeaderCode +#include +%End + + +public: + virtual void error (const QString&); + +}; // class GUIErrorHandler + +%End + + +%If ( KDE_3_2_0 - ) + +class GuiErrorHandler : KABC::ErrorHandler +{ +%TypeHeaderCode +#include +#include +%End + + +public: + GuiErrorHandler (QWidget*); + virtual void error (const QString&); + +}; // class GuiErrorHandler + +%End + +}; // namespace KABC + +%End + diff --git a/sip/kabc/field.sip b/sip/kabc/field.sip new file mode 100644 index 0000000..ab4d670 --- /dev/null +++ b/sip/kabc/field.sip @@ -0,0 +1,160 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kabc version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_1_0 - ) +namespace KABC +{ + +class Field +{ +%TypeHeaderCode +#include +%End + + +public: + typedef QValueList List; + + enum FieldCategory + { + All, + Frequent, + Address, + Email, + Personal, + Organization, + CustomCategory + }; + + virtual QString label (); + virtual int category (); + static QString categoryLabel (int); + virtual QString value (const KABC::Addressee&); + virtual bool setValue (KABC::Addressee&, const QString&); + +%If ( KDE_3_2_0 - ) + QString sortKey (const KABC::Addressee&); +%End + + virtual bool isCustom (); + virtual bool equals (KABC::Field*); + static KABC::Field::List allFields (); + static KABC::Field::List defaultFields (); + static KABC::Field* createCustomField (const QString&, int, const QString&, const QString&); + static void deleteFields (); + static void saveFields (KConfig*, const QString&, const KABC::Field::List&); + static void saveFields (const QString&, const KABC::Field::List&); + static KABC::Field::List restoreFields (KConfig*, const QString&); + static KABC::Field::List restoreFields (const QString&); + +protected: + static void createField (int, int = 0); + static void createDefaultField (int, int = 0); + +private: +//ig Field (KABC::Field::FieldImpl*); + ~Field (); +//force + Field (); +//end + +}; // class Field + +}; // namespace KABC + +%End + + + +%If (KDE_3_1_0 - ) +%MappedType KABC::Field::List +//converts a Python list of KABC::Field +{ +%TypeHeaderCode +#include +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New(0); + + // Create the list + PyObject *pylist; + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + QValueList *cpplist = (QValueList *)sipCpp; + PyObject *inst; + + // Get it. + QValueList::Iterator it; + for( it = cpplist->begin(); it != cpplist->end(); ++it ) + { + if (((inst = sipConvertFromType((KABC::Field *)(*it), sipType_KABC_Field, NULL)) == NULL) + || PyList_Append (pylist, inst) < 0) + { + Py_DECREF (pylist); + return NULL; + } + } + + return pylist; +%End + + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QValueList *cpplist = new QValueList; + + PyObject *elem; + KABC::Field *cpp; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + cpp = (KABC::Field *)sipForceConvertToType(elem, sipType_KABC_Field, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + *sipIsErr = 1; + delete cpplist; + return 0; + } + + cpplist->append (cpp); + } + + *sipCppPtr = cpplist; + + return 1; +%End +}; +%End + + diff --git a/sip/kabc/format.sip b/sip/kabc/format.sip new file mode 100644 index 0000000..30b863b --- /dev/null +++ b/sip/kabc/format.sip @@ -0,0 +1,43 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kabc version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +namespace KABC +{ + +class Format +{ +%TypeHeaderCode +#include +%End + + +public: + virtual bool load (KABC::AddressBook*, const QString&) = 0; + virtual bool save (KABC::AddressBook*, const QString&) = 0; + +}; // class Format + +}; // namespace KABC + diff --git a/sip/kabc/formatfactory.sip b/sip/kabc/formatfactory.sip new file mode 100644 index 0000000..14ec70c --- /dev/null +++ b/sip/kabc/formatfactory.sip @@ -0,0 +1,74 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kabc version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_1_0 - ) +namespace KABC +{ + +class FormatInfo +{ +%TypeHeaderCode +#include +%End + + +public: + QString library; + QString nameLabel; + QString descriptionLabel; + +}; // class FormatInfo + + +class FormatFactory +{ +%TypeHeaderCode +#include +%End + + +public: + static KABC::FormatFactory* self (); + KABC::FormatPlugin* format (const QString&); + QStringList formats (); + KABC::FormatInfo* info (const QString&); + +protected: + FormatFactory (); + +protected: + +%If ( - KDE_3_2_0 ) + ~FormatFactory (); +%End + + +}; // class FormatFactory + +}; // namespace KABC + +%End + diff --git a/sip/kabc/formatplugin.sip b/sip/kabc/formatplugin.sip new file mode 100644 index 0000000..bb63e8d --- /dev/null +++ b/sip/kabc/formatplugin.sip @@ -0,0 +1,50 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kabc version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_1_0 - ) +namespace KABC +{ + +class FormatPlugin : KABC::Plugin +{ +%TypeHeaderCode +#include +%End + + +public: + virtual bool load (KABC::Addressee&, QFile*) = 0; + virtual bool loadAll (KABC::AddressBook*, KABC::Resource*, QFile*) = 0; + virtual void save (const KABC::Addressee&, QFile*) = 0; + virtual void saveAll (KABC::AddressBook*, KABC::Resource*, QFile*) = 0; + virtual bool checkFormat (QFile*) const = 0; + +}; // class FormatPlugin + +}; // namespace KABC + +%End + diff --git a/sip/kabc/geo.sip b/sip/kabc/geo.sip new file mode 100644 index 0000000..48124a7 --- /dev/null +++ b/sip/kabc/geo.sip @@ -0,0 +1,61 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kabc version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +namespace KABC +{ + +class Geo +{ +%TypeHeaderCode +#include +%End + + +public: + Geo (); + Geo (float, float); + void setLatitude (float); + float latitude () const; + void setLongitude (float); + float longitude () const; + bool isValid () const; + bool operator == (const KABC::Geo&) const; + +%If ( KDE_3_1_0 - ) + bool operator != (const KABC::Geo&) const; +%End + + QString asString () const; + +}; // class Geo + + +%If ( KDE_3_1_0 - ) +//igx QDataStream& operator << (QDataStream&, const KABC::Geo&); +//igx QDataStream& operator >> (QDataStream&, KABC::Geo&); +%End + +}; // namespace KABC + diff --git a/sip/kabc/kabc-kde310.diff b/sip/kabc/kabc-kde310.diff new file mode 100644 index 0000000..294c0cb --- /dev/null +++ b/sip/kabc/kabc-kde310.diff @@ -0,0 +1,17 @@ ++ %Include addresseelist.sip ++ %Include addresslineedit.sip ++ %Include agent.sip ++ %Include distributionlistdialog.sip ++ %Include errorhandler.sip ++ %Include field.sip ++ %Include formatfactory.sip ++ %Include formatplugin.sip ++ %Include key.sip ++ %Include ldapclient.sip ++ %Include picture.sip ++ %Include plugin.sip ++ %Include resourceselectdialog.sip ++ %Include secrecy.sip ++ %Include sound.sip ++ %Include vcardconverter.sip ++ %Include vcardformatplugin.sip diff --git a/sip/kabc/kabc-kde311.diff b/sip/kabc/kabc-kde311.diff new file mode 100644 index 0000000..294c0cb --- /dev/null +++ b/sip/kabc/kabc-kde311.diff @@ -0,0 +1,17 @@ ++ %Include addresseelist.sip ++ %Include addresslineedit.sip ++ %Include agent.sip ++ %Include distributionlistdialog.sip ++ %Include errorhandler.sip ++ %Include field.sip ++ %Include formatfactory.sip ++ %Include formatplugin.sip ++ %Include key.sip ++ %Include ldapclient.sip ++ %Include picture.sip ++ %Include plugin.sip ++ %Include resourceselectdialog.sip ++ %Include secrecy.sip ++ %Include sound.sip ++ %Include vcardconverter.sip ++ %Include vcardformatplugin.sip diff --git a/sip/kabc/kabc-kde312.diff b/sip/kabc/kabc-kde312.diff new file mode 100644 index 0000000..294c0cb --- /dev/null +++ b/sip/kabc/kabc-kde312.diff @@ -0,0 +1,17 @@ ++ %Include addresseelist.sip ++ %Include addresslineedit.sip ++ %Include agent.sip ++ %Include distributionlistdialog.sip ++ %Include errorhandler.sip ++ %Include field.sip ++ %Include formatfactory.sip ++ %Include formatplugin.sip ++ %Include key.sip ++ %Include ldapclient.sip ++ %Include picture.sip ++ %Include plugin.sip ++ %Include resourceselectdialog.sip ++ %Include secrecy.sip ++ %Include sound.sip ++ %Include vcardconverter.sip ++ %Include vcardformatplugin.sip diff --git a/sip/kabc/kabc-kde313.diff b/sip/kabc/kabc-kde313.diff new file mode 100644 index 0000000..294c0cb --- /dev/null +++ b/sip/kabc/kabc-kde313.diff @@ -0,0 +1,17 @@ ++ %Include addresseelist.sip ++ %Include addresslineedit.sip ++ %Include agent.sip ++ %Include distributionlistdialog.sip ++ %Include errorhandler.sip ++ %Include field.sip ++ %Include formatfactory.sip ++ %Include formatplugin.sip ++ %Include key.sip ++ %Include ldapclient.sip ++ %Include picture.sip ++ %Include plugin.sip ++ %Include resourceselectdialog.sip ++ %Include secrecy.sip ++ %Include sound.sip ++ %Include vcardconverter.sip ++ %Include vcardformatplugin.sip diff --git a/sip/kabc/kabc-kde314.diff b/sip/kabc/kabc-kde314.diff new file mode 100644 index 0000000..294c0cb --- /dev/null +++ b/sip/kabc/kabc-kde314.diff @@ -0,0 +1,17 @@ ++ %Include addresseelist.sip ++ %Include addresslineedit.sip ++ %Include agent.sip ++ %Include distributionlistdialog.sip ++ %Include errorhandler.sip ++ %Include field.sip ++ %Include formatfactory.sip ++ %Include formatplugin.sip ++ %Include key.sip ++ %Include ldapclient.sip ++ %Include picture.sip ++ %Include plugin.sip ++ %Include resourceselectdialog.sip ++ %Include secrecy.sip ++ %Include sound.sip ++ %Include vcardconverter.sip ++ %Include vcardformatplugin.sip diff --git a/sip/kabc/kabc-kde320.diff b/sip/kabc/kabc-kde320.diff new file mode 100644 index 0000000..a7c2d68 --- /dev/null +++ b/sip/kabc/kabc-kde320.diff @@ -0,0 +1,21 @@ ++ %Include addresseelist.sip ++ %Include addresslineedit.sip ++ %Include agent.sip ++ %Include distributionlistdialog.sip ++ %Include errorhandler.sip ++ %Include field.sip ++ %Include formatfactory.sip ++ %Include formatplugin.sip ++ %Include key.sip ++ %Include ldapclient.sip +//+ %Include ldifconverter.sip ++ %Include lock.sip ++ %Include locknull.sip ++ %Include picture.sip ++ %Include plugin.sip ++ %Include resourcefile.sip ++ %Include resourceselectdialog.sip ++ %Include secrecy.sip ++ %Include sound.sip ++ %Include vcardconverter.sip ++ %Include vcardformatplugin.sip diff --git a/sip/kabc/kabc-kde322.diff b/sip/kabc/kabc-kde322.diff new file mode 100644 index 0000000..a7c2d68 --- /dev/null +++ b/sip/kabc/kabc-kde322.diff @@ -0,0 +1,21 @@ ++ %Include addresseelist.sip ++ %Include addresslineedit.sip ++ %Include agent.sip ++ %Include distributionlistdialog.sip ++ %Include errorhandler.sip ++ %Include field.sip ++ %Include formatfactory.sip ++ %Include formatplugin.sip ++ %Include key.sip ++ %Include ldapclient.sip +//+ %Include ldifconverter.sip ++ %Include lock.sip ++ %Include locknull.sip ++ %Include picture.sip ++ %Include plugin.sip ++ %Include resourcefile.sip ++ %Include resourceselectdialog.sip ++ %Include secrecy.sip ++ %Include sound.sip ++ %Include vcardconverter.sip ++ %Include vcardformatplugin.sip diff --git a/sip/kabc/kabc-kde323.diff b/sip/kabc/kabc-kde323.diff new file mode 100644 index 0000000..a7c2d68 --- /dev/null +++ b/sip/kabc/kabc-kde323.diff @@ -0,0 +1,21 @@ ++ %Include addresseelist.sip ++ %Include addresslineedit.sip ++ %Include agent.sip ++ %Include distributionlistdialog.sip ++ %Include errorhandler.sip ++ %Include field.sip ++ %Include formatfactory.sip ++ %Include formatplugin.sip ++ %Include key.sip ++ %Include ldapclient.sip +//+ %Include ldifconverter.sip ++ %Include lock.sip ++ %Include locknull.sip ++ %Include picture.sip ++ %Include plugin.sip ++ %Include resourcefile.sip ++ %Include resourceselectdialog.sip ++ %Include secrecy.sip ++ %Include sound.sip ++ %Include vcardconverter.sip ++ %Include vcardformatplugin.sip diff --git a/sip/kabc/kabc-kde330.diff b/sip/kabc/kabc-kde330.diff new file mode 100644 index 0000000..d89a0ac --- /dev/null +++ b/sip/kabc/kabc-kde330.diff @@ -0,0 +1,24 @@ ++ %Include addresseelist.sip ++ %Include addresslineedit.sip ++ %Include agent.sip ++ %Include distributionlistdialog.sip ++ %Include errorhandler.sip ++ %Include field.sip ++ %Include formatfactory.sip ++ %Include formatplugin.sip ++ %Include key.sip ++ %Include ldapclient.sip ++ %Include ldapconfigwidget.sip ++ %Include ldapurl.sip ++ %Include ldif.sip +//+ %Include ldifconverter.sip ++ %Include lock.sip ++ %Include locknull.sip ++ %Include picture.sip ++ %Include plugin.sip ++ %Include resourcefile.sip ++ %Include resourceselectdialog.sip ++ %Include secrecy.sip ++ %Include sound.sip ++ %Include vcardconverter.sip ++ %Include vcardformatplugin.sip diff --git a/sip/kabc/kabc-kde331.diff b/sip/kabc/kabc-kde331.diff new file mode 100644 index 0000000..d89a0ac --- /dev/null +++ b/sip/kabc/kabc-kde331.diff @@ -0,0 +1,24 @@ ++ %Include addresseelist.sip ++ %Include addresslineedit.sip ++ %Include agent.sip ++ %Include distributionlistdialog.sip ++ %Include errorhandler.sip ++ %Include field.sip ++ %Include formatfactory.sip ++ %Include formatplugin.sip ++ %Include key.sip ++ %Include ldapclient.sip ++ %Include ldapconfigwidget.sip ++ %Include ldapurl.sip ++ %Include ldif.sip +//+ %Include ldifconverter.sip ++ %Include lock.sip ++ %Include locknull.sip ++ %Include picture.sip ++ %Include plugin.sip ++ %Include resourcefile.sip ++ %Include resourceselectdialog.sip ++ %Include secrecy.sip ++ %Include sound.sip ++ %Include vcardconverter.sip ++ %Include vcardformatplugin.sip diff --git a/sip/kabc/kabc-kde332.diff b/sip/kabc/kabc-kde332.diff new file mode 100644 index 0000000..d89a0ac --- /dev/null +++ b/sip/kabc/kabc-kde332.diff @@ -0,0 +1,24 @@ ++ %Include addresseelist.sip ++ %Include addresslineedit.sip ++ %Include agent.sip ++ %Include distributionlistdialog.sip ++ %Include errorhandler.sip ++ %Include field.sip ++ %Include formatfactory.sip ++ %Include formatplugin.sip ++ %Include key.sip ++ %Include ldapclient.sip ++ %Include ldapconfigwidget.sip ++ %Include ldapurl.sip ++ %Include ldif.sip +//+ %Include ldifconverter.sip ++ %Include lock.sip ++ %Include locknull.sip ++ %Include picture.sip ++ %Include plugin.sip ++ %Include resourcefile.sip ++ %Include resourceselectdialog.sip ++ %Include secrecy.sip ++ %Include sound.sip ++ %Include vcardconverter.sip ++ %Include vcardformatplugin.sip diff --git a/sip/kabc/kabc-kde340.diff b/sip/kabc/kabc-kde340.diff new file mode 100644 index 0000000..24ca659 --- /dev/null +++ b/sip/kabc/kabc-kde340.diff @@ -0,0 +1,25 @@ ++ %Include addresseelist.sip ++ %Include addresslineedit.sip ++ %Include agent.sip ++ %Include distributionlistdialog.sip ++ %Include errorhandler.sip ++ %Include field.sip ++ %Include formatfactory.sip ++ %Include formatplugin.sip ++ %Include key.sip ++ %Include ldapclient.sip ++ %Include ldapconfigwidget.sip ++ %Include ldapurl.sip ++ %Include ldif.sip +//+ %Include ldifconverter.sip ++ %Include lock.sip ++ %Include locknull.sip ++ %Include picture.sip ++ %Include plugin.sip ++ %Include resourcefile.sip ++ %Include resourceselectdialog.sip ++ %Include secrecy.sip ++ %Include sortmode.sip ++ %Include sound.sip ++ %Include vcardconverter.sip ++ %Include vcardformatplugin.sip diff --git a/sip/kabc/kabc-kde341.diff b/sip/kabc/kabc-kde341.diff new file mode 100644 index 0000000..24ca659 --- /dev/null +++ b/sip/kabc/kabc-kde341.diff @@ -0,0 +1,25 @@ ++ %Include addresseelist.sip ++ %Include addresslineedit.sip ++ %Include agent.sip ++ %Include distributionlistdialog.sip ++ %Include errorhandler.sip ++ %Include field.sip ++ %Include formatfactory.sip ++ %Include formatplugin.sip ++ %Include key.sip ++ %Include ldapclient.sip ++ %Include ldapconfigwidget.sip ++ %Include ldapurl.sip ++ %Include ldif.sip +//+ %Include ldifconverter.sip ++ %Include lock.sip ++ %Include locknull.sip ++ %Include picture.sip ++ %Include plugin.sip ++ %Include resourcefile.sip ++ %Include resourceselectdialog.sip ++ %Include secrecy.sip ++ %Include sortmode.sip ++ %Include sound.sip ++ %Include vcardconverter.sip ++ %Include vcardformatplugin.sip diff --git a/sip/kabc/kabc-kde342.diff b/sip/kabc/kabc-kde342.diff new file mode 100644 index 0000000..24ca659 --- /dev/null +++ b/sip/kabc/kabc-kde342.diff @@ -0,0 +1,25 @@ ++ %Include addresseelist.sip ++ %Include addresslineedit.sip ++ %Include agent.sip ++ %Include distributionlistdialog.sip ++ %Include errorhandler.sip ++ %Include field.sip ++ %Include formatfactory.sip ++ %Include formatplugin.sip ++ %Include key.sip ++ %Include ldapclient.sip ++ %Include ldapconfigwidget.sip ++ %Include ldapurl.sip ++ %Include ldif.sip +//+ %Include ldifconverter.sip ++ %Include lock.sip ++ %Include locknull.sip ++ %Include picture.sip ++ %Include plugin.sip ++ %Include resourcefile.sip ++ %Include resourceselectdialog.sip ++ %Include secrecy.sip ++ %Include sortmode.sip ++ %Include sound.sip ++ %Include vcardconverter.sip ++ %Include vcardformatplugin.sip diff --git a/sip/kabc/kabc-kde343.diff b/sip/kabc/kabc-kde343.diff new file mode 100644 index 0000000..24ca659 --- /dev/null +++ b/sip/kabc/kabc-kde343.diff @@ -0,0 +1,25 @@ ++ %Include addresseelist.sip ++ %Include addresslineedit.sip ++ %Include agent.sip ++ %Include distributionlistdialog.sip ++ %Include errorhandler.sip ++ %Include field.sip ++ %Include formatfactory.sip ++ %Include formatplugin.sip ++ %Include key.sip ++ %Include ldapclient.sip ++ %Include ldapconfigwidget.sip ++ %Include ldapurl.sip ++ %Include ldif.sip +//+ %Include ldifconverter.sip ++ %Include lock.sip ++ %Include locknull.sip ++ %Include picture.sip ++ %Include plugin.sip ++ %Include resourcefile.sip ++ %Include resourceselectdialog.sip ++ %Include secrecy.sip ++ %Include sortmode.sip ++ %Include sound.sip ++ %Include vcardconverter.sip ++ %Include vcardformatplugin.sip diff --git a/sip/kabc/kabc-kde350.diff b/sip/kabc/kabc-kde350.diff new file mode 100644 index 0000000..24ca659 --- /dev/null +++ b/sip/kabc/kabc-kde350.diff @@ -0,0 +1,25 @@ ++ %Include addresseelist.sip ++ %Include addresslineedit.sip ++ %Include agent.sip ++ %Include distributionlistdialog.sip ++ %Include errorhandler.sip ++ %Include field.sip ++ %Include formatfactory.sip ++ %Include formatplugin.sip ++ %Include key.sip ++ %Include ldapclient.sip ++ %Include ldapconfigwidget.sip ++ %Include ldapurl.sip ++ %Include ldif.sip +//+ %Include ldifconverter.sip ++ %Include lock.sip ++ %Include locknull.sip ++ %Include picture.sip ++ %Include plugin.sip ++ %Include resourcefile.sip ++ %Include resourceselectdialog.sip ++ %Include secrecy.sip ++ %Include sortmode.sip ++ %Include sound.sip ++ %Include vcardconverter.sip ++ %Include vcardformatplugin.sip diff --git a/sip/kabc/kabc-kde351.diff b/sip/kabc/kabc-kde351.diff new file mode 100644 index 0000000..24ca659 --- /dev/null +++ b/sip/kabc/kabc-kde351.diff @@ -0,0 +1,25 @@ ++ %Include addresseelist.sip ++ %Include addresslineedit.sip ++ %Include agent.sip ++ %Include distributionlistdialog.sip ++ %Include errorhandler.sip ++ %Include field.sip ++ %Include formatfactory.sip ++ %Include formatplugin.sip ++ %Include key.sip ++ %Include ldapclient.sip ++ %Include ldapconfigwidget.sip ++ %Include ldapurl.sip ++ %Include ldif.sip +//+ %Include ldifconverter.sip ++ %Include lock.sip ++ %Include locknull.sip ++ %Include picture.sip ++ %Include plugin.sip ++ %Include resourcefile.sip ++ %Include resourceselectdialog.sip ++ %Include secrecy.sip ++ %Include sortmode.sip ++ %Include sound.sip ++ %Include vcardconverter.sip ++ %Include vcardformatplugin.sip diff --git a/sip/kabc/kabc-kde352.diff b/sip/kabc/kabc-kde352.diff new file mode 100644 index 0000000..24ca659 --- /dev/null +++ b/sip/kabc/kabc-kde352.diff @@ -0,0 +1,25 @@ ++ %Include addresseelist.sip ++ %Include addresslineedit.sip ++ %Include agent.sip ++ %Include distributionlistdialog.sip ++ %Include errorhandler.sip ++ %Include field.sip ++ %Include formatfactory.sip ++ %Include formatplugin.sip ++ %Include key.sip ++ %Include ldapclient.sip ++ %Include ldapconfigwidget.sip ++ %Include ldapurl.sip ++ %Include ldif.sip +//+ %Include ldifconverter.sip ++ %Include lock.sip ++ %Include locknull.sip ++ %Include picture.sip ++ %Include plugin.sip ++ %Include resourcefile.sip ++ %Include resourceselectdialog.sip ++ %Include secrecy.sip ++ %Include sortmode.sip ++ %Include sound.sip ++ %Include vcardconverter.sip ++ %Include vcardformatplugin.sip diff --git a/sip/kabc/kabc-kde353.diff b/sip/kabc/kabc-kde353.diff new file mode 100644 index 0000000..3ea9e5f --- /dev/null +++ b/sip/kabc/kabc-kde353.diff @@ -0,0 +1,25 @@ ++ %Include addresseelist.sip ++ %Include addresslineedit.sip ++ %Include agent.sip ++ %Include distributionlistdialog.sip ++ %Include errorhandler.sip ++ %Include field.sip ++ %Include formatfactory.sip ++ %Include formatplugin.sip ++ %Include key.sip ++ %Include ldapclient.sip ++ %Include ldapconfigwidget.sip ++ %Include ldapurl.sip ++ %Include ldif.sip ++ %Include ldifconverter.sip ++ %Include lock.sip ++ %Include locknull.sip ++ %Include picture.sip ++ %Include plugin.sip ++ %Include resourcefile.sip ++ %Include resourceselectdialog.sip ++ %Include secrecy.sip ++ %Include sortmode.sip ++ %Include sound.sip ++ %Include vcardconverter.sip ++ %Include vcardformatplugin.sip diff --git a/sip/kabc/kabcmod.sip.in b/sip/kabc/kabcmod.sip.in new file mode 100644 index 0000000..0b5234a --- /dev/null +++ b/sip/kabc/kabcmod.sip.in @@ -0,0 +1,55 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kabc version KDE_3_5_2 + +%Copying + + This software is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License as + published by the Free Software Foundation; either version 2 of + the License, or (at your option) any later version. + + This software is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public + License along with this library; see the file COPYING. + If not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +%End + +%Module kabc + +%Import qt/qtmod.sip +%Import qtxml/qtxmlmod.sip +%Import dcopmod.sip +%Import kdecoremod.sip +%Import kdefxmod.sip +%Import kdeuimod.sip +%Import kiomod.sip +%Import kresourcesmod.sip + +%Include address.sip +%Include addressbook.sip +%Include addressee.sip +%Include addresseedialog.sip +%Include distributionlist.sip +%Include distributionlisteditor.sip +%Include format.sip +%Include geo.sip +//%Include ldifconverter.sip +%Include phonenumber.sip +%Include resource.sip +%Include stdaddressbook.sip +%Include timezone.sip +%Include vcardformat.sip +@mark@ + diff --git a/sip/kabc/key.sip b/sip/kabc/key.sip new file mode 100644 index 0000000..2321204 --- /dev/null +++ b/sip/kabc/key.sip @@ -0,0 +1,143 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kabc version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_1_0 - ) +namespace KABC +{ + +class Key +{ +%TypeHeaderCode +#include +%End + + +public: + typedef QValueList List; + typedef QValueList TypeList; + + enum Types + { + X509, + PGP, + Custom + }; + + Key (const QString& = QString ::null , int = PGP ); + bool operator == (const KABC::Key&) const; + bool operator != (const KABC::Key&) const; + void setId (const QString&); + QString id () const; + void setBinaryData (const QByteArray&); + QByteArray binaryData () const; + void setTextData (const QString&); + QString textData () const; + bool isBinary () const; + void setType (int); + void setCustomTypeString (const QString&); + int type () const; + QString customTypeString () const; + static TypeList typeList (); + static QString typeLabel (int); + +}; // class Key + +//igx QDataStream& operator << (QDataStream&, const KABC::Key&); +//igx QDataStream& operator >> (QDataStream&, KABC::Key&); +}; // namespace KABC + +%End + + + +%MappedType KABC::Key::List +//converts a Python list of KABC::Key +{ +%TypeHeaderCode +#include +//typedef QValueList List; +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New(0); + + // Create the list + PyObject *pylist; + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + QValueList *cpplist = (QValueList *)sipCpp; + PyObject *inst; + + // Get it. + QValueList::Iterator it; + for( it = cpplist->begin(); it != cpplist->end(); ++it ) + { + if (((inst = sipConvertFromNewType(new KABC::Key(*it), sipType_KABC_Key, NULL)) == NULL) + || PyList_Append (pylist, inst) < 0) + { + Py_DECREF (pylist); + return NULL; + } + } + + return pylist; +%End + + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QValueList *cpplist = new QValueList; + + PyObject *elem; + KABC::Key *cpp; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + cpp = (KABC::Key *)sipForceConvertToType(elem, sipType_KABC_Key, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + *sipIsErr = 1; + delete cpplist; + return 0; + } + + cpplist->append (*cpp); + } + + *sipCppPtr = cpplist; + + return 1; +%End +}; + + diff --git a/sip/kabc/ldapclient.sip b/sip/kabc/ldapclient.sip new file mode 100644 index 0000000..610749e --- /dev/null +++ b/sip/kabc/ldapclient.sip @@ -0,0 +1,243 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kabc version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_1_0 - ) +namespace KABC +{ +//ig typedef QValueList LdapAttrValue; +//ig typedef QMap LdapAttrMap; + +class LdapObject +{ +%TypeHeaderCode +#include +%End + + +public: + LdapObject (); + +%If ( KDE_3_3_0 - ) + LdapObject (const QString&, KABC::LdapClient*); +%End + + LdapObject (const KABC::LdapObject&); + QString toString () const; + void clear (); + QString dn; +//ig LdapAttrMap attrs; + +%If ( KDE_3_3_0 - ) + KABC::LdapClient* client; +%End + + +protected: + void assign (const KABC::LdapObject&); + +public: + +%If ( - KDE_3_3_0 ) + LdapObject (QString); +%End + + +}; // class LdapObject + + +class LdapClient : QObject +{ +%TypeHeaderCode +#include +%End + + +public: + LdapClient (QObject* = 0, const char* = 0); + bool isActive () const; + +signals: + void done (); + void error (const QString&); + void result (const KABC::LdapObject&); + +public slots: + void setHost (const QString&); + QString host () const; + void setPort (const QString&); + QString port () const; + void setBase (const QString&); + QString base () const; + +%If ( KDE_3_2_0 - ) + void setBindDN (const QString&); + QString bindDN () const; + void setPwdBindDN (const QString&); + QString pwdBindDN () const; +%End + + void setAttrs (const QStringList&); + QStringList attrs () const; + void setScope (const QString); + void startQuery (const QString&); + void cancelQuery (); + +protected slots: + void slotData (KIO::Job*, const QByteArray&); + void slotInfoMessage (KIO::Job*, const QString&); + void slotDone (); + +protected: + void startParseLDIF (); + void parseLDIF (const QByteArray&); + void endParseLDIF (); + +}; // class LdapClient + + +%If ( KDE_3_3_0 - ) + +class LdapResult +{ +%TypeHeaderCode +#include +%End + + +public: + QString name; + QString email; + int clientNumber; + +}; // class LdapResult + +%End + + +%If ( KDE_3_3_0 - ) +typedef QValueList LdapResultList; +%End + + +class LdapSearch : QObject +{ +%TypeHeaderCode +#include +%End + + +public: + LdapSearch (); + void startSearch (const QString&); + void cancelSearch (); + bool isAvailable () const; + +signals: + void searchData (const QStringList&); + +%If ( KDE_3_3_0 - ) + void searchData (const KABC::LdapResultList&); +%End + + void searchDone (); + +}; // class LdapSearch + +}; // namespace KABC + +%End + + + +%If (KDE_3_3_0 - ) +%MappedType KABC::LdapResultList +//converts a Python list of KABC::LdapREsult +{ +%TypeHeaderCode +#include +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New(0); + + // Create the list + PyObject *pylist; + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + QValueList *cpplist = (QValueList *)sipCpp; + PyObject *inst; + + // Get it. + QValueList::Iterator it; + for( it = cpplist->begin(); it != cpplist->end(); ++it ) + { + if (((inst = sipConvertFromNewType(new KABC::LdapResult(*it), sipType_KABC_LdapResult, NULL)) == NULL) + || PyList_Append (pylist, inst) < 0) + { + Py_DECREF (pylist); + return NULL; + } + } + + return pylist; +%End + + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QValueList *cpplist = new QValueList; + + PyObject *elem; + KABC::LdapResult *cpp; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + cpp = (KABC::LdapResult *)sipForceConvertToType(elem, sipType_KABC_LdapResult, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + *sipIsErr = 1; + delete cpplist; + return 0; + } + + cpplist->append (*cpp); + } + + *sipCppPtr = cpplist; + + return 1; +%End +}; +%End + + diff --git a/sip/kabc/ldapconfigwidget.sip b/sip/kabc/ldapconfigwidget.sip new file mode 100644 index 0000000..ce1ddb1 --- /dev/null +++ b/sip/kabc/ldapconfigwidget.sip @@ -0,0 +1,105 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kabc version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_3_0 - ) +namespace KABC +{ + +class LdapConfigWidget : QWidget +{ +%TypeHeaderCode +#include +%End + + +public: + + enum LCW_Flags + { + W_USER, + W_PASS, + W_BINDDN, + W_REALM, + W_HOST, + W_PORT, + W_VER, + W_DN, + W_FILTER, + W_SECBOX, + W_AUTHBOX, + W_TIMELIMIT, + W_SIZELIMIT, + W_ALL + }; + + LdapConfigWidget (QWidget* = 0, const char* = 0, WFlags = 0); + LdapConfigWidget (int, QWidget* = 0, const char* = 0, WFlags = 0); + void setUser (const QString&); + QString user () const; + void setPassword (const QString&); + QString password () const; + void setBindDN (const QString&); + QString bindDN () const; + void setRealm (const QString&); + QString realm () const; + void setHost (const QString&); + QString host () const; + void setPort (int); + int port () const; + void setVer (int); + int ver () const; + void setDn (const QString&); + QString dn () const; + void setFilter (const QString&); + QString filter () const; + void setMech (const QString&); + QString mech () const; + void setSecNO (bool = 1); + bool isSecNO () const; + void setSecTLS (bool = 1); + bool isSecTLS () const; + void setSecSSL (bool = 1); + bool isSecSSL () const; + void setAuthAnon (bool = 1); + bool isAuthAnon () const; + void setAuthSimple (bool = 1); + bool isAuthSimple () const; + void setAuthSASL (bool = 1); + bool isAuthSASL () const; + void setSizeLimit (int); + int sizeLimit () const; + void setTimeLimit (int); + int timeLimit () const; + int flags () const; + void setFlags (int); + KABC::LDAPUrl url () const; + +}; // class LdapConfigWidget + +}; // namespace KABC + +%End + diff --git a/sip/kabc/ldapurl.sip b/sip/kabc/ldapurl.sip new file mode 100644 index 0000000..d0e6406 --- /dev/null +++ b/sip/kabc/ldapurl.sip @@ -0,0 +1,85 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kabc version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_3_0 - ) +namespace KABC +{ + +class LDAPUrl : KURL +{ +%TypeHeaderCode +#include +%End + + +public: + + class Extension + { + + public: + QString value; + bool critical; + + }; // class Extension + + +public: + + enum Scope + { + Base, + One, + Sub + }; + + LDAPUrl (); + LDAPUrl (const KURL&); + const QString& dn () const; + void setDn (const QString&); + const QStringList& attributes (); + void setAttributes (const QStringList&); + KABC::LDAPUrl::Scope scope () const; + void setScope (KABC::LDAPUrl::Scope); + const QString& filter () const; + void setFilter (QString); + bool hasExtension (const QString&) const; + KABC::LDAPUrl::Extension extension (const QString&) const; + QString extension (const QString&, bool& /Out/) const /PyName=extensionAndCritical/; + void setExtension (const QString&, const KABC::LDAPUrl::Extension&); + void setExtension (const QString&, const QString&, bool = 0); + void removeExtension (const QString&); + void updateQuery (); + +protected: + void parseQuery (); + +}; // class LDAPUrl + +}; // namespace KABC + +%End + diff --git a/sip/kabc/ldif.sip b/sip/kabc/ldif.sip new file mode 100644 index 0000000..b7deb95 --- /dev/null +++ b/sip/kabc/ldif.sip @@ -0,0 +1,99 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kabc version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_3_0 - ) +namespace KABC +{ + +class LDIF +{ +%TypeHeaderCode +#include +%End + + +public: + + enum ParseVal + { + None, + NewEntry, + EndEntry, + Item, + Control, + Err, + MoreData + }; + + + enum EntryType + { + Entry_None, + Entry_Add, + Entry_Del, + Entry_Mod, + Entry_Modrdn + }; + + + enum ModType + { + Mod_None, + Mod_Add, + Mod_Replace, + Mod_Del + }; + + LDIF (); + static QCString assembleLine (const QString&, const QByteArray&, uint = 0, bool = 0); + static QCString assembleLine (const QString&, const QCString&, uint = 0, bool = 0); + static QCString assembleLine (const QString&, const QString&, uint = 0, bool = 0); + static bool splitLine (const QCString&, QString&, QByteArray&); + static bool splitControl (const QCString&, QString&, bool&, QByteArray&); + void startParsing (); + KABC::LDIF::ParseVal processLine (); + KABC::LDIF::ParseVal nextItem (); + void setLDIF (const QByteArray&); + void endLDIF (); + KABC::LDIF::EntryType entryType () const; + int modType () const; + const QString& dn () const; + const QString& newRdn () const; + const QString& newSuperior () const; + bool delOldRdn () const; + const QString& attr () const; + const QByteArray& val () const; + bool isUrl () const; + bool critical () const; + const QString& oid () const; + uint lineNo () const; + +}; // class LDIF + +}; // namespace KABC + +%End + diff --git a/sip/kabc/ldifconverter.sip b/sip/kabc/ldifconverter.sip new file mode 100644 index 0000000..8bc4b52 --- /dev/null +++ b/sip/kabc/ldifconverter.sip @@ -0,0 +1,78 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kabc version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +%ModuleHeaderCode +#include +%End + + +%If ( KDE_3_2_0 - ) +namespace KABC +{ +namespace LDIFConverter +{ + +%If ( KDE_3_5_2 - ) +//ig bool LDIFToAddressee (const QString&, AddresseeList&, QDateTime = QDateTime ::currentDateTime ()); +//ig bool addresseeToLDIF (const AddresseeList&, QString&); +%End + +bool addresseeToLDIF (const KABC::Addressee&, QString&); +QString makeLDIFfieldString (QString, QString, bool = 1); +bool parseSingleLine (KABC::Addressee&, KABC::Address&, KABC::Address&, QString&); +bool splitLine (QString&, QString&, QString&); +bool evaluatePair (KABC::Addressee&, KABC::Address&, KABC::Address&, QString&, QString&); + +%If ( - KDE_3_5_2 ) +bool LDIFToAddressee (const QString&, KABC::Addressee::List&, QDateTime = QDateTime ::currentDateTime ()); +%MethodCode + + KABC::Addressee::List *xa1 = (KABC::Addressee::List *)a1; + + Py_BEGIN_ALLOW_THREADS + sipRes = KABC::LDIFConverter::LDIFToAddressee (*a0, *xa1, *a2); + Py_END_ALLOW_THREADS + +%End + +bool addresseeToLDIF (const KABC::Addressee::List&, QString&); +%MethodCode + + KABC::Addressee::List *xa0 = (KABC::Addressee::List *)a0; + + Py_BEGIN_ALLOW_THREADS + sipRes = KABC::LDIFConverter::addresseeToLDIF (*xa0, *a1); + Py_END_ALLOW_THREADS + +%End + +%End + +}; // namespace LDIFConverter + +}; // namespace KABC + +%End + diff --git a/sip/kabc/lock.sip b/sip/kabc/lock.sip new file mode 100644 index 0000000..82dbebb --- /dev/null +++ b/sip/kabc/lock.sip @@ -0,0 +1,57 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kabc version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_2_0 - ) +namespace KABC +{ + +class Lock : QObject +{ +%TypeHeaderCode +#include +%End + + +public: + Lock (const QString&); + virtual bool lock (); + virtual bool unlock (); + virtual QString error () const; + QString lockFileName () const; + static bool readLockFile (const QString&, int&, QString&); + static bool writeLockFile (const QString&); + static QString locksDir (); + +signals: + void locked (); + void unlocked (); + +}; // class Lock + +}; // namespace KABC + +%End + diff --git a/sip/kabc/locknull.sip b/sip/kabc/locknull.sip new file mode 100644 index 0000000..6c24a38 --- /dev/null +++ b/sip/kabc/locknull.sip @@ -0,0 +1,49 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kabc version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_2_0 - ) +namespace KABC +{ + +class LockNull : KABC::Lock +{ +%TypeHeaderCode +#include +%End + + +public: + LockNull (bool); + bool lock (); + bool unlock (); + QString error () const; + +}; // class LockNull + +}; // namespace KABC + +%End + diff --git a/sip/kabc/phonenumber.sip b/sip/kabc/phonenumber.sip new file mode 100644 index 0000000..39f662b --- /dev/null +++ b/sip/kabc/phonenumber.sip @@ -0,0 +1,190 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kabc version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +namespace KABC +{ + +class PhoneNumber +{ +%TypeHeaderCode +#include +%End + + +public: + typedef QValueList List; + +%If ( KDE_3_1_0 - ) + typedef QValueList TypeList; + + enum Types + { + Home, + Work, + Msg, + Pref, + Voice, + Fax, + Cell, + Video, + Bbs, + Modem, + Car, + Isdn, + Pcs, + Pager + }; + +%End + + PhoneNumber (); + PhoneNumber (const QString&, int = Home ); + +%If ( KDE_3_1_0 - ) + bool operator == (const KABC::PhoneNumber&) const; + bool operator != (const KABC::PhoneNumber&) const; +%End + + void setId (const QString&); + QString id () const; + void setNumber (const QString&); + QString number () const; + void setType (int); + int type () const; + +%If ( KDE_3_1_0 - ) + QString typeLabel () const; + QString label () const; + static TypeList typeList (); + static QString typeLabel (int); + static QString label (int); +%End + + +public: + +%If ( - KDE_3_1_0 ) + + enum + { + Home, + Work, + Msg, + Pref, + Voice, + Fax, + Cell, + Video, + Bbs, + Modem, + Car, + Isdn, + Pcs, + Pager + }; + +%End + + +}; // class PhoneNumber + + +%If ( KDE_3_1_0 - ) +//igx QDataStream& operator << (QDataStream&, const KABC::PhoneNumber&); +//igx QDataStream& operator >> (QDataStream&, KABC::PhoneNumber&); +%End + +}; // namespace KABC + + + +%MappedType KABC::PhoneNumber::List +//converts a Python list of KABC::PhoneNumber +{ +%TypeHeaderCode +#include +//typedef QValueList List; +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New(0); + + // Create the list + PyObject *pylist; + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + QValueList *cpplist = (QValueList *)sipCpp; + PyObject *inst; + + // Get it. + QValueList::Iterator it; + for( it = cpplist->begin(); it != cpplist->end(); ++it ) + { + if (((inst = sipConvertFromNewType(new KABC::PhoneNumber(*it), sipType_KABC_PhoneNumber, NULL)) == NULL) + || PyList_Append (pylist, inst) < 0) + { + Py_DECREF (pylist); + return NULL; + } + } + + return pylist; +%End + + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QValueList *cpplist = new QValueList; + + PyObject *elem; + KABC::PhoneNumber *cpp; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + cpp = (KABC::PhoneNumber *)sipForceConvertToType(elem, sipType_KABC_PhoneNumber, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + *sipIsErr = 1; + delete cpplist; + return 0; + } + + cpplist->append (*cpp); + } + + *sipCppPtr = cpplist; + + return 1; +%End +}; + + diff --git a/sip/kabc/picture.sip b/sip/kabc/picture.sip new file mode 100644 index 0000000..453566e --- /dev/null +++ b/sip/kabc/picture.sip @@ -0,0 +1,60 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kabc version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_1_0 - ) +namespace KABC +{ + +class Picture +{ +%TypeHeaderCode +#include +%End + + +public: + Picture (); + Picture (const QString&); + Picture (const QImage&); + bool operator == (const KABC::Picture&) const; + bool operator != (const KABC::Picture&) const; + void setUrl (const QString&); + void setData (const QImage&); + void setType (const QString&); + bool isIntern () const; + QString url () const; + QImage data () const; + QString type () const; + QString asString () const; + +}; // class Picture + +//igx QDataStream& operator << (QDataStream&, const KABC::Picture&); +//igx QDataStream& operator >> (QDataStream&, KABC::Picture&); +}; // namespace KABC + +%End + diff --git a/sip/kabc/plugin.sip b/sip/kabc/plugin.sip new file mode 100644 index 0000000..4df2c42 --- /dev/null +++ b/sip/kabc/plugin.sip @@ -0,0 +1,52 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kabc version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_1_0 - ) +namespace KABC +{ + +class Plugin +{ +%TypeHeaderCode +#include +%End + + +public: + Plugin (); + virtual void setType (const QString&); + virtual QString type () const; + virtual void setNameLabel (const QString&); + virtual QString nameLabel () const; + virtual void setDescriptionLabel (const QString&); + virtual QString descriptionLabel () const; + +}; // class Plugin + +}; // namespace KABC + +%End + diff --git a/sip/kabc/resource.sip b/sip/kabc/resource.sip new file mode 100644 index 0000000..14149cb --- /dev/null +++ b/sip/kabc/resource.sip @@ -0,0 +1,160 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kabc version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +namespace KABC +{ + +class Ticket +{ +%TypeHeaderCode +#include +%End + + +public: + KABC::Resource* resource (); + +private: + Ticket (KABC::Resource*); + +}; // class Ticket + + +%If ( KDE_3_2_0 - ) + +class Resource : KRES::Resource +{ +%TypeHeaderCode +#include +%End + + +public: + +//ig class Iterator; + + +//ig class ConstIterator; + + Resource (const KConfig*); +//ig virtual KABC::Resource::ConstIterator begin () const; +//ig virtual KABC::Resource::Iterator begin (); +//ig virtual KABC::Resource::ConstIterator end () const; +//ig virtual KABC::Resource::Iterator end (); + KABC::AddressBook* addressBook (); + virtual void writeConfig (KConfig*); + virtual KABC::Ticket* requestSaveTicket () = 0; + virtual void releaseSaveTicket (KABC::Ticket*) = 0; + virtual bool load () = 0; + virtual bool asyncLoad (); + virtual void insertAddressee (const KABC::Addressee&); + virtual void removeAddressee (const KABC::Addressee&); + virtual bool save (KABC::Ticket*) = 0; + virtual bool asyncSave (KABC::Ticket*); + virtual KABC::Addressee findByUid (const QString&); + virtual KABC::Addressee::List findByName (const QString&); + virtual KABC::Addressee::List findByEmail (const QString&); + virtual KABC::Addressee::List findByCategory (const QString&); + virtual void clear (); + void setAddressBook (KABC::AddressBook*); + +signals: + void loadingFinished (KABC::Resource*); + void loadingError (KABC::Resource*, const QString&); + void savingFinished (KABC::Resource*); + void savingError (KABC::Resource*, const QString&); + +protected: + KABC::Ticket* createTicket (KABC::Resource*); + +}; // class Resource + +%End + + +%If ( KDE_3_1_0 - KDE_3_2_0 ) + +class Resource : KABC::Plugin +{ +%TypeHeaderCode +#include +%End + + +public: + Resource (KABC::AddressBook*); + virtual bool open (); + virtual void close (); + virtual KABC::Ticket* requestSaveTicket (); + virtual bool load (); + virtual bool save (KABC::Ticket*); + KABC::AddressBook* addressBook (); + virtual QString identifier () const; + virtual void removeAddressee (const KABC::Addressee&); + virtual void cleanUp (); + virtual void setReadOnly (bool); + virtual bool readOnly () const; + virtual void setFastResource (bool); + virtual bool fastResource () const; + virtual void setName (const QString); + virtual QString name () const; + static QString cryptStr (const QString&); + +protected: + KABC::Ticket* createTicket (KABC::Resource*); + +}; // class Resource + +%End + + +%If ( - KDE_3_1_0 ) + +class Resource +{ +%TypeHeaderCode +#include +%End + + +public: + Resource (KABC::AddressBook*); + virtual bool open (); + virtual void close (); + virtual KABC::Ticket* requestSaveTicket (); + virtual bool load (KABC::AddressBook*); + virtual bool save (KABC::Ticket*); + void setAddressBook (KABC::AddressBook*); + KABC::AddressBook* addressBook (); + +protected: + KABC::Ticket* createTicket (KABC::Resource*); + +}; // class Resource + +%End + +}; // namespace KABC + diff --git a/sip/kabc/resourcefile.sip b/sip/kabc/resourcefile.sip new file mode 100644 index 0000000..75786b8 --- /dev/null +++ b/sip/kabc/resourcefile.sip @@ -0,0 +1,176 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kabc version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +namespace KABC +{ + +%If ( KDE_3_2_0 - ) + +class ResourceFile : KABC::Resource +{ +%TypeHeaderCode +#include +%End + + +public: + +%If ( KDE_3_3_0 - ) + ResourceFile (const KConfig*); + ResourceFile (const QString&, const QString& = "vcard"); + virtual void writeConfig (KConfig*); + virtual bool doOpen (); + virtual void doClose (); + +%If ( KDE_3_5_1 - ) + virtual KABC::Ticket* requestSaveTicket (); + virtual void releaseSaveTicket (KABC::Ticket*); +%End + + virtual bool load (); + virtual bool asyncLoad (); + virtual bool save (KABC::Ticket*); + virtual bool asyncSave (KABC::Ticket*); +%End + + void setFileName (const QString&); + QString fileName () const; + +%If ( KDE_3_5_1 - ) + void setFormat (const QString&); + QString format () const; + +%If ( KDE_3_5_2 - ) + virtual void removeAddressee (const KABC::Addressee&); +%End + +%End + + +protected slots: + void fileChanged (); + +protected: + +%If ( KDE_3_3_0 - ) + void init (const QString&, const QString&); +%End + +//ig bool lock (const QString&); +//ig void unlock (const QString&); + +public: + +%If ( - KDE_3_5_2 ) + void removeAddressee (const KABC::Addressee&); +%End + + +public: + +%If ( - KDE_3_3_0 ) + ResourceFile (KABC::AddressBook*, const KConfig*); + ResourceFile (KABC::AddressBook*, const QString&, KABC::FormatPlugin* = 0); + bool open (); + void close (); +%End + + +%If ( - KDE_3_5_1 ) + KABC::Ticket* requestSaveTicket (); + void releaseSaveTicket (KABC::Ticket*); + +%If ( - KDE_3_3_0 ) + bool load (); + bool save (KABC::Ticket*); + virtual void cleanUp (); +%End + + virtual QString identifier () const; +%End + + +}; // class ResourceFile + +%End + + +%If ( - KDE_3_2_0 ) + +class ResourceFile : KABC::Resource +{ +%TypeHeaderCode +#include +%End + + +public: + +%If ( KDE_3_1_0 - ) + ResourceFile (KABC::AddressBook*, const KConfig*); + ResourceFile (KABC::AddressBook*, const QString&, KABC::FormatPlugin* = 0); + bool open (); + void close (); +%End + + KABC::Ticket* requestSaveTicket (); + void releaseSaveTicket (KABC::Ticket*); + bool load (); + bool save (KABC::Ticket*); + virtual void cleanUp (); + void setFileName (const QString&); + QString fileName () const; + +%If ( KDE_3_1_0 - ) + virtual QString identifier () const; + void removeAddressee (const KABC::Addressee&); +%End + + +protected: +//ig bool lock (const QString&); +//ig void unlock (const QString&); + +public: + +%If ( - KDE_3_1_0 ) + ResourceFile (KABC::AddressBook*, const QString&, KABC::Format* = 0); + bool load (KABC::AddressBook*); +%End + + +protected slots: + +%If ( - KDE_3_1_0 ) + void checkFile (); +%End + + +}; // class ResourceFile + +%End + +}; // namespace KABC + diff --git a/sip/kabc/resourceselectdialog.sip b/sip/kabc/resourceselectdialog.sip new file mode 100644 index 0000000..9210316 --- /dev/null +++ b/sip/kabc/resourceselectdialog.sip @@ -0,0 +1,55 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kabc version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_1_0 - ) +namespace KABC +{ + +class ResourceSelectDialog +{ +%TypeHeaderCode +#include +#include +#include +%End + + +public: + ResourceSelectDialog (KABC::AddressBook*, QWidget* = 0, const char* = 0); + KABC::Resource* resource (); + static KABC::Resource* getResource (KABC::AddressBook*, QWidget* = 0); +//force + +private: + ResourceSelectDialog (KABC::ResourceSelectDialog&); +//end + +}; // class ResourceSelectDialog + +}; // namespace KABC + +%End + diff --git a/sip/kabc/secrecy.sip b/sip/kabc/secrecy.sip new file mode 100644 index 0000000..605db1e --- /dev/null +++ b/sip/kabc/secrecy.sip @@ -0,0 +1,92 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kabc version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_1_0 - ) +namespace KABC +{ + +class Secrecy +{ +%TypeHeaderCode +#include +%End + + +public: + typedef QValueList TypeList; + +%If ( KDE_3_2_0 - ) + + enum Types + { + Public, + Private, + Confidential, + Invalid + }; + +%End + + Secrecy (int = Private ); + bool operator == (const KABC::Secrecy&) const; + bool operator != (const KABC::Secrecy&) const; + +%If ( KDE_3_2_0 - ) + bool isValid () const; +%End + + void setType (int); + int type () const; + static TypeList typeList (); + static QString typeLabel (int); + QString asString () const; + +public: + +%If ( - KDE_3_2_0 ) + + enum Types + { + Public, + Private, + Confidential + }; + +%End + + +}; // class Secrecy + + +%If ( KDE_3_4_0 - ) +//igx QDataStream& operator << (QDataStream&, const KABC::Secrecy&); +//igx QDataStream& operator >> (QDataStream&, KABC::Secrecy&); +%End + +}; // namespace KABC + +%End + diff --git a/sip/kabc/sortmode.sip b/sip/kabc/sortmode.sip new file mode 100644 index 0000000..537e68f --- /dev/null +++ b/sip/kabc/sortmode.sip @@ -0,0 +1,83 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kabc version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_4_0 - ) +namespace KABC +{ + +class SortMode +{ +%TypeHeaderCode +#include +%End + + +public: + virtual bool lesser (const KABC::Addressee&, const KABC::Addressee&) const = 0; + +}; // class SortMode + + +class NameSortMode : KABC::SortMode +{ +%TypeHeaderCode +#include +%End + + +public: + + enum NameType + { + FormattedName, + FamilyName, + GivenName + }; + + NameSortMode (); + NameSortMode (KABC::NameSortMode::NameType, bool = 1); + virtual bool lesser (const KABC::Addressee&, const KABC::Addressee&) const; + +}; // class NameSortMode + + +class FieldSortMode : KABC::SortMode +{ +%TypeHeaderCode +#include +%End + + +public: + FieldSortMode (KABC::Field*, bool = 1); + virtual bool lesser (const KABC::Addressee&, const KABC::Addressee&) const; + +}; // class FieldSortMode + +}; // namespace KABC + +%End + diff --git a/sip/kabc/sound.sip b/sip/kabc/sound.sip new file mode 100644 index 0000000..b455883 --- /dev/null +++ b/sip/kabc/sound.sip @@ -0,0 +1,63 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kabc version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_1_0 - ) +namespace KABC +{ + +class Sound +{ +%TypeHeaderCode +#include +%End + + +public: + Sound (); + Sound (const QString&); + Sound (const QByteArray&); + bool operator == (const KABC::Sound&) const; + bool operator != (const KABC::Sound&) const; + void setUrl (const QString&); + +%If ( KDE_3_4_0 - ) + bool isEmpty () const; +%End + + void setData (const QByteArray&); + bool isIntern () const; + QString url () const; + QByteArray data () const; + QString asString () const; + +}; // class Sound + +//igx QDataStream& operator << (QDataStream&, const KABC::Sound&); +//igx QDataStream& operator >> (QDataStream&, KABC::Sound&); +}; // namespace KABC + +%End + diff --git a/sip/kabc/stdaddressbook.sip b/sip/kabc/stdaddressbook.sip new file mode 100644 index 0000000..e571f47 --- /dev/null +++ b/sip/kabc/stdaddressbook.sip @@ -0,0 +1,111 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kabc version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +namespace KABC +{ + +class StdAddressBook : KABC::AddressBook +{ +%TypeHeaderCode +#include +#include +#include +#include +%End + + +public: + +%If ( KDE_3_2_0 - ) + static KABC::StdAddressBook* self (); + static KABC::StdAddressBook* self (bool); +%End + + static bool save (); + +%If ( KDE_3_1_1 - ) + static void handleCrash (); +%End + + static QString fileName (); + +%If ( KDE_3_1_0 - ) + static QString directoryName (); + static void setAutomaticSave (bool); + static void close (); + static bool automaticSave (); + +%If ( KDE_3_2_0 - ) + KABC::Addressee whoAmI (); + void setWhoAmI (const KABC::Addressee&); +%End + +%End + + +protected: + StdAddressBook (); + +%If ( KDE_3_1_0 - ) + StdAddressBook (bool); + void init (bool); + +%If ( KDE_3_2_2 - ) + bool saveAll (); +%End + +%End + + +public: + +%If ( - KDE_3_2_0 ) + static KABC::AddressBook* self (); +%End + + +%If ( KDE_3_1_0 - KDE_3_2_2 ) + static KABC::AddressBook* self (bool); +%End + + +protected: + +%If ( - KDE_3_2_0 ) + ~StdAddressBook (); +%End + + +public: + +%If ( - KDE_3_1_0 ) + QString identifier (); +%End + + +}; // class StdAddressBook + +}; // namespace KABC + diff --git a/sip/kabc/timezone.sip b/sip/kabc/timezone.sip new file mode 100644 index 0000000..e095d45 --- /dev/null +++ b/sip/kabc/timezone.sip @@ -0,0 +1,59 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kabc version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +namespace KABC +{ + +class TimeZone +{ +%TypeHeaderCode +#include +%End + + +public: + TimeZone (); + TimeZone (int); + void setOffset (int); + int offset () const; + bool isValid () const; + bool operator == (const KABC::TimeZone&) const; + +%If ( KDE_3_1_0 - ) + bool operator != (const KABC::TimeZone&) const; +%End + + QString asString () const; + +}; // class TimeZone + + +%If ( KDE_3_1_0 - ) +//igx QDataStream& operator << (QDataStream&, const KABC::TimeZone&); +//igx QDataStream& operator >> (QDataStream&, KABC::TimeZone&); +%End + +}; // namespace KABC + diff --git a/sip/kabc/vcardconverter.sip b/sip/kabc/vcardconverter.sip new file mode 100644 index 0000000..5276fd0 --- /dev/null +++ b/sip/kabc/vcardconverter.sip @@ -0,0 +1,74 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kabc version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +%ModuleHeaderCode +#include +%End + + +%If ( KDE_3_1_1 - ) +namespace KABC +{ + +class VCardConverter +{ +%TypeHeaderCode +#include +%End + + +public: + + enum Version + { + v2_1, + v3_0 + }; + + VCardConverter (); + +%If ( KDE_3_2_0 - ) + QString createVCard (const KABC::Addressee&, KABC::VCardConverter::Version = v3_0 ); + QString createVCards (KABC::Addressee::List, KABC::VCardConverter::Version = v3_0 ); + KABC::Addressee parseVCard (const QString&); + KABC::Addressee::List parseVCards (const QString&); +%End + + bool vCardToAddressee (const QString&, KABC::Addressee&, KABC::VCardConverter::Version = v3_0 ); + bool addresseeToVCard (const KABC::Addressee&, QString&, KABC::VCardConverter::Version = v3_0 ); + +}; // class VCardConverter + + +%If ( KDE_3_2_0 - ) +QString dateToVCardString (const QDateTime&); +QString dateToVCardString (const QDate&); +QDateTime VCardStringToDate (const QString&); +%End + +}; // namespace KABC + +%End + diff --git a/sip/kabc/vcardformat.sip b/sip/kabc/vcardformat.sip new file mode 100644 index 0000000..91fe090 --- /dev/null +++ b/sip/kabc/vcardformat.sip @@ -0,0 +1,44 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kabc version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +namespace KABC +{ + +class VCardFormat : KABC::Format +{ +%TypeHeaderCode +#include +%End + + +public: + VCardFormat (); + bool load (KABC::AddressBook*, const QString&); + bool save (KABC::AddressBook*, const QString&); + +}; // class VCardFormat + +}; // namespace KABC + diff --git a/sip/kabc/vcardformatplugin.sip b/sip/kabc/vcardformatplugin.sip new file mode 100644 index 0000000..f6aeef2 --- /dev/null +++ b/sip/kabc/vcardformatplugin.sip @@ -0,0 +1,51 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kabc version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_1_1 - ) +namespace KABC +{ + +class VCardFormatPlugin : KABC::FormatPlugin +{ +%TypeHeaderCode +#include +%End + + +public: + VCardFormatPlugin (); + bool load (KABC::Addressee&, QFile*); + bool loadAll (KABC::AddressBook*, KABC::Resource*, QFile*); + void save (const KABC::Addressee&, QFile*); + void saveAll (KABC::AddressBook*, KABC::Resource*, QFile*); + bool checkFormat (QFile*) const; + +}; // class VCardFormatPlugin + +}; // namespace KABC + +%End + diff --git a/sip/kdecore/bytearray.sip b/sip/kdecore/bytearray.sip new file mode 100644 index 0000000..9d4128a --- /dev/null +++ b/sip/kdecore/bytearray.sip @@ -0,0 +1,945 @@ +// +// Copyright 2004 Jim Bublitz +// Earlier copyrights 1998 - 2003 Jim Bublitz and/or Phil Thompson +// may also apply + +// module kdecore version KDE_3_2_2 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +%ModuleHeaderCode +#include +%End + + +void dcop_add (QDataStream&, QWidget::FocusPolicy /Constrained/); +void dcop_add (QDataStream&, int /Constrained/, const QCString& = "int"); +//void dcop_add (QDataStream&, longlong); +//void dcop_add (QDataStream&, ulonglong); +void dcop_add (QDataStream&, double, const QCString& = "double"); +void dcop_add (QDataStream&, QString); +void dcop_add (QDataStream&, QStringList); +void dcop_add (QDataStream&, QCString); +void dcop_add (QDataStream&, KURL); +void dcop_add (QDataStream&, KURL::List); +void dcop_add (QDataStream&, QSize); +void dcop_add (QDataStream&, QRect); +void dcop_add (QDataStream&, QRegion); +void dcop_add (QDataStream&, QPoint); +void dcop_add (QDataStream&, QFont); +void dcop_add (QDataStream&, QCursor); +void dcop_add (QDataStream&, QPixmap); +void dcop_add (QDataStream&, QColor); +void dcop_add (QDataStream&, QColorGroup); +void dcop_add (QDataStream&, QPalette); +void dcop_add (QDataStream&, QBrush); +void dcop_add (QDataStream&, DCOPRef); +void dcop_add (QDataStream&, QVariant); +void dcop_add (QDataStream&, QDate); +void dcop_add (QDataStream&, QTime); +void dcop_add (QDataStream&, QDateTime); +void dcop_add (QDataStream&, QImage); +void dcop_add (QDataStream&, QKeySequence); +void dcop_add (QDataStream&, QPen); +void dcop_add (QDataStream&, QPicture); +void dcop_add (QDataStream&, QPointArray); +void dcop_add (QDataStream&, QByteArray); + +void dcop_add (QDataStream&, SIP_PYDICT, QCString); +%MethodCode + const sipTypeDef *map_td = sipFindType(*a2); + + if (map_td) + { + int iserr = 0; + void *map_v; + + map_v = sipForceConvertToType(a1, map_td, NULL, + SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + sipIsErr = 1; + } + else if (*a2 == "QMap") + { + QMap *map = (QMap *)map_v; + + *a0 << *map; + } + else if (*a2 == "QMap") + { + QMap *map = (QMap *)map_v; + + *a0 << *map; + } + else if (*a2 == "QMap") + { + QMap *map = (QMap *)map_v; + + *a0 << *map; + } + else if (*a2 == "QMap") + { + QMap *map = (QMap *)map_v; + + *a0 << *map; + } + } +%End + + +void dcop_add (QDataStream&, SIP_PYLIST, QCString); +%MethodCode + const sipTypeDef *list_td = sipFindType(*a2); + + if (list_td) + { + int iserr = 0; + void *list_v; + + list_v = sipForceConvertToType(a1, list_td, NULL, + SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + sipIsErr = 1; + } + else if (*a2 == "QValueList") + { + QValueList *list = (QValueList *)list_v; + + *a0 << *list; + } + else if (*a2 == "QValueList") + { + QValueList *list = (QValueList *)list_v; + + *a0 << *list; + } + } +%End + + +void dcop_next (QDataStream&, QCString&); +%MethodCode + if (*a1 == "char") + { + Q_INT8 res; + *a0 >> res; + return PyInt_FromLong ((long)res); + } + else if (*a1 == "bool") + { + bool res; + *a0 >> res; + return PyBool_FromLong ((long)res); + } + else if (*a1 == "int") + { + int res; + *a0 >> res; + return PyInt_FromLong ((long)res); + } + else if (*a1 == "long") + { + long res; + *a0 >> res; + return PyLong_FromLong (res); + } + else if (*a1 == "short") + { + short res; + *a0 >> res; + return PyInt_FromLong ((long)res); + } + if (*a1 == "uchar" || *a1 == "unsigned char") + { + Q_UINT8 res; + *a0 >> res; + return PyInt_FromLong ((long)res); + } + else if (*a1 == "uint" || *a1 == "unsigned int") + { + unsigned int res; + *a0 >> res; + return PyInt_FromLong ((long)res); + } + else if (*a1 == "ulong" || *a1 == "unsigned long") + { + unsigned long res; + *a0 >> res; + return PyLong_FromLong (res); + } + else if (*a1 == "Q_INT32") + { + Q_INT32 res; + *a0 >> res; + return PyLong_FromLong ((long)res); + } + else if (*a1 == "pid_t") + { + pid_t res; + *a0 >> res; + return PyLong_FromLong ((long)res); + } + else if (*a1 == "ushort" || *a1 == "unsigned short") + { + unsigned short res; + *a0 >> res; + return PyInt_FromLong ((long)res); + } + else if (*a1 == "float") + { + float res; + *a0 >> res; + return PyFloat_FromDouble ((double)res); + } + else if (*a1 == "double") + { + double res; + *a0 >> res; + return PyFloat_FromDouble (res); + } + else if (*a1 == "QString") + { + QString res; + *a0 >> res; + return sipConvertFromNewType(new QString(res), sipType_QString, NULL); + } + else if (*a1 == "QStringList") + { + QStringList res; + *a0 >> res; + return sipConvertFromNewType(new QStringList(res), sipType_QStringList, NULL); + } + else if (*a1 == "QCString") + { + QCString res; + *a0 >> res; + return sipConvertFromNewType(new QCString(res), sipType_QCString, NULL); + } + else if (*a1 == "KURL") + { + KURL res; + *a0 >> res; + return sipConvertFromNewType(new KURL(res), sipType_KURL, NULL); + } + else if (*a1 == "KURL::List") + { + KURL::List res; + *a0 >> res; + return sipConvertFromNewType(new KURL::List(res), sipType_KURL_List, NULL); + } + else if (*a1 == "QSize") + { + QSize res; + *a0 >> res; + return sipConvertFromNewType(new QSize(res), sipType_QSize, NULL); + } + else if (*a1 == "QRect") + { + QRect res; + *a0 >> res; + return sipConvertFromNewType(new QRect(res), sipType_QRect, NULL); + } + else if (*a1 == "QRegion") + { + QRect res; + *a0 >> res; + return sipConvertFromNewType(new QRegion(res), sipType_QRegion, NULL); + } + else if (*a1 == "QPoint") + { + QPoint res; + *a0 >> res; + return sipConvertFromNewType(new QPoint(res), sipType_QPoint, NULL); + } + else if (*a1 == "QFont") + { + QFont res; + *a0 >> res; + return sipConvertFromNewType(new QFont(res), sipType_QFont, NULL); + } + else if (*a1 == "QCursor") + { + QCursor res; + *a0 >> res; + return sipConvertFromNewType(new QCursor(res), sipType_QCursor, NULL); + } + else if (*a1 == "QPixmap") + { + QPixmap res; + *a0 >> res; + return sipConvertFromNewType(new QPixmap(res), sipType_QPixmap, NULL); + } + else if (*a1 == "QColor") + { + QColor res; + *a0 >> res; + return sipConvertFromNewType(new QColor(res), sipType_QColor, NULL); + } + else if (*a1 == "QColorGroup") + { + QColorGroup res; + *a0 >> res; + return sipConvertFromNewType(new QColorGroup(res), sipType_QColorGroup, NULL); + } + else if (*a1 == "QPalette") + { + QPalette res; + *a0 >> res; + return sipConvertFromNewType(new QPalette(res), sipType_QPalette, NULL); + } + else if (*a1 == "QBrush") + { + QBrush res; + *a0 >> res; + return sipConvertFromNewType(new QBrush(res), sipType_QBrush, NULL); + } + else if (*a1 == "FocusPolicy") + { + unsigned int res; + *a0 >> res; + return PyInt_FromLong ((long)res); + } + else if (*a1 == "DCOPRef") + { + DCOPRef res; + *a0 >> res; + return sipConvertFromNewType(new DCOPRef(res), sipType_DCOPRef, NULL); + } + else if (*a1 == "QVariant") + { + QVariant res; + *a0 >> res; + return sipConvertFromNewType(new QVariant(res), sipType_QVariant, NULL); + } + else if (*a1 == "QDate") + { + QDate res; + *a0 >> res; + return sipConvertFromNewType(new QDate(res), sipType_QDate, NULL); + } + else if (*a1 == "QTime") + { + QTime res; + *a0 >> res; + return sipConvertFromNewType(new QTime(res), sipType_QTime, NULL); + } + else if (*a1 == "QDateTime") + { + QDateTime res; + *a0 >> res; + return sipConvertFromNewType(new QDateTime(res), sipType_QDateTime, NULL); + } + else if (*a1 == "QImage") + { + QImage res; + *a0 >> res; + return sipConvertFromNewType(new QImage(res), sipType_QImage, NULL); + } + else if (*a1 == "QKeySequence") + { + QKeySequence res; + *a0 >> res; + return sipConvertFromNewType(new QKeySequence(res), sipType_QKeySequence, NULL); + } + else if (*a1 == "QPen") + { + QPen res; + *a0 >> res; + return sipConvertFromNewType(new QPen(res), sipType_QPen, NULL); + } + else if (*a1 == "QPicture") + { + QPicture res; + *a0 >> res; + return sipConvertFromNewType(new QPicture(res), sipType_QPicture, NULL); + } + else if (*a1 == "QPointArray") + { + QPointArray res; + *a0 >> res; + return sipConvertFromNewType(new QPointArray(res), sipType_QPointArray, NULL); + } + else if (*a1 == "QByteArray") + { + QByteArray res; + *a0 >> res; + return sipConvertFromNewType(new QByteArray(res), sipType_QByteArray, NULL); + } + else if (*a1 == "QMap") + { + QMap res; + *a0 >> res; + return sipConvertFromType(&res, sipFindType(*a1), NULL); + } + else if (*a1 == "QMap") + { + QMap res; + *a0 >> res; + return sipConvertFromType(&res, sipFindType(*a1), NULL); + } + else if (*a1 == "QMap") + { + QMap res; + *a0 >> res; + return sipConvertFromType(&res, sipFindType(*a1), NULL); + } + else if (*a1 == "QMap") + { + QMap res; + *a0 >> res; + return sipConvertFromType(&res, sipFindType(*a1), NULL); + } + else if (*a1 == "QValueList") + { + QValueList res; + *a0 >> res; + return sipConvertFromType(&res, sipFindType(*a1), NULL); + } + else if (*a1 == "QValueList" || *a1 == "QCStringList") + { + QValueList res; + *a0 >> res; + return sipConvertFromType(&res, sipFindType(*a1), NULL); + } + +%End + +%ModuleHeaderCode +#include +#include +#include +%End + +%ModuleCode + +void dcop_add (QDataStream& s, int value, const QCString& type_) +{ + if (type_ == "char") + s << (Q_INT8)value; + else if (type_ == "bool") + s << (bool)value; + else if (type_ == "short") + s << (short)value; + else if (type_ == "int") + s << (int)value; + else if (type_ == "long") + s << (long)value; + else if (type_== "uchar" || type_ == "unsigned char") + s << (Q_UINT8)value; + else if (type_ == "ushort" || type_ == "unsigned short") + s << (ushort)value; + else if (type_ == "uint" || type_ == "unsigned int") + s << (uint)value; + else if (type_ == "ulong" || type_ == "unsigned long") + s << (long)value; +} + +/*void dcop_add (QDataStream& s, longlong value) +{ + s << value; +} + +void dcop_add (QDataStream& s, ulonglong value) +{ + s << value; +}*/ + +void dcop_add (QDataStream& s, double value, const QCString& type_) +{ + if (type_ == "double") + s << value; + else if (type_ == "float") + s << (float)value; +} + +void dcop_add (QDataStream& s, QString value) +{ + s << value; +} + +void dcop_add (QDataStream& s, QStringList value) +{ + s << value; +} + +void dcop_add (QDataStream& s, QCString value) +{ + s << value; +} + +void dcop_add (QDataStream& s, KURL value) +{ + s << value; +} + +void dcop_add (QDataStream& s, KURL::List value) +{ + s << value; +} + +void dcop_add (QDataStream& s, QSize value) +{ + s << value; +} + +void dcop_add (QDataStream& s, QRect value) +{ + s << value; +} + +void dcop_add (QDataStream& s, QRegion value) +{ + s << value; +} + +void dcop_add (QDataStream& s, QPoint value) +{ + s << value; +} + +void dcop_add (QDataStream& s, QFont value) +{ + s << value; +} + +void dcop_add (QDataStream& s, QCursor value) +{ + s << value; +} + +void dcop_add (QDataStream& s, QPixmap value) +{ + s << value; +} + +void dcop_add (QDataStream& s, QColor value) +{ + s << value; +} + +void dcop_add (QDataStream& s, QColorGroup value) +{ + s << value; +} + +void dcop_add (QDataStream& s, QPalette value) +{ + s << value; +} + +void dcop_add (QDataStream& s, QBrush value) +{ + s << value; +} + +void dcop_add (QDataStream& s, QWidget::FocusPolicy value) +{ + s << value; +} + +void dcop_add (QDataStream& s, DCOPRef value) +{ + s << value; +} + +void dcop_add (QDataStream& s, QVariant value) +{ + s << value; +} + +void dcop_add (QDataStream& s, QDate value) +{ + s << value; +} + +void dcop_add (QDataStream& s, QTime value) +{ + s << value; +} + +void dcop_add (QDataStream& s, QDateTime value) +{ + s << value; +} + +void dcop_add (QDataStream& s, QImage value) +{ + s << value; +} + +void dcop_add (QDataStream& s, QKeySequence value) +{ + s << value; +} + +void dcop_add (QDataStream& s, QPen value) +{ + s << value; +} + +void dcop_add (QDataStream& s, QPicture value) +{ + s << value; +} + +void dcop_add (QDataStream& s, QPointArray value) +{ + s << value; +} + +void dcop_add (QDataStream& s, QByteArray value) +{ + s << value; +} + +%End + + +%MappedType QMap +//converts a Python dict of QCString:DCOPRef +{ +%TypeHeaderCode +#include +//typedef QMap DCOPRefMap; +%End + +%ConvertFromTypeCode + // Convert to a Python dict + + if (!sipCpp) + return PyDict_New(); + + PyObject *dict; + + // Create the dictionary. + + if ((dict = PyDict_New()) == NULL) + return NULL; + + // Get it. + + const QMap cppmap = *sipCpp; + QMap::ConstIterator it; + + for (it = cppmap.begin (); it != cppmap.end (); ++it) + { + QCString acpp = it.key (); + DCOPRef bcpp = it.data (); + PyObject *ainst; + PyObject *binst = NULL; + if (((ainst = sipConvertFromNewType(new QCString(acpp), sipType_QCString, NULL)) == NULL) + || ((binst = sipConvertFromNewType(new DCOPRef(bcpp), sipType_DCOPRef, NULL)) == NULL) + || (PyDict_SetItem (dict, ainst, binst) < 0)) + { + Py_XDECREF (ainst); + Py_XDECREF (binst); + Py_DECREF (dict); + return NULL; + } + } + + return dict; +%End + + +%ConvertToTypeCode + // Convert a Python dictionary to a QMap on the heap. + + if (sipIsErr == NULL) + return PyDict_Check(sipPy); + + QMap *cppmap = new QMap; + + PyObject *aelem, *belem; + SIP_SSIZE_T pos = 0; + QCString *acpp; + DCOPRef *bcpp; + + while (PyDict_Next(sipPy, &pos, &aelem, &belem)) + { + int iserr = 0; + + acpp = (QCString *)sipForceConvertToType(aelem, sipType_QCString, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr); + bcpp = (DCOPRef *)sipForceConvertToType(belem, sipType_DCOPRef, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + *sipIsErr = 1; + delete cppmap; + return 0; + } + + cppmap->insert (*acpp, *bcpp); + } + + *sipCppPtr = cppmap; + + return 1; +%End +}; + +%MappedType QMap +//converts a Python dict of QString:DCOPRef +{ +%TypeHeaderCode +#include +//typedef QMap DCOPRefMap; +%End + +%ConvertFromTypeCode + // Convert to a Python dict + + if (!sipCpp) + return PyDict_New(); + + PyObject *dict; + + // Create the dictionary. + + if ((dict = PyDict_New()) == NULL) + return NULL; + + // Get it. + + const QMap cppmap = *sipCpp; + QMap::ConstIterator it; + + for (it = cppmap.begin (); it != cppmap.end (); ++it) + { + QString acpp = it.key (); + DCOPRef bcpp = it.data (); + PyObject *ainst; + PyObject *binst = NULL; + if (((ainst = sipConvertFromNewType(new QString(acpp), sipType_QString, sipTransferObj)) == NULL) + || ((binst = sipConvertFromNewType(new DCOPRef(bcpp), sipType_DCOPRef, sipTransferObj)) == NULL) + || (PyDict_SetItem (dict, ainst, binst) < 0)) + { + Py_XDECREF (ainst); + Py_XDECREF (binst); + Py_DECREF (dict); + return NULL; + } + } + + return dict; +%End + + +%ConvertToTypeCode + // Convert a Python dictionary to a QMap on the heap. + + if (sipIsErr == NULL) + return PyDict_Check(sipPy); + + QMap *cppmap = new QMap; + + PyObject *aelem, *belem; + SIP_SSIZE_T pos = 0; + QString *acpp; + DCOPRef *bcpp; + + while (PyDict_Next(sipPy, &pos, &aelem, &belem)) + { + int iserr = 0, acpp_state; + + acpp = (QString *)sipForceConvertToType(aelem, sipType_QString, sipTransferObj, SIP_NOT_NONE, &acpp_state, &iserr); + bcpp = (DCOPRef *)sipForceConvertToType(belem, sipType_DCOPRef, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + if (acpp) + sipReleaseType(acpp, sipType_QString, acpp_state); + + *sipIsErr = 1; + delete cppmap; + return 0; + } + + cppmap->insert (*acpp, *bcpp); + + sipReleaseType(acpp, sipType_QString, acpp_state); + } + + *sipCppPtr = cppmap; + + return 1; +%End +}; + + +//%MappedType QMap is available in kdecore/kconfig.sip + + +%MappedType QMap +//converts a Python dict of QString:QByteArray +{ +%TypeHeaderCode +#include +%End + +%ConvertFromTypeCode + // Convert to a Python dict + + if (!sipCpp) + return PyDict_New(); + + PyObject *dict; + + // Create the dictionary. + + if ((dict = PyDict_New()) == NULL) + return NULL; + + // Get it. + + const QMap cppmap = *sipCpp; + QMap::ConstIterator it; + + for (it = cppmap.begin (); it != cppmap.end (); ++it) + { + QString acpp = it.key (); + QByteArray bcpp = it.data (); + PyObject *ainst; + PyObject *binst = NULL; + if (((ainst = sipConvertFromNewType(new QString(acpp), sipType_QString, sipTransferObj)) == NULL) + || ((binst = sipConvertFromNewType(new QByteArray(bcpp), sipType_QByteArray, sipTransferObj)) == NULL) + || (PyDict_SetItem (dict, ainst, binst) < 0)) + { + Py_XDECREF (ainst); + Py_XDECREF (binst); + Py_DECREF (dict); + return NULL; + } + } + + return dict; +%End + + +%ConvertToTypeCode + // Convert a Python dictionary to a QMap on the heap. + + if (sipIsErr == NULL) + return PyDict_Check(sipPy); + + QMap *cppmap = new QMap; + + PyObject *aelem, *belem; + SIP_SSIZE_T pos = 0; + QString *acpp; + QByteArray *bcpp; + + while (PyDict_Next(sipPy, &pos, &aelem, &belem)) + { + int iserr = 0, acpp_state, bcpp_state; + + acpp = (QString *)sipForceConvertToType(aelem, sipType_QString, sipTransferObj, SIP_NOT_NONE, &acpp_state, &iserr); + bcpp = (QByteArray *)sipForceConvertToType(belem, sipType_QByteArray, sipTransferObj, SIP_NOT_NONE, &bcpp_state, &iserr); + + if (iserr) + { + if (acpp) + sipReleaseType(acpp, sipType_QString, acpp_state); + + *sipIsErr = 1; + delete cppmap; + return 0; + } + + cppmap->insert (*acpp, *bcpp); + + sipReleaseType(acpp, sipType_QString, acpp_state); + sipReleaseType(bcpp, sipType_QByteArray, bcpp_state); + } + + *sipCppPtr = cppmap; + + return 1; +%End +}; + + + +%MappedType QValueList +//converts a Python list of DCOPRef +{ +%TypeHeaderCode +#include +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New(0); + + // Create the list + PyObject *pylist; + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + QValueList *cpplist = (QValueList *)sipCpp; + PyObject *inst; + + // Get it. + QValueList::Iterator it; + for( it = cpplist->begin(); it != cpplist->end(); ++it ) + { + if (((inst = sipConvertFromNewType(new DCOPRef(*it), sipType_DCOPRef, NULL)) == NULL) + || PyList_Append (pylist, inst) < 0) + { + Py_DECREF (pylist); + return NULL; + } + } + + return pylist; +%End + + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QValueList *cpplist = new QValueList; + + PyObject *elem; + DCOPRef *cpp; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + cpp = (DCOPRef *)sipForceConvertToType(elem, sipType_DCOPRef, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr); + if (iserr) + { + *sipIsErr = 1; + delete cpplist; + return 0; + } + + cpplist->append (*cpp); + } + + *sipCppPtr = cpplist; + + return 1; +%End +}; + diff --git a/sip/kdecore/fixx11h.sip b/sip/kdecore/fixx11h.sip new file mode 100644 index 0000000..49150fb --- /dev/null +++ b/sip/kdecore/fixx11h.sip @@ -0,0 +1,30 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +%ModuleHeaderCode +#include +#include +%End + diff --git a/sip/kdecore/kaboutdata.sip b/sip/kdecore/kaboutdata.sip new file mode 100644 index 0000000..eade1f7 --- /dev/null +++ b/sip/kdecore/kaboutdata.sip @@ -0,0 +1,301 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KAboutPerson +{ +%TypeHeaderCode +#include +%End + + +public: + KAboutPerson (const char*, const char*, const char*, const char*); + KAboutPerson (); + QString name () const; + QString task () const; + QString emailAddress () const; + QString webAddress () const; + +}; // class KAboutPerson + + +class KAboutTranslator +{ +%TypeHeaderCode +#include +%End + + +public: + KAboutTranslator (const QString& = QString ::null , const QString& = QString ::null ); + QString name () const; + QString emailAddress () const; + +}; // class KAboutTranslator + + +class KAboutData +{ +%TypeHeaderCode +#include +%End + + +public: + + enum LicenseKey + { + License_Custom, + License_File, + License_Unknown, + License_GPL, + License_GPL_V2, + License_LGPL, + License_LGPL_V2, + License_BSD, + License_Artistic, + License_QPL, + License_QPL_V1_0 + }; + + +public: + KAboutData (const char*, const char*, const char*, const char* = 0, int = License_Unknown , const char* = 0, const char* = 0, const char* = 0, const char* = "submit@bugs.kde.org"); + void addAuthor (const char*, const char* = 0, const char* = 0, const char* = 0); + void addCredit (const char*, const char* = 0, const char* = 0, const char* = 0); + void setTranslator (const char*, const char*); + void setLicenseText (const char*); + void setLicenseTextFile (const QString&); + +%If ( KDE_3_3_0 - ) + void setAppName (const char*); + void setProgramName (const char*); + +%If ( KDE_3_4_0 - ) + void setProgramLogo (const QImage&); +%End + + void setVersion (const char*); + void setShortDescription (const char*); + void setLicense (KAboutData::LicenseKey); + void setCopyrightStatement (const char*); + void setOtherText (const char*); + void setHomepage (const char*); + void setBugAddress (const char*); +%End + + +%If ( KDE_3_2_0 - ) + void setProductName (const char*); +%End + + const char* appName () const; + +%If ( KDE_3_2_0 - ) + const char* productName () const; +%End + + QString programName () const; + +%If ( KDE_3_5_1 - ) + const char* internalProgramName () const; + void translateInternalProgramName () const; +%End + + +%If ( KDE_3_4_0 - ) + QImage programLogo () const; +%End + + QString version () const; + +%If ( KDE_3_5_1 - ) + const char* internalVersion () const; +%End + + QString shortDescription () const; + QString homepage () const; + QString bugAddress () const; + +%If ( KDE_3_5_1 - ) + const char* internalBugAddress () const; +%End + + const QValueList authors () const; + const QValueList credits () const; + const QValueList translators () const; + static QString aboutTranslationTeam (); + QString otherText () const; + QString license () const; + QString copyrightStatement () const; + +%If ( KDE_3_5_0 - ) + QString customAuthorPlainText () const; + QString customAuthorRichText () const; + bool customAuthorTextEnabled () const; + void setCustomAuthorText (const QString&, const QString&); + void unsetCustomAuthorText (); +%End + + +}; // class KAboutData + + + +%MappedType QValueList +//converts a Python list of KAboutPerson +{ +%TypeHeaderCode +#include +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New(0); + + // Create the list + PyObject *pylist; + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + QValueList *cpplist = (QValueList *)sipCpp; + PyObject *inst; + + // Get it. + QValueList::Iterator it; + for( it = cpplist->begin(); it != cpplist->end(); ++it ) + { + if (((inst = sipConvertFromNewType(new KAboutPerson(*it), sipType_KAboutPerson, NULL)) == NULL) + || PyList_Append (pylist, inst) < 0) + { + Py_DECREF (pylist); + return NULL; + } + } + + return pylist; +%End + + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QValueList *cpplist = new QValueList; + + PyObject *elem; + KAboutPerson *cpp; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + cpp = (KAboutPerson *)sipForceConvertToType(elem, sipType_KAboutPerson, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + *sipIsErr = 1; + delete cpplist; + return 0; + } + + cpplist->append (*cpp); + } + + *sipCppPtr = cpplist; + + return 1; +%End +}; + + +%MappedType QValueList +//converts a Python list of KAboutTranslator +{ +%TypeHeaderCode +#include +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New(0); + + // Create the list + PyObject *pylist; + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + QValueList *cpplist = (QValueList *)sipCpp; + PyObject *inst; + + // Get it. + QValueList::Iterator it; + for( it = cpplist->begin(); it != cpplist->end(); ++it ) + { + if (((inst = sipConvertFromNewType(new KAboutTranslator(*it), sipType_KAboutTranslator, NULL)) == NULL) + || PyList_Append (pylist, inst) < 0) + { + Py_DECREF (pylist); + return NULL; + } + } + + return pylist; +%End + + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QValueList *cpplist = new QValueList; + + PyObject *elem; + KAboutTranslator *cpp; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + cpp = (KAboutTranslator *)sipForceConvertToType(elem, sipType_KAboutTranslator, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + *sipIsErr = 1; + delete cpplist; + return 0; + } + + cpplist->append (*cpp); + } + + *sipCppPtr = cpplist; + + return 1; +%End +}; + + diff --git a/sip/kdecore/kaccel.sip b/sip/kdecore/kaccel.sip new file mode 100644 index 0000000..5ae4756 --- /dev/null +++ b/sip/kdecore/kaccel.sip @@ -0,0 +1,240 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KAccel : QAccel +{ +%TypeHeaderCode +#include +%End + + +public: + KAccel (QWidget* /TransferThis/, const char* = 0); + KAccel (QWidget*, QObject* /TransferThis/, const char* = 0); + KAccelActions& actions (); + bool isEnabled () const; + void setEnabled (bool); + bool setAutoUpdate (bool); + +%If ( KDE_3_1_4 - ) + KAccelAction* insert (const QString&, const QString&, const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), bool = 1, bool = 1); + KAccelAction* insert (const QString&, const QString&, const QString&, const KShortcut&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), bool = 1, bool = 1); + KAccelAction* insert (const char*, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), bool = 1, bool = 1); + KAccelAction* insert (KStdAccel::StdAccel, SIP_RXOBJ_CON, SIP_SLOT_CON (), bool = 1, bool = 1); +%End + + bool remove (const QString&); + bool updateConnections (); + const KShortcut& shortcut (const QString&) const; + bool setShortcut (const QString&, const KShortcut&); + +%If ( KDE_3_1_4 - ) + bool setSlot (const QString&, SIP_RXOBJ_CON, SIP_SLOT_CON ()); +%End + + bool setEnabled (const QString&, bool); + const QString& configGroup () const; + void setConfigGroup (const QString&); + bool readSettings (KConfigBase* = 0); + bool writeSettings (KConfigBase* = 0) const; + void emitKeycodeChanged (); + +signals: + void keycodeChanged (); + +public: + bool insertItem (const QString&, const QString&, const char*, int = 0, QPopupMenu* = 0, bool = 1); + bool insertItem (const QString&, const QString&, int, int, QPopupMenu*, bool = 1); + bool insertStdItem (KStdAccel::StdAccel, const QString& = QString ::null ); + +%If ( KDE_3_1_4 - ) + bool connectItem (const QString&, SIP_RXOBJ_CON, SIP_SLOT_CON (), bool = 1); + bool connectItem (KStdAccel::StdAccel, SIP_RXOBJ_CON, SIP_SLOT_CON ()); +%End + + bool removeItem (const QString&); + bool setItemEnabled (const QString&, bool); + void changeMenuAccel (QPopupMenu*, int, const QString&); + void changeMenuAccel (QPopupMenu*, int, KStdAccel::StdAccel); + static int stringToKey (const QString&); + int currentKey (const QString&) const; + QString findKey (int) const; + +protected: +//igx virtual void virtual_hook (int, void*); + +public: + +%If ( - KDE_3_2_0 ) +//ig bool getAutoUpdate (); +//ig KAccelAction* insert (const QString&, const QString&); +%End + + +public: + +%If ( - KDE_3_1_4 ) + KAccelAction* insert (const QString&, const QString&, const QString&, const KShortcut&, const QObject*, const char*, bool = 1, bool = 1); + KAccelAction* insert (const QString&, const QString&, const QString&, const KShortcut&, const KShortcut&, const QObject*, const char*, bool = 1, bool = 1); + KAccelAction* insert (const char*, const KShortcut&, const QObject*, const char*, bool = 1, bool = 1); + KAccelAction* insert (KStdAccel::StdAccel, const QObject*, const char*, bool = 1, bool = 1); + bool setSlot (const QString&, const QObject*, const char*); +%End + + +public: + +%If ( - KDE_3_1_4 ) + bool connectItem (const QString&, const QObject*, const char*, bool = 1); + bool connectItem (KStdAccel::StdAccel, const QObject*, const char*); + +//force +%ConvertToSubClassCode + // The table of Python class objects indexed by their names. The table + // must be sorted by name. + + static sipStringTypeClassMap map[] = { + {sipName_KAccel, &sipClass_KAccel}, + {sipName_KApplication, &sipClass_KApplication}, + {sipName_KAsyncIO, &sipClass_KAsyncIO}, + {sipName_KAudioPlayer, &sipClass_KAudioPlayer}, + {sipName_KBufferedIO, &sipClass_KBufferedIO}, +#if KDE_VERSION >= 0x030100 + {sipName_KClipboardSynchronizer, &sipClass_KClipboardSynchronizer}, +#endif + {sipName_KCompletion, &sipClass_KCompletion}, + {sipName_KConfig, &sipClass_KConfig}, + {sipName_KConfigBase, &sipClass_KConfigBase}, + {sipName_KConfigGroup, &sipClass_KConfigGroup}, + {sipName_KDesktopFile, &sipClass_KDesktopFile}, + {sipName_KGlobalAccel, &sipClass_KGlobalAccel}, + {sipName_KLibFactory, &sipClass_KLibFactory}, + {sipName_KLibLoader, &sipClass_KLibLoader}, + {sipName_KLibrary, &sipClass_KLibrary}, + {sipName_KMultipleDrag, &sipClass_KMultipleDrag}, + {sipName_KProcIO, &sipClass_KProcIO}, + {sipName_KProcess, &sipClass_KProcess}, + {sipName_KProcessController, &sipClass_KProcessController}, + {sipName_KServerSocket, &sipClass_KServerSocket}, + {sipName_KShellProcess, &sipClass_KShellProcess}, + {sipName_KSimpleConfig, &sipClass_KSimpleConfig}, + {sipName_KSocket, &sipClass_KSocket}, + {sipName_KStartupInfo, &sipClass_KStartupInfo}, + {sipName_KUniqueApplication, &sipClass_KUniqueApplication}, + {sipName_KWinModule, &sipClass_KWinModule}, + }; + + sipClass = sipMapStringToClass(sipCpp -> className(),map,sizeof (map)/sizeof (map[0])); +%End +//end +%End + + +}; // class KAccel + + + +%MappedType QMap +//converts a Python dict of int:QString +{ +%TypeHeaderCode +#include +%End + +%ConvertFromTypeCode + + if (!sipCpp) + return PyDict_New(); + + PyObject *dict; + + // Create the dictionary. + + if ((dict = PyDict_New()) == NULL) + return NULL; + + // Get it. + + const QMap map = *sipCpp; + QMap::ConstIterator it; + + for (it = map.begin (); it != map.end (); ++it) + { + PyObject *iKey = PyInt_FromLong (((long) it.key ())); + PyObject *sData = PyString_FromString ((char *)((QString *)&it.data ())); + + if ((iKey == NULL) || (sData == NULL) || (PyDict_SetItem (dict, iKey, sData) < 0)) + { + Py_XDECREF (iKey); + Py_XDECREF (sData); + Py_DECREF (dict); + return NULL; + } + } + + return dict; +%End + + +%ConvertToTypeCode + // Convert a Python dictionary to a KKeyMapOrder on the heap. + + if (sipIsErr == NULL) + return PyDict_Check(sipPy); + + QMap *map = new QMap; + + PyObject *key, *value; + SIP_SSIZE_T pos = 0; + int iKey; + QString *sData; + + while (PyDict_Next(sipPy, &pos, &key, &value)) + { + int iserr = 0, sData_state; + + iKey = PyInt_AS_LONG (key); + sData = (QString *)sipForceConvertToType(value, sipType_QString, sipTransferObj, SIP_NOT_NONE, &sData_state, &iserr); + + if (iserr) + { + *sipIsErr = 1; + delete map; + return 0; + } + + map->insert (iKey, *sData); + + sipReleaseType(sData, sipType_QString, sData_state); + } + + *sipCppPtr = map; + + return 1; +%End +}; + + diff --git a/sip/kdecore/kaccelaction.sip b/sip/kdecore/kaccelaction.sip new file mode 100644 index 0000000..fc23c58 --- /dev/null +++ b/sip/kdecore/kaccelaction.sip @@ -0,0 +1,122 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KAccelAction +{ +%TypeHeaderCode +#include +%End + + +public: + KAccelAction (); + KAccelAction (const KAccelAction&); + KAccelAction (const QString&, const QString&, const QString&, const KShortcut&, const KShortcut&, const QObject*, const char*, bool, bool); + void clear (); + bool init (const QString&, const QString&, const QString&, const KShortcut&, const KShortcut&, const QObject*, const char*, bool, bool); + const QString& name () const; + const QString& label () const; + const QString& whatsThis () const; + const KShortcut& shortcut () const; + const KShortcut& shortcutDefault () const; + const KShortcut& shortcutDefault3 () const; + const KShortcut& shortcutDefault4 () const; + const QObject* objSlotPtr () const; + const char* methodSlotPtr () const; + bool isConfigurable () const; + bool isEnabled () const; + void setName (const QString&); + void setLabel (const QString&); + void setWhatsThis (const QString&); + bool setShortcut (const KShortcut&); + void setSlot (const QObject*, const char*); + void setConfigurable (bool); + void setEnabled (bool); + int getID () const; + void setID (int); + bool isConnected () const; + bool setKeySequence (uint, const KKeySequence&); + void clearShortcut (); + bool contains (const KKeySequence&); + QString toString () const; + QString toStringInternal () const; + static bool useFourModifierKeys (); + static void useFourModifierKeys (bool); + +protected: + void incConnections (); + void decConnections (); + +}; // class KAccelAction + + +class KAccelActions +{ +%TypeHeaderCode +#include +%End + + +public: + KAccelActions (); + KAccelActions (const KAccelActions&); + void clear (); + bool init (const KAccelActions&); + bool init (KConfigBase&, const QString&); + void updateShortcuts (KAccelActions&); + int actionIndex (const QString&) const; + KAccelAction* actionPtr (uint); + KAccelAction* actionPtr (const QString&); + KAccelAction* actionPtr (KKeySequence); + +%If ( KDE_3_1_4 - ) + KAccelAction& operator [] (uint); +%MethodCode +//returns (KAccelAction&) +//takes index | (uint) + sipRes = &((*sipCpp) [a0]); +%End + +%End + + KAccelAction* insert (const QString&, const QString&, const QString&, const KShortcut&, const KShortcut&, const QObject* = 0, const char* = 0, bool = 1, bool = 1); + KAccelAction* insert (const QString&, const QString&); + bool remove (const QString&); + bool readActions (const QString& = "Shortcuts", KConfigBase* = 0); + bool writeActions (const QString& = "Shortcuts", KConfigBase* = 0, bool = 0, bool = 0) const; + void emitKeycodeChanged (); + uint count () const; + +protected: + void resize (uint); + void insertPtr (KAccelAction*); + +private: + KAccelActions (KAccelBase*); + KAccelActions &operator=(const KAccelActions &); + +}; // class KAccelActions + diff --git a/sip/kdecore/kaccelbase.sip b/sip/kdecore/kaccelbase.sip new file mode 100644 index 0000000..74b5206 --- /dev/null +++ b/sip/kdecore/kaccelbase.sip @@ -0,0 +1,102 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KAccelBase +{ +%TypeHeaderCode +#include +%End + + +public: + + enum Init + { + QT_KEYS, + NATIVE_KEYS + }; + + + enum Signal + { + KEYCODE_CHANGED + }; + + KAccelBase (int); + uint actionCount () const; + KAccelActions& actions (); + bool isEnabled () const; + KAccelAction* actionPtr (const QString&); + KAccelAction* actionPtr (const KKey&); + KAccelAction* actionPtr (const KKeyServer::Key&); + const QString& configGroup () const; + void setConfigGroup (const QString&); + void setConfigGlobal (bool); + virtual void setEnabled (bool) = 0; + bool getAutoUpdate (); + bool setAutoUpdate (bool); + KAccelAction* insert (const QString&, const QString&); + KAccelAction* insert (const QString&, const QString&, const QString&, const KShortcut&, const KShortcut&, const QObject*, const char*, bool = 1, bool = 1); + bool remove (const QString&); + bool setActionSlot (const QString&, const QObject*, const char*); + bool updateConnections (); + bool setShortcut (const QString&, const KShortcut&); + bool setActionEnabled (const QString&, bool); + void readSettings (KConfigBase* = 0); + void writeSettings (KConfigBase* = 0) const; + QPopupMenu* createPopupMenu (QWidget*, const KKeySequence&); + +protected: + void slotRemoveAction (KAccelAction*); +//ig void createKeyList (QValueVector&); + bool insertConnection (KAccelAction*); + bool removeConnection (KAccelAction*); + virtual bool emitSignal (KAccelBase::Signal) = 0; + virtual bool connectKey (KAccelAction&, const KKeyServer::Key&) = 0; + virtual bool connectKey (const KKeyServer::Key&) = 0; + virtual bool disconnectKey (KAccelAction&, const KKeyServer::Key&) = 0; + virtual bool disconnectKey (const KKeyServer::Key&) = 0; + +protected: + +%If ( KDE_3_5_0 - ) + virtual bool isEnabledInternal () const; +%End + + +//ig class ActionInfo; + +//ig typedef QMap KKeyToActionMap; + +protected: + +%If ( - KDE_3_1_1 ) +//igx virtual void virtual_hook (int, void*); +%End + + +}; // class KAccelBase + diff --git a/sip/kdecore/kallocator.sip b/sip/kdecore/kallocator.sip new file mode 100644 index 0000000..ae72d6d --- /dev/null +++ b/sip/kdecore/kallocator.sip @@ -0,0 +1,48 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KZoneAllocator +{ +%TypeHeaderCode +#include +%End + + +public: + KZoneAllocator (long = 131072); + void* allocate (size_t); + void deallocate (void*); + void free_since (void*); + +protected: +//ig typedef QValueList MemList; +//ig void addBlock (KZoneAllocator::MemBlock*); +//ig void delBlock (KZoneAllocator::MemBlock*); +//ig void insertHash (KZoneAllocator::MemBlock*); + void initHash (); + +}; // class KZoneAllocator + diff --git a/sip/kdecore/kapplication.sip b/sip/kdecore/kapplication.sip new file mode 100644 index 0000000..4b34076 --- /dev/null +++ b/sip/kdecore/kapplication.sip @@ -0,0 +1,449 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KApplication : QApplication, KInstance +{ +%TypeHeaderCode +#include +#include +extern char **pyArgvToC(PyObject *argvlist,int *argcp); +extern void updatePyArgv(PyObject *argvlist,int argc,char **argv); +%End + + +public: + + enum CaptionLayout + { + CaptionAppLast, + CaptionAppFirst, + CaptionNoApp + }; + + KApplication (bool = 1, bool = 1); + +%If ( KDE_3_3_0 - ) +//ig KApplication (Display*, Qt::HANDLE = 0, Qt::HANDLE = 0, bool = 1); +%End + +//ig KApplication (Display*, int&, char**, const QCString&, bool = 1, bool = 1); + KApplication (SIP_PYLIST, QCString&, bool = 1, bool = 1) [(int&, char**, const QCString&, bool = 1, bool = 1)]; +%MethodCode +//takes argv | (a Python list of strings) | rAppName | (Python string) | allowStyles | (bool = 1) | GUIenabled | (bool = 1) + + int argc, nargc; + char **argv; + + // Convert the list. + + if ((argv = pyArgvToC(a0, &argc)) == NULL) + return NULL; + + // Create it now the arguments are right. + + nargc = argc; + + Py_BEGIN_ALLOW_THREADS + + // The following two lines simulate the actual ctor call + // which is commented out below + KCmdLineArgs::init (nargc, argv, (char *)"unknown", (char *)"KDE Application", NULL, false); + sipCpp = new sipKApplication((bool)a1,(bool)a2); + + // This method calls KCmdLineArgs::initIgnore, which is a private method +// sipCpp = new sipKApplication (nargc,argv, qc, a1, a2); + + Py_END_ALLOW_THREADS + + // Now modify the original list. + + updatePyArgv(a0, argc, argv); +%End + + static void addCmdLineOptions (); + static KApplication* kApplication (); + KConfig* sessionConfig (); + bool isRestored () const; + void disableSessionManagement (); + +%If ( KDE_3_2_0 - ) + void enableSessionManagement (); +%End + + + enum ShutdownConfirm + { + ShutdownConfirmDefault, + ShutdownConfirmNo, + ShutdownConfirmYes + }; + + + enum ShutdownType + { + ShutdownTypeDefault, + ShutdownTypeNone, + ShutdownTypeReboot, + ShutdownTypeHalt + }; + + + enum ShutdownMode + { + ShutdownModeDefault, + ShutdownModeSchedule, + ShutdownModeTryNow, + ShutdownModeForceNow, + ShutdownModeInteractive + }; + + bool requestShutDown (KApplication::ShutdownConfirm = ShutdownConfirmDefault , KApplication::ShutdownType = ShutdownTypeDefault , KApplication::ShutdownMode = ShutdownModeDefault ); + void propagateSessionManager (); + void commitData (QSessionManager&); + void saveState (QSessionManager&); + +%If ( KDE_3_1_1 - ) + bool sessionSaving () const; +%End + + static DCOPClient* dcopClient (); + static void disableAutoDcopRegistration (); + QPixmap icon () const; + QString iconName () const; + QPixmap miniIcon () const; + QString miniIconName () const; + void setTopWidget (QWidget*); + +%If ( KDE_3_2_0 - ) + void invokeHelp (const QString&, const QString&, const QCString&) const; +%End + + void invokeHelp (const QString& = QString ::null , const QString& = QString ::null ) const; + void invokeHTMLHelp (const QString&, const QString& = QString ::null ) const; + +%If ( KDE_3_2_0 - ) + void invokeMailer (const QString&, const QString&, const QCString&); +%End + + void invokeMailer (const QString&, const QString&); + +%If ( KDE_3_3_0 - ) + void invokeMailer (const KURL&, const QCString&, bool); +%End + + +%If ( KDE_3_2_0 - ) + void invokeMailer (const KURL&, const QCString&); +%End + + void invokeMailer (const KURL&); + +%If ( KDE_3_2_0 - ) + void invokeMailer (const QString&, const QString&, const QString&, const QString&, const QString&, const QString&, const QStringList&, const QCString&); +%End + + void invokeMailer (const QString&, const QString&, const QString&, const QString&, const QString&, const QString& = QString ::null , const QStringList& = QStringList ()); + +public slots: + +%If ( KDE_3_2_0 - ) + void invokeBrowser (const QString&, const QCString&); +%End + + void invokeBrowser (const QString&); + +%If ( KDE_3_2_0 - ) + void cut (); + void copy (); + void paste (); + void clear (); + void selectAll (); +%End + + +public: + static QCString launcher (); + static int startServiceByName (const QString&, const QString&, QString* /Out/, QCString* /Out/, int*, const QCString& = QCString ("" ), bool = 0); + static int startServiceByName (const QString&, const QStringList&, QString* /Out/, QCString* /Out/, int*, const QCString& = QCString ("" ), bool = 0); + static int startServiceByDesktopPath (const QString&, const QString&, QString* /Out/, QCString* /Out/, int*, const QCString& = QCString ("" ), bool = 0); + static int startServiceByDesktopPath (const QString&, const QStringList&, QString* /Out/, QCString* /Out/, int*, const QCString& = QCString ("" ), bool = 0); + static int startServiceByDesktopName (const QString&, const QString&, QString* /Out/, QCString* /Out/, int*, const QCString& = QCString ("" ), bool = 0); + static int startServiceByDesktopName (const QString&, const QStringList&, QString* /Out/, QCString* /Out/, int*, const QCString& = QCString ("" ), bool = 0); + +%If ( KDE_3_2_0 - ) + static int kdeinitExec (const QString&, const QStringList&, QString* /Out/, int*, QCString&); +%End + + static int kdeinitExec (const QString&, const QStringList&, QString* /Out/, int*); + +%If ( KDE_3_2_0 - ) + static int kdeinitExecWait (const QString&, const QStringList&, QString* /Out/, int*, QCString&); +%End + + static int kdeinitExecWait (const QString&, const QStringList&, QString* /Out/, int*); + QString caption () const; +//ig KStyle* kstyle () const; + QString makeStdCaption (const QString&, bool = 1, bool = 0) const; + QString tempSaveName (const QString&) const; + QString checkRecoverFile (const QString&, bool&) const; + Display* getDisplay (); + void enableStyles (); + void disableStyles (); + void installX11EventFilter (QWidget*); + +%If ( KDE_3_2_0 - ) + void removeX11EventFilter (const QWidget*); +%End + + static int random (); + static QString randomString (int); + void addKipcEventMask (int); + void removeKipcEventMask (int); + QCString startupId () const; + void setStartupId (const QCString&); + +%If ( KDE_3_2_0 - ) + void updateUserTimestamp (ulong = 0); + +%If ( KDE_3_2_3 - ) + ulong userTimestamp () const; + +%If ( KDE_3_3_0 - ) + void updateRemoteUserTimestamp (const QCString&, ulong = 0); +%End + +%End + +%End + + QString geometryArgument () const; + void installKDEPropertyMap (); + bool authorize (const QString&); + bool authorizeKAction (const char*); + +%If ( KDE_3_1_0 - ) + bool authorizeURLAction (const QString&, const KURL&, const KURL&); + +%If ( KDE_3_2_0 - ) + void allowURLAction (const QString&, const KURL&, const KURL&); + bool authorizeControlModule (const QString&); + QStringList authorizeControlModules (const QStringList&); + +%If ( KDE_3_4_0 - ) + static ButtonState keyboardMouseState (); +%End + +%End + + + enum + { + ShiftModifier, + LockModifier, + ControlModifier, + Modifier1, + Modifier2, + Modifier3, + Modifier4, + Modifier5 + }; + + static uint keyboardModifiers (); + + enum + { + Button1Pressed, + Button2Pressed, + Button3Pressed, + Button4Pressed, + Button5Pressed + }; + + static uint mouseState (); +%End + + +public slots: + void ref (); + void deref (); + +protected: + KApplication (bool, bool, KInstance*); + +%If ( KDE_3_3_0 - ) +//ig KApplication (Display*, Qt::HANDLE, Qt::HANDLE, bool, KInstance*); +%End + +//ig bool x11EventFilter (XEvent*); + +%If ( KDE_3_2_0 - ) + void invokeEditSlot (const char*); +%End + + +public: + bool notify (QObject*, QEvent*); + +%If ( KDE_3_2_0 - ) +//ig int xErrhandler (Display*, void*); +//ig int xioErrhandler (Display*); +%End + + +%If ( KDE_3_0_1 - ) +//ig void iceIOErrorHandler (_IceConn*); +%End + + bool loadedByKdeinit; + static void startKdeinit (); + + enum SettingsCategory + { + SETTINGS_MOUSE, + SETTINGS_COMPLETION, + SETTINGS_PATHS, + SETTINGS_POPUPMENU, + SETTINGS_QT, + SETTINGS_SHORTCUTS + }; + + +%If ( KDE_3_1_0 - ) + static QPalette createApplicationPalette (); + static QPalette createApplicationPalette (KConfig*, int); + +%If ( KDE_3_2_0 - ) + static void installSigpipeHandler (); + static bool guiEnabled (); +%End + +%End + + +signals: + void kdisplayPaletteChanged (); + void kdisplayStyleChanged (); + void kdisplayFontChanged (); + void appearanceChanged (); + void toolbarAppearanceChanged (int); + void backgroundChanged (int); + void settingsChanged (int); + void iconChanged (int); + void kipcMessage (int, int); + void saveYourself (); + void shutDown (); + +private: + KApplication (const KApplication&); + +protected: +//igx virtual void virtual_hook (int, void*); + +public: + +%If ( - KDE_3_2_0 ) + int xioErrhandler (); +%End + + +}; // class KApplication + + +class KSessionManaged +{ +%TypeHeaderCode +#include +%End + + +public: + KSessionManaged (); + virtual bool saveState (QSessionManager&); + virtual bool commitData (QSessionManager&); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KSessionManaged + +typedef ulong Atom; +//ig typedef void Display; +//ig bool checkAccess (const QString&, int); + + +%ModuleCode +#include + +// Convert a Python argv list to a conventional C argc count and argv array. +char **pyArgvToC(PyObject *argvlist,int *argcp) +{ + int argc; + char **argv; + + argc = PyList_Size(argvlist); + + // Allocate space for two copies of the argument pointers, plus the + // terminating NULL. + if ((argv = (char **)sipMalloc(2 * (argc + 1) * sizeof (char *))) == NULL) + return NULL; + + // Convert the list. + for (int a = 0; a < argc; ++a) + { + char *arg; + + // Get the argument and allocate memory for it. + if ((arg = PyString_AsString(PyList_GetItem(argvlist,a))) == NULL || + (argv[a] = (char *)sipMalloc(strlen(arg) + 1)) == NULL) + return NULL; + + // Copy the argument and save a pointer to it. + strcpy(argv[a],arg); + argv[a + argc + 1] = argv[a]; + } + + argv[argc + argc + 1] = argv[argc] = NULL; + + *argcp = argc; + + return argv; +} + + +// Remove arguments from the Python argv list that have been removed from the +// C argv array. +void updatePyArgv(PyObject *argvlist,int argc,char **argv) +{ + for (int a = 0, na = 0; a < argc; ++a) + { + // See if it was removed. + if (argv[na] == argv[a + argc + 1]) + ++na; + else + PyList_SetSlice(argvlist,na,na + 1,NULL); + } +} +%End diff --git a/sip/kdecore/kasyncio.sip b/sip/kdecore/kasyncio.sip new file mode 100644 index 0000000..c59f663 --- /dev/null +++ b/sip/kdecore/kasyncio.sip @@ -0,0 +1,52 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KAsyncIO : QObject, QIODevice +{ +%TypeHeaderCode +#include +%End + + +protected: + KAsyncIO (); + +private: + KAsyncIO (KAsyncIO&); + +public: + virtual void enableRead (bool) = 0; + virtual void enableWrite (bool) = 0; + +signals: + void readyRead (); + void readyWrite (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KAsyncIO + diff --git a/sip/kdecore/kaudioplayer.sip b/sip/kdecore/kaudioplayer.sip new file mode 100644 index 0000000..16ac9c5 --- /dev/null +++ b/sip/kdecore/kaudioplayer.sip @@ -0,0 +1,42 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KAudioPlayer : QObject +{ +%TypeHeaderCode +#include +%End + + +public: + KAudioPlayer (const QString&, QObject* /TransferThis/ = 0, const char* = 0); + static void play (const QString&); + +public slots: + void play (); + +}; // class KAudioPlayer + diff --git a/sip/kdecore/kbufferedio.sip b/sip/kdecore/kbufferedio.sip new file mode 100644 index 0000000..995c863 --- /dev/null +++ b/sip/kdecore/kbufferedio.sip @@ -0,0 +1,73 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KBufferedIO : KAsyncIO +{ +%TypeHeaderCode +#include +%End + + +protected: + KBufferedIO (); + +public: + + enum closeModes + { + availRead, + dirtyWrite, + involuntary, + delayed, + closedNow + }; + + virtual void closeNow () = 0; + virtual bool setBufferSize (int, int = -2); + virtual int bytesAvailable () const; + virtual int waitForMore (int) = 0; + virtual int bytesToWrite () const; + virtual bool canReadLine () const; + virtual int peekBlock (char*, uint) = 0; + virtual int unreadBlock (const char*, uint); + +signals: + void bytesWritten (int); + void closed (int); + +protected: + virtual uint consumeReadBuffer (uint, char*, bool = 1); + virtual void consumeWriteBuffer (uint); + virtual uint feedReadBuffer (uint, const char*, bool = 0); + virtual uint feedWriteBuffer (uint, const char*); + virtual uint readBufferSize () const; + virtual uint writeBufferSize () const; + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KBufferedIO + diff --git a/sip/kdecore/kcalendarsystem.sip b/sip/kdecore/kcalendarsystem.sip new file mode 100644 index 0000000..608dc6e --- /dev/null +++ b/sip/kdecore/kcalendarsystem.sip @@ -0,0 +1,78 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_2_0 - ) + +class KCalendarSystem +{ +%TypeHeaderCode +#include +%End + + +public: + KCalendarSystem (const KLocale* = 0); + virtual int year (const QDate&) const = 0; + virtual QString yearString (const QDate&, bool) const; + virtual int yearStringToInteger (const QString&, int& /Out/) const; + virtual int month (const QDate&) const = 0; + virtual QString monthString (const QDate&, bool) const; + virtual int monthStringToInteger (const QString&, int& /Out/) const; + virtual int day (const QDate&) const = 0; + virtual QString dayString (const QDate&, bool) const; + virtual int dayStringToInteger (const QString&, int& /Out/) const; + virtual int dayOfWeek (const QDate&) const = 0; + virtual int dayOfYear (const QDate&) const = 0; + virtual bool setYMD (QDate&, int, int, int) const = 0; + virtual QDate addYears (const QDate&, int) const = 0; + virtual QDate addMonths (const QDate&, int) const = 0; + virtual QDate addDays (const QDate&, int) const = 0; + virtual int monthsInYear (const QDate&) const = 0; + virtual int daysInYear (const QDate&) const = 0; + virtual int daysInMonth (const QDate&) const = 0; + virtual int weeksInYear (int) const = 0; + virtual int weekNumber (const QDate&, int* = 0) const = 0; + virtual QString monthName (int, int, bool = 0) const = 0; + virtual QString monthName (const QDate&, bool = 0) const = 0; + virtual QString monthNamePossessive (int, int, bool = 0) const = 0; + virtual QString monthNamePossessive (const QDate&, bool = 0) const = 0; + virtual QString weekDayName (int, bool = 0) const = 0; + virtual QString weekDayName (const QDate&, bool = 0) const = 0; + virtual int minValidYear () const = 0; + virtual int maxValidYear () const = 0; + virtual int weekDayOfPray () const = 0; + virtual QString calendarName () const = 0; + virtual bool isLunar () const = 0; + virtual bool isLunisolar () const = 0; + virtual bool isSolar () const = 0; + +protected: + const KLocale* locale () const; + +}; // class KCalendarSystem + +%End + diff --git a/sip/kdecore/kcalendarsystemfactory.sip b/sip/kdecore/kcalendarsystemfactory.sip new file mode 100644 index 0000000..fcbf03d --- /dev/null +++ b/sip/kdecore/kcalendarsystemfactory.sip @@ -0,0 +1,44 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_2_0 - ) + +class KCalendarSystemFactory +{ +%TypeHeaderCode +#include +%End + + +public: + KCalendarSystemFactory (); + static KCalendarSystem* create (const QString& = QString ::fromLatin1 ("gregorian" ), const KLocale* = 0); + static QStringList calendarSystems (); + +}; // class KCalendarSystemFactory + +%End + diff --git a/sip/kdecore/kcatalogue.sip b/sip/kdecore/kcatalogue.sip new file mode 100644 index 0000000..8ff8231 --- /dev/null +++ b/sip/kdecore/kcatalogue.sip @@ -0,0 +1,64 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KCatalogue +{ +%TypeHeaderCode +#include +%End + + +public: + +%If ( KDE_3_3_0 - ) + KCatalogue (const QString& = QString ::null , const QString& = QString ::null ); +%End + + KCatalogue (const KCatalogue&); + QString name () const; + +%If ( KDE_3_3_0 - ) + QString language () const; + int pluralType () const; + void setPluralType (int); +%End + + const char* translate (const char*) const; + +public: + +%If ( - KDE_3_3_0 ) + +%If ( D_MANDRAKE ) + KCatalogue (const QString& = QString ::null ); + void setFileName (const QString&); +%End + +%End + + +}; // class KCatalogue + diff --git a/sip/kdecore/kcharsets.sip b/sip/kdecore/kcharsets.sip new file mode 100644 index 0000000..22ab476 --- /dev/null +++ b/sip/kdecore/kcharsets.sip @@ -0,0 +1,62 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KCharsets +{ +%TypeHeaderCode +#include +%End + + +protected: + KCharsets (); + +public: + QTextCodec* codecForName (const QString&) const; + QTextCodec* codecForName (const QString&, bool& /Out/) const /PyName=codecForName2/; + QChar fromEntity (const QString&) const; + QChar fromEntity (const QString&, int& /Out/) const /PyName=fromEntity2/; + QString toEntity (const QChar&) const; + +%If ( KDE_3_1_0 - ) + static QString resolveEntities (const QString&); +%End + + QStringList availableEncodingNames (); + QStringList descriptiveEncodingNames (); + QString languageForEncoding (const QString&); + QString encodingForName (const QString&); + +public: + +%If ( - KDE_3_2_0 ) +//ig QStringList languages (); +//ig QStringList encodingsForLanguage (const QString&); +%End + + +}; // class KCharsets + diff --git a/sip/kdecore/kclipboard.sip b/sip/kdecore/kclipboard.sip new file mode 100644 index 0000000..b8805ca --- /dev/null +++ b/sip/kdecore/kclipboard.sip @@ -0,0 +1,52 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_1_0 - ) + +class KClipboardSynchronizer : QObject +{ +%TypeHeaderCode +#include +%End + + +public: + static KClipboardSynchronizer* self (); + static void setSynchronizing (bool); + static bool isSynchronizing (); + static void setReverseSynchronizing (bool); + static bool isReverseSynchronizing (); + +protected: + ~KClipboardSynchronizer (); + +private: + KClipboardSynchronizer (QObject* /TransferThis/ = 0, const char* = 0); + +}; // class KClipboardSynchronizer + +%End + diff --git a/sip/kdecore/kcmdlineargs.sip b/sip/kdecore/kcmdlineargs.sip new file mode 100644 index 0000000..df430cf --- /dev/null +++ b/sip/kdecore/kcmdlineargs.sip @@ -0,0 +1,264 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KCmdLineOptions +{ +%TypeHeaderCode +#include +extern char **pyArgvToC(PyObject *argvlist,int *argcp); +extern void updatePyArgv(PyObject *argvlist,int argc,char **argv); +%End + + +public: + const char* name; + const char* description; + +%If ( KDE_3_5_3 - ) +// def is a Python keyword - use /PyName=/ +//pykwd const char* def; +%End + + +}; // class KCmdLineOptions + + +class KCmdLineArgs +{ +%TypeHeaderCode +#include +#include +%End + + +public: + +%If ( KDE_3_2_0 - ) + static void init (SIP_PYLIST, const char*, const char*, const char*, const char*, bool = 0) [void (int, char**, const char*, const char*, const char*, const char*, bool = 0)]; +%MethodCode +//takes _argc | (int) | _argv | (char) | _appname | (char) | programName | (char) | _description | (char) | _version | (char) | noKApp | (bool = 0) + + int argc, nargc; + char **argv; + + // Convert the list. + + if ((argv = pyArgvToC(a0, &argc)) == NULL) + return NULL; + + // Create it now the arguments are right. + nargc = argc; + + Py_BEGIN_ALLOW_THREADS + KCmdLineArgs::init (nargc,argv, a1, a2, a3, a4, a5); + Py_END_ALLOW_THREADS + + // Now modify the original list. + + updatePyArgv (a0, argc, argv); +%End + +%End + + static void init (SIP_PYLIST, const char*, const char*, const char*, bool = 0) [void (int, char**, const char*, const char*, const char*, bool = 0)]; +%MethodCode +//takes _argv | (a Python list of strings which may be modified) | _appname | (char) | _description | (char) | _version | (char) | noKApp | (bool = False) + + int argc, nargc; + char **argv; + + // Convert the list. + + if ((argv = pyArgvToC(a0, &argc)) == NULL) + return NULL; + + // Create it now the arguments are right. + nargc = argc; + + Py_BEGIN_ALLOW_THREADS + KCmdLineArgs::init (nargc,argv, a1, a2, a3, a4); + Py_END_ALLOW_THREADS + + // Now modify the original list. + + updatePyArgv (a0, argc, argv); +%End + + static void init (SIP_PYLIST, const KAboutData*, bool = 0) [void (int, char**, const KAboutData*, bool = 0)]; +%MethodCode +//takes _argv | (a Python list of strings which may be modified) | about | (KAboutData) | noKApp | (bool = 0) + + int argc, nargc; //, iserr = 0; + char **argv; + + // Convert the list. + + if ((argv = pyArgvToC (a0, &argc)) == NULL) + return NULL; + + // Create it now the arguments are right. + nargc = argc; + + Py_BEGIN_ALLOW_THREADS + KCmdLineArgs::init (nargc, argv, a1, a2); + Py_END_ALLOW_THREADS + + // Now modify the original list. + + updatePyArgv (a0, argc, argv); +%End + + static void init (const KAboutData*); + static void addCmdLineOptions (SIP_PYLIST, const char* = 0, const char* = 0, const char* = 0) [void (const KCmdLineOptions*, const char* = 0, const char* = 0, const char* = 0)]; +%MethodCode +//takes options | (a Python list of tuples) | name | (char = 0) | id | (char = 0) | afterId | (char = 0) + +//doc +// A Pytbon list of tuples (name, description, default) is the first parameter +// instead of a KCmdLineOptions object (KCmdLineOptions is not used); +// NULL (or None) parameters to mark the end of the list are not required +//end + + int n; + + if ((n = PyList_Size (a0)) == 0) + return NULL; + + // opts is persistent + KCmdLineOptions *opts; + + Py_BEGIN_ALLOW_THREADS + opts = new KCmdLineOptions [n + 1]; + Py_END_ALLOW_THREADS + + int i, tsz; + for (i = 0; i < n; i++) + { + PyObject *tuple; + + if ((tuple = PyList_GetItem (a0, i)) != NULL) + { + tsz = PyTuple_Size (tuple); + PyObject *member; + + if (tsz == 0) + goto errorExit; + + member = PyTuple_GET_ITEM (tuple, 0); + if (PyString_Check (member)) + opts [i].name = PyString_AS_STRING (member); + else + goto errorExit; + + if (tsz > 1) + { + member = PyTuple_GET_ITEM (tuple, 1); + if PyString_Check (member) + opts [i].description = PyString_AS_STRING (member); + else + goto errorExit; + } + else + opts [i].description = NULL; + + + if (tsz > 2) + { + member = PyTuple_GET_ITEM (tuple, 2); + if PyString_Check (member) + opts [i].def = PyString_AS_STRING (member); + else + goto errorExit; + } + else + opts [i].def = NULL; + } + else + goto errorExit; + } + + // mark the end of the list + opts [n].name = NULL; + opts [n].description = NULL; + opts [n].def = NULL; + + Py_BEGIN_ALLOW_THREADS + KCmdLineArgs::addCmdLineOptions (opts, a1, a2, a3); + Py_END_ALLOW_THREADS + + Py_INCREF (Py_None); + return Py_None; + +errorExit: + delete opts; + return NULL; +%End + + static KCmdLineArgs* parsedArgs (const char* = 0); + static QString cwd (); + static const char* appName (); + static void usage (const char* = 0); + static void usage (const QString&); + static void enable_i18n (); + QCString getOption (const char*); + +%If ( KDE_3_1_4 - ) + QCStringList getOptionList (const char*) const; +%End + + bool isSet (const char*); + int count (); + const char* arg (int); + KURL url (int); + static KURL makeURL (const char*); + static void setCwd (char*); + void clear (); + +%If ( KDE_3_2_0 - ) + static void reset (); + static void loadAppArgs (QDataStream&); + +%If ( KDE_3_4_0 - ) + static void addTempFileOption (); + static bool isTempFileSet (); +%End + +%End + + +protected: + KCmdLineArgs (const KCmdLineOptions*, const char*, const char*); + ~KCmdLineArgs (); + +public: + +%If ( - KDE_3_1_3 ) + QValueList getOptionList (const char*); +%End + + +}; // class KCmdLineArgs + diff --git a/sip/kdecore/kcompletion.sip b/sip/kdecore/kcompletion.sip new file mode 100644 index 0000000..d3f5b01 --- /dev/null +++ b/sip/kdecore/kcompletion.sip @@ -0,0 +1,227 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KCompletion : QObject +{ +%TypeHeaderCode +#include +%End + + +public: + + enum CompOrder + { + Sorted, + Insertion, + Weighted + }; + + KCompletion (); + virtual QString makeCompletion (const QString&); + QStringList substringCompletion (const QString&) const; + QString previousMatch (); + QString nextMatch (); + virtual const QString& lastMatch () const; + QStringList items () const; + +%If ( KDE_3_3_0 - ) + bool isEmpty () const; +%End + + virtual void setCompletionMode (KGlobalSettings::Completion); + KGlobalSettings::Completion completionMode () const; + virtual void setOrder (KCompletion::CompOrder); + CompOrder order () const; + virtual void setIgnoreCase (bool); + bool ignoreCase () const; + QStringList allMatches (); + QStringList allMatches (const QString&); +//ig KCompletionMatches allWeightedMatches (); +//ig KCompletionMatches allWeightedMatches (const QString&); + virtual void setEnableSounds (bool); + bool isSoundsEnabled () const; + bool hasMultipleMatches () const; + void enableSounds (); + void disableSounds (); + +public slots: + void slotMakeCompletion (const QString&); + void slotPreviousMatch (); + void slotNextMatch (); + void insertItems (const QStringList&); + virtual void setItems (const QStringList&); + void addItem (const QString&); + void addItem (const QString&, uint); + void removeItem (const QString&); + virtual void clear (); + +signals: + void match (const QString&); + void matches (const QStringList&); + void multipleMatches (); + +protected: + virtual void postProcessMatch (QString*); + virtual void postProcessMatches (QStringList*); +//ig virtual void postProcessMatches (KCompletionMatches*) const; + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KCompletion + + +//ig class KCompletionMatches : KCompletionMatchesList; + + +class KCompletionBase +{ +%TypeHeaderCode +#include +%End + + +public: + + enum KeyBindingType + { + TextCompletion, + PrevCompletionMatch, + NextCompletionMatch, + SubstringCompletion + }; + + typedef QMap KeyBindingMap; + KCompletionBase (); + KCompletion* completionObject (bool = 1); + virtual void setCompletionObject (KCompletion*, bool = 1); + virtual void setHandleSignals (bool); + bool isCompletionObjectAutoDeleted () const; + void setAutoDeleteCompletionObject (bool); + void setEnableSignals (bool); + bool handleSignals () const; + bool emitSignals () const; + virtual void setCompletionMode (KGlobalSettings::Completion); + KGlobalSettings::Completion completionMode () const; + bool setKeyBinding (KCompletionBase::KeyBindingType, const KShortcut&); + const KShortcut& getKeyBinding (KCompletionBase::KeyBindingType) const; + void useGlobalKeyBindings (); + virtual void setCompletedText (const QString&) = 0; + virtual void setCompletedItems (const QStringList&) = 0; + KCompletion* compObj () const; + +protected: + KCompletionBase::KeyBindingMap getKeyBindings () const; + void setDelegate (KCompletionBase*); + KCompletionBase* delegate () const; + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KCompletionBase + +//ig typedef KSortableValueList KCompletionMatchesList; + + +%MappedType KCompletionBase::KeyBindingMap +//converts a Python dict of int:KShortcut +{ +%TypeHeaderCode +#include +%End +%ConvertFromTypeCode + + if (!sipCpp) + return PyDict_New(); + + PyObject *dict; + + // Create the dictionary. + + if ((dict = PyDict_New()) == NULL) + return NULL; + + // Get it. + + const QMap map = *sipCpp; + QMap::ConstIterator it; + + PyObject *key; + PyObject *value; + + for (it = map.begin (); it != map.end (); ++it) + { + key = PyInt_FromLong ((int) it.key ()); + value = sipConvertFromInstance ((void *)&(it.data ()), sipClass_KShortcut, sipTransferObj); + if ((value == NULL) || (PyDict_SetItem (dict, key, value) < 0)) + { + Py_XDECREF (key); + Py_XDECREF (value); + Py_DECREF (dict); + return NULL; + } + } + + + return dict; +%End + + +%ConvertToTypeCode + // Convert a Python dictionary to a KeyBindingMap on the heap. + + if (sipIsErr == NULL) + return PyDict_Check(sipPy); + + QMap *kbmap = new QMap; + + PyObject *key, *value; + SIP_SSIZE_T pos = 0; + KShortcut *cValue; + int iserr; + + while (PyDict_Next(sipPy, &pos, &key, &value)) + { + cValue = (KShortcut *)sipForceConvertToType(value, sipType_KShortcut, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr || !PyInt_Check (key)) + { + *sipIsErr = 1; + delete kbmap; + return 0; + } + + kbmap->insert ((KCompletionBase::KeyBindingType)PyInt_AS_LONG (key), *cValue); + } + + *sipCppPtr = kbmap; + + return 1; +%End +}; + + diff --git a/sip/kdecore/kconfig.sip b/sip/kdecore/kconfig.sip new file mode 100644 index 0000000..c2cab17 --- /dev/null +++ b/sip/kdecore/kconfig.sip @@ -0,0 +1,238 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KConfig : KConfigBase +{ +%TypeHeaderCode +#include +%End + + +public: + KConfig (const QString& = QString ::null , bool = 0, bool = 1, const char* = "config"); + +%If ( KDE_3_2_0 - ) + KConfig (KConfigBackEnd*, bool = 0); +%End + + virtual void rollback (bool = 1); + virtual QStringList groupList () const; + virtual QMap entryMap (const QString&) const; + virtual void reparseConfiguration (); + void setFileWriteMode (int); + void setForceGlobal (bool); + bool forceGlobal () const; + +%If ( KDE_3_1_0 - ) + void checkUpdate (const QString&, const QString&); + +%If ( KDE_3_2_0 - ) + KConfig* copyTo (const QString&, KConfig* = 0) const; + +%If ( KDE_3_3_0 - ) + KLockFile::Ptr lockFile (bool = 0); +%End + +%End + +%End + + +protected: + virtual bool internalHasGroup (const QCString&) const; + virtual KEntryMap internalEntryMap (const QString&) const; + virtual KEntryMap internalEntryMap () const; + virtual void putData (const KEntryKey&, const KEntry&, bool = 1); + virtual KEntry lookupData (const KEntryKey&) const; + +private: + KConfig (const KConfig&); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KConfig + + +%If ( KDE_3_2_0 - ) + +class KSharedConfig : KConfig, KShared +{ +%TypeHeaderCode +#include +%End + + +public: +//ig typedef KSharedPtr Ptr; + +public: + static KSharedConfig::Ptr openConfig (const QString&, bool = 0, bool = 1); + +private: + KSharedConfig (const QString&, bool, bool); + ~KSharedConfig (); + +}; // class KSharedConfig + +%End + + + +%MappedType QMap +//converts a Python dict of QString:QString +{ +%TypeHeaderCode +#include +%End + +%ConvertFromTypeCode + // Convert to a Python dict + + if (!sipCpp) + return PyDict_New(); + + PyObject *dict; + + // Create the dictionary. + + if ((dict = PyDict_New()) == NULL) + return NULL; + + // Get it. + + const QMap cppmap = *sipCpp; + QMap::ConstIterator it; + + for (it = cppmap.begin (); it != cppmap.end (); ++it) + { + QString acpp = it.key (); + QString bcpp = it.data (); + PyObject *ainst; + PyObject *binst = NULL; + if (((ainst = sipConvertFromNewType(new QString(acpp), sipType_QString, sipTransferObj)) == NULL) + || ((binst = sipConvertFromNewType(new QString(bcpp), sipType_QString, sipTransferObj)) == NULL) + || (PyDict_SetItem (dict, ainst, binst) < 0)) + { + Py_XDECREF (ainst); + Py_XDECREF (binst); + Py_DECREF (dict); + return NULL; + } + } + + return dict; +%End + + +%ConvertToTypeCode + // Convert a Python dictionary to a QMap on the heap. + + if (sipIsErr == NULL) + return PyDict_Check(sipPy); + + QMap *cppmap = new QMap; + + PyObject *aelem, *belem; + SIP_SSIZE_T pos = 0; + QString *acpp; + QString *bcpp; + + while (PyDict_Next(sipPy, &pos, &aelem, &belem)) + { + int iserr = 0, acpp_state, bcpp_state; + + acpp = (QString *)sipForceConvertToType(aelem, sipType_QString, sipTransferObj, SIP_NOT_NONE, &acpp_state, &iserr); + bcpp = (QString *)sipForceConvertToType(belem, sipType_QString, sipTransferObj, SIP_NOT_NONE, &bcpp_state, &iserr); + + if (iserr) + { + if (acpp) + sipReleaseType(acpp, sipType_QString, acpp_state); + + *sipIsErr = 1; + delete cppmap; + return 0; + } + + cppmap->insert (*acpp, *bcpp); + + sipReleaseType(acpp, sipType_QString, acpp_state); + sipReleaseType(bcpp, sipType_QString, bcpp_state); + } + + *sipCppPtr = cppmap; + + return 1; +%End +}; + + +%If (KDE_3_2_0 - ) +%MappedType KSharedConfig::Ptr +//converts KSharedConfig +{ +%TypeHeaderCode +#include +#include +%End + +%ConvertFromTypeCode + // Convert to a Python instance + + if (!sipCpp) + return NULL; + + KSharedPtr *cPtr = new KSharedPtr (*(KSharedPtr *)sipCpp); + KSharedConfig *cpp = cPtr->data (); + PyObject *obj = sipConvertFromInstance (cpp, sipClass_KSharedConfig, sipTransferObj); + + return obj; +%End + +%ConvertToTypeCode + // Convert a Python instance to a Ptr on the heap. + + if (sipIsErr == NULL) + return PyInstance_Check(sipPy); + + int iserr = 0; + KSharedConfig *cpp = (KSharedConfig *)sipForceConvertToType(sipPy, sipType_KSharedConfig, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + *sipIsErr = 1; + return 0; + } + + *sipCppPtr = new KSharedPtr (cpp); + + return 1; +%End +}; +%End + + diff --git a/sip/kdecore/kconfigbackend.sip b/sip/kdecore/kconfigbackend.sip new file mode 100644 index 0000000..0e1b52e --- /dev/null +++ b/sip/kdecore/kconfigbackend.sip @@ -0,0 +1,93 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KConfigBackEnd +{ +%TypeHeaderCode +#include +%End + + +public: + KConfigBackEnd (KConfigBase*, const QString&, const char*, bool); + virtual bool parseConfigFiles () = 0; + virtual void sync (bool = 1) = 0; + void changeFileName (const QString&, const char*, bool); + virtual KConfigBase::ConfigState getConfigState () const; + QString fileName () const; + const char* resource () const; + void setLocaleString (const QCString&); + void setFileWriteMode (int); + +%If ( KDE_3_2_0 - ) + bool checkConfigFilesWritable (bool); + +%If ( KDE_3_3_0 - ) + KLockFile::Ptr lockFile (bool = 0); +%End + +%End + + QString filename () const; + +protected: + +protected: +//igx virtual void virtual_hook (int, void*); + +protected: + +}; // class KConfigBackEnd + + +class KConfigINIBackEnd : KConfigBackEnd +{ +%TypeHeaderCode +#include +#include +%End + + +public: + KConfigINIBackEnd (KConfigBase*, const QString&, const char*, bool = 1); + bool parseConfigFiles (); + virtual void sync (bool = 1); + +protected: + void parseSingleConfigFile (QFile&, KEntryMap* = 0, bool = 0, bool = 0); + bool writeConfigFile (QString, bool = 0, bool = 1); + +%If ( KDE_3_2_0 - ) + bool getEntryMap (KEntryMap&, bool, QFile*); +//ig void writeEntries (FILE*, const KEntryMap&); +%End + + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KConfigINIBackEnd + diff --git a/sip/kdecore/kconfigbase.sip b/sip/kdecore/kconfigbase.sip new file mode 100644 index 0000000..c960004 --- /dev/null +++ b/sip/kdecore/kconfigbase.sip @@ -0,0 +1,333 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%ModuleHeaderCode +typedef long long longlong; +typedef unsigned long long ulonglong; +%End + + +class KConfigBase : QObject +{ +%TypeHeaderCode +#include +%End + + +public: + KConfigBase (); + void setGroup (const QString&); + void setDesktopGroup (); + QString group () const; + bool hasGroup (const QString&) const; + virtual QStringList groupList () const = 0; + QString locale () const; + QString readEntry (const QString&, const QString& = QString ::null ) const; + QString readEntry (const char*, const QString& = QString ::null ) const; + QVariant readPropertyEntry (const QString&, QVariant::Type) const; + QVariant readPropertyEntry (const char*, QVariant::Type) const; + QVariant readPropertyEntry (const QString&, const QVariant&) const; + QVariant readPropertyEntry (const char*, const QVariant&) const; + int readListEntry (const QString&, QStrList&, char = ',') const; + int readListEntry (const char*, QStrList&, char = ',') const; + QStringList readListEntry (const QString&, char = ',') const; + QStringList readListEntry (const char*, char = ',') const; + +%If ( KDE_3_3_0 - ) + QStringList readListEntry (const char*, const QStringList&, char = ',') const; +%End + + QValueList readIntListEntry (const QString&) const; + QValueList readIntListEntry (const char*) const; + QString readPathEntry (const QString&, const QString& = QString ::null ) const; + QString readPathEntry (const char*, const QString& = QString ::null ) const; + +%If ( KDE_3_1_3 - ) + QStringList readPathListEntry (const QString&, char = ',') const; + QStringList readPathListEntry (const char*, char = ',') const; +%End + + int readNumEntry (const QString&, int = 0) const; + int readNumEntry (const char*, int = 0) const; + uint readUnsignedNumEntry (const QString&, uint = 0) const; + uint readUnsignedNumEntry (const char*, uint = 0) const; + long readLongNumEntry (const QString&, long = 0) const; + long readLongNumEntry (const char*, long = 0) const; + ulong readUnsignedLongNumEntry (const QString&, ulong = 0) const; + ulong readUnsignedLongNumEntry (const char*, ulong = 0) const; + +%If ( KDE_3_2_0 - ) + longlong readNum64Entry (const QString&, longlong = 0) const; + longlong readNum64Entry (const char*, longlong = 0) const; + ulonglong readUnsignedNum64Entry (const QString&, ulonglong = 0) const; + ulonglong readUnsignedNum64Entry (const char*, ulonglong = 0) const; +%End + + double readDoubleNumEntry (const QString&, double = 0.0) const; + double readDoubleNumEntry (const char*, double = 0.0) const; + QFont readFontEntry (const QString&, const QFont* = 0) const; + QFont readFontEntry (const char*, const QFont* = 0) const; + bool readBoolEntry (const QString&, const bool = 0) const; + bool readBoolEntry (const char*, const bool = 0) const; + QRect readRectEntry (const QString&, const QRect* = 0) const; + QRect readRectEntry (const char*, const QRect* = 0) const; + QPoint readPointEntry (const QString&, const QPoint* = 0) const; + QPoint readPointEntry (const char*, const QPoint* = 0) const; + QSize readSizeEntry (const QString&, const QSize* = 0) const; + QSize readSizeEntry (const char*, const QSize* = 0) const; + QColor readColorEntry (const QString&, const QColor* = 0) const; + QColor readColorEntry (const char*, const QColor* = 0) const; + QDateTime readDateTimeEntry (const QString&, const QDateTime* = 0) const; + QDateTime readDateTimeEntry (const char*, const QDateTime* = 0) const; + QString readEntryUntranslated (const QString&, const QString& = QString ::null ) const; + QString readEntryUntranslated (const char*, const QString& = QString ::null ) const; + void writeEntry (const QString&, const QString&, bool = 1, bool = 0, bool = 0); + void writeEntry (const char*, const QString&, bool = 1, bool = 0, bool = 0); + void writeEntry (const QString&, const QVariant&, bool = 1, bool = 0, bool = 0); + void writeEntry (const char*, const QVariant&, bool = 1, bool = 0, bool = 0); + void writeEntry (const QString&, const QStrList&, char = ',', bool = 1, bool = 0, bool = 0); + void writeEntry (const char*, const QStrList&, char = ',', bool = 1, bool = 0, bool = 0); + void writeEntry (const QString&, const QStringList&, char = ',', bool = 1, bool = 0, bool = 0); + void writeEntry (const char*, const QStringList&, char = ',', bool = 1, bool = 0, bool = 0); + void writeEntry (const QString&, const QValueList&, bool = 1, bool = 0, bool = 0); + void writeEntry (const char*, const QValueList&, bool = 1, bool = 0, bool = 0); + void writeEntry (const QString&, const char*, bool = 1, bool = 0, bool = 0); + void writeEntry (const char*, const char*, bool = 1, bool = 0, bool = 0); + void writeEntry (const QString&, int, bool = 1, bool = 0, bool = 0); + void writeEntry (const char*, int, bool = 1, bool = 0, bool = 0); + +%If ( KDE_3_2_0 - ) + void writeEntry (const QString&, longlong, bool = 1, bool = 0, bool = 0); + void writeEntry (const char*, longlong, bool = 1, bool = 0, bool = 0); + void writeEntry (const QString&, ulonglong, bool = 1, bool = 0, bool = 0); + void writeEntry (const char*, ulonglong, bool = 1, bool = 0, bool = 0); +%End + +//ig void writeEntry (const QString&, double, bool = 1, bool = 0, char = 'g', int = 6, bool = 0); +//ig void writeEntry (const char*, double, bool = 1, bool = 0, char = 'g', int = 6, bool = 0); + void writeEntry (const QString&, const QFont&, bool = 1, bool = 0, bool = 0); + void writeEntry (const char*, const QFont&, bool = 1, bool = 0, bool = 0); + void writeEntry (const QString&, const QColor&, bool = 1, bool = 0, bool = 0); + void writeEntry (const char*, const QColor&, bool = 1, bool = 0, bool = 0); + void writeEntry (const QString&, const QDateTime&, bool = 1, bool = 0, bool = 0); + void writeEntry (const char*, const QDateTime&, bool = 1, bool = 0, bool = 0); + void writeEntry (const QString&, const QRect&, bool = 1, bool = 0, bool = 0); + void writeEntry (const char*, const QRect&, bool = 1, bool = 0, bool = 0); + void writeEntry (const QString&, const QPoint&, bool = 1, bool = 0, bool = 0); + void writeEntry (const char*, const QPoint&, bool = 1, bool = 0, bool = 0); + void writeEntry (const QString&, const QSize&, bool = 1, bool = 0, bool = 0); + void writeEntry (const char*, const QSize&, bool = 1, bool = 0, bool = 0); + void writePathEntry (const QString&, const QString&, bool = 1, bool = 0, bool = 0); + void writePathEntry (const char*, const QString&, bool = 1, bool = 0, bool = 0); + +%If ( KDE_3_1_3 - ) + void writePathEntry (const QString&, const QStringList&, char = ',', bool = 1, bool = 0, bool = 0); + void writePathEntry (const char*, const QStringList&, char = ',', bool = 1, bool = 0, bool = 0); +%End + + void deleteEntry (const QString&, bool = 0, bool = 0); + void deleteEntry (const char*, bool = 0, bool = 0); + bool deleteGroup (const QString&, bool = 1, bool = 0); + void setDollarExpansion (bool = 1); + bool isDollarExpansion () const; + virtual void rollback (bool = 1); + virtual void sync (); + bool isDirty () const; + virtual void setReadOnly (bool); + bool isReadOnly () const; + bool hasKey (const QString&) const; + virtual QMap entryMap (const QString&) const = 0; + virtual void reparseConfiguration () = 0; + bool isImmutable () const; + bool groupIsImmutable (const QString&) const; + bool entryIsImmutable (const QString&) const; + + enum ConfigState + { + NoAccess, + ReadOnly, + ReadWrite + }; + + ConfigState getConfigState () const; + +%If ( KDE_3_2_0 - ) + bool checkConfigFilesWritable (bool); + void setReadDefaults (bool); + bool readDefaults () const; + void revertToDefault (const QString&); + bool hasDefault (const QString&) const; +%End + + +protected: + void setLocale (); + virtual void setDirty (bool = 1); + virtual void parseConfigFiles (); + virtual KEntryMap internalEntryMap (const QString&) const = 0; + virtual KEntryMap internalEntryMap () const = 0; + virtual void putData (const KEntryKey&, const KEntry&, bool = 1) = 0; + virtual KEntry lookupData (const KEntryKey&) const = 0; + virtual bool internalHasGroup (const QCString&) const = 0; + +public: + void setGroup (const QCString&); + void setGroup (const char*); + bool hasGroup (const QCString&) const; + bool hasGroup (const char*) const; + bool hasKey (const char*) const; + +protected: + QCString readEntryUtf8 (const char*) const; + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KConfigBase + + +class KConfigGroupSaver +{ +%TypeHeaderCode +#include +%End + + +public: + KConfigGroupSaver (KConfigBase*, QString); + KConfigGroupSaver (KConfigBase*, const char*); + KConfigGroupSaver (KConfigBase*, const QCString&); + KConfigBase* config (); + +private: + KConfigGroupSaver (const KConfigGroupSaver&); + +}; // class KConfigGroupSaver + + +class KConfigGroup : KConfigBase +{ +%TypeHeaderCode +#include +%End + + +public: + KConfigGroup (KConfigBase*, const QCString&); + KConfigGroup (KConfigBase*, const QString&); + KConfigGroup (KConfigBase*, const char*); + void deleteGroup (bool = 0); + +%If ( KDE_3_4_0 - ) + bool groupIsImmutable () const; +%End + + virtual void setDirty (bool); + virtual void putData (const KEntryKey&, const KEntry&, bool = 1); + virtual KEntry lookupData (const KEntryKey&) const; + virtual void sync (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KConfigGroup + + + +%MappedType longlong +//converts a Python long +{ +%TypeHeaderCode +#if PY_MAJOR_VERSION >= 2 && PY_MINOR_VERSION >= 3 +#define LONG_LONG PY_LONG_LONG +#endif +%End +%ConvertFromTypeCode + if (!sipCpp) + Py_INCREF (Py_None); + return Py_None; + +// PyObject *LongLong; + + return PyLong_FromLongLong (*(LONG_LONG *)sipCpp); +%End + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyLong_Check (sipPy) || PyInt_Check (sipPy); + + long long *ll = new long long; + *ll = 0; + + if (PyLong_Check (sipPy)) + *ll = PyLong_AsLongLong (sipPy); + else if (PyInt_Check (sipPy)) + *ll = (long long)PyInt_AS_LONG (sipPy); + + *sipCppPtr = ll; + + return 1; +%End + +}; + + +%MappedType ulonglong +//converts a Python long +{ +%TypeHeaderCode +#if PY_MAJOR_VERSION >= 2 && PY_MINOR_VERSION >= 3 +#define LONG_LONG PY_LONG_LONG +#endif +%End +%ConvertFromTypeCode + if (!sipCpp) + Py_INCREF (Py_None); + return Py_None; + + return PyLong_FromUnsignedLongLong (*(LONG_LONG *)sipCpp); +%End + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyLong_Check (sipPy) || PyInt_Check (sipPy); + + unsigned long long *ul = new unsigned long long; + *ul = 0; + + if (PyLong_Check (sipPy)) + *ul = PyLong_AsUnsignedLongLong (sipPy); + else if (PyInt_Check (sipPy)) + *ul = (unsigned long long)PyInt_AS_LONG (sipPy); + + *sipCppPtr = ul; + + return 1; +%End + +}; + + diff --git a/sip/kdecore/kconfigdata.sip b/sip/kdecore/kconfigdata.sip new file mode 100644 index 0000000..539b9f2 --- /dev/null +++ b/sip/kdecore/kconfigdata.sip @@ -0,0 +1,172 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KEntry +{ +%TypeHeaderCode +#include +%End + + +public: + KEntry (); + QCString mValue; + bool bDirty; + bool bNLS; + bool bGlobal; + bool bImmutable; + bool bDeleted; + +%If ( KDE_3_1_0 - ) + bool bExpand; +%End + + +}; // class KEntry + + +class KEntryKey +{ +%TypeHeaderCode +#include +%End + + +public: + KEntryKey (const QCString& = QCString ("" ), const QCString& = QCString ("" )); + QCString mGroup; + QCString mKey; + bool bLocal; + bool bDefault; + const char* c_key; + +}; // class KEntryKey + +//ig typedef QMap::Iterator KEntryMapIterator; +//ig typedef QMap::ConstIterator KEntryMapConstIterator; +//force +KEntryMap testKEntryMap (SIP_PYOBJECT) [KEntryMap (KEntryMap)]; +%MethodCode +//takes dict | (KEntryMap) +//returns (QMap +#include +%End + +%ConvertFromTypeCode + // Convert to a Python dict + + if (!sipCpp) + return PyDict_New(); + + PyObject *dict; + + // Create the dictionary. + + if ((dict = PyDict_New()) == NULL) + return NULL; + + // Get it. + + const KEntryMap cppmap = *sipCpp; + KEntryMap::ConstIterator it; + + for (it = cppmap.begin (); it != cppmap.end (); ++it) + { + KEntryKey acpp = it.key (); + KEntry bcpp = it.data (); + PyObject *ainst; + PyObject *binst = NULL; + if (((ainst = sipConvertFromNewType(new KEntryKey(acpp), sipType_KEntryKey, NULL)) == NULL) + || ((binst = sipConvertFromNewType(new KEntry(bcpp), sipType_KEntry, NULL)) == NULL) + || (PyDict_SetItem (dict, ainst, binst) < 0)) + { + Py_XDECREF (ainst); + Py_XDECREF (binst); + Py_DECREF (dict); + return NULL; + } + } + + return dict; +%End + + +%ConvertToTypeCode + // Convert a Python dictionary to a QMap on the heap. + + if (sipIsErr == NULL) + return PyDict_Check(sipPy); + + + KEntryMap *cppmap = new KEntryMap; + + PyObject *aelem, *belem; + SIP_SSIZE_T pos = 0; + KEntryKey *acpp; + KEntry *bcpp; + + while (PyDict_Next(sipPy, &pos, &aelem, &belem)) + { + int iserr = 0; + + acpp = (KEntryKey *)sipForceConvertToType(aelem, sipType_KEntryKey, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr); + bcpp = (KEntry *)sipForceConvertToType(belem, sipType_KEntry, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + *sipIsErr = 1; + delete cppmap; + return 0; + } + + cppmap->insert (*acpp, *bcpp); + } + + *sipCppPtr = cppmap; + + return 1; +%End +}; + + diff --git a/sip/kdecore/kconfigdialogmanager.sip b/sip/kdecore/kconfigdialogmanager.sip new file mode 100644 index 0000000..4f924da --- /dev/null +++ b/sip/kdecore/kconfigdialogmanager.sip @@ -0,0 +1,64 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_2_0 - ) + +class KConfigDialogManager : QObject +{ +%TypeHeaderCode +#include +%End + + +signals: + void settingsChanged (); + void settingsChanged (QWidget*); + void widgetModified (); + +public: + KConfigDialogManager (QWidget* /TransferThis/, KConfigSkeleton*, const char* = 0); + void addWidget (QWidget*); + bool hasChanged (); + bool isDefault (); + +public slots: + void updateSettings (); + void updateWidgets (); + void updateWidgetsDefault (); + +protected: + void init (bool); + bool parseChildren (const QWidget*, bool); + void setProperty (QWidget*, const QVariant&); + QVariant property (QWidget*); + void setupWidget (QWidget*, KConfigSkeletonItem*); + +protected: + +}; // class KConfigDialogManager + +%End + diff --git a/sip/kdecore/kconfigskeleton.sip b/sip/kdecore/kconfigskeleton.sip new file mode 100644 index 0000000..63f96e0 --- /dev/null +++ b/sip/kdecore/kconfigskeleton.sip @@ -0,0 +1,1146 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_2_0 - ) + +class KConfigSkeletonItem +{ +%TypeHeaderCode +#include +#include +%End + + +public: + typedef QValueList List; +//ig typedef QDict Dict; +//ig typedef QDictIterator DictIterator; + KConfigSkeletonItem (const QString&, const QString&); + void setGroup (const QString&); + QString group () const; + void setKey (const QString&); + QString key () const; + void setName (const QString&); + QString name () const; + void setLabel (const QString&); + QString label () const; + void setWhatsThis (const QString&); + QString whatsThis () const; + virtual void readConfig (KConfig*) = 0; + virtual void writeConfig (KConfig*) = 0; + virtual void readDefault (KConfig*) = 0; + virtual void setProperty (const QVariant&) = 0; + virtual QVariant property () const = 0; + virtual QVariant minValue () const; + virtual QVariant maxValue () const; + virtual void setDefault () = 0; + virtual void swapDefault () = 0; + bool isImmutable () const; + +protected: + void readImmutability (KConfig*); + +//force +%ConvertToSubClassCode + if (dynamic_cast(sipCpp)) + sipClass = sipClass_KConfigSkeleton_ItemBool; + else if (dynamic_cast(sipCpp)) + sipClass = sipClass_KConfigSkeleton_ItemColor; + else if (dynamic_cast(sipCpp)) + sipClass = sipClass_KConfigSkeleton_ItemDateTime; + else if (dynamic_cast(sipCpp)) + sipClass = sipClass_KConfigSkeleton_ItemDouble; + else if (dynamic_cast(sipCpp)) + sipClass = sipClass_KConfigSkeleton_ItemEnum; + else if (dynamic_cast(sipCpp)) + sipClass = sipClass_KConfigSkeleton_ItemFont; + else if (dynamic_cast(sipCpp)) + sipClass = sipClass_KConfigSkeleton_ItemInt; + else if (dynamic_cast(sipCpp)) + sipClass = sipClass_KConfigSkeleton_ItemInt64; + else if (dynamic_cast(sipCpp)) + sipClass = sipClass_KConfigSkeleton_ItemIntList; + else if (dynamic_cast(sipCpp)) + sipClass = sipClass_KConfigSkeleton_ItemLong; + else if (dynamic_cast(sipCpp)) + sipClass = sipClass_KConfigSkeleton_ItemPassword; + else if (dynamic_cast(sipCpp)) + sipClass = sipClass_KConfigSkeleton_ItemPath; + else if (dynamic_cast(sipCpp)) + sipClass = sipClass_KConfigSkeleton_ItemPoint; + else if (dynamic_cast(sipCpp)) + sipClass = sipClass_KConfigSkeleton_ItemProperty; + else if (dynamic_cast(sipCpp)) + sipClass = sipClass_KConfigSkeleton_ItemRect; + else if (dynamic_cast(sipCpp)) + sipClass = sipClass_KConfigSkeleton_ItemSize; + else if (dynamic_cast(sipCpp)) + sipClass = sipClass_KConfigSkeleton_ItemString; + else if (dynamic_cast(sipCpp)) + sipClass = sipClass_KConfigSkeleton_ItemStringList; + else if (dynamic_cast(sipCpp)) + sipClass = sipClass_KConfigSkeleton_ItemUInt; + else if (dynamic_cast(sipCpp)) + sipClass = sipClass_KConfigSkeleton_ItemUInt64; + else if (dynamic_cast(sipCpp)) + sipClass = sipClass_KConfigSkeleton_ItemULong; + else + sipClass = NULL; +%End +//end + +}; // class KConfigSkeletonItem + +%End + + +%If ( KDE_3_2_0 - ) + +class KConfigSkeleton +{ +%TypeHeaderCode +#include +typedef QValueList IntList; +%End + + +public: + + class ItemPassword : KConfigSkeleton::ItemString + { + + public: + ItemPassword (const QString&, const QString&, QString&, const QString& = QString ::fromLatin1 ("" )); + + }; // class ItemPassword + + +public: + + class ItemPath : KConfigSkeleton::ItemString + { + + public: + ItemPath (const QString&, const QString&, QString&, const QString& = QString ::null ); + + }; // class ItemPath + + +public: + + class ItemEnum : KConfigSkeleton::ItemInt + { + + public: + + class Choice + { + + public: + QString name; + QString label; + QString whatsThis; + + }; // class Choice + + + public: + ItemEnum (const QString&, const QString&, int, const QValueList&, int = 0) [(const QString&, const QString&, int&, const QValueList&, int = 0)]; +%MethodCode +//takes group | (QString) | key | (QString) | reference | (int) | choices | (QValueList) |defaultValue | (int = 1) + + class PyItemEnum : public KConfigSkeleton::ItemEnum + { + public: + PyItemEnum (const QString& group, const QString& key, int& val, const QValueList& choices, int defaultValue = 0) : + KConfigSkeleton::ItemEnum(group, key, this->value, choices, defaultValue) + { + value = val; + }; + + private: + int value; + }; + + Py_BEGIN_ALLOW_THREADS + sipCpp = (sipKConfigSkeleton_ItemEnum *) new PyItemEnum (*a0, *a1, a2, *a3, a4); + Py_END_ALLOW_THREADS +%End + + QValueList choices () const; + void readConfig (KConfig*); + void writeConfig (KConfig*); + + public: +//force + void setValue (const int&); + int value (); + virtual void setDefaultValue (const int&); + virtual void setDefault (); + void swapDefault (); +//end + + }; // class ItemEnum + + +public: + +%If ( KDE_3_4_0 - ) + + class ItemPathList : KConfigSkeleton::ItemStringList + { + + public: + ItemPathList (const QString&, const QString&, QStringList&, const QStringList& = QStringList ()); + void readConfig (KConfig*); + void writeConfig (KConfig*); + + }; // class ItemPathList + + +public: +%End + + +public: + KConfigSkeleton (const QString& = QString ::null ); + KConfigSkeleton (KSharedConfig::Ptr); + void setDefaults (); + void readConfig (); + void writeConfig (); + void setCurrentGroup (const QString&); + QString currentGroup (); + void addItem (KConfigSkeletonItem*, const QString& = QString ::null ); + ItemString* addItemString (const QString&, QString&, const QString& = QString ::fromLatin1 ("" ), const QString& = QString ::null ); + KConfigSkeleton::ItemPassword* addItemPassword (const QString&, QString&, const QString& = QString ::fromLatin1 ("" ), const QString& = QString ::null ); + KConfigSkeleton::ItemPath* addItemPath (const QString&, QString&, const QString& = QString ::fromLatin1 ("" ), const QString& = QString ::null ); + ItemProperty* addItemProperty (const QString&, QVariant&, const QVariant& = QVariant (), const QString& = QString ::null ); + ItemBool* addItemBool (const QString&, bool&, bool = 0, const QString& = QString ::null ); +%MethodCode +//takes name | (QString) | value | (bool) | defaultValue | (bool) | key | (QString = QString::null) + + class PyItemBool : public KConfigSkeleton::ItemBool + { + public: + PyItemBool (const QString &group, const QString &key, bool val, bool defaultValue = 0) : + KConfigSkeleton::ItemBool (group, key, this->value, defaultValue) + { + value = val; + } + + private: + bool value; + }; + + Py_BEGIN_ALLOW_THREADS + sipRes = new PyItemBool (sipCpp->currentGroup(), a3->isNull() ? *a0 : *a3, a1, a2); + sipCpp->addItem(sipRes, *a0); + Py_END_ALLOW_THREADS +%End + + ItemInt* addItemInt (const QString&, int&, int = 0, const QString& = QString ::null ); +%MethodCode +//takes name | (QString) | value | (int) | defaultValue | (int) | key | (QString = QString::null) + + class PyItemInt : public KConfigSkeleton::ItemInt + { + public: + PyItemInt(const QString &group, const QString &key, int val, int defaultValue=0) : + KConfigSkeleton::ItemInt (group, key, this->value, defaultValue) + { + value = val; + } + + private: + int value; + }; + + Py_BEGIN_ALLOW_THREADS + sipRes = new PyItemInt(sipCpp->currentGroup(), a3->isNull() ? *a0 : *a3, a1, a2); + sipCpp->addItem(sipRes, *a0); + Py_END_ALLOW_THREADS +%End + + ItemUInt* addItemUInt (const QString&, uint&, uint = 0, const QString& = QString ::null ); +%MethodCode +//takes name | (QString) | value | (uint) | defaultValue | (uint) | key | (QString = QString::null) + + class PyItemUInt : public KConfigSkeleton::ItemUInt + { + public: + PyItemUInt(const QString &group, const QString &key, uint val, uint defaultValue = 0) : + KConfigSkeleton::ItemUInt (group, key, this->value, defaultValue) + { + value = val; + } + + private: + uint value; + }; + + Py_BEGIN_ALLOW_THREADS + sipRes = new PyItemUInt(sipCpp->currentGroup(), a3->isNull() ? *a0 : *a3, a1, a2); + sipCpp->addItem(sipRes, *a0); + Py_END_ALLOW_THREADS +%End + + ItemLong* addItemLong (const QString&, long&, long = 0, const QString& = QString ::null ); +%MethodCode +//takes name | (QString) | value | (long) | defaultValue | (long) | key | (QString = QString::null) + + class PyItemLong : public KConfigSkeleton::ItemLong + { + public: + PyItemLong(const QString &group, const QString &key, long val, long defaultValue=0) : + KConfigSkeleton::ItemLong (group, key, this->value, defaultValue) + { + value = val; + } + + private: + long value; + }; + + Py_BEGIN_ALLOW_THREADS + sipRes = new PyItemLong(sipCpp->currentGroup(), a3->isNull() ? *a0 : *a3, a1, a2); + sipCpp->addItem(sipRes, *a0); + Py_END_ALLOW_THREADS +%End + + ItemULong* addItemULong (const QString&, ulong&, ulong = 0, const QString& = QString ::null ); +%MethodCode +//takes name | (QString) | value | (ulong) | defaultValue | (ulong) | key | (QString = QString::null) + + class PyItemULong : public KConfigSkeleton::ItemULong + { + public: + PyItemULong(const QString &group, const QString &key, ulong val, ulong defaultValue = 0) : + KConfigSkeleton::ItemULong (group, key, this->value, defaultValue) + { + value = val; + } + + private: + ulong value; + }; + + Py_BEGIN_ALLOW_THREADS + sipRes = new PyItemULong(sipCpp->currentGroup(), a3->isNull() ? *a0 : *a3, a1, a2); + sipCpp->addItem(sipRes, *a0); + Py_END_ALLOW_THREADS +%End + + KConfigSkeleton::ItemInt64* addItemInt64 (const QString&, longlong&, longlong = 0, const QString& = QString ::null ); + KConfigSkeleton::ItemUInt64* addItemUInt64 (const QString&, ulonglong&, ulonglong = 0, const QString& = QString ::null ); + ItemDouble* addItemDouble (const QString&, double&, double = 0.0, const QString& = QString ::null ); +%MethodCode +//takes name | (QString) | value | (double) | defaultValue | (double) | key | (QString = QString::null) + + class PyItemDouble : public KConfigSkeleton::ItemDouble + { + public: + PyItemDouble(const QString &group, const QString &key, double val, double defaultValue=0.0) : + KConfigSkeleton::ItemDouble(group, key, this->value, defaultValue) + { + value = val; + }; + + private: + double value; + }; + + Py_BEGIN_ALLOW_THREADS + sipRes = new PyItemDouble(sipCpp->currentGroup(), a3->isNull() ? *a0 : *a3, a1, a2); + sipCpp->addItem(sipRes, *a0); + Py_END_ALLOW_THREADS +%End + + ItemColor* addItemColor (const QString&, QColor&, const QColor& = QColor (128 ,128 ,128 ), const QString& = QString ::null ); + ItemFont* addItemFont (const QString&, QFont&, const QFont& = KGlobalSettings ::generalFont (), const QString& = QString ::null ); + ItemRect* addItemRect (const QString&, QRect&, const QRect& = QRect (), const QString& = QString ::null ); + ItemPoint* addItemPoint (const QString&, QPoint&, const QPoint& = QPoint (), const QString& = QString ::null ); + ItemSize* addItemSize (const QString&, QSize&, const QSize& = QSize (), const QString& = QString ::null ); + ItemDateTime* addItemDateTime (const QString&, QDateTime&, const QDateTime& = QDateTime (), const QString& = QString ::null ); + KConfigSkeleton::ItemStringList* addItemStringList (const QString&, QStringList&, const QStringList& = QStringList (), const QString& = QString ::null ); + KConfigSkeleton::ItemIntList* addItemIntList (const QString&, QValueList&, const QValueList& = IntList (), const QString& = QString ::null ); +%MethodCode +//returns a Python list of int +//takes name | (QString) | reference | (a Python list of int) | defaultValue | (a Python list of int = []) | key | (QString = QString::null) + if (a2 == NULL) *(QValueList *)a2 = QValueList(); + Py_BEGIN_ALLOW_THREADS + sipRes = sipCpp->addItemIntList (*a0, *a1, *a2, *a3); + Py_END_ALLOW_THREADS +%End + + KConfig* config () const; + SIP_PYLIST items () const [KConfigSkeletonItem::List ()]; +%MethodCode +//returns (a Python list of Items) + + KConfigSkeletonItem::List list; + + Py_BEGIN_ALLOW_THREADS + list = sipCpp->items (); + Py_END_ALLOW_THREADS + + int n = list.count (); + if (n > 0) + for (int i = 0; i < n; i++) + PyList_Append (sipRes, sipConvertFromInstance (&(list [i]), sipClass_KConfigSkeletonItem, NULL)); +%End + + bool isImmutable (const QString&); + KConfigSkeletonItem* findItem (const QString&); + bool useDefaults (bool); + +protected: + virtual void usrUseDefaults (bool); + virtual void usrSetDefaults (); + virtual void usrReadConfig (); + virtual void usrWriteConfig (); + +public: +//force + + class ItemString : KConfigSkeletonItem + { + + public: + + enum Type + { + Normal, + Password, + Path + }; + + ItemString (const QString&, const QString&, QString&, const QString& = QString ::fromLatin1 ("" ), KConfigSkeleton::ItemString::Type = KConfigSkeleton ::ItemString ::Normal ); + void setValue (const QString&); + QString& value (); + virtual void setDefaultValue (const QString&); + virtual void setDefault (); + void swapDefault (); + void writeConfig (KConfig*); + void readConfig (KConfig*); + void setProperty (const QVariant&); + QVariant property () const; + + }; // class ItemString + + +public: +//end + +public: +//force + + class ItemProperty : KConfigSkeletonItem + { + + public: + ItemProperty (const QString&, const QString&, QVariant, QVariant = 0) [(const QString&, const QString&, QVariant&, QVariant = 0)]; +%MethodCode +//takes group | (QString) | key | (QString) | reference | (QVariant) | defaultValue | (QVariant = 0) + Py_BEGIN_ALLOW_THREADS + sipCpp = (sipKConfigSkeleton_ItemProperty *) new KConfigSkeleton::ItemProperty (*a0, *a1, *a2, *a3); + Py_END_ALLOW_THREADS +%End + + void setValue (const QVariant&); + QVariant& value (); + virtual void setDefaultValue (const QVariant&); + virtual void setDefault (); + void swapDefault (); + void writeConfig (KConfig*); + void readConfig (KConfig*); + void setProperty (const QVariant&); + QVariant property () const; + + }; // class ItemProperty + + +public: +//end + +public: +//force + + class ItemBool : KConfigSkeletonItem + { + + public: + ItemBool (const QString&, const QString&, bool, bool = 1) [(const QString&, const QString&, bool&, bool = 1)]; +%MethodCode +//takes group | (QString) | key | (QString) | reference | (bool) | defaultValue | (bool = 1) + + class PyItemBool : public KConfigSkeleton::ItemBool + { + public: + PyItemBool(const QString &group, const QString &key, bool val, bool defaultValue = false) : + KConfigSkeleton::ItemBool(group, key, this->value, defaultValue) + { + value = val; + }; + + private: + bool value; + }; + + Py_BEGIN_ALLOW_THREADS + sipCpp = (sipKConfigSkeleton_ItemBool *) new PyItemBool (*a0, *a1, a2); + Py_END_ALLOW_THREADS +%End + + void setValue (const bool&); + bool value (); + virtual void setDefaultValue (const bool&); + virtual void setDefault (); + void swapDefault (); + void writeConfig (KConfig*); + void readConfig (KConfig*); + void setProperty (const QVariant&); + QVariant property () const; + + }; // class ItemBool + + +public: +//end + +public: +//force + + class ItemInt : KConfigSkeletonItem + { + + public: + ItemInt (const QString&, const QString&, int, int = 1) [(const QString&, const QString&, int&, int = 1)]; +%MethodCode +//takes group | (QString) | key | (QString) | reference | (int) | defaultValue | (int = 1) + + class PyItemInt : public KConfigSkeleton::ItemInt + { + public: + PyItemInt(const QString &group, const QString &key, int val, int defaultValue = 0) : + KConfigSkeleton::ItemInt(group, key, this->value, defaultValue) + { + value = val; + }; + + private: + int value; + }; + + Py_BEGIN_ALLOW_THREADS + sipCpp = (sipKConfigSkeleton_ItemInt *) new PyItemInt (*a0, *a1, a2); + Py_END_ALLOW_THREADS +%End + + void setValue (const int&); + int value (); + virtual void setDefaultValue (const int&); + virtual void setDefault (); + void swapDefault (); + void writeConfig (KConfig*); + void readConfig (KConfig*); + void setProperty (const QVariant&); + QVariant property () const; + QVariant minValue () const; + QVariant maxValue () const; + void setMinValue (int); + void setMaxValue (int); + + }; // class ItemInt + + +public: +//end + +public: +//force + + class ItemInt64 : KConfigSkeletonItem + { + + public: + ItemInt64 (const QString&, const QString&, longlong&, longlong = 0); +%MethodCode +//takes group | (QString) | key | (QString) | reference | (longlong) | defaultValue | (longlong = 0) + + class PyItemInt64 : public KConfigSkeleton::ItemInt64 + { + public: + PyItemInt64(const QString &group, const QString &key, Q_INT64 val, Q_INT64 defaultValue=0) : + KConfigSkeleton::ItemInt64(group, key, this->value, defaultValue) + { + value = val; + }; + + private: + Q_INT64 value; + }; + + Py_BEGIN_ALLOW_THREADS + sipCpp = (sipKConfigSkeleton_ItemInt64 *) new PyItemInt64 (*a0, *a1, *a2, *a3); + Py_END_ALLOW_THREADS +%End + + void setValue (const longlong&); + longlong& value (); + virtual void setDefaultValue (const longlong&); + virtual void setDefault (); + void swapDefault (); + void writeConfig (KConfig*); + void readConfig (KConfig*); + void setProperty (const QVariant&); + QVariant property () const; + QVariant minValue () const; + QVariant maxValue () const; + void setMinValue (longlong); + void setMaxValue (longlong); + + }; // class ItemInt64 + + +public: +//end + +public: +//force + + class ItemUInt : KConfigSkeletonItem + { + + public: + ItemUInt (const QString&, const QString&, uint, uint = 0) [(const QString&, const QString&, uint&, uint = 0)]; +%MethodCode +//takes group | (QString) | key | (QString) | reference | (uint) | defaultValue | (uint = 1) + + class PyItemUInt : public KConfigSkeleton::ItemUInt + { + public: + PyItemUInt(const QString &group, const QString &key, uint val, uint defaultValue = 0) : + KConfigSkeleton::ItemUInt(group, key, this->value, defaultValue) + { + value = val; + }; + + private: + uint value; + }; + + Py_BEGIN_ALLOW_THREADS + sipCpp = (sipKConfigSkeleton_ItemUInt *) new PyItemUInt (*a0, *a1, a2); + Py_END_ALLOW_THREADS +%End + + void setValue (const uint&); + uint value (); + virtual void setDefaultValue (const uint&); + virtual void setDefault (); + void swapDefault (); + void writeConfig (KConfig*); + void readConfig (KConfig*); + void setProperty (const QVariant&); + QVariant property () const; + QVariant minValue () const; + QVariant maxValue () const; + void setMinValue (uint); + void setMaxValue (uint); + + }; // class ItemUInt + + +public: + +public: + + class ItemLong : KConfigSkeletonItem + { + + public: + ItemLong (const QString&, const QString&, long&, long = 0) [(const QString&, const QString&, long&, long = 0)]; +%MethodCode +//takes group | (QString) | key | (QString) | reference | (long) | defaultValue | (long = 1) + + class PyItemLong : public KConfigSkeleton::ItemLong + { + public: + PyItemLong(const QString &group, const QString &key, long val, long defaultValue = 0) : + KConfigSkeleton::ItemLong(group, key, this->value, defaultValue) + { + value = val; + }; + + private: + long value; + }; + + Py_BEGIN_ALLOW_THREADS + sipCpp = (sipKConfigSkeleton_ItemLong *) new PyItemLong (*a0, *a1, a2); + Py_END_ALLOW_THREADS +%End + + void setValue (const long&); + long value (); + virtual void setDefaultValue (const long&); + virtual void setDefault (); + void swapDefault (); + void writeConfig (KConfig*); + void readConfig (KConfig*); + void setProperty (const QVariant&); + QVariant property () const; + QVariant minValue () const; + QVariant maxValue () const; + void setMinValue (long); + void setMaxValue (long); + + }; // class ItemLong + + +public: +//end + +public: +//force + + class ItemULong : KConfigSkeletonItem + { + + public: + ItemULong (const QString&, const QString&, ulong, ulong = 0) [(const QString&, const QString&, ulong&, ulong = 0)]; +%MethodCode +//takes group | (QString) | key | (QString) | reference | (ulong) | defaultValue | (ulong = 1) + + class PyItemULong : public KConfigSkeleton::ItemULong + { + public: + PyItemULong(const QString &group, const QString &key, ulong val, ulong defaultValue = 0) : + KConfigSkeleton::ItemULong(group, key, this->value, defaultValue) + { + value = val; + }; + + private: + ulong value; + }; + + Py_BEGIN_ALLOW_THREADS + sipCpp = (sipKConfigSkeleton_ItemULong *) new PyItemULong (*a0, *a1, a2); + Py_END_ALLOW_THREADS +%End + + void setValue (const ulong&); + ulong value (); + virtual void setDefaultValue (const ulong&); + virtual void setDefault (); + void swapDefault (); + void writeConfig (KConfig*); + void readConfig (KConfig*); + void setProperty (const QVariant&); + QVariant property () const; + QVariant minValue () const; + QVariant maxValue () const; + void setMinValue (ulong); + void setMaxValue (ulong); + + }; // class ItemULong + + +public: +//end + +public: +//force + + class ItemUInt64 : KConfigSkeletonItem + { + + public: + ItemUInt64 (const QString&, const QString&, ulonglong&, ulonglong = 0); +%MethodCode +//takes group | (QString) | key | (QString) | reference | (ulonglong) | defaultValue | (ulonglong = 0) + + class PyItemUInt64 : public KConfigSkeleton::ItemUInt64 + { + public: + PyItemUInt64(const QString &group, const QString &key, Q_UINT64 val, Q_UINT64 defaultValue = 0) : + KConfigSkeleton::ItemUInt64(group, key, this->value, defaultValue) + { + value = val; + }; + + private: + Q_UINT64 value; + }; + + Py_BEGIN_ALLOW_THREADS + sipCpp = (sipKConfigSkeleton_ItemUInt64 *) new PyItemUInt64 (*a0, *a1, *a2, *a3); + Py_END_ALLOW_THREADS +%End + + void setValue (const ulonglong&); + ulonglong value (); + virtual void setDefaultValue (const ulonglong&); + virtual void setDefault (); + void swapDefault (); + void writeConfig (KConfig*); + void readConfig (KConfig*); + void setProperty (const QVariant&); + QVariant property () const; + QVariant minValue () const; + QVariant maxValue () const; + void setMinValue (ulonglong); + void setMaxValue (ulonglong); + + }; // class ItemUInt64 + + +public: +//end + +public: +//force + + class ItemDouble : KConfigSkeletonItem + { + + public: + ItemDouble (const QString&, const QString&, double, double = 0) [(const QString&, const QString&, double&, double = 0)]; +%MethodCode +//takes group | (QString) | key | (QString) | reference | (double) | defaultValue | (double = 0) + class PyItemDouble : public KConfigSkeleton::ItemDouble + { + public: + PyItemDouble(const QString &group, const QString &key, double val, double defaultValue=0.0) : + KConfigSkeleton::ItemDouble(group, key, this->value, defaultValue) + { + value = val; + }; + + private: + double value; + }; + + Py_BEGIN_ALLOW_THREADS + sipCpp = (sipKConfigSkeleton_ItemDouble *) new PyItemDouble (*a0, *a1, a2, a3); + Py_END_ALLOW_THREADS +%End + + void setValue (const double&); + double value (); + virtual void setDefaultValue (const double&); + virtual void setDefault (); + void swapDefault (); + void writeConfig (KConfig*); + void readConfig (KConfig*); + void setProperty (const QVariant&); + QVariant property () const; + QVariant minValue () const; + QVariant maxValue () const; + void setMinValue (double); + void setMaxValue (double); + + }; // class ItemDouble + + +public: +//end + +public: +//force + + class ItemColor : KConfigSkeletonItem + { + + public: + ItemColor (const QString&, const QString&, QColor&, const QColor& = QColor (128 ,128 ,128 )); + void setValue (const QColor&); + QColor& value (); + virtual void setDefaultValue (const QColor&); + virtual void setDefault (); + void swapDefault (); + void writeConfig (KConfig*); + void readConfig (KConfig*); + void setProperty (const QVariant&); + QVariant property () const; + + }; // class ItemColor + + +public: +//end + +public: +//force + + class ItemFont : KConfigSkeletonItem + { + + public: + ItemFont (const QString&, const QString&, QFont&, const QFont& = KGlobalSettings ::generalFont ()); + void setValue (const QFont&); + QFont& value (); + virtual void setDefaultValue (const QFont&); + virtual void setDefault (); + void swapDefault (); + void writeConfig (KConfig*); + void readConfig (KConfig*); + void setProperty (const QVariant&); + QVariant property () const; + + }; // class ItemFont + + +public: +//end + +public: +//force + + class ItemRect : KConfigSkeletonItem + { + + public: + ItemRect (const QString&, const QString&, QRect&, const QRect& = QRect ()); + void setValue (const QRect&); + QRect& value (); + virtual void setDefaultValue (const QRect&); + virtual void setDefault (); + void swapDefault (); + void writeConfig (KConfig*); + void readConfig (KConfig*); + void setProperty (const QVariant&); + QVariant property () const; + + }; // class ItemRect + + +public: +//end + +public: +//force + + class ItemPoint : KConfigSkeletonItem + { + + public: + ItemPoint (const QString&, const QString&, QPoint&, const QPoint& = QPoint ()); + void setValue (const QPoint&); + QPoint& value (); + virtual void setDefaultValue (const QPoint&); + virtual void setDefault (); + void swapDefault (); + void writeConfig (KConfig*); + void readConfig (KConfig*); + void setProperty (const QVariant&); + QVariant property () const; + + }; // class ItemPoint + + +public: +//end + +public: +//force + + class ItemSize : KConfigSkeletonItem + { + + public: + ItemSize (const QString&, const QString&, QSize&, const QSize& = QSize ()); + void setValue (const QSize&); + QSize& value (); + virtual void setDefaultValue (const QSize&); + virtual void setDefault (); + void swapDefault (); + void writeConfig (KConfig*); + void readConfig (KConfig*); + void setProperty (const QVariant&); + QVariant property () const; + + }; // class ItemSize + + +public: +//end + +public: +//force + + class ItemDateTime : KConfigSkeletonItem + { + + public: + ItemDateTime (const QString&, const QString&, QDateTime&, const QDateTime& = QDateTime ()); + void setValue (const QDateTime&); + QDateTime& value (); + virtual void setDefaultValue (const QDateTime&); + virtual void setDefault (); + void swapDefault (); + void writeConfig (KConfig*); + void readConfig (KConfig*); + void setProperty (const QVariant&); + QVariant property () const; + + }; // class ItemDateTime + + +public: +//end + +public: +//force + + class ItemStringList : KConfigSkeletonItem + { + + public: + ItemStringList (const QString&, const QString&, QStringList&, const QStringList& = QStringList ()); + void setValue (const QStringList&); + QStringList& value (); + virtual void setDefaultValue (const QStringList&); + virtual void setDefault (); + void swapDefault (); + void writeConfig (KConfig*); + void readConfig (KConfig*); + void setProperty (const QVariant&); + QVariant property () const; + + }; // class ItemStringList + + +public: +//end + +public: +//force + + class ItemIntList : KConfigSkeletonItem + { + + public: + ItemIntList (const QString&, const QString&, QValueList&, const QValueList& = IntList ()); +%MethodCode +//takes group | (QString) | key | (QString) | reference | (a Python list of int) | defaultValue | (a Python list of int = 0) + if (a3 == NULL) *(QValueList *)a3 = QValueList(); + Py_BEGIN_ALLOW_THREADS + sipCpp = (sipKConfigSkeleton_ItemIntList *) new KConfigSkeleton::ItemIntList (*a0, *a1, *a2, *a3); + Py_END_ALLOW_THREADS +%End + + void setValue (const QValueList&); + QValueList& value (); + virtual void setDefaultValue (const QValueList&); + virtual void setDefault (); + void swapDefault (); + void writeConfig (KConfig*); + void readConfig (KConfig*); + void setProperty (const QVariant&); + QVariant property () const; + + }; // class ItemIntList + + +public: +//end + +}; // class KConfigSkeleton + +%End + + + +%If (KDE_3_2_0 - ) +%MappedType QValueList +{ +%TypeHeaderCode +#include +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New(0); + + // Create the list + PyObject *pylist; + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + QValueList *cpplist = (QValueList *)sipCpp; + PyObject *inst; + + // Get it. + QValueList::Iterator it; + for( it = cpplist->begin(); it != cpplist->end(); ++it ) + { + if (((inst = sipConvertFromNewType(new KConfigSkeleton::ItemEnum::Choice(*it), sipType_KConfigSkeleton_ItemEnum_Choice, NULL)) == NULL) + || PyList_Append (pylist, inst) < 0) + { + Py_DECREF (pylist); + return NULL; + } + } + + return pylist; +%End + + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QValueList *cpplist = new QValueList; + + PyObject *elem; + KConfigSkeleton::ItemEnum::Choice *cpp; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + cpp = (KConfigSkeleton::ItemEnum::Choice *)sipForceConvertToType(elem, sipType_KConfigSkeleton_ItemEnum_Choice, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + *sipIsErr = 1; + delete cpplist; + return 0; + } + + cpplist->append (*cpp); + } + + *sipCppPtr = cpplist; + + return 1; +%End +}; +%End + + diff --git a/sip/kdecore/kcrash.sip b/sip/kdecore/kcrash.sip new file mode 100644 index 0000000..cd8d672 --- /dev/null +++ b/sip/kdecore/kcrash.sip @@ -0,0 +1,51 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KCrash +{ +%TypeHeaderCode +#include +%End + + +public: + static void defaultCrashHandler (int); +//ig static void setCrashHandler (HandlerType = defaultCrashHandler ); +//ig static HandlerType crashHandler (); +//ig static void setEmergencySaveFunction (HandlerType = 0 ); +//ig static HandlerType emergencySaveFunction (); + +%If ( KDE_3_2_0 - ) + static void setSafer (bool); +%End + + static void setApplicationPath (QString); + static void setApplicationName (QString); + +protected: + +}; // class KCrash + diff --git a/sip/kdecore/kdcoppropertyproxy.sip b/sip/kdecore/kdcoppropertyproxy.sip new file mode 100644 index 0000000..081d031 --- /dev/null +++ b/sip/kdecore/kdcoppropertyproxy.sip @@ -0,0 +1,44 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KDCOPPropertyProxy +{ +%TypeHeaderCode +#include +%End + + +public: + KDCOPPropertyProxy (QObject*); + bool isPropertyRequest (const QCString&); + bool processPropertyRequest (const QCString&, const QByteArray&, QCString&, QByteArray&); + QValueList functions (); + static QValueList functions (QObject*); + static bool isPropertyRequest (const QCString&, QObject*); + static bool processPropertyRequest (const QCString&, const QByteArray&, QCString&, QByteArray&, QObject*); + +}; // class KDCOPPropertyProxy + diff --git a/sip/kdecore/kdebug.sip b/sip/kdecore/kdebug.sip new file mode 100644 index 0000000..6df8bb9 --- /dev/null +++ b/sip/kdecore/kdebug.sip @@ -0,0 +1,67 @@ +// +// Copyright 2003 Jim Bublitz +// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE_3_1_1 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class kdbgstream +{ +%TypeHeaderCode +#include +%End + + +public: + kdbgstream (uint, uint, bool = 1); + kdbgstream (const char*, uint, uint, bool = 1); + void flush (); +//ig kdbgstream& form (const char*, ...); + +}; // class kdbgstream + + +class kndbgstream +{ +%TypeHeaderCode +#include +%End + + +public: + kndbgstream (); + void flush (); +//ig kndbgstream& form (const char*, ...); + +}; // class kndbgstream + +//ig void kDebugFatal (const char*, ...); +//ig void kDebugFatal (ushort, const char*, ...); +kdbgstream& perror (kdbgstream&); +kdbgstream kdDebug (int = 0); +kdbgstream kdDebug (bool, int = 0); +kdbgstream kdWarning (int = 0); +kdbgstream kdWarning (bool, int = 0); +kdbgstream kdError (int = 0); +kdbgstream kdError (bool, int = 0); +kdbgstream kdFatal (int = 0); +kdbgstream kdFatal (bool, int = 0); diff --git a/sip/kdecore/kdecore-kde310.diff b/sip/kdecore/kdecore-kde310.diff new file mode 100644 index 0000000..d87c911 --- /dev/null +++ b/sip/kdecore/kdecore-kde310.diff @@ -0,0 +1 @@ ++ %Include kclipboard.sip diff --git a/sip/kdecore/kdecore-kde311.diff b/sip/kdecore/kdecore-kde311.diff new file mode 100644 index 0000000..d87c911 --- /dev/null +++ b/sip/kdecore/kdecore-kde311.diff @@ -0,0 +1 @@ ++ %Include kclipboard.sip diff --git a/sip/kdecore/kdecore-kde312.diff b/sip/kdecore/kdecore-kde312.diff new file mode 100644 index 0000000..d87c911 --- /dev/null +++ b/sip/kdecore/kdecore-kde312.diff @@ -0,0 +1 @@ ++ %Include kclipboard.sip diff --git a/sip/kdecore/kdecore-kde313.diff b/sip/kdecore/kdecore-kde313.diff new file mode 100644 index 0000000..d87c911 --- /dev/null +++ b/sip/kdecore/kdecore-kde313.diff @@ -0,0 +1 @@ ++ %Include kclipboard.sip diff --git a/sip/kdecore/kdecore-kde314.diff b/sip/kdecore/kdecore-kde314.diff new file mode 100644 index 0000000..13e7719 --- /dev/null +++ b/sip/kdecore/kdecore-kde314.diff @@ -0,0 +1,3 @@ ++ %Include kclipboard.sip ++ %Include kdeversion.sip ++ %Include kurldrag.sip diff --git a/sip/kdecore/kdecore-kde315.diff b/sip/kdecore/kdecore-kde315.diff new file mode 100644 index 0000000..13e7719 --- /dev/null +++ b/sip/kdecore/kdecore-kde315.diff @@ -0,0 +1,3 @@ ++ %Include kclipboard.sip ++ %Include kdeversion.sip ++ %Include kurldrag.sip diff --git a/sip/kdecore/kdecore-kde320.diff b/sip/kdecore/kdecore-kde320.diff new file mode 100644 index 0000000..8476e6c --- /dev/null +++ b/sip/kdecore/kdecore-kde320.diff @@ -0,0 +1,16 @@ ++ %Include kcalendarsystem.sip ++ %Include kcalendarsystemfactory.sip ++ %Include kclipboard.sip ++ %Include kconfigdialogmanager.sip ++ %Include kconfigskeleton.sip ++ %Include kdeversion.sip ++ %Include kidna.sip ++ %Include kmacroexpander.sip ++ %Include kmountpoint.sip ++ %Include kpty.sip ++ %Include kshell.sip ++ %Include kurldrag.sip ++ %Include kuser.sip + + + diff --git a/sip/kdecore/kdecore-kde321.diff b/sip/kdecore/kdecore-kde321.diff new file mode 100644 index 0000000..5dc526d --- /dev/null +++ b/sip/kdecore/kdecore-kde321.diff @@ -0,0 +1,12 @@ ++ %Include kcalendarsystem.sip ++ %Include kcalendarsystemfactory.sip ++ %Include kclipboard.sip ++ %Include kconfigdialogmanager.sip ++ %Include kconfigskeleton.sip ++ %Include kdeversion.sip ++ %Include kidna.sip ++ %Include kmacroexpander.sip ++ %Include kmountpoint.sip ++ %Include kpty.sip ++ %Include kshell.sip ++ %Include kurldrag.sip diff --git a/sip/kdecore/kdecore-kde322.diff b/sip/kdecore/kdecore-kde322.diff new file mode 100644 index 0000000..e0d64ad --- /dev/null +++ b/sip/kdecore/kdecore-kde322.diff @@ -0,0 +1,13 @@ ++ %Include fixx11h.sip ++ %Include kcalendarsystem.sip ++ %Include kcalendarsystemfactory.sip ++ %Include kclipboard.sip ++ %Include kconfigdialogmanager.sip ++ %Include kconfigskeleton.sip ++ %Include kdeversion.sip ++ %Include kidna.sip ++ %Include kmacroexpander.sip ++ %Include kmountpoint.sip ++ %Include kpty.sip ++ %Include kshell.sip ++ %Include kurldrag.sip diff --git a/sip/kdecore/kdecore-kde323.diff b/sip/kdecore/kdecore-kde323.diff new file mode 100644 index 0000000..e0d64ad --- /dev/null +++ b/sip/kdecore/kdecore-kde323.diff @@ -0,0 +1,13 @@ ++ %Include fixx11h.sip ++ %Include kcalendarsystem.sip ++ %Include kcalendarsystemfactory.sip ++ %Include kclipboard.sip ++ %Include kconfigdialogmanager.sip ++ %Include kconfigskeleton.sip ++ %Include kdeversion.sip ++ %Include kidna.sip ++ %Include kmacroexpander.sip ++ %Include kmountpoint.sip ++ %Include kpty.sip ++ %Include kshell.sip ++ %Include kurldrag.sip diff --git a/sip/kdecore/kdecore-kde330.diff b/sip/kdecore/kdecore-kde330.diff new file mode 100644 index 0000000..d202574 --- /dev/null +++ b/sip/kdecore/kdecore-kde330.diff @@ -0,0 +1,15 @@ ++ %Include fixx11h.sip ++ %Include kcalendarsystem.sip ++ %Include kcalendarsystemfactory.sip ++ %Include kclipboard.sip ++ %Include kconfigdialogmanager.sip ++ %Include kconfigskeleton.sip ++ %Include kdeversion.sip ++ %Include kidna.sip ++ %Include klockfile.sip ++ %Include kmacroexpander.sip ++ %Include kmanagerselection.sip ++ %Include kmountpoint.sip ++ %Include kpty.sip ++ %Include kshell.sip ++ %Include kurldrag.sip diff --git a/sip/kdecore/kdecore-kde331.diff b/sip/kdecore/kdecore-kde331.diff new file mode 100644 index 0000000..d202574 --- /dev/null +++ b/sip/kdecore/kdecore-kde331.diff @@ -0,0 +1,15 @@ ++ %Include fixx11h.sip ++ %Include kcalendarsystem.sip ++ %Include kcalendarsystemfactory.sip ++ %Include kclipboard.sip ++ %Include kconfigdialogmanager.sip ++ %Include kconfigskeleton.sip ++ %Include kdeversion.sip ++ %Include kidna.sip ++ %Include klockfile.sip ++ %Include kmacroexpander.sip ++ %Include kmanagerselection.sip ++ %Include kmountpoint.sip ++ %Include kpty.sip ++ %Include kshell.sip ++ %Include kurldrag.sip diff --git a/sip/kdecore/kdecore-kde332.diff b/sip/kdecore/kdecore-kde332.diff new file mode 100644 index 0000000..d202574 --- /dev/null +++ b/sip/kdecore/kdecore-kde332.diff @@ -0,0 +1,15 @@ ++ %Include fixx11h.sip ++ %Include kcalendarsystem.sip ++ %Include kcalendarsystemfactory.sip ++ %Include kclipboard.sip ++ %Include kconfigdialogmanager.sip ++ %Include kconfigskeleton.sip ++ %Include kdeversion.sip ++ %Include kidna.sip ++ %Include klockfile.sip ++ %Include kmacroexpander.sip ++ %Include kmanagerselection.sip ++ %Include kmountpoint.sip ++ %Include kpty.sip ++ %Include kshell.sip ++ %Include kurldrag.sip diff --git a/sip/kdecore/kdecore-kde340.diff b/sip/kdecore/kdecore-kde340.diff new file mode 100644 index 0000000..d202574 --- /dev/null +++ b/sip/kdecore/kdecore-kde340.diff @@ -0,0 +1,15 @@ ++ %Include fixx11h.sip ++ %Include kcalendarsystem.sip ++ %Include kcalendarsystemfactory.sip ++ %Include kclipboard.sip ++ %Include kconfigdialogmanager.sip ++ %Include kconfigskeleton.sip ++ %Include kdeversion.sip ++ %Include kidna.sip ++ %Include klockfile.sip ++ %Include kmacroexpander.sip ++ %Include kmanagerselection.sip ++ %Include kmountpoint.sip ++ %Include kpty.sip ++ %Include kshell.sip ++ %Include kurldrag.sip diff --git a/sip/kdecore/kdecore-kde341.diff b/sip/kdecore/kdecore-kde341.diff new file mode 100644 index 0000000..d202574 --- /dev/null +++ b/sip/kdecore/kdecore-kde341.diff @@ -0,0 +1,15 @@ ++ %Include fixx11h.sip ++ %Include kcalendarsystem.sip ++ %Include kcalendarsystemfactory.sip ++ %Include kclipboard.sip ++ %Include kconfigdialogmanager.sip ++ %Include kconfigskeleton.sip ++ %Include kdeversion.sip ++ %Include kidna.sip ++ %Include klockfile.sip ++ %Include kmacroexpander.sip ++ %Include kmanagerselection.sip ++ %Include kmountpoint.sip ++ %Include kpty.sip ++ %Include kshell.sip ++ %Include kurldrag.sip diff --git a/sip/kdecore/kdecore-kde342.diff b/sip/kdecore/kdecore-kde342.diff new file mode 100644 index 0000000..d202574 --- /dev/null +++ b/sip/kdecore/kdecore-kde342.diff @@ -0,0 +1,15 @@ ++ %Include fixx11h.sip ++ %Include kcalendarsystem.sip ++ %Include kcalendarsystemfactory.sip ++ %Include kclipboard.sip ++ %Include kconfigdialogmanager.sip ++ %Include kconfigskeleton.sip ++ %Include kdeversion.sip ++ %Include kidna.sip ++ %Include klockfile.sip ++ %Include kmacroexpander.sip ++ %Include kmanagerselection.sip ++ %Include kmountpoint.sip ++ %Include kpty.sip ++ %Include kshell.sip ++ %Include kurldrag.sip diff --git a/sip/kdecore/kdecore-kde343.diff b/sip/kdecore/kdecore-kde343.diff new file mode 100644 index 0000000..d202574 --- /dev/null +++ b/sip/kdecore/kdecore-kde343.diff @@ -0,0 +1,15 @@ ++ %Include fixx11h.sip ++ %Include kcalendarsystem.sip ++ %Include kcalendarsystemfactory.sip ++ %Include kclipboard.sip ++ %Include kconfigdialogmanager.sip ++ %Include kconfigskeleton.sip ++ %Include kdeversion.sip ++ %Include kidna.sip ++ %Include klockfile.sip ++ %Include kmacroexpander.sip ++ %Include kmanagerselection.sip ++ %Include kmountpoint.sip ++ %Include kpty.sip ++ %Include kshell.sip ++ %Include kurldrag.sip diff --git a/sip/kdecore/kdecore-kde350.diff b/sip/kdecore/kdecore-kde350.diff new file mode 100644 index 0000000..b8dba4c --- /dev/null +++ b/sip/kdecore/kdecore-kde350.diff @@ -0,0 +1,16 @@ ++ %Include fixx11h.sip ++ %Include kcalendarsystem.sip ++ %Include kcalendarsystemfactory.sip ++ %Include kclipboard.sip ++ %Include kconfigdialogmanager.sip ++ %Include kconfigskeleton.sip ++ %Include kdeversion.sip ++ %Include kidna.sip ++ %Include klockfile.sip ++ %Include kmacroexpander.sip ++ %Include kmanagerselection.sip ++ %Include kmountpoint.sip ++ %Include kpty.sip ++ %Include kshell.sip ++ %Include ktimezones.sip ++ %Include kurldrag.sip diff --git a/sip/kdecore/kdecore-kde351.diff b/sip/kdecore/kdecore-kde351.diff new file mode 100644 index 0000000..b8dba4c --- /dev/null +++ b/sip/kdecore/kdecore-kde351.diff @@ -0,0 +1,16 @@ ++ %Include fixx11h.sip ++ %Include kcalendarsystem.sip ++ %Include kcalendarsystemfactory.sip ++ %Include kclipboard.sip ++ %Include kconfigdialogmanager.sip ++ %Include kconfigskeleton.sip ++ %Include kdeversion.sip ++ %Include kidna.sip ++ %Include klockfile.sip ++ %Include kmacroexpander.sip ++ %Include kmanagerselection.sip ++ %Include kmountpoint.sip ++ %Include kpty.sip ++ %Include kshell.sip ++ %Include ktimezones.sip ++ %Include kurldrag.sip diff --git a/sip/kdecore/kdecore-kde352.diff b/sip/kdecore/kdecore-kde352.diff new file mode 100644 index 0000000..b8dba4c --- /dev/null +++ b/sip/kdecore/kdecore-kde352.diff @@ -0,0 +1,16 @@ ++ %Include fixx11h.sip ++ %Include kcalendarsystem.sip ++ %Include kcalendarsystemfactory.sip ++ %Include kclipboard.sip ++ %Include kconfigdialogmanager.sip ++ %Include kconfigskeleton.sip ++ %Include kdeversion.sip ++ %Include kidna.sip ++ %Include klockfile.sip ++ %Include kmacroexpander.sip ++ %Include kmanagerselection.sip ++ %Include kmountpoint.sip ++ %Include kpty.sip ++ %Include kshell.sip ++ %Include ktimezones.sip ++ %Include kurldrag.sip diff --git a/sip/kdecore/kdecore-kde353.diff b/sip/kdecore/kdecore-kde353.diff new file mode 100644 index 0000000..b8dba4c --- /dev/null +++ b/sip/kdecore/kdecore-kde353.diff @@ -0,0 +1,16 @@ ++ %Include fixx11h.sip ++ %Include kcalendarsystem.sip ++ %Include kcalendarsystemfactory.sip ++ %Include kclipboard.sip ++ %Include kconfigdialogmanager.sip ++ %Include kconfigskeleton.sip ++ %Include kdeversion.sip ++ %Include kidna.sip ++ %Include klockfile.sip ++ %Include kmacroexpander.sip ++ %Include kmanagerselection.sip ++ %Include kmountpoint.sip ++ %Include kpty.sip ++ %Include kshell.sip ++ %Include ktimezones.sip ++ %Include kurldrag.sip diff --git a/sip/kdecore/kdecoremod.sip.in b/sip/kdecore/kdecoremod.sip.in new file mode 100644 index 0000000..afe338f --- /dev/null +++ b/sip/kdecore/kdecoremod.sip.in @@ -0,0 +1,99 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE_3_5_2 + +%Copying + + This software is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License as + published by the Free Software Foundation; either version 2 of + the License, or (at your option) any later version. + + This software is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public + License along with this library; see the file COPYING. + If not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +%End + +%Module kdecore + +%Import qt/qtmod.sip +%Import dcopmod.sip + +%Include bytearray.sip +%Include kaboutdata.sip +%Include kaccel.sip +%Include kaccelaction.sip +%Include kaccelbase.sip +%Include kallocator.sip +%Include kapplication.sip +%Include kasyncio.sip +%Include kaudioplayer.sip +%Include kbufferedio.sip +%Include kcatalogue.sip +%Include kcharsets.sip +%Include kcmdlineargs.sip +%Include kcompletion.sip +%Include kconfig.sip +%Include kconfigbackend.sip +%Include kconfigbase.sip +%Include kconfigdata.sip +%Include kcrash.sip +%Include kdcoppropertyproxy.sip +%Include kdesktopfile.sip +%Include kglobal.sip +%Include kglobalaccel.sip +%Include kglobalsettings.sip +%Include kiconeffect.sip +%Include kiconloader.sip +%Include kicontheme.sip +%Include kinstance.sip +%Include kipc.sip +%Include kkeynative.sip +%Include kkeyserver_x11.sip +%Include klibloader.sip +%Include klocale.sip +%Include kmdcodec.sip +%Include kmimesourcefactory.sip +%Include kmultipledrag.sip +%Include knotifyclient.sip +%Include kpalette.sip +%Include kpixmapprovider.sip +%Include kprocctrl.sip +%Include kprocess.sip +%Include kprocio.sip +%Include krandomsequence.sip +%Include kregexp.sip +%Include krfcdate.sip +%Include krootprop.sip +%Include ksavefile.sip +%Include ksharedptr.sip +%Include kshortcut.sip +%Include kshortcutlist.sip +%Include ksimpleconfig.sip +%Include ksock.sip +%Include kstartupinfo.sip +%Include kstaticdeleter.sip +%Include kstdaccel.sip +%Include kstddirs.sip +%Include kstringhandler.sip +%Include ktempdir.sip +%Include ktempfile.sip +%Include kuniqueapplication.sip +%Include kurl.sip +%Include kwin.sip +%Include kwinmodule.sip +%Include netwm.sip +%Include netwm_def.sip +@mark@ diff --git a/sip/kdecore/kdesktopfile.sip b/sip/kdecore/kdesktopfile.sip new file mode 100644 index 0000000..07d1885 --- /dev/null +++ b/sip/kdecore/kdesktopfile.sip @@ -0,0 +1,85 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KDesktopFile : KConfig +{ +%TypeHeaderCode +#include +%End + + +public: + KDesktopFile (const QString&, bool = 0, const char* = "apps"); + static bool isDesktopFile (const QString&); + +%If ( KDE_3_1_0 - ) + static bool isAuthorizedDesktopFile (const QString&); + +%If ( KDE_3_2_0 - ) + static QString locateLocal (const QString&); +%End + +%End + + QString readType () const; + QString readIcon () const; + QString readName () const; + QString readComment () const; + QString readGenericName () const; + QString readPath () const; + QString readDevice () const; + QString readURL () const; + QStringList readActions () const; + void setActionGroup (const QString&); + bool hasActionGroup (const QString&) const; + bool hasLinkType () const; + bool hasApplicationType () const; + bool hasMimeTypeType () const; + bool hasDeviceType () const; + bool tryExec () const; + QString fileName () const; + QString resource () const; + +%If ( KDE_3_1_0 - ) + QString readDocPath () const; +%End + + QStringList sortOrder () const; + +%If ( KDE_3_2_0 - ) + KDesktopFile* copyTo (const QString&) const; +%End + + QString filename () const; + +private: + KDesktopFile (const KDesktopFile&); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KDesktopFile + diff --git a/sip/kdecore/kdesktopwidget.sip b/sip/kdecore/kdesktopwidget.sip new file mode 100644 index 0000000..06fff87 --- /dev/null +++ b/sip/kdecore/kdesktopwidget.sip @@ -0,0 +1,45 @@ +// +// Copyright 2003 Jim Bublitz +// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE_3_1_1 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KDesktopWidget : QWidget +{ +%TypeHeaderCode +#include +%End + + +public: + KDesktopWidget (); + bool isVirtualDesktop () const; + int numScreens () const; + int primaryScreen () const; + int screenNumber (QWidget* = 0) const; + int screenNumber (const QPoint&) const; + QWidget* screen (int = -1); + const QRect& screenGeometry (int = -1) const; + +}; // class KDesktopWidget + diff --git a/sip/kdecore/kdestyle.sip b/sip/kdecore/kdestyle.sip new file mode 100644 index 0000000..9aa4a84 --- /dev/null +++ b/sip/kdecore/kdestyle.sip @@ -0,0 +1,108 @@ +// +// Copyright 2003 Jim Bublitz +// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE_3_1_1 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KDEAniMenu : QObject +{ +%TypeHeaderCode +#include +%End + + +public: + KDEAniMenu (QPopupMenu*); + +protected: + void scrollIn (); + +protected slots: + void slotDestroyFake (); + void slotFinished (); + +}; // class KDEAniMenu + + +class KDEStyle : KStyle +{ +%TypeHeaderCode +#include +%End + + +public: + KDEStyle (); + virtual void polish (QWidget*); + virtual void unPolish (QWidget*); + virtual void polish (QPalette&); + void drawButton (QPainter*, int, int, int, int, const QColorGroup&, bool = 0, const QBrush* = 0); + void drawButtonMask (QPainter*, int, int, int, int); + void drawComboButtonMask (QPainter*, int, int, int, int); + QRect buttonRect (int, int, int, int); + void drawBevelButton (QPainter*, int, int, int, int, const QColorGroup&, bool = 0, const QBrush* = 0); + void drawPushButton (QPushButton*, QPainter*); + virtual void drawPushButtonLabel (QPushButton*, QPainter*); + void drawScrollBarControls (QPainter*, const QScrollBar*, int, uint, uint); + QStyle::ScrollControl scrollBarPointOver (const QScrollBar*, int, const QPoint&); + void scrollBarMetrics (const QScrollBar*, int&/Out/, int&/Out/, int&/Out/, int&/Out/); + QSize indicatorSize () const; + void drawIndicator (QPainter*, int, int, int, int, const QColorGroup&, int, bool = 0, bool = 1); + void drawIndicatorMask (QPainter*, int, int, int, int, int); + QSize exclusiveIndicatorSize () const; + void drawExclusiveIndicator (QPainter*, int, int, int, int, const QColorGroup&, bool, bool = 0, bool = 1); + void drawExclusiveIndicatorMask (QPainter*, int, int, int, int, bool); + void drawComboButton (QPainter*, int, int, int, int, const QColorGroup&, bool = 0, bool = 0, bool = 1, const QBrush* = 0); + QRect comboButtonRect (int, int, int, int); + QRect comboButtonFocusRect (int, int, int, int); + int sliderLength () const; + void drawArrow (QPainter*, Qt::ArrowType, bool, int, int, int, int, const QColorGroup&, bool = 1, const QBrush* = 0); + void drawSlider (QPainter*, int, int, int, int, const QColorGroup&, Orientation, bool, bool); + void drawSliderMask (QPainter*, int, int, int, int, Orientation, bool, bool); + void drawKToolBar (QPainter*, int, int, int, int, const QColorGroup&, KToolBarPos, QBrush* = 0); + void drawKBarHandle (QPainter*, int, int, int, int, const QColorGroup&, KToolBarPos, QBrush* = 0); + void drawKMenuBar (QPainter*, int, int, int, int, const QColorGroup&, bool, QBrush* = 0); + void drawKToolBarButton (QPainter*, int, int, int, int, const QColorGroup&, bool = 0, bool = 1, bool = 1, bool = 0, KToolButtonType = Icon, const QString& = QString::null, const QPixmap* = 0, QFont* = 0, QWidget* = 0); +//ig void drawKMenuItem (QPainter*, int, int, int, int, const QColorGroup&, bool, QMenuItem*, QBrush* = 0); +//ig void drawPopupMenuItem (QPainter*, bool, int, int, QMenuItem*, const QPalette&, bool, bool, int, int, int, int); +//ig int popupMenuItemHeight (bool, QMenuItem*, const QFontMetrics&); + void drawKProgressBlock (QPainter*, int, int, int, int, const QColorGroup&, QBrush*); + void drawFocusRect (QPainter*, const QRect&, const QColorGroup&, const QColor*, bool); + int defaultFrameWidth () const; + void polishPopupMenu (QPopupMenu*); + void drawTab (QPainter*, const QTabBar*, QTab*, bool); + void drawTabMask (QPainter*, const QTabBar*, QTab*, bool); + void tabbarMetrics (const QTabBar*, int&/Out/, int&/Out/, int&/Out/); + void drawSplitter (QPainter*, int, int, int, int, const QColorGroup&, Orientation); + int splitterWidth () const; + void drawPanel (QPainter*, int, int, int, int, const QColorGroup&, bool, int, const QBrush*); + void drawKickerAppletHandle (QPainter*, int, int, int, int, const QColorGroup&, QBrush*); + bool eventFilter (QObject*, QEvent*); + +protected: + void drawSBDeco (QPainter*, const QRect&, const QColorGroup&, bool); + void drawSBButton (QPainter*, const QRect&, const QColorGroup&, bool = 0); + void kColorBitmaps (QPainter*, const QColorGroup&, int, int, QBitmap* = 0, QBitmap* = 0, QBitmap* = 0, QBitmap* = 0, QBitmap* = 0, QBitmap* = 0); + +}; // class KDEStyle + diff --git a/sip/kdecore/kdeversion.sip b/sip/kdecore/kdeversion.sip new file mode 100644 index 0000000..821c6b6 --- /dev/null +++ b/sip/kdecore/kdeversion.sip @@ -0,0 +1,45 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +%ModuleHeaderCode +#include +%End + + +%If ( KDE_3_1_4 - ) +namespace KDE +{ + +%If ( KDE_3_2_0 - ) +uint version (); +%End + +uint versionMajor (); +uint versionMinor (); +uint versionRelease (); +const char* versionString (); +}; // namespace KDE + +%End diff --git a/sip/kdecore/kglobal.sip b/sip/kdecore/kglobal.sip new file mode 100644 index 0000000..f964752 --- /dev/null +++ b/sip/kdecore/kglobal.sip @@ -0,0 +1,65 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KGlobal +{ +%TypeHeaderCode +#include +%End + + +public: + static KInstance* instance (); + static KStandardDirs* dirs (); + static KConfig* config (); + +%If ( KDE_3_2_0 - ) + static KSharedConfig* sharedConfig (); +%End + + static KIconLoader* iconLoader (); + static KLocale* locale (); + static KCharsets* charsets (); + static const QString& staticQString (const char*); + static const QString& staticQString (const QString&); + static void registerStaticDeleter (KStaticDeleterBase*); + static void unregisterStaticDeleter (KStaticDeleterBase*); + static void deleteStaticDeleters (); +//ig KStringDict* _stringDict; +//ig KInstance* _instance; +//ig KLocale* _locale; +//ig KCharsets* _charsets; +//ig KStaticDeleterList* _staticDeleters; + static void setActiveInstance (KInstance*); + static KInstance* activeInstance (); +//ig KInstance* _activeInstance; + +}; // class KGlobal + + +%If ( KDE_3_4_0 - ) +int kasciistricmp (const char*, const char*); +%End diff --git a/sip/kdecore/kglobalaccel.sip b/sip/kdecore/kglobalaccel.sip new file mode 100644 index 0000000..81d2bf8 --- /dev/null +++ b/sip/kdecore/kglobalaccel.sip @@ -0,0 +1,87 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KGlobalAccel : QObject +{ +%TypeHeaderCode +#include +%End + + +public: + KGlobalAccel (QObject*, const char* = 0); + bool isEnabled () const; + void setEnabled (bool); + KAccelAction* insert (const QString&, const QString&, const QString&, const KShortcut&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), bool = 1, bool = 1); + +%If ( KDE_3_1_0 - ) + bool remove (const QString&); +%End + + KAccelAction* insert (const QString&, const QString&); + bool updateConnections (); + const KShortcut& shortcut (const QString&) const; + bool setShortcut (const QString&, const KShortcut&); + bool setSlot (const QString&, SIP_RXOBJ_CON, SIP_SLOT_CON ()); + +%If ( KDE_3_4_0 - ) + bool setActionEnabled (const QString&, bool); +%End + + +%If ( KDE_3_3_0 - ) + QString label (const QString&) const; +%End + + const QString& configGroup () const; + void setConfigGroup (const QString&); + bool readSettings (KConfigBase* = 0); + bool writeSettings (KConfigBase* = 0) const; + +%If ( KDE_3_1_0 - ) + bool writeSettings (KConfigBase*, bool) const; +%End + + static bool useFourModifierKeys (); + +%If ( KDE_3_5_0 - ) + static void blockShortcuts (bool); + void disableBlocking (bool); +%End + + +protected: +//igx virtual void virtual_hook (int, void*); + +public: + +%If ( - KDE_3_2_0 ) +//ig bool setEnabled (const QString&, bool); +%End + + +}; // class KGlobalAccel + diff --git a/sip/kdecore/kglobalsettings.sip b/sip/kdecore/kglobalsettings.sip new file mode 100644 index 0000000..46a2315 --- /dev/null +++ b/sip/kdecore/kglobalsettings.sip @@ -0,0 +1,157 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KGlobalSettings +{ +%TypeHeaderCode +#include +%End + + +public: + static int dndEventDelay (); + static bool singleClick (); + +%If ( KDE_3_1_0 - ) + + enum TearOffHandle + { + Disable, + ApplicationLevel, + Enable + }; + + static KGlobalSettings::TearOffHandle insertTearOffHandle (); +%End + + static bool changeCursorOverIcon (); + static bool visualActivate (); + static uint visualActivateSpeed (); + static int autoSelectDelay (); + static int contextMenuKey (); + static bool showContextMenusOnPress (); + + enum Completion + { + CompletionNone, + CompletionAuto, + CompletionMan, + CompletionShell, + CompletionPopup, + CompletionPopupAuto + }; + + static Completion completionMode (); + + class KMouseSettings + { + + public: + + enum + { + RightHanded, + LeftHanded + }; + + int handed; + + }; // class KMouseSettings + + +public: + static KGlobalSettings::KMouseSettings& mouseSettings (); + static QString desktopPath (); + static QString autostartPath (); + static QString trashPath (); + static QString documentPath (); + static QColor toolBarHighlightColor (); + static QColor inactiveTitleColor (); + static QColor inactiveTextColor (); + static QColor activeTitleColor (); + static QColor activeTextColor (); + static int contrast (); + +%If ( KDE_3_4_0 - ) + static QColor buttonBackground (); + static QColor buttonTextColor (); +%End + + static QColor baseColor (); + static QColor textColor (); + static QColor linkColor (); + static QColor visitedLinkColor (); + static QColor highlightedTextColor (); + static QColor highlightColor (); + static QColor alternateBackgroundColor (); + static QColor calculateAlternateBackgroundColor (const QColor&); + +%If ( KDE_3_4_0 - ) + static bool shadeSortColumn (); +%End + + static QFont generalFont (); + static QFont fixedFont (); + static QFont toolBarFont (); + static QFont menuFont (); + static QFont windowTitleFont (); + static QFont taskbarFont (); + +%If ( KDE_3_1_0 - ) + static QFont largeFont (const QString& = QString ::null ); +%End + + static bool isMultiHead (); + +%If ( KDE_3_1_0 - ) + static bool wheelMouseZooms (); + +%If ( KDE_3_2_0 - ) + static QRect splashScreenDesktopGeometry (); + static QRect desktopGeometry (const QPoint&); + static QRect desktopGeometry (QWidget*); + static bool showIconsOnPushButtons (); + static bool showFilePreview (const KURL&); + static bool opaqueResize (); + +%If ( KDE_3_3_0 - ) + static int buttonLayout (); +%End + +%End + +%End + + +public: + +%If ( - KDE_3_1_0 ) + static bool insertTearOffHandle (); +%End + + +}; // class KGlobalSettings + diff --git a/sip/kdecore/kiconeffect.sip b/sip/kdecore/kiconeffect.sip new file mode 100644 index 0000000..03e1b37 --- /dev/null +++ b/sip/kdecore/kiconeffect.sip @@ -0,0 +1,102 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KIconEffect +{ +%TypeHeaderCode +#include +%End + + +public: + KIconEffect (); + +%If ( KDE_3_4_0 - ) + + enum Effects + { + NoEffect, + ToGray, + Colorize, + ToGamma, + DeSaturate, + ToMonochrome, + LastEffect + }; + +%End + + void init (); + bool hasEffect (int, int) const; + QString fingerprint (int, int); + QImage apply (QImage, int, int); + QImage apply (QImage, int, float, const QColor, bool); + +%If ( KDE_3_4_0 - ) + QImage apply (QImage, int, float, const QColor, const QColor, bool) const; +%End + + QPixmap apply (QPixmap, int, int); + QPixmap apply (QPixmap, int, float, const QColor, bool); + +%If ( KDE_3_4_0 - ) + QPixmap apply (QPixmap, int, float, const QColor, const QColor, bool) const; +%End + + QImage doublePixels (QImage); + static void visualActivate (QWidget*, QRect); + static void toGray (QImage&, float); + static void colorize (QImage&, const QColor&, float); + +%If ( KDE_3_4_0 - ) + static void toMonochrome (QImage&, const QColor&, const QColor&, float); +%End + + static void deSaturate (QImage&, float); + static void toGamma (QImage&, float); + static void semiTransparent (QImage&); + static void semiTransparent (QPixmap&); + static void overlay (QImage&, QImage&); + +public: + +%If ( - KDE_3_4_0 ) + + enum Effects + { + NoEffect, + ToGray, + Colorize, + ToGamma, + DeSaturate, + LastEffect + }; + +%End + + +}; // class KIconEffect + diff --git a/sip/kdecore/kiconloader.sip b/sip/kdecore/kiconloader.sip new file mode 100644 index 0000000..601db57 --- /dev/null +++ b/sip/kdecore/kiconloader.sip @@ -0,0 +1,97 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KIconLoader +{ +%TypeHeaderCode +#include +%End + + +public: + KIconLoader (const QString& = QString ::null , KStandardDirs* = 0); + void addAppDir (const QString&); + QPixmap loadIcon (const QString&, KIcon::Group, int = 0, int = KIcon ::DefaultState , QString* = 0, bool = 0) const; + +%If ( KDE_3_5_0 - ) + QIconSet loadIconSet (const QString&, KIcon::Group, int, bool, bool); +%End + + +%If ( KDE_3_1_0 - ) + QIconSet loadIconSet (const QString&, KIcon::Group, int, bool); +%End + + QIconSet loadIconSet (const QString&, KIcon::Group, int = 0); + QString iconPath (const QString&, int, bool = 0) const; + QMovie loadMovie (const QString&, KIcon::Group, int = 0) const; + QString moviePath (const QString&, KIcon::Group, int = 0) const; + QStringList loadAnimated (const QString&, KIcon::Group, int = 0) const; + QStringList queryIcons (int, KIcon::Context = KIcon ::Any ) const; + QStringList queryIconsByContext (int, KIcon::Context = KIcon ::Any ) const; + +%If ( KDE_3_1_0 - ) + QStringList queryIconsByDir (const QString&) const; +%End + + int currentSize (KIcon::Group) const; + KIconTheme* theme (); + KIconEffect* iconEffect (); + void reconfigure (const QString&, KStandardDirs*); + static QPixmap unknown (); + bool alphaBlending (KIcon::Group) const; + +%If ( KDE_3_1_0 - ) + void addExtraDesktopThemes (); + bool extraDesktopThemesAdded () const; + void enableDelayedIconSetLoading (bool); + bool isDelayedIconSetLoadingEnabled () const; +%End + + +}; // class KIconLoader + + +%ModuleCode +#include +%End + +QPixmap DesktopIcon (const QString&, int = 0, int = KIcon ::DefaultState , KInstance* = KGlobal ::instance ()); +QPixmap DesktopIcon (const QString&, KInstance*); +QIconSet DesktopIconSet (const QString&, int = 0, KInstance* = KGlobal ::instance ()); +QPixmap BarIcon (const QString&, int = 0, int = KIcon ::DefaultState , KInstance* = KGlobal ::instance ()); +QPixmap BarIcon (const QString&, KInstance*); +QIconSet BarIconSet (const QString&, int = 0, KInstance* = KGlobal ::instance ()); +QPixmap SmallIcon (const QString&, int = 0, int = KIcon ::DefaultState , KInstance* = KGlobal ::instance ()); +QPixmap SmallIcon (const QString&, KInstance*); +QIconSet SmallIconSet (const QString&, int = 0, KInstance* = KGlobal ::instance ()); +QPixmap MainBarIcon (const QString&, int = 0, int = KIcon ::DefaultState , KInstance* = KGlobal ::instance ()); +QPixmap MainBarIcon (const QString&, KInstance*); +QIconSet MainBarIconSet (const QString&, int = 0, KInstance* = KGlobal ::instance ()); +QPixmap UserIcon (const QString&, int = KIcon ::DefaultState , KInstance* = KGlobal ::instance ()); +QPixmap UserIcon (const QString&, KInstance*); +QIconSet UserIconSet (const QString&, KInstance* = KGlobal ::instance ()); +int IconSize (KIcon::Group, KInstance* = KGlobal ::instance ()); diff --git a/sip/kdecore/kicontheme.sip b/sip/kdecore/kicontheme.sip new file mode 100644 index 0000000..26a8f88 --- /dev/null +++ b/sip/kdecore/kicontheme.sip @@ -0,0 +1,249 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KIcon +{ +%TypeHeaderCode +#include +%End + + +public: + KIcon (); + bool isValid () const; + + enum Context + { + Any, + Action, + Application, + Device, + FileSystem, + MimeType + }; + + + enum Type + { + Fixed, + Scalable, + Threshold + }; + + + enum MatchType + { + MatchExact, + MatchBest + }; + + +%If ( KDE_3_2_0 - ) + + enum Group + { + NoGroup, + Desktop, + FirstGroup, + Toolbar, + MainToolbar, + Small, + Panel, + LastGroup, + User + }; + + +%If ( KDE_3_3_1 - ) + + enum StdSizes + { + SizeSmall, + SizeSmallMedium, + SizeMedium, + SizeLarge, + SizeHuge, + SizeEnormous + }; + +%End + +%End + + + enum States + { + DefaultState, + ActiveState, + DisabledState, + LastState + }; + + +%If ( KDE_3_1_0 - ) + + enum Overlays + { + LockOverlay, + ZipOverlay, + LinkOverlay, + HiddenOverlay, + ShareOverlay, + OverlayMask + }; + +%End + + int size; + Context context; + Type type; + int threshold; + QString path; + +public: + +%If ( KDE_3_3_0 - KDE_3_3_1 ) + + enum StdSizes + { + SizeSmall, + SizeSmallMedium, + SizeMedium, + SizeLarge, + SizeHuge + }; + +%End + + +public: + +%If ( KDE_3_2_0 - KDE_3_3_0 ) + + enum StdSizes + { + SizeSmall, + SizeMedium, + SizeLarge, + SizeHuge + }; + +%End + + +public: + +%If ( - KDE_3_2_0 ) + + enum Group + { + NoGroup, + Desktop, + FirstGroup, + Toolbar, + MainToolbar, + Small, + Panel, + LastGroup, + User + }; + + + enum StdSizes + { + SizeSmall, + SizeMedium, + SizeLarge + }; + +%End + + +public: + +%If ( - KDE_3_1_0 ) + + enum Overlays + { + LockOverlay, + ZipOverlay, + LinkOverlay, + HiddenOverlay, + OverlayMask + }; + +%End + + +}; // class KIcon + + +class KIconTheme +{ +%TypeHeaderCode +#include +%End + + +public: + KIconTheme (const QString&, const QString& = QString ::null ); + QString name () const; + QString description () const; + QString example () const; + QString screenshot () const; + QString linkOverlay () const; + QString zipOverlay () const; + QString lockOverlay () const; + +%If ( KDE_3_1_0 - ) + QString shareOverlay () const; +%End + + QString dir () const; + QStringList inherits () const; + bool isValid () const; + +%If ( KDE_3_1_0 - ) + bool isHidden () const; +%End + + int depth () const; + int defaultSize (KIcon::Group) const; + QValueList querySizes (KIcon::Group) const; + QStringList queryIcons (int, KIcon::Context = KIcon ::Any ) const; + QStringList queryIconsByContext (int, KIcon::Context = KIcon ::Any ) const; + KIcon iconPath (const QString&, int, KIcon::MatchType) const; + static QStringList list (); + static QString current (); + static void reconfigure (); + +%If ( KDE_3_1_0 - ) + static QString defaultThemeName (); +%End + + +}; // class KIconTheme + diff --git a/sip/kdecore/kidna.sip b/sip/kdecore/kidna.sip new file mode 100644 index 0000000..12eda37 --- /dev/null +++ b/sip/kdecore/kidna.sip @@ -0,0 +1,40 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +%ModuleHeaderCode +#include +%End + + +%If ( KDE_3_2_0 - ) +namespace KIDNA +{ +QCString toAsciiCString (const QString&); +QString toAscii (const QString&); +QString toUnicode (const QString&); +}; // namespace KIDNA + +%End + diff --git a/sip/kdecore/kinstance.sip b/sip/kdecore/kinstance.sip new file mode 100644 index 0000000..ddbbe13 --- /dev/null +++ b/sip/kdecore/kinstance.sip @@ -0,0 +1,75 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KInstance +{ +%TypeHeaderCode +#include +%End + + +public: + KInstance (const QCString&); + KInstance (const KAboutData*); + KInstance (KInstance*); + KStandardDirs* dirs () const; + KConfig* config () const; + +%If ( KDE_3_2_0 - ) + KSharedConfig* sharedConfig () const; +%End + + KIconLoader* iconLoader () const; + void newIconLoader () const; + const KAboutData* aboutData () const; + QCString instanceName () const; + KMimeSourceFactory* mimeSourceFactory () const; + +protected: +//ig KInstance (const KInstance&); + +%If ( KDE_3_1_0 - ) + void setConfigName (const QString&); +%End + + +protected: +//igx virtual void virtual_hook (int, void*); + +public: + +%If ( - KDE_3_2_0 ) +//ig KCharsets* charsets () const; +%End + +//force + +private: + KInstance (const KInstance&); +//end + +}; // class KInstance + diff --git a/sip/kdecore/kipc.sip b/sip/kdecore/kipc.sip new file mode 100644 index 0000000..c8625ad --- /dev/null +++ b/sip/kdecore/kipc.sip @@ -0,0 +1,98 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KIPC +{ +%TypeHeaderCode +#include +#include +%End + + +public: + +%If ( KDE_3_5_0 - ) + + enum Message + { + PaletteChanged, + FontChanged, + StyleChanged, + BackgroundChanged, + SettingsChanged, + IconChanged, + ToolbarStyleChanged, + ClipboardConfigChanged, + BlockShortcuts, + UserMessage + }; + +%End + + static void sendMessage (KIPC::Message, WId, int = 0); + static void sendMessageAll (KIPC::Message, int = 0); + +public: + +%If ( KDE_3_1_0 - KDE_3_5_0 ) + + enum Message + { + PaletteChanged, + FontChanged, + StyleChanged, + BackgroundChanged, + SettingsChanged, + IconChanged, + ToolbarStyleChanged, + ClipboardConfigChanged, + UserMessage + }; + +%End + + +public: + +%If ( - KDE_3_1_0 ) + + enum Message + { + PaletteChanged, + FontChanged, + StyleChanged, + BackgroundChanged, + SettingsChanged, + IconChanged, + ToolbarStyleChanged, + UserMessage + }; + +%End + + +}; // class KIPC + diff --git a/sip/kdecore/kkeynative.sip b/sip/kdecore/kkeynative.sip new file mode 100644 index 0000000..64aecfa --- /dev/null +++ b/sip/kdecore/kkeynative.sip @@ -0,0 +1,90 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KKeyNative +{ +%TypeHeaderCode +#include +%End + + +public: + KKeyNative (); +//ig KKeyNative (const XEvent*); + KKeyNative (const KKey&); + KKeyNative (const KKeyNative&); + KKeyNative (uint, uint, uint); + void clear (); +//ig bool init (const XEvent*); + bool init (const KKey&); + bool init (const KKeyNative&); + int keyCodeQt () const; + KKey key () const; + +%If ( KDE_3_1_4 - ) +//ig operator KKey () const; +%End + + uint code () const; + uint mod () const; + uint sym () const; + bool isNull () const; + int compare (const KKeyNative&) const; + +%If ( KDE_3_1_4 - ) + bool operator == (const KKeyNative&) const; + bool operator != (const KKeyNative&) const; + bool operator < (const KKeyNative&) const; +%End + + static KKeyNative& null (); + static bool keyboardHasWinKey (); + static uint modX (KKey::ModFlag); + static uint accelModMaskX (); + +%If ( KDE_3_1_3 - ) + static uint modXNumLock (); + static uint modXLock (); + static uint modXScrollLock (); + +%If ( KDE_3_4_3 - ) + static uint modXModeSwitch (); +%End + +%End + + +}; // class KKeyNative + + +%If ( KDE_3_1_4 - ) +//ig typedef union _XEvent XEvent; +%End + + +%If ( - KDE_3_1_4 ) +//ig typedef _XEvent XEvent; +%End diff --git a/sip/kdecore/kkeyserver_x11.sip b/sip/kdecore/kkeyserver_x11.sip new file mode 100644 index 0000000..2744c5b --- /dev/null +++ b/sip/kdecore/kkeyserver_x11.sip @@ -0,0 +1,187 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +%ModuleHeaderCode +#include +%End + +namespace KKeyServer +{ + +%If ( KDE_3_1_0 - ) + +enum ExtraModFlag +{ + MODE_SWITCH +}; + +%End + + +class Sym +{ +%TypeHeaderCode +#include +%End + + +public: + uint m_sym; + Sym (); + Sym (uint); + Sym (const QString&); + bool initQt (int); + bool init (const QString&); + int qt () const; + QString toStringInternal () const; + QString toString () const; + uint getModsRequired () const; + uint getSymVariation () const; + +%If ( KDE_3_1_4 - ) +//ig operator uint () const; +%End + + +}; // class Sym + + +class Key +{ +%TypeHeaderCode +#include +%End + + +public: + + enum + { + CODE_FOR_QT + }; + + uint m_code; + uint m_mod; + uint m_sym; + bool init (const KKey&, bool); + bool isNative () const; + uint code () const; + uint mod () const; + uint sym () const; + int keyCodeQt () const; + void setKeycodeQt (int); + int compare (const KKeyServer::Key&) const; + +%If ( KDE_3_1_4 - ) + bool operator == (const KKeyServer::Key&) const; + bool operator < (const KKeyServer::Key&) const; +%End + + KKey key () const; + +}; // class Key + + +class Variations +{ +%TypeHeaderCode +#include +%End + + +public: + + enum + { + MAX_VARIATIONS + }; + +//ig KKeyServer::Key m_rgkey[MAX_VARIATIONS]; + uint m_nVariations; + Variations (); + void init (const KKey&, bool); + uint count () const; + const KKeyServer::Key& key (uint) const; + +}; // class Variations + +bool initializeMods (); +uint modX (KKey::ModFlag); +bool keyboardHasWinKey (); +uint modXShift (); +uint modXLock (); +uint modXCtrl (); +uint modXAlt (); +uint modXNumLock (); +uint modXWin (); +uint modXScrollLock (); + +%If ( KDE_3_4_2 - ) +uint modXModeSwitch (); +%End + +uint accelModMaskX (); +//ig bool keyQtToSym (int, uint&); +//ig bool keyQtToMod (int, uint&); +//ig bool symToKeyQt (uint, int&); +//ig bool modToModQt (uint, int&); +//ig bool modToModX (uint, uint&); +//ig bool modXToModQt (uint, int&); + +%If ( KDE_3_4_2 - ) +//ig int qtButtonStateToMod (Qt::ButtonState); +%End + +//ig bool modXToMod (uint, uint&); +//ig bool codeXToSym (uchar, uint, uint&); +//ig QString modToStringInternal (uint); +//ig QString modToStringUser (uint); + +%If ( KDE_3_5_0 - ) +uint stringUserToMod (const QString&); +%End + +//ig bool stringToSymMod (const QString&, uint&, uint&); +//ig void keyQtToKeyX (uint, uchar*, uint*, uint*); + +%If ( - KDE_3_2_0 ) + +class CodeMod +{ +%TypeHeaderCode +#include +%End + + +public: + int code; + int mod; + +}; // class CodeMod + +%End + +}; // namespace KKeyServer + diff --git a/sip/kdecore/klibloader.sip b/sip/kdecore/klibloader.sip new file mode 100644 index 0000000..1c38daa --- /dev/null +++ b/sip/kdecore/klibloader.sip @@ -0,0 +1,103 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KLibrary : QObject +{ +%TypeHeaderCode +#include +%End + + +public: +//ig KLibrary (const QString&, const QString&, void*); + QString name () const; + QString fileName () const; + KLibFactory* factory (); + void* symbol (const char*); + +%If ( KDE_3_1_0 - ) + bool hasSymbol (const char*) const; +%End + + void unload () const; + +private: + ~KLibrary (); +//force + KLibrary (const QString&, const QString&, void*); +//end + +}; // class KLibrary + + +class KLibLoader : QObject +{ +%TypeHeaderCode +#include +%End + + +public: + KLibFactory* factory (const char*); + virtual KLibrary* library (const char*); + KLibrary* globalLibrary (const char*); + QString lastErrorMessage () const; + virtual void unloadLibrary (const char*); + static KLibLoader* self (); + static void cleanUp (); + static QString findLibrary (const char*, const KInstance* = KGlobal ::instance ()); + +protected: + KLibLoader (QObject* /TransferThis/ = 0, const char* = 0); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KLibLoader + + +class KLibFactory : QObject +{ +%TypeHeaderCode +#include +%End + + +public: + KLibFactory (QObject* /TransferThis/ = 0, const char* = 0); + QObject* create (QObject* /Transfer/ = 0, const char* = 0, const char* = "QObject", const QStringList& = QStringList ()); + +signals: + void objectCreated (QObject*); + +protected: + virtual QObject* createObject (QObject* /Transfer/ = 0, const char* = 0, const char* = "QObject", const QStringList& = QStringList ()) /Factory/; + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KLibFactory + diff --git a/sip/kdecore/klocale.sip b/sip/kdecore/klocale.sip new file mode 100644 index 0000000..740d157 --- /dev/null +++ b/sip/kdecore/klocale.sip @@ -0,0 +1,243 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KLocale +{ +%TypeHeaderCode +#include +%End + + +public: + KLocale (const QString&, KConfig* = 0); +//ig KLocale (const KLocale&); + QString translate (const char*) const; + QString translate (const char*, const char*) const; + QString translate (const char*, const char*, ulong) const; + bool setEncoding (int); + bool setLanguage (const QString&); + bool setLanguage (const QStringList&); + bool setCountry (const QString&); + + enum SignPosition + { + ParensAround, + BeforeQuantityMoney, + AfterQuantityMoney, + BeforeMoney, + AfterMoney + }; + + QString decimalSymbol () const; + QString thousandsSeparator () const; + QString currencySymbol () const; + QString monetaryDecimalSymbol () const; + QString monetaryThousandsSeparator () const; + QString positiveSign () const; + QString negativeSign () const; + int fracDigits () const; + bool positivePrefixCurrencySymbol () const; + bool negativePrefixCurrencySymbol () const; + SignPosition positiveMonetarySignPosition () const; + SignPosition negativeMonetarySignPosition () const; + QString formatMoney (double, const QString& = QString ::null , int = -1) const; + QString formatNumber (double, int = -1) const; + QString formatNumber (const QString&) const; + +%If ( KDE_3_5_0 - ) + QString formatNumber (const QString&, bool, int) const; +%End + + +%If ( KDE_3_2_0 - ) + QString formatLong (long) const; +%End + + +%If ( KDE_3_1_0 - ) + bool nounDeclension () const; +%End + + QString formatDate (const QDate&, bool = 0) const; + +%If ( KDE_3_1_0 - ) + bool dateMonthNamePossessive () const; + +%If ( KDE_3_3_0 - ) + QString formatTime (const QTime&, bool, bool) const; +%End + +%End + + QString formatTime (const QTime&, bool = 0) const; + bool use12Clock () const; + bool weekStartsMonday () const; + +%If ( KDE_3_1_0 - ) + int weekStartDay () const; +%End + + QString monthName (int, bool = 0) const; + +%If ( KDE_3_1_0 - ) + QString monthNamePossessive (int, bool = 0) const; +%End + + QString weekDayName (int, bool = 0) const; + +%If ( KDE_3_2_0 - ) + const KCalendarSystem* calendar () const; + QString calendarType () const; + void setCalendar (const QString&); +%End + + QString formatDateTime (const QDateTime&, bool, bool = 0) const; + double readMoney (const QString&, bool* = 0) const; + double readNumber (const QString&, bool* = 0) const; + QDate readDate (const QString&, bool* = 0) const; + QDate readDate (const QString&, const QString&, bool* = 0) const; + +%If ( KDE_3_2_0 - ) + + enum ReadDateFlags + { + NormalFormat, + ShortFormat + }; + + QDate readDate (const QString&, KLocale::ReadDateFlags, bool* = 0) const; +%End + + QTime readTime (const QString&, bool* = 0) const; + +%If ( KDE_3_2_0 - ) + + enum ReadTimeFlags + { + WithSeconds, + WithoutSeconds + }; + + QTime readTime (const QString&, KLocale::ReadTimeFlags, bool* = 0) const; +%End + + QString language () const; + QString country () const; + QStringList languagesTwoAlpha () const; + QStringList languageList () const; + const char* encoding () const; + int encodingMib () const; + QTextCodec* codecForEncoding () const; + +%If ( KDE_3_2_0 - ) + int fileEncodingMib () const; +%End + + void setDateFormat (const QString&); + void setDateFormatShort (const QString&); + +%If ( KDE_3_1_0 - ) + void setDateMonthNamePossessive (bool); +%End + + void setTimeFormat (const QString&); + void setWeekStartsMonday (bool); + +%If ( KDE_3_1_0 - ) + void setWeekStartDay (int); +%End + + QString dateFormat () const; + QString dateFormatShort () const; + QString timeFormat () const; + void setDecimalSymbol (const QString&); + void setThousandsSeparator (const QString&); + void setPositiveSign (const QString&); + void setNegativeSign (const QString&); + void setPositiveMonetarySignPosition (KLocale::SignPosition); + void setNegativeMonetarySignPosition (KLocale::SignPosition); + void setPositivePrefixCurrencySymbol (bool); + void setNegativePrefixCurrencySymbol (bool); + void setFracDigits (int); + void setMonetaryThousandsSeparator (const QString&); + void setMonetaryDecimalSymbol (const QString&); + void setCurrencySymbol (const QString&); + int pageSize () const; + void setPageSize (int); + + enum MeasureSystem + { + Metric, + Imperial + }; + + KLocale::MeasureSystem measureSystem () const; + void setMeasureSystem (KLocale::MeasureSystem); + void insertCatalogue (const QString&); + void removeCatalogue (const QString&); + void setActiveCatalogue (const QString&); + QString translateQt (const char*, const char*, const char*) const; + +%If ( KDE_3_1_0 - ) + QStringList allLanguagesTwoAlpha () const; + QString twoAlphaToLanguageName (const QString&) const; + QStringList allCountriesTwoAlpha () const; + QString twoAlphaToCountryName (const QString&) const; +%End + + static void splitLocale (const QString&, QString&, QString&, QString&); + static void setMainCatalogue (const char*); + static QString langLookup (const QString&, const char* = "html"); + static QString defaultLanguage (); + static QString defaultCountry (); + +%If ( KDE_3_0_1 - ) + static QString _initLanguage (KConfigBase*); +%End + + QString formatMoney (const QString&) const; + QString languages () const; +//ig bool setCharset (const QString&); +//ig QString charset () const; + +protected: +//ig static void initInstance (); +//force + +private: + KLocale (const KLocale&); +//end + +}; // class KLocale + + +%ModuleCode +#include +%End + +QString i18n (const char*); +QString i18n (const char*, const char*); +QString i18n (const char*, const char*, ulong); diff --git a/sip/kdecore/klockfile.sip b/sip/kdecore/klockfile.sip new file mode 100644 index 0000000..9da9006 --- /dev/null +++ b/sip/kdecore/klockfile.sip @@ -0,0 +1,112 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_3_0 - ) + +class KLockFile : KShared +{ +%TypeHeaderCode +#include +%End + + +public: + typedef KSharedPtr Ptr; + KLockFile (const QString&); + + enum LockResult + { + LockOK, + LockFail, + LockError, + LockStale + }; + + + enum LockOptions + { + LockNoBlock, + LockForce + }; + + KLockFile::LockResult lock (int = 0); + bool isLocked () const; + void unlock (); + int staleTime () const; + void setStaleTime (int); + bool getLockInfo (int& /Out/, QString& /Out/, QString& /Out/); + +}; // class KLockFile + +%End + + + +%If (KDE_3_3_0 - ) +%MappedType KLockFile::Ptr +//converts KLockFile +{ +%TypeHeaderCode +#include +#include +%End + +%ConvertFromTypeCode + // Convert to a Python instance + + if (!sipCpp) + return NULL; + + KSharedPtr *cPtr = new KSharedPtr (*(KSharedPtr *)sipCpp); + KLockFile *cpp = cPtr->data (); + PyObject *obj = sipConvertFromInstance (cpp, sipClass_KLockFile, sipTransferObj); + + return obj; +%End + +%ConvertToTypeCode + // Convert a Python instance to a Ptr on the heap. + + if (sipIsErr == NULL) + return PyInstance_Check(sipPy); + + int iserr = 0; + KLockFile *cpp = (KLockFile *)sipForceConvertToType(sipPy, sipType_KLockFile, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + *sipIsErr = 1; + return 0; + } + + *sipCppPtr = new KSharedPtr (cpp); + + return 1; +%End +}; +%End + + diff --git a/sip/kdecore/kmacroexpander.sip b/sip/kdecore/kmacroexpander.sip new file mode 100644 index 0000000..015cac8 --- /dev/null +++ b/sip/kdecore/kmacroexpander.sip @@ -0,0 +1,384 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +%ModuleHeaderCode +#include +%End + + +%If ( KDE_3_2_0 - ) + +class KMacroExpanderBase +{ +%TypeHeaderCode +#include +%End + + +public: + KMacroExpanderBase (QChar = '%'); + void expandMacros (QString&); + bool expandMacrosShellQuote (QString&, uint& /In, Out/); + bool expandMacrosShellQuote (QString&); + void setEscapeChar (QChar); + QChar escapeChar () const; + +protected: + virtual int expandPlainMacro (const QString&, uint, QStringList&); + virtual int expandEscapedMacro (const QString&, uint, QStringList&); + +}; // class KMacroExpanderBase + +%End + + +%If ( KDE_3_3_0 - ) + +class KWordMacroExpander : KMacroExpanderBase +{ +%TypeHeaderCode +#include +%End + + +public: + KWordMacroExpander (QChar = '%'); + +protected: + virtual int expandPlainMacro (const QString&, uint, QStringList&); + virtual int expandEscapedMacro (const QString&, uint, QStringList&); + virtual bool expandMacro (const QString&, QStringList&) = 0; + +}; // class KWordMacroExpander + +%End + + +%If ( KDE_3_3_0 - ) + +class KCharMacroExpander : KMacroExpanderBase +{ +%TypeHeaderCode +#include +%End + + +public: + KCharMacroExpander (QChar = '%'); + +protected: + virtual int expandPlainMacro (const QString&, uint, QStringList&); + virtual int expandEscapedMacro (const QString&, uint, QStringList&); + virtual bool expandMacro (QChar, QStringList&) = 0; + +}; // class KCharMacroExpander + +%End + + +%If ( KDE_3_2_0 - ) +namespace KMacroExpander +{ +QString expandMacros (const QString&, const QMap&, QChar = '%'); +QString expandMacrosShellQuote (const QString&, const QMap&, QChar = '%'); +QString expandMacros (const QString&, const QMap&, QChar = '%'); +QString expandMacrosShellQuote (const QString&, const QMap&, QChar = '%'); +QString expandMacros (const QString&, const QMap&, QChar = '%'); +QString expandMacros (const QString&, const QMap&, QChar = '%'); +QString expandMacrosShellQuote (const QString&, const QMap&, QChar = '%'); +QString expandMacrosShellQuote (const QString&, const QMap&, QChar = '%'); +}; // namespace KMacroExpander + +%End + + + +%MappedType QMap +//converts a Python dict of QChar:QString +{ +%TypeHeaderCode +#include +#include +%End + +%ConvertFromTypeCode + + if (!sipCpp) + return PyDict_New(); + + PyObject *dict; + + // Create the dictionary. + + if ((dict = PyDict_New()) == NULL) + return NULL; + + // Get it. + + const QMap map = *sipCpp; + QMap::ConstIterator it; + + for (it = map.begin (); it != map.end (); ++it) + { + QChar acpp = it.key (); + PyObject *binst = PyString_FromString ((char *)((QString *)&it.data ())); + PyObject *ainst; + if (((ainst = sipConvertFromNewType(new QChar(acpp), sipType_QChar, sipTransferObj)) == NULL) + || (binst == NULL) + || (PyDict_SetItem (dict, ainst, binst) < 0)) + { + Py_XDECREF (ainst); + Py_XDECREF (binst); + Py_DECREF (dict); + return NULL; + } + } + + return dict; +%End + + +%ConvertToTypeCode +// Convert a Python dictionary to a QMap + + if (sipIsErr == NULL) + return PyDict_Check(sipPy); + + QMap *map = new QMap; + + PyObject *key, *value; + SIP_SSIZE_T pos = 0; + QChar *cKey; + QString *sData; + + while (PyDict_Next(sipPy, &pos, &key, &value)) + { + int iserr = 0, cKey_state, sData_state; + + cKey = (QChar *)sipForceConvertToType(key, sipType_QChar, sipTransferObj, SIP_NOT_NONE, &cKey_state, &iserr); + sData = (QString *)sipForceConvertToType(value, sipType_QString, sipTransferObj, SIP_NOT_NONE, &sData_state, &iserr); + + if (iserr) + { + if (cKey) + sipReleaseType(cKey, sipType_QChar, cKey_state); + + *sipIsErr = 1; + delete map; + return 0; + } + + map->insert (*cKey, *sData); + + sipReleaseType(cKey, sipType_QChar, cKey_state); + sipReleaseType(sData, sipType_QString, sData_state); + } + + *sipCppPtr = map; + + return 1; +%End +}; + + +%MappedType QMap +//converts a Python dict of QString:QStringList +{ +%TypeHeaderCode +#include +#include +#include +%End + +%ConvertFromTypeCode + + if (!sipCpp) + return PyDict_New(); + + PyObject *dict; + + // Create the dictionary. + + if ((dict = PyDict_New()) == NULL) + return NULL; + + // Get it. + + const QMap map = *sipCpp; + QMap::ConstIterator it; + + for (it = map.begin (); it != map.end (); ++it) + { + QStringList bcpp = it.data (); + PyObject *ainst = PyString_FromString ((char *)((QString *)&it.key ())); + PyObject *binst; + if (((binst = sipConvertFromNewType(new QStringList(bcpp), sipType_QStringList, sipTransferObj)) == NULL) + || (ainst == NULL) + || (PyDict_SetItem (dict, ainst, binst) < 0)) + { + Py_XDECREF (ainst); + Py_XDECREF (binst); + Py_DECREF (dict); + return NULL; + } + } + + return dict; +%End + + +%ConvertToTypeCode +// Convert a Python dictionary to a QMap on the heap. + + if (sipIsErr == NULL) + return PyDict_Check(sipPy); + + QMap *map = new QMap; + + PyObject *key, *value; + SIP_SSIZE_T pos = 0; + QString *sKey; + QStringList *slData; + + while (PyDict_Next(sipPy, &pos, &key, &value)) + { + int iserr = 0, sKey_state, slData_state; + + sKey = (QString *)sipForceConvertToType(key, sipType_QString, sipTransferObj, SIP_NOT_NONE, &sKey_state, &iserr); + slData = (QStringList *)sipForceConvertToType(value, sipType_QStringList, sipTransferObj, SIP_NOT_NONE, &slData_state, &iserr); + + if (iserr) + { + if (sKey) + sipReleaseType(sKey, sipType_QString, sKey_state); + + *sipIsErr = 1; + delete map; + return 0; + } + + map->insert (*sKey, *slData); + + sipReleaseType(sKey, sipType_QString, sKey_state); + sipReleaseType(slData, sipType_QStringList, slData_state); + } + + *sipCppPtr = map; + + return 1; +%End +}; + + +%MappedType QMap +//converts a Python dict of QChar:QStringList +{ +%TypeHeaderCode +#include +#include +#include +%End + +%ConvertFromTypeCode + + if (!sipCpp) + return PyDict_New(); + + PyObject *dict; + + // Create the dictionary. + + if ((dict = PyDict_New()) == NULL) + return NULL; + + // Get it. + + const QMap map = *sipCpp; + QMap::ConstIterator it; + + for (it = map.begin (); it != map.end (); ++it) + { + QChar acpp = it.key (); + QStringList bcpp = it.data (); + PyObject *binst; + PyObject *ainst; + if (((ainst = sipConvertFromNewType(new QChar(acpp), sipType_QChar, sipTransferObj)) == NULL) + || (binst = sipConvertFromNewType(new QStringList(bcpp), sipType_QStringList, sipTransferObj)) + || (PyDict_SetItem (dict, ainst, binst) < 0)) + { + Py_XDECREF (ainst); + Py_XDECREF (binst); + Py_DECREF (dict); + return NULL; + } + } + + return dict; +%End + + +%ConvertToTypeCode +// Convert a Python dictionary to a QMap on the heap. + + if (sipIsErr == NULL) + return PyDict_Check(sipPy); + + QMap *map = new QMap; + + PyObject *key, *value; + SIP_SSIZE_T pos = 0; + QChar *cKey; + QStringList *slData; + + while (PyDict_Next(sipPy, &pos, &key, &value)) + { + int iserr = 0, cKey_state, slData_state; + + cKey = (QChar *)sipForceConvertToType(key, sipType_QChar, sipTransferObj, SIP_NOT_NONE, &cKey_state, &iserr); + slData = (QStringList *)sipForceConvertToType(value, sipType_QStringList, sipTransferObj, SIP_NOT_NONE, &slData_state, &iserr); + + if (iserr) + { + if (cKey) + sipReleaseType(cKey, sipType_QChar, cKey_state); + + *sipIsErr = 1; + delete map; + return 0; + } + + map->insert (*cKey, *slData); + + sipReleaseType(cKey, sipType_QChar, cKey_state); + sipReleaseType(slData, sipType_QStringList, slData_state); + } + + *sipCppPtr = map; + + return 1; +%End +}; + + diff --git a/sip/kdecore/kmanagerselection.sip b/sip/kdecore/kmanagerselection.sip new file mode 100644 index 0000000..8694f8a --- /dev/null +++ b/sip/kdecore/kmanagerselection.sip @@ -0,0 +1,91 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_2_0 - ) + +class KSelectionOwner : QObject +{ +%TypeHeaderCode +#include +#include +#include +%End + + +public: + KSelectionOwner (Atom, int = -1, QObject* /TransferThis/ = 0); + KSelectionOwner (const char*, int = -1, QObject* /TransferThis/ = 0); + bool claim (bool, bool = 1); + void release (); + Window ownerWindow () const; +//ig bool filterEvent (XEvent*); + +signals: + void lostOwnership (); + +protected: +//ig virtual bool handleMessage (XEvent*); + virtual bool genericReply (Atom, Atom, Window); + virtual void replyTargets (Atom, Window); + virtual void getAtoms (); + void setData (long, long); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KSelectionOwner + +%End + + +%If ( KDE_3_2_0 - ) + +class KSelectionWatcher : QObject +{ +%TypeHeaderCode +#include +#include +#include +%End + + +public: + KSelectionWatcher (Atom, int = -1, QObject* /TransferThis/ = 0); + KSelectionWatcher (const char*, int = -1, QObject* /TransferThis/ = 0); + Window owner (); +//ig void filterEvent (XEvent*); + +signals: + void newOwner (Window); + void lostOwner (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KSelectionWatcher + +%End + diff --git a/sip/kdecore/kmdcodec.sip b/sip/kdecore/kmdcodec.sip new file mode 100644 index 0000000..e9d1c80 --- /dev/null +++ b/sip/kdecore/kmdcodec.sip @@ -0,0 +1,156 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KCodecs +{ +%TypeHeaderCode +#include +%End + + +public: + static QCString quotedPrintableEncode (const QByteArray&, bool); + static QCString quotedPrintableEncode (const QCString&, bool = 1); + static void quotedPrintableEncode (const QByteArray&, QByteArray&, bool); + static QCString quotedPrintableDecode (const QByteArray&); + static QCString quotedPrintableDecode (const QCString&); + static void quotedPrintableDecode (const QByteArray&, QByteArray&); + static QCString uuencode (const QByteArray&); + static QCString uuencode (const QCString&); + static void uuencode (const QByteArray&, QByteArray&); + static QCString uudecode (const QByteArray&); + static QCString uudecode (const QCString&); + static void uudecode (const QByteArray&, QByteArray&); + static QCString base64Encode (const QByteArray&, bool); + static QCString base64Encode (const QCString&, bool); + static void base64Encode (const QByteArray&, QByteArray&, bool); + static QCString base64Decode (const QByteArray&); + static QCString base64Decode (const QCString&); + static void base64Decode (const QByteArray&, QByteArray&); + +private: + KCodecs (); + +}; // class KCodecs + + +class KMD5 +{ +%TypeHeaderCode +#include +%End + + +public: +//ig typedef uchar Digest[16]; + KMD5 (); + KMD5 (const char*, int = -1); + KMD5 (const QByteArray&); + KMD5 (const QCString&); + void update (const char*, int = -1); +//igx void update (const uchar*, int = -1); + void update (const QByteArray&); + void update (const QCString&); + bool update (QIODevice&); + void reset (); +//ig const Digest& rawDigest (); +//ig void rawDigest (KMD5::Digest&); + QCString hexDigest (); + void hexDigest (QCString&); + QCString base64Digest (); +//ig bool verify (const KMD5::Digest&); + bool verify (const QCString&); + +protected: + +%If ( KDE_3_1_0 - ) +//ig void transform (const uchar); +%End + + void finalize (); + +private: + KMD5 (const KMD5&); + +protected: + +%If ( KDE_3_1_0 - ) +//force + void transform (const uchar*); +%End + +//end + +protected: + +%If ( - KDE_3_1_0 ) + void transform (const uchar*); +%End + + +}; // class KMD5 + + +%If ( KDE_3_4_0 - ) + +class KMD4 +{ +%TypeHeaderCode +#include +%End + + +public: +//ig typedef uchar Digest[16]; + KMD4 (); + KMD4 (const char*, int = -1); + KMD4 (const QByteArray&); + KMD4 (const QCString&); + void update (const char*, int = -1); +//igx void update (const uchar*, int = -1); + void update (const QByteArray&); + void update (const QCString&); + bool update (QIODevice&); + void reset (); +//ig const Digest& rawDigest (); +//ig void rawDigest (KMD4::Digest&); + QCString hexDigest (); + void hexDigest (QCString&); + QCString base64Digest (); +//ig bool verify (const KMD4::Digest&); + bool verify (const QCString&); + +protected: +//ig void transform (ulong, const ulong); + void finalize (); + +private: + KMD4 (const KMD4&); + +}; // class KMD4 + +%End + diff --git a/sip/kdecore/kmimesourcefactory.sip b/sip/kdecore/kmimesourcefactory.sip new file mode 100644 index 0000000..cc321dd --- /dev/null +++ b/sip/kdecore/kmimesourcefactory.sip @@ -0,0 +1,42 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KMimeSourceFactory : QMimeSourceFactory +{ +%TypeHeaderCode +#include +%End + + +public: + KMimeSourceFactory (KIconLoader* = KGlobal ::iconLoader ()); + virtual QString makeAbsolute (const QString&, const QString&) const; + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KMimeSourceFactory + diff --git a/sip/kdecore/kmountpoint.sip b/sip/kdecore/kmountpoint.sip new file mode 100644 index 0000000..87323be --- /dev/null +++ b/sip/kdecore/kmountpoint.sip @@ -0,0 +1,186 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_2_0 - ) + +class KMountPoint : KShared +{ +%TypeHeaderCode +#include +%End + + +public: +//ig typedef KSharedPtr Ptr; +//ig typedef QValueList List; + +public: + + enum + { + NeedMountOptions, + NeedRealDeviceName + }; + + static KMountPoint::List possibleMountPoints (int = 0); + static KMountPoint::List currentMountPoints (int = 0); + QString mountedFrom () const; + QString realDeviceName () const; + QString mountPoint () const; + QString mountType () const; + QStringList mountOptions () const; + +%If ( KDE_3_4_0 - ) + static QString devNameFromOptions (const QStringList&); +%End + + +private: + KMountPoint (); + +}; // class KMountPoint + +%End + + + +%MappedType KMountPoint::Ptr +//converts KMountPoint +{ +%TypeHeaderCode +#include +#include +%End + +%ConvertFromTypeCode + // Convert to a Python instance + + if (!sipCpp) + return NULL; + + KSharedPtr *cPtr = new KSharedPtr (*(KSharedPtr *)sipCpp); + KMountPoint *cpp = cPtr->data (); + PyObject *obj = sipConvertFromInstance (cpp, sipClass_KMountPoint, sipTransferObj); + + return obj; +%End + +%ConvertToTypeCode + // Convert a Python instance to a Ptr on the heap. + + if (sipIsErr == NULL) + return PyInstance_Check(sipPy); + + int iserr = 0; + KMountPoint *cpp = (KMountPoint *)sipForceConvertToType(sipPy, sipType_KMountPoint, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + *sipIsErr = 1; + return 0; + } + + *sipCppPtr = new KSharedPtr (cpp); + + return 1; +%End +}; + + +%MappedType KMountPoint::List +//converts a Python list of KMountPoint +{ +%TypeHeaderCode +#include +#include +%End + +%ConvertFromTypeCode + // Convert to a Python list of Ptr (KMountPoint). + if (!sipCpp) + return PyList_New (0); + + PyObject *plist; + + // Create the list + if ((plist = PyList_New(0)) == NULL) + return NULL; + + // Get it. + KMountPoint::List *cList = (KMountPoint::List *)sipCpp; + PyObject *inst; + + KMountPoint::List::Iterator it; + for( it = cList->begin(); it != cList->end(); ++it ) + { + inst = sipConvertFromType(&(KMountPoint::Ptr)(*it), sipType_KMountPoint_Ptr, sipTransferObj); + + if ((inst == NULL) || (PyList_Append (plist, inst) < 0)) + { + Py_XDECREF (inst); + Py_DECREF (plist); + return NULL; + } + } + + return plist; +%End + +%ConvertToTypeCode + // Convert a Python list to List on the heap. + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + KMountPoint::List *cList = new KMountPoint::List; + + PyObject *elem; + KMountPoint *mtpt; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + mtpt = (KMountPoint *)sipForceConvertToType(elem, sipType_KMountPoint, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr); + + KMountPoint::Ptr *ptr = new KMountPoint::Ptr (mtpt); + + if (iserr) + { + *sipIsErr = 1; + delete cList; + return 0; + } + + cList->append (*ptr); + } + + *sipCppPtr = cList; + + return 1; +%End +}; + + diff --git a/sip/kdecore/kmultipledrag.sip b/sip/kdecore/kmultipledrag.sip new file mode 100644 index 0000000..45d6fe7 --- /dev/null +++ b/sip/kdecore/kmultipledrag.sip @@ -0,0 +1,58 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KMultipleDrag : QDragObject +{ +%TypeHeaderCode +#include +%End + + +public: + KMultipleDrag (QWidget* = 0, const char* = 0); + void addDragObject (QDragObject*); + +%If ( KDE_3_5_0 - ) + virtual QByteArray encodedData (const char*) const; + virtual const char* format (int) const; +%End + + +protected: + +protected: +//igx virtual void virtual_hook (int, void*); + +protected: + +%If ( - KDE_3_5_0 ) + virtual QByteArray encodedData (const char*) const; + virtual const char* format (int) const; +%End + + +}; // class KMultipleDrag + diff --git a/sip/kdecore/knotifyclient.sip b/sip/kdecore/knotifyclient.sip new file mode 100644 index 0000000..47664b8 --- /dev/null +++ b/sip/kdecore/knotifyclient.sip @@ -0,0 +1,139 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +%ModuleHeaderCode +#include +%End + +namespace KNotifyClient +{ + +class Instance +{ +%TypeHeaderCode +#include +%End + + +public: + Instance (KInstance*); + bool useSystemBell () const; + static KInstance* current (); + static KNotifyClient::Instance* currentInstance (); + +}; // class Instance + + +%If ( KDE_3_2_0 - ) + +enum +{ + Default, +//ig None, + Sound, + Messagebox, + Logfile, + Stderr, + PassivePopup, + Execute, + Taskbar +}; + +%End + + +enum +{ + Notification, + Warning, + Error, + Catastrophe +}; + + +enum StandardEvent +{ + cannotOpenFile, + notification, + warning, + fatalError, + catastrophe +}; + +bool startDaemon (); + +%If ( KDE_3_2_0 - ) +int event (const QString&, const QString& = QString ::null ); +int event (KNotifyClient::StandardEvent, const QString& = QString ::null ); + +%If ( KDE_3_2_1 - ) +int userEvent (const QString& = QString ::null , int = KNotifyClient ::Default , int = KNotifyClient ::Default , const QString& = QString ::null , const QString& = QString ::null ); +%End + +int event (int, const QString&, const QString& = QString ::null ); +int event (int, KNotifyClient::StandardEvent, const QString& = QString ::null ); +int userEvent (int, const QString& = QString ::null , int = KNotifyClient ::Default , int = KNotifyClient ::Default , const QString& = QString ::null , const QString& = QString ::null ); +%End + +void beep (const QString& = QString ::null ); +int getPresentation (const QString&); +QString getFile (const QString&, int); +int getDefaultPresentation (const QString&); +QString getDefaultFile (const QString&, int); +KInstance* instance (); + +%If ( KDE_3_1_0 - KDE_3_2_0 ) + +enum +{ + Default, +//ig None, + Sound, + Messagebox, + Logfile, + Stderr, + PassivePopup, + Execute +}; + +%End + + +%If ( - KDE_3_1_0 ) + +enum +{ + Default, +//ig None, + Sound, + Messagebox, + Logfile, + Stderr +}; + +%End + +}; // namespace KNotifyClient + diff --git a/sip/kdecore/kpalette.sip b/sip/kdecore/kpalette.sip new file mode 100644 index 0000000..46008b1 --- /dev/null +++ b/sip/kdecore/kpalette.sip @@ -0,0 +1,63 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KPalette +{ +%TypeHeaderCode +#include +%End + + +public: + static QStringList getPaletteList (); + KPalette (const QString& = QString ::null ); + KPalette (const KPalette&); + bool save (); + QString description (); + void setDescription (const QString&); + QString name (); + void setName (const QString&); + + enum Editable + { + Yes, + No, + Ask + }; + + Editable editable (); + void setEditable (KPalette::Editable); + int nrColors (); + QColor color (int); + int findColor (const QColor&); + QString colorName (int); + QString colorName (const QColor&); + int addColor (const QColor&, const QString& = QString ::null ); + int changeColor (int, const QColor&, const QString& = QString ::null ); + int changeColor (const QColor&, const QColor&, const QString& = QString ::null ); + +}; // class KPalette + diff --git a/sip/kdecore/kpixmapprovider.sip b/sip/kdecore/kpixmapprovider.sip new file mode 100644 index 0000000..c0a798f --- /dev/null +++ b/sip/kdecore/kpixmapprovider.sip @@ -0,0 +1,41 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KPixmapProvider +{ +%TypeHeaderCode +#include +%End + + +public: + virtual QPixmap pixmapFor (const QString&, int = 0) = 0; + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KPixmapProvider + diff --git a/sip/kdecore/kprocctrl.sip b/sip/kdecore/kprocctrl.sip new file mode 100644 index 0000000..fbe00c3 --- /dev/null +++ b/sip/kdecore/kprocctrl.sip @@ -0,0 +1,95 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KProcessController : QObject +{ +%TypeHeaderCode +#include +%End + + +public: + +%If ( KDE_3_2_0 - ) + static void ref (); + static void deref (); +%End + + KProcessController* theKProcessController; + static void theSigCHLDHandler (int); + +%If ( KDE_3_0_3 - ) + bool waitForProcessExit (int); + +%If ( KDE_3_2_0 - ) + void unscheduleCheck (); + void rescheduleCheck (); + int notifierFd () const; +%End + +%End + + void addKProcess (KProcess*); + void removeKProcess (KProcess*); + +%If ( KDE_3_2_0 - ) + void addProcess (int); +%End + + +%If ( KDE_3_1_0 - ) + +private: + KProcessController (); +%End + + ~KProcessController (); + KProcessController (KProcessController&); + +public: + +%If ( - KDE_3_1_0 ) + KProcessController (); +%End + + +public: + +%If ( - KDE_3_2_0 ) + static void setupHandlers (); + static void resetHandlers (); +%End + + +public slots: + +%If ( - KDE_3_2_0 ) + void slotDoHousekeeping (int); +%End + + +}; // class KProcessController + diff --git a/sip/kdecore/kprocess.sip b/sip/kdecore/kprocess.sip new file mode 100644 index 0000000..eae4aa4 --- /dev/null +++ b/sip/kdecore/kprocess.sip @@ -0,0 +1,272 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KProcess : QObject +{ +%TypeHeaderCode +#include +%End + + +public: + +%If ( KDE_3_5_2 - ) + + enum Communication + { + NoCommunication, + Stdin, + Stdout, + Stderr, + AllOutput, + All, + NoRead, + CTtyOnly, + MergedStderr + }; + +%End + + +%If ( KDE_3_2_0 - ) + + enum RunMode + { + DontCare, + NotifyOnExit, + Block, + OwnGroup + }; + + KProcess (QObject* /TransferThis/, const char* = 0); +%End + + KProcess (); + bool setExecutable (const QString&); + +%If ( KDE_3_1_4 - ) + KProcess& operator << (const QString&); + KProcess& operator << (const char*); + KProcess& operator << (const QCString&); + KProcess& operator << (const QStringList&); +%End + + void clearArguments (); + virtual bool start (KProcess::RunMode = NotifyOnExit , KProcess::Communication = NoCommunication ); + virtual bool kill (int = SIGTERM ); + bool isRunning () const; + pid_t pid () const; + pid_t getPid () const; + void suspend (); + void resume (); + +%If ( KDE_3_2_0 - ) + bool wait (int = -1); +%End + + bool normalExit () const; + +%If ( KDE_3_2_0 - ) + bool signalled () const; + bool coreDumped () const; +%End + + int exitStatus () const; + +%If ( KDE_3_2_0 - ) + int exitSignal () const; +%End + + bool writeStdin (const char*, int); + bool closeStdin (); + bool closeStdout (); + bool closeStderr (); + +%If ( KDE_3_2_0 - ) + bool closePty (); + void closeAll (); +%End + + const QValueList& args (); + void setRunPrivileged (bool); + bool runPrivileged () const; + void setEnvironment (const QString&, const QString&); + void setWorkingDirectory (const QString&); + +%If ( KDE_3_1_0 - ) + void setUseShell (bool, const char* = 0); + static QString quote (const QString&); +%End + + void detach (); + +%If ( KDE_3_2_0 - ) + + enum + { + PrioLowest, + PrioLow, + PrioLower, + PrioNormal, + PrioHigher, + PrioHigh, + PrioHighest + }; + + bool setPriority (int); +%End + + +signals: + void processExited (KProcess*); + void receivedStdout (KProcess*, char*, int); +//ig void receivedStdout (int, int&); + void receivedStderr (KProcess*, char*, int); + void wroteStdin (KProcess*); + +protected slots: + void slotChildOutput (int); + void slotChildError (int); + void slotSendData (int); + +protected: + void setupEnvironment (); + virtual int setupCommunication (KProcess::Communication); + virtual int commSetupDoneP (); + virtual int commSetupDoneC (); + virtual void processHasExited (int); + virtual void commClose (); + +%If ( KDE_3_2_0 - ) + void setBinaryExecutable (const char*); +%End + + int childOutput (int); + int childError (int); + +protected: +//igx virtual void virtual_hook (int, void*); + +public: + +%If ( - KDE_3_5_2 ) + + enum Communication + { + NoCommunication, + Stdin, + Stdout, + Stderr, + AllOutput, + All, + NoRead + }; + +%End + + +public: + +%If ( KDE_3_2_0 - KDE_3_4_0 ) + void setUsePty (KProcess::Communication, bool); + KPty* pty () const; +%End + + +public: + +%If ( - KDE_3_2_0 ) + + enum RunMode + { + DontCare, + NotifyOnExit, + Block + }; + +%End + + +%If ( - KDE_3_2_0 ) + +private: + KProcess (const KProcess&); +%End + + +public: +//force + void setArguments (SIP_PYLIST) [void (char**)]; +%MethodCode +//takes arglist | (a Python list of strings) +//doc +// setArguments is the PyKDE equivalent of the stream operator methods (<<) +// in KDE's KProcess class - provide with a list of strings representing +// the arguments to the executable program set with setExecutable (PyKDE +// will continue to provide setExecutable even though it's deprecated in +// KDE (to also be replaced with stream operators) +//end + + PyObject *elem; + + for (int i = 0; i < PyList_Size (a0); i++) + { + elem = PyList_GET_ITEM (a0, i); + *sipCpp << PyString_AsString (elem); + } + + +%End + +//end + +}; // class KProcess + + +class KShellProcess : KProcess +{ +%TypeHeaderCode +#include +%End + + +public: + KShellProcess (const char* = 0); + virtual bool start (RunMode = NotifyOnExit , Communication = NoCommunication ); + static QString quote (const QString&); + +protected: +//igx virtual void virtual_hook (int, void*); + +%If ( - KDE_3_2_0 ) + +private: + KShellProcess (const KShellProcess&); +%End + + +}; // class KShellProcess + diff --git a/sip/kdecore/kprocio.sip b/sip/kdecore/kprocio.sip new file mode 100644 index 0000000..2a09e28 --- /dev/null +++ b/sip/kdecore/kprocio.sip @@ -0,0 +1,67 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KProcIO : KProcess +{ +%TypeHeaderCode +#include +%End + + +public: + KProcIO (QTextCodec* = 0); + +%If ( KDE_3_2_0 - ) + void setComm (Communication); +%End + + bool start (RunMode = NotifyOnExit , bool = 0); + bool writeStdin (const QString&, bool = 1); + bool writeStdin (const QCString&, bool); + bool writeStdin (const QByteArray&); + bool fputs (const QString&, bool = 1); + void closeWhenDone (); + int readln (QString& /Out/, bool = 1, bool* = 0); + int fgets (QString&, bool = 0); + void resetAll (); + void ackRead (); + void enableReadSignals (bool); + +signals: + void readReady (KProcIO*); + +protected: + void controlledEmission (); + +protected slots: + void received (KProcess*, char*, int); + void sent (KProcess*); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KProcIO + diff --git a/sip/kdecore/kpty.sip b/sip/kdecore/kpty.sip new file mode 100644 index 0000000..5098181 --- /dev/null +++ b/sip/kdecore/kpty.sip @@ -0,0 +1,52 @@ +// +// Copyright 2005 Jim Bublitz +// Earlier copyrights 1998 - 2004 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE_3_3_2 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_2_0 - ) + +class KPty +{ +%TypeHeaderCode +#include +%End + + +public: + KPty (); + bool open (); + void close (); + void setCTty (); + void login (const char* = 0, const char* = 0); + void logout (); + void setWinSize (int, int); + void setXonXoff (bool); + const char* ttyName () const; + int masterFd () const; + int slaveFd () const; + +}; // class KPty + +%End + diff --git a/sip/kdecore/krandomsequence.sip b/sip/kdecore/krandomsequence.sip new file mode 100644 index 0000000..4e55011 --- /dev/null +++ b/sip/kdecore/krandomsequence.sip @@ -0,0 +1,45 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KRandomSequence +{ +%TypeHeaderCode +#include +%End + + +public: + KRandomSequence (long = 0); + KRandomSequence (const KRandomSequence&); + void setSeed (long = 1); + double getDouble (); + ulong getLong (ulong); + bool getBool (); +//ig void randomize (QGList*); + void modulate (int); + +}; // class KRandomSequence + diff --git a/sip/kdecore/kregexp.sip b/sip/kdecore/kregexp.sip new file mode 100644 index 0000000..57c8d99 --- /dev/null +++ b/sip/kdecore/kregexp.sip @@ -0,0 +1,44 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KRegExp +{ +%TypeHeaderCode +#include +%End + + +public: + KRegExp (); + KRegExp (const char*, const char* = ""); + bool compile (const char*, const char* = ""); + bool match (const char*); + const char* group (int); + int groupStart (int); + int groupEnd (int); + +}; // class KRegExp + diff --git a/sip/kdecore/krfcdate.sip b/sip/kdecore/krfcdate.sip new file mode 100644 index 0000000..c91546f --- /dev/null +++ b/sip/kdecore/krfcdate.sip @@ -0,0 +1,42 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KRFCDate +{ +%TypeHeaderCode +#include +%End + + +public: + static time_t parseDate (const QString&); + static time_t parseDateISO8601 (const QString&); + static int localUTCOffset (); + static QCString rfc2822DateString (time_t, int); + static QCString rfc2822DateString (time_t); + +}; // class KRFCDate + diff --git a/sip/kdecore/krootprop.sip b/sip/kdecore/krootprop.sip new file mode 100644 index 0000000..1b6f5a8 --- /dev/null +++ b/sip/kdecore/krootprop.sip @@ -0,0 +1,52 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KRootProp +{ +%TypeHeaderCode +#include +%End + + +public: + KRootProp (const QString& = QString ::null ); + void setProp (const QString& = ""); + QString prop () const; + void destroy (); + QString readEntry (const QString&, const QString& = QString ::null ) const; + int readNumEntry (const QString&, int = 0) const; + QFont readFontEntry (const QString&, const QFont* = 0) const; + QColor readColorEntry (const QString&, const QColor* = 0) const; + QString writeEntry (const QString&, const QString&); + QString writeEntry (const QString&, int); + QString writeEntry (const QString&, const QFont&); + QString writeEntry (const QString&, const QColor&); + QString removeEntry (const QString&); + QStringList listEntries () const; + void sync (); + +}; // class KRootProp + diff --git a/sip/kdecore/ksavefile.sip b/sip/kdecore/ksavefile.sip new file mode 100644 index 0000000..c2974aa --- /dev/null +++ b/sip/kdecore/ksavefile.sip @@ -0,0 +1,52 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KSaveFile +{ +%TypeHeaderCode +#include +%End + + +public: + KSaveFile (const QString&, int = 438); + int status (); + QString name (); + int handle (); +//ig FILE* fstream (); + QFile* file (); + QTextStream* textStream (); + QDataStream* dataStream (); + void abort (); + bool close (); + +%If ( KDE_3_2_0 - ) + static bool backupFile (const QString&, const QString& = QString ::null , const QString& = QString ::fromLatin1 ("~" )); +%End + + +}; // class KSaveFile + diff --git a/sip/kdecore/ksharedptr.sip b/sip/kdecore/ksharedptr.sip new file mode 100644 index 0000000..8f5e83c --- /dev/null +++ b/sip/kdecore/ksharedptr.sip @@ -0,0 +1,45 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KShared +{ +%TypeHeaderCode +#include +%End + + +public: + KShared (); + KShared (const KShared&); + void _KShared_ref (); + void _KShared_unref (); + int _KShared_count (); + +protected: + ~KShared (); + +}; // class KShared + diff --git a/sip/kdecore/kshell.sip b/sip/kdecore/kshell.sip new file mode 100644 index 0000000..d17de1a --- /dev/null +++ b/sip/kdecore/kshell.sip @@ -0,0 +1,77 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +%ModuleHeaderCode +#include +extern char **pyArgvToC(PyObject *argvlist,int *argcp); +%End + + +%If ( KDE_3_2_0 - ) +namespace KShell +{ + +enum Options +{ + NoOptions, + TildeExpand, + AbortOnMeta +}; + + +enum Errors +{ + NoError, + BadQuoting, + FoundMeta +}; + +QStringList splitArgs (const QString&, int = 0, int* = 0); +QString joinArgs (const QStringList&); +QString joinArgsDQ (const QStringList&); +QString joinArgs (SIP_PYLIST) [QString (const char**, int = -1)]; +%MethodCode +//returns (QString) +//takes a0 | a Python list of strings + int argc; + char **argv; + + // Convert the list. + + if ((argv = pyArgvToC(a0, &argc)) == NULL) + return NULL; + + Py_BEGIN_ALLOW_THREADS + sipRes = new QString (KShell::joinArgs (argv, argc)); + Py_END_ALLOW_THREADS + +%End + +QString tildeExpand (const QString&); +QString homeDir (const QString&); +}; // namespace KShell + +%End + diff --git a/sip/kdecore/kshortcut.sip b/sip/kdecore/kshortcut.sip new file mode 100644 index 0000000..79b4b0e --- /dev/null +++ b/sip/kdecore/kshortcut.sip @@ -0,0 +1,261 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KKey +{ +%TypeHeaderCode +#include +%End + + +public: + + enum + { + MOD_FLAG_COUNT + }; + + +%If ( KDE_3_1_3 - ) + + enum + { + QtWIN + }; + +%End + + + enum ModFlag + { + SHIFT, + CTRL, + ALT, + WIN + }; + + KKey (); + KKey (int); + KKey (const QKeySequence&); + KKey (const QKeyEvent*); + KKey (const KKey&); + KKey (const QString&); + KKey (uint, uint); + void clear (); + bool init (int); + bool init (const QKeySequence&); + bool init (const QKeyEvent*); + bool init (const KKey&); + bool init (const QString&); + bool init (uint, uint); + bool isNull () const; + uint sym () const; + uint modFlags () const; + int compare (const KKey&) const; + +%If ( KDE_3_1_4 - ) + bool operator == (const KKey&) const; + bool operator != (const KKey&) const; + bool operator < (const KKey&) const; +%End + + int keyCodeQt () const; + QString toString () const; + QString toStringInternal () const; + void simplify (); + static KKey& null (); + static QString modFlagLabel (KKey::ModFlag); + +public: + +%If ( - KDE_3_2_0 ) +//ig bool isValidQt () const; +//ig bool isValidNative () const; +%End + + +public: + +%If ( KDE_3_1_2 - KDE_3_1_3 ) + + enum + { + QtWIN + }; + +%End + + +public: + +%If ( - KDE_3_1_2 ) + + enum + { + QtWIN + }; + +%End + + +}; // class KKey + + +class KKeySequence +{ +%TypeHeaderCode +#include +%End + + +public: + + enum + { + MAX_KEYS + }; + + KKeySequence (); + KKeySequence (const QKeySequence&); + KKeySequence (const KKey&); +//ig KKeySequence (const KKeyNative&); + KKeySequence (const KKeySequence&); + KKeySequence (const QString&); + void clear (); + bool init (const QKeySequence&); + bool init (const KKey&); +//ig bool init (const KKeyNative&); + bool init (const KKeySequence&); + bool init (const QString&); + uint count () const; + const KKey& key (uint) const; + bool isTriggerOnRelease () const; + bool setKey (uint, const KKey&); + bool isNull () const; + bool startsWith (const KKeySequence&) const; + int compare (const KKeySequence&) const; + +%If ( KDE_3_1_4 - ) + bool operator == (const KKeySequence&) const; + bool operator != (const KKeySequence&) const; + bool operator < (const KKeySequence&) const; +%End + + QKeySequence qt () const; + int keyCodeQt () const; + QString toString () const; + QString toStringInternal () const; + static KKeySequence& null (); + +protected: + +public: + +%If ( - KDE_3_2_0 ) +//ig void setTriggerOnRelease (bool); +%End + + +}; // class KKeySequence + + +class KShortcut +{ +%TypeHeaderCode +#include +%End + + +public: + + enum + { + MAX_SEQUENCES + }; + + KShortcut (); + KShortcut (int); + KShortcut (const QKeySequence&); + KShortcut (const KKey&); + KShortcut (const KKeySequence&); + KShortcut (const KShortcut&); + KShortcut (const char*); + KShortcut (const QString&); + void clear (); + bool init (int); + bool init (const QKeySequence&); + bool init (const KKey&); + bool init (const KKeySequence&); + bool init (const KShortcut&); + bool init (const QString&); + uint count () const; + const KKeySequence& seq (uint) const; + int keyCodeQt () const; + bool isNull () const; + int compare (const KShortcut&) const; + +%If ( KDE_3_1_4 - ) + bool operator == (const KShortcut&) const; + bool operator != (const KShortcut&) const; + bool operator < (const KShortcut&) const; +%End + + bool contains (const KKey&) const; + bool contains (const KKeyNative&) const; + bool contains (const KKeySequence&) const; + bool setSeq (uint, const KKeySequence&); + bool append (const KKeySequence&); + +%If ( KDE_3_3_0 - ) + void remove (const KKeySequence&); +%End + + +%If ( KDE_3_2_0 - ) + bool append (const KKey&); + bool append (const KShortcut&); +%End + + +%If ( KDE_3_1_4 - ) +//ig operator QKeySequence () const; +%End + + QString toString () const; + QString toStringInternal (const KShortcut* = 0) const; + static KShortcut& null (); + +protected: + +public: + +%If ( KDE_3_1_4 - ) +//ig operator int () const; +%End + + +}; // class KShortcut + diff --git a/sip/kdecore/kshortcutlist.sip b/sip/kdecore/kshortcutlist.sip new file mode 100644 index 0000000..a65e44c --- /dev/null +++ b/sip/kdecore/kshortcutlist.sip @@ -0,0 +1,133 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KShortcutList +{ +%TypeHeaderCode +#include +#include +#include +%End + + +public: + KShortcutList (); + virtual uint count () const = 0; + virtual QString name (uint) const = 0; + virtual QString label (uint) const = 0; + virtual QString whatsThis (uint) const = 0; + virtual const KShortcut& shortcut (uint) const = 0; + virtual const KShortcut& shortcutDefault (uint) const = 0; + virtual bool isConfigurable (uint) const = 0; + virtual bool setShortcut (uint, const KShortcut&) = 0; + virtual bool isGlobal (uint) const; + virtual int index (const QString&) const; + virtual int index (const KKeySequence&) const; + virtual const KInstance* instance () const; + + enum Other + { + + }; + + virtual QVariant getOther (KShortcutList::Other, uint) const = 0; + virtual bool setOther (KShortcutList::Other, uint, QVariant) = 0; + virtual bool save () const = 0; + virtual bool readSettings (const QString& = QString ::null , KConfigBase* = 0); + virtual bool writeSettings (const QString& = QString ::null , KConfigBase* = 0, bool = 0, bool = 0) const; + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KShortcutList + + +class KAccelShortcutList : KShortcutList +{ +%TypeHeaderCode +#include +#include +#include +%End + + +public: + KAccelShortcutList (KAccel*); + KAccelShortcutList (KGlobalAccel*); + KAccelShortcutList (KAccelActions&, bool); + virtual uint count () const; + virtual QString name (uint) const; + virtual QString label (uint) const; + virtual QString whatsThis (uint) const; + virtual const KShortcut& shortcut (uint) const; + virtual const KShortcut& shortcutDefault (uint) const; + virtual bool isConfigurable (uint) const; + virtual bool setShortcut (uint, const KShortcut&); + virtual bool isGlobal (uint) const; + virtual QVariant getOther (KShortcutList::Other, uint) const; + virtual bool setOther (KShortcutList::Other, uint, QVariant); + virtual bool save () const; + +protected: + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KAccelShortcutList + +namespace KStdAccel +{ + +class ShortcutList : KShortcutList +{ +%TypeHeaderCode +#include +#include +#include +%End + + +public: + ShortcutList (); + virtual uint count () const; + virtual QString name (uint) const; + virtual QString label (uint) const; + virtual QString whatsThis (uint) const; + virtual const KShortcut& shortcut (uint) const; + virtual const KShortcut& shortcutDefault (uint) const; + virtual bool isConfigurable (uint) const; + virtual bool setShortcut (uint, const KShortcut&); + virtual QVariant getOther (KShortcutList::Other, uint) const; + virtual bool setOther (KShortcutList::Other, uint, QVariant); + virtual bool save () const; + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class ShortcutList + +}; // namespace KStdAccel + diff --git a/sip/kdecore/ksimpleconfig.sip b/sip/kdecore/ksimpleconfig.sip new file mode 100644 index 0000000..723236e --- /dev/null +++ b/sip/kdecore/ksimpleconfig.sip @@ -0,0 +1,50 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KSimpleConfig : KConfig +{ +%TypeHeaderCode +#include +%End + + +public: + KSimpleConfig (const QString&, bool = 0); + +%If ( KDE_3_2_0 - ) + KSimpleConfig (KConfigBackEnd*, bool = 0); +%End + + virtual void sync (); + +private: + KSimpleConfig (const KSimpleConfig&); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KSimpleConfig + diff --git a/sip/kdecore/ksock.sip b/sip/kdecore/ksock.sip new file mode 100644 index 0000000..df11aae --- /dev/null +++ b/sip/kdecore/ksock.sip @@ -0,0 +1,97 @@ +// +// Copyright 2005 Jim Bublitz +// Earlier copyrights 1998 - 2004 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE_3_3_2 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KSocket : QObject +{ +%TypeHeaderCode +#include +%End + + +public: + KSocket (int); + KSocket (const char*, ushort, int = 30); + KSocket (const char*); + int socket () const; + void enableRead (bool); + void enableWrite (bool); + +signals: + void readEvent (KSocket*); + void writeEvent (KSocket*); + void closeEvent (KSocket*); + +public slots: + void slotWrite (int); + void slotRead (int); + +protected: + bool connect (const QString&, ushort, int = 0); + bool connect (const char*); + +private: + KSocket (const KSocket&); + +}; // class KSocket + + +class KServerSocket : QObject +{ +%TypeHeaderCode +#include +%End + + +public: + KServerSocket (ushort, bool); + KServerSocket (const char*, bool); + bool bindAndListen (); + int socket () const; + ushort port (); + +public slots: + virtual void slotAccept (int); + +signals: + void accepted (KSocket*); + +protected: + bool init (ushort); + bool init (const char*); + +private: + KServerSocket (const KServerSocket&); + +public: + +%If ( - KDE_3_1_2 ) + KServerSocket (ushort); + KServerSocket (const char*); +%End + + +}; // class KServerSocket + diff --git a/sip/kdecore/kstartupinfo.sip b/sip/kdecore/kstartupinfo.sip new file mode 100644 index 0000000..6d4d308 --- /dev/null +++ b/sip/kdecore/kstartupinfo.sip @@ -0,0 +1,280 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KStartupInfo : QObject +{ +%TypeHeaderCode +#include +%End + + +public: + +%If ( KDE_3_2_0 - ) + static void disableAutoAppStartedSending (bool = 1); +%End + + static void appStarted (); + +%If ( KDE_3_2_0 - ) + static void appStarted (const QCString&); + static void setNewStartupId (QWidget*, const QCString&); + static void silenceStartup (bool); + +%If ( KDE_3_3_0 - ) + static QCString createNewStartupId (); +%End + +%End + + +%If ( KDE_3_1_1 - ) + + enum + { + CleanOnCantDetect, + DisableKWinModule, + AnnounceSilenceChanges + }; + +%End + + KStartupInfo (bool, QObject* /TransferThis/ = 0, const char* = 0); + static bool sendStartup (const KStartupInfoId&, const KStartupInfoData&); +//ig static bool sendStartupX (Display*, const KStartupInfoId&, const KStartupInfoData&); + static bool sendChange (const KStartupInfoId&, const KStartupInfoData&); +//ig static bool sendChangeX (Display*, const KStartupInfoId&, const KStartupInfoData&); + static bool sendFinish (const KStartupInfoId&); +//ig static bool sendFinishX (Display*, const KStartupInfoId&); + static bool sendFinish (const KStartupInfoId&, const KStartupInfoData&); +//ig static bool sendFinishX (Display*, const KStartupInfoId&, const KStartupInfoData&); + static KStartupInfoId currentStartupIdEnv (); + static void resetStartupEnv (); + + enum startup_t + { + NoMatch, + Match, + CantDetect + }; + + KStartupInfo::startup_t checkStartup (WId); + KStartupInfo::startup_t checkStartup (WId, KStartupInfoId&); + KStartupInfo::startup_t checkStartup (WId, KStartupInfoData&); + KStartupInfo::startup_t checkStartup (WId, KStartupInfoId&, KStartupInfoData&); + void setTimeout (uint); + static void setWindowStartupId (WId, const QCString&); + static QCString windowStartupId (WId); + +%If ( KDE_3_2_0 - ) + static void handleAutoAppStartedSending (); +%End + + +signals: + void gotNewStartup (const KStartupInfoId&, const KStartupInfoData&); + void gotStartupChange (const KStartupInfoId&, const KStartupInfoData&); + void gotRemoveStartup (const KStartupInfoId&, const KStartupInfoData&); + +protected: + virtual void customEvent (QCustomEvent*); + +}; // class KStartupInfo + + +class KStartupInfoId +{ +%TypeHeaderCode +#include +%End + + +public: + +%If ( KDE_3_1_4 - ) + bool operator == (const KStartupInfoId&) const; + bool operator != (const KStartupInfoId&) const; +%End + + bool none () const; + void initId (const QCString& = ""); + const QCString& id () const; + +%If ( KDE_3_3_0 - ) + ulong timestamp () const; +%End + + bool setupStartupEnv () const; + KStartupInfoId (); + KStartupInfoId (const KStartupInfoId&); + +%If ( KDE_3_1_4 - ) + bool operator < (const KStartupInfoId&) const; +%End + + +private: + KStartupInfoId (const QString&); + +}; // class KStartupInfoId + + +class KStartupInfoData +{ +%TypeHeaderCode +#include +%End + + +public: + void setBin (const QString&); + const QString& bin () const; + void setName (const QString&); + const QString& findName () const; + const QString& name () const; + +%If ( KDE_3_2_0 - ) + void setDescription (const QString&); + const QString& findDescription () const; + const QString& description () const; +%End + + void setIcon (const QString&); + const QString& findIcon () const; + const QString& icon () const; + void setDesktop (int); + int desktop () const; + void setWMClass (const QCString&); + const QCString findWMClass () const; + const QCString& WMClass () const; + void addPid (pid_t); + const QValueList& pids () const; + bool is_pid (pid_t) const; + void setHostname (const QCString& = QCString ()); + const QCString& hostname () const; + +%If ( KDE_3_1_1 - ) + + enum TriState + { + Yes, + No, + Unknown + }; + + void setSilent (KStartupInfoData::TriState); + KStartupInfoData::TriState silent () const; + +%If ( KDE_3_2_0 - ) + void setTimestamp (ulong); + ulong timestamp () const; + int screen () const; + void setScreen (int); +%End + +%End + + void update (const KStartupInfoData&); + KStartupInfoData (); + KStartupInfoData (const KStartupInfoData&); + +private: + KStartupInfoData (const QString&); + +}; // class KStartupInfoData + +/*%MappedType QValueList +//converts a Python list of long +{ +%TypeHeaderCode +#include +%End + +%ConvertFromTypeCode + // Handle no list. + + if (!sipCpp) + return PyList_New(0); + + // Convert to a Python list of long. + + PyObject *l; + + // Create the list. + + if ((l = PyList_New(sipCpp -> count())) == NULL) + return NULL; + + // Get it. + + for (uint i = 0; i < sipCpp -> count(); ++i) + if (PyList_SetItem(l,i,PyLong_FromLong((long)(*sipCpp)[i])) < 0) + { + Py_DECREF(l); + + return NULL; + } + + return l; +%End + +%ConvertToTypeCode + // Convert a Python list of long to a QValueList on the heap. + + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + if (sipPy == Py_None) + { + *sipCppPtr = NULL; + + return 0; + } + + QValueList *qvl = new QValueList; + + PyErr_Clear(); + + for (int i = 0; i < PyList_GET_SIZE(sipPy); ++i) + { + qvl -> append((pid_t)PyLong_AsLong(PyList_GET_ITEM(sipPy,i))); + + if (PyErr_Occurred() != NULL) + { + delete qvl; + *sipIsErr = 1; + + return 0; + } + } + + *sipCppPtr = qvl; + + return 1; +%End +};*/ + + diff --git a/sip/kdecore/kstaticdeleter.sip b/sip/kdecore/kstaticdeleter.sip new file mode 100644 index 0000000..9870f18 --- /dev/null +++ b/sip/kdecore/kstaticdeleter.sip @@ -0,0 +1,38 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KStaticDeleterBase +{ +%TypeHeaderCode +#include +%End + + +public: + virtual void destructObject () = 0; + +}; // class KStaticDeleterBase + diff --git a/sip/kdecore/kstdaccel.sip b/sip/kdecore/kstdaccel.sip new file mode 100644 index 0000000..44bd9b8 --- /dev/null +++ b/sip/kdecore/kstdaccel.sip @@ -0,0 +1,441 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +%ModuleHeaderCode +#include +%End + +namespace KStdAccel +{ + +%If ( KDE_3_4_0 - ) + +enum StdAccel +{ + AccelNone, + Open, + New, + Close, + Save, + Print, + Quit, + Undo, + Redo, + Cut, + Copy, + Paste, + SelectAll, + Deselect, + DeleteWordBack, + DeleteWordForward, + Find, + FindNext, + FindPrev, + Replace, + Home, + End, + Prior, + Next, + GotoLine, + AddBookmark, + ZoomIn, + ZoomOut, + Up, + Back, + Forward, + Reload, + PopupMenuContext, + ShowMenubar, + Help, + WhatsThis, + TextCompletion, + PrevCompletion, + NextCompletion, + SubstringCompletion, + RotateUp, + RotateDown, + TabNext, + TabPrev, + FullScreen, + BackwardWord, + ForwardWord, + BeginningOfLine, + EndOfLine, + PasteSelection, + WhatThis +}; + +%End + +const KShortcut& shortcut (KStdAccel::StdAccel); +QString name (KStdAccel::StdAccel); +QString label (KStdAccel::StdAccel); +QString whatsThis (KStdAccel::StdAccel); +KStdAccel::StdAccel findStdAccel (const KKeySequence&); +KShortcut shortcutDefault (KStdAccel::StdAccel); +KShortcut shortcutDefault3 (KStdAccel::StdAccel); +KShortcut shortcutDefault4 (KStdAccel::StdAccel); +const KShortcut& open (); +const KShortcut& openNew (); +const KShortcut& close (); +const KShortcut& save (); +const KShortcut& print () /PyName=print_/; +const KShortcut& quit (); +const KShortcut& undo (); +const KShortcut& redo (); +const KShortcut& cut (); +const KShortcut& copy (); +const KShortcut& paste (); + +%If ( KDE_3_4_0 - ) +const KShortcut& pasteSelection (); +%End + +const KShortcut& selectAll (); +const KShortcut& deleteWordBack (); +const KShortcut& deleteWordForward (); +const KShortcut& find (); +const KShortcut& findNext (); +const KShortcut& findPrev (); +const KShortcut& replace (); +const KShortcut& zoomIn (); +const KShortcut& zoomOut (); +//ig const KShortcut& insert (); +const KShortcut& home (); +const KShortcut& end (); + +%If ( KDE_3_3_0 - ) +const KShortcut& beginningOfLine (); +const KShortcut& endOfLine (); +%End + +const KShortcut& prior (); +const KShortcut& next (); +const KShortcut& gotoLine (); +const KShortcut& addBookmark (); + +%If ( KDE_3_2_0 - ) +const KShortcut& tabNext (); +const KShortcut& tabPrev (); +const KShortcut& fullScreen (); +%End + +const KShortcut& help (); +const KShortcut& completion (); +const KShortcut& prevCompletion (); +const KShortcut& nextCompletion (); +const KShortcut& substringCompletion (); +const KShortcut& rotateUp (); +const KShortcut& rotateDown (); +const KShortcut& popupMenuContext (); +const KShortcut& whatsThis (); +const KShortcut& reload (); +const KShortcut& up (); +const KShortcut& back (); +const KShortcut& forward (); + +%If ( KDE_3_3_0 - ) +const KShortcut& backwardWord (); +const KShortcut& forwardWord (); +%End + +const KShortcut& showMenubar (); +QString action (KStdAccel::StdAccel); +QString description (KStdAccel::StdAccel); +int key (KStdAccel::StdAccel); +int defaultKey (KStdAccel::StdAccel); +bool isEqual (const QKeyEvent*, int); + +%If ( KDE_3_3_0 - KDE_3_4_0 ) + +enum StdAccel +{ + AccelNone, + Open, + New, + Close, + Save, + Print, + Quit, + Undo, + Redo, + Cut, + Copy, + Paste, + SelectAll, + Deselect, + DeleteWordBack, + DeleteWordForward, + Find, + FindNext, + FindPrev, + Replace, + Home, + End, + Prior, + Next, + GotoLine, + AddBookmark, + ZoomIn, + ZoomOut, + Up, + Back, + Forward, + Reload, + PopupMenuContext, + ShowMenubar, + Help, + WhatsThis, + TextCompletion, + PrevCompletion, + NextCompletion, + SubstringCompletion, + RotateUp, + RotateDown, + TabNext, + TabPrev, + FullScreen, + BackwardWord, + ForwardWord, + BeginningOfLine, + EndOfLine, + WhatThis +}; + +%End + + +%If ( KDE_3_2_0 - KDE_3_3_0 ) + +enum StdAccel +{ + AccelNone, + Open, + New, + Close, + Save, + Print, + Quit, + Undo, + Redo, + Cut, + Copy, + Paste, + SelectAll, + Deselect, + DeleteWordBack, + DeleteWordForward, + Find, + FindNext, + FindPrev, + Replace, + Home, + End, + Prior, + Next, + GotoLine, + AddBookmark, + ZoomIn, + ZoomOut, + Up, + Back, + Forward, + Reload, + PopupMenuContext, + ShowMenubar, + Help, + WhatsThis, + TextCompletion, + PrevCompletion, + NextCompletion, + SubstringCompletion, + RotateUp, + RotateDown, + TabNext, + TabPrev, + FullScreen, + WhatThis +}; + +%End + + +%If ( KDE_3_1_3 - KDE_3_2_0 ) + +enum StdAccel +{ + AccelNone, + Open, + New, + Close, + Save, + Print, + Quit, + Undo, + Redo, + Cut, + Copy, + Paste, + SelectAll, + Deselect, + DeleteWordBack, + DeleteWordForward, + Find, + FindNext, + FindPrev, + Replace, + Home, + End, + Prior, + Next, + GotoLine, + AddBookmark, + ZoomIn, + ZoomOut, + Up, + Back, + Forward, + Reload, + PopupMenuContext, + ShowMenubar, + Help, + WhatsThis, + TextCompletion, + PrevCompletion, + NextCompletion, + SubstringCompletion, + RotateUp, + RotateDown, + WhatThis +}; + +%End + + +%If ( KDE_3_1_2 - KDE_3_1_3 ) + +enum StdAccel +{ + AccelNone, + Open, + New, + Close, + Save, + Print, + Quit, + Undo, + Redo, + Cut, + Copy, + Paste, + SelectAll, + Deselect, + DeleteWordBack, + DeleteWordForward, + Find, + FindNext, + FindPrev, + Replace, + Home, + End, + Prior, + Next, + GotoLine, + AddBookmark, + ZoomIn, + ZoomOut, + Up, + Back, + Forward, + Reload, + PopupMenuContext, + ShowMenubar, + Help, + WhatsThis, + TextCompletion, + PrevCompletion, + NextCompletion, + SubstringCompletion, + RotateUp, + RotateDown, + WhatThis +}; + +%End + + +%If ( - KDE_3_1_2 ) + +enum StdAccel +{ + AccelNone, + Open, + New, + Close, + Save, + Print, + Quit, + Undo, + Redo, + Cut, + Copy, + Paste, + SelectAll, + Deselect, + DeleteWordBack, + DeleteWordForward, + Find, + FindNext, + FindPrev, + Replace, + Home, + End, + Prior, + Next, + GotoLine, + AddBookmark, + ZoomIn, + ZoomOut, + Up, + Back, + Forward, + Reload, + PopupMenuContext, + ShowMenubar, + Help, + WhatsThis, + TextCompletion, + PrevCompletion, + NextCompletion, + SubstringCompletion, + RotateUp, + RotateDown, + WhatThis +}; + +%End + +}; // namespace KStdAccel + diff --git a/sip/kdecore/kstddirs.sip b/sip/kdecore/kstddirs.sip new file mode 100644 index 0000000..1eaf2a9 --- /dev/null +++ b/sip/kdecore/kstddirs.sip @@ -0,0 +1,69 @@ +// +// Copyright 2003 Jim Bublitz +// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE_3_1_1 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KStandardDirs +{ +%TypeHeaderCode +#include +%End + + +public: + KStandardDirs (); + void addPrefix (const QString&); + bool addResourceType (const char*, const QString&); + bool addResourceDir (const char*, const QString&); + QString findResource (const char*, const QString&) const; + Q_UINT32 calcResourceHash (const char*, const QString&, bool) const; + QStringList findDirs (const char*, const QString&) const; + QString findResourceDir (const char*, const QString&) const; + QStringList findAllResources (const char*, const QString& = QString::null, bool = 0, bool = 0) const; + QStringList findAllResources (const char*, const QString&, bool, bool, QStringList&) const; + static QString findExe (const QString&, const QString& = QString::null, bool = 0); + static int findAllExe (QStringList&, const QString&, const QString& = QString::null, bool = 0); + void addKDEDefaults (); + bool addCustomized (KConfig*); + QStringList resourceDirs (const char*) const; + QStringList allTypes () const; + QString saveLocation (const char*, const QString& = QString::null, bool = 1) const; + static bool makeDir (const QString&, int = 493); + static QString kde_default (const char*); + QString kfsstnd_prefixes (); + QString localkdedir () const; + static bool exists (const QString&); + +private: + KStandardDirs (const KStandardDirs&); + +}; // class KStandardDirs + + +%ModuleCode +#include +%End + +QString locate (const char*, const QString&, const KInstance* = KGlobal::instance()); +QString locateLocal (const char*, const QString&, const KInstance* = KGlobal::instance()); diff --git a/sip/kdecore/kstringhandler.sip b/sip/kdecore/kstringhandler.sip new file mode 100644 index 0000000..9021b92 --- /dev/null +++ b/sip/kdecore/kstringhandler.sip @@ -0,0 +1,89 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KStringHandler +{ +%TypeHeaderCode +#include +%End + + +public: + static QString word (const QString&, uint); + static QString word (const QString&, const char*); + static QString insword (const QString&, const QString&, uint); + static QString setword (const QString&, const QString&, uint); + static QString remrange (const QString&, const char*); + static QString remword (const QString&, uint); + static QString remword (const QString&, const QString&); + static QString capwords (const QString&); + static QStringList capwords (const QStringList&); + static QString reverse (const QString&); + static QStringList reverse (const QStringList&); + static QString ljust (const QString&, uint); + static QString rjust (const QString&, uint); + static QString center (const QString&, uint); + static QString lsqueeze (const QString&, uint = 40); + +%If ( KDE_3_2_0 - ) + static QString lEmSqueeze (const QString&, const QFontMetrics&, uint = 30); + static QString lPixelSqueeze (const QString&, const QFontMetrics&, uint); +%End + + static QString csqueeze (const QString&, uint = 40); + +%If ( KDE_3_2_0 - ) + static QString cEmSqueeze (const QString&, const QFontMetrics&, uint = 30); + static QString cPixelSqueeze (const QString&, const QFontMetrics&, uint); +%End + + static QString rsqueeze (const QString&, uint = 40); + +%If ( KDE_3_2_0 - ) + static QString rEmSqueeze (const QString&, const QFontMetrics&, uint = 30); + static QString rPixelSqueeze (const QString&, const QFontMetrics&, uint); +%End + + static bool matchFileName (const QString&, const QString&); +//ig static QStringList perlSplit (const QString&, const QString&, uint = 0); +//ig static QStringList perlSplit (const QChar&, const QString&, uint = 0); +//ig static QStringList perlSplit (const QRegExp&, const QString&, uint = 0); + +%If ( KDE_3_1_0 - ) + static QString tagURLs (const QString&); + +%If ( KDE_3_2_0 - ) + static QString obscure (const QString&); + static bool isUtf8 (const char*); + static QString from8Bit (const char*); +%End + +%End + + static bool matchFilename (const QString&, const QString&); + +}; // class KStringHandler + diff --git a/sip/kdecore/ktempdir.sip b/sip/kdecore/ktempdir.sip new file mode 100644 index 0000000..b7ea544 --- /dev/null +++ b/sip/kdecore/ktempdir.sip @@ -0,0 +1,58 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_2_0 - ) + +class KTempDir +{ +%TypeHeaderCode +#include +#include +%End + + +public: + KTempDir (QString = QString ::null , int = 448); + void setAutoDelete (bool); + int status () const; + QString name () const; + QDir* qDir (); + void unlink (); + bool existing () const; + +%If ( KDE_3_5_2 - ) + static bool removeDir (const QString&); +%End + + +protected: + bool create (const QString&, int); + void setError (int); + +}; // class KTempDir + +%End + diff --git a/sip/kdecore/ktempfile.sip b/sip/kdecore/ktempfile.sip new file mode 100644 index 0000000..6cd60bf --- /dev/null +++ b/sip/kdecore/ktempfile.sip @@ -0,0 +1,58 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KTempFile +{ +%TypeHeaderCode +#include +%End + + +public: + KTempFile (QString = QString ::null , QString = QString ::null , int = 384); + void setAutoDelete (bool); + int status (); + QString name (); + int handle (); +//ig FILE* fstream (); + QTextStream* textStream (); + QDataStream* dataStream (); + QFile* file (); + void unlink (); + +%If ( KDE_3_3_0 - ) + bool sync (); +%End + + bool close (); + +protected: + KTempFile (bool); + bool create (const QString&, const QString&, int); + void setError (int); + +}; // class KTempFile + diff --git a/sip/kdecore/ktimezones.sip b/sip/kdecore/ktimezones.sip new file mode 100644 index 0000000..50e998a --- /dev/null +++ b/sip/kdecore/ktimezones.sip @@ -0,0 +1,272 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_5_0 - ) + +class KTimezoneSource : KShared +{ +%TypeHeaderCode +#include +%End + + +public: + KTimezoneSource (const QString&); + virtual QString db (); + virtual bool parse (const QString&, KTimezoneDetails&) const; + +}; // class KTimezoneSource + +%End + + +%If ( KDE_3_5_0 - ) + +class KTimezone +{ +%TypeHeaderCode +#include +%End + + +public: + static const float UNKNOWN; + static bool isValidLatitude (float); + static bool isValidLongitude (float); + KTimezone (KSharedPtr, const QString&, const QString& = QString (), float = KTimezone ::UNKNOWN , float = KTimezone ::UNKNOWN , const QString& = QString ()); + QString name () const; + QString countryCode () const; + float latitude () const; + float longitude () const; + int offset (Qt::TimeSpec = Qt ::UTC ) const; + int offset (const QDateTime&) const; + QDateTime convert (const KTimezone*, const QDateTime&) const; + QString comment () const; + bool parse (KTimezoneDetails&) const; + +private: + KTimezone (const KTimezone&); + +public: +//force + typedef KSharedPtr TZSourcePtr; +//end + +}; // class KTimezone + +%End + + +%If ( KDE_3_5_0 - ) + +class KTimezoneDetails +{ +%TypeHeaderCode +#include +%End + + +public: + KTimezoneDetails (); + virtual void parseEnded (); + virtual void parseStarted (); + virtual void gotHeader (uint, uint, uint, uint, uint, uint); + virtual void gotTransitionTime (int, uint); + virtual void gotLocalTimeIndex (int, uint); + virtual void gotLocalTime (int, int, bool, uint); + virtual void gotAbbreviation (int, const QString&); + virtual void gotLeapAdjustment (int, uint, uint); + virtual void gotIsStandard (int, bool); + virtual void gotIsUTC (int, bool); + +}; // class KTimezoneDetails + +%End + + +%If ( KDE_3_5_0 - ) + +class KTimezones +{ +%TypeHeaderCode +#include +%End + + +public: + KTimezones (); + const KTimezone* local (); + const KTimezone* zone (const QString&); + typedef QMap ZoneMap; + const KTimezones::ZoneMap allZones (); + void add (KTimezone*); + +private: + KTimezones (const KTimezones&); + +}; // class KTimezones + +%End + + + +%If (KDE_3_5_0 - ) +%MappedType KSharedPtr +//converts KSharedPtr +{ +%TypeHeaderCode +#include +#include +%End + +%ConvertFromTypeCode + // Convert to a Python instance + + if (!sipCpp) + return NULL; + + KSharedPtr *cPtr = new KSharedPtr (*(KSharedPtr *)sipCpp); + KTimezoneSource *cpp = cPtr->data (); + PyObject *obj = sipConvertFromInstance (cpp, sipClass_KTimezoneSource, sipTransferObj); + + return obj; +%End + +%ConvertToTypeCode + // Convert a Python instance to a Ptr on the heap. + + if (sipIsErr == NULL) + return PyInstance_Check(sipPy); + + int iserr = 0; + KTimezoneSource *cpp = (KTimezoneSource *)sipForceConvertToType(sipPy, sipType_KTimezoneSource, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + *sipIsErr = 1; + return 0; + } + + *sipCppPtr = new KSharedPtr (cpp); + + return 1; +%End +}; +%End + + +%If (KDE_3_5_0 - ) +%MappedType KTimezones::ZoneMap +//converts a Python dict of QString:KTimezone +{ +%TypeHeaderCode +#include +#include +#include +%End + +%ConvertFromTypeCode + // Convert to a Python dict + + if (!sipCpp) + return PyDict_New(); + + PyObject *dict; + + // Create the dictionary. + + if ((dict = PyDict_New()) == NULL) + return NULL; + + // Get it. + + const QMap cppmap = *sipCpp; + QMap::ConstIterator it; + + for (it = cppmap.begin (); it != cppmap.end (); ++it) + { + QString acpp = it.key (); + KTimezone *bcpp = it.data (); + PyObject *ainst; + PyObject *binst = NULL; + if (((ainst = sipConvertFromNewType(new QString(acpp), sipType_QString, sipTransferObj)) == NULL) + || ((binst = sipConvertFromType(bcpp, sipType_KTimezone, sipTransferObj)) == NULL) + || (PyDict_SetItem (dict, ainst, binst) < 0)) + { + Py_XDECREF (ainst); + Py_XDECREF (binst); + Py_DECREF (dict); + return NULL; + } + } + + return dict; +%End + + +%ConvertToTypeCode + // Convert a Python dictionary to a QMap on the heap. + + if (sipIsErr == NULL) + return PyDict_Check(sipPy); + + QMap *cppmap = new QMap; + + PyObject *aelem, *belem; + SIP_SSIZE_T pos = 0; + QString *acpp; + KTimezone *bcpp; + + while (PyDict_Next(sipPy, &pos, &aelem, &belem)) + { + int iserr = 0, acpp_state; + + acpp = (QString *)sipForceConvertToType(aelem, sipType_QString, sipTransferObj, SIP_NOT_NONE, &acpp_state, &iserr); + bcpp = (KTimezone *)sipForceConvertToType(belem, sipType_KTimezone, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + if (acpp) + sipReleaseType(acpp, sipType_QString, acpp_state); + + *sipIsErr = 1; + delete cppmap; + return 0; + } + + cppmap->insert (*acpp, bcpp); + + sipReleaseType(acpp, sipType_QString, acpp_state); + } + + *sipCppPtr = cppmap; + + return 1; +%End +}; +%End + + diff --git a/sip/kdecore/kuniqueapplication.sip b/sip/kdecore/kuniqueapplication.sip new file mode 100644 index 0000000..9637c6e --- /dev/null +++ b/sip/kdecore/kuniqueapplication.sip @@ -0,0 +1,68 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KUniqueApplication : KApplication, DCOPObject +{ +%TypeHeaderCode +#include +%End + + +public: + KUniqueApplication (bool, bool, bool); + +%If ( KDE_3_3_0 - ) +//ig KUniqueApplication (Display*, Qt::HANDLE = 0, Qt::HANDLE = 0, bool = 1, bool = 0); +%End + + static void addCmdLineOptions (); + static bool start (); + bool process (const QCString&, const QByteArray&, QCString&, QByteArray&); + virtual int newInstance (); + +%If ( KDE_3_3_0 - ) + bool restoringSession (); + static void setHandleAutoStarted (); +%End + + +protected: + +%If ( KDE_3_3_0 - ) + virtual void virtual_hook (int, void*); +%End + + +public: + +%If ( - KDE_3_3_0 ) + KUniqueApplication (bool = 1, bool = 1); + virtual DCOPClient* dcopClient (); +%End + + +}; // class KUniqueApplication + diff --git a/sip/kdecore/kurl.sip b/sip/kdecore/kurl.sip new file mode 100644 index 0000000..2ce1475 --- /dev/null +++ b/sip/kdecore/kurl.sip @@ -0,0 +1,408 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KURL +{ +%TypeHeaderCode +#include +%End + + +public: + + enum AdjustementFlags + { + NoAdjustements, + StripFileProtocol + }; + + +%If ( KDE_3_2_0 - ) + + enum URIMode + { + Auto, + Invalid, + RawURI, + URL, + Mailto + }; + +%End + + KURL (); + KURL (const QString&, int = 0); + KURL (const char*, int = 0); + KURL (const QCString&, int = 0); + KURL (const KURL&); + KURL (const QUrl&); + KURL (const KURL&, const QString&, int = 0); + QString protocol () const; + void setProtocol (const QString&); + +%If ( KDE_3_2_0 - ) + int uriMode () const; +%End + + QString user () const; + void setUser (const QString&); + bool hasUser () const; + QString pass () /PyName=pass_/; + void setPass (const QString&); + bool hasPass () const; + QString host () const; + void setHost (const QString&); + bool hasHost () const; + ushort port () const; + void setPort (ushort); + QString path () const; + QString path (int) const; + void setPath (const QString&); + bool hasPath () const; + void cleanPath (bool = 0); + void adjustPath (int); + void setEncodedPathAndQuery (const QString&, int = 0); + void setEncodedPath (const QString&, int = 0); + QString encodedPathAndQuery (int = 0, bool = 0, int = 0) const; + void setQuery (const QString&, int = 0); + QString query () const; + QString ref () const; + void setRef (const QString&); + bool hasRef () const; + QString htmlRef () const; + QString encodedHtmlRef () const; + void setHTMLRef (const QString&); + bool hasHTMLRef () const; + bool isValid () const; + bool isMalformed () const; + bool isLocalFile () const; + void setFileEncoding (const QString&); + QString fileEncoding () const; + bool hasSubURL () const; + void addPath (const QString&); + QString queryItem (const QString&) const; + +%If ( KDE_3_2_0 - ) + QString queryItem (const QString&, int) const; +%End + + +%If ( KDE_3_1_0 - ) + + enum QueryItemsOptions + { + CaseInsensitiveKeys + }; + + QMap queryItems (int = 0) const; + +%If ( KDE_3_2_0 - ) + QMap queryItems (int, int) const; +%End + + void addQueryItem (const QString&, const QString&, int = 0); + void removeQueryItem (const QString&); +%End + + void setFileName (const QString&); + QString fileName (bool = 1) const; + QString directory (bool = 1, bool = 1) const; + +%If ( KDE_3_2_0 - ) + void setDirectory (const QString&); +%End + + bool cd (const QString&); + QString url (int = 0, int = 0) const; + QString prettyURL (int = 0) const; + QString prettyURL (int, KURL::AdjustementFlags) const; + +%If ( KDE_3_4_0 - ) + QString pathOrURL () const; +%End + + +%If ( KDE_3_0_1 - ) + QString htmlURL () const; +%End + + bool isEmpty () const; + KURL upURL () const; + +%If ( KDE_3_2_0 - ) + bool operator < (const KURL&) const; +%End + + +%If ( KDE_3_1_4 - ) + bool operator == (const KURL&) const; + bool operator == (const QString&) const; + bool operator != (const KURL&) const; + bool operator != (const QString&) const; +%End + + bool cmp (const KURL&, bool = 0) const; + +%If ( KDE_3_1_0 - ) + bool equals (const KURL&, bool = 0) const; +%End + + bool isParentOf (const KURL&) const; + static KURL::List split (const QString&); + static KURL::List split (const KURL&); + static KURL join (const KURL::List&); + +%If ( KDE_3_1_0 - ) + static KURL fromPathOrURL (const QString&); +%End + + static QString encode_string (const QString&, int = 0); + static QString encode_string_no_slash (const QString&, int = 0); + static QString decode_string (const QString&, int = 0); + static bool isRelativeURL (const QString&); + +%If ( KDE_3_2_0 - ) + static QString relativeURL (const KURL&, const KURL&, int = 0); + static QString relativePath (const QString&, const QString&, bool* = 0); + static KURL::URIMode uriModeForProtocol (const QString&); +%End + + QString filename (bool = 1) const; + +protected: + void reset (); + +%If ( KDE_3_2_0 - ) + void parseURL (const QString&, int = 0); + void parseRawURI (const QString&, int = 0); + void parseMailto (const QString&, int = 0); +%End + + void parse (const QString&, int = 0); + +public: +//force + + class List + { + + public: + List (); + List (const QStringList&); + QStringList toStringList () const; + bool isEmpty () const; + void append (const KURL&); + void prepend (const KURL&); + void remove (const KURL&); + const KURL& first () const; + const KURL& last () const; + int findIndex (const KURL&) const; + uint contains (const KURL&) const; + uint count () const; + void clear (); + int __len__ () /NonLazy/; +%MethodCode +//returns (int) + Py_BEGIN_ALLOW_THREADS + sipRes = sipCpp -> count(); + Py_END_ALLOW_THREADS +%End + + void __setitem__ (int, const KURL&); +%MethodCode +//takes index | (int) | value | (KURL) + int len; + + len = sipCpp -> count(); + + if ((a0 = sipConvertFromSequenceIndex(a0,len)) < 0) + sipIsErr = 1; + else + (*sipCpp)[a0] = *a1; +%End + + void __setitem__ (SIP_PYSLICE, const KURL::List&); +%MethodCode +//takes range | (a Python slice) | urlList | (KURL.List) + + int len; + SIP_SSIZE_T start, stop, step, slicelength; + + len = sipCpp -> count(); + + if (sipConvertFromSliceObject(a0,len,&start,&stop,&step,&slicelength) < 0) + sipIsErr = 1; + else + { + int vlen = a1 -> count(); + if (vlen != slicelength) + { + sipBadLengthForSlice(vlen,slicelength); + sipIsErr = 1; + } + else + { + KURL::List::ConstIterator it = a1 -> begin(); + for (int i = 0; i < slicelength; ++i) + { + (*sipCpp)[start] = *it; + start += step; + ++it; + } + } + } +%End + + void __delitem__ (int); +%MethodCode +//takes index | (int) + int len; + + len = sipCpp -> count(); + + if ((a0 = sipConvertFromSequenceIndex(a0,len)) < 0) + sipIsErr = 1; + else + sipCpp -> remove(sipCpp -> at(a0)); +%End + + void __delitem__ (SIP_PYSLICE); +%MethodCode +//takes range | (a Python slice) + int len; + SIP_SSIZE_T start, stop, step, slicelength; + + len = sipCpp -> count(); + if (sipConvertFromSliceObject(a0,len,&start,&stop,&step,&slicelength) < 0) + sipIsErr = 1; + else + for (int i = 0; i < slicelength; ++i) + { + sipCpp -> remove(sipCpp -> at(start)); + start += step - 1; + } +%End + + KURL operator [] (int); +%MethodCode +//returns (KURL) +//takes index | (int) + int len; + + len = sipCpp -> count(); + + if ((a0 = sipConvertFromSequenceIndex(a0,len)) < 0) + sipIsErr = 1; + else + sipRes = new KURL((*sipCpp)[a0]); +%End + + KURL::List operator [] (SIP_PYSLICE); +%MethodCode +//returns (KURL.List) +//takes range | (a Python slice) + int len; + SIP_SSIZE_T start, stop, step, slicelength; + + len = sipCpp -> count(); + + if (sipConvertFromSliceObject(a0,len,&start,&stop,&step,&slicelength) < 0) + sipIsErr = 1; + else + { + sipRes = new KURL::List(); + + for (int i = 0; i < slicelength; ++i) + { + (*sipRes) += (*sipCpp)[start]; + start += step; + } + } +%End + + KURL::List operator + (const KURL::List&); +%MethodCode +//returns (KURL.List) +//takes listToAdd | (KURL.List) + Py_BEGIN_ALLOW_THREADS +// sipRes = new KURL::List((const KURL::List&)((*sipCpp) + *a0)); + sipRes = new KURL::List (*sipCpp); + (*sipRes) += (*a0); + Py_END_ALLOW_THREADS +%End + + KURL::List& operator += (const KURL::List&); + KURL::List operator * (int); +%MethodCode + sipRes = new KURL::List(); + + for (int i = 0; i < a0; ++i) + (*sipRes) += (*sipCpp); +%End + + KURL::List& operator *= (int); +%MethodCode +//returns (KURL.List) +//takes val | (int) + KURL::List orig(*sipCpp); + + sipCpp -> clear(); + + for (int i = 0; i < a0; ++i) + (*sipCpp) += orig; +%End + + bool operator == (const KURL::List&); + bool operator != (const KURL::List&); + int __contains__ (KURL) /NonLazy/; +%MethodCode +//returns (bool) +//takes a0 | (KURL) + + QString s = a0->url (); + sipRes = 0; + KURL::List::Iterator it; + for (it = sipCpp->begin (); (it != sipCpp->end ()) && (sipRes == 0); it++) + if (s == (*it).url ()) + sipRes = 1; +%End + + + }; // class List + + +public: +//end + +}; // class KURL + +bool urlcmp (const QString&, const QString&); +bool urlcmp (const QString&, const QString&, bool, bool); + +%If ( KDE_3_1_4 - ) +//igx QDataStream& operator << (QDataStream&, const KURL&); +//igx QDataStream& operator >> (QDataStream&, KURL&); +%End diff --git a/sip/kdecore/kurldrag.sip b/sip/kdecore/kurldrag.sip new file mode 100644 index 0000000..12fceb4 --- /dev/null +++ b/sip/kdecore/kurldrag.sip @@ -0,0 +1,76 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_1_4 - ) + +class KURLDrag : QUriDrag +{ +%TypeHeaderCode +#include +%End + + +public: + KURLDrag (const KURL::List&, QWidget*, const char*); + KURLDrag (const KURL::List&, const QMap&, QWidget*, const char*); + +%If ( KDE_3_4_0 - ) + void setExportAsText (bool); +%End + + static KURLDrag* newDrag (const KURL::List&, QWidget* = 0, const char* = 0); + static KURLDrag* newDrag (const KURL::List&, const QMap&, QWidget* = 0, const char* = 0); + QMap& metaData (); + static bool decode (const QMimeSource*, KURL::List&); + static bool decode (const QMimeSource*, KURL::List&, QMap&); + +%If ( KDE_3_2_0 - ) + static QString urlToString (const KURL&); + static KURL stringToUrl (const QCString&); + +%If ( KDE_3_5_0 - ) + virtual const char* format (int) const; + virtual QByteArray encodedData (const char*) const; +%End + +%End + + +protected: + KURLDrag (const QStrList&, const QMap&, QWidget*, const char*); + +protected: + +%If ( - KDE_3_5_0 ) + virtual const char* format (int) const; + virtual QByteArray encodedData (const char*) const; +%End + + +}; // class KURLDrag + +%End + diff --git a/sip/kdecore/kuser.sip b/sip/kdecore/kuser.sip new file mode 100644 index 0000000..d79ea99 --- /dev/null +++ b/sip/kdecore/kuser.sip @@ -0,0 +1,74 @@ +// +// Copyright 2004 Jim Bublitz +// Earlier copyrights 1998 - 2003 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE_3_2_2 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_2_0 - ) + +class KUser +{ +%TypeHeaderCode +#include <../extra/kde320/ksharedptr.h> +#include +%End + + +public: + + enum UIDMode + { + UseEffectiveUID, + UseRealUserID + }; + + KUser (KUser::UIDMode = UseEffectiveUID ); + KUser (long); + KUser (const QString&); + KUser (const char*); +//ig KUser (passwd*); + bool operator == (const KUser&) const; + bool operator != (const KUser&) const; + bool isValid () const; + long uid () const; + long gid () const; + bool isSuperUser () const; + QString loginName () const; + QString fullName () const; + QString roomNumber () const; + QString workPhone () const; + QString homePhone () const; + QString homeDir () const; + QString shell () const; + +%If ( - KDE_3_2_1 ) + +private: + KUser (const KUser&); +%End + + +}; // class KUser + +%End + diff --git a/sip/kdecore/kvmallocator.sip b/sip/kdecore/kvmallocator.sip new file mode 100644 index 0000000..207b59e --- /dev/null +++ b/sip/kdecore/kvmallocator.sip @@ -0,0 +1,42 @@ +// +// Copyright 2003 Jim Bublitz +// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE_3_1_1 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KVMAllocator +{ +%TypeHeaderCode +#include +%End + +public: + KVMAllocator (); +//ig Block* allocate (size_t); +//ig void free (Block*); +//ig void copy (void*, Block*, int = 0, size_t = 0); +//ig void copy (Block*, void*, int = 0, size_t = 0); +//ig void* map (Block*); +//ig void unmap (Block*); + +}; // class KVMAllocator diff --git a/sip/kdecore/kwin.sip b/sip/kdecore/kwin.sip new file mode 100644 index 0000000..60095d7 --- /dev/null +++ b/sip/kdecore/kwin.sip @@ -0,0 +1,188 @@ +// +// Copyright 2005 Jim Bublitz +// Earlier copyrights 1998 - 2004 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE_3_3_2 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KWin +{ +%TypeHeaderCode +#include +%End + + +public: + +%If ( KDE_3_2_0 - ) + static void activateWindow (WId, long = 0); + static void forceActiveWindow (WId, long = 0); +%End + + static void setActiveWindow (WId); + +%If ( KDE_3_2_0 - ) + static void demandAttention (WId, bool = 1); + static void setUserTime (WId, long); +%End + + static void invokeContextHelp (); + static void setSystemTrayWindowFor (WId, WId); + +%If ( KDE_3_2_0 - ) + + class WindowInfo + { + + public: + WindowInfo (WId, ulong, ulong); + WindowInfo (); + bool valid (bool = 0) const; + WId win () const; + ulong state () const; + +%If ( KDE_3_2_1 - ) + bool hasState (ulong) const; +%End + + bool isMinimized () const; + NET::MappingState mappingState () const; + +%If ( KDE_3_3_0 - ) + NETExtendedStrut extendedStrut () const; +%End + + NETStrut strut () const; + NET::WindowType windowType (int) const; + QString visibleName () const; + QString visibleNameWithState () const; + QString name () const; + QString visibleIconName () const; + QString visibleIconNameWithState () const; + QString iconName () const; + bool isOnCurrentDesktop () const; + bool isOnDesktop (int) const; + bool onAllDesktops () const; + int desktop () const; + QRect geometry () const; + QRect frameGeometry () const; + WId transientFor () const; + WId groupLeader () const; + +%If ( KDE_3_3_0 - ) + QCString windowClassClass () const; + QCString windowClassName () const; + QCString windowRole () const; + QCString clientMachine () const; +%End + + bool actionSupported (NET::Action) const; + WindowInfo (const KWin::WindowInfo&); + + }; // class WindowInfo + + +public: +%End + + +%If ( KDE_3_2_0 - ) + static KWin::WindowInfo windowInfo (WId, ulong = 0, ulong = 0); + static WId transientFor (WId); + static WId groupLeader (WId); +%End + + static QPixmap icon (WId, int = -1, int = -1, bool = 0); + +%If ( KDE_3_2_0 - ) + + enum IconSource + { + NETWM, + WMHints, + ClassHint, + XApp + }; + + static QPixmap icon (WId, int, int, bool, int); +%End + + static void setIcons (WId, const QPixmap&, const QPixmap&); + static void setType (WId, NET::WindowType); + static void setState (WId, ulong); + static void clearState (WId, ulong); + static void setOnAllDesktops (WId, bool); + static void setOnDesktop (WId, int); + +%If ( KDE_3_3_0 - ) + static void setExtendedStrut (WId, int, int, int, int, int, int, int, int, int, int, int, int); +%End + + static void setStrut (WId, int, int, int, int); + static int currentDesktop (); + static int numberOfDesktops (); + static void setCurrentDesktop (int); + static void iconifyWindow (WId, bool = 1); + static void deIconifyWindow (WId, bool = 1); + +%If ( KDE_3_2_0 - ) + static void raiseWindow (WId); + static void lowerWindow (WId); + static bool icccmCompliantMappingState (); + static bool allowedActionsSupported (); + static QString readNameProperty (WId, ulong); +%End + + + class Info + { + + public: + WId win; + ulong state; + +%If ( KDE_3_2_0 - ) + bool isMinimized () const; +%End + + bool isIconified () const; + NET::MappingState mappingState; + NETStrut strut; + NET::WindowType windowType; + QString visibleName; + QString name; + int desktop; + bool onAllDesktops; + pid_t pid; + QRect geometry; + QRect frameGeometry; + QString visibleNameWithState () const; + + }; // class Info + + +public: + static KWin::Info info (WId); + static void appStarted (); + +}; // class KWin + diff --git a/sip/kdecore/kwinmodule.sip b/sip/kdecore/kwinmodule.sip new file mode 100644 index 0000000..3795b62 --- /dev/null +++ b/sip/kdecore/kwinmodule.sip @@ -0,0 +1,158 @@ +// +// Copyright 2005 Jim Bublitz +// Earlier copyrights 1998 - 2004 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE_3_3_2 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KWinModule : QObject +{ +%TypeHeaderCode +#include +%End + + +public: + +%If ( KDE_3_2_0 - ) + + enum + { + INFO_DESKTOP, + INFO_WINDOWS, + INFO_ALL + }; + + KWinModule (QObject* /TransferThis/, int); +%End + + KWinModule (QObject* /TransferThis/ = 0); + const QValueList& windows () const; + const QValueList& stackingOrder () const; + bool hasWId (WId) const; + const QValueList& systemTrayWindows () const; + int currentDesktop () const; + int numberOfDesktops () const; + WId activeWindow () const; + QRect workArea (int = -1) const; + QRect workArea (const QValueList&, int = -1) const; + QString desktopName (int) const; + void setDesktopName (int, const QString&); + void doNotManage (const QString&); + +signals: + void currentDesktopChanged (int); + void windowAdded (WId); + void windowRemoved (WId); + void activeWindowChanged (WId); + void desktopNamesChanged (); + void numberOfDesktopsChanged (int); + void systemTrayWindowAdded (WId); + void systemTrayWindowRemoved (WId); + void workAreaChanged (); + void strutChanged (); + void stackingOrderChanged (); + +%If ( KDE_3_2_0 - ) +//ig void windowChanged (WId, const ulong*); +%End + + void windowChanged (WId, uint); + void windowChanged (WId); + +protected: + +%If ( KDE_3_2_0 - ) + virtual void connectNotify (const char*); +%End + + +}; // class KWinModule + + + +%MappedType QValueList +//converts a Python list of WId +{ +%TypeHeaderCode +#include +#include +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New(0); + + // Create the list + PyObject *pylist; + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + QValueList *cpplist = (QValueList *)sipCpp; + + // Get it. + QValueList::Iterator it; + for( it = cpplist->begin(); it != cpplist->end(); ++it ) + { + WId cpp = *it; + if (PyList_Append (pylist, PyInt_FromLong ((int) cpp)) < 0) + { + Py_DECREF (pylist); + return NULL; + } + } + + return pylist; +%End + + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QValueList *cpplist = new QValueList; + + PyObject *elem; + WId cpp; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + cpp = (WId) PyInt_AS_LONG (elem); + if (iserr) + { + *sipIsErr = 1; + delete cpplist; + return 0; + } + + cpplist->append (cpp); + } + + *sipCppPtr = cpplist; + + return 1; +%End +}; + + diff --git a/sip/kdecore/kxmessages.sip b/sip/kdecore/kxmessages.sip new file mode 100644 index 0000000..4c03dc0 --- /dev/null +++ b/sip/kdecore/kxmessages.sip @@ -0,0 +1,55 @@ +// +// Copyright 2003 Jim Bublitz +// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE_3_1_0 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KXMessages : QWidget +{ +%TypeHeaderCode +#include +#include +%End + +public: + KXMessages (const char* = 0, QWidget*/TransferThis/ = 0); + void sendMessage (WId, const char*, const QString&); + void broadcastMessage (const char*, const QString&); +//ig static bool sendMessageX (Display*, WId, const char*, const QString&); +//ig static bool broadcastMessageX (Display*, const char*, const QString&); + +signals: + void gotMessage (const QString&); + +protected: +//ig virtual bool x11Event (XEvent*); + +protected: + +%If ( - KDE_3_0_1 ) +//ig static void send_message_internal (WId, const QString&, long, Display*, Atom, Window); +%End + + +}; // class KXMessages + diff --git a/sip/kdecore/netwm.sip b/sip/kdecore/netwm.sip new file mode 100644 index 0000000..a7ed3ea --- /dev/null +++ b/sip/kdecore/netwm.sip @@ -0,0 +1,628 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class NETRootInfo : NET +{ +%TypeHeaderCode +#include +%End + + +public: + +%If ( KDE_3_2_0 - ) + + enum + { + PROTOCOLS, + WINDOW_TYPES, + STATES, + PROTOCOLS2, + ACTIONS, + PROPERTIES_SIZE + }; + + NETRootInfo (Window, const char*, SIP_PYLIST, int = -1, bool = 1) [(Display*, Window, const char*, const ulong*, int, int = -1, bool = 1)]; +%MethodCode +//takes supportWindow | (Window) | wmName | (a Python string) | properties | (a Python list) | screen | (int = -1) | doActivate | (bool = True) + int count = PyList_Size (a2); + unsigned long *list = new unsigned long [count]; + + for (int i = 0; i < count; i++) + list [i] = (unsigned long)PyInt_AS_LONG (PyList_GET_ITEM (a2, i)); + + Py_BEGIN_ALLOW_THREADS + Display *d = qt_xdisplay (); + sipCpp = new sipNETRootInfo (d, a0, a1, list, count, a3, a4); + Py_END_ALLOW_THREADS + + delete list; +%End + +%End + + NETRootInfo (Window, const char*, ulong, int = -1, bool = 1) [(Display*, Window, const char*, ulong, int = -1, bool = 1)]; +%MethodCode +//takes supportWindow | (Window) | wmName | (a Python string) | properties | (ulong) | screen | (int = -1) | doActivate | (bool = 1) + + Py_BEGIN_ALLOW_THREADS + Display *d = qt_xdisplay (); + sipCpp = new sipNETRootInfo (d, a0, a1, a2, a3, a4); + Py_END_ALLOW_THREADS +%End + + +%If ( KDE_3_2_0 - ) + NETRootInfo (SIP_PYLIST, int = -1, bool = 1) [(Display*, const ulong*, int, int = -1, bool = 1)]; +%MethodCode +//takes properties | (ulong) | screen | (int = -1) | doActivate | (bool = 1) + int count = PyList_Size (a0); + unsigned long *list = new unsigned long [count]; + + for (int i = 0; i < count; i++) + list [i] = (unsigned long)PyInt_AS_LONG (PyList_GET_ITEM (a2, i)); + + Py_BEGIN_ALLOW_THREADS + Display *d = qt_xdisplay (); + sipCpp = new sipNETRootInfo (d, list, count, a1, a2); + Py_END_ALLOW_THREADS + + delete list; +%End + +%End + + NETRootInfo (ulong, int = -1, bool = 1) [(Display*, ulong, int = -1, bool = 1)]; +%MethodCode +//takes properties | (ulong) | screen | (int = -1) | doActivate | (bool = 1) + + Py_BEGIN_ALLOW_THREADS + Display *d = qt_xdisplay (); + sipCpp = new sipNETRootInfo (d, a0, a1, a2); + Py_END_ALLOW_THREADS +%End + + NETRootInfo (const NETRootInfo&); + Display* x11Display () const; + Window rootWindow () const; + Window supportWindow () const; + const char* wmName () const; + int screenNumber () const; + +%If ( KDE_3_2_0 - ) + bool isSupported (NET::Property) const; + bool isSupported (NET::Property2) const; + bool isSupported (NET::WindowType) const; + bool isSupported (NET::State) const; + bool isSupported (NET::Action) const; + SIP_PYLIST supportedProperties () const [ulong* ()]; +%MethodCode +//returns a Python list of ulong + int count = 5; + const ulong *props; + Py_BEGIN_ALLOW_THREADS + props = sipCpp->supportedProperties (); + Py_END_ALLOW_THREADS + + for (int i = 0; i < count; i++) + PyList_Append (sipRes, PyLong_FromUnsignedLong (props [i])); +%End + + SIP_PYLIST passedProperties () const [ulong* ()]; +%MethodCode +//returns a Python list of ulong + int count = 5; + const ulong *props; + Py_BEGIN_ALLOW_THREADS + props = sipCpp->passedProperties (); + Py_END_ALLOW_THREADS + + for (int i = 0; i < count; i++) + PyList_Append (sipRes, PyLong_FromUnsignedLong (props [i])); +%End + +%End + + ulong supported () const; + SIP_PYLIST clientList () const [Window* ()]; +%MethodCode +//returns a Python list of Window + int count = sipCpp->clientListCount (); + const Window *props; + Py_BEGIN_ALLOW_THREADS + props = sipCpp->clientList (); + Py_END_ALLOW_THREADS + + for (int i = 0; i < count; i++) + PyList_Append (sipRes, PyLong_FromUnsignedLong ((unsigned long)props [i])); +%End + + int clientListCount () const; + SIP_PYLIST clientListStacking () const [Window* ()]; +%MethodCode +//returns a Python list of Window + int count = sipCpp->clientListStackingCount (); + const Window *props; + Py_BEGIN_ALLOW_THREADS + props = sipCpp->clientListStacking (); + Py_END_ALLOW_THREADS + + for (int i = 0; i < count; i++) + PyList_Append (sipRes, PyLong_FromUnsignedLong ((unsigned long)props [i])); +%End + + int clientListStackingCount () const; + SIP_PYLIST kdeSystemTrayWindows () const [Window* ()]; +%MethodCode +//returns a Python list of Window + int count = sipCpp->kdeSystemTrayWindowsCount (); + const Window *props; + Py_BEGIN_ALLOW_THREADS + props = sipCpp->kdeSystemTrayWindows (); + Py_END_ALLOW_THREADS + + for (int i = 0; i < count; i++) + PyList_Append (sipRes, PyLong_FromUnsignedLong ((unsigned long)props [i])); +%End + + int kdeSystemTrayWindowsCount () const; + NETSize desktopGeometry (int) const; + NETPoint desktopViewport (int) const; + NETRect workArea (int) const; + const char* desktopName (int) const; + SIP_PYLIST virtualRoots () const [Window* ()]; +%MethodCode +//returns a Python list of Window + int count = sipCpp->virtualRootsCount (); + const Window *props; + Py_BEGIN_ALLOW_THREADS + props = sipCpp->virtualRoots (); + Py_END_ALLOW_THREADS + + for (int i = 0; i < count; i++) + PyList_Append (sipRes, PyLong_FromUnsignedLong ((unsigned long)props [i])); +%End + + int virtualRootsCount () const; + int numberOfDesktops () const; + int currentDesktop () const; + Window activeWindow () const; + void activate (); + void setClientList (SIP_PYLIST) [void (Window*, uint)]; +%MethodCode +//takes windows | (a Python list of Window) + + int n = PyList_Size (a0); + Window array [n]; + PyObject *elem; + + for (int i = 0; i < n; i++) + { + elem = PyList_GetItem (a0, i); + if (!PyLong_Check (elem)) + return NULL; + + array [i] = (Window) PyLong_AsUnsignedLong (elem); + } + + Py_BEGIN_ALLOW_THREADS + sipCpp->setClientList (array, n); + Py_END_ALLOW_THREADS +%End + + void setClientListStacking (SIP_PYLIST) [void (Window*, uint)]; +%MethodCode +//takes windows | (a Python list of Window) + + int n = PyList_Size (a0); + Window array [n]; + PyObject *elem; + + for (int i = 0; i < n; i++) + { + elem = PyList_GetItem (a0, i); + if (!PyLong_Check (elem)) + return NULL; + + array [i] = (Window) PyLong_AsUnsignedLong (elem); + } + + Py_BEGIN_ALLOW_THREADS + sipCpp->setClientListStacking (array, n); + Py_END_ALLOW_THREADS +%End + + void setKDESystemTrayWindows (SIP_PYLIST) [void (Window*, uint)]; +%MethodCode +//takes windows | (a Python list of Window) + + int n = PyList_Size (a0); + Window array [n]; + PyObject *elem; + + for (int i = 0; i < n; i++) + { + elem = PyList_GetItem (a0, i); + if (!PyLong_Check (elem)) + return NULL; + + array [i] = (Window) PyLong_AsUnsignedLong (elem); + } + + Py_BEGIN_ALLOW_THREADS + sipCpp->setKDESystemTrayWindows (array, n); + Py_END_ALLOW_THREADS +%End + + void setCurrentDesktop (int); + void setDesktopGeometry (int, const NETSize&); + void setDesktopViewport (int, const NETPoint&); + void setNumberOfDesktops (int); + void setDesktopName (int, const char*); + +%If ( KDE_3_2_0 - ) + void setActiveWindow (Window, NET::RequestSource, Time, Window); +%End + + void setActiveWindow (Window); + void setWorkArea (int, const NETRect&); + void setVirtualRoots (SIP_PYLIST) [void (Window*, uint)]; +%MethodCode +//takes windows | (a Python list of Window) + int n = PyList_Size (a0); + + Window array [n]; + PyObject *elem; + + for (int i = 0; i < n; i++) + { + elem = PyList_GetItem (a0, i); + if (!PyLong_Check (elem)) + return NULL; + + array [i] = (Window) PyLong_AsUnsignedLong (elem); + } + + Py_BEGIN_ALLOW_THREADS + sipCpp->setVirtualRoots (array, n); + Py_END_ALLOW_THREADS +%End + + +%If ( KDE_3_5_0 - ) + void setShowingDesktop (bool); + bool showingDesktop () const; +%End + + void closeWindowRequest (Window); + void moveResizeRequest (Window, int, int, Direction); + +%If ( KDE_3_2_0 - ) + void moveResizeWindowRequest (Window, int, int, int, int, int); + +%If ( KDE_3_3_0 - ) + void restackRequest (Window, RequestSource, Window, int, Time); +%End + + void restackRequest (Window, Window, int); +//ig void event (XEvent*, ulong*, int); +%End + +//ig ulong event (XEvent*); + +protected: + virtual void addClient (Window); + virtual void removeClient (Window); + virtual void addSystemTrayWin (Window); + virtual void removeSystemTrayWin (Window); + virtual void changeNumberOfDesktops (int); + virtual void changeDesktopGeometry (int, const NETSize&); + virtual void changeDesktopViewport (int, const NETPoint&); + virtual void changeCurrentDesktop (int); + virtual void changeActiveWindow (Window); + virtual void closeWindow (Window); + virtual void moveResize (Window, int, int, ulong); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class NETRootInfo + + +%If ( KDE_3_2_0 - ) + +class NETRootInfo2 : NETRootInfo +{ +%TypeHeaderCode +#include +%End + + +public: + NETRootInfo2 (Window, const char*, SIP_PYLIST, int = -1, bool = 1) [(Display*, Window, const char*, ulong*, int, int = -1, bool = 1)]; +%MethodCode +//takes window | (Window) | rootWindow | (Window) | properties | (ulong) | role | (int) | a3 | (Role = Client) + int count = PyList_Size (a2); + unsigned long *list = new unsigned long [count]; + + for (int i = 0; i < count; i++) + list [i] = (unsigned long)PyInt_AS_LONG (PyList_GET_ITEM (a2, i)); + + Py_BEGIN_ALLOW_THREADS + Display *d = qt_xdisplay (); + sipCpp = new sipNETRootInfo2 (d, a0, a1, list, count, a3, a4); + Py_END_ALLOW_THREADS + + delete list; +%End + +//ig NETRootInfo2 (Display*, const ulong*, int, int = -1, bool = 1); + void sendPing (Window, Time); + +protected: + virtual void gotPing (Window, Time); + virtual void changeActiveWindow (Window, NET::RequestSource, Time, Window); + virtual void restackWindow (Window, Window, int); + virtual void moveResizeWindow (Window, int, int, int, int, int); + +}; // class NETRootInfo2 + +%End + + +%If ( KDE_3_3_0 - ) + +class NETRootInfo3 : NETRootInfo2 +{ +%TypeHeaderCode +#include +%End + + +public: + NETRootInfo3 (Window, const char*, SIP_PYLIST, int = -1, bool = 1) [(Display*, Window, const char*, ulong*, int, int = -1, bool = 1)]; +%MethodCode +//takes window | (Window) | rootWindow | (Window) | properties | (ulong) | role | (int) | a3 | (Role = Client) + int count = PyList_Size (a2); + unsigned long *list = new unsigned long [count]; + + for (int i = 0; i < count; i++) + list [i] = (unsigned long)PyInt_AS_LONG (PyList_GET_ITEM (a2, i)); + + Py_BEGIN_ALLOW_THREADS + Display *d = qt_xdisplay (); + sipCpp = new sipNETRootInfo3 (d, a0, a1, list, count, a3, a4); + Py_END_ALLOW_THREADS + + delete list; +%End + +//ig NETRootInfo3 (Display*, const ulong*, int, int = -1, bool = 1); + void takeActivity (Window, Time, long); + +protected: + virtual void restackWindow (Window, RequestSource, Window, int, Time); + virtual void gotTakeActivity (Window, Time, long); + +}; // class NETRootInfo3 + +%End + + +%If ( KDE_3_5_0 - ) + +class NETRootInfo4 : NETRootInfo3 +{ +%TypeHeaderCode +#include +%End + + +public: + NETRootInfo4 (Window, const char*, SIP_PYLIST, int = -1, bool = 1) [(Display*, Window, const char*, ulong*, int, int = -1, bool = 1)]; +%MethodCode +//takes window | (Window) | rootWindow | (Window) | properties | (ulong) | role | (int) | a3 | (Role = Client) + int count = PyList_Size (a2); + unsigned long *list = new unsigned long [count]; + + for (int i = 0; i < count; i++) + list [i] = (unsigned long)PyInt_AS_LONG (PyList_GET_ITEM (a2, i)); + + Py_BEGIN_ALLOW_THREADS + Display *d = qt_xdisplay (); + sipCpp = new sipNETRootInfo4 (d, a0, a1, list, count, a3, a4); + Py_END_ALLOW_THREADS + + delete list; +%End + +//ig NETRootInfo4 (Display*, const ulong*, int, int = -1, bool = 1); + +protected: + virtual void changeShowingDesktop (bool); + +}; // class NETRootInfo4 + +%End + + +class NETWinInfo : NET +{ +%TypeHeaderCode +#include +%End + + +public: + +%If ( KDE_3_2_0 - ) + + enum + { + PROTOCOLS, + PROTOCOLS2, + PROPERTIES_SIZE + }; + + NETWinInfo (Window, Window, SIP_PYLIST, Role = Client ) [(Display*, Window, Window, const ulong*, int, Role = Client )]; +%MethodCode +//takes window | (Window) | rootWindow | (Window) | properties | (ulong) | role | (int) | a3 | (Role = Client) + int count = PyList_Size (a2); + unsigned long *list = new unsigned long [count]; + + for (int i = 0; i < count; i++) + list [i] = (unsigned long)PyInt_AS_LONG (PyList_GET_ITEM (a2, i)); + + Py_BEGIN_ALLOW_THREADS + Display *d = qt_xdisplay (); + sipCpp = new sipNETWinInfo (d, a0, a1, list, count, a3); + Py_END_ALLOW_THREADS + + delete list; +%End + +%End + + NETWinInfo (Window, Window, ulong, Role = Client ) [(Display*, Window, Window, ulong, Role = Client )]; +%MethodCode +//returns () +//takes window (Window) | rootWindow (Window) | properties (ulong) | role (Role = Client) + + Py_BEGIN_ALLOW_THREADS + Display *d = qt_xdisplay (); + sipCpp = new sipNETWinInfo (d, a0, a1, a2, a3); + Py_END_ALLOW_THREADS +%End + + NETWinInfo (const NETWinInfo&); + +%If ( KDE_3_2_0 - ) + bool hasNETSupport () const; + SIP_PYLIST passedProperties () const [ulong* ()]; +%MethodCode +//returns a Python list of ulong + int count = 2; + const ulong *props; + Py_BEGIN_ALLOW_THREADS + props = sipCpp->passedProperties (); + Py_END_ALLOW_THREADS + + for (int i = 0; i < count; i++) + PyList_Append (sipRes, PyLong_FromUnsignedLong (props [i])); +%End + +%End + + ulong properties () const; + NETRect iconGeometry () const; + ulong state () const; + +%If ( KDE_3_3_0 - ) + NETExtendedStrut extendedStrut () const; +%End + + NETStrut strut () const; + +%If ( KDE_3_2_0 - ) + WindowType windowType (ulong) const; +%End + + WindowType windowType () const; + const char* name () const; + const char* visibleName () const; + const char* iconName () const; + const char* visibleIconName () const; + int desktop () const; + int pid () const; + Bool handledIcons () const; + Window kdeSystemTrayWinFor () const; + MappingState mappingState () const; +//ig void setIcon (NETIcon, Bool = True); + void setIconGeometry (NETRect); + +%If ( KDE_3_3_0 - ) + void setExtendedStrut (const NETExtendedStrut&); +%End + + void setStrut (NETStrut); + void setState (ulong, ulong); + void setWindowType (WindowType); + void setName (const char*); + void setVisibleName (const char*); + void setIconName (const char*); + void setVisibleIconName (const char*); + void setDesktop (int); + void setPid (int); + void setHandledIcons (Bool); + void setKDESystemTrayWinFor (Window); + +%If ( KDE_3_5_0 - ) + void setFrameExtents (NETStrut); +%End + + void setKDEFrameStrut (NETStrut); +//ig NETIcon icon (int = -1, int = -1) const; + +%If ( KDE_3_2_0 - ) + void setUserTime (Time); + Time userTime () const; + void setStartupId (const char*); + const char* startupId () const; + void setAllowedActions (ulong); + ulong allowedActions () const; + Window transientFor () const; + Window groupLeader () const; + +%If ( KDE_3_3_0 - ) + const char* windowClassClass () const; + const char* windowClassName () const; + const char* windowRole () const; + const char* clientMachine () const; +%End + +%End + + void kdeGeometry (NETRect&, NETRect&); + +%If ( KDE_3_2_0 - ) +//ig void event (XEvent*, ulong*, int); +%End + +//ig ulong event (XEvent*); +//ig const int OnAllDesktops; + +protected: + virtual void changeDesktop (int); + virtual void changeState (ulong, ulong); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class NETWinInfo + +//force +typedef ulong Time; +//end diff --git a/sip/kdecore/netwm_def.sip b/sip/kdecore/netwm_def.sip new file mode 100644 index 0000000..7c14ba7 --- /dev/null +++ b/sip/kdecore/netwm_def.sip @@ -0,0 +1,535 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdecore version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class NETPoint +{ +%TypeHeaderCode +#include +%End + + +public: + NETPoint (); + int x; + int y; + +}; // class NETPoint + + +class NETSize +{ +%TypeHeaderCode +#include +%End + + +public: + NETSize (); + int width; + int height; + +}; // class NETSize + + +class NETRect +{ +%TypeHeaderCode +#include +%End + + +public: + NETPoint pos; + NETSize size; + +}; // class NETRect + + +class NETIcon +{ +%TypeHeaderCode +#include +%End + + +public: + NETIcon (); + NETSize size; +//ig uchar* data; + +}; // class NETIcon + + +%If ( KDE_3_3_0 - ) + +class NETExtendedStrut +{ +%TypeHeaderCode +#include +%End + + +public: + NETExtendedStrut (); + int left_width; + int left_start; + int left_end; + int right_width; + int right_start; + int right_end; + int top_width; + int top_start; + int top_end; + int bottom_width; + int bottom_start; + int bottom_end; + +}; // class NETExtendedStrut + +%End + + +class NETStrut +{ +%TypeHeaderCode +#include +%End + + +public: + NETStrut (); + int left; + int right; + int top; + int bottom; + +}; // class NETStrut + + +class NET +{ +%TypeHeaderCode +#include +%End + + +public: + + enum Role + { + Client, + WindowManager + }; + + +%If ( KDE_3_2_0 - ) + + enum WindowType + { + Unknown, + Normal, + Desktop, + Dock, + Toolbar, + Menu, + Dialog, + Override, + TopMenu, + Tool, + Utility, + Splash + }; + + + enum WindowTypeMask + { + NormalMask, + DesktopMask, + DockMask, + ToolbarMask, + MenuMask, + DialogMask, + OverrideMask, + TopMenuMask, + UtilityMask, + SplashMask + }; + + +%If ( KDE_3_3_1 - ) + + enum + { + AllTypesMask + }; + +%End + + +%If ( KDE_3_3_0 - ) + static bool typeMatchesMask (NET::WindowType, ulong); +%End + + + enum State + { + Modal, + Sticky, + MaxVert, + MaxHoriz, + Max, + Shaded, + SkipTaskbar, + KeepAbove, + StaysOnTop, + SkipPager, + Hidden, + FullScreen, + KeepBelow, + DemandsAttention + }; + + +%If ( KDE_3_5_1 - ) + + enum Direction + { + TopLeft, + Top, + TopRight, + Right, + BottomRight, + Bottom, + BottomLeft, + Left, + Move, + KeyboardSize, + KeyboardMove, + MoveResizeCancel + }; + +%End + +%End + + + enum MappingState + { + Visible, + Withdrawn, + Iconic + }; + + +%If ( KDE_3_2_0 - ) + + enum Action + { + ActionMove, + ActionResize, + ActionMinimize, + ActionShade, + ActionStick, + ActionMaxVert, + ActionMaxHoriz, + ActionMax, + ActionFullScreen, + ActionChangeDesktop, + ActionClose + }; + + +%If ( KDE_3_5_0 - ) + + enum Property + { + Supported, + ClientList, + ClientListStacking, + NumberOfDesktops, + DesktopGeometry, + DesktopViewport, + CurrentDesktop, + DesktopNames, + ActiveWindow, + WorkArea, + SupportingWMCheck, + VirtualRoots, + KDESystemTrayWindows, + CloseWindow, + WMMoveResize, + WMName, + WMVisibleName, + WMDesktop, + WMWindowType, + WMState, + WMStrut, + WMIconGeometry, + WMIcon, + WMPid, + WMHandledIcons, + WMPing, + WMKDESystemTrayWinFor, + XAWMState, + WMFrameExtents, + WMKDEFrameStrut, + WMIconName, + WMVisibleIconName, + WMGeometry + }; + +%End + + + enum + { + OnAllDesktops + }; + + + enum RequestSource + { + FromUnknown, + FromApplication, + FromTool + }; + + +%If ( KDE_3_5_3 - ) + static int timestampCompare (ulong, ulong); + static int timestampDiff (ulong, ulong); +%End + +%End + + +public: + +%If ( KDE_3_2_0 - KDE_3_5_1 ) + + enum Direction + { + TopLeft, + Top, + TopRight, + Right, + BottomRight, + Bottom, + BottomLeft, + Left, + Move, + KeyboardSize, + KeyboardMove + }; + +%End + + +public: + +%If ( - KDE_3_5_0 ) + + enum Property + { + Supported, + ClientList, + ClientListStacking, + NumberOfDesktops, + DesktopGeometry, + DesktopViewport, + CurrentDesktop, + DesktopNames, + ActiveWindow, + WorkArea, + SupportingWMCheck, + VirtualRoots, + KDESystemTrayWindows, + CloseWindow, + WMMoveResize, + WMName, + WMVisibleName, + WMDesktop, + WMWindowType, + WMState, + WMStrut, + WMIconGeometry, + WMIcon, + WMPid, + WMHandledIcons, + WMPing, + WMKDESystemTrayWinFor, + XAWMState, + WMKDEFrameStrut, + WMIconName, + WMVisibleIconName, + WMGeometry + }; + +%End + + +%If ( KDE_3_3_1 - ) + + enum Property2 + { + WM2UserTime, + WM2StartupId, + WM2TransientFor, + WM2GroupLeader, + WM2AllowedActions, + WM2RestackWindow, + WM2MoveResizeWindow, + WM2ExtendedStrut, + WM2TakeActivity, + WM2KDETemporaryRules, + WM2WindowClass, + WM2WindowRole, + WM2ClientMachine + }; + +%End + + +public: + +%If ( KDE_3_3_0 - KDE_3_3_1 ) + + enum + { + AllTypesMask + }; + + + enum Property2 + { + WM2UserTime, + WM2StartupId, + WM2TransientFor, + WM2GroupLeader, + WM2AllowedActions, + WM2RestackWindow, + WM2MoveResizeWindow, + WM2ExtendedStrut, + WM2TakeActivity, + WM2KDETemporaryRules + }; + +%End + + +public: + +%If ( KDE_3_2_0 - KDE_3_3_0 ) + + enum Property2 + { + WM2UserTime, + WM2StartupId, + WM2TransientFor, + WM2GroupLeader, + WM2AllowedActions, + WM2RestackWindow, + WM2MoveResizeWindow + }; + +%End + + +public: + +%If ( KDE_3_1_0 - KDE_3_2_0 ) + + enum WindowType + { + Unknown, + Normal, + Desktop, + Dock, + Toolbar, + Menu, + Dialog, + Override, + TopMenu, + Tool + }; + +%End + + +%If ( - KDE_3_2_0 ) + + enum State + { + Modal, + Sticky, + MaxVert, + MaxHoriz, + Max, + Shaded, + SkipTaskbar, + StaysOnTop, + SkipPager + }; + + + enum Direction + { + TopLeft, + Top, + TopRight, + Right, + BottomRight, + Bottom, + BottomLeft, + Left, + Move + }; + +%End + + +public: + +%If ( - KDE_3_1_0 ) + + enum WindowType + { + Unknown, + Normal, + Desktop, + Dock, + Tool, + Menu, + Dialog, + Override, + Toolbar + }; + +%End + + +}; // class NET + diff --git a/sip/kdefx/kcpuinfo.sip b/sip/kdefx/kcpuinfo.sip new file mode 100644 index 0000000..9fafc4a --- /dev/null +++ b/sip/kdefx/kcpuinfo.sip @@ -0,0 +1,52 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdefx version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_2_0 - ) + +class KCPUInfo +{ +%TypeHeaderCode +#include +%End + + +public: + + enum Extensions + { + IntelMMX, + IntelSSE, + IntelSSE2, + AMD3DNOW, + AltiVec + }; + + static bool haveExtension (uint); + +}; // class KCPUInfo + +%End + diff --git a/sip/kdefx/kdefx-kde320.diff b/sip/kdefx/kdefx-kde320.diff new file mode 100644 index 0000000..147a7f5 --- /dev/null +++ b/sip/kdefx/kdefx-kde320.diff @@ -0,0 +1 @@ ++ %Include kcpuinfo.sip diff --git a/sip/kdefx/kdefx-kde321.diff b/sip/kdefx/kdefx-kde321.diff new file mode 100644 index 0000000..147a7f5 --- /dev/null +++ b/sip/kdefx/kdefx-kde321.diff @@ -0,0 +1 @@ ++ %Include kcpuinfo.sip diff --git a/sip/kdefx/kdefx-kde322.diff b/sip/kdefx/kdefx-kde322.diff new file mode 100644 index 0000000..147a7f5 --- /dev/null +++ b/sip/kdefx/kdefx-kde322.diff @@ -0,0 +1 @@ ++ %Include kcpuinfo.sip diff --git a/sip/kdefx/kdefx-kde323.diff b/sip/kdefx/kdefx-kde323.diff new file mode 100644 index 0000000..147a7f5 --- /dev/null +++ b/sip/kdefx/kdefx-kde323.diff @@ -0,0 +1 @@ ++ %Include kcpuinfo.sip diff --git a/sip/kdefx/kdefx-kde330.diff b/sip/kdefx/kdefx-kde330.diff new file mode 100644 index 0000000..147a7f5 --- /dev/null +++ b/sip/kdefx/kdefx-kde330.diff @@ -0,0 +1 @@ ++ %Include kcpuinfo.sip diff --git a/sip/kdefx/kdefx-kde331.diff b/sip/kdefx/kdefx-kde331.diff new file mode 100644 index 0000000..147a7f5 --- /dev/null +++ b/sip/kdefx/kdefx-kde331.diff @@ -0,0 +1 @@ ++ %Include kcpuinfo.sip diff --git a/sip/kdefx/kdefx-kde332.diff b/sip/kdefx/kdefx-kde332.diff new file mode 100644 index 0000000..147a7f5 --- /dev/null +++ b/sip/kdefx/kdefx-kde332.diff @@ -0,0 +1 @@ ++ %Include kcpuinfo.sip diff --git a/sip/kdefx/kdefx-kde340.diff b/sip/kdefx/kdefx-kde340.diff new file mode 100644 index 0000000..147a7f5 --- /dev/null +++ b/sip/kdefx/kdefx-kde340.diff @@ -0,0 +1 @@ ++ %Include kcpuinfo.sip diff --git a/sip/kdefx/kdefx-kde341.diff b/sip/kdefx/kdefx-kde341.diff new file mode 100644 index 0000000..147a7f5 --- /dev/null +++ b/sip/kdefx/kdefx-kde341.diff @@ -0,0 +1 @@ ++ %Include kcpuinfo.sip diff --git a/sip/kdefx/kdefx-kde342.diff b/sip/kdefx/kdefx-kde342.diff new file mode 100644 index 0000000..147a7f5 --- /dev/null +++ b/sip/kdefx/kdefx-kde342.diff @@ -0,0 +1 @@ ++ %Include kcpuinfo.sip diff --git a/sip/kdefx/kdefx-kde343.diff b/sip/kdefx/kdefx-kde343.diff new file mode 100644 index 0000000..147a7f5 --- /dev/null +++ b/sip/kdefx/kdefx-kde343.diff @@ -0,0 +1 @@ ++ %Include kcpuinfo.sip diff --git a/sip/kdefx/kdefx-kde350.diff b/sip/kdefx/kdefx-kde350.diff new file mode 100644 index 0000000..147a7f5 --- /dev/null +++ b/sip/kdefx/kdefx-kde350.diff @@ -0,0 +1 @@ ++ %Include kcpuinfo.sip diff --git a/sip/kdefx/kdefx-kde351.diff b/sip/kdefx/kdefx-kde351.diff new file mode 100644 index 0000000..147a7f5 --- /dev/null +++ b/sip/kdefx/kdefx-kde351.diff @@ -0,0 +1 @@ ++ %Include kcpuinfo.sip diff --git a/sip/kdefx/kdefx-kde352.diff b/sip/kdefx/kdefx-kde352.diff new file mode 100644 index 0000000..147a7f5 --- /dev/null +++ b/sip/kdefx/kdefx-kde352.diff @@ -0,0 +1 @@ ++ %Include kcpuinfo.sip diff --git a/sip/kdefx/kdefx-kde353.diff b/sip/kdefx/kdefx-kde353.diff new file mode 100644 index 0000000..147a7f5 --- /dev/null +++ b/sip/kdefx/kdefx-kde353.diff @@ -0,0 +1 @@ ++ %Include kcpuinfo.sip diff --git a/sip/kdefx/kdefxmod.sip.in b/sip/kdefx/kdefxmod.sip.in new file mode 100644 index 0000000..6cbad38 --- /dev/null +++ b/sip/kdefx/kdefxmod.sip.in @@ -0,0 +1,41 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdefx version KDE_3_5_2 + +%Copying + + This software is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License as + published by the Free Software Foundation; either version 2 of + the License, or (at your option) any later version. + + This software is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public + License along with this library; see the file COPYING. + If not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +%End + +%Module kdefx + +%Import qt/qtmod.sip +%Import dcopmod.sip +%Import kdecoremod.sip + +%Include kdrawutil.sip +%Include kimageeffect.sip +%Include kpixmap.sip +%Include kpixmapeffect.sip +%Include kpixmapsplitter.sip +%Include kstyle.sip +@mark@ diff --git a/sip/kdefx/kdrawutil.sip b/sip/kdefx/kdrawutil.sip new file mode 100644 index 0000000..ef68cdd --- /dev/null +++ b/sip/kdefx/kdrawutil.sip @@ -0,0 +1,39 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdefx version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +%ModuleHeaderCode +#include +%End + +void kDrawNextButton (QPainter*, const QRect&, const QColorGroup&, bool = 0, const QBrush* = 0); +void kDrawNextButton (QPainter*, int, int, int, int, const QColorGroup&, bool = 0, const QBrush* = 0); +void kDrawBeButton (QPainter*, QRect&, const QColorGroup&, bool = 0, const QBrush* = 0); +void kDrawBeButton (QPainter*, int, int, int, int, const QColorGroup&, bool = 0, const QBrush* = 0); +void kDrawRoundButton (QPainter*, const QRect&, const QColorGroup&, bool = 0); +void kDrawRoundButton (QPainter*, int, int, int, int, const QColorGroup&, bool = 0); +void kRoundMaskRegion (QRegion&, int, int, int, int); +void kDrawRoundMask (QPainter*, int, int, int, int, bool = 0); +void kColorBitmaps (QPainter*, const QColorGroup&, int, int, QBitmap* = 0, QBitmap* = 0, QBitmap* = 0, QBitmap* = 0, QBitmap* = 0, QBitmap* = 0); +void kColorBitmaps (QPainter*, const QColorGroup&, int, int, int, int, bool = 1, const uchar* = 0, const uchar* = 0, const uchar* = 0, const uchar* = 0, const uchar* = 0, const uchar* = 0); diff --git a/sip/kdefx/kimageeffect.sip b/sip/kdefx/kimageeffect.sip new file mode 100644 index 0000000..b75243e --- /dev/null +++ b/sip/kdefx/kimageeffect.sip @@ -0,0 +1,205 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdefx version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KImageEffect +{ +%TypeHeaderCode +#include +%End + + +public: + + enum GradientType + { + VerticalGradient, + HorizontalGradient, + DiagonalGradient, + CrossDiagonalGradient, + PyramidGradient, + RectangleGradient, + PipeCrossGradient, + EllipticGradient + }; + + + enum RGBComponent + { + Red, + Green, + Blue, + Gray, + All + }; + + + enum Lighting + { + NorthLite, + NWLite, + WestLite, + SWLite, + SouthLite, + SELite, + EastLite, + NELite + }; + + + enum ModulationType + { + Intensity, + Saturation, + HueShift, + Contrast + }; + + + enum NoiseType + { + UniformNoise, + GaussianNoise, + MultiplicativeGaussianNoise, + ImpulseNoise, + LaplacianNoise, + PoissonNoise + }; + + + enum RotateDirection + { + Rotate90, + Rotate180, + Rotate270 + }; + + +%If ( KDE_3_3_0 - ) + + enum BumpmapType + { + Linear, + Spherical, + Sinuosidal + }; + +%End + + static QImage gradient (const QSize&, const QColor&, const QColor&, KImageEffect::GradientType, int = 3); + static QImage unbalancedGradient (const QSize&, const QColor&, const QColor&, KImageEffect::GradientType, int = 100, int = 100, int = 3); + static QImage& blend (const QColor&, QImage&, float); + static QImage& blend (QImage&, QImage&, float); + static QImage& blend (QImage&, float, const QColor&, KImageEffect::GradientType, bool = 0); + static QImage& blend (QImage&, QImage&, KImageEffect::GradientType, int = 100, int = 100); + static QImage& blend (QImage&, QImage&, QImage&, KImageEffect::RGBComponent); + static bool blend (const QImage&, const QImage&, QImage&); + static bool blend (int& /In, Out/, int& /In, Out/, const QImage&, const QImage&, QImage&); + static bool blendOnLower (int, int, const QImage&, const QImage&); + +%If ( KDE_3_2_0 - ) + static void blendOnLower (const QImage&, const QPoint&, QImage&, const QRect&); + static void blendOnLower (const QImage&, const QPoint&, QImage&, const QRect&, float); + + enum Disposition + { + NoImage, + Centered, + Tiled, + CenterTiled, + CenteredMaxpect, + TiledMaxpect, + Scaled, + CenteredAutoFit + }; + + static QRect computeDestinationRect (const QSize&, KImageEffect::Disposition, QImage&); + static void blendOnLower (QImage&, QImage&, KImageEffect::Disposition, float); +%End + + static QImage& channelIntensity (QImage&, float, KImageEffect::RGBComponent); + static QImage& fade (QImage&, float, const QColor&); + static QImage& flatten (QImage&, const QColor&, const QColor&, int = 0); + static QImage& hash (QImage&, KImageEffect::Lighting = NorthLite , uint = 0); + static QImage& intensity (QImage&, float); + static QImage& modulate (QImage&, QImage&, bool, KImageEffect::ModulationType, int, KImageEffect::RGBComponent); + static QImage& toGray (QImage&, bool = 0); + static QImage& desaturate (QImage&, float = 0.3); + static QImage& contrast (QImage&, int); +//ig static QImage& dither (QImage&, const QColor*, int); + static QImage& selectedImage (QImage&, const QColor&); + static void contrastHSV (QImage&, bool = 1); + static void normalize (QImage&); + static void equalize (QImage&); + static void threshold (QImage&, uint = 128); + static void solarize (QImage&, double = 50.0); + +%If ( KDE_3_2_0 - ) + static QImage emboss (QImage&, double, double); +%End + + static QImage emboss (QImage&); + static QImage despeckle (QImage&); + +%If ( KDE_3_2_0 - ) + static QImage charcoal (QImage&, double, double); +%End + + static QImage charcoal (QImage&, double = 50.0); + static QImage rotate (QImage&, KImageEffect::RotateDirection); + static QImage sample (QImage&, int, int); + static QImage addNoise (QImage&, KImageEffect::NoiseType = GaussianNoise ); + +%If ( KDE_3_2_0 - ) + static QImage blur (QImage&, double, double); +%End + + static QImage blur (QImage&, double = 50.0); + static QImage edge (QImage&, double = 50.0); + static QImage implode (QImage&, double = 30.0, uint = -1); + +%If ( KDE_3_2_0 - ) + static QImage oilPaintConvolve (QImage&, double); +%End + + static QImage oilPaint (QImage&, int = 3); + +%If ( KDE_3_2_0 - ) + static QImage sharpen (QImage&, double, double); +%End + + static QImage sharpen (QImage&, double = 30.0); + static QImage spread (QImage&, uint = 3); + static QImage shade (QImage&, bool = 1, double = 30.0, double = 30.0); + static QImage swirl (QImage&, double = 50.0, uint = -1); + static QImage wave (QImage&, double = 25.0, double = 150.0, uint = -1); + +%If ( KDE_3_3_0 - ) + static QImage bumpmap (QImage&, QImage&, double, double, int, int, int, int, int, bool, bool, KImageEffect::BumpmapType, bool); +%End + + +}; // class KImageEffect + diff --git a/sip/kdefx/kpixmap.sip b/sip/kdefx/kpixmap.sip new file mode 100644 index 0000000..ba19245 --- /dev/null +++ b/sip/kdefx/kpixmap.sip @@ -0,0 +1,65 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdefx version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KPixmap : QPixmap +{ +%TypeHeaderCode +#include +#include +#include +%End + + +public: + + enum ColorMode + { + Auto, + Color, + Mono, + LowColor, + WebColor + }; + + + enum GradientMode + { + Horizontal, + Vertical, + Diagonal, + CrossDiagonal + }; + + KPixmap (); + KPixmap (const QPixmap&); + bool convertFromImage (const QImage&, int); + bool convertFromImage (const QImage&, ColorMode = WebColor ); + bool load (const QString&, const char*, int); + bool load (const QString&, const char* = 0, ColorMode = WebColor ); + bool checkColorTable (const QImage&); + +}; // class KPixmap + diff --git a/sip/kdefx/kpixmapeffect.sip b/sip/kdefx/kpixmapeffect.sip new file mode 100644 index 0000000..f1d9279 --- /dev/null +++ b/sip/kdefx/kpixmapeffect.sip @@ -0,0 +1,85 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdefx version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KPixmapEffect +{ +%TypeHeaderCode +#include +%End + + +public: + + enum GradientType + { + VerticalGradient, + HorizontalGradient, + DiagonalGradient, + CrossDiagonalGradient, + PyramidGradient, + RectangleGradient, + PipeCrossGradient, + EllipticGradient + }; + + + enum RGBComponent + { + Red, + Green, + Blue + }; + + + enum Lighting + { + NorthLite, + NWLite, + WestLite, + SWLite, + SouthLite, + SELite, + EastLite, + NELite + }; + + static KPixmap& gradient (KPixmap&, const QColor&, const QColor&, KPixmapEffect::GradientType, int = 3); + static KPixmap& unbalancedGradient (KPixmap&, const QColor&, const QColor&, KPixmapEffect::GradientType, int = 100, int = 100, int = 3); + static KPixmap createTiled (const KPixmap&, QSize); + static KPixmap& intensity (KPixmap&, float); + static KPixmap& channelIntensity (KPixmap&, float, KPixmapEffect::RGBComponent); + static KPixmap& blend (KPixmap&, float, const QColor&, KPixmapEffect::GradientType, bool = 0, int = 3); + static KPixmap& hash (KPixmap&, KPixmapEffect::Lighting = NorthLite , uint = 0, int = 3); + static KPixmap pattern (const KPixmap&, QSize, const QColor&, const QColor&, int = 8); + static KPixmap& fade (KPixmap&, double, const QColor&); + static KPixmap& toGray (KPixmap&, bool = 0); + static KPixmap& desaturate (KPixmap&, float = 0.3); + static KPixmap& contrast (KPixmap&, int); + static KPixmap& dither (KPixmap&, const QColor*, int); + static KPixmap selectedPixmap (const KPixmap&, const QColor&); + +}; // class KPixmapEffect + diff --git a/sip/kdefx/kpixmapsplitter.sip b/sip/kdefx/kpixmapsplitter.sip new file mode 100644 index 0000000..638d734 --- /dev/null +++ b/sip/kdefx/kpixmapsplitter.sip @@ -0,0 +1,46 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdefx version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KPixmapSplitter +{ +%TypeHeaderCode +#include +%End + + +public: + KPixmapSplitter (); + void setPixmap (const QPixmap&); + const QPixmap& pixmap () const; + void setItemSize (const QSize&); + QSize itemSize () const; + void setVSpacing (int); + void setHSpacing (int); + QRect coordinates (int); + QRect coordinates (const QChar&); + +}; // class KPixmapSplitter + diff --git a/sip/kdefx/kstyle.sip b/sip/kdefx/kstyle.sip new file mode 100644 index 0000000..42ee378 --- /dev/null +++ b/sip/kdefx/kstyle.sip @@ -0,0 +1,126 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdefx version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KStyle : QCommonStyle +{ +%TypeHeaderCode +#include +%End + + +public: + typedef uint KStyleFlags; + + enum KStyleOption + { + Default, + AllowMenuTransparency, + FilledFrameWorkaround + }; + + + enum KStyleScrollBarType + { + WindowsStyleScrollBar, + PlatinumStyleScrollBar, + ThreeButtonScrollBar, + NextStyleScrollBar + }; + + KStyle (KStyle::KStyleFlags = KStyle ::Default , KStyle::KStyleScrollBarType = KStyle ::WindowsStyleScrollBar ); + +%If ( KDE_3_1_0 - ) + static QString defaultStyle (); +%End + + void setScrollBarType (KStyle::KStyleScrollBarType); + KStyle::KStyleFlags styleFlags () const; + virtual void renderMenuBlendPixmap (KPixmap&, const QColorGroup&, const QPopupMenu*) const; + + enum KStylePrimitive + { + KPE_DockWindowHandle, + KPE_ToolBarHandle, + KPE_GeneralHandle, + KPE_SliderGroove, + KPE_SliderHandle, + KPE_ListViewExpander, + KPE_ListViewBranch + }; + + virtual void drawKStylePrimitive (KStyle::KStylePrimitive, QPainter*, const QWidget*, const QRect&, const QColorGroup&, SFlags = Style_Default , const QStyleOption& = QStyleOption (QStyleOption ::Default )) const; + + enum KStylePixelMetric + { + KPM_MenuItemSeparatorHeight, + KPM_MenuItemHMargin, + KPM_MenuItemVMargin, + KPM_MenuItemHFrame, + KPM_MenuItemVFrame, + KPM_MenuItemCheckMarkHMargin, + KPM_MenuItemArrowHMargin, + KPM_MenuItemTabSpacing, + KPM_ListViewBranchThickness + }; + + int kPixelMetric (KStyle::KStylePixelMetric, const QWidget* = 0) const; + void polish (QWidget*); + void unPolish (QWidget*); + void polishPopupMenu (QPopupMenu*); + void drawPrimitive (PrimitiveElement, QPainter*, const QRect&, const QColorGroup&, SFlags = Style_Default , const QStyleOption& = QStyleOption (QStyleOption ::Default )) const; + void drawControl (ControlElement, QPainter*, const QWidget*, const QRect&, const QColorGroup&, SFlags = Style_Default , const QStyleOption& = QStyleOption (QStyleOption ::Default )) const; + void drawComplexControl (ComplexControl, QPainter*, const QWidget*, const QRect&, const QColorGroup&, SFlags = Style_Default , SCFlags = SC_All , SCFlags = SC_None , const QStyleOption& = QStyleOption (QStyleOption ::Default )) const; + SubControl querySubControl (ComplexControl, const QWidget*, const QPoint&, const QStyleOption& = QStyleOption (QStyleOption ::Default )) const; + QRect querySubControlMetrics (ComplexControl, const QWidget*, SubControl, const QStyleOption& = QStyleOption (QStyleOption ::Default )) const; + int pixelMetric (PixelMetric, const QWidget* = 0) const; + QRect subRect (SubRect, const QWidget*) const; + QPixmap stylePixmap (StylePixmap, const QWidget* = 0, const QStyleOption& = QStyleOption (QStyleOption ::Default )) const; + int styleHint (StyleHint, const QWidget* = 0, const QStyleOption& = QStyleOption (QStyleOption ::Default ), QStyleHintReturn* = 0) const; + +protected: + bool eventFilter (QObject*, QEvent*); + +private: + KStyle (const KStyle&); + +protected: +//igx virtual void virtual_hook (int, void*); + +//force +%ConvertToSubClassCode + // The table of Python class objects indexed by their names. The table + // must be sorted by name. + + static sipStringTypeClassMap map[] = { + {sipName_KStyle, &sipClass_KStyle}, + }; + + sipClass = sipMapStringToClass(sipCpp -> className(),map,sizeof (map)/sizeof (map[0])); +%End +//end + +}; // class KStyle + diff --git a/sip/kdeprint/driver.sip b/sip/kdeprint/driver.sip new file mode 100644 index 0000000..c787b23 --- /dev/null +++ b/sip/kdeprint/driver.sip @@ -0,0 +1,338 @@ +// +// Copyright 2005 Jim Bublitz +// Earlier copyrights 1998 - 2004 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeprint version KDE_3_4_0 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_1_0 - ) + +class DrBase +{ +%TypeHeaderCode +#include +%End + + +public: + + enum Type + { + Base, + Main, + ChoiceGroup, + Group, + String, + Integer, + Float, + List, + Boolean + }; + + DrBase (); + DrBase::Type type () const; + bool isOption () const; + const QString& get (const QString&) const; + void set (const QString&, const QString&); + bool has (const QString&) const; + const QString& name () const; + void setName (const QString&); + bool conflict () const; + void setConflict (bool); + virtual QString valueText (); + virtual QString prettyText (); + virtual void setValueText (const QString&); +//ig virtual DriverItem* createItem (DriverItem* /Transfer/, DriverItem* = 0); + virtual void setOptions (const QMap&); + virtual void getOptions (QMap&, bool = 0); + virtual DrBase* clone (); + +protected: + +}; // class DrBase + +%End + + +%If ( KDE_3_1_0 - ) + +class DrGroup : DrBase +{ +%TypeHeaderCode +#include +%End + + +public: + DrGroup (); + void addOption (DrBase*); + void addGroup (DrGroup*); + void addObject (DrBase*); + void clearConflict (); + void removeOption (const QString&); + void removeGroup (DrGroup*); + bool isEmpty (); +//ig virtual DriverItem* createItem (DriverItem* /Transfer/, DriverItem* = 0); +//ig DrBase* findOption (const QString&, DrGroup** = 0); +//ig DrGroup* findGroup (DrGroup*, DrGroup** = 0); + void setOptions (const QMap&); + void getOptions (QMap&, bool = 0); + DrBase* clone (); +//ig const QPtrList& groups (); +//ig const QPtrList& options (); + +%If ( KDE_3_2_0 - ) + static QString groupForOption (const QString&); +%End + + +protected: +//ig void createTree (DriverItem* /Transfer/); +//ig void flattenGroup (QMap&, int&); + +protected: + +}; // class DrGroup + +%End + + +%If ( KDE_3_1_0 - ) + +class DrMain : DrGroup +{ +%TypeHeaderCode +#include +%End + + +public: + DrMain (); +//ig DriverItem* createTreeView (QListView* /Transfer/); + void addConstraint (DrConstraint*); + int checkConstraints (); + DrPageSize* findPageSize (const QString&); + void addPageSize (DrPageSize*); + void removeOptionGlobally (const QString&); + void removeGroupGlobally (DrGroup*); +//ig QMap flatten (); + DrMain* cloneDriver (); + +protected: + +}; // class DrMain + +%End + + +%If ( KDE_3_1_0 - ) + +class DrChoiceGroup : DrGroup +{ +%TypeHeaderCode +#include +%End + + +public: + DrChoiceGroup (); +//ig DriverItem* createItem (DriverItem* /Transfer/, DriverItem* = 0); + +}; // class DrChoiceGroup + +%End + + +%If ( KDE_3_1_0 - ) + +class DrStringOption : DrBase +{ +%TypeHeaderCode +#include +%End + + +public: + DrStringOption (); + virtual QString valueText (); + virtual void setValueText (const QString&); + +protected: + +}; // class DrStringOption + +%End + + +%If ( KDE_3_1_0 - ) + +class DrIntegerOption : DrBase +{ +%TypeHeaderCode +#include +%End + + +public: + DrIntegerOption (); + virtual QString valueText (); + virtual void setValueText (const QString&); + QString fixedVal (); + +protected: + +}; // class DrIntegerOption + +%End + + +%If ( KDE_3_1_0 - ) + +class DrFloatOption : DrBase +{ +%TypeHeaderCode +#include +%End + + +public: + DrFloatOption (); + virtual QString valueText (); + virtual void setValueText (const QString&); + QString fixedVal (); + +protected: + +}; // class DrFloatOption + +%End + + +%If ( KDE_3_1_0 - ) + +class DrListOption : DrBase +{ +%TypeHeaderCode +#include +%End + + +public: + DrListOption (); + void addChoice (DrBase*); +//ig QPtrList* choices (); + DrBase* currentChoice () const; + DrBase* findChoice (const QString&); + void setChoice (int); + virtual QString valueText (); + virtual QString prettyText (); + virtual void setValueText (const QString&); + void setOptions (const QMap&); + void getOptions (QMap&, bool = 0); +//ig DriverItem* createItem (DriverItem* /Transfer/, DriverItem* = 0); + DrBase* clone (); + +protected: + +}; // class DrListOption + +%End + + +%If ( KDE_3_1_0 - ) + +class DrBooleanOption : DrListOption +{ +%TypeHeaderCode +#include +%End + + +public: + DrBooleanOption (); + +}; // class DrBooleanOption + +%End + + +%If ( KDE_3_1_0 - ) + +class DrConstraint +{ +%TypeHeaderCode +#include +%End + + +public: + DrConstraint (const QString&, const QString&, const QString& = QString ::null , const QString& = QString ::null ); + DrConstraint (const DrConstraint&); + bool check (DrMain*); + +protected: + +}; // class DrConstraint + +%End + + +%If ( KDE_3_1_0 - ) + +class DrPageSize +{ +%TypeHeaderCode +#include +%End + + +public: + DrPageSize (const QString&, int, int, int, int, int, int); + DrPageSize (const DrPageSize&); + +%If ( KDE_3_2_0 - ) + float pageWidth () const; + float pageHeight () const; + float leftMargin () const; + float rightMargin () const; + float topMargin () const; + float bottomMargin () const; + QString pageName () const; +%End + + QSize pageSize () const; + QRect pageRect () const; + QSize margins () const; + +protected: + +public: + +%If ( - KDE_3_2_0 ) + QString name () const; +%End + + +}; // class DrPageSize + +%End + diff --git a/sip/kdeprint/kdeprint-kde310.diff b/sip/kdeprint/kdeprint-kde310.diff new file mode 100644 index 0000000..705efd4 --- /dev/null +++ b/sip/kdeprint/kdeprint-kde310.diff @@ -0,0 +1,2 @@ ++ %Include kmjob.sip ++ %Include kmjobmanager.sip diff --git a/sip/kdeprint/kdeprint-kde311.diff b/sip/kdeprint/kdeprint-kde311.diff new file mode 100644 index 0000000..705efd4 --- /dev/null +++ b/sip/kdeprint/kdeprint-kde311.diff @@ -0,0 +1,2 @@ ++ %Include kmjob.sip ++ %Include kmjobmanager.sip diff --git a/sip/kdeprint/kdeprint-kde312.diff b/sip/kdeprint/kdeprint-kde312.diff new file mode 100644 index 0000000..705efd4 --- /dev/null +++ b/sip/kdeprint/kdeprint-kde312.diff @@ -0,0 +1,2 @@ ++ %Include kmjob.sip ++ %Include kmjobmanager.sip diff --git a/sip/kdeprint/kdeprint-kde313.diff b/sip/kdeprint/kdeprint-kde313.diff new file mode 100644 index 0000000..705efd4 --- /dev/null +++ b/sip/kdeprint/kdeprint-kde313.diff @@ -0,0 +1,2 @@ ++ %Include kmjob.sip ++ %Include kmjobmanager.sip diff --git a/sip/kdeprint/kdeprint-kde314.diff b/sip/kdeprint/kdeprint-kde314.diff new file mode 100644 index 0000000..705efd4 --- /dev/null +++ b/sip/kdeprint/kdeprint-kde314.diff @@ -0,0 +1,2 @@ ++ %Include kmjob.sip ++ %Include kmjobmanager.sip diff --git a/sip/kdeprint/kdeprint-kde315.diff b/sip/kdeprint/kdeprint-kde315.diff new file mode 100644 index 0000000..705efd4 --- /dev/null +++ b/sip/kdeprint/kdeprint-kde315.diff @@ -0,0 +1,2 @@ ++ %Include kmjob.sip ++ %Include kmjobmanager.sip diff --git a/sip/kdeprint/kdeprint-kde320.diff b/sip/kdeprint/kdeprint-kde320.diff new file mode 100644 index 0000000..705efd4 --- /dev/null +++ b/sip/kdeprint/kdeprint-kde320.diff @@ -0,0 +1,2 @@ ++ %Include kmjob.sip ++ %Include kmjobmanager.sip diff --git a/sip/kdeprint/kdeprint-kde321.diff b/sip/kdeprint/kdeprint-kde321.diff new file mode 100644 index 0000000..705efd4 --- /dev/null +++ b/sip/kdeprint/kdeprint-kde321.diff @@ -0,0 +1,2 @@ ++ %Include kmjob.sip ++ %Include kmjobmanager.sip diff --git a/sip/kdeprint/kdeprint-kde322.diff b/sip/kdeprint/kdeprint-kde322.diff new file mode 100644 index 0000000..705efd4 --- /dev/null +++ b/sip/kdeprint/kdeprint-kde322.diff @@ -0,0 +1,2 @@ ++ %Include kmjob.sip ++ %Include kmjobmanager.sip diff --git a/sip/kdeprint/kdeprint-kde323.diff b/sip/kdeprint/kdeprint-kde323.diff new file mode 100644 index 0000000..705efd4 --- /dev/null +++ b/sip/kdeprint/kdeprint-kde323.diff @@ -0,0 +1,2 @@ ++ %Include kmjob.sip ++ %Include kmjobmanager.sip diff --git a/sip/kdeprint/kdeprint-kde330.diff b/sip/kdeprint/kdeprint-kde330.diff new file mode 100644 index 0000000..705efd4 --- /dev/null +++ b/sip/kdeprint/kdeprint-kde330.diff @@ -0,0 +1,2 @@ ++ %Include kmjob.sip ++ %Include kmjobmanager.sip diff --git a/sip/kdeprint/kdeprint-kde331.diff b/sip/kdeprint/kdeprint-kde331.diff new file mode 100644 index 0000000..705efd4 --- /dev/null +++ b/sip/kdeprint/kdeprint-kde331.diff @@ -0,0 +1,2 @@ ++ %Include kmjob.sip ++ %Include kmjobmanager.sip diff --git a/sip/kdeprint/kdeprint-kde332.diff b/sip/kdeprint/kdeprint-kde332.diff new file mode 100644 index 0000000..705efd4 --- /dev/null +++ b/sip/kdeprint/kdeprint-kde332.diff @@ -0,0 +1,2 @@ ++ %Include kmjob.sip ++ %Include kmjobmanager.sip diff --git a/sip/kdeprint/kdeprint-kde340.diff b/sip/kdeprint/kdeprint-kde340.diff new file mode 100644 index 0000000..705efd4 --- /dev/null +++ b/sip/kdeprint/kdeprint-kde340.diff @@ -0,0 +1,2 @@ ++ %Include kmjob.sip ++ %Include kmjobmanager.sip diff --git a/sip/kdeprint/kdeprint-kde341.diff b/sip/kdeprint/kdeprint-kde341.diff new file mode 100644 index 0000000..705efd4 --- /dev/null +++ b/sip/kdeprint/kdeprint-kde341.diff @@ -0,0 +1,2 @@ ++ %Include kmjob.sip ++ %Include kmjobmanager.sip diff --git a/sip/kdeprint/kdeprint-kde342.diff b/sip/kdeprint/kdeprint-kde342.diff new file mode 100644 index 0000000..705efd4 --- /dev/null +++ b/sip/kdeprint/kdeprint-kde342.diff @@ -0,0 +1,2 @@ ++ %Include kmjob.sip ++ %Include kmjobmanager.sip diff --git a/sip/kdeprint/kdeprint-kde343.diff b/sip/kdeprint/kdeprint-kde343.diff new file mode 100644 index 0000000..705efd4 --- /dev/null +++ b/sip/kdeprint/kdeprint-kde343.diff @@ -0,0 +1,2 @@ ++ %Include kmjob.sip ++ %Include kmjobmanager.sip diff --git a/sip/kdeprint/kdeprint-kde350.diff b/sip/kdeprint/kdeprint-kde350.diff new file mode 100644 index 0000000..705efd4 --- /dev/null +++ b/sip/kdeprint/kdeprint-kde350.diff @@ -0,0 +1,2 @@ ++ %Include kmjob.sip ++ %Include kmjobmanager.sip diff --git a/sip/kdeprint/kdeprint-kde351.diff b/sip/kdeprint/kdeprint-kde351.diff new file mode 100644 index 0000000..705efd4 --- /dev/null +++ b/sip/kdeprint/kdeprint-kde351.diff @@ -0,0 +1,2 @@ ++ %Include kmjob.sip ++ %Include kmjobmanager.sip diff --git a/sip/kdeprint/kdeprint-kde352.diff b/sip/kdeprint/kdeprint-kde352.diff new file mode 100644 index 0000000..705efd4 --- /dev/null +++ b/sip/kdeprint/kdeprint-kde352.diff @@ -0,0 +1,2 @@ ++ %Include kmjob.sip ++ %Include kmjobmanager.sip diff --git a/sip/kdeprint/kdeprint-kde353.diff b/sip/kdeprint/kdeprint-kde353.diff new file mode 100644 index 0000000..705efd4 --- /dev/null +++ b/sip/kdeprint/kdeprint-kde353.diff @@ -0,0 +1,2 @@ ++ %Include kmjob.sip ++ %Include kmjobmanager.sip diff --git a/sip/kdeprint/kdeprintmod.sip.in b/sip/kdeprint/kdeprintmod.sip.in new file mode 100644 index 0000000..adaa33d --- /dev/null +++ b/sip/kdeprint/kdeprintmod.sip.in @@ -0,0 +1,47 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeprint version KDE_3_5_2 + +%Copying + + This software is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License as + published by the Free Software Foundation; either version 2 of + the License, or (at your option) any later version. + + This software is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public + License along with this library; see the file COPYING. + If not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +%End + +%Module kdeprint + +%Import qt/qtmod.sip +%Import qtxml/qtxmlmod.sip +%Import dcopmod.sip +%Import kdecoremod.sip +%Import kdefxmod.sip +%Import kdeuimod.sip + +%Include kmmanager.sip +%Include kmobject.sip +%Include kmprinter.sip +%Include kpreloadobject.sip +%Include kprintaction.sip +%Include kprintdialog.sip +%Include kprintdialogpage.sip +%Include kprinter.sip +@mark@ + diff --git a/sip/kdeprint/kmjob.sip b/sip/kdeprint/kmjob.sip new file mode 100644 index 0000000..7736bc7 --- /dev/null +++ b/sip/kdeprint/kmjob.sip @@ -0,0 +1,113 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeprint version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_1_0 - ) + +class KMJob : KMObject +{ +%TypeHeaderCode +#include +%End + + +public: + + enum JobAction + { + Remove, + Move, + Hold, + Resume, + Restart, + ShowCompleted, + All + }; + + + enum JobState + { + Printing, + Queued, + Held, + Error, + Cancelled, + Aborted, + Completed, + Unknown + }; + + + enum JobType + { + System, + Threaded + }; + + KMJob (); + KMJob (const KMJob&); + void copy (const KMJob&); + QString pixmap (); + QString stateString (); + bool isCompleted () const; + bool isActive () const; + int id () const; + void setId (int); + const QString& name () const; + void setName (const QString&); + const QString& printer () const; + void setPrinter (const QString&); + const QString& owner () const; + void setOwner (const QString&); + int state () const; + void setState (int); + int size () const; + void setSize (int); + const QString& uri () const; + void setUri (const QString&); + int type () const; + void setType (int); + int pages () const; + void setPages (int); + int processedPages () const; + void setProcessedPages (int); + int processedSize () const; + void setProcessedSize (int); + bool isRemote () const; + void setRemote (bool); + QString attribute (int) const; + void setAttribute (int, const QString&); + int attributeCount () const; + void setAttributeCount (int); + +protected: + void init (); + +protected: + +}; // class KMJob + +%End + diff --git a/sip/kdeprint/kmjobmanager.sip b/sip/kdeprint/kmjobmanager.sip new file mode 100644 index 0000000..f54a1e4 --- /dev/null +++ b/sip/kdeprint/kmjobmanager.sip @@ -0,0 +1,197 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeprint version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_1_0 - ) + +class KMJobManager : QObject +{ +%TypeHeaderCode +#include +%End + + +public: + + enum JobType + { + ActiveJobs, + CompletedJobs + }; + + + class JobFilter + { + + public: + JobFilter (); +//ig int m_type[2]; + +%If ( KDE_3_2_2 - ) + bool m_isspecial; +%End + + + }; // class JobFilter + + +public: + KMJobManager (QObject* /TransferThis/ = 0, const char* = 0); + static KMJobManager* self (); + +%If ( KDE_3_2_2 - ) + void addPrinter (const QString&, KMJobManager::JobType = ActiveJobs , bool = 0); +%End + + void removePrinter (const QString&, KMJobManager::JobType = ActiveJobs ); + void clearFilter (); +//ig QDict* filter (); + int limit (); + void setLimit (int); + KMJob* findJob (const QString&); + bool sendCommand (const QString&, int, const QString& = QString ::null ); + bool sendCommand (const QPtrList&, int, const QString& = QString ::null ); + const QPtrList& jobList (bool = 1); + void addJob (KMJob*); +//ig KMThreadJob* threadJob (); + virtual int actions (); + virtual QValueList createPluginActions (KActionCollection*); + virtual void validatePluginActions (KActionCollection*, const QPtrList&); + virtual bool doPluginAction (int, const QPtrList&); + +protected: + void discardAllJobs (); + void removeDiscardedJobs (); + +protected: + virtual bool listJobs (const QString&, KMJobManager::JobType, int = 0); + virtual bool sendCommandSystemJob (const QPtrList&, int, const QString& = QString ::null ); + bool sendCommandThreadJob (const QPtrList&, int, const QString& = QString ::null ); + +protected: + +public: + +%If ( - KDE_3_2_2 ) + void addPrinter (const QString&, KMJobManager::JobType = ActiveJobs ); + +//force +%ConvertToSubClassCode + // The table of Python class objects indexed by their names. The table + // must be sorted by name. + + static sipStringTypeClassMap map[] = { + {sipName_KMJobManager, &sipClass_KMJobManager}, + {sipName_KMManager, &sipClass_KMManager}, + {sipName_KPrintAction, &sipClass_KPrintAction}, + {sipName_KPrintDialogPage, &sipClass_KPrintDialogPage}, + }; + + sipClass = sipMapStringToClass(sipCpp -> className(),map,sizeof (map)/sizeof (map[0])); +%End +//end +%End + + +}; // class KMJobManager + +%End + + + +%If (KDE_3_1_0 - ) +%MappedType QPtrList +//converts a Python list of KMJob +{ +%TypeHeaderCode +#include +#include +typedef QPtrList KMJobList; +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New (0); + + PyObject *pylist; + + // Create the list + + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + // Get it. + + QPtrList *cpplist = (QPtrList *)sipCpp; + KMJob *cpp; + PyObject *inst; + + // the loop depends on the type of iterator the tmeplate makes available + for(cpp = cpplist->first (); cpp != 0; cpp = cpplist->next () ) + { + if (((inst = sipConvertFromInstance (cpp, sipClass_KMJob, sipTransferObj)) == NULL) + || PyList_Append (pylist, inst) < 0) + { + Py_DECREF (pylist); + return NULL; + } + } + + return pylist; +%End + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QPtrList *cpplist = new QPtrList; + + PyObject *elem; + KMJob *cpp; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + cpp = (KMJob *)sipForceConvertToType(elem, sipType_KMJob, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + *sipIsErr = 1; + delete cpplist; + return 0; + } + + cpplist->append (cpp); + } + + *sipCppPtr = cpplist; + + return 1; +%End +}; +%End + + diff --git a/sip/kdeprint/kmmanager.sip b/sip/kdeprint/kmmanager.sip new file mode 100644 index 0000000..4d92c36 --- /dev/null +++ b/sip/kdeprint/kmmanager.sip @@ -0,0 +1,220 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeprint version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KMManager : QObject +{ +%TypeHeaderCode +#include +%End + + +public: + + enum PrinterOperations + { + PrinterEnabling, + PrinterCreation, + PrinterDefault, + PrinterTesting, + PrinterConfigure, + PrinterRemoval, + PrinterAll + }; + + + enum ServerOperations + { + ServerRestarting, + ServerConfigure, + ServerAll + }; + + KMManager (QObject* /TransferThis/ = 0, const char* = 0); + static KMManager* self (); + QString errorMsg () const; + void setErrorMsg (const QString&); + bool hasManagement () const; + virtual bool createPrinter (KMPrinter*); + virtual bool removePrinter (KMPrinter*); + virtual bool enablePrinter (KMPrinter*, bool); + virtual bool startPrinter (KMPrinter*, bool); + virtual bool completePrinter (KMPrinter*); + virtual bool completePrinterShort (KMPrinter*); + virtual bool setDefaultPrinter (KMPrinter*); + virtual bool testPrinter (KMPrinter*); + bool upPrinter (KMPrinter*, bool); + bool modifyPrinter (KMPrinter*, KMPrinter*); + bool removePrinter (const QString&); + bool enablePrinter (const QString&, bool); + bool startPrinter (const QString&, bool); + bool completePrinter (const QString&); + bool setDefaultPrinter (const QString&); + int printerOperationMask () const; + int addPrinterWizard (QWidget* /Transfer/ = 0); + bool createSpecialPrinter (KMPrinter*); + bool removeSpecialPrinter (KMPrinter*); + KMPrinter* findPrinter (const QString&); + QPtrList* printerList (bool = 1); + QPtrList* printerListComplete (bool = 1); + KMPrinter* defaultPrinter (); + void enableFilter (bool); + bool isFilterEnabled () const; + virtual QString driverDbCreationProgram (); + virtual QString driverDirectory (); +//ig virtual DrMain* loadPrinterDriver (KMPrinter*, bool = 0); +//ig virtual DrMain* loadDbDriver (KMDBEntry*); +//ig virtual DrMain* loadFileDriver (const QString&); +//ig DrMain* loadDriver (KMPrinter*, bool = 0); +//ig virtual bool savePrinterDriver (KMPrinter*, DrMain*); +//ig virtual bool validateDbDriver (KMDBEntry*); + bool invokeOptionsDialog (QWidget* /Transfer/ = 0); + +%If ( KDE_3_1_0 - ) + virtual QString stateInformation (); +%End + + int serverOperationMask () const; + virtual bool restartServer (); + virtual bool configureServer (QWidget* /Transfer/ = 0); + virtual QStringList detectLocalPrinters (); + virtual void createPluginActions (KActionCollection*); + virtual void validatePluginActions (KActionCollection*, KMPrinter*); + +%If ( KDE_3_1_0 - ) + void checkUpdatePossible (); +%End + + +signals: + +%If ( KDE_3_1_0 - ) + void updatePossible (bool); +%End + + +protected: + virtual void listPrinters (); + void addPrinter (KMPrinter*); + void setHardDefault (KMPrinter*); + void setSoftDefault (KMPrinter*); + KMPrinter* softDefault () const; + KMPrinter* hardDefault () const; + bool uncompressFile (const QString&, QString&); + bool notImplemented (); + void setHasManagement (bool); + void setPrinterOperationMask (int); + void setServerOperationMask (int); + QString testPage (); + void discardAllPrinters (bool); + +%If ( KDE_3_1_0 - ) + void setUpdatePossible (bool); + virtual void checkUpdatePossibleInternal (); +%End + + +protected: + +}; // class KMManager + + + +%MappedType QPtrList +//converts a Python list of KMPrinter +{ +%TypeHeaderCode +#include +#include +#include +%End + +%ConvertFromTypeCode + // Convert to a Python list of KMPrinter + + if (!sipCpp) + return PyList_New (0); + + PyObject *plist; + + // Create the list + + if ((plist = PyList_New(0)) == NULL) + return NULL; + + // Get it. + + QPtrList *kpList = (QPtrList *)sipCpp; + PyObject *inst; + KMPrinter *p; + + for(p = kpList->first (); p; p = kpList->next ()) + { + inst = sipConvertFromInstance (p, sipClass_KMPrinter, sipTransferObj); + if ((inst == NULL) || (PyList_Append (plist, inst) < 0)) + { + Py_XDECREF (inst); + Py_DECREF (plist); + return NULL; + } + } + + return plist; +%End + +%ConvertToTypeCode + // Convert a Python list to QPtrList on the heap. + + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QPtrList *kpList = new QPtrList; + + PyObject *elem; + KMPrinter *p; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + p = (KMPrinter *)sipForceConvertToType(elem, sipType_KMPrinter, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + *sipIsErr = 1; + delete kpList; + return 0; + } + + kpList->append (p); + } + + *sipCppPtr = kpList; + + return 1; +%End +}; + + diff --git a/sip/kdeprint/kmobject.sip b/sip/kdeprint/kmobject.sip new file mode 100644 index 0000000..d41ae0f --- /dev/null +++ b/sip/kdeprint/kmobject.sip @@ -0,0 +1,42 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeprint version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KMObject +{ +%TypeHeaderCode +#include +%End + + +public: + KMObject (); + bool isDiscarded () const; + void setDiscarded (bool = 1); + +protected: + +}; // class KMObject + diff --git a/sip/kdeprint/kmprinter.sip b/sip/kdeprint/kmprinter.sip new file mode 100644 index 0000000..0f8c2e9 --- /dev/null +++ b/sip/kdeprint/kmprinter.sip @@ -0,0 +1,178 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeprint version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KMPrinter : KMObject +{ +%TypeHeaderCode +#include +%End + + +public: + + enum PrinterType + { + Printer, + Class, + Implicit, + Virtual, + Remote, + Invalid, + Special + }; + + + enum PrinterState + { + Idle, + Stopped, + Processing, + Unknown, + Rejecting, + StateMask + }; + + +%If ( KDE_3_2_0 - ) + + enum PrinterCap + { + CapBW, + CapColor, + CapDuplex, + CapStaple, + CapCopies, + CapCollate, + CapPunch, + CapCover, + CapBind, + CapSort, + CapSmall, + CapMedium, + CapLarge, + CapVariable + }; + +%End + + KMPrinter (); + KMPrinter (const KMPrinter&); + void copy (const KMPrinter&); + const QString& name () const; + void setName (const QString&); + const QString& printerName () const; + void setPrinterName (const QString&); + const QString& instanceName () const; + void setInstanceName (const QString&); + int type () const; + void setType (int); + void addType (int); + KMPrinter::PrinterState state (bool = 0) const; + QString stateString () const; + void setState (KMPrinter::PrinterState); + bool acceptJobs () const; + void setAcceptJobs (bool); + +%If ( KDE_3_2_0 - ) + const QString& device () const; + QString deviceProtocol () const; + void setDevice (const QString&); +%End + + const QStringList& members () const; + void setMembers (const QStringList&); + void addMember (const QString&); + const QString& description () const; + void setDescription (const QString&); + const QString& location () const; + void setLocation (const QString&); + const KURL& uri () const; + void setUri (const KURL&); + const QString& manufacturer () const; + void setManufacturer (const QString&); + const QString& model () const; + void setModel (const QString&); + const QString& driverInfo () const; + void setDriverInfo (const QString&); + +%If ( KDE_3_2_0 - ) + int printerCap () const; + void setPrinterCap (int); + void addPrinterCap (int); +%End + + bool isClass (bool = 1) const; + bool isImplicit () const; + bool isPrinter () const; + bool isRemote () const; + bool isLocal () const; + bool isVirtual () const; + bool isValid () const; + bool isSpecial () const; +//ig KMDBEntry* dbEntry () const; +//ig void setDbEntry (KMDBEntry*); + QString pixmap (); + void setPixmap (const QString&); + bool isHardDefault () const; + void setHardDefault (bool); + bool isSoftDefault () const; + void setSoftDefault (bool); + bool ownSoftDefault () const; + void setOwnSoftDefault (bool); + static int compare (KMPrinter*, KMPrinter*); + const QString& option (const QString&) const; + bool hasOption (const QString&) const; + void setOption (const QString&, const QString&); + void removeOption (const QString&); + QMap options () const; + void setOptions (const QMap&); +//ig DrMain* driver () const; +//ig void setDriver (DrMain*); +//ig DrMain* takeDriver (); + bool autoConfigure (KPrinter*, QWidget* /Transfer/ = 0); + const QString& defaultOption (const QString&) const; + void setDefaultOption (const QString&, const QString&); + QMap defaultOptions () const; + void setDefaultOptions (const QMap&); + const QString& editedOption (const QString&) const; + void setEditedOption (const QString&, const QString&); + QMap editedOptions () const; + void setEditedOptions (const QMap&); + bool isEdited () const; + void setEdited (bool); + +protected: + +public: + +%If ( - KDE_3_2_0 ) + const KURL& device () const; + void setDevice (const KURL&); +%End + + +}; // class KMPrinter + diff --git a/sip/kdeprint/kpreloadobject.sip b/sip/kdeprint/kpreloadobject.sip new file mode 100644 index 0000000..61c2c5f --- /dev/null +++ b/sip/kdeprint/kpreloadobject.sip @@ -0,0 +1,43 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeprint version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KPReloadObject +{ +%TypeHeaderCode +#include +%End + + +public: + KPReloadObject (bool = 0); + +protected: + virtual void reload () = 0; + virtual void aboutToReload (); + virtual void configChanged (); + +}; // class KPReloadObject + diff --git a/sip/kdeprint/kprintaction.sip b/sip/kdeprint/kprintaction.sip new file mode 100644 index 0000000..edb0cda --- /dev/null +++ b/sip/kdeprint/kprintaction.sip @@ -0,0 +1,61 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeprint version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KPrintAction : KActionMenu +{ +%TypeHeaderCode +#include +%End + + +public: + + enum PrinterType + { + All, + Regular, + Specials + }; + + KPrintAction (const QString&, KPrintAction::PrinterType = All , QWidget* = 0, QObject* /TransferThis/ = 0, const char* = 0); + KPrintAction (const QString&, const QIconSet&, KPrintAction::PrinterType = All , QWidget* = 0, QObject* /TransferThis/ = 0, const char* = 0); + KPrintAction (const QString&, const QString&, KPrintAction::PrinterType = All , QWidget* = 0, QObject* /TransferThis/ = 0, const char* = 0); + static KPrintAction* exportAll (QWidget* = 0, QObject* /Transfer/ = 0, const char* = 0); + static KPrintAction* exportRegular (QWidget* = 0, QObject* /Transfer/ = 0, const char* = 0); + static KPrintAction* exportSpecial (QWidget* = 0, QObject* /Transfer/ = 0, const char* = 0); + +signals: + void print (KPrinter*) /PyName=print_/; + +protected slots: + void slotAboutToShow (); + void slotActivated (int); + +protected: + void initialize (KPrintAction::PrinterType, QWidget*); + +}; // class KPrintAction + diff --git a/sip/kdeprint/kprintdialog.sip b/sip/kdeprint/kprintdialog.sip new file mode 100644 index 0000000..b71d6e9 --- /dev/null +++ b/sip/kdeprint/kprintdialog.sip @@ -0,0 +1,169 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeprint version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KPrintDialog : KDialog, KPReloadObject +{ +%TypeHeaderCode +#include +%End + + +public: + KPrintDialog (QWidget* /TransferThis/ = 0, const char* = 0); + void setFlags (int); + void setDialogPages (QPtrList*); + +%If ( KDE_3_1_0 - ) + void enableDialogPage (int, bool = 1); +%End + + KPrinter* printer () const; + static KPrintDialog* printerDialog (KPrinter*, QWidget*, const QString& = QString ::null , bool = 0); + +signals: + void printRequested (KPrinter*); + +protected slots: + void slotPrinterSelected (int); + void slotProperties (); + void slotSetDefault (); + void slotOptions (); + virtual void done (int); + void slotWizard (); + void slotExtensionClicked (); + void slotToggleFilter (bool); + +%If ( KDE_3_1_0 - ) + void slotHelp (); + void slotOutputFileSelected (const QString&); + void slotUpdatePossible (bool); + void slotOpenFileDialog (); +%End + + +protected: + bool checkOutputFile (); + void enableSpecial (bool); + void enableOutputFile (bool); + void setOutputFileExtension (const QString&); + void reload (); + void configChanged (); + void expandDialog (bool = 1); + +%If ( KDE_3_1_0 - ) + void initialize (KPrinter*); + void init (); +%End + + +protected: + +public: + +%If ( - KDE_3_1_0 ) + void initialize (KPrinter*); +%End + + +}; // class KPrintDialog + + + +%MappedType QPtrList +//converts a Python list of KPrintDialogPage +{ +%TypeHeaderCode +#include +#include +%End + +%ConvertFromTypeCode + // Convert to a Python list of KPrintDialogPage + + if (!sipCpp) + return PyList_New (0); + + PyObject *plist; + + // Create the list + + if ((plist = PyList_New(0)) == NULL) + return NULL; + + // Get it. + + QPtrList *kpList = (QPtrList *)sipCpp; + PyObject *inst; + KPrintDialogPage *p; + + for(p = kpList->first (); p; p = kpList->next ()) + { + inst = sipConvertFromInstance (p, sipClass_KPrintDialogPage, sipTransferObj); + if ((inst == NULL) || (PyList_Append (plist, inst) < 0)) + { + Py_XDECREF (inst); + Py_DECREF (plist); + return NULL; + } + } + + return plist; +%End + +%ConvertToTypeCode + // Convert a Python list to QPtrList on the heap. + + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QPtrList *kpList = new QPtrList; + + PyObject *elem; + KPrintDialogPage *p; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + p = (KPrintDialogPage *)sipForceConvertToType(elem, sipType_KPrintDialogPage, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + *sipIsErr = 1; + delete kpList; + return 0; + } + + kpList->append (p); + } + + *sipCppPtr = kpList; + + return 1; +%End +}; + + diff --git a/sip/kdeprint/kprintdialogpage.sip b/sip/kdeprint/kprintdialogpage.sip new file mode 100644 index 0000000..5e52bda --- /dev/null +++ b/sip/kdeprint/kprintdialogpage.sip @@ -0,0 +1,52 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeprint version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KPrintDialogPage : QWidget +{ +%TypeHeaderCode +#include +%End + + +public: + KPrintDialogPage (QWidget* /TransferThis/ = 0, const char* = 0); +//ig KPrintDialogPage (KMPrinter*, DrMain* = 0, QWidget* /TransferThis/ = 0, const char* = 0); + virtual void getOptions (QMap&, bool = 0); + virtual void setOptions (const QMap&); + virtual bool isValid (QString&); + int id () const; + void setId (int); + QString title () const; + void setTitle (const QString&); + bool onlyRealPrinters () const; + void setOnlyRealPrinters (bool = 1); +//ig DrMain* driver (); +//ig KMPrinter* printer (); + +protected: + +}; // class KPrintDialogPage + diff --git a/sip/kdeprint/kprinter.sip b/sip/kdeprint/kprinter.sip new file mode 100644 index 0000000..ea4d17f --- /dev/null +++ b/sip/kdeprint/kprinter.sip @@ -0,0 +1,258 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeprint version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KPrinter : QPaintDevice, KPReloadObject +{ +%TypeHeaderCode +#include +%End + + +public: + + enum StandardPageType + { + CopiesPage, + FilesPage, + Custom + }; + + + enum PageSelectionType + { + ApplicationSide, + SystemSide + }; + + + enum ApplicationType + { + Dialog, + StandAlone, + StandAlonePersistent + }; + + + enum PageSetType + { + AllPages, + OddPages, + EvenPages + }; + + + enum CollateType + { + Collate, + Uncollate + }; + + + enum ColorMode + { + GrayScale, + Color + }; + + + enum Orientation + { + Portrait, + Landscape + }; + + + enum PageOrder + { + FirstPageFirst, + LastPageFirst + }; + + + enum PageSize + { + A4, + B5, + Letter, + Legal, + Executive, + A0, + A1, + A2, + A3, + A5, + A6, + A7, + A8, + A9, + B0, + B1, + B10, + B2, + B3, + B4, + B6, + B7, + B8, + B9, + C5E, + Comm10E, + DLE, + Folio, + Ledger, + Tabloid, + NPageSize + }; + + KPrinter (bool = 1, QPrinter::PrinterMode = QPrinter ::ScreenResolution ); + bool newPage (); + bool abort (); + bool aborted () const; + bool outputToFile () const; + void setOutputToFile (bool); + QString outputFileName () const; + void setOutputFileName (const QString&); + QString docName () const; + void setDocName (const QString&); + QString creator () const; + void setCreator (const QString&); + bool fullPage () const; + void setFullPage (bool); + KPrinter::ColorMode colorMode () const; + void setColorMode (KPrinter::ColorMode); + int numCopies () const; + void setNumCopies (int); + KPrinter::Orientation orientation () const; + void setOrientation (KPrinter::Orientation); + KPrinter::PageOrder pageOrder () const; + void setPageOrder (KPrinter::PageOrder); + KPrinter::CollateType collate () const; + void setCollate (KPrinter::CollateType); + int minPage () const; + int maxPage () const; + void setMinMax (int, int); + int fromPage () const; + int toPage () const; + void setFromTo (int, int); + KPrinter::PageSize pageSize () const; + void setPageSize (KPrinter::PageSize); + QString printerName () const; + void setPrinterName (const QString&); + QString printProgram () const; + void setPrintProgram (const QString&); + QString printerSelectionOption () const; + void setPrinterSelectionOption (const QString&); + int currentPage () const; + void setCurrentPage (int = 0); + KPrinter::PageSetType pageSet () const; + bool setup (QWidget* /Transfer/ = 0, const QString& = QString ::null , bool = 0); + QSize margins () const; + void setMargins (QSize); + QSize realPageSize () const; + void setRealPageSize (QSize); + +%If ( KDE_3_1_0 - ) + void setRealDrawableArea (const QRect&); + QRect realDrawableArea () const; + void margins (uint*, uint*, uint*, uint*) const /PyName=marginsAsInts/; + +%If ( KDE_3_2_0 - ) + void setMargins (uint, uint, uint, uint); +%End + +%End + + QValueList pageList () const; + void setPreviewOnly (bool); + bool previewOnly () const; + +%If ( KDE_3_1_0 - ) + void setResolution (int); + int resolution () const; + +%If ( KDE_3_2_0 - ) + void setUsePrinterResolution (bool); +%End + +%End + +//ig KPrinterImpl* implementation () const; + bool printFiles (const QStringList&, bool = 0, bool = 1); + static void addDialogPage (KPrintDialogPage*); + static void setPageSelection (KPrinter::PageSelectionType); + static KPrinter::PageSelectionType pageSelection (); + static void setApplicationType (KPrinter::ApplicationType); + static KPrinter::ApplicationType applicationType (); + static void addStandardPage (int); + static void removeStandardPage (int); + const QString& option (const QString&) const; + void setOption (const QString&, const QString&); + const QMap& options () const; + void setOptions (const QMap&); + void initOptions (const QMap&); + QString searchName () const; + void setSearchName (const QString&); + QString errorMessage () const; + void setErrorMessage (const QString&); + bool autoConfigure (const QString& = QString ::null , QWidget* /Transfer/ = 0); + void setDocFileName (const QString&); + QString docFileName () const; + +%If ( KDE_3_1_0 - ) + void setDocDirectory (const QString&); + QString docDirectory () const; +%End + + +protected: +//ig virtual bool cmd (int, QPainter*, QPDevCmdParam*); + virtual int metric (int) const; + void translateQtOptions (); + void loadSettings (); + void saveSettings (); + void preparePrinting (); + void finishPrinting (); + void reload (); + void init (bool = 1, QPrinter::PrinterMode = QPrinter ::ScreenResolution ); + +%If ( KDE_3_1_0 - ) + bool doPreview (const QString&); + +%If ( KDE_3_2_0 - ) +//ig void setRealPageSize (DrPageSize*); + void setOption (const QString&, const QString&, bool); +%End + +%End + + +protected: + +}; // class KPrinter + +KPrinter::PageSize pageNameToPageSize (const QString&); +const char* pageSizeToPageName (KPrinter::PageSize); +//ig QSize rangeToSize (const QString&); diff --git a/sip/kdeui/kaboutapplication.sip b/sip/kdeui/kaboutapplication.sip new file mode 100644 index 0000000..4e64757 --- /dev/null +++ b/sip/kdeui/kaboutapplication.sip @@ -0,0 +1,205 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KAboutApplication : KAboutDialog +{ +%TypeHeaderCode +#include +%End + + +public: + KAboutApplication (QWidget* /TransferThis/ = 0, const char* = 0, bool = 1); + KAboutApplication (const KAboutData*, QWidget* /TransferThis/ = 0, const char* = 0, bool = 1); + +protected: + void buildDialog (const KAboutData*); + +//force +%ConvertToSubClassCode + // The table of Python class objects indexed by their names. The table + // must be sorted by name. + + static sipStringTypeClassMap map[] = { + {sipName_KAboutApplication, &sipClass_KAboutApplication}, + {sipName_KAboutContainer, &sipClass_KAboutContainer}, + {sipName_KAboutContributor, &sipClass_KAboutContributor}, + {sipName_KAboutDialog, &sipClass_KAboutDialog}, + {sipName_KAboutKDE, &sipClass_KAboutKDE}, + {sipName_KAboutWidget, &sipClass_KAboutWidget}, + {sipName_KAction, &sipClass_KAction}, + {sipName_KActionCollection, &sipClass_KActionCollection}, + {sipName_KActionMenu, &sipClass_KActionMenu}, + {sipName_KActionSeparator, &sipClass_KActionSeparator}, + {sipName_KActiveLabel, &sipClass_KActiveLabel}, + {sipName_KAnimWidget, &sipClass_KAnimWidget}, + {sipName_KArrowButton, &sipClass_KArrowButton}, + {sipName_KAuthIcon, &sipClass_KAuthIcon}, + {sipName_KBugReport, &sipClass_KBugReport}, + {sipName_KButtonBox, &sipClass_KButtonBox}, + {sipName_KCModule, &sipClass_KCModule}, + {sipName_KCharSelect, &sipClass_KCharSelect}, + {sipName_KCharSelectTable, &sipClass_KCharSelectTable}, + {sipName_KColorButton, &sipClass_KColorButton}, + {sipName_KColorCells, &sipClass_KColorCells}, + {sipName_KColorCombo, &sipClass_KColorCombo}, + {sipName_KColorDialog, &sipClass_KColorDialog}, + {sipName_KColorDrag, &sipClass_KColorDrag}, + {sipName_KColorPatch, &sipClass_KColorPatch}, + {sipName_KComboBox, &sipClass_KComboBox}, + {sipName_KCommandHistory, &sipClass_KCommandHistory}, + {sipName_KCompletionBox, &sipClass_KCompletionBox}, + {sipName_KContextMenuManager, &sipClass_KContextMenuManager}, + {sipName_KDateInternalMonthPicker,&sipClass_KDateInternalMonthPicker}, +#if KDE_VERSION >= 0x030100 + {sipName_KDateInternalWeekSelector,&sipClass_KDateInternalWeekSelector}, +#endif + {sipName_KDateInternalYearSelector,&sipClass_KDateInternalYearSelector}, + {sipName_KDatePicker, &sipClass_KDatePicker}, + {sipName_KDatePicker, &sipClass_KDatePicker}, + {sipName_KDateTable, &sipClass_KDateTable}, + {sipName_KDateValidator, &sipClass_KDateValidator}, + {sipName_KDateWidget, &sipClass_KDateWidget}, + {sipName_KDialog, &sipClass_KDialog}, + {sipName_KDialogBase, &sipClass_KDialogBase}, + {sipName_KDialogQueue, &sipClass_KDialogQueue}, + {sipName_KDockArea, &sipClass_KDockArea}, + {sipName_KDockMainWindow, &sipClass_KDockMainWindow}, + {sipName_KDockManager, &sipClass_KDockManager}, + {sipName_KDockTabGroup, &sipClass_KDockTabGroup}, + {sipName_KDockWidget, &sipClass_KDockWidget}, + {sipName_KDockWidgetAbstractHeader,&sipClass_KDockWidgetAbstractHeader}, + {sipName_KDockWidgetAbstractHeaderDrag,&sipClass_KDockWidgetAbstractHeaderDrag}, + {sipName_KDockWidgetHeader, &sipClass_KDockWidgetHeader}, + {sipName_KDockWidgetHeaderDrag, &sipClass_KDockWidgetHeaderDrag}, +// {sipName_KDockWindow, &sipClass_KDockWindow}, +#if KDE_VERSION >= 0x030100 + {sipName_KDoubleSpinBox, &sipClass_KDoubleSpinBox}, + {sipName_KDoubleValidator, &sipClass_KDoubleValidator}, +#endif + {sipName_KDualColorButton, &sipClass_KDualColorButton}, + {sipName_KDualColorButton, &sipClass_KDualColorButton}, + {sipName_KEdFind, &sipClass_KEdFind}, + {sipName_KEdGotoLine, &sipClass_KEdGotoLine}, + {sipName_KEdReplace, &sipClass_KEdReplace}, + {sipName_KEdit, &sipClass_KEdit}, + {sipName_KEditListBox, &sipClass_KEditListBox}, + {sipName_KEditToolbar, &sipClass_KEditToolbar}, + {sipName_KEditToolbarWidget, &sipClass_KEditToolbarWidget}, + {sipName_KFloatValidator, &sipClass_KFloatValidator}, + {sipName_KFontAction, &sipClass_KFontAction}, + {sipName_KFontChooser, &sipClass_KFontChooser}, + {sipName_KFontCombo, &sipClass_KFontCombo}, + {sipName_KFontDialog, &sipClass_KFontDialog}, + {sipName_KFontSizeAction, &sipClass_KFontSizeAction}, + {sipName_KGradientSelector, &sipClass_KGradientSelector}, + {sipName_KHSSelector, &sipClass_KHSSelector}, + {sipName_KHelpMenu, &sipClass_KHelpMenu}, + {sipName_KHistoryCombo, &sipClass_KHistoryCombo}, + {sipName_KIconView, &sipClass_KIconView}, + {sipName_KIntSpinBox, &sipClass_KIntSpinBox}, + {sipName_KIntValidator, &sipClass_KIntValidator}, + {sipName_KJanusWidget, &sipClass_KJanusWidget}, + {sipName_KKeyButton, &sipClass_KKeyButton}, + {sipName_KKeyChooser, &sipClass_KKeyChooser}, + {sipName_KKeyDialog, &sipClass_KKeyDialog}, + {sipName_KLed, &sipClass_KLed}, + {sipName_KLineEdit, &sipClass_KLineEdit}, + {sipName_KLineEditDlg, &sipClass_KLineEditDlg}, + {sipName_KListAction, &sipClass_KListAction}, + {sipName_KListBox, &sipClass_KListBox}, + {sipName_KListView, &sipClass_KListView}, + {sipName_KMainWindow, &sipClass_KMainWindow}, + {sipName_KMenuBar, &sipClass_KMenuBar}, + {sipName_KMimeTypeValidator, &sipClass_KMimeTypeValidator}, + {sipName_KNumInput, &sipClass_KNumInput}, + {sipName_KPaletteTable, &sipClass_KPaletteTable}, + {sipName_KPanelApplet, &sipClass_KPanelApplet}, + {sipName_KPanelAppMenu, &sipClass_KPanelAppMenu}, + {sipName_KPanelExtension, &sipClass_KPanelExtension}, + {sipName_KPanelMenu, &sipClass_KPanelMenu}, +#if KDE_VERSION >= 0x030100 + {sipName_KPassivePopup, &sipClass_KPassivePopup}, +#endif + {sipName_KPasswordDialog, &sipClass_KPasswordDialog}, + {sipName_KPasswordEdit, &sipClass_KPasswordEdit}, + {sipName_KPopupFrame, &sipClass_KPopupFrame}, + {sipName_KPopupMenu, &sipClass_KPopupMenu}, + {sipName_KPopupTitle, &sipClass_KPopupTitle}, + {sipName_KProgress, &sipClass_KProgress}, + {sipName_KProgressDialog, &sipClass_KProgressDialog}, + {sipName_KPushButton, &sipClass_KPushButton}, + {sipName_KRadioAction, &sipClass_KRadioAction}, + {sipName_KRecentFilesAction, &sipClass_KRecentFilesAction}, + {sipName_KRestrictedLine, &sipClass_KRestrictedLine}, + {sipName_KRootPermsIcon, &sipClass_KRootPermsIcon}, + {sipName_KRootPixmap, &sipClass_KRootPixmap}, + {sipName_KRuler, &sipClass_KRuler}, + {sipName_KSelectAction, &sipClass_KSelectAction}, + {sipName_KSelector, &sipClass_KSelector}, + {sipName_KSeparator, &sipClass_KSeparator}, +// {sipName_KSharedPixmap, &sipClass_KSharedPixmap}, + {sipName_KSqueezedTextLabel, &sipClass_KSqueezedTextLabel}, + {sipName_KStatusBar, &sipClass_KStatusBar}, + {sipName_KStatusBarLabel, &sipClass_KStatusBarLabel}, + {sipName_KStringListValidator, &sipClass_KStringListValidator}, + {sipName_KSystemTray, &sipClass_KSystemTray}, + {sipName_KTabCtl, &sipClass_KTabCtl}, + {sipName_KTextBrowser, &sipClass_KTextBrowser}, +#if KDE_VERSION >= 0x030100 + {sipName_KTextEdit, &sipClass_KTextEdit}, +#endif + {sipName_KTipDialog, &sipClass_KTipDialog}, + {sipName_KToggleAction, &sipClass_KToggleAction}, +#if KDE_VERSION >= 0x030100 + {sipName_KToggleToolBarAction, &sipClass_KToggleToolBarAction}, +#endif + {sipName_KToolBar, &sipClass_KToolBar}, + {sipName_KToolBarButton, &sipClass_KToolBarButton}, + {sipName_KToolBarPopupAction, &sipClass_KToolBarPopupAction}, + {sipName_KToolBarRadioGroup, &sipClass_KToolBarRadioGroup}, + {sipName_KToolBarSeparator, &sipClass_KToolBarSeparator}, + {sipName_KURLLabel, &sipClass_KURLLabel}, + {sipName_KValueSelector, &sipClass_KValueSelector}, +#if KDE_VERSION >= 0x030100 + {sipName_KWidgetAction, &sipClass_KWidgetAction}, + {sipName_KWindowInfo, &sipClass_KWindowInfo}, +#endif + {sipName_KWindowListMenu, &sipClass_KWindowListMenu}, + {sipName_KWizard, &sipClass_KWizard}, + {sipName_KWritePermsIcon, &sipClass_KWritePermsIcon}, + {sipName_KXMLGUIFactory, &sipClass_KXMLGUIFactory}, + {sipName_KXYSelector, &sipClass_KXYSelector}, +// {sipName_PyKPanelApplet, &sipClass_PyKPanelApplet}, +// {sipName_QXEmbed, &sipClass_QXEmbed}, + }; + + sipClass = sipMapStringToClass(sipCpp -> className(),map,sizeof (map)/sizeof (map[0])); +%End +//end + +}; // class KAboutApplication + diff --git a/sip/kdeui/kaboutdialog.sip b/sip/kdeui/kaboutdialog.sip new file mode 100644 index 0000000..385ff69 --- /dev/null +++ b/sip/kdeui/kaboutdialog.sip @@ -0,0 +1,190 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KAboutContainer : QFrame +{ +%TypeHeaderCode +#include +%End + + +public: + KAboutContainer (QWidget* /TransferThis/ = 0, const char* = 0, int = 0, int = 0, int = AlignCenter , int = AlignCenter ); + void addWidget (QWidget*); + void addPerson (const QString&, const QString&, const QString&, const QString&, bool = 0, bool = 0, bool = 0); + void addTitle (const QString&, int = AlignLeft , bool = 0, bool = 0); + void addImage (const QString&, int = AlignLeft ); + virtual QSize sizeHint () const; + virtual QSize minimumSizeHint () const; + +protected: + virtual void childEvent (QChildEvent*); + +signals: + void urlClick (const QString&); + void mailClick (const QString&, const QString&); + +}; // class KAboutContainer + + +class KAboutContributor : QFrame +{ +%TypeHeaderCode +#include +%End + + +public: + KAboutContributor (QWidget* /TransferThis/ = 0, const char* = 0, const QString& = QString ::null , const QString& = QString ::null , const QString& = QString ::null , const QString& = QString ::null , bool = 0, bool = 1, bool = 0); + void setName (const QString&, const QString& = QString ::null , bool = 1); + void setEmail (const QString&, const QString& = QString ::null , bool = 1); + void setURL (const QString&, const QString& = QString ::null , bool = 1); + void setWork (const QString&, const QString& = QString ::null , bool = 1); + QString getName (); + QString getEmail (); + QString getURL (); + QString getWork (); + virtual QSize sizeHint () const; + +protected: + virtual void fontChange (const QFont&); + +protected slots: + void urlClickedSlot (const QString&); + void emailClickedSlot (const QString&); + +signals: + void sendEmail (const QString&, const QString&); + void openURL (const QString&); + +}; // class KAboutContributor + + +class KAboutWidget : QWidget +{ +%TypeHeaderCode +#include +%End + + +public: + KAboutWidget (QWidget* /TransferThis/ = 0, const char* = 0); + void adjust (); + void setLogo (const QPixmap&); + void setAuthor (const QString&, const QString&, const QString&, const QString&); + void setMaintainer (const QString&, const QString&, const QString&, const QString&); + void addContributor (const QString&, const QString&, const QString&, const QString&); + void setVersion (const QString&); + +protected slots: + void sendEmailSlot (const QString&, const QString&); + void openURLSlot (const QString&); + +signals: + void sendEmail (const QString&, const QString&); + void openURL (const QString&); + +protected: + void resizeEvent (QResizeEvent*); + +}; // class KAboutWidget + + +class KAboutDialog : KDialogBase +{ +%TypeHeaderCode +#include +%End + + +public: + + enum LayoutType + { + AbtPlain, + AbtTabbed, + AbtTitle, + AbtImageLeft, + AbtImageRight, + AbtImageOnly, + AbtProduct, + AbtKDEStandard, + AbtAppStandard, + AbtImageAndTitle + }; + + +public: + KAboutDialog (QWidget* /TransferThis/ = 0, const char* = 0, bool = 1); + KAboutDialog (int, const QString&, int, ButtonCode, QWidget* /TransferThis/ = 0, const char* = 0, bool = 0, bool = 0, const QString& = QString ::null , const QString& = QString ::null , const QString& = QString ::null ); + void adjust (); + virtual void show (); + virtual void show (QWidget*); + void setTitle (const QString&); + void setImage (const QString&); + +%If ( KDE_3_3_0 - ) + void setIcon (const QString&); + +%If ( KDE_3_4_0 - ) + void setProgramLogo (const QString&); + void setProgramLogo (const QPixmap&); +%End + +%End + + void setImageBackgroundColor (const QColor&); + void setImageFrame (bool); + void setProduct (const QString&, const QString&, const QString&, const QString&); + QFrame* addTextPage (const QString&, const QString&, bool = 0, int = 10); + QFrame* addLicensePage (const QString&, const QString&, int = 10); + KAboutContainer* addContainerPage (const QString&, int = AlignCenter , int = AlignCenter ); + KAboutContainer* addScrolledContainerPage (const QString&, int = AlignCenter , int = AlignCenter ); + KAboutContainer* addContainer (int, int); + QFrame* addPage (const QString&); + void setLogo (const QPixmap&); + void setAuthor (const QString&, const QString&, const QString&, const QString&); + void setMaintainer (const QString&, const QString&, const QString&, const QString&); + void addContributor (const QString&, const QString&, const QString&, const QString&); + void setVersion (const QString&); + static void imageURL (QWidget* /Transfer/, const QString&, const QString&, const QColor&, const QString&); + +signals: + void sendEmail (const QString&, const QString&); + void openURL (const QString&); + +protected: + +protected slots: + void sendEmailSlot (const QString&, const QString&); + void openURLSlot (const QString&); + virtual void mouseTrackSlot (int, const QMouseEvent*); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KAboutDialog + diff --git a/sip/kdeui/kaboutkde.sip b/sip/kdeui/kaboutkde.sip new file mode 100644 index 0000000..76a3147 --- /dev/null +++ b/sip/kdeui/kaboutkde.sip @@ -0,0 +1,38 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KAboutKDE : KAboutDialog +{ +%TypeHeaderCode +#include +%End + + +public: + KAboutKDE (QWidget* /TransferThis/ = 0, const char* = 0, bool = 1); + +}; // class KAboutKDE + diff --git a/sip/kdeui/kaccelmanager.sip b/sip/kdeui/kaccelmanager.sip new file mode 100644 index 0000000..6d00d44 --- /dev/null +++ b/sip/kdeui/kaccelmanager.sip @@ -0,0 +1,43 @@ +// +// Copyright 2003 Jim Bublitz +// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE_3_1_4 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_1_0 - ) + +class KAcceleratorManager +{ +%TypeHeaderCode +#include +%End + + +public: + static void manage (QWidget*); + static void manage (QWidget*, bool); + +}; // class KAcceleratorManager + +%End + diff --git a/sip/kdeui/kaccelmenu.sip b/sip/kdeui/kaccelmenu.sip new file mode 100644 index 0000000..b015e1b --- /dev/null +++ b/sip/kdeui/kaccelmenu.sip @@ -0,0 +1,53 @@ +// +// Copyright 2003 Jim Bublitz +// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE_3_1_1 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KAccelMenu : KPopupMenu +{ +%TypeHeaderCode +#include +#include +#include +%End + + +public: + KAccelMenu (KAccel*, QWidget*/TransferThis/ = 0, const char* = 0); + int insItem (const QPixmap&, const char*, const char*, SIP_RXOBJ_CON, SIP_SLOT_CON (int), const char* = 0); + int insItem (const char*, const char*, SIP_RXOBJ_CON, SIP_SLOT_CON (int), const char* = 0); + int insItem (const QPixmap&, const char*, const char*, SIP_RXOBJ_CON, SIP_SLOT_CON (int), KStdAccel::StdAccel); + int insItem (const char*, const char*, SIP_RXOBJ_CON, SIP_SLOT_CON (int), KStdAccel::StdAccel); + +protected: + char* stripAnd (const char*); + void keyPressEvent (QKeyEvent*); + void popMsg (); + +protected slots: + void highl (int); + void aboutTS (); + +}; // class KAccelMenu + diff --git a/sip/kdeui/kaction.sip b/sip/kdeui/kaction.sip new file mode 100644 index 0000000..d8949aa --- /dev/null +++ b/sip/kdeui/kaction.sip @@ -0,0 +1,758 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KAction : QObject +{ +%TypeHeaderCode +#include +%End + + +public: + KAction (const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /TransferThis/, const char*); + KAction (const QString&, const QIconSet&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /TransferThis/, const char*); + KAction (const QString&, const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /TransferThis/, const char*); + KAction (const KGuiItem&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /TransferThis/, const char*); + KAction (const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KAction (const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KAction (const QString&, const QIconSet&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KAction (const QString&, const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KAction (const QString&, const QIconSet&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KAction (const QString&, const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KAction (QObject* /TransferThis/ = 0, const char* = 0); + virtual int plug (QWidget*, int = -1); + virtual void plugAccel (KAccel*, bool = 1); + virtual void unplug (QWidget*); + virtual void unplugAccel (); + virtual bool isPlugged () const; + +%If ( KDE_3_1_0 - ) + bool isPlugged (const QWidget*) const; +%End + + virtual bool isPlugged (const QWidget*, int) const; + virtual bool isPlugged (const QWidget*, const QWidget*) const; + QWidget* container (int) const; + int itemId (int) const; + QWidget* representative (int) const; + int containerCount () const; + +%If ( KDE_3_1_0 - ) + uint kaccelCount () const; +%End + + virtual bool hasIcon () const; + bool hasIconSet () const; + virtual QString plainText () const; + virtual QString text () const; + virtual const KShortcut& shortcut () const; + virtual const KShortcut& shortcutDefault () const; + QString shortcutText () const; + void setShortcutText (const QString&); + virtual bool isEnabled () const; + virtual bool isShortcutConfigurable () const; + virtual QString group () const; + virtual QString whatsThis () const; + virtual QString toolTip () const; + virtual QIconSet iconSet (KIcon::Group, int = 0) const; + QIconSet iconSet () const; + virtual QString icon () const; + KActionCollection* parentCollection () const; + static int getToolButtonID (); + void unplugAll (); + +%If ( KDE_3_4_0 - ) + + enum ActivationReason + { + UnknownActivation, + EmulatedActivation, + AccelActivation, + PopupMenuActivation, + ToolBarActivation + }; + +%End + + +public slots: + virtual void setText (const QString&); + virtual bool setShortcut (const KShortcut&); + virtual void setGroup (const QString&); + virtual void setWhatsThis (const QString&); + virtual void setToolTip (const QString&); + virtual void setIconSet (const QIconSet&); + virtual void setIcon (const QString&); + virtual void setEnabled (bool); + +%If ( KDE_3_5_0 - ) + void setDisabled (bool); +%End + + virtual void setShortcutConfigurable (bool); + virtual void activate (); + +protected slots: + virtual void slotDestroyed (); + virtual void slotKeycodeChanged (); + virtual void slotActivated (); + +%If ( KDE_3_4_0 - ) + void slotPopupActivated (); + void slotButtonClicked (int, Qt::ButtonState); +%End + + +protected: + KToolBar* toolBar (int) const; + QPopupMenu* popupMenu (int) const; + void removeContainer (int); + int findContainer (const QWidget*) const; + +%If ( KDE_3_4_0 - ) + int findContainer (int) const; +%End + + void plugMainWindowAccel (QWidget*); + void addContainer (QWidget* /Transfer/, int); + void addContainer (QWidget* /Transfer/, QWidget*); + virtual void updateShortcut (int); + virtual void updateShortcut (QPopupMenu*, int); + virtual void updateGroup (int); + virtual void updateText (int); + virtual void updateEnabled (int); + virtual void updateIconSet (int); + virtual void updateIcon (int); + virtual void updateToolTip (int); + virtual void updateWhatsThis (int); + +%If ( KDE_3_1_0 - ) + QString whatsThisWithIcon () const; + +%If ( KDE_3_3_0 - ) + const KGuiItem& guiItem () const; +%End + +%End + + +signals: + void activated (); + +%If ( KDE_3_4_0 - ) + void activated (KAction::ActivationReason, Qt::ButtonState); +%End + + void enabled (bool); + +public: + int accel () const; + QString statusText () const; + void setAccel (int); + void setStatusText (const QString&); + int menuId (int); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KAction + + +%If ( - KDE_3_2_0 ) + +class KToggleAction : KAction +{ +%TypeHeaderCode +#include +%End + + +public: + KToggleAction (const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KToggleAction (const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KToggleAction (const QString&, const QIconSet&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KToggleAction (const QString&, const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KToggleAction (const QString&, const QIconSet&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KToggleAction (const QString&, const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KToggleAction (QObject* /TransferThis/ = 0, const char* = 0); + virtual int plug (QWidget*, int = -1); + bool isChecked () const; + QString exclusiveGroup () const; + virtual void setExclusiveGroup (const QString&); + +public slots: + virtual void setChecked (bool); + +protected slots: + virtual void slotActivated (); + +protected: + virtual void updateChecked (int); + +signals: + void toggled (bool); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KToggleAction + +%End + + +%If ( - KDE_3_2_0 ) + +class KRadioAction : KToggleAction +{ +%TypeHeaderCode +#include +%End + + +public: + KRadioAction (const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KRadioAction (const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KRadioAction (const QString&, const QIconSet&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KRadioAction (const QString&, const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KRadioAction (const QString&, const QIconSet&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KRadioAction (const QString&, const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KRadioAction (QObject* /TransferThis/ = 0, const char* = 0); + +protected: + virtual void slotActivated (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KRadioAction + +%End + + +%If ( - KDE_3_2_0 ) + +class KSelectAction : KAction +{ +%TypeHeaderCode +#include +%End + + +public: + KSelectAction (const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KSelectAction (const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KSelectAction (const QString&, const QIconSet&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KSelectAction (const QString&, const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KSelectAction (const QString&, const QIconSet&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KSelectAction (const QString&, const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KSelectAction (QObject* /TransferThis/ = 0, const char* = 0); + virtual int plug (QWidget*, int = -1); + virtual bool isEditable () const; + virtual QStringList items () const; + virtual void changeItem (int, const QString&); + virtual QString currentText () const; + virtual int currentItem () const; + virtual int comboWidth () const; + QPopupMenu* popupMenu (); + +%If ( KDE_3_1_0 - ) + void setRemoveAmpersandsInCombo (bool); + bool removeAmpersandsInCombo () const; + void setMenuAccelsEnabled (bool); + bool menuAccelsEnabled () const; +%End + + +public slots: + virtual void setCurrentItem (int); + virtual void setItems (const QStringList&); + virtual void clear (); + virtual void setEditable (bool); + virtual void setComboWidth (int); + +protected: + virtual void changeItem (int, int, const QString&); + +%If ( KDE_3_1_0 - ) + QStringList comboItems () const; +%End + + +protected slots: + virtual void slotActivated (int); + virtual void slotActivated (const QString&); + virtual void slotActivated (); + +signals: + void activated (int); + void activated (const QString&); + +protected: + virtual void updateCurrentItem (int); + virtual void updateComboWidth (int); + virtual void updateItems (int); + virtual void updateClear (int); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KSelectAction + +%End + + +%If ( - KDE_3_2_0 ) + +class KListAction : KSelectAction +{ +%TypeHeaderCode +#include +%End + + +public: + KListAction (const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KListAction (const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KListAction (const QString&, const QIconSet&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KListAction (const QString&, const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KListAction (const QString&, const QIconSet&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KListAction (const QString&, const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KListAction (QObject* /TransferThis/ = 0, const char* = 0); + virtual QString currentText () const; + virtual int currentItem () const; + +public slots: + virtual void setCurrentItem (int); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KListAction + +%End + + +%If ( - KDE_3_2_0 ) + +class KRecentFilesAction : KListAction +{ +%TypeHeaderCode +#include +%End + + +public: + KRecentFilesAction (const QString&, const KShortcut&, QObject* /TransferThis/, const char* = 0, uint = 10); + KRecentFilesAction (const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0, uint = 10); + KRecentFilesAction (const QString&, const QIconSet&, const KShortcut&, QObject* /TransferThis/, const char* = 0, uint = 10); + KRecentFilesAction (const QString&, const QString&, const KShortcut&, QObject* /TransferThis/, const char* = 0, uint = 10); + KRecentFilesAction (const QString&, const QIconSet&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0, uint = 10); + KRecentFilesAction (const QString&, const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0, uint = 10); + KRecentFilesAction (QObject* /TransferThis/ = 0, const char* = 0, uint = 10); + uint maxItems () const; + +public slots: + void setMaxItems (uint); + void loadEntries (KConfig*, QString = QString ::null ); + void saveEntries (KConfig*, QString = QString ::null ); + +public slots: + void addURL (const KURL&); + void removeURL (const KURL&); + void clearURLList (); + +signals: + void urlSelected (const KURL&); + +protected slots: + void itemSelected (const QString&); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KRecentFilesAction + +%End + + +%If ( - KDE_3_2_0 ) + +class KFontAction : KSelectAction +{ +%TypeHeaderCode +#include +%End + + +public: + KFontAction (const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KFontAction (const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KFontAction (const QString&, const QIconSet&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KFontAction (const QString&, const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KFontAction (const QString&, const QIconSet&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KFontAction (const QString&, const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KFontAction (QObject* /TransferThis/ = 0, const char* = 0); + QString font () const; + int plug (QWidget*, int = -1); + +public slots: + void setFont (const QString&); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KFontAction + +%End + + +%If ( - KDE_3_2_0 ) + +class KFontSizeAction : KSelectAction +{ +%TypeHeaderCode +#include +%End + + +public: + KFontSizeAction (const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KFontSizeAction (const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KFontSizeAction (const QString&, const QIconSet&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KFontSizeAction (const QString&, const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KFontSizeAction (const QString&, const QIconSet&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KFontSizeAction (const QString&, const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KFontSizeAction (QObject* /TransferThis/ = 0, const char* = 0); + virtual int fontSize () const; + +public slots: + virtual void setFontSize (int); + +protected slots: + virtual void slotActivated (int); + virtual void slotActivated (const QString&); + virtual void slotActivated (); + +signals: + void fontSizeChanged (int); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KFontSizeAction + +%End + + +%If ( - KDE_3_2_0 ) + +class KActionMenu : KAction +{ +%TypeHeaderCode +#include +%End + + +public: + KActionMenu (const QString&, QObject* /TransferThis/ = 0, const char* = 0); + KActionMenu (const QString&, const QIconSet&, QObject* /TransferThis/ = 0, const char* = 0); + KActionMenu (const QString&, const QString&, QObject* /TransferThis/ = 0, const char* = 0); + KActionMenu (QObject* /TransferThis/ = 0, const char* = 0); + virtual void insert (KAction*, int = -1); + virtual void remove (KAction*); + KPopupMenu* popupMenu (); + void popup (const QPoint&); + bool delayed () const; + void setDelayed (bool); + bool stickyMenu () const; + void setStickyMenu (bool); + virtual int plug (QWidget*, int = -1); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KActionMenu + +%End + + +%If ( - KDE_3_2_0 ) + +class KToolBarPopupAction : KAction +{ +%TypeHeaderCode +#include +%End + + +public: + KToolBarPopupAction (const QString&, const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KToolBarPopupAction (const QString&, const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/ = 0, const char* = 0); + KToolBarPopupAction (const KGuiItem&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /TransferThis/, const char*); + virtual int plug (QWidget*, int = -1); + KPopupMenu* popupMenu (); + bool delayed () const; + void setDelayed (bool); + bool stickyMenu () const; + void setStickyMenu (bool); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KToolBarPopupAction + +%End + + +%If ( KDE_3_1_0 - KDE_3_2_0 ) + +class KToggleToolBarAction : KToggleAction +{ +%TypeHeaderCode +#include +%End + + +public: + KToggleToolBarAction (const char*, const QString&, KActionCollection* /TransferThis/, const char*); + KToggleToolBarAction (KToolBar*, const QString&, KActionCollection* /TransferThis/, const char*); + virtual int plug (QWidget*, int = -1); + KToolBar* toolBar (); + +public slots: + virtual void setChecked (bool); + +protected: + virtual void virtual_hook (int, void*); + +}; // class KToggleToolBarAction + +%End + + +%If ( KDE_3_1_0 - KDE_3_2_0 ) + +class KWidgetAction : KAction +{ +%TypeHeaderCode +#include +%End + + +public: + KWidgetAction (QWidget*, const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /TransferThis/, const char*); + QWidget* widget (); + void setAutoSized (bool); + virtual int plug (QWidget*, int = -1); + virtual void unplug (QWidget*); + +protected slots: + void slotToolbarDestroyed (); + +protected: + virtual void virtual_hook (int, void*); + +}; // class KWidgetAction + +%End + + +%If ( - KDE_3_2_0 ) + +class KActionSeparator : KAction +{ +%TypeHeaderCode +#include +%End + + +public: + KActionSeparator (QObject* /TransferThis/ = 0, const char* = 0); + virtual int plug (QWidget*, int = -1); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KActionSeparator + +%End + + +%If ( - KDE_3_2_0 ) + +class KActionCollection : QObject +{ +%TypeHeaderCode +#include +%End + + +public: + KActionCollection (QWidget* /TransferThis/, const char* = 0, KInstance* = 0); + KActionCollection (QWidget*, QObject* /TransferThis/, const char* = 0, KInstance* = 0); + KActionCollection (const KActionCollection&); + virtual void setWidget (QWidget*); + +%If ( KDE_3_1_0 - ) + void setAutoConnectShortcuts (bool); + bool isAutoConnectShortcuts (); + bool addDocCollection (KActionCollection*); +%End + + virtual KAccel* accel (); + +%If ( KDE_3_1_0 - ) + KAccel* kaccel (); + KAccel* builderKAccel () const; +%End + + virtual uint count () const; + bool isEmpty () const; + virtual KAction* action (int) const; + virtual KAction* action (const char*, const char* = 0) const; + virtual QStringList groups () const; + +%If ( KDE_3_1_5 - ) + virtual QValueList actions (const QString&) const; + virtual QValueList actions () const; +%End + + bool readShortcutSettings (const QString& = QString ::null , KConfigBase* = 0); + bool writeShortcutSettings (const QString& = QString ::null , KConfigBase* = 0) const; + void setInstance (KInstance*); + KInstance* instance () const; + void setXMLFile (const QString&); + const QString& xmlFile () const; + void setHighlightingEnabled (bool); + bool highlightingEnabled () const; + void connectHighlight (QWidget*, KAction*); + void disconnectHighlight (QWidget*, KAction*); + +signals: + void inserted (KAction*); + void removed (KAction*); + void actionHighlighted (KAction*); + void actionHighlighted (KAction*, bool); + void actionStatusText (const QString&); + void clearStatusText (); + +public: + KActionCollection (QObject* /TransferThis/ = 0, const char* = 0, KInstance* = 0); + void insert (KAction*); + void remove (KAction*); + KAction* take (KAction*); + +%If ( KDE_3_1_4 - ) + KActionCollection operator + (const KActionCollection&) const; + KActionCollection& operator += (const KActionCollection&); +%End + + +public slots: + void clear (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KActionCollection + +%End + + +%If ( - KDE_3_2_0 ) +//ig typedef QValueList KActionPtrList; +%End + + +%MappedType QValueList +//converts a Python list of KAction +{ +%TypeHeaderCode +#include +#include +//typedef QValueList KActionPtrList; +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New(0); + + // Create the list + PyObject *pylist; + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + QValueList *cpplist = (QValueList *)sipCpp; + PyObject *inst; + + // Get it. + QValueList::Iterator it; + for( it = cpplist->begin(); it != cpplist->end(); ++it ) + { + if (((inst = sipConvertFromInstance (*it, sipClass_KAction, sipTransferObj)) == NULL) + || PyList_Append (pylist, inst) < 0) + { + Py_DECREF (pylist); + return NULL; + } + } + + return pylist; +%End + + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QValueList *cpplist = new QValueList; + + PyObject *elem; + KAction* cpp; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + cpp = (KAction *)sipForceConvertToType(elem, sipType_KAction, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + *sipIsErr = 1; + delete cpplist; + return 0; + } + + cpplist->append (cpp); + } + + *sipCppPtr = cpplist; + + return 1; +%End +}; + + diff --git a/sip/kdeui/kactionclasses.sip b/sip/kdeui/kactionclasses.sip new file mode 100644 index 0000000..799469d --- /dev/null +++ b/sip/kdeui/kactionclasses.sip @@ -0,0 +1,529 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_2_0 - ) + +class KToggleAction : KAction +{ +%TypeHeaderCode +#include +%End + + +public: + KToggleAction (const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KToggleAction (const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KToggleAction (const QString&, const QIconSet&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KToggleAction (const QString&, const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KToggleAction (const QString&, const QIconSet&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KToggleAction (const QString&, const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KToggleAction (QObject* /TransferThis/ = 0, const char* = 0); + virtual int plug (QWidget*, int = -1); + bool isChecked () const; + QString exclusiveGroup () const; + virtual void setExclusiveGroup (const QString&); + +%If ( KDE_3_3_0 - ) + void setCheckedState (const KGuiItem&); + virtual QString toolTip () const; +%End + + +public slots: + virtual void setChecked (bool); + +protected slots: + virtual void slotActivated (); + +protected: + virtual void updateChecked (int); + +signals: + void toggled (bool); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KToggleAction + +%End + + +%If ( KDE_3_2_0 - ) + +class KRadioAction : KToggleAction +{ +%TypeHeaderCode +#include +%End + + +public: + KRadioAction (const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KRadioAction (const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KRadioAction (const QString&, const QIconSet&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KRadioAction (const QString&, const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KRadioAction (const QString&, const QIconSet&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KRadioAction (const QString&, const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KRadioAction (QObject* /TransferThis/ = 0, const char* = 0); + +protected: + virtual void slotActivated (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KRadioAction + +%End + + +%If ( KDE_3_2_0 - ) + +class KSelectAction : KAction +{ +%TypeHeaderCode +#include +%End + + +public: + KSelectAction (const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KSelectAction (const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KSelectAction (const QString&, const QIconSet&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KSelectAction (const QString&, const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KSelectAction (const QString&, const QIconSet&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KSelectAction (const QString&, const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KSelectAction (QObject* /TransferThis/ = 0, const char* = 0); + virtual int plug (QWidget*, int = -1); + virtual bool isEditable () const; + virtual QStringList items () const; + virtual void changeItem (int, const QString&); + virtual QString currentText () const; + virtual int currentItem () const; + virtual int comboWidth () const; + +%If ( KDE_3_5_0 - ) + void setMaxComboViewCount (int); +%End + + QPopupMenu* popupMenu () const; + void setRemoveAmpersandsInCombo (bool); + bool removeAmpersandsInCombo () const; + void setMenuAccelsEnabled (bool); + bool menuAccelsEnabled () const; + +%If ( KDE_3_5_0 - ) + virtual bool isShortcutConfigurable () const; +%End + + +public slots: + virtual void setCurrentItem (int); + virtual void setItems (const QStringList&); + virtual void clear (); + virtual void setEditable (bool); + virtual void setComboWidth (int); + +protected: + virtual void changeItem (int, int, const QString&); + QStringList comboItems () const; + +protected slots: + virtual void slotActivated (int); + virtual void slotActivated (const QString&); + virtual void slotActivated (); + +signals: + void activated (int); + void activated (const QString&); + +protected: + virtual void updateCurrentItem (int); + virtual void updateComboWidth (int); + virtual void updateItems (int); + virtual void updateClear (int); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KSelectAction + +%End + + +%If ( KDE_3_2_0 - ) + +class KListAction : KSelectAction +{ +%TypeHeaderCode +#include +%End + + +public: + KListAction (const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KListAction (const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KListAction (const QString&, const QIconSet&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KListAction (const QString&, const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KListAction (const QString&, const QIconSet&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KListAction (const QString&, const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KListAction (QObject* /TransferThis/ = 0, const char* = 0); + virtual QString currentText () const; + virtual int currentItem () const; + +public slots: + virtual void setCurrentItem (int); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KListAction + +%End + + +%If ( KDE_3_2_0 - ) + +class KRecentFilesAction : KListAction +{ +%TypeHeaderCode +#include +%End + + +public: + KRecentFilesAction (const QString&, const KShortcut&, QObject* /TransferThis/, const char* = 0, uint = 10); + KRecentFilesAction (const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0, uint = 10); + KRecentFilesAction (const QString&, const QIconSet&, const KShortcut&, QObject* /TransferThis/, const char* = 0, uint = 10); + KRecentFilesAction (const QString&, const QString&, const KShortcut&, QObject* /TransferThis/, const char* = 0, uint = 10); + KRecentFilesAction (const QString&, const QIconSet&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0, uint = 10); + KRecentFilesAction (const QString&, const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0, uint = 10); + KRecentFilesAction (QObject* /TransferThis/ = 0, const char* = 0, uint = 10); + virtual int plug (QWidget*, int = -1); + uint maxItems () const; + +%If ( KDE_3_5_0 - ) + virtual QStringList items () const; + QStringList completeItems () const; +%End + + +public slots: + void setMaxItems (uint); + void loadEntries (KConfig*, QString = QString ::null ); + void saveEntries (KConfig*, QString = QString ::null ); + void addURL (const KURL&); + +%If ( KDE_3_5_0 - ) + void addURL (const KURL&, const QString&); +%End + + void removeURL (const KURL&); + void clearURLList (); + +signals: + void urlSelected (const KURL&); + +protected slots: + void itemSelected (const QString&); + void menuAboutToShow (); + void menuItemActivated (int); + void slotClicked (); + virtual void slotActivated (int); + virtual void slotActivated (const QString&); + virtual void slotActivated (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KRecentFilesAction + +%End + + +%If ( KDE_3_2_0 - ) + +class KFontAction : KSelectAction +{ +%TypeHeaderCode +#include +%End + + +public: + KFontAction (const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KFontAction (const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KFontAction (const QString&, const QIconSet&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KFontAction (const QString&, const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KFontAction (const QString&, const QIconSet&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KFontAction (const QString&, const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + +%If ( KDE_3_3_0 - ) + KFontAction (uint, const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KFontAction (uint, const QString&, const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); +%End + + KFontAction (QObject* /TransferThis/ = 0, const char* = 0); + QString font () const; + int plug (QWidget*, int = -1); + +public slots: + void setFont (const QString&); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KFontAction + +%End + + +%If ( KDE_3_2_0 - ) + +class KFontSizeAction : KSelectAction +{ +%TypeHeaderCode +#include +%End + + +public: + KFontSizeAction (const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KFontSizeAction (const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KFontSizeAction (const QString&, const QIconSet&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KFontSizeAction (const QString&, const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KFontSizeAction (const QString&, const QIconSet&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KFontSizeAction (const QString&, const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KFontSizeAction (QObject* /TransferThis/ = 0, const char* = 0); + virtual int fontSize () const; + +public slots: + virtual void setFontSize (int); + +protected slots: + virtual void slotActivated (int); + virtual void slotActivated (const QString&); + virtual void slotActivated (); + +signals: + void fontSizeChanged (int); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KFontSizeAction + +%End + + +%If ( KDE_3_2_0 - ) + +class KActionMenu : KAction +{ +%TypeHeaderCode +#include +%End + + +public: + KActionMenu (const QString&, QObject* /TransferThis/ = 0, const char* = 0); + KActionMenu (const QString&, const QIconSet&, QObject* /TransferThis/ = 0, const char* = 0); + KActionMenu (const QString&, const QString&, QObject* /TransferThis/ = 0, const char* = 0); + KActionMenu (QObject* /TransferThis/ = 0, const char* = 0); + virtual void insert (KAction*, int = -1); + virtual void remove (KAction*); + KPopupMenu* popupMenu () const; + void popup (const QPoint&); + bool delayed () const; + void setDelayed (bool); + bool stickyMenu () const; + void setStickyMenu (bool); + virtual int plug (QWidget*, int = -1); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KActionMenu + +%End + + +%If ( KDE_3_2_0 - ) + +class KToolBarPopupAction : KAction +{ +%TypeHeaderCode +#include +%End + + +public: + KToolBarPopupAction (const QString&, const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KToolBarPopupAction (const QString&, const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/ = 0, const char* = 0); + KToolBarPopupAction (const KGuiItem&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /TransferThis/, const char*); + virtual int plug (QWidget*, int = -1); + KPopupMenu* popupMenu () const; + bool delayed () const; + void setDelayed (bool); + bool stickyMenu () const; + void setStickyMenu (bool); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KToolBarPopupAction + +%End + + +%If ( KDE_3_2_0 - ) + +class KToggleToolBarAction : KToggleAction +{ +%TypeHeaderCode +#include +%End + + +public: + KToggleToolBarAction (const char*, const QString&, KActionCollection* /TransferThis/, const char*); + KToggleToolBarAction (KToolBar*, const QString&, KActionCollection* /TransferThis/, const char*); + virtual int plug (QWidget*, int = -1); + KToolBar* toolBar (); + +public slots: + virtual void setChecked (bool); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KToggleToolBarAction + +%End + + +%If ( KDE_3_2_0 - ) + +class KToggleFullScreenAction : KToggleAction +{ +%TypeHeaderCode +#include +%End + + +public: + KToggleFullScreenAction (const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, QWidget*, const char*); + void setWindow (QWidget*); + +public slots: + virtual void setChecked (bool); + +protected: + virtual bool eventFilter (QObject*, QEvent*); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KToggleFullScreenAction + +%End + + +%If ( KDE_3_2_0 - ) + +class KWidgetAction : KAction +{ +%TypeHeaderCode +#include +%End + + +public: + KWidgetAction (QWidget*, const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /TransferThis/, const char*); + QWidget* widget (); + void setAutoSized (bool); + virtual int plug (QWidget*, int = -1); + virtual void unplug (QWidget*); + +protected slots: + void slotToolbarDestroyed (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KWidgetAction + +%End + + +%If ( KDE_3_2_0 - ) + +class KActionSeparator : KAction +{ +%TypeHeaderCode +#include +%End + + +public: + KActionSeparator (QObject* /TransferThis/ = 0, const char* = 0); + virtual int plug (QWidget*, int = -1); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KActionSeparator + +%End + + +%If ( KDE_3_2_0 - ) + +class KPasteTextAction : KAction +{ +%TypeHeaderCode +#include +%End + + +public: + KPasteTextAction (const QString&, const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/ = 0, const char* = 0); + void setMixedMode (bool); + virtual int plug (QWidget*, int = -1); + +protected slots: + void menuAboutToShow (); + void menuItemActivated (int); + virtual void slotActivated (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KPasteTextAction + +%End + diff --git a/sip/kdeui/kactioncollection.sip b/sip/kdeui/kactioncollection.sip new file mode 100644 index 0000000..7c0c0b1 --- /dev/null +++ b/sip/kdeui/kactioncollection.sip @@ -0,0 +1,125 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_2_0 - ) + +class KActionCollection : QObject +{ +%TypeHeaderCode +#include +%End + + +public: + KActionCollection (QWidget* /TransferThis/, const char* = 0, KInstance* = 0); + KActionCollection (QWidget*, QObject* /TransferThis/, const char* = 0, KInstance* = 0); + KActionCollection (const KActionCollection&); + virtual void setWidget (QWidget*); + void setAutoConnectShortcuts (bool); + bool isAutoConnectShortcuts (); + bool addDocCollection (KActionCollection*); + virtual KAccel* accel (); + KAccel* kaccel (); + KAccel* builderKAccel () const; + virtual uint count () const; + bool isEmpty () const; + virtual KAction* action (int) const; + virtual KAction* action (const char*, const char* = 0) const; + virtual QStringList groups () const; + virtual KActionPtrList actions (const QString&) const; + virtual KActionPtrList actions () const; + bool readShortcutSettings (const QString& = QString ::null , KConfigBase* = 0); + bool writeShortcutSettings (const QString& = QString ::null , KConfigBase* = 0) const; + void setInstance (KInstance*); + KInstance* instance () const; + void setXMLFile (const QString&); + const QString& xmlFile () const; + void setHighlightingEnabled (bool); + bool highlightingEnabled () const; + void connectHighlight (QWidget*, KAction*); + void disconnectHighlight (QWidget*, KAction*); + +%If ( KDE_3_3_0 - ) + const KXMLGUIClient* parentGUIClient () const; +%End + + +signals: + void inserted (KAction*); + void removed (KAction*); + void actionHighlighted (KAction*); + void actionHighlighted (KAction*, bool); + void actionStatusText (const QString&); + void clearStatusText (); + +public: + KActionCollection (QObject* /TransferThis/, const char* = 0, KInstance* = 0); + +public: + void insert (KAction*); + void remove (KAction*); + KAction* take (KAction*); + KActionCollection operator + (const KActionCollection&) const; + KActionCollection& operator += (const KActionCollection&); + +public slots: + void clear (); + +protected: +//igx virtual void virtual_hook (int, void*); + +%If ( KDE_3_3_0 - ) + +private: + KActionCollection (const char*, const KXMLGUIClient* /TransferThis/); +%End + + +public: + +%If ( - KDE_3_2_2 ) + +%If ( D_MANDRAKE ) + virtual QValueList actions (const QString&) const; + virtual QValueList actions () const; +%End + +%End + + +}; // class KActionCollection + +%End + + +%If ( KDE_3_2_0 - ) +typedef QValueList KActionPtrList; +%End + + +%If ( - KDE_3_2_2 ) +//ig typedef QValueList KActionPtrList; +%End diff --git a/sip/kdeui/kactionselector.sip b/sip/kdeui/kactionselector.sip new file mode 100644 index 0000000..6085356 --- /dev/null +++ b/sip/kdeui/kactionselector.sip @@ -0,0 +1,106 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_3_0 - ) + +class KActionSelector : QWidget +{ +%TypeHeaderCode +#include +%End + + +public: + KActionSelector (QWidget* /TransferThis/ = 0, const char* = 0); + QListBox* availableListBox () const; + QListBox* selectedListBox () const; + + enum MoveButton + { + ButtonAdd, + ButtonRemove, + ButtonUp, + ButtonDown + }; + + + enum ButtonIconSize + { + SmallIcon, + Small, + Medium, + Large, + XLarge + }; + + + enum InsertionPolicy + { + BelowCurrent, + Sorted, + AtTop, + AtBottom + }; + + bool moveOnDoubleClick () const; + void setMoveOnDoubleClick (bool); + bool keyboardEnabled () const; + void setKeyboardEnabled (bool); + QString availableLabel () const; + void setAvailableLabel (const QString&); + QString selectedLabel () const; + void setSelectedLabel (const QString&); + KActionSelector::ButtonIconSize buttonIconSize () const; + void setButtonIconSize (KActionSelector::ButtonIconSize); + KActionSelector::InsertionPolicy availableInsertionPolicy () const; + void setAvailableInsertionPolicy (KActionSelector::InsertionPolicy); + KActionSelector::InsertionPolicy selectedInsertionPolicy () const; + void setSelectedInsertionPolicy (KActionSelector::InsertionPolicy); + bool showUpDownButtons () const; + void setShowUpDownButtons (bool); + void setButtonIcon (const QString&, KActionSelector::MoveButton); + void setButtonIconSet (const QIconSet&, KActionSelector::MoveButton); + void setButtonTooltip (const QString&, KActionSelector::MoveButton); + void setButtonWhatsThis (const QString&, KActionSelector::MoveButton); + void setButtonsEnabled (); + +signals: + void added (QListBoxItem*); + void removed (QListBoxItem*); + void movedUp (QListBoxItem*); + void movedDown (QListBoxItem*); + +public slots: + void polish (); + +protected: + void keyPressEvent (QKeyEvent*); + bool eventFilter (QObject*, QEvent*); + +}; // class KActionSelector + +%End + diff --git a/sip/kdeui/kactionshortcutlist.sip b/sip/kdeui/kactionshortcutlist.sip new file mode 100644 index 0000000..572c104 --- /dev/null +++ b/sip/kdeui/kactionshortcutlist.sip @@ -0,0 +1,106 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KActionShortcutList : KShortcutList +{ +%TypeHeaderCode +#include +#include +#include +#include +%End + + +public: + KActionShortcutList (KActionCollection*); + virtual uint count () const; + virtual QString name (uint) const; + virtual QString label (uint) const; + virtual QString whatsThis (uint) const; + virtual const KShortcut& shortcut (uint) const; + virtual const KShortcut& shortcutDefault (uint) const; + virtual bool isConfigurable (uint) const; + virtual bool setShortcut (uint, const KShortcut&); + virtual const KInstance* instance () const; + virtual QVariant getOther (Other, uint) const; + virtual bool setOther (Other, uint, QVariant); + virtual bool save () const; + +%If ( KDE_3_3_0 - ) + const KAction* action (uint) const; +%End + + +protected: + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KActionShortcutList + + +class KActionPtrShortcutList : KShortcutList +{ +%TypeHeaderCode +#include +#include +#include +#include +%End + + +public: + +%If ( KDE_3_2_0 - ) + KActionPtrShortcutList (KActionPtrList&); +%End + + virtual uint count () const; + virtual QString name (uint) const; + virtual QString label (uint) const; + virtual QString whatsThis (uint) const; + virtual const KShortcut& shortcut (uint) const; + virtual const KShortcut& shortcutDefault (uint) const; + virtual bool isConfigurable (uint) const; + virtual bool setShortcut (uint, const KShortcut&); + virtual QVariant getOther (Other, uint) const; + virtual bool setOther (Other, uint, QVariant); + virtual bool save () const; + +protected: + +protected: +//igx virtual void virtual_hook (int, void*); + +public: + +%If ( - KDE_3_2_0 ) + KActionPtrShortcutList (QValueList&); +%End + + +}; // class KActionPtrShortcutList + diff --git a/sip/kdeui/kactivelabel.sip b/sip/kdeui/kactivelabel.sip new file mode 100644 index 0000000..2a2ac99 --- /dev/null +++ b/sip/kdeui/kactivelabel.sip @@ -0,0 +1,58 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KActiveLabel : QTextBrowser +{ +%TypeHeaderCode +#include +%End + + +public: + KActiveLabel (QWidget* /TransferThis/, const char* = 0); + KActiveLabel (const QString&, QWidget* /TransferThis/, const char* = 0); + +%If ( KDE_3_1_0 - ) + QSize minimumSizeHint () const; + QSize sizeHint () const; +%End + + +public slots: + virtual void openLink (const QString&); + +protected: +//igx virtual void virtual_hook (int, void*); + virtual void focusInEvent (QFocusEvent*); + virtual void focusOutEvent (QFocusEvent*); + +%If ( KDE_3_4_0 - ) + virtual void keyPressEvent (QKeyEvent*); +%End + + +}; // class KActiveLabel + diff --git a/sip/kdeui/kalphapainter.sip b/sip/kdeui/kalphapainter.sip new file mode 100644 index 0000000..8c9c5e6 --- /dev/null +++ b/sip/kdeui/kalphapainter.sip @@ -0,0 +1,41 @@ +// +// Copyright 2003 Jim Bublitz +// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE_3_1_1 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KAlphaPainter +{ +%TypeHeaderCode +#include +%End + + +public: + static bool draw (QPainter*, const QImage&, QImage&, int, int, bool = 0, int = 0, int = 0); + static bool draw (QPainter*, const QImage&, const QPixmap&, int, int, bool = 0, int = 0, int = 0); + static bool draw (QPainter*, const QPixmap&, QImage&, int, int, bool = 0, int = 0, int = 0); + static bool draw (QPainter*, const QPixmap&, const QPixmap&, int, int, int = 0, int = 0); + +}; // class KAlphaPainter + diff --git a/sip/kdeui/kanimwidget.sip b/sip/kdeui/kanimwidget.sip new file mode 100644 index 0000000..9948bc1 --- /dev/null +++ b/sip/kdeui/kanimwidget.sip @@ -0,0 +1,92 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KAnimWidget : QFrame +{ +%TypeHeaderCode +#include +%End + + +public: + KAnimWidget (const QString&, int = 0, QWidget* /TransferThis/ = 0, const char* = 0); + void setSize (int); + +%If ( KDE_3_4_0 - ) + int size () const; + QString icons () const; +%End + + void setIcons (const QString&); + +public slots: + +%If ( KDE_3_4_0 - ) + void start (); + void stop (); +%End + + +signals: + void clicked (); + +protected: + virtual void drawContents (QPainter*); + virtual void leaveEvent (QEvent*); + virtual void enterEvent (QEvent*); + virtual void hideEvent (QHideEvent*); + virtual void showEvent (QShowEvent*); + virtual void mousePressEvent (QMouseEvent*); + +%If ( KDE_3_1_0 - ) + virtual void mouseReleaseEvent (QMouseEvent*); +%End + + +protected slots: + void slotTimerUpdate (); + void updateIcons (); + +protected: +//igx virtual void virtual_hook (int, void*); + +public: + +%If ( - KDE_3_4_0 ) + void start (); + void stop (); +%End + + +public: + +%If ( - KDE_3_2_0 ) +//ig KAnimWidget (QWidget* /TransferThis/ = 0, const char* = 0); +%End + + +}; // class KAnimWidget + diff --git a/sip/kdeui/karrowbutton.sip b/sip/kdeui/karrowbutton.sip new file mode 100644 index 0000000..4a04f78 --- /dev/null +++ b/sip/kdeui/karrowbutton.sip @@ -0,0 +1,55 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KArrowButton : QPushButton +{ +%TypeHeaderCode +#include +%End + + +public: + KArrowButton (QWidget* /TransferThis/ = 0, Qt::ArrowType = Qt ::UpArrow , const char* = 0); + virtual QSize sizeHint () const; + +%If ( KDE_3_4_0 - ) + Qt::ArrowType arrowType () const; + int arrowTp () const; + void setArrowTp (int); +%End + + +public slots: + void setArrowType (Qt::ArrowType); + +protected: + virtual void drawButton (QPainter*); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KArrowButton + diff --git a/sip/kdeui/kauthicon.sip b/sip/kdeui/kauthicon.sip new file mode 100644 index 0000000..ab9ccc6 --- /dev/null +++ b/sip/kdeui/kauthicon.sip @@ -0,0 +1,101 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KAuthIcon : QWidget +{ +%TypeHeaderCode +#include +%End + + +public: + KAuthIcon (QWidget* /TransferThis/ = 0, const char* = 0); + virtual QSize sizeHint () const; + virtual bool status () const = 0; + +public slots: + virtual void updateStatus () = 0; + +signals: + void authChanged (bool); + +protected: + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KAuthIcon + + +class KRootPermsIcon : KAuthIcon +{ +%TypeHeaderCode +#include +%End + + +public: + KRootPermsIcon (QWidget* /TransferThis/ = 0, const char* = 0); + bool status () const; + +public slots: + void updateStatus (); + +protected: + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KRootPermsIcon + + +class KWritePermsIcon : KAuthIcon +{ +%TypeHeaderCode +#include +%End + + +public: + KWritePermsIcon (const QString&, QWidget* /TransferThis/ = 0, const char* = 0); + bool status () const; + void setFileName (const QString&); + +%If ( KDE_3_4_0 - ) + QString fileName () const; +%End + + +public slots: + void updateStatus (); + +protected: + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KWritePermsIcon + diff --git a/sip/kdeui/kbugreport.sip b/sip/kdeui/kbugreport.sip new file mode 100644 index 0000000..72239ce --- /dev/null +++ b/sip/kdeui/kbugreport.sip @@ -0,0 +1,54 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KBugReport : KDialogBase +{ +%TypeHeaderCode +#include +%End + + +public: + KBugReport (QWidget* /TransferThis/ = 0, bool = 1, const KAboutData* = 0); + +protected slots: + virtual void slotConfigureEmail (); + virtual void slotSetFrom (); + virtual void slotUrlClicked (const QString&); + virtual void slotOk (); + virtual void slotCancel (); + void appChanged (int); + void updateURL (); + +protected: + QString text (); + bool sendBugReport (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KBugReport + diff --git a/sip/kdeui/kbuttonbox.sip b/sip/kdeui/kbuttonbox.sip new file mode 100644 index 0000000..dfd9d2d --- /dev/null +++ b/sip/kdeui/kbuttonbox.sip @@ -0,0 +1,59 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KButtonBox : QWidget +{ +%TypeHeaderCode +#include +%End + + +public: + KButtonBox (QWidget* /TransferThis/, Orientation = Horizontal , int = 0, int = 6); + virtual QSize sizeHint () const; + virtual QSizePolicy sizePolicy () const; + virtual void resizeEvent (QResizeEvent*); + QPushButton* addButton (const QString&, bool = 0); + QPushButton* addButton (const QString&, SIP_RXOBJ_CON, SIP_SLOT_CON (), bool = 0); + +%If ( KDE_3_3_0 - ) + QPushButton* addButton (const KGuiItem&, bool = 0); + QPushButton* addButton (const KGuiItem&, SIP_RXOBJ_CON, SIP_SLOT_CON (), bool = 0); +%End + + void addStretch (int = 1); + void layout (); + +protected: + QSize bestButtonSize () const; + void placeButtons (); + QSize buttonSizeHint (QPushButton*) const; + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KButtonBox + diff --git a/sip/kdeui/kcharselect.sip b/sip/kdeui/kcharselect.sip new file mode 100644 index 0000000..91b7bfd --- /dev/null +++ b/sip/kdeui/kcharselect.sip @@ -0,0 +1,130 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KCharSelectTable : QGridView +{ +%TypeHeaderCode +#include +%End + + +public: + KCharSelectTable (QWidget* /TransferThis/, const char*, const QString&, const QChar&, int); + virtual QSize sizeHint () const; + virtual void resizeEvent (QResizeEvent*); + virtual void setFont (const QString&); + virtual void setChar (const QChar&); + virtual void setTableNum (int); + virtual QChar chr (); + +protected: + virtual void paintCell (QPainter*, int, int); + virtual void mousePressEvent (QMouseEvent*); + virtual void mouseDoubleClickEvent (QMouseEvent*); + virtual void mouseReleaseEvent (QMouseEvent*); + virtual void mouseMoveEvent (QMouseEvent*); + virtual void keyPressEvent (QKeyEvent*); + void gotoLeft (); + void gotoRight (); + void gotoUp (); + void gotoDown (); + +signals: + void highlighted (const QChar&); + void highlighted (); + void activated (const QChar&); + void activated (); + void focusItemChanged (); + void focusItemChanged (const QChar&); + void tableUp (); + void tableDown (); + void doubleClicked (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KCharSelectTable + + +class KCharSelect : QVBox +{ +%TypeHeaderCode +#include +%End + + +public: + KCharSelect (QWidget* /TransferThis/, const char*, const QString& = QString ::null , const QChar& = ' ', int = 0); + virtual QSize sizeHint () const; + virtual void setFont (const QString&); + virtual void setChar (const QChar&); + virtual void setTableNum (int); + virtual QChar chr () const; + virtual QString font () const; + virtual int tableNum () const; + virtual void enableFontCombo (bool); + virtual void enableTableSpinBox (bool); + virtual bool isFontComboEnabled () const; + virtual bool isTableSpinBoxEnabled () const; + +protected: + virtual void fillFontCombo (); + static void cleanupFontDatabase (); + +protected slots: + void fontSelected (const QString&); + void tableChanged (int); + void charHighlighted (const QChar&); + void charHighlighted (); + void charActivated (const QChar&); + void charActivated (); + void charFocusItemChanged (); + void charFocusItemChanged (const QChar&); + void charTableUp (); + void charTableDown (); + void slotDoubleClicked (); + +%If ( KDE_3_3_0 - ) + void slotUnicodeEntered (); + void slotUpdateUnicode (const QChar&); +%End + + +signals: + void highlighted (const QChar&); + void highlighted (); + void activated (const QChar&); + void activated (); + void fontChanged (const QString&); + void focusItemChanged (); + void focusItemChanged (const QChar&); + void doubleClicked (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KCharSelect + diff --git a/sip/kdeui/kcmenumngr.sip b/sip/kdeui/kcmenumngr.sip new file mode 100644 index 0000000..cf4711d --- /dev/null +++ b/sip/kdeui/kcmenumngr.sip @@ -0,0 +1,43 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KContextMenuManager : QObject +{ +%TypeHeaderCode +#include +%End + + +public: + static void insert (QWidget*, QPopupMenu*); + static bool showOnButtonPress (); + +private: + KContextMenuManager (QObject* /TransferThis/ = 0, const char* = 0); + ~KContextMenuManager (); + +}; // class KContextMenuManager + diff --git a/sip/kdeui/kcmodule.sip b/sip/kdeui/kcmodule.sip new file mode 100644 index 0000000..b6cc9b9 --- /dev/null +++ b/sip/kdeui/kcmodule.sip @@ -0,0 +1,183 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KCModule : QWidget +{ +%TypeHeaderCode +#include +%End + + +public: + + enum Button + { + Help, + Default, + Apply, + Reset, + Cancel, + Ok, + SysDefault + }; + + KCModule (QWidget* /TransferThis/ = 0, const char* = 0, const QStringList& = QStringList ()); + KCModule (KInstance*, QWidget* /TransferThis/ = 0, const QStringList& = QStringList ()); + virtual void load (); + virtual void save (); + virtual void defaults (); + virtual void sysdefaults (); + virtual QString quickHelp () const; + virtual const KAboutData* aboutData () const; + +%If ( KDE_3_3_0 - ) + void setAboutData (KAboutData*); +%End + + int buttons (); + QString rootOnlyMsg () const; + bool useRootOnlyMsg () const; + KInstance* instance () const; + +%If ( KDE_3_4_0 - ) + const QPtrList& configs () const; +%End + + +protected: + +%If ( KDE_3_3_0 - ) + KConfigDialogManager* addConfig (KConfigSkeleton*, QWidget*); + void setQuickHelp (const QString&); +%End + + +signals: + void changed (bool); + void quickHelpChanged (); + +protected slots: + +%If ( KDE_3_3_0 - ) + void changed (); + +%If ( KDE_3_4_0 - ) + void widgetChanged (); +%End + +%End + + +protected: + void setButtons (int); + void setRootOnlyMsg (const QString&); + void setUseRootOnlyMsg (bool); + +%If ( KDE_3_5_0 - ) + bool managedWidgetChangeState () const; + void unmanagedWidgetChangeState (bool); +%End + + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KCModule + + + +%If (KDE_3_3_0 - ) +%MappedType QPtrList +//converts a Python list of KConfigDialogManager +{ +%TypeHeaderCode +#include +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New (0); + + PyObject *pylist; + + // Create the list + + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + // Get it. + + QPtrList *cpplist = (QPtrList *)sipCpp; + KConfigDialogManager *cpp; + PyObject *inst; + + // the loop depends on the type of iterator the tmeplate makes available + for(cpp = cpplist->first (); cpp != 0; cpp = cpplist->next () ) + { + if (((inst = sipConvertFromInstance (cpp, sipClass_KConfigDialogManager, sipTransferObj)) == NULL) + || PyList_Append (pylist, inst) < 0) + { + Py_DECREF (pylist); + return NULL; + } + } + + return pylist; +%End + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QPtrList *cpplist = new QPtrList; + + PyObject *elem; + KConfigDialogManager *cpp; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + cpp = (KConfigDialogManager *)sipForceConvertToType(elem, sipType_KConfigDialogManager, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + *sipIsErr = 1; + delete cpplist; + return 0; + } + + cpplist->append (cpp); + } + + *sipCppPtr = cpplist; + + return 1; +%End +}; +%End + + diff --git a/sip/kdeui/kcolorbtn.sip b/sip/kdeui/kcolorbtn.sip new file mode 100644 index 0000000..53bd2d6 --- /dev/null +++ b/sip/kdeui/kcolorbtn.sip @@ -0,0 +1,54 @@ +// +// Copyright 2003 Jim Bublitz +// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE_3_1_1 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KColorButton : QPushButton +{ +%TypeHeaderCode +#include +%End + + +public: + KColorButton (QWidget*/TransferThis/, const char* = 0); + KColorButton (const QColor&, QWidget*/TransferThis/, const char* = 0); + QColor color () const; + void setColor (const QColor&); + +signals: + void changed (const QColor&); + +protected slots: + void chooseColor (); + +protected: + virtual void drawButtonLabel (QPainter*); + virtual void dragEnterEvent (QDragEnterEvent*); + virtual void dropEvent (QDropEvent*); + virtual void mousePressEvent (QMouseEvent*); + virtual void mouseMoveEvent (QMouseEvent*); + +}; // class KColorButton + diff --git a/sip/kdeui/kcolorcombo.sip b/sip/kdeui/kcolorcombo.sip new file mode 100644 index 0000000..72727fc --- /dev/null +++ b/sip/kdeui/kcolorcombo.sip @@ -0,0 +1,51 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KColorCombo : QComboBox +{ +%TypeHeaderCode +#include +%End + + +public: + KColorCombo (QWidget* /TransferThis/, const char* = 0); + void setColor (const QColor&); + QColor color (); + void showEmptyList (); + +signals: + void activated (const QColor&); + void highlighted (const QColor&); + +protected: + virtual void resizeEvent (QResizeEvent*); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KColorCombo + diff --git a/sip/kdeui/kcolordialog.sip b/sip/kdeui/kcolordialog.sip new file mode 100644 index 0000000..8880d10 --- /dev/null +++ b/sip/kdeui/kcolordialog.sip @@ -0,0 +1,237 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KHSSelector : KXYSelector +{ +%TypeHeaderCode +#include +%End + + +public: + KHSSelector (QWidget* /TransferThis/ = 0, const char* = 0); + +protected: + virtual void drawPalette (QPixmap*); + virtual void resizeEvent (QResizeEvent*); + virtual void drawContents (QPainter*); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KHSSelector + + +class KValueSelector : KSelector +{ +%TypeHeaderCode +#include +%End + + +public: + KValueSelector (QWidget* /TransferThis/ = 0, const char* = 0); + KValueSelector (Orientation, QWidget* /TransferThis/ = 0, const char* = 0); + int hue () const; + void setHue (int); + int saturation () const; + void setSaturation (int); + void updateContents (); + +protected: + virtual void drawPalette (QPixmap*); + virtual void resizeEvent (QResizeEvent*); + virtual void drawContents (QPainter*); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KValueSelector + + +class KColor : QColor +{ +%TypeHeaderCode +#include +%End + + +public: + KColor (); + KColor (const KColor&); + KColor (const QColor&); + +%If ( KDE_3_1_4 - ) + bool operator == (const KColor&) const; +%End + + void setHsv (int, int, int); + void setRgb (int, int, int); + void rgb (int*, int*, int*); + void hsv (int*, int*, int*); + +protected: + +}; // class KColor + + +class KPaletteTable : QWidget +{ +%TypeHeaderCode +#include +%End + + +public: + KPaletteTable (QWidget* /TransferThis/, int = 210, int = 16); + void addToCustomColors (const QColor&); + void addToRecentColors (const QColor&); + QString palette (); + +public slots: + void setPalette (const QString&); + +signals: + void colorSelected (const QColor&, const QString&); + void colorDoubleClicked (const QColor&, const QString&); + +protected slots: + void slotColorCellSelected (int); + void slotColorCellDoubleClicked (int); + void slotColorTextSelected (const QString&); + void slotSetPalette (const QString&); + void slotShowNamedColorReadError (); + +protected: + void readNamedColor (); + +protected: + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KPaletteTable + + +class KColorCells : QGridView +{ +%TypeHeaderCode +#include +%End + + +public: + KColorCells (QWidget* /TransferThis/, int, int); + void setColor (int, const QColor&); + QColor color (int) const; + int numCells () const; + void setShading (bool); + void setAcceptDrags (bool); + int getSelected () const; + +signals: + void colorSelected (int); + void colorDoubleClicked (int); + +protected: + virtual void paintCell (QPainter*, int, int); + virtual void resizeEvent (QResizeEvent*); + virtual void mouseReleaseEvent (QMouseEvent*); + virtual void mousePressEvent (QMouseEvent*); + virtual void mouseMoveEvent (QMouseEvent*); + virtual void dragEnterEvent (QDragEnterEvent*); + virtual void dropEvent (QDropEvent*); + virtual void mouseDoubleClickEvent (QMouseEvent*); + int posToCell (const QPoint&, bool = 0); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KColorCells + + +class KColorPatch : QFrame +{ +%TypeHeaderCode +#include +%End + + +public: + KColorPatch (QWidget* /TransferThis/); + void setColor (const QColor&); + +signals: + void colorChanged (const QColor&); + +protected: + virtual void drawContents (QPainter*); + virtual void mouseMoveEvent (QMouseEvent*); + virtual void dragEnterEvent (QDragEnterEvent*); + virtual void dropEvent (QDropEvent*); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KColorPatch + + +class KColorDialog : KDialogBase +{ +%TypeHeaderCode +#include +%End + + +public: + KColorDialog (QWidget* /TransferThis/ = 0, const char* = 0, bool = 0); + QColor color (); + static int getColor (QColor&, QWidget* /Transfer/ = 0); + static int getColor (QColor&, const QColor&, QWidget* /Transfer/ = 0); + static QColor grabColor (const QPoint&); + void setDefaultColor (const QColor&); + QColor defaultColor () const; + +public slots: + void setColor (const QColor&); + +signals: + void colorSelected (const QColor&); + +protected: + virtual void mouseReleaseEvent (QMouseEvent*); + virtual void keyPressEvent (QKeyEvent*); + +%If ( KDE_3_2_0 - ) + virtual bool eventFilter (QObject*, QEvent*); +%End + + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KColorDialog + diff --git a/sip/kdeui/kcolordrag.sip b/sip/kdeui/kcolordrag.sip new file mode 100644 index 0000000..cad21da --- /dev/null +++ b/sip/kdeui/kcolordrag.sip @@ -0,0 +1,52 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KColorDrag : QStoredDrag +{ +%TypeHeaderCode +#include +%End + + +public: + KColorDrag (QWidget* = 0, const char* = 0); + KColorDrag (const QColor&, QWidget* = 0, const char* = 0); + +%If ( KDE_3_2_0 - ) + virtual const char* format (int) const; + virtual QByteArray encodedData (const char*) const; +%End + + void setColor (const QColor&); + static bool canDecode (QMimeSource*); + static bool decode (QMimeSource*, QColor&); + static KColorDrag* makeDrag (const QColor&, QWidget*); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KColorDrag + diff --git a/sip/kdeui/kcombobox.sip b/sip/kdeui/kcombobox.sip new file mode 100644 index 0000000..b48f8bd --- /dev/null +++ b/sip/kdeui/kcombobox.sip @@ -0,0 +1,130 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KComboBox : QComboBox, KCompletionBase +{ +%TypeHeaderCode +#include +%End + + +public: + KComboBox (QWidget* /TransferThis/ = 0, const char* = 0); + KComboBox (bool, QWidget* /TransferThis/ = 0, const char* = 0); + void setEditURL (const KURL&); + void insertURL (const KURL&, int = -1); + void insertURL (const QPixmap&, const KURL&, int = -1); + void changeURL (const KURL&, int); + void changeURL (const QPixmap&, const KURL&, int); + int cursorPosition () const; + virtual void setAutoCompletion (bool); + bool autoCompletion () const; + virtual void setContextMenuEnabled (bool); + bool isContextMenuEnabled () const; + void setURLDropsEnabled (bool); + bool isURLDropsEnabled () const; + bool contains (const QString&) const; + void setTrapReturnKey (bool); + bool trapReturnKey () const; + virtual bool eventFilter (QObject*, QEvent*); + KCompletionBox* completionBox (bool); + virtual void setLineEdit (QLineEdit*); + +signals: + void returnPressed (); + void returnPressed (const QString&); + void completion (const QString&); + void substringCompletion (const QString&); + void textRotation (KCompletionBase::KeyBindingType); + void completionModeChanged (KGlobalSettings::Completion); + void aboutToShowContextMenu (QPopupMenu*); + +public slots: + void rotateText (KCompletionBase::KeyBindingType); + virtual void setCompletedText (const QString&); + void setCompletedItems (const QStringList&); + void setCurrentItem (const QString&, bool = 0, int = -1); + void setCurrentItem (int); + +protected slots: + virtual void itemSelected (QListBoxItem*); + virtual void makeCompletion (const QString&); + +protected: + virtual void setCompletedText (const QString&, bool); + virtual void create (WId = 0, bool = 1, bool = 1); + +%If ( KDE_3_1_0 - ) + virtual void wheelEvent (QWheelEvent*); +%End + + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KComboBox + + +class KHistoryCombo : KComboBox +{ +%TypeHeaderCode +#include +%End + + +public: + KHistoryCombo (QWidget* /TransferThis/ = 0, const char* = 0); + KHistoryCombo (bool, QWidget* /TransferThis/ = 0, const char* = 0); + void setHistoryItems (QStringList); + void setHistoryItems (QStringList, bool); + QStringList historyItems () const; + bool removeFromHistory (const QString&); + void setPixmapProvider (KPixmapProvider*); + KPixmapProvider* pixmapProvider () const; + void reset (); + +public slots: + void addToHistory (const QString&); + void clearHistory (); + +signals: + void cleared (); + +protected: + virtual void keyPressEvent (QKeyEvent*); + +%If ( KDE_3_1_0 - ) + virtual void wheelEvent (QWheelEvent*); +%End + + void insertItems (const QStringList&); + bool useCompletion (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KHistoryCombo + diff --git a/sip/kdeui/kcommand.sip b/sip/kdeui/kcommand.sip new file mode 100644 index 0000000..1491d0a --- /dev/null +++ b/sip/kdeui/kcommand.sip @@ -0,0 +1,131 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KCommand +{ +%TypeHeaderCode +#include +%End + + +protected: + KCommand (); + +public: + virtual void execute () = 0; + virtual void unexecute () = 0; + virtual QString name () const = 0; + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KCommand + + +class KNamedCommand : KCommand +{ +%TypeHeaderCode +#include +%End + + +protected: + KNamedCommand (const QString&); + +public: + virtual QString name () const; + void setName (const QString&); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KNamedCommand + + +class KMacroCommand : KNamedCommand +{ +%TypeHeaderCode +#include +%End + + +public: + KMacroCommand (const QString&); + void addCommand (KCommand*); + virtual void execute (); + virtual void unexecute (); + +protected: + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KMacroCommand + + +class KCommandHistory : QObject +{ +%TypeHeaderCode +#include +%End + + +public: + KCommandHistory (); + KCommandHistory (KActionCollection*, bool = 1); + void clear (); + void addCommand (KCommand*, bool = 1); + int undoLimit () const; + void setUndoLimit (int); + int redoLimit () const; + void setRedoLimit (int); + void updateActions (); + +public slots: + virtual void undo (); + virtual void redo (); + virtual void documentSaved (); + +protected slots: + void slotUndoAboutToShow (); + void slotUndoActivated (int); + void slotRedoAboutToShow (); + void slotRedoActivated (int); + +signals: + void commandExecuted (); + +%If ( KDE_3_5_0 - ) + void commandExecuted (KCommand*); +%End + + void documentRestored (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KCommandHistory + diff --git a/sip/kdeui/kcompletionbox.sip b/sip/kdeui/kcompletionbox.sip new file mode 100644 index 0000000..4fcd010 --- /dev/null +++ b/sip/kdeui/kcompletionbox.sip @@ -0,0 +1,86 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KCompletionBox : KListBox +{ +%TypeHeaderCode +#include +%End + + +public: + KCompletionBox (QWidget* /TransferThis/, const char* = 0); + virtual QSize sizeHint () const; + +%If ( KDE_3_4_3 - ) + bool activateOnSelect () const; +%End + + +public slots: + QStringList items () const; + void insertItems (const QStringList&, int = -1); + void setItems (const QStringList&); + virtual void popup (); + void setTabHandling (bool); + bool isTabHandling () const; + void setCancelledText (const QString&); + QString cancelledText () const; + +%If ( KDE_3_4_3 - ) + void setActivateOnSelect (bool); +%End + + void down (); + void up (); + void pageDown (); + void pageUp (); + void home (); + void end (); + virtual void show (); + virtual void hide (); + +signals: + void activated (const QString&); + void userCancelled (const QString&); + +protected: + +%If ( KDE_3_2_0 - ) + QRect calculateGeometry () const; + void sizeAndPosition (); +%End + + virtual bool eventFilter (QObject*, QEvent*); + +protected slots: + virtual void slotActivated (QListBoxItem*); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KCompletionBox + diff --git a/sip/kdeui/kconfigdialog.sip b/sip/kdeui/kconfigdialog.sip new file mode 100644 index 0000000..6e1415e --- /dev/null +++ b/sip/kdeui/kconfigdialog.sip @@ -0,0 +1,69 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_2_0 - ) + +class KConfigDialog : KDialogBase +{ +%TypeHeaderCode +#include +%End + + +signals: + void widgetModified (); + void settingsChanged (); + void settingsChanged (const char*); + +public: + KConfigDialog (QWidget* /TransferThis/, const char*, KConfigSkeleton*, KDialogBase::DialogType = KDialogBase ::IconList , int = KDialogBase ::Default |KDialogBase ::Ok |KDialogBase ::Apply |KDialogBase ::Cancel |KDialogBase ::Help , KDialogBase::ButtonCode = Ok , bool = 0); + void addPage (QWidget*, const QString&, const QString&, const QString& = QString ::null , bool = 1); + +%If ( KDE_3_3_0 - ) + void addPage (QWidget*, KConfigSkeleton*, const QString&, const QString&, const QString& = QString ::null ); +%End + + static KConfigDialog* exists (const char*); + static bool showDialog (const char*); + virtual void show (); + +protected slots: + virtual void updateSettings (); + virtual void updateWidgets (); + virtual void updateWidgetsDefault (); + +protected: + virtual bool hasChanged (); + virtual bool isDefault (); + +protected slots: + void updateButtons (); + void settingsChangedSlot (); + +}; // class KConfigDialog + +%End + diff --git a/sip/kdeui/kcontainer.sip b/sip/kdeui/kcontainer.sip new file mode 100644 index 0000000..f1e8ffd --- /dev/null +++ b/sip/kdeui/kcontainer.sip @@ -0,0 +1,75 @@ +// +// Copyright 2003 Jim Bublitz +// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE_3_1_1 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KContainerLayout : QFrame +{ +%TypeHeaderCode +#include +%End + + +public: + + enum + { + Horizontal = 0, + Vertical + }; + + KContainerLayout (QWidget*/TransferThis/ = 0, const char* = 0, int = KContainerLayout::Horizontal, bool = 0, int = 5, WFlags = 0, bool = 1); + int getNumberOfWidgets () const; + int packStart (QWidget*, bool = 0, bool = 0, int = 1); + int packEnd (QWidget*, bool = 0, bool = 0, int = 1); + void setOrientation (int); + void setHomogeneos (bool); + void setSpacing (int); + void setStartOffset (int); + void setEndOffset (int); + int orientation () const; + bool homogeneos () const; + int spacing () const; + int startOffset () const; + int endOffset () const; + void sizeToFit (); + +protected: + +//ig class KContainerLayoutItem; + + void recalcLayout (); +//ig QSize widgetSize (KContainerLayout::KContainerLayoutItem*); + void repositionWidgets (); + int numberOfWidgetsWithExpand (); + void calculateSizeHint (); + QSize sizeOfLargerWidget (); +//ig QSize idealSizeOfWidget (KContainerLayout::KContainerLayoutItem*); + bool horizontal () const; + virtual void resizeEvent (QResizeEvent*); + virtual bool eventFilter (QObject*, QEvent*); + virtual QSize sizeHint () const; + +}; // class KContainerLayout + diff --git a/sip/kdeui/kcursor.sip b/sip/kdeui/kcursor.sip new file mode 100644 index 0000000..0e8c51d --- /dev/null +++ b/sip/kdeui/kcursor.sip @@ -0,0 +1,57 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KCursor : Qt +{ +%TypeHeaderCode +#include +%End + + +public: + KCursor (); + static QCursor handCursor (); + static QCursor workingCursor (); + static QCursor arrowCursor (); + static QCursor upArrowCursor (); + static QCursor crossCursor (); + static QCursor waitCursor (); + static QCursor ibeamCursor (); + static QCursor sizeVerCursor (); + static QCursor sizeHorCursor (); + static QCursor sizeBDiagCursor (); + static QCursor sizeFDiagCursor (); + static QCursor sizeAllCursor (); + static QCursor blankCursor (); + static QCursor whatsThisCursor (); + static void setAutoHideCursor (QWidget*, bool); + static void setAutoHideCursor (QWidget*, bool, bool); + static void setHideCursorDelay (int); + static int hideCursorDelay (); + static void autoHideEventFilter (QObject*, QEvent*); + +}; // class KCursor + diff --git a/sip/kdeui/kdatepicker.sip b/sip/kdeui/kdatepicker.sip new file mode 100644 index 0000000..a5a3884 --- /dev/null +++ b/sip/kdeui/kdatepicker.sip @@ -0,0 +1,108 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KDatePicker : QFrame +{ +%TypeHeaderCode +#include +%End + + +public: + KDatePicker (QWidget* /TransferThis/ = 0, QDate = QDate ::currentDate (), const char* = 0); + +%If ( KDE_3_1_0 - ) + KDatePicker (QWidget* /TransferThis/, QDate, const char*, WFlags); + KDatePicker (QWidget* /TransferThis/, const char*); +%End + + QSize sizeHint () const; + bool setDate (const QDate&); + const QDate& getDate () const; + const QDate& date () const; + void setEnabled (bool); + +%If ( KDE_3_2_0 - ) + KDateTable* dateTable () const; +%End + + void setFontSize (int); + int fontSize () const; + +%If ( KDE_3_1_0 - ) + void setCloseButton (bool); + bool hasCloseButton () const; +%End + + +protected: + +%If ( KDE_3_1_0 - ) + virtual bool eventFilter (QObject*, QEvent*); + virtual void resizeEvent (QResizeEvent*); +%End + + +protected slots: + void dateChangedSlot (QDate); + void tableClickedSlot (); + void monthForwardClicked (); + void monthBackwardClicked (); + void yearForwardClicked (); + void yearBackwardClicked (); + +%If ( KDE_3_1_0 - ) + void selectWeekClicked (); +%End + + void selectMonthClicked (); + void selectYearClicked (); + void lineEnterPressed (); + +%If ( KDE_3_2_0 - ) + void todayButtonClicked (); + void weekSelected (int); +%End + + +signals: + void dateChanged (QDate); + void dateSelected (QDate); + void dateEntered (QDate); + void tableClicked (); + +protected: +//igx virtual void virtual_hook (int, void*); + +protected: + +%If ( - KDE_3_1_0 ) + void resizeEvent (QResizeEvent*); +%End + + +}; // class KDatePicker + diff --git a/sip/kdeui/kdatepik.sip b/sip/kdeui/kdatepik.sip new file mode 100644 index 0000000..0a747f6 --- /dev/null +++ b/sip/kdeui/kdatepik.sip @@ -0,0 +1,64 @@ +// +// Copyright 2003 Jim Bublitz +// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE_3_1_1 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KDatePicker : QFrame +{ +%TypeHeaderCode +#include +%End + + +public: + KDatePicker (QWidget*/TransferThis/ = 0, QDate = QDate::currentDate(), const char* = 0); + QSize sizeHint () const; + bool setDate (const QDate&); + const QDate& getDate (); + void setEnabled (bool); + void setFontSize (int); + int fontSize () const; + +protected: + void resizeEvent (QResizeEvent*); + +protected slots: + void dateChangedSlot (QDate); + void tableClickedSlot (); + void monthForwardClicked (); + void monthBackwardClicked (); + void yearForwardClicked (); + void yearBackwardClicked (); + void selectMonthClicked (); + void selectYearClicked (); + void lineEnterPressed (); + +signals: + void dateChanged (QDate); + void dateSelected (QDate); + void dateEntered (QDate); + void tableClicked (); + +}; // class KDatePicker + diff --git a/sip/kdeui/kdatetbl.sip b/sip/kdeui/kdatetbl.sip new file mode 100644 index 0000000..60457a2 --- /dev/null +++ b/sip/kdeui/kdatetbl.sip @@ -0,0 +1,303 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_1_0 - ) + +class KDateInternalWeekSelector : QLineEdit +{ +%TypeHeaderCode +#include +%End + + +protected: + +public slots: + void weekEnteredSlot (); + +%If ( KDE_3_2_0 - ) + void setMaxWeek (int); +%End + + +signals: + void closeMe (int); + +public: + +%If ( KDE_3_2_0 - ) + KDateInternalWeekSelector (QWidget* /TransferThis/ = 0, const char* = 0); +%End + + int getWeek (); + void setWeek (int); + +public: + +%If ( - KDE_3_2_0 ) + KDateInternalWeekSelector (int, QWidget* /TransferThis/ = 0, const char* = 0); +%End + + +}; // class KDateInternalWeekSelector + +%End + + +class KDateInternalMonthPicker : QGridView +{ +%TypeHeaderCode +#include +%End + + +protected: + +signals: + void closeMe (int); + +public: + +%If ( KDE_3_2_0 - ) + KDateInternalMonthPicker (const QDate&, QWidget* /TransferThis/, const char* = 0); +%End + + QSize sizeHint () const; + int getResult () const; + +protected: + void setupPainter (QPainter*); + +%If ( KDE_3_0_1 - ) + virtual void viewportResizeEvent (QResizeEvent*); +%End + + virtual void paintCell (QPainter*, int, int); + +%If ( KDE_3_0_1 - ) + virtual void contentsMousePressEvent (QMouseEvent*); + virtual void contentsMouseMoveEvent (QMouseEvent*); + virtual void contentsMouseReleaseEvent (QMouseEvent*); +%End + + +public: + +%If ( - KDE_3_2_0 ) + KDateInternalMonthPicker (int, QWidget* /TransferThis/, const char* = 0); +%End + + +protected: + +%If ( - KDE_3_0_1 ) + void viewportResizeEvent (QResizeEvent*); + void contentsMousePressEvent (QMouseEvent*); + void contentsMouseMoveEvent (QMouseEvent*); + void contentsMouseReleaseEvent (QMouseEvent*); +%End + + +}; // class KDateInternalMonthPicker + + +class KDateInternalYearSelector : QLineEdit +{ +%TypeHeaderCode +#include +%End + + +protected: + +public slots: + void yearEnteredSlot (); + +signals: + void closeMe (int); + +public: + +%If ( KDE_3_2_0 - ) + KDateInternalYearSelector (QWidget* /TransferThis/ = 0, const char* = 0); +%End + + int getYear (); + void setYear (int); + +public: + +%If ( - KDE_3_2_0 ) + KDateInternalYearSelector (int, QWidget* /TransferThis/ = 0, const char* = 0); +%End + + +}; // class KDateInternalYearSelector + + +class KPopupFrame : QFrame +{ +%TypeHeaderCode +#include +%End + + +protected: + +%If ( KDE_3_0_1 - ) + virtual void keyPressEvent (QKeyEvent*); +%End + + +public slots: + void close (int); + +%If ( KDE_3_5_0 - ) + void hide (); +%End + + +public: + KPopupFrame (QWidget* /TransferThis/ = 0, const char* = 0); + void setMainWidget (QWidget*); + +%If ( KDE_3_0_1 - ) + virtual void resizeEvent (QResizeEvent*); +%End + + void popup (const QPoint&); + int exec (QPoint) /PyName=exec_/; + int exec (int, int) /PyName=exec_/; + +protected: +//igx virtual void virtual_hook (int, void*); + +protected: + +%If ( - KDE_3_0_1 ) + void keyPressEvent (QKeyEvent*); +%End + + +public: + +%If ( - KDE_3_0_1 ) + void resizeEvent (QResizeEvent*); +%End + + +}; // class KPopupFrame + + +class KDateValidator : QValidator +{ +%TypeHeaderCode +#include +%End + + +public: + KDateValidator (QWidget* /TransferThis/ = 0, const char* = 0); + virtual State validate (QString&, int&) const; + virtual void fixup (QString&) const; + State date (const QString&, QDate&) const; + +}; // class KDateValidator + + +class KDateTable : QGridView +{ +%TypeHeaderCode +#include +%End + + +public: + KDateTable (QWidget* /TransferThis/ = 0, QDate = QDate ::currentDate (), const char* = 0, WFlags = 0); + +%If ( KDE_3_4_0 - ) + KDateTable (QWidget* /TransferThis/, const char*, WFlags = 0); +%End + + virtual QSize sizeHint () const; + void setFontSize (int); + bool setDate (const QDate&); + const QDate& getDate () const; + +%If ( KDE_3_2_0 - ) + void setPopupMenuEnabled (bool); + bool popupMenuEnabled () const; + + enum BackgroundMode + { + NoBgMode, + RectangleMode, + CircleMode + }; + + void setCustomDatePainting (const QDate&, const QColor&, BackgroundMode = NoBgMode , const QColor& = QColor ()); + void unsetCustomDatePainting (const QDate&); +%End + + +protected: + +%If ( KDE_3_2_0 - ) + int posFromDate (const QDate&); + QDate dateFromPos (int); +%End + + virtual void paintCell (QPainter*, int, int); + virtual void viewportResizeEvent (QResizeEvent*); + virtual void contentsMousePressEvent (QMouseEvent*); + +%If ( KDE_3_1_0 - ) + virtual void wheelEvent (QWheelEvent*); +%End + + virtual void keyPressEvent (QKeyEvent*); + virtual void focusInEvent (QFocusEvent*); + virtual void focusOutEvent (QFocusEvent*); + +signals: + void dateChanged (QDate); + +%If ( KDE_3_2_0 - ) + void dateChanged (const QDate&, const QDate&); +%End + + void tableClicked (); + +%If ( KDE_3_2_0 - ) + void aboutToShowContextMenu (KPopupMenu*, const QDate&); +%End + + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KDateTable + diff --git a/sip/kdeui/kdatetimewidget.sip b/sip/kdeui/kdatetimewidget.sip new file mode 100644 index 0000000..642a070 --- /dev/null +++ b/sip/kdeui/kdatetimewidget.sip @@ -0,0 +1,50 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_2_0 - ) + +class KDateTimeWidget : QWidget +{ +%TypeHeaderCode +#include +%End + + +public: + KDateTimeWidget (QWidget* /TransferThis/ = 0, const char* = 0); + KDateTimeWidget (const QDateTime&, QWidget* /TransferThis/ = 0, const char* = 0); + QDateTime dateTime () const; + +public slots: + void setDateTime (const QDateTime&); + +signals: + void valueChanged (const QDateTime&); + +}; // class KDateTimeWidget + +%End + diff --git a/sip/kdeui/kdatewidget.sip b/sip/kdeui/kdatewidget.sip new file mode 100644 index 0000000..d82af51 --- /dev/null +++ b/sip/kdeui/kdatewidget.sip @@ -0,0 +1,58 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KDateWidget : QWidget +{ +%TypeHeaderCode +#include +%End + + +public: + KDateWidget (QWidget* /TransferThis/, const char* = 0); + KDateWidget (QDate, QWidget* /TransferThis/, const char* = 0); + QDate date () const; + void setDate (QDate); + +signals: + void changed (QDate); + +protected: + void init (); + +%If ( KDE_3_2_0 - ) + void init (const QDate&); +%End + + +protected slots: + void slotDateChanged (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KDateWidget + diff --git a/sip/kdeui/kdbtn.sip b/sip/kdeui/kdbtn.sip new file mode 100644 index 0000000..15a8d15 --- /dev/null +++ b/sip/kdeui/kdbtn.sip @@ -0,0 +1,61 @@ +// +// Copyright 2003 Jim Bublitz +// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE_3_1_1 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KDirectionButton : QButton +{ +%TypeHeaderCode +#include +%End + + +public: + KDirectionButton (QWidget*/TransferThis/ = 0, const char* = 0); + KDirectionButton (ArrowType, QWidget*/TransferThis/ = 0, const char* = 0); + void setDirection (ArrowType); + ArrowType direction (); + +protected: + virtual void drawButton (QPainter*); + +}; // class KDirectionButton + + +class KTabButton : KDirectionButton +{ +%TypeHeaderCode +#include +%End + + +public: + KTabButton (QWidget*/TransferThis/ = 0, const char* = 0); + KTabButton (ArrowType, QWidget*/TransferThis/ = 0, const char* = 0); + +protected: + virtual void drawButton (QPainter*); + +}; // class KTabButton + diff --git a/sip/kdeui/kdcopactionproxy.sip b/sip/kdeui/kdcopactionproxy.sip new file mode 100644 index 0000000..10edf10 --- /dev/null +++ b/sip/kdeui/kdcopactionproxy.sip @@ -0,0 +1,48 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KDCOPActionProxy : DCOPObjectProxy +{ +%TypeHeaderCode +#include +%End + + +public: + KDCOPActionProxy (KActionCollection*, DCOPObject* /TransferThis/); + KDCOPActionProxy (DCOPObject* /TransferThis/); + virtual QValueList actions () const; + virtual KAction* action (const char*) const; + virtual QCString actionObjectId (const QCString&) const; + virtual QMap actionMap (const QCString& = QCString ()) const; + virtual bool process (const QCString&, const QCString&, const QByteArray&, QCString&, QByteArray&); + virtual bool processAction (const QCString&, const QCString&, const QByteArray&, QCString&, QByteArray&, KAction*); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KDCOPActionProxy + diff --git a/sip/kdeui/kdeui-kde310.diff b/sip/kdeui/kdeui-kde310.diff new file mode 100644 index 0000000..bde4a8e --- /dev/null +++ b/sip/kdeui/kdeui-kde310.diff @@ -0,0 +1,4 @@ ++ %Include kaccelmanager.sip ++ %Include kpassivepopup.sip ++ %Include ktextedit.sip ++ %Include kwindowinfo.sip diff --git a/sip/kdeui/kdeui-kde311.diff b/sip/kdeui/kdeui-kde311.diff new file mode 100644 index 0000000..bde4a8e --- /dev/null +++ b/sip/kdeui/kdeui-kde311.diff @@ -0,0 +1,4 @@ ++ %Include kaccelmanager.sip ++ %Include kpassivepopup.sip ++ %Include ktextedit.sip ++ %Include kwindowinfo.sip diff --git a/sip/kdeui/kdeui-kde312.diff b/sip/kdeui/kdeui-kde312.diff new file mode 100644 index 0000000..bde4a8e --- /dev/null +++ b/sip/kdeui/kdeui-kde312.diff @@ -0,0 +1,4 @@ ++ %Include kaccelmanager.sip ++ %Include kpassivepopup.sip ++ %Include ktextedit.sip ++ %Include kwindowinfo.sip diff --git a/sip/kdeui/kdeui-kde313.diff b/sip/kdeui/kdeui-kde313.diff new file mode 100644 index 0000000..bde4a8e --- /dev/null +++ b/sip/kdeui/kdeui-kde313.diff @@ -0,0 +1,4 @@ ++ %Include kaccelmanager.sip ++ %Include kpassivepopup.sip ++ %Include ktextedit.sip ++ %Include kwindowinfo.sip diff --git a/sip/kdeui/kdeui-kde314.diff b/sip/kdeui/kdeui-kde314.diff new file mode 100644 index 0000000..bde4a8e --- /dev/null +++ b/sip/kdeui/kdeui-kde314.diff @@ -0,0 +1,4 @@ ++ %Include kaccelmanager.sip ++ %Include kpassivepopup.sip ++ %Include ktextedit.sip ++ %Include kwindowinfo.sip diff --git a/sip/kdeui/kdeui-kde315.diff b/sip/kdeui/kdeui-kde315.diff new file mode 100644 index 0000000..bde4a8e --- /dev/null +++ b/sip/kdeui/kdeui-kde315.diff @@ -0,0 +1,4 @@ ++ %Include kaccelmanager.sip ++ %Include kpassivepopup.sip ++ %Include ktextedit.sip ++ %Include kwindowinfo.sip diff --git a/sip/kdeui/kdeui-kde320.diff b/sip/kdeui/kdeui-kde320.diff new file mode 100644 index 0000000..0066974 --- /dev/null +++ b/sip/kdeui/kdeui-kde320.diff @@ -0,0 +1,13 @@ ++ %Include kactionclasses.sip ++ %Include kactioncollection.sip ++ %Include kconfigdialog.sip ++ %Include kdatetimewidget.sip ++ %Include kfontrequester.sip ++ %Include kinputdialog.sip ++ %Include kpassivepopup.sip ++ %Include ksplashscreen.sip ++ %Include ktabbar.sip ++ %Include ktabwidget.sip ++ %Include ktextedit.sip ++ %Include ktimewidget.sip ++ %Include kwindowinfo.sip diff --git a/sip/kdeui/kdeui-kde321.diff b/sip/kdeui/kdeui-kde321.diff new file mode 100644 index 0000000..0066974 --- /dev/null +++ b/sip/kdeui/kdeui-kde321.diff @@ -0,0 +1,13 @@ ++ %Include kactionclasses.sip ++ %Include kactioncollection.sip ++ %Include kconfigdialog.sip ++ %Include kdatetimewidget.sip ++ %Include kfontrequester.sip ++ %Include kinputdialog.sip ++ %Include kpassivepopup.sip ++ %Include ksplashscreen.sip ++ %Include ktabbar.sip ++ %Include ktabwidget.sip ++ %Include ktextedit.sip ++ %Include ktimewidget.sip ++ %Include kwindowinfo.sip diff --git a/sip/kdeui/kdeui-kde322.diff b/sip/kdeui/kdeui-kde322.diff new file mode 100644 index 0000000..0066974 --- /dev/null +++ b/sip/kdeui/kdeui-kde322.diff @@ -0,0 +1,13 @@ ++ %Include kactionclasses.sip ++ %Include kactioncollection.sip ++ %Include kconfigdialog.sip ++ %Include kdatetimewidget.sip ++ %Include kfontrequester.sip ++ %Include kinputdialog.sip ++ %Include kpassivepopup.sip ++ %Include ksplashscreen.sip ++ %Include ktabbar.sip ++ %Include ktabwidget.sip ++ %Include ktextedit.sip ++ %Include ktimewidget.sip ++ %Include kwindowinfo.sip diff --git a/sip/kdeui/kdeui-kde323.diff b/sip/kdeui/kdeui-kde323.diff new file mode 100644 index 0000000..2aab948 --- /dev/null +++ b/sip/kdeui/kdeui-kde323.diff @@ -0,0 +1,14 @@ ++ %Include kactionclasses.sip ++ %Include kactioncollection.sip ++ %Include kconfigdialog.sip ++ %Include kdatetimewidget.sip ++ %Include kfontrequester.sip ++ %Include kinputdialog.sip ++ %Include kpassivepopup.sip +//+ %Include ksharedpixmap.sip ++ %Include ksplashscreen.sip ++ %Include ktabbar.sip ++ %Include ktabwidget.sip ++ %Include ktextedit.sip ++ %Include ktimewidget.sip ++ %Include kwindowinfo.sip diff --git a/sip/kdeui/kdeui-kde330.diff b/sip/kdeui/kdeui-kde330.diff new file mode 100644 index 0000000..6be7d89 --- /dev/null +++ b/sip/kdeui/kdeui-kde330.diff @@ -0,0 +1,16 @@ ++ %Include kactionclasses.sip ++ %Include kactioncollection.sip ++ %Include kactionselector.sip ++ %Include kconfigdialog.sip ++ %Include kdatetimewidget.sip ++ %Include kfontrequester.sip ++ %Include kinputdialog.sip ++ %Include klanguagebutton.sip ++ %Include klistviewsearchline.sip ++ %Include kpassivepopup.sip ++ %Include ksplashscreen.sip ++ %Include ktabbar.sip ++ %Include ktabwidget.sip ++ %Include ktextedit.sip ++ %Include ktimewidget.sip ++ %Include kwindowinfo.sip diff --git a/sip/kdeui/kdeui-kde331.diff b/sip/kdeui/kdeui-kde331.diff new file mode 100644 index 0000000..6be7d89 --- /dev/null +++ b/sip/kdeui/kdeui-kde331.diff @@ -0,0 +1,16 @@ ++ %Include kactionclasses.sip ++ %Include kactioncollection.sip ++ %Include kactionselector.sip ++ %Include kconfigdialog.sip ++ %Include kdatetimewidget.sip ++ %Include kfontrequester.sip ++ %Include kinputdialog.sip ++ %Include klanguagebutton.sip ++ %Include klistviewsearchline.sip ++ %Include kpassivepopup.sip ++ %Include ksplashscreen.sip ++ %Include ktabbar.sip ++ %Include ktabwidget.sip ++ %Include ktextedit.sip ++ %Include ktimewidget.sip ++ %Include kwindowinfo.sip diff --git a/sip/kdeui/kdeui-kde332.diff b/sip/kdeui/kdeui-kde332.diff new file mode 100644 index 0000000..6be7d89 --- /dev/null +++ b/sip/kdeui/kdeui-kde332.diff @@ -0,0 +1,16 @@ ++ %Include kactionclasses.sip ++ %Include kactioncollection.sip ++ %Include kactionselector.sip ++ %Include kconfigdialog.sip ++ %Include kdatetimewidget.sip ++ %Include kfontrequester.sip ++ %Include kinputdialog.sip ++ %Include klanguagebutton.sip ++ %Include klistviewsearchline.sip ++ %Include kpassivepopup.sip ++ %Include ksplashscreen.sip ++ %Include ktabbar.sip ++ %Include ktabwidget.sip ++ %Include ktextedit.sip ++ %Include ktimewidget.sip ++ %Include kwindowinfo.sip diff --git a/sip/kdeui/kdeui-kde340.diff b/sip/kdeui/kdeui-kde340.diff new file mode 100644 index 0000000..cdefe26 --- /dev/null +++ b/sip/kdeui/kdeui-kde340.diff @@ -0,0 +1,21 @@ ++ %Include kactionclasses.sip ++ %Include kactioncollection.sip ++ %Include kactionselector.sip ++ %Include kconfigdialog.sip ++ %Include kdatetimewidget.sip ++ %Include kfontrequester.sip ++ %Include kiconviewsearchline.sip ++ %Include kinputdialog.sip ++ %Include klanguagebutton.sip ++ %Include klistviewsearchline.sip ++ %Include kpassivepopup.sip ++ %Include kpixmapregionselectordialog.sip ++ %Include kpixmapregionselectorwidget.sip ++ %Include kshortcutdialog.sip ++ %Include ksplashscreen.sip ++ %Include ktabbar.sip ++ %Include ktabwidget.sip ++ %Include ktextedit.sip ++ %Include ktimewidget.sip ++ %Include ktoolbarlabelaction.sip ++ %Include kwindowinfo.sip diff --git a/sip/kdeui/kdeui-kde341.diff b/sip/kdeui/kdeui-kde341.diff new file mode 100644 index 0000000..cdefe26 --- /dev/null +++ b/sip/kdeui/kdeui-kde341.diff @@ -0,0 +1,21 @@ ++ %Include kactionclasses.sip ++ %Include kactioncollection.sip ++ %Include kactionselector.sip ++ %Include kconfigdialog.sip ++ %Include kdatetimewidget.sip ++ %Include kfontrequester.sip ++ %Include kiconviewsearchline.sip ++ %Include kinputdialog.sip ++ %Include klanguagebutton.sip ++ %Include klistviewsearchline.sip ++ %Include kpassivepopup.sip ++ %Include kpixmapregionselectordialog.sip ++ %Include kpixmapregionselectorwidget.sip ++ %Include kshortcutdialog.sip ++ %Include ksplashscreen.sip ++ %Include ktabbar.sip ++ %Include ktabwidget.sip ++ %Include ktextedit.sip ++ %Include ktimewidget.sip ++ %Include ktoolbarlabelaction.sip ++ %Include kwindowinfo.sip diff --git a/sip/kdeui/kdeui-kde342.diff b/sip/kdeui/kdeui-kde342.diff new file mode 100644 index 0000000..cdefe26 --- /dev/null +++ b/sip/kdeui/kdeui-kde342.diff @@ -0,0 +1,21 @@ ++ %Include kactionclasses.sip ++ %Include kactioncollection.sip ++ %Include kactionselector.sip ++ %Include kconfigdialog.sip ++ %Include kdatetimewidget.sip ++ %Include kfontrequester.sip ++ %Include kiconviewsearchline.sip ++ %Include kinputdialog.sip ++ %Include klanguagebutton.sip ++ %Include klistviewsearchline.sip ++ %Include kpassivepopup.sip ++ %Include kpixmapregionselectordialog.sip ++ %Include kpixmapregionselectorwidget.sip ++ %Include kshortcutdialog.sip ++ %Include ksplashscreen.sip ++ %Include ktabbar.sip ++ %Include ktabwidget.sip ++ %Include ktextedit.sip ++ %Include ktimewidget.sip ++ %Include ktoolbarlabelaction.sip ++ %Include kwindowinfo.sip diff --git a/sip/kdeui/kdeui-kde343.diff b/sip/kdeui/kdeui-kde343.diff new file mode 100644 index 0000000..cdefe26 --- /dev/null +++ b/sip/kdeui/kdeui-kde343.diff @@ -0,0 +1,21 @@ ++ %Include kactionclasses.sip ++ %Include kactioncollection.sip ++ %Include kactionselector.sip ++ %Include kconfigdialog.sip ++ %Include kdatetimewidget.sip ++ %Include kfontrequester.sip ++ %Include kiconviewsearchline.sip ++ %Include kinputdialog.sip ++ %Include klanguagebutton.sip ++ %Include klistviewsearchline.sip ++ %Include kpassivepopup.sip ++ %Include kpixmapregionselectordialog.sip ++ %Include kpixmapregionselectorwidget.sip ++ %Include kshortcutdialog.sip ++ %Include ksplashscreen.sip ++ %Include ktabbar.sip ++ %Include ktabwidget.sip ++ %Include ktextedit.sip ++ %Include ktimewidget.sip ++ %Include ktoolbarlabelaction.sip ++ %Include kwindowinfo.sip diff --git a/sip/kdeui/kdeui-kde350.diff b/sip/kdeui/kdeui-kde350.diff new file mode 100644 index 0000000..965e2c3 --- /dev/null +++ b/sip/kdeui/kdeui-kde350.diff @@ -0,0 +1,23 @@ ++ %Include kactionclasses.sip ++ %Include kactioncollection.sip ++ %Include kactionselector.sip ++ %Include kconfigdialog.sip ++ %Include kdatetimewidget.sip ++ %Include kfontrequester.sip ++ %Include kiconviewsearchline.sip ++ %Include kinputdialog.sip ++ %Include klanguagebutton.sip ++ %Include klistviewsearchline.sip ++ %Include kpassivepopup.sip ++ %Include kpixmapregionselectordialog.sip ++ %Include kpixmapregionselectorwidget.sip ++ %Include kscrollview.sip ++ %Include kshortcutdialog.sip ++ %Include ksplashscreen.sip ++ %Include ktabbar.sip ++ %Include ktabwidget.sip ++ %Include ktextedit.sip ++ %Include ktimewidget.sip ++ %Include ktimezonewidget.sip ++ %Include ktoolbarlabelaction.sip ++ %Include kwindowinfo.sip diff --git a/sip/kdeui/kdeui-kde351.diff b/sip/kdeui/kdeui-kde351.diff new file mode 100644 index 0000000..965e2c3 --- /dev/null +++ b/sip/kdeui/kdeui-kde351.diff @@ -0,0 +1,23 @@ ++ %Include kactionclasses.sip ++ %Include kactioncollection.sip ++ %Include kactionselector.sip ++ %Include kconfigdialog.sip ++ %Include kdatetimewidget.sip ++ %Include kfontrequester.sip ++ %Include kiconviewsearchline.sip ++ %Include kinputdialog.sip ++ %Include klanguagebutton.sip ++ %Include klistviewsearchline.sip ++ %Include kpassivepopup.sip ++ %Include kpixmapregionselectordialog.sip ++ %Include kpixmapregionselectorwidget.sip ++ %Include kscrollview.sip ++ %Include kshortcutdialog.sip ++ %Include ksplashscreen.sip ++ %Include ktabbar.sip ++ %Include ktabwidget.sip ++ %Include ktextedit.sip ++ %Include ktimewidget.sip ++ %Include ktimezonewidget.sip ++ %Include ktoolbarlabelaction.sip ++ %Include kwindowinfo.sip diff --git a/sip/kdeui/kdeui-kde352.diff b/sip/kdeui/kdeui-kde352.diff new file mode 100644 index 0000000..965e2c3 --- /dev/null +++ b/sip/kdeui/kdeui-kde352.diff @@ -0,0 +1,23 @@ ++ %Include kactionclasses.sip ++ %Include kactioncollection.sip ++ %Include kactionselector.sip ++ %Include kconfigdialog.sip ++ %Include kdatetimewidget.sip ++ %Include kfontrequester.sip ++ %Include kiconviewsearchline.sip ++ %Include kinputdialog.sip ++ %Include klanguagebutton.sip ++ %Include klistviewsearchline.sip ++ %Include kpassivepopup.sip ++ %Include kpixmapregionselectordialog.sip ++ %Include kpixmapregionselectorwidget.sip ++ %Include kscrollview.sip ++ %Include kshortcutdialog.sip ++ %Include ksplashscreen.sip ++ %Include ktabbar.sip ++ %Include ktabwidget.sip ++ %Include ktextedit.sip ++ %Include ktimewidget.sip ++ %Include ktimezonewidget.sip ++ %Include ktoolbarlabelaction.sip ++ %Include kwindowinfo.sip diff --git a/sip/kdeui/kdeui-kde353.diff b/sip/kdeui/kdeui-kde353.diff new file mode 100644 index 0000000..965e2c3 --- /dev/null +++ b/sip/kdeui/kdeui-kde353.diff @@ -0,0 +1,23 @@ ++ %Include kactionclasses.sip ++ %Include kactioncollection.sip ++ %Include kactionselector.sip ++ %Include kconfigdialog.sip ++ %Include kdatetimewidget.sip ++ %Include kfontrequester.sip ++ %Include kiconviewsearchline.sip ++ %Include kinputdialog.sip ++ %Include klanguagebutton.sip ++ %Include klistviewsearchline.sip ++ %Include kpassivepopup.sip ++ %Include kpixmapregionselectordialog.sip ++ %Include kpixmapregionselectorwidget.sip ++ %Include kscrollview.sip ++ %Include kshortcutdialog.sip ++ %Include ksplashscreen.sip ++ %Include ktabbar.sip ++ %Include ktabwidget.sip ++ %Include ktextedit.sip ++ %Include ktimewidget.sip ++ %Include ktimezonewidget.sip ++ %Include ktoolbarlabelaction.sip ++ %Include kwindowinfo.sip diff --git a/sip/kdeui/kdeuimod.sip.in b/sip/kdeui/kdeuimod.sip.in new file mode 100644 index 0000000..ad84494 --- /dev/null +++ b/sip/kdeui/kdeuimod.sip.in @@ -0,0 +1,123 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE_3_5_2 + +%Copying + + This software is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License as + published by the Free Software Foundation; either version 2 of + the License, or (at your option) any later version. + + This software is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public + License along with this library; see the file COPYING. + If not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +%End + +%Module kdeui + +%Import qt/qtmod.sip +%Import qtxml/qtxmlmod.sip +%Import dcopmod.sip +%Import kdecoremod.sip +%Import kdefxmod.sip + +%Include kaboutapplication.sip +%Include kaboutdialog.sip +%Include kaboutkde.sip +%Include kaction.sip +%Include kactionshortcutlist.sip +%Include kactivelabel.sip +%Include kanimwidget.sip +%Include karrowbutton.sip +%Include kauthicon.sip +%Include kbugreport.sip +%Include kbuttonbox.sip +%Include kcharselect.sip +%Include kcmenumngr.sip +%Include kcmodule.sip +%Include kcolorbtn.sip +%Include kcolorcombo.sip +%Include kcolordialog.sip +%Include kcolordrag.sip +%Include kcombobox.sip +%Include kcommand.sip +%Include kcompletionbox.sip +%Include kcursor.sip +%Include kdatepicker.sip +%Include kdatetbl.sip +%Include kdatewidget.sip +%Include kdcopactionproxy.sip +%Include kdialog.sip +%Include kdialogbase.sip +%Include kdockwidget.sip +%Include kdualcolorbutton.sip +%Include keditcl.sip +%Include keditlistbox.sip +%Include kedittoolbar.sip +%Include kfontcombo.sip +%Include kfontdialog.sip +%Include kguiitem.sip +%Include khelpmenu.sip +%Include kiconview.sip +%Include kjanuswidget.sip +%Include kkeybutton.sip +%Include kkeydialog.sip +%Include kled.sip +%Include klineedit.sip +%Include klineeditdlg.sip +%Include klistbox.sip +%Include klistview.sip +%Include kmainwindow.sip +%Include kmainwindowiface.sip +%Include kmenubar.sip +%Include kmessagebox.sip +%Include knuminput.sip +%Include knumvalidator.sip +%Include kpanelapplet.sip +%Include kpanelappmenu.sip +%Include kpanelextension.sip +%Include kpanelmenu.sip +%Include kpassdlg.sip +%Include kpixmapio.sip +%Include kpopupmenu.sip +%Include kprogress.sip +%Include kpushbutton.sip +%Include krestrictedline.sip +%Include krootpixmap.sip +%Include kruler.sip +%Include kselect.sip +%Include kseparator.sip +%Include ksqueezedtextlabel.sip +%Include kstatusbar.sip +%Include kstdaction.sip +%Include kstdguiitem.sip +%Include kstringvalidator.sip +%Include ksystemtray.sip +%Include ktabctl.sip +%Include ktextbrowser.sip +%Include ktip.sip +%Include ktoolbar.sip +%Include ktoolbarbutton.sip +%Include ktoolbarradiogroup.sip +%Include kurllabel.sip +%Include kwindowlistmenu.sip +%Include kwizard.sip +%Include kwordwrap.sip +%Include kxmlguibuilder.sip +%Include kxmlguiclient.sip +%Include kxmlguifactory.sip +%Include qxembed.sip +@mark@ diff --git a/sip/kdeui/kdialog.sip b/sip/kdeui/kdialog.sip new file mode 100644 index 0000000..929411e --- /dev/null +++ b/sip/kdeui/kdialog.sip @@ -0,0 +1,90 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KDialog : QDialog +{ +%TypeHeaderCode +#include +%End + + +public: + KDialog (QWidget* /TransferThis/ = 0, const char* = 0, bool = 0, WFlags = 0); + static int marginHint (); + static int spacingHint (); + static void resizeLayout (QWidget*, int, int); + static void resizeLayout (QLayoutItem*, int, int); + +%If ( KDE_3_1_0 - ) + static void centerOnScreen (QWidget*, int = -1); + +%If ( KDE_3_2_0 - ) + static bool avoidArea (QWidget*, const QRect&, int = -1); +%End + +%End + + +public slots: + virtual void polish (); + virtual void setCaption (const QString&); + virtual void setPlainCaption (const QString&); + +protected: + virtual void keyPressEvent (QKeyEvent*); + +signals: + void layoutHintChanged (); + +protected: +//igx virtual void virtual_hook (int, void*); +//force + +private: + KDialog (const KDialog&); +//end + +}; // class KDialog + + +class KDialogQueue : QObject +{ +%TypeHeaderCode +#include +%End + + +public: + static void queueDialog (QDialog*); + +protected: + KDialogQueue (); + static KDialogQueue* self (); + +protected: + +}; // class KDialogQueue + diff --git a/sip/kdeui/kdialogbase.sip b/sip/kdeui/kdialogbase.sip new file mode 100644 index 0000000..513c869 --- /dev/null +++ b/sip/kdeui/kdialogbase.sip @@ -0,0 +1,283 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KDialogBase : KDialog +{ +%TypeHeaderCode +#include +%End + + +public: + +%If ( KDE_3_3_0 - ) + + enum ButtonCode + { + Help, + Default, + Ok, + Apply, + Try, + Cancel, + Close, + User1, + User2, + User3, + No, + Yes, + Details, + Filler, + Stretch, + NoDefault + }; + +%End + + + enum ActionButtonStyle + { + ActionStyle0, + ActionStyle1, + ActionStyle2, + ActionStyle3, + ActionStyle4, + ActionStyleMAX + }; + + + enum DialogType + { + TreeList, + Tabbed, + Plain, + Swallow, + IconList + }; + + +public: + KDialogBase (QWidget* /TransferThis/ = 0, const char* = 0, bool = 1, const QString& = QString ::null , int = Ok |Apply |Cancel , KDialogBase::ButtonCode = Ok , bool = 0, const KGuiItem& = KGuiItem (), const KGuiItem& = KGuiItem (), const KGuiItem& = KGuiItem ()); + KDialogBase (int, const QString&, int, KDialogBase::ButtonCode, QWidget* /TransferThis/ = 0, const char* = 0, bool = 1, bool = 0, const KGuiItem& = KGuiItem (), const KGuiItem& = KGuiItem (), const KGuiItem& = KGuiItem ()); + +%If ( KDE_3_2_0 - ) + KDialogBase (KDialogBase::DialogType, WFlags, QWidget* /TransferThis/ = 0, const char* = 0, bool = 1, const QString& = QString ::null , int = Ok |Apply |Cancel , KDialogBase::ButtonCode = Ok , bool = 0, const KGuiItem& = KGuiItem (), const KGuiItem& = KGuiItem (), const KGuiItem& = KGuiItem ()); +%End + + KDialogBase (const QString&, int = Yes |No |Cancel , KDialogBase::ButtonCode = Yes , KDialogBase::ButtonCode = Cancel , QWidget* /TransferThis/ = 0, const char* = 0, bool = 1, bool = 0, const KGuiItem& = KStdGuiItem ::yes (), const KGuiItem& = KStdGuiItem ::no (), const KGuiItem& = KStdGuiItem ::cancel ()); + void setButtonBoxOrientation (int); + void setEscapeButton (KDialogBase::ButtonCode); + virtual void adjustSize (); + virtual QSize sizeHint () const; + virtual QSize minimumSizeHint () const; + QFrame* plainPage (); + QFrame* addPage (const QString&, const QString& = QString ::null , const QPixmap& = QPixmap ()); + QFrame* addPage (const QStringList&, const QString& = QString ::null , const QPixmap& = QPixmap ()); + QVBox* addVBoxPage (const QString&, const QString& = QString ::null , const QPixmap& = QPixmap ()); + QVBox* addVBoxPage (const QStringList&, const QString& = QString ::null , const QPixmap& = QPixmap ()); + QHBox* addHBoxPage (const QString&, const QString& = QString ::null , const QPixmap& = QPixmap ()); + QHBox* addHBoxPage (const QStringList&, const QString& = QString ::null , const QPixmap& = QPixmap ()); + QGrid* addGridPage (int, Qt::Orientation, const QString&, const QString& = QString ::null , const QPixmap& = QPixmap ()); + QGrid* addGridPage (int, Qt::Orientation, const QStringList&, const QString& = QString ::null , const QPixmap& = QPixmap ()); + void setFolderIcon (const QStringList&, const QPixmap&); + QFrame* makeMainWidget (); + QVBox* makeVBoxMainWidget (); + QHBox* makeHBoxMainWidget (); + QGrid* makeGridMainWidget (int, Qt::Orientation); + void enableButtonSeparator (bool); + void showButton (KDialogBase::ButtonCode, bool); + void showButtonOK (bool); + void showButtonApply (bool); + void showButtonCancel (bool); + bool showPage (int); + int activePageIndex () const; + int pageIndex (QWidget*) const; + void setMainWidget (QWidget*); + QWidget* mainWidget (); + void disableResize (); + void setInitialSize (const QSize&, bool = 0); + void incInitialSize (const QSize&, bool = 0); + QSize configDialogSize (const QString&) const; + +%If ( KDE_3_2_0 - ) + QSize configDialogSize (KConfig&, const QString&) const; +%End + + void saveDialogSize (const QString&, bool = 0); + +%If ( KDE_3_2_0 - ) + void saveDialogSize (KConfig&, const QString&, bool = 0) const; + void setButtonOK (const KGuiItem& = KStdGuiItem ::ok ()); +%End + + void setButtonOKText (const QString& = QString ::null , const QString& = QString ::null , const QString& = QString ::null ); + +%If ( KDE_3_2_0 - ) + void setButtonApply (const KGuiItem& = KStdGuiItem ::apply ()); +%End + + void setButtonApplyText (const QString& = QString ::null , const QString& = QString ::null , const QString& = QString ::null ); + +%If ( KDE_3_2_0 - ) + void setButtonCancel (const KGuiItem& = KStdGuiItem ::cancel ()); +%End + + void setButtonCancelText (const QString& = QString ::null , const QString& = QString ::null , const QString& = QString ::null ); + void setButtonText (KDialogBase::ButtonCode, const QString&); + void setButtonTip (KDialogBase::ButtonCode, const QString&); + void setButtonWhatsThis (KDialogBase::ButtonCode, const QString&); + +%If ( KDE_3_3_0 - ) + void setButtonGuiItem (KDialogBase::ButtonCode, const KGuiItem&); +%End + + void setTreeListAutoResize (bool); + void setShowIconsInTreeList (bool); + void setRootIsDecorated (bool); + +%If ( KDE_3_2_0 - ) + void unfoldTreeList (bool = 0); + void addWidgetBelowList (QWidget*); + void addButtonBelowList (const QString&, QObject*, const char*); + void addButtonBelowList (const KGuiItem&, QObject*, const char*); +%End + + void setIconListAllVisible (bool); + static bool haveBackgroundTile (); + static const QPixmap* backgroundTile (); + static const QPixmap* getBackgroundTile (); + static void setBackgroundTile (const QPixmap*); + void showTile (bool); + void getBorderWidths (int&, int&, int&, int&) const; + QRect getContentsRect (); + QSize calculateSize (int, int); + QString helpLinkText (); + QPushButton* actionButton (KDialogBase::ButtonCode); + +public slots: + void enableButton (KDialogBase::ButtonCode, bool); + void enableButtonOK (bool); + void enableButtonApply (bool); + void enableButtonCancel (bool); + void enableLinkedHelp (bool); + +%If ( KDE_3_1_0 - ) + void delayedDestruct (); +%End + + void setHelpLinkText (const QString&); + void setHelp (const QString&, const QString& = QString ::null ); + void helpClickedSlot (const QString&); + void setDetails (bool); + void setDetailsWidget (QWidget*); + void updateBackground (); + +%If ( KDE_3_1_0 - ) + void cancel (); +%End + + +signals: + void helpClicked (); + void defaultClicked (); + void user3Clicked (); + void user2Clicked (); + void user1Clicked (); + void applyClicked (); + void tryClicked (); + void okClicked (); + void yesClicked (); + void noClicked (); + void cancelClicked (); + void closeClicked (); + void apply (); + void backgroundChanged (); + void hidden (); + void finished (); + void aboutToShowDetails (); + void aboutToShowPage (QWidget*); + +protected: + virtual void keyPressEvent (QKeyEvent*); + virtual void hideEvent (QHideEvent*); + virtual void closeEvent (QCloseEvent*); + +protected slots: + virtual void slotHelp (); + virtual void slotDefault (); + virtual void slotDetails (); + virtual void slotUser3 (); + virtual void slotUser2 (); + virtual void slotUser1 (); + virtual void slotOk (); + virtual void slotApply (); + virtual void slotTry (); + virtual void slotYes (); + virtual void slotNo (); + virtual void slotCancel (); + virtual void slotClose (); + virtual void applyPressed (); + void updateGeometry (); + void slotDelayedDestruct (); + +protected: +//igx virtual void virtual_hook (int, void*); + +public: + +%If ( - KDE_3_3_0 ) + + enum ButtonCode + { + Help, + Default, + Ok, + Apply, + Try, + Cancel, + Close, + User1, + User2, + User3, + No, + Yes, + Details, + Filler, + Stretch + }; + +%End + + +public: + +%If ( - KDE_3_1_0 ) + void delayedDestruct (); +%End + + +}; // class KDialogBase + diff --git a/sip/kdeui/kdocktabctl.sip b/sip/kdeui/kdocktabctl.sip new file mode 100644 index 0000000..5954906 --- /dev/null +++ b/sip/kdeui/kdocktabctl.sip @@ -0,0 +1,186 @@ +// +// Copyright 2003 Jim Bublitz +// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE_3_1_1 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KDockTabCtl_PrivateStruct +{ +%TypeHeaderCode +#include +%End + + +public: + KDockTabCtl_PrivateStruct (QWidget*, int); + QWidget* widget; + int id; + bool enabled; + +}; // class KDockTabCtl_PrivateStruct + + +class KDockTabBar : QWidget +{ +%TypeHeaderCode +#include +%End + + +public: + KDockTabBar (QWidget*/TransferThis/ = 0, const char* = 0); + + enum TabPos + { + TAB_TOP, + TAB_RIGHT + }; + + void setTabPos (KDockTabBar::TabPos); + int insertTab (const QString&, int = -1, int = -1); + void setPixmap (int, const QPixmap&); + void setToolTip (int, const QString&); + void setTextColor (int, const QColor&); + const QColor& textColor (int); + void removeTab (int); + int currentTab (); + void setCurrentTab (int, bool = 0); + void setTabEnabled (int, bool); + bool isTabEnabled (int); + void setTabCaption (int, const QString&); + QString tabCaption (int); + virtual void show (); + virtual void setFont (const QFont&); + void showTabIcon (bool); + bool isShowTabIcon (); + +signals: + void tabSelected (int); + void rightButtonPress (int, QPoint); + +protected slots: + void leftClicked (); + void rightClicked (); + +protected: + virtual void paintEvent (QPaintEvent*); + virtual void resizeEvent (QResizeEvent*); + virtual void keyPressEvent (QKeyEvent*); + +}; // class KDockTabBar + + +class KDockTabBarPainter : QWidget +{ +%TypeHeaderCode +#include +%End + + +public: + QString tip (const QPoint&); + QRect findBarRectByPos (int, int); + +private: + KDockTabBarPainter (KDockTabBar*/TransferThis/); + +protected: + virtual void mousePressEvent (QMouseEvent*); + virtual void mouseReleaseEvent (QMouseEvent*); + virtual void resizeEvent (QResizeEvent*); + virtual void paintEvent (QPaintEvent*); + +}; // class KDockTabBarPainter + + +class KDockTabCtl : QWidget +{ +%TypeHeaderCode +#include +%End + + +public: + KDockTabCtl (QWidget*/TransferThis/ = 0, const char* = 0); + virtual void setTabPos (KDockTabBar::TabPos); + KDockTabBar::TabPos getTabPos (); + int insertPage (QWidget*, const QString&, int = -1, int = -1); + void setPageCaption (QWidget*, const QString&); + void setPageCaption (int, const QString&); + QString pageCaption (QWidget*); + QString pageCaption (int); + void captionAutoSet (bool); + bool isCaptionAutoSet (); + void setPixmap (QWidget*, const QPixmap&); + void setPixmap (int, const QPixmap&); + void setToolTip (QWidget*, const QString&); + void setTabTextColor (QWidget*, const QColor&); + void setTabTextColor (int, const QColor&); + const QColor& tabTextColor (QWidget*); + const QColor& tabTextColor (int); + bool isPageEnabled (QWidget*); + bool isPageEnabled (int); + void setPageEnabled (QWidget*, bool); + void setPageEnabled (int, bool); + QWidget* page (int); + int id (QWidget*); + int index (QWidget*); + void removePage (QWidget*); + void removePage (int); + QWidget* visiblePage (); + int visiblePageId (); + void setVisiblePage (QWidget*, bool = 0); + void setTabFont (const QFont&); + QFont tabFont (); + void showTabIcon (bool); + bool isShowTabIcon (); + int pageCount (); + QWidget* getFirstPage (); + QWidget* getLastPage (); + QWidget* getNextPage (QWidget*); + QWidget* getPrevPage (QWidget*); + virtual void show (); + virtual bool eventFilter (QObject*, QEvent*); + +public slots: + virtual void setEnabled (bool); + void setVisiblePage (int); + +protected: + void paintEvent (QPaintEvent*); + +signals: + void aboutToShow (QWidget*); + void pageSelected (QWidget*); + void tabShowPopup (int, QPoint); + +protected slots: + void rightButtonPress (int, QPoint); + +protected: + KDockTabCtl_PrivateStruct* findData (QWidget*); + KDockTabCtl_PrivateStruct* findData (int); + void showPage (QWidget*, bool = 0); + +}; // class KDockTabCtl + diff --git a/sip/kdeui/kdockwidget.sip b/sip/kdeui/kdockwidget.sip new file mode 100644 index 0000000..62f02c8 --- /dev/null +++ b/sip/kdeui/kdockwidget.sip @@ -0,0 +1,469 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KDockWidgetAbstractHeader : QFrame +{ +%TypeHeaderCode +#include +%End + + +public: + KDockWidgetAbstractHeader (KDockWidget* /TransferThis/, const char* = 0); + virtual void setTopLevel (bool); + virtual void saveConfig (KConfig*); + virtual void loadConfig (KConfig*); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KDockWidgetAbstractHeader + + +class KDockWidgetAbstractHeaderDrag : QFrame +{ +%TypeHeaderCode +#include +%End + + +public: + KDockWidgetAbstractHeaderDrag (KDockWidgetAbstractHeader* /TransferThis/, KDockWidget*, const char* = 0); + KDockWidget* dockWidget (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KDockWidgetAbstractHeaderDrag + + +class KDockWidgetHeaderDrag : KDockWidgetAbstractHeaderDrag +{ +%TypeHeaderCode +#include +%End + + +public: + KDockWidgetHeaderDrag (KDockWidgetAbstractHeader* /TransferThis/, KDockWidget*, const char* = 0); + +protected: + virtual void paintEvent (QPaintEvent*); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KDockWidgetHeaderDrag + + +class KDockWidgetHeader : KDockWidgetAbstractHeader +{ +%TypeHeaderCode +#include +%End + + +public: + KDockWidgetHeader (KDockWidget* /TransferThis/, const char* = 0); + virtual void setTopLevel (bool); + void setDragPanel (KDockWidgetHeaderDrag*); + +%If ( KDE_3_4_0 - ) + KDockWidgetHeaderDrag* dragPanel (); +%End + + bool dragEnabled (); + void setDragEnabled (bool); + +%If ( KDE_3_1_0 - ) + void showUndockButton (bool); + +%If ( KDE_3_2_0 - ) + void forceCloseButtonHidden (bool = 1); +%End + +%End + + virtual void saveConfig (KConfig*); + virtual void loadConfig (KConfig*); + +%If ( KDE_3_2_0 - ) +//ig void addButton (KDockButton_Private*); +//ig void removeButton (KDockButton_Private*); +%End + + +protected slots: + void slotStayClicked (); + +protected: + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KDockWidgetHeader + + +class KDockTabGroup : QTabWidget +{ +%TypeHeaderCode +#include +%End + + +public: + KDockTabGroup (QWidget* /TransferThis/ = 0, const char* = 0); + +%If ( KDE_3_2_0 - ) + QWidget* transientTo (); +%End + + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KDockTabGroup + + +class KDockWidget : QWidget +{ +%TypeHeaderCode +#include +%End + + +public: + KDockWidget (KDockManager*, const char*, const QPixmap&, QWidget* /TransferThis/ = 0, const QString& = 0, const QString& = " ", WFlags = 0); + +%If ( KDE_3_1_0 - ) + + enum DockPosition + { + DockNone, + DockTop, + DockLeft, + DockRight, + DockBottom, + DockCenter, + DockDesktop, + DockToSpecialSites, + DockCorner, + DockFullSite, + DockFullDocking + }; + +%End + + KDockWidget* manualDock (KDockWidget*, KDockWidget::DockPosition, int = 50, QPoint = QPoint (0 ,0 ), bool = 0, int = -1); + void setEnableDocking (int); + int enableDocking (); + void setDockSite (int); + int dockSite (); + void setWidget (QWidget*); + QWidget* getWidget (); + void setHeader (KDockWidgetAbstractHeader*); + +%If ( KDE_3_2_0 - ) + KDockWidgetAbstractHeader* getHeader (); +%End + + void makeDockVisible (); + bool mayBeHide (); + bool mayBeShow (); + KDockManager* dockManager (); + void setToolTipString (const QString&); + const QString& toolTipString (); + bool isDockBackPossible (); + void setTabPageLabel (const QString&); + const QString& tabPageLabel (); + virtual bool event (QEvent*); + virtual void show (); + KDockTabGroup* parentDockTabGroup (); + +%If ( KDE_3_1_0 - ) + QWidget* parentDockContainer () const; +%End + + void setDockWindowType (NET::WindowType); + void setDockWindowTransient (QWidget* /Transfer/, bool); + +%If ( KDE_3_2_0 - ) + QWidget* transientTo (); +%End + + +%If ( KDE_3_1_0 - ) + KDockWidget* findNearestDockWidget (KDockWidget::DockPosition); + +%If ( KDE_3_2_0 - ) + void setPixmap (const QPixmap& = QPixmap ()); + const QPixmap& pixmap () const; + +%If ( KDE_3_3_0 - ) + KDockWidget::DockPosition currentDockPosition () const; +%End + +%End + +%End + + +public slots: + +%If ( KDE_3_1_0 - ) + void setForcedFixedWidth (int); + void setForcedFixedHeight (int); + void restoreFromForcedFixedSize (); + int forcedFixedWidth (); + int forcedFixedHeight (); +%End + + void dockBack (); + void changeHideShowState (); + void undock (); + +%If ( KDE_3_1_0 - ) + void toDesktop (); +%End + + +protected: + void updateHeader (); + +%If ( KDE_3_1_0 - ) + void setLatestKDockContainer (QWidget*); + QWidget* latestKDockContainer (); + +%If ( KDE_3_2_1 - ) + void setFormerBrotherDockWidget (KDockWidget*); +%End + +%End + + +signals: + +%If ( KDE_3_2_0 - ) + void widgetSet (QWidget*); +%End + + void docking (KDockWidget*, KDockWidget::DockPosition); + void setDockDefaultPos (); + void headerCloseButtonClicked (); + void headerDockbackButtonClicked (); + void iMBeingClosed (); + void hasUndocked (); + +protected slots: + void loseFormerBrotherDockWidget (); + +%If ( KDE_3_1_0 - ) + virtual void paintEvent (QPaintEvent*); + virtual void mousePressEvent (QMouseEvent*); + virtual void mouseReleaseEvent (QMouseEvent*); + virtual void mouseMoveEvent (QMouseEvent*); + virtual void leaveEvent (QEvent*); +%End + + +protected: + +protected: +//igx virtual void virtual_hook (int, void*); + +public: + +%If ( - KDE_3_1_0 ) + + enum DockPosition + { + DockNone, + DockTop, + DockLeft, + DockRight, + DockBottom, + DockCenter, + DockDesktop, + DockCorner, + DockFullSite, + DockFullDocking + }; + +%End + + +}; // class KDockWidget + + +class KDockManager : QObject +{ +%TypeHeaderCode +#include +%End + + +public: + +%If ( KDE_3_2_0 - ) + + enum EnReadDockConfigMode + { + Unknown, + WrapExistingWidgetsOnly, + RestoreAllDockwidgets + }; + +%End + + +public: + KDockManager (QWidget*, const char* = 0); + +%If ( KDE_3_2_0 - ) + void dumpDockWidgets (); +%End + + void writeConfig (KConfig* = 0, QString = QString ::null ); + void readConfig (KConfig* = 0, QString = QString ::null ); + +%If ( KDE_3_1_0 - ) + void setMainDockWidget2 (KDockWidget*); +%End + + void writeConfig (QDomElement&); + void readConfig (QDomElement&); + void activate (); + virtual bool eventFilter (QObject*, QEvent*); + KDockWidget* findWidgetParentDock (QWidget*); + void makeWidgetDockVisible (QWidget*); + QPopupMenu* dockHideShowMenu (); + KDockWidget* getDockWidgetFromName (const QString&); + void setSplitterOpaqueResize (bool = 1); + bool splitterOpaqueResize () const; + void setSplitterKeepSize (bool = 1); + bool splitterKeepSize () const; + void setSplitterHighResolution (bool = 1); + bool splitterHighResolution () const; + +%If ( KDE_3_2_0 - ) + void setSpecialLeftDockContainer (KDockWidget*); + void setSpecialTopDockContainer (KDockWidget*); + void setSpecialRightDockContainer (KDockWidget*); + void setSpecialBottomDockContainer (KDockWidget*); + void removeFromAutoCreateList (KDockWidget*); + void finishReadDockConfig (); + void setReadDockConfigMode (int); +%End + + +signals: + void change (); + void replaceDock (KDockWidget*, KDockWidget*); + void setDockDefaultPos (KDockWidget*); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KDockManager + + +class KDockMainWindow : KMainWindow +{ +%TypeHeaderCode +#include +%End + + +public: + KDockMainWindow (QWidget* /TransferThis/ = 0, const char* = 0, WFlags = WType_TopLevel |WDestructiveClose ); + KDockManager* manager (); + void setMainDockWidget (KDockWidget*); + KDockWidget* getMainDockWidget (); + KDockWidget* createDockWidget (const QString&, const QPixmap&, QWidget* /Transfer/ = 0, const QString& = 0, const QString& = " "); + void writeDockConfig (QDomElement&); + void readDockConfig (QDomElement&); + void writeDockConfig (KConfig* = 0, QString = QString ::null ); + void readDockConfig (KConfig* = 0, QString = QString ::null ); + void activateDock (); + QPopupMenu* dockHideShowMenu (); + void makeDockVisible (KDockWidget*); + void makeDockInvisible (KDockWidget*); + void makeWidgetDockVisible (QWidget*); + void setView (QWidget*); + +signals: + void dockWidgetHasUndocked (KDockWidget*); + +protected: + +protected slots: + void slotDockWidgetUndocked (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KDockMainWindow + + +class KDockArea : QWidget +{ +%TypeHeaderCode +#include +%End + + +public: + KDockArea (QWidget* /TransferThis/ = 0, const char* = 0); + KDockManager* manager (); + void setMainDockWidget (KDockWidget*); + KDockWidget* getMainDockWidget (); + KDockWidget* createDockWidget (const QString&, const QPixmap&, QWidget* /Transfer/ = 0, const QString& = 0, const QString& = " "); + void writeDockConfig (QDomElement&); + void readDockConfig (QDomElement&); + void writeDockConfig (KConfig* = 0, QString = QString ::null ); + void readDockConfig (KConfig* = 0, QString = QString ::null ); + void activateDock (); + QPopupMenu* dockHideShowMenu (); + void makeDockVisible (KDockWidget*); + void makeDockInvisible (KDockWidget*); + void makeWidgetDockVisible (QWidget*); + +signals: + void dockWidgetHasUndocked (KDockWidget*); + +protected: + +protected slots: + void slotDockWidgetUndocked (); + +public: + virtual void resizeEvent (QResizeEvent*); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KDockArea + diff --git a/sip/kdeui/kdockwindow.sip b/sip/kdeui/kdockwindow.sip new file mode 100644 index 0000000..4c04e0e --- /dev/null +++ b/sip/kdeui/kdockwindow.sip @@ -0,0 +1,38 @@ +// +// Copyright 2005 Jim Bublitz +// Earlier copyrights 1998 - 2004 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE_3_4_0 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KDockWindow : KSystemTray +{ +%TypeHeaderCode +#include +%End + + +public: + KDockWindow (QWidget* /TransferThis/ = 0, const char* = 0); + +}; // class KDockWindow + diff --git a/sip/kdeui/kdualcolorbtn.sip b/sip/kdeui/kdualcolorbtn.sip new file mode 100644 index 0000000..16d363d --- /dev/null +++ b/sip/kdeui/kdualcolorbtn.sip @@ -0,0 +1,73 @@ +// +// Copyright 2003 Jim Bublitz +// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE_3_1_1 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KDualColorButton : QWidget +{ +%TypeHeaderCode +#include +%End + + +public: + + enum DualColor + { + Foreground, + Background + }; + + KDualColorButton (QWidget*/TransferThis/ = 0, const char* = 0); + KDualColorButton (QWidget*/TransferThis/, const char*, QWidget*); + KDualColorButton (const QColor&, const QColor&, QWidget*/TransferThis/ = 0, const char* = 0); + KDualColorButton (const QColor&, const QColor&, QWidget*/TransferThis/, const char*, QWidget*); + QColor foreground () const; + QColor background () const; + DualColor current () const; + QColor currentColor () const; + virtual QSize sizeHint () const; + +public slots: + void setForeground (const QColor&); + void setBackground (const QColor&); + void setCurrent (KDualColorButton::DualColor); + void setCurrentColor (const QColor&); + +signals: + void fgChanged (const QColor&); + void bgChanged (const QColor&); + void currentChanged (KDualColorButton::DualColor); + +protected: + virtual void metrics (QRect&, QRect&); + virtual void paintEvent (QPaintEvent*); + virtual void mousePressEvent (QMouseEvent*); + virtual void mouseMoveEvent (QMouseEvent*); + virtual void mouseReleaseEvent (QMouseEvent*); + virtual void dragEnterEvent (QDragEnterEvent*); + virtual void dropEvent (QDropEvent*); + +}; // class KDualColorButton + diff --git a/sip/kdeui/kdualcolorbutton.sip b/sip/kdeui/kdualcolorbutton.sip new file mode 100644 index 0000000..a390301 --- /dev/null +++ b/sip/kdeui/kdualcolorbutton.sip @@ -0,0 +1,74 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KDualColorButton : QWidget +{ +%TypeHeaderCode +#include +%End + + +public: + + enum DualColor + { + Foreground, + Background + }; + + KDualColorButton (QWidget* /TransferThis/ = 0, const char* = 0, QWidget* = 0); + KDualColorButton (const QColor&, const QColor&, QWidget* /TransferThis/ = 0, const char* = 0, QWidget* = 0); + QColor foreground () const; + QColor background () const; + KDualColorButton::DualColor current () const; + QColor currentColor () const; + virtual QSize sizeHint () const; + +public slots: + void setForeground (const QColor&); + void setBackground (const QColor&); + void setCurrent (KDualColorButton::DualColor); + void setCurrentColor (const QColor&); + +signals: + void fgChanged (const QColor&); + void bgChanged (const QColor&); + void currentChanged (KDualColorButton::DualColor); + +protected: + virtual void metrics (QRect&, QRect&); + virtual void paintEvent (QPaintEvent*); + virtual void mousePressEvent (QMouseEvent*); + virtual void mouseMoveEvent (QMouseEvent*); + virtual void mouseReleaseEvent (QMouseEvent*); + virtual void dragEnterEvent (QDragEnterEvent*); + virtual void dropEvent (QDropEvent*); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KDualColorButton + diff --git a/sip/kdeui/keditcl.sip b/sip/kdeui/keditcl.sip new file mode 100644 index 0000000..463acbb --- /dev/null +++ b/sip/kdeui/keditcl.sip @@ -0,0 +1,224 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KEdGotoLine : KDialogBase +{ +%TypeHeaderCode +#include +%End + + +public: + KEdGotoLine (QWidget* /TransferThis/ = 0, const char* = 0, bool = 1); + int getLineNumber (); + +public slots: + void selected (int); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KEdGotoLine + + +class KEdFind : KDialogBase +{ +%TypeHeaderCode +#include +%End + + +public: + KEdFind (QWidget* /TransferThis/ = 0, const char* = 0, bool = 1); + QString getText () const; + void setText (QString); + void setCaseSensitive (bool); + bool case_sensitive () const; + void setDirection (bool); + bool get_direction () const; + KHistoryCombo* searchCombo () const; + +protected slots: + void slotCancel (); + void slotUser1 (); + void textSearchChanged (const QString&); + +protected: + +signals: + void search (); + void done (); + +protected: +//igx virtual void virtual_hook (int, void*); +//force + +private: + virtual void done (int); +//end + +}; // class KEdFind + + +class KEdReplace : KDialogBase +{ +%TypeHeaderCode +#include +%End + + +public: + KEdReplace (QWidget* /TransferThis/ = 0, const char* = 0, bool = 1); + QString getText (); + QString getReplaceText (); + void setText (QString); + KHistoryCombo* searchCombo () const; + KHistoryCombo* replaceCombo () const; + bool case_sensitive (); + bool get_direction (); + +protected slots: + void slotCancel (); + void slotClose (); + void slotUser1 (); + void slotUser2 (); + void slotUser3 (); + void textSearchChanged (const QString&); + +signals: + void replace (); + void find (); + void replaceAll (); + void done (); + +protected: +//igx virtual void virtual_hook (int, void*); +//force + +private: + virtual void done (int); +//end + +}; // class KEdReplace + + +class KEdit : QMultiLineEdit +{ +%TypeHeaderCode +#include +%End + + +public: + KEdit (QWidget* /TransferThis/ = 0, const char* = 0); + + enum + { + NONE, + FORWARD, + BACKWARD + }; + + void insertText (QTextStream*); + +%If ( KDE_3_1_0 - ) + void saveText (QTextStream*, bool); +%End + + void saveText (QTextStream*); + void selectFont (); + void search (); + bool repeatSearch (); + void replace (); + void doGotoLine (); + void cleanWhiteSpace (); + void installRBPopup (QPopupMenu*); + int currentLine (); + int currentColumn (); + void spellcheck_start (); + void spellcheck_stop (); + void setOverwriteEnabled (bool); + +%If ( KDE_3_2_0 - ) + QString selectWordUnderCursor (); + +%If ( KDE_3_2_3 - ) + QPopupMenu* createPopupMenu (const QPoint&); + +%If ( KDE_3_3_0 - ) + void setAutoUpdate (bool); +%End + +%End + +%End + + +signals: + void gotUrlDrop (QDropEvent*); + void CursorPositionChanged (); + void toggle_overwrite_signal (); + +public slots: + +%If ( KDE_3_2_0 - ) + void corrected (const QString&, const QString&, uint); + void misspelling (const QString&, const QStringList&, uint); +%End + + +protected: + void computePosition (); + int doSearch (QString, bool, bool, bool, int, int); + int doReplace (QString, bool, bool, bool, int, int, bool); + void posToRowCol (uint, uint&, uint&); + virtual void create (WId = 0, bool = 1, bool = 1); + +%If ( KDE_3_3_0 - ) + virtual void ensureCursorVisible (); + virtual void setCursor (const QCursor&); + virtual void viewportPaintEvent (QPaintEvent*); +%End + + +protected: + void keyPressEvent (QKeyEvent*); + void dragMoveEvent (QDragMoveEvent*); + void dragEnterEvent (QDragEnterEvent*); + void dropEvent (QDropEvent*); + +%If ( KDE_3_1_3 - ) + void contentsDragMoveEvent (QDragMoveEvent*); + void contentsDragEnterEvent (QDragEnterEvent*); + void contentsDropEvent (QDropEvent*); +%End + + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KEdit + diff --git a/sip/kdeui/keditlistbox.sip b/sip/kdeui/keditlistbox.sip new file mode 100644 index 0000000..54faab7 --- /dev/null +++ b/sip/kdeui/keditlistbox.sip @@ -0,0 +1,206 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +%ModuleHeaderCode +const char **PyQtListToArray(PyObject *); +%End + + +class KEditListBox : QGroupBox +{ +%TypeHeaderCode +#include +%End + + +public: + +%If ( KDE_3_1_0 - ) + + class CustomEditor + { + + public: + CustomEditor (); + CustomEditor (QWidget*, KLineEdit*); + CustomEditor (KComboBox*); + void setRepresentationWidget (QWidget*); + void setLineEdit (KLineEdit*); + virtual QWidget* representationWidget () const; + virtual KLineEdit* lineEdit () const; + + protected: + + }; // class CustomEditor + + +public: +%End + + +public: + +%If ( KDE_3_5_0 - ) + + enum Button + { + Add, + Remove, + UpDown + }; + + + enum + { + All + }; + +%End + + KEditListBox (QWidget* /TransferThis/ = 0, const char* = 0, bool = 0, int = All ); + KEditListBox (const QString&, QWidget* /TransferThis/ = 0, const char* = 0, bool = 0, int = All ); + +%If ( KDE_3_1_0 - ) + KEditListBox (const QString&, const KEditListBox::CustomEditor&, QWidget* /TransferThis/ = 0, const char* = 0, bool = 0, int = All ); +%End + + QListBox* listBox () const; + KLineEdit* lineEdit () const; + QPushButton* addButton () const; + QPushButton* removeButton () const; + QPushButton* upButton () const; + QPushButton* downButton () const; + int count () const; + void insertStringList (const QStringList&, int = -1); + void insertStrList (const QStrList*, int = -1); + void insertStrList (const QStrList&, int = -1); + void insertStrList (SIP_PYLIST, int = -1) [void (const char**, int = -1, int = -1)]; +%MethodCode +//takes list | (a Python list of strings) | index | (int) + + int n; + + if ((n = PyList_Size (a0)) == 0) + return NULL; + + const char **strings; + + if ((strings = PyQtListToArray(a0)) == NULL) + return NULL; + + Py_BEGIN_ALLOW_THREADS + sipCpp->insertStrList (strings, n, a1); + Py_END_ALLOW_THREADS + + sipFree((ANY *)strings); +%End + + void insertItem (const QString&, int = -1); + void clear (); + QString text (int) const; + int currentItem () const; + QString currentText () const; + QStringList items () const; + +%If ( KDE_3_4_0 - ) + void setItems (const QStringList&); + int buttons () const; + void setButtons (uint); +%End + + +signals: + void changed (); + +%If ( KDE_3_2_0 - ) + void added (const QString&); + void removed (const QString&); +%End + + +protected slots: + void moveItemUp (); + void moveItemDown (); + void addItem (); + void removeItem (); + void enableMoveButtons (int); + void typedSomething (const QString&); + +protected: +//igx virtual void virtual_hook (int, void*); + +public: + +%If ( - KDE_3_5_0 ) + + enum Button + { + Add, + Remove, + UpDown, + All + }; + +%End + + +}; // class KEditListBox + + + +%ModuleCode +// Convert a list of strings to an array of strings on the heap. Also used by +// QPixmap. + +const char **PyQtListToArray(PyObject *lst) +{ + int nstr; + const char **str, **sp; + + nstr = PyList_Size(lst); + + if ((str = (const char **)sipMalloc(nstr * sizeof (char *))) == NULL) + return NULL; + + // Convert the list. + + sp = str; + + for (int i = 0; i < nstr; ++i) + { + char *s; + + if ((s = PyString_AsString(PyList_GetItem(lst,i))) == NULL) + { + sipFree((ANY *)str); + return NULL; + } + + *sp++ = s; + } + + return str; +} +%End diff --git a/sip/kdeui/kedittoolbar.sip b/sip/kdeui/kedittoolbar.sip new file mode 100644 index 0000000..1af9d7a --- /dev/null +++ b/sip/kdeui/kedittoolbar.sip @@ -0,0 +1,156 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KEditToolbar : KDialogBase +{ +%TypeHeaderCode +#include +%End + + +public: + KEditToolbar (KActionCollection*, const QString& = QString ::null , bool = 1, QWidget* /TransferThis/ = 0, const char* = 0); + +%If ( KDE_3_2_0 - ) + KEditToolbar (const QString&, KActionCollection*, const QString& = QString ::null , bool = 1, QWidget* /TransferThis/ = 0, const char* = 0); +%End + + KEditToolbar (KXMLGUIFactory*, QWidget* /TransferThis/ = 0, const char* = 0); + +%If ( KDE_3_2_0 - ) + KEditToolbar (const QString&, KXMLGUIFactory*, QWidget* /TransferThis/ = 0, const char* = 0); + +%If ( KDE_3_3_0 - ) + static void setDefaultToolbar (const char*); +%End + +%End + + +protected slots: + virtual void slotOk (); + virtual void slotApply (); + void acceptOK (bool); + +%If ( KDE_3_5_0 - ) + void slotDefault (); +%End + + +signals: + void newToolbarConfig (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KEditToolbar + + +class KEditToolbarWidget : QWidget, KXMLGUIClient +{ +%TypeHeaderCode +#include +%End + + +public: + KEditToolbarWidget (KActionCollection*, const QString& = QString ::null , bool = 1, QWidget* /TransferThis/ = 0); + +%If ( KDE_3_2_0 - ) + KEditToolbarWidget (const QString&, KActionCollection*, const QString& = QString ::null , bool = 1, QWidget* /TransferThis/ = 0); +%End + + KEditToolbarWidget (KXMLGUIFactory*, QWidget* /TransferThis/ = 0); + +%If ( KDE_3_2_0 - ) + KEditToolbarWidget (const QString&, KXMLGUIFactory*, QWidget* /TransferThis/ = 0); +%End + + +%If ( KDE_3_1_0 - ) + virtual KActionCollection* actionCollection () const; +%End + + bool save (); + +%If ( KDE_3_5_0 - ) + void rebuildKXMLGUIClients (); +%End + + +signals: + void enableOk (bool); + +protected slots: + void slotToolbarSelected (const QString&); + void slotInactiveSelected (QListViewItem*); + void slotActiveSelected (QListViewItem*); + +%If ( KDE_3_3_0 - ) + void slotDropped (KListView*, QDropEvent*, QListViewItem*); +%End + + void slotInsertButton (); + void slotRemoveButton (); + void slotUpButton (); + void slotDownButton (); + +%If ( KDE_3_3_0 - ) + void slotChangeIcon (); +%End + + +protected: + void setupLayout (); + +%If ( KDE_3_3_0 - ) +//ig void insertActive (ToolbarItem*, QListViewItem*, bool = 0); +//ig void removeActive (ToolbarItem*); +//ig void moveActive (ToolbarItem*, QListViewItem*); +%End + + +%If ( KDE_3_2_0 - ) + void initNonKPart (KActionCollection*, const QString&, bool); + void initKPart (KXMLGUIFactory*); + void loadToolbarCombo (const QString& = QString ::null ); +%End + + void loadActionList (QDomElement&); + void updateLocal (QDomElement&); + +protected: +//igx virtual void virtual_hook (int, void*); + +protected: + +%If ( - KDE_3_2_0 ) + void loadToolbarCombo (); +%End + + +}; // class KEditToolbarWidget + diff --git a/sip/kdeui/kfontcombo.sip b/sip/kdeui/kfontcombo.sip new file mode 100644 index 0000000..2487897 --- /dev/null +++ b/sip/kdeui/kfontcombo.sip @@ -0,0 +1,67 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KFontCombo : KComboBox +{ +%TypeHeaderCode +#include +%End + + +public: + KFontCombo (QWidget* /TransferThis/, const char* = 0); + KFontCombo (const QStringList&, QWidget* /TransferThis/, const char* = 0); + void setFonts (const QStringList&); + void setCurrentFont (const QString&); + QString currentFont () const; + void setBold (bool); + bool bold () const; + void setItalic (bool); + bool italic () const; + void setUnderline (bool); + bool underline () const; + void setStrikeOut (bool); + bool strikeOut () const; + void setSize (int); + int size () const; + static bool displayFonts (); + virtual void setCurrentItem (int); + +protected slots: + +%If ( KDE_3_3_0 - ) + void slotModified (int); +%End + + +protected: + void updateFonts (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KFontCombo + diff --git a/sip/kdeui/kfontdialog.sip b/sip/kdeui/kfontdialog.sip new file mode 100644 index 0000000..47fd4f7 --- /dev/null +++ b/sip/kdeui/kfontdialog.sip @@ -0,0 +1,184 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KFontChooser : QWidget +{ +%TypeHeaderCode +#include +#include +%End + + +public: + +%If ( KDE_3_1_0 - ) + + enum FontColumn + { + FamilyList, + StyleList, + SizeList + }; + +%End + + + enum FontDiff + { + FontDiffFamily, + FontDiffStyle, + FontDiffSize + }; + + KFontChooser (QWidget* /TransferThis/ = 0, const char* = 0, bool = 0, const QStringList& = QStringList (), bool = 1, int = 8, bool = 0, QButton::ToggleState = QButton ::Off ) [(QWidget* = 0, const char* = 0, bool = 0, const QStringList& = QStringList (), bool = 1, int = 8, bool = 0, QButton::ToggleState* = 0)]; +%MethodCode +//takes parent | (QWidget = 0) | name | (string = "") | onlyFixed | (bool = 0) | fontList | (QStringList = QStringList()) | makeFrame | (bool = 1) | visibleListSize | (int = 8) | diff | (bool = 0) | sizeIsRelativeState | (QButton::ToggleState = 0) +//returns + Py_BEGIN_ALLOW_THREADS + sipCpp = (sipKFontChooser *) new KFontChooser (a0, a1, a2, *a3, a4, a5, a6, &a7); + Py_END_ALLOW_THREADS +%End + + void enableColumn (int, bool); + void setFont (const QFont&, bool = 0); + int fontDiffFlags (); + QFont font () const; + void setColor (const QColor&); + QColor color () const; + void setBackgroundColor (const QColor&); + QColor backgroundColor () const; + void setSizeIsRelative (QButton::ToggleState); + QButton::ToggleState sizeIsRelative () const; + QString sampleText () const; + void setSampleText (const QString&); + +%If ( KDE_3_5_0 - ) + void setSampleBoxVisible (bool); +%End + + static QString getXLFD (const QFont&); + + enum FontListCriteria + { + FixedWidthFonts, + ScalableFonts, + SmoothScalableFonts + }; + + static void getFontList (QStringList&, bool); + virtual QSize sizeHint () const; + +signals: + void fontSelected (const QFont&); + +protected: +//igx virtual void virtual_hook (int, void*); + +public: + +%If ( - KDE_3_1_0 ) + + enum FontColumn + { + FamilyList, + StyleList, + SizeList, + CharsetList + }; + +%End + + +}; // class KFontChooser + + +class KFontDialog : KDialogBase +{ +%TypeHeaderCode +#include +%End + + +public: + KFontDialog (QWidget* /TransferThis/ = 0, const char* = 0, bool = 0, bool = 0, const QStringList& = QStringList (), bool = 1, bool = 0, QButton::ToggleState = QButton ::Off ) [(QWidget* = 0, const char* = 0, bool = 0, bool = 0, const QStringList& = QStringList (), bool = 1, bool = 0, QButton::ToggleState* = 0)]; +%MethodCode +//takes parent | (QWidget = 0) | name | (string = "") | onlyFixed | (bool = 0) | modal | (bool = 0) | fontlist | (QStringList = QStringList()) | makeFrame | (bool = 1) | diff | (bool = 0) | sizeIsRelativeState | (QButton::ToggleState = 0) + Py_BEGIN_ALLOW_THREADS + sipCpp = (sipKFontDialog *)new KFontDialog (a0, a1, a2, a3, *a4, a5, a6, &a7); + Py_END_ALLOW_THREADS +%End + + void setFont (const QFont&, bool = 0); + QFont font () const; + void setSizeIsRelative (QButton::ToggleState); + QButton::ToggleState sizeIsRelative () const; + static SIP_PYTUPLE getFont (QFont&, bool = 0, QWidget* /Transfer/ = 0, bool = 1, QButton::ToggleState /In/ = QButton ::Off ) [int (QFont&, bool = 0, QWidget* = 0, bool = 1, QButton::ToggleState* = 0)]; +%MethodCode +//returns (int) sizeIsRelative (QButton::ToggleState) +//takes theFont | (QFont) | onlyFixed | (bool = False) | parent | (QWidget = 0) | makeFrame | (bool = True) | sizeIsRelative | (QButton::ToggleState = QButton.Off) + int res; + Py_BEGIN_ALLOW_THREADS + res = KFontDialog::getFont (*a0, a1, a2, a3, &a4); + Py_END_ALLOW_THREADS + + sipRes = Py_BuildValue ("ii", res, (int)a4); +%End + + static SIP_PYTUPLE getFontDiff (QFont&, int&, bool = 0, QWidget* /Transfer/ = 0, bool = 1, QButton::ToggleState /In/ = QButton ::Off ) [int (QFont&, int&, bool = 0, QWidget* = 0, bool = 1, QButton::ToggleState* = 0)]; +%MethodCode +//returns (int) sizeIsRelative (QButton::ToggleState) +//takes theFont | (QFont) | diffFlags | (int) | onlyFixed | (bool = False) | parent | (QWidget = 0) | makeFrame | (bool = true) | sizeIsRelative | (QButton::ToggleState = QButton.Off) + int res; + Py_BEGIN_ALLOW_THREADS + res = KFontDialog::getFontDiff (*a0, a1, a2, a3, a4, &a5); + Py_END_ALLOW_THREADS + + sipRes = Py_BuildValue ("ii", res, (int)a5); +%End + + static SIP_PYTUPLE getFontAndText (QFont&, QString&, bool = 0, QWidget* /Transfer/ = 0, bool = 1, QButton::ToggleState /In/ = QButton ::Off ) [int (QFont&, QString&, bool = 0, QWidget* = 0, bool = 1, QButton::ToggleState* = 0)]; +%MethodCode +//returns (int) sizeIsRelative (QButton::ToggleState) +//takes theFont | (QFont) | theString | (QString) | onlyFixed | (bool = False) | parent | (QWidget = 0) | makeFrame | (bool = true) | sizeIsRelative | (QButton::ToggleState = QButton.Off) + int res; + Py_BEGIN_ALLOW_THREADS + res = KFontDialog::getFontAndText (*a0, *a1, a2, a3, a4, &a5); + Py_END_ALLOW_THREADS + + sipRes = Py_BuildValue ("ii", res, (int)a5); +%End + + +signals: + void fontSelected (const QFont&); + +protected: + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KFontDialog + diff --git a/sip/kdeui/kfontrequester.sip b/sip/kdeui/kfontrequester.sip new file mode 100644 index 0000000..27916fc --- /dev/null +++ b/sip/kdeui/kfontrequester.sip @@ -0,0 +1,63 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_2_0 - ) + +class KFontRequester : QWidget +{ +%TypeHeaderCode +#include +%End + + +public: + KFontRequester (QWidget* /TransferThis/ = 0, const char* = 0, bool = 0); + QFont font () const; + bool isFixedOnly () const; + QString sampleText () const; + QString title () const; + QLabel* label () const; + QPushButton* button () const; + virtual void setFont (const QFont&, bool = 0); + virtual void setSampleText (const QString&); + virtual void setTitle (const QString&); + +signals: + void fontSelected (const QFont&); + +protected: + void displaySampleText (); + void setToolTip (); + +protected slots: + virtual void buttonClicked (); + +protected: + +}; // class KFontRequester + +%End + diff --git a/sip/kdeui/kguiitem.sip b/sip/kdeui/kguiitem.sip new file mode 100644 index 0000000..91d2568 --- /dev/null +++ b/sip/kdeui/kguiitem.sip @@ -0,0 +1,57 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KGuiItem +{ +%TypeHeaderCode +#include +%End + + +public: + KGuiItem (); + KGuiItem (const QString&, const QString& = QString ::null , const QString& = QString ::null , const QString& = QString ::null ); + KGuiItem (const QString&, const QIconSet&, const QString& = QString ::null , const QString& = QString ::null ); + KGuiItem (const KGuiItem&); + QString text () const; + QString plainText () const; + QIconSet iconSet (KIcon::Group, int = 0, KInstance* = KGlobal ::instance ()) const; + QIconSet iconSet () const; + QString iconName () const; + QString toolTip () const; + QString whatsThis () const; + bool isEnabled () const; + bool hasIcon () const; + bool hasIconSet () const; + void setText (const QString&); + void setIconSet (const QIconSet&); + void setIconName (const QString&); + void setToolTip (const QString&); + void setWhatsThis (const QString&); + void setEnabled (bool); + +}; // class KGuiItem + diff --git a/sip/kdeui/khelpmenu.sip b/sip/kdeui/khelpmenu.sip new file mode 100644 index 0000000..c8e047b --- /dev/null +++ b/sip/kdeui/khelpmenu.sip @@ -0,0 +1,63 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KHelpMenu : QObject +{ +%TypeHeaderCode +#include +%End + + +public: + + enum MenuId + { + menuHelpContents, + menuWhatsThis, + menuAboutApp, + menuAboutKDE, + menuReportBug + }; + + KHelpMenu (QWidget* /TransferThis/ = 0, const QString& = QString ::null , bool = 1); + KHelpMenu (QWidget* /TransferThis/, const KAboutData*, bool = 1, KActionCollection* = 0); + KPopupMenu* menu (); + +public slots: + void appHelpActivated (); + void contextHelpActivated (); + void aboutApplication (); + void aboutKDE (); + void reportBug (); + +signals: + void showAboutApplication (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KHelpMenu + diff --git a/sip/kdeui/kiconview.sip b/sip/kdeui/kiconview.sip new file mode 100644 index 0000000..eb4fa52 --- /dev/null +++ b/sip/kdeui/kiconview.sip @@ -0,0 +1,147 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KIconView : QIconView +{ +%TypeHeaderCode +#include +%End + + +public: + KIconView (QWidget* /TransferThis/ = 0, const char* = 0, WFlags = 0); + + enum Mode + { + Execute, + Select + }; + + void setMode (KIconView::Mode); + Mode mode () const; + virtual void setFont (const QFont&); + +%If ( KDE_3_3_0 - ) + void setIconTextHeight (int); + int iconTextHeight () const; + +%If ( KDE_3_4_0 - ) + virtual void takeItem (QIconViewItem*); +%End + +%End + + +signals: + void executed (QIconViewItem*); + void executed (QIconViewItem*, const QPoint&); + +%If ( KDE_3_3_0 - ) + void held (QIconViewItem*); +%End + + void doubleClicked (QIconViewItem*, const QPoint&); + +protected slots: + void slotOnItem (QIconViewItem*); + void slotOnViewport (); + void slotSettingsChanged (int); + void slotAutoSelect (); + +protected: + void emitExecute (QIconViewItem*, const QPoint&); + +%If ( KDE_3_5_0 - ) + void updateDragHoldItem (QDropEvent*); +%End + + virtual void focusOutEvent (QFocusEvent*); + virtual void leaveEvent (QEvent*); + virtual void contentsMousePressEvent (QMouseEvent*); + virtual void contentsMouseDoubleClickEvent (QMouseEvent*); + virtual void contentsMouseReleaseEvent (QMouseEvent*); + +%If ( KDE_3_3_0 - ) + virtual void contentsDragEnterEvent (QDragEnterEvent*); + +%If ( KDE_3_5_0 - ) + virtual void contentsDragLeaveEvent (QDragLeaveEvent*); +%End + + virtual void contentsDragMoveEvent (QDragMoveEvent*); + virtual void contentsDropEvent (QDropEvent*); + virtual void wheelEvent (QWheelEvent*); + +%If ( KDE_3_4_0 - ) + void cancelPendingHeldSignal (); +%End + +%End + + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KIconView + + +class KIconViewItem : QIconViewItem +{ +%TypeHeaderCode +#include +%End + + +public: + KIconViewItem (QIconView* /TransferThis/); + KIconViewItem (QIconView* /TransferThis/, QIconViewItem*); + KIconViewItem (QIconView* /TransferThis/, const QString&); + KIconViewItem (QIconView* /TransferThis/, QIconViewItem*, const QString&); + KIconViewItem (QIconView* /TransferThis/, const QString&, const QPixmap&); + KIconViewItem (QIconView* /TransferThis/, QIconViewItem*, const QString&, const QPixmap&); + KIconViewItem (QIconView* /TransferThis/, const QString&, const QPicture&); + KIconViewItem (QIconView* /TransferThis/, QIconViewItem*, const QString&, const QPicture&); + +%If ( KDE_3_3_0 - ) + void setPixmapSize (const QSize&); + QSize pixmapSize () const; +%End + + +protected: + void init (); + virtual void calcRect (const QString& = QString ::null ); + virtual void paintItem (QPainter*, const QColorGroup&); + +%If ( KDE_3_2_0 - ) + KWordWrap* wordWrap (); + void paintPixmap (QPainter*, const QColorGroup&); + void paintText (QPainter*, const QColorGroup&); +%End + + +}; // class KIconViewItem + diff --git a/sip/kdeui/kiconviewsearchline.sip b/sip/kdeui/kiconviewsearchline.sip new file mode 100644 index 0000000..e075334 --- /dev/null +++ b/sip/kdeui/kiconviewsearchline.sip @@ -0,0 +1,61 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_4_0 - ) + +class KIconViewSearchLine : KLineEdit +{ +%TypeHeaderCode +#include +%End + + +public: + KIconViewSearchLine (QWidget* /TransferThis/ = 0, QIconView* = 0, const char* = 0); + KIconViewSearchLine (QWidget* /TransferThis/, const char*); + bool caseSensitive () const; + QIconView* iconView () const; + +public slots: + virtual void updateSearch (const QString& = QString ::null ); + void setCaseSensitive (bool); + void setIconView (QIconView*); + void clear (); + +protected: + virtual bool itemMatches (const QIconViewItem*, const QString&) const; + void init (QIconView* = 0); + void hideItem (QIconViewItem*); + void showItem (QIconViewItem*); + +protected slots: + void queueSearch (const QString&); + void activateSearch (); + +}; // class KIconViewSearchLine + +%End + diff --git a/sip/kdeui/kinputdialog.sip b/sip/kdeui/kinputdialog.sip new file mode 100644 index 0000000..5eafca6 --- /dev/null +++ b/sip/kdeui/kinputdialog.sip @@ -0,0 +1,66 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_2_0 - ) + +class KInputDialog : KDialogBase +{ +%TypeHeaderCode +#include +%End + + +private: + KInputDialog (const QString&, const QString&, const QString&, QWidget* /TransferThis/, const char*, QValidator*, const QString&); + +%If ( KDE_3_3_0 - ) + KInputDialog (const QString&, const QString&, const QString&, QWidget* /TransferThis/, const char*); +%End + + KInputDialog (const QString&, const QString&, int, int, int, int, int, QWidget* /TransferThis/, const char*); + KInputDialog (const QString&, const QString&, const QStringList&, int, bool, QWidget* /TransferThis/, const char*); + KInputDialog (const QString&, const QString&, const QStringList&, const QStringList&, bool, QWidget* /TransferThis/, const char*); + ~KInputDialog (); + +public: + static QString getText (const QString&, const QString&, const QString& = QString ::null , bool* = 0, QWidget* /Transfer/ = 0, const char* = 0, QValidator* = 0, const QString& = QString ::null ); + +%If ( KDE_3_3_0 - ) + static QString text (const QString&, const QString&, const QString& = QString ::null , bool* = 0, QWidget* /Transfer/ = 0, const char* = 0, QValidator* = 0, const QString& = QString ::null , const QString& = QString ::null ); + static QString getMultiLineText (const QString&, const QString&, const QString& = QString ::null , bool* = 0, QWidget* /Transfer/ = 0, const char* = 0); +%End + + static int getInteger (const QString&, const QString&, int = 0, int = -2147483647, int = 2147483647, int = 1, int = 10, bool* = 0, QWidget* /Transfer/ = 0, const char* = 0); +//ig static int getInteger (const QString&, const QString&, int = 0, int = -2147483647, int = 2147483647, int = 1, bool* = 0, QWidget* /Transfer/ = 0, const char* = 0); + static double getDouble (const QString&, const QString&, double = 0, double = -2147483647, double = 2147483647, double = 0.1, int = 1, bool* = 0, QWidget* /Transfer/ = 0, const char* = 0); +//ig static double getDouble (const QString&, const QString&, double = 0, double = -2147483647, double = 2147483647, int = 1, bool* = 0, QWidget* /Transfer/ = 0, const char* = 0); + static QString getItem (const QString&, const QString&, const QStringList&, int = 0, bool = 0, bool* = 0, QWidget* /Transfer/ = 0, const char* = 0); + static QStringList getItemList (const QString&, const QString&, const QStringList& = QStringList (), const QStringList& = QStringList (), bool = 0, bool* = 0, QWidget* /Transfer/ = 0, const char* = 0); + +}; // class KInputDialog + +%End + diff --git a/sip/kdeui/kjanuswidget.sip b/sip/kdeui/kjanuswidget.sip new file mode 100644 index 0000000..1759583 --- /dev/null +++ b/sip/kdeui/kjanuswidget.sip @@ -0,0 +1,110 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KJanusWidget : QWidget +{ +%TypeHeaderCode +#include +%End + + +public: + + enum Face + { + TreeList, + Tabbed, + Plain, + Swallow, + IconList + }; + + +public: + KJanusWidget (QWidget* /TransferThis/ = 0, const char* = 0, int = Plain ); + virtual bool showPage (int); + virtual int activePageIndex () const; + virtual bool isValid () const; + virtual int face () const; + virtual QSize minimumSizeHint () const; + virtual QSize sizeHint () const; + virtual QFrame* plainPage (); + virtual QFrame* addPage (const QString&, const QString& = QString ::null , const QPixmap& = QPixmap ()); + virtual QFrame* addPage (const QStringList&, const QString& = QString ::null , const QPixmap& = QPixmap ()); + virtual QVBox* addVBoxPage (const QString&, const QString& = QString ::null , const QPixmap& = QPixmap ()); + virtual QVBox* addVBoxPage (const QStringList&, const QString& = QString ::null , const QPixmap& = QPixmap ()); + virtual QHBox* addHBoxPage (const QString&, const QString& = QString ::null , const QPixmap& = QPixmap ()); + virtual QHBox* addHBoxPage (const QStringList&, const QString& = QString ::null , const QPixmap& = QPixmap ()); + virtual QGrid* addGridPage (int, Qt::Orientation, const QString&, const QString& = QString ::null , const QPixmap& = QPixmap ()); + virtual QGrid* addGridPage (int, Qt::Orientation, const QStringList&, const QString& = QString ::null , const QPixmap& = QPixmap ()); + +%If ( KDE_3_1_0 - ) + void removePage (QWidget*); +%End + + virtual int pageIndex (QWidget*) const; + virtual bool setSwallowedWidget (QWidget*); + virtual void setTreeListAutoResize (bool); + virtual void setShowIconsInTreeList (bool); + virtual void setRootIsDecorated (bool); + +%If ( KDE_3_2_0 - ) + void unfoldTreeList (bool = 0); + void addWidgetBelowList (QWidget*); + void addButtonBelowList (const QString&, QObject*, const char*); + void addButtonBelowList (const KGuiItem&, QObject*, const char*); +%End + + virtual void setIconListAllVisible (bool); + virtual void setFolderIcon (const QStringList&, const QPixmap&); + +%If ( KDE_3_2_0 - ) + QString pageTitle (int) const; + QWidget* pageWidget (int) const; +%End + + +signals: + void aboutToShowPage (QWidget*); + +public slots: + virtual void setFocus (); + +protected: + virtual void showEvent (QShowEvent*); + virtual bool eventFilter (QObject*, QEvent*); + +protected: + bool showPage (QWidget*); + void addPageWidget (QFrame*, const QStringList&, const QString&, const QPixmap&); + void InsertTreeListItem (const QStringList&, const QPixmap&, QFrame*); + QWidget* FindParent (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KJanusWidget + diff --git a/sip/kdeui/kkeybutton.sip b/sip/kdeui/kkeybutton.sip new file mode 100644 index 0000000..21deda9 --- /dev/null +++ b/sip/kdeui/kkeybutton.sip @@ -0,0 +1,59 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KKeyButton : QPushButton +{ +%TypeHeaderCode +#include +#include +%End + + +public: + KKeyButton (QWidget* /TransferThis/ = 0, const char* = 0); + void setShortcut (const KShortcut&); + +%If ( KDE_3_1_0 - ) + void setShortcut (const KShortcut&, bool); +%End + + const KShortcut& shortcut () const; + void setText (const QString&); + +signals: + void capturedShortcut (const KShortcut&); + +public slots: + void captureShortcut (); + +protected: + void drawButton (QPainter*); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KKeyButton + diff --git a/sip/kdeui/kkeydialog.sip b/sip/kdeui/kkeydialog.sip new file mode 100644 index 0000000..eb6b8e6 --- /dev/null +++ b/sip/kdeui/kkeydialog.sip @@ -0,0 +1,265 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KKeyChooser : QWidget +{ +%TypeHeaderCode +#include +%End + + +public: + + enum ActionType + { + Application, + ApplicationGlobal, + Standard, + Global + }; + + KKeyChooser (QWidget* /TransferThis/, KKeyChooser::ActionType = Application , bool = 1); + KKeyChooser (KActionCollection*, QWidget* /TransferThis/, bool = 1); + KKeyChooser (KAccel*, QWidget* /TransferThis/, bool = 1); + KKeyChooser (KGlobalAccel*, QWidget* /TransferThis/); + KKeyChooser (KShortcutList*, QWidget* /TransferThis/, KKeyChooser::ActionType = Application , bool = 1); + bool insert (KActionCollection*); + +%If ( KDE_3_1_0 - ) + bool insert (KActionCollection*, const QString&); +%End + + void syncToConfig (const QString&, KConfigBase*, bool); + void commitChanges (); + void save (); + +%If ( KDE_3_2_0 - ) + static bool checkGlobalShortcutsConflict (const KShortcut&, bool, QWidget* /Transfer/); + static bool checkStandardShortcutsConflict (const KShortcut&, bool, QWidget* /Transfer/); +%End + + +signals: + void keyChange (); + +public slots: + void allDefault (); + void setPreferFourModifierKeys (bool); + +protected: + void initGUI (KKeyChooser::ActionType, bool); + bool insert (KAccel*); + bool insert (KGlobalAccel*); + bool insert (KShortcutList*); + +%If ( KDE_3_1_0 - ) + void buildListView (uint, const QString& = QString ::null ); +%End + + void readGlobalKeys (); + void updateButtons (); + void fontChange (const QFont&); + void setShortcut (const KShortcut&); + bool isKeyPresent (const KShortcut&, bool = 1); + +%If ( KDE_3_1_0 - ) +//ig bool isKeyPresentLocally (const KShortcut&, KKeyChooserItem*, const QString&); +%End + + void _warning (const KKeySequence&, QString, QString); + +protected slots: + void slotNoKey (); + void slotDefaultKey (); + void slotCustomKey (); + void slotListItemSelected (QListViewItem*); + void capturedShortcut (const KShortcut&); + +%If ( KDE_3_1_0 - ) + void slotSettingsChanged (int); + +%If ( KDE_3_1_2 - ) + void slotListItemDoubleClicked (QListViewItem*, const QPoint&, int); +%End + +%End + + +protected: + +public: + KKeyChooser (KAccel*, QWidget* /TransferThis/, bool, bool, bool = 0); + KKeyChooser (KGlobalAccel*, QWidget* /TransferThis/, bool, bool, bool = 0); + +public slots: + void listSync (); + +protected: +//igx virtual void virtual_hook (int, void*); + +protected: + +%If ( - KDE_3_1_0 ) + void buildListView (uint); +%End + + +}; // class KKeyChooser + + +class KKeyDialog : KDialogBase +{ +%TypeHeaderCode +#include +%End + + +public: + KKeyDialog (bool = 1, QWidget* /TransferThis/ = 0, const char* = 0); + bool insert (KActionCollection*); + +%If ( KDE_3_1_0 - ) + bool insert (KActionCollection*, const QString&); +%End + + bool configure (bool = 1); + void commitChanges (); + static int configure (KActionCollection*, QWidget* /Transfer/ = 0, bool = 1); + static int configure (KAccel*, QWidget* /Transfer/ = 0, bool = 1); + static int configure (KGlobalAccel*, QWidget* /Transfer/ = 0, bool = 1); + +%If ( KDE_3_1_0 - ) + static int configure (KActionCollection*, bool, QWidget* /Transfer/ = 0, bool = 1); + static int configure (KAccel*, bool, QWidget* /Transfer/ = 0, bool = 1); + static int configure (KGlobalAccel*, bool, QWidget* /Transfer/ = 0, bool = 1); +%End + + static int configureKeys (KAccel*, bool = 1, QWidget* /Transfer/ = 0); + static int configureKeys (KGlobalAccel*, bool = 1, QWidget* /Transfer/ = 0); + static int configureKeys (KActionCollection*, const QString&, bool = 1, QWidget* /Transfer/ = 0); + +%If ( KDE_3_1_0 - ) + +private: + KKeyDialog (KKeyChooser::ActionType, bool = 1, QWidget* /TransferThis/ = 0, const char* = 0); +%End + + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KKeyDialog + +typedef KKeyChooser KKeyChooser; + + +%MappedType IntDict +//converts a Python dict of QString:int +{ +%TypeHeaderCode +#include +typedef QDict IntDict; +%End + +%ConvertFromTypeCode +// Convert to a Python dictionary + + if (!sipCpp) + return PyDict_New(); + + PyObject *dict; + + // Create the dictionary. + + if ((dict = PyDict_New()) == NULL) + return NULL; + + // Get it. + + QDict qdict = *sipCpp; + QDictIterator it (qdict); + + while (it.current ()) + { + PyObject *a0 = sipConvertFromInstance (&it.currentKey (), sipClass_QCString, sipTransferObj); + PyObject *a1 = PyInt_FromLong ((long) it.current ()); + + if ((a0 == NULL) || (a1 == NULL) || (PyDict_SetItem (dict, a0, a1) < 0)) + { + Py_XDECREF (a0); + Py_XDECREF (a1); + Py_DECREF (dict); + return NULL; + } + } + + return dict; +%End + + +%ConvertToTypeCode + // Convert a Python dictionary to a QDict on the heap. + + if (sipIsErr == NULL) + return PyDict_Check(sipPy); + + QDict* qdict = new QDict; + + PyObject *key, *value; + SIP_SSIZE_T pos = 0; + QString *a0; + int a1; + + while (PyDict_Next(sipPy, &pos, &key, &value)) + { + int iserr = 0, a0_state; + + a0 = (QString *)sipForceConvertToType(key, sipType_QString, sipTransferObj, SIP_NOT_NONE, &a0_state, &iserr); + + if ((iserr) || (!PyInt_Check (value))) + { + if (a0) + sipReleaseType(a0, sipType_QString, a0_state); + + *sipIsErr = 1; + delete qdict; + return 0; + } + + a1 = (int) PyInt_AS_LONG (value); + + qdict->insert (*a0, &a1); + + sipReleaseType(a0, sipType_QString, a0_state); + } + + *sipCppPtr = qdict; + + return 1; +%End +}; + + diff --git a/sip/kdeui/klanguagebutton.sip b/sip/kdeui/klanguagebutton.sip new file mode 100644 index 0000000..5c54670 --- /dev/null +++ b/sip/kdeui/klanguagebutton.sip @@ -0,0 +1,60 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_3_0 - ) + +class KLanguageButton : QWidget +{ +%TypeHeaderCode +#include +%End + + +public: + KLanguageButton (QWidget* /TransferThis/ = 0, const char* = 0); + KLanguageButton (const QString&, QWidget* /TransferThis/ = 0, const char* = 0); + void insertItem (const QIconSet&, const QString&, const QString&, const QString& = QString ::null , int = -1); + void insertItem (const QString&, const QString&, const QString& = QString ::null , int = -1); + void insertSeparator (const QString& = QString ::null , int = -1); + void insertSubmenu (const QIconSet&, const QString&, const QString&, const QString& = QString ::null , int = -1); + void insertSubmenu (const QString&, const QString&, const QString& = QString ::null , int = -1); + void insertLanguage (const QString&, const QString&, const QString& = QString ::null , const QString& = QString ::null , int = -1); + int count () const; + void clear (); + void setText (const QString&); + QString current () const; + bool contains (const QString&) const; + void setCurrentItem (const QString&); + QString id (int) const; + +signals: + void activated (const QString&); + void highlighted (const QString&); + +}; // class KLanguageButton + +%End + diff --git a/sip/kdeui/kled.sip b/sip/kdeui/kled.sip new file mode 100644 index 0000000..ce74c81 --- /dev/null +++ b/sip/kdeui/kled.sip @@ -0,0 +1,97 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KLed : QWidget +{ +%TypeHeaderCode +#include +%End + + +public: + + enum State + { + Off, + On + }; + + + enum Shape + { + Rectangular, + Circular + }; + + + enum Look + { + Flat, + Raised, + Sunken + }; + + KLed (QWidget* /TransferThis/ = 0, const char* = 0); +//ig KLed (const QColor&, QWidget* /TransferThis/ = 0, const char* = 0); + KLed (const QColor&, KLed::State, KLed::Look, KLed::Shape, QWidget* /TransferThis/ = 0, const char* = 0); + State state () const; + Shape shape () const; + const QColor color () const; + Look look () const; + int darkFactor () const; + void setState (KLed::State); + void setShape (KLed::Shape); + void toggleState (); + void setColor (const QColor&); + void setDarkFactor (int); + void setLook (KLed::Look); + virtual QSize sizeHint () const; + virtual QSize minimumSizeHint () const; + +public slots: + void toggle (); + void on (); + void off (); + +protected: + virtual void paintFlat (); + virtual void paintRound (); + virtual void paintSunken (); + virtual void paintRect (); + virtual void paintRectFrame (bool); + void paintEvent (QPaintEvent*); + +%If ( KDE_3_3_0 - ) + int ensureRoundLed (); + bool paintCachedPixmap (); +%End + + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KLed + diff --git a/sip/kdeui/klineedit.sip b/sip/kdeui/klineedit.sip new file mode 100644 index 0000000..aaab74f --- /dev/null +++ b/sip/kdeui/klineedit.sip @@ -0,0 +1,146 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KLineEdit : QLineEdit, KCompletionBase +{ +%TypeHeaderCode +#include +%End + + +public: + KLineEdit (const QString&, QWidget* /TransferThis/, const char* = 0); + KLineEdit (QWidget* /TransferThis/ = 0, const char* = 0); + void setURL (const KURL&); + void cursorAtEnd (); + virtual void setCompletionMode (KGlobalSettings::Completion); + virtual void setContextMenuEnabled (bool); + bool isContextMenuEnabled () const; + void setURLDropsEnabled (bool); + bool isURLDropsEnabled () const; + void setTrapReturnKey (bool); + bool trapReturnKey () const; + virtual bool eventFilter (QObject*, QEvent*); + KCompletionBox* completionBox (bool); + virtual void setCompletionObject (KCompletion*, bool = 1); + +%If ( KDE_3_1_0 - ) + virtual void copy () const; + +%If ( KDE_3_2_0 - ) + void setEnableSqueezedText (bool); + bool isSqueezedTextEnabled () const; + QString originalText () const; + +%If ( KDE_3_4_0 - ) + void setCompletionBox (KCompletionBox*); +%End + +%End + +%End + + +signals: + +%If ( KDE_3_1_0 - ) + void completionBoxActivated (const QString&); +%End + + void returnPressed (const QString&); + void completion (const QString&); + void substringCompletion (const QString&); + void textRotation (KCompletionBase::KeyBindingType); + void completionModeChanged (KGlobalSettings::Completion); + void aboutToShowContextMenu (QPopupMenu*); + +public slots: + virtual void setReadOnly (bool); + void rotateText (KCompletionBase::KeyBindingType); + virtual void setCompletedText (const QString&); + void setCompletedItems (const QStringList&); + +%If ( KDE_3_3_0 - ) + void setCompletedItems (const QStringList&, bool); +%End + + virtual void clear (); + +%If ( KDE_3_1_0 - ) + void setSqueezedText (const QString&); + +%If ( KDE_3_2_0 - ) + virtual void setText (const QString&); +%End + +%End + + +protected slots: + virtual void makeCompletion (const QString&); + void slotAboutToShow (); + void slotCancelled (); + +%If ( KDE_3_2_0 - ) + void userCancelled (const QString&); +%End + + +protected: + +%If ( KDE_3_1_0 - ) + virtual void resizeEvent (QResizeEvent*); +%End + + virtual void keyPressEvent (QKeyEvent*); + virtual void mousePressEvent (QMouseEvent*); + virtual void mouseDoubleClickEvent (QMouseEvent*); + +%If ( KDE_3_3_1 - ) + virtual void contextMenuEvent (QContextMenuEvent*); +%End + + virtual QPopupMenu* createPopupMenu (); + virtual void dropEvent (QDropEvent*); + virtual void setCompletedText (const QString&, bool); + +%If ( KDE_3_2_0 - ) + void setUserSelection (bool); +%End + + virtual void create (WId = 0, bool = 1, bool = 1); + +%If ( KDE_3_4_0 - ) + virtual void focusInEvent (QFocusEvent*); + bool autoSuggest () const; +%End + + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KLineEdit + diff --git a/sip/kdeui/klineeditdlg.sip b/sip/kdeui/klineeditdlg.sip new file mode 100644 index 0000000..f07b731 --- /dev/null +++ b/sip/kdeui/klineeditdlg.sip @@ -0,0 +1,53 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KLineEditDlg : KDialogBase +{ +%TypeHeaderCode +#include +%End + + +public: + KLineEditDlg (const QString&, const QString&, QWidget* /TransferThis/); + QString text (); + KLineEdit* lineEdit () const; + static QString getText (const QString&, const QString&, bool*, QWidget* /Transfer/, QValidator* = 0); + static QString getText (const QString&, const QString&, const QString& = QString ::null , bool* = 0, QWidget* /Transfer/ = 0, QValidator* = 0); + +public slots: + void slotClear (); + +protected slots: + void slotTextChanged (const QString&); + +protected: + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KLineEditDlg + diff --git a/sip/kdeui/klistbox.sip b/sip/kdeui/klistbox.sip new file mode 100644 index 0000000..e8ea4a1 --- /dev/null +++ b/sip/kdeui/klistbox.sip @@ -0,0 +1,60 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KListBox : QListBox +{ +%TypeHeaderCode +#include +%End + + +public: + KListBox (QWidget* /TransferThis/ = 0, const char* = 0, WFlags = 0); + +signals: + void executed (QListBoxItem*); + void executed (QListBoxItem*, const QPoint&); + void doubleClicked (QListBoxItem*, const QPoint&); + +protected slots: + void slotOnItem (QListBoxItem*); + void slotOnViewport (); + void slotSettingsChanged (int); + void slotAutoSelect (); + +protected: + void emitExecute (QListBoxItem*, const QPoint&); + virtual void keyPressEvent (QKeyEvent*); + virtual void focusOutEvent (QFocusEvent*); + virtual void leaveEvent (QEvent*); + virtual void contentsMousePressEvent (QMouseEvent*); + virtual void contentsMouseDoubleClickEvent (QMouseEvent*); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KListBox + diff --git a/sip/kdeui/klistview.sip b/sip/kdeui/klistview.sip new file mode 100644 index 0000000..4eb3dbe --- /dev/null +++ b/sip/kdeui/klistview.sip @@ -0,0 +1,336 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KListView : QListView +{ +%TypeHeaderCode +#include +%End + + +public: + + enum SelectionModeExt + { + Single, + Multi, + Extended, + NoSelection, + FileManager + }; + + KListView (QWidget* /TransferThis/ = 0, const char* = 0); + virtual void setAcceptDrops (bool); + virtual bool isExecuteArea (const QPoint&); + bool isExecuteArea (int); + QPtrList selectedItems () const; + +%If ( KDE_3_4_0 - ) + QPtrList selectedItems (bool) const; +%End + + void moveItem (QListViewItem*, QListViewItem* /Transfer/, QListViewItem*); + QListViewItem* lastItem () const; + QListViewItem* lastChild () const; + +%If ( KDE_3_1_0 - ) + KLineEdit* renameLineEdit () const; +%End + + bool itemsMovable () const; + bool itemsRenameable () const; + bool dragEnabled () const; + bool autoOpen () const; + bool isRenameable (int) const; + bool dropVisualizer () const; + int tooltipColumn () const; + bool createChildren () const; + bool dropHighlighter () const; + int dropVisualizerWidth () const; + SelectionModeExt selectionModeExt () const; + int itemIndex (const QListViewItem*) const; + QListViewItem* itemAtIndex (int); + void setFullWidth (); + void setFullWidth (bool); + bool fullWidth () const; + +%If ( KDE_3_0_1 - ) + virtual int addColumn (const QString&, int = -1); + virtual int addColumn (const QIconSet&, const QString&, int = -1); + virtual void removeColumn (int); +%End + + void setAlternateBackground (const QColor&); + const QColor& alternateBackground () const; + void saveLayout (KConfig*, const QString&) const; + void restoreLayout (KConfig*, const QString&); + virtual void setSorting (int, bool = 1); + int columnSorted () const; + bool ascendingSort () const; + +%If ( KDE_3_2_0 - ) + virtual void takeItem (QListViewItem*); + +%If ( KDE_3_4_0 - ) + void setShadeSortColumn (bool); + bool shadeSortColumn () const; +%End + +%End + + +signals: + void executed (QListViewItem*); + void executed (QListViewItem*, const QPoint&, int); + void dropped (QDropEvent*, QListViewItem*); + void dropped (KListView*, QDropEvent*, QListViewItem*); + void dropped (KListView*, QDropEvent*, QListViewItem* /Transfer/, QListViewItem*); + void dropped (QDropEvent*, QListViewItem* /Transfer/, QListViewItem*); + void moved (); + void aboutToMove (); + void moved (QListViewItem*, QListViewItem*, QListViewItem*); + void moved (QPtrList&, QPtrList&, QPtrList&); + void itemRenamed (QListViewItem*, const QString&, int); + void itemRenamed (QListViewItem*); + void menuShortCutPressed (KListView*, QListViewItem*); + void contextMenu (KListView*, QListViewItem*, const QPoint&); + +%If ( KDE_3_3_0 - ) + void itemAdded (QListViewItem*); + void itemRemoved (QListViewItem*); +%End + + +public slots: + virtual void rename (QListViewItem*, int); + void setRenameable (int, bool = 1); + virtual void setItemsMovable (bool); + virtual void setItemsRenameable (bool); + virtual void setDragEnabled (bool); + virtual void setAutoOpen (bool); + virtual void setDropVisualizer (bool); + void setDropVisualizerWidth (int); + virtual void setTooltipColumn (int); + virtual void setDropHighlighter (bool); + virtual void setCreateChildren (bool); + void setSelectionModeExt (KListView::SelectionModeExt); + +%If ( KDE_3_1_0 - ) + void setTabOrderedRenaming (bool); + bool tabOrderedRenaming () const; +%End + + +protected: + bool below (const QRect&, const QPoint&); + bool below (QListViewItem*, const QPoint&); + virtual bool event (QEvent*); + void emitExecute (QListViewItem*, const QPoint&, int); + virtual void focusInEvent (QFocusEvent*); + virtual void focusOutEvent (QFocusEvent*); + virtual void leaveEvent (QEvent*); + virtual QString tooltip (QListViewItem*, int) const; + virtual bool showTooltip (QListViewItem*, const QPoint&, int) const; + virtual void contentsDragMoveEvent (QDragMoveEvent*); + virtual void contentsMousePressEvent (QMouseEvent*); + virtual void contentsMouseMoveEvent (QMouseEvent*); + virtual void contentsMouseDoubleClickEvent (QMouseEvent*); + virtual void contentsDragLeaveEvent (QDragLeaveEvent*); + virtual void contentsMouseReleaseEvent (QMouseEvent*); + virtual void contentsDropEvent (QDropEvent*); + virtual void contentsDragEnterEvent (QDragEnterEvent*); +//ig virtual QDragObject* dragObject () const; + virtual bool acceptDrag (QDropEvent*) const; + virtual QRect drawDropVisualizer (QPainter*, QListViewItem* /Transfer/, QListViewItem*); + virtual QRect drawItemHighlighter (QPainter*, QListViewItem*); + virtual void startDrag (); + virtual void keyPressEvent (QKeyEvent*); + virtual void viewportPaintEvent (QPaintEvent*); + void activateAutomaticSelection (); + void deactivateAutomaticSelection (); + bool automaticSelection () const; + virtual void viewportResizeEvent (QResizeEvent*); + +%If ( KDE_3_2_0 - ) + void disableAutoSelection (); + void resetAutoSelection (); + +%If ( KDE_3_3_0 - ) + void doubleClicked (QListViewItem*, const QPoint&, int); +%End + +%End + + +protected slots: + void slotSettingsChanged (int); + void slotMouseButtonClicked (int, QListViewItem*, const QPoint&, int); + void doneEditing (QListViewItem*, int); + void cleanDropVisualizer (); + void cleanItemHighlighter (); + void emitContextMenu (QListViewItem*, const QPoint&, int); + void emitContextMenu (KListView*, QListViewItem*); + void slotOnItem (QListViewItem*); + void slotOnViewport (); + void slotAutoSelect (); + +%If ( KDE_3_2_0 - ) + void slotDragExpand (); +%End + + void slotHeaderChanged (); + +protected: + virtual void movableDropEvent (QListViewItem*, QListViewItem*); + virtual void findDrop (const QPoint&, QListViewItem*&, QListViewItem*&); + void fileManagerKeyPressEvent (QKeyEvent*); + int depthToPixels (int); + +protected: +//igx virtual void virtual_hook (int, void*); + +signals: + +%If ( - KDE_3_3_0 ) + void doubleClicked (QListViewItem*, const QPoint&, int); +%End + + +protected: +//force + virtual QDragObject* dragObject (); +//end + +}; // class KListView + + +class KListViewItem : QListViewItem +{ +%TypeHeaderCode +#include +%End + + +public: + KListViewItem (QListView* /TransferThis/); + KListViewItem (QListViewItem* /TransferThis/); + KListViewItem (QListView* /TransferThis/, QListViewItem*); + KListViewItem (QListViewItem* /TransferThis/, QListViewItem*); + KListViewItem (QListView* /TransferThis/, QString, QString = QString ::null , QString = QString ::null , QString = QString ::null , QString = QString ::null , QString = QString ::null , QString = QString ::null , QString = QString ::null ); + KListViewItem (QListViewItem* /TransferThis/, QString, QString = QString ::null , QString = QString ::null , QString = QString ::null , QString = QString ::null , QString = QString ::null , QString = QString ::null , QString = QString ::null ); + KListViewItem (QListView* /TransferThis/, QListViewItem*, QString, QString = QString ::null , QString = QString ::null , QString = QString ::null , QString = QString ::null , QString = QString ::null , QString = QString ::null , QString = QString ::null ); + KListViewItem (QListViewItem* /TransferThis/, QListViewItem*, QString, QString = QString ::null , QString = QString ::null , QString = QString ::null , QString = QString ::null , QString = QString ::null , QString = QString ::null , QString = QString ::null ); + +%If ( KDE_3_3_0 - ) + virtual void insertItem (QListViewItem*); + virtual void takeItem (QListViewItem*); +%End + + bool isAlternate (); + const QColor& backgroundColor (); + +%If ( KDE_3_4_0 - ) + QColor backgroundColor (int); +%End + + virtual void paintCell (QPainter*, const QColorGroup&, int, int, int); + +}; // class KListViewItem + + + +%MappedType QPtrList +//converts a Python list of QListViewItem +{ +%TypeHeaderCode +#include +#include +typedef QPtrList ListViewItems; +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New (0); + + PyObject *pylist; + + // Create the list + + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + // Get it. + + QPtrList *cpplist = (QPtrList *)sipCpp; + QListViewItem *cpp; + PyObject *inst; + + // the loop depends on the type of iterator the template makes available + for(cpp = cpplist->first (); cpp != 0; cpp = cpplist->next () ) + { + if (((inst = sipConvertFromInstance (cpp, sipClass_QListViewItem, sipTransferObj)) == NULL) + || PyList_Append (pylist, inst) < 0) + { + Py_DECREF (pylist); + return NULL; + } + } + + return pylist; +%End + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QPtrList *cpplist = new QPtrList; + + PyObject *elem; + QListViewItem *cpp; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + cpp = (QListViewItem *)sipForceConvertToType(elem, sipType_QListViewItem, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + *sipIsErr = 1; + delete cpplist; + return 0; + } + + cpplist->append (cpp); + } + + *sipCppPtr = cpplist; + + return 1; +%End +}; + + diff --git a/sip/kdeui/klistviewlineedit.sip b/sip/kdeui/klistviewlineedit.sip new file mode 100644 index 0000000..6ac62ad --- /dev/null +++ b/sip/kdeui/klistviewlineedit.sip @@ -0,0 +1,51 @@ +// +// Copyright 2003 Jim Bublitz +// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE_3_1_1 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KListViewLineEdit : KLineEdit +{ +%TypeHeaderCode +#include +%End + + +public: + KListViewLineEdit (KListView*/TransferThis/); + +signals: + void done (QListViewItem*, int); + +public slots: + void terminate (); + void load (QListViewItem*, int); + +protected: + virtual void focusOutEvent (QFocusEvent*); + virtual void keyPressEvent (QKeyEvent*); + virtual void paintEvent (QPaintEvent*); + void terminate (bool); + +}; // class KListViewLineEdit + diff --git a/sip/kdeui/klistviewsearchline.sip b/sip/kdeui/klistviewsearchline.sip new file mode 100644 index 0000000..9f5da7d --- /dev/null +++ b/sip/kdeui/klistviewsearchline.sip @@ -0,0 +1,84 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_3_0 - ) + +class KListViewSearchLine : KLineEdit +{ +%TypeHeaderCode +#include +%End + + +public: + KListViewSearchLine (QWidget* /TransferThis/ = 0, KListView* = 0, const char* = 0); + KListViewSearchLine (QWidget* /TransferThis/, const char*); + bool caseSensitive () const; + QValueList searchColumns () const; + bool keepParentsVisible () const; + KListView* listView () const; + +public slots: + virtual void updateSearch (const QString& = QString ::null ); + void setCaseSensitive (bool); + void setKeepParentsVisible (bool); + void setSearchColumns (const QValueList&); + void setListView (KListView*); + +protected: + virtual bool itemMatches (const QListViewItem*, const QString&) const; + virtual QPopupMenu* createPopupMenu (); + +protected slots: + void queueSearch (const QString&); + void activateSearch (); + +}; // class KListViewSearchLine + +%End + + +%If ( KDE_3_4_0 - ) + +class KListViewSearchLineWidget : QHBox +{ +%TypeHeaderCode +#include +%End + + +public: + KListViewSearchLineWidget (KListView* = 0, QWidget* /TransferThis/ = 0, const char* = 0); + virtual KListViewSearchLine* createSearchLine (KListView*); + KListViewSearchLine* searchLine () const; + +protected slots: + virtual void createWidgets (); + +}; // class KListViewSearchLineWidget + +%End + diff --git a/sip/kdeui/kmainwindow.sip b/sip/kdeui/kmainwindow.sip new file mode 100644 index 0000000..208ab8e --- /dev/null +++ b/sip/kdeui/kmainwindow.sip @@ -0,0 +1,273 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KMainWindow : QMainWindow, KXMLGUIBuilder, KXMLGUIClient +{ +%TypeHeaderCode +#include +%End + + +public: + KMainWindow (QWidget* /TransferThis/ = 0, const char* = 0, WFlags = WType_TopLevel |WDestructiveClose ); + +%If ( KDE_3_2_0 - ) + + enum CreationFlags + { + NoDCOPObject + }; + + KMainWindow (int, QWidget* /TransferThis/ = 0, const char* = 0, WFlags = WType_TopLevel |WDestructiveClose ); +%End + + KPopupMenu* helpMenu (const QString& = QString ::null , bool = 1); + KPopupMenu* customHelpMenu (bool = 1); + static bool canBeRestored (int); + static const QString classNameOfToplevel (int); + +%If ( KDE_3_2_0 - ) + virtual void show (); + virtual void hide (); +%End + + bool restore (int, bool = 1); + virtual KXMLGUIFactory* guiFactory (); + void createGUI (const QString& = QString ::null , bool = 1); + void setHelpMenuEnabled (bool = 1); + bool isHelpMenuEnabled (); + +%If ( KDE_3_1_0 - ) + bool hasMenuBar (); +%End + + KMenuBar* menuBar (); + KStatusBar* statusBar (); + QPtrList* memberList; + +%If ( KDE_3_4_0 - ) + static QPtrList* getMemberList (); +%End + + KToolBar* toolBar (const char* = 0); +//ig QPtrListIterator toolBarIterator (); + KAccel* accel (); + void setFrameBorderWidth (int); + void setAutoSaveSettings (const QString& = QString ::fromLatin1 ("MainWindow" ), bool = 1); + void resetAutoSaveSettings (); + +%If ( KDE_3_1_0 - ) + bool autoSaveSettings () const; + QString autoSaveGroup () const; + +%If ( KDE_3_3_0 - ) + void applyMainWindowSettings (KConfig*, const QString&, bool); +%End + +%End + + void applyMainWindowSettings (KConfig*, const QString& = QString ::null ); + void saveMainWindowSettings (KConfig*, const QString& = QString ::null ); + +%If ( KDE_3_1_0 - ) + void setStandardToolBarMenuEnabled (bool); + bool isStandardToolBarMenuEnabled () const; + +%If ( KDE_3_2_0 - ) + void createStandardStatusBarAction (); + +%If ( KDE_3_3_0 - ) + + enum StandardWindowOptions + { + ToolBar, + Keys, + StatusBar, + Save, + Create + }; + + void setupGUI (int = ToolBar |Keys |StatusBar |Save |Create , const QString& = QString ::null ); + +%If ( KDE_3_5_0 - ) + void setupGUI (QSize, int = ToolBar |Keys |StatusBar |Save |Create , const QString& = QString ::null ); +%End + +%End + +%End + + KAction* toolBarMenuAction (); + +%If ( KDE_3_3_1 - ) + void setupToolbarMenuActions (); +%End + + virtual void finalizeGUI (KXMLGUIClient*); +%End + + void finalizeGUI (bool); + bool initialGeometrySet () const; + +%If ( KDE_3_2_0 - ) + void ignoreInitialGeometry (); +%End + + QSize sizeForCentralWidgetSize (QSize); + +%If ( KDE_3_3_2 - ) + virtual void setIcon (const QPixmap&); +%End + + +public slots: + +%If ( KDE_3_3_0 - ) + int configureToolbars (); +%End + + virtual void setCaption (const QString&); + virtual void setCaption (const QString&, bool); + virtual void setPlainCaption (const QString&); + void appHelpActivated (); + virtual void slotStateChanged (const QString&); + +%If ( KDE_3_1_0 - ) + void slotStateChanged (const QString&, KXMLGUIClient::ReverseStateChange); +%End + + void setSettingsDirty (); + +protected: + void paintEvent (QPaintEvent*); + void childEvent (QChildEvent*); + void resizeEvent (QResizeEvent*); + virtual void closeEvent (QCloseEvent*); + virtual bool queryExit (); + virtual bool queryClose (); + virtual void saveProperties (KConfig*); + virtual void readProperties (KConfig*); + virtual void saveGlobalProperties (KConfig*); + virtual void readGlobalProperties (KConfig*); + void savePropertiesInternal (KConfig*, int); + bool readPropertiesInternal (KConfig*, int); + bool settingsDirty () const; + QString settingsGroup () const; + void saveWindowSize (KConfig*) const; + void restoreWindowSize (KConfig*); + void parseGeometry (bool); + +protected slots: + +%If ( KDE_3_3_0 - ) + void saveNewToolbarConfig (); +%End + + virtual void showAboutApplication (); + +%If ( KDE_3_2_0 - ) + void saveAutoSaveSettings (); +%End + + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KMainWindow + + + +%MappedType QPtrList +//converts a Python list of KMainWindow +{ +%TypeHeaderCode +#include +#include +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New (0); + + PyObject *pylist; + + // Create the list + + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + // Get it. + + QPtrList *cpplist = (QPtrList *)sipCpp; + KMainWindow *cpp; + PyObject *inst; + + // the loop depends on the type of iterator the tmeplate makes available + for(cpp = cpplist->first (); cpp != 0; cpp = cpplist->next () ) + { + if (((inst = sipConvertFromInstance (cpp, sipClass_KMainWindow, sipTransferObj)) == NULL) + || PyList_Append (pylist, inst) < 0) + { + Py_DECREF (pylist); + return NULL; + } + } + + return pylist; +%End + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QPtrList *cpplist = new QPtrList; + + PyObject *elem; + KMainWindow *cpp; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + cpp = (KMainWindow *)sipForceConvertToType(elem, sipType_KMainWindow, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + *sipIsErr = 1; + delete cpplist; + return 0; + } + + cpplist->append (cpp); + } + + *sipCppPtr = cpplist; + + return 1; +%End +}; + + diff --git a/sip/kdeui/kmainwindowiface.sip b/sip/kdeui/kmainwindowiface.sip new file mode 100644 index 0000000..fd9326b --- /dev/null +++ b/sip/kdeui/kmainwindowiface.sip @@ -0,0 +1,71 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KMainWindowInterface : DCOPObject +{ +%TypeHeaderCode +#include +%End + + +public: + +%If ( KDE_3_1_4 - ) + virtual bool process (const QCString&, const QByteArray&, QCString&, QByteArray&); + QCStringList functions (); + QCStringList interfaces (); +%End + + +public: + KMainWindowInterface (KMainWindow*); + QCStringList functionsDynamic (); + bool processDynamic (const QCString&, const QByteArray&, QCString&, QByteArray&); + +public: + QCStringList actions (); + bool activateAction (QCString); + bool disableAction (QCString); + bool enableAction (QCString); + bool actionIsEnabled (QCString); + QCString actionToolTip (QCString); + DCOPRef action (const QCString&); + QMap actionMap (); + int getWinID (); + void grabWindowToClipBoard (); + void hide (); + void maximize (); + void minimize (); + void resize (int, int); + void move (int, int); + void setGeometry (int, int, int, int); + void raise () /PyName=raise_/; + void lower (); + void restore (); + void show (); + +}; // class KMainWindowInterface + diff --git a/sip/kdeui/kmenubar.sip b/sip/kdeui/kmenubar.sip new file mode 100644 index 0000000..b455a74 --- /dev/null +++ b/sip/kdeui/kmenubar.sip @@ -0,0 +1,91 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KMenuBar : QMenuBar +{ +%TypeHeaderCode +#include +%End + + +public: + KMenuBar (QWidget* /TransferThis/ = 0, const char* = 0); + void setTopLevelMenu (bool = 1); + bool isTopLevelMenu () const; + +%If ( KDE_3_1_0 - ) + virtual void setGeometry (const QRect&); +%End + + virtual void setGeometry (int, int, int, int); + +%If ( KDE_3_2_0 - ) + virtual void resize (int, int); + void resize (const QSize&); +%End + + virtual void show (); + +%If ( KDE_3_2_0 - ) + virtual void setFrameStyle (int); + virtual void setLineWidth (int); + virtual void setMargin (int); + +%If ( KDE_3_4_0 - ) + virtual QSize sizeHint () const; +%End + +%End + + +protected slots: + void slotReadConfig (); + +protected: + +%If ( KDE_3_1_0 - ) + virtual void showEvent (QShowEvent*); + virtual void resizeEvent (QResizeEvent*); + virtual bool eventFilter (QObject*, QEvent*); +//ig virtual bool x11Event (XEvent*); + +%If ( KDE_3_2_3 - ) + virtual void closeEvent (QCloseEvent*); + +%If ( KDE_3_3_0 - ) + virtual void drawContents (QPainter*); +%End + +%End + +%End + + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KMenuBar + diff --git a/sip/kdeui/kmessagebox.sip b/sip/kdeui/kmessagebox.sip new file mode 100644 index 0000000..597137b --- /dev/null +++ b/sip/kdeui/kmessagebox.sip @@ -0,0 +1,260 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KMessageBox +{ +%TypeHeaderCode +#include +%End + + +public: + + enum ButtonCode + { + Ok, + Cancel, + Yes, + No, + Continue + }; + + + enum DialogType + { + QuestionYesNo, + WarningYesNo, + WarningContinueCancel, + WarningYesNoCancel, + Information, + Sorry, + Error, + QuestionYesNoCancel + }; + + +%If ( KDE_3_4_0 - ) + + enum OptionsType + { + Notify, + AllowLink, + Dangerous, + PlainCaption, + NoExec + }; + +%End + + static int questionYesNo (QWidget* /Transfer/, const QString&, const QString& = QString ::null , const KGuiItem& = KStdGuiItem ::yes (), const KGuiItem& = KStdGuiItem ::no (), const QString& = QString ::null , int = Notify ); + +%If ( KDE_3_2_0 - ) + static int questionYesNoWId (WId, const QString&, const QString& = QString ::null , const KGuiItem& = KStdGuiItem ::yes (), const KGuiItem& = KStdGuiItem ::no (), const QString& = QString ::null , int = Notify ); +%End + + static int questionYesNoCancel (QWidget* /Transfer/, const QString&, const QString& = QString ::null , const KGuiItem& = KStdGuiItem ::yes (), const KGuiItem& = KStdGuiItem ::no (), const QString& = QString ::null , int = Notify ); + +%If ( KDE_3_2_0 - ) + static int questionYesNoCancelWId (WId, const QString&, const QString& = QString ::null , const KGuiItem& = KStdGuiItem ::yes (), const KGuiItem& = KStdGuiItem ::no (), const QString& = QString ::null , int = Notify ); +%End + + static int questionYesNoList (QWidget* /Transfer/, const QString&, const QStringList&, const QString& = QString ::null , const KGuiItem& = KStdGuiItem ::yes (), const KGuiItem& = KStdGuiItem ::no (), const QString& = QString ::null , int = Notify ); + +%If ( KDE_3_2_0 - ) + static int questionYesNoListWId (WId, const QString&, const QStringList&, const QString& = QString ::null , const KGuiItem& = KStdGuiItem ::yes (), const KGuiItem& = KStdGuiItem ::no (), const QString& = QString ::null , int = Notify ); +%End + + static int warningYesNo (QWidget* /Transfer/, const QString&, const QString& = QString ::null , const KGuiItem& = KStdGuiItem ::yes (), const KGuiItem& = KStdGuiItem ::no (), const QString& = QString ::null , int = Notify ); + +%If ( KDE_3_2_0 - ) + static int warningYesNoWId (WId, const QString&, const QString& = QString ::null , const KGuiItem& = KStdGuiItem ::yes (), const KGuiItem& = KStdGuiItem ::no (), const QString& = QString ::null , int = Notify |Dangerous ); + static int warningYesNoList (QWidget* /Transfer/, const QString&, const QStringList&, const QString& = QString ::null , const KGuiItem& = KStdGuiItem ::yes (), const KGuiItem& = KStdGuiItem ::no (), const QString& = QString ::null , int = Notify |Dangerous ); + static int warningYesNoListWId (WId, const QString&, const QStringList&, const QString& = QString ::null , const KGuiItem& = KStdGuiItem ::yes (), const KGuiItem& = KStdGuiItem ::no (), const QString& = QString ::null , int = Notify |Dangerous ); +%End + + static int warningContinueCancel (QWidget* /Transfer/, const QString&, const QString& = QString ::null , const KGuiItem& = KStdGuiItem ::cont (), const QString& = QString ::null , int = Notify ); + +%If ( KDE_3_2_0 - ) + static int warningContinueCancelWId (WId, const QString&, const QString& = QString ::null , const KGuiItem& = KStdGuiItem ::cont (), const QString& = QString ::null , int = Notify ); +%End + + +%If ( KDE_3_1_0 - ) + static int warningContinueCancelList (QWidget* /Transfer/, const QString&, const QStringList&, const QString& = QString ::null , const KGuiItem& = KStdGuiItem ::cont (), const QString& = QString ::null , int = Notify ); + +%If ( KDE_3_2_0 - ) + static int warningContinueCancelListWId (WId, const QString&, const QStringList&, const QString& = QString ::null , const KGuiItem& = KStdGuiItem ::cont (), const QString& = QString ::null , int = Notify ); +%End + +%End + + static int warningYesNoCancel (QWidget* /Transfer/, const QString&, const QString& = QString ::null , const KGuiItem& = KStdGuiItem ::yes (), const KGuiItem& = KStdGuiItem ::no (), const QString& = QString ::null , int = Notify ); + +%If ( KDE_3_2_0 - ) + static int warningYesNoCancelWId (WId, const QString&, const QString& = QString ::null , const KGuiItem& = KStdGuiItem ::yes (), const KGuiItem& = KStdGuiItem ::no (), const QString& = QString ::null , int = Notify ); + static int warningYesNoCancelList (QWidget* /Transfer/, const QString&, const QStringList&, const QString& = QString ::null , const KGuiItem& = KStdGuiItem ::yes (), const KGuiItem& = KStdGuiItem ::no (), const QString& = QString ::null , int = Notify ); + static int warningYesNoCancelListWId (WId, const QString&, const QStringList&, const QString& = QString ::null , const KGuiItem& = KStdGuiItem ::yes (), const KGuiItem& = KStdGuiItem ::no (), const QString& = QString ::null , int = Notify ); +%End + + static void error (QWidget* /Transfer/, const QString&, const QString& = QString ::null , bool = 1); + +%If ( KDE_3_2_0 - ) + static void errorWId (WId, const QString&, const QString& = QString ::null , int = Notify ); + +%If ( KDE_3_4_0 - ) + static void errorList (QWidget* /Transfer/, const QString&, const QStringList&, const QString& = QString ::null , int = Notify ); + static void errorListWId (WId, const QString&, const QStringList&, const QString& = QString ::null , int = Notify ); +%End + +%End + + static void detailedError (QWidget* /Transfer/, const QString&, const QString&, const QString& = QString ::null , bool = 1); + +%If ( KDE_3_2_0 - ) + static void detailedErrorWId (WId, const QString&, const QString&, const QString& = QString ::null , int = Notify ); +%End + + static void queuedDetailedError (QWidget* /Transfer/, const QString&, const QString&, const QString& = QString ::null ); + +%If ( KDE_3_2_0 - ) + static void queuedDetailedErrorWId (WId, const QString&, const QString&, const QString& = QString ::null ); +%End + + static void sorry (QWidget* /Transfer/, const QString&, const QString& = QString ::null , bool = 1); + +%If ( KDE_3_2_0 - ) + static void sorryWId (WId, const QString&, const QString& = QString ::null , int = Notify ); +%End + + static void detailedSorry (QWidget* /Transfer/, const QString&, const QString&, const QString& = QString ::null , bool = 1); + +%If ( KDE_3_2_0 - ) + static void detailedSorryWId (WId, const QString&, const QString&, const QString& = QString ::null , int = Notify ); +%End + + static void information (QWidget* /Transfer/, const QString&, const QString& = QString ::null , const QString& = QString ::null , bool = 1); + +%If ( KDE_3_2_0 - ) + static void informationWId (WId, const QString&, const QString& = QString ::null , const QString& = QString ::null , int = Notify ); +%End + + +%If ( KDE_3_1_0 - ) + static void informationList (QWidget* /Transfer/, const QString&, const QStringList&, const QString& = QString ::null , const QString& = QString ::null , int = Notify ); + +%If ( KDE_3_2_0 - ) + static void informationListWId (WId, const QString&, const QStringList&, const QString& = QString ::null , const QString& = QString ::null , int = Notify ); +%End + +%End + + static void enableAllMessages (); + +%If ( KDE_3_2_0 - ) + static void enableMessage (const QString&); +%End + + static void about (QWidget* /Transfer/, const QString&, const QString& = QString ::null , bool = 1); + +%If ( KDE_3_2_0 - ) + static int messageBox (QWidget* /Transfer/, KMessageBox::DialogType, const QString&, const QString&, const KGuiItem&, const KGuiItem&, const QString&, int = Notify ); +%End + + static int messageBox (QWidget* /Transfer/, KMessageBox::DialogType, const QString&, const QString& = QString ::null , const KGuiItem& = KStdGuiItem ::yes (), const KGuiItem& = KStdGuiItem ::no (), int = Notify ); + +%If ( KDE_3_2_0 - ) + static int messageBoxWId (WId, KMessageBox::DialogType, const QString&, const QString& = QString ::null , const KGuiItem& = KStdGuiItem ::yes (), const KGuiItem& = KStdGuiItem ::no (), const QString& = QString ::null , int = Notify ); +%End + + +%If ( KDE_3_1_0 - ) + static void queuedMessageBox (QWidget* /Transfer/, KMessageBox::DialogType, const QString&, const QString&, int); + +%If ( KDE_3_2_0 - ) + static void queuedMessageBoxWId (WId, KMessageBox::DialogType, const QString&, const QString&, int); +%End + +%End + + static void queuedMessageBox (QWidget* /Transfer/, KMessageBox::DialogType, const QString&, const QString& = QString ::null ); + +%If ( KDE_3_2_0 - ) + static void queuedMessageBoxWId (WId, KMessageBox::DialogType, const QString&, const QString& = QString ::null ); + static bool shouldBeShownYesNo (const QString&, KMessageBox::ButtonCode&); + static bool shouldBeShownContinue (const QString&); + static void saveDontShowAgainYesNo (const QString&, KMessageBox::ButtonCode); + static void saveDontShowAgainContinue (const QString&); + static void setDontShowAskAgainConfig (KConfig*); + +%If ( KDE_3_3_0 - ) + static int createKMessageBox (KDialogBase*, QMessageBox::Icon, const QString&, const QStringList&, const QString&, bool*, int, const QString& = QString ::null ); + static int createKMessageBox (KDialogBase*, QPixmap, const QString&, const QStringList&, const QString&, bool*, int, const QString& = QString ::null , QMessageBox::Icon = QMessageBox ::Information ); +%End + +%End + + +public: + +%If ( KDE_3_2_0 - KDE_3_4_0 ) + + enum OptionsType + { + Notify, + AllowLink, + Dangerous + }; + +%End + + +public: + +%If ( - KDE_3_2_0 ) + + enum OptionsType + { + Notify, + AllowLink + }; + +%End + + +public: + +%If ( - KDE_3_0_3 ) +//ig static int warningContinueCancelList (QWidget* /Transfer/, const QString&, const QStringList&, const QString& = QString ::null , const KGuiItem& = QString ::null , const QString& = QString ::null , int = Notify ); +%End + + +%If ( KDE_3_0_3 - KDE_3_1_0 ) + static int warningContinueCancelList (QWidget* /Transfer/, const QString&, const QStringList&, const QString& = QString ::null , const KGuiItem& = KGuiItem (), const QString& = QString ::null , int = Notify ); +%End + + +}; // class KMessageBox + diff --git a/sip/kdeui/knuminput.sip b/sip/kdeui/knuminput.sip new file mode 100644 index 0000000..cdcf8a7 --- /dev/null +++ b/sip/kdeui/knuminput.sip @@ -0,0 +1,261 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KNumInput : QWidget +{ +%TypeHeaderCode +#include +%End + + +public: + KNumInput (QWidget* /TransferThis/ = 0, const char* = 0); + KNumInput (KNumInput*, QWidget* /TransferThis/ = 0, const char* = 0); + virtual void setLabel (const QString&, int = AlignLeft |AlignTop ); + QString label () const; + +%If ( KDE_3_1_0 - ) + bool showSlider () const; +%End + + void setSteps (int, int); + QSizePolicy sizePolicy () const; + virtual QSize sizeHint () const; + +protected: + void layout (bool); + virtual void doLayout () = 0; + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KNumInput + + +class KIntNumInput : KNumInput +{ +%TypeHeaderCode +#include +%End + + +public: + KIntNumInput (QWidget* /TransferThis/ = 0, const char* = 0); + KIntNumInput (int, QWidget* /TransferThis/ = 0, int = 10, const char* = 0); + KIntNumInput (KNumInput*, int, QWidget* /TransferThis/ = 0, int = 10, const char* = 0); + int value () const; + +%If ( KDE_3_1_0 - ) + double relativeValue () const; + int referencePoint () const; +%End + + QString suffix () const; + QString prefix () const; + QString specialValueText () const; + void setRange (int, int, int = 1, bool = 1); + void setMinValue (int); + int minValue () const; + void setMaxValue (int); + int maxValue () const; + void setSpecialValueText (const QString&); + virtual void setLabel (const QString&, int = AlignLeft |AlignTop ); + virtual QSize minimumSizeHint () const; + +public slots: + void setValue (int); + +%If ( KDE_3_1_0 - ) + void setRelativeValue (double); + void setReferencePoint (int); +%End + + void setSuffix (const QString&); + void setPrefix (const QString&); + void setEditFocus (bool = 1); + +signals: + void valueChanged (int); + +%If ( KDE_3_1_0 - ) + void relativeValueChanged (double); +%End + + +protected: + virtual void doLayout (); + void resizeEvent (QResizeEvent*); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KIntNumInput + + +class KDoubleNumInput : KNumInput +{ +%TypeHeaderCode +#include +%End + + +public: + KDoubleNumInput (QWidget* /TransferThis/ = 0, const char* = 0); + KDoubleNumInput (double, QWidget* /TransferThis/ = 0, const char* = 0); + +%If ( KDE_3_1_0 - ) + KDoubleNumInput (double, double, double, double = 0.01, int = 2, QWidget* /TransferThis/ = 0, const char* = 0); +%End + + KDoubleNumInput (KNumInput*, double, QWidget* /TransferThis/ = 0, const char* = 0); + +%If ( KDE_3_1_0 - ) + KDoubleNumInput (KNumInput*, double, double, double, double = 0.02, int = 2, QWidget* /TransferThis/ = 0, const char* = 0); +%End + + double value () const; + QString suffix () const; + QString prefix () const; + int precision () const; + QString specialValueText () const; + void setRange (double, double, double = 1, bool = 1); + void setMinValue (double); + double minValue () const; + void setMaxValue (double); + double maxValue () const; + void setPrecision (int); + +%If ( KDE_3_1_0 - ) + double referencePoint () const; + double relativeValue () const; +%End + + void setSpecialValueText (const QString&); + virtual void setLabel (const QString&, int = AlignLeft |AlignTop ); + virtual QSize minimumSizeHint () const; + virtual bool eventFilter (QObject*, QEvent*); + +public slots: + void setValue (double); + +%If ( KDE_3_1_0 - ) + void setRelativeValue (double); + void setReferencePoint (double); +%End + + void setSuffix (const QString&); + void setPrefix (const QString&); + +signals: + void valueChanged (double); + +%If ( KDE_3_1_0 - ) + void relativeValueChanged (double); +%End + + +protected: + virtual void doLayout (); + void resizeEvent (QResizeEvent*); + virtual void resetEditBox (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KDoubleNumInput + + +class KIntSpinBox : QSpinBox +{ +%TypeHeaderCode +#include +%End + + +public: + KIntSpinBox (QWidget* /TransferThis/ = 0, const char* = 0); + KIntSpinBox (int, int, int, int, int = 10, QWidget* /TransferThis/ = 0, const char* = 0); + void setBase (int); + int base () const; + void setEditFocus (bool); + +protected: + virtual QString mapValueToText (int); +//ig virtual int mapTextToValue (bool*); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KIntSpinBox + + +%If ( KDE_3_1_0 - ) + +class KDoubleSpinBox : QSpinBox +{ +%TypeHeaderCode +#include +%End + + +public: + KDoubleSpinBox (QWidget* /TransferThis/ = 0, const char* = 0); + KDoubleSpinBox (double, double, double, double, int = 2, QWidget* /TransferThis/ = 0, const char* = 0); + bool acceptLocalizedNumbers () const; + virtual void setAcceptLocalizedNumbers (bool); + void setRange (double, double, double = 0.01, int = 2); + int precision () const; + void setPrecision (int); + virtual void setPrecision (int, bool); + double value () const; + double minValue () const; + void setMinValue (double); + double maxValue () const; + void setMaxValue (double); + double lineStep () const; + void setLineStep (double); + void setValidator (const QValidator*); + +signals: + void valueChanged (double); + +public slots: + virtual void setValue (double); + +protected: + virtual QString mapValueToText (int); +//ig virtual int mapTextToValue (bool*); + +protected slots: + void slotValueChanged (int); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KDoubleSpinBox + +%End + diff --git a/sip/kdeui/knumvalidator.sip b/sip/kdeui/knumvalidator.sip new file mode 100644 index 0000000..f72f338 --- /dev/null +++ b/sip/kdeui/knumvalidator.sip @@ -0,0 +1,89 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KIntValidator : QValidator +{ +%TypeHeaderCode +#include +%End + + +public: + KIntValidator (QWidget* /TransferThis/, int = 10, const char* = 0); + KIntValidator (int, int, QWidget* /TransferThis/, int = 10, const char* = 0); + virtual State validate (QString&, int&) const; + virtual void fixup (QString&) const; + virtual void setRange (int, int); + virtual void setBase (int); + virtual int bottom () const; + virtual int top () const; + virtual int base () const; + +}; // class KIntValidator + + +class KFloatValidator : QValidator +{ +%TypeHeaderCode +#include +%End + + +public: + KFloatValidator (QWidget* /TransferThis/, const char* = 0); + KFloatValidator (double, double, QWidget* /TransferThis/, const char* = 0); + KFloatValidator (double, double, bool, QWidget* /TransferThis/, const char* = 0); + virtual State validate (QString&, int&) const; + virtual void fixup (QString&) const; + virtual void setRange (double, double); + virtual double bottom () const; + virtual double top () const; + void setAcceptLocalizedNumbers (bool); + bool acceptLocalizedNumbers () const; + +}; // class KFloatValidator + + +%If ( KDE_3_1_0 - ) + +class KDoubleValidator : QDoubleValidator +{ +%TypeHeaderCode +#include +%End + + +public: + KDoubleValidator (QObject* /TransferThis/, const char* = 0); + KDoubleValidator (double, double, int, QObject* /TransferThis/, const char* = 0); + virtual QValidator::State validate (QString&, int&) const; + bool acceptLocalizedNumbers () const; + void setAcceptLocalizedNumbers (bool); + +}; // class KDoubleValidator + +%End + diff --git a/sip/kdeui/kpanelapplet.sip b/sip/kdeui/kpanelapplet.sip new file mode 100644 index 0000000..c689b77 --- /dev/null +++ b/sip/kdeui/kpanelapplet.sip @@ -0,0 +1,140 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KPanelApplet : QFrame +{ +%TypeHeaderCode +#include +%End + + +public: + + enum Type + { + Normal, + Stretch + }; + + + enum Action + { + About, + Help, + Preferences, + ReportBug + }; + + + enum Position + { + pLeft, + pRight, + pTop, + pBottom + }; + + + enum Alignment + { + LeftTop, + Center, + RightBottom + }; + + + enum Direction + { + Up, + Down, + Left, + Right + }; + + KPanelApplet (const QString&, KPanelApplet::Type = Normal , int = 0, QWidget* /TransferThis/ = 0, const char* = 0, WFlags = 0); + virtual int widthForHeight (int) const; + virtual int heightForWidth (int) const; + KConfig* config () const; + +%If ( KDE_3_2_0 - ) + KSharedConfig::Ptr sharedConfig () const; +%End + + Type type () const; + int actions () const; + virtual void action (KPanelApplet::Action); + +%If ( KDE_3_2_0 - ) + const QPopupMenu* customMenu () const; +%End + + void setPosition (KPanelApplet::Position); + void setAlignment (KPanelApplet::Alignment); + +signals: + void updateLayout (); + void requestFocus (); + +%If ( KDE_3_4_0 - ) + void requestFocus (bool); +%End + + +protected: + virtual void about (); + virtual void help (); + virtual void preferences (); + virtual void reportBug (); + Orientation orientation () const; + KPanelApplet::Position position () const; + KPanelApplet::Alignment alignment () const; + virtual void positionChange (KPanelApplet::Position); + virtual void alignmentChange (KPanelApplet::Alignment); + +%If ( KDE_3_2_0 - ) + void setCustomMenu (const QPopupMenu*); + +%If ( KDE_3_4_0 - ) + void watchForFocus (QWidget*, bool = 1); + void needsFocus (bool); +%End + +%End + + virtual void orientationChange (Orientation); + Direction popupDirection (); + virtual void popupDirectionChange (KPanelApplet::Direction); + +%If ( KDE_3_4_0 - ) + bool eventFilter (QObject*, QEvent*); +%End + + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KPanelApplet + diff --git a/sip/kdeui/kpanelappmenu.sip b/sip/kdeui/kpanelappmenu.sip new file mode 100644 index 0000000..82fea92 --- /dev/null +++ b/sip/kdeui/kpanelappmenu.sip @@ -0,0 +1,51 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KPanelAppMenu : QObject, DCOPObject +{ +%TypeHeaderCode +#include +%End + + +public: + KPanelAppMenu (const QString&, QObject* /TransferThis/ = 0, const char* = 0); + KPanelAppMenu (const QPixmap&, const QString&, QObject* /TransferThis/, const char*); + KPanelAppMenu (QObject* /TransferThis/, const char*); + int insertItem (const QString&, int = -1); + int insertItem (const QPixmap&, const QString&, int = -1); + KPanelAppMenu* insertMenu (const QPixmap&, const QString&, int = -1); + void clear (); + bool process (const QCString&, const QByteArray&, QCString&, QByteArray&); + +signals: + void activated (int); + +protected: + void init (const QPixmap&, const QString&); + +}; // class KPanelAppMenu + diff --git a/sip/kdeui/kpanelextension.sip b/sip/kdeui/kpanelextension.sip new file mode 100644 index 0000000..c996fda --- /dev/null +++ b/sip/kdeui/kpanelextension.sip @@ -0,0 +1,159 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KPanelExtension : QFrame +{ +%TypeHeaderCode +#include +%End + + +public: + + enum Type + { + Normal, + Stretch + }; + + + enum Action + { + About, + Help, + Preferences, + ReportBug + }; + + +%If ( KDE_3_4_0 - ) + + enum Position + { + Left, + Right, + Top, + Bottom, + Floating + }; + +%End + + + enum Alignment + { + LeftTop, + Center, + RightBottom + }; + + +%If ( KDE_3_1_0 - ) + + enum Size + { + SizeTiny, + SizeSmall, + SizeNormal, + SizeLarge, + SizeCustom + }; + +%End + + KPanelExtension (const QString&, KPanelExtension::Type = Normal , int = 0, QWidget* /TransferThis/ = 0, const char* = 0); + virtual QSize sizeHint (KPanelExtension::Position, QSize) const; + KConfig* config () const; + Type type () const; + int actions () const; + virtual void action (KPanelExtension::Action); + virtual Position preferedPosition () const; + void setPosition (KPanelExtension::Position); + void setAlignment (KPanelExtension::Alignment); + +%If ( KDE_3_1_0 - ) + void setSize (KPanelExtension::Size, int); + KPanelExtension::Size sizeSetting () const; + int customSize () const; + +%If ( KDE_3_4_0 - ) + QPopupMenu* customMenu () const; + bool reserveStrut () const; +%End + +%End + + +signals: + void updateLayout (); + +%If ( KDE_3_4_0 - ) + void maintainFocus (bool); +%End + + +protected: + virtual void about (); + virtual void help (); + virtual void preferences (); + virtual void reportBug (); + Position position () const; + KPanelExtension::Alignment alignment () const; + Orientation orientation (); + +%If ( KDE_3_1_0 - ) + int sizeInPixels () const; +%End + + virtual void positionChange (KPanelExtension::Position); + virtual void alignmentChange (KPanelExtension::Alignment); + +%If ( KDE_3_4_0 - ) + void setCustomMenu (QPopupMenu*); + void setReserveStrut (bool); +%End + + +protected: +//igx virtual void virtual_hook (int, void*); + +public: + +%If ( - KDE_3_4_0 ) + + enum Position + { + Left, + Right, + Top, + Bottom + }; + +%End + + +}; // class KPanelExtension + diff --git a/sip/kdeui/kpanelmenu.sip b/sip/kdeui/kpanelmenu.sip new file mode 100644 index 0000000..41e9199 --- /dev/null +++ b/sip/kdeui/kpanelmenu.sip @@ -0,0 +1,65 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KPanelMenu : KPopupMenu +{ +%TypeHeaderCode +#include +%End + + +public: + KPanelMenu (QWidget* /TransferThis/ = 0, const char* = 0); + KPanelMenu (const QString&, QWidget* /TransferThis/ = 0, const char* = 0); + const QString& path () const; + void setPath (const QString&); + bool initialized () const; + void setInitialized (bool); + void disableAutoClear (); + +public slots: + void reinitialize (); + +%If ( KDE_3_1_0 - ) + void deinitialize (); +%End + + +protected slots: + virtual void slotAboutToShow (); + virtual void slotExec (int) = 0; + virtual void initialize () = 0; + void slotClear (); + +protected: + virtual void hideEvent (QHideEvent*); + void init (const QString& = QString ::null ); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KPanelMenu + diff --git a/sip/kdeui/kpassdlg.sip b/sip/kdeui/kpassdlg.sip new file mode 100644 index 0000000..e1532f5 --- /dev/null +++ b/sip/kdeui/kpassdlg.sip @@ -0,0 +1,138 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KPasswordEdit : QLineEdit +{ +%TypeHeaderCode +#include +%End + + +public: + + enum EchoModes + { + OneStar, + ThreeStars, + NoEcho + }; + + KPasswordEdit (QWidget* /TransferThis/ = 0, const char* = 0); + KPasswordEdit (EchoMode, QWidget* /TransferThis/, const char*); + +%If ( KDE_3_2_0 - ) + KPasswordEdit (KPasswordEdit::EchoModes, QWidget* /TransferThis/, const char*); +%End + + KPasswordEdit (QWidget* /TransferThis/, const char*, int); + const char* password (); + void erase (); +//ig const int PassLen; + +%If ( KDE_3_4_0 - ) + void setMaxPasswordLength (int); + int maxPasswordLength () const; +%End + + +public slots: + +%If ( KDE_3_1_2 - ) + virtual void insert (const QString&); +%End + + +protected: + virtual void keyPressEvent (QKeyEvent*); + virtual void focusInEvent (QFocusEvent*); + virtual bool event (QEvent*); + +}; // class KPasswordEdit + + +class KPasswordDialog : KDialogBase +{ +%TypeHeaderCode +#include +%End + + +public: + + enum Types + { + Password, + NewPassword + }; + + KPasswordDialog (KPasswordDialog::Types, bool, int, QWidget* /TransferThis/ = 0, const char* = 0); + KPasswordDialog (int, QString, bool = 0, int = 0); + +%If ( KDE_3_3_0 - ) + KPasswordDialog (KPasswordDialog::Types, bool, int, const QString&, QWidget* /TransferThis/ = 0, const char* = 0); +%End + + void setPrompt (QString); + QString prompt () const; + void addLine (QString, QString); + +%If ( KDE_3_4_0 - ) + void setAllowEmptyPasswords (bool); + bool allowEmptyPasswords () const; + void setMinimumPasswordLength (int); + int minimumPasswordLength () const; + void setMaximumPasswordLength (int); + int maximumPasswordLength () const; + void setReasonablePasswordLength (int); + int reasonablePasswordLength () const; + void setPasswordStrengthWarningLevel (int); + int passwordStrengthWarningLevel () const; +%End + + const char* password () const; + +%If ( KDE_3_3_0 - ) + void clearPassword (); +%End + + bool keep () const; + static int getPassword (QCString&, QString, int* = 0); + static int getNewPassword (QCString&, QString); + static void disableCoreDumps (); + +protected slots: + void slotOk (); + void slotCancel (); + void slotKeep (bool); + +protected: + virtual bool checkPassword (const char*); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KPasswordDialog + diff --git a/sip/kdeui/kpassivepopup.sip b/sip/kdeui/kpassivepopup.sip new file mode 100644 index 0000000..d7af4c2 --- /dev/null +++ b/sip/kdeui/kpassivepopup.sip @@ -0,0 +1,112 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_1_0 - ) + +class KPassivePopup : QFrame +{ +%TypeHeaderCode +#include +%End + + +public: + +%If ( KDE_3_5_0 - ) + + enum PopupStyle + { + Boxed, + Balloon, + CustomStyle + }; + +%End + + KPassivePopup (QWidget* /TransferThis/ = 0, const char* = 0, WFlags = 0); + KPassivePopup (WId, const char* = 0, WFlags = 0); + +%If ( KDE_3_5_0 - ) + KPassivePopup (int, QWidget* /TransferThis/ = 0, const char* = 0, WFlags = 0); + KPassivePopup (int, WId /TransferThis/, const char* = 0, WFlags = 0); +%End + + void setView (QWidget*); + void setView (const QString&, const QString& = QString ::null ); + virtual void setView (const QString&, const QString&, const QPixmap&); + QVBox* standardView (const QString&, const QString&, const QPixmap&, QWidget* /Transfer/ = 0); + QWidget* view () const; + int timeout () const; + virtual void setAutoDelete (bool); + bool autoDelete () const; + +%If ( KDE_3_5_0 - ) + void setAnchor (const QPoint&); +%End + + static KPassivePopup* message (const QString&, QWidget* /Transfer/, const char* = 0); + static KPassivePopup* message (const QString&, const QString&, QWidget* /Transfer/, const char* = 0); + static KPassivePopup* message (const QString&, const QString&, const QPixmap&, QWidget* /Transfer/, const char* = 0, int = -1); + static KPassivePopup* message (const QString&, const QString&, const QPixmap&, WId, const char* = 0, int = -1); + +%If ( KDE_3_5_0 - ) + static KPassivePopup* message (int, const QString&, QWidget* /Transfer/, const char* = 0); + static KPassivePopup* message (int, const QString&, const QString&, QWidget* /Transfer/, const char* = 0); + static KPassivePopup* message (int, const QString&, const QString&, const QPixmap&, QWidget* /Transfer/, const char* = 0, int = -1); + static KPassivePopup* message (int, const QString&, const QString&, const QPixmap&, WId, const char* = 0, int = -1); +%End + + +public slots: + void setTimeout (int); + virtual void show (); + +%If ( KDE_3_5_0 - ) + void show (const QPoint&); +%End + + +signals: + void clicked (); + void clicked (QPoint); + +protected: + virtual void positionSelf (); + virtual void hideEvent (QHideEvent*); + void moveNear (QRect); + virtual void mouseReleaseEvent (QMouseEvent*); + QRect defaultArea () const; + +%If ( KDE_3_5_0 - ) + void updateMask (); + virtual void paintEvent (QPaintEvent*); +%End + + +}; // class KPassivePopup + +%End + diff --git a/sip/kdeui/kpixmapio.sip b/sip/kdeui/kpixmapio.sip new file mode 100644 index 0000000..281978a --- /dev/null +++ b/sip/kdeui/kpixmapio.sip @@ -0,0 +1,53 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KPixmapIO +{ +%TypeHeaderCode +#include +%End + + +public: + KPixmapIO (); + QPixmap convertToPixmap (const QImage&); + QImage convertToImage (const QPixmap&); + void putImage (QPixmap*, int, int, const QImage*); + void putImage (QPixmap*, const QPoint&, const QImage*); + QImage getImage (const QPixmap*, int, int, int, int); + QImage getImage (const QPixmap*, const QRect&); + + enum ShmPolicies + { + ShmDontKeep, + ShmKeepAndGrow + }; + + void setShmPolicy (int); + void preAllocShm (int); + +}; // class KPixmapIO + diff --git a/sip/kdeui/kpixmapregionselectordialog.sip b/sip/kdeui/kpixmapregionselectordialog.sip new file mode 100644 index 0000000..b591a36 --- /dev/null +++ b/sip/kdeui/kpixmapregionselectordialog.sip @@ -0,0 +1,49 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_4_0 - ) + +class KPixmapRegionSelectorDialog : KDialogBase +{ +%TypeHeaderCode +#include +%End + + +public: + KPixmapRegionSelectorDialog (QWidget* /TransferThis/ = 0, const char* = 0, bool = 0); + KPixmapRegionSelectorWidget* pixmapRegionSelectorWidget () const; + static QRect getSelectedRegion (const QPixmap&, QWidget* /Transfer/ = 0); + static QRect getSelectedRegion (const QPixmap&, int, int, QWidget* /Transfer/ = 0); + static QImage getSelectedImage (const QPixmap&, QWidget* /Transfer/ = 0); + static QImage getSelectedImage (const QPixmap&, int, int, QWidget* /Transfer/ = 0); + +protected: + +}; // class KPixmapRegionSelectorDialog + +%End + diff --git a/sip/kdeui/kpixmapregionselectorwidget.sip b/sip/kdeui/kpixmapregionselectorwidget.sip new file mode 100644 index 0000000..efa5084 --- /dev/null +++ b/sip/kdeui/kpixmapregionselectorwidget.sip @@ -0,0 +1,60 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_4_0 - ) + +class KPixmapRegionSelectorWidget : QWidget +{ +%TypeHeaderCode +#include +%End + + +public: + KPixmapRegionSelectorWidget (QWidget* /TransferThis/ = 0, const char* = 0); + void setPixmap (const QPixmap&); + QPixmap pixmap () const; + void setSelectedRegion (const QRect&); + QRect selectedRegion () const; + QRect unzoomedSelectedRegion () const; + void resetSelection (); + QImage selectedImage () const; + void setSelectionAspectRatio (int, int); + void setFreeSelectionAspectRatio (); + void setMaximumWidgetSize (int, int); + void rotate (KImageEffect::RotateDirection); + +public slots: + void rotateClockwise (); + void rotateCounterclockwise (); + +protected: + virtual KPopupMenu* createPopupMenu (); + +}; // class KPixmapRegionSelectorWidget + +%End + diff --git a/sip/kdeui/kpopupmenu.sip b/sip/kdeui/kpopupmenu.sip new file mode 100644 index 0000000..2f5fe09 --- /dev/null +++ b/sip/kdeui/kpopupmenu.sip @@ -0,0 +1,149 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KPopupTitle : QWidget +{ +%TypeHeaderCode +#include +%End + + +public: + KPopupTitle (QWidget* /TransferThis/ = 0, const char* = 0); + KPopupTitle (KPixmapEffect::GradientType, const QColor&, const QColor&, QWidget* /TransferThis/ = 0, const char* = 0); + KPopupTitle (const KPixmap&, const QColor&, const QColor&, QWidget* /TransferThis/ = 0, const char* = 0); + void setTitle (const QString&, const QPixmap* = 0); + QString title (); + QPixmap icon (); + QSize sizeHint () const; + +public slots: + +%If ( KDE_3_1_0 - ) + void setText (const QString&); + void setIcon (const QPixmap&); +%End + + +protected: + +%If ( KDE_3_2_0 - ) + void calcSize (); +%End + + void paintEvent (QPaintEvent*); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KPopupTitle + + +class KPopupMenu : QPopupMenu +{ +%TypeHeaderCode +#include +%End + + +public: + KPopupMenu (QWidget* /TransferThis/ = 0, const char* = 0); + int insertTitle (const QString&, int = -1, int = -1); + int insertTitle (const QPixmap&, const QString&, int = -1, int = -1); + void changeTitle (int, const QString&); + void changeTitle (int, const QPixmap&, const QString&); + QString title (int = -1); + QPixmap titlePixmap (int); + +%If ( KDE_3_1_0 - ) + void setKeyboardShortcutsEnabled (bool); + void setKeyboardShortcutsExecute (bool); +%End + + KPopupMenu (const QString&, QWidget* /TransferThis/ = 0, const char* = 0); + void setTitle (const QString&); + +%If ( KDE_3_2_0 - ) + QPopupMenu* contextMenu (); + void hideContextMenu (); + static KPopupMenu* contextMenuFocus (); + static int contextMenuFocusItem (); + +%If ( KDE_3_4_0 - ) + virtual void activateItemAt (int); + Qt::ButtonState state () const; +%End + +%End + + +signals: + +%If ( KDE_3_2_0 - ) + void aboutToShowContextMenu (KPopupMenu*, int, QPopupMenu*); +%End + + +protected: + +%If ( KDE_3_1_0 - ) + virtual void closeEvent (QCloseEvent*); + virtual void keyPressEvent (QKeyEvent*); + +%If ( KDE_3_4_0 - ) + virtual void mouseReleaseEvent (QMouseEvent*); +%End + + +%If ( KDE_3_2_0 - ) + virtual void mousePressEvent (QMouseEvent*); + virtual bool focusNextPrevChild (bool); + virtual void contextMenuEvent (QContextMenuEvent*); + virtual void hideEvent (QHideEvent*); +%End + +%End + +//igx virtual void virtual_hook (int, void*); + +protected slots: + +%If ( KDE_3_1_0 - ) + QString underlineText (const QString&, uint); + void resetKeyboardVars (bool = 0); + +%If ( KDE_3_2_0 - ) + void itemHighlighted (int); + void showCtxMenu (QPoint); + void ctxMenuHiding (); + void ctxMenuHideShowingMenu (); +%End + +%End + + +}; // class KPopupMenu + diff --git a/sip/kdeui/kprogress.sip b/sip/kdeui/kprogress.sip new file mode 100644 index 0000000..523a9ae --- /dev/null +++ b/sip/kdeui/kprogress.sip @@ -0,0 +1,102 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KProgress : QProgressBar +{ +%TypeHeaderCode +#include +%End + + +public: + KProgress (QWidget* /TransferThis/ = 0, const char* = 0, WFlags = 0); + KProgress (int, QWidget* /TransferThis/ = 0, const char* = 0, WFlags = 0); + void setTextEnabled (bool); + int value () const; + bool textEnabled () const; + QString format () const; + void setRange (int, int); + int maxValue (); + +public slots: + void setFormat (const QString&); + void setTotalSteps (int); + virtual void setProgress (int); + void setValue (int); + virtual void advance (int); + +signals: + void percentageChanged (int); + +protected: + virtual bool setIndicator (QString&, int, int); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KProgress + + +class KProgressDialog : KDialogBase +{ +%TypeHeaderCode +#include +%End + + +public: + KProgressDialog (QWidget* /TransferThis/ = 0, const char* = 0, const QString& = QString ::null , const QString& = QString ::null , bool = 0); + KProgress* progressBar (); + void setLabel (const QString&); + QString labelText (); + void setAllowCancel (bool); + bool allowCancel (); + void showCancelButton (bool); + void setAutoClose (bool); + bool autoClose (); + void setAutoReset (bool); + bool autoReset (); + bool wasCancelled (); + void setButtonText (const QString&); + QString buttonText (); + void setMinimumDuration (int); + int minimumDuration (); + +%If ( KDE_3_5_3 - ) + virtual void show (); +%End + + +protected slots: + void slotAutoShow (); + void slotAutoActions (int); + void slotCancel (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KProgressDialog + diff --git a/sip/kdeui/kpushbutton.sip b/sip/kdeui/kpushbutton.sip new file mode 100644 index 0000000..f8a9ab1 --- /dev/null +++ b/sip/kdeui/kpushbutton.sip @@ -0,0 +1,67 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KPushButton : QPushButton +{ +%TypeHeaderCode +#include +%End + + +public: + KPushButton (QWidget* /TransferThis/, const char* = 0); + KPushButton (const QString&, QWidget* /TransferThis/, const char* = 0); + KPushButton (const QIconSet&, const QString&, QWidget* /TransferThis/, const char* = 0); + KPushButton (const KGuiItem&, QWidget* /TransferThis/, const char* = 0); + void setDragEnabled (bool); + bool isDragEnabled () const; + void setGuiItem (const KGuiItem&); + +%If ( KDE_3_4_0 - ) + void setGuiItem (KStdGuiItem::StdItem); + KStdGuiItem::StdItem guiItem () const; + void setGuiItm (int); + int guiItm () const; +%End + + +%If ( KDE_3_2_0 - ) + void setIconSet (const QIconSet&); + void setText (const QString&); +%End + + +protected: + virtual QDragObject* dragObject (); + virtual void mousePressEvent (QMouseEvent*); + virtual void mouseMoveEvent (QMouseEvent*); + virtual void startDrag (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KPushButton + diff --git a/sip/kdeui/krestrictedline.sip b/sip/kdeui/krestrictedline.sip new file mode 100644 index 0000000..8bb6f96 --- /dev/null +++ b/sip/kdeui/krestrictedline.sip @@ -0,0 +1,49 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KRestrictedLine : KLineEdit +{ +%TypeHeaderCode +#include +%End + + +public: + KRestrictedLine (QWidget* /TransferThis/ = 0, const char* = 0, const QString& = QString ::null ); + void setValidChars (const QString&); + QString validChars () const; + +signals: + void invalidChar (int); + +protected: + void keyPressEvent (QKeyEvent*); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KRestrictedLine + diff --git a/sip/kdeui/krootpixmap.sip b/sip/kdeui/krootpixmap.sip new file mode 100644 index 0000000..91d26c2 --- /dev/null +++ b/sip/kdeui/krootpixmap.sip @@ -0,0 +1,71 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KRootPixmap : QObject +{ +%TypeHeaderCode +#include +%End + + +public: + KRootPixmap (QWidget*, const char* = 0); + KRootPixmap (QWidget*, QObject* /TransferThis/, const char* = 0); + bool isAvailable () const; + bool isActive () const; + int currentDesktop () const; + bool customPainting () const; + bool checkAvailable (bool); + +%If ( KDE_3_2_0 - ) + const QColor& color () const; + double opacity () const; +%End + + +public slots: + virtual void start (); + virtual void stop (); + void setFadeEffect (double, const QColor&); + void repaint (bool); + void repaint (); + void setCustomPainting (bool); + void enableExports (); + +%If ( KDE_3_2_0 - ) +//ig static QString pixmapName (int); +%End + + +signals: + void backgroundUpdated (const QPixmap&); + +protected: + virtual bool eventFilter (QObject*, QEvent*); +//ig virtual void updateBackground (KSharedPixmap*); + +}; // class KRootPixmap + diff --git a/sip/kdeui/kruler.sip b/sip/kdeui/kruler.sip new file mode 100644 index 0000000..a62b7e9 --- /dev/null +++ b/sip/kdeui/kruler.sip @@ -0,0 +1,108 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KRuler : QFrame +{ +%TypeHeaderCode +#include +%End + + +public: + + enum MetricStyle + { + Custom, + Pixel, + Inch, + Millimetres, + Centimetres, + Metres + }; + + KRuler (QWidget* /TransferThis/ = 0, const char* = 0); + KRuler (Orientation, QWidget* /TransferThis/ = 0, const char* = 0, WFlags = 0); + KRuler (Orientation, int, QWidget* /TransferThis/ = 0, const char* = 0, WFlags = 0); + void setMinValue (int); + int minValue () const; + void setMaxValue (int); + int maxValue () const; + void setRange (int, int); + void setValue (int); + int value () const; + void setTinyMarkDistance (int); + int tinyMarkDistance () const; + void setLittleMarkDistance (int); + int littleMarkDistance () const; + void setMediumMarkDistance (int); + int mediumMarkDistance () const; + void setBigMarkDistance (int); + int bigMarkDistance () const; + void setShowTinyMarks (bool); + bool showTinyMarks () const; + void setShowLittleMarks (bool); + bool showLittleMarks () const; + void setShowMediumMarks (bool); + bool showMediumMarks () const; + void setShowBigMarks (bool); + bool showBigMarks () const; + void setShowEndMarks (bool); + bool showEndMarks () const; + void setShowPointer (bool); + bool showPointer () const; + void setValuePerLittleMark (int); + void setValuePerMediumMark (int); + void setValuePerBigMark (int); + void setShowEndLabel (bool); + bool showEndLabel () const; + void setEndLabel (const QString&); + QString endLabel () const; + void setRulerMetricStyle (KRuler::MetricStyle); + void setPixelPerMark (double); + double pixelPerMark () const; + void setLength (int); + int length () const; + void setLengthFixed (bool); + bool lengthFixed () const; + void slideUp (int = 1); + void slideDown (int = 1); + void setOffset (int); + int offset () const; + int endOffset () const; + +public slots: + void slotNewValue (int); + void slotNewOffset (int); + void slotEndOffset (int); + +protected: + virtual void drawContents (QPainter*); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KRuler + diff --git a/sip/kdeui/kscrollview.sip b/sip/kdeui/kscrollview.sip new file mode 100644 index 0000000..a4a475c --- /dev/null +++ b/sip/kdeui/kscrollview.sip @@ -0,0 +1,53 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_5_0 - ) + +class KScrollView : QScrollView +{ +%TypeHeaderCode +#include +%End + + +public: + KScrollView (QWidget* /TransferThis/ = 0, const char* = 0, Qt::WFlags = 0); + +public slots: + void scrollBy (int, int); + +protected: + virtual void wheelEvent (QWheelEvent*); + void startScrolling (); + void stopScrolling (); + +protected slots: + void scrollTick (); + +}; // class KScrollView + +%End + diff --git a/sip/kdeui/kselect.sip b/sip/kdeui/kselect.sip new file mode 100644 index 0000000..681c91b --- /dev/null +++ b/sip/kdeui/kselect.sip @@ -0,0 +1,142 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KXYSelector : QWidget +{ +%TypeHeaderCode +#include +%End + + +public: + KXYSelector (QWidget* /TransferThis/ = 0, const char* = 0); + void setValues (int, int); + +%If ( KDE_3_3_0 - ) + void setXValue (int); + void setYValue (int); +%End + + void setRange (int, int, int, int); + int xValue (); + int yValue (); + QRect contentsRect () const; + +signals: + void valueChanged (int, int); + +protected: + virtual void drawContents (QPainter*); + virtual void drawCursor (QPainter*, int, int); + virtual void paintEvent (QPaintEvent*); + virtual void mousePressEvent (QMouseEvent*); + virtual void mouseMoveEvent (QMouseEvent*); + +%If ( KDE_3_2_0 - ) + virtual void wheelEvent (QWheelEvent*); + void valuesFromPosition (int, int, int&, int&) const; +%End + + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KXYSelector + + +class KSelector : QWidget, QRangeControl +{ +%TypeHeaderCode +#include +%End + + +public: + KSelector (QWidget* /TransferThis/ = 0, const char* = 0); + KSelector (Orientation, QWidget* /TransferThis/ = 0, const char* = 0); + Orientation orientation () const; + QRect contentsRect () const; + void setIndent (bool); + bool indent () const; + void setValue (int); + int value () const; + void setMinValue (int); + int minValue () const; + void setMaxValue (int); + int maxValue () const; + +signals: + void valueChanged (int); + +protected: + virtual void drawContents (QPainter*); + virtual void drawArrow (QPainter*, bool, const QPoint&); + virtual void valueChange (); + virtual void paintEvent (QPaintEvent*); + virtual void mousePressEvent (QMouseEvent*); + virtual void mouseMoveEvent (QMouseEvent*); + +%If ( KDE_3_2_0 - ) + virtual void wheelEvent (QWheelEvent*); +%End + + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KSelector + + +class KGradientSelector : KSelector +{ +%TypeHeaderCode +#include +%End + + +public: + KGradientSelector (QWidget* /TransferThis/ = 0, const char* = 0); + KGradientSelector (Orientation, QWidget* /TransferThis/ = 0, const char* = 0); + void setColors (const QColor&, const QColor&); + void setText (const QString&, const QString&); + void setFirstColor (const QColor&); + void setSecondColor (const QColor&); + void setFirstText (const QString&); + void setSecondText (const QString&); + const QColor firstColor () const; + const QColor secondColor () const; + const QString firstText () const; + const QString secondText () const; + +protected: + virtual void drawContents (QPainter*); + virtual QSize minimumSize () const; + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KGradientSelector + diff --git a/sip/kdeui/kseparator.sip b/sip/kdeui/kseparator.sip new file mode 100644 index 0000000..e1bc22e --- /dev/null +++ b/sip/kdeui/kseparator.sip @@ -0,0 +1,48 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KSeparator : QFrame +{ +%TypeHeaderCode +#include +%End + + +public: + KSeparator (QWidget* /TransferThis/ = 0, const char* = 0, WFlags = 0); + KSeparator (int, QWidget* /TransferThis/ = 0, const char* = 0, WFlags = 0); + int orientation () const; + void setOrientation (int); + virtual QSize sizeHint () const; + +protected: + virtual void drawFrame (QPainter*); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KSeparator + diff --git a/sip/kdeui/ksharedpixmap.sip b/sip/kdeui/ksharedpixmap.sip new file mode 100644 index 0000000..7cec3f9 --- /dev/null +++ b/sip/kdeui/ksharedpixmap.sip @@ -0,0 +1,62 @@ +// +// Copyright 2004 Jim Bublitz +// Earlier copyrights 1998 - 2003 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE_3_3_0 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KSharedPixmap : QWidget, KPixmap +{ +%TypeHeaderCode +#include +#include +#include +#include +#include +%End + + +public: + KSharedPixmap (); + +%If ( KDE_3_1_2 - ) + bool loadFromShared (const QString&, const QRect& = QRect ()); + bool isAvailable (const QString&) const; +%End + + +signals: + void done (bool); + +protected: +//ig bool x11Event (XEvent*); + +public: + +%If ( - KDE_3_1_2 ) + bool loadFromShared (QString, QRect = QRect ()); + bool isAvailable (QString); +%End + + +}; // class KSharedPixmap + diff --git a/sip/kdeui/kshortcutdialog.sip b/sip/kdeui/kshortcutdialog.sip new file mode 100644 index 0000000..771a09c --- /dev/null +++ b/sip/kdeui/kshortcutdialog.sip @@ -0,0 +1,53 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_4_0 - ) + +class KShortcutDialog : KDialogBase +{ +%TypeHeaderCode +#include +%End + + +public: + KShortcutDialog (const KShortcut&, bool, QWidget* /TransferThis/ = 0, const char* = 0); + void setShortcut (const KShortcut&); + const KShortcut& shortcut () const; + +protected slots: + void slotDetails (); + void slotSelectPrimary (); + void slotSelectAlternate (); + void slotClearShortcut (); + void slotClearPrimary (); + void slotClearAlternate (); + void slotMultiKeyMode (bool); + +}; // class KShortcutDialog + +%End + diff --git a/sip/kdeui/ksplashscreen.sip b/sip/kdeui/ksplashscreen.sip new file mode 100644 index 0000000..1598ad4 --- /dev/null +++ b/sip/kdeui/ksplashscreen.sip @@ -0,0 +1,42 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_2_0 - ) + +class KSplashScreen : QSplashScreen +{ +%TypeHeaderCode +#include +%End + + +public: + KSplashScreen (const QPixmap&, WFlags = 0); + +}; // class KSplashScreen + +%End + diff --git a/sip/kdeui/ksqueezedtextlabel.sip b/sip/kdeui/ksqueezedtextlabel.sip new file mode 100644 index 0000000..15a9a57 --- /dev/null +++ b/sip/kdeui/ksqueezedtextlabel.sip @@ -0,0 +1,60 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KSqueezedTextLabel : QLabel +{ +%TypeHeaderCode +#include +%End + + +public: + KSqueezedTextLabel (QWidget* /TransferThis/, const char* = 0); + KSqueezedTextLabel (const QString&, QWidget* /TransferThis/, const char* = 0); + virtual QSize minimumSizeHint () const; + +%If ( KDE_3_3_0 - ) + virtual QSize sizeHint () const; + +%If ( KDE_3_4_0 - ) + virtual void setAlignment (int); +%End + +%End + + +public slots: + void setText (const QString&); + +protected: + void resizeEvent (QResizeEvent*); + void squeezeTextToLabel (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KSqueezedTextLabel + diff --git a/sip/kdeui/kstatusbar.sip b/sip/kdeui/kstatusbar.sip new file mode 100644 index 0000000..d4aaf97 --- /dev/null +++ b/sip/kdeui/kstatusbar.sip @@ -0,0 +1,82 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KStatusBarLabel : QLabel +{ +%TypeHeaderCode +#include +%End + + +public: + KStatusBarLabel (const QString&, int, KStatusBar* /TransferThis/ = 0, const char* = 0); + +protected: + void mousePressEvent (QMouseEvent*); + void mouseReleaseEvent (QMouseEvent*); + +signals: + void itemPressed (int); + void itemReleased (int); + +}; // class KStatusBarLabel + + +class KStatusBar : QStatusBar +{ +%TypeHeaderCode +#include +%End + + +public: + + enum BarStatus + { + Toggle, + Show, + Hide + }; + + KStatusBar (QWidget* /TransferThis/ = 0, const char* = 0); + void insertItem (const QString&, int, int = 0, bool = 0); + void insertFixedItem (const QString&, int, bool = 0); + void removeItem (int); + +%If ( KDE_3_2_0 - ) + bool hasItem (int) const; +%End + + void changeItem (const QString&, int); + void setItemAlignment (int, int); + void setItemFixed (int, int = -1); + +signals: + void pressed (int); + void released (int); + +}; // class KStatusBar + diff --git a/sip/kdeui/kstdaction.sip b/sip/kdeui/kstdaction.sip new file mode 100644 index 0000000..75bb867 --- /dev/null +++ b/sip/kdeui/kstdaction.sip @@ -0,0 +1,327 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +namespace KStdAction +{ + +%If ( KDE_3_2_0 - ) + +enum StdAction +{ + ActionNone, + New, + Open, + OpenRecent, + Save, + SaveAs, + Revert, + Close, + Print, + PrintPreview, + Mail, + Quit, + Undo, + Redo, + Cut, + Copy, + Paste, + SelectAll, + Deselect, + Find, + FindNext, + FindPrev, + Replace, + ActualSize, + FitToPage, + FitToWidth, + FitToHeight, + ZoomIn, + ZoomOut, + Zoom, + Redisplay, + Up, + Back, + Forward, + Home, + Prior, + Next, + Goto, + GotoPage, + GotoLine, + FirstPage, + LastPage, + AddBookmark, + EditBookmarks, + Spelling, + ShowMenubar, + ShowToolbar, + ShowStatusbar, + SaveOptions, + KeyBindings, + Preferences, + ConfigureToolbars, + Help, + HelpContents, + WhatsThis, + ReportBug, + AboutApp, + AboutKDE, + TipofDay, + ConfigureNotifications, + FullScreen, + Clear, + PasteText +}; + +%End + +KAction* create (KStdAction::StdAction, const char*, SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/); +const char* name (KStdAction::StdAction); + +%If ( KDE_3_1_0 - ) +QStringList stdNames (); +%End + +KAction* openNew (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* open (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KRecentFilesAction* openRecent (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* save (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* saveAs (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* revert (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* close (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* print (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0) /PyName=print_/; +KAction* printPreview (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* mail (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* quit (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* undo (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* redo (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* cut (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* copy (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* paste (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); + +%If ( KDE_3_2_0 - ) +KAction* pasteText (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection*, const char* = 0); +KAction* clear (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection*, const char* = 0); +%End + +KAction* selectAll (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* deselect (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* find (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* findNext (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* findPrev (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* replace (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* actualSize (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* fitToPage (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* fitToWidth (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* fitToHeight (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* zoomIn (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* zoomOut (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* zoom (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* redisplay (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* up (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* back (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* forward (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* home (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* prior (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* next (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* goTo (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* gotoPage (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* gotoLine (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* firstPage (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* lastPage (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* addBookmark (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* editBookmarks (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* spelling (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KToggleAction* showMenubar (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KToggleAction* showToolbar (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); + +%If ( KDE_3_1_0 - ) +KToggleToolBarAction* showToolbar (const char*, KActionCollection* /Transfer/, const char* = 0); +%End + +KToggleAction* showStatusbar (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); + +%If ( KDE_3_2_0 - ) +KToggleFullScreenAction* fullScreen (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection*, QWidget*, const char* = 0); +%End + +KAction* saveOptions (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* keyBindings (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* preferences (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* configureToolbars (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); + +%If ( KDE_3_1_0 - ) +KAction* configureNotifications (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +%End + +KAction* help (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* helpContents (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* whatsThis (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); + +%If ( KDE_3_1_0 - ) +KAction* tipOfDay (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +%End + +KAction* reportBug (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* aboutApp (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* aboutKDE (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); + +%If ( KDE_3_1_0 - KDE_3_2_0 ) + +enum StdAction +{ + ActionNone, + New, + Open, + OpenRecent, + Save, + SaveAs, + Revert, + Close, + Print, + PrintPreview, + Mail, + Quit, + Undo, + Redo, + Cut, + Copy, + Paste, + SelectAll, + Deselect, + Find, + FindNext, + FindPrev, + Replace, + ActualSize, + FitToPage, + FitToWidth, + FitToHeight, + ZoomIn, + ZoomOut, + Zoom, + Redisplay, + Up, + Back, + Forward, + Home, + Prior, + Next, + Goto, + GotoPage, + GotoLine, + FirstPage, + LastPage, + AddBookmark, + EditBookmarks, + Spelling, + ShowMenubar, + ShowToolbar, + ShowStatusbar, + SaveOptions, + KeyBindings, + Preferences, + ConfigureToolbars, + Help, + HelpContents, + WhatsThis, + ReportBug, + AboutApp, + AboutKDE, + TipofDay, + ConfigureNotifications +}; + +%End + + +%If ( - KDE_3_1_0 ) + +enum StdAction +{ + ActionNone, + New, + Open, + OpenRecent, + Save, + SaveAs, + Revert, + Close, + Print, + PrintPreview, + Mail, + Quit, + Undo, + Redo, + Cut, + Copy, + Paste, + SelectAll, + Deselect, + Find, + FindNext, + FindPrev, + Replace, + ActualSize, + FitToPage, + FitToWidth, + FitToHeight, + ZoomIn, + ZoomOut, + Zoom, + Redisplay, + Up, + Back, + Forward, + Home, + Prior, + Next, + Goto, + GotoPage, + GotoLine, + FirstPage, + LastPage, + AddBookmark, + EditBookmarks, + Spelling, + ShowMenubar, + ShowToolbar, + ShowStatusbar, + SaveOptions, + KeyBindings, + Preferences, + ConfigureToolbars, + Help, + HelpContents, + WhatsThis, + ReportBug, + AboutApp, + AboutKDE +}; + +%End + +}; // namespace KStdAction + diff --git a/sip/kdeui/kstdguiitem.sip b/sip/kdeui/kstdguiitem.sip new file mode 100644 index 0000000..615d65a --- /dev/null +++ b/sip/kdeui/kstdguiitem.sip @@ -0,0 +1,350 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KStdGuiItem +{ +%TypeHeaderCode +#include +%End + + +public: + + enum BidiMode + { + UseRTL, + IgnoreRTL + }; + + +%If ( KDE_3_5_0 - ) + + enum StdItem + { + Ok, + Cancel, + Yes, + No, + Discard, + Save, + DontSave, + SaveAs, + Apply, + Clear, + Help, + Defaults, + Close, + Back, + Forward, + Print, + Continue, + Open, + Quit, + AdminMode, + Reset, + Delete, + Insert, + Configure, + Find, + Stop, + Add, + Remove, + Test, + Properties, + Overwrite + }; + +%End + + static KGuiItem guiItem (KStdGuiItem::StdItem); + static QString stdItem (KStdGuiItem::StdItem); + static KGuiItem ok (); + static KGuiItem cancel (); + static KGuiItem yes (); + static KGuiItem no (); + +%If ( KDE_3_3_0 - ) + static KGuiItem insert (); +%End + + static KGuiItem discard (); + static KGuiItem save (); + static KGuiItem help (); + static KGuiItem dontSave (); + static KGuiItem saveAs (); + static KGuiItem apply (); + static KGuiItem clear (); + static KGuiItem defaults (); + static KGuiItem close (); + static KGuiItem print () /PyName=print_/; + +%If ( KDE_3_4_0 - ) + static KGuiItem properties (); +%End + + +%If ( KDE_3_3_0 - ) + static KGuiItem reset (); + +%If ( KDE_3_5_0 - ) + static KGuiItem overwrite (); +%End + + static KGuiItem adminMode (); +%End + + static KGuiItem cont (); + +%If ( KDE_3_3_0 - ) + static KGuiItem del (); +%End + + +%If ( KDE_3_2_0 - ) + static KGuiItem open (); +%End + + static KGuiItem back (KStdGuiItem::BidiMode = IgnoreRTL ); + static KGuiItem forward (KStdGuiItem::BidiMode = IgnoreRTL ); + +%If ( KDE_3_4_0 - ) + static KGuiItem configure (); +%End + + static QPair backAndForward (); + +%If ( KDE_3_2_0 - ) + static KGuiItem quit (); + +%If ( KDE_3_4_0 - ) + static KGuiItem find (); + static KGuiItem stop (); + static KGuiItem add (); + static KGuiItem remove (); + static KGuiItem test (); +%End + +%End + + +public: + +%If ( KDE_3_4_0 - KDE_3_5_0 ) + + enum StdItem + { + Ok, + Cancel, + Yes, + No, + Discard, + Save, + DontSave, + SaveAs, + Apply, + Clear, + Help, + Defaults, + Close, + Back, + Forward, + Print, + Continue, + Open, + Quit, + AdminMode, + Reset, + Delete, + Insert, + Configure, + Find, + Stop, + Add, + Remove, + Test, + Properties + }; + +%End + + +public: + +%If ( KDE_3_3_0 - KDE_3_4_0 ) + + enum StdItem + { + Ok, + Cancel, + Yes, + No, + Discard, + Save, + DontSave, + SaveAs, + Apply, + Clear, + Help, + Defaults, + Close, + Back, + Forward, + Print, + Continue, + Open, + Quit, + AdminMode, + Reset, + Delete, + Insert + }; + +%End + + +public: + +%If ( KDE_3_2_0 - KDE_3_3_0 ) + + enum StdItem + { + Ok, + Cancel, + Yes, + No, + Discard, + Save, + DontSave, + SaveAs, + Apply, + Clear, + Help, + Defaults, + Close, + Back, + Forward, + Print, + Continue, + Open, + Quit + }; + +%End + + +public: + +%If ( - KDE_3_2_0 ) + + enum StdItem + { + Ok, + Cancel, + Yes, + No, + Discard, + Save, + DontSave, + SaveAs, + Apply, + Clear, + Help, + Defaults, + Close, + Back, + Forward, + Print, + Continue + }; + +%End + + +}; // class KStdGuiItem + + + +%MappedType QPair +//converts a Python tuple (KGuiItem,KGuiItem) +{ +%TypeHeaderCode +#include +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyTuple_New(0); + + // Create the tuple + PyObject *pytuple; + if ((pytuple = PyTuple_New(0)) == NULL) + return NULL; + + QPair *cpp = (QPair *)sipCpp; + PyObject *inst = NULL; + + // Get it. + KGuiItem g1 = (*cpp).first; + KGuiItem g2 = (*cpp).second; + PyObject *pyg1 = sipConvertFromNewType(new KGuiItem(g1), sipType_KGuiItem, NULL); + PyObject *pyg2 = sipConvertFromNewType(new KGuiItem(g2), sipType_KGuiItem, NULL); + if ((pyg1 == NULL) || (pyg2 == NULL) || ((inst = Py_BuildValue ("NN", pyg1, pyg2)) == NULL)) + { + Py_XDECREF (inst); + Py_XDECREF (pyg1); + Py_XDECREF (pyg2); + return NULL; + } + + return inst; +%End + + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyTuple_Check(sipPy); + + KGuiItem *g1, *g2; + int iserr = 0; + + PyObject *pyg1 = PyTuple_GET_ITEM (sipPy, 0); + PyObject *pyg2 = PyTuple_GET_ITEM (sipPy, 1); + g1 = (KGuiItem *)sipForceConvertToType(pyg1, sipType_KGuiItem, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr); + g2 = (KGuiItem *)sipForceConvertToType(pyg2, sipType_KGuiItem, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + *sipIsErr = 1; + return 0; + } + + *sipCppPtr = new QPair (*g1, *g2); + + return 1; +%End +}; + + diff --git a/sip/kdeui/kstringvalidator.sip b/sip/kdeui/kstringvalidator.sip new file mode 100644 index 0000000..a0a66a4 --- /dev/null +++ b/sip/kdeui/kstringvalidator.sip @@ -0,0 +1,63 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KStringListValidator : QValidator +{ +%TypeHeaderCode +#include +%End + + +public: + KStringListValidator (const QStringList& = QStringList (), bool = 1, bool = 0, QObject* /TransferThis/ = 0, const char* = 0); + virtual State validate (QString&, int&) const; + virtual void fixup (QString&) const; + void setRejecting (bool); + bool isRejecting () const; + void setFixupEnabled (bool); + bool isFixupEnabled () const; + void setStringList (const QStringList&); + QStringList stringList () const; + +protected: + +}; // class KStringListValidator + + +class KMimeTypeValidator : QValidator +{ +%TypeHeaderCode +#include +%End + + +public: + KMimeTypeValidator (QObject* /TransferThis/, const char* = 0); + virtual State validate (QString&, int&) const; + virtual void fixup (QString&) const; + +}; // class KMimeTypeValidator + diff --git a/sip/kdeui/ksystemtray.sip b/sip/kdeui/ksystemtray.sip new file mode 100644 index 0000000..853f8bc --- /dev/null +++ b/sip/kdeui/ksystemtray.sip @@ -0,0 +1,84 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KSystemTray : QLabel +{ +%TypeHeaderCode +#include +%End + + +public: + KSystemTray (QWidget* /TransferThis/ = 0, const char* = 0); + +%If ( KDE_3_2_0 - ) + KPopupMenu* contextMenu () const; + KActionCollection* actionCollection (); + +%If ( KDE_3_4_0 - ) + virtual void setPixmap (const QPixmap&); + virtual void setCaption (const QString&); +%End + + static QPixmap loadIcon (const QString&, KInstance* = KGlobal ::instance ()); +%End + + +signals: + +%If ( KDE_3_1_0 - ) + void quitSelected (); +%End + + +public slots: + +%If ( KDE_3_3_0 - ) + void toggleActive (); + void setActive (); + void setInactive (); +%End + + +protected: + void mousePressEvent (QMouseEvent*); + void mouseReleaseEvent (QMouseEvent*); + virtual void contextMenuAboutToShow (KPopupMenu*); + void showEvent (QShowEvent*); + void enterEvent (QEvent*); + +protected: +//igx virtual void virtual_hook (int, void*); + +protected: + +%If ( - KDE_3_2_0 ) + KPopupMenu* contextMenu (); +%End + + +}; // class KSystemTray + diff --git a/sip/kdeui/ktabbar.sip b/sip/kdeui/ktabbar.sip new file mode 100644 index 0000000..6b540bb --- /dev/null +++ b/sip/kdeui/ktabbar.sip @@ -0,0 +1,98 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_2_0 - ) + +class KTabBar : QTabBar +{ +%TypeHeaderCode +#include +%End + + +public: + KTabBar (QWidget* /TransferThis/ = 0, const char* = 0); + virtual void setTabEnabled (int, bool); + const QColor& tabColor (int) const; + void setTabColor (int, const QColor&); + +%If ( KDE_3_3_0 - ) + virtual int insertTab (QTab*, int = -1); +%End + + virtual void removeTab (QTab*); + void setTabReorderingEnabled (bool); + bool isTabReorderingEnabled () const; + void setHoverCloseButton (bool); + bool hoverCloseButton () const; + void setHoverCloseButtonDelayed (bool); + bool hoverCloseButtonDelayed () const; + +%If ( KDE_3_3_0 - ) + void setTabCloseActivatePrevious (bool); + bool tabCloseActivatePrevious () const; +%End + + +signals: + void contextMenu (int, const QPoint&); + void mouseDoubleClick (int); + void mouseMiddleClick (int); + void initiateDrag (int); +//ig void testCanDecode (const QDragMoveEvent*, bool&); + void receivedDropEvent (int, QDropEvent*); + void moveTab (int, int); + void closeRequest (int); + +%If ( KDE_3_3_0 - ) + void wheelDelta (int); +%End + + +protected: + virtual void mouseDoubleClickEvent (QMouseEvent*); + virtual void mousePressEvent (QMouseEvent*); + virtual void mouseMoveEvent (QMouseEvent*); + virtual void mouseReleaseEvent (QMouseEvent*); + +%If ( KDE_3_3_0 - ) + virtual void wheelEvent (QWheelEvent*); +%End + + virtual void dragMoveEvent (QDragMoveEvent*); + virtual void dropEvent (QDropEvent*); + virtual void paintLabel (QPainter*, const QRect&, QTab*, bool) const; + +protected slots: + virtual void closeButtonClicked (); + virtual void onLayoutChange (); + virtual void enableCloseButton (); + virtual void activateDragSwitchTab (); + +}; // class KTabBar + +%End + diff --git a/sip/kdeui/ktabctl.sip b/sip/kdeui/ktabctl.sip new file mode 100644 index 0000000..f1325af --- /dev/null +++ b/sip/kdeui/ktabctl.sip @@ -0,0 +1,64 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KTabCtl : QWidget +{ +%TypeHeaderCode +#include +%End + + +public: + KTabCtl (QWidget* /TransferThis/ = 0, const char* = 0); + void show (); + void setFont (const QFont&); + void setTabFont (const QFont&); + void addTab (QWidget*, const QString&); + bool isTabEnabled (const QString&); + void setTabEnabled (const QString&, bool); + void setBorder (bool); + void setShape (QTabBar::Shape); + virtual QSize sizeHint () const; + +protected: + void paintEvent (QPaintEvent*); + void resizeEvent (QResizeEvent*); + +signals: + void tabSelected (int); + +protected slots: + void showTab (int); + +protected: + void setSizes (); + QRect getChildRect () const; + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KTabCtl + diff --git a/sip/kdeui/ktabwidget.sip b/sip/kdeui/ktabwidget.sip new file mode 100644 index 0000000..3a66cbf --- /dev/null +++ b/sip/kdeui/ktabwidget.sip @@ -0,0 +1,144 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_2_0 - ) + +class KTabWidget : QTabWidget +{ +%TypeHeaderCode +#include +%End + + +public: + KTabWidget (QWidget* /TransferThis/ = 0, const char* = 0, WFlags = 0); + void setTabColor (QWidget*, const QColor&); + QColor tabColor (QWidget*) const; + bool isTabReorderingEnabled () const; + bool hoverCloseButton () const; + bool hoverCloseButtonDelayed () const; + +%If ( KDE_3_3_0 - ) + bool tabCloseActivatePrevious () const; + +%If ( KDE_3_4_0 - ) + bool automaticResizeTabs () const; + void setTabBarHidden (bool); + bool isTabBarHidden () const; + virtual void insertTab (QWidget*, const QString&, int = -1); + virtual void insertTab (QWidget*, const QIconSet&, const QString&, int = -1); + virtual void insertTab (QWidget*, QTab*, int = -1); + void changeTab (QWidget*, const QString&); + void changeTab (QWidget*, const QIconSet&, const QString&); + QString label (int) const; + QString tabLabel (QWidget*) const; + void setTabLabel (QWidget*, const QString&); +%End + +%End + + +public slots: + virtual void moveTab (int, int); + +%If ( KDE_3_4_0 - ) + virtual void removePage (QWidget*); +%End + + void setTabReorderingEnabled (bool); + void setHoverCloseButton (bool); + void setHoverCloseButtonDelayed (bool); + +%If ( KDE_3_3_0 - ) + void setTabCloseActivatePrevious (bool); + +%If ( KDE_3_4_0 - ) + void setAutomaticResizeTabs (bool); +%End + +%End + + +signals: +//ig void testCanDecode (const QDragMoveEvent*, bool&); + void receivedDropEvent (QDropEvent*); + void receivedDropEvent (QWidget*, QDropEvent*); + void initiateDrag (QWidget*); +//ig void contextMenu (const QPoint&); + void contextMenu (QWidget*, const QPoint&); + void movedTab (int, int); + +%If ( KDE_3_3_0 - ) + void mouseDoubleClick (); +%End + + void mouseDoubleClick (QWidget*); + void mouseMiddleClick (); + void mouseMiddleClick (QWidget*); + void closeRequest (QWidget*); + +protected: + +%If ( KDE_3_3_0 - ) + virtual void mouseDoubleClickEvent (QMouseEvent*); +%End + + virtual void mousePressEvent (QMouseEvent*); + virtual void dragMoveEvent (QDragMoveEvent*); + virtual void dropEvent (QDropEvent*); + +%If ( KDE_3_4_0 - ) + uint tabBarWidthForMaxChars (uint); +%End + + +%If ( KDE_3_3_0 - ) + virtual void wheelEvent (QWheelEvent*); + +%If ( KDE_3_4_0 - ) + virtual void resizeEvent (QResizeEvent*); +%End + +%End + + +protected slots: +//ig virtual void receivedDropEvent (int, QDropEvent*); +//ig virtual void initiateDrag (int); +//ig virtual void contextMenu (int, const QPoint&); +//ig virtual void mouseDoubleClick (int); +//ig virtual void mouseMiddleClick (int); +//ig virtual void closeRequest (int); + +%If ( KDE_3_3_0 - ) + virtual void wheelDelta (int); +%End + + +}; // class KTabWidget + +%End + diff --git a/sip/kdeui/ktextbrowser.sip b/sip/kdeui/ktextbrowser.sip new file mode 100644 index 0000000..b6d981e --- /dev/null +++ b/sip/kdeui/ktextbrowser.sip @@ -0,0 +1,58 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KTextBrowser : QTextBrowser +{ +%TypeHeaderCode +#include +%End + + +public: + KTextBrowser (QWidget* /TransferThis/ = 0, const char* = 0, bool = 0); + void setNotifyClick (bool); + bool isNotifyClick () const; + +protected: + void setSource (const QString&); + virtual void keyPressEvent (QKeyEvent*); + virtual void viewportMouseMoveEvent (QMouseEvent*); + virtual void contentsWheelEvent (QWheelEvent*); + +%If ( KDE_3_3_0 - ) + virtual QPopupMenu* createPopupMenu (const QPoint&); +%End + + +signals: + void mailClick (const QString&, const QString&); + void urlClick (const QString&); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KTextBrowser + diff --git a/sip/kdeui/ktextedit.sip b/sip/kdeui/ktextedit.sip new file mode 100644 index 0000000..fac0335 --- /dev/null +++ b/sip/kdeui/ktextedit.sip @@ -0,0 +1,83 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_1_0 - ) + +class KTextEdit : QTextEdit +{ +%TypeHeaderCode +#include +%End + + +public: + KTextEdit (const QString&, const QString& = QString ::null , QWidget* /TransferThis/ = 0, const char* = 0); + KTextEdit (QWidget* /TransferThis/ = 0, const char* = 0); + virtual void setReadOnly (bool); + +%If ( KDE_3_1_1 - ) + virtual void setPalette (const QPalette&); + +%If ( KDE_3_2_0 - ) + void setCheckSpellingEnabled (bool); + bool checkSpellingEnabled () const; + void highLightWord (uint, uint); +%End + +%End + + +public slots: + +%If ( KDE_3_2_0 - ) + void checkSpelling (); +%End + + +protected: + virtual void keyPressEvent (QKeyEvent*); + +%If ( KDE_3_2_0 - ) + virtual void focusInEvent (QFocusEvent*); +%End + + virtual void contentsWheelEvent (QWheelEvent*); + virtual void deleteWordBack (); + virtual void deleteWordForward (); + +%If ( KDE_3_2_0 - ) + virtual QPopupMenu* createPopupMenu (const QPoint&); + virtual QPopupMenu* createPopupMenu (); +%End + + +protected: +//ig virtual void virtual_hook (int, void*); + +}; // class KTextEdit + +%End + diff --git a/sip/kdeui/kthemebase.sip b/sip/kdeui/kthemebase.sip new file mode 100644 index 0000000..039319e --- /dev/null +++ b/sip/kdeui/kthemebase.sip @@ -0,0 +1,258 @@ +// +// Copyright 2003 Jim Bublitz +// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE_3_1_1 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KThemePixmap : KPixmap +{ +%TypeHeaderCode +#include +%End + + +public: + + enum BorderType + { + Top = 0, + Bottom, + Left, + Right, + TopLeft, + TopRight, + BottomLeft, + BottomRight + }; + + KThemePixmap (bool = 1); + KThemePixmap (const KThemePixmap&); + QPixmap* border (KThemePixmap::BorderType); + void setBorder (KThemePixmap::BorderType, const QPixmap&); + void updateAccessed (); + bool isOld (); + +protected: + +}; // class KThemePixmap + + +class KThemeCache : QObject +{ +%TypeHeaderCode +#include +%End + + +public: + + enum ScaleHint + { + FullScale, + HorizontalScale, + VerticalScale + }; + + KThemeCache (int, QObject*/TransferThis/ = 0, const char* = 0); + bool insert (KThemePixmap*, KThemeCache::ScaleHint, int, bool = 0, bool = 0); + KThemePixmap* pixmap (int, int, int, bool = 0, bool = 0); + KThemePixmap* horizontalPixmap (int, int); + KThemePixmap* verticalPixmap (int, int); + +protected slots: + void flushTimeout (); + +protected: + +}; // class KThemeCache + + +class KThemeBase : KStyle +{ +%TypeHeaderCode +#include +%End + + +public: + KThemeBase (const QString&); + + enum ScaleHint + { + FullScale, + HorizontalScale, + VerticalScale, + TileScale + }; + + + enum ArrowStyle + { + MotifArrow, + LargeArrow, + SmallArrow + }; + + + enum ShadeStyle + { + Motif, + Windows, + Next, + KDE + }; + + + enum SButton + { + SBBottomLeft, + SBBottomRight, + SBOpposite + }; + + + enum Gradient + { + GrNone, + GrHorizontal, + GrVertical, + GrDiagonal, + GrPyramid, + GrRectangle, + GrElliptic, + GrReverseBevel + }; + + + enum WidgetType + { + PushButton = 0, + ComboBox, + HScrollBarSlider, + VScrollBarSlider, + Bevel, + ToolButton, + ScrollButton, + HScrollDeco, + VScrollDeco, + ComboDeco, + MenuItem, + InactiveTab, + ArrowUp, + ArrowDown, + ArrowLeft, + ArrowRight, + PushButtonDown, + ComboBoxDown, + HScrollBarSliderDown, + VScrollBarSliderDown, + BevelDown, + ToolButtonDown, + ScrollButtonDown, + HScrollDecoDown, + VScrollDecoDown, + ComboDecoDown, + MenuItemDown, + ActiveTab, + SunkenArrowUp, + SunkenArrowDown, + SunkenArrowLeft, + SunkenArrowRight, + HScrollGroove, + VScrollGroove, + Slider, + SliderGroove, + IndicatorOn, + IndicatorOff, + ExIndicatorOn, + ExIndicatorOff, + HBarHandle, + VBarHandle, + ToolBar, + Splitter, + CheckMark, + MenuBar, + DisArrowUp, + DisArrowDown, + DisArrowLeft, + DisArrowRight, + ProgressBar, + ProgressBg, + MenuBarItem, + Background + }; + + ScaleHint scaleHint (KThemeBase::WidgetType) const; + Gradient gradientHint (KThemeBase::WidgetType) const; + const QColorGroup* colorGroup (const QColorGroup&, KThemeBase::WidgetType) const; + QBrush pixmapBrush (const QColorGroup&, QColorGroup::ColorRole, int, int, KThemeBase::WidgetType); + bool isPixmap (KThemeBase::WidgetType) const; + bool isColor (KThemeBase::WidgetType) const; + bool is3DFocus () const; + int focusOffset () const; + int borderWidth (KThemeBase::WidgetType) const; + int pixBorderWidth (KThemeBase::WidgetType) const; + KThemePixmap* borderPixmap (KThemeBase::WidgetType); + int highlightWidth (KThemeBase::WidgetType) const; + int decoWidth (KThemeBase::WidgetType) const; + int getSBExtent () const; + SButton scrollBarLayout () const; + ArrowStyle arrowType () const; + ShadeStyle shade () const; + int frameWidth () const; + int splitWidth () const; + int bevelContrast (KThemeBase::WidgetType) const; + int buttonXShift () const; + int buttonYShift () const; + int sliderButtonLength () const; + bool roundButton () const; + bool roundComboBox () const; + bool roundSlider () const; + bool activeTabLine () const; + bool inactiveTabLine () const; + KThemePixmap* uncached (KThemeBase::WidgetType) const; + virtual KThemePixmap* scalePixmap (int, int, KThemeBase::WidgetType); + static void applyConfigFile (const QString&); + +protected: + QImage* image (KThemeBase::WidgetType) const; + QColor* gradientHigh (KThemeBase::WidgetType) const; + QColor* gradientLow (KThemeBase::WidgetType) const; + void readConfig (Qt::GUIStyle = Qt::WindowsStyle); +//ig void readWidgetConfig (int, KConfig*, QString*, QString*, bool*); + void copyWidgetConfig (int, int, QString*, QString*); + QColorGroup* makeColorGroup (QColor&, QColor&, Qt::GUIStyle = Qt::WindowsStyle); + KThemePixmap* scale (int, int, KThemeBase::WidgetType); + KThemePixmap* scaleBorder (int, int, KThemeBase::WidgetType); + KThemePixmap* gradient (int, int, KThemeBase::WidgetType); + KThemePixmap* blend (KThemeBase::WidgetType); + void generateBorderPix (int); + void applyResourceGroup (KConfig*, int); + void applyMiscResourceGroup (KConfig*); + void readResourceGroup (int, QString*, QString*, bool*); + void readMiscResourceGroup (); + KThemePixmap* loadPixmap (QString&); + QImage* loadImage (QString&); + +}; // class KThemeBase + diff --git a/sip/kdeui/kthemestyle.sip b/sip/kdeui/kthemestyle.sip new file mode 100644 index 0000000..d1136cf --- /dev/null +++ b/sip/kdeui/kthemestyle.sip @@ -0,0 +1,89 @@ +// +// Copyright 2003 Jim Bublitz +// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE_3_1_1 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KThemeStyle : KThemeBase +{ +%TypeHeaderCode +#include +%End + + +public: + KThemeStyle (const QString& = QString::null); + virtual void polish (QWidget*); + virtual void unPolish (QWidget*); + virtual void polish (QApplication*); + virtual void unPolish (QApplication*); + virtual void polish (QPalette&); + virtual void drawBaseButton (QPainter*, int, int, int, int, const QColorGroup&, bool = 0, bool = 0, WidgetType = Bevel, const QBrush* = 0); + virtual void drawBaseMask (QPainter*, int, int, int, int, bool); + virtual void drawButton (QPainter*, int, int, int, int, const QColorGroup&, bool = 0, const QBrush* = 0); + virtual void drawBevelButton (QPainter*, int, int, int, int, const QColorGroup&, bool = 0, const QBrush* = 0); + virtual void drawKToolBarButton (QPainter*, int, int, int, int, const QColorGroup&, bool = 0, bool = 1, bool = 1, bool = 0, KToolButtonType = Icon, const QString& = QString::null, const QPixmap* = 0, QFont* = 0, QWidget* = 0); + void drawKBarHandle (QPainter*, int, int, int, int, const QColorGroup&, KToolBarPos, QBrush* = 0); + void drawKToolBar (QPainter*, int, int, int, int, const QColorGroup&, KToolBarPos, QBrush* = 0); + virtual QRect buttonRect (int, int, int, int); + virtual void drawArrow (QPainter*, Qt::ArrowType, bool, int, int, int, int, const QColorGroup&, bool = 1, const QBrush* = 0); + virtual QSize exclusiveIndicatorSize () const; + virtual void drawExclusiveIndicator (QPainter*, int, int, int, int, const QColorGroup&, bool, bool = 0, bool = 1); + virtual void drawExclusiveIndicatorMask (QPainter*, int, int, int, int, bool); + virtual void drawIndicatorMask (QPainter*, int, int, int, int, int); + virtual void drawButtonMask (QPainter*, int, int, int, int); + virtual void drawComboButtonMask (QPainter*, int, int, int, int); + virtual QSize indicatorSize () const; + virtual void drawIndicator (QPainter*, int, int, int, int, const QColorGroup&, int, bool = 0, bool = 1); + virtual void drawComboButton (QPainter*, int, int, int, int, const QColorGroup&, bool = 0, bool = 0, bool = 1, const QBrush* = 0); + virtual void drawPushButton (QPushButton*, QPainter*); +//ig virtual void getButtonShift (int&, int&); + virtual int defaultFrameWidth () const; +//ig virtual void scrollBarMetrics (const QScrollBar*, int&, int&, int&, int&); + virtual void drawScrollBarControls (QPainter*, const QScrollBar*, int, uint, uint); + virtual ScrollControl scrollBarPointOver (const QScrollBar*, int, const QPoint&); + virtual int sliderLength () const; + virtual void drawSlider (QPainter*, int, int, int, int, const QColorGroup&, Orientation, bool, bool); + void drawSliderGroove (QPainter*, int, int, int, int, const QColorGroup&, QCOORD, Orientation); + virtual void drawSliderMask (QPainter*, int, int, int, int, Orientation, bool, bool); + virtual void drawScrollBarGroove (QPainter*, const QScrollBar*, bool, QRect, QColorGroup); + virtual void drawShade (QPainter*, int, int, int, int, const QColorGroup&, bool, bool, int, int, ShadeStyle); + virtual void drawPushButtonLabel (QPushButton*, QPainter*); + void drawKMenuBar (QPainter*, int, int, int, int, const QColorGroup&, bool, QBrush* = 0); +//ig virtual void drawKMenuItem (QPainter*, int, int, int, int, const QColorGroup&, bool, QMenuItem*, QBrush* = 0); + virtual int splitterWidth () const; + virtual void drawSplitter (QPainter*, int, int, int, int, const QColorGroup&, Orientation); + virtual void drawCheckMark (QPainter*, int, int, int, int, const QColorGroup&, bool, bool); +//ig virtual void drawPopupMenuItem (QPainter*, bool, int, int, QMenuItem*, const QPalette&, bool, bool, int, int, int, int); +//ig int popupMenuItemHeight (bool, QMenuItem*, const QFontMetrics&); + void drawFocusRect (QPainter*, const QRect&, const QColorGroup&, const QColor* = 0, bool = 0); + virtual void drawKProgressBlock (QPainter*, int, int, int, int, const QColorGroup&, QBrush*); + virtual void getKProgressBackground (const QColorGroup&, QBrush&); +//ig virtual void tabbarMetrics (const QTabBar*, int&, int&, int&); + virtual void drawTab (QPainter*, const QTabBar*, QTab*, bool); + virtual void drawTabMask (QPainter*, const QTabBar*, QTab*, bool); + +protected: + +}; // class KThemeStyle + diff --git a/sip/kdeui/ktimewidget.sip b/sip/kdeui/ktimewidget.sip new file mode 100644 index 0000000..6c94968 --- /dev/null +++ b/sip/kdeui/ktimewidget.sip @@ -0,0 +1,50 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_2_0 - ) + +class KTimeWidget : QWidget +{ +%TypeHeaderCode +#include +%End + + +public: + KTimeWidget (QWidget* /TransferThis/ = 0, const char* = 0); + KTimeWidget (const QTime&, QWidget* /TransferThis/ = 0, const char* = 0); + QTime time () const; + +public slots: + void setTime (const QTime&); + +signals: + void valueChanged (const QTime&); + +}; // class KTimeWidget + +%End + diff --git a/sip/kdeui/ktimezonewidget.sip b/sip/kdeui/ktimezonewidget.sip new file mode 100644 index 0000000..7672738 --- /dev/null +++ b/sip/kdeui/ktimezonewidget.sip @@ -0,0 +1,45 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_5_0 - ) + +class KTimezoneWidget : KListView +{ +%TypeHeaderCode +#include +%End + + +public: + KTimezoneWidget (QWidget* /TransferThis/ = 0, const char* = 0, KTimezones* = 0); + QStringList selection () const; + void setSelected (const QString&, bool); + static QString displayName (const KTimezone*); + +}; // class KTimezoneWidget + +%End + diff --git a/sip/kdeui/ktip.sip b/sip/kdeui/ktip.sip new file mode 100644 index 0000000..124c82b --- /dev/null +++ b/sip/kdeui/ktip.sip @@ -0,0 +1,82 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KTipDatabase +{ +%TypeHeaderCode +#include +%End + + +public: + KTipDatabase (const QString& = QString ::null ); + +%If ( KDE_3_2_0 - ) + KTipDatabase (const QStringList&); +%End + + QString tip () const; + void nextTip (); + void prevTip (); + +}; // class KTipDatabase + + +class KTipDialog : KDialog +{ +%TypeHeaderCode +#include +%End + + +public: + +%If ( KDE_3_1_0 - ) + KTipDialog (KTipDatabase*, QWidget* /TransferThis/ = 0, const char* = 0); +%End + + static void showTip (QWidget* /Transfer/, const QString& = QString ::null , bool = 0); + +%If ( KDE_3_2_0 - ) + static void showMultiTip (QWidget* /Transfer/, const QStringList&, bool = 0); +%End + + static void showTip (const QString& = QString ::null , bool = 0); + static void setShowOnStart (bool); + +protected: + bool eventFilter (QObject*, QEvent*); +//igx virtual void virtual_hook (int, void*); + +protected: + +%If ( - KDE_3_1_0 ) + KTipDialog (KTipDatabase*, QWidget* /TransferThis/ = 0, const char* = 0); +%End + + +}; // class KTipDialog + diff --git a/sip/kdeui/ktmainwindow.sip b/sip/kdeui/ktmainwindow.sip new file mode 100644 index 0000000..01787f4 --- /dev/null +++ b/sip/kdeui/ktmainwindow.sip @@ -0,0 +1,53 @@ +// +// Copyright 2003 Jim Bublitz +// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE_3_1_1 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KTMainWindow : KMainWindow +{ +%TypeHeaderCode +#include +%End + + +public: + KTMainWindow (const char* = 0, WFlags = WDestructiveClose); + void setView (QWidget*, bool = 0); + QWidget* view () const; + void enableStatusBar (KStatusBar::BarStatus = KStatusBar::Toggle); + void enableToolBar (KToolBar::BarStatus = KToolBar::Toggle, int = 0); + void setEnableToolBar (KToolBar::BarStatus = KToolBar::Toggle, const char* = "mainToolBar"); + int addToolBar (KToolBar*, int = -1); + KToolBar* toolBar (int = 0); + void setMenu (KMenuBar*); + void setStatusBar (KStatusBar*); + bool hasMenuBar (); + bool hasStatusBar (); + bool hasToolBar (int = 0); + +protected slots: + virtual void updateRects (); + +}; // class KTMainWindow + diff --git a/sip/kdeui/ktoolbar.sip b/sip/kdeui/ktoolbar.sip new file mode 100644 index 0000000..3097c38 --- /dev/null +++ b/sip/kdeui/ktoolbar.sip @@ -0,0 +1,263 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KToolBarSeparator : QFrame +{ +%TypeHeaderCode +#include +%End + + +public: + KToolBarSeparator (Orientation, bool, QToolBar* /TransferThis/, const char* = 0); + QSize sizeHint () const; + Orientation orientation () const; + QSizePolicy sizePolicy () const; + bool showLine () const; + +public slots: + void setOrientation (Orientation); + +protected: + void styleChange (QStyle&); + +%If ( KDE_3_2_0 - ) + void drawContents (QPainter*); +%End + + +}; // class KToolBarSeparator + + +class KToolBar : QToolBar +{ +%TypeHeaderCode +#include +%End + + +public: + + enum IconText + { + IconOnly, + IconTextRight, + TextOnly, + IconTextBottom + }; + + + enum BarStatus + { + Toggle, + Show, + Hide + }; + + + enum BarPosition + { + Unmanaged, + Floating, + Top, + Bottom, + Right, + Left, + Flat + }; + + KToolBar (QWidget* /TransferThis/, const char* = 0, bool = 0, bool = 1); +//ig KToolBar (QMainWindow*, QMainWindow::ToolBarDock, bool = 0, const char* = 0, bool = 0, bool = 1); + KToolBar (QMainWindow*, QWidget*, bool = 0, const char* = 0, bool = 0, bool = 1); + int insertButton (const QString&, int, bool = 1, const QString& = QString ::null , int = -1, KInstance* = KGlobal ::instance ()); + int insertButton (const QString&, int, const char*, SIP_RXOBJ_CON, SIP_SLOT_CON (int), bool = 1, const QString& = QString ::null , int = -1, KInstance* = KGlobal ::instance ()); + int insertButton (const QPixmap&, int, bool = 1, const QString& = QString ::null , int = -1); + int insertButton (const QPixmap&, int, const char*, SIP_RXOBJ_CON, SIP_SLOT_CON (int), bool = 1, const QString& = QString ::null , int = -1); + int insertButton (const QString&, int, QPopupMenu*, bool, const QString&, int = -1); + int insertButton (const QPixmap&, int, QPopupMenu*, bool, const QString&, int = -1); + int insertLined (const QString&, int, const char*, SIP_RXOBJ_CON, SIP_SLOT_CON (int), bool = 1, const QString& = QString ::null , int = 70, int = -1); + int insertCombo (const QStringList&, int, bool, const char*, SIP_RXOBJ_CON, SIP_SLOT_CON (int), bool = 1, const QString& = QString ::null , int = 70, int = -1, QComboBox::Policy = QComboBox ::AtBottom ); + +%If ( KDE_3_2_0 - ) + int insertCombo (const QString&, int, bool, const char*, SIP_RXOBJ_CON, SIP_SLOT_CON (), bool = 1, const QString& = QString ::null , int = 70, int = -1, QComboBox::Policy = QComboBox ::AtBottom ); +%End + + int insertSeparator (int, int); + int insertLineSeparator (int, int); + int insertWidget (int, int, QWidget*, int = -1); + int insertAnimatedWidget (int, SIP_RXOBJ_CON, SIP_SLOT_CON (int), const QString&, int = -1); + KAnimWidget* animatedWidget (int); + void addConnection (int, const char*, SIP_RXOBJ_CON, SIP_SLOT_CON (int)); + void setItemEnabled (int, bool); + void setButtonIcon (int, const QString&); + void setButtonPixmap (int, const QPixmap&); + void setButtonIconSet (int, const QIconSet&); + void setDelayedPopup (int, QPopupMenu*, bool = 0); + void setAutoRepeat (int, bool = 1); + void setToggle (int, bool = 1); + void toggleButton (int); + void setButton (int, bool); + bool isButtonOn (int); + void setLinedText (int, const QString&); + QString getLinedText (int); + void insertComboItem (int, const QString&, int); + void insertComboList (int, const QStringList&, int); + void removeComboItem (int, int); + void setCurrentComboItem (int, int); + void changeComboItem (int, const QString&, int = -1); + void clearCombo (int); + QString getComboItem (int, int = -1); + KComboBox* getCombo (int); + KLineEdit* getLined (int); + KToolBarButton* getButton (int); + void alignItemRight (int, bool = 1); + QWidget* getWidget (int); + void setItemAutoSized (int, bool = 1); + void clear (); + void removeItem (int); + +%If ( KDE_3_2_0 - ) + void removeItemDelayed (int); +%End + + void hideItem (int); + void showItem (int); + +%If ( KDE_3_2_0 - ) + int itemIndex (int); + int idAt (int); +%End + + void setFullSize (bool = 1); + bool fullSize () const; + void enableMoving (bool = 1); + void setBarPos (KToolBar::BarPosition); + BarPosition barPos () const; + bool enable (KToolBar::BarStatus); + void setMaxHeight (int); + int maxHeight (); + void setMaxWidth (int); + int maxWidth (); + void setTitle (const QString&); + void enableFloating (bool); + void setIconText (KToolBar::IconText); + void setIconText (KToolBar::IconText, bool); + IconText iconText () const; + void setIconSize (int); + void setIconSize (int, bool); + int iconSize () const; + +%If ( KDE_3_4_0 - ) + int iconSizeDefault () const; +%End + + void setEnableContextMenu (bool = 1); + bool contextMenuEnabled () const; + void setItemNoStyle (int, bool = 1); + void setFlat (bool); + int count (); + void saveState (); + void saveSettings (KConfig*, const QString&); + +%If ( KDE_3_3_0 - ) + void applySettings (KConfig*, const QString&, bool); +%End + + void applySettings (KConfig*, const QString&); + void setXMLGUIClient (KXMLGUIClient*); + void setText (const QString&); + QString text () const; + void setStretchableWidget (QWidget*); + QSizePolicy sizePolicy () const; + bool highlight () const; + QSize sizeHint () const; + QSize minimumSizeHint () const; + QSize minimumSize () const; + void hide (); + void show (); + void updateRects (bool = 0); + void loadState (const QDomElement&); + void saveState (QDomElement&); + void positionYourself (bool); + +signals: + void clicked (int); + void doubleClicked (int); + void pressed (int); + void released (int); + void toggled (int); + void highlighted (int, bool); + void highlighted (int); + void moved (KToolBar::BarPosition); + void modechange (); + +%If ( KDE_3_1_0 - ) + void toolbarDestroyed (); +%End + + +public: + +%If ( KDE_3_1_0 - ) + static bool highlightSetting (); + static bool transparentSetting (); + static KToolBar::IconText iconTextSetting (); +%End + + +public slots: + virtual void setIconText (const QString&); + +protected: + void mousePressEvent (QMouseEvent*); + void childEvent (QChildEvent*); + void showEvent (QShowEvent*); + void resizeEvent (QResizeEvent*); + bool event (QEvent*); + void applyAppearanceSettings (KConfig*, const QString&, bool = 0); + QString settingsGroup () const; + +protected: +//igx virtual void virtual_hook (int, void*); + +public: + +%If ( - KDE_3_2_0 ) + int insertCombo (const QString&, int, bool, const char*, QObject*, const char*, bool = 1, const QString& = QString ::null , int = 70, int = -1, QComboBox::Policy = QComboBox ::AtBottom ); +%End + + +signals: + +%If ( - KDE_3_1_0 ) +//ig static bool highlightSetting (); +//ig static bool transparentSetting (); +//ig static IconText iconTextSetting (); +%End + + +}; // class KToolBar + diff --git a/sip/kdeui/ktoolbarbutton.sip b/sip/kdeui/ktoolbarbutton.sip new file mode 100644 index 0000000..2858528 --- /dev/null +++ b/sip/kdeui/ktoolbarbutton.sip @@ -0,0 +1,123 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KToolBarButton : QToolButton +{ +%TypeHeaderCode +#include +%End + + +public: + KToolBarButton (const QString&, int, QWidget* /TransferThis/, const char* = 0, const QString& = QString ::null , KInstance* = KGlobal ::instance ()); + KToolBarButton (const QPixmap&, int, QWidget* /TransferThis/, const char* = 0, const QString& = QString ::null ); + KToolBarButton (QWidget* /TransferThis/ = 0, const char* = 0); + virtual void setPixmap (const QPixmap&); + void setDefaultPixmap (const QPixmap&); + void setDisabledPixmap (const QPixmap&); + virtual void setText (const QString&); + virtual void setIcon (const QString&); + +%If ( KDE_3_0_1 - ) + virtual void setIcon (const QPixmap&); +%End + + virtual void setIconSet (const QIconSet&); + void setIcon (const QString&, bool); + void setDefaultIcon (const QString&); + void setDisabledIcon (const QString&); + void on (bool = 1); + void toggle (); + void setToggle (bool = 1); + QPopupMenu* popup (); + +%If ( KDE_3_2_0 - ) + int id () const; +%End + + void setPopup (QPopupMenu*, bool); + void setDelayedPopup (QPopupMenu*, bool = 0); + void setRadio (bool = 1); + void setNoStyle (bool = 1); + +signals: + void clicked (int); + +%If ( KDE_3_4_2 - ) + void buttonClicked (int, Qt::ButtonState); +%End + + void doubleClicked (int); + void pressed (int); + void released (int); + void toggled (int); + void highlighted (int, bool); + +public slots: + void modeChange (); + virtual void setTextLabel (const QString&, bool); + +protected: + +%If ( KDE_3_5_0 - ) + bool event (QEvent*); +%End + + void paletteChange (const QPalette&); + void leaveEvent (QEvent*); + void enterEvent (QEvent*); + void drawButton (QPainter*); + bool eventFilter (QObject*, QEvent*); + +%If ( KDE_3_4_2 - ) + void mousePressEvent (QMouseEvent*); + void mouseReleaseEvent (QMouseEvent*); +%End + + void showMenu (); + QSize sizeHint () const; + QSize minimumSizeHint () const; + QSize minimumSize () const; + +%If ( KDE_3_0_1 - ) + bool isRaised () const; + bool isActive () const; + int iconTextMode () const; +%End + + +protected slots: + void slotClicked (); + void slotPressed (); + void slotReleased (); + void slotToggled (); + void slotDelayTimeout (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KToolBarButton + diff --git a/sip/kdeui/ktoolbarlabelaction.sip b/sip/kdeui/ktoolbarlabelaction.sip new file mode 100644 index 0000000..27383ce --- /dev/null +++ b/sip/kdeui/ktoolbarlabelaction.sip @@ -0,0 +1,51 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_4_0 - ) + +class KToolBarLabelAction : KWidgetAction +{ +%TypeHeaderCode +#include +%End + + +public: + KToolBarLabelAction (const QString&, const KShortcut&, const QObject*, const char*, KActionCollection* /TransferThis/, const char*); + KToolBarLabelAction (QWidget*, const QString&, const KShortcut&, const QObject*, const char*, KActionCollection* /TransferThis/, const char*); + KToolBarLabelAction (QLabel*, const KShortcut&, const QObject*, const char*, KActionCollection* /TransferThis/, const char*); + virtual void setText (const QString&); + virtual void setBuddy (QWidget*); + QWidget* buddy () const; + QLabel* label () const; + +protected: + virtual void virtual_hook (int, void*); + +}; // class KToolBarLabelAction + +%End + diff --git a/sip/kdeui/ktoolbarradiogroup.sip b/sip/kdeui/ktoolbarradiogroup.sip new file mode 100644 index 0000000..65da45f --- /dev/null +++ b/sip/kdeui/ktoolbarradiogroup.sip @@ -0,0 +1,43 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KToolBarRadioGroup : QObject +{ +%TypeHeaderCode +#include +%End + + +public: + KToolBarRadioGroup (KToolBar*, const char* = 0); + void addButton (int); + void removeButton (int); + +public slots: + void slotToggled (int); + +}; // class KToolBarRadioGroup + diff --git a/sip/kdeui/kurllabel.sip b/sip/kdeui/kurllabel.sip new file mode 100644 index 0000000..25245eb --- /dev/null +++ b/sip/kdeui/kurllabel.sip @@ -0,0 +1,108 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KURLLabel : QLabel +{ +%TypeHeaderCode +#include +%End + + +public: + KURLLabel (QWidget* /TransferThis/ = 0, const char* = 0); + KURLLabel (const QString&, const QString& = QString ::null , QWidget* /TransferThis/ = 0, const char* = 0); + const QString& url () const; + const QString& tipText () const; + bool useTips () const; + bool useCursor () const; + bool isGlowEnabled () const; + bool isFloatEnabled () const; + const QPixmap* altPixmap () const; + +%If ( KDE_3_5_1 - ) + virtual void setMargin (int); + virtual void setFocusPolicy (FocusPolicy); + +%If ( KDE_3_5_2 - ) + virtual void setSizePolicy (QSizePolicy); +%End + +%End + + +public slots: + void setUnderline (bool = 1); + void setURL (const QString&); + virtual void setFont (const QFont&); + void setUseTips (bool = 1); + void setTipText (const QString&); + void setHighlightedColor (const QColor&); + void setHighlightedColor (const QString&); + void setSelectedColor (const QColor&); + void setSelectedColor (const QString&); + +%If ( KDE_3_5_1 - ) + virtual void setCursor (const QCursor&); + virtual void unsetCursor (); +%End + + void setUseCursor (bool, QCursor* = 0); + void setGlow (bool = 1); + void setFloat (bool = 1); + void setAltPixmap (const QPixmap&); + +signals: + void enteredURL (const QString&); + void enteredURL (); + void leftURL (const QString&); + void leftURL (); + void leftClickedURL (const QString&); + void leftClickedURL (); + void rightClickedURL (const QString&); + void rightClickedURL (); + void middleClickedURL (const QString&); + void middleClickedURL (); + +protected: + virtual void mouseReleaseEvent (QMouseEvent*); + virtual void enterEvent (QEvent*); + virtual void leaveEvent (QEvent*); + +%If ( KDE_3_2_0 - ) + virtual bool event (QEvent*); + +%If ( KDE_3_5_1 - ) + QRect activeRect () const; +%End + +%End + + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KURLLabel + diff --git a/sip/kdeui/kwindowinfo.sip b/sip/kdeui/kwindowinfo.sip new file mode 100644 index 0000000..e9908eb --- /dev/null +++ b/sip/kdeui/kwindowinfo.sip @@ -0,0 +1,61 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_1_0 - ) + +class KWindowInfo : QObject +{ +%TypeHeaderCode +#include +%End + + +public: + KWindowInfo (QWidget* /TransferThis/, const char* = 0); + bool autoDelete () const; + void setAutoDelete (bool); + static void showMessage (QWidget*, const QString&, int = -1); + static void showMessage (QWidget*, const QString&, const QPixmap&, int = -1); + +public slots: + void message (const QString&); + void message (const QString&, const QPixmap&); + void message (const QString&, int); + void message (const QString&, const QPixmap&, int); + void permanent (const QString&); + void permanent (const QString&, const QPixmap&); + +protected: + virtual void display (const QString&, const QPixmap&); + +protected slots: + virtual void save (); + virtual void restore (); + +}; // class KWindowInfo + +%End + diff --git a/sip/kdeui/kwindowlistmenu.sip b/sip/kdeui/kwindowlistmenu.sip new file mode 100644 index 0000000..a21a369 --- /dev/null +++ b/sip/kdeui/kwindowlistmenu.sip @@ -0,0 +1,54 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KWindowListMenu : KPopupMenu +{ +%TypeHeaderCode +#include +%End + + +public: + KWindowListMenu (QWidget* /TransferThis/ = 0, const char* = 0); + void init (); + +public slots: + +%If ( KDE_3_3_0 - ) + void selectActiveWindow (); +%End + + +protected slots: + void slotExec (int); + void slotUnclutterWindows (); + void slotCascadeWindows (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KWindowListMenu + diff --git a/sip/kdeui/kwizard.sip b/sip/kdeui/kwizard.sip new file mode 100644 index 0000000..7dab5a9 --- /dev/null +++ b/sip/kdeui/kwizard.sip @@ -0,0 +1,38 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KWizard : QWizard +{ +%TypeHeaderCode +#include +%End + + +public: + KWizard (QWidget* /TransferThis/ = 0, const char* = 0, bool = 0, WFlags = 0); + +}; // class KWizard + diff --git a/sip/kdeui/kwordwrap.sip b/sip/kdeui/kwordwrap.sip new file mode 100644 index 0000000..b5a3590 --- /dev/null +++ b/sip/kdeui/kwordwrap.sip @@ -0,0 +1,82 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KWordWrap +{ +%TypeHeaderCode +#include +%End + + +public: + +%If ( KDE_3_3_0 - ) + + enum + { + FadeOut, + Truncate + }; + +%End + + static KWordWrap* formatText (QFontMetrics&, const QRect&, int, const QString&, int = -1); + QRect boundingRect () const; + QString wrappedString () const; + QString truncatedString (bool = 1) const; + void drawText (QPainter*, int, int, int = Qt ::AlignAuto ) const; + +%If ( KDE_3_2_0 - ) + static void drawFadeoutText (QPainter*, int, int, int, const QString&); + +%If ( KDE_3_3_0 - ) + static void drawTruncateText (QPainter*, int, int, int, const QString&); +%End + +%End + + +%If ( KDE_3_2_0 - ) + +private: + KWordWrap (const QRect&); +%End + + +public: + +%If ( KDE_3_2_0 - KDE_3_3_0 ) + + enum + { + FadeOut + }; + +%End + + +}; // class KWordWrap + diff --git a/sip/kdeui/kxmlgui.sip b/sip/kdeui/kxmlgui.sip new file mode 100644 index 0000000..fd58998 --- /dev/null +++ b/sip/kdeui/kxmlgui.sip @@ -0,0 +1,26 @@ +// +// Copyright 2003 Jim Bublitz +// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE_3_1_1 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + diff --git a/sip/kdeui/kxmlguibuilder.sip b/sip/kdeui/kxmlguibuilder.sip new file mode 100644 index 0000000..247a6f5 --- /dev/null +++ b/sip/kdeui/kxmlguibuilder.sip @@ -0,0 +1,53 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KXMLGUIBuilder +{ +%TypeHeaderCode +#include +%End + + +public: + KXMLGUIBuilder (QWidget*); + KXMLGUIClient* builderClient () const; + void setBuilderClient (KXMLGUIClient*); + KInstance* builderInstance () const; + void setBuilderInstance (KInstance*); + QWidget* widget (); + virtual QStringList containerTags () const; +//ig virtual QWidget* createContainer (QWidget* /Transfer/, int, const QDomElement&, int&); + virtual void removeContainer (QWidget*, QWidget* /Transfer/, QDomElement&, int); + virtual QStringList customTags () const; + virtual int createCustomElement (QWidget* /Transfer/, int, const QDomElement&); + virtual void removeCustomElement (QWidget* /Transfer/, int); + virtual void finalizeGUI (KXMLGUIClient*); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KXMLGUIBuilder + diff --git a/sip/kdeui/kxmlguiclient.sip b/sip/kdeui/kxmlguiclient.sip new file mode 100644 index 0000000..73f0a49 --- /dev/null +++ b/sip/kdeui/kxmlguiclient.sip @@ -0,0 +1,101 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KXMLGUIClient +{ +%TypeHeaderCode +#include +%End + + +public: + KXMLGUIClient (); + KXMLGUIClient (KXMLGUIClient* /TransferThis/); + KAction* action (const char*) const; + virtual KAction* action (const QDomElement&) const; + virtual KActionCollection* actionCollection () const; + virtual KInstance* instance () const; + virtual QDomDocument domDocument () const; + virtual QString xmlFile () const; + virtual QString localXMLFile () const; + void setXMLGUIBuildDocument (const QDomDocument&); + QDomDocument xmlguiBuildDocument () const; + void setFactory (KXMLGUIFactory*); + KXMLGUIFactory* factory () const; + KXMLGUIClient* parentClient () const; + void insertChildClient (KXMLGUIClient*); + void removeChildClient (KXMLGUIClient*); + const QPtrList* childClients (); + void setClientBuilder (KXMLGUIBuilder*); + KXMLGUIBuilder* clientBuilder () const; + void reloadXML (); + void plugActionList (const QString&, const QPtrList&); + void unplugActionList (const QString&); + static QString findMostRecentXMLFile (const QStringList&, QString&); + void addStateActionEnabled (const QString&, const QString&); + void addStateActionDisabled (const QString&, const QString&); + + enum ReverseStateChange + { + StateNoReverse, + StateReverse + }; + + + class StateChange + { + + public: + QStringList actionsToEnable; + QStringList actionsToDisable; + + }; // class StateChange + + +public: + KXMLGUIClient::StateChange getActionsToChangeForState (const QString&); + +%If ( KDE_3_1_0 - ) + void beginXMLPlug (QWidget*); + void endXMLPlug (); + void prepareXMLUnplug (QWidget*); +%End + + +protected: + virtual void setInstance (KInstance*); + virtual void setXMLFile (const QString&, bool = 0, bool = 1); + virtual void setLocalXMLFile (const QString&); + virtual void setXML (const QString&, bool = 0); + virtual void setDOMDocument (const QDomDocument&, bool = 0); + virtual void conserveMemory (); + virtual void stateChanged (const QString&, KXMLGUIClient::ReverseStateChange = StateNoReverse ); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KXMLGUIClient + diff --git a/sip/kdeui/kxmlguifactory.sip b/sip/kdeui/kxmlguifactory.sip new file mode 100644 index 0000000..6c2f6b8 --- /dev/null +++ b/sip/kdeui/kxmlguifactory.sip @@ -0,0 +1,297 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KXMLGUIFactory : QObject +{ +%TypeHeaderCode +#include +%End + + +public: + KXMLGUIFactory (KXMLGUIBuilder*, QObject* /TransferThis/ = 0, const char* = 0); + static QString readConfigFile (const QString&, bool, const KInstance* = 0); + static QString readConfigFile (const QString&, const KInstance* = 0); + static bool saveConfigFile (const QDomDocument&, const QString&, const KInstance* = 0); + static QString documentToXML (const QDomDocument&); + static QString elementToXML (const QDomElement&); + static void removeDOMComments (QDomNode&); + +%If ( KDE_3_3_0 - ) + static QDomElement actionPropertiesElement (QDomDocument&); + static QDomElement findActionByName (QDomElement&, const QString&, bool); +%End + + void addClient (KXMLGUIClient*); + void removeClient (KXMLGUIClient*); + void plugActionList (KXMLGUIClient*, const QString&, const QPtrList&); + void unplugActionList (KXMLGUIClient*, const QString&); + QPtrList clients () const; + QWidget* container (const QString&, KXMLGUIClient*, bool = 0); + QPtrList containers (const QString&); + void reset (); + void resetContainer (const QString&, bool = 0); + +public slots: + +%If ( KDE_3_3_0 - ) + int configureShortcuts (bool = 1, bool = 1); +%End + + +signals: + void clientAdded (KXMLGUIClient*); + void clientRemoved (KXMLGUIClient*); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KXMLGUIFactory + +//force +QPtrList testKActionList (QPtrList); +%MethodCode +//takes list | (QPtrList) +//returns (QPtrList) + + sipRes = a0; +%End + +//end + + +%MappedType QPtrList +//converts a Python list of KAction +{ +%TypeHeaderCode +#include +#include +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New (0); + + PyObject *pylist; + + // Create the list + + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + // Get it. + + QPtrList *cpplist = (QPtrList *)sipCpp; + KAction *cpp; + PyObject *inst; + + // the loop depends on the type of iterator the tmeplate makes available + for(cpp = cpplist->first (); cpp != 0; cpp = cpplist->next () ) + { + if (((inst = sipConvertFromInstance (cpp, sipClass_KAction, sipTransferObj)) == NULL) + || PyList_Append (pylist, inst) < 0) + { + Py_DECREF (pylist); + return NULL; + } + } + + return pylist; +%End + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QPtrList *cpplist = new QPtrList; + + PyObject *elem; + KAction *cpp; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + cpp = (KAction *)sipForceConvertToType(elem, sipType_KAction, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + *sipIsErr = 1; + delete cpplist; + return 0; + } + + cpplist->append (cpp); + } + + *sipCppPtr = cpplist; + + return 1; +%End +}; + + +%MappedType QPtrList +//converts a Python list of KXMLGUIClient +{ +%TypeHeaderCode +#include +#include +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New (0); + + PyObject *pylist; + + // Create the list + + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + // Get it. + + QPtrList *cpplist = (QPtrList *)sipCpp; + KXMLGUIClient *cpp; + PyObject *inst; + + // the loop depends on the type of iterator the tmeplate makes available + for(cpp = cpplist->first (); cpp != 0; cpp = cpplist->next () ) + { + if (((inst = sipConvertFromNewType(new KXMLGUIClient(*cpp), sipType_KXMLGUIClient, NULL)) == NULL) + || PyList_Append (pylist, inst) < 0) + { + Py_DECREF (pylist); + return NULL; + } + } + + return pylist; +%End + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QPtrList *cpplist = new QPtrList; + + PyObject *elem; + KXMLGUIClient *cpp; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + cpp = (KXMLGUIClient *)sipForceConvertToType(elem, sipType_KXMLGUIClient, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + *sipIsErr = 1; + delete cpplist; + return 0; + } + + cpplist->append (cpp); + } + + *sipCppPtr = cpplist; + + return 1; +%End +}; + + +%MappedType QPtrList +//converts a Python list of QWidget +{ +%TypeHeaderCode +#include +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New (0); + + PyObject *pylist; + + // Create the list + + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + // Get it. + + QPtrList *cpplist = (QPtrList *)sipCpp; + QWidget *cpp; + PyObject *inst; + + // the loop depends on the type of iterator the tmeplate makes available + for(cpp = cpplist->first (); cpp != 0; cpp = cpplist->next () ) + { + if (((inst = sipConvertFromInstance (cpp, sipClass_QWidget, sipTransferObj)) == NULL) + || PyList_Append (pylist, inst) < 0) + { + Py_DECREF (pylist); + return NULL; + } + } + + return pylist; +%End + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QPtrList *cpplist = new QPtrList; + + PyObject *elem; + QWidget *cpp; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + cpp = (QWidget *)sipForceConvertToType(elem, sipType_QWidget, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + *sipIsErr = 1; + delete cpplist; + return 0; + } + + cpplist->append (cpp); + } + + *sipCppPtr = cpplist; + + return 1; +%End +}; + + diff --git a/sip/kdeui/qxembed.sip b/sip/kdeui/qxembed.sip new file mode 100644 index 0000000..ab46875 --- /dev/null +++ b/sip/kdeui/qxembed.sip @@ -0,0 +1,113 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class QXEmbed : QWidget +{ +%TypeHeaderCode +#include +%End + + +public: + QXEmbed (QWidget* /TransferThis/ = 0, const char* = 0, WFlags = 0); + static void initialize (); + +%If ( KDE_3_1_1 - ) + + enum Protocol + { + XEMBED, + XPLAIN + }; + + void setProtocol (QXEmbed::Protocol); + QXEmbed::Protocol protocol (); +%End + + void embed (WId); + WId embeddedWinId () const; + static void embedClientIntoWindow (QWidget*, WId); + static bool processClientCmdline (QWidget*, SIP_PYLIST) [bool (QWidget*, int&, char**)]; +%MethodCode +//returns (bool) +//takes client | (QWidget) | argv | (a Python list of strings which may be modified) + +//returns +//takes list (a Python list of strings) | index (int) + + int n; + + if ((n = PyList_Size (a1)) == 0) + return NULL; + + char **strings; + + if ((strings = (char **)PyQtListToArray(a1)) == NULL) + return NULL; + + Py_BEGIN_ALLOW_THREADS + sipRes = QXEmbed::processClientCmdline (a0, n, strings); + Py_END_ALLOW_THREADS + + sipFree((ANY *)strings); +%End + + +%If ( KDE_3_2_0 - ) + void sendDelete (); +%End + + void setAutoDelete (bool); + bool autoDelete () const; + QSize sizeHint () const; + QSize minimumSizeHint () const; + QSizePolicy sizePolicy () const; + bool eventFilter (QObject*, QEvent*); + bool customWhatsThis () const; + void enterWhatsThisMode (); + +%If ( KDE_3_2_0 - ) + virtual void reparent (QWidget* /Transfer/, WFlags, const QPoint&, bool = 0); +%End + + +signals: + void embeddedWindowDestroyed (); + +protected: + bool event (QEvent*); + void keyPressEvent (QKeyEvent*); + void keyReleaseEvent (QKeyEvent*); + void focusInEvent (QFocusEvent*); + void focusOutEvent (QFocusEvent*); + void resizeEvent (QResizeEvent*); + void showEvent (QShowEvent*); +//ig bool x11Event (XEvent*); + virtual void windowChanged (WId); + bool focusNextPrevChild (bool); + +}; // class QXEmbed + diff --git a/sip/kfile/booktoken.sip b/sip/kfile/booktoken.sip new file mode 100644 index 0000000..cf5870a --- /dev/null +++ b/sip/kfile/booktoken.sip @@ -0,0 +1,66 @@ +// +// Copyright 2003 Jim Bublitz +// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kfile version KDE_3_1_1 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class BMToken +{ +%TypeHeaderCode +#include +%End + + +public: + BMToken (const char*, int); + char* token (); + BMToken* next (); + void setNext (BMToken*); + +}; // class BMToken + + +class BookmarkTokenizer +{ +%TypeHeaderCode +#include +%End + + +public: + BookmarkTokenizer (); + void begin (); + void write (const QString&); + void end (); + char* nextToken (); + bool hasMoreTokens (); + void first (); + +protected: + void reset (); + void appendToken (const char*, int); + +protected: + +}; // class BookmarkTokenizer + diff --git a/sip/kfile/kcombiview.sip b/sip/kfile/kcombiview.sip new file mode 100644 index 0000000..43867f6 --- /dev/null +++ b/sip/kfile/kcombiview.sip @@ -0,0 +1,90 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kfile version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KCombiView : QSplitter, KFileView +{ +%TypeHeaderCode +#include +%End + + +public: + KCombiView (QWidget* /TransferThis/, const char*); + virtual QWidget* widget (); + virtual void clearView (); + virtual void updateView (bool); + virtual void updateView (const KFileItem*); + virtual void removeItem (const KFileItem*); + virtual void listingCompleted (); + void setRight (KFileView*); + virtual void setSelectionMode (KFile::SelectionMode); + virtual void setSelected (const KFileItem*, bool); + virtual bool isSelected (const KFileItem*) const; + virtual void clearSelection (); + virtual void selectAll (); + virtual void invertSelection (); + virtual void setCurrentItem (const KFileItem*); + virtual KFileItem* currentFileItem () const; + virtual KFileItem* firstFileItem () const; + virtual KFileItem* nextItem (const KFileItem*) const; + virtual KFileItem* prevItem (const KFileItem*) const; + virtual void insertItem (KFileItem*); + virtual void clear (); + virtual void setSorting (QDir::SortSpec); + +%If ( KDE_3_1_0 - ) + virtual void readConfig (KConfig*, const QString& = QString ::null ); + virtual void writeConfig (KConfig*, const QString& = QString ::null ); +%End + + void ensureItemVisible (const KFileItem*); + +%If ( KDE_3_1_0 - ) + virtual KActionCollection* actionCollection () const; + +%If ( KDE_3_2_0 - ) + virtual void setAcceptDrops (bool); +%End + +%End + + +protected: + +protected slots: + void slotSortingChanged (QDir::SortSpec); + +protected: + +%If ( KDE_3_2_0 - ) + virtual bool eventFilter (QObject*, QEvent*); + void setDropOptions_impl (int); +%End + +//igx virtual void virtual_hook (int, void*); + +}; // class KCombiView + diff --git a/sip/kfile/kcustommenueditor.sip b/sip/kfile/kcustommenueditor.sip new file mode 100644 index 0000000..1ade864 --- /dev/null +++ b/sip/kfile/kcustommenueditor.sip @@ -0,0 +1,57 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kfile version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_1_0 - ) + +class KCustomMenuEditor : KDialogBase +{ +%TypeHeaderCode +#include +%End + + +public: + KCustomMenuEditor (QWidget* /TransferThis/); + void load (KConfigBase*); + void save (KConfigBase*); + +public slots: + void slotNewItem (); + void slotRemoveItem (); + void slotMoveUp (); + void slotMoveDown (); + +%If ( KDE_3_2_0 - ) + void refreshButton (); +%End + + +protected: + +}; // class KCustomMenuEditor + +%End + diff --git a/sip/kfile/kdiroperator.sip b/sip/kfile/kdiroperator.sip new file mode 100644 index 0000000..a0073e6 --- /dev/null +++ b/sip/kfile/kdiroperator.sip @@ -0,0 +1,205 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kfile version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KDirOperator : QWidget +{ +%TypeHeaderCode +#include +%End + + +public: + +%If ( KDE_3_1_0 - ) + + enum ActionTypes + { + SortActions, + ViewActions, + NavActions, + FileActions, + AllActions + }; + +%End + + KDirOperator (const KURL& = KURL (), QWidget* /TransferThis/ = 0, const char* = 0); + void setShowHiddenFiles (bool); + bool showHiddenFiles () const; + void close (); + +%If ( KDE_3_4_0 - ) + virtual bool close (bool); +%End + + void setNameFilter (const QString&); + const QString& nameFilter () const; + +%If ( KDE_3_1_2 - ) + void setMimeFilter (const QStringList&); + QStringList mimeFilter () const; + void clearFilter (); +%End + + KURL url () const; + void setURL (const KURL&, bool); + void setCurrentItem (const QString&); + void setView (KFileView*); + const KFileView* view () const; + QWidget* viewWidget () const; + void setView (KFile::FileView); + void setSorting (QDir::SortSpec); + QDir::SortSpec sorting () const; + bool isRoot () const; + KDirLister* dirLister () const; + KProgress* progressBar () const; + void setMode (KFile::Mode); + KFile::Mode mode () const; + void setPreviewWidget (const QWidget*); + const KFileItemList* selectedItems () const; + bool isSelected (const KFileItem*) const; + int numDirs () const; + int numFiles () const; + KCompletion* completionObject () const; + KCompletion* dirCompletionObject () const; + KActionCollection* actionCollection () const; + +%If ( KDE_3_1_0 - ) + void setViewConfig (KConfig*, const QString&); + KConfig* viewConfig (); + QString viewConfigGroup () const; +%End + + virtual void readConfig (KConfig*, const QString& = QString ::null ); + virtual void writeConfig (KConfig*, const QString& = QString ::null ); + void setOnlyDoubleClickSelectsFiles (bool); + bool onlyDoubleClickSelectsFiles () const; + bool mkdir (const QString&, bool = 1); + KIO::DeleteJob* del (const KFileItemList&, bool = 1, bool = 1) /PyName=del_/; + +%If ( KDE_3_0_3 - ) + KIO::DeleteJob* del (const KFileItemList&, QWidget* /Transfer/, bool = 1, bool = 1) /PyName=del_/; +%End + + void clearHistory (); + void setEnableDirHighlighting (bool); + bool dirHighlighting () const; + bool dirOnlyMode () const; + static bool dirOnlyMode (uint); + +%If ( KDE_3_1_0 - ) + void setupMenu (int); + +%If ( KDE_3_2_0 - ) + virtual void setAcceptDrops (bool); + void setDropOptions (int); + +%If ( KDE_3_4_0 - ) + KIO::CopyJob* trash (const KFileItemList&, QWidget* /Transfer/, bool = 1, bool = 1); +%End + +%End + +%End + + +protected: + virtual KFileView* createView (QWidget* /Transfer/, KFile::FileView); + void setDirLister (KDirLister*); + +%If ( KDE_3_2_0 - ) + virtual void resizeEvent (QResizeEvent*); +%End + + void setupActions (); + void updateSortActions (); + void updateViewActions (); + void setupMenu (); + void prepareCompletionObjects (); + bool checkPreviewSupport (); + +public slots: + void back (); + void forward (); + void home (); + void cdUp (); + void updateDir (); + void rereadDir (); + void mkdir (); + void deleteSelected (); + void updateSelectionDependentActions (); + QString makeCompletion (const QString&); + QString makeDirCompletion (const QString&); + +%If ( KDE_3_4_0 - ) + void trashSelected (KAction::ActivationReason, Qt::ButtonState); +%End + + +protected slots: + void resetCursor (); + void pathChanged (); + void insertNewFiles (const KFileItemList&); + void itemDeleted (KFileItem*); + void selectDir (const KFileItem*); + void selectFile (const KFileItem*); + void highlightFile (const KFileItem*); + virtual void activatedMenu (const KFileItem*, const QPoint&); + void sortByName (); + void sortBySize (); + void sortByDate (); + void sortReversed (); + void toggleDirsFirst (); + void toggleIgnoreCase (); + void slotCompletionMatch (const QString&); + +signals: + void urlEntered (const KURL&); + void updateInformation (int, int); + void completion (const QString&); + void finishedLoading (); + void viewChanged (KFileView*); + void fileHighlighted (const KFileItem*); + void dirActivated (const KFileItem*); + void fileSelected (const KFileItem*); + +%If ( KDE_3_2_0 - ) + void dropped (const KFileItem*, QDropEvent*, const KURL::List&); +%End + + +protected: +//igx virtual void virtual_hook (int, void*); + +protected: + +%If ( - KDE_3_2_0 ) + void resizeEvent (QResizeEvent*); +%End + + +}; // class KDirOperator + diff --git a/sip/kfile/kdirselectdialog.sip b/sip/kfile/kdirselectdialog.sip new file mode 100644 index 0000000..da84286 --- /dev/null +++ b/sip/kfile/kdirselectdialog.sip @@ -0,0 +1,71 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kfile version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KDirSelectDialog : KDialogBase +{ +%TypeHeaderCode +#include +%End + + +public: + KDirSelectDialog (const QString& = QString ::null , bool = 0, QWidget* /TransferThis/ = 0, const char* = 0, bool = 0); + KURL url () const; + KFileTreeView* view () const; + bool localOnly () const; + static KURL selectDirectory (const QString& = QString ::null , bool = 0, QWidget* /Transfer/ = 0, const QString& = QString ::null ); + +%If ( KDE_3_1_0 - ) + QString startDir () const; +%End + + +public slots: + +%If ( KDE_3_1_0 - ) + void setCurrentURL (const KURL&); +%End + + +protected slots: + +%If ( KDE_3_5_0 - ) + virtual void slotUser1 (); +%End + + +protected: + +%If ( KDE_3_1_0 - ) + virtual void accept (); +%End + + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KDirSelectDialog + diff --git a/sip/kfile/kdirsize.sip b/sip/kfile/kdirsize.sip new file mode 100644 index 0000000..472cf86 --- /dev/null +++ b/sip/kfile/kdirsize.sip @@ -0,0 +1,85 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kfile version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KDirSize : KIO::Job +{ +%TypeHeaderCode +#include +%End + + +protected: + KDirSize (const KURL&); + KDirSize (const KFileItemList&); + ~KDirSize (); + +public: + KIO::filesize_t totalSize () const; + +%If ( KDE_3_3_0 - ) + KIO::filesize_t totalFiles () const; + KIO::filesize_t totalSubdirs () const; +%End + + static KDirSize* dirSizeJob (const KURL&); + static KDirSize* dirSizeJob (const KFileItemList&); + +%If ( KDE_3_1_2 - ) + static KIO::filesize_t dirSize (const KURL&); +%End + + +protected: + void setSync (); + void startNextJob (const KURL&); + +protected slots: + virtual void slotResult (KIO::Job*); + void slotEntries (KIO::Job*, const KIO::UDSEntryList&); + void processList (); + +protected: +//igx virtual void virtual_hook (int, void*); + +protected: + +%If ( - KDE_3_0_1 ) +//ig longlong totalSize64 (); +%End + + +%If ( - KDE_3_1_2 ) + static ulong dirSize (const KURL&); + +%If ( - KDE_3_0_1 ) +//ig static longlong dirSize64 (const KURL&); +%End + +%End + + +}; // class KDirSize + diff --git a/sip/kfile/kdiskfreesp.sip b/sip/kfile/kdiskfreesp.sip new file mode 100644 index 0000000..c28a55f --- /dev/null +++ b/sip/kfile/kdiskfreesp.sip @@ -0,0 +1,49 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kfile version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_1_0 - ) + +class KDiskFreeSp : QObject +{ +%TypeHeaderCode +#include +%End + + +public: + KDiskFreeSp (QObject* /TransferThis/ = 0, const char* = 0); + int readDF (const QString&); + static KDiskFreeSp* findUsageInfo (const QString&); + +signals: + void foundMountPoint (const QString&, ulong, ulong, ulong); +//ig void foundMountPoint (const ulong&, const ulong&, const ulong&, const QString&); + void done (); + +}; // class KDiskFreeSp + +%End + diff --git a/sip/kfile/kencodingfiledialog.sip b/sip/kfile/kencodingfiledialog.sip new file mode 100644 index 0000000..711404a --- /dev/null +++ b/sip/kfile/kencodingfiledialog.sip @@ -0,0 +1,65 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kfile version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_2_0 - ) + +class KEncodingFileDialog : KFileDialog +{ +%TypeHeaderCode +#include +%End + + +public: + + class Result + { + + public: + QStringList fileNames; + KURL::List URLs; + QString encoding; + + }; // class Result + + +public: + KEncodingFileDialog (const QString& = QString ::null , const QString& = QString ::null , const QString& = QString ::null , const QString& = QString ::null , KFileDialog::OperationMode = KFileDialog ::Opening , QWidget* /TransferThis/ = 0, const char* = "", bool = 1); + QString selectedEncoding () const; + static KEncodingFileDialog::Result getOpenFileNameAndEncoding (const QString& = QString ::null , const QString& = QString ::null , const QString& = QString ::null , QWidget* /Transfer/ = 0, const QString& = QString ::null ); + static KEncodingFileDialog::Result getOpenFileNamesAndEncoding (const QString& = QString ::null , const QString& = QString ::null , const QString& = QString ::null , QWidget* /Transfer/ = 0, const QString& = QString ::null ); + static KEncodingFileDialog::Result getOpenURLAndEncoding (const QString& = QString ::null , const QString& = QString ::null , const QString& = QString ::null , QWidget* /Transfer/ = 0, const QString& = QString ::null ); + static KEncodingFileDialog::Result getOpenURLsAndEncoding (const QString& = QString ::null , const QString& = QString ::null , const QString& = QString ::null , QWidget* /Transfer/ = 0, const QString& = QString ::null ); + static KEncodingFileDialog::Result getSaveFileNameAndEncoding (const QString& = QString ::null , const QString& = QString ::null , const QString& = QString ::null , QWidget* /Transfer/ = 0, const QString& = QString ::null ); + static KEncodingFileDialog::Result getSaveURLAndEncoding (const QString& = QString ::null , const QString& = QString ::null , const QString& = QString ::null , QWidget* /Transfer/ = 0, const QString& = QString ::null ); + +protected: + virtual void virtual_hook (int, void*); + +}; // class KEncodingFileDialog + +%End + diff --git a/sip/kfile/kfile-kde310.diff b/sip/kfile/kfile-kde310.diff new file mode 100644 index 0000000..ddad6d6 --- /dev/null +++ b/sip/kfile/kfile-kde310.diff @@ -0,0 +1,5 @@ ++ %Include kcustommenueditor.sip ++ %Include kdiskfreesp.sip ++ %Include kfilesharedlg.sip ++ %Include knotifydialog.sip ++ %Include knotifywidgetbase.sip diff --git a/sip/kfile/kfile-kde311.diff b/sip/kfile/kfile-kde311.diff new file mode 100644 index 0000000..ddad6d6 --- /dev/null +++ b/sip/kfile/kfile-kde311.diff @@ -0,0 +1,5 @@ ++ %Include kcustommenueditor.sip ++ %Include kdiskfreesp.sip ++ %Include kfilesharedlg.sip ++ %Include knotifydialog.sip ++ %Include knotifywidgetbase.sip diff --git a/sip/kfile/kfile-kde312.diff b/sip/kfile/kfile-kde312.diff new file mode 100644 index 0000000..ddad6d6 --- /dev/null +++ b/sip/kfile/kfile-kde312.diff @@ -0,0 +1,5 @@ ++ %Include kcustommenueditor.sip ++ %Include kdiskfreesp.sip ++ %Include kfilesharedlg.sip ++ %Include knotifydialog.sip ++ %Include knotifywidgetbase.sip diff --git a/sip/kfile/kfile-kde313.diff b/sip/kfile/kfile-kde313.diff new file mode 100644 index 0000000..ddad6d6 --- /dev/null +++ b/sip/kfile/kfile-kde313.diff @@ -0,0 +1,5 @@ ++ %Include kcustommenueditor.sip ++ %Include kdiskfreesp.sip ++ %Include kfilesharedlg.sip ++ %Include knotifydialog.sip ++ %Include knotifywidgetbase.sip diff --git a/sip/kfile/kfile-kde314.diff b/sip/kfile/kfile-kde314.diff new file mode 100644 index 0000000..ddad6d6 --- /dev/null +++ b/sip/kfile/kfile-kde314.diff @@ -0,0 +1,5 @@ ++ %Include kcustommenueditor.sip ++ %Include kdiskfreesp.sip ++ %Include kfilesharedlg.sip ++ %Include knotifydialog.sip ++ %Include knotifywidgetbase.sip diff --git a/sip/kfile/kfile-kde315.diff b/sip/kfile/kfile-kde315.diff new file mode 100644 index 0000000..ddad6d6 --- /dev/null +++ b/sip/kfile/kfile-kde315.diff @@ -0,0 +1,5 @@ ++ %Include kcustommenueditor.sip ++ %Include kdiskfreesp.sip ++ %Include kfilesharedlg.sip ++ %Include knotifydialog.sip ++ %Include knotifywidgetbase.sip diff --git a/sip/kfile/kfile-kde320.diff b/sip/kfile/kfile-kde320.diff new file mode 100644 index 0000000..f5ab9bd --- /dev/null +++ b/sip/kfile/kfile-kde320.diff @@ -0,0 +1,6 @@ ++ %Include kcustommenueditor.sip ++ %Include kdiskfreesp.sip ++ %Include kencodingfiledialog.sip ++ %Include kfilesharedlg.sip ++ %Include knotifydialog.sip ++ %Include knotifywidgetbase.sip \ No newline at end of file diff --git a/sip/kfile/kfile-kde321.diff b/sip/kfile/kfile-kde321.diff new file mode 100644 index 0000000..2545aae --- /dev/null +++ b/sip/kfile/kfile-kde321.diff @@ -0,0 +1,5 @@ ++ %Include kcustommenueditor.sip ++ %Include kdiskfreesp.sip ++ %Include kencodingfiledialog.sip ++ %Include kfilesharedlg.sip ++ %Include knotifydialog.sip diff --git a/sip/kfile/kfile-kde322.diff b/sip/kfile/kfile-kde322.diff new file mode 100644 index 0000000..2545aae --- /dev/null +++ b/sip/kfile/kfile-kde322.diff @@ -0,0 +1,5 @@ ++ %Include kcustommenueditor.sip ++ %Include kdiskfreesp.sip ++ %Include kencodingfiledialog.sip ++ %Include kfilesharedlg.sip ++ %Include knotifydialog.sip diff --git a/sip/kfile/kfile-kde323.diff b/sip/kfile/kfile-kde323.diff new file mode 100644 index 0000000..2545aae --- /dev/null +++ b/sip/kfile/kfile-kde323.diff @@ -0,0 +1,5 @@ ++ %Include kcustommenueditor.sip ++ %Include kdiskfreesp.sip ++ %Include kencodingfiledialog.sip ++ %Include kfilesharedlg.sip ++ %Include knotifydialog.sip diff --git a/sip/kfile/kfile-kde330.diff b/sip/kfile/kfile-kde330.diff new file mode 100644 index 0000000..2545aae --- /dev/null +++ b/sip/kfile/kfile-kde330.diff @@ -0,0 +1,5 @@ ++ %Include kcustommenueditor.sip ++ %Include kdiskfreesp.sip ++ %Include kencodingfiledialog.sip ++ %Include kfilesharedlg.sip ++ %Include knotifydialog.sip diff --git a/sip/kfile/kfile-kde331.diff b/sip/kfile/kfile-kde331.diff new file mode 100644 index 0000000..2545aae --- /dev/null +++ b/sip/kfile/kfile-kde331.diff @@ -0,0 +1,5 @@ ++ %Include kcustommenueditor.sip ++ %Include kdiskfreesp.sip ++ %Include kencodingfiledialog.sip ++ %Include kfilesharedlg.sip ++ %Include knotifydialog.sip diff --git a/sip/kfile/kfile-kde332.diff b/sip/kfile/kfile-kde332.diff new file mode 100644 index 0000000..2545aae --- /dev/null +++ b/sip/kfile/kfile-kde332.diff @@ -0,0 +1,5 @@ ++ %Include kcustommenueditor.sip ++ %Include kdiskfreesp.sip ++ %Include kencodingfiledialog.sip ++ %Include kfilesharedlg.sip ++ %Include knotifydialog.sip diff --git a/sip/kfile/kfile-kde340.diff b/sip/kfile/kfile-kde340.diff new file mode 100644 index 0000000..2545aae --- /dev/null +++ b/sip/kfile/kfile-kde340.diff @@ -0,0 +1,5 @@ ++ %Include kcustommenueditor.sip ++ %Include kdiskfreesp.sip ++ %Include kencodingfiledialog.sip ++ %Include kfilesharedlg.sip ++ %Include knotifydialog.sip diff --git a/sip/kfile/kfile-kde341.diff b/sip/kfile/kfile-kde341.diff new file mode 100644 index 0000000..2545aae --- /dev/null +++ b/sip/kfile/kfile-kde341.diff @@ -0,0 +1,5 @@ ++ %Include kcustommenueditor.sip ++ %Include kdiskfreesp.sip ++ %Include kencodingfiledialog.sip ++ %Include kfilesharedlg.sip ++ %Include knotifydialog.sip diff --git a/sip/kfile/kfile-kde342.diff b/sip/kfile/kfile-kde342.diff new file mode 100644 index 0000000..2545aae --- /dev/null +++ b/sip/kfile/kfile-kde342.diff @@ -0,0 +1,5 @@ ++ %Include kcustommenueditor.sip ++ %Include kdiskfreesp.sip ++ %Include kencodingfiledialog.sip ++ %Include kfilesharedlg.sip ++ %Include knotifydialog.sip diff --git a/sip/kfile/kfile-kde343.diff b/sip/kfile/kfile-kde343.diff new file mode 100644 index 0000000..2545aae --- /dev/null +++ b/sip/kfile/kfile-kde343.diff @@ -0,0 +1,5 @@ ++ %Include kcustommenueditor.sip ++ %Include kdiskfreesp.sip ++ %Include kencodingfiledialog.sip ++ %Include kfilesharedlg.sip ++ %Include knotifydialog.sip diff --git a/sip/kfile/kfile-kde350.diff b/sip/kfile/kfile-kde350.diff new file mode 100644 index 0000000..2545aae --- /dev/null +++ b/sip/kfile/kfile-kde350.diff @@ -0,0 +1,5 @@ ++ %Include kcustommenueditor.sip ++ %Include kdiskfreesp.sip ++ %Include kencodingfiledialog.sip ++ %Include kfilesharedlg.sip ++ %Include knotifydialog.sip diff --git a/sip/kfile/kfile-kde351.diff b/sip/kfile/kfile-kde351.diff new file mode 100644 index 0000000..2545aae --- /dev/null +++ b/sip/kfile/kfile-kde351.diff @@ -0,0 +1,5 @@ ++ %Include kcustommenueditor.sip ++ %Include kdiskfreesp.sip ++ %Include kencodingfiledialog.sip ++ %Include kfilesharedlg.sip ++ %Include knotifydialog.sip diff --git a/sip/kfile/kfile-kde352.diff b/sip/kfile/kfile-kde352.diff new file mode 100644 index 0000000..81a0603 --- /dev/null +++ b/sip/kfile/kfile-kde352.diff @@ -0,0 +1,6 @@ +- %Include krecentdirs.sip ++ %Include kcustommenueditor.sip ++ %Include kdiskfreesp.sip ++ %Include kencodingfiledialog.sip ++ %Include kfilesharedlg.sip ++ %Include knotifydialog.sip diff --git a/sip/kfile/kfile-kde353.diff b/sip/kfile/kfile-kde353.diff new file mode 100644 index 0000000..2545aae --- /dev/null +++ b/sip/kfile/kfile-kde353.diff @@ -0,0 +1,5 @@ ++ %Include kcustommenueditor.sip ++ %Include kdiskfreesp.sip ++ %Include kencodingfiledialog.sip ++ %Include kfilesharedlg.sip ++ %Include knotifydialog.sip diff --git a/sip/kfile/kfile.sip b/sip/kfile/kfile.sip new file mode 100644 index 0000000..e383ff8 --- /dev/null +++ b/sip/kfile/kfile.sip @@ -0,0 +1,115 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kfile version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KFile +{ +%TypeHeaderCode +#include +%End + + +public: + +%If ( KDE_3_3_0 - ) + + enum Mode + { + File, + Directory, + Files, + ExistingOnly, + LocalOnly, + ModeMax + }; + + + enum FileView + { + Default, + Simple, + Detail, + SeparateDirs, + PreviewContents, + PreviewInfo, + FileViewMax + }; + +%End + + + enum SelectionMode + { + Single, + Multi, + Extended, + NoSelection + }; + + static bool isSortByName (const QDir::SortSpec&); + static bool isSortBySize (const QDir::SortSpec&); + static bool isSortByDate (const QDir::SortSpec&); + static bool isSortDirsFirst (const QDir::SortSpec&); + static bool isSortCaseInsensitive (const QDir::SortSpec&); + static bool isDefaultView (const KFile::FileView&); + static bool isSimpleView (const KFile::FileView&); + static bool isDetailView (const KFile::FileView&); + static bool isSeparateDirs (const KFile::FileView&); + static bool isPreviewContents (const KFile::FileView&); + +%If ( KDE_3_1_0 - ) + static bool isPreviewInfo (const KFile::FileView&); +%End + + +public: + +%If ( - KDE_3_3_0 ) + + enum Mode + { + File, + Directory, + Files, + ExistingOnly, + LocalOnly + }; + + + enum FileView + { + Default, + Simple, + Detail, + SeparateDirs, + PreviewContents, + PreviewInfo + }; + +%End + + +}; // class KFile + diff --git a/sip/kfile/kfilebookmark.sip b/sip/kfile/kfilebookmark.sip new file mode 100644 index 0000000..48d7cac --- /dev/null +++ b/sip/kfile/kfilebookmark.sip @@ -0,0 +1,154 @@ +// +// Copyright 2003 Jim Bublitz +// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kfile version KDE_3_1_1 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KFileBookmark +{ +%TypeHeaderCode +#include +%End + + +public: + + enum + { + URL, + Folder + }; + + KFileBookmark (); + KFileBookmark (const QString&, const QString&); + void clear (); + void setText (const QString&); + void setURL (const QString&); + void setType (int); + const QString getText (); + const QString getURL (); + int getType (); + QPtrList& getChildren (); + +}; // class KFileBookmark + + +class KFileBookmarkManager : QObject +{ +%TypeHeaderCode +#include +%End + + +public: + KFileBookmarkManager (); + void setTitle (const QString&); + void read (const QString&); + void write (const QString&); + void add (const QString&, const QString&); + bool remove (int); + bool moveUp (int); + bool moveDown (int); + void reread (); + void rename (int, const QString&); + void write (); + KFileBookmark* getBookmark (int); + KFileBookmark* getRoot (); + +signals: + void changed (); + +}; // class KFileBookmarkManager + + + +%MappedType QPtrList +//converts a Python list of KFileBookmark +{ +%TypeHeaderCode +#include +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New (0); + + PyObject *pylist; + + // Create the list + + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + // Get it. + + QPtrList *cpplist = (QPtrList *)sipCpp; + KFileBookmark *cpp; + PyObject *inst; + + // the loop depends on the type of iterator the tmeplate makes available + for(cpp = cpplist->first (); cpp != 0; cpp = cpplist->next () ) + { + if (((inst = sipConvertFromInstance (cpp, sipClass_KFileBookmark, sipTransferObj)) == NULL) + || PyList_Append (pylist, inst) < 0) + { + Py_DECREF (pylist); + return NULL; + } + } + + return pylist; +%End + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QPtrList *cpplist = new QPtrList; + + PyObject *elem; + KFileBookmark *cpp; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + cpp = (KFileBookmark *)sipForceConvertToType(elem, sipType_KFileBookmark, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + *sipIsErr = 1; + delete cpplist; + return 0; + } + + cpplist->append (cpp); + } + + *sipCppPtr = cpplist; + + return 1; +%End +}; + + diff --git a/sip/kfile/kfiledetailview.sip b/sip/kfile/kfiledetailview.sip new file mode 100644 index 0000000..0528e3d --- /dev/null +++ b/sip/kfile/kfiledetailview.sip @@ -0,0 +1,207 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kfile version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KFileListViewItem : KListViewItem +{ +%TypeHeaderCode +#include +%End + + +public: + KFileListViewItem (QListView* /TransferThis/, const QString&, const QPixmap&, KFileItem*); + +%If ( KDE_3_0_1 - ) + KFileListViewItem (QListView* /TransferThis/, KFileItem*); +%End + + KFileListViewItem (QListView* /TransferThis/, const QString&, const QPixmap&, KFileItem*, QListViewItem*); + KFileItem* fileInfo () const; + virtual QString key (int, bool) const; + void setKey (const QString&); + QRect rect () const; + +%If ( KDE_3_0_1 - ) + void init (); +%End + + +}; // class KFileListViewItem + + +class KFileDetailView : KListView, KFileView +{ +%TypeHeaderCode +#include +%End + + +public: + KFileDetailView (QWidget* /TransferThis/, const char*); + virtual QWidget* widget (); + virtual void clearView (); + virtual void setAutoUpdate (bool); + virtual void setSelectionMode (KFile::SelectionMode); + virtual void updateView (bool); + virtual void updateView (const KFileItem*); + virtual void removeItem (const KFileItem*); + virtual void listingCompleted (); + virtual void setSelected (const KFileItem*, bool); + virtual bool isSelected (const KFileItem*) const; + virtual void clearSelection (); + virtual void selectAll (); + virtual void invertSelection (); + virtual void setCurrentItem (const KFileItem*); + virtual KFileItem* currentFileItem () const; + virtual KFileItem* firstFileItem () const; + virtual KFileItem* nextItem (const KFileItem*) const; + virtual KFileItem* prevItem (const KFileItem*) const; + virtual void insertItem (KFileItem*); + virtual void setSorting (QDir::SortSpec); + void ensureItemVisible (const KFileItem*); + void mimeTypeDeterminationFinished (); + void determineIcon (KFileListViewItem*); + QScrollView* scrollWidget () const; + +%If ( KDE_3_2_0 - ) + virtual void readConfig (KConfig*, const QString& = QString ::null ); + virtual void writeConfig (KConfig*, const QString& = QString ::null ); +%End + + +signals: + +%If ( KDE_3_2_0 - ) + void dropped (QDropEvent*, KFileItem*); + void dropped (QDropEvent*, const KURL::List&, const KURL&); +%End + + +protected: + virtual void keyPressEvent (QKeyEvent*); + +%If ( KDE_3_2_0 - ) + virtual QDragObject* dragObject (); + virtual void contentsDragEnterEvent (QDragEnterEvent*); + virtual void contentsDragMoveEvent (QDragMoveEvent*); + virtual void contentsDragLeaveEvent (QDragLeaveEvent*); + virtual void contentsDropEvent (QDropEvent*); + virtual bool acceptDrag (QDropEvent*) const; +%End + + +protected slots: + void slotSelectionChanged (); + +protected: +//igx virtual void virtual_hook (int, void*); +//force + +private: + void slotSortingChanged (int); + void selected (QListViewItem*); + void slotDoubleClicked (QListViewItem*); + void highlighted (QListViewItem*); + void rightButtonPressed (QListViewItem*); + +//force +%ConvertToSubClassCode + // The table of Python class objects indexed by their names. The table + // must be sorted by name. + + static sipStringTypeClassMap map[] = { + {sipName_KApplicationPropsPlugin, &sipClass_KApplicationPropsPlugin}, + {sipName_KApplicationPropsPlugin, &sipClass_KApplicationPropsPlugin}, +#if KDE_VERSION < 310 +// {sipName_KApplicationTree, &sipClass_KApplicationTree}, +#endif + {sipName_KBindingPropsPlugin, &sipClass_KBindingPropsPlugin}, + {sipName_KBindingPropsPlugin, &sipClass_KBindingPropsPlugin}, + {sipName_KCombiView, &sipClass_KCombiView}, +#if KDE_VERSION >= 0x030100 + {sipName_KCustomMenuEditor, &sipClass_KCustomMenuEditor}, +#endif + {sipName_KDevicePropsPlugin, &sipClass_KDevicePropsPlugin}, + {sipName_KDevicePropsPlugin, &sipClass_KDevicePropsPlugin}, + {sipName_KDirOperator, &sipClass_KDirOperator}, + {sipName_KDirSelectDialog, &sipClass_KDirSelectDialog}, + {sipName_KDirSize, &sipClass_KDirSize}, +#if KDE_VERSION >= 0x030100 + {sipName_KDiskFreeSp, &sipClass_KDiskFreeSp}, +#endif + {sipName_KExecPropsPlugin, &sipClass_KExecPropsPlugin}, + {sipName_KExecPropsPlugin, &sipClass_KExecPropsPlugin}, + {sipName_KFileDetailView, &sipClass_KFileDetailView}, + {sipName_KFileDialog, &sipClass_KFileDialog}, + {sipName_KFileFilterCombo, &sipClass_KFileFilterCombo}, + {sipName_KFileIconView, &sipClass_KFileIconView}, + {sipName_KFilePermissionsPropsPlugin,&sipClass_KFilePermissionsPropsPlugin}, + {sipName_KFilePermissionsPropsPlugin,&sipClass_KFilePermissionsPropsPlugin}, + {sipName_KFilePreview, &sipClass_KFilePreview}, + {sipName_KFilePropsPlugin, &sipClass_KFilePropsPlugin}, + {sipName_KFilePropsPlugin, &sipClass_KFilePropsPlugin}, +#if KDE_VERSION >= 0x030100 + {sipName_KFileSharePropsPlugin, &sipClass_KFileSharePropsPlugin}, +#endif + {sipName_KFileTreeBranch, &sipClass_KFileTreeBranch}, + {sipName_KFileTreeView, &sipClass_KFileTreeView}, + {sipName_KFileTreeViewToolTip, &sipClass_KFileTreeViewToolTip}, + {sipName_KFileViewSignaler, &sipClass_KFileViewSignaler}, + {sipName_KIconButton, &sipClass_KIconButton}, + {sipName_KIconCanvas, &sipClass_KIconCanvas}, + {sipName_KIconDialog, &sipClass_KIconDialog}, + {sipName_KImageFilePreview, &sipClass_KImageFilePreview}, +#if KDE_VERSION >= 0x030100 + {sipName_KNotifyDialog, &sipClass_KNotifyDialog}, + {sipName_KNotifyWidget, &sipClass_KNotify_KNotifyWidget}, +#if KDE_VERSION < 0x030200 + {sipName_KNotifyWidgetBase, &sipClass_KNotifyWidgetBase}, +#endif +#endif + {sipName_KOpenWithDlg, &sipClass_KOpenWithDlg}, + {sipName_KPreviewWidgetBase, &sipClass_KPreviewWidgetBase}, + {sipName_KPropertiesDialog, &sipClass_KPropertiesDialog}, + {sipName_KPropertiesDialog, &sipClass_KPropertiesDialog}, + {sipName_KPropsDlgPlugin, &sipClass_KPropsDlgPlugin}, + {sipName_KPropsDlgPlugin, &sipClass_KPropsDlgPlugin}, + {sipName_KURLBar, &sipClass_KURLBar}, + {sipName_KURLBarItem, &sipClass_KURLBarItem}, + {sipName_KURLBarItemDialog, &sipClass_KURLBarItemDialog}, + {sipName_KURLBarListBox, &sipClass_KURLBarListBox}, + {sipName_KURLComboBox, &sipClass_KURLComboBox}, + {sipName_KURLPropsPlugin, &sipClass_KURLPropsPlugin}, + {sipName_KURLPropsPlugin, &sipClass_KURLPropsPlugin}, + {sipName_KURLRequester, &sipClass_KURLRequester}, + {sipName_KURLRequesterDlg, &sipClass_KURLRequesterDlg}, + }; + + sipClass = sipMapStringToClass(sipCpp -> className(),map,sizeof (map)/sizeof (map[0])); +%End +//end +//end + +}; // class KFileDetailView + diff --git a/sip/kfile/kfiledialog.sip b/sip/kfile/kfiledialog.sip new file mode 100644 index 0000000..e1e4e32 --- /dev/null +++ b/sip/kfile/kfiledialog.sip @@ -0,0 +1,207 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kfile version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KFileDialog : KDialogBase +{ +%TypeHeaderCode +#include +%End + + +public: + + enum OperationMode + { + Other, + Opening, + Saving + }; + + KFileDialog (const QString&, const QString&, QWidget* /TransferThis/, const char*, bool); + +%If ( KDE_3_1_0 - ) + KFileDialog (const QString&, const QString&, QWidget* /TransferThis/, const char*, bool, QWidget*); +%End + + KURL selectedURL () const; + KURL::List selectedURLs () const; + KURL baseURL () const; + QString selectedFile () const; + QStringList selectedFiles () const; + void setURL (const KURL&, bool = 1); + void setSelection (const QString&); + void setOperationMode (KFileDialog::OperationMode); + KFileDialog::OperationMode operationMode () const; + void setKeepLocation (bool); + bool keepsLocation () const; + void setFilter (const QString&); + QString currentFilter () const; + void setFilterMimeType (const QString&, const KMimeType::List&, const KMimeType::Ptr&); + KMimeType::Ptr currentFilterMimeType (); + void setMimeFilter (const QStringList&, const QString& = QString ::null ); + QString currentMimeFilter () const; + void clearFilter (); + void setPreviewWidget (const QWidget*); + void setPreviewWidget (const KPreviewWidgetBase*); + static QString getOpenFileName (const QString& = QString ::null , const QString& = QString ::null , QWidget* /Transfer/ = 0, const QString& = QString ::null ); + +%If ( KDE_3_4_0 - ) + static QString getOpenFileNameWId (const QString&, const QString&, WId, const QString&); +%End + + static QStringList getOpenFileNames (const QString& = QString ::null , const QString& = QString ::null , QWidget* /Transfer/ = 0, const QString& = QString ::null ); + static KURL getOpenURL (const QString& = QString ::null , const QString& = QString ::null , QWidget* /Transfer/ = 0, const QString& = QString ::null ); + static KURL::List getOpenURLs (const QString& = QString ::null , const QString& = QString ::null , QWidget* /Transfer/ = 0, const QString& = QString ::null ); + static QString getSaveFileName (const QString& = QString ::null , const QString& = QString ::null , QWidget* /Transfer/ = 0, const QString& = QString ::null ); + +%If ( KDE_3_4_0 - ) + static QString getSaveFileNameWId (const QString&, const QString&, WId, const QString&); +%End + + static KURL getSaveURL (const QString& = QString ::null , const QString& = QString ::null , QWidget* /Transfer/ = 0, const QString& = QString ::null ); + static QString getExistingDirectory (const QString& = QString ::null , QWidget* /Transfer/ = 0, const QString& = QString ::null ); + +%If ( KDE_3_1_0 - ) + static KURL getExistingURL (const QString& = QString ::null , QWidget* /Transfer/ = 0, const QString& = QString ::null ); +%End + + static KURL getImageOpenURL (const QString& = QString ::null , QWidget* /Transfer/ = 0, const QString& = QString ::null ); + virtual void show (); + void setMode (KFile::Mode /Constrained/); + void setMode (uint); + KFile::Mode mode () const; + void setLocationLabel (const QString&); + KToolBar* toolBar () const; + KPushButton* okButton () const; + KPushButton* cancelButton () const; + +%If ( KDE_3_2_0 - ) + KURLBar* speedBar (); +%End + + KActionCollection* actionCollection () const; + +%If ( KDE_3_1_0 - ) + int pathComboIndex (); + static KURL getStartURL (const QString&, QString&); + +%If ( KDE_3_2_0 - ) + static void setStartDir (const KURL&); +%End + +%End + + +signals: + void fileSelected (const QString&); + void fileHighlighted (const QString&); + void selectionChanged (); + void filterChanged (const QString&); + +protected: + +%If ( KDE_3_2_0 - ) + virtual void keyPressEvent (QKeyEvent*); +%End + + +%If ( KDE_3_1_0 - ) + void init (const QString&, const QString&, QWidget*); +%End + + virtual void initGUI (); + void multiSelectionChanged (); + virtual void readConfig (KConfig*, const QString& = QString ::null ); + virtual void writeConfig (KConfig*, const QString& = QString ::null ); + virtual void readRecentFiles (KConfig*); + virtual void saveRecentFiles (KConfig*); + KURL::List tokenize (const QString&) const; + +%If ( KDE_3_2_0 - ) + KURL getCompleteURL (const QString&); + QString currentFilterExtension (); + void updateAutoSelectExtension (); +%End + + +protected slots: + void urlEntered (const KURL&); + void enterURL (const KURL&); + void enterURL (const QString&); + void locationActivated (const QString&); + void toolbarCallback (int); + void pathComboChanged (const QString&); + void dirCompletion (const QString&); + void slotFilterChanged (); + void fileHighlighted (const KFileItem*); + void fileSelected (const KFileItem*); + void slotStatResult (KIO::Job*); + void slotLoadingFinished (); + void fileCompletion (const QString&); + +%If ( KDE_3_1_0 - ) + void toggleSpeedbar (bool); + +%If ( KDE_3_4_0 - ) + void toggleBookmarks (bool); +%End + +%End + + virtual void updateStatusLine (int, int); + virtual void slotOk (); + virtual void accept (); + virtual void slotCancel (); + +%If ( KDE_3_2_0 - ) + void slotAutoSelectExtClicked (); +%End + + void addToRecentDocuments (); + +%If ( KDE_3_1_0 - ) + void initSpeedbar (); +%End + + +private: + KFileDialog (const KFileDialog&); + +protected: + KURL::List& parseSelectedURLs () const; + +protected: +//igx virtual void virtual_hook (int, void*); + +protected: + +%If ( - KDE_3_2_0 ) +//ig void addDirEntry (KFileItem*, bool); +%End + + +}; // class KFileDialog + diff --git a/sip/kfile/kfilefiltercombo.sip b/sip/kfile/kfilefiltercombo.sip new file mode 100644 index 0000000..73ffa99 --- /dev/null +++ b/sip/kfile/kfilefiltercombo.sip @@ -0,0 +1,58 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kfile version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KFileFilterCombo : KComboBox +{ +%TypeHeaderCode +#include +%End + + +public: + KFileFilterCombo (QWidget* /TransferThis/ = 0, const char* = 0); + void setFilter (const QString&); + QString currentFilter () const; + +%If ( KDE_3_4_0 - ) + void setCurrentFilter (const QString&); +%End + + void setMimeFilter (const QStringList&, const QString&); + bool showsAllTypes () const; + void setDefaultFilter (const QString&); + QString defaultFilter () const; + +protected: + virtual bool eventFilter (QObject*, QEvent*); + +signals: + void filterChanged (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KFileFilterCombo + diff --git a/sip/kfile/kfileiconview.sip b/sip/kfile/kfileiconview.sip new file mode 100644 index 0000000..1b33a17 --- /dev/null +++ b/sip/kfile/kfileiconview.sip @@ -0,0 +1,141 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kfile version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KFileIconViewItem : KIconViewItem +{ +%TypeHeaderCode +#include +%End + + +public: + KFileIconViewItem (QIconView* /TransferThis/, const QString&, const QPixmap&, KFileItem*); + +%If ( KDE_3_0_1 - ) + KFileIconViewItem (QIconView* /TransferThis/, KFileItem*); +%End + + KFileItem* fileInfo () const; + +}; // class KFileIconViewItem + + +class KFileIconView : KIconView, KFileView +{ +%TypeHeaderCode +#include +%End + + +public: + KFileIconView (QWidget* /TransferThis/, const char*); + virtual QWidget* widget (); + virtual void clearView (); + virtual void setAutoUpdate (bool); + virtual void updateView (bool); + virtual void updateView (const KFileItem*); + virtual void removeItem (const KFileItem*); + virtual void listingCompleted (); + virtual void insertItem (KFileItem*); + virtual void setSelectionMode (KFile::SelectionMode); + virtual void setSelected (const KFileItem*, bool); + virtual bool isSelected (const KFileItem*) const; + virtual void clearSelection (); + virtual void selectAll (); + virtual void invertSelection (); + virtual void setCurrentItem (const KFileItem*); + virtual KFileItem* currentFileItem () const; + virtual KFileItem* firstFileItem () const; + virtual KFileItem* nextItem (const KFileItem*) const; + virtual KFileItem* prevItem (const KFileItem*) const; + void setIconSize (int); + void setPreviewSize (int); + +%If ( KDE_3_4_0 - ) + void setIgnoreMaximumSize (bool = 1); +%End + + int iconSize () const; + void ensureItemVisible (const KFileItem*); + virtual void setSorting (QDir::SortSpec); + virtual void readConfig (KConfig*, const QString& = QString ::null ); + virtual void writeConfig (KConfig*, const QString& = QString ::null ); + void mimeTypeDeterminationFinished (); + void determineIcon (KFileIconViewItem*); + QScrollView* scrollWidget () const; + +%If ( KDE_3_2_0 - ) + void setAcceptDrops (bool); +%End + + +public slots: + void showPreviews (); + +%If ( KDE_3_2_0 - ) + void zoomIn (); + void zoomOut (); +%End + + +%If ( KDE_3_1_0 - ) + virtual void arrangeItemsInGrid (bool = 1); +%End + + +protected: + virtual void keyPressEvent (QKeyEvent*); + virtual void hideEvent (QHideEvent*); + virtual void showEvent (QShowEvent*); + +%If ( KDE_3_0_1 - ) + virtual bool eventFilter (QObject*, QEvent*); + +%If ( KDE_3_2_0 - ) + virtual QDragObject* dragObject (); + virtual void contentsDragEnterEvent (QDragEnterEvent*); + virtual void contentsDragMoveEvent (QDragMoveEvent*); + virtual void contentsDragLeaveEvent (QDragLeaveEvent*); + virtual void contentsDropEvent (QDropEvent*); + bool acceptDrag (QDropEvent*) const; +%End + +%End + + +signals: + +%If ( KDE_3_2_0 - ) + void dropped (QDropEvent*, KFileItem*); + void dropped (QDropEvent*, const KURL::List&, const KURL&); +%End + + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KFileIconView + diff --git a/sip/kfile/kfilemod.sip.in b/sip/kfile/kfilemod.sip.in new file mode 100644 index 0000000..c3893e8 --- /dev/null +++ b/sip/kfile/kfilemod.sip.in @@ -0,0 +1,63 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kfile version KDE_3_5_2 + +%Copying + + This software is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License as + published by the Free Software Foundation; either version 2 of + the License, or (at your option) any later version. + + This software is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public + License along with this library; see the file COPYING. + If not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +%End + +%Module kfile + +%Import qt/qtmod.sip +%Import qtxml/qtxmlmod.sip +%Import dcopmod.sip +%Import kdecoremod.sip +%Import kdefxmod.sip +%Import kdeuimod.sip +%Import kiomod.sip + +%Include kcombiview.sip +%Include kdiroperator.sip +%Include kdirselectdialog.sip +%Include kdirsize.sip +%Include kfile.sip +%Include kfiledetailview.sip +%Include kfiledialog.sip +%Include kfilefiltercombo.sip +%Include kfileiconview.sip +%Include kfilepreview.sip +%Include kfiletreebranch.sip +%Include kfiletreeview.sip +%Include kfiletreeviewitem.sip +%Include kfileview.sip +%Include kicondialog.sip +%Include kimagefilepreview.sip +%Include kopenwith.sip +%Include kpreviewwidgetbase.sip +%Include kpropertiesdialog.sip +%Include krecentdocument.sip +%Include kurlbar.sip +%Include kurlcombobox.sip +%Include kurlrequester.sip +%Include kurlrequesterdlg.sip +@mark@ diff --git a/sip/kfile/kfilepreview.sip b/sip/kfile/kfilepreview.sip new file mode 100644 index 0000000..7757f98 --- /dev/null +++ b/sip/kfile/kfilepreview.sip @@ -0,0 +1,80 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kfile version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KFilePreview : QSplitter, KFileView +{ +%TypeHeaderCode +#include +%End + + +public: + KFilePreview (QWidget* /TransferThis/, const char*); + KFilePreview (KFileView*, QWidget* /TransferThis/, const char*); + virtual QWidget* widget (); + virtual void clearView (); + void setFileView (KFileView*); + KFileView* fileView () const; + virtual void updateView (bool); + virtual void updateView (const KFileItem*); + virtual void removeItem (const KFileItem*); + virtual void listingCompleted (); + virtual void setSelectionMode (KFile::SelectionMode); + virtual void setSelected (const KFileItem*, bool); + virtual bool isSelected (const KFileItem*) const; + virtual void clearSelection (); + virtual void selectAll (); + virtual void invertSelection (); + virtual void insertItem (KFileItem*); + virtual void clear (); + virtual void setCurrentItem (const KFileItem*); + virtual KFileItem* currentFileItem () const; + virtual KFileItem* firstFileItem () const; + virtual KFileItem* nextItem (const KFileItem*) const; + virtual KFileItem* prevItem (const KFileItem*) const; + virtual void setSorting (QDir::SortSpec); + +%If ( KDE_3_1_0 - ) + virtual void readConfig (KConfig*, const QString& = QString ::null ); + virtual void writeConfig (KConfig*, const QString& = QString ::null ); +%End + + virtual KActionCollection* actionCollection () const; + void ensureItemVisible (const KFileItem*); + void setPreviewWidget (const QWidget*, const KURL&); + +protected slots: + virtual void slotHighlighted (const KFileItem*); + +signals: + void showPreview (const KURL&); + void clearPreview (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KFilePreview + diff --git a/sip/kfile/kfilereader.sip b/sip/kfile/kfilereader.sip new file mode 100644 index 0000000..5313cd8 --- /dev/null +++ b/sip/kfile/kfilereader.sip @@ -0,0 +1,47 @@ +// +// Copyright 2003 Jim Bublitz +// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kfile version KDE_3_1_1 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KFileReader : KDirLister +{ +%TypeHeaderCode +#include +%End + + +public: + KFileReader (); + KFileReader (const KURL&, const QString& = QString::null); + bool isRoot () const; + bool isReadable () const; + +protected: + virtual KFileItem* createFileItem (const KIO::UDSEntry&, const KURL&, bool); + +private: + KFileReader (const KFileReader&); + +}; // class KFileReader + diff --git a/sip/kfile/kfilesharedlg.sip b/sip/kfile/kfilesharedlg.sip new file mode 100644 index 0000000..42f825b --- /dev/null +++ b/sip/kfile/kfilesharedlg.sip @@ -0,0 +1,53 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kfile version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_1_0 - ) + +class KFileSharePropsPlugin : KPropsDlgPlugin +{ +%TypeHeaderCode +#include +%End + + +public: + KFileSharePropsPlugin (KPropertiesDialog*); + virtual void applyChanges (); + static bool supports (const KFileItemList&); + QWidget* page () const; + +protected slots: + void slotConfigureFileSharing (); + +%If ( KDE_3_4_0 - ) + void slotConfigureFileSharingDone (); +%End + + +}; // class KFileSharePropsPlugin + +%End + diff --git a/sip/kfile/kfiletreebranch.sip b/sip/kfile/kfiletreebranch.sip new file mode 100644 index 0000000..707c5d6 --- /dev/null +++ b/sip/kfile/kfiletreebranch.sip @@ -0,0 +1,233 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kfile version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KFileTreeBranch : KDirLister +{ +%TypeHeaderCode +#include +%End + + +public: + KFileTreeBranch (KFileTreeView*, const KURL&, const QString&, const QPixmap&, bool = 0, KFileTreeViewItem* = 0); + KURL rootUrl () const; + virtual void setRoot (KFileTreeViewItem*); + KFileTreeViewItem* root (); + QString name () const; + virtual void setName (const QString); + const QPixmap& pixmap (); + const QPixmap& openPixmap (); + bool showExtensions () const; + void setOpen (bool = 1); + void setChildRecurse (bool = 1); + bool childRecurse (); + +public slots: + virtual bool populate (const KURL&, KFileTreeViewItem*); + virtual void setShowExtensions (bool = 1); + void setOpenPixmap (const QPixmap&); + +protected: + virtual KFileTreeViewItem* createTreeViewItem (KFileTreeViewItem* /Transfer/, KFileItem*); + +public: + +%If ( KDE_3_1_0 - ) + virtual KFileTreeViewItem* findTVIByURL (const KURL&); +%End + + +signals: + void populateFinished (KFileTreeViewItem*); + void newTreeViewItems (KFileTreeBranch*, KFileTreeViewItemList&); + void directoryChildCount (KFileTreeViewItem*, int); + +protected: +//igx virtual void virtual_hook (int, void*); + +protected: + +%If ( - KDE_3_1_0 ) + virtual KFileTreeViewItem* findTVIByURL (const KURL&); +%End + + +}; // class KFileTreeBranch + +typedef QPtrList KFileTreeBranchList; +//ig typedef QPtrListIterator KFileTreeBranchIterator; + + +%MappedType QPtrList +//converts a Python list of KFileTreeViewItem +{ +%TypeHeaderCode +#include +typedef QPtrList KFileTreeViewItemList; +%End + +%ConvertFromTypeCode + // Convert to a Python list of KFileTreeViewItem + + if (!sipCpp) + return PyList_New(0); + + PyObject *ftvilist; + + // Create the list + + if ((ftvilist = PyList_New(0)) == NULL) + return NULL; + + // Get it. + + QPtrList *cList = (QPtrList *)sipCpp; + PyObject *item; + KFileTreeViewItem *ftvi; + + for( ftvi = cList->first(); ftvi; ftvi = cList->next ()) + { + item = sipConvertFromInstance (ftvi, sipClass_KFileTreeViewItem, sipTransferObj); + if ((item == NULL) || (PyList_Append (ftvilist, item) < 0)) + { + Py_XDECREF (item); + Py_DECREF (ftvilist); + return NULL; + } + } + + return ftvilist; +%End + +%ConvertToTypeCode + // Convert a Python list to a KFileTreeViewItemList on the heap. + + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QPtrList *cList = new QPtrList; + + PyObject *elem; + int iserr = 0; + KFileTreeViewItem *ftvi; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + ftvi = (KFileTreeViewItem *)sipForceConvertToType(elem, sipType_KFileTreeViewItem, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + *sipIsErr = 1; + delete cList; + return 0; + } + + cList->append (ftvi); + } + + *sipCppPtr = cList; + + return 1; +%End +}; + + +%MappedType QPtrList +//converts a Python list of KFileTreeBranch +{ +%TypeHeaderCode +#include +//typedef QPtrList KFileTreeBList; +%End + +%ConvertFromTypeCode + // Convert to a Python list of KFileTreeBranch + + if (!sipCpp) + return PyList_New(0); + + PyObject *ftblist; + + // Create the list + + if ((ftblist = PyList_New(0)) == NULL) + return NULL; + + // Get it. + + QPtrList *cList = (QPtrList *)sipCpp; + PyObject *item; + KFileTreeBranch *ftb; + + for( ftb = cList->first(); ftb; ftb = cList->next ()) + { + item = sipConvertFromInstance (ftb, sipClass_KFileTreeBranch, sipTransferObj); + if ((item == NULL) || (PyList_Append (ftblist, item) < 0)) + { + Py_XDECREF (item); + Py_DECREF (ftblist); + return NULL; + } + } + + return ftblist; +%End + +%ConvertToTypeCode + // Convert a Python list to a KFileTreeBranchList on the heap. + + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QPtrList *cList = new QPtrList; + + PyObject *elem; + int iserr = 0; + KFileTreeBranch *ftb; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + ftb = (KFileTreeBranch *)sipForceConvertToType(elem, sipType_KFileTreeBranch, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + *sipIsErr = 1; + delete cList; + return 0; + } + + cList->append (ftb); + } + + *sipCppPtr = cList; + + return 1; +%End +}; + + diff --git a/sip/kfile/kfiletreeview.sip b/sip/kfile/kfiletreeview.sip new file mode 100644 index 0000000..4043e1c --- /dev/null +++ b/sip/kfile/kfiletreeview.sip @@ -0,0 +1,109 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kfile version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KFileTreeViewToolTip : QToolTip +{ +%TypeHeaderCode +#include +%End + + +public: + KFileTreeViewToolTip (QListView*); + +protected: + virtual void maybeTip (const QPoint&); + +}; // class KFileTreeViewToolTip + + +class KFileTreeView : KListView +{ +%TypeHeaderCode +#include +%End + + +public: + KFileTreeView (QWidget* /TransferThis/, const char* = 0); + KFileTreeViewItem* currentKFileTreeViewItem () const; + KURL currentURL () const; + KFileTreeBranch* addBranch (const KURL&, const QString&, bool = 0); + virtual KFileTreeBranch* addBranch (const KURL&, const QString&, const QPixmap&, bool = 0); + virtual KFileTreeBranch* addBranch (KFileTreeBranch*); + virtual bool removeBranch (KFileTreeBranch*); + KFileTreeBranch* branch (const QString&); + KFileTreeBranchList& branches (); + virtual void setDirOnlyMode (KFileTreeBranch*, bool); + KFileTreeViewItem* findItem (KFileTreeBranch*, const QString&); + KFileTreeViewItem* findItem (const QString&, const QString&); + bool showFolderOpenPixmap () const; + +public slots: + virtual void setShowFolderOpenPixmap (bool = 1); + +protected: + virtual bool acceptDrag (QDropEvent*) const; + virtual QDragObject* dragObject (); + virtual void startAnimation (KFileTreeViewItem*, const char* = "kde", uint = 6); + virtual void stopAnimation (KFileTreeViewItem*); + virtual void contentsDragEnterEvent (QDragEnterEvent*); + virtual void contentsDragMoveEvent (QDragMoveEvent*); + virtual void contentsDragLeaveEvent (QDragLeaveEvent*); + virtual void contentsDropEvent (QDropEvent*); + +protected slots: + virtual void slotNewTreeViewItems (KFileTreeBranch*, KFileTreeViewItemList&); + virtual void slotSetNextUrlToSelect (const KURL&); + virtual QPixmap itemIcon (KFileTreeViewItem*, int = 0) const; + +signals: + void onItem (const QString&); + void dropped (QWidget*, QDropEvent*); + void dropped (QWidget*, QDropEvent*, KURL::List&); + void dropped (KURL::List&, KURL&); + +%If ( KDE_3_2_0 - ) + void dropped (QWidget*, QDropEvent*, KURL::List&, KURL&); +%End + + void dropped (QDropEvent*, QListViewItem*); + void dropped (KFileTreeView*, QDropEvent*, QListViewItem*); + void dropped (QDropEvent*, QListViewItem*, QListViewItem*); + void dropped (KFileTreeView*, QDropEvent*, QListViewItem*, QListViewItem*); + +protected: + +protected: +//igx virtual void virtual_hook (int, void*); +//force + +private: + void slotOnItem (QListViewItem*); +//end + +}; // class KFileTreeView + diff --git a/sip/kfile/kfiletreeviewitem.sip b/sip/kfile/kfiletreeviewitem.sip new file mode 100644 index 0000000..57d99e7 --- /dev/null +++ b/sip/kfile/kfiletreeviewitem.sip @@ -0,0 +1,48 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kfile version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KFileTreeViewItem : KListViewItem +{ +%TypeHeaderCode +#include +%End + + +public: + KFileTreeViewItem (KFileTreeViewItem*, KFileItem*, KFileTreeBranch*); + KFileTreeViewItem (KFileTreeView*, KFileItem*, KFileTreeBranch*); + KFileTreeBranch* branch () const; + KFileItem* fileItem () const; + QString path () const; + KURL url () const; + bool isDir () const; + bool alreadyListed () const; + void setListed (bool); + +}; // class KFileTreeViewItem + +typedef QPtrList KFileTreeViewItemList; +//ig typedef QPtrListIterator KFileTreeViewItemListIterator; diff --git a/sip/kfile/kfileview.sip b/sip/kfile/kfileview.sip new file mode 100644 index 0000000..9078136 --- /dev/null +++ b/sip/kfile/kfileview.sip @@ -0,0 +1,153 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kfile version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KFileViewSignaler : QObject +{ +%TypeHeaderCode +#include +%End + + +public: + void activate (const KFileItem*); + void highlightFile (const KFileItem*); + void activateMenu (const KFileItem*, const QPoint&); + void changeSorting (QDir::SortSpec); + +%If ( KDE_3_2_0 - ) + void dropURLs (const KFileItem*, QDropEvent*, const KURL::List&); +%End + + +signals: + void dirActivated (const KFileItem*); + void sortingChanged (QDir::SortSpec); + void fileHighlighted (const KFileItem*); + void fileSelected (const KFileItem*); + void activatedMenu (const KFileItem*, const QPoint&); + +%If ( KDE_3_2_0 - ) + void dropped (const KFileItem*, QDropEvent*, const KURL::List&); +%End + + +}; // class KFileViewSignaler + + +class KFileView +{ +%TypeHeaderCode +#include +%End + + +public: + KFileView (); + void addItemList (const KFileItemList&); + virtual QWidget* widget () = 0; +//ig QWidget* widget () const; + void setCurrentItem (const QString&); + virtual void setCurrentItem (const KFileItem*) = 0; + virtual KFileItem* currentFileItem () const = 0; + virtual void clear (); + virtual void updateView (bool = 1); + virtual void updateView (const KFileItem*); + virtual void removeItem (const KFileItem*); + virtual void listingCompleted (); + QDir::SortSpec sorting () const; + virtual void setSorting (QDir::SortSpec); + bool isReversed () const; + void sortReversed (); + uint count () const; + uint numFiles () const; + uint numDirs () const; + virtual void setSelectionMode (KFile::SelectionMode); + virtual KFile::SelectionMode selectionMode () const; + + enum ViewMode + { + Files, + Directories, + All + }; + + virtual void setViewMode (KFileView::ViewMode); + virtual ViewMode viewMode () const; + QString viewName (); + void setViewName (const QString&); + virtual void setParentView (KFileView* /Transfer/); + virtual void insertItem (KFileItem*); + virtual void clearView () = 0; + virtual void ensureItemVisible (const KFileItem*) = 0; + virtual void clearSelection () = 0; + virtual void selectAll (); + virtual void invertSelection (); + virtual void setSelected (const KFileItem*, bool) = 0; + virtual bool isSelected (const KFileItem*) const = 0; + const KFileItemList* selectedItems () const; + const KFileItemList* items () const; + virtual KFileItem* firstFileItem () const = 0; + virtual KFileItem* nextItem (const KFileItem*) const = 0; + virtual KFileItem* prevItem (const KFileItem*) const = 0; + void setOnlyDoubleClickSelectsFiles (bool); + bool onlyDoubleClickSelectsFiles () const; + bool updateNumbers (const KFileItem*); + virtual KActionCollection* actionCollection () const; + KFileViewSignaler* signaler () const; + virtual void readConfig (KConfig*, const QString& = QString ::null ); + virtual void writeConfig (KConfig*, const QString& = QString ::null ); + +%If ( KDE_3_2_0 - ) + + enum DropOptions + { + AutoOpenDirs + }; + + void setDropOptions (int); + int dropOptions (); +%End + + static QString sortingKey (const QString&, bool, int); + static QString sortingKey (KIO::filesize_t, bool, int); + +%If ( KDE_3_2_0 - ) + static int autoOpenDelay (); +%End + + +protected: + +protected: +//igx virtual void virtual_hook (int, void*); + +%If ( KDE_3_2_0 - ) + void setDropOptions_impl (int); +%End + + +}; // class KFileView + diff --git a/sip/kfile/kfileviewitem.sip b/sip/kfile/kfileviewitem.sip new file mode 100644 index 0000000..717b22b --- /dev/null +++ b/sip/kfile/kfileviewitem.sip @@ -0,0 +1,58 @@ +// +// Copyright 2003 Jim Bublitz +// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kfile version KDE_3_1_1 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KFileViewItem : KFileItem +{ +%TypeHeaderCode +#include +%End + + +public: + KFileViewItem (const KURL&, const KIO::UDSEntry&); + KFileViewItem (mode_t, mode_t, const KURL&, bool); + KFileViewItem (const KFileViewItem&); + bool isFile () const; + QString urlString () const; + QPixmap pixmap (int, int = 0) const; + QPixmap pixmap () const; + QString date () const; + QString access () const; + void setViewItem (const KFileView*, const void*); +//ig const void* viewItem (const KFileView*) const; + static QString dateTime (time_t); + KFileViewItem* next () const; + void setNext (KFileViewItem*); + +protected: + QString parsePermissions (mode_t) const; + +}; // class KFileViewItem + +//ig typedef QList KFileViewItemList; +//ig typedef QListIterator KFileViewItemListIterator; + + diff --git a/sip/kfile/kicondialog.sip b/sip/kfile/kicondialog.sip new file mode 100644 index 0000000..dda1a0c --- /dev/null +++ b/sip/kfile/kicondialog.sip @@ -0,0 +1,131 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kfile version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KIconCanvas : KIconView +{ +%TypeHeaderCode +#include +%End + + +public: + KIconCanvas (QWidget* /TransferThis/ = 0, const char* = 0); + void loadFiles (const QStringList&); + QString getCurrent (); + +public slots: + void stopLoading (); + +signals: +//ig void nameChanged (QString); + void startLoading (int); + void progress (int); + void finished (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KIconCanvas + + +class KIconDialog : KDialogBase +{ +%TypeHeaderCode +#include +%End + + +public: + KIconDialog (QWidget* /TransferThis/ = 0, const char* = 0); + KIconDialog (KIconLoader*, QWidget* /TransferThis/ = 0, const char* = 0); + void setStrictIconSize (bool); + bool strictIconSize () const; + +%If ( KDE_3_1_0 - ) + void setCustomLocation (const QString&); +%End + + void setIconSize (int); + int iconSize () const; + QString selectIcon (KIcon::Group = KIcon ::Desktop , KIcon::Context = KIcon ::Application , bool = 0); + void setup (KIcon::Group, KIcon::Context = KIcon ::Application , bool = 0, int = 0, bool = 0); + +%If ( KDE_3_3_0 - ) + void setup (KIcon::Group, KIcon::Context, bool, int, bool, bool, bool); +%End + + QString openDialog (); + +%If ( KDE_3_2_0 - ) + void showDialog (); +%End + + static QString getIcon (KIcon::Group = KIcon ::Desktop , KIcon::Context = KIcon ::Application , bool = 0, int = 0, bool = 0, QWidget* /Transfer/ = 0, const QString& = QString ::null ); + +signals: + +%If ( KDE_3_2_0 - ) + void newIconName (const QString&); +%End + + +protected slots: + +%If ( KDE_3_2_0 - ) + void slotOk (); +%End + + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KIconDialog + + +class KIconButton : QPushButton +{ +%TypeHeaderCode +#include +%End + + +public: + KIconButton (QWidget* /TransferThis/ = 0, const char* = 0); + KIconButton (KIconLoader*, QWidget* /TransferThis/, const char* = 0); + void setStrictIconSize (bool); + bool strictIconSize () const; + void setIconType (KIcon::Group, KIcon::Context, bool = 0); + void setIcon (const QString&); + void resetIcon (); + const QString icon (); + void setIconSize (int); + int iconSize () const; + +signals: +//ig void iconChanged (QString); + +}; // class KIconButton + diff --git a/sip/kfile/kimagefilepreview.sip b/sip/kfile/kimagefilepreview.sip new file mode 100644 index 0000000..792eddb --- /dev/null +++ b/sip/kfile/kimagefilepreview.sip @@ -0,0 +1,57 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kfile version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KImageFilePreview : KPreviewWidgetBase +{ +%TypeHeaderCode +#include +#include +%End + + +public: + KImageFilePreview (QWidget* /TransferThis/); + virtual QSize sizeHint () const; + +public slots: + virtual void showPreview (const KURL&); + virtual void clearPreview (); + +protected slots: + void showPreview (); + void showPreview (const KURL&, bool); + void toggleAuto (bool); + virtual void gotPreview (const KFileItem*, const QPixmap&); + +protected: + virtual void resizeEvent (QResizeEvent*); + virtual KIO::PreviewJob* createJob (const KURL&, int, int); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KImageFilePreview + diff --git a/sip/kfile/knotifydialog.sip b/sip/kfile/knotifydialog.sip new file mode 100644 index 0000000..98b4fcb --- /dev/null +++ b/sip/kfile/knotifydialog.sip @@ -0,0 +1,314 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kfile version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_1_0 - ) + +class KNotifyDialog : KDialogBase +{ +%TypeHeaderCode +#include +%End + + +public: + KNotifyDialog (QWidget* /TransferThis/ = 0, const char* = 0, bool = 1, const KAboutData* = 0); +%MethodCode +//takes parent | (QWidget = 0) | name | (char = 0) | modal | (bool = 1) | aboutData | (KAboutData = see note) +//doc +// The default value for aboutData in C++ is KGlobal::instance()->aboutData() +// which sip is unable to parse. Since it's the last arg in the list, it has +// to have a default value, and since the C++ code will fail if the default +// value really is zero, the sip code silently substitutes the real default +// value for a default value of 0 supplied from Python. +//end + + if (a3 == 0) + a3 = (KAboutData *)KGlobal::instance ()->aboutData (); + + Py_BEGIN_ALLOW_THREADS + sipCpp = new sipKNotifyDialog (a0, a1, a2, a3); + Py_END_ALLOW_THREADS +%End + + static int configure (QWidget* /Transfer/ = 0, const char* = 0, const KAboutData* = 0); +%MethodCode +//returns (int) +//takes parent | (QWidget = 0) | name | (a Python string = "") | aboutData | (KAboutData = see note) +//doc +// The default value for aboutData in C++ is KGlobal::instance()->aboutData() +// which sip is unable to parse. Since it's the last arg in the list, it has +// to have a default value, and since the C++ code will fail if the default +// value really is zero, the sip code silently substitutes the real default +// value for a default value of 0 supplied from Python. +//end + + if (a2 == 0) + a2 = (KAboutData *)KGlobal::instance ()->aboutData (); + + Py_BEGIN_ALLOW_THREADS + sipRes = KNotifyDialog::configure (a0, a1, a2); + Py_END_ALLOW_THREADS +%End + + virtual void addApplicationEvents (const char*); + virtual void addApplicationEvents (const QString&); + virtual void clearApplicationEvents (); + +}; // class KNotifyDialog + +%End + + +%If ( KDE_3_1_0 - ) +namespace KNotify +{ +typedef QPtrList EventList; +//ig typedef QPtrListIterator ApplicationListIterator; +//ig typedef QPtrListIterator EventListIterator; + +class Application +{ +%TypeHeaderCode +#include +%End + + +public: + Application (const QString&); + QString text () const; + QString icon () const; + const KNotify::EventList& eventList (); + void reloadEvents (bool = 0); + void save (); + QString appName () const; + +}; // class Application + + +%If ( KDE_3_2_0 - ) + +//ig class KNotifyWidget : KNotifyWidgetBase; + +%End + + +class Event +{ +%TypeHeaderCode +#include +%End + + +public: + QString text () const; + int presentation; + int dontShow; + QString logfile; + QString soundfile; + QString commandline; + const KNotify::Application* application () const; + +private: + Event (const KNotify::Application*); + +}; // class Event + + +//ig class ListViewItem : QListViewItem; + + +%If ( - KDE_3_2_0 ) + +class KNotifyWidget : KNotifyWidgetBase +{ +%TypeHeaderCode +#include +#include +%End + + +public: + KNotifyWidget (QWidget* /TransferThis/ = 0, const char* = 0, bool = 0); + KListView* eventsView (); + void addVisibleApp (KNotify::Application*); + KNotify::Application* addApplicationEvents (const QString&); + void resetDefaults (bool); + void sort (bool = 1); + +public slots: + virtual void clear (); + virtual void clearVisible (); + virtual void save (); + virtual void showAdvanced (bool); + void toggleAdvanced (); + +signals: + void changed (bool); + +protected: + KNotify::Event* currentEvent (); + virtual void showEvent (QShowEvent*); + virtual void enableAll (int, bool); + void reload (bool = 0); + +protected slots: + void playSound (); + +public: + SIP_PYLIST visibleApps (); +%MethodCode +//returns (a Python list of KNotify.Application) + QPtrList applist; + + Py_BEGIN_ALLOW_THREADS + applist = sipCpp->visibleApps (); + Py_END_ALLOW_THREADS + + KNotify::Application *app; + PyObject *inst; + + for (app = applist.first (); app != 0; app = applist.next () ) + { + inst = sipConvertFromInstance (app, sipClass_KNotify_Application, NULL); + PyList_Append (sipRes, inst); + } +%End + + SIP_PYLIST allApps (); +%MethodCode +//returns (a Python list of KNotify.Application) + QPtrList applist; + + Py_BEGIN_ALLOW_THREADS + applist = sipCpp->allApps (); + Py_END_ALLOW_THREADS + + KNotify::Application *app; + PyObject *inst; + + for(app = applist.first (); app != 0; app = applist.next () ) + { + inst = sipConvertFromInstance (app, sipClass_KNotify_Application, NULL); + PyList_Append (sipRes, inst); + } +%End + + +}; // class KNotifyWidget + +%End + +//force + +class ApplicationList +{ +%TypeHeaderCode +#include +%End + + +}; // class ApplicationList + +//end +}; // namespace KNotify + +%End + + + +%If (KDE_3_1_0 - ) +%MappedType QPtrList +//converts a Python list of KNotify.Event +{ +%TypeHeaderCode +#include +#include +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New (0); + + PyObject *pylist; + + // Create the list + + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + // Get it. + + QPtrList *cpplist = (QPtrList *)sipCpp; + KNotify::Event *cpp; + PyObject *inst; + + // the loop depends on the type of iterator the tmeplate makes available + for(cpp = cpplist->first (); cpp != 0; cpp = cpplist->next () ) + { + if (((inst = sipConvertFromInstance (cpp, sipClass_KNotify_Event, sipTransferObj)) == NULL) + || PyList_Append (pylist, inst) < 0) + { + Py_DECREF (pylist); + return NULL; + } + } + + return pylist; +%End + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QPtrList *cpplist = new QPtrList; + + PyObject *elem; + KNotify::Event *cpp; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + cpp = (KNotify::Event *)sipForceConvertToType(elem, sipType_KNotify_Event, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + *sipIsErr = 1; + delete cpplist; + return 0; + } + + cpplist->append (cpp); + } + + *sipCppPtr = cpplist; + + return 1; +%End +}; +%End + + diff --git a/sip/kfile/knotifywidgetbase.sip b/sip/kfile/knotifywidgetbase.sip new file mode 100644 index 0000000..98f8238 --- /dev/null +++ b/sip/kfile/knotifywidgetbase.sip @@ -0,0 +1,64 @@ +// +// Copyright 2003 Jim Bublitz +// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kfile version KDE_3_1_4 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_1_0 - KDE_3_2_0 ) + +class KNotifyWidgetBase : QWidget +{ +%TypeHeaderCode +#include +%End + + +public: + KNotifyWidgetBase (QWidget*/TransferThis/ = 0, const char* = 0, WFlags = 0); + KListView* m_listview; + QGroupBox* m_actionsBox; + KURLRequester* m_logfilePath; + KURLRequester* m_soundPath; + QCheckBox* m_logToFile; + KURLRequester* m_executePath; + QCheckBox* m_playSound; + QPushButton* m_playButton; + QCheckBox* m_execute; + QCheckBox* m_messageBox; + QCheckBox* m_passivePopup; + QCheckBox* m_stderr; + QGroupBox* m_controlsBox; + QCheckBox* m_affectAllApps; + QPushButton* m_buttonDisable; + QPushButton* m_buttonEnable; + KComboBox* m_comboEnable; + KComboBox* m_comboDisable; + QPushButton* m_extension; + QPushButton* m_playerButton; + +protected: + +}; // class KNotifyWidgetBase + +%End + diff --git a/sip/kfile/kopenwith.sip b/sip/kfile/kopenwith.sip new file mode 100644 index 0000000..2a8f2f9 --- /dev/null +++ b/sip/kfile/kopenwith.sip @@ -0,0 +1,146 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kfile version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KOpenWithDlg : QDialog +{ +%TypeHeaderCode +#include +%End + + +public: + KOpenWithDlg (const KURL::List&, QWidget* /TransferThis/ = 0); + KOpenWithDlg (const KURL::List&, const QString&, const QString&, QWidget* /TransferThis/ = 0); + KOpenWithDlg (const QString&, const QString&, QWidget* /TransferThis/ = 0); + +%If ( KDE_3_1_0 - ) + KOpenWithDlg (QWidget* /TransferThis/ = 0); +%End + + QString text (); + +%If ( KDE_3_2_0 - ) + void hideNoCloseOnExit (); + void hideRunInTerminal (); +%End + + KService::Ptr service (); + +%If ( KDE_3_2_0 - ) + void setSaveNewApplications (bool); +%End + + +public slots: + void slotClear (); + void slotSelected (const QString&, const QString&); + void slotHighlighted (const QString&, const QString&); + void slotTextChanged (); + void slotTerminalToggled (bool); + void slotDbClick (); + void slotOK (); + +protected slots: + virtual void accept (); + +protected: + void setServiceType (const KURL::List&); + void init (const QString&, const QString&); + +}; // class KOpenWithDlg + + +class KFileOpenWithHandler : KOpenWithHandler +{ +%TypeHeaderCode +#include +%End + + +public: + KFileOpenWithHandler (); + virtual bool displayOpenWithDialog (const KURL::List&); + +}; // class KFileOpenWithHandler + + +%If ( - KDE_3_1_0 ) + +class KAppTreeListItem : QListViewItem +{ +%TypeHeaderCode +#include +%End + + +protected: + QString key (int, bool) const; + void init (const QPixmap&, bool, bool, QString, QString); + +public: + KAppTreeListItem (KListView* /TransferThis/, const QString&, const QPixmap&, bool, bool, QString, QString); + KAppTreeListItem (QListViewItem* /TransferThis/, const QString&, const QPixmap&, bool, bool, QString, QString); + bool isDirectory (); + +protected: + virtual void activate (); + virtual void setOpen (bool); + +}; // class KAppTreeListItem + +%End + + +%If ( - KDE_3_1_0 ) + +class KApplicationTree : KListView +{ +%TypeHeaderCode +#include +%End + + +public: + KApplicationTree (QWidget* /TransferThis/); + void addDesktopGroup (QString, KAppTreeListItem* = 0); + KAppTreeListItem* it; + bool isDirSel (); + +protected: + void resizeEvent (QResizeEvent*); + +public slots: + void slotItemHighlighted (QListViewItem*); + void slotSelectionChanged (QListViewItem*); + +signals: + void selected (const QString&, const QString&); + void highlighted (const QString&, const QString&); + +}; // class KApplicationTree + +%End + diff --git a/sip/kfile/kpreviewwidgetbase.sip b/sip/kfile/kpreviewwidgetbase.sip new file mode 100644 index 0000000..7c967bf --- /dev/null +++ b/sip/kfile/kpreviewwidgetbase.sip @@ -0,0 +1,57 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kfile version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KPreviewWidgetBase : QWidget +{ +%TypeHeaderCode +#include +%End + + +public: + KPreviewWidgetBase (QWidget* /TransferThis/, const char* = 0); + +public slots: + virtual void showPreview (const KURL&) = 0; + virtual void clearPreview () = 0; + +%If ( KDE_3_2_0 - ) + QStringList supportedMimeTypes () const; +%End + + +protected: + +%If ( KDE_3_2_0 - ) + void setSupportedMimeTypes (const QStringList&); +%End + + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KPreviewWidgetBase + diff --git a/sip/kfile/kpropertiesdialog.sip b/sip/kfile/kpropertiesdialog.sip new file mode 100644 index 0000000..09246a6 --- /dev/null +++ b/sip/kfile/kpropertiesdialog.sip @@ -0,0 +1,304 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kfile version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KPropertiesDialog : KDialogBase +{ +%TypeHeaderCode +#include +%End + + +public: + static bool canDisplay (KFileItemList); + KPropertiesDialog (KFileItem*, QWidget* /TransferThis/ = 0, const char* = 0, bool = 0, bool = 1); + KPropertiesDialog (KFileItemList, QWidget* /TransferThis/ = 0, const char* = 0, bool = 0, bool = 1); + KPropertiesDialog (const KURL&, mode_t, QWidget* /TransferThis/ = 0, const char* = 0, bool = 0, bool = 1); + KPropertiesDialog (const KURL&, QWidget* /TransferThis/ = 0, const char* = 0, bool = 0, bool = 1); + KPropertiesDialog (const KURL&, const KURL&, const QString&, QWidget* /TransferThis/ = 0, const char* = 0, bool = 0, bool = 1); + KPropertiesDialog (const QString&, QWidget* /TransferThis/ = 0, const char* = 0, bool = 0); + +%If ( KDE_3_4_0 - ) + static bool showDialog (KFileItem*, QWidget* /Transfer/ = 0, const char* = 0, bool = 0); + static bool showDialog (const KURL&, QWidget* /Transfer/ = 0, const char* = 0, bool = 0); + static bool showDialog (const KFileItemList&, QWidget* /Transfer/ = 0, const char* = 0, bool = 0); +%End + + void insertPlugin (KPropsDlgPlugin*); + const KURL& kurl () const; + KFileItem* item (); + KFileItemList items () const; + KDialogBase* dialog (); + const KURL& currentDir () const; + const QString& defaultName () const; + void updateUrl (const KURL&); + void rename (const QString&); + void abortApplying (); + +%If ( KDE_3_1_0 - ) + void showFileSharingPage (); + +%If ( KDE_3_3_0 - ) + void setFileSharingPage (QWidget*); +%End + + +%If ( KDE_3_2_0 - ) + void setFileNameReadOnly (bool); +%End + +%End + + +public slots: + virtual void slotOk (); + virtual void slotCancel (); + +signals: + void propertiesClosed (); + void applied (); + void canceled (); + +%If ( KDE_3_2_0 - ) + void saveAs (const KURL&, KURL&); +%End + + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KPropertiesDialog + + +class KPropsDlgPlugin : QObject +{ +%TypeHeaderCode +#include +%End + + +public: + KPropsDlgPlugin (KPropertiesDialog*); + virtual void applyChanges (); + static bool isDesktopFile (KFileItem*); + void setDirty (bool); + bool isDirty () const; + +public slots: + void setDirty (); + +signals: + void changed (); + +protected: + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KPropsDlgPlugin + + +class KFilePropsPlugin : KPropsDlgPlugin +{ +%TypeHeaderCode +#include +%End + + +public: + KFilePropsPlugin (KPropertiesDialog*); + virtual void applyChanges (); + static bool supports (KFileItemList); + void postApplyChanges (); + +%If ( KDE_3_2_0 - ) + void setFileNameReadOnly (bool); +%End + + +protected slots: + +%If ( KDE_3_2_0 - ) + void slotEditFileType (); +%End + + void slotCopyFinished (KIO::Job*); + void slotFileRenamed (KIO::Job*, const KURL&, const KURL&); + +%If ( KDE_3_2_0 - ) + void slotDirSizeUpdate (); +%End + + void slotDirSizeFinished (KIO::Job*); + void slotFoundMountPoint (const QString&, ulong, ulong, ulong); + void slotSizeStop (); + void slotSizeDetermine (); + +}; // class KFilePropsPlugin + + +class KFilePermissionsPropsPlugin : KPropsDlgPlugin +{ +%TypeHeaderCode +#include +%End + + +public: + +%If ( KDE_3_2_0 - ) + + enum PermissionsMode + { + PermissionsOnlyFiles, + PermissionsOnlyDirs, + PermissionsOnlyLinks, + PermissionsMixed + }; + + + enum PermissionsTarget + { + PermissionsOwner, + PermissionsGroup, + PermissionsOthers + }; + +%End + + KFilePermissionsPropsPlugin (KPropertiesDialog*); + virtual void applyChanges (); + static bool supports (KFileItemList); + +}; // class KFilePermissionsPropsPlugin + + +class KURLPropsPlugin : KPropsDlgPlugin +{ +%TypeHeaderCode +#include +%End + + +public: + KURLPropsPlugin (KPropertiesDialog*); + virtual void applyChanges (); + static bool supports (KFileItemList); + +}; // class KURLPropsPlugin + + +class KBindingPropsPlugin : KPropsDlgPlugin +{ +%TypeHeaderCode +#include +%End + + +public: + KBindingPropsPlugin (KPropertiesDialog*); + virtual void applyChanges (); + static bool supports (KFileItemList); + +}; // class KBindingPropsPlugin + + +class KDevicePropsPlugin : KPropsDlgPlugin +{ +%TypeHeaderCode +#include +%End + + +public: + KDevicePropsPlugin (KPropertiesDialog*); + virtual void applyChanges (); + static bool supports (KFileItemList); + +}; // class KDevicePropsPlugin + + +%If ( KDE_3_2_0 - ) + +class KDesktopPropsPlugin : KPropsDlgPlugin +{ +%TypeHeaderCode +#include +%End + + +public: + KDesktopPropsPlugin (KPropertiesDialog*); + virtual void applyChanges (); + static bool supports (KFileItemList); + +public slots: + void slotAddFiletype (); + void slotDelFiletype (); + void slotBrowseExec (); + void slotAdvanced (); + void slotSelectMimetype (); + +}; // class KDesktopPropsPlugin + +%End + + +class KExecPropsPlugin : KPropsDlgPlugin +{ +%TypeHeaderCode +#include +%End + + +public: + KExecPropsPlugin (KPropertiesDialog*); + virtual void applyChanges (); + static bool supports (KFileItemList); + +public slots: + void slotBrowseExec (); + +}; // class KExecPropsPlugin + + +class KApplicationPropsPlugin : KPropsDlgPlugin +{ +%TypeHeaderCode +#include +%End + + +public: + KApplicationPropsPlugin (KPropertiesDialog*); + virtual void applyChanges (); + static bool supports (KFileItemList); + +public slots: + void slotDelExtension (); + void slotAddExtension (); + +}; // class KApplicationPropsPlugin + diff --git a/sip/kfile/kpropsdlg.sip b/sip/kfile/kpropsdlg.sip new file mode 100644 index 0000000..d435f14 --- /dev/null +++ b/sip/kfile/kpropsdlg.sip @@ -0,0 +1,208 @@ +// +// Copyright 2003 Jim Bublitz +// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kfile version KDE_3_1_1 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KPropertiesDialog : KDialogBase +{ +%TypeHeaderCode +#include +%End + + +public: + static bool canDisplay (KFileItemList); + KPropertiesDialog (KFileItem*, QWidget*/TransferThis/ = 0, const char* = 0, bool = 0, bool = 1); + KPropertiesDialog (KFileItemList, QWidget*/TransferThis/ = 0, const char* = 0, bool = 0, bool = 1); + KPropertiesDialog (const KURL&, mode_t = -1, QWidget*/TransferThis/ = 0, const char* = 0, bool = 0, bool = 1); + KPropertiesDialog (const KURL&, const KURL&, const QString&, QWidget*/TransferThis/ = 0, const char* = 0, bool = 0, bool = 1); + KPropertiesDialog (const QString&, QWidget*/TransferThis/ = 0, const char* = 0, bool = 0); + void insertPlugin (KPropsDlgPlugin*); + const KURL& kurl () const; + KFileItem* item (); + KFileItemList items () const; + KDialogBase* dialog (); + const KURL& currentDir () const; + const QString& defaultName () const; + void updateUrl (const KURL&); + void rename (const QString&); + void abortApplying (); + +public slots: + virtual void slotOk (); + virtual void slotCancel (); + +signals: + void propertiesClosed (); + void applied (); + void canceled (); + +}; // class KPropertiesDialog + + +class KPropsDlgPlugin : QObject +{ +%TypeHeaderCode +#include +%End + + +public: + KPropsDlgPlugin (KPropertiesDialog*); + virtual void applyChanges (); + static bool isDesktopFile (KFileItem*); + void setDirty (bool); + bool isDirty () const; + +public slots: + void setDirty (); + +signals: + void changed (); + +protected: + +}; // class KPropsDlgPlugin + + +class KFilePropsPlugin : KPropsDlgPlugin +{ +%TypeHeaderCode +#include +%End + + +public: + KFilePropsPlugin (KPropertiesDialog*); + virtual void applyChanges (); + static bool supports (KFileItemList); + void postApplyChanges (); + +protected slots: + void slotCopyFinished (KIO::Job*); + void slotFileRenamed (KIO::Job*, const KURL&, const KURL&); + void slotDirSizeFinished (KIO::Job*); + void slotFoundMountPoint (const QString&, ulong, ulong, ulong); + void slotSizeStop (); + void slotSizeDetermine (); + +}; // class KFilePropsPlugin + + +class KFilePermissionsPropsPlugin : KPropsDlgPlugin +{ +%TypeHeaderCode +#include +%End + + +public: + KFilePermissionsPropsPlugin (KPropertiesDialog*); + virtual void applyChanges (); + static bool supports (KFileItemList); + +}; // class KFilePermissionsPropsPlugin + + +class KExecPropsPlugin : KPropsDlgPlugin +{ +%TypeHeaderCode +#include +%End + + +public: + KExecPropsPlugin (KPropertiesDialog*); + virtual void applyChanges (); + static bool supports (KFileItemList); + +public slots: + void slotBrowseExec (); + +}; // class KExecPropsPlugin + + +class KURLPropsPlugin : KPropsDlgPlugin +{ +%TypeHeaderCode +#include +%End + + +public: + KURLPropsPlugin (KPropertiesDialog*); + virtual void applyChanges (); + static bool supports (KFileItemList); + +}; // class KURLPropsPlugin + + +class KApplicationPropsPlugin : KPropsDlgPlugin +{ +%TypeHeaderCode +#include +%End + + +public: + KApplicationPropsPlugin (KPropertiesDialog*); + virtual void applyChanges (); + static bool supports (KFileItemList); + +public slots: + void slotDelExtension (); + void slotAddExtension (); + +}; // class KApplicationPropsPlugin + + +class KBindingPropsPlugin : KPropsDlgPlugin +{ +%TypeHeaderCode +#include +%End + + +public: + KBindingPropsPlugin (KPropertiesDialog*); + virtual void applyChanges (); + static bool supports (KFileItemList); + +}; // class KBindingPropsPlugin + + +class KDevicePropsPlugin : KPropsDlgPlugin +{ +%TypeHeaderCode +#include +%End + + +public: + KDevicePropsPlugin (KPropertiesDialog*); + virtual void applyChanges (); + static bool supports (KFileItemList); + +}; // class KDevicePropsPlugin + diff --git a/sip/kfile/krecentdirs.sip b/sip/kfile/krecentdirs.sip new file mode 100644 index 0000000..2cc0b16 --- /dev/null +++ b/sip/kfile/krecentdirs.sip @@ -0,0 +1,40 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kfile version KDE_3_5_0 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KRecentDirs +{ +%TypeHeaderCode +#include +%End + + +public: + static QStringList list (const QString&); + static QString dir (const QString&); + static void add (const QString&, const QString&); + +}; // class KRecentDirs + diff --git a/sip/kfile/krecentdocument.sip b/sip/kfile/krecentdocument.sip new file mode 100644 index 0000000..af6ab70 --- /dev/null +++ b/sip/kfile/krecentdocument.sip @@ -0,0 +1,44 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kfile version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KRecentDocument +{ +%TypeHeaderCode +#include +%End + + +public: + static QStringList recentDocuments (); + static void add (const KURL&); + static void add (const KURL&, const QString&); + static void add (const QString&, bool = 0); + static void clear (); + static int maximumItems (); + static QString recentDocumentDirectory (); + +}; // class KRecentDocument + diff --git a/sip/kfile/kurlbar.sip b/sip/kfile/kurlbar.sip new file mode 100644 index 0000000..c826de3 --- /dev/null +++ b/sip/kfile/kurlbar.sip @@ -0,0 +1,213 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kfile version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KURLBarItem : QListBoxPixmap +{ +%TypeHeaderCode +#include +%End + + +public: + +%If ( KDE_3_2_0 - ) + KURLBarItem (KURLBar* /TransferThis/, const KURL&, bool, const QString& = QString ::null , const QString& = QString ::null , KIcon::Group = KIcon ::Panel ); +%End + + KURLBarItem (KURLBar* /TransferThis/, const KURL&, const QString& = QString ::null , const QString& = QString ::null , KIcon::Group = KIcon ::Panel ); + void setURL (const KURL&); + void setIcon (const QString&, KIcon::Group = KIcon ::Panel ); + void setDescription (const QString&); + void setToolTip (const QString&); + +%If ( KDE_3_0_1 - ) + QSize sizeHint () const; +%End + + virtual int width (const QListBox*) const; + virtual int height (const QListBox*) const; + const KURL& url () const; + const QString& description () const; + const QString& icon () const; + QString toolTip () const; + KIcon::Group iconGroup () const; + virtual const QPixmap* pixmap () const; + void setApplicationLocal (bool); + bool applicationLocal () const; + +%If ( KDE_3_2_0 - ) + bool isPersistent () const; +%End + + +protected: + virtual void paint (QPainter*); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KURLBarItem + + +class KURLBar : QFrame +{ +%TypeHeaderCode +#include +%End + + +public: + KURLBar (bool, QWidget* /TransferThis/ = 0, const char* = 0, WFlags = 0); + virtual KURLBarItem* insertItem (const KURL&, const QString&, bool = 1, const QString& = QString ::null , KIcon::Group = KIcon ::Panel ); + +%If ( KDE_3_2_0 - ) + virtual KURLBarItem* insertDynamicItem (const KURL&, const QString&, const QString& = QString ::null , KIcon::Group = KIcon ::Panel ); +%End + + virtual void setOrientation (Qt::Orientation); + Qt::Orientation orientation () const; + virtual void setListBox (KURLBarListBox*); + KURLBarListBox* listBox () const; + virtual void setIconSize (int); + int iconSize () const; + virtual void clear (); + virtual QSize sizeHint () const; + virtual QSize minimumSizeHint () const; + virtual void readConfig (KConfig*, const QString&); + virtual void writeConfig (KConfig*, const QString&); + virtual void readItem (int, KConfig*, bool); + virtual void writeItem (KURLBarItem*, int, KConfig*, bool); + KURLBarItem* currentItem () const; + KURL currentURL () const; + bool isModified () const; + +%If ( KDE_3_1_1 - ) + bool isImmutable () const; +%End + + +%If ( KDE_3_0_1 - ) + bool isVertical () const; +%End + + +public slots: + virtual void setCurrentItem (const KURL&); + +signals: + void activated (const KURL&); + +protected: + virtual bool addNewItem (); + virtual bool editItem (KURLBarItem*); + virtual void resizeEvent (QResizeEvent*); + +%If ( KDE_3_4_0 - ) + virtual void paletteChange (const QPalette&); +%End + + +protected slots: + virtual void slotContextMenuRequested (QListBoxItem*, const QPoint&); + virtual void slotSelected (QListBoxItem*); + virtual void slotDropped (QDropEvent*); + +protected: +//igx virtual void virtual_hook (int, void*); + +protected: + +%If ( - KDE_3_0_1 ) + bool isVertical () const; +%End + + +}; // class KURLBar + + +class KURLBarListBox : KListBox +{ +%TypeHeaderCode +#include +%End + + +public: + KURLBarListBox (QWidget* /TransferThis/ = 0, const char* = 0); + virtual void setOrientation (Qt::Orientation); + Qt::Orientation orientation () const; + +%If ( KDE_3_0_1 - ) + bool isVertical () const; +%End + + +signals: + void dropped (QDropEvent*); + +protected: + virtual QDragObject* dragObject (); + virtual void contentsDragEnterEvent (QDragEnterEvent*); + virtual void contentsDropEvent (QDropEvent*); + +%If ( KDE_3_2_0 - ) + virtual void contextMenuEvent (QContextMenuEvent*); + +%If ( KDE_3_4_0 - ) + virtual void paintEvent (QPaintEvent*); +%End + +%End + + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KURLBarListBox + + +class KURLBarItemDialog : KDialogBase +{ +%TypeHeaderCode +#include +%End + + +public: + static bool getInformation (bool, KURL&, QString&, QString&, bool&, int, QWidget* /Transfer/ = 0); + KURLBarItemDialog (bool, const KURL&, const QString&, QString, bool = 1, int = KIcon ::SizeMedium , QWidget* /TransferThis/ = 0, const char* = 0); + KURL url () const; + QString description () const; + QString icon () const; + bool applicationLocal () const; + +protected: + +public slots: + void urlChanged (const QString&); + +}; // class KURLBarItemDialog + diff --git a/sip/kfile/kurlcombobox.sip b/sip/kfile/kurlcombobox.sip new file mode 100644 index 0000000..f696ef8 --- /dev/null +++ b/sip/kfile/kurlcombobox.sip @@ -0,0 +1,80 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kfile version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KURLComboBox : KComboBox +{ +%TypeHeaderCode +#include +%End + + +public: + + enum Mode + { + Files, + Directories, + Both + }; + + + enum OverLoadResolving + { + RemoveTop, + RemoveBottom + }; + + KURLComboBox (KURLComboBox::Mode, QWidget* /TransferThis/ = 0, const char* = 0); + KURLComboBox (KURLComboBox::Mode, bool, QWidget* /TransferThis/ = 0, const char* = 0); + void setURL (const KURL&); + void setURLs (QStringList); + void setURLs (QStringList, KURLComboBox::OverLoadResolving); + QStringList urls () const; + void setMaxItems (int); + int maxItems () const; + void addDefaultURL (const KURL&, const QString& = QString ::null ); + void addDefaultURL (const KURL&, const QPixmap&, const QString& = QString ::null ); + void setDefaults (); + void removeURL (const KURL&, bool = 1); + +signals: + void urlActivated (const KURL&); + +protected slots: + void slotActivated (int); + +protected: + +//ig class _KURLComboItem; + +//ig typedef KURLComboBox::_KURLComboItem KURLComboItem; + void init (KURLComboBox::Mode); +//ig void insertURLItem (const KURLComboBox::KURLComboItem*); + QPixmap getPixmap (const KURL&) const; +//ig void updateItem (const KURLComboBox::KURLComboItem*, int, const QPixmap&); + +}; // class KURLComboBox + diff --git a/sip/kfile/kurlrequester.sip b/sip/kfile/kurlrequester.sip new file mode 100644 index 0000000..c6103b6 --- /dev/null +++ b/sip/kfile/kurlrequester.sip @@ -0,0 +1,112 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kfile version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KURLRequester : QHBox +{ +%TypeHeaderCode +#include +%End + + +public: + KURLRequester (QWidget* /TransferThis/ = 0, const char* = 0); + KURLRequester (const QString&, QWidget* /TransferThis/ = 0, const char* = 0); + KURLRequester (QWidget*, QWidget* /TransferThis/, const char* = 0); + QString url () const; + void setShowLocalProtocol (bool); + void setMode (uint); + +%If ( KDE_3_3_0 - ) + uint mode () const; +%End + + void setFilter (const QString&); + +%If ( KDE_3_3_0 - ) + QString filter () const; +%End + + bool showLocalProtocol () const; + virtual KFileDialog* fileDialog () const; + KLineEdit* lineEdit () const; + KComboBox* comboBox () const; + KPushButton* button () const; + KURLCompletion* completionObject () const; + +%If ( KDE_3_1_0 - ) + KEditListBox::CustomEditor customEditor (); +%End + + +public slots: + void setURL (const QString&); + +%If ( KDE_3_4_0 - ) + void setKURL (const KURL&); +%End + + +%If ( KDE_3_1_0 - ) + virtual void setCaption (const QString&); +%End + + void clear (); + +signals: + void textChanged (const QString&); + void returnPressed (); + void returnPressed (const QString&); + void openFileDialog (KURLRequester*); + void urlSelected (const QString&); + +protected: + void init (); + +protected slots: + void slotOpenDialog (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KURLRequester + + +%If ( KDE_3_2_0 - ) + +class KURLComboRequester : KURLRequester +{ +%TypeHeaderCode +#include +%End + + +public: + KURLComboRequester (QWidget* /TransferThis/ = 0, const char* = 0); + +}; // class KURLComboRequester + +%End + diff --git a/sip/kfile/kurlrequesterdlg.sip b/sip/kfile/kurlrequesterdlg.sip new file mode 100644 index 0000000..a61408d --- /dev/null +++ b/sip/kfile/kurlrequesterdlg.sip @@ -0,0 +1,43 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kfile version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KURLRequesterDlg : KDialogBase +{ +%TypeHeaderCode +#include +%End + + +public: + KURLRequesterDlg (const QString&, QWidget* /TransferThis/, const char*, bool = 1); + KURLRequesterDlg (const QString&, const QString&, QWidget* /TransferThis/, const char*, bool = 1); + KURL selectedURL () const; + static KURL getURL (const QString& = QString ::null , QWidget* /Transfer/ = 0, const QString& = QString ::null ); + KFileDialog* fileDialog (); + KURLRequester* urlRequester (); + +}; // class KURLRequesterDlg + diff --git a/sip/khtml/css_rule.sip b/sip/khtml/css_rule.sip new file mode 100644 index 0000000..74ceb1b --- /dev/null +++ b/sip/khtml/css_rule.sip @@ -0,0 +1,259 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module khtml version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +namespace DOM +{ + +class CSSRule +{ +%TypeHeaderCode +#include +%End + + +public: + CSSRule (); + CSSRule (const DOM::CSSRule&); +//ig CSSRule (CSSRuleImpl*); + +public: + +%If ( KDE_3_2_0 - ) + + enum RuleType + { + UNKNOWN_RULE, + STYLE_RULE, + CHARSET_RULE, + IMPORT_RULE, + MEDIA_RULE, + FONT_FACE_RULE, + PAGE_RULE, + QUIRKS_RULE + }; + +%End + + ushort type () const; + DOM::DOMString cssText () const; + void setCssText (const DOM::DOMString&); + DOM::CSSStyleSheet parentStyleSheet () const; + DOM::CSSRule parentRule () const; +//ig CSSRuleImpl* handle () const; + bool isNull () const; + +protected: + +%If ( KDE_3_0_1 - ) + void assignOther (const DOM::CSSRule&, DOM::CSSRule::RuleType); +%End + + +public: + +%If ( - KDE_3_2_0 ) + + enum RuleType + { + UNKNOWN_RULE, + STYLE_RULE, + CHARSET_RULE, + IMPORT_RULE, + MEDIA_RULE, + FONT_FACE_RULE, + PAGE_RULE + }; + +%End + + +}; // class CSSRule + + +class CSSCharsetRule : DOM::CSSRule +{ +%TypeHeaderCode +#include +%End + + +public: + CSSCharsetRule (); + CSSCharsetRule (const DOM::CSSCharsetRule&); + CSSCharsetRule (const DOM::CSSRule&); +//ig CSSCharsetRule (CSSCharsetRuleImpl*); + +public: + DOM::DOMString encoding () const; + void setEncoding (const DOM::DOMString&); + +}; // class CSSCharsetRule + + +class CSSFontFaceRule : DOM::CSSRule +{ +%TypeHeaderCode +#include +%End + + +public: + CSSFontFaceRule (); + CSSFontFaceRule (const DOM::CSSFontFaceRule&); + CSSFontFaceRule (const DOM::CSSRule&); +//ig CSSFontFaceRule (CSSFontFaceRuleImpl*); + +public: + DOM::CSSStyleDeclaration style () const; + +}; // class CSSFontFaceRule + + +class CSSImportRule : DOM::CSSRule +{ +%TypeHeaderCode +#include +%End + + +public: + CSSImportRule (); + CSSImportRule (const DOM::CSSImportRule&); + CSSImportRule (const DOM::CSSRule&); +//ig CSSImportRule (CSSImportRuleImpl*); + +public: + DOM::DOMString href () const; + DOM::MediaList media () const; + DOM::CSSStyleSheet styleSheet () const; + +}; // class CSSImportRule + + +class CSSMediaRule : DOM::CSSRule +{ +%TypeHeaderCode +#include +%End + + +public: + CSSMediaRule (); + CSSMediaRule (const DOM::CSSMediaRule&); + CSSMediaRule (const DOM::CSSRule&); +//ig CSSMediaRule (CSSMediaRuleImpl*); + +public: + DOM::MediaList media () const; + DOM::CSSRuleList cssRules () const; + ulong insertRule (const DOM::DOMString&, ulong); + void deleteRule (ulong); + +}; // class CSSMediaRule + + +class CSSPageRule : DOM::CSSRule +{ +%TypeHeaderCode +#include +%End + + +public: + CSSPageRule (); + CSSPageRule (const DOM::CSSPageRule&); + CSSPageRule (const DOM::CSSRule&); +//ig CSSPageRule (CSSPageRuleImpl*); + +public: + DOM::DOMString selectorText () const; + void setSelectorText (const DOM::DOMString&); + DOM::CSSStyleDeclaration style () const; + +}; // class CSSPageRule + + +class CSSStyleRule : DOM::CSSRule +{ +%TypeHeaderCode +#include +%End + + +public: + CSSStyleRule (); + CSSStyleRule (const DOM::CSSStyleRule&); + CSSStyleRule (const DOM::CSSRule&); +//ig CSSStyleRule (CSSStyleRuleImpl*); + +public: + DOM::DOMString selectorText () const; + void setSelectorText (const DOM::DOMString&); + DOM::CSSStyleDeclaration style () const; + +}; // class CSSStyleRule + + +class CSSUnknownRule : DOM::CSSRule +{ +%TypeHeaderCode +#include +%End + + +public: + CSSUnknownRule (); + CSSUnknownRule (const DOM::CSSUnknownRule&); + CSSUnknownRule (const DOM::CSSRule&); +//ig CSSUnknownRule (CSSUnknownRuleImpl*); + +}; // class CSSUnknownRule + + +class CSSRuleList +{ +%TypeHeaderCode +#include +%End + + +public: + CSSRuleList (); + CSSRuleList (const DOM::CSSRuleList&); +//ig CSSRuleList (CSSRuleListImpl*); +//ig CSSRuleList (StyleListImpl*); + +public: + ulong length () const; + DOM::CSSRule item (ulong); +//ig CSSRuleListImpl* handle () const; + bool isNull () const; + +protected: + +}; // class CSSRuleList + +}; // namespace DOM + diff --git a/sip/khtml/css_stylesheet.sip b/sip/khtml/css_stylesheet.sip new file mode 100644 index 0000000..3e43c36 --- /dev/null +++ b/sip/khtml/css_stylesheet.sip @@ -0,0 +1,197 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module khtml version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +namespace DOM +{ + +class StyleSheet +{ +%TypeHeaderCode +#include +%End + + +public: + StyleSheet (); + StyleSheet (const DOM::StyleSheet&); +//ig StyleSheet (StyleSheetImpl*); + +public: + DOM::DOMString type () const; + bool disabled () const; + void setDisabled (bool); + DOM::Node ownerNode () const; + DOM::StyleSheet parentStyleSheet () const; + DOM::DOMString href () const; + DOM::DOMString title () const; + DOM::MediaList media () const; + bool isCSSStyleSheet () const; +//ig StyleSheetImpl* handle () const; + bool isNull () const; + +protected: + +}; // class StyleSheet + + +class CSSException +{ +%TypeHeaderCode +#include +%End + + +public: + CSSException (ushort); + CSSException (const DOM::CSSException&); + ushort code; + + enum ExceptionCode + { + SYNTAX_ERR, + INVALID_MODIFICATION_ERR, + _EXCEPTION_OFFSET + }; + + +}; // class CSSException + + +class CSSStyleSheet : DOM::StyleSheet +{ +%TypeHeaderCode +#include +%End + + +public: + CSSStyleSheet (); + CSSStyleSheet (const DOM::CSSStyleSheet&); + CSSStyleSheet (const DOM::StyleSheet&); +//ig CSSStyleSheet (CSSStyleSheetImpl*); + +public: + DOM::CSSRule ownerRule () const; + DOM::CSSRuleList cssRules () const; + ulong insertRule (const DOM::DOMString&, ulong); + void deleteRule (ulong); + +}; // class CSSStyleSheet + + +class StyleSheetList +{ +%TypeHeaderCode +#include +%End + + +public: + StyleSheetList (); + StyleSheetList (const DOM::StyleSheetList&); +//ig StyleSheetList (StyleSheetListImpl*); + +public: + ulong length () const; + DOM::StyleSheet item (ulong); +//ig StyleSheetListImpl* handle () const; + bool isNull () const; + +protected: + +}; // class StyleSheetList + + +class MediaList +{ +%TypeHeaderCode +#include +%End + + +public: + MediaList (); + MediaList (const DOM::MediaList&); +//ig MediaList (MediaListImpl*); + +public: + DOM::DOMString mediaText (); + void setMediaText (const DOM::DOMString&); + ulong length (); + DOM::DOMString item (ulong); + void deleteMedium (const DOM::DOMString&); + void appendMedium (const DOM::DOMString&); +//ig MediaListImpl* handle () const; + bool isNull () const; + +protected: + +}; // class MediaList + + +class LinkStyle +{ +%TypeHeaderCode +#include +%End + + +public: + LinkStyle (); + LinkStyle (const DOM::LinkStyle&); + DOM::StyleSheet sheet (); + bool isNull () const; + +protected: + +}; // class LinkStyle + + +class DocumentStyle +{ +%TypeHeaderCode +#include +%End + + +public: + DocumentStyle (); + DocumentStyle (const DOM::DocumentStyle&); + DOM::StyleSheetList styleSheets (); + +%If ( KDE_3_2_0 - ) + DOM::DOMString preferredStylesheetSet () const; + DOM::DOMString selectedStylesheetSet () const; + void setSelectedStylesheetSet (const DOM::DOMString&); +%End + + bool isNull () const; + +protected: + +}; // class DocumentStyle + +}; // namespace DOM + diff --git a/sip/khtml/css_value.sip b/sip/khtml/css_value.sip new file mode 100644 index 0000000..5d8194d --- /dev/null +++ b/sip/khtml/css_value.sip @@ -0,0 +1,320 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module khtml version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +namespace DOM +{ + +class CSSStyleDeclaration +{ +%TypeHeaderCode +#include +%End + + +public: + CSSStyleDeclaration (); + CSSStyleDeclaration (const DOM::CSSStyleDeclaration&); +//ig CSSStyleDeclaration (CSSStyleDeclarationImpl*); + +public: + DOM::DOMString cssText () const; + void setCssText (const DOM::DOMString&); + ulong length () const; + DOM::CSSRule parentRule () const; + DOM::DOMString getPropertyValue (const DOM::DOMString&); + DOM::CSSValue getPropertyCSSValue (const DOM::DOMString&); + DOM::DOMString removeProperty (const DOM::DOMString&); + DOM::DOMString getPropertyPriority (const DOM::DOMString&); + void setProperty (const DOM::DOMString&, const DOM::DOMString&, const DOM::DOMString&); + DOM::DOMString item (ulong); +//ig CSSStyleDeclarationImpl* handle () const; + bool isNull () const; + +protected: + +}; // class CSSStyleDeclaration + + +class CSSValue +{ +%TypeHeaderCode +#include +%End + + +public: + CSSValue (); + CSSValue (const DOM::CSSValue&); +//ig CSSValue (CSSValueImpl*); + +public: + +%If ( KDE_3_2_1 - ) + + enum UnitTypes + { + CSS_INHERIT, + CSS_PRIMITIVE_VALUE, + CSS_VALUE_LIST, + CSS_CUSTOM, + CSS_INITIAL + }; + +%End + + DOM::DOMString cssText () const; + void setCssText (const DOM::DOMString&); + ushort cssValueType () const; + bool isCSSValueList () const; + bool isCSSPrimitiveValue () const; +//ig CSSValueImpl* handle () const; + bool isNull () const; + +protected: + +public: + +%If ( - KDE_3_2_1 ) + + enum UnitTypes + { + CSS_INHERIT, + CSS_PRIMITIVE_VALUE, + CSS_VALUE_LIST, + CSS_CUSTOM + }; + +%End + + +}; // class CSSValue + + +class CSSValueList : DOM::CSSValue +{ +%TypeHeaderCode +#include +%End + + +public: + CSSValueList (); + CSSValueList (const DOM::CSSValueList&); + CSSValueList (const DOM::CSSValue&); +//ig CSSValueList (CSSValueListImpl*); + +public: + ulong length () const; + DOM::CSSValue item (ulong); + +protected: + +}; // class CSSValueList + + +class CSSPrimitiveValue : DOM::CSSValue +{ +%TypeHeaderCode +#include +%End + + +public: + CSSPrimitiveValue (); + CSSPrimitiveValue (const DOM::CSSPrimitiveValue&); + CSSPrimitiveValue (const DOM::CSSValue&); +//ig CSSPrimitiveValue (CSSPrimitiveValueImpl*); + +public: + +%If ( KDE_3_1_0 - ) + + enum UnitTypes + { + CSS_UNKNOWN, + CSS_NUMBER, + CSS_PERCENTAGE, + CSS_EMS, + CSS_EXS, + CSS_PX, + CSS_CM, + CSS_MM, + CSS_IN, + CSS_PT, + CSS_PC, + CSS_DEG, + CSS_RAD, + CSS_GRAD, + CSS_MS, + CSS_S, + CSS_HZ, + CSS_KHZ, + CSS_DIMENSION, + CSS_STRING, + CSS_URI, + CSS_IDENT, + CSS_ATTR, + CSS_COUNTER, + CSS_RECT, + CSS_RGBCOLOR, + CSS_HTML_RELATIVE + }; + +%End + + ushort primitiveType () const; + void setFloatValue (ushort, float); + float getFloatValue (ushort); + void setStringValue (ushort, const DOM::DOMString&); + DOM::DOMString getStringValue (); + DOM::Counter getCounterValue (); + DOM::Rect getRectValue (); + DOM::RGBColor getRGBColorValue (); + +public: + +%If ( - KDE_3_1_0 ) + + enum UnitTypes + { + CSS_UNKNOWN, + CSS_NUMBER, + CSS_PERCENTAGE, + CSS_EMS, + CSS_EXS, + CSS_PX, + CSS_CM, + CSS_MM, + CSS_IN, + CSS_PT, + CSS_PC, + CSS_DEG, + CSS_RAD, + CSS_GRAD, + CSS_MS, + CSS_S, + CSS_HZ, + CSS_KHZ, + CSS_DIMENSION, + CSS_STRING, + CSS_URI, + CSS_IDENT, + CSS_ATTR, + CSS_COUNTER, + CSS_RECT, + CSS_RGBCOLOR + }; + +%End + + +}; // class CSSPrimitiveValue + + +class RGBColor +{ +%TypeHeaderCode +#include +%End + + +public: + RGBColor (); + RGBColor (const QColor&); + +%If ( KDE_3_1_0 - ) + RGBColor (QRgb); +%End + + RGBColor (const DOM::RGBColor&); + DOM::CSSPrimitiveValue red () const; + DOM::CSSPrimitiveValue green () const; + DOM::CSSPrimitiveValue blue () const; + +%If ( KDE_3_1_0 - ) + QRgb color () const; +%End + + +protected: + +public: + +%If ( - KDE_3_1_0 ) + const QColor& color () const; +%End + + +}; // class RGBColor + + +class Rect +{ +%TypeHeaderCode +#include +%End + + +public: + Rect (); + Rect (const DOM::Rect&); + DOM::CSSPrimitiveValue top () const; + DOM::CSSPrimitiveValue right () const; + DOM::CSSPrimitiveValue bottom () const; + DOM::CSSPrimitiveValue left () const; +//ig RectImpl* handle () const; + bool isNull () const; + +protected: +//ig Rect (RectImpl*); + +}; // class Rect + + +class Counter +{ +%TypeHeaderCode +#include +%End + + +public: + Counter (); + Counter (const DOM::Counter&); + +public: + DOM::DOMString identifier () const; + DOM::DOMString listStyle () const; + DOM::DOMString separator () const; +//ig CounterImpl* handle () const; + bool isNull () const; + +protected: +//ig Counter (CounterImpl*); + +}; // class Counter + +}; // namespace DOM + diff --git a/sip/khtml/dom2_events.sip b/sip/khtml/dom2_events.sip new file mode 100644 index 0000000..31772fe --- /dev/null +++ b/sip/khtml/dom2_events.sip @@ -0,0 +1,248 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module khtml version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +namespace DOM +{ + +class EventListener : DOM::DomShared +{ +%TypeHeaderCode +#include +%End + + +public: + EventListener (); + virtual void handleEvent (DOM::Event&); + virtual DOM::DOMString eventListenerType (); + +protected: + +}; // class EventListener + + +class Event +{ +%TypeHeaderCode +#include +%End + + +public: + Event (); + Event (const DOM::Event&); + + enum PhaseType + { + CAPTURING_PHASE, + AT_TARGET, + BUBBLING_PHASE + }; + + DOM::DOMString type () const; + DOM::Node target () const; + DOM::Node currentTarget () const; + ushort eventPhase () const; + bool bubbles () const; + bool cancelable () const; + DOM::DOMTimeStamp timeStamp () const; + void stopPropagation (); + void preventDefault (); + void initEvent (const DOM::DOMString&, bool, bool); +//ig EventImpl* handle () const; + bool isNull () const; + +protected: +//ig Event (EventImpl*); + +public: + +%If ( - KDE_3_2_0 ) + DOM::DOMString eventModuleName (); +%End + +}; // class Event + + +typedef unsigned long long DOMTimeStamp; + + +class EventException +{ +%TypeHeaderCode +#include +%End + + +public: + EventException (ushort); + EventException (const DOM::EventException&); + + enum EventExceptionCode + { + UNSPECIFIED_EVENT_TYPE_ERR + }; + + ushort code; + +}; // class EventException + + +class UIEvent : DOM::Event +{ +%TypeHeaderCode +#include +%End + + +public: + UIEvent (); + UIEvent (const DOM::UIEvent&); + UIEvent (const DOM::Event&); + DOM::AbstractView view () const; + long detail () const; + +%If ( KDE_3_2_0 - ) + int keyCode () const; + +%If ( KDE_3_4_0 - ) + int charCode () const; +%End + + +%If ( KDE_3_2_1 - ) + int pageX () const; + int pageY () const; +%End + + int layerX () const; + int layerY () const; + int which () const; +%End + + void initUIEvent (const DOM::DOMString&, bool, bool, const DOM::AbstractView&, long); + +protected: +//ig UIEvent (UIEventImpl*); + +}; // class UIEvent + + +class MouseEvent : DOM::UIEvent +{ +%TypeHeaderCode +#include +%End + + +public: + MouseEvent (); + MouseEvent (const DOM::MouseEvent&); + MouseEvent (const DOM::Event&); + long screenX () const; + long screenY () const; + long clientX () const; + long clientY () const; + bool ctrlKey () const; + bool shiftKey () const; + bool altKey () const; + bool metaKey () const; + ushort button () const; + DOM::Node relatedTarget () const; + void initMouseEvent (const DOM::DOMString&, bool, bool, const DOM::AbstractView&, long, long, long, long, long, bool, bool, bool, bool, ushort, const DOM::Node&); + +protected: +//ig MouseEvent (MouseEventImpl*); + +}; // class MouseEvent + + +%If ( KDE_3_1_0 - ) + +class TextEvent : DOM::UIEvent +{ +%TypeHeaderCode +#include +%End + + +public: + TextEvent (); + TextEvent (const DOM::TextEvent&); + TextEvent (const DOM::Event&); + void initTextEvent (const DOM::DOMString&, bool, bool, const DOM::AbstractView&, long, const DOM::DOMString&, ulong, ulong, bool, bool); + void initModifier (ulong, bool); + bool inputGenerated () const; + ulong keyVal () const; + bool numPad () const; + DOM::DOMString outputString () const; + ulong virtKeyVal () const; + bool checkModifier (ulong); + +protected: +//ig TextEvent (KeyEventBaseImpl*); + +}; // class TextEvent + +%End + + +%If ( KDE_3_1_0 - ) + +class MutationEvent : DOM::Event +{ +%TypeHeaderCode +#include +%End + + +public: + MutationEvent (); + MutationEvent (const DOM::MutationEvent&); + MutationEvent (const DOM::Event&); + + enum attrChangeType + { + MODIFICATION, + ADDITION, + REMOVAL + }; + + DOM::Node relatedNode () const; + DOM::DOMString prevValue () const; + DOM::DOMString newValue () const; + DOM::DOMString attrName () const; + ushort attrChange () const; + void initMutationEvent (const DOM::DOMString&, bool, bool, const DOM::Node&, const DOM::DOMString&, const DOM::DOMString&, const DOM::DOMString&, ushort); + +protected: +//ig MutationEvent (MutationEventImpl*); + +}; // class MutationEvent + +%End + +}; // namespace DOM + diff --git a/sip/khtml/dom2_range.sip b/sip/khtml/dom2_range.sip new file mode 100644 index 0000000..a39378d --- /dev/null +++ b/sip/khtml/dom2_range.sip @@ -0,0 +1,115 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module khtml version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +namespace DOM +{ + +class RangeException +{ +%TypeHeaderCode +#include +%End + + +public: + RangeException (ushort); + RangeException (const DOM::RangeException&); + + enum RangeExceptionCode + { + BAD_BOUNDARYPOINTS_ERR, + INVALID_NODE_TYPE_ERR, + _EXCEPTION_OFFSET, + _EXCEPTION_MAX + }; + + ushort code; + +}; // class RangeException + + +class Range +{ +%TypeHeaderCode +#include +%End + + +public: + Range (); + Range (const DOM::Document); + Range (const DOM::Range&); + Range (const DOM::Node, const long, const DOM::Node, const long); + DOM::Node startContainer () const; + long startOffset () const; + DOM::Node endContainer () const; + long endOffset () const; + bool collapsed () const; + DOM::Node commonAncestorContainer (); + void setStart (const DOM::Node&, long); + void setEnd (const DOM::Node&, long); + void setStartBefore (const DOM::Node&); + void setStartAfter (const DOM::Node&); + void setEndBefore (const DOM::Node&); + void setEndAfter (const DOM::Node&); + void collapse (bool); + void selectNode (const DOM::Node&); + void selectNodeContents (const DOM::Node&); + + enum CompareHow + { + START_TO_START, + START_TO_END, + END_TO_END, + END_TO_START + }; + + short compareBoundaryPoints (DOM::Range::CompareHow, const DOM::Range&); + bool boundaryPointsValid (); + void deleteContents (); + DOM::DocumentFragment extractContents (); + DOM::DocumentFragment cloneContents (); + void insertNode (const DOM::Node&); + void surroundContents (const DOM::Node&); + DOM::Range cloneRange (); + DOM::DOMString toString (); + DOM::DOMString toHTML (); + +%If ( KDE_3_2_0 - ) + DOM::DocumentFragment createContextualFragment (const DOM::DOMString&); +%End + + void detach (); + bool isDetached () const; +//ig RangeImpl* handle () const; + bool isNull () const; + +protected: +//ig Range (RangeImpl*); + +}; // class Range + +}; // namespace DOM + diff --git a/sip/khtml/dom2_traversal.sip b/sip/khtml/dom2_traversal.sip new file mode 100644 index 0000000..54d7acb --- /dev/null +++ b/sip/khtml/dom2_traversal.sip @@ -0,0 +1,176 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module khtml version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +namespace DOM +{ + +class NodeIterator +{ +%TypeHeaderCode +#include +%End + + +public: + NodeIterator (); + NodeIterator (const DOM::NodeIterator&); + DOM::Node root (); + ulong whatToShow (); + DOM::NodeFilter filter (); + bool expandEntityReferences (); + DOM::Node nextNode (); + DOM::Node previousNode (); + void detach (); +//ig NodeIteratorImpl* handle () const; + bool isNull () const; + +protected: +//ig NodeIterator (NodeIteratorImpl*); + +}; // class NodeIterator + + +class NodeFilter +{ +%TypeHeaderCode +#include +%End + + +public: + NodeFilter (); + NodeFilter (const DOM::NodeFilter&); + +%If ( KDE_3_2_1 - ) +//ig NodeFilter (NodeFilterImpl*); +%End + + + enum AcceptCode + { + FILTER_ACCEPT, + FILTER_REJECT, + FILTER_SKIP + }; + + + enum ShowCode + { + SHOW_ALL, + SHOW_ELEMENT, + SHOW_ATTRIBUTE, + SHOW_TEXT, + SHOW_CDATA_SECTION, + SHOW_ENTITY_REFERENCE, + SHOW_ENTITY, + SHOW_PROCESSING_INSTRUCTION, + SHOW_COMMENT, + SHOW_DOCUMENT, + SHOW_DOCUMENT_TYPE, + SHOW_DOCUMENT_FRAGMENT, + SHOW_NOTATION + }; + + virtual short acceptNode (const DOM::Node&); +//ig virtual NodeFilterImpl* handle () const; + virtual bool isNull () const; + void setCustomNodeFilter (DOM::CustomNodeFilter*); + DOM::CustomNodeFilter* customNodeFilter (); + static DOM::NodeFilter createCustom (DOM::CustomNodeFilter*); + +protected: + +protected: + +%If ( - KDE_3_2_1 ) +//ig NodeFilter (NodeFilterImpl*); +%End + + +}; // class NodeFilter + + +class CustomNodeFilter : DOM::DomShared +{ +%TypeHeaderCode +#include +%End + + +public: + CustomNodeFilter (); + virtual short acceptNode (const DOM::Node&); + virtual bool isNull (); + virtual DOM::DOMString customNodeFilterType (); + +protected: + +}; // class CustomNodeFilter + + +class TreeWalker +{ +%TypeHeaderCode +#include +%End + + +public: + TreeWalker (); + TreeWalker (const DOM::TreeWalker&); + DOM::Node root (); + ulong whatToShow (); + DOM::NodeFilter filter (); + bool expandEntityReferences (); + DOM::Node currentNode (); + +%If ( KDE_3_2_1 - ) + void setCurrentNode (const DOM::Node&); +%End + + DOM::Node parentNode (); + DOM::Node firstChild (); + DOM::Node lastChild (); + DOM::Node previousSibling (); + DOM::Node nextSibling (); + DOM::Node previousNode (); + DOM::Node nextNode (); +//ig TreeWalkerImpl* handle () const; + bool isNull () const; + +protected: +//ig TreeWalker (TreeWalkerImpl*); + +public: + +%If ( - KDE_3_2_1 ) + void setCurrentNode (const DOM::Node); +%End + + +}; // class TreeWalker + +}; // namespace DOM + diff --git a/sip/khtml/dom2_views.sip b/sip/khtml/dom2_views.sip new file mode 100644 index 0000000..664a2c9 --- /dev/null +++ b/sip/khtml/dom2_views.sip @@ -0,0 +1,50 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module khtml version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +namespace DOM +{ + +class AbstractView +{ +%TypeHeaderCode +#include +%End + + +public: + AbstractView (); + AbstractView (const DOM::AbstractView&); + DOM::Document document () const; + DOM::CSSStyleDeclaration getComputedStyle (const DOM::Element&, const DOM::DOMString&); +//ig AbstractViewImpl* handle () const; + bool isNull () const; + +protected: +//ig AbstractView (AbstractViewImpl*); + +}; // class AbstractView + +}; // namespace DOM + diff --git a/sip/khtml/dom_doc.sip b/sip/khtml/dom_doc.sip new file mode 100644 index 0000000..1a132d8 --- /dev/null +++ b/sip/khtml/dom_doc.sip @@ -0,0 +1,185 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module khtml version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +namespace DOM +{ + +class DOMImplementation +{ +%TypeHeaderCode +#include +%End + + +public: + DOMImplementation (); + DOMImplementation (const DOM::DOMImplementation&); + bool hasFeature (const DOM::DOMString&, const DOM::DOMString&); + DOM::DocumentType createDocumentType (const DOM::DOMString&, const DOM::DOMString&, const DOM::DOMString&); + DOM::Document createDocument (const DOM::DOMString&, const DOM::DOMString&, const DOM::DocumentType&); + DOM::DOMImplementation getInterface (const DOM::DOMString&) const; + DOM::CSSStyleSheet createCSSStyleSheet (const DOM::DOMString&, const DOM::DOMString&); + DOM::HTMLDocument createHTMLDocument (const DOM::DOMString&); +//ig DOMImplementationImpl* handle () const; + bool isNull () const; + +protected: +//ig DOMImplementation (DOMImplementationImpl*); + +}; // class DOMImplementation + + +class Document : DOM::Node +{ +%TypeHeaderCode +#include +%End + + +public: + Document (); + Document (bool); + Document (const DOM::Document&); + Document (const DOM::Node&); + DOM::DocumentType doctype () const; + DOM::DOMImplementation implementation () const; + DOM::Element documentElement () const; + DOM::Element createElement (const DOM::DOMString&); + DOM::Element createElementNS (const DOM::DOMString&, const DOM::DOMString&); + DOM::DocumentFragment createDocumentFragment (); + DOM::Text createTextNode (const DOM::DOMString&); + DOM::Comment createComment (const DOM::DOMString&); + DOM::CDATASection createCDATASection (const DOM::DOMString&); + DOM::ProcessingInstruction createProcessingInstruction (const DOM::DOMString&, const DOM::DOMString&); + DOM::Attr createAttribute (const DOM::DOMString&); + DOM::Attr createAttributeNS (const DOM::DOMString&, const DOM::DOMString&); + DOM::EntityReference createEntityReference (const DOM::DOMString&); + DOM::Element getElementById (const DOM::DOMString&) const; + DOM::NodeList getElementsByTagName (const DOM::DOMString&); + DOM::NodeList getElementsByTagNameNS (const DOM::DOMString&, const DOM::DOMString&); + DOM::Node importNode (const DOM::Node&, bool); + bool isHTMLDocument () const; + DOM::Range createRange (); + DOM::NodeIterator createNodeIterator (DOM::Node, ulong, DOM::NodeFilter, bool); + DOM::TreeWalker createTreeWalker (DOM::Node, ulong, DOM::NodeFilter, bool); + DOM::Event createEvent (const DOM::DOMString&); + DOM::AbstractView defaultView () const; + DOM::StyleSheetList styleSheets () const; + +%If ( KDE_3_2_0 - ) + DOM::DOMString preferredStylesheetSet (); + DOM::DOMString selectedStylesheetSet (); + void setSelectedStylesheetSet (const DOM::DOMString&); + +%If ( KDE_3_4_0 - ) + void addStyleSheet (const DOM::StyleSheet&); + void removeStyleSheet (const DOM::StyleSheet&); +%End + +%End + + KHTMLView* view () const; + DOM::CSSStyleDeclaration getOverrideStyle (const DOM::Element&, const DOM::DOMString&); + +%If ( KDE_3_2_0 - ) + bool async () const; + void setAsync (bool); + void abort (); + void load (const DOM::DOMString&); + void loadXML (const DOM::DOMString&); + bool designMode () const; + void setDesignMode (bool); +%End + + DOM::DOMString completeURL (const DOM::DOMString&); + +%If ( KDE_3_3_0 - ) + DOM::DOMString toString () const; +%End + + +%If ( KDE_3_2_0 - ) + void updateRendering (); + +%If ( KDE_3_3_0 - ) +//ig Document (DocumentImpl*); +%End + +%End + + +protected: + +%If ( - KDE_3_3_0 ) +//ig Document (DocumentImpl*); +%End + + +}; // class Document + + +class DocumentFragment : DOM::Node +{ +%TypeHeaderCode +#include +%End + + +public: + DocumentFragment (); + DocumentFragment (const DOM::DocumentFragment&); + DocumentFragment (const DOM::Node&); + +protected: +//ig DocumentFragment (DocumentFragmentImpl*); + +}; // class DocumentFragment + + +class DocumentType : DOM::Node +{ +%TypeHeaderCode +#include +%End + + +public: + DocumentType (); + DocumentType (const DOM::DocumentType&); + DocumentType (const DOM::Node&); + DOM::DOMString name () const; + DOM::NamedNodeMap entities () const; + DOM::NamedNodeMap notations () const; + DOM::DOMString publicId () const; + DOM::DOMString systemId () const; + DOM::DOMString internalSubset () const; + +protected: +//ig DocumentType (DocumentTypeImpl*); + +}; // class DocumentType + +}; // namespace DOM + diff --git a/sip/khtml/dom_element.sip b/sip/khtml/dom_element.sip new file mode 100644 index 0000000..090e9d3 --- /dev/null +++ b/sip/khtml/dom_element.sip @@ -0,0 +1,111 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module khtml version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +namespace DOM +{ + +class Attr : DOM::Node +{ +%TypeHeaderCode +#include +%End + + +public: + Attr (); + Attr (const DOM::Node&); + Attr (const DOM::Attr&); + DOM::DOMString name () const; + bool specified () const; + DOM::DOMString value () const; + void setValue (const DOM::DOMString&); + DOM::Element ownerElement () const; + +protected: +//ig Attr (AttrImpl*); + +}; // class Attr + + +class Element : DOM::Node +{ +%TypeHeaderCode +#include +%End + + +public: + Element (); + Element (const DOM::Node&); + Element (const DOM::Element&); + DOM::DOMString tagName () const; + DOM::DOMString getAttribute (const DOM::DOMString&); + void setAttribute (const DOM::DOMString&, const DOM::DOMString&); + void removeAttribute (const DOM::DOMString&); + DOM::Attr getAttributeNode (const DOM::DOMString&); + DOM::Attr setAttributeNode (const DOM::Attr&); + DOM::Attr removeAttributeNode (const DOM::Attr&); + DOM::NodeList getElementsByTagName (const DOM::DOMString&); + DOM::NodeList getElementsByTagNameNS (const DOM::DOMString&, const DOM::DOMString&); + DOM::DOMString getAttributeNS (const DOM::DOMString&, const DOM::DOMString&); + void setAttributeNS (const DOM::DOMString&, const DOM::DOMString&, const DOM::DOMString&); + void removeAttributeNS (const DOM::DOMString&, const DOM::DOMString&); + DOM::Attr getAttributeNodeNS (const DOM::DOMString&, const DOM::DOMString&); + DOM::Attr setAttributeNodeNS (const DOM::Attr&); + bool hasAttribute (const DOM::DOMString&); + bool hasAttributeNS (const DOM::DOMString&, const DOM::DOMString&); + DOM::CSSStyleDeclaration style (); + +%If ( KDE_3_2_0 - ) + bool contentEditable () const; + void setContentEditable (bool); +%End + + bool isHTMLElement () const; + +%If ( KDE_3_1_0 - ) + DOM::Element form () const; +%End + + static bool khtmlValidAttrName (const DOM::DOMString&); + static bool khtmlValidPrefix (const DOM::DOMString&); + static bool khtmlValidQualifiedName (const DOM::DOMString&); + static bool khtmlMalformedQualifiedName (const DOM::DOMString&); + static bool khtmlMalformedPrefix (const DOM::DOMString&); + +protected: +//ig Element (ElementImpl*); + +public: + +%If ( - KDE_3_1_2 ) + void normalize (); +%End + + +}; // class Element + +}; // namespace DOM + diff --git a/sip/khtml/dom_exception.sip b/sip/khtml/dom_exception.sip new file mode 100644 index 0000000..6a446a8 --- /dev/null +++ b/sip/khtml/dom_exception.sip @@ -0,0 +1,64 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module khtml version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +namespace DOM +{ + +class DOMException +{ +%TypeHeaderCode +#include +%End + + +public: + DOMException (ushort); + DOMException (const DOM::DOMException&); + + enum ExceptionCode + { + INDEX_SIZE_ERR, + DOMSTRING_SIZE_ERR, + HIERARCHY_REQUEST_ERR, + WRONG_DOCUMENT_ERR, + INVALID_CHARACTER_ERR, + NO_DATA_ALLOWED_ERR, + NO_MODIFICATION_ALLOWED_ERR, + NOT_FOUND_ERR, + NOT_SUPPORTED_ERR, + INUSE_ATTRIBUTE_ERR, + INVALID_STATE_ERR, + SYNTAX_ERR, + INVALID_MODIFICATION_ERR, + NAMESPACE_ERR, + INVALID_ACCESS_ERR + }; + + ushort code; + +}; // class DOMException + +}; // namespace DOM + diff --git a/sip/khtml/dom_misc.sip b/sip/khtml/dom_misc.sip new file mode 100644 index 0000000..30c090f --- /dev/null +++ b/sip/khtml/dom_misc.sip @@ -0,0 +1,49 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module khtml version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +namespace DOM +{ + +class DomShared +{ +%TypeHeaderCode +#include +%End + + +public: + DomShared (); + virtual bool deleteMe (); + void ref (); + void deref (); + bool hasOneRef (); + uint refCount () const; + +protected: + +}; // class DomShared + +}; // namespace DOM + diff --git a/sip/khtml/dom_node.sip b/sip/khtml/dom_node.sip new file mode 100644 index 0000000..e7d4b8e --- /dev/null +++ b/sip/khtml/dom_node.sip @@ -0,0 +1,150 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module khtml version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +namespace DOM +{ + +class NamedNodeMap +{ +%TypeHeaderCode +#include +%End + + +public: + NamedNodeMap (); + NamedNodeMap (const DOM::NamedNodeMap&); + ulong length () const; + DOM::Node getNamedItem (const DOM::DOMString&) const; + DOM::Node setNamedItem (const DOM::Node&); + DOM::Node removeNamedItem (const DOM::DOMString&); + DOM::Node item (ulong) const; + DOM::Node getNamedItemNS (const DOM::DOMString&, const DOM::DOMString&) const; + DOM::Node setNamedItemNS (const DOM::Node&); + DOM::Node removeNamedItemNS (const DOM::DOMString&, const DOM::DOMString&); +//ig NamedNodeMapImpl* handle () const; + bool isNull () const; + +protected: +//ig NamedNodeMap (NamedNodeMapImpl*); + +}; // class NamedNodeMap + + +class Node +{ +%TypeHeaderCode +#include +%End + + +public: + Node (); + Node (const DOM::Node&); +//ig Node (NodeImpl*); + bool operator == (const DOM::Node&); + bool operator != (const DOM::Node&); + + enum NodeType + { + ELEMENT_NODE, + ATTRIBUTE_NODE, + TEXT_NODE, + CDATA_SECTION_NODE, + ENTITY_REFERENCE_NODE, + ENTITY_NODE, + PROCESSING_INSTRUCTION_NODE, + COMMENT_NODE, + DOCUMENT_NODE, + DOCUMENT_TYPE_NODE, + DOCUMENT_FRAGMENT_NODE, + NOTATION_NODE + }; + + DOM::DOMString nodeName () const; + DOM::DOMString nodeValue () const; + void setNodeValue (const DOM::DOMString&); + ushort nodeType () const; + DOM::Node parentNode () const; + DOM::NodeList childNodes () const; + DOM::Node firstChild () const; + DOM::Node lastChild () const; + DOM::Node previousSibling () const; + DOM::Node nextSibling () const; + DOM::NamedNodeMap attributes () const; + DOM::Document ownerDocument () const; + DOM::Node insertBefore (const DOM::Node&, const DOM::Node&); + DOM::Node replaceChild (const DOM::Node&, const DOM::Node&); + DOM::Node removeChild (const DOM::Node&); + DOM::Node appendChild (const DOM::Node&); + bool hasChildNodes (); + DOM::Node cloneNode (bool); + void normalize (); + bool isSupported (const DOM::DOMString&, const DOM::DOMString&) const; + DOM::DOMString namespaceURI () const; + DOM::DOMString prefix () const; + void setPrefix (const DOM::DOMString&); + DOM::DOMString localName () const; + bool hasAttributes (); + void addEventListener (const DOM::DOMString&, DOM::EventListener*, const bool); + void removeEventListener (const DOM::DOMString&, DOM::EventListener*, bool); + bool dispatchEvent (const DOM::Event&); + ulong elementId () const; + bool isNull () const; +//ig NodeImpl* handle () const; + ulong index () const; + QString toHTML (); + void applyChanges (); + void getCursor (int, int&, int&, int&); + QRect getRect (); + +protected: + +}; // class Node + + +class NodeList +{ +%TypeHeaderCode +#include +%End + + +public: + NodeList (); + NodeList (const DOM::NodeList&); + ulong length () const; + DOM::Node item (ulong) const; +//ig NodeListImpl* handle () const; + bool isNull () const; + +protected: +//ig NodeList (const NodeListImpl*); + +}; // class NodeList + +//ig typedef ulonglong DOMTimeStamp; +}; // namespace DOM + diff --git a/sip/khtml/dom_string.sip b/sip/khtml/dom_string.sip new file mode 100644 index 0000000..07c90b9 --- /dev/null +++ b/sip/khtml/dom_string.sip @@ -0,0 +1,74 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module khtml version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +namespace DOM +{ + +class DOMString +{ +%TypeHeaderCode +#include +%End + + +public: + DOMString (); + DOMString (const QChar*, uint); + DOMString (const QString&); + DOMString (const char*); +//ig DOMString (DOMStringImpl*); + DOMString (const DOM::DOMString&); + DOM::DOMString& operator += (const DOM::DOMString&); + DOM::DOMString operator + (const DOM::DOMString&); + void insert (DOM::DOMString, uint); + const QChar& operator [] (uint) const; + + int find (const QChar, int = 0) const; + uint length () const; + void truncate (uint); + void remove (uint, int = 1); + DOM::DOMString split (uint); + DOM::DOMString lower () const; + DOM::DOMString upper () const; + QChar* unicode () const; + QString string () const; + int toInt () const; + bool percentage (int&) const; + DOM::DOMString copy () const; + bool isNull () const; + bool isEmpty () const; +//ig DOMStringImpl* implementation () const; + +protected: + +}; // class DOMString + +//igx bool operator == (const DOMString&, const DOMString&); +//igx bool operator == (const DOMString&, const QString&); +//igx bool operator == (const DOMString&, const char*); +bool strcasecmp (const DOM::DOMString&, const DOM::DOMString&); +bool strcasecmp (const DOM::DOMString&, const char*); +}; // namespace DOM + diff --git a/sip/khtml/dom_text.sip b/sip/khtml/dom_text.sip new file mode 100644 index 0000000..bc06c16 --- /dev/null +++ b/sip/khtml/dom_text.sip @@ -0,0 +1,92 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module khtml version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +namespace DOM +{ + +class CharacterData : DOM::Node +{ +%TypeHeaderCode +#include +%End + + +public: + CharacterData (); + CharacterData (const DOM::CharacterData&); + CharacterData (const DOM::Node&); + DOM::DOMString data () const; + void setData (const DOM::DOMString&); + ulong length () const; + DOM::DOMString substringData (const ulong, const ulong); + void appendData (const DOM::DOMString&); + void insertData (const ulong, const DOM::DOMString&); + void deleteData (const ulong, const ulong); + void replaceData (const ulong, const ulong, const DOM::DOMString&); + +protected: +//ig CharacterData (CharacterDataImpl*); + +}; // class CharacterData + + +class Comment : DOM::CharacterData +{ +%TypeHeaderCode +#include +%End + + +public: + Comment (); + Comment (const DOM::Comment&); + Comment (const DOM::Node&); + +protected: +//ig Comment (CommentImpl*); + +}; // class Comment + + +class Text : DOM::CharacterData +{ +%TypeHeaderCode +#include +%End + + +public: + Text (); + Text (const DOM::Text&); + Text (const DOM::Node&); + DOM::Text splitText (const ulong); + +protected: +//ig Text (TextImpl*); + +}; // class Text + +}; // namespace DOM + diff --git a/sip/khtml/dom_xml.sip b/sip/khtml/dom_xml.sip new file mode 100644 index 0000000..c1d306e --- /dev/null +++ b/sip/khtml/dom_xml.sip @@ -0,0 +1,128 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module khtml version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +namespace DOM +{ + +class CDATASection : DOM::Text +{ +%TypeHeaderCode +#include +%End + + +public: + CDATASection (); + CDATASection (const DOM::CDATASection&); + CDATASection (const DOM::Node&); + +protected: +//ig CDATASection (CDATASectionImpl*); + +}; // class CDATASection + + +class Entity : DOM::Node +{ +%TypeHeaderCode +#include +%End + + +public: + Entity (); + Entity (const DOM::Entity&); + Entity (const DOM::Node&); + DOM::DOMString publicId () const; + DOM::DOMString systemId () const; + DOM::DOMString notationName () const; + +protected: +//ig Entity (EntityImpl*); + +}; // class Entity + + +class EntityReference : DOM::Node +{ +%TypeHeaderCode +#include +%End + + +public: + EntityReference (); + EntityReference (const DOM::EntityReference&); + EntityReference (const DOM::Node&); + +protected: +//ig EntityReference (EntityReferenceImpl*); + +}; // class EntityReference + + +class Notation : DOM::Node +{ +%TypeHeaderCode +#include +%End + + +public: + Notation (); + Notation (const DOM::Notation&); + Notation (const DOM::Node&); + DOM::DOMString publicId () const; + DOM::DOMString systemId () const; + +protected: +//ig Notation (NotationImpl*); + +}; // class Notation + + +class ProcessingInstruction : DOM::Node +{ +%TypeHeaderCode +#include +%End + + +public: + ProcessingInstruction (); + ProcessingInstruction (const DOM::ProcessingInstruction&); + ProcessingInstruction (const DOM::Node&); + DOM::DOMString target () const; + DOM::DOMString data () const; + void setData (const DOM::DOMString&); + DOM::StyleSheet sheet () const; + +protected: +//ig ProcessingInstruction (ProcessingInstructionImpl*); + +}; // class ProcessingInstruction + +}; // namespace DOM + diff --git a/sip/khtml/html_base.sip b/sip/khtml/html_base.sip new file mode 100644 index 0000000..bc0cadc --- /dev/null +++ b/sip/khtml/html_base.sip @@ -0,0 +1,207 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module khtml version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +namespace DOM +{ + +class HTMLBodyElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLBodyElement (); + HTMLBodyElement (const DOM::HTMLBodyElement&); + HTMLBodyElement (const DOM::Node&); + +protected: +//ig HTMLBodyElement (HTMLBodyElementImpl*); + +public: + DOM::DOMString aLink () const; + void setALink (const DOM::DOMString&); + DOM::DOMString background () const; + void setBackground (const DOM::DOMString&); + DOM::DOMString bgColor () const; + void setBgColor (const DOM::DOMString&); + DOM::DOMString link () const; + void setLink (const DOM::DOMString&); + DOM::DOMString text () const; + void setText (const DOM::DOMString&); + DOM::DOMString vLink () const; + void setVLink (const DOM::DOMString&); + +}; // class HTMLBodyElement + + +class HTMLFrameElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLFrameElement (); + HTMLFrameElement (const DOM::HTMLFrameElement&); + HTMLFrameElement (const DOM::Node&); + +protected: +//ig HTMLFrameElement (HTMLFrameElementImpl*); + +public: + DOM::DOMString frameBorder () const; + void setFrameBorder (const DOM::DOMString&); + DOM::DOMString longDesc () const; + void setLongDesc (const DOM::DOMString&); + DOM::DOMString marginHeight () const; + void setMarginHeight (const DOM::DOMString&); + DOM::DOMString marginWidth () const; + void setMarginWidth (const DOM::DOMString&); + DOM::DOMString name () const; + void setName (const DOM::DOMString&); + bool noResize () const; + void setNoResize (bool); + DOM::DOMString scrolling () const; + void setScrolling (const DOM::DOMString&); + DOM::DOMString src () const; + void setSrc (const DOM::DOMString&); + DOM::Document contentDocument () const; + +}; // class HTMLFrameElement + + +class HTMLFrameSetElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLFrameSetElement (); + HTMLFrameSetElement (const DOM::HTMLFrameSetElement&); + HTMLFrameSetElement (const DOM::Node&); + +protected: +//ig HTMLFrameSetElement (HTMLFrameSetElementImpl*); + +public: + DOM::DOMString cols () const; + void setCols (const DOM::DOMString&); + DOM::DOMString rows () const; + void setRows (const DOM::DOMString&); + +}; // class HTMLFrameSetElement + + +class HTMLIFrameElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLIFrameElement (); + HTMLIFrameElement (const DOM::HTMLIFrameElement&); + HTMLIFrameElement (const DOM::Node&); + +protected: +//ig HTMLIFrameElement (HTMLIFrameElementImpl*); + +public: + DOM::DOMString align () const; + void setAlign (const DOM::DOMString&); + DOM::DOMString frameBorder () const; + void setFrameBorder (const DOM::DOMString&); + DOM::DOMString height () const; + void setHeight (const DOM::DOMString&); + DOM::DOMString longDesc () const; + void setLongDesc (const DOM::DOMString&); + DOM::DOMString marginHeight () const; + void setMarginHeight (const DOM::DOMString&); + DOM::DOMString marginWidth () const; + void setMarginWidth (const DOM::DOMString&); + DOM::DOMString name () const; + void setName (const DOM::DOMString&); + DOM::DOMString scrolling () const; + void setScrolling (const DOM::DOMString&); + DOM::DOMString src () const; + void setSrc (const DOM::DOMString&); + DOM::DOMString width () const; + void setWidth (const DOM::DOMString&); + DOM::Document contentDocument () const; + +}; // class HTMLIFrameElement + + +class HTMLHeadElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLHeadElement (); + HTMLHeadElement (const DOM::HTMLHeadElement&); + HTMLHeadElement (const DOM::Node&); + +protected: +//ig HTMLHeadElement (HTMLHeadElementImpl*); + +public: + DOM::DOMString profile () const; + void setProfile (const DOM::DOMString&); + +}; // class HTMLHeadElement + + +class HTMLHtmlElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLHtmlElement (); + HTMLHtmlElement (const DOM::HTMLHtmlElement&); + HTMLHtmlElement (const DOM::Node&); + +protected: +//ig HTMLHtmlElement (HTMLHtmlElementImpl*); + +public: + DOM::DOMString version () const; + void setVersion (const DOM::DOMString&); + +}; // class HTMLHtmlElement + +}; // namespace DOM + diff --git a/sip/khtml/html_block.sip b/sip/khtml/html_block.sip new file mode 100644 index 0000000..df70827 --- /dev/null +++ b/sip/khtml/html_block.sip @@ -0,0 +1,233 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module khtml version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +namespace DOM +{ + +class HTMLBlockquoteElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLBlockquoteElement (); + HTMLBlockquoteElement (const DOM::HTMLBlockquoteElement&); + HTMLBlockquoteElement (const DOM::Node&); + +protected: + +%If ( KDE_3_1_0 - ) +//ig HTMLBlockquoteElement (HTMLElementImpl*); +%End + + +public: + DOM::DOMString cite () const; + void setCite (const DOM::DOMString&); + +protected: + +%If ( - KDE_3_1_0 ) +//ig HTMLBlockquoteElement (HTMLBlockquoteElementImpl*); +%End + + +}; // class HTMLBlockquoteElement + + +class HTMLDivElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLDivElement (); + HTMLDivElement (const DOM::HTMLDivElement&); + HTMLDivElement (const DOM::Node&); + +protected: +//ig HTMLDivElement (HTMLDivElementImpl*); + +public: + DOM::DOMString align () const; + void setAlign (const DOM::DOMString&); + +}; // class HTMLDivElement + + +class HTMLHRElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLHRElement (); + HTMLHRElement (const DOM::HTMLHRElement&); + HTMLHRElement (const DOM::Node&); + +protected: +//ig HTMLHRElement (HTMLHRElementImpl*); + +public: + DOM::DOMString align () const; + void setAlign (const DOM::DOMString&); + bool noShade () const; + void setNoShade (bool); + DOM::DOMString size () const; + void setSize (const DOM::DOMString&); + DOM::DOMString width () const; + void setWidth (const DOM::DOMString&); + +}; // class HTMLHRElement + + +class HTMLHeadingElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLHeadingElement (); + HTMLHeadingElement (const DOM::HTMLHeadingElement&); + HTMLHeadingElement (const DOM::Node&); + +protected: + +%If ( KDE_3_1_0 - ) +//ig HTMLHeadingElement (HTMLElementImpl*); +%End + + +public: + DOM::DOMString align () const; + void setAlign (const DOM::DOMString&); + +protected: + +%If ( - KDE_3_1_0 ) +//ig HTMLHeadingElement (HTMLHeadingElementImpl*); +%End + + +}; // class HTMLHeadingElement + + +class HTMLParagraphElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLParagraphElement (); + HTMLParagraphElement (const DOM::HTMLParagraphElement&); + HTMLParagraphElement (const DOM::Node&); + +protected: + +%If ( KDE_3_1_0 - ) +//ig HTMLParagraphElement (HTMLElementImpl*); +%End + + +public: + DOM::DOMString align () const; + void setAlign (const DOM::DOMString&); + +protected: + +%If ( - KDE_3_1_0 ) +//ig HTMLParagraphElement (HTMLParagraphElementImpl*); +%End + + +}; // class HTMLParagraphElement + + +class HTMLPreElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLPreElement (); + HTMLPreElement (const DOM::HTMLPreElement&); + HTMLPreElement (const DOM::Node&); + +protected: +//ig HTMLPreElement (HTMLPreElementImpl*); + +public: + long width () const; + void setWidth (long); + +}; // class HTMLPreElement + + +%If ( KDE_3_3_2 - ) + +class HTMLLayerElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLLayerElement (); + HTMLLayerElement (const DOM::HTMLLayerElement&); + HTMLLayerElement (const DOM::Node&); + +protected: +//igx HTMLLayerElement (HTMLLayerElementImpl*); + +public: + long top () const; + void setTop (long); + long left () const; + void setLeft (long); + DOM::DOMString visibility () const; + void setVisibility (const DOM::DOMString&); + DOM::DOMString bgColor () const; + void setBgColor (const DOM::DOMString&); + DOM::HTMLCollection layers () const; + +}; // class HTMLLayerElement + +%End + +}; // namespace DOM + diff --git a/sip/khtml/html_document.sip b/sip/khtml/html_document.sip new file mode 100644 index 0000000..82205ef --- /dev/null +++ b/sip/khtml/html_document.sip @@ -0,0 +1,77 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module khtml version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +namespace DOM +{ + +class HTMLDocument : DOM::Document +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLDocument (); + HTMLDocument (KHTMLView* /TransferThis/); + HTMLDocument (const DOM::HTMLDocument&); + HTMLDocument (const DOM::Node&); + +protected: +//ig HTMLDocument (HTMLDocumentImpl*); + +public: + DOM::DOMString title () const; + void setTitle (const DOM::DOMString&); + DOM::DOMString referrer () const; + DOM::DOMString domain () const; + DOM::DOMString URL () const; + DOM::HTMLElement body () const; + void setBody (const DOM::HTMLElement&); + DOM::HTMLCollection images () const; + DOM::HTMLCollection applets () const; + DOM::HTMLCollection links () const; + DOM::HTMLCollection forms () const; + +%If ( KDE_3_3_2 - ) + DOM::HTMLCollection layers () const; +%End + + DOM::HTMLCollection anchors () const; + DOM::DOMString cookie () const; + void setCookie (const DOM::DOMString&); + void open (); + void close (); + void write (const DOM::DOMString&); + void writeln (const DOM::DOMString&); + DOM::NodeList getElementsByName (const DOM::DOMString&); + DOM::DOMString completeURL (const DOM::DOMString&) const; + DOM::DOMString lastModified () const; + DOM::HTMLCollection all () const; + +}; // class HTMLDocument + +}; // namespace DOM + diff --git a/sip/khtml/html_element.sip b/sip/khtml/html_element.sip new file mode 100644 index 0000000..dcc8c5b --- /dev/null +++ b/sip/khtml/html_element.sip @@ -0,0 +1,78 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module khtml version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +namespace DOM +{ + +class HTMLElement : DOM::Element +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLElement (); + HTMLElement (const DOM::HTMLElement&); + HTMLElement (const DOM::Node&); + +protected: +//ig HTMLElement (HTMLElementImpl*); + +public: + DOM::DOMString id () const; + void setId (const DOM::DOMString&); + DOM::DOMString title () const; + void setTitle (const DOM::DOMString&); + DOM::DOMString lang () const; + void setLang (const DOM::DOMString&); + DOM::DOMString dir () const; + void setDir (const DOM::DOMString&); + DOM::DOMString className () const; + void setClassName (const DOM::DOMString&); + DOM::DOMString innerHTML () const; + void setInnerHTML (const DOM::DOMString&); + DOM::DOMString innerText () const; + void setInnerText (const DOM::DOMString&); + DOM::HTMLCollection children () const; + +%If ( KDE_3_1_0 - ) + DOM::HTMLCollection all () const; +%End + + void removeCSSProperty (const DOM::DOMString&); + void addCSSProperty (const DOM::DOMString&, const DOM::DOMString&); + +protected: + +%If ( KDE_3_0_1 - ) + void assignOther (const DOM::Node&, int); +%End + + +}; // class HTMLElement + +}; // namespace DOM + diff --git a/sip/khtml/html_form.sip b/sip/khtml/html_form.sip new file mode 100644 index 0000000..05683cb --- /dev/null +++ b/sip/khtml/html_form.sip @@ -0,0 +1,436 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module khtml version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +namespace DOM +{ + +class HTMLButtonElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLButtonElement (); + HTMLButtonElement (const DOM::HTMLButtonElement&); + HTMLButtonElement (const DOM::Node&); + +protected: +//ig HTMLButtonElement (HTMLButtonElementImpl*); + +public: + DOM::HTMLFormElement form () const; + DOM::DOMString accessKey () const; + void setAccessKey (const DOM::DOMString&); + bool disabled () const; + void setDisabled (bool); + DOM::DOMString name () const; + void setName (const DOM::DOMString&); + long tabIndex () const; + void setTabIndex (long); + DOM::DOMString type () const; + DOM::DOMString value () const; + void setValue (const DOM::DOMString&); + +%If ( KDE_3_5_0 - ) + void blur (); + void focus (); +%End + + +}; // class HTMLButtonElement + + +class HTMLFieldSetElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLFieldSetElement (); + HTMLFieldSetElement (const DOM::HTMLFieldSetElement&); + HTMLFieldSetElement (const DOM::Node&); + +protected: +//ig HTMLFieldSetElement (HTMLFieldSetElementImpl*); + +public: + DOM::HTMLFormElement form () const; + +}; // class HTMLFieldSetElement + + +class HTMLFormElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLFormElement (); + HTMLFormElement (const DOM::HTMLFormElement&); + HTMLFormElement (const DOM::Node&); + +protected: +//ig HTMLFormElement (HTMLFormElementImpl*); + +public: + DOM::HTMLCollection elements () const; + long length () const; + DOM::DOMString name () const; + void setName (const DOM::DOMString&); + DOM::DOMString acceptCharset () const; + void setAcceptCharset (const DOM::DOMString&); + DOM::DOMString action () const; + void setAction (const DOM::DOMString&); + DOM::DOMString enctype () const; + void setEnctype (const DOM::DOMString&); + DOM::DOMString method () const; + void setMethod (const DOM::DOMString&); + DOM::DOMString target () const; + void setTarget (const DOM::DOMString&); + void submit (); + void reset (); + +}; // class HTMLFormElement + + +class HTMLInputElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLInputElement (); + HTMLInputElement (const DOM::HTMLInputElement&); + HTMLInputElement (const DOM::Node&); + +protected: +//ig HTMLInputElement (HTMLInputElementImpl*); + +public: + DOM::DOMString defaultValue () const; + void setDefaultValue (const DOM::DOMString&); + bool defaultChecked () const; + void setDefaultChecked (bool); + DOM::HTMLFormElement form () const; + DOM::DOMString accept () const; + void setAccept (const DOM::DOMString&); + DOM::DOMString accessKey () const; + void setAccessKey (const DOM::DOMString&); + DOM::DOMString align () const; + void setAlign (const DOM::DOMString&); + DOM::DOMString alt () const; + void setAlt (const DOM::DOMString&); + bool checked () const; + void setChecked (bool); + +%If ( KDE_3_5_3 - ) + bool indeterminate () const; + void setIndeterminate (bool); +%End + + bool disabled () const; + void setDisabled (bool); + long maxLength () const; + void setMaxLength (long); + DOM::DOMString name () const; + void setName (const DOM::DOMString&); + bool readOnly () const; + void setReadOnly (bool); + DOM::DOMString size () const; + void setSize (const DOM::DOMString&); + +%If ( KDE_3_1_0 - ) + long getSize () const; + void setSize (long); +%End + + DOM::DOMString src () const; + void setSrc (const DOM::DOMString&); + long tabIndex () const; + void setTabIndex (long); + DOM::DOMString type () const; + void setType (const DOM::DOMString&); + DOM::DOMString useMap () const; + void setUseMap (const DOM::DOMString&); + DOM::DOMString value () const; + void setValue (const DOM::DOMString&); + void blur (); + void focus (); + void select (); + void click (); + +%If ( KDE_3_5_2 - ) + long selectionStart (); + void setSelectionStart (long); + long selectionEnd (); + void setSelectionEnd (long); + void setSelectionRange (long, long); +%End + + +}; // class HTMLInputElement + + +class HTMLLabelElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLLabelElement (); + HTMLLabelElement (const DOM::HTMLLabelElement&); + HTMLLabelElement (const DOM::Node&); + +protected: +//ig HTMLLabelElement (HTMLLabelElementImpl*); + +public: + DOM::DOMString accessKey () const; + void setAccessKey (const DOM::DOMString&); + DOM::DOMString htmlFor () const; + void setHtmlFor (const DOM::DOMString&); + +public: + +%If ( - KDE_3_1_0 ) + DOM::HTMLFormElement form () const; +%End + + +}; // class HTMLLabelElement + + +class HTMLLegendElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLLegendElement (); + HTMLLegendElement (const DOM::HTMLLegendElement&); + HTMLLegendElement (const DOM::Node&); + +protected: +//ig HTMLLegendElement (HTMLLegendElementImpl*); + +public: + DOM::HTMLFormElement form () const; + DOM::DOMString accessKey () const; + void setAccessKey (const DOM::DOMString&); + DOM::DOMString align () const; + void setAlign (const DOM::DOMString&); + +}; // class HTMLLegendElement + + +class HTMLOptGroupElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLOptGroupElement (); + HTMLOptGroupElement (const DOM::HTMLOptGroupElement&); + HTMLOptGroupElement (const DOM::Node&); + +protected: +//ig HTMLOptGroupElement (HTMLOptGroupElementImpl*); + +public: + bool disabled () const; + void setDisabled (bool); + DOM::DOMString label () const; + void setLabel (const DOM::DOMString&); + +}; // class HTMLOptGroupElement + + +class HTMLSelectElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLSelectElement (); + HTMLSelectElement (const DOM::HTMLSelectElement&); + HTMLSelectElement (const DOM::Node&); + +protected: +//ig HTMLSelectElement (HTMLSelectElementImpl*); + +public: + DOM::DOMString type () const; + long selectedIndex () const; + void setSelectedIndex (long); + DOM::DOMString value () const; + void setValue (const DOM::DOMString&); + long length () const; + DOM::HTMLFormElement form () const; + DOM::HTMLCollection options () const; + bool disabled () const; + void setDisabled (bool); + bool multiple () const; + void setMultiple (bool); + DOM::DOMString name () const; + void setName (const DOM::DOMString&); + long size () const; + void setSize (long); + long tabIndex () const; + void setTabIndex (long); + void add (const DOM::HTMLElement&, const DOM::HTMLElement&); + void remove (long); + void blur (); + void focus (); + +}; // class HTMLSelectElement + + +class HTMLTextAreaElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLTextAreaElement (); + HTMLTextAreaElement (const DOM::HTMLTextAreaElement&); + HTMLTextAreaElement (const DOM::Node&); + +protected: +//ig HTMLTextAreaElement (HTMLTextAreaElementImpl*); + +public: + DOM::DOMString defaultValue () const; + void setDefaultValue (const DOM::DOMString&); + DOM::HTMLFormElement form () const; + DOM::DOMString accessKey () const; + void setAccessKey (const DOM::DOMString&); + long cols () const; + void setCols (long); + bool disabled () const; + void setDisabled (bool); + DOM::DOMString name () const; + void setName (const DOM::DOMString&); + bool readOnly () const; + void setReadOnly (bool); + long rows () const; + void setRows (long); + long tabIndex () const; + void setTabIndex (long); + DOM::DOMString type () const; + DOM::DOMString value () const; + void setValue (const DOM::DOMString&); + void blur (); + void focus (); + void select (); + +%If ( KDE_3_5_2 - ) + long selectionStart (); + void setSelectionStart (long); + long selectionEnd (); + void setSelectionEnd (long); + void setSelectionRange (long, long); + long textLength (); +%End + + +}; // class HTMLTextAreaElement + + +class HTMLOptionElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLOptionElement (); + HTMLOptionElement (const DOM::HTMLOptionElement&); + HTMLOptionElement (const DOM::Node&); + +protected: +//ig HTMLOptionElement (HTMLOptionElementImpl*); + +public: + DOM::HTMLFormElement form () const; + bool defaultSelected () const; + void setDefaultSelected (bool); + DOM::DOMString text () const; + long index () const; + void setIndex (long); + bool disabled () const; + void setDisabled (bool); + DOM::DOMString label () const; + void setLabel (const DOM::DOMString&); + bool selected () const; + void setSelected (bool); + DOM::DOMString value () const; + void setValue (const DOM::DOMString&); + +}; // class HTMLOptionElement + + +class HTMLIsIndexElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLIsIndexElement (); + HTMLIsIndexElement (const DOM::HTMLIsIndexElement&); + HTMLIsIndexElement (const DOM::Node&); + +protected: +//ig HTMLIsIndexElement (HTMLIsIndexElementImpl*); + +public: + DOM::HTMLFormElement form () const; + DOM::DOMString prompt () const; + void setPrompt (const DOM::DOMString&); + +}; // class HTMLIsIndexElement + +}; // namespace DOM + diff --git a/sip/khtml/html_head.sip b/sip/khtml/html_head.sip new file mode 100644 index 0000000..46badd3 --- /dev/null +++ b/sip/khtml/html_head.sip @@ -0,0 +1,203 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module khtml version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +namespace DOM +{ + +class HTMLBaseElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLBaseElement (); + HTMLBaseElement (const DOM::HTMLBaseElement&); + HTMLBaseElement (const DOM::Node&); + +protected: +//ig HTMLBaseElement (HTMLBaseElementImpl*); + +public: + DOM::DOMString href () const; + void setHref (const DOM::DOMString&); + DOM::DOMString target () const; + void setTarget (const DOM::DOMString&); + +}; // class HTMLBaseElement + + +class HTMLLinkElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLLinkElement (); + HTMLLinkElement (const DOM::HTMLLinkElement&); + HTMLLinkElement (const DOM::Node&); + +protected: +//ig HTMLLinkElement (HTMLLinkElementImpl*); + +public: + bool disabled () const; + void setDisabled (bool); + DOM::DOMString charset () const; + void setCharset (const DOM::DOMString&); + DOM::DOMString href () const; + void setHref (const DOM::DOMString&); + DOM::DOMString hreflang () const; + void setHreflang (const DOM::DOMString&); + DOM::DOMString media () const; + void setMedia (const DOM::DOMString&); + DOM::DOMString rel () const; + void setRel (const DOM::DOMString&); + DOM::DOMString rev () const; + void setRev (const DOM::DOMString&); + DOM::DOMString target () const; + void setTarget (const DOM::DOMString&); + DOM::DOMString type () const; + void setType (const DOM::DOMString&); + DOM::StyleSheet sheet () const; + +}; // class HTMLLinkElement + + +class HTMLMetaElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLMetaElement (); + HTMLMetaElement (const DOM::HTMLMetaElement&); + HTMLMetaElement (const DOM::Node&); + +protected: +//ig HTMLMetaElement (HTMLMetaElementImpl*); + +public: + DOM::DOMString content () const; + void setContent (const DOM::DOMString&); + DOM::DOMString httpEquiv () const; + void setHttpEquiv (const DOM::DOMString&); + DOM::DOMString name () const; + void setName (const DOM::DOMString&); + DOM::DOMString scheme () const; + void setScheme (const DOM::DOMString&); + +}; // class HTMLMetaElement + + +class HTMLScriptElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLScriptElement (); + HTMLScriptElement (const DOM::HTMLScriptElement&); + HTMLScriptElement (const DOM::Node&); + +protected: +//ig HTMLScriptElement (HTMLScriptElementImpl*); + +public: + DOM::DOMString text () const; + void setText (const DOM::DOMString&); + DOM::DOMString htmlFor () const; + void setHtmlFor (const DOM::DOMString&); + DOM::DOMString event () const; + void setEvent (const DOM::DOMString&); + DOM::DOMString charset () const; + void setCharset (const DOM::DOMString&); + bool defer () const; + void setDefer (bool); + DOM::DOMString src () const; + void setSrc (const DOM::DOMString&); + DOM::DOMString type () const; + void setType (const DOM::DOMString&); + +}; // class HTMLScriptElement + + +class HTMLStyleElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLStyleElement (); + HTMLStyleElement (const DOM::HTMLStyleElement&); + HTMLStyleElement (const DOM::Node&); + +protected: +//ig HTMLStyleElement (HTMLStyleElementImpl*); + +public: + bool disabled () const; + void setDisabled (bool); + DOM::DOMString media () const; + void setMedia (const DOM::DOMString&); + DOM::DOMString type () const; + void setType (const DOM::DOMString&); + DOM::StyleSheet sheet () const; + +}; // class HTMLStyleElement + + +class HTMLTitleElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLTitleElement (); + HTMLTitleElement (const DOM::HTMLTitleElement&); + HTMLTitleElement (const DOM::Node&); + +protected: +//ig HTMLTitleElement (HTMLTitleElementImpl*); + +public: + DOM::DOMString text () const; + void setText (const DOM::DOMString&); + +}; // class HTMLTitleElement + +}; // namespace DOM + diff --git a/sip/khtml/html_image.sip b/sip/khtml/html_image.sip new file mode 100644 index 0000000..5db67b1 --- /dev/null +++ b/sip/khtml/html_image.sip @@ -0,0 +1,144 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module khtml version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +namespace DOM +{ + +class HTMLAreaElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLAreaElement (); + HTMLAreaElement (const DOM::HTMLAreaElement&); + HTMLAreaElement (const DOM::Node&); + +protected: +//ig HTMLAreaElement (HTMLAreaElementImpl*); + +public: + DOM::DOMString accessKey () const; + void setAccessKey (const DOM::DOMString&); + DOM::DOMString alt () const; + void setAlt (const DOM::DOMString&); + DOM::DOMString coords () const; + void setCoords (const DOM::DOMString&); + DOM::DOMString href () const; + void setHref (const DOM::DOMString&); + bool noHref () const; + void setNoHref (bool); + DOM::DOMString shape () const; + void setShape (const DOM::DOMString&); + long tabIndex () const; + void setTabIndex (long); + DOM::DOMString target () const; + void setTarget (const DOM::DOMString&); + +}; // class HTMLAreaElement + + +class HTMLImageElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLImageElement (); + HTMLImageElement (const DOM::HTMLImageElement&); + HTMLImageElement (const DOM::Node&); + +protected: +//ig HTMLImageElement (HTMLImageElementImpl*); + +public: + DOM::DOMString name () const; + void setName (const DOM::DOMString&); + DOM::DOMString align () const; + void setAlign (const DOM::DOMString&); + DOM::DOMString alt () const; + void setAlt (const DOM::DOMString&); + +%If ( KDE_3_1_0 - ) + DOM::DOMString getBorder () const; + void setBorder (const DOM::DOMString&); +%End + + long border () const; + void setBorder (long); + long height () const; + void setHeight (long); + long hspace () const; + void setHspace (long); + bool isMap () const; + void setIsMap (bool); + DOM::DOMString longDesc () const; + void setLongDesc (const DOM::DOMString&); + DOM::DOMString src () const; + void setSrc (const DOM::DOMString&); + DOM::DOMString useMap () const; + void setUseMap (const DOM::DOMString&); + long vspace () const; + void setVspace (long); + long width () const; + void setWidth (long); + +%If ( KDE_3_2_0 - ) + long x () const; + long y () const; +%End + + +}; // class HTMLImageElement + + +class HTMLMapElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLMapElement (); + HTMLMapElement (const DOM::HTMLMapElement&); + HTMLMapElement (const DOM::Node&); + +protected: +//ig HTMLMapElement (HTMLMapElementImpl*); + +public: + DOM::HTMLCollection areas () const; + DOM::DOMString name () const; + void setName (const DOM::DOMString&); + +}; // class HTMLMapElement + +}; // namespace DOM + diff --git a/sip/khtml/html_inline.sip b/sip/khtml/html_inline.sip new file mode 100644 index 0000000..bd3b1b0 --- /dev/null +++ b/sip/khtml/html_inline.sip @@ -0,0 +1,169 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module khtml version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +namespace DOM +{ + +class HTMLAnchorElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLAnchorElement (); + HTMLAnchorElement (const DOM::HTMLAnchorElement&); + HTMLAnchorElement (const DOM::Node&); + +protected: +//ig HTMLAnchorElement (HTMLAnchorElementImpl*); + +public: + DOM::DOMString accessKey () const; + void setAccessKey (const DOM::DOMString&); + DOM::DOMString charset () const; + void setCharset (const DOM::DOMString&); + DOM::DOMString coords () const; + void setCoords (const DOM::DOMString&); + DOM::DOMString href () const; + void setHref (const DOM::DOMString&); + DOM::DOMString hreflang () const; + void setHreflang (const DOM::DOMString&); + DOM::DOMString name () const; + void setName (const DOM::DOMString&); + DOM::DOMString rel () const; + void setRel (const DOM::DOMString&); + DOM::DOMString rev () const; + void setRev (const DOM::DOMString&); + DOM::DOMString shape () const; + void setShape (const DOM::DOMString&); + long tabIndex () const; + void setTabIndex (long); + DOM::DOMString target () const; + void setTarget (const DOM::DOMString&); + DOM::DOMString type () const; + void setType (const DOM::DOMString&); + void blur (); + void focus (); + +}; // class HTMLAnchorElement + + +class HTMLBRElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLBRElement (); + HTMLBRElement (const DOM::HTMLBRElement&); + HTMLBRElement (const DOM::Node&); + +protected: +//ig HTMLBRElement (HTMLBRElementImpl*); + +public: + DOM::DOMString clear () const; + void setClear (const DOM::DOMString&); + +}; // class HTMLBRElement + + +class HTMLFontElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLFontElement (); + HTMLFontElement (const DOM::HTMLFontElement&); + HTMLFontElement (const DOM::Node&); + +protected: +//ig HTMLFontElement (HTMLFontElementImpl*); + +public: + DOM::DOMString color () const; + void setColor (const DOM::DOMString&); + DOM::DOMString face () const; + void setFace (const DOM::DOMString&); + DOM::DOMString size () const; + void setSize (const DOM::DOMString&); + +}; // class HTMLFontElement + + +class HTMLModElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLModElement (); + HTMLModElement (const DOM::HTMLModElement&); + HTMLModElement (const DOM::Node&); + +protected: +//ig HTMLModElement (HTMLElementImpl*); + +public: + DOM::DOMString cite () const; + void setCite (const DOM::DOMString&); + DOM::DOMString dateTime () const; + void setDateTime (const DOM::DOMString&); + +}; // class HTMLModElement + + +class HTMLQuoteElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLQuoteElement (); + HTMLQuoteElement (const DOM::HTMLQuoteElement&); + HTMLQuoteElement (const DOM::Node&); + +protected: +//ig HTMLQuoteElement (HTMLGenericElementImpl*); + +public: + DOM::DOMString cite () const; + void setCite (const DOM::DOMString&); + +}; // class HTMLQuoteElement + +}; // namespace DOM + diff --git a/sip/khtml/html_list.sip b/sip/khtml/html_list.sip new file mode 100644 index 0000000..fa6cd0e --- /dev/null +++ b/sip/khtml/html_list.sip @@ -0,0 +1,169 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module khtml version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +namespace DOM +{ + +class HTMLDListElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLDListElement (); + HTMLDListElement (const DOM::HTMLDListElement&); + HTMLDListElement (const DOM::Node&); + +protected: +//ig HTMLDListElement (HTMLDListElementImpl*); + +public: + bool compact () const; + void setCompact (bool); + +}; // class HTMLDListElement + + +class HTMLDirectoryElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLDirectoryElement (); + HTMLDirectoryElement (const DOM::HTMLDirectoryElement&); + HTMLDirectoryElement (const DOM::Node&); + +protected: +//ig HTMLDirectoryElement (HTMLDirectoryElementImpl*); + +public: + bool compact () const; + void setCompact (bool); + +}; // class HTMLDirectoryElement + + +class HTMLLIElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLLIElement (); + HTMLLIElement (const DOM::HTMLLIElement&); + HTMLLIElement (const DOM::Node&); + +protected: +//ig HTMLLIElement (HTMLLIElementImpl*); + +public: + DOM::DOMString type () const; + void setType (const DOM::DOMString&); + long value () const; + void setValue (long); + +}; // class HTMLLIElement + + +class HTMLMenuElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLMenuElement (); + HTMLMenuElement (const DOM::HTMLMenuElement&); + HTMLMenuElement (const DOM::Node&); + +protected: +//ig HTMLMenuElement (HTMLMenuElementImpl*); + +public: + bool compact () const; + void setCompact (bool); + +}; // class HTMLMenuElement + + +class HTMLOListElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLOListElement (); + HTMLOListElement (const DOM::HTMLOListElement&); + HTMLOListElement (const DOM::Node&); + +protected: +//ig HTMLOListElement (HTMLOListElementImpl*); + +public: + bool compact () const; + void setCompact (bool); + long start () const; + void setStart (long); + DOM::DOMString type () const; + void setType (const DOM::DOMString&); + +}; // class HTMLOListElement + + +class HTMLUListElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLUListElement (); + HTMLUListElement (const DOM::HTMLUListElement&); + HTMLUListElement (const DOM::Node&); + +protected: +//ig HTMLUListElement (HTMLUListElementImpl*); + +public: + bool compact () const; + void setCompact (bool); + DOM::DOMString type () const; + void setType (const DOM::DOMString&); + +}; // class HTMLUListElement + +}; // namespace DOM + diff --git a/sip/khtml/html_misc.sip b/sip/khtml/html_misc.sip new file mode 100644 index 0000000..291a491 --- /dev/null +++ b/sip/khtml/html_misc.sip @@ -0,0 +1,97 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module khtml version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +namespace DOM +{ + +class HTMLBaseFontElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLBaseFontElement (); + HTMLBaseFontElement (const DOM::HTMLBaseFontElement&); + HTMLBaseFontElement (const DOM::Node&); + +protected: +//ig HTMLBaseFontElement (HTMLBaseFontElementImpl*); + +public: + DOM::DOMString color () const; + void setColor (const DOM::DOMString&); + DOM::DOMString face () const; + void setFace (const DOM::DOMString&); + +%If ( KDE_3_1_0 - ) + long getSize () const; + void setSize (long); +%End + + DOM::DOMString size () const; + void setSize (const DOM::DOMString&); + +}; // class HTMLBaseFontElement + + +class HTMLCollection +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLCollection (); + HTMLCollection (const DOM::HTMLCollection&); + +protected: +//ig HTMLCollection (NodeImpl*, int); + +public: + ulong length () const; + DOM::Node item (ulong) const; + DOM::Node namedItem (const DOM::DOMString&) const; + DOM::Node base () const; +//ig HTMLCollectionImpl* handle () const; + bool isNull () const; + DOM::Node firstItem () const; + DOM::Node nextItem () const; + DOM::Node nextNamedItem (const DOM::DOMString&) const; + +protected: + +}; // class HTMLCollection + + +//ig class HTMLFormCollection : DOM::HTMLCollection; + + +//ig class HTMLMappedNameCollection : DOM::HTMLCollection; + +}; // namespace DOM + diff --git a/sip/khtml/html_object.sip b/sip/khtml/html_object.sip new file mode 100644 index 0000000..94b027d --- /dev/null +++ b/sip/khtml/html_object.sip @@ -0,0 +1,179 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module khtml version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +namespace DOM +{ + +class HTMLAppletElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLAppletElement (); + HTMLAppletElement (const DOM::HTMLAppletElement&); + HTMLAppletElement (const DOM::Node&); + +protected: +//ig HTMLAppletElement (HTMLAppletElementImpl*); + +public: + DOM::DOMString align () const; + void setAlign (const DOM::DOMString&); + DOM::DOMString alt () const; + void setAlt (const DOM::DOMString&); + DOM::DOMString archive () const; + void setArchive (const DOM::DOMString&); + DOM::DOMString code () const; + void setCode (const DOM::DOMString&); + DOM::DOMString codeBase () const; + void setCodeBase (const DOM::DOMString&); + DOM::DOMString height () const; + void setHeight (const DOM::DOMString&); + +%If ( KDE_3_1_0 - ) + long getHspace () const; + void setHspace (long); +%End + + DOM::DOMString hspace () const; + void setHspace (const DOM::DOMString&); + DOM::DOMString name () const; + void setName (const DOM::DOMString&); + DOM::DOMString object () const; + void setObject (const DOM::DOMString&); + +%If ( KDE_3_1_0 - ) + long getVspace () const; + void setVspace (long); +%End + + DOM::DOMString vspace () const; + void setVspace (const DOM::DOMString&); + DOM::DOMString width () const; + void setWidth (const DOM::DOMString&); + +}; // class HTMLAppletElement + + +class HTMLObjectElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLObjectElement (); + HTMLObjectElement (const DOM::HTMLObjectElement&); + HTMLObjectElement (const DOM::Node&); + +protected: +//ig HTMLObjectElement (HTMLObjectElementImpl*); + +public: + DOM::HTMLFormElement form () const; + DOM::DOMString code () const; + void setCode (const DOM::DOMString&); + DOM::DOMString align () const; + void setAlign (const DOM::DOMString&); + DOM::DOMString archive () const; + void setArchive (const DOM::DOMString&); + DOM::DOMString border () const; + void setBorder (const DOM::DOMString&); + DOM::DOMString codeBase () const; + void setCodeBase (const DOM::DOMString&); + DOM::DOMString codeType () const; + void setCodeType (const DOM::DOMString&); + DOM::DOMString data () const; + void setData (const DOM::DOMString&); + bool declare () const; + void setDeclare (bool); + DOM::DOMString height () const; + void setHeight (const DOM::DOMString&); + +%If ( KDE_3_1_0 - ) + long getHspace () const; + void setHspace (long); +%End + + DOM::DOMString hspace () const; + void setHspace (const DOM::DOMString&); + DOM::DOMString name () const; + void setName (const DOM::DOMString&); + DOM::DOMString standby () const; + void setStandby (const DOM::DOMString&); + long tabIndex () const; + void setTabIndex (long); + DOM::DOMString type () const; + void setType (const DOM::DOMString&); + DOM::DOMString useMap () const; + void setUseMap (const DOM::DOMString&); + +%If ( KDE_3_1_0 - ) + long getVspace () const; + void setVspace (long); +%End + + DOM::DOMString vspace () const; + void setVspace (const DOM::DOMString&); + DOM::DOMString width () const; + void setWidth (const DOM::DOMString&); + DOM::Document contentDocument () const; + +}; // class HTMLObjectElement + + +class HTMLParamElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLParamElement (); + HTMLParamElement (const DOM::HTMLParamElement&); + HTMLParamElement (const DOM::Node&); + +protected: +//ig HTMLParamElement (HTMLParamElementImpl*); + +public: + DOM::DOMString name () const; + void setName (const DOM::DOMString&); + DOM::DOMString type () const; + void setType (const DOM::DOMString&); + DOM::DOMString value () const; + void setValue (const DOM::DOMString&); + DOM::DOMString valueType () const; + void setValueType (const DOM::DOMString&); + +}; // class HTMLParamElement + +}; // namespace DOM + diff --git a/sip/khtml/html_table.sip b/sip/khtml/html_table.sip new file mode 100644 index 0000000..3ae6ed4 --- /dev/null +++ b/sip/khtml/html_table.sip @@ -0,0 +1,256 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module khtml version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +namespace DOM +{ + +class HTMLTableCaptionElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLTableCaptionElement (); + HTMLTableCaptionElement (const DOM::HTMLTableCaptionElement&); + HTMLTableCaptionElement (const DOM::Node&); + +protected: +//ig HTMLTableCaptionElement (HTMLTableCaptionElementImpl*); + +public: + DOM::DOMString align () const; + void setAlign (const DOM::DOMString&); + +}; // class HTMLTableCaptionElement + + +class HTMLTableCellElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLTableCellElement (); + HTMLTableCellElement (const DOM::HTMLTableCellElement&); + HTMLTableCellElement (const DOM::Node&); + +protected: +//ig HTMLTableCellElement (HTMLTableCellElementImpl*); + +public: + long cellIndex () const; + void setCellIndex (long); + DOM::DOMString abbr () const; + void setAbbr (const DOM::DOMString&); + DOM::DOMString align () const; + void setAlign (const DOM::DOMString&); + DOM::DOMString axis () const; + void setAxis (const DOM::DOMString&); + DOM::DOMString bgColor () const; + void setBgColor (const DOM::DOMString&); + DOM::DOMString ch () const; + void setCh (const DOM::DOMString&); + DOM::DOMString chOff () const; + void setChOff (const DOM::DOMString&); + long colSpan () const; + void setColSpan (long); + DOM::DOMString headers () const; + void setHeaders (const DOM::DOMString&); + DOM::DOMString height () const; + void setHeight (const DOM::DOMString&); + bool noWrap () const; + void setNoWrap (bool); + long rowSpan () const; + void setRowSpan (long); + DOM::DOMString scope () const; + void setScope (const DOM::DOMString&); + DOM::DOMString vAlign () const; + void setVAlign (const DOM::DOMString&); + DOM::DOMString width () const; + void setWidth (const DOM::DOMString&); + +}; // class HTMLTableCellElement + + +class HTMLTableColElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLTableColElement (); + HTMLTableColElement (const DOM::HTMLTableColElement&); + HTMLTableColElement (const DOM::Node&); + +protected: +//ig HTMLTableColElement (HTMLTableColElementImpl*); + +public: + DOM::DOMString align () const; + void setAlign (const DOM::DOMString&); + DOM::DOMString ch () const; + void setCh (const DOM::DOMString&); + DOM::DOMString chOff () const; + void setChOff (const DOM::DOMString&); + long span () const; + void setSpan (long); + DOM::DOMString vAlign () const; + void setVAlign (const DOM::DOMString&); + DOM::DOMString width () const; + void setWidth (const DOM::DOMString&); + +}; // class HTMLTableColElement + + +class HTMLTableElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLTableElement (); + HTMLTableElement (const DOM::HTMLTableElement&); + HTMLTableElement (const DOM::Node&); + +protected: +//ig HTMLTableElement (HTMLTableElementImpl*); + +public: + DOM::HTMLTableCaptionElement caption () const; + void setCaption (const DOM::HTMLTableCaptionElement&); + DOM::HTMLTableSectionElement tHead () const; + void setTHead (const DOM::HTMLTableSectionElement&); + DOM::HTMLTableSectionElement tFoot () const; + void setTFoot (const DOM::HTMLTableSectionElement&); + DOM::HTMLCollection rows () const; + DOM::HTMLCollection tBodies () const; + DOM::DOMString align () const; + void setAlign (const DOM::DOMString&); + DOM::DOMString bgColor () const; + void setBgColor (const DOM::DOMString&); + DOM::DOMString border () const; + void setBorder (const DOM::DOMString&); + DOM::DOMString cellPadding () const; + void setCellPadding (const DOM::DOMString&); + DOM::DOMString cellSpacing () const; + void setCellSpacing (const DOM::DOMString&); + DOM::DOMString frame () const; + void setFrame (const DOM::DOMString&); + DOM::DOMString rules () const; + void setRules (const DOM::DOMString&); + DOM::DOMString summary () const; + void setSummary (const DOM::DOMString&); + DOM::DOMString width () const; + void setWidth (const DOM::DOMString&); + DOM::HTMLElement createTHead (); + void deleteTHead (); + DOM::HTMLElement createTFoot (); + void deleteTFoot (); + DOM::HTMLElement createCaption (); + void deleteCaption (); + DOM::HTMLElement insertRow (long); + void deleteRow (long); + +}; // class HTMLTableElement + + +class HTMLTableRowElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLTableRowElement (); + HTMLTableRowElement (const DOM::HTMLTableRowElement&); + HTMLTableRowElement (const DOM::Node&); + +protected: +//ig HTMLTableRowElement (HTMLTableRowElementImpl*); + +public: + long rowIndex () const; + void setRowIndex (long); + long sectionRowIndex () const; + void setSectionRowIndex (long); + DOM::HTMLCollection cells () const; + void setCells (const DOM::HTMLCollection&); + DOM::DOMString align () const; + void setAlign (const DOM::DOMString&); + DOM::DOMString bgColor () const; + void setBgColor (const DOM::DOMString&); + DOM::DOMString ch () const; + void setCh (const DOM::DOMString&); + DOM::DOMString chOff () const; + void setChOff (const DOM::DOMString&); + DOM::DOMString vAlign () const; + void setVAlign (const DOM::DOMString&); + DOM::HTMLElement insertCell (long); + void deleteCell (long); + +}; // class HTMLTableRowElement + + +class HTMLTableSectionElement : DOM::HTMLElement +{ +%TypeHeaderCode +#include +%End + + +public: + HTMLTableSectionElement (); + HTMLTableSectionElement (const DOM::HTMLTableSectionElement&); + HTMLTableSectionElement (const DOM::Node&); + +protected: +//ig HTMLTableSectionElement (HTMLTableSectionElementImpl*); + +public: + DOM::DOMString align () const; + void setAlign (const DOM::DOMString&); + DOM::DOMString ch () const; + void setCh (const DOM::DOMString&); + DOM::DOMString chOff () const; + void setChOff (const DOM::DOMString&); + DOM::DOMString vAlign () const; + void setVAlign (const DOM::DOMString&); + DOM::HTMLCollection rows () const; + DOM::HTMLElement insertRow (long); + void deleteRow (long); + +}; // class HTMLTableSectionElement + +}; // namespace DOM + diff --git a/sip/khtml/khtml_part.sip b/sip/khtml/khtml_part.sip new file mode 100644 index 0000000..be24216 --- /dev/null +++ b/sip/khtml/khtml_part.sip @@ -0,0 +1,282 @@ +// +// Copyright 2004 Jim Bublitz +// Earlier copyrights 1998 - 2003 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module khtml version KDE_3_3_0 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KHTMLPart : KParts::ReadOnlyPart +{ +%TypeHeaderCode +#include +%End + + +public: + + enum GUIProfile + { + DefaultGUI, + BrowserViewGUI + }; + + KHTMLPart (QWidget* = 0, const char* = 0, QObject* /TransferThis/ = 0, const char* = 0, KHTMLPart::GUIProfile = DefaultGUI ); + KHTMLPart (KHTMLView*, QObject* /TransferThis/ = 0, const char* = 0, KHTMLPart::GUIProfile = DefaultGUI ); + virtual bool openURL (const KURL&); + virtual bool closeURL (); + virtual void showError (KIO::Job*); + DOM::HTMLDocument htmlDocument () const; + DOM::Document document () const; + DOM::Node activeNode () const; + KParts::BrowserExtension* browserExtension () const; + +%If ( KDE_3_1_0 - ) +//ig KParts::LiveConnectExtension* liveConnectExtension (const khtml::RenderPart*) const; +%End + + KHTMLView* view () const; + void setJScriptEnabled (bool); + bool jScriptEnabled () const; + +%If ( KDE_3_2_0 - ) +//ig KJS::Interpreter* jScriptInterpreter (); + void setStatusMessagesEnabled (bool); + bool statusMessagesEnabled () const; +%End + + void setMetaRefreshEnabled (bool); + bool metaRefreshEnabled () const; + QVariant executeScript (const DOM::Node&, const QString&); + void setDNDEnabled (bool); + bool dndEnabled () const; + void setJavaEnabled (bool); + bool javaEnabled () const; +//ig KJavaAppletContext* javaContext (); +//ig KJavaAppletContext* createJavaContext (); + void setPluginsEnabled (bool); + bool pluginsEnabled () const; + void setAutoloadImages (bool); + bool autoloadImages () const; + void setOnlyLocalReferences (bool); + bool onlyLocalReferences () const; + +%If ( KDE_3_2_0 - ) + bool isCaretMode () const; + bool isEditable () const; + void setCaretPosition (DOM::Node, long, bool = 0); + + enum CaretDisplayPolicy + { + CaretVisible, + CaretInvisible, + CaretBlink + }; + + KHTMLPart::CaretDisplayPolicy caretDisplayPolicyNonFocused () const; + void setCaretDisplayPolicyNonFocused (KHTMLPart::CaretDisplayPolicy); +%End + + void enableJScript (bool); + void enableJava (bool); + void enablePlugins (bool); + void autoloadImages (bool); + void enableMetaRefresh (bool); + bool setCharset (const QString&, bool = 0); + KURL baseURL () const; + QString baseTarget () const; + KURL backgroundURL () const; + void scheduleRedirection (int, const QString&, bool = 1); + virtual void begin (const KURL& = KURL (), int = 0, int = 0); + virtual void write (const char*, int = -1); + virtual void write (const QString&); + virtual void end (); + void paint (QPainter*, const QRect&, int = 0, bool* = 0); + bool setEncoding (const QString&, bool = 0); + QString encoding (); + void setUserStyleSheet (const KURL&); + void setUserStyleSheet (const QString&); + +public: + void setStandardFont (const QString&); + void setFixedFont (const QString&); + bool gotoAnchor (const QString&); + +%If ( KDE_3_2_0 - ) + bool nextAnchor (); + bool prevAnchor (); +%End + + void setURLCursor (const QCursor&); + QCursor urlCursor () const; + +%If ( KDE_3_3_0 - ) + + enum FindOptions + { + FindLinksOnly, + FindNoPopups + }; + + void findText (); + void findText (const QString&, long, QWidget* /Transfer/ = 0, KFindDialog* = 0); +%End + + void findTextBegin (); + bool findTextNext (const QString&, bool, bool, bool); + +%If ( KDE_3_3_0 - ) + bool findTextNext (); +%End + + void setZoomFactor (int); + int zoomFactor () const; + virtual QString selectedText () const; + DOM::Range selection () const; + +%If ( KDE_3_2_0 - ) + void selection (DOM::Node&, long&, DOM::Node&, long&) const; +%End + + void setSelection (const DOM::Range&); + bool hasSelection () const; + void selectAll (); + void show (); + void hide (); + KParts::PartManager* partManager (); + virtual void saveState (QDataStream&); + virtual void restoreState (QDataStream&); + DOM::Node nodeUnderMouse () const; + const KHTMLSettings* settings () const; + KHTMLPart* parentPart (); + QStringList frameNames () const; + QPtrList frames () const; + KHTMLPart* findFrame (const QString&); + KParts::ReadOnlyPart* currentFrame () const; + bool frameExists (const QString&); + void setJSStatusBarText (const QString&); + void setJSDefaultStatusBarText (const QString&); + QString jsStatusBarText () const; + QString jsDefaultStatusBarText () const; + QString referrer () const; + +%If ( KDE_3_1_3 - ) + QString pageReferrer () const; +%End + + QString lastModified () const; + void preloadStyleSheet (const QString&, const QString&); + void preloadScript (const QString&, const QString&); + bool restored () const; + +%If ( KDE_3_2_0 - ) + + enum FormNotification + { + NoNotification = 0, + Before, + Only, + Unused = 255 + }; + + void setFormNotification (KHTMLPart::FormNotification); + KHTMLPart::FormNotification formNotification () const; + KURL toplevelURL (); + +%If ( KDE_3_3_0 - ) + bool isModified () const; +%End + +%End + + +signals: + void onURL (const QString&); + void popupMenu (const QString&, const QPoint&); + void selectionChanged (); + void nodeActivated (const DOM::Node&); + +%If ( KDE_3_1_0 - ) + void docCreated (); + +%If ( KDE_3_2_0 - ) + void caretPositionChanged (const DOM::Node&, long); + void formSubmitNotification (const char*, const QString&, const QByteArray&, const QString&, const QString&, const QString&); +%End + +%End + + +protected: + KURL completeURL (const QString&); + void htmlError (int, const QString&, const KURL&); + virtual void customEvent (QCustomEvent*); +//ig virtual void khtmlMousePressEvent (khtml::MousePressEvent*); +//ig virtual void khtmlMouseDoubleClickEvent (khtml::MouseDoubleClickEvent*); +//ig virtual void khtmlMouseMoveEvent (khtml::MouseMoveEvent*); +//ig virtual void khtmlMouseReleaseEvent (khtml::MouseReleaseEvent*); +//ig virtual void khtmlDrawContentsEvent (khtml::DrawContentsEvent*); + virtual void guiActivateEvent (KParts::GUIActivateEvent*); + virtual bool openFile (); + virtual void urlSelected (const QString&, int, int, const QString&, KParts::URLArgs = KParts ::URLArgs ()); + virtual KParts::ReadOnlyPart* createPart (QWidget*, const char*, QObject* /Transfer/, const char*, const QString&, QString&, QStringList&, const QStringList&); + +%If ( KDE_3_1_0 - ) + bool pluginPageQuestionAsked (const QString&) const; + void setPluginPageQuestionAsked (const QString&); + +%If ( KDE_3_2_0 - ) +//ig void setPageSecurity (KHTMLPart::PageSecurity); + virtual bool doOpenStream (const QString&); + virtual bool doWriteStream (const QByteArray&); + virtual bool doCloseStream (); +%End + +%End + + +public slots: + void setActiveNode (const DOM::Node&); + void stopAnimations (); + QCString dcopObjectId () const; + +%If ( KDE_3_2_0 - ) + QVariant executeScript (const QString&); + void setCaretMode (bool); + void setEditable (bool); + void setCaretVisible (bool); + void submitFormProxy (const char*, const QString&, const QByteArray&, const QString&, const QString& = QString ::null , const QString& = QString ::null ); +%End + +public: + +%If ( - KDE_3_2_0 ) + QVariant executeScript (const QString&); +%End + +//force + +private: + void setStatusBarText (const QString&, int); +//end + +}; // class KHTMLPart + diff --git a/sip/khtml/khtml_part.sip.323 b/sip/khtml/khtml_part.sip.323 new file mode 100644 index 0000000..1173eef --- /dev/null +++ b/sip/khtml/khtml_part.sip.323 @@ -0,0 +1,272 @@ +// +// Copyright 2004 Jim Bublitz +// Earlier copyrights 1998 - 2003 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module khtml version KDE_3_3_0 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KHTMLPart : KParts::ReadOnlyPart +{ +%TypeHeaderCode +#include +%End + + +public: + + enum GUIProfile + { + DefaultGUI, + BrowserViewGUI + }; + + KHTMLPart (QWidget* = 0, const char* = 0, QObject* /TransferThis/ = 0, const char* = 0, KHTMLPart::GUIProfile = DefaultGUI ); + KHTMLPart (KHTMLView*, QObject* /TransferThis/ = 0, const char* = 0, KHTMLPart::GUIProfile = DefaultGUI ); + virtual bool openURL (const KURL&); + virtual bool closeURL (); + virtual void showError (KIO::Job*); + DOM::HTMLDocument htmlDocument () const; + DOM::Document document () const; + DOM::Node activeNode () const; + KParts::BrowserExtension* browserExtension () const; + +%If ( KDE_3_1_0 - ) +//ig KParts::LiveConnectExtension* liveConnectExtension (const khtml::RenderPart*) const; +%End + + KHTMLView* view () const; + void setJScriptEnabled (bool); + bool jScriptEnabled () const; + +%If ( KDE_3_2_0 - ) +//ig KJS::Interpreter* jScriptInterpreter (); + void setStatusMessagesEnabled (bool); + bool statusMessagesEnabled () const; +%End + + void setMetaRefreshEnabled (bool); + bool metaRefreshEnabled () const; + QVariant executeScript (const DOM::Node&, const QString&); + void setDNDEnabled (bool); + bool dndEnabled () const; + void setJavaEnabled (bool); + bool javaEnabled () const; +//ig KJavaAppletContext* javaContext (); +//ig KJavaAppletContext* createJavaContext (); + void setPluginsEnabled (bool); + bool pluginsEnabled () const; + void setAutoloadImages (bool); + bool autoloadImages () const; + void setOnlyLocalReferences (bool); + bool onlyLocalReferences () const; + +%If ( KDE_3_2_0 - ) + bool isCaretMode () const; + bool isEditable () const; + void setCaretPosition (DOM::Node, long, bool = 0); + + enum CaretDisplayPolicy + { + CaretVisible, + CaretInvisible, + CaretBlink + }; + + KHTMLPart::CaretDisplayPolicy caretDisplayPolicyNonFocused () const; + void setCaretDisplayPolicyNonFocused (KHTMLPart::CaretDisplayPolicy); +%End + + void enableJScript (bool); + void enableJava (bool); + void enablePlugins (bool); + void autoloadImages (bool); + void enableMetaRefresh (bool); + bool setCharset (const QString&, bool = 0); + KURL baseURL () const; + QString baseTarget () const; + KURL backgroundURL () const; + void scheduleRedirection (int, const QString&, bool = 1); + virtual void begin (const KURL& = KURL (), int = 0, int = 0); + virtual void write (const char*, int = -1); + virtual void write (const QString&); + virtual void end (); + void paint (QPainter*, const QRect&, int = 0, bool* = 0); + bool setEncoding (const QString&, bool = 0); + QString encoding (); + void setUserStyleSheet (const KURL&); + void setUserStyleSheet (const QString&); + +public: + void setStandardFont (const QString&); + void setFixedFont (const QString&); + bool gotoAnchor (const QString&); + +%If ( KDE_3_2_0 - ) + bool nextAnchor (); + bool prevAnchor (); +%End + + void setURLCursor (const QCursor&); + QCursor urlCursor () const; + + + void findTextBegin (); + bool findTextNext (const QString&, bool, bool, bool); + +%If ( KDE_3_3_0 - ) + void findText (); + bool findTextNext (); +%End + + void setZoomFactor (int); + int zoomFactor () const; + virtual QString selectedText () const; + DOM::Range selection () const; + +%If ( KDE_3_2_0 - ) + void selection (DOM::Node&, long&, DOM::Node&, long&) const; +%End + + void setSelection (const DOM::Range&); + bool hasSelection () const; + void selectAll (); + void show (); + void hide (); + KParts::PartManager* partManager (); + virtual void saveState (QDataStream&); + virtual void restoreState (QDataStream&); + DOM::Node nodeUnderMouse () const; + const KHTMLSettings* settings () const; + KHTMLPart* parentPart (); + QStringList frameNames () const; + QPtrList frames () const; + KHTMLPart* findFrame (const QString&); + KParts::ReadOnlyPart* currentFrame () const; + bool frameExists (const QString&); + void setJSStatusBarText (const QString&); + void setJSDefaultStatusBarText (const QString&); + QString jsStatusBarText () const; + QString jsDefaultStatusBarText () const; + QString referrer () const; + +%If ( KDE_3_1_3 - ) + QString pageReferrer () const; +%End + + QString lastModified () const; + void preloadStyleSheet (const QString&, const QString&); + void preloadScript (const QString&, const QString&); + bool restored () const; + +%If ( KDE_3_2_0 - ) + + enum FormNotification + { + NoNotification = 0, + Before, + Only, + Unused = 255 + }; + + void setFormNotification (KHTMLPart::FormNotification); + KHTMLPart::FormNotification formNotification () const; + KURL toplevelURL (); + +%If ( KDE_3_3_0 - ) + bool isModified () const; +%End + +%End + + +signals: + void onURL (const QString&); + void popupMenu (const QString&, const QPoint&); + void selectionChanged (); + void nodeActivated (const DOM::Node&); + +%If ( KDE_3_1_0 - ) + void docCreated (); + +%If ( KDE_3_2_0 - ) + void caretPositionChanged (const DOM::Node&, long); + void formSubmitNotification (const char*, const QString&, const QByteArray&, const QString&, const QString&, const QString&); +%End + +%End + + +protected: + KURL completeURL (const QString&); + void htmlError (int, const QString&, const KURL&); + virtual void customEvent (QCustomEvent*); +//ig virtual void khtmlMousePressEvent (khtml::MousePressEvent*); +//ig virtual void khtmlMouseDoubleClickEvent (khtml::MouseDoubleClickEvent*); +//ig virtual void khtmlMouseMoveEvent (khtml::MouseMoveEvent*); +//ig virtual void khtmlMouseReleaseEvent (khtml::MouseReleaseEvent*); +//ig virtual void khtmlDrawContentsEvent (khtml::DrawContentsEvent*); + virtual void guiActivateEvent (KParts::GUIActivateEvent*); + virtual bool openFile (); + virtual void urlSelected (const QString&, int, int, const QString&, KParts::URLArgs = KParts ::URLArgs ()); + virtual KParts::ReadOnlyPart* createPart (QWidget*, const char*, QObject* /Transfer/, const char*, const QString&, QString&, QStringList&, const QStringList&); + +%If ( KDE_3_1_0 - ) + bool pluginPageQuestionAsked (const QString&) const; + void setPluginPageQuestionAsked (const QString&); + +%If ( KDE_3_2_0 - ) +//ig void setPageSecurity (KHTMLPart::PageSecurity); + virtual bool doOpenStream (const QString&); + virtual bool doWriteStream (const QByteArray&); + virtual bool doCloseStream (); +%End + +%End + + +public slots: + void setActiveNode (const DOM::Node&); + void stopAnimations (); + QCString dcopObjectId () const; + +%If ( KDE_3_2_0 - ) + QVariant executeScript (const QString&); + void setCaretMode (bool); + void setEditable (bool); + void setCaretVisible (bool); + void submitFormProxy (const char*, const QString&, const QByteArray&, const QString&, const QString& = QString ::null , const QString& = QString ::null ); +%End + +public: + +%If ( - KDE_3_2_0 ) + QVariant executeScript (const QString&); +%End + +//force + +private: + void setStatusBarText (const QString&, int); +//end + +}; // class KHTMLPart + diff --git a/sip/khtml/khtml_part.sip.330 b/sip/khtml/khtml_part.sip.330 new file mode 100644 index 0000000..be24216 --- /dev/null +++ b/sip/khtml/khtml_part.sip.330 @@ -0,0 +1,282 @@ +// +// Copyright 2004 Jim Bublitz +// Earlier copyrights 1998 - 2003 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module khtml version KDE_3_3_0 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KHTMLPart : KParts::ReadOnlyPart +{ +%TypeHeaderCode +#include +%End + + +public: + + enum GUIProfile + { + DefaultGUI, + BrowserViewGUI + }; + + KHTMLPart (QWidget* = 0, const char* = 0, QObject* /TransferThis/ = 0, const char* = 0, KHTMLPart::GUIProfile = DefaultGUI ); + KHTMLPart (KHTMLView*, QObject* /TransferThis/ = 0, const char* = 0, KHTMLPart::GUIProfile = DefaultGUI ); + virtual bool openURL (const KURL&); + virtual bool closeURL (); + virtual void showError (KIO::Job*); + DOM::HTMLDocument htmlDocument () const; + DOM::Document document () const; + DOM::Node activeNode () const; + KParts::BrowserExtension* browserExtension () const; + +%If ( KDE_3_1_0 - ) +//ig KParts::LiveConnectExtension* liveConnectExtension (const khtml::RenderPart*) const; +%End + + KHTMLView* view () const; + void setJScriptEnabled (bool); + bool jScriptEnabled () const; + +%If ( KDE_3_2_0 - ) +//ig KJS::Interpreter* jScriptInterpreter (); + void setStatusMessagesEnabled (bool); + bool statusMessagesEnabled () const; +%End + + void setMetaRefreshEnabled (bool); + bool metaRefreshEnabled () const; + QVariant executeScript (const DOM::Node&, const QString&); + void setDNDEnabled (bool); + bool dndEnabled () const; + void setJavaEnabled (bool); + bool javaEnabled () const; +//ig KJavaAppletContext* javaContext (); +//ig KJavaAppletContext* createJavaContext (); + void setPluginsEnabled (bool); + bool pluginsEnabled () const; + void setAutoloadImages (bool); + bool autoloadImages () const; + void setOnlyLocalReferences (bool); + bool onlyLocalReferences () const; + +%If ( KDE_3_2_0 - ) + bool isCaretMode () const; + bool isEditable () const; + void setCaretPosition (DOM::Node, long, bool = 0); + + enum CaretDisplayPolicy + { + CaretVisible, + CaretInvisible, + CaretBlink + }; + + KHTMLPart::CaretDisplayPolicy caretDisplayPolicyNonFocused () const; + void setCaretDisplayPolicyNonFocused (KHTMLPart::CaretDisplayPolicy); +%End + + void enableJScript (bool); + void enableJava (bool); + void enablePlugins (bool); + void autoloadImages (bool); + void enableMetaRefresh (bool); + bool setCharset (const QString&, bool = 0); + KURL baseURL () const; + QString baseTarget () const; + KURL backgroundURL () const; + void scheduleRedirection (int, const QString&, bool = 1); + virtual void begin (const KURL& = KURL (), int = 0, int = 0); + virtual void write (const char*, int = -1); + virtual void write (const QString&); + virtual void end (); + void paint (QPainter*, const QRect&, int = 0, bool* = 0); + bool setEncoding (const QString&, bool = 0); + QString encoding (); + void setUserStyleSheet (const KURL&); + void setUserStyleSheet (const QString&); + +public: + void setStandardFont (const QString&); + void setFixedFont (const QString&); + bool gotoAnchor (const QString&); + +%If ( KDE_3_2_0 - ) + bool nextAnchor (); + bool prevAnchor (); +%End + + void setURLCursor (const QCursor&); + QCursor urlCursor () const; + +%If ( KDE_3_3_0 - ) + + enum FindOptions + { + FindLinksOnly, + FindNoPopups + }; + + void findText (); + void findText (const QString&, long, QWidget* /Transfer/ = 0, KFindDialog* = 0); +%End + + void findTextBegin (); + bool findTextNext (const QString&, bool, bool, bool); + +%If ( KDE_3_3_0 - ) + bool findTextNext (); +%End + + void setZoomFactor (int); + int zoomFactor () const; + virtual QString selectedText () const; + DOM::Range selection () const; + +%If ( KDE_3_2_0 - ) + void selection (DOM::Node&, long&, DOM::Node&, long&) const; +%End + + void setSelection (const DOM::Range&); + bool hasSelection () const; + void selectAll (); + void show (); + void hide (); + KParts::PartManager* partManager (); + virtual void saveState (QDataStream&); + virtual void restoreState (QDataStream&); + DOM::Node nodeUnderMouse () const; + const KHTMLSettings* settings () const; + KHTMLPart* parentPart (); + QStringList frameNames () const; + QPtrList frames () const; + KHTMLPart* findFrame (const QString&); + KParts::ReadOnlyPart* currentFrame () const; + bool frameExists (const QString&); + void setJSStatusBarText (const QString&); + void setJSDefaultStatusBarText (const QString&); + QString jsStatusBarText () const; + QString jsDefaultStatusBarText () const; + QString referrer () const; + +%If ( KDE_3_1_3 - ) + QString pageReferrer () const; +%End + + QString lastModified () const; + void preloadStyleSheet (const QString&, const QString&); + void preloadScript (const QString&, const QString&); + bool restored () const; + +%If ( KDE_3_2_0 - ) + + enum FormNotification + { + NoNotification = 0, + Before, + Only, + Unused = 255 + }; + + void setFormNotification (KHTMLPart::FormNotification); + KHTMLPart::FormNotification formNotification () const; + KURL toplevelURL (); + +%If ( KDE_3_3_0 - ) + bool isModified () const; +%End + +%End + + +signals: + void onURL (const QString&); + void popupMenu (const QString&, const QPoint&); + void selectionChanged (); + void nodeActivated (const DOM::Node&); + +%If ( KDE_3_1_0 - ) + void docCreated (); + +%If ( KDE_3_2_0 - ) + void caretPositionChanged (const DOM::Node&, long); + void formSubmitNotification (const char*, const QString&, const QByteArray&, const QString&, const QString&, const QString&); +%End + +%End + + +protected: + KURL completeURL (const QString&); + void htmlError (int, const QString&, const KURL&); + virtual void customEvent (QCustomEvent*); +//ig virtual void khtmlMousePressEvent (khtml::MousePressEvent*); +//ig virtual void khtmlMouseDoubleClickEvent (khtml::MouseDoubleClickEvent*); +//ig virtual void khtmlMouseMoveEvent (khtml::MouseMoveEvent*); +//ig virtual void khtmlMouseReleaseEvent (khtml::MouseReleaseEvent*); +//ig virtual void khtmlDrawContentsEvent (khtml::DrawContentsEvent*); + virtual void guiActivateEvent (KParts::GUIActivateEvent*); + virtual bool openFile (); + virtual void urlSelected (const QString&, int, int, const QString&, KParts::URLArgs = KParts ::URLArgs ()); + virtual KParts::ReadOnlyPart* createPart (QWidget*, const char*, QObject* /Transfer/, const char*, const QString&, QString&, QStringList&, const QStringList&); + +%If ( KDE_3_1_0 - ) + bool pluginPageQuestionAsked (const QString&) const; + void setPluginPageQuestionAsked (const QString&); + +%If ( KDE_3_2_0 - ) +//ig void setPageSecurity (KHTMLPart::PageSecurity); + virtual bool doOpenStream (const QString&); + virtual bool doWriteStream (const QByteArray&); + virtual bool doCloseStream (); +%End + +%End + + +public slots: + void setActiveNode (const DOM::Node&); + void stopAnimations (); + QCString dcopObjectId () const; + +%If ( KDE_3_2_0 - ) + QVariant executeScript (const QString&); + void setCaretMode (bool); + void setEditable (bool); + void setCaretVisible (bool); + void submitFormProxy (const char*, const QString&, const QByteArray&, const QString&, const QString& = QString ::null , const QString& = QString ::null ); +%End + +public: + +%If ( - KDE_3_2_0 ) + QVariant executeScript (const QString&); +%End + +//force + +private: + void setStatusBarText (const QString&, int); +//end + +}; // class KHTMLPart + diff --git a/sip/khtml/khtml_settings.sip b/sip/khtml/khtml_settings.sip new file mode 100644 index 0000000..4b13dd6 --- /dev/null +++ b/sip/khtml/khtml_settings.sip @@ -0,0 +1,298 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module khtml version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KHTMLSettings +{ +%TypeHeaderCode +#include +%End + + +public: + + enum KJavaScriptAdvice + { + KJavaScriptDunno, + KJavaScriptAccept, + KJavaScriptReject + }; + + + enum KAnimationAdvice + { + KAnimationDisabled, + KAnimationLoopOnce, + KAnimationEnabled + }; + + +%If ( KDE_3_2_0 - ) + + enum KJSWindowOpenPolicy + { + KJSWindowOpenAllow, + KJSWindowOpenAsk, + KJSWindowOpenDeny, + KJSWindowOpenSmart + }; + + + enum KJSWindowStatusPolicy + { + KJSWindowStatusAllow, + KJSWindowStatusIgnore + }; + + + enum KJSWindowMovePolicy + { + KJSWindowMoveAllow, + KJSWindowMoveIgnore + }; + + + enum KJSWindowResizePolicy + { + KJSWindowResizeAllow, + KJSWindowResizeIgnore + }; + + + enum KJSWindowFocusPolicy + { + KJSWindowFocusAllow, + KJSWindowFocusIgnore + }; + +%End + + KHTMLSettings (); + KHTMLSettings (const KHTMLSettings&); + void init (); + void init (KConfig*, bool = 1); + bool changeCursor (); + bool underlineLink (); + bool hoverLink (); + +%If ( KDE_3_4_0 - ) + bool allowTabulation () const; + bool autoSpellCheck () const; +%End + + KHTMLSettings::KAnimationAdvice showAnimations () const; + QString stdFontName () const; + QString fixedFontName () const; + QString serifFontName () const; + QString sansSerifFontName () const; + QString cursiveFontName () const; + QString fantasyFontName () const; + void setStdFontName (const QString&); + void setFixedFontName (const QString&); + int minFontSize () const; + int mediumFontSize () const; + +%If ( KDE_3_2_0 - ) + bool jsErrorsEnabled () const; + void setJSErrorsEnabled (bool); +%End + + const QString& encoding () const; + +%If ( KDE_3_4_0 - ) + bool followSystemColors () const; +%End + + const QColor& textColor (); + +%If ( KDE_3_4_0 - ) + const QColor& baseColor () const; +%End + + const QColor& linkColor (); + const QColor& vLinkColor (); + bool autoLoadImages (); + +%If ( KDE_3_4_0 - ) + bool unfinishedImageFrame () const; +%End + + +%If ( KDE_3_3_0 - ) + bool isOpenMiddleClickEnabled (); +%End + + +%If ( KDE_3_1_0 - ) + bool isBackRightClickEnabled (); +%End + + bool isJavaEnabled (const QString& = QString ::null ); + bool isJavaScriptEnabled (const QString& = QString ::null ); + bool isJavaScriptDebugEnabled (const QString& = QString ::null ); + +%If ( KDE_3_2_0 - ) + bool isJavaScriptErrorReportingEnabled (const QString& = QString ::null ) const; +%End + + bool isPluginsEnabled (const QString& = QString ::null ); + +%If ( KDE_3_5_0 - ) + bool isAdFiltered (const QString&) const; + bool isAdFilterEnabled () const; + bool isHideAdsEnabled () const; + void addAdFilter (const QString&); + bool accessKeysEnabled () const; +%End + + +%If ( KDE_3_2_0 - ) + KHTMLSettings::KJSWindowOpenPolicy windowOpenPolicy (const QString& = QString ::null ) const; + KHTMLSettings::KJSWindowMovePolicy windowMovePolicy (const QString& = QString ::null ) const; + KHTMLSettings::KJSWindowResizePolicy windowResizePolicy (const QString& = QString ::null ) const; + KHTMLSettings::KJSWindowStatusPolicy windowStatusPolicy (const QString& = QString ::null ) const; + KHTMLSettings::KJSWindowFocusPolicy windowFocusPolicy (const QString& = QString ::null ) const; +%End + + static KJavaScriptAdvice strToAdvice (const QString&); +//ig static void splitDomainAdvice (const QString&, QString&, KHTMLSettings::KJavaScriptAdvice&, KHTMLSettings::KJavaScriptAdvice&); + static const char* adviceToStr (KHTMLSettings::KJavaScriptAdvice); + +%If ( KDE_3_2_0 - ) +//ig void readDomainSettings (KConfig*, bool, bool, KPerDomainSettings&); +%End + + QString settingsToCSS () const; + static const QString& availableFamilies (); + QString userStyleSheet () const; + bool isFormCompletionEnabled () const; + int maxFormCompletionItems () const; + +%If ( KDE_3_1_1 - ) + bool isAutoDelayedActionsEnabled () const; + +%If ( KDE_3_5_0 - ) + QValueList> fallbackAccessKeysAssignments () const; + void setJSPopupBlockerPassivePopup (bool); + bool jsPopupBlockerPassivePopup () const; +%End + +%End + + +}; // class KHTMLSettings + + + +%If (KDE_3_5_0 - ) +%MappedType QValueList> +//converts a Python list of tuples (QString,QChar) +{ +%TypeHeaderCode +#include +#include +#include +typedef QPair AssignPair; +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New(0); + + // Create the list + PyObject *pylist; + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + QValueList *cpplist = (QValueList *)sipCpp; + + // Get it. + QValueList::Iterator it; + for( it = cpplist->begin(); it != cpplist->end(); ++it ) + { + PyObject *inst = NULL; + QString s = (*it).first; + QChar c = (*it).second; + PyObject *pys = sipConvertFromNewType(new QString(s), sipType_QString, sipTransferObj); + PyObject *pyc = sipConvertFromNewType(new QChar(c), sipType_QChar, sipTransferObj); + if ((pys == NULL) || ((inst = Py_BuildValue ("NN", pys, pyc)) == NULL) + || PyList_Append (pylist, inst) < 0) + { + Py_XDECREF (inst); + Py_XDECREF (pys); + Py_XDECREF (pyc); + Py_DECREF (pylist); + return NULL; + } + } + + return pylist; +%End + + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QValueList *cpplist = new QValueList; + + QString *p1; + QChar *p2; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + int p1_state, p2_state; + + PyObject *elem = PyList_GET_ITEM (sipPy, i); + PyObject *pyp1 = PyTuple_GET_ITEM (elem, 0); + PyObject *pyp2 = PyTuple_GET_ITEM (elem, 1); + p1 = (QString *)sipForceConvertToType(pyp1, sipType_QString, sipTransferObj, SIP_NOT_NONE, &p1_state, &iserr); + p2 = (QChar *)sipForceConvertToType(pyp2, sipType_QChar, sipTransferObj, SIP_NOT_NONE, &p2_state, &iserr); + + if (iserr) + { + if (p1) + sipReleaseType(p1, sipType_QString, p1_state); + + *sipIsErr = 1; + delete cpplist; + return 0; + } + + cpplist->append (AssignPair (*p1, *p2)); + + sipReleaseType(p1, sipType_QString, p1_state); + sipReleaseType(p2, sipType_QChar, p2_state); + } + + *sipCppPtr = cpplist; + + return 1; +%End +}; +%End + + diff --git a/sip/khtml/khtmlmod.sip.in b/sip/khtml/khtmlmod.sip.in new file mode 100644 index 0000000..e7e3183 --- /dev/null +++ b/sip/khtml/khtmlmod.sip.in @@ -0,0 +1,71 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module khtml version KDE_3_5_2 + +%Copying + + This software is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License as + published by the Free Software Foundation; either version 2 of + the License, or (at your option) any later version. + + This software is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public + License along with this library; see the file COPYING. + If not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +%End + +%Module khtml + +%Import qt/qtmod.sip +%Import qtxml/qtxmlmod.sip +%Import dcopmod.sip +%Import kdecoremod.sip +%Import kdefxmod.sip +%Import kdeuimod.sip +%Import kiomod.sip +%Import kutilsmod.sip +%Import kpartsmod.sip + +%Include css_rule.sip +%Include css_stylesheet.sip +%Include css_value.sip +%Include dom2_events.sip +%Include dom2_range.sip +%Include dom2_traversal.sip +%Include dom2_views.sip +%Include dom_doc.sip +%Include dom_element.sip +%Include dom_exception.sip +%Include dom_misc.sip +%Include dom_node.sip +%Include dom_string.sip +%Include dom_text.sip +%Include dom_xml.sip +%Include html_base.sip +%Include html_block.sip +%Include html_document.sip +%Include html_element.sip +%Include html_form.sip +%Include html_head.sip +%Include html_image.sip +%Include html_inline.sip +%Include html_list.sip +%Include html_misc.sip +%Include html_object.sip +%Include html_table.sip +%Include khtml_part.sip +%Include khtml_settings.sip +%Include khtmlview.sip +@mark@ diff --git a/sip/khtml/khtmlview.sip b/sip/khtml/khtmlview.sip new file mode 100644 index 0000000..779416c --- /dev/null +++ b/sip/khtml/khtmlview.sip @@ -0,0 +1,144 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module khtml version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +//ig namespace khtml; + + +class KHTMLView : QScrollView +{ +%TypeHeaderCode +#include +%End + + +public: + KHTMLView (KHTMLPart*, QWidget* /TransferThis/, const char* = 0); + KHTMLPart* part () const; + int frameWidth () const; + void setMarginWidth (int); + int marginWidth () const; + void setMarginHeight (int); + int marginHeight (); + virtual void setVScrollBarMode (ScrollBarMode); + virtual void setHScrollBarMode (ScrollBarMode); + void print () /PyName=print_/; + +%If ( KDE_3_2_0 - ) + void print (bool); +%End + + void layout (); + +%If ( KDE_3_3_0 - ) + void displayAccessKeys (); +%End + + +signals: + +%If ( KDE_3_3_0 - ) + void finishedLayout (); +%End + + void cleared (); + +%If ( KDE_3_1_0 - ) + void zoomView (int); + +%If ( KDE_3_3_0 - ) + void hideAccessKeys (); + void repaintAccessKeys (); + +%If ( KDE_3_5_0 - ) + void findAheadActive (bool); +%End + +%End + +%End + + +protected: + void clear (); + virtual void resizeEvent (QResizeEvent*); + virtual void showEvent (QShowEvent*); + virtual void hideEvent (QHideEvent*); + virtual bool focusNextPrevChild (bool); + virtual void drawContents (QPainter*, int, int, int, int); + virtual void drawContents (QPainter*); + virtual void viewportMousePressEvent (QMouseEvent*); + +%If ( KDE_3_2_0 - ) + virtual void focusInEvent (QFocusEvent*); +%End + + virtual void focusOutEvent (QFocusEvent*); + virtual void viewportMouseDoubleClickEvent (QMouseEvent*); + virtual void viewportMouseMoveEvent (QMouseEvent*); + virtual void viewportMouseReleaseEvent (QMouseEvent*); + +%If ( KDE_3_1_0 - ) + virtual void viewportResizeEvent (QResizeEvent*); +%End + + virtual void viewportWheelEvent (QWheelEvent*); + virtual void dragEnterEvent (QDragEnterEvent*); + virtual void dropEvent (QDropEvent*); + +%If ( KDE_3_1_0 - ) + virtual void closeEvent (QCloseEvent*); + +%If ( KDE_3_2_0 - ) + virtual bool eventFilter (QObject*, QEvent*); +%End + +%End + + void keyPressEvent (QKeyEvent*); + void keyReleaseEvent (QKeyEvent*); + void contentsContextMenuEvent (QContextMenuEvent*); + void doAutoScroll (); + void timerEvent (QTimerEvent*); + +protected slots: + void slotPaletteChanged (); + void slotScrollBarMoved (); + +//force +%ConvertToSubClassCode + // The table of Python class objects indexed by their names. The table + // must be sorted by name. + + static sipStringTypeClassMap map[] = { + {sipName_KHTMLView, &sipClass_KHTMLView}, + {sipName_KHTMLPart, &sipClass_KHTMLPart}, + }; + + sipClass = sipMapStringToClass(sipCpp -> className(),map,sizeof (map)/sizeof (map[0])); +%End +//end + +}; // class KHTMLView + diff --git a/sip/kio/authinfo.sip b/sip/kio/authinfo.sip new file mode 100644 index 0000000..0a835a6 --- /dev/null +++ b/sip/kio/authinfo.sip @@ -0,0 +1,210 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +namespace KIO +{ + +class AuthInfo +{ +%TypeHeaderCode +#include +%End + + +public: + AuthInfo (); + AuthInfo (const KIO::AuthInfo&); + bool isModified () const; + void setModified (bool); + KURL url; + QString username; + QString password; + QString prompt; + QString caption; + QString comment; + QString commentLabel; + QString realmValue; + QString digestInfo; + bool verifyPath; + bool readOnly; + bool keepPassword; + +protected: + +}; // class AuthInfo + + +%If ( KDE_3_1_4 - ) +//igx QDataStream& operator << (QDataStream&, const KIO::AuthInfo&); +//igx QDataStream& operator >> (QDataStream&, KIO::AuthInfo&); +%End + + +class NetRC +{ +%TypeHeaderCode +#include +%End + + +public: + + enum LookUpMode + { + exactOnly, + defaultOnly, + presetOnly + }; + + + class AutoLogin + { + + public: + QString type; + QString machine; + QString login; + QString password; + KStringListMap macdef; + + }; // class AutoLogin + + +public: + static KIO::NetRC* self (); + bool lookup (const KURL&, KIO::NetRC::AutoLogin&, bool = 0, QString = QString ::null , int = 6); + void reload (); + +protected: +//ig QString extract (const char*, const char*, int&); + int openf (const QString&); + +%If ( KDE_3_2_0 - ) + bool parse (int); +%End + + +private: + NetRC (); + ~NetRC (); + +protected: + +%If ( - KDE_3_2_0 ) + void parse (int); +%End + + +}; // class NetRC + +}; // namespace KIO + + + +%MappedType KStringListMap +{ +//converts a Python dict of QString:QStringList +%TypeHeaderCode +#include +typedef QMap KStringListMap; +%End + +%ConvertFromTypeCode + // Convert to a Python dict. + + if (!sipCpp) + return PyDict_New(); + + PyObject *dict; + + // Create the dictionary. + + if ((dict = PyDict_New()) == NULL) + return NULL; + + // Get it. + + const QMap map = *sipCpp; + QMap::ConstIterator it; + + for (it = map.begin (); it != map.end (); ++it) + { + PyObject *sKey = PyString_FromString ((const char *)((QString)it.key ())); + PyObject *sData = sipConvertFromInstance ((void *)&it.data (), sipClass_QStringList, sipTransferObj); + + if ((sKey == NULL) || (sData == NULL) || (PyDict_SetItem (dict, sKey, sData) < 0)) + { + Py_XDECREF (sKey); + Py_XDECREF (sData); + Py_DECREF (dict); + return NULL; + } + } + + return dict; +%End + + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyDict_Check(sipPy); + + QMap *map = new QMap; + + PyObject *key, *value; + SIP_SSIZE_T pos = 0; + QString *sKey; + QStringList *sData; + + while (PyDict_Next(sipPy, &pos, &key, &value)) + { + int iserr = 0, sKey_state, sData_state; + + sKey = (QString *)sipForceConvertToType(key, sipType_QString, sipTransferObj, SIP_NOT_NONE, &sKey_state, &iserr); + sData = (QStringList *)sipForceConvertToType(value, sipType_QStringList, sipTransferObj, SIP_NOT_NONE, &sData_state, &iserr); + + if (iserr) + { + if (sKey) + sipReleaseType(sKey, sipType_QString, sKey_state); + + *sipIsErr = 1; + delete map; + return 0; + } + + map->insert (*sKey, *sData); + + sipReleaseType(sKey, sipType_QString, sKey_state); + sipReleaseType(sData, sipType_QStringList, sData_state); + } + + *sipCppPtr = map; + + return 1; +%End +}; + + diff --git a/sip/kio/chmodjob.sip b/sip/kio/chmodjob.sip new file mode 100644 index 0000000..887a5ff --- /dev/null +++ b/sip/kio/chmodjob.sip @@ -0,0 +1,55 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +namespace KIO +{ + +class ChmodJob : KIO::Job +{ +%TypeHeaderCode +#include +#include +%End + + +public: + ChmodJob (const KFileItemList&, int, int, int, int, bool, bool); + +protected: + void chmodNextFile (); + +protected slots: + virtual void slotResult (KIO::Job*); + void slotEntries (KIO::Job*, const KIO::UDSEntryList&); + void processList (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class ChmodJob + +KIO::ChmodJob* chmod (const KFileItemList&, int, int, QString, QString, bool, bool = 1); +}; // namespace KIO + diff --git a/sip/kio/connection.sip b/sip/kio/connection.sip new file mode 100644 index 0000000..67e535f --- /dev/null +++ b/sip/kio/connection.sip @@ -0,0 +1,72 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +namespace KIO +{ + +class Task +{ +%TypeHeaderCode +#include +%End + + +public: + int cmd; + QByteArray data; + +}; // class Task + + +class Connection : QObject +{ +%TypeHeaderCode +#include +%End + + +public: + Connection (); + void init (KSocket*); + void init (int, int); + void connect (QObject* = 0, const char* = 0); + void close (); + int fd_from () const; + int fd_to () const; + bool inited () const; + void send (int, const QByteArray& = QByteArray ()); + bool sendnow (int, const QByteArray&); +//ig int read (int*, QByteArray&); + void suspend (); + void resume (); + bool suspended () const; + +protected slots: + void dequeue (); + +}; // class Connection + +}; // namespace KIO + diff --git a/sip/kio/davjob.sip b/sip/kio/davjob.sip new file mode 100644 index 0000000..ff140b0 --- /dev/null +++ b/sip/kio/davjob.sip @@ -0,0 +1,56 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_1_0 - ) +namespace KIO +{ + +class DavJob : KIO::TransferJob +{ +%TypeHeaderCode +#include +%End + + +public: + DavJob (const KURL&, int, const QString&, bool); + QDomDocument& response (); + +protected slots: + virtual void slotFinished (); + virtual void slotData (const QByteArray&); + +protected: + +}; // class DavJob + +KIO::DavJob* davPropFind (const KURL&, const QDomDocument&, QString, bool = 1); +KIO::DavJob* davPropPatch (const KURL&, const QDomDocument&, bool = 1); +KIO::DavJob* davSearch (const KURL&, const QString&, const QString&, const QString&, bool = 1); +}; // namespace KIO + +%End + diff --git a/sip/kio/defaultprogress.sip b/sip/kio/defaultprogress.sip new file mode 100644 index 0000000..3646086 --- /dev/null +++ b/sip/kio/defaultprogress.sip @@ -0,0 +1,103 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +namespace KIO +{ + +class DefaultProgress : KIO::ProgressBase +{ +%TypeHeaderCode +#include +%End + + +public: + DefaultProgress (bool = 1); + +%If ( KDE_3_1_0 - ) + DefaultProgress (QWidget* /TransferThis/, const char* = 0); + +%If ( KDE_3_2_1 - ) + bool keepOpen () const; + +%If ( KDE_3_4_0 - ) + static QString makePercentString (ulong, KIO::filesize_t, ulong); +%End + +%End + +%End + + +public slots: + virtual void slotTotalSize (KIO::Job*, KIO::filesize_t); + virtual void slotTotalFiles (KIO::Job*, ulong); + virtual void slotTotalDirs (KIO::Job*, ulong); + virtual void slotProcessedSize (KIO::Job*, KIO::filesize_t); + virtual void slotProcessedFiles (KIO::Job*, ulong); + virtual void slotProcessedDirs (KIO::Job*, ulong); + virtual void slotSpeed (KIO::Job*, ulong); + virtual void slotPercent (KIO::Job*, ulong); + virtual void slotInfoMessage (KIO::Job*, const QString&); + virtual void slotCopying (KIO::Job*, const KURL&, const KURL&); + virtual void slotMoving (KIO::Job*, const KURL&, const KURL&); + virtual void slotDeleting (KIO::Job*, const KURL&); + +%If ( KDE_3_1_0 - ) + void slotTransferring (KIO::Job*, const KURL&); +%End + + virtual void slotCreatingDir (KIO::Job*, const KURL&); + virtual void slotStating (KIO::Job*, const KURL&); + virtual void slotMounting (KIO::Job*, const QString&, const QString&); + virtual void slotUnmounting (KIO::Job*, const QString&); + virtual void slotCanResume (KIO::Job*, KIO::filesize_t); + +%If ( KDE_3_1_0 - ) + void slotClean (); +%End + + +protected: + +%If ( KDE_3_1_0 - ) + void init (); +%End + + void showTotals (); + void setDestVisible (bool); + +%If ( KDE_3_1_0 - ) + void checkDestination (const KURL&); +%End + + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class DefaultProgress + +}; // namespace KIO + diff --git a/sip/kio/forwardingslavebase.sip b/sip/kio/forwardingslavebase.sip new file mode 100644 index 0000000..23f3903 --- /dev/null +++ b/sip/kio/forwardingslavebase.sip @@ -0,0 +1,63 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_4_0 - ) +namespace KIO +{ + +class ForwardingSlaveBase : QObject, KIO::SlaveBase +{ +%TypeHeaderCode +#include +%End + + +public: + ForwardingSlaveBase (const QCString&, const QCString&, const QCString&); + virtual void get (const KURL&); + virtual void put (const KURL&, int, bool, bool); + virtual void stat (const KURL&); + virtual void mimetype (const KURL&); + virtual void listDir (const KURL&); + virtual void mkdir (const KURL&, int); + virtual void rename (const KURL&, const KURL&, bool); + virtual void symlink (const QString&, const KURL&, bool); + virtual void chmod (const KURL&, int); + virtual void copy (const KURL&, const KURL&, int, bool); + virtual void del (const KURL&, bool); + +protected: + virtual bool rewriteURL (const KURL&, KURL&) = 0; + virtual void prepareUDSEntry (KIO::UDSEntry&, bool = 0) const; + KURL processedURL () const; + KURL requestedURL () const; + +}; // class ForwardingSlaveBase + +}; // namespace KIO + +%End + diff --git a/sip/kio/global.sip b/sip/kio/global.sip new file mode 100644 index 0000000..7f5a13b --- /dev/null +++ b/sip/kio/global.sip @@ -0,0 +1,714 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +%ModuleHeaderCode +#include +%End + +namespace KIO +{ +typedef long long fileoffset_t; +typedef unsigned long long filesize_t; +QString convertSize (KIO::filesize_t); + +%If ( KDE_3_5_0 - ) +QString convertSizeWithBytes (KIO::filesize_t); +%End + +QString number (KIO::filesize_t); +QString convertSizeFromKB (KIO::filesize_t); + +%If ( KDE_3_4_0 - ) +uint calculateRemainingSeconds (KIO::filesize_t, KIO::filesize_t, KIO::filesize_t); +QString convertSeconds (uint); +%End + +QTime calculateRemaining (KIO::filesize_t, KIO::filesize_t, KIO::filesize_t); +QString itemsSummaryString (uint, uint, uint, KIO::filesize_t, bool); +QString encodeFileName (const QString&); +QString decodeFileName (const QString&); + +%If ( KDE_3_2_0 - ) + +enum Command +{ + CMD_HOST, + CMD_CONNECT, + CMD_DISCONNECT, + CMD_SLAVE_STATUS, + CMD_SLAVE_CONNECT, + CMD_SLAVE_HOLD, + CMD_NONE, + CMD_TESTDIR, + CMD_GET, + CMD_PUT, + CMD_STAT, + CMD_MIMETYPE, + CMD_LISTDIR, + CMD_MKDIR, + CMD_RENAME, + CMD_COPY, + CMD_DEL, + CMD_CHMOD, + CMD_SPECIAL, + CMD_USERPASS, + CMD_REPARSECONFIGURATION, + CMD_META_DATA, + CMD_SYMLINK, + CMD_SUBURL, + CMD_MESSAGEBOXANSWER, + CMD_RESUMEANSWER, + CMD_CONFIG, + CMD_MULTI_GET +}; + +%End + + +%If ( KDE_3_1_0 - ) + +enum Error +{ + ERR_CANNOT_OPEN_FOR_READING, + ERR_CANNOT_OPEN_FOR_WRITING, + ERR_CANNOT_LAUNCH_PROCESS, + ERR_INTERNAL, + ERR_MALFORMED_URL, + ERR_UNSUPPORTED_PROTOCOL, + ERR_NO_SOURCE_PROTOCOL, + ERR_UNSUPPORTED_ACTION, + ERR_IS_DIRECTORY, + ERR_IS_FILE, + ERR_DOES_NOT_EXIST, + ERR_FILE_ALREADY_EXIST, + ERR_DIR_ALREADY_EXIST, + ERR_UNKNOWN_HOST, + ERR_ACCESS_DENIED, + ERR_WRITE_ACCESS_DENIED, + ERR_CANNOT_ENTER_DIRECTORY, + ERR_PROTOCOL_IS_NOT_A_FILESYSTEM, + ERR_CYCLIC_LINK, + ERR_USER_CANCELED, + ERR_CYCLIC_COPY, + ERR_COULD_NOT_CREATE_SOCKET, + ERR_COULD_NOT_CONNECT, + ERR_CONNECTION_BROKEN, + ERR_NOT_FILTER_PROTOCOL, + ERR_COULD_NOT_MOUNT, + ERR_COULD_NOT_UNMOUNT, + ERR_COULD_NOT_READ, + ERR_COULD_NOT_WRITE, + ERR_COULD_NOT_BIND, + ERR_COULD_NOT_LISTEN, + ERR_COULD_NOT_ACCEPT, + ERR_COULD_NOT_LOGIN, + ERR_COULD_NOT_STAT, + ERR_COULD_NOT_CLOSEDIR, + ERR_COULD_NOT_MKDIR, + ERR_COULD_NOT_RMDIR, + ERR_CANNOT_RESUME, + ERR_CANNOT_RENAME, + ERR_CANNOT_CHMOD, + ERR_CANNOT_DELETE, + ERR_SLAVE_DIED, + ERR_OUT_OF_MEMORY, + ERR_UNKNOWN_PROXY_HOST, + ERR_COULD_NOT_AUTHENTICATE, + ERR_ABORTED, + ERR_INTERNAL_SERVER, + ERR_SERVER_TIMEOUT, + ERR_SERVICE_NOT_AVAILABLE, + ERR_UNKNOWN, + ERR_UNKNOWN_INTERRUPT, + ERR_CANNOT_DELETE_ORIGINAL, + ERR_CANNOT_DELETE_PARTIAL, + ERR_CANNOT_RENAME_ORIGINAL, + ERR_CANNOT_RENAME_PARTIAL, + ERR_NEED_PASSWD, + ERR_CANNOT_SYMLINK, + ERR_NO_CONTENT, + ERR_DISK_FULL, + ERR_IDENTICAL_FILES, + ERR_SLAVE_DEFINED, + ERR_UPGRADE_REQUIRED, + ERR_POST_DENIED +}; + +%End + +QString buildErrorString (int, const QString&); +//ig QString buildHTMLErrorString (int, const QString&, const KURL* = 0, int = -1); +QByteArray rawErrorDetail (int, const QString&, const KURL* = 0, int = -1); + +%If ( KDE_3_2_0 - ) +QString unsupportedActionErrorString (const QString&, int); + +%If ( KDE_3_5_1 - ) + +enum UDSAtomTypes +{ + UDS_STRING, + UDS_LONG, + UDS_TIME, + UDS_SIZE, + UDS_SIZE_LARGE, + UDS_USER, + UDS_ICON_NAME, + UDS_GROUP, + UDS_EXTRA, + UDS_NAME, + UDS_LOCAL_PATH, + UDS_HIDDEN, + UDS_EXTENDED_ACL, + UDS_ACL_STRING, + UDS_DEFAULT_ACL_STRING, + UDS_ACCESS, + UDS_MODIFICATION_TIME, + UDS_ACCESS_TIME, + UDS_CREATION_TIME, + UDS_FILE_TYPE, + UDS_LINK_DEST, + UDS_URL, + UDS_MIME_TYPE, + UDS_GUESSED_MIME_TYPE, + UDS_XML_PROPERTIES +}; + +%End + +%End + + +%If ( KDE_3_0_1 - ) + +enum CacheControl +{ + CC_CacheOnly, + CC_Cache, + CC_Verify, + CC_Refresh, + CC_Reload +}; + +%End + +KIO::CacheControl parseCacheControl (const QString&); +QString getCacheControlString (KIO::CacheControl); +QString findDeviceMountPoint (const QString&); +QString findPathMountPoint (const QString&); +bool probably_slow_mounted (const QString&); + +%If ( KDE_3_1_0 - ) +bool manually_mounted (const QString&); + +%If ( KDE_3_2_0 - ) + +enum FileSystemFlag +{ + SupportsChmod, + SupportsChown, + SupportsUTime, + SupportsSymlinks, + CaseInsensitive +}; + +bool testFileSystemFlag (const QString&, KIO::FileSystemFlag); +%End + +%End + + +class UDSAtom +{ +%TypeHeaderCode +#include +%End + + +public: + QString m_str; + long m_long; + uint m_uds; + +}; // class UDSAtom + +//ig typedef QValueList UDSEntry; +//ig typedef QValueList UDSEntryList; +//ig typedef QValueListIterator UDSEntryListIterator; +//ig typedef QValueListConstIterator UDSEntryListConstIterator; + +%If ( KDE_3_4_0 - KDE_3_5_1 ) + +enum UDSAtomTypes +{ + UDS_STRING, + UDS_LONG, + UDS_TIME, + UDS_SIZE, + UDS_SIZE_LARGE, + UDS_USER, + UDS_ICON_NAME, + UDS_GROUP, + UDS_EXTRA, + UDS_NAME, + UDS_LOCAL_PATH, + UDS_ACCESS, + UDS_MODIFICATION_TIME, + UDS_ACCESS_TIME, + UDS_CREATION_TIME, + UDS_FILE_TYPE, + UDS_LINK_DEST, + UDS_URL, + UDS_MIME_TYPE, + UDS_GUESSED_MIME_TYPE, + UDS_XML_PROPERTIES +}; + +%End + + +%If ( KDE_3_2_0 - KDE_3_4_0 ) + +enum UDSAtomTypes +{ + UDS_STRING, + UDS_LONG, + UDS_TIME, + UDS_SIZE, + UDS_SIZE_LARGE, + UDS_USER, + UDS_ICON_NAME, + UDS_GROUP, + UDS_EXTRA, + UDS_NAME, + UDS_ACCESS, + UDS_MODIFICATION_TIME, + UDS_ACCESS_TIME, + UDS_CREATION_TIME, + UDS_FILE_TYPE, + UDS_LINK_DEST, + UDS_URL, + UDS_MIME_TYPE, + UDS_GUESSED_MIME_TYPE, + UDS_XML_PROPERTIES +}; + +%End + + +%If ( KDE_3_1_0 - KDE_3_2_0 ) + +enum UDSAtomTypes +{ + UDS_STRING, + UDS_LONG, + UDS_TIME, + UDS_SIZE, + UDS_SIZE_LARGE, + UDS_USER, + UDS_GROUP, + UDS_NAME, + UDS_ACCESS, + UDS_MODIFICATION_TIME, + UDS_ACCESS_TIME, + UDS_CREATION_TIME, + UDS_FILE_TYPE, + UDS_LINK_DEST, + UDS_URL, + UDS_MIME_TYPE, + UDS_GUESSED_MIME_TYPE, + UDS_XML_PROPERTIES +}; + +%End + + +%If ( - KDE_3_1_0 ) + +enum UDSAtomTypes +{ + UDS_STRING, + UDS_LONG, + UDS_TIME, + UDS_SIZE, + UDS_SIZE_LARGE, + UDS_USER, + UDS_GROUP, + UDS_NAME, + UDS_ACCESS, + UDS_MODIFICATION_TIME, + UDS_ACCESS_TIME, + UDS_CREATION_TIME, + UDS_FILE_TYPE, + UDS_LINK_DEST, + UDS_URL, + UDS_MIME_TYPE, + UDS_GUESSED_MIME_TYPE +}; + + +enum Error +{ + ERR_CANNOT_OPEN_FOR_READING, + ERR_CANNOT_OPEN_FOR_WRITING, + ERR_CANNOT_LAUNCH_PROCESS, + ERR_INTERNAL, + ERR_MALFORMED_URL, + ERR_UNSUPPORTED_PROTOCOL, + ERR_NO_SOURCE_PROTOCOL, + ERR_UNSUPPORTED_ACTION, + ERR_IS_DIRECTORY, + ERR_IS_FILE, + ERR_DOES_NOT_EXIST, + ERR_FILE_ALREADY_EXIST, + ERR_DIR_ALREADY_EXIST, + ERR_UNKNOWN_HOST, + ERR_ACCESS_DENIED, + ERR_WRITE_ACCESS_DENIED, + ERR_CANNOT_ENTER_DIRECTORY, + ERR_PROTOCOL_IS_NOT_A_FILESYSTEM, + ERR_CYCLIC_LINK, + ERR_USER_CANCELED, + ERR_CYCLIC_COPY, + ERR_COULD_NOT_CREATE_SOCKET, + ERR_COULD_NOT_CONNECT, + ERR_CONNECTION_BROKEN, + ERR_NOT_FILTER_PROTOCOL, + ERR_COULD_NOT_MOUNT, + ERR_COULD_NOT_UNMOUNT, + ERR_COULD_NOT_READ, + ERR_COULD_NOT_WRITE, + ERR_COULD_NOT_BIND, + ERR_COULD_NOT_LISTEN, + ERR_COULD_NOT_ACCEPT, + ERR_COULD_NOT_LOGIN, + ERR_COULD_NOT_STAT, + ERR_COULD_NOT_CLOSEDIR, + ERR_COULD_NOT_MKDIR, + ERR_COULD_NOT_RMDIR, + ERR_CANNOT_RESUME, + ERR_CANNOT_RENAME, + ERR_CANNOT_CHMOD, + ERR_CANNOT_DELETE, + ERR_SLAVE_DIED, + ERR_OUT_OF_MEMORY, + ERR_UNKNOWN_PROXY_HOST, + ERR_COULD_NOT_AUTHENTICATE, + ERR_ABORTED, + ERR_INTERNAL_SERVER, + ERR_SERVER_TIMEOUT, + ERR_SERVICE_NOT_AVAILABLE, + ERR_UNKNOWN, + ERR_UNKNOWN_INTERRUPT, + ERR_CANNOT_DELETE_ORIGINAL, + ERR_CANNOT_DELETE_PARTIAL, + ERR_CANNOT_RENAME_ORIGINAL, + ERR_CANNOT_RENAME_PARTIAL, + ERR_NEED_PASSWD, + ERR_CANNOT_SYMLINK, + ERR_NO_CONTENT, + ERR_DISK_FULL, + ERR_IDENTICAL_FILES, + ERR_SLAVE_DEFINED +}; + + +%If ( - KDE_3_0_1 ) + +enum CacheControl +{ + CC_CacheOnly, + CC_Cache, + CC_Verify, + CC_Reload +}; + +%End + +%End + +//force +//ig typedef QMap MetaData; +//end +}; // namespace KIO + +//force +KIO::UDSEntry testKIOUDSEntry (KIO::UDSEntry); +%MethodCode +//takes list | (KIO.UDSEntry) +//returns (KIO.UDSEntry) + sipRes = a0; +%End + +KIO::UDSEntryList testKIOUDSEntryList (KIO::UDSEntryList); +%MethodCode +//takes list | (KIO.UDSEntryList) +//returns (KIO.UDSEntryList) + sipRes = a0; +%End + +%ModuleHeaderCode +#include +%End + +KIO::MetaData testKIOMetaData (KIO::MetaData); +%MethodCode +//takes dict | (KIO.MetaData) +//returns (KIO.MetaData) + sipRes = a0; +%End + +//end + + +%MappedType KIO::UDSEntry +//converts a Python list of KIO.UDSAtom +{ +%TypeHeaderCode +#include +#include +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New(0); + + // Create the list + PyObject *pylist; + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + QValueList *cpplist = (QValueList *)sipCpp; + PyObject *inst; + + // Get it. + QValueList::Iterator it; + for( it = cpplist->begin(); it != cpplist->end(); ++it ) + { + if (((inst = sipConvertFromNewType(new KIO::UDSAtom(*it), sipType_KIO_UDSAtom, NULL)) == NULL) + || PyList_Append (pylist, inst) < 0) + { + Py_DECREF (pylist); + return NULL; + } + } + + return pylist; +%End + + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QValueList *cpplist = new QValueList; + + PyObject *elem; + KIO::UDSAtom *cpp; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + cpp = (KIO::UDSAtom *)sipForceConvertToType(elem, sipType_KIO_UDSAtom, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + *sipIsErr = 1; + delete cpplist; + return 0; + } + + cpplist->append (*cpp); + } + + *sipCppPtr = cpplist; + + return 1; +%End +}; + + +%MappedType KIO::UDSEntryList +//converts a Python list of KIO.UDSEntry +{ +%TypeHeaderCode +#include +#include +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New(0); + + // Create the list + PyObject *pylist; + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + QValueList *cpplist = (QValueList *)sipCpp; + PyObject *inst; + + // Get it. + QValueList::Iterator it; + for( it = cpplist->begin(); it != cpplist->end(); ++it ) + { + KIO::UDSEntry cpp = *it; + inst = sipConvertFromType(&cpp, sipType_KIO_UDSEntry, sipTransferObj); + + if (PyList_Append (pylist, inst) < 0) + { + Py_DECREF (pylist); + return NULL; + } + } + + return pylist; +%End + + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QValueList *cpplist = new QValueList; + + PyObject *elem; + KIO::UDSEntry *cpp; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + cpp = (KIO::UDSEntry *)sipForceConvertToType(elem, sipType_KIO_UDSEntry, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + *sipIsErr = 1; + delete cpplist; + return 0; + } + + cpplist->append (*cpp); + } + + *sipCppPtr = cpplist; + + return 1; +%End +}; + + +%MappedType KIO::MetaData +//converts a Python dict of QString, QString +{ +%TypeHeaderCode +#include +#include +%End + +%ConvertFromTypeCode + // Convert to a Python dict + + if (!sipCpp) + return PyDict_New(); + + PyObject *dict; + + // Create the dictionary. + + if ((dict = PyDict_New()) == NULL) + return NULL; + + // Get it. + + const QMap cppmap = *sipCpp; + QMap::ConstIterator it; + + for (it = cppmap.begin (); it != cppmap.end (); ++it) + { + QString acpp = it.key (); + QString bcpp = it.data (); + PyObject *ainst; + PyObject *binst; + if (((ainst = sipConvertFromNewType(new QString(acpp), sipType_QString, sipTransferObj)) == NULL) + || ((binst = sipConvertFromNewType(new QString(bcpp), sipType_QString, sipTransferObj)) == NULL) + || (PyDict_SetItem (dict, ainst, binst) < 0)) + { + Py_XDECREF (ainst); + Py_XDECREF (binst); + Py_DECREF (dict); + return NULL; + } + } + + return dict; +%End + + +%ConvertToTypeCode + // Convert a Python dictionary to a QMap on the heap. + + if (sipIsErr == NULL) + return PyDict_Check(sipPy); + + + QMap *cppmap = new QMap; + + PyObject *aelem, *belem; + SIP_SSIZE_T pos = 0; + QString *acpp; + QString *bcpp; + + while (PyDict_Next(sipPy, &pos, &aelem, &belem)) + { + int iserr = 0, acpp_state, bcpp_state; + + acpp = (QString *)sipForceConvertToType(aelem, sipType_QString, sipTransferObj, SIP_NOT_NONE, &acpp_state, &iserr); + bcpp = (QString *)sipForceConvertToType(belem, sipType_QString, sipTransferObj, SIP_NOT_NONE, &bcpp_state, &iserr); + + if (iserr) + { + if (acpp) + sipReleaseType(acpp, sipType_QString, acpp_state); + + *sipIsErr = 1; + delete cppmap; + return 0; + } + + cppmap->insert (*acpp, *bcpp); + + sipReleaseType(acpp, sipType_QString, acpp_state); + sipReleaseType(bcpp, sipType_QString, bcpp_state); + } + + *sipCppPtr = (KIO::MetaData *)cppmap; + + return 1; +%End +}; + + diff --git a/sip/kio/job.sip b/sip/kio/job.sip new file mode 100644 index 0000000..2f6339e --- /dev/null +++ b/sip/kio/job.sip @@ -0,0 +1,73 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +namespace KIO +{ +KIO::SimpleJob* mkdir (const KURL&, int = -1); +KIO::SimpleJob* rmdir (const KURL&); +KIO::SimpleJob* chmod (const KURL&, int); +KIO::SimpleJob* rename (const KURL&, const KURL&, bool); +KIO::SimpleJob* symlink (const QString&, const KURL&, bool, bool = 1); +KIO::SimpleJob* special (const KURL&, const QByteArray&, bool = 1); +KIO::SimpleJob* mount (bool, const char*, const QString&, const QString&, bool = 1); +KIO::SimpleJob* unmount (const QString&, bool = 1); +KIO::SimpleJob* http_update_cache (const KURL&, bool, time_t); +KIO::StatJob* stat (const KURL&, bool = 1); +KIO::StatJob* stat (const KURL&, bool, short, bool = 1); +KIO::TransferJob* get (const KURL&, bool = 0, bool = 1); +KIO::TransferJob* put (const KURL&, int, bool, bool, bool = 1); +KIO::TransferJob* http_post (const KURL&, const QByteArray&, bool = 1); + +%If ( KDE_3_3_0 - ) +KIO::StoredTransferJob* storedGet (const KURL&, bool = 0, bool = 1); +KIO::StoredTransferJob* storedPut (const QByteArray&, const KURL&, int, bool, bool, bool = 1); +%End + +KIO::MultiGetJob* multi_get (long, const KURL&, const KIO::MetaData&); +KIO::MimetypeJob* mimetype (const KURL&, bool = 1); +KIO::FileCopyJob* file_copy (const KURL&, const KURL&, int = -1, bool = 0, bool = 0, bool = 1); +KIO::FileCopyJob* file_move (const KURL&, const KURL&, int = -1, bool = 0, bool = 0, bool = 1); +KIO::SimpleJob* file_delete (const KURL&, bool = 1); +KIO::ListJob* listDir (const KURL&, bool = 1, bool = 1); +KIO::ListJob* listRecursive (const KURL&, bool = 1, bool = 1); +KIO::CopyJob* copy (const KURL&, const KURL&, bool = 1); +KIO::CopyJob* copyAs (const KURL&, const KURL&, bool = 1); +KIO::CopyJob* copy (const KURL::List&, const KURL&, bool = 1); +KIO::CopyJob* move (const KURL&, const KURL&, bool = 1); +KIO::CopyJob* moveAs (const KURL&, const KURL&, bool = 1); +KIO::CopyJob* move (const KURL::List&, const KURL&, bool = 1); +KIO::CopyJob* link (const KURL&, const KURL&, bool = 1); +KIO::CopyJob* link (const KURL::List&, const KURL&, bool = 1); +KIO::CopyJob* linkAs (const KURL&, const KURL&, bool = 1); + +%If ( KDE_3_4_0 - ) +KIO::CopyJob* trash (const KURL&, bool = 1); +KIO::CopyJob* trash (const KURL::List&, bool = 1); +%End + +KIO::DeleteJob* del (const KURL&, bool = 0, bool = 1) /PyName=del_/; +KIO::DeleteJob* del (const KURL::List&, bool = 0, bool = 1) /PyName=del_/; +}; // namespace KIO + diff --git a/sip/kio/jobclasses.sip b/sip/kio/jobclasses.sip new file mode 100644 index 0000000..c8f257f --- /dev/null +++ b/sip/kio/jobclasses.sip @@ -0,0 +1,748 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +namespace KIO +{ + +class Job : QObject +{ +%TypeHeaderCode +#include +%End + + +protected: + Job (bool); + +public: + virtual void kill (bool = 1); + int error (); + int progressId (); + const QString& errorText (); + QString errorString (); + QStringList detailedErrorStrings (const KURL* = 0, int = -1) const; + void showErrorDialog (QWidget* = 0); + void setAutoErrorHandlingEnabled (bool, QWidget* = 0); + bool isAutoErrorHandlingEnabled () const; + +%If ( KDE_3_5_0 - ) + void setAutoWarningHandlingEnabled (bool); + bool isAutoWarningHandlingEnabled () const; +%End + + +%If ( KDE_3_4_3 - ) + void setInteractive (bool); + bool isInteractive () const; +%End + + void setWindow (QWidget*); + QWidget* window () const; + +%If ( KDE_3_1_0 - ) + void setParentJob (KIO::Job*); + KIO::Job* parentJob () const; +%End + + void setMetaData (const KIO::MetaData&); + void addMetaData (const QString&, const QString&); + void addMetaData (const QMap&); + void mergeMetaData (const QMap&); + KIO::MetaData outgoingMetaData () const; + KIO::MetaData metaData () const; + QString queryMetaData (const QString&); + +%If ( KDE_3_2_0 - ) + KIO::filesize_t getProcessedSize (); +%End + + +signals: + void result (KIO::Job*); + void canceled (KIO::Job*); + void infoMessage (KIO::Job*, const QString&); + +%If ( KDE_3_5_0 - ) + void warning (KIO::Job*, const QString&); +%End + + void connected (KIO::Job*); + void percent (KIO::Job*, ulong); + void totalSize (KIO::Job*, KIO::filesize_t); + void processedSize (KIO::Job*, KIO::filesize_t); + void speed (KIO::Job*, ulong); + +protected slots: + virtual void slotResult (KIO::Job*); + void slotSpeed (KIO::Job*, ulong); + void slotInfoMessage (KIO::Job*, const QString&); + void slotSpeedTimeout (); + +protected: + virtual void addSubjob (KIO::Job*, bool = 1); + virtual void removeSubjob (KIO::Job*); + +%If ( KDE_3_4_0 - ) + void removeSubjob (KIO::Job*, bool, bool); +%End + + void emitPercent (KIO::filesize_t, KIO::filesize_t); + void emitSpeed (ulong); + void emitResult (); + +%If ( KDE_3_2_0 - ) + void setProcessedSize (KIO::filesize_t); +%End + +//ig int& extraFlags (); + +protected: +//igx virtual void virtual_hook (int, void*); + +protected: + +%If ( KDE_3_2_0 - KDE_3_2_2 ) + int extraFlags (); +%MethodCode +//returns (int) + Py_BEGIN_ALLOW_THREADS + sipRes = sipCpp -> sipProtect_extraFlags (); + Py_END_ALLOW_THREADS +%End + +%End + + +}; // class Job + + +class SimpleJob : KIO::Job +{ +%TypeHeaderCode +#include +%End + + +public: + SimpleJob (const KURL&, int, const QByteArray&, bool); + const KURL& url () const; + virtual void kill (bool = 1); + virtual void putOnHold (); + static void removeOnHold (); + virtual void start (KIO::Slave*); + void slaveDone (); + KIO::Slave* slave (); + int command (); + +public slots: + +%If ( KDE_3_1_0 - ) + void slotTotalSize (KIO::filesize_t); +%End + + +protected slots: + virtual void slotFinished (); + void slotWarning (const QString&); + void slotInfoMessage (const QString&); + void slotConnected (); + void slotProcessedSize (KIO::filesize_t); + void slotSpeed (ulong); + virtual void slotMetaData (const KIO::MetaData&); + +public slots: + virtual void slotError (int, const QString&); + +protected slots: + void slotNeedProgressId (); + +protected: + +protected: +//igx virtual void virtual_hook (int, void*); + +%If ( KDE_3_2_0 - ) + void storeSSLSessionFromJob (const KURL&); +%End + + +protected slots: + +%If ( - KDE_3_1_0 ) + void slotTotalSize (KIO::filesize_t); +%End + + +}; // class SimpleJob + + +class StatJob : KIO::SimpleJob +{ +%TypeHeaderCode +#include +%End + + +public: + StatJob (const KURL&, int, const QByteArray&, bool); + void setSide (bool); + void setDetails (short); + const KIO::UDSEntry& statResult () const; + virtual void start (KIO::Slave*); + +signals: + void redirection (KIO::Job*, const KURL&); + +%If ( KDE_3_1_0 - ) + void permanentRedirection (KIO::Job*, const KURL&, const KURL&); +%End + + +protected slots: + void slotStatEntry (const KIO::UDSEntry&); + void slotRedirection (const KURL&); + virtual void slotFinished (); + +%If ( KDE_3_2_0 - ) + virtual void slotMetaData (const KIO::MetaData&); +%End + + +protected: + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class StatJob + + +%If ( KDE_3_3_0 - ) + +class MkdirJob : KIO::SimpleJob +{ +%TypeHeaderCode +#include +%End + + +public: + MkdirJob (const KURL&, int, const QByteArray&, bool); + virtual void start (KIO::Slave*); + +signals: + void redirection (KIO::Job*, const KURL&); + void permanentRedirection (KIO::Job*, const KURL&, const KURL&); + +protected slots: + void slotRedirection (const KURL&); + virtual void slotFinished (); + +protected: + +protected: + virtual void virtual_hook (int, void*); + +}; // class MkdirJob + +%End + + +%If ( KDE_3_3_0 - ) + +class DirectCopyJob : KIO::SimpleJob +{ +%TypeHeaderCode +#include +%End + + +public: + DirectCopyJob (const KURL&, int, const QByteArray&, bool); + virtual void start (KIO::Slave*); + +signals: + void canResume (KIO::Job*, KIO::filesize_t); + +}; // class DirectCopyJob + +%End + + +class TransferJob : KIO::SimpleJob +{ +%TypeHeaderCode +#include +%End + + +public: + TransferJob (const KURL&, int, const QByteArray&, const QByteArray&, bool); + virtual void start (KIO::Slave*); + virtual void slotResult (KIO::Job*); + void suspend (); + void resume (); + bool isSuspended () const; + bool isErrorPage () const; + +%If ( KDE_3_2_0 - ) + void setAsyncDataEnabled (bool); + void sendAsyncData (const QByteArray&); + void setReportDataSent (bool); + bool reportDataSent (); +%End + + +signals: + void data (KIO::Job*, const QByteArray&); + void dataReq (KIO::Job*, QByteArray&); + void redirection (KIO::Job*, const KURL&); + +%If ( KDE_3_1_0 - ) + void permanentRedirection (KIO::Job*, const KURL&, const KURL&); +%End + + void mimetype (KIO::Job*, const QString&); + void canResume (KIO::Job*, KIO::filesize_t); + +protected slots: + virtual void slotRedirection (const KURL&); + virtual void slotFinished (); + virtual void slotData (const QByteArray&); + virtual void slotDataReq (); + virtual void slotMimetype (const QString&); + virtual void slotNeedSubURLData (); + virtual void slotSubURLData (KIO::Job*, const QByteArray&); + +%If ( KDE_3_2_0 - ) + virtual void slotMetaData (const KIO::MetaData&); +%End + + void slotErrorPage (); + void slotCanResume (KIO::filesize_t); + +%If ( KDE_3_2_0 - ) + void slotPostRedirection (); +%End + + +protected: + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class TransferJob + + +%If ( KDE_3_3_0 - ) + +class StoredTransferJob : KIO::TransferJob +{ +%TypeHeaderCode +#include +%End + + +public: + StoredTransferJob (const KURL&, int, const QByteArray&, const QByteArray&, bool); + void setData (const QByteArray&); + QByteArray data () const; + +}; // class StoredTransferJob + +%End + + +class MultiGetJob : KIO::TransferJob +{ +%TypeHeaderCode +#include +%End + + +public: + MultiGetJob (const KURL&, bool); + virtual void start (KIO::Slave*); + void get (long, const KURL&, const KIO::MetaData&); + +signals: + void data (long, const QByteArray&); + void mimetype (long, const QString&); + void result (long); + +protected slots: + virtual void slotRedirection (const KURL&); + virtual void slotFinished (); + virtual void slotData (const QByteArray&); + virtual void slotMimetype (const QString&); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class MultiGetJob + + +class MimetypeJob : KIO::TransferJob +{ +%TypeHeaderCode +#include +%End + + +public: + MimetypeJob (const KURL&, int, const QByteArray&, bool); + QString mimetype () const; + virtual void start (KIO::Slave*); + +protected slots: + virtual void slotFinished (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class MimetypeJob + + +class FileCopyJob : KIO::Job +{ +%TypeHeaderCode +#include +%End + + +public: + FileCopyJob (const KURL&, const KURL&, int, bool, bool, bool, bool); + +%If ( KDE_3_2_0 - ) + void setSourceSize64 (KIO::filesize_t); + +%If ( KDE_3_5_2 - ) + void setModificationTime (time_t); +%End + +%End + +//ig void setSourceSize (off_t); + KURL srcURL () const; + KURL destURL () const; + +public slots: + void slotStart (); + void slotData (KIO::Job*, const QByteArray&); + void slotDataReq (KIO::Job*, QByteArray&); + +protected slots: + virtual void slotResult (KIO::Job*); + void slotProcessedSize (KIO::Job*, KIO::filesize_t); + void slotTotalSize (KIO::Job*, KIO::filesize_t); + void slotPercent (KIO::Job*, ulong); + void slotCanResume (KIO::Job*, KIO::filesize_t); + +protected: + void startCopyJob (); + void startCopyJob (const KURL&); + +%If ( KDE_3_4_0 - ) + void startRenameJob (const KURL&); +%End + + void startDataPump (); + void connectSubjob (KIO::SimpleJob*); + +protected: + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class FileCopyJob + + +class ListJob : KIO::SimpleJob +{ +%TypeHeaderCode +#include +%End + + +public: + ListJob (const KURL&, bool, bool = 0, QString = QString ::null , bool = 1); + virtual void start (KIO::Slave*); + +%If ( KDE_3_4_3 - ) + const KURL& redirectionURL () const; +%End + + +%If ( KDE_3_2_0 - ) + void setUnrestricted (bool); +%End + + +signals: + void entries (KIO::Job*, const KIO::UDSEntryList&); + void redirection (KIO::Job*, const KURL&); + +%If ( KDE_3_1_0 - ) + void permanentRedirection (KIO::Job*, const KURL&, const KURL&); +%End + + +protected slots: + virtual void slotFinished (); + +%If ( KDE_3_2_0 - ) + virtual void slotMetaData (const KIO::MetaData&); +%End + + virtual void slotResult (KIO::Job*); + void slotListEntries (const KIO::UDSEntryList&); + void slotRedirection (const KURL&); + void gotEntries (KIO::Job*, const KIO::UDSEntryList&); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class ListJob + + +class CopyInfo +{ +%TypeHeaderCode +#include +%End + + +public: + KURL uSource; + KURL uDest; + QString linkDest; + mode_t permissions; + time_t ctime; + time_t mtime; + off_t size; + +}; // class CopyInfo + + +class CopyJob : KIO::Job +{ +%TypeHeaderCode +#include +%End + + +public: + + enum CopyMode + { + Copy, + Move, + Link + }; + + CopyJob (const KURL::List&, const KURL&, KIO::CopyJob::CopyMode, bool, bool); + KURL::List srcURLs () const; + KURL destURL () const; + +%If ( KDE_3_2_3 - ) + void setDefaultPermissions (bool); + +%If ( KDE_3_4_0 - ) + void setInteractive (bool); +%End + +%End + + +signals: + void totalFiles (KIO::Job*, ulong); + void totalDirs (KIO::Job*, ulong); + +%If ( KDE_3_2_0 - ) + void aboutToCreate (KIO::Job*, const QValueList&); +%End + + void processedFiles (KIO::Job*, ulong); + void processedDirs (KIO::Job*, ulong); + void copying (KIO::Job*, const KURL&, const KURL&); + void linking (KIO::Job*, const QString&, const KURL&); + void moving (KIO::Job*, const KURL&, const KURL&); + void creatingDir (KIO::Job*, const KURL&); + void renamed (KIO::Job*, const KURL&, const KURL&); + void copyingDone (KIO::Job*, const KURL&, const KURL&, bool, bool); + void copyingLinkDone (KIO::Job*, const KURL&, const QString&, const KURL&); + +protected: + +%If ( KDE_3_2_3 - ) + void statCurrentSrc (); +%End + + void statNextSrc (); + void slotResultStating (KIO::Job*); + void startListing (const KURL&); + void slotResultCreatingDirs (KIO::Job*); + void slotResultConflictCreatingDirs (KIO::Job*); + void createNextDir (); + void slotResultCopyingFiles (KIO::Job*); + void slotResultConflictCopyingFiles (KIO::Job*); + void copyNextFile (); + void slotResultDeletingDirs (KIO::Job*); + void deleteNextDir (); + void skip (const KURL&); + +%If ( KDE_3_3_2 - ) + void slotResultRenaming (KIO::Job*); + +%If ( KDE_3_5_2 - ) + void setNextDirAttribute (); +%End + +%End + + +protected slots: + void slotStart (); + void slotEntries (KIO::Job*, const KIO::UDSEntryList&); + virtual void slotResult (KIO::Job*); + void slotProcessedSize (KIO::Job*, KIO::filesize_t); + void slotTotalSize (KIO::Job*, KIO::filesize_t); + void slotReport (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class CopyJob + + +class DeleteJob : KIO::Job +{ +%TypeHeaderCode +#include +%End + + +public: + DeleteJob (const KURL::List&, bool, bool); + KURL::List urls () const; + +signals: + void totalFiles (KIO::Job*, ulong); + void totalDirs (KIO::Job*, ulong); + void processedFiles (KIO::Job*, ulong); + void processedDirs (KIO::Job*, ulong); + void deleting (KIO::Job*, const KURL&); + +protected slots: + void slotStart (); + void slotEntries (KIO::Job*, const KIO::UDSEntryList&); + virtual void slotResult (KIO::Job*); + void slotProcessedSize (KIO::Job*, KIO::filesize_t); + void slotReport (); + +protected: +//igx virtual void virtual_hook (int, void*); + +protected: + +%If ( - KDE_3_1_0 ) + void startNextJob (); + void deleteNextFile (); + void deleteNextDir (); +%End + + +}; // class DeleteJob + +}; // namespace KIO + + + +%MappedType QValueList +//converts a Python list of KIO::CopyInfo +{ +%TypeHeaderCode +#include +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New(0); + + // Create the list + PyObject *pylist; + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + QValueList *cpplist = (QValueList *)sipCpp; + PyObject *inst; + + // Get it. + QValueList::Iterator it; + for( it = cpplist->begin(); it != cpplist->end(); ++it ) + { + if (((inst = sipConvertFromNewType(new KIO::CopyInfo(*it), sipType_KIO_CopyInfo, NULL)) == NULL) + || PyList_Append (pylist, inst) < 0) + { + Py_DECREF (pylist); + return NULL; + } + } + + return pylist; +%End + + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QValueList *cpplist = new QValueList; + + PyObject *elem; + KIO::CopyInfo *cpp; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + cpp = (KIO::CopyInfo *)sipForceConvertToType(elem, sipType_KIO_CopyInfo, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + *sipIsErr = 1; + delete cpplist; + return 0; + } + + cpplist->append (*cpp); + } + + *sipCppPtr = cpplist; + + return 1; +%End +}; + + diff --git a/sip/kio/kacl.sip b/sip/kio/kacl.sip new file mode 100644 index 0000000..d7d7fe2 --- /dev/null +++ b/sip/kio/kacl.sip @@ -0,0 +1,168 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_5_0 - ) + +class KACL +{ +%TypeHeaderCode +#include +%End + + +public: + KACL (const QString&); + KACL (const KACL&); + KACL (mode_t); + KACL (); + bool operator == (const KACL&) const; + bool operator != (const KACL&) const; + bool isValid () const; + ushort ownerPermissions () const; + bool setOwnerPermissions (ushort); + ushort owningGroupPermissions () const; + bool setOwningGroupPermissions (ushort); + ushort othersPermissions () const; + bool setOthersPermissions (ushort); + mode_t basePermissions () const; + bool isExtended () const; + ushort maskPermissions (bool&) const; + bool setMaskPermissions (ushort); + ushort namedUserPermissions (const QString&, bool*) const; + bool setNamedUserPermissions (const QString&, ushort); + ACLUserPermissionsList allUserPermissions () const; + bool setAllUserPermissions (const ACLUserPermissionsList&); + ushort namedGroupPermissions (const QString&, bool*) const; + bool setNamedGroupPermissions (const QString&, ushort); + ACLGroupPermissionsList allGroupPermissions () const; + bool setAllGroupPermissions (const ACLGroupPermissionsList&); + bool setACL (const QString&); + QString asString () const; + +protected: + virtual void virtual_hook (int, void*); + +}; // class KACL + +%End + + +%If ( KDE_3_5_0 - ) +typedef QPair ACLUserPermissions; +typedef QValueList ACLUserPermissionsList; +//igx typedef QValueListIterator ACLUserPermissionsIterator; +//igx typedef QValueListConstIterator ACLUserPermissionsConstIterator; +//igx typedef QPair ACLGroupPermissions; +//igx typedef QValueList ACLGroupPermissionsList; +//igx typedef QValueListIterator ACLGroupPermissionsIterator; +//igx typedef QValueListConstIterator ACLGroupPermissionsConstIterator; +//igx QDataStream& operator << (QDataStream&, const KACL&); +//igx QDataStream& operator >> (QDataStream&, KACL&); +//force +typedef ACLUserPermissionsList ACLGroupPermissionsList; +//end +%End + + +%MappedType QValueList +//converts a Python list of ACLUserPermissions tuples (QString, int) +{ +%TypeHeaderCode +#include +#include +#include +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New(0); + + // Create the list + PyObject *pylist; + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + QValueList *cpplist = (QValueList *)sipCpp; + PyObject *inst; + + // Get it. + QValueList::Iterator it; + for( it = cpplist->begin(); it != cpplist->end(); ++it ) + { + QString s = (*it).first; + ushort u = (*it).second; + PyObject *pys = sipConvertFromNewType(new QString(s), sipType_QString, sipTransferObj); + if ((pys == NULL) || ((inst = Py_BuildValue ("Ni", pys, u)) == NULL) + || PyList_Append (pylist, inst) < 0) + { + Py_XDECREF (inst); + Py_XDECREF (pys); + Py_DECREF (pylist); + return NULL; + } + } + + return pylist; +%End + + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QValueList *cpplist = new QValueList; + + QString *p1; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + int p1_state; + + PyObject *elem = PyList_GET_ITEM (sipPy, i); + PyObject *pyp1 = PyTuple_GET_ITEM (elem, 0); + p1 = (QString *)sipForceConvertToType(pyp1, sipType_QString, sipTransferObj, SIP_NOT_NONE, &p1_state, &iserr); + + if (iserr) + { + *sipIsErr = 1; + delete cpplist; + return 0; + } + ushort p2 = (ushort)(PyInt_AS_LONG (PyTuple_GET_ITEM (elem, 1))); + + cpplist->append (ACLUserPermissions (*p1, p2)); + + sipReleaseType(p1, sipType_QString, p1_state); + } + + *sipCppPtr = cpplist; + + return 1; +%End +}; + + diff --git a/sip/kio/kar.sip b/sip/kio/kar.sip new file mode 100644 index 0000000..08560f2 --- /dev/null +++ b/sip/kio/kar.sip @@ -0,0 +1,54 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_1_0 - ) + +class KAr : KArchive +{ +%TypeHeaderCode +#include +%End + + +public: + KAr (const QString&); + KAr (QIODevice*); + QString fileName (); + virtual bool prepareWriting (const QString&, const QString&, const QString&, uint); + virtual bool doneWriting (uint); + virtual bool writeDir (const QString&, const QString&, const QString&); + +protected: + virtual bool openArchive (int); + virtual bool closeArchive (); + +protected: + virtual void virtual_hook (int, void*); + +}; // class KAr + +%End + diff --git a/sip/kio/karchive.sip b/sip/kio/karchive.sip new file mode 100644 index 0000000..45c634b --- /dev/null +++ b/sip/kio/karchive.sip @@ -0,0 +1,189 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KArchive +{ +%TypeHeaderCode +#include +%End + + +protected: + KArchive (QIODevice*); + +public: + virtual bool open (int); + virtual void close (); + +%If ( KDE_3_5_0 - ) + bool closeSucceeded () const; +%End + + bool isOpened () const; + int mode () const; + QIODevice* device () const; + const KArchiveDirectory* directory () const; + +%If ( KDE_3_2_0 - ) + bool addLocalFile (const QString&, const QString&); + bool addLocalDirectory (const QString&, const QString&); +%End + + virtual bool writeDir (const QString&, const QString&, const QString&) = 0; + +%If ( KDE_3_2_0 - ) + bool writeDir (const QString&, const QString&, const QString&, mode_t, time_t, time_t, time_t); + bool writeSymLink (const QString&, const QString&, const QString&, const QString&, mode_t, time_t, time_t, time_t); +%End + + virtual bool writeFile (const QString&, const QString&, const QString&, uint, const char*); + +%If ( KDE_3_2_0 - ) + bool writeFile (const QString&, const QString&, const QString&, uint, mode_t, time_t, time_t, time_t, const char*); +%End + + virtual bool prepareWriting (const QString&, const QString&, const QString&, uint) = 0; + +%If ( KDE_3_2_0 - ) + bool prepareWriting (const QString&, const QString&, const QString&, uint, mode_t, time_t, time_t, time_t); + bool writeData (const char*, uint); +%End + + virtual bool doneWriting (uint) = 0; + +protected: + virtual bool openArchive (int) = 0; + virtual bool closeArchive () = 0; + virtual KArchiveDirectory* rootDir (); + KArchiveDirectory* findOrCreate (const QString&); + void setDevice (QIODevice*); + void setRootDir (KArchiveDirectory*); + +protected: +//igx virtual void virtual_hook (int, void*); + +%If ( KDE_3_2_0 - ) + bool prepareWriting_impl (const QString&, const QString&, const QString&, uint, mode_t, time_t, time_t, time_t); + bool writeFile_impl (const QString&, const QString&, const QString&, uint, mode_t, time_t, time_t, time_t, const char*); + bool writeDir_impl (const QString&, const QString&, const QString&, mode_t, time_t, time_t, time_t); + bool writeSymLink_impl (const QString&, const QString&, const QString&, const QString&, mode_t, time_t, time_t, time_t); + bool writeData_impl (const char*, uint); +%End + + +protected: + +%If ( - KDE_3_1_0 ) + ~KArchive (); +%End + + +}; // class KArchive + + +class KArchiveEntry +{ +%TypeHeaderCode +#include +%End + + +public: + KArchiveEntry (KArchive*, const QString&, int, int, const QString&, const QString&, const QString&); + QDateTime datetime () const; + int date () const; + QString name () const; + mode_t permissions () const; + QString user () const; + QString group () const; + QString symlink () const; + virtual bool isFile () const; + virtual bool isDirectory () const; + +protected: + KArchive* archive () const; + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KArchiveEntry + + +class KArchiveFile : KArchiveEntry +{ +%TypeHeaderCode +#include +%End + + +public: + KArchiveFile (KArchive*, const QString&, int, int, const QString&, const QString&, const QString&, int, int); + int position () const; + int size () const; + +%If ( KDE_3_1_0 - ) + void setSize (int); +%End + + virtual QByteArray data () const; + QIODevice* device () const; + virtual bool isFile () const; + +%If ( KDE_3_1_0 - ) + void copyTo (const QString&) const; +%End + + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KArchiveFile + + +class KArchiveDirectory : KArchiveEntry +{ +%TypeHeaderCode +#include +%End + + +public: + KArchiveDirectory (KArchive*, const QString&, int, int, const QString&, const QString&, const QString&); + QStringList entries () const; + KArchiveEntry* entry (QString); + void addEntry (KArchiveEntry*); + virtual bool isDirectory () const; + +%If ( KDE_3_1_0 - ) + void copyTo (const QString&, bool = 1) const; +%End + + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KArchiveDirectory + diff --git a/sip/kio/kautomount.sip b/sip/kio/kautomount.sip new file mode 100644 index 0000000..5a41740 --- /dev/null +++ b/sip/kio/kautomount.sip @@ -0,0 +1,77 @@ +// +// Copyright 2005 Jim Bublitz +// Earlier copyrights 1998 - 2004 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE_3_3_2 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KAutoMount : QObject +{ +%TypeHeaderCode +#include +%End + + +public: + KAutoMount (bool, const QString&, const QString&, const QString&, const QString&, bool = 1); + +signals: + void finished (); + void error (); + +protected slots: + void slotResult (KIO::Job*); + +protected: +//force + +private: + ~KAutoMount (); +//end + +}; // class KAutoMount + + +class KAutoUnmount : QObject +{ +%TypeHeaderCode +#include +%End + + +public: + KAutoUnmount (const QString&, const QString&); + +signals: + void finished (); + void error (); + +protected slots: + void slotResult (KIO::Job*); +//force + +private: + ~KAutoUnmount (); +//end + +}; // class KAutoUnmount + diff --git a/sip/kio/kdatatool.sip b/sip/kio/kdatatool.sip new file mode 100644 index 0000000..3473e4d --- /dev/null +++ b/sip/kio/kdatatool.sip @@ -0,0 +1,172 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KDataToolInfo +{ +%TypeHeaderCode +#include +%End + + +public: + KDataToolInfo (); + KDataToolInfo (const KService::Ptr&, KInstance*); + KDataToolInfo (const KDataToolInfo&); + QString dataType () const; + QStringList mimeTypes () const; + bool isReadOnly () const; + QPixmap icon () const; + QPixmap miniIcon () const; + QString iconName () const; + QStringList userCommands () const; + QStringList commands () const; + KDataTool* createTool (QObject* /Transfer/ = 0, const char* = 0) const; + KService::Ptr service () const; + KInstance* instance () const; + bool isValid () const; + static QValueList query (const QString&, const QString&, KInstance*); + +}; // class KDataToolInfo + + +class KDataToolAction : KAction +{ +%TypeHeaderCode +#include +%End + + +public: + KDataToolAction (const QString&, const KDataToolInfo&, const QString&, QObject* /TransferThis/ = 0, const char* = 0); + static QPtrList dataToolActionList (const QValueList&, const QObject*, const char*); + +signals: + void toolActivated (const KDataToolInfo&, const QString&); + +protected: + virtual void slotActivated (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KDataToolAction + + +class KDataTool : QObject +{ +%TypeHeaderCode +#include +%End + + +public: + KDataTool (QObject* /TransferThis/ = 0, const char* = 0); + void setInstance (KInstance*); + KInstance* instance () const; + virtual bool run (const QString&, void*, const QString&, const QString&) = 0; + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KDataTool + + + +%MappedType QValueList +//converts a Python list of KDataToolInfo +{ +%TypeHeaderCode +#include +%End + +%ConvertFromTypeCode +// Convert to a Python list of KDataToolInfo + + if (!sipCpp) + return PyList_New(0); + + PyObject *dtiList; + + // Create the list + + if ((dtiList = PyList_New(0)) == NULL) + return NULL; + + // Get it. + + QValueList *dlist = (QValueList *)sipCpp; + PyObject *inst; + + + QValueList::Iterator it; + for( it = dlist->begin(); it != dlist->end(); ++it ) + { + if ((inst = sipConvertFromNewType(new KDataToolInfo(*it), sipType_KDataToolInfo, NULL)) == NULL + || PyList_Append (dtiList, inst) < 0) + { + Py_DECREF (dtiList); + return NULL; + } + } + + return dtiList; +%End + + +%ConvertToTypeCode + // Convert a Python list to a KDataToolInfoVList on the heap. + + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QValueList *dList = new QValueList; + + PyObject *elem; + KDataToolInfo *d; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + d = (KDataToolInfo *)sipForceConvertToType(elem, sipType_KDataToolInfo, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + *sipIsErr = 1; + delete dList; + return 0; + } + + dList->append (*d); + } + + *sipCppPtr = dList; + + return 1; +%End +}; + + diff --git a/sip/kio/kdcopservicestarter.sip b/sip/kio/kdcopservicestarter.sip new file mode 100644 index 0000000..fd1684c --- /dev/null +++ b/sip/kio/kdcopservicestarter.sip @@ -0,0 +1,48 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_2_0 - ) + +class KDCOPServiceStarter +{ +%TypeHeaderCode +#include +%End + + +public: + static KDCOPServiceStarter* self (); + int findServiceFor (const QString&, const QString& = QString ::null , const QString& = QString ::null , QString* = 0, QCString* = 0, int = 0); + virtual int startServiceFor (const QString&, const QString& = QString ::null , const QString& = QString ::null , QString* = 0, QCString* = 0, int = 0); + +protected: + KDCOPServiceStarter (); + ~KDCOPServiceStarter (); + +}; // class KDCOPServiceStarter + +%End + diff --git a/sip/kio/kdirlister.sip b/sip/kio/kdirlister.sip new file mode 100644 index 0000000..1526279 --- /dev/null +++ b/sip/kio/kdirlister.sip @@ -0,0 +1,267 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KDirLister : QObject +{ +%TypeHeaderCode +#include +%End + + +public: + KDirLister (bool = 0); + virtual bool openURL (const KURL&, bool = 0, bool = 0); + virtual void stop (); + virtual void stop (const KURL&); + bool autoUpdate () const; + virtual void setAutoUpdate (bool); + bool autoErrorHandlingEnabled () const; + void setAutoErrorHandlingEnabled (bool, QWidget* /Transfer/); + bool showingDotFiles () const; + virtual void setShowingDotFiles (bool); + bool dirOnlyMode () const; + virtual void setDirOnlyMode (bool); + const KURL& url () const; + +%If ( KDE_3_4_0 - ) + const KURL::List& directories () const; +%End + + virtual void emitChanges (); + virtual void updateDirectory (const KURL&); + bool isFinished () const; + KFileItem* rootItem () const; + virtual KFileItem* findByURL (const KURL&) const; + KFileItem* find (const KURL&) const; + virtual KFileItem* findByName (const QString&) const; + virtual void setNameFilter (const QString&); + const QString& nameFilter () const; + virtual void setMimeFilter (const QStringList&); + +%If ( KDE_3_1_0 - ) + void setMimeExcludeFilter (const QStringList&); +%End + + virtual void clearMimeFilter (); + const QStringList& mimeFilters () const; + bool matchesFilter (const QString&) const; + bool matchesMimeFilter (const QString&) const; + +%If ( KDE_3_1_0 - ) + void setMainWindow (QWidget*); + QWidget* mainWindow (); + + enum WhichItems + { + AllItems, + FilteredItems + }; + + KFileItemList items (KDirLister::WhichItems = FilteredItems ) const; + KFileItemList itemsForDir (const KURL&, KDirLister::WhichItems = FilteredItems ) const; +%End + + +signals: + void started (const KURL&); + void completed (); + void completed (const KURL&); + void canceled (); + void canceled (const KURL&); + void redirection (const KURL&); + void redirection (const KURL&, const KURL&); + void clear (); + void clear (const KURL&); + void newItems (const KFileItemList&); + void itemsFilteredByMime (const KFileItemList&); + void deleteItem (KFileItem*); + void refreshItems (const KFileItemList&); + void infoMessage (const QString&); + void percent (int); + void totalSize (KIO::filesize_t); + void processedSize (KIO::filesize_t); + void speed (int); + +protected: + virtual bool matchesFilter (const KFileItem*) const; + virtual bool matchesMimeFilter (const KFileItem*) const; + virtual bool doNameFilter (const QString&, const QPtrList&) const; + virtual bool doMimeFilter (const QString&, const QStringList&) const; + +%If ( KDE_3_1_0 - ) + bool doMimeExcludeFilter (const QString&, const QStringList&) const; +%End + + virtual bool validURL (const KURL&) const; + virtual void handleError (KIO::Job*); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KDirLister + + + +%MappedType KFileItemList +//converts a Python list of KFileItem +{ +%TypeHeaderCode +#include +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New (0); + + PyObject *pylist; + + // Create the list + + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + // Get it. + + QPtrList *cpplist = (QPtrList *)sipCpp; + KFileItem *cpp; + PyObject *inst; + + // the loop depends on the type of iterator the tmeplate makes available + for(cpp = cpplist->first (); cpp != 0; cpp = cpplist->next () ) + { + if (((inst = sipConvertFromInstance (cpp, sipClass_KFileItem, sipTransferObj)) == NULL) + || PyList_Append (pylist, inst) < 0) + { + Py_DECREF (pylist); + return NULL; + } + } + + return pylist; +%End + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QPtrList *cpplist = new QPtrList; + + PyObject *elem; + KFileItem *cpp; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + cpp = (KFileItem *)sipForceConvertToType(elem, sipType_KFileItem, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + *sipIsErr = 1; + delete cpplist; + return 0; + } + + cpplist->append (cpp); + } + + *sipCppPtr = cpplist; + + return 1; +%End +}; + + +%MappedType QPtrList +//converts a Python list of QRegExp +{ +%TypeHeaderCode +#include +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New (0); + + PyObject *pylist; + + // Create the list + + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + // Get it. + + QPtrList *cpplist = (QPtrList *)sipCpp; + QRegExp *cpp; + PyObject *inst; + + // the loop depends on the type of iterator the tmeplate makes available + for(cpp = cpplist->first (); cpp != 0; cpp = cpplist->next () ) + { + if (((inst = sipConvertFromInstance (cpp, sipClass_QRegExp, sipTransferObj)) == NULL) + || PyList_Append (pylist, inst) < 0) + { + Py_DECREF (pylist); + return NULL; + } + } + + return pylist; +%End + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QPtrList *cpplist = new QPtrList; + + PyObject *elem; + QRegExp *cpp; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + cpp = (QRegExp *)sipForceConvertToType(elem, sipType_QRegExp, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + *sipIsErr = 1; + delete cpplist; + return 0; + } + + cpplist->append (cpp); + } + + *sipCppPtr = cpplist; + + return 1; +%End +}; + + diff --git a/sip/kio/kdirnotify.sip b/sip/kio/kdirnotify.sip new file mode 100644 index 0000000..1f3fbb9 --- /dev/null +++ b/sip/kio/kdirnotify.sip @@ -0,0 +1,57 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KDirNotify : DCOPObject +{ +%TypeHeaderCode +#include +%End + + +public: + +%If ( KDE_3_1_4 - ) + virtual bool process (const QCString&, const QByteArray&, QCString&, QByteArray&); + QCStringList functions (); + QCStringList interfaces (); +%End + + +protected: + KDirNotify (); + ~KDirNotify (); + +public: + virtual void FilesAdded (const KURL&) = 0; + virtual void FilesRemoved (const KURL::List&) = 0; + virtual void FilesChanged (const KURL::List&) = 0; + virtual void FileRenamed (const KURL&, const KURL&); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KDirNotify + diff --git a/sip/kio/kdirwatch.sip b/sip/kio/kdirwatch.sip new file mode 100644 index 0000000..41867dd --- /dev/null +++ b/sip/kio/kdirwatch.sip @@ -0,0 +1,96 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KDirWatch : QObject +{ +%TypeHeaderCode +#include +%End + + +public: + KDirWatch (QObject* /TransferThis/ = 0, const char* = 0); + void addDir (const QString&, bool = 0, bool = 0); + void addFile (const QString&); + QDateTime ctime (const QString&); + void removeDir (const QString&); + void removeFile (const QString&); + bool stopDirScan (const QString&); + bool restartDirScan (const QString&); + void startScan (bool = 0, bool = 0); + void stopScan (); + bool isStopped (); + bool contains (const QString&) const; + static void statistics (); + void setCreated (const QString&); + void setDirty (const QString&); + void setDeleted (const QString&); + +%If ( KDE_3_5_1 - ) + + enum Method + { + FAM, + DNotify, + Stat, + INotify + }; + +%End + + +%If ( KDE_3_2_0 - ) + KDirWatch::Method internalMethod (); +%End + + static KDirWatch* self (); + +%If ( KDE_3_1_0 - ) + static bool exists (); +%End + + +signals: + void dirty (const QString&); + void created (const QString&); + void deleted (const QString&); + +public: + +%If ( KDE_3_2_0 - KDE_3_5_1 ) + + enum Method + { + FAM, + DNotify, + Stat + }; + +%End + + +}; // class KDirWatch + diff --git a/sip/kio/kemailsettings.sip b/sip/kio/kemailsettings.sip new file mode 100644 index 0000000..8041d0b --- /dev/null +++ b/sip/kio/kemailsettings.sip @@ -0,0 +1,84 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KEMailSettings +{ +%TypeHeaderCode +#include +%End + + +public: + + enum Setting + { + ClientProgram, + ClientTerminal, + RealName, + EmailAddress, + ReplyToAddress, + Organization, + OutServer, + OutServerLogin, + OutServerPass, + OutServerType, + OutServerCommand, + OutServerTLS, + InServer, + InServerLogin, + InServerPass, + InServerType, + InServerMBXType, + InServerTLS + }; + + + enum Extension + { + POP3, + SMTP, + OTHER + }; + + KEMailSettings (); + QStringList profiles () const; + QString currentProfileName () const; + void setProfile (const QString&); + QString defaultProfileName () const; + void setDefault (const QString&); + QString getSetting (KEMailSettings::Setting); + void setSetting (KEMailSettings::Setting, const QString&); + +public: + +%If ( - KDE_3_2_0 ) +//ig QString getExtendedSetting (KEMailSettings::Extension, const QString&); +//ig void setExtendedSetting (KEMailSettings::Extension, const QString&, const QString&); +%End + + +}; // class KEMailSettings + diff --git a/sip/kio/kfilefilter.sip b/sip/kio/kfilefilter.sip new file mode 100644 index 0000000..cbe6561 --- /dev/null +++ b/sip/kio/kfilefilter.sip @@ -0,0 +1,81 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KFileFilter +{ +%TypeHeaderCode +#include +%End + + +public: + virtual bool passesFilter (const KFileItem*) const = 0; + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KFileFilter + + +class KSimpleFileFilter : KFileFilter +{ +%TypeHeaderCode +#include +%End + + +public: + KSimpleFileFilter (); + virtual void setFilterDotFiles (bool); + bool filterDotFiles () const; + virtual void setFilterSpecials (bool); + bool filterSpecials () const; + +%If ( KDE_3_1_0 - ) + void setNameFilters (const QString&, bool, const QChar& = ' '); +%End + + virtual void setNameFilters (const QString&); + virtual void setMimeFilters (const QStringList&); + QStringList mimeFilters () const; + virtual void setModeFilter (mode_t); + mode_t modeFilter () const; + virtual bool passesFilter (const KFileItem*) const; + +protected: + +protected: +//igx virtual void virtual_hook (int, void*); + +public: + +%If ( - KDE_3_2_0 ) +//ig QString nameFilters () const; +%End + + +}; // class KSimpleFileFilter + diff --git a/sip/kio/kfileitem.sip b/sip/kio/kfileitem.sip new file mode 100644 index 0000000..3bba31c --- /dev/null +++ b/sip/kio/kfileitem.sip @@ -0,0 +1,171 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KFileItem +{ +%TypeHeaderCode +#include +%End + + +public: + + enum + { + Unknown + }; + + KFileItem (const KIO::UDSEntry&, const KURL&, bool = 0, bool = 0); + KFileItem (mode_t, mode_t, const KURL&, bool = 0); + KFileItem (const KURL&, const QString&, mode_t); + KFileItem (const KFileItem&); + void refresh (); + void refreshMimeType (); + const KURL& url () const; + void setURL (const KURL&); + +%If ( KDE_3_2_0 - ) + void setName (const QString&); +%End + + mode_t permissions () const; + QString permissionsString () const; + +%If ( KDE_3_5_0 - ) + bool hasExtendedACL () const; + KACL ACL () const; + KACL defaultACL () const; +%End + + mode_t mode () const; + QString user () const; + QString group () const; + bool isLink () const; + bool isDir () const; + bool isFile () const; + bool isReadable () const; + +%If ( KDE_3_4_0 - ) + bool isWritable () const; +%End + + +%If ( KDE_3_3_0 - ) + bool isHidden () const; +%End + + QString linkDest () const; + +%If ( KDE_3_4_0 - ) + QString localPath () const; +%End + + KIO::filesize_t size () const; + +%If ( KDE_3_5_0 - ) + KIO::filesize_t size (bool& /Out/) const /PyName=sizeAndExists/; +%End + + time_t time (uint) const; + +%If ( KDE_3_5_0 - ) + time_t time (uint, bool& /Out/) const /PyName=timeAndHasTime/; +%End + + QString timeString (uint = KIO ::UDS_MODIFICATION_TIME ) const; + bool isLocalFile () const; + const QString& text () const; + const QString& name (bool = 0) const; + QString mimetype () const; + KMimeType::Ptr determineMimeType (); + KMimeType::Ptr mimeTypePtr (); + bool isMimeTypeKnown () const; + QString mimeComment (); + QString iconName (); + QPixmap pixmap (int, int = 0) const; + int overlays () const; + QString getStatusBarInfo (); + QString getToolTipText (int = 6); + bool acceptsDrops (); + void run (); + const KIO::UDSEntry& entry () const; + bool isMarked () const; + void mark (); + void unmark (); + bool cmp (const KFileItem&); +//ig virtual void setExtraData (const void*, void*); +//ig virtual const void* extraData (const void*) const; +//ig virtual void removeExtraData (const void*); + void setMetaInfo (const KFileMetaInfo&); + +%If ( KDE_3_5_0 - ) + void setFileMode (mode_t); + void setMimeType (const QString&); +%End + + const KFileMetaInfo& metaInfo (bool = 1, int = KFileMetaInfo ::Fastest ) const; + void assign (const KFileItem&); + +%If ( KDE_3_4_3 - ) + void setUDSEntry (const KIO::UDSEntry&, const KURL&, bool = 0, bool = 0); +%End + + +%If ( KDE_3_4_0 - ) + KURL mostLocalURL (bool&) const; +%End + + +protected: + void init (bool); + +%If ( KDE_3_4_3 - ) + void readUDSEntry (bool); +%End + + QString parsePermissions (mode_t) const; + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KFileItem + +typedef QPtrList KFileItemList; + +%If ( KDE_3_1_4 - ) +//ig typedef QPtrListIterator KFileItemListIterator; + +%If ( KDE_3_2_0 - ) +//igx QDataStream& operator << (QDataStream&, const KFileItem&); +//igx QDataStream& operator >> (QDataStream&, KFileItem&); +%End + +%End + + +%If ( - KDE_3_1_4 ) +//ig typedef QListIterator KFileItemListIterator; +%End diff --git a/sip/kio/kfilemetainfo.sip b/sip/kio/kfilemetainfo.sip new file mode 100644 index 0000000..77b5871 --- /dev/null +++ b/sip/kio/kfilemetainfo.sip @@ -0,0 +1,458 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KFileMimeTypeInfo +{ +%TypeHeaderCode +#include +%End + + +public: + KFileMimeTypeInfo (); + +%If ( KDE_3_3_0 - ) + + enum Attributes + { + Addable, + Removable, + Modifiable, + Cumulative, + Cummulative, + Averaged, + MultiLine, + SqueezeText + }; + +%End + + + enum Hint + { + NoHint, + Name, + Author, + Description, + Width, + Height, + Size, + Bitrate, + Length, + Hidden, + Thumbnail + }; + + +%If ( KDE_3_3_0 - ) + + enum Unit + { + NoUnit, + Seconds, + MilliSeconds, + BitsPerSecond, + Pixels, + Inches, + Centimeters, + Bytes, + FramesPerSecond, + DotsPerInch, + BitsPerPixel, + Hertz, + KiloBytes, + Millimeters + }; + +%End + + + class GroupInfo + { + + public: + QStringList supportedKeys () const; + const QString& name () const; + const QString& translatedName () const; + const KFileMimeTypeInfo::ItemInfo* itemInfo (const QString&) const; + uint attributes () const; + bool supportsVariableKeys () const; + const KFileMimeTypeInfo::ItemInfo* variableItemInfo () const; + + private: + GroupInfo (const QString&, const QString&); + + }; // class GroupInfo + + +public: + + class ItemInfo + { + + public: + ItemInfo (); + const QString& prefix () const; + const QString& suffix () const; + QVariant::Type type () const; + const QString& key () const; + +%If ( KDE_3_1_0 - ) + QString string (const QVariant&, bool = 1) const; +%End + + bool isVariableItem () const; + const QString& translatedKey () const; + uint attributes () const; + uint hint () const; + uint unit () const; + + private: + ItemInfo (const QString&, const QString&, QVariant::Type); + + }; // class ItemInfo + + +public: + QValidator* createValidator (const QString&, const QString&, QObject* /Transfer/ = 0, const char* = 0) const; + QStringList supportedGroups () const; + QStringList translatedGroups () const; + QStringList preferredGroups () const; + QString mimeType () const; + const KFileMimeTypeInfo::GroupInfo* groupInfo (const QString&) const; + QStringList supportedKeys () const; + QStringList preferredKeys () const; + KFileMimeTypeInfo::GroupInfo* addGroupInfo (const QString&, const QString&); + QString m_translatedName; + QStringList m_supportedKeys; + uint m_attr; +//ig QDict m_itemDict; + +protected: + KFileMimeTypeInfo (const QString&); + +public: + +%If ( KDE_3_1_0 - KDE_3_3_0 ) + + enum Attributes + { + Addable, + Removable, + Modifiable, + Cummulative, + Averaged, + MultiLine, + SqueezeText + }; + +%End + + +public: + +%If ( - KDE_3_1_0 ) + + enum Attributes + { + Addable, + Removable, + Modifiable, + Cummulative, + Averaged + }; + +%End + + +}; // class KFileMimeTypeInfo + + +class KFileMetaInfoItem +{ +%TypeHeaderCode +#include +%End + + +public: + typedef KFileMimeTypeInfo::Hint Hint; +//ig typedef KFileMimeTypeInfo::Unit Unit; + typedef KFileMimeTypeInfo::Attributes Attributes; + KFileMetaInfoItem (const KFileMimeTypeInfo::ItemInfo*, const QString&, const QVariant&); + KFileMetaInfoItem (const KFileMetaInfoItem&); + KFileMetaInfoItem (); + QString key () const; + QString translatedKey () const; + const QVariant& value () const; + QString string (bool = 1) const; + bool setValue (const QVariant&); + QVariant::Type type () const; + bool isEditable () const; + bool isRemoved () const; + bool isModified () const; + QString prefix () const; + QString suffix () const; + uint hint () const; +//ig uint unit () const; + uint attributes () const; + bool isValid () const; + +protected: + void setAdded (); + +%If ( KDE_3_1_0 - ) + void setRemoved (); +%End + + void ref (); + void deref (); + +}; // class KFileMetaInfoItem + + +class KFileMetaInfoGroup +{ +%TypeHeaderCode +#include +%End + + +public: + KFileMetaInfoGroup (const QString&, const KFileMimeTypeInfo*); + KFileMetaInfoGroup (const KFileMetaInfoGroup&); + KFileMetaInfoGroup (); + bool isValid () const; + bool isEmpty () const; + +%If ( KDE_3_1_0 - ) + bool isModified () const; + +%If ( KDE_3_1_4 - ) + KFileMetaInfoItem operator [] (const QString&) const; +%MethodCode +//returns (KFileMetaInfoItem) +//takes key | (QString) + sipRes = &((*sipCpp) [(const QString&) *a0]); +%End + +%End + +%End + + KFileMetaInfoItem item (const QString&) const; + KFileMetaInfoItem item (uint) const; + const QVariant value (const QString&) const; + QStringList supportedKeys () const; + bool supportsVariableKeys () const; + bool contains (const QString&) const; + QStringList keys () const; + QStringList preferredKeys () const; + KFileMetaInfoItem addItem (const QString&); + bool removeItem (const QString&); + QStringList removedItems (); + QString name () const; + +%If ( KDE_3_2_0 - ) + QString translatedName () const; +%End + + uint attributes () const; + +protected: + void setAdded (); + KFileMetaInfoItem appendItem (const QString&, const QVariant&); + void ref (); + void deref (); + +}; // class KFileMetaInfoGroup + + +class KFileMetaInfo +{ +%TypeHeaderCode +#include +%End + + +public: + typedef KFileMimeTypeInfo::Hint Hint; +//ig typedef KFileMimeTypeInfo::Unit Unit; + typedef KFileMimeTypeInfo::Attributes Attributes; + + enum What + { + Fastest, + DontCare, + TechnicalInfo, + ContentInfo, + ExtenedAttr, + Thumbnail, + Preferred, + Everything + }; + + KFileMetaInfo (const QString&, const QString& = QString ::null , uint = Fastest ); + +%If ( KDE_3_2_0 - ) + KFileMetaInfo (const KURL&, const QString& = QString ::null , uint = Fastest ); +%End + + KFileMetaInfo (); + KFileMetaInfo (const KFileMetaInfo&); + QStringList groups () const; + QStringList supportedGroups () const; + QStringList preferredGroups () const; + QStringList preferredKeys () const; + QStringList supportedKeys () const; + QStringList editableGroups () const; + KFileMetaInfoItem item (const QString&) const; + KFileMetaInfoItem item (const Hint) const; + KFileMetaInfoItem saveItem (const QString&, const QString& = QString ::null , bool = 1); + KFileMetaInfoGroup group (const QString&) const; + +%If ( KDE_3_1_4 - ) + KFileMetaInfoGroup operator [] (const QString&) const; +%MethodCode +//returns (KFileMetaInfoGroup) +//takes key | (QString) + sipRes = &((*sipCpp) [(const QString&)*a0]); +%End + +%End + + bool addGroup (const QString&); + bool removeGroup (const QString&); + QStringList removedGroups (); + bool applyChanges (); + +%If ( KDE_3_5_3 - ) + bool applyChanges (const QString&); +%End + + bool contains (const QString&) const; + bool containsGroup (const QString&) const; + const QVariant value (const QString&) const; + bool isValid () const; + bool isEmpty () const; + QString mimeType () const; + QString path () const; + +%If ( KDE_3_2_0 - ) + KURL url () const; +%End + + +protected: + KFileMetaInfoGroup appendGroup (const QString&); + KFilePlugin* plugin () const; + void ref (); + void deref (); + +}; // class KFileMetaInfo + + +class KFilePlugin : QObject +{ +%TypeHeaderCode +#include +%End + + +public: + KFilePlugin (QObject* /TransferThis/, const char*, const QStringList&); + virtual bool readInfo (KFileMetaInfo&, uint = KFileMetaInfo ::Fastest ) = 0; + virtual bool writeInfo (const KFileMetaInfo&) const; + virtual QValidator* createValidator (const QString&, const QString&, const QString&, QObject*, const char*) const; + +protected: + KFileMimeTypeInfo* addMimeTypeInfo (const QString&); + KFileMimeTypeInfo::GroupInfo* addGroupInfo (KFileMimeTypeInfo*, const QString&, const QString&) const; + void setAttributes (KFileMimeTypeInfo::GroupInfo*, uint) const; + void addVariableInfo (KFileMimeTypeInfo::GroupInfo*, QVariant::Type, uint) const; + KFileMimeTypeInfo::ItemInfo* addItemInfo (KFileMimeTypeInfo::GroupInfo*, const QString&, const QString&, QVariant::Type); + void setAttributes (KFileMimeTypeInfo::ItemInfo*, uint); + void setHint (KFileMimeTypeInfo::ItemInfo*, uint); + void setUnit (KFileMimeTypeInfo::ItemInfo*, uint); + void setPrefix (KFileMimeTypeInfo::ItemInfo*, const QString&); + void setSuffix (KFileMimeTypeInfo::ItemInfo*, const QString&); + KFileMetaInfoGroup appendGroup (KFileMetaInfo&, const QString&); + void appendItem (KFileMetaInfoGroup&, const QString&, QVariant); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KFilePlugin + + +class KFileMetaInfoProvider : QObject +{ +%TypeHeaderCode +#include +%End + + +public: + static KFileMetaInfoProvider* self (); + KFilePlugin* plugin (const QString&); + +%If ( KDE_3_4_0 - ) + KFilePlugin* plugin (const QString&, const QString&); +%End + + const KFileMimeTypeInfo* mimeTypeInfo (const QString&); + +%If ( KDE_3_4_0 - ) + const KFileMimeTypeInfo* mimeTypeInfo (const QString&, const QString&); +%End + + QStringList preferredKeys (const QString&) const; + QStringList preferredGroups (const QString&) const; + +%If ( KDE_3_1_0 - ) + QStringList supportedMimeTypes () const; +%End + + +protected: +//ig KFileMetaInfoProvider (); +//force + +private: + KFileMetaInfoProvider (); +//end + +}; // class KFileMetaInfoProvider + + +%If ( KDE_3_1_4 - ) +//igx QDataStream& operator << (QDataStream&, const KFileMetaInfoItem&); +//igx QDataStream& operator >> (QDataStream&, KFileMetaInfoItem&); +//igx QDataStream& operator << (QDataStream&, const KFileMetaInfoGroup&); +//igx QDataStream& operator >> (QDataStream&, KFileMetaInfoGroup&); +//igx QDataStream& operator << (QDataStream&, const KFileMetaInfo&); +//igx QDataStream& operator >> (QDataStream&, KFileMetaInfo&); +%End diff --git a/sip/kio/kfileshare.sip b/sip/kio/kfileshare.sip new file mode 100644 index 0000000..69c5236 --- /dev/null +++ b/sip/kio/kfileshare.sip @@ -0,0 +1,87 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +//ig class KFileSharePrivate : QObject; + + +%If ( KDE_3_1_0 - ) + +class KFileShare +{ +%TypeHeaderCode +#include +%End + + +public: + static void readConfig (); + +%If ( KDE_3_3_0 - ) + static void readShareList (); +%End + + static bool isDirectoryShared (const QString&); + + enum Authorization + { + NotInitialized, + ErrorNotFound, + Authorized, + UserNotAllowed + }; + + static KFileShare::Authorization authorization (); + static QString findExe (const char*); + static bool setShared (const QString&, bool); + +%If ( KDE_3_3_0 - ) + + enum ShareMode + { + Simple, + Advanced + }; + + static bool sharingEnabled (); + static bool isRestricted (); + static QString fileShareGroup (); + static KFileShare::ShareMode shareMode (); + static bool sambaEnabled (); + static bool nfsEnabled (); +%End + + +public: + +%If ( - KDE_3_1_5 ) +//ig static bool setShared (const QString&, bool, bool); +%End + + +}; // class KFileShare + +%End + diff --git a/sip/kio/kfilterbase.sip b/sip/kio/kfilterbase.sip new file mode 100644 index 0000000..bf931bc --- /dev/null +++ b/sip/kio/kfilterbase.sip @@ -0,0 +1,74 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KFilterBase : QObject +{ +%TypeHeaderCode +#include +#include +%End + + +public: + KFilterBase (); + +%If ( KDE_3_1_2 - ) + void setDevice (QIODevice*, bool = 0); +%End + + QIODevice* device (); + virtual void init (int) = 0; + virtual int mode () const = 0; + virtual void terminate (); + virtual void reset (); + virtual bool readHeader () = 0; + virtual bool writeHeader (const QCString&) = 0; + virtual void setOutBuffer (char*, uint) = 0; + virtual void setInBuffer (const char*, uint) = 0; + virtual bool inBufferEmpty () const; + virtual int inBufferAvailable () const = 0; + virtual bool outBufferFull () const; + virtual int outBufferAvailable () const = 0; + + enum Result + { + OK, + END, + ERROR + }; + + virtual Result uncompress () = 0; + virtual KFilterBase::Result compress (bool) = 0; + static KFilterBase* findFilterByFileName (const QString&); + static KFilterBase* findFilterByMimeType (const QString&); + +protected: + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KFilterBase + diff --git a/sip/kio/kfilterdev.sip b/sip/kio/kfilterdev.sip new file mode 100644 index 0000000..37bd1dc --- /dev/null +++ b/sip/kio/kfilterdev.sip @@ -0,0 +1,73 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KFilterDev : QIODevice +{ +%TypeHeaderCode +#include +%End + + +public: + KFilterDev (KFilterBase*, bool); + virtual bool open (int); + virtual void close (); + virtual void flush (); + void setOrigFileName (const QCString&); + +%If ( KDE_3_1_0 - ) + void setSkipHeaders (); +%End + + virtual QIODevice::Offset size () const; + virtual QIODevice::Offset at () const; + virtual bool at (QIODevice::Offset); + virtual bool atEnd () const; +//ig virtual Q_LONG readBlock (char*, Q_ULONG); +//ig virtual Q_LONG writeBlock (const char*, Q_ULONG); + virtual int getch (); + virtual int putch (int); + virtual int ungetch (int); + static QIODevice* createFilterDevice (KFilterBase*, QFile*); + +public: + static QIODevice* deviceForFile (const QString&, const QString& = QString ::null , bool = 0); + static QIODevice* device (QIODevice*, const QString&); + +%If ( KDE_3_1_0 - ) + static QIODevice* device (QIODevice*, const QString&, bool); +%End + + +public: + +%If ( - KDE_3_2_2 ) + virtual long writeBlock (const char*, ulong); +%End + + +}; // class KFilterDev + diff --git a/sip/kio/kimageio.sip b/sip/kio/kimageio.sip new file mode 100644 index 0000000..879506f --- /dev/null +++ b/sip/kio/kimageio.sip @@ -0,0 +1,59 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KImageIO +{ +%TypeHeaderCode +#include +%End + + +public: + + enum Mode + { + Reading, + Writing + }; + + static void registerFormats (); + static bool canWrite (const QString&); + static bool canRead (const QString&); + static QStringList types (KImageIO::Mode = Writing ); + static QString pattern (KImageIO::Mode = Reading ); + static QString suffix (const QString&); + +%If ( KDE_3_1_0 - ) + static QString typeForMime (const QString&); +%End + + static QString type (const QString&); + static QStringList mimeTypes (KImageIO::Mode = Writing ); + static bool isSupported (const QString&, KImageIO::Mode = Writing ); + static QString mimeType (const QString&); + +}; // class KImageIO + diff --git a/sip/kio/kio-kde310.diff b/sip/kio/kio-kde310.diff new file mode 100644 index 0000000..89a40fb --- /dev/null +++ b/sip/kio/kio-kde310.diff @@ -0,0 +1,5 @@ ++ %Include davjob.sip ++ %Include kar.sip ++ %Include kfileshare.sip ++ %Include kzip.sip ++ %Include metainfojob.sip diff --git a/sip/kio/kio-kde311.diff b/sip/kio/kio-kde311.diff new file mode 100644 index 0000000..de04c4f --- /dev/null +++ b/sip/kio/kio-kde311.diff @@ -0,0 +1,4 @@ ++ %Include davjob.sip ++ %Include kar.sip ++ %Include kzip.sip ++ %Include metainfojob.sip diff --git a/sip/kio/kio-kde312.diff b/sip/kio/kio-kde312.diff new file mode 100644 index 0000000..89a40fb --- /dev/null +++ b/sip/kio/kio-kde312.diff @@ -0,0 +1,5 @@ ++ %Include davjob.sip ++ %Include kar.sip ++ %Include kfileshare.sip ++ %Include kzip.sip ++ %Include metainfojob.sip diff --git a/sip/kio/kio-kde313.diff b/sip/kio/kio-kde313.diff new file mode 100644 index 0000000..89a40fb --- /dev/null +++ b/sip/kio/kio-kde313.diff @@ -0,0 +1,5 @@ ++ %Include davjob.sip ++ %Include kar.sip ++ %Include kfileshare.sip ++ %Include kzip.sip ++ %Include metainfojob.sip diff --git a/sip/kio/kio-kde314.diff b/sip/kio/kio-kde314.diff new file mode 100644 index 0000000..89a40fb --- /dev/null +++ b/sip/kio/kio-kde314.diff @@ -0,0 +1,5 @@ ++ %Include davjob.sip ++ %Include kar.sip ++ %Include kfileshare.sip ++ %Include kzip.sip ++ %Include metainfojob.sip diff --git a/sip/kio/kio-kde315.diff b/sip/kio/kio-kde315.diff new file mode 100644 index 0000000..89a40fb --- /dev/null +++ b/sip/kio/kio-kde315.diff @@ -0,0 +1,5 @@ ++ %Include davjob.sip ++ %Include kar.sip ++ %Include kfileshare.sip ++ %Include kzip.sip ++ %Include metainfojob.sip diff --git a/sip/kio/kio-kde320.diff b/sip/kio/kio-kde320.diff new file mode 100644 index 0000000..5124944 --- /dev/null +++ b/sip/kio/kio-kde320.diff @@ -0,0 +1,6 @@ ++ %Include davjob.sip ++ %Include kar.sip ++ %Include kdcopservicestarter.sip ++ %Include kfileshare.sip ++ %Include kzip.sip ++ %Include metainfojob.sip diff --git a/sip/kio/kio-kde321.diff b/sip/kio/kio-kde321.diff new file mode 100644 index 0000000..5124944 --- /dev/null +++ b/sip/kio/kio-kde321.diff @@ -0,0 +1,6 @@ ++ %Include davjob.sip ++ %Include kar.sip ++ %Include kdcopservicestarter.sip ++ %Include kfileshare.sip ++ %Include kzip.sip ++ %Include metainfojob.sip diff --git a/sip/kio/kio-kde322.diff b/sip/kio/kio-kde322.diff new file mode 100644 index 0000000..5124944 --- /dev/null +++ b/sip/kio/kio-kde322.diff @@ -0,0 +1,6 @@ ++ %Include davjob.sip ++ %Include kar.sip ++ %Include kdcopservicestarter.sip ++ %Include kfileshare.sip ++ %Include kzip.sip ++ %Include metainfojob.sip diff --git a/sip/kio/kio-kde323.diff b/sip/kio/kio-kde323.diff new file mode 100644 index 0000000..5124944 --- /dev/null +++ b/sip/kio/kio-kde323.diff @@ -0,0 +1,6 @@ ++ %Include davjob.sip ++ %Include kar.sip ++ %Include kdcopservicestarter.sip ++ %Include kfileshare.sip ++ %Include kzip.sip ++ %Include metainfojob.sip diff --git a/sip/kio/kio-kde330.diff b/sip/kio/kio-kde330.diff new file mode 100644 index 0000000..901fbeb --- /dev/null +++ b/sip/kio/kio-kde330.diff @@ -0,0 +1,10 @@ ++ %Include davjob.sip ++ %Include kar.sip ++ %Include kdcopservicestarter.sip ++ %Include kfileshare.sip ++ %Include kmimetypechooser.sip ++ %Include knfsshare.sip ++ %Include kremoteencoding.sip ++ %Include ksambashare.sip ++ %Include kzip.sip ++ %Include metainfojob.sip diff --git a/sip/kio/kio-kde331.diff b/sip/kio/kio-kde331.diff new file mode 100644 index 0000000..901fbeb --- /dev/null +++ b/sip/kio/kio-kde331.diff @@ -0,0 +1,10 @@ ++ %Include davjob.sip ++ %Include kar.sip ++ %Include kdcopservicestarter.sip ++ %Include kfileshare.sip ++ %Include kmimetypechooser.sip ++ %Include knfsshare.sip ++ %Include kremoteencoding.sip ++ %Include ksambashare.sip ++ %Include kzip.sip ++ %Include metainfojob.sip diff --git a/sip/kio/kio-kde332.diff b/sip/kio/kio-kde332.diff new file mode 100644 index 0000000..901fbeb --- /dev/null +++ b/sip/kio/kio-kde332.diff @@ -0,0 +1,10 @@ ++ %Include davjob.sip ++ %Include kar.sip ++ %Include kdcopservicestarter.sip ++ %Include kfileshare.sip ++ %Include kmimetypechooser.sip ++ %Include knfsshare.sip ++ %Include kremoteencoding.sip ++ %Include ksambashare.sip ++ %Include kzip.sip ++ %Include metainfojob.sip diff --git a/sip/kio/kio-kde340.diff b/sip/kio/kio-kde340.diff new file mode 100644 index 0000000..324b1d4 --- /dev/null +++ b/sip/kio/kio-kde340.diff @@ -0,0 +1,11 @@ ++ %Include davjob.sip ++ %Include forwardingslavebase.sip ++ %Include kar.sip ++ %Include kdcopservicestarter.sip ++ %Include kfileshare.sip ++ %Include kmimetypechooser.sip ++ %Include knfsshare.sip ++ %Include kremoteencoding.sip ++ %Include ksambashare.sip ++ %Include kzip.sip ++ %Include metainfojob.sip diff --git a/sip/kio/kio-kde341.diff b/sip/kio/kio-kde341.diff new file mode 100644 index 0000000..324b1d4 --- /dev/null +++ b/sip/kio/kio-kde341.diff @@ -0,0 +1,11 @@ ++ %Include davjob.sip ++ %Include forwardingslavebase.sip ++ %Include kar.sip ++ %Include kdcopservicestarter.sip ++ %Include kfileshare.sip ++ %Include kmimetypechooser.sip ++ %Include knfsshare.sip ++ %Include kremoteencoding.sip ++ %Include ksambashare.sip ++ %Include kzip.sip ++ %Include metainfojob.sip diff --git a/sip/kio/kio-kde342.diff b/sip/kio/kio-kde342.diff new file mode 100644 index 0000000..324b1d4 --- /dev/null +++ b/sip/kio/kio-kde342.diff @@ -0,0 +1,11 @@ ++ %Include davjob.sip ++ %Include forwardingslavebase.sip ++ %Include kar.sip ++ %Include kdcopservicestarter.sip ++ %Include kfileshare.sip ++ %Include kmimetypechooser.sip ++ %Include knfsshare.sip ++ %Include kremoteencoding.sip ++ %Include ksambashare.sip ++ %Include kzip.sip ++ %Include metainfojob.sip diff --git a/sip/kio/kio-kde343.diff b/sip/kio/kio-kde343.diff new file mode 100644 index 0000000..324b1d4 --- /dev/null +++ b/sip/kio/kio-kde343.diff @@ -0,0 +1,11 @@ ++ %Include davjob.sip ++ %Include forwardingslavebase.sip ++ %Include kar.sip ++ %Include kdcopservicestarter.sip ++ %Include kfileshare.sip ++ %Include kmimetypechooser.sip ++ %Include knfsshare.sip ++ %Include kremoteencoding.sip ++ %Include ksambashare.sip ++ %Include kzip.sip ++ %Include metainfojob.sip diff --git a/sip/kio/kio-kde350.diff b/sip/kio/kio-kde350.diff new file mode 100644 index 0000000..3d0cb01 --- /dev/null +++ b/sip/kio/kio-kde350.diff @@ -0,0 +1,12 @@ ++ %Include davjob.sip ++ %Include forwardingslavebase.sip ++ %Include kacl.sip ++ %Include kar.sip ++ %Include kdcopservicestarter.sip ++ %Include kfileshare.sip ++ %Include kmimetypechooser.sip ++ %Include knfsshare.sip ++ %Include kremoteencoding.sip ++ %Include ksambashare.sip ++ %Include kzip.sip ++ %Include metainfojob.sip diff --git a/sip/kio/kio-kde351.diff b/sip/kio/kio-kde351.diff new file mode 100644 index 0000000..3d0cb01 --- /dev/null +++ b/sip/kio/kio-kde351.diff @@ -0,0 +1,12 @@ ++ %Include davjob.sip ++ %Include forwardingslavebase.sip ++ %Include kacl.sip ++ %Include kar.sip ++ %Include kdcopservicestarter.sip ++ %Include kfileshare.sip ++ %Include kmimetypechooser.sip ++ %Include knfsshare.sip ++ %Include kremoteencoding.sip ++ %Include ksambashare.sip ++ %Include kzip.sip ++ %Include metainfojob.sip diff --git a/sip/kio/kio-kde352.diff b/sip/kio/kio-kde352.diff new file mode 100644 index 0000000..3d0cb01 --- /dev/null +++ b/sip/kio/kio-kde352.diff @@ -0,0 +1,12 @@ ++ %Include davjob.sip ++ %Include forwardingslavebase.sip ++ %Include kacl.sip ++ %Include kar.sip ++ %Include kdcopservicestarter.sip ++ %Include kfileshare.sip ++ %Include kmimetypechooser.sip ++ %Include knfsshare.sip ++ %Include kremoteencoding.sip ++ %Include ksambashare.sip ++ %Include kzip.sip ++ %Include metainfojob.sip diff --git a/sip/kio/kio-kde353.diff b/sip/kio/kio-kde353.diff new file mode 100644 index 0000000..3d0cb01 --- /dev/null +++ b/sip/kio/kio-kde353.diff @@ -0,0 +1,12 @@ ++ %Include davjob.sip ++ %Include forwardingslavebase.sip ++ %Include kacl.sip ++ %Include kar.sip ++ %Include kdcopservicestarter.sip ++ %Include kfileshare.sip ++ %Include kmimetypechooser.sip ++ %Include knfsshare.sip ++ %Include kremoteencoding.sip ++ %Include ksambashare.sip ++ %Include kzip.sip ++ %Include metainfojob.sip diff --git a/sip/kio/kiomod.sip.in b/sip/kio/kiomod.sip.in new file mode 100644 index 0000000..84984ed --- /dev/null +++ b/sip/kio/kiomod.sip.in @@ -0,0 +1,97 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE_3_5_2 + +%Copying + + This software is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License as + published by the Free Software Foundation; either version 2 of + the License, or (at your option) any later version. + + This software is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public + License along with this library; see the file COPYING. + If not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +%End + +%Module kio + +%Import qt/qtmod.sip +%Import qtxml/qtxmlmod.sip +%Import dcopmod.sip +%Import kdecoremod.sip +%Import kdefxmod.sip +%Import kdeuimod.sip + +%Include authinfo.sip +%Include chmodjob.sip +%Include connection.sip +%Include defaultprogress.sip +%Include global.sip +%Include job.sip +%Include jobclasses.sip +%Include karchive.sip +%Include kautomount.sip +%Include kdatatool.sip +%Include kdirlister.sip +%Include kdirnotify.sip +%Include kdirwatch.sip +%Include kemailsettings.sip +%Include kfilefilter.sip +%Include kfileitem.sip +%Include kfilemetainfo.sip +%Include kfilterbase.sip +%Include kfilterdev.sip +%Include kimageio.sip +%Include kmimemagic.sip +%Include kmimetype.sip +%Include kprotocolinfo.sip +%Include kprotocolmanager.sip +%Include krun.sip +%Include kscan.sip +%Include kservice.sip +%Include kservicegroup.sip +%Include kservicetype.sip +%Include kshellcompletion.sip +%Include kshred.sip +%Include ksycoca.sip +%Include ksycocaentry.sip +%Include ksycocafactory.sip +%Include ksycocatype.sip +%Include ktar.sip +%Include ktrader.sip +%Include kurifilter.sip +%Include kurlcompletion.sip +%Include kurlpixmapprovider.sip +%Include kuserprofile.sip +%Include netaccess.sip +%Include observer.sip +%Include passdlg.sip +%Include paste.sip +%Include previewjob.sip +%Include progressbase.sip +%Include renamedlg.sip +%Include renamedlgplugin.sip +%Include scheduler.sip +%Include sessiondata.sip +%Include skipdlg.sip +%Include slave.sip +%Include slavebase.sip +%Include slaveconfig.sip +%Include slaveinterface.sip +%Include statusbarprogress.sip +%Include tcpslavebase.sip +%Include thumbcreator.sip +@mark@ diff --git a/sip/kio/kmimemagic.sip b/sip/kio/kmimemagic.sip new file mode 100644 index 0000000..0dc31c6 --- /dev/null +++ b/sip/kio/kmimemagic.sip @@ -0,0 +1,74 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KMimeMagicResult +{ +%TypeHeaderCode +#include +%End + + +public: + KMimeMagicResult (); + const QString mimeType (); + int accuracy (); + bool isValid (); + void setMimeType (const QString&); + void setAccuracy (int); + void setInvalid (); + +protected: + +}; // class KMimeMagicResult + + +class KMimeMagic +{ +%TypeHeaderCode +#include +%End + + +public: + +%If ( KDE_3_1_0 - ) + KMimeMagic (); +%End + + KMimeMagic (const QString&); + bool mergeConfig (const QString&); + bool mergeBufConfig (char*); + void setFollowLinks (bool); + KMimeMagicResult* findFileType (const QString&); + KMimeMagicResult* findBufferType (const QByteArray&); + KMimeMagicResult* findBufferFileType (const QByteArray&, const QString&); + static KMimeMagic* self (); + +protected: + static void initStatic (); + +}; // class KMimeMagic + diff --git a/sip/kio/kmimetype.sip b/sip/kio/kmimetype.sip new file mode 100644 index 0000000..ba25572 --- /dev/null +++ b/sip/kio/kmimetype.sip @@ -0,0 +1,428 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KMimeType : KServiceType +{ +%TypeHeaderCode +#include +%End + + +public: + + typedef KSharedPtr Ptr; + typedef QValueList List; + +public: + KMimeType (const QString&, const QString&, const QString&, const QString&, const QStringList&); + KMimeType (const QString&); + KMimeType (KDesktopFile*); + KMimeType (QDataStream&, int); + virtual QString icon (const QString&, bool) const; + virtual QString icon (const KURL&, bool) const; + virtual QPixmap pixmap (KIcon::Group, int = 0, int = 0, QString* = 0) const; + virtual QPixmap pixmap (const KURL&, KIcon::Group, int = 0, int = 0, QString* = 0) const; + static QPixmap pixmapForURL (const KURL&, mode_t = 0, KIcon::Group = KIcon ::Desktop , int = 0, int = 0, QString* = 0); + static QString iconForURL (const KURL&, mode_t = 0); + static QString favIconForURL (const KURL&); + QString comment () const; + virtual QString comment (const QString&, bool) const; + virtual QString comment (const KURL&, bool) const; + const QStringList& patterns () const; + virtual void load (QDataStream&); + virtual void save (QDataStream&); + virtual QVariant property (const QString&) const; + virtual QStringList propertyNames () const; + static KMimeType::Ptr mimeType (const QString&); + static KMimeType::Ptr findByURL (const KURL&, mode_t = 0, bool = 0, bool = 0); + +%If ( KDE_3_2_0 - ) + static KMimeType::Ptr findByURL (const KURL&, mode_t, bool, bool, bool*); +%End + + static KMimeType::Ptr findByPath (const QString&, mode_t = 0, bool = 0); + static KMimeType::Ptr findByContent (const QByteArray&, int* = 0); + static KMimeType::Ptr findByFileContent (const QString&, int* = 0); + +%If ( KDE_3_2_1 - ) + + class Format + { + + public: + bool text; + + enum + { + NoCompression, + GZipCompression + }; + +//ig int compression; + int dummy; + + }; // class Format + + +public: +%End + + +%If ( KDE_3_2_0 - ) +//ig static KMimeType::Format findFormatByFileContent (const QString&); +%End + + static KMimeType::List allMimeTypes (); + static const QString& defaultMimeType (); + +%If ( KDE_3_2_0 - ) + static KMimeType::Ptr defaultMimeTypePtr (); + QString parentMimeType () const; + bool is (const QString&) const /PyName=is_/; //'is' is a reserved keyword in python; + static KMimeType::Ptr diagnoseFileName (const QString&, QString&); +%End + + +protected: + void loadInternal (QDataStream&); + void init (KDesktopFile*); + static void errorMissingMimeType (const QString&); + static void buildDefaultType (); + static void checkEssentialMimeTypes (); + +protected: + +%If ( KDE_3_2_0 - ) + int patternsAccuracy () const; +%End + + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KMimeType + + +class KFolderType : KMimeType +{ +%TypeHeaderCode +#include +%End + + +public: + KFolderType (KDesktopFile*); + KFolderType (QDataStream&, int); + virtual QString icon (const QString&, bool) const; + virtual QString icon (const KURL&, bool) const; + virtual QString comment (const QString&, bool) const; + virtual QString comment (const KURL&, bool) const; + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KFolderType + + +class KDEDesktopMimeType : KMimeType +{ +%TypeHeaderCode +#include +%End + + +public: + + enum ServiceType + { + ST_MOUNT, + ST_UNMOUNT, + ST_USER_DEFINED + }; + + + class Service + { + + public: + Service (); + +%If ( KDE_3_2_0 - ) + bool isEmpty () const; +%End + + QString m_strName; + QString m_strIcon; + QString m_strExec; + KDEDesktopMimeType::ServiceType m_type; + bool m_display; + + }; // class Service + + +public: + KDEDesktopMimeType (KDesktopFile*); + KDEDesktopMimeType (QDataStream&, int); + virtual QString icon (const QString&, bool) const; + virtual QString icon (const KURL&, bool) const; + virtual QPixmap pixmap (const KURL&, KIcon::Group, int = 0, int = 0, QString* = 0) const; + virtual QString comment (const QString&, bool) const; + virtual QString comment (const KURL&, bool) const; + static QValueList builtinServices (const KURL&); + static QValueList userDefinedServices (const QString&, bool); + +%If ( KDE_3_4_0 - ) + static QValueList userDefinedServices (const QString&, KConfig&, bool); + +%If ( KDE_3_5_0 - ) + static QValueList userDefinedServices (const QString&, KConfig&, bool, const KURL::List&); +%End + +%End + + static void executeService (const QString&, KDEDesktopMimeType::Service&); + static void executeService (const KURL::List&, KDEDesktopMimeType::Service&); + static pid_t run (const KURL&, bool); + +protected: + virtual QPixmap pixmap (KIcon::Group, int, int, QString*) const; + static pid_t runFSDevice (const KURL&, const KSimpleConfig&); + static pid_t runApplication (const KURL&, const QString&); + static pid_t runLink (const KURL&, const KSimpleConfig&); + static pid_t runMimeType (const KURL&, const KSimpleConfig&); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KDEDesktopMimeType + + +class KExecMimeType : KMimeType +{ +%TypeHeaderCode +#include +%End + + +public: + KExecMimeType (KDesktopFile*); + KExecMimeType (QDataStream&, int); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KExecMimeType + + + +%MappedType KMimeType::Ptr +//converts KMimeType +{ +%TypeHeaderCode +#include +#include +%End + +%ConvertFromTypeCode + // Convert to a Python instance + + if (!sipCpp) + return NULL; + + KSharedPtr *cPtr = (KSharedPtr *)sipCpp; + KMimeType *cpp = new KMimeType (*cPtr->data ()); + PyObject *obj = sipConvertFromInstance (cpp, sipClass_KMimeType, sipTransferObj); + + return obj; +%End + +%ConvertToTypeCode + // Convert a Python instance to a Ptr on the heap. + + if (sipIsErr == NULL) + return sipCanConvertToType(sipPy, sipType_KMimeType, SIP_NO_CONVERTORS); + + int iserr = 0; + KMimeType *cpp = (KMimeType *)sipConvertToType(sipPy, sipType_KMimeType, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + *sipIsErr = 1; + return 0; + } + + *sipCppPtr = new KSharedPtr (cpp); + + return 1; +%End +}; + + +%MappedType QValueList +//converts a Python list of KDEDesktopMimeType.Service +{ +%TypeHeaderCode +#include +#include +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New(0); + + // Create the list + PyObject *pylist; + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + QValueList *cpplist = (QValueList *)sipCpp; + PyObject *inst; + + // Get it. + QValueList::Iterator it; + for( it = cpplist->begin(); it != cpplist->end(); ++it ) + { + if (((inst = sipConvertFromNewType(new KDEDesktopMimeType::Service(*it), sipType_KDEDesktopMimeType_Service, NULL)) == NULL) + || PyList_Append (pylist, inst) < 0) + { + Py_DECREF (pylist); + return NULL; + } + } + + return pylist; +%End + + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QValueList *cpplist = new QValueList; + + PyObject *elem; + KDEDesktopMimeType::Service *cpp; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + cpp = (KDEDesktopMimeType::Service *)sipForceConvertToType(elem, sipType_KDEDesktopMimeType_Service, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + *sipIsErr = 1; + delete cpplist; + return 0; + } + + cpplist->append (*cpp); + } + + *sipCppPtr = cpplist; + + return 1; +%End +}; + + +%MappedType QValueList +//converts a Python list of KMimeType +{ +%TypeHeaderCode +#include +%End + +%ConvertFromTypeCode + // Convert to a Python list of Ptr (KMimeType). + + if (!sipCpp) + return PyList_New (0); + + PyObject *plist; + + // Create the list + + if ((plist = PyList_New(0)) == NULL) + return NULL; + + // Get it. + + QValueList *cList = (QValueList *)sipCpp; + PyObject *inst; + KMimeType *svc; + + QValueList::Iterator it; + for( it = cList->begin(); it != cList->end(); ++it ) + { + svc = new KMimeType (*(KMimeType *)((KMimeType::Ptr)(*it)).data ()); + inst = sipConvertFromNewType(svc, sipType_KMimeType, NULL); + if ((inst == NULL) || (PyList_Append (plist, inst) < 0)) + { + Py_XDECREF (inst); + Py_DECREF (plist); + return NULL; + } + } + + return plist; +%End + +%ConvertToTypeCode + // Convert a Python list to List on the heap. + + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QValueList *cList = new QValueList; + PyObject *elem; + KMimeType *service; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + service = (KMimeType *)sipForceConvertToType(elem, sipType_KMimeType, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr); + + KMimeType::Ptr *ptr = new KMimeType::Ptr (service); + + if (iserr) + { + *sipIsErr = 1; + delete cList; + return 0; + } + + cList->append (*ptr); + } + + *sipCppPtr = cList; + + return 1; +%End +}; + + diff --git a/sip/kio/kmimetypechooser.sip b/sip/kio/kmimetypechooser.sip new file mode 100644 index 0000000..b0a8987 --- /dev/null +++ b/sip/kio/kmimetypechooser.sip @@ -0,0 +1,74 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_3_0 - ) + +class KMimeTypeChooser : QVBox +{ +%TypeHeaderCode +#include +%End + + +public: + + enum Visuals + { + Comments, + Patterns, + EditButton + }; + + KMimeTypeChooser (const QString& = QString ::null , const QStringList& = 0, const QString& = QString ::null , const QStringList& = QStringList (), int = Comments |Patterns |EditButton , QWidget* /TransferThis/ = 0, const char* = 0); + QStringList mimeTypes () const; + QStringList patterns () const; + +public slots: + void editMimeType (); + +}; // class KMimeTypeChooser + +%End + + +%If ( KDE_3_3_0 - ) + +class KMimeTypeChooserDialog : KDialogBase +{ +%TypeHeaderCode +#include +%End + + +public: + KMimeTypeChooserDialog (const QString& = QString ::null , const QString& = QString ::null , const QStringList& = QStringList (), const QString& = QString ::null , const QStringList& = QStringList (), int = KMimeTypeChooser ::Comments |KMimeTypeChooser ::Patterns |KMimeTypeChooser ::EditButton , QWidget* /TransferThis/ = 0, const char* = 0); + KMimeTypeChooserDialog (const QString&, const QString&, const QStringList&, const QString&, QWidget* /TransferThis/ = 0, const char* = 0); + KMimeTypeChooser* chooser (); + +}; // class KMimeTypeChooserDialog + +%End + diff --git a/sip/kio/knfsshare.sip b/sip/kio/knfsshare.sip new file mode 100644 index 0000000..6f36f02 --- /dev/null +++ b/sip/kio/knfsshare.sip @@ -0,0 +1,51 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_3_0 - ) + +class KNFSShare : QObject +{ +%TypeHeaderCode +#include +%End + + +public: + static KNFSShare* instance (); + bool isDirectoryShared (const QString&) const; + QStringList sharedDirectories () const; + QString exportsPath () const; + +signals: + void changed (); + +private: + KNFSShare (); + +}; // class KNFSShare + +%End + diff --git a/sip/kio/kpac.sip b/sip/kio/kpac.sip new file mode 100644 index 0000000..7560514 --- /dev/null +++ b/sip/kio/kpac.sip @@ -0,0 +1,44 @@ +// +// Copyright 2003 Jim Bublitz +// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE_3_1_4 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KPAC +{ +%TypeHeaderCode +#include +%End + + +public: + virtual QString proxyForURL (const KURL&) = 0; + virtual bool init (const KURL&) = 0; + virtual bool discover () = 0; + virtual void badProxy (const QString&) = 0; + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KPAC + diff --git a/sip/kio/kprotocolinfo.sip b/sip/kio/kprotocolinfo.sip new file mode 100644 index 0000000..ef173be --- /dev/null +++ b/sip/kio/kprotocolinfo.sip @@ -0,0 +1,287 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KProtocolInfo : KSycocaEntry +{ +%TypeHeaderCode +#include +%End + + +public: + typedef KSharedPtr Ptr; + +public: + KProtocolInfo (const QString&); + virtual bool isValid () const; + virtual QString name () const; + static QStringList protocols (); + static bool isKnownProtocol (const KURL&); + static bool isKnownProtocol (const QString&); + static QString exec (const QString&) /PyName=exec_/; + + enum Type + { + T_STREAM, + T_FILESYSTEM, + T_NONE, + T_ERROR + }; + + static KProtocolInfo::Type inputType (const KURL&); + static KProtocolInfo::Type outputType (const KURL&); + static QStringList listing (const KURL&); + +%If ( KDE_3_2_0 - ) + + class ExtraField + { + + public: + ExtraField (); + ExtraField (const QString&, const QString&); + QString name; + QString type; + + }; // class ExtraField + + +public: +%End + + +%If ( KDE_3_2_0 - ) + typedef QValueList ExtraFieldList; + static KProtocolInfo::ExtraFieldList extraFields (const KURL&); +%End + + static bool isSourceProtocol (const KURL&); + static bool isHelperProtocol (const KURL&); + static bool isHelperProtocol (const QString&); + static bool isFilterProtocol (const KURL&); + static bool isFilterProtocol (const QString&); + static bool supportsListing (const KURL&); + static bool supportsReading (const KURL&); + static bool supportsWriting (const KURL&); + static bool supportsMakeDir (const KURL&); + static bool supportsDeleting (const KURL&); + static bool supportsLinking (const KURL&); + static bool supportsMoving (const KURL&); + static bool canCopyFromFile (const KURL&); + static bool canCopyToFile (const KURL&); + +%If ( KDE_3_4_0 - ) + static bool canRenameFromFile (const KURL&); + static bool canRenameToFile (const KURL&); + static bool canDeleteRecursive (const KURL&); + + enum FileNameUsedForCopying + { + Name, + FromURL + }; + + static KProtocolInfo::FileNameUsedForCopying fileNameUsedForCopying (const KURL&); +%End + + static QString defaultMimetype (const KURL&); + static QString icon (const QString&); + static QString config (const QString&); + static int maxSlaves (const QString&); + static bool determineMimetypeFromExtension (const QString&); + +%If ( KDE_3_2_0 - ) + static QString docPath (const QString&); + static QString protocolClass (const QString&); + static bool showFilePreview (const QString&); + static KURL::URIMode uriParseMode (const QString&); + +%If ( KDE_3_3_0 - ) + static QStringList capabilities (const QString&); + static QString proxiedBy (const QString&); +%End + +%End + + +public: + KProtocolInfo (QDataStream&, int); + virtual void load (QDataStream&); + virtual void save (QDataStream&); + static Type inputType (const QString&); + static Type outputType (const QString&); + static QStringList listing (const QString&); + static bool isSourceProtocol (const QString&); + static bool supportsListing (const QString&); + static bool supportsReading (const QString&); + static bool supportsWriting (const QString&); + static bool supportsMakeDir (const QString&); + static bool supportsDeleting (const QString&); + static bool supportsLinking (const QString&); + static bool supportsMoving (const QString&); + static bool canCopyFromFile (const QString&); + static bool canCopyToFile (const QString&); + static QString defaultMimetype (const QString&); + +protected: + +%If ( KDE_3_5_1 - ) + bool canRenameFromFile () const; + bool canRenameToFile () const; + bool canDeleteRecursive () const; + KProtocolInfo::FileNameUsedForCopying fileNameUsedForCopying () const; +%End + + +%If ( KDE_3_4_0 - ) + static KProtocolInfo* findProtocol (const KURL&); +%End + + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KProtocolInfo + + +%If ( KDE_3_2_0 - ) +//igx QDataStream& operator >> (QDataStream&, KProtocolInfo::ExtraField&); +//igx QDataStream& operator << (QDataStream&, const KProtocolInfo::ExtraField&); +%End + + +%MappedType KProtocolInfo::Ptr +//converts KProtocolInfo +{ +%TypeHeaderCode +#include +#include +%End + +%ConvertFromTypeCode + // Convert to a Python instance + + if (!sipCpp) + return NULL; + + KSharedPtr *cPtr = new KSharedPtr(*(KSharedPtr *)sipCpp); + KProtocolInfo *cpp = cPtr->data (); + PyObject *obj = sipConvertFromInstance (cpp, sipClass_KProtocolInfo, sipTransferObj); + + return obj; +%End + +%ConvertToTypeCode + // Convert a Python instance to a Ptr on the heap. + + if (sipIsErr == NULL) + return sipCanConvertToType(sipPy, sipType_KProtocolInfo, SIP_NO_CONVERTORS); + + int iserr = 0; + KProtocolInfo *cpp = (KProtocolInfo *)sipConvertToType(sipPy, sipType_KProtocolInfo, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + *sipIsErr = 1; + return 0; + } + + *sipCppPtr = new KSharedPtr (cpp); + + return 1; +%End +}; + + +%If (KDE_3_2_0 - ) +%MappedType QValueList +//converts a Python list of KProtocolInfo::ExtraField +{ +%TypeHeaderCode +#include +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New(0); + + // Create the list + PyObject *pylist; + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + QValueList *cpplist = (QValueList *)sipCpp; + PyObject *inst; + + // Get it. + QValueList::Iterator it; + for( it = cpplist->begin(); it != cpplist->end(); ++it ) + { + if (((inst = sipConvertFromNewType(new KProtocolInfo::ExtraField(*it), sipType_KProtocolInfo_ExtraField, sipTransferObj)) == NULL) + || PyList_Append (pylist, inst) < 0) + { + Py_DECREF (pylist); + return NULL; + } + } + + return pylist; +%End + + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QValueList *cpplist = new QValueList; + + PyObject *elem; + KProtocolInfo::ExtraField *cpp; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + cpp = (KProtocolInfo::ExtraField *)sipForceConvertToType(elem, sipType_KProtocolInfo_ExtraField, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + *sipIsErr = 1; + delete cpplist; + return 0; + } + + cpplist->append (*cpp); + } + + *sipCppPtr = cpplist; + + return 1; +%End +}; +%End + + diff --git a/sip/kio/kprotocolmanager.sip b/sip/kio/kprotocolmanager.sip new file mode 100644 index 0000000..ba1da67 --- /dev/null +++ b/sip/kio/kprotocolmanager.sip @@ -0,0 +1,99 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KProtocolManager +{ +%TypeHeaderCode +#include +%End + + +public: + static QString defaultUserAgent (); + static QString defaultUserAgent (const QString&); + static QString userAgentForHost (const QString&); + static int readTimeout (); + static int connectTimeout (); + static int proxyConnectTimeout (); + static int responseTimeout (); + static bool useProxy (); + static bool useReverseProxy (); + + enum ProxyType + { + NoProxy, + ManualProxy, + PACProxy, + WPADProxy, + EnvVarProxy + }; + + static KProtocolManager::ProxyType proxyType (); + + enum ProxyAuthMode + { + Prompt, + Automatic + }; + + static KProtocolManager::ProxyAuthMode proxyAuthMode (); + static QString noProxyFor (); + +%If ( KDE_3_5_1 - ) + static QString noProxyForRaw (); +%End + + static QString proxyFor (const QString&); + static QString proxyForURL (const KURL&); + static void badProxy (const QString&); + static QString proxyConfigScript (); + static bool useCache (); + static int maxCacheAge (); + static int maxCacheSize (); + static QString cacheDir (); + static KIO::CacheControl cacheControl (); + static bool autoResume (); + static bool markPartial (); + static int minimumKeepSize (); + +%If ( KDE_3_1_0 - ) + static bool persistentProxyConnection (); +%End + + static bool persistentConnections (); + static void reparseConfiguration (); + static QString slaveProtocol (const KURL&, QString&); + static KConfig* config (); + +public: + +%If ( - KDE_3_2_0 ) +//ig static int defaultConnectTimeout (); +%End + + +}; // class KProtocolManager + diff --git a/sip/kio/kremoteencoding.sip b/sip/kio/kremoteencoding.sip new file mode 100644 index 0000000..92a7f9c --- /dev/null +++ b/sip/kio/kremoteencoding.sip @@ -0,0 +1,60 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_3_0 - ) + +class KRemoteEncoding +{ +%TypeHeaderCode +#include +%End + + +public: + KRemoteEncoding (const char* = 0); + QString decode (const QCString&) const; + QCString encode (const QString&) const; + QCString encode (const KURL&) const; + QCString directory (const KURL&, bool = 1) const; + QCString fileName (const KURL&) const; + const char* encoding () const; + +%If ( KDE_3_5_0 - ) + int encodingMib () const; +%End + + void setEncoding (const char*); + +protected: + virtual void virtual_hook (int, void*); + +private: + KRemoteEncoding (const KRemoteEncoding&); + +}; // class KRemoteEncoding + +%End + diff --git a/sip/kio/krun.sip b/sip/kio/krun.sip new file mode 100644 index 0000000..ba4791a --- /dev/null +++ b/sip/kio/krun.sip @@ -0,0 +1,206 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KRun : QObject +{ +%TypeHeaderCode +#include +%End + + +public: + KRun (const KURL&, mode_t = 0, bool = 0, bool = 1); + +%If ( KDE_3_2_0 - ) + KRun (const KURL&, QWidget*, mode_t = 0, bool = 0, bool = 1); +%End + + void abort (); + bool hasError () const; + bool hasFinished () const; + bool autoDelete () const; + void setAutoDelete (bool); + void setPreferredService (const QString&); + +%If ( KDE_3_2_0 - ) + void setRunExecutables (bool); + +%If ( KDE_3_4_0 - ) + void setEnableExternalBrowser (bool); + +%If ( KDE_3_5_3 - ) + void setSuggestedFileName (const QString&); +%End + + +%If ( KDE_3_5_2 - ) + static pid_t run (const KService&, const KURL::List&, QWidget*, bool = 0); +%End + +%End + +%End + + +%If ( KDE_3_1_0 - ) + static pid_t run (const KService&, const KURL::List&, bool); +%End + + static pid_t run (const KService&, const KURL::List&); + +%If ( KDE_3_5_3 - ) + static pid_t run (const KService&, const KURL::List&, QWidget*, bool, const QString&); +%End + + static pid_t run (const QString&, const KURL::List&, const QString& = QString ::null , const QString& = QString ::null , const QString& = QString ::null , const QString& = QString ::null ); + +%If ( KDE_3_2_0 - ) + static pid_t runURL (const KURL&, const QString&, bool, bool); +%End + + +%If ( KDE_3_1_0 - ) + static pid_t runURL (const KURL&, const QString&, bool); +%End + + static pid_t runURL (const KURL&, const QString&); + +%If ( KDE_3_5_3 - ) + static pid_t runURL (const KURL&, const QString&, bool, bool, const QString&); +%End + + static pid_t runCommand (QString); + static pid_t runCommand (const QString&, const QString&, const QString&); + +%If ( KDE_3_1_0 - ) + static bool displayOpenWithDialog (const KURL::List&, bool); +%End + + static bool displayOpenWithDialog (const KURL::List&); + +%If ( KDE_3_5_3 - ) + static bool displayOpenWithDialog (const KURL::List&, bool, const QString&); +%End + + static void shellQuote (QString&); + +%If ( KDE_3_1_0 - ) + static QStringList processDesktopExec (const KService&, const KURL::List&, bool, bool); +%End + + static QStringList processDesktopExec (const KService&, const KURL::List&, bool); + +%If ( KDE_3_5_3 - ) + static QStringList processDesktopExec (const KService&, const KURL::List&, bool, bool, const QString&); +%End + + +%If ( KDE_3_1_0 - ) + static QString binaryName (const QString&, bool); + +%If ( KDE_3_2_0 - ) + static bool isExecutable (const QString&); + +%If ( KDE_3_3_0 - ) + static bool isExecutableFile (const KURL&, const QString&); + +%If ( KDE_3_4_0 - ) + static bool checkStartupNotify (const QString&, const KService*, bool*, QCString*); +%End + +%End + +%End + +%End + + +signals: + void finished (); + void error (); + +protected slots: + void slotTimeout (); + void slotScanFinished (KIO::Job*); + void slotScanMimeType (KIO::Job*, const QString&); + virtual void slotStatResult (KIO::Job*); + +protected: + virtual void init (); + virtual void scanFile (); + virtual void foundMimeType (const QString&); + virtual void killJob (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KRun + + +class KOpenWithHandler +{ +%TypeHeaderCode +#include +%End + + +public: + KOpenWithHandler (); + static bool exists (); + +}; // class KOpenWithHandler + + +class KProcessRunner : QObject +{ +%TypeHeaderCode +#include +%End + + +public: + static pid_t run (KProcess*, const QString&); + +%If ( KDE_3_1_4 - ) + static pid_t run (KProcess*, const QString&, const KStartupInfoId&); +%End + + pid_t pid () const; + +protected slots: + void slotProcessExited (KProcess*); + +private: + KProcessRunner (KProcess*, const QString&); + +%If ( KDE_3_1_4 - ) + KProcessRunner (KProcess*, const QString&, const KStartupInfoId&); +%End + + KProcessRunner (); + +}; // class KProcessRunner + diff --git a/sip/kio/ksambashare.sip b/sip/kio/ksambashare.sip new file mode 100644 index 0000000..3e57eea --- /dev/null +++ b/sip/kio/ksambashare.sip @@ -0,0 +1,51 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_3_0 - ) + +class KSambaShare : QObject +{ +%TypeHeaderCode +#include +%End + + +public: + static KSambaShare* instance (); + bool isDirectoryShared (const QString&) const; + QStringList sharedDirectories () const; + QString smbConfPath () const; + +signals: + void changed (); + +private: + KSambaShare (); + +}; // class KSambaShare + +%End + diff --git a/sip/kio/kscan.sip b/sip/kio/kscan.sip new file mode 100644 index 0000000..e6159e2 --- /dev/null +++ b/sip/kio/kscan.sip @@ -0,0 +1,120 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KScanDialog : KDialogBase +{ +%TypeHeaderCode +#include +%End + + +public: + static KScanDialog* getScanDialog (QWidget* /Transfer/ = 0, const char* = 0, bool = 0); + virtual bool setup (); + +protected: + KScanDialog (int = Tabbed , int = Close |Help , QWidget* /TransferThis/ = 0, const char* = 0, bool = 0); + int id () const; + int nextId (); + +signals: + void preview (const QImage&, int); + void finalImage (const QImage&, int); + void textRecognized (const QString&, int); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KScanDialog + + +class KScanDialogFactory : KLibFactory +{ +%TypeHeaderCode +#include +%End + + +public: + virtual KScanDialog* createDialog (QWidget* /Transfer/ = 0, const char* = 0, bool = 0) = 0; + +protected: + KScanDialogFactory (QObject* /TransferThis/ = 0, const char* = 0); + virtual QObject* createObject (QObject* /Transfer/ = 0, const char* = 0, const char* = "QObject", const QStringList& = QStringList ()); + void setName (const QCString&); + KInstance* instance () const; + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KScanDialogFactory + + +class KOCRDialog : KDialogBase +{ +%TypeHeaderCode +#include +%End + + +public: + static KOCRDialog* getOCRDialog (QWidget* /Transfer/ = 0, const char* = 0, bool = 0); + +protected: + KOCRDialog (int = Tabbed , int = Close |Help , QWidget* /TransferThis/ = 0, const char* = 0, bool = 0); + int id () const; + int nextId (); + +signals: + void textRecognized (const QString&, int); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KOCRDialog + + +class KOCRDialogFactory : KLibFactory +{ +%TypeHeaderCode +#include +%End + + +public: + virtual KOCRDialog* createDialog (QWidget* /Transfer/ = 0, const char* = 0, bool = 0) = 0; + +protected: + KOCRDialogFactory (QObject* /TransferThis/ = 0, const char* = 0); + virtual QObject* createObject (QObject* /Transfer/ = 0, const char* = 0, const char* = "QObject", const QStringList& = QStringList ()); + void setName (const QCString&); + KInstance* instance () const; + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KOCRDialogFactory + diff --git a/sip/kio/kservice.sip b/sip/kio/kservice.sip new file mode 100644 index 0000000..3712f91 --- /dev/null +++ b/sip/kio/kservice.sip @@ -0,0 +1,286 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KService : KSycocaEntry +{ +%TypeHeaderCode +#include +%End + + +public: +//ig typedef KSharedPtr Ptr; +//ig typedef QValueList List; + +public: + KService (const QString&, const QString&, const QString&); + KService (const QString&); + KService (KDesktopFile*); + KService (QDataStream&, int); + virtual QString type () /PyName=type_/; + virtual QString name () const; + QString exec () /PyName=exec_/; + QString library () const; + QString init () const; + QString icon () const; + QPixmap pixmap (KIcon::Group, int = 0, int = 0, QString* = 0) const; + bool terminal () const; + QString terminalOptions () const; + bool substituteUid () const; + QString username () const; + QString desktopEntryPath () const; + QString desktopEntryName () const; + +%If ( KDE_3_2_0 - ) + QString menuId () const; + QString storageId () const; +%End + + + enum DCOPServiceType_t + { + DCOP_None, + DCOP_Unique, + DCOP_Multi, + DCOP_Wait + }; + + DCOPServiceType_t DCOPServiceType () const; + QString path () const; + QString comment () const; + QString genericName () const; + +%If ( KDE_3_2_0 - ) + QString untranslatedGenericName () const; +%End + + QStringList keywords () const; + +%If ( KDE_3_1_0 - ) + QStringList categories () const; +%End + + QStringList serviceTypes () const; + bool hasServiceType (const QString&) const; + bool allowAsDefault () const; + bool allowMultipleFiles () const; + int initialPreference () const; + +%If ( KDE_3_2_0 - ) + int initialPreferenceForMimeType (const QString&) const; +%End + + void setInitialPreference (int); + bool noDisplay () const; + +%If ( KDE_3_1_0 - ) + QString parentApp () const; +%End + + virtual QVariant property (const QString&) const; + +%If ( KDE_3_2_0 - ) + QVariant property (const QString&, QVariant::Type) const; +%End + + virtual QStringList propertyNames () const; + bool isValid () const; + +%If ( KDE_3_2_0 - ) + QString locateLocal (); +%End + + virtual void load (QDataStream&); + virtual void save (QDataStream&); + +%If ( KDE_3_2_0 - ) + void setMenuId (const QString&); + void setTerminal (bool); + void setTerminalOptions (const QString&); +%End + + static KService::Ptr serviceByName (const QString&); + static KService::Ptr serviceByDesktopPath (const QString&); + static KService::Ptr serviceByDesktopName (const QString&); + +%If ( KDE_3_2_0 - ) + static KService::Ptr serviceByMenuId (const QString&); + static KService::Ptr serviceByStorageId (const QString&); +%End + + static KService::List allServices (); + static KService::List allInitServices (); + +%If ( KDE_3_2_0 - ) + static QString newServicePath (bool, const QString&, QString* = 0, const QStringList* = 0); + static void rebuildKSycoca (QWidget* /Transfer/); +%End + + +protected: + void init (KDesktopFile*); + QStringList& accessServiceTypes (); + +%If ( KDE_3_1_1 - ) + +private: + KService (const KService&); +%End + + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KService + + + +%MappedType KService::Ptr +//converts KService +{ +%TypeHeaderCode +#include +#include +//typedef KSharedPtr SvcPtr; +//typedef KService::Ptr SvcPtr; +%End + +%ConvertFromTypeCode + // Convert to a Python instance + + if (!sipCpp) + return NULL; + + KSharedPtr *cPtr = new KSharedPtr (*(KSharedPtr *)sipCpp); + KService *cpp = cPtr->data (); + PyObject *obj = sipConvertFromInstance (cpp, sipClass_KService, sipTransferObj); + + return obj; +%End + +%ConvertToTypeCode + // Convert a Python instance to a Ptr on the heap. + + if (sipIsErr == NULL) + return sipCanConvertToType(sipPy, sipType_KService, SIP_NO_CONVERTORS); + + int iserr = 0; + KService *cpp = (KService *)sipConvertToType(sipPy, sipType_KService, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + *sipIsErr = 1; + return 0; + } + + *sipCppPtr = new KSharedPtr (cpp); + + return 1; +%End +}; + + +%MappedType KService::List +//converts a Python list of KService +{ +%TypeHeaderCode +#include +#include +//typedef KSharedPtr Ptr; +//typedef QValueList SvcList; +//typedef KService::List SvcList; +typedef QValueList List; +%End + +%ConvertFromTypeCode + // Convert to a Python list of Ptr (KService). +#define QUOTE "" + if (!sipCpp) + return PyList_New (0); + + PyObject *plist; + + // Create the list + if ((plist = PyList_New(0)) == NULL) + return NULL; + + // Get it. + KService::List *cList = (KService::List *)sipCpp; + PyObject *inst; + KSharedPtr *svc; + + KService::List::Iterator it; + for( it = cList->begin(); it != cList->end(); ++it ) + { + svc = &(KService::Ptr)(*it); + inst = sipConvertFromType(svc, sipType_KService_Ptr, sipTransferObj); + + if ((inst == NULL) || (PyList_Append (plist, inst) < 0)) + { + Py_XDECREF (inst); + Py_DECREF (plist); + return NULL; + } + } + + return plist; +%End + +%ConvertToTypeCode + // Convert a Python list to List on the heap. + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + KService::List *cList = new KService::List; + + PyObject *elem; + KService *service; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + service = (KService *)sipForceConvertToType(elem, sipType_KService, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + *sipIsErr = 1; + delete cList; + return 0; + } + + KService::Ptr ptr(service); + + cList->append (ptr); + } + + *sipCppPtr = cList; + + return 1; +%End +}; + + diff --git a/sip/kio/kservicegroup.sip b/sip/kio/kservicegroup.sip new file mode 100644 index 0000000..a6d5128 --- /dev/null +++ b/sip/kio/kservicegroup.sip @@ -0,0 +1,287 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KServiceGroup : KSycocaEntry +{ +%TypeHeaderCode +#include +%End + + +public: +//ig typedef KSharedPtr Ptr; +//ig typedef KSharedPtr SPtr; + +%If ( KDE_3_1_2 - ) +//ig typedef QValueList List; +%End + + +public: + +%If ( KDE_3_1_0 - ) + KServiceGroup (const QString&); +%End + + KServiceGroup (const QString&, const QString&); + KServiceGroup (QDataStream&, int, bool); + bool isValid () const; + virtual QString name () const; + virtual QString relPath () const; + QString caption () const; + QString icon () const; + QString comment () const; + int childCount (); + +%If ( KDE_3_1_0 - ) + bool noDisplay () const; + +%If ( KDE_3_5_0 - ) + bool showEmptyMenu () const; + void setShowEmptyMenu (bool); + bool showInlineHeader () const; + void setShowInlineHeader (bool); + bool inlineAlias () const; + void setInlineAlias (bool); + bool allowInline () const; + void setAllowInline (bool); + int inlineValue () const; + void setInlineValue (int); +%End + + +%If ( KDE_3_2_0 - ) + QStringList suppressGenericNames () const; + void setLayoutInfo (const QStringList&); + +%If ( KDE_3_3_0 - ) + QStringList layoutInfo () const; +%End + +%End + +%End + + virtual void load (QDataStream&); + virtual void save (QDataStream&); + +%If ( KDE_3_2_0 - ) + KServiceGroup::List entries (bool, bool, bool, bool = 0); +%End + + virtual KSycocaEntry::List entries (bool, bool); + +%If ( KDE_3_1_2 - ) + virtual KServiceGroup::List entries (bool = 0); +%End + + QString baseGroupName () const; + +%If ( KDE_3_2_0 - ) + QString directoryEntryPath () const; +%End + + static KServiceGroup::Ptr baseGroup (const QString&); + static KServiceGroup::Ptr root (); + static KServiceGroup::Ptr group (const QString&); + +%If ( KDE_3_1_0 - ) + static KServiceGroup::Ptr childGroup (const QString& /Transfer/); + +%If ( KDE_3_5_0 - ) + void parseAttribute (const QString&, bool&, bool&, bool&, bool&, int&); +%End + +%End + + +protected: + void addEntry (KSycocaEntry*); + +protected: +//igx virtual void virtual_hook (int, void*); + +public: + +%If ( - KDE_3_1_2 ) +//ig typedef QValueList List; +%End + + +}; // class KServiceGroup + + +%If ( KDE_3_2_0 - ) + +class KServiceSeparator : KSycocaEntry +{ +%TypeHeaderCode +#include +%End + + +public: +//ig typedef KSharedPtr Ptr; + +public: + KServiceSeparator (); + bool isValid () const; + virtual QString name () const; + virtual void load (QDataStream&); + virtual void save (QDataStream&); + +}; // class KServiceSeparator + +%End + + + +%MappedType KServiceGroup::Ptr +//converts KServiceGroup +{ +%TypeHeaderCode +#include +#include +%End + +%ConvertFromTypeCode + // Convert to a Python instance + + if (!sipCpp) + return NULL; + + KSharedPtr *cPtr = new KSharedPtr (*(KSharedPtr *)sipCpp); + KServiceGroup *cpp = cPtr->data (); + PyObject *obj = sipConvertFromInstance (cpp, sipClass_KServiceGroup, sipTransferObj); + + return obj; +%End + +%ConvertToTypeCode + // Convert a Python instance to a Ptr on the heap. + + if (sipIsErr == NULL) + return sipCanConvertToType(sipPy, sipType_KServiceGroup, SIP_NO_CONVERTORS); + + int iserr = 0; + KServiceGroup *cpp = (KServiceGroup *)sipConvertToType(sipPy, sipType_KServiceGroup, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + *sipIsErr = 1; + return 0; + } + + *sipCppPtr = new KSharedPtr (cpp); + + return 1; +%End +}; + + +%If (KDE_3_1_2 - ) +%MappedType KServiceGroup::List +//converts a Python list of KServiceGroup +{ +%TypeHeaderCode +#include +#include +#include +#include +%End + +%ConvertFromTypeCode + // Convert to a Python list of Ptr (KService). + + if (!sipCpp) + return PyList_New (0); + + // Create the list + + PyObject *plist; + + if ((plist = PyList_New(0)) == NULL) + return NULL; + + // Get it. + + KServiceGroup::List *cList = (KServiceGroup::List *)sipCpp; + PyObject *inst; + KSharedPtr *svcGroupType; + + KServiceGroup::List::Iterator it; + for( it = cList->begin(); it != cList->end(); ++it ) + { + svcGroupType = &(KServiceGroup::SPtr)(*it); + inst = sipConvertFromType(svcGroupType, sipType_KSycocaEntry_Ptr, sipTransferObj); + + if ((inst == NULL) || (PyList_Append (plist, inst) < 0)) + { + Py_XDECREF (inst); + Py_DECREF (plist); + return NULL; + } + } + + return plist; +%End + +%ConvertToTypeCode + // Convert a Python list to List on the heap. + + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + KServiceGroup::List *cList = new KServiceGroup::List; + + PyObject *elem; + KSycocaEntry *service; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + service = (KSycocaEntry *)sipForceConvertToType(elem, sipType_KSycocaEntry, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + *sipIsErr = 1; + delete cList; + return 0; + } + + KServiceGroup::SPtr *ptr = new KServiceGroup::SPtr (service); + cList->append (*ptr); + } + + *sipCppPtr = cList; + + return 1; +%End +}; +%End + + diff --git a/sip/kio/kservicetype.sip b/sip/kio/kservicetype.sip new file mode 100644 index 0000000..3bed1dc --- /dev/null +++ b/sip/kio/kservicetype.sip @@ -0,0 +1,292 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KServiceType : KSycocaEntry +{ +%TypeHeaderCode +#include +%End + + +public: + typedef QValueList List; + +public: + KServiceType (const QString&, const QString&, const QString&, const QString&); + KServiceType (const QString&); + KServiceType (KDesktopFile*); + KServiceType (QDataStream&, int); + QString icon () const; + QString comment () const; + QString name () const; + QString desktopEntryPath () const; + bool isDerived () const; + QString parentServiceType () const; + +%If ( KDE_3_1_0 - ) + bool inherits (const QString&) const; +%End + + virtual QVariant property (const QString&) const; + virtual QStringList propertyNames () const; + bool isValid () const; + virtual QVariant::Type propertyDef (const QString&) const; + virtual QStringList propertyDefNames () const; + virtual const QMap& propertyDefs () const; + virtual void save (QDataStream&); + virtual void load (QDataStream&); + +%If ( KDE_3_2_0 - ) + KServiceType::Ptr parentType (); + void addService (KService::Ptr); + KService::List services (); +%End + + static KServiceType::Ptr serviceType (const QString&); + static KService::List offers (const QString&); + static KServiceType::List allServiceTypes (); + +protected: + void init (KDesktopFile*); + +protected: + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KServiceType + + + +%MappedType KServiceType::Ptr +//converts KServiceType +{ +%TypeHeaderCode +#include +#include +%End + +%ConvertFromTypeCode + // Convert to a Python instance + + if (!sipCpp) + return NULL; + + KServiceType::Ptr *cPtr = new KServiceType::Ptr (*(KServiceType::Ptr *)sipCpp); + KServiceType *cpp = cPtr->data (); + PyObject *obj = sipConvertFromInstance (cpp, sipClass_KServiceType, sipTransferObj); + + return obj; +%End + +%ConvertToTypeCode + // Convert a Python instance to a Ptr on the heap. + + if (sipIsErr == NULL) + return sipCanConvertToType(sipPy, sipType_KServiceType, SIP_NO_CONVERTORS); + + int iserr = 0; + KServiceType *cpp = (KServiceType *)sipConvertToType(sipPy, sipType_KServiceType, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + *sipIsErr = 1; + return 0; + } + + *sipCppPtr = new KServiceType::Ptr (cpp); + + return 1; +%End +}; + + +%MappedType QMap +//converts a Python dict of QString:QVariant +{ +%TypeHeaderCode +#include +#include +%End + +%ConvertFromTypeCode + // Convert to a Python dict + + if (!sipCpp) + return PyDict_New(); + + PyObject *dict; + + // Create the dictionary. + + if ((dict = PyDict_New()) == NULL) + return NULL; + + // Get it. + + const QMap cppmap = *sipCpp; + QMap::ConstIterator it; + + for (it = cppmap.begin (); it != cppmap.end (); ++it) + { + QString acpp = it.key (); + int bcpp = (int) it.data (); + PyObject *ainst; + PyObject *binst = PyInt_FromLong (bcpp); + if (((ainst = sipConvertFromNewType(new QString (acpp), sipType_QString, sipTransferObj)) == NULL) + || (PyDict_SetItem (dict, ainst, binst) < 0)) + { + Py_XDECREF (ainst); + Py_XDECREF (binst); + Py_DECREF (dict); + return NULL; + } + } + + return dict; +%End + + +%ConvertToTypeCode + // Convert a Python dictionary to a QMap on the heap. + + if (sipIsErr == NULL) + return PyDict_Check(sipPy); + + QMap *cppmap = new QMap; + + PyObject *aelem, *belem; + SIP_SSIZE_T pos = 0; + QString *acpp; + QVariant::Type bcpp; + + while (PyDict_Next(sipPy, &pos, &aelem, &belem)) + { + int iserr = 0, acpp_state; + + acpp = (QString *)sipForceConvertToType(aelem, sipType_QString, sipTransferObj, SIP_NOT_NONE, &acpp_state, &iserr); + + if (iserr || !PyInt_Check(belem)) + { + if (acpp_state) + sipReleaseType(acpp, sipType_QString, acpp_state); + + *sipIsErr = 1; + delete cppmap; + return 0; + } + + bcpp = (QVariant::Type) PyInt_AS_LONG(belem); + + cppmap->insert (*acpp, bcpp); + + sipReleaseType(acpp, sipType_QString, acpp_state); + } + + *sipCppPtr = cppmap; + + return 1; +%End +}; + + +%MappedType QValueList +//converts a Python list of KServiceType +{ +%TypeHeaderCode +#include +%End + +%ConvertFromTypeCode + // Convert to a Python list of Ptr (KServiceType). + + if (!sipCpp) + return PyList_New (0); + + PyObject *plist; + + // Create the list + if ((plist = PyList_New(0)) == NULL) + return NULL; + + // Get it. + QValueList *cList = (QValueList *)sipCpp; + PyObject *inst; + KSharedPtr *svc; + + QValueList::Iterator it; + for( it = cList->begin(); it != cList->end(); ++it ) + { + svc = &(KServiceType::Ptr)(*it); + inst = sipConvertFromType(svc, sipType_KServiceType_Ptr, sipTransferObj); + + if ((inst == NULL) || (PyList_Append (plist, inst) < 0)) + { + Py_XDECREF (inst); + Py_DECREF (plist); + return NULL; + } + } + + return plist; +%End + +%ConvertToTypeCode + // Convert a Python list to List on the heap. + + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QValueList *cList = new QValueList; + + PyObject *elem; + KServiceType *service; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + service = (KServiceType *)sipForceConvertToType(elem, sipType_KServiceType, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + *sipIsErr = 1; + delete cList; + return 0; + } + + KServiceType::Ptr ptr(service); + + cList->append (ptr); + } + + *sipCppPtr = cList; + + return 1; +%End +}; + + diff --git a/sip/kio/kshellcompletion.sip b/sip/kio/kshellcompletion.sip new file mode 100644 index 0000000..2ada63c --- /dev/null +++ b/sip/kio/kshellcompletion.sip @@ -0,0 +1,47 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KShellCompletion : KURLCompletion +{ +%TypeHeaderCode +#include +%End + + +public: + KShellCompletion (); + QString makeCompletion (const QString&); + +protected: + void postProcessMatch (QString*); + void postProcessMatches (QStringList*); +//ig void postProcessMatches (KCompletionMatches*) const; + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KShellCompletion + diff --git a/sip/kio/kshred.sip b/sip/kio/kshred.sip new file mode 100644 index 0000000..e5277de --- /dev/null +++ b/sip/kio/kshred.sip @@ -0,0 +1,49 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KShred : QObject +{ +%TypeHeaderCode +#include +%End + + +public: + KShred (QString); + bool fill1s (); + bool fill0s (); + bool fillbyte (uint); + bool fillrandom (); + bool fillpattern (uchar*, uint); + bool shred (); + static bool shred (QString); + +signals: + void processedSize (KIO::filesize_t); + void infoMessage (const QString&); + +}; // class KShred + diff --git a/sip/kio/ksycoca.sip b/sip/kio/ksycoca.sip new file mode 100644 index 0000000..32c960d --- /dev/null +++ b/sip/kio/ksycoca.sip @@ -0,0 +1,171 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KSycoca : QObject, DCOPObject +{ +%TypeHeaderCode +#include +%End + + +public: + +%If ( KDE_3_1_4 - ) + virtual bool process (const QCString&, const QByteArray&, QCString&, QByteArray&); + QCStringList functions (); + QCStringList interfaces (); +%End + + +protected: + KSycoca (bool); + +public: + KSycoca (); + static KSycoca* self (); + +%If ( KDE_3_2_0 - ) + static int version (); +%End + + QDataStream* findEntry (int, KSycocaType& /Out/); + QDataStream* findFactory (KSycocaFactoryId); + QString kfsstnd_prefixes (); + QString language (); + ulong timeStamp (); + +%If ( KDE_3_1_0 - ) + ulong updateSignature (); + +%If ( KDE_3_2_0 - ) + QStringList allResourceDirs (); +%End + +%End + + void addFactory (KSycocaFactory*); + virtual bool isBuilding (); + +%If ( KDE_3_1_2 - ) + void disableAutoRebuild (); +%End + + static QString determineRelativePath (const QString&, const char*); + static bool isChanged (const char*); + +%If ( KDE_3_1_0 - ) + static void flagError (); + static bool readError (); +%End + + +public: + void notifyDatabaseChanged (const QStringList&); + +signals: + void databaseChanged (); + +protected: + bool checkVersion (bool = 1); + bool openDatabase (bool = 1); + void closeDatabase (); + +public: + +%If ( KDE_3_1_0 - ) +//ig KSycoca* _self; +%End + + +protected: +//igx virtual void virtual_hook (int, void*); + +//force +%ConvertToSubClassCode + // The table of Python class objects indexed by their names. The table + // must be sorted by name. + + static sipStringTypeClassMap map[] = { + {sipName_ChmodJob, &sipClass_KIO_ChmodJob}, + {sipName_Connection, &sipClass_KIO_Connection}, + {sipName_CopyJob, &sipClass_KIO_CopyJob}, +#if KDE_VERSION >= 0x030100 + {sipName_DavJob, &sipClass_KIO_DavJob}, +#endif + {sipName_DefaultProgress, &sipClass_KIO_DefaultProgress}, + {sipName_DeleteJob, &sipClass_KIO_DeleteJob}, + {sipName_FileCopyJob, &sipClass_KIO_FileCopyJob}, + {sipName_Job, &sipClass_KIO_Job}, + {sipName_KAutoMount, &sipClass_KAutoMount}, + {sipName_KAutoUnmount, &sipClass_KAutoUnmount}, + {sipName_KDataTool, &sipClass_KDataTool}, + {sipName_KDataToolAction, &sipClass_KDataToolAction}, + {sipName_KDirLister, &sipClass_KDirLister}, + {sipName_KDirWatch, &sipClass_KDirWatch}, + {sipName_KFileMetaInfoProvider, &sipClass_KFileMetaInfoProvider}, + {sipName_KFilePlugin, &sipClass_KFilePlugin}, + {sipName_KFilterBase, &sipClass_KFilterBase}, + {sipName_KOCRDialog, &sipClass_KOCRDialog}, + {sipName_KOCRDialogFactory, &sipClass_KOCRDialogFactory}, + {sipName_KProcessRunner, &sipClass_KProcessRunner}, + {sipName_KRun, &sipClass_KRun}, + {sipName_KScanDialog, &sipClass_KScanDialog}, + {sipName_KScanDialogFactory, &sipClass_KScanDialogFactory}, + {sipName_KShellCompletion, &sipClass_KShellCompletion}, + {sipName_KShred, &sipClass_KShred}, + {sipName_KSycoca, &sipClass_KSycoca}, + {sipName_KTrader, &sipClass_KTrader}, + {sipName_KURIFilterPlugin, &sipClass_KURIFilterPlugin}, + {sipName_KURLCompletion, &sipClass_KURLCompletion}, + {sipName_ListJob, &sipClass_KIO_ListJob}, +#if KDE_VERSION >= 0x030100 + {sipName_MetaInfoJob, &sipClass_KIO_MetaInfoJob}, +#endif + {sipName_MimetypeJob, &sipClass_KIO_MimetypeJob}, + {sipName_MultiGetJob, &sipClass_KIO_MultiGetJob}, + {sipName_NetAccess, &sipClass_KIO_NetAccess}, + {sipName_Observer, &sipClass_Observer}, + {sipName_PasswordDialog, &sipClass_KIO_PasswordDialog}, + {sipName_PreviewJob, &sipClass_KIO_PreviewJob}, + {sipName_ProgressBase, &sipClass_KIO_ProgressBase}, + {sipName_RenameDlgPlugin, &sipClass_RenameDlgPlugin}, + {sipName_Scheduler, &sipClass_KIO_Scheduler}, + {sipName_SessionData, &sipClass_KIO_SessionData}, + {sipName_SimpleJob, &sipClass_KIO_SimpleJob}, + {sipName_Slave, &sipClass_KIO_Slave}, + {sipName_SlaveConfig, &sipClass_KIO_SlaveConfig}, + {sipName_SlaveInterface, &sipClass_KIO_SlaveInterface}, + {sipName_StatJob, &sipClass_KIO_StatJob}, + {sipName_StatusbarProgress, &sipClass_KIO_StatusbarProgress}, + {sipName_TransferJob, &sipClass_KIO_TransferJob}, + }; + + sipClass = sipMapStringToClass(sipCpp -> className(),map,sizeof (map)/sizeof (map[0])); +%End +//end + +}; // class KSycoca + diff --git a/sip/kio/ksycocadict.sip b/sip/kio/ksycocadict.sip new file mode 100644 index 0000000..83497d2 --- /dev/null +++ b/sip/kio/ksycocadict.sip @@ -0,0 +1,51 @@ +// +// Copyright 2004 Jim Bublitz +// Earlier copyrights 1998 - 2003 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE_3_3_0 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_3_0 - ) + +class KSycocaDict +{ +%TypeHeaderCode +#include +%End + +public: + KSycocaDict (); + KSycocaDict (QDataStream*, int); + void add (const QString&, KSycocaEntry*); + void remove (const QString&); + int find_string (const QString&); + uint count (); + void clear (); + void save (QDataStream&); + +protected: + Q_UINT32 hashKey (const QString&); + +}; // class KSycocaDict + +%End + diff --git a/sip/kio/ksycocaentry.sip b/sip/kio/ksycocaentry.sip new file mode 100644 index 0000000..dc60fdb --- /dev/null +++ b/sip/kio/ksycocaentry.sip @@ -0,0 +1,207 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KSycocaEntry : KShared +{ +%TypeHeaderCode +#include +%End + + +public: + virtual bool isType (KSycocaType) const; + virtual KSycocaType sycocaType () const; + +public: +//ig typedef KSharedPtr Ptr; +//ig typedef QValueList List; + +public: + KSycocaEntry (const QString&); + +%If ( KDE_3_1_0 - ) + static void read (QDataStream&, QString&); + static void read (QDataStream&, QStringList&); +%End + + KSycocaEntry (QDataStream&, int); + virtual QString name () const = 0; + QString entryPath () const; + virtual bool isValid () const = 0; + virtual bool isDeleted () const; + int offset (); + virtual void save (QDataStream&); + virtual void load (QDataStream&) = 0; + +protected: + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KSycocaEntry + + + +%MappedType KSycocaEntry::Ptr +//converts KSycocaEntry +{ +%TypeHeaderCode +#include +#include +%End + +%ConvertFromTypeCode + // Convert to a Python instance + + if (!sipCpp) + return NULL; + + KSharedPtr *cPtr = new KSharedPtr (*(KSharedPtr *)sipCpp); + KSycocaEntry *cpp = cPtr->data (); + PyObject *obj = sipConvertFromInstance (cpp, sipClass_KSycocaEntry, sipTransferObj); + + return obj; +%End + +%ConvertToTypeCode + // Convert a Python instance to a Ptr on the heap. + + if (sipIsErr == NULL) + return sipCanConvertToType(sipPy, sipType_KSycocaEntry, SIP_NO_CONVERTORS); + + int iserr = 0; + KSycocaEntry *cpp = (KSycocaEntry *)sipConvertToType(sipPy, sipType_KSycocaEntry, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + *sipIsErr = 1; + return 0; + } + + *sipCppPtr = new KSharedPtr (cpp); + + return 1; +%End +}; + + +%MappedType KSycocaEntry::List +//converts a Python list of KSycocaEntry +{ +%TypeHeaderCode +#include +#include +#include +#include +#include +#include +%End + +%ConvertFromTypeCode + // Convert to a Python list of Ptr (KService). + + if (!sipCpp) + return PyList_New (0); + + PyObject *plist; + + // Create the list + + if ((plist = PyList_New(0)) == NULL) + return NULL; + + // Get it. + + KSycocaEntry::List *cList = (KSycocaEntry::List *)sipCpp; + PyObject *inst; + KSharedPtr *svc; + KSharedPtr *svcType; + KSharedPtr *svcGroupType; + + KSycocaEntry::List::Iterator it; + for( it = cList->begin(); it != cList->end(); ++it ) + { + svc = &(KSycocaEntry::Ptr)(*it); + if (svc->data ()->sycocaType () == KST_KService) + { + svcType = (KSharedPtr *)svc; + inst = sipConvertFromType(svcType, sipType_KService_Ptr, sipTransferObj); + } + else if (svc->data ()->sycocaType () == KST_KServiceGroup) + { + svcGroupType = (KSharedPtr *) svc; + inst = sipConvertFromType(svcGroupType, sipType_KServiceGroup_Ptr, sipTransferObj); + } + else + inst = NULL; + + if ((inst == NULL) || (PyList_Append (plist, inst) < 0)) + { + Py_XDECREF (inst); + Py_DECREF (plist); + return NULL; + } + } + + return plist; +%End + +%ConvertToTypeCode + // Convert a Python list to List on the heap. + + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + KSycocaEntry::List *cList = new KSycocaEntry::List; + + PyObject *elem; + KSycocaEntry *service; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + service = (KSycocaEntry *)sipForceConvertToType(elem, sipType_KSycocaEntry, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + *sipIsErr = 1; + delete cList; + return 0; + } + + KSycocaEntry::Ptr ptr(service); + + cList->append (ptr); + } + + *sipCppPtr = cList; + + return 1; +%End +}; + + diff --git a/sip/kio/ksycocafactory.sip b/sip/kio/ksycocafactory.sip new file mode 100644 index 0000000..1e8d162 --- /dev/null +++ b/sip/kio/ksycocafactory.sip @@ -0,0 +1,63 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KSycocaFactory +{ +%TypeHeaderCode +#include +%End + + +public: + virtual KSycocaFactoryId factoryId () const = 0; + +protected: + KSycocaFactory (KSycocaFactoryId); + +public: + int offset (); +//ig KSycocaEntryDict* entryDict (); + virtual KSycocaEntry* createEntry (const QString&, const char*) = 0; + virtual void addEntry (KSycocaEntry*, const char*); + +%If ( KDE_3_2_0 - ) + void removeEntry (KSycocaEntry*); +%End + + virtual KSycocaEntry* createEntry (int) = 0; + KSycocaEntry::List allEntries (); + virtual void save (QDataStream&); + virtual void saveHeader (QDataStream&); +//ig virtual const KSycocaResourceList* resourceList () const; + +protected: + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KSycocaFactory + +//ig typedef QDict KSycocaEntryDict; diff --git a/sip/kio/ksycocatype.sip b/sip/kio/ksycocatype.sip new file mode 100644 index 0000000..4babc21 --- /dev/null +++ b/sip/kio/ksycocatype.sip @@ -0,0 +1,76 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_2_1 - ) + +enum KSycocaType +{ + KST_KSycocaEntry, + KST_KService, + KST_KServiceType, + KST_KMimeType, + KST_KFolderType, + KST_KDEDesktopMimeType, + KST_KExecMimeType, + KST_KServiceGroup, + KST_KImageIOFormat, + KST_KProtocolInfo, + KST_KServiceSeparator, + KST_KCustom +}; + +%End + + +enum KSycocaFactoryId +{ + KST_KServiceFactory, + KST_KServiceTypeFactory, + KST_KServiceGroupFactory, + KST_KImageIO, + KST_KProtocolInfoFactory, + KST_CTimeInfo +}; + + +%If ( - KDE_3_2_1 ) + +enum KSycocaType +{ + KST_KSycocaEntry, + KST_KService, + KST_KServiceType, + KST_KMimeType, + KST_KFolderType, + KST_KDEDesktopMimeType, + KST_KExecMimeType, + KST_KServiceGroup, + KST_KImageIOFormat, + KST_KProtocolInfo, + KST_KCustom +}; + +%End diff --git a/sip/kio/ktar.sip b/sip/kio/ktar.sip new file mode 100644 index 0000000..f67b4d1 --- /dev/null +++ b/sip/kio/ktar.sip @@ -0,0 +1,73 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KTar : KArchive +{ +%TypeHeaderCode +#include +%End + + +public: + KTar (const QString&, const QString& = QString ::null ); + KTar (QIODevice*); + QString fileName (); + void setOrigFileName (const QCString&); + +%If ( KDE_3_2_0 - ) + bool writeSymLink (const QString&, const QString&, const QString&, const QString&, mode_t, time_t, time_t, time_t); +%End + + virtual bool writeDir (const QString&, const QString&, const QString&); + +%If ( KDE_3_2_0 - ) + bool writeDir (const QString&, const QString&, const QString&, mode_t, time_t, time_t, time_t); +%End + + virtual bool prepareWriting (const QString&, const QString&, const QString&, uint); + +%If ( KDE_3_2_0 - ) + bool prepareWriting (const QString&, const QString&, const QString&, uint, mode_t, time_t, time_t, time_t); +%End + + virtual bool doneWriting (uint); + +protected: + virtual bool openArchive (int); + virtual bool closeArchive (); + +protected: +//igx virtual void virtual_hook (int, void*); + +%If ( KDE_3_2_0 - ) + bool prepareWriting_impl (const QString&, const QString&, const QString&, uint, mode_t, time_t, time_t, time_t); + bool writeDir_impl (const QString&, const QString&, const QString&, mode_t, time_t, time_t, time_t); + bool writeSymLink_impl (const QString&, const QString&, const QString&, const QString&, mode_t, time_t, time_t, time_t); +%End + + +}; // class KTar + diff --git a/sip/kio/ktrader.sip b/sip/kio/ktrader.sip new file mode 100644 index 0000000..1a2e358 --- /dev/null +++ b/sip/kio/ktrader.sip @@ -0,0 +1,124 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KTrader : QObject +{ +%TypeHeaderCode +#include +%End + + +public: +//ig typedef QValueList OfferList; + +%If ( KDE_3_1_0 - ) +//ig typedef QValueListIterator OfferListIterator; +%End + + virtual KTrader::OfferList query (const QString&, const QString& = QString ::null , const QString& = QString ::null ) const; + KTrader::OfferList query (const QString&, const QString&, const QString&, const QString&) const; + static KTrader* self (); + +protected: + KTrader (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KTrader + + + +%MappedType KTrader::OfferList +//converts a Python list of KService +{ +%TypeHeaderCode +#include +#include +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New(0); + + // Create the list + PyObject *pylist; + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + QValueList *cpplist = (QValueList *)sipCpp; + PyObject *inst; + + // Get it. + QValueList::Iterator it; + for( it = cpplist->begin(); it != cpplist->end(); ++it ) + { + KService::Ptr cpp = *it; + inst = sipConvertFromType(&cpp, sipType_KService_Ptr, sipTransferObj); + + if (PyList_Append (pylist, inst) < 0) + { + Py_DECREF (pylist); + return NULL; + } + } + + return pylist; +%End + + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QValueList *cpplist = new QValueList; + + PyObject *elem; + KService::Ptr *cpp; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + cpp = (KService::Ptr *)sipForceConvertToType(elem, sipType_KService_Ptr, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + *sipIsErr = 1; + delete cpplist; + return 0; + } + + cpplist->append (*cpp); + } + + *sipCppPtr = cpplist; + + return 1; +%End +}; + + diff --git a/sip/kio/kurifilter.sip b/sip/kio/kurifilter.sip new file mode 100644 index 0000000..e9f8f21 --- /dev/null +++ b/sip/kio/kurifilter.sip @@ -0,0 +1,147 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KURIFilterData +{ +%TypeHeaderCode +#include +#include +%End + + +public: + + enum URITypes + { + NET_PROTOCOL, + LOCAL_FILE, + LOCAL_DIR, + EXECUTABLE, + HELP, + SHELL, + BLOCKED, + ERROR, + UNKNOWN + }; + + KURIFilterData (); + KURIFilterData (const KURL&); + KURIFilterData (const QString&); + KURIFilterData (const KURIFilterData&); + bool hasBeenFiltered () const; + KURL uri () const; + QString errorMsg () const; + URITypes uriType () const; + void setData (const QString&); + void setData (const KURL&); + bool setAbsolutePath (const QString&); + QString absolutePath () const; + bool hasAbsolutePath () const; + QString argsAndOptions () const; + bool hasArgsAndOptions () const; + QString iconName (); + +%If ( KDE_3_2_0 - ) + void setCheckForExecutables (bool); + bool checkForExecutables () const; + QString typedString () const; +%End + + +protected: + void init (const KURL&); + void init (const KURL& = KURL (QString ::null )) [void (QString&)]; +%MethodCode +//takes url | (KURL = KURL(QString.null)) + + Py_BEGIN_ALLOW_THREADS + if (a0 == 0) + sipCpp -> sipProtect_init(QString::null); + else + sipCpp -> sipProtect_init(*a0); + Py_END_ALLOW_THREADS +%End + + +}; // class KURIFilterData + + +class KURIFilterPlugin : QObject +{ +%TypeHeaderCode +#include +#include +%End + + +public: + KURIFilterPlugin (QObject* = 0, const char* = 0, double = 1.0); + virtual QString name () const; + virtual double priority () const; + virtual bool filterURI (KURIFilterData&) const = 0; + virtual KCModule* configModule (QWidget*, const char*) const; + virtual QString configName () const; + +protected: + void setFilteredURI (KURIFilterData&, const KURL&) const; + void setErrorMsg (KURIFilterData&, const QString&) const; + void setURIType (KURIFilterData&, KURIFilterData::URITypes) const; + void setArguments (KURIFilterData&, const QString&) const; + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KURIFilterPlugin + + +class KURIFilter +{ +%TypeHeaderCode +#include +#include +%End + + +public: + static KURIFilter* self (); + bool filterURI (KURIFilterData&, const QStringList& = QStringList ()); + bool filterURI (KURL&, const QStringList& = QStringList ()); + bool filterURI (QString&, const QStringList& = QStringList ()); + KURL filteredURI (const KURL&, const QStringList& = QStringList ()); + QString filteredURI (const QString&, const QStringList& = QStringList ()); +//ig QPtrListIterator pluginsIterator () const; + +%If ( KDE_3_1_0 - ) + QStringList pluginNames () const; +%End + + +protected: + KURIFilter (); + void loadPlugins (); + +}; // class KURIFilter + diff --git a/sip/kio/kurlcompletion.sip b/sip/kio/kurlcompletion.sip new file mode 100644 index 0000000..dc927df --- /dev/null +++ b/sip/kio/kurlcompletion.sip @@ -0,0 +1,81 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KURLCompletion : KCompletion +{ +%TypeHeaderCode +#include +%End + + +public: + + enum Mode + { + ExeCompletion, + FileCompletion, + DirCompletion + }; + + KURLCompletion (); + KURLCompletion (KURLCompletion::Mode); + virtual QString makeCompletion (const QString&); + virtual void setDir (const QString&); + virtual QString dir (); + virtual bool isRunning (); + virtual void stop (); + virtual Mode mode (); + virtual void setMode (KURLCompletion::Mode); + virtual bool replaceEnv (); + virtual void setReplaceEnv (bool); + virtual bool replaceHome (); + virtual void setReplaceHome (bool); + QString replacedPath (const QString&); + +%If ( KDE_3_2_0 - ) + static QString replacedPath (const QString&, bool, bool = 1); +%End + + +protected: + void postProcessMatch (QString*); + void postProcessMatches (QStringList*); +//ig void postProcessMatches (KCompletionMatches*) const; + +%If ( KDE_3_3_0 - ) + virtual void customEvent (QCustomEvent*); +%End + + +protected slots: + void slotEntries (KIO::Job*, const KIO::UDSEntryList&); + void slotIOFinished (KIO::Job*); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KURLCompletion + diff --git a/sip/kio/kurlpixmapprovider.sip b/sip/kio/kurlpixmapprovider.sip new file mode 100644 index 0000000..3f2f336 --- /dev/null +++ b/sip/kio/kurlpixmapprovider.sip @@ -0,0 +1,41 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KURLPixmapProvider : KPixmapProvider +{ +%TypeHeaderCode +#include +%End + + +public: + virtual QPixmap pixmapFor (const QString&, int = 0); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KURLPixmapProvider + diff --git a/sip/kio/kuserprofile.sip b/sip/kio/kuserprofile.sip new file mode 100644 index 0000000..77cec50 --- /dev/null +++ b/sip/kio/kuserprofile.sip @@ -0,0 +1,222 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KServiceOffer +{ +%TypeHeaderCode +#include +%End + + +public: + KServiceOffer (); + KServiceOffer (const KServiceOffer&); + KServiceOffer (KService::Ptr, int, bool); + +%If ( KDE_3_1_4 - ) + bool operator < (const KServiceOffer&) const; +%End + + bool allowAsDefault () const; + int preference () const; + KService::Ptr service () const; + bool isValid () const; + +}; // class KServiceOffer + + +class KServiceTypeProfile +{ +%TypeHeaderCode +#include +%End + + +public: + typedef QValueList OfferList; + int preference (const QString&) const; + bool allowAsDefault (const QString&) const; + KServiceTypeProfile::OfferList offers () const; + static KService::Ptr preferredService (const QString&, const QString&); + static KServiceTypeProfile* serviceTypeProfile (const QString&, const QString&); + static KServiceTypeProfile::OfferList offers (const QString&, const QString&); + static const QPtrList& serviceTypeProfiles (); + static void clear (); + static void setConfigurationMode (); + static bool configurationMode (); + +protected: + KServiceTypeProfile (const QString&, const QString& = QString ::null ); + void addService (const QString&, int = 1, bool = 1); + +}; // class KServiceTypeProfile + + + +%MappedType KServiceTypeProfile::OfferList +//converts a Python list of KServiceOffer +{ +%TypeHeaderCode +#include +#include +#include +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New(0); + + // Create the list + PyObject *pylist; + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + QValueList *cpplist = (QValueList *)sipCpp; + PyObject *inst; + + // Get it. + QValueList::Iterator it; + for( it = cpplist->begin(); it != cpplist->end(); ++it ) + { + if (((inst = sipConvertFromNewType(new KServiceOffer(*it), sipType_KServiceOffer, NULL)) == NULL) + || PyList_Append (pylist, inst) < 0) + { + Py_DECREF (pylist); + return NULL; + } + } + + return pylist; +%End + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QValueList *cpplist = new QValueList; + + PyObject *elem; + KServiceOffer *cpp; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + cpp = (KServiceOffer *)sipForceConvertToType(elem, sipType_KServiceOffer, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + *sipIsErr = 1; + delete cpplist; + return 0; + } + + cpplist->append (*cpp); + } + + *sipCppPtr = cpplist; + + return 1; +%End +}; + + +%MappedType QPtrList +//converts a Python list of KServiceTypeProfile +{ +%TypeHeaderCode +#include +#include +//typedef QPtrList SvcTypeProfileList; +%End + +%ConvertFromTypeCode + // Convert to a Python list of KServiceTypeProfile + + if (!sipCpp) + return PyList_New (0); + + PyObject *plist; + + // Create the list + + if ((plist = PyList_New(0)) == NULL) + return NULL; + + // Get it. + + QPtrList *cList = (QPtrList *)sipCpp; + PyObject *inst; + KServiceTypeProfile *svc; + + for( svc = cList->first (); svc; svc = cList->next ()) + { + inst = sipConvertFromInstance (svc, sipClass_KServiceTypeProfile, sipTransferObj); + if ((inst == NULL) || (PyList_Append (plist, inst) < 0)) + { + Py_XDECREF (inst); + Py_DECREF (plist); + return NULL; + } + } + + return plist; +%End + +%ConvertToTypeCode + // Convert a Python list to SvcTypeProfileList on the heap. + + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QPtrList *cList = new QPtrList; + + PyObject *elem; + KServiceTypeProfile *service; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + service = (KServiceTypeProfile *)sipForceConvertToType(elem, sipType_KServiceTypeProfile, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + *sipIsErr = 1; + delete cList; + return 0; + } + + cList->append (service); + } + + *sipCppPtr = cList; + + return 1; +%End +}; + + diff --git a/sip/kio/kzip.sip b/sip/kio/kzip.sip new file mode 100644 index 0000000..184e64c --- /dev/null +++ b/sip/kio/kzip.sip @@ -0,0 +1,120 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_1_0 - ) + +class KZip : KArchive +{ +%TypeHeaderCode +#include +%End + + +public: + KZip (const QString&); + KZip (QIODevice*); + QString fileName (); + +%If ( KDE_3_2_0 - ) + + enum ExtraField + { + NoExtraField, + ModificationTime, + DefaultExtraField + }; + + void setExtraField (KZip::ExtraField); + KZip::ExtraField extraField () const; +%End + + + enum Compression + { + NoCompression, + DeflateCompression + }; + + void setCompression (KZip::Compression); + KZip::Compression compression () const; + virtual bool writeFile (const QString&, const QString&, const QString&, uint, const char*); + virtual bool prepareWriting (const QString&, const QString&, const QString&, uint); + +%If ( KDE_3_2_0 - ) + bool writeSymLink (const QString&, const QString&, const QString&, const QString&, mode_t, time_t, time_t, time_t); + bool prepareWriting (const QString&, const QString&, const QString&, uint, mode_t, time_t, time_t, time_t); + bool writeFile (const QString&, const QString&, const QString&, uint, mode_t, time_t, time_t, time_t, const char*); +%End + + bool writeData (const char*, uint); + virtual bool doneWriting (uint); + +protected: + virtual bool openArchive (int); + virtual bool closeArchive (); + virtual bool writeDir (const QString&, const QString&, const QString&); + +protected: + virtual void virtual_hook (int, void*); + +%If ( KDE_3_2_0 - ) + bool writeData_impl (const char*, uint); + bool prepareWriting_impl (const QString&, const QString&, const QString&, uint, mode_t, time_t, time_t, time_t); + bool writeSymLink_impl (const QString&, const QString&, const QString&, const QString&, mode_t, time_t, time_t, time_t); +%End + + +}; // class KZip + +%End + + +%If ( KDE_3_1_0 - ) + +class KZipFileEntry : KArchiveFile +{ +%TypeHeaderCode +#include +%End + + +public: + KZipFileEntry (KZip*, const QString&, int, int, const QString&, const QString&, const QString&, const QString&, Q_LONG, Q_LONG, int, Q_LONG); + int encoding () const; + Q_LONG compressedSize () const; + void setCompressedSize (Q_LONG); + void setHeaderStart (Q_LONG); + Q_LONG headerStart () const; + ulong crc32 () const; + void setCRC32 (ulong); + QString path () const; + virtual QByteArray data () const; + QIODevice* device () const; + +}; // class KZipFileEntry + +%End + diff --git a/sip/kio/metainfojob.sip b/sip/kio/metainfojob.sip new file mode 100644 index 0000000..691cb18 --- /dev/null +++ b/sip/kio/metainfojob.sip @@ -0,0 +1,63 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_1_0 - ) +namespace KIO +{ + +class MetaInfoJob : KIO::Job +{ +%TypeHeaderCode +#include +#include +#include +%End + + +public: + MetaInfoJob (const KFileItemList&, bool = 0); + void removeItem (const KFileItem*); + static QStringList availablePlugins (); + static QStringList supportedMimeTypes (); + +signals: + void gotMetaInfo (const KFileItem*); + void failed (const KFileItem*); + +protected: + void getMetaInfo (); + +protected slots: + virtual void slotResult (KIO::Job*); + +}; // class MetaInfoJob + +KIO::MetaInfoJob* fileMetaInfo (const KFileItemList&); +KIO::MetaInfoJob* fileMetaInfo (const KURL::List&); +}; // namespace KIO + +%End + diff --git a/sip/kio/netaccess.sip b/sip/kio/netaccess.sip new file mode 100644 index 0000000..c4acb6e --- /dev/null +++ b/sip/kio/netaccess.sip @@ -0,0 +1,128 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +namespace KIO +{ + +class NetAccess : QObject +{ +%TypeHeaderCode +#include +%End + + +public: + +%If ( KDE_3_2_0 - ) + static bool download (const KURL&, QString&, QWidget*); +%End + + static bool download (const KURL&, QString&); + static void removeTempFile (const QString&); + +%If ( KDE_3_2_0 - ) + static bool upload (const QString&, const KURL&, QWidget*); +%End + + static bool upload (const QString&, const KURL&); + +%If ( KDE_3_2_0 - ) + static bool copy (const KURL&, const KURL&, QWidget*); +%End + + static bool copy (const KURL&, const KURL&); + +%If ( KDE_3_2_0 - ) + static bool file_copy (const KURL&, const KURL&, int = -1, bool = 0, bool = 0, QWidget* = 0); + static bool file_move (const KURL&, const KURL&, int = -1, bool = 0, bool = 0, QWidget* = 0); + static bool dircopy (const KURL&, const KURL&, QWidget*); +%End + + static bool dircopy (const KURL&, const KURL&); + +%If ( KDE_3_2_0 - ) + static bool dircopy (const KURL::List&, const KURL&, QWidget* = 0); + static bool move (const KURL&, const KURL&, QWidget* = 0); + static bool move (const KURL::List&, const KURL&, QWidget* = 0); + static bool exists (const KURL&, bool, QWidget*); + static bool exists (const KURL&, QWidget*); +%End + + static bool exists (const KURL&); + +%If ( KDE_3_1_0 - ) + static bool exists (const KURL&, bool); + +%If ( KDE_3_2_0 - ) + static bool stat (const KURL&, KIO::UDSEntry&, QWidget*); +%End + +%End + + static bool stat (const KURL&, KIO::UDSEntry&); + +%If ( KDE_3_5_0 - ) + static KURL mostLocalURL (const KURL&, QWidget*); +%End + + +%If ( KDE_3_2_0 - ) + static bool del (const KURL&, QWidget*); +%End + + static bool del (const KURL&) /PyName=del_/; + +%If ( KDE_3_2_0 - ) + static bool mkdir (const KURL&, QWidget*, int = -1); +%End + + static bool mkdir (const KURL&, int = -1); + +%If ( KDE_3_2_0 - ) + static QString fish_execute (const KURL&, const QString, QWidget*); + +%If ( KDE_3_3_1 - ) + static bool synchronousRun (KIO::Job*, QWidget*, QByteArray* = 0, KURL* = 0, QMap* = 0); +%End + + static QString mimetype (const KURL&, QWidget*); +%End + +//ig static QString mimetype (const KURL&); + static QString lastErrorString (); + +%If ( KDE_3_3_0 - ) + static int lastError (); +%End + + +private: + NetAccess (); + ~NetAccess (); + +}; // class NetAccess + +}; // namespace KIO + diff --git a/sip/kio/observer.sip b/sip/kio/observer.sip new file mode 100644 index 0000000..0b6fb60 --- /dev/null +++ b/sip/kio/observer.sip @@ -0,0 +1,96 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class Observer : QObject, DCOPObject +{ +%TypeHeaderCode +#include +%End + + +public: + +%If ( KDE_3_1_4 - ) + virtual bool process (const QCString&, const QByteArray&, QCString&, QByteArray&); + QCStringList functions (); + QCStringList interfaces (); +%End + + +public: + static Observer* self (); + int newJob (KIO::Job*, bool); + void jobFinished (int); + bool openPassDlg (const QString&, QString&, QString&, bool); + bool openPassDlg (KIO::AuthInfo&); + int messageBox (int, int, const QString&, const QString&, const QString&, const QString&); + +%If ( KDE_3_3_0 - ) + static int messageBox (int, int, const QString&, const QString&, const QString&, const QString&, const QString&); +%End + + KIO::RenameDlg_Result open_RenameDlg (KIO::Job*, const QString&, const QString&, const QString&, KIO::RenameDlg_Mode, QString&, KIO::filesize_t = -1, KIO::filesize_t = -1, time_t = -1, time_t = -1, time_t = -1, time_t = -1); + KIO::SkipDlg_Result open_SkipDlg (KIO::Job*, bool, const QString&); + +public: + void killJob (int); + KIO::MetaData metadata (int); + +protected: + Observer (); + ~Observer (); + +public slots: + void slotTotalSize (KIO::Job*, KIO::filesize_t); + void slotTotalFiles (KIO::Job*, ulong); + void slotTotalDirs (KIO::Job*, ulong); + void slotProcessedSize (KIO::Job*, KIO::filesize_t); + void slotProcessedFiles (KIO::Job*, ulong); + void slotProcessedDirs (KIO::Job*, ulong); + void slotSpeed (KIO::Job*, ulong); + void slotPercent (KIO::Job*, ulong); + void slotInfoMessage (KIO::Job*, const QString&); + void slotCopying (KIO::Job*, const KURL&, const KURL&); + void slotMoving (KIO::Job*, const KURL&, const KURL&); + void slotDeleting (KIO::Job*, const KURL&); + +%If ( KDE_3_1_0 - ) + void slotTransferring (KIO::Job*, const KURL&); +%End + + void slotCreatingDir (KIO::Job*, const KURL&); + void slotCanResume (KIO::Job*, KIO::filesize_t); + +public: + void stating (KIO::Job*, const KURL&); + void mounting (KIO::Job*, const QString&, const QString&); + void unmounting (KIO::Job*, const QString&); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class Observer + diff --git a/sip/kio/passdlg.sip b/sip/kio/passdlg.sip new file mode 100644 index 0000000..434f40b --- /dev/null +++ b/sip/kio/passdlg.sip @@ -0,0 +1,68 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +namespace KIO +{ + +class PasswordDialog : KDialogBase +{ +%TypeHeaderCode +#include +%End + + +public: + PasswordDialog (const QString&, const QString&, bool = 0, bool = 1, QWidget* /TransferThis/ = 0, const char* = 0); + void setPrompt (const QString&); + void addCommentLine (const QString&, const QString); + QString password () const; + QString username () const; + bool keepPassword () const; + +%If ( KDE_3_2_0 - ) + void setKeepPassword (bool); +%End + + void setUserReadOnly (bool); + void setEnableUserField (bool, bool = 0); + +%If ( KDE_3_1_0 - ) + void setPassword (const QString&); + +%If ( KDE_3_4_0 - ) + void setKnownLogins (const QMap&); +%End + +%End + + static int getNameAndPassword (QString& /Out/, QString& /Out/, bool* /In, Out/, const QString& = QString ::null , bool = 0, const QString& = QString ::null , const QString& = QString ::null , const QString& = QString ::null ); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class PasswordDialog + +}; // namespace KIO + diff --git a/sip/kio/paste.sip b/sip/kio/paste.sip new file mode 100644 index 0000000..2757894 --- /dev/null +++ b/sip/kio/paste.sip @@ -0,0 +1,56 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +%ModuleHeaderCode +#include +%End + +namespace KIO +{ +KIO::Job* pasteClipboard (const KURL&, bool = 0); +void pasteData (const KURL&, const QByteArray&); + +%If ( KDE_3_2_0 - ) +KIO::CopyJob* pasteDataAsync (const KURL&, const QByteArray&); + +%If ( KDE_3_3_0 - ) +KIO::CopyJob* pasteDataAsync (const KURL&, const QByteArray&, const QString&); + +%If ( KDE_3_5_0 - ) +KIO::CopyJob* pasteMimeSource (QMimeSource*, const KURL&, const QString&, QWidget*, bool = 0); +%End + +%End + +%End + +bool isClipboardEmpty (); + +%If ( KDE_3_5_0 - ) +QString pasteActionText (); +%End + +}; // namespace KIO + diff --git a/sip/kio/previewjob.sip b/sip/kio/previewjob.sip new file mode 100644 index 0000000..8096b6f --- /dev/null +++ b/sip/kio/previewjob.sip @@ -0,0 +1,72 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +namespace KIO +{ + +class PreviewJob : KIO::Job +{ +%TypeHeaderCode +#include +%End + + +public: + PreviewJob (const KFileItemList&, int, int, int, int, bool, bool, const QStringList*, bool = 0); + void removeItem (const KFileItem*); + +%If ( KDE_3_4_0 - ) + void setIgnoreMaximumSize (bool = 1); +%End + + static QStringList availablePlugins (); + static QStringList supportedMimeTypes (); + +%If ( KDE_3_5_1 - ) + virtual void kill (bool = 1); +%End + + +signals: + void gotPreview (const KFileItem*, const QPixmap&); + void failed (const KFileItem*); + +protected: + void getOrCreateThumbnail (); + bool statResultThumbnail (); + void createThumbnail (QString); + +protected slots: + virtual void slotResult (KIO::Job*); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class PreviewJob + +KIO::PreviewJob* filePreview (const KFileItemList&, int, int = 0, int = 0, int = 70, bool = 1, bool = 1, const QStringList* = 0); +KIO::PreviewJob* filePreview (const KURL::List&, int, int = 0, int = 0, int = 70, bool = 1, bool = 1, const QStringList* = 0); +}; // namespace KIO + diff --git a/sip/kio/progressbase.sip b/sip/kio/progressbase.sip new file mode 100644 index 0000000..0c6330e --- /dev/null +++ b/sip/kio/progressbase.sip @@ -0,0 +1,95 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +%ModuleHeaderCode +#include +%End + +namespace KIO +{ + +enum Progress +{ + DEFAULT, + STATUSBAR, + LIST +}; + + +class ProgressBase : QWidget +{ +%TypeHeaderCode +#include +%End + + +public: + ProgressBase (QWidget* /TransferThis/); + void setJob (KIO::Job*); + void setJob (KIO::CopyJob*); + void setJob (KIO::DeleteJob*); + void setStopOnClose (bool); + bool stopOnClose () const; + void setOnlyClean (bool); + bool onlyClean () const; + +%If ( KDE_3_1_0 - ) + void finished (); +%End + + +public slots: + void slotStop (); + virtual void slotClean (); + virtual void slotTotalSize (KIO::Job*, KIO::filesize_t); + virtual void slotTotalFiles (KIO::Job*, ulong); + virtual void slotTotalDirs (KIO::Job*, ulong); + virtual void slotProcessedSize (KIO::Job*, KIO::filesize_t); + virtual void slotProcessedFiles (KIO::Job*, ulong); + virtual void slotProcessedDirs (KIO::Job*, ulong); + virtual void slotSpeed (KIO::Job*, ulong); + virtual void slotPercent (KIO::Job*, ulong); + virtual void slotCopying (KIO::Job*, const KURL&, const KURL&); + virtual void slotMoving (KIO::Job*, const KURL&, const KURL&); + virtual void slotDeleting (KIO::Job*, const KURL&); + virtual void slotCreatingDir (KIO::Job*, const KURL&); + virtual void slotCanResume (KIO::Job*, KIO::filesize_t); + +signals: + void stopped (); + +protected slots: + void slotFinished (KIO::Job*); + +protected: + virtual void closeEvent (QCloseEvent*); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class ProgressBase + +}; // namespace KIO + diff --git a/sip/kio/renamedlg.sip b/sip/kio/renamedlg.sip new file mode 100644 index 0000000..79c9bc1 --- /dev/null +++ b/sip/kio/renamedlg.sip @@ -0,0 +1,67 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +%ModuleHeaderCode +#include +%End + +namespace KIO +{ + +enum RenameDlg_Mode +{ + M_OVERWRITE, + M_OVERWRITE_ITSELF, + M_SKIP, + M_SINGLE, + M_MULTI, + M_RESUME, + M_NORENAME +}; + + +enum RenameDlg_Result +{ + R_RESUME, + R_RESUME_ALL, + R_OVERWRITE, + R_OVERWRITE_ALL, + R_SKIP, + R_AUTO_SKIP, + R_RENAME, + R_CANCEL +}; + + +//ig class RenameDlg : QDialog; + +//ig KIO::RenameDlg_Result open_RenameDlg (const QString&, const QString&, const QString&, KIO::RenameDlg_Mode, QString&, KIO::filesize_t = (KIO ::filesize_t )-1 , KIO::filesize_t = (KIO ::filesize_t )-1 , time_t = -1 , time_t = -1 , time_t = -1 , time_t = -1 ); + +%If ( - KDE_3_1_5 ) +//ig KIO::RenameDlg_Result open_RenameDlg (const QString&, const QString&, const QString&, KIO::RenameDlg_Mode, QString&, ulong = -1, ulong = -1, time_t = -1, time_t = -1, time_t = -1, time_t = -1); +%End + +}; // namespace KIO + diff --git a/sip/kio/renamedlgplugin.sip b/sip/kio/renamedlgplugin.sip new file mode 100644 index 0000000..784dabf --- /dev/null +++ b/sip/kio/renamedlgplugin.sip @@ -0,0 +1,39 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class RenameDlgPlugin : QWidget +{ +%TypeHeaderCode +#include +%End + + +public: + RenameDlgPlugin (QDialog*, const char*, const QStringList& = QStringList ()); + virtual bool initialize (KIO::RenameDlg_Mode, const QString&, const QString&, const QString&, const QString&, KIO::filesize_t, KIO::filesize_t, time_t, time_t, time_t, time_t); + +}; // class RenameDlgPlugin + diff --git a/sip/kio/scheduler.sip b/sip/kio/scheduler.sip new file mode 100644 index 0000000..31d3913 --- /dev/null +++ b/sip/kio/scheduler.sip @@ -0,0 +1,106 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +namespace KIO +{ + +class Scheduler : QObject, DCOPObject +{ +%TypeHeaderCode +#include +%End + + +public: +//ig typedef QPtrList JobList; + static void doJob (KIO::SimpleJob*); + static void scheduleJob (KIO::SimpleJob*); + static void cancelJob (KIO::SimpleJob*); + static void jobFinished (KIO::SimpleJob*, KIO::Slave*); + static void putSlaveOnHold (KIO::SimpleJob*, const KURL&); + static void removeSlaveOnHold (); + static void publishSlaveOnHold (); +//doc +// There is no default value for config (KIO.MetaData) - pass an +// empty Python dict if you need the default value +//end + static KIO::Slave* getConnectedSlave (const KURL&, const KIO::MetaData&); + static bool assignJobToSlave (KIO::Slave*, KIO::SimpleJob*); + static bool disconnectSlave (KIO::Slave*); + +%If ( KDE_3_1_0 - ) + static void registerWindow (QWidget*); + +%If ( KDE_3_2_0 - ) + static void unregisterWindow (QObject*); +%End + +%End + + static bool connect (const char*, const QObject*, const char*); + static bool connect (const QObject*, const char*, const QObject*, const char*); + static bool disconnect (const QObject*, const char*, const QObject*, const char*); + bool connect (const QObject*, const char*, const char*); + static void checkSlaveOnHold (bool); + void debug_info (); + virtual bool process (const QCString&, const QByteArray&, QCString&, QByteArray&); + virtual QCStringList functions (); + +public slots: + void slotSlaveDied (KIO::Slave*); + void slotSlaveStatus (pid_t, const QCString&, const QString&, bool); + +signals: + void slaveConnected (KIO::Slave*); + void slaveError (KIO::Slave*, int, const QString&); + +protected: + void setupSlave (KIO::Slave*, const KURL&, const QString&, const QString&, bool, const KIO::MetaData* = 0); +//ig bool startJobScheduled (KIO::Scheduler::ProtocolInfo*); + bool startJobDirect (); + Scheduler (); + +protected slots: + void startStep (); + void slotCleanIdleSlaves (); + void slotSlaveConnected (); + void slotSlaveError (int, const QString&); + void slotScheduleCoSlave (); + +%If ( KDE_3_1_0 - ) + void slotUnregisterWindow (QObject*); +%End + + +private: + Scheduler (const KIO::Scheduler&); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class Scheduler + +}; // namespace KIO + diff --git a/sip/kio/sessiondata.sip b/sip/kio/sessiondata.sip new file mode 100644 index 0000000..2ba2582 --- /dev/null +++ b/sip/kio/sessiondata.sip @@ -0,0 +1,51 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +namespace KIO +{ + +class SessionData : QObject +{ +%TypeHeaderCode +#include +%End + + +public: + SessionData (); + virtual void configDataFor (KIO::MetaData&, const QString&, const QString&); + virtual void reset (); + +public slots: + void slotAuthData (const QCString&, const QCString&, bool); + void slotDelAuthData (const QCString&); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class SessionData + +}; // namespace KIO + diff --git a/sip/kio/skipdlg.sip b/sip/kio/skipdlg.sip new file mode 100644 index 0000000..29bb91f --- /dev/null +++ b/sip/kio/skipdlg.sip @@ -0,0 +1,45 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +%ModuleHeaderCode +#include +%End + +namespace KIO +{ + +enum SkipDlg_Result +{ + S_SKIP, + S_AUTO_SKIP, + S_CANCEL +}; + +//ig KIO::SkipDlg_Result open_SkipDlg (bool, const QString& = QString ::null ); + +//ig class SkipDlg : KDialog; + +}; // namespace KIO + diff --git a/sip/kio/slave.sip b/sip/kio/slave.sip new file mode 100644 index 0000000..5db1ad1 --- /dev/null +++ b/sip/kio/slave.sip @@ -0,0 +1,95 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +namespace KIO +{ + +class Slave : KIO::SlaveInterface +{ +%TypeHeaderCode +#include +%End + + +protected: + +%If ( KDE_3_2_0 - ) + Slave (bool, KServerSocket*, const QString&, const QString&); +%End + + +public: + Slave (KServerSocket*, const QString&, const QString&); + void setPID (pid_t); + int slave_pid (); + void kill (); + bool isAlive (); + void setHost (const QString&, int, const QString&, const QString&); + void resetHost (); + void setConfig (const KIO::MetaData&); + QString protocol (); + void setProtocol (const QString&); + QString slaveProtocol (); + QString host (); + int port (); + QString user (); + QString passwd (); + static KIO::Slave* createSlave (const QString&, const KURL&, int& /Out/, QString& /Out/); + static KIO::Slave* holdSlave (const QString&, const KURL&); + void suspend (); + void resume (); + bool suspended (); + +%If ( KDE_3_2_0 - ) + void send (int, const QByteArray& = QByteArray ()); +%End + + void hold (const KURL&); + time_t idleTime (); + void setIdle (); + bool isConnected (); + void setConnected (bool); + KIO::Connection* connection (); + void ref (); + void deref (); + +public slots: + void accept (KSocket*); + void gotInput (); + void timeout (); + +signals: + void slaveDied (KIO::Slave*); + +protected: + void unlinkSocket (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class Slave + +}; // namespace KIO + diff --git a/sip/kio/slavebase.sip b/sip/kio/slavebase.sip new file mode 100644 index 0000000..e5caa6c --- /dev/null +++ b/sip/kio/slavebase.sip @@ -0,0 +1,187 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +namespace KIO +{ + +class SlaveBase +{ +%TypeHeaderCode +#include +%End + + +public: + SlaveBase (const QCString&, const QCString&, const QCString&); + +%If ( KDE_3_1_0 - ) + void exit (); +%End + + void dispatchLoop (); + void setConnection (KIO::Connection*); + KIO::Connection* connection () const; + void data (const QByteArray&); + void dataReq (); + void error (int, const QString&); + void connected (); + void finished (); + void needSubURLData (); + void slaveStatus (const QString&, bool); + void statEntry (const KIO::UDSEntry&); + void listEntries (const KIO::UDSEntryList&); + bool canResume (KIO::filesize_t); + void canResume (); + void totalSize (KIO::filesize_t); + void processedSize (KIO::filesize_t); + void processedPercent (float); + void speed (ulong); + void redirection (const KURL&); + void errorPage (); + void mimeType (const QString&); + void warning (const QString&); + void infoMessage (const QString&); + + enum MessageBoxType + { + QuestionYesNo, + WarningYesNo, + WarningContinueCancel, + WarningYesNoCancel, + Information, + SSLMessageBox + }; + + int messageBox (KIO::SlaveBase::MessageBoxType, const QString&, const QString& = QString ::null , const QString& = QString ::null , const QString& = QString ::null ); + +%If ( KDE_3_3_0 - ) + int messageBox (const QString&, KIO::SlaveBase::MessageBoxType, const QString& = QString ::null , const QString& = QString ::null , const QString& = QString ::null , const QString& = QString ::null ); +%End + + void setMetaData (const QString&, const QString&); + bool hasMetaData (const QString&); + QString metaData (const QString&); + +%If ( KDE_3_5_2 - ) + KIO::MetaData allMetaData () const; +%End + + KConfigBase* config (); + +%If ( KDE_3_3_0 - ) + KRemoteEncoding* remoteEncoding (); +%End + + virtual void setHost (const QString&, int, const QString&, const QString&); + virtual void setSubURL (const KURL&); + virtual void openConnection (); + virtual void closeConnection (); + virtual void get (const KURL&); + virtual void put (const KURL&, int, bool, bool); + virtual void stat (const KURL&); + virtual void mimetype (const KURL&); + virtual void listDir (const KURL&); + virtual void mkdir (const KURL&, int); + virtual void rename (const KURL&, const KURL&, bool); + virtual void symlink (const QString&, const KURL&, bool); + virtual void chmod (const KURL&, int); + virtual void copy (const KURL&, const KURL&, int, bool); + virtual void del (const KURL&, bool) /PyName=del_/; + virtual void special (const QByteArray&); + virtual void multiGet (const QByteArray&); + virtual void slave_status (); + virtual void reparseConfiguration (); + int connectTimeout (); + int proxyConnectTimeout (); + int responseTimeout (); + int readTimeout (); + +%If ( KDE_3_1_0 - ) + void setTimeoutSpecialCommand (int, const QByteArray& = QByteArray ()); +%End + + static void sigsegv_handler (int); + static void sigpipe_handler (int); + virtual bool dispatch (); + virtual void dispatch (int, const QByteArray&); + int readData (QByteArray&); + +%If ( KDE_3_1_0 - ) + void listEntry (const KIO::UDSEntry&, bool); + void connectSlave (const QString&); + void disconnectSlave (); + bool openPassDlg (KIO::AuthInfo&, const QString&); + bool openPassDlg (KIO::AuthInfo&); + bool checkCachedAuthentication (KIO::AuthInfo&); + bool cacheAuthentication (const KIO::AuthInfo&); + bool pingCacheDaemon () const; + QString createAuthCacheKey (const KURL&); + void sendAuthenticationKey (const QCString&, const QCString&, bool); + void delCachedAuthentication (const QString&); + void setMultipleAuthCaching (bool); + bool multipleAuthCaching () const; + bool requestNetwork (const QString& = QString ::null ); + void dropNetwork (const QString& = QString ::null ); + DCOPClient* dcopClient (); + int waitForAnswer (int, int, QByteArray&, int* = 0); + void sendMetaData (); + QCString mProtocol; + KIO::Connection* m_pConnection; + KIO::MetaData mOutgoingMetaData; + KIO::MetaData mIncomingMetaData; + bool wasKilled () const; + void setKillFlag (); +%End + + +protected: +//igx virtual void virtual_hook (int, void*); + +protected: + +%If ( - KDE_3_1_0 ) + void listEntry (const KIO::UDSEntry&, bool); + void connectSlave (const QString&); + void disconnectSlave (); + bool pingCacheDaemon () const; + bool openPassDlg (KIO::AuthInfo&); + bool checkCachedAuthentication (KIO::AuthInfo&); + bool cacheAuthentication (const KIO::AuthInfo&); + QString createAuthCacheKey (const KURL&); + void sendAuthenticationKey (const QCString&, const QCString&, bool); + void delCachedAuthentication (const QString&); + void setMultipleAuthCaching (bool); + bool multipleAuthCaching () const; + bool requestNetwork (const QString& = QString ::null ); + void dropNetwork (const QString& = QString ::null ); + int waitForAnswer (int, int, QByteArray&, int* = 0); + void sendMetaData (); +%End + + +}; // class SlaveBase + +}; // namespace KIO + diff --git a/sip/kio/slaveconfig.sip b/sip/kio/slaveconfig.sip new file mode 100644 index 0000000..7ed17c9 --- /dev/null +++ b/sip/kio/slaveconfig.sip @@ -0,0 +1,53 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +namespace KIO +{ + +class SlaveConfig : QObject +{ +%TypeHeaderCode +#include +%End + + +public: + static KIO::SlaveConfig* self (); + void setConfigData (const QString&, const QString&, const QString&, const QString&); + void setConfigData (const QString&, const QString&, const KIO::MetaData&); + KIO::MetaData configData (const QString&, const QString&); + QString configData (const QString&, const QString&, const QString&); + void reset (); + +signals: + void configNeeded (const QString&, const QString&); + +protected: + SlaveConfig (); + +}; // class SlaveConfig + +}; // namespace KIO + diff --git a/sip/kio/slaveinterface.sip b/sip/kio/slaveinterface.sip new file mode 100644 index 0000000..764b78f --- /dev/null +++ b/sip/kio/slaveinterface.sip @@ -0,0 +1,188 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +%ModuleHeaderCode +#include +%End + +namespace KIO +{ + +enum Info +{ + INF_TOTAL_SIZE, + INF_PROCESSED_SIZE, + INF_SPEED, + INF_REDIRECTION, + INF_MIME_TYPE, + INF_ERROR_PAGE, + INF_WARNING, + INF_GETTING_FILE, + INF_NEED_PASSWD, + INF_INFOMESSAGE, + INF_META_DATA, + INF_NETWORK_STATUS, + INF_MESSAGEBOX +}; + + +%If ( KDE_3_1_2 - ) + +enum Message +{ + MSG_DATA, + MSG_DATA_REQ, + MSG_ERROR, + MSG_CONNECTED, + MSG_FINISHED, + MSG_STAT_ENTRY, + MSG_LIST_ENTRIES, + MSG_RENAMED, + MSG_RESUME, + MSG_SLAVE_STATUS, + MSG_SLAVE_ACK, + MSG_NET_REQUEST, + MSG_NET_DROP, + MSG_NEED_SUBURL_DATA, + MSG_CANRESUME, + MSG_AUTH_KEY, + MSG_DEL_AUTH_KEY +}; + +%End + + +class SlaveInterface : QObject +{ +%TypeHeaderCode +#include +%End + + +public: + SlaveInterface (KIO::Connection*); + void setConnection (KIO::Connection*); + KIO::Connection* connection () const; + void setProgressId (int); + int progressId () const; + void sendResumeAnswer (bool); + void setOffset (KIO::filesize_t); + KIO::filesize_t offset () const; + +signals: + void data (const QByteArray&); + void dataReq (); + void error (int, const QString&); + void connected (); + void finished (); + void slaveStatus (pid_t, const QCString&, const QString&, bool); + void listEntries (const KIO::UDSEntryList&); + void statEntry (const KIO::UDSEntry&); + void needSubURLData (); + void needProgressId (); + void canResume (KIO::filesize_t); + void metaData (const KIO::MetaData&); + void totalSize (KIO::filesize_t); + void processedSize (KIO::filesize_t); + void redirection (const KURL&); + void speed (ulong); + void errorPage (); + void mimeType (const QString&); + void warning (const QString&); + void infoMessage (const QString&); + void connectFinished (); + void authorizationKey (const QCString&, const QCString&, bool); + void delAuthorization (const QCString&); + +protected: + virtual bool dispatch (); + virtual bool dispatch (int, const QByteArray&); + void openPassDlg (KIO::AuthInfo&); + void openPassDlg (const QString&, const QString&, const QString&, const QString&, const QString&, bool); + void openPassDlg (const QString&, const QString&, bool); + void messageBox (int, const QString&, const QString&, const QString&, const QString&); + +%If ( KDE_3_3_0 - ) + void messageBox (int, const QString&, const QString&, const QString&, const QString&, const QString&); +%End + + void requestNetwork (const QString&, const QString&); + void dropNetwork (const QString&, const QString&); + static void sigpipe_handler (int); + +protected slots: + void calcSpeed (); + +protected: + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class SlaveInterface + + +%If ( - KDE_3_2_0 ) + +enum Command +{ + CMD_HOST, + CMD_CONNECT, + CMD_DISCONNECT, + CMD_SLAVE_STATUS, + CMD_SLAVE_CONNECT, + CMD_SLAVE_HOLD, + CMD_NONE, + CMD_TESTDIR, + CMD_GET, + CMD_PUT, + CMD_STAT, + CMD_MIMETYPE, + CMD_LISTDIR, + CMD_MKDIR, + CMD_RENAME, + CMD_COPY, + CMD_DEL, + CMD_CHMOD, + CMD_SPECIAL, + CMD_USERPASS, + CMD_REPARSECONFIGURATION, + CMD_META_DATA, + CMD_SYMLINK, + CMD_SUBURL, + CMD_MESSAGEBOXANSWER, + CMD_RESUMEANSWER, + CMD_CONFIG, + CMD_MULTI_GET +}; + +%End + +}; // namespace KIO + + +%If ( KDE_3_1_4 - ) +//igx QDataStream& operator << (QDataStream&, const KIO::UDSEntry&); +//igx QDataStream& operator >> (QDataStream&, KIO::UDSEntry&); +%End diff --git a/sip/kio/statusbarprogress.sip b/sip/kio/statusbarprogress.sip new file mode 100644 index 0000000..5c165bd --- /dev/null +++ b/sip/kio/statusbarprogress.sip @@ -0,0 +1,56 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +namespace KIO +{ + +class StatusbarProgress : KIO::ProgressBase +{ +%TypeHeaderCode +#include +%End + + +public: + StatusbarProgress (QWidget* /TransferThis/, bool = 1); + void setJob (KIO::Job*); + +public slots: + virtual void slotClean (); + virtual void slotTotalSize (KIO::Job*, KIO::filesize_t); + virtual void slotPercent (KIO::Job*, ulong); + virtual void slotSpeed (KIO::Job*, ulong); + +protected: + void setMode (); + virtual bool eventFilter (QObject*, QEvent*); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class StatusbarProgress + +}; // namespace KIO + diff --git a/sip/kio/tcpslavebase.sip b/sip/kio/tcpslavebase.sip new file mode 100644 index 0000000..407b0fc --- /dev/null +++ b/sip/kio/tcpslavebase.sip @@ -0,0 +1,91 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +namespace KIO +{ + +class TCPSlaveBase : KIO::SlaveBase +{ +%TypeHeaderCode +#include +%End + + +public: + TCPSlaveBase (ushort, const QCString&, const QCString&, const QCString&); + TCPSlaveBase (ushort, const QCString&, const QCString&, const QCString&, bool); + +protected: + ssize_t Write (const void*, ssize_t); + ssize_t Read (void*, ssize_t); + ssize_t ReadLine (char*, ssize_t); + ushort GetPort (ushort); + bool ConnectToHost (const QString&, uint, bool); + void CloseDescriptor (); + bool AtEOF (); + bool InitializeSSL (); + void CleanSSL (); + ssize_t write (const void*, ssize_t); + ssize_t read (void*, ssize_t); + ssize_t readLine (char*, ssize_t); + void setBlockSize (int); + ushort port (ushort); + bool connectToHost (const QString&, uint, bool = 1); + +%If ( KDE_3_2_0 - ) + bool usingSSL () const; +%End + + bool usingTLS (); + bool canUseTLS (); + int startTLS (); + void stopTLS (); + void closeDescriptor (); + bool atEnd (); + void setSSLMetaData (); + bool initializeSSL (); + void cleanSSL (); + bool isConnectionValid (); + int connectResult (); + bool waitForResponse (int); + void setBlockConnection (bool); + void setConnectTimeout (int); + bool isSSLTunnelEnabled (); + void setEnableSSLTunnel (bool); + void setRealHost (const QString&); + void doConstructorStuff (); + int verifyCertificate (); + void certificatePrompt (); + bool userAborted () const; + +protected: + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class TCPSlaveBase + +}; // namespace KIO + diff --git a/sip/kio/thumbcreator.sip b/sip/kio/thumbcreator.sip new file mode 100644 index 0000000..e8aff18 --- /dev/null +++ b/sip/kio/thumbcreator.sip @@ -0,0 +1,47 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class ThumbCreator +{ +%TypeHeaderCode +#include +%End + + +public: + + enum Flags + { + None, + DrawFrame, + BlendIcon + }; + + virtual bool create (const QString&, int, int, QImage&) = 0; + virtual ThumbCreator::Flags flags () const; + +}; // class ThumbCreator + diff --git a/sip/kmdi/kmdichildarea.sip b/sip/kmdi/kmdichildarea.sip new file mode 100644 index 0000000..3df86c0 --- /dev/null +++ b/sip/kmdi/kmdichildarea.sip @@ -0,0 +1,102 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kmdi version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KMdiChildArea : QFrame +{ +%TypeHeaderCode +#include +%End + + +public: +//ig QPtrList* m_pZ; + QSize m_defaultChildFrmSize; + +protected: + +public: + KMdiChildArea (QWidget*); + void manageChild (KMdiChildFrm*, bool = 1, bool = 1); + void destroyChild (KMdiChildFrm*, bool = 1); + void destroyChildButNotItsView (KMdiChildFrm*, bool = 1); + void setTopChild (KMdiChildFrm*, bool = 0); + KMdiChildFrm* topChild () const; + int getVisibleChildCount () const; + QPoint getCascadePoint (int = -1); + void setMdiCaptionFont (const QFont&); + void setMdiCaptionActiveForeColor (const QColor&); + void setMdiCaptionActiveBackColor (const QColor&); + void setMdiCaptionInactiveForeColor (const QColor&); + void setMdiCaptionInactiveBackColor (const QColor&); + static void getCaptionColors (const QPalette&, QColor&, QColor&, QColor&, QColor&); + +public slots: + void cascadeWindows (); + void cascadeMaximized (); + void expandVertical (); + void expandHorizontal (); + void focusTopChild (); + void tilePragma (); + void tileAnodine (); + void tileVertically (); + void layoutMinimizedChildren (); + +protected: + void tileAllInternal (int); + virtual void resizeEvent (QResizeEvent*); + void mousePressEvent (QMouseEvent*); + void childMinimized (KMdiChildFrm*, bool); + +signals: + void noMaximizedChildFrmLeft (KMdiChildFrm*); + void nowMaximized (bool); + void sysButtonConnectionsMustChange (KMdiChildFrm*, KMdiChildFrm*); + void popupWindowMenu (QPoint); + void lastChildFrmClosed (); + +//force +%ConvertToSubClassCode + // The table of Python class objects indexed by their names. The table + // must be sorted by name. + + static sipStringTypeClassMap map[] = { + {sipName_KMdiChildArea, &sipClass_KMdiChildArea}, + {sipName_KMdiChildFrm, &sipClass_KMdiChildFrm}, + {sipName_KMdiChildView, &sipClass_KMdiChildView}, + {sipName_KMdiChildFrmCaption, &sipClass_KMdiChildFrmCaption}, + {sipName_KMdiMainFrm, &sipClass_KMdiMainFrm}, + {sipName_KMdiTaskBar, &sipClass_KMdiTaskBar}, + {sipName_KMdiTaskBarButton, &sipClass_KMdiTaskBarButton}, + {sipName_KMdiToolViewAccessor, &sipClass_KMdiToolViewAccessor}, + {sipName_KMdiWin32IconButton, &sipClass_KMdiWin32IconButton}, + }; + + sipClass = sipMapStringToClass(sipCpp -> className(),map,sizeof (map)/sizeof (map[0])); +%End +//end + +}; // class KMdiChildArea + diff --git a/sip/kmdi/kmdichildfrm.sip b/sip/kmdi/kmdichildfrm.sip new file mode 100644 index 0000000..8cf16ef --- /dev/null +++ b/sip/kmdi/kmdichildfrm.sip @@ -0,0 +1,279 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kmdi version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KMdiWin32IconButton : QLabel +{ +%TypeHeaderCode +#include +%End + + +public: + KMdiWin32IconButton (QWidget*, const char* = 0); + virtual void mousePressEvent (QMouseEvent*); + +signals: + void pressed (); + +}; // class KMdiWin32IconButton + + +class KMdiChildFrmMoveEvent : QCustomEvent +{ +%TypeHeaderCode +#include +%End + + +public: + KMdiChildFrmMoveEvent (QMoveEvent*); + +}; // class KMdiChildFrmMoveEvent + + +class KMdiChildFrmDragBeginEvent : QCustomEvent +{ +%TypeHeaderCode +#include +%End + + +public: + KMdiChildFrmDragBeginEvent (QMouseEvent*); + +}; // class KMdiChildFrmDragBeginEvent + + +class KMdiChildFrmDragEndEvent : QCustomEvent +{ +%TypeHeaderCode +#include +%End + + +public: + KMdiChildFrmDragEndEvent (QMouseEvent*); + +}; // class KMdiChildFrmDragEndEvent + + +class KMdiChildFrmResizeBeginEvent : QCustomEvent +{ +%TypeHeaderCode +#include +%End + + +public: + KMdiChildFrmResizeBeginEvent (QMouseEvent*); + +}; // class KMdiChildFrmResizeBeginEvent + + +class KMdiChildFrmResizeEndEvent : QCustomEvent +{ +%TypeHeaderCode +#include +%End + + +public: + KMdiChildFrmResizeEndEvent (QMouseEvent*); + +}; // class KMdiChildFrmResizeEndEvent + + +class KMdiChildFrm : QFrame +{ +%TypeHeaderCode +#include +%End + + +public: + + enum MdiWindowState + { + Normal, + Maximized, + Minimized + }; + + KMdiChildView* m_pClient; + +protected: + +public: + KMdiChildFrm (KMdiChildArea*); + void setClient (KMdiChildView*, bool = 0); + void unsetClient (QPoint = QPoint (0 ,0 )); + void setIcon (const QPixmap&); + QPixmap* icon () const; + void enableClose (bool); + void setCaption (const QString&); + const QString& caption (); + void setState (KMdiChildFrm::MdiWindowState, bool = 1); + KMdiChildFrm::MdiWindowState state () const; + QRect mdiAreaContentsRect () const; + QRect restoreGeometry () const; + void setRestoreGeometry (const QRect&); + void updateRects (); + QPopupMenu* systemMenu () const; + int captionHeight () const; + void redecorateButtons (); + bool isInDrag () const; + bool isInResize () const; + void raiseAndActivate (); + virtual void setMinimumSize (int, int); + +public slots: + void slot_resizeViaSystemMenu (); + +protected: + virtual void resizeEvent (QResizeEvent*); + virtual void mouseMoveEvent (QMouseEvent*); + virtual void mousePressEvent (QMouseEvent*); + virtual void mouseReleaseEvent (QMouseEvent*); + virtual void moveEvent (QMoveEvent*); + virtual void leaveEvent (QEvent*); + virtual bool eventFilter (QObject*, QEvent*); + void resizeWindow (int, int, int); + void setResizeCursor (int); + void unsetResizeCursor (); + virtual void switchToMinimizeLayout (); + void doResize (); + void doResize (bool); + +protected slots: + void maximizePressed (); + void restorePressed (); + void minimizePressed (); + void closePressed (); + void undockPressed (); + void showSystemMenu (); + +protected: +//ig void linkChildren (QDict*); + QDict* unlinkChildren (); + int getResizeCorner (int, int); + +protected: + +%If ( - KDE_3_2_2 ) + void linkChildren (QDict*); +%End + + +}; // class KMdiChildFrm + + + +%MappedType QDict +//converts a Python dict of QWidget::FocusPolicy +{ +%TypeHeaderCode +#include +%End + +%ConvertFromTypeCode +// Convert to a Python dictionary + + if (!sipCpp) + return PyDict_New(); + + PyObject *dict; + + // Create the dictionary. + + if ((dict = PyDict_New()) == NULL) + return NULL; + + // Get it. + + QDict qdict = *sipCpp; + QDictIterator it (qdict); + + while (it.current ()) + { + PyObject *a0 = sipConvertFromInstance (&it.currentKey (), sipClass_QString, sipTransferObj); + PyObject *a1 = PyInt_FromLong ((long) it.current ()); + + if ((a0 == NULL) || (a1 == NULL) || (PyDict_SetItem (dict, a0, a1) < 0)) + { + Py_XDECREF (a0); + Py_XDECREF (a1); + Py_DECREF (dict); + return NULL; + } + } + + return dict; +%End + + +%ConvertToTypeCode + // Convert a Python dictionary to a QDict on the heap. + + if (sipIsErr == NULL) + return PyDict_Check(sipPy); + + QDict* qdict = new QDict; + + PyObject *key, *value; + SIP_SSIZE_T pos = 0; + QString *a0; + QWidget::FocusPolicy a1; + + while (PyDict_Next(sipPy, &pos, &key, &value)) + { + int iserr = 0, a0_state; + + a0 = (QString *)sipForceConvertToType(key, sipType_QString, sipTransferObj, SIP_NOT_NONE, &a0_state, &iserr); + + if (iserr || !PyInt_Check(value)) + { + if (a0) + sipReleaseType(a0, sipType_QString, a0_state); + + *sipIsErr = 1; + delete qdict; + return 0; + } + + a1 = (QWidget::FocusPolicy) PyInt_AS_LONG (value); + + qdict->insert (*a0, &a1); + + sipReleaseType(a0, sipType_QString, a0_state); + } + + *sipCppPtr = qdict; + + return 1; +%End +}; + + diff --git a/sip/kmdi/kmdichildfrmcaption.sip b/sip/kmdi/kmdichildfrmcaption.sip new file mode 100644 index 0000000..6004cf1 --- /dev/null +++ b/sip/kmdi/kmdichildfrmcaption.sip @@ -0,0 +1,57 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kmdi version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KMdiChildFrmCaption : QWidget +{ +%TypeHeaderCode +#include +%End + + +public: + KMdiChildFrmCaption (KMdiChildFrm*); + void setActive (bool); + void setCaption (const QString&); + int heightHint (); + +public slots: + void slot_moveViaSystemMenu (); + +protected: + virtual void paintEvent (QPaintEvent*); + virtual void mousePressEvent (QMouseEvent*); + virtual void mouseDoubleClickEvent (QMouseEvent*); + virtual void mouseReleaseEvent (QMouseEvent*); + virtual void mouseMoveEvent (QMouseEvent*); + QString abbreviateText (QString, int); + +public: + QString m_szCaption; + +protected: + +}; // class KMdiChildFrmCaption + diff --git a/sip/kmdi/kmdichildview.sip b/sip/kmdi/kmdichildview.sip new file mode 100644 index 0000000..874c170 --- /dev/null +++ b/sip/kmdi/kmdichildview.sip @@ -0,0 +1,120 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kmdi version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KMdiChildView : QWidget +{ +%TypeHeaderCode +#include +%End + + +protected: + +public: + KMdiChildView (const QString&, QWidget* = 0, const char* = 0, WFlags = 0); + KMdiChildView (QWidget* = 0, const char* = 0, WFlags = 0); + void activate (); + void setFirstFocusableChildWidget (QWidget*); + void setLastFocusableChildWidget (QWidget*); + QWidget* focusedChildWidget (); + bool isAttached () const; + const QString& caption () const; + const QString& tabCaption () const; + virtual void setCaption (const QString&); + virtual void setTabCaption (const QString&); + virtual void setMDICaption (const QString&); + KMdiChildFrm* mdiParent () const; + bool isMinimized () const; + bool isMaximized () const; + QRect internalGeometry () const; + void setInternalGeometry (const QRect&); + QRect externalGeometry () const; + void setExternalGeometry (const QRect&); + virtual QPixmap* myIconPtr (); + virtual void minimize (bool); + virtual void maximize (bool); + QRect restoreGeometry (); + void setRestoreGeometry (const QRect&); + void removeEventFilterForAllChildren (); + void setWindowMenuID (int); + virtual void setMinimumSize (int, int); + virtual void setMaximumSize (int, int); + bool isToolView () const; + void updateTimeStamp (); + const QDateTime& getTimeStamp () const; + +public slots: + virtual void attach (); + virtual void detach (); + virtual void minimize (); + virtual void maximize (); + virtual void restore (); + virtual void youAreAttached (KMdiChildFrm*); + virtual void youAreDetached (); + virtual void slot_clickedInWindowMenu (); + virtual void slot_clickedInDockMenu (); + virtual void show (); + virtual void hide (); + virtual void raise () /PyName=raise_/; + virtual void showMinimized (); + virtual void showMaximized (); + virtual void showNormal (); + +protected: + virtual void closeEvent (QCloseEvent*); + virtual bool eventFilter (QObject*, QEvent*); + virtual void focusInEvent (QFocusEvent*); + virtual void focusOutEvent (QFocusEvent*); + virtual void resizeEvent (QResizeEvent*); + void trackIconAndCaptionChanges (QWidget*); + +protected slots: + void slot_childDestroyed (); + +signals: + void attachWindow (KMdiChildView*, bool); + void detachWindow (KMdiChildView*, bool); + void focusInEventOccurs (KMdiChildView*); + void gotFocus (KMdiChildView*); + void activated (KMdiChildView*); + void lostFocus (KMdiChildView*); + void deactivated (KMdiChildView*); + void childWindowCloseRequest (KMdiChildView*); + void windowCaptionChanged (const QString&); + void tabCaptionChanged (const QString&); + void mdiParentNowMaximized (bool); + void clickedInWindowMenu (int); + void clickedInDockMenu (int); + void isMaximizedNow (); + void isMinimizedNow (); + void isRestoredNow (); + void isAttachedNow (); + void isDetachedNow (); + void iconUpdated (QWidget*, QPixmap); + void captionUpdated (QWidget*, const QString&); + +}; // class KMdiChildView + diff --git a/sip/kmdi/kmdidefines.sip b/sip/kmdi/kmdidefines.sip new file mode 100644 index 0000000..99fa008 --- /dev/null +++ b/sip/kmdi/kmdidefines.sip @@ -0,0 +1,115 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kmdi version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +%ModuleHeaderCode +#include +%End + +namespace KMdi +{ + +enum EventType +{ + EV_Move, + EV_DragBegin, + EV_DragEnd, + EV_ResizeBegin, + EV_ResizeEnd +}; + + +%If ( KDE_3_3_2 - ) + +enum AddWindowFlags +{ + StandardAdd, + Maximize, + Minimize, + Hide, + Detach, + ToolWindow, + UseKMdiSizeHint, +//ig AddWindowFlags +}; + +%End + + +enum FrameDecor +{ + Win95Look, + KDE1Look, + KDELook, + KDELaptopLook +}; + + +enum MdiMode +{ + UndefinedMode, + ToplevelMode, + ChildframeMode, + TabPageMode, + IDEAlMode +}; + + +%If ( KDE_3_3_0 - ) + +enum TabWidgetVisibility +{ + AlwaysShowTabs, + ShowWhenMoreThanOneTab, + NeverShowTabs +}; + + +enum ToolviewStyle +{ + IconOnly, + TextOnly, + TextAndIcon +}; + +%End + + +%If ( - KDE_3_3_2 ) + +enum AddWindowFlags +{ + StandardAdd, + Maximize, + Minimize, + Hide, + Detach, + ToolWindow, + UseKMdiSizeHint +}; + +%End + +}; // namespace KMdi + diff --git a/sip/kmdi/kmdimainfrm.sip b/sip/kmdi/kmdimainfrm.sip new file mode 100644 index 0000000..5405cad --- /dev/null +++ b/sip/kmdi/kmdimainfrm.sip @@ -0,0 +1,339 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kmdi version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KMdiViewCloseEvent : QCustomEvent +{ +%TypeHeaderCode +#include +%End + + +public: + KMdiViewCloseEvent (KMdiChildView*); + +}; // class KMdiViewCloseEvent + + +class KMdiMainFrm : KParts::DockMainWindow +{ +%TypeHeaderCode +#include +%End + + +protected: + +public: + KMdiMainFrm (QWidget*, const char* = "", KMdi::MdiMode = KMdi ::ChildframeMode , WFlags = WType_TopLevel |WDestructiveClose ); + void setStandardMDIMenuEnabled (bool = 1); + void setManagedDockPositionModeEnabled (bool); + bool isInMaximizedChildFrmMode (); + KMdi::MdiMode mdiMode (); + KMdiChildView* activeWindow (); + virtual QPopupMenu* taskBarPopup (KMdiChildView*, bool = 0); + virtual QPopupMenu* windowPopup (KMdiChildView*, bool = 1); + virtual void applyOptions (); + KMdiChildView* findWindow (const QString&); + + enum ExistsAs + { + DocumentView, + ToolView, + AnyView + }; + + bool windowExists (KMdiChildView*, KMdiMainFrm::ExistsAs); + virtual bool event (QEvent*); + virtual void setSysButtonsAtMenuPosition (); + virtual int taskBarHeight (); + virtual void setUndockPositioningOffset (QPoint); +//ig KMdiIterator* createIterator (); +//ig void deleteIterator (KMdiIterator*); + QPopupMenu* windowMenu () const; + virtual void setBackgroundColor (const QColor&); + virtual void setBackgroundPixmap (const QPixmap&); + void setDefaultChildFrmSize (const QSize&); + QSize defaultChildFrmSize (); + virtual void setMinimumSize (int, int); + int childFrameModeHeight (); + virtual void setMenuForSDIModeSysButtons (KMenuBar* = 0); + static int frameDecorOfAttachedViews (); + void fakeSDIApplication (); + bool isFakingSDIApplication () const; + virtual bool eventFilter (QObject*, QEvent*); + void findRootDockWidgets (QPtrList*, QValueList*); + void setSwitching (const bool); + bool switching () const; + +public slots: + KMdiChildView* createWrapper (QWidget*, const QString&, const QString&); + virtual void addWindow (KMdiChildView*, int = KMdi ::StandardAdd ); + +%If ( KDE_3_3_0 - ) + void addWindow (KMdiChildView*, int, int); +%End + + virtual void addWindow (KMdiChildView*, QPoint, int = KMdi ::StandardAdd ); + virtual void addWindow (KMdiChildView*, QRect, int = KMdi ::StandardAdd ); + virtual KMdiToolViewAccessor* addToolWindow (QWidget*, KDockWidget::DockPosition = KDockWidget ::DockNone , QWidget* = 0, int = 50, const QString& = 0, const QString& = 0); + virtual void deleteToolWindow (QWidget*); + virtual void deleteToolWindow (KMdiToolViewAccessor*); + KMdiToolViewAccessor* createToolWindow (); + virtual void removeWindowFromMdi (KMdiChildView*); + virtual void closeWindow (KMdiChildView*, bool = 1); + virtual void slot_toggleTaskBar (); + virtual void attachWindow (KMdiChildView*, bool = 1, bool = 0); + virtual void detachWindow (KMdiChildView*, bool = 1); + virtual void childWindowCloseRequest (KMdiChildView*); + virtual void closeAllViews (); + virtual void iconifyAllViews (); + virtual void closeActiveView (); + virtual void switchToToplevelMode (); + virtual void finishToplevelMode (); + virtual void switchToChildframeMode (); + virtual void finishChildframeMode (); + virtual void switchToTabPageMode (); + virtual void finishTabPageMode (); + virtual void switchToIDEAlMode (); + virtual void finishIDEAlMode (bool = 1); + void setIDEAlModeStyle (int); + +%If ( KDE_3_3_0 - ) + void setToolviewStyle (int); +%End + + bool isViewTaskBarOn (); + virtual void showViewTaskBar (); + virtual void hideViewTaskBar (); + virtual void fillWindowMenu (); + virtual void cascadeWindows (); + virtual void cascadeMaximized (); + virtual void expandVertical (); + virtual void expandHorizontal (); + virtual void tilePragma (); + virtual void tileAnodine (); + virtual void tileVertically (); + virtual void setFrameDecorOfAttachedViews (int); + virtual void setEnableMaximizedChildFrmMode (bool); + virtual void activateNextWin (); + virtual void activatePrevWin (); + virtual void activateFirstWin (); + virtual void activateLastWin (); + virtual void activateView (int); + +protected: + virtual void resizeEvent (QResizeEvent*); + virtual void createTaskBar (); + virtual void createMdiManager (); + void blockClearingOfWindowMenu (bool); + void findToolViewsDockedToMain (QPtrList*, KDockWidget::DockPosition); + void dockToolViewsIntoContainers (QPtrList&, KDockWidget*); + QStringList prepareIdealToTabs (KDockWidget*); + void idealToolViewsToStandardTabs (QStringList, KDockWidget::DockPosition, int); +//force +%If ( KDE_3_4_0 - ) + KTabWidget* tabWidget() const; +%End +//end + +%If ( KDE_3_3_0 - ) + KMdi::TabWidgetVisibility tabWidgetVisibility (); + void setTabWidgetVisibility (KMdi::TabWidgetVisibility); +%End + + +protected slots: + virtual void activateView (KMdiChildView*); + virtual void taskbarButtonRightClicked (KMdiChildView*); + void switchOffMaximizeModeForMenu (KMdiChildFrm*); + void updateSysButtonConnections (KMdiChildFrm*, KMdiChildFrm*); + void windowMenuItemActivated (int); + void dockMenuItemActivated (int); + void popupWindowMenu (QPoint); + void dragEndTimeOut (); + void closeViewButtonPressed (); + +signals: + void lastChildFrmClosed (); + void lastChildViewClosed (); + void leftTopLevelMode (); + void childViewIsDetachedNow (QWidget*); + void collapseOverlapContainers (); + void mdiModeHasBeenChangedTo (KMdi::MdiMode); + void viewActivated (KMdiChildView*); + void viewDeactivated (KMdiChildView*); + +public slots: + void prevToolViewInDock (); + void nextToolViewInDock (); + +signals: + void toggleTop (); + void toggleLeft (); + void toggleRight (); + void toggleBottom (); + +}; // class KMdiMainFrm + + + +%MappedType QPtrList +//converts a Python list of KDockWidget +{ +%TypeHeaderCode +#include +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New (0); + + PyObject *pylist; + + // Create the list + + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + // Get it. + + QPtrList *cpplist = (QPtrList *)sipCpp; + KDockWidget *cpp; + PyObject *inst; + + // the loop depends on the type of iterator the tmeplate makes available + for(cpp = cpplist->first (); cpp != 0; cpp = cpplist->next () ) + { + if (((inst = sipConvertFromInstance (cpp, sipClass_KDockWidget, sipTransferObj)) == NULL) + || PyList_Append (pylist, inst) < 0) + { + Py_DECREF (pylist); + return NULL; + } + } + + return pylist; +%End + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QPtrList *cpplist = new QPtrList; + + PyObject *elem; + KDockWidget *cpp; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + cpp = (KDockWidget *)sipForceConvertToType(elem, sipType_KDockWidget, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + *sipIsErr = 1; + delete cpplist; + return 0; + } + + cpplist->append (cpp); + } + + *sipCppPtr = cpplist; + + return 1; +%End +}; + + +%MappedType QValueList +//converts a Python list of QRect +{ +%TypeHeaderCode +#include +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New(0); + + // Create the list + PyObject *pylist; + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + QValueList *cpplist = (QValueList *)sipCpp; + PyObject *inst; + + // Get it. + QValueList::Iterator it; + for( it = cpplist->begin(); it != cpplist->end(); ++it ) + { + if (((inst = sipConvertFromNewType(new QRect(*it), sipType_QRect, NULL)) == NULL) + || PyList_Append (pylist, inst) < 0) + { + Py_DECREF (pylist); + return NULL; + } + } + + return pylist; +%End + + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QValueList *cpplist = new QValueList; + + PyObject *elem; + QRect *cpp; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + cpp = (QRect *)sipForceConvertToType(elem, sipType_QRect, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + *sipIsErr = 1; + delete cpplist; + return 0; + } + + cpplist->append (*cpp); + } + + *sipCppPtr = cpplist; + + return 1; +%End +}; + + diff --git a/sip/kmdi/kmdimod.sip.in b/sip/kmdi/kmdimod.sip.in new file mode 100644 index 0000000..69af83a --- /dev/null +++ b/sip/kmdi/kmdimod.sip.in @@ -0,0 +1,48 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kmdi version KDE_3_5_2 + +%Copying + + This software is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License as + published by the Free Software Foundation; either version 2 of + the License, or (at your option) any later version. + + This software is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public + License along with this library; see the file COPYING. + If not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +%End + +%Module kmdi + +%Import qt/qtmod.sip +%Import dcopmod.sip +%Import kdecoremod.sip +%Import qtxml/qtxmlmod.sip +%Import kdefxmod.sip +%Import kdeuimod.sip +%Import kiomod.sip +%Import kpartsmod.sip + +%Include kmdichildarea.sip +%Include kmdichildfrm.sip +%Include kmdichildfrmcaption.sip +%Include kmdichildview.sip +%Include kmdidefines.sip +%Include kmdimainfrm.sip +%Include kmditaskbar.sip +%Include kmditoolviewaccessor.sip +@mark@ diff --git a/sip/kmdi/kmditaskbar.sip b/sip/kmdi/kmditaskbar.sip new file mode 100644 index 0000000..023a6e3 --- /dev/null +++ b/sip/kmdi/kmditaskbar.sip @@ -0,0 +1,88 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kmdi version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KMdiTaskBarButton : QPushButton +{ +%TypeHeaderCode +#include +%End + + +public: + KMdiTaskBarButton (KMdiTaskBar*, KMdiChildView*); + QString actualText () const; + void fitText (const QString&, int); + void setText (const QString&); + +signals: + void clicked (KMdiChildView*); + void leftMouseButtonClicked (KMdiChildView*); + void rightMouseButtonClicked (KMdiChildView*); + void buttonTextChanged (int); + +public slots: + void setNewText (const QString&); + +protected slots: + void mousePressEvent (QMouseEvent*); + +public: + KMdiChildView* m_pWindow; + +protected: + +}; // class KMdiTaskBarButton + + +class KMdiTaskBar : KToolBar +{ +%TypeHeaderCode +#include +%End + + +public: + KMdiTaskBar (KMdiMainFrm*, Qt::Dock); + KMdiTaskBarButton* addWinButton (KMdiChildView*); + void removeWinButton (KMdiChildView*, bool = 1); + KMdiTaskBarButton* getNextWindowButton (bool, KMdiChildView*); + KMdiTaskBarButton* getButton (KMdiChildView*); + void switchOn (bool); + bool isSwitchedOn () const; + +protected: + void resizeEvent (QResizeEvent*); + +protected slots: + void layoutTaskBar (int = 0); + +public slots: + void setActiveButton (KMdiChildView*); + +protected: + +}; // class KMdiTaskBar + diff --git a/sip/kmdi/kmditoolviewaccessor.sip b/sip/kmdi/kmditoolviewaccessor.sip new file mode 100644 index 0000000..c2ea2d7 --- /dev/null +++ b/sip/kmdi/kmditoolviewaccessor.sip @@ -0,0 +1,53 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kmdi version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KMdiToolViewAccessor : QObject +{ +%TypeHeaderCode +#include +%End + + +private: + KMdiToolViewAccessor (KMdiMainFrm*, QWidget*, const QString& = 0, const QString& = 0); + KMdiToolViewAccessor (KMdiMainFrm*); + +public: + QWidget* wrapperWidget (); + QWidget* wrappedWidget (); + void place (KDockWidget::DockPosition = KDockWidget ::DockNone , QWidget* = 0, int = 50); + void placeAndShow (KDockWidget::DockPosition = KDockWidget ::DockNone , QWidget* = 0, int = 50); + void show (); + +public slots: + void setWidgetToWrap (QWidget*, const QString& = 0, const QString& = 0); + void hide (); + +protected: + bool eventFilter (QObject*, QEvent*); + +}; // class KMdiToolViewAccessor + diff --git a/sip/kparts/browserextension.sip b/sip/kparts/browserextension.sip new file mode 100644 index 0000000..c6c37db --- /dev/null +++ b/sip/kparts/browserextension.sip @@ -0,0 +1,601 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kparts version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +namespace KParts +{ + +class URLArgs +{ +%TypeHeaderCode +#include +%End + + +public: + URLArgs (); + URLArgs (const KParts::URLArgs&); + URLArgs (bool, int, int, const QString& = QString ::null ); + QStringList docState; + bool reload; + int xOffset; + int yOffset; + QString serviceType; + QByteArray postData; + void setContentType (const QString&); + QString contentType () const; + void setDoPost (bool); + bool doPost () const; + void setLockHistory (bool); + bool lockHistory () const; + +%If ( KDE_3_1_0 - ) + void setNewTab (bool); + bool newTab () const; +%End + + QMap& metaData (); + QString frameName; + bool trustedSource; + +%If ( KDE_3_1_3 - ) + bool redirectedRequest () const; + void setRedirectedRequest (bool); + +%If ( KDE_3_4_0 - ) + void setForcesNewWindow (bool); + bool forcesNewWindow () const; +%End + +%End + +//ig URLArgsPrivate* d; + +}; // class URLArgs + + +class WindowArgs +{ +%TypeHeaderCode +#include +%End + + +public: + WindowArgs (); + WindowArgs (const KParts::WindowArgs&); + WindowArgs (const QRect&, bool, bool, bool, bool, bool); + WindowArgs (int, int, int, int, bool, bool, bool, bool, bool); + int x; + int y; + int width; + int height; + bool fullscreen; + bool menuBarVisible; + bool toolBarsVisible; + bool statusBarVisible; + bool resizable; + bool lowerWindow; + +%If ( KDE_3_5_0 - ) + bool scrollBarsVisible; +%End + +//ig WindowArgsPrivate* d; + +}; // class WindowArgs + + +class OpenURLEvent : KParts::Event +{ +%TypeHeaderCode +#include +%End + + +public: + OpenURLEvent (KParts::ReadOnlyPart*, const KURL&, const KParts::URLArgs& = KParts ::URLArgs ()); + KParts::ReadOnlyPart* part () const; + KURL url () const; + KParts::URLArgs args () const; + static bool test (const QEvent*); + +}; // class OpenURLEvent + + +class BrowserExtension : QObject +{ +%TypeHeaderCode +#include +%End + + +public: + BrowserExtension (KParts::ReadOnlyPart* /TransferThis/, const char* = 0); + +%If ( KDE_3_2_0 - ) + typedef uint PopupFlags; + +%If ( KDE_3_4_0 - ) + + enum + { + DefaultPopupItems, + ShowNavigationItems, + ShowUp, + ShowReload, + ShowBookmark, + ShowCreateDirectory, + ShowTextSelectionItems, + NoDeletion + }; + +%End + +%End + + virtual void setURLArgs (const KParts::URLArgs&); + KParts::URLArgs urlArgs () const; + virtual int xOffset (); + virtual int yOffset (); + virtual void saveState (QDataStream&); + virtual void restoreState (QDataStream&); + bool isURLDropHandlingEnabled () const; + void setURLDropHandlingEnabled (bool); + void setBrowserInterface (KParts::BrowserInterface*); + KParts::BrowserInterface* browserInterface () const; + bool isActionEnabled (const char*) const; + +%If ( KDE_3_5_0 - ) + QString actionText (const char*) const; +%End + + typedef QMap ActionSlotMap; + static KParts::BrowserExtension::ActionSlotMap actionSlotMap (); + static KParts::BrowserExtension::ActionSlotMap* actionSlotMapPtr (); + static KParts::BrowserExtension* childObject (QObject*); + +%If ( KDE_3_2_0 - ) + void pasteRequest (); +%End + + +signals: + void enableAction (const char*, bool); + +%If ( KDE_3_5_0 - ) + void setActionText (const char*, const QString&); +%End + + void openURLRequest (const KURL&, const KParts::URLArgs& = KParts ::URLArgs ()); + void openURLRequestDelayed (const KURL&, const KParts::URLArgs& = KParts ::URLArgs ()); + void openURLNotify (); + void setLocationBarURL (const QString&); + void setIconURL (const KURL&); + void createNewWindow (const KURL&, const KParts::URLArgs& = KParts ::URLArgs ()); +//ig void createNewWindow (const KURL&, const KParts::URLArgs&, const KParts::WindowArgs&, KParts::ReadOnlyPart*&); + void loadingProgress (int); + void speedProgress (int); + void infoMessage (const QString&); + void popupMenu (const QPoint&, const KFileItemList&); + void popupMenu (KXMLGUIClient*, const QPoint&, const KFileItemList&); + +%If ( KDE_3_2_0 - ) + void popupMenu (KXMLGUIClient*, const QPoint&, const KFileItemList&, const KParts::URLArgs&, KParts::BrowserExtension::PopupFlags); +%End + + void popupMenu (const QPoint&, const KURL&, const QString&, mode_t = -1); + void popupMenu (KXMLGUIClient*, const QPoint&, const KURL&, const QString&, mode_t = -1); + +%If ( KDE_3_2_0 - ) + void popupMenu (KXMLGUIClient*, const QPoint&, const KURL&, const KParts::URLArgs&, KParts::BrowserExtension::PopupFlags, mode_t = -1); +%End + + void selectionInfo (const KFileItemList&); + void selectionInfo (const QString&); + void selectionInfo (const KURL::List&); + +%If ( KDE_3_1_0 - ) + void mouseOverInfo (const KFileItem*); + +%If ( KDE_3_2_0 - ) + void addWebSideBar (const KURL&, const QString&); + void moveTopLevelWidget (int, int); + void resizeTopLevelWidget (int, int); + +%If ( KDE_3_3_1 - ) + void requestFocus (KParts::ReadOnlyPart*); + +%If ( KDE_3_4_0 - ) + void setPageSecurity (int); +%End + +%End + +%End + +%End + + +public: + typedef QMap ActionNumberMap; + +protected: +//igx virtual void virtual_hook (int, void*); + +public: + +%If ( KDE_3_3_0 - KDE_3_4_0 ) + + enum + { + DefaultPopupItems, + ShowNavigationItems, + ShowUp, + ShowReload, + ShowBookmark, + ShowCreateDirectory, + ShowTextSelectionItems + }; + +%End + + +public: + +%If ( KDE_3_2_0 - KDE_3_3_0 ) + + enum + { + DefaultPopupItems, + ShowNavigationItems, + ShowUp, + ShowReload, + ShowBookmark, + ShowCreateDirectory + }; + +%End + + +}; // class BrowserExtension + + +class BrowserHostExtension : QObject +{ +%TypeHeaderCode +#include +%End + + +public: + BrowserHostExtension (KParts::ReadOnlyPart* /TransferThis/, const char* = 0); + virtual QStringList frameNames () const; + virtual const QPtrList frames () const; + +%If ( KDE_3_3_0 - ) + KParts::BrowserHostExtension* findFrameParent (KParts::ReadOnlyPart*, const QString&); +%End + + virtual bool openURLInFrame (const KURL&, const KParts::URLArgs&); + static KParts::BrowserHostExtension* childObject (QObject*); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class BrowserHostExtension + + +%If ( KDE_3_1_0 - ) + +class LiveConnectExtension : QObject +{ +%TypeHeaderCode +#include +%End + + +public: + + enum Type + { + TypeVoid, + TypeBool, + TypeFunction, + TypeNumber, + TypeObject, + TypeString + }; + +//ig typedef QValueList> ArgList; + LiveConnectExtension (KParts::ReadOnlyPart* /TransferThis/, const char* = 0); + virtual bool get (const ulong, const QString&, KParts::LiveConnectExtension::Type&, ulong&, QString&); + virtual bool put (const ulong, const QString&, const QString&); + virtual bool call (const ulong, const QString&, const QStringList&, KParts::LiveConnectExtension::Type&, ulong&, QString&); + virtual void unregister (const ulong); + static KParts::LiveConnectExtension* childObject (QObject*); + +signals: +//ig virtual void partEvent (const ulong, const QString&, const KParts::LiveConnectExtension::ArgList&); + +}; // class LiveConnectExtension + +%End + +}; // namespace KParts + + +%If ( - KDE_3_5_3 ) +//ig typedef QPtrList KFileItemList; +%End + +//force +QMap testQMapQCStringInt (QMap); +%MethodCode +//takes dict | (QMap) +//returns (QMap) + + sipRes = a0; +%End + +//end + + +%MappedType QMap +//converts a Python dict of QCString:QCString +{ +%TypeHeaderCode +#include +%End + +%ConvertFromTypeCode + // Convert to a Python dict + + if (!sipCpp) + return PyDict_New(); + + PyObject *dict; + + // Create the dictionary. + + if ((dict = PyDict_New()) == NULL) + return NULL; + + // Get it. + + const QMap cppmap = *sipCpp; + QMap::ConstIterator it; + + for (it = cppmap.begin (); it != cppmap.end (); ++it) + { + QCString acpp = it.key (); + QCString bcpp = it.data (); + PyObject *ainst; + PyObject *binst = NULL; + if (((ainst = sipConvertFromNewType(new QCString (acpp), sipType_QCString, NULL)) == NULL) + || ((binst = sipConvertFromNewType(new QCString (bcpp), sipType_QCString, NULL)) == NULL) + || (PyDict_SetItem (dict, ainst, binst) < 0)) + { + Py_XDECREF (ainst); + Py_XDECREF (binst); + Py_DECREF (dict); + return NULL; + } + } + + return dict; +%End + + +%ConvertToTypeCode + // Convert a Python dictionary to a QMap on the heap. + + if (sipIsErr == NULL) + return PyDict_Check(sipPy); + + QMap *cppmap = new QMap; + + PyObject *aelem, *belem; + SIP_SSIZE_T pos = 0; + QCString *acpp; + QCString *bcpp; + + while (PyDict_Next(sipPy, &pos, &aelem, &belem)) + { + int iserr = 0; + + acpp = (QCString *)sipForceConvertToType(aelem, sipType_QCString, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr); + bcpp = (QCString *)sipForceConvertToType(belem, sipType_QCString, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + *sipIsErr = 1; + delete cppmap; + return 0; + } + + cppmap->insert (*acpp, *bcpp); + } + + *sipCppPtr = cppmap; + + return 1; +%End +}; + + +%MappedType QMap +//converts a Python dict of QCString:int +{ +%TypeHeaderCode +#include +%End + +%ConvertFromTypeCode + // Convert to a Python dict + + if (!sipCpp) + return PyDict_New(); + + PyObject *dict; + + // Create the dictionary. + + if ((dict = PyDict_New()) == NULL) + return NULL; + + // Get it. + + const QMap cppmap = *sipCpp; + QMap::ConstIterator it; + + for (it = cppmap.begin (); it != cppmap.end (); ++it) + { + QCString acpp = it.key (); + int bcpp = it.data (); + PyObject *ainst; + PyObject *binst = NULL; + if (((ainst = sipConvertFromNewType(new QCString (acpp), sipType_QCString, NULL)) == NULL) + || ((binst = PyInt_FromLong (bcpp)) < 0) + || (PyDict_SetItem (dict, ainst, binst) < 0)) + { + Py_XDECREF (ainst); + Py_XDECREF (binst); + Py_DECREF (dict); + return NULL; + } + } + + return dict; +%End + + +%ConvertToTypeCode + // Convert a Python dictionary to a QMap on the heap. + + if (sipIsErr == NULL) + return PyDict_Check(sipPy); + + QMap *cppmap = new QMap; + + PyObject *aelem, *belem; + SIP_SSIZE_T pos = 0; + QCString *acpp; + int bcpp; + + while (PyDict_Next(sipPy, &pos, &aelem, &belem)) + { + int iserr = 0; + + acpp = (QCString *)sipForceConvertToType(aelem, sipType_QCString, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr || !PyInt_Check (belem)) + { + *sipIsErr = 1; + delete cppmap; + return 0; + } + + bcpp = PyInt_AS_LONG (belem); + + cppmap->insert (*acpp, bcpp); + } + + *sipCppPtr = cppmap; + + return 1; +%End +}; + + +%MappedType QPtrList +//converts a Python list of KParts.ReadOnlyPart +{ +%TypeHeaderCode +#include +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New (0); + + PyObject *pylist; + + // Create the list + + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + // Get it. + + QPtrList *cpplist = (QPtrList *)sipCpp; + KParts::ReadOnlyPart *cpp; + PyObject *inst; + + // the loop depends on the type of iterator the tmeplate makes available + for(cpp = cpplist->first (); cpp != 0; cpp = cpplist->next () ) + { + if (((inst = sipConvertFromInstance (cpp, sipClass_KParts_ReadOnlyPart, sipTransferObj)) == NULL) + || PyList_Append (pylist, inst) < 0) + { + Py_DECREF (pylist); + return NULL; + } + } + + return pylist; +%End + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QPtrList *cpplist = new QPtrList; + + PyObject *elem; + KParts::ReadOnlyPart *cpp; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + cpp = (KParts::ReadOnlyPart *)sipForceConvertToType(elem, sipType_KParts_ReadOnlyPart, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + *sipIsErr = 1; + delete cpplist; + return 0; + } + + cpplist->append (cpp); + } + + *sipCppPtr = cpplist; + + return 1; +%End +}; + + diff --git a/sip/kparts/browserinterface.sip b/sip/kparts/browserinterface.sip new file mode 100644 index 0000000..06785f6 --- /dev/null +++ b/sip/kparts/browserinterface.sip @@ -0,0 +1,43 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kparts version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +namespace KParts +{ + +class BrowserInterface : QObject +{ +%TypeHeaderCode +#include +%End + + +public: + BrowserInterface (QObject* /TransferThis/, const char* = 0); + void callMethod (const char*, const QVariant&); + +}; // class BrowserInterface + +}; // namespace KParts + diff --git a/sip/kparts/browserrun.sip b/sip/kparts/browserrun.sip new file mode 100644 index 0000000..8002ce7 --- /dev/null +++ b/sip/kparts/browserrun.sip @@ -0,0 +1,117 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kparts version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +namespace KParts +{ + +class BrowserRun : KRun +{ +%TypeHeaderCode +#include +%End + + +public: + BrowserRun (const KURL&, const KParts::URLArgs&, KParts::ReadOnlyPart*, QWidget*, bool, bool); + +%If ( KDE_3_1_0 - ) + BrowserRun (const KURL&, const KParts::URLArgs&, KParts::ReadOnlyPart*, QWidget*, bool, bool, bool); +%End + + KURL url () const; + +%If ( KDE_3_1_0 - ) + bool hideErrorDialog () const; + +%If ( KDE_3_2_0 - ) + QString suggestedFilename () const; + +%If ( KDE_3_5_2 - ) + QString contentDisposition () const; + bool serverSuggestsSave () const; +%End + +%End + +%End + + + enum AskSaveResult + { + Save, + Open, + Cancel + }; + + static KParts::BrowserRun::AskSaveResult askSave (const KURL&, KService::Ptr, const QString&, const QString& = QString ::null ); + +%If ( KDE_3_5_2 - ) + + enum AskEmbedOrSaveFlags + { + InlineDisposition, + AttachmentDisposition + }; + +%End + + +%If ( KDE_3_2_0 - ) + static KParts::BrowserRun::AskSaveResult askEmbedOrSave (const KURL&, const QString&, const QString& = QString ::null , int = 0); +%End + + virtual void save (const KURL&, const QString&); + +%If ( KDE_3_2_0 - ) + static void simpleSave (const KURL&, const QString&, QWidget*); +%End + + static void simpleSave (const KURL&, const QString&); + static bool allowExecution (const QString&, const KURL&); + static bool isExecutable (const QString&); + static bool isTextExecutable (const QString&); + +protected: + virtual void scanFile (); + +%If ( KDE_3_1_0 - ) + virtual void init (); +%End + + virtual void handleError (KIO::Job*); +//ig KParts::BrowserRun::NonEmbeddableResult handleNonEmbeddable (const QString&); + +protected slots: + void slotBrowserScanFinished (KIO::Job*); + void slotBrowserMimetype (KIO::Job*, const QString&); + void slotCopyToTempFileResult (KIO::Job*); + virtual void slotStatResult (KIO::Job*); + +protected: + +}; // class BrowserRun + +}; // namespace KParts + diff --git a/sip/kparts/dockmainwindow.sip b/sip/kparts/dockmainwindow.sip new file mode 100644 index 0000000..4d6d693 --- /dev/null +++ b/sip/kparts/dockmainwindow.sip @@ -0,0 +1,49 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kparts version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +namespace KParts +{ + +class DockMainWindow : KDockMainWindow, KParts::PartBase +{ +%TypeHeaderCode +#include +%End + + +public: + DockMainWindow (QWidget* /TransferThis/ = 0, const char* = 0, WFlags = WDestructiveClose ); + +protected slots: + void createGUI (KParts::Part*); + virtual void slotSetStatusBarText (const QString&); + +protected: + virtual void createShellGUI (bool = 1); + +}; // class DockMainWindow + +}; // namespace KParts + diff --git a/sip/kparts/event.sip b/sip/kparts/event.sip new file mode 100644 index 0000000..c1014ff --- /dev/null +++ b/sip/kparts/event.sip @@ -0,0 +1,94 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kparts version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +namespace KParts +{ + +class Event : QCustomEvent +{ +%TypeHeaderCode +#include +%End + + +public: + Event (const char*); + virtual const char* eventName () const; + static bool test (const QEvent*); + static bool test (const QEvent*, const char*); + +}; // class Event + + +class GUIActivateEvent : KParts::Event +{ +%TypeHeaderCode +#include +%End + + +public: + GUIActivateEvent (bool); + bool activated () const; + static bool test (const QEvent*); + +}; // class GUIActivateEvent + + +class PartActivateEvent : KParts::Event +{ +%TypeHeaderCode +#include +%End + + +public: + PartActivateEvent (bool, KParts::Part*, QWidget*); + bool activated () const; + KParts::Part* part () const; + QWidget* widget () const; + static bool test (const QEvent*); + +}; // class PartActivateEvent + + +class PartSelectEvent : KParts::Event +{ +%TypeHeaderCode +#include +%End + + +public: + PartSelectEvent (bool, KParts::Part*, QWidget*); + bool selected () const; + KParts::Part* part () const; + QWidget* widget () const; + static bool test (const QEvent*); + +}; // class PartSelectEvent + +}; // namespace KParts + diff --git a/sip/kparts/factory.sip b/sip/kparts/factory.sip new file mode 100644 index 0000000..f97cebf --- /dev/null +++ b/sip/kparts/factory.sip @@ -0,0 +1,53 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kparts version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +namespace KParts +{ + +class Factory : KLibFactory +{ +%TypeHeaderCode +#include +%End + + +public: + Factory (QObject* /TransferThis/ = 0, const char* = 0); + KParts::Part* createPart (QWidget* = 0, const char* = 0, QObject* /Transfer/ = 0, const char* = 0, const char* = "KParts::Part", const QStringList& = QStringList ()); + +%If ( KDE_3_2_0 - ) + const KInstance* partInstance (); + static const KInstance* partInstanceFromLibrary (const QCString&); +%End + + +protected: + virtual KParts::Part* createPartObject (QWidget* = 0, const char* = 0, QObject* /Transfer/ = 0, const char* = 0, const char* = "KParts::Part", const QStringList& = QStringList ()); + virtual QObject* createObject (QObject* /Transfer/ = 0, const char* = 0, const char* = "QObject", const QStringList& = QStringList ()); + +}; // class Factory + +}; // namespace KParts + diff --git a/sip/kparts/genericfactory.sip b/sip/kparts/genericfactory.sip new file mode 100644 index 0000000..b76a574 --- /dev/null +++ b/sip/kparts/genericfactory.sip @@ -0,0 +1,25 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kparts version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + diff --git a/sip/kparts/historyprovider.sip b/sip/kparts/historyprovider.sip new file mode 100644 index 0000000..ec0bafb --- /dev/null +++ b/sip/kparts/historyprovider.sip @@ -0,0 +1,54 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kparts version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +namespace KParts +{ + +class HistoryProvider : QObject +{ +%TypeHeaderCode +#include +%End + + +public: + static KParts::HistoryProvider* self (); + HistoryProvider (QObject* /TransferThis/ = 0, const char* = 0); + virtual bool contains (const QString&) const; + virtual void insert (const QString&); + virtual void remove (const QString&); + virtual void clear (); + +signals: + void cleared (); + void updated (const QStringList&); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class HistoryProvider + +}; // namespace KParts + diff --git a/sip/kparts/kparts-kde320.diff b/sip/kparts/kparts-kde320.diff new file mode 100644 index 0000000..8ad0226 --- /dev/null +++ b/sip/kparts/kparts-kde320.diff @@ -0,0 +1 @@ ++ %Include statusbarextension.sip diff --git a/sip/kparts/kparts-kde321.diff b/sip/kparts/kparts-kde321.diff new file mode 100644 index 0000000..8ad0226 --- /dev/null +++ b/sip/kparts/kparts-kde321.diff @@ -0,0 +1 @@ ++ %Include statusbarextension.sip diff --git a/sip/kparts/kparts-kde322.diff b/sip/kparts/kparts-kde322.diff new file mode 100644 index 0000000..8ad0226 --- /dev/null +++ b/sip/kparts/kparts-kde322.diff @@ -0,0 +1 @@ ++ %Include statusbarextension.sip diff --git a/sip/kparts/kparts-kde323.diff b/sip/kparts/kparts-kde323.diff new file mode 100644 index 0000000..8ad0226 --- /dev/null +++ b/sip/kparts/kparts-kde323.diff @@ -0,0 +1 @@ ++ %Include statusbarextension.sip diff --git a/sip/kparts/kparts-kde330.diff b/sip/kparts/kparts-kde330.diff new file mode 100644 index 0000000..8ad0226 --- /dev/null +++ b/sip/kparts/kparts-kde330.diff @@ -0,0 +1 @@ ++ %Include statusbarextension.sip diff --git a/sip/kparts/kparts-kde331.diff b/sip/kparts/kparts-kde331.diff new file mode 100644 index 0000000..8ad0226 --- /dev/null +++ b/sip/kparts/kparts-kde331.diff @@ -0,0 +1 @@ ++ %Include statusbarextension.sip diff --git a/sip/kparts/kparts-kde332.diff b/sip/kparts/kparts-kde332.diff new file mode 100644 index 0000000..8ad0226 --- /dev/null +++ b/sip/kparts/kparts-kde332.diff @@ -0,0 +1 @@ ++ %Include statusbarextension.sip diff --git a/sip/kparts/kparts-kde340.diff b/sip/kparts/kparts-kde340.diff new file mode 100644 index 0000000..8ad0226 --- /dev/null +++ b/sip/kparts/kparts-kde340.diff @@ -0,0 +1 @@ ++ %Include statusbarextension.sip diff --git a/sip/kparts/kparts-kde341.diff b/sip/kparts/kparts-kde341.diff new file mode 100644 index 0000000..8ad0226 --- /dev/null +++ b/sip/kparts/kparts-kde341.diff @@ -0,0 +1 @@ ++ %Include statusbarextension.sip diff --git a/sip/kparts/kparts-kde342.diff b/sip/kparts/kparts-kde342.diff new file mode 100644 index 0000000..8ad0226 --- /dev/null +++ b/sip/kparts/kparts-kde342.diff @@ -0,0 +1 @@ ++ %Include statusbarextension.sip diff --git a/sip/kparts/kparts-kde343.diff b/sip/kparts/kparts-kde343.diff new file mode 100644 index 0000000..8ad0226 --- /dev/null +++ b/sip/kparts/kparts-kde343.diff @@ -0,0 +1 @@ ++ %Include statusbarextension.sip diff --git a/sip/kparts/kparts-kde350.diff b/sip/kparts/kparts-kde350.diff new file mode 100644 index 0000000..8ad0226 --- /dev/null +++ b/sip/kparts/kparts-kde350.diff @@ -0,0 +1 @@ ++ %Include statusbarextension.sip diff --git a/sip/kparts/kparts-kde351.diff b/sip/kparts/kparts-kde351.diff new file mode 100644 index 0000000..8ad0226 --- /dev/null +++ b/sip/kparts/kparts-kde351.diff @@ -0,0 +1 @@ ++ %Include statusbarextension.sip diff --git a/sip/kparts/kparts-kde352.diff b/sip/kparts/kparts-kde352.diff new file mode 100644 index 0000000..8ad0226 --- /dev/null +++ b/sip/kparts/kparts-kde352.diff @@ -0,0 +1 @@ ++ %Include statusbarextension.sip diff --git a/sip/kparts/kparts-kde353.diff b/sip/kparts/kparts-kde353.diff new file mode 100644 index 0000000..8ad0226 --- /dev/null +++ b/sip/kparts/kparts-kde353.diff @@ -0,0 +1 @@ ++ %Include statusbarextension.sip diff --git a/sip/kparts/kpartsmod.sip.in b/sip/kparts/kpartsmod.sip.in new file mode 100644 index 0000000..3806114 --- /dev/null +++ b/sip/kparts/kpartsmod.sip.in @@ -0,0 +1,51 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kparts version KDE_3_5_2 + +%Copying + + This software is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License as + published by the Free Software Foundation; either version 2 of + the License, or (at your option) any later version. + + This software is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public + License along with this library; see the file COPYING. + If not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +%End + +%Module kparts + +%Import qt/qtmod.sip +%Import qtxml/qtxmlmod.sip +%Import dcopmod.sip +%Import kdecoremod.sip +%Import kdefxmod.sip +%Import kdeuimod.sip +%Import kiomod.sip + +%Include browserextension.sip +%Include browserinterface.sip +%Include browserrun.sip +%Include dockmainwindow.sip +%Include event.sip +%Include factory.sip +%Include genericfactory.sip +%Include historyprovider.sip +%Include mainwindow.sip +%Include part.sip +%Include partmanager.sip +%Include plugin.sip +@mark@ diff --git a/sip/kparts/mainwindow.sip b/sip/kparts/mainwindow.sip new file mode 100644 index 0000000..3fa7d3e --- /dev/null +++ b/sip/kparts/mainwindow.sip @@ -0,0 +1,60 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kparts version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +namespace KParts +{ + +class MainWindow : KMainWindow, KParts::PartBase +{ +%TypeHeaderCode +#include +%End + + +public: + MainWindow (QWidget* /TransferThis/, const char* = 0, WFlags = WType_TopLevel |WDestructiveClose ); + MainWindow (const char* = 0, WFlags = WDestructiveClose ); + +%If ( KDE_3_2_0 - ) + MainWindow (int, QWidget* /TransferThis/, const char* = 0, WFlags = WType_TopLevel |WDestructiveClose ); +%End + + +protected slots: + void createGUI (KParts::Part*); + virtual void slotSetStatusBarText (const QString&); + +%If ( KDE_3_4_0 - ) + void saveNewToolbarConfig (); +%End + + +protected: + virtual void createShellGUI (bool = 1); + +}; // class MainWindow + +}; // namespace KParts + diff --git a/sip/kparts/part.sip b/sip/kparts/part.sip new file mode 100644 index 0000000..3a61655 --- /dev/null +++ b/sip/kparts/part.sip @@ -0,0 +1,312 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kparts version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +namespace KParts +{ + +class PartBase : KXMLGUIClient +{ +%TypeHeaderCode +#include +%End + + +public: + PartBase (); + void setPartObject (QObject*); + QObject* partObject () const; + +protected: + virtual void setInstance (KInstance*); + virtual void setInstance (KInstance*, bool); + +%If ( KDE_3_1_0 - ) + void loadPlugins (QObject* /Transfer/, KXMLGUIClient*, KInstance*); +//ig void setPluginLoadingMode (KParts::PartBase::PluginLoadingMode); +%End + + +}; // class PartBase + + +class Part : QObject, KParts::PartBase +{ +%TypeHeaderCode +#include +%End + + +public: + Part (QObject* /TransferThis/ = 0, const char* = 0); + virtual void embed (QWidget*); + virtual QWidget* widget (); + virtual void setManager (KParts::PartManager*); + KParts::PartManager* manager (); + virtual KParts::Part* hitTest (QWidget*, const QPoint&); + virtual void setSelectable (bool); + bool isSelectable () const; + +signals: + void setWindowCaption (const QString&); + void setStatusBarText (const QString&); + +protected: + virtual void setWidget (QWidget*); + virtual void customEvent (QCustomEvent*); + virtual void partActivateEvent (KParts::PartActivateEvent*); + virtual void partSelectEvent (KParts::PartSelectEvent*); + virtual void guiActivateEvent (KParts::GUIActivateEvent*); + QWidget* hostContainer (const QString&); + +//force +%ConvertToSubClassCode + // The table of Python class objects indexed by their names. The table + // must be sorted by name. + + static sipStringTypeClassMap map[] = { + {sipName_BrowserExtension, &sipClass_KParts_BrowserExtension}, + {sipName_BrowserHostExtension, &sipClass_KParts_BrowserHostExtension}, + {sipName_BrowserInterface, &sipClass_KParts_BrowserInterface}, + {sipName_BrowserRun, &sipClass_KParts_BrowserRun}, + {sipName_Factory, &sipClass_KParts_Factory}, + {sipName_HistoryProvider, &sipClass_KParts_HistoryProvider}, +#if KDE_VERSION >= 0x030100 + {sipName_LiveConnectExtension, &sipClass_KParts_LiveConnectExtension}, +#endif + {sipName_MainWindow, &sipClass_KParts_MainWindow}, + {sipName_Part, &sipClass_KParts_Part}, + {sipName_PartManager, &sipClass_KParts_PartManager}, + {sipName_Plugin, &sipClass_KParts_Plugin}, + {sipName_ReadOnlyPart, &sipClass_KParts_ReadOnlyPart}, + {sipName_ReadWritePart, &sipClass_KParts_ReadWritePart}, + }; + + sipClass = sipMapStringToClass(sipCpp -> className(),map,sizeof (map)/sizeof (map[0])); +%End +//end + +}; // class Part + +//doc +// Even though this is an abstract class, you can use +// createReadOnlyPart (see below) without creating +// a concrete instance of this class. +//end + +class ReadOnlyPart : KParts::Part +{ +%TypeHeaderCode +#include +%End + + +public: + ReadOnlyPart (QObject* /TransferThis/ = 0, const char* = 0); + void setProgressInfoEnabled (bool); + bool isProgressInfoEnabled () const; + void showProgressInfo (bool); + +public slots: + virtual bool openURL (const KURL&); + +public: + KURL url () const; + virtual bool closeURL (); + +public: + bool openStream (const QString&, const KURL&); + bool writeStream (const QByteArray&); + bool closeStream (); + +signals: + void started (KIO::Job*); + void completed (); + void completed (bool); + void canceled (const QString&); + +protected slots: + void slotJobFinished (KIO::Job*); + +protected: + virtual bool openFile () = 0; + void abortLoad (); + virtual void guiActivateEvent (KParts::GUIActivateEvent*); + +}; // class ReadOnlyPart + +//doc +// Even though this is an abstract class, you can use +// createReadWritePart (see below) without creating a concrete instance +// of this class. +//end + +class ReadWritePart : KParts::ReadOnlyPart +{ +%TypeHeaderCode +#include +%End + + +public: + ReadWritePart (QObject* /TransferThis/ = 0, const char* = 0); + bool isReadWrite () const; + virtual void setReadWrite (bool = 1); + bool isModified () const; + +%If ( KDE_3_1_3 - ) + bool queryClose (); +%End + + virtual bool closeURL (); + +%If ( KDE_3_1_3 - ) + bool closeURL (bool); +%End + + virtual bool saveAs (const KURL&); + virtual void setModified (bool); + +signals: + +%If ( KDE_3_2_0 - ) +//ig void sigQueryClose (bool*, bool*); +%End + + +public slots: + virtual void setModified (); + virtual bool save (); + +%If ( KDE_3_2_0 - ) + bool waitSaveComplete (); +%End + + +protected: + virtual bool saveFile () = 0; + virtual bool saveToURL (); + +protected slots: + void slotUploadFinished (KIO::Job*); + +}; // class ReadWritePart + +}; // namespace KParts + +//force +//doc +// +// This is a PyKDE-only function that handles the machinery necessary +// to create a KParts::ReadOnlyPart. It executes the following C++ code: +// +//
+// KParts::ReadOnlyPart *createReadOnlyPart (const QString& lib, QObject *parent,
+//                                           const QString& name, const char *className,
+//                                           const QStringList &args)
+// {
+//    KLibFactory *factory = KLibLoader::self ()->factory ((const char *)lib);
+//
+//    if (factory)
+//            return static_cast<KParts::ReadOnlyPart*> (factory->create (parent,
+//                                               (const char *)name, className, args));
+//        else
+//                return NULL;
+// 
+// +// Notice that it takes care of creating the KLibFactory for you, and +// returns the part cast to type KParts::ReadOnlyPart. The actual +// part has a different class (derived from KParts::ReadOnlyPart), +// and calls to openURL or openFile will use the part's overloaded +// methods. Currently it isn't possible to call KParts::ReadOnlyPart::openURL +// if it has been overloaded. +// +// +// Usage: KParts.createReadOnlyPart (lib, parent, name, className, args) +// +//end +KParts::ReadOnlyPart* createReadOnlyPart (const QString&, QObject* = 0, const QString& = QString ::null , const char* = "KParts::ReadOnlyPart", const QStringList& = QStringList ()); +//doc +// +// This is a PyKDE-only function that handles the machinery necessary +// to create a KParts::ReadWritePart. It executes the following C++ code: +// +//
+// KParts::ReadWritePart *createReadWritePart (const QString& lib, QObject *parent,
+//                                           const QString& name, const char *className,
+//                                           const QStringList &args)
+// {
+//     KLibFactory *factory = KLibLoader::self ()->factory ((const char *)lib);
+//
+//     if (factory)
+//             return static_cast<KParts::ReadWritePart*> (factory->create (parent,
+//                                                (const char *)name, className, args));
+//         else
+//                 return NULL;
+// 
+// +// Notice that it takes care of creating the KLibFactory for you, and +// returns the part cast to type KParts::ReadWritePart. The actual +// part has a different class (derived from KParts::ReadWritePart), +// and calls to openURL or openFile will use the part's overloaded +// methods. Currently it isn't possible to call KParts::ReadWritePart::openURL +// if it has been overloaded. +// +// +// Usage: KParts.createReadWritePart (lib, parent, name, className, args) +// +//end +KParts::ReadWritePart* createReadWritePart (const QString&, QObject* = 0, const QString& = QString ::null , const char* = "KParts::ReadWritePart", const QStringList& = QStringList ()); +//end + + +%ModuleCode +#include + +KParts::ReadOnlyPart *createReadOnlyPart (const QString& lib, QObject *parent, const QString& name, const char *className, + const QStringList &args) +{ + KParts::ReadOnlyPart *res = NULL; + + KLibFactory *factory = KLibLoader::self ()->factory ((const char *)lib); + + if (factory) + res = static_cast (factory->create (parent, (const char *)name, className, args)); + + return res; +} + +KParts::ReadWritePart *createReadWritePart (const QString& lib, QObject *parent, const QString& name, const char *className, + const QStringList &args) +{ + KParts::ReadWritePart *res = NULL; + + KLibFactory *factory = KLibLoader::self ()->factory ((const char *)lib); + + if (factory) + res = static_cast (factory->create (parent, (const char *)name, className, args)); + + return res; +} +%End diff --git a/sip/kparts/partmanager.sip b/sip/kparts/partmanager.sip new file mode 100644 index 0000000..4865323 --- /dev/null +++ b/sip/kparts/partmanager.sip @@ -0,0 +1,181 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kparts version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +namespace KParts +{ + +class PartManager : QObject +{ +%TypeHeaderCode +#include +%End + + +public: + + enum SelectionPolicy + { + Direct, + TriState + }; + + +%If ( KDE_3_3_0 - ) + + enum Reason + { + ReasonLeftClick, + ReasonMidClick, + ReasonRightClick, + NoReason + }; + +%End + + PartManager (QWidget* /TransferThis/, const char* = 0); + PartManager (QWidget*, QObject* /TransferThis/, const char* = 0); + void setSelectionPolicy (KParts::PartManager::SelectionPolicy); + KParts::PartManager::SelectionPolicy selectionPolicy () const; + void setAllowNestedParts (bool); + bool allowNestedParts () const; + void setIgnoreScrollBars (bool); + bool ignoreScrollBars () const; + +%If ( KDE_3_1_0 - ) + void setActivationButtonMask (short); + short activationButtonMask () const; +%End + + virtual bool eventFilter (QObject*, QEvent*); + virtual void addPart (KParts::Part*, bool = 1); + virtual void removePart (KParts::Part*); + virtual void replacePart (KParts::Part*, KParts::Part*, bool = 1); + virtual void setActivePart (KParts::Part*, QWidget* = 0); + virtual KParts::Part* activePart () const; + virtual QWidget* activeWidget () const; + virtual void setSelectedPart (KParts::Part*, QWidget* = 0); + virtual KParts::Part* selectedPart () const; + virtual QWidget* selectedWidget () const; + const QPtrList* parts () const; + void addManagedTopLevelWidget (const QWidget*); + void removeManagedTopLevelWidget (const QWidget*); + +%If ( KDE_3_3_0 - ) + int reason () const; +%End + + +signals: + void partAdded (KParts::Part*); + void partRemoved (KParts::Part*); + void activePartChanged (KParts::Part*); + +protected: + virtual void setActiveInstance (KInstance*); + +protected slots: + void slotObjectDestroyed (); + void slotWidgetDestroyed (); + void slotManagedTopLevelWidgetDestroyed (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class PartManager + +}; // namespace KParts + + + +%MappedType QPtrList +//converts a Python list of KParts.Part +{ +%TypeHeaderCode +#include +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New (0); + + PyObject *pylist; + + // Create the list + + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + // Get it. + + QPtrList *cpplist = (QPtrList *)sipCpp; + KParts::Part *cpp; + PyObject *inst; + + // the loop depends on the type of iterator the tmeplate makes available + for(cpp = cpplist->first (); cpp != 0; cpp = cpplist->next () ) + { + if (((inst = sipConvertFromInstance (cpp, sipClass_KParts_Part, sipTransferObj)) == NULL) + || PyList_Append (pylist, inst) < 0) + { + Py_DECREF (pylist); + return NULL; + } + } + + return pylist; +%End + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QPtrList *cpplist = new QPtrList; + + PyObject *elem; + KParts::Part *cpp; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + cpp = (KParts::Part *)sipForceConvertToType(elem, sipType_KParts_Part, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + *sipIsErr = 1; + delete cpplist; + return 0; + } + + cpplist->append (cpp); + } + + *sipCppPtr = cpplist; + + return 1; +%End +}; + + diff --git a/sip/kparts/plugin.sip b/sip/kparts/plugin.sip new file mode 100644 index 0000000..145b6f2 --- /dev/null +++ b/sip/kparts/plugin.sip @@ -0,0 +1,210 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kparts version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +namespace KParts +{ + +class Plugin : QObject, KXMLGUIClient +{ +%TypeHeaderCode +#include +%End + + +public: + + class PluginInfo + { + + public: + QString m_relXMLFileName; + QString m_absXMLFileName; + QDomDocument m_document; + + }; // class PluginInfo + + +public: + Plugin (QObject* /TransferThis/ = 0, const char* = 0); + virtual QString xmlFile () const; + virtual QString localXMLFile () const; + static void loadPlugins (QObject* /Transfer/, const KInstance*); + static void loadPlugins (QObject* /Transfer/, const QValueList&); + static void loadPlugins (QObject* /Transfer/, const QValueList&, const KInstance*); + +%If ( KDE_3_1_0 - ) + static void loadPlugins (QObject* /Transfer/, KXMLGUIClient*, KInstance*, bool = 1); +%End + + static QPtrList pluginObjects (QObject* /Transfer/); + +protected: + static QValueList pluginInfos (const KInstance*); + static KParts::Plugin* loadPlugin (QObject* /Transfer/, const char*); + virtual void setInstance (KInstance*); + +}; // class Plugin + +}; // namespace KParts + + + +%MappedType QValueList +//converts a Python list of KParts.Plugin.PluginInfo +{ +%TypeHeaderCode +#include +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New(0); + + // Create the list + PyObject *pylist; + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + QValueList *cpplist = (QValueList *)sipCpp; + PyObject *inst; + + // Get it. + QValueList::Iterator it; + for( it = cpplist->begin(); it != cpplist->end(); ++it ) + { + if (((inst = sipConvertFromNewType(new KParts::Plugin::PluginInfo(*it), sipType_KParts_Plugin_PluginInfo, NULL)) == NULL) + || PyList_Append (pylist, inst) < 0) + { + Py_DECREF (pylist); + return NULL; + } + } + + return pylist; +%End + + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QValueList *cpplist = new QValueList; + + PyObject *elem; + KParts::Plugin::PluginInfo *cpp; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + cpp = (KParts::Plugin::PluginInfo *)sipForceConvertToType(elem, sipType_KParts_Plugin_PluginInfo, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + *sipIsErr = 1; + delete cpplist; + return 0; + } + + cpplist->append (*cpp); + } + + *sipCppPtr = cpplist; + + return 1; +%End +}; + + +%MappedType QPtrList +//converts a Python list of KParts.Plugin +{ +%TypeHeaderCode +#include +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New (0); + + PyObject *pylist; + + // Create the list + + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + // Get it. + + QPtrList *cpplist = (QPtrList *)sipCpp; + KParts::Plugin *cpp; + PyObject *inst; + + // the loop depends on the type of iterator the tmeplate makes available + for(cpp = cpplist->first (); cpp != 0; cpp = cpplist->next () ) + { + if (((inst = sipConvertFromInstance (cpp, sipClass_KParts_Plugin, sipTransferObj)) == NULL) + || PyList_Append (pylist, inst) < 0) + { + Py_DECREF (pylist); + return NULL; + } + } + + return pylist; +%End + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QPtrList *cpplist = new QPtrList; + + PyObject *elem; + KParts::Plugin *cpp; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + cpp = (KParts::Plugin *)sipForceConvertToType(elem, sipType_KParts_Plugin, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + *sipIsErr = 1; + delete cpplist; + return 0; + } + + cpplist->append (cpp); + } + + *sipCppPtr = cpplist; + + return 1; +%End +}; + + diff --git a/sip/kparts/statusbarextension.sip b/sip/kparts/statusbarextension.sip new file mode 100644 index 0000000..99e5129 --- /dev/null +++ b/sip/kparts/statusbarextension.sip @@ -0,0 +1,52 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kparts version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_2_0 - ) +namespace KParts +{ + +class StatusBarExtension : QObject +{ +%TypeHeaderCode +#include +%End + + +public: + StatusBarExtension (KParts::ReadOnlyPart* /TransferThis/, const char* = 0); + void addStatusBarItem (QWidget*, int, bool); + void removeStatusBarItem (QWidget*); + KStatusBar* statusBar () const; + void setStatusBar (KStatusBar*); + static KParts::StatusBarExtension* childObject (QObject*); + virtual bool eventFilter (QObject*, QEvent*); + +}; // class StatusBarExtension + +}; // namespace KParts + +%End + diff --git a/sip/kresources/configdialog.sip b/sip/kresources/configdialog.sip new file mode 100644 index 0000000..744e14b --- /dev/null +++ b/sip/kresources/configdialog.sip @@ -0,0 +1,52 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kresources version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_2_0 - ) +namespace KRES +{ + +class ConfigDialog : KDialogBase +{ +%TypeHeaderCode +#include +%End + + +public: + ConfigDialog (QWidget*, const QString&, KRES::Resource*, const char* = 0); + void setInEditMode (bool); + +protected slots: + void accept (); + void setReadOnly (bool); + void slotNameChanged (const QString&); + +}; // class ConfigDialog + +}; // namespace KRES + +%End + diff --git a/sip/kresources/configpage.sip b/sip/kresources/configpage.sip new file mode 100644 index 0000000..e1dbf52 --- /dev/null +++ b/sip/kresources/configpage.sip @@ -0,0 +1,48 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kresources version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_2_0 - ) +namespace KRES +{ + +class ResourcePageInfo : KShared +{ +%TypeHeaderCode +#include +%End + + +public: + ResourcePageInfo (); +//ig Manager* mManager; + KConfig* mConfig; + +}; // class ResourcePageInfo + +}; // namespace KRES + +%End + diff --git a/sip/kresources/configwidget.sip b/sip/kresources/configwidget.sip new file mode 100644 index 0000000..822fe5a --- /dev/null +++ b/sip/kresources/configwidget.sip @@ -0,0 +1,56 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kresources version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_2_0 - ) +namespace KRES +{ + +class ConfigWidget : QWidget +{ +%TypeHeaderCode +#include +%End + + +public: + ConfigWidget (QWidget* = 0, const char* = 0); + virtual void setInEditMode (bool); + +public slots: + virtual void loadSettings (KRES::Resource*) = 0; + virtual void saveSettings (KRES::Resource*) = 0; + +signals: + void setReadOnly (bool); + +protected: + +}; // class ConfigWidget + +}; // namespace KRES + +%End + diff --git a/sip/kresources/factory.sip b/sip/kresources/factory.sip new file mode 100644 index 0000000..8a35b79 --- /dev/null +++ b/sip/kresources/factory.sip @@ -0,0 +1,54 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kresources version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_2_0 - ) +namespace KRES +{ + +class Factory +{ +%TypeHeaderCode +#include +%End + + +public: + static KRES::Factory* self (const QString&); + KRES::ConfigWidget* configWidget (const QString&, QWidget* = 0); + KRES::Resource* resource (const QString&, const KConfig*); + QStringList typeNames () const; + QString typeName (const QString&) const; + QString typeDescription (const QString&) const; + +protected: + Factory (const QString&); + +}; // class Factory + +}; // namespace KRES + +%End + diff --git a/sip/kresources/kresourcesmod.sip.in b/sip/kresources/kresourcesmod.sip.in new file mode 100644 index 0000000..9e6cfd5 --- /dev/null +++ b/sip/kresources/kresourcesmod.sip.in @@ -0,0 +1,45 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kresources version KDE_3_5_2 + +%Copying + + This software is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License as + published by the Free Software Foundation; either version 2 of + the License, or (at your option) any later version. + + This software is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public + License along with this library; see the file COPYING. + If not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +%End + +%Module kresources + +%Import qt/qtmod.sip +%Import qtxml/qtxmlmod.sip +%Import dcopmod.sip +%Import kdecoremod.sip +%Import kdefxmod.sip +%Import kdeuimod.sip +%Import kiomod.sip + +%Include configdialog.sip +%Include configpage.sip +%Include configwidget.sip +%Include factory.sip +%Include resource.sip +%Include selectdialog.sip +@mark@ diff --git a/sip/kresources/resource.sip b/sip/kresources/resource.sip new file mode 100644 index 0000000..3c044b7 --- /dev/null +++ b/sip/kresources/resource.sip @@ -0,0 +1,84 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kresources version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_2_0 - ) +namespace KRES +{ + +class Resource : QObject +{ +%TypeHeaderCode +#include +#include +%End + + +public: + typedef QValueList List; + Resource (const KConfig*); + virtual void writeConfig (KConfig*); + bool open (); + void close (); + bool isOpen () const; + QString identifier () const; + QString type () const; + virtual void setReadOnly (bool); + virtual bool readOnly () const; + virtual void setResourceName (const QString&); + virtual QString resourceName () const; + void setActive (bool); + bool isActive () const; + virtual void dump () const; + +protected: + virtual bool doOpen (); + virtual void doClose (); + void setIdentifier (const QString&); + void setType (const QString&); + +}; // class Resource + + +class PluginFactoryBase : KLibFactory +{ +%TypeHeaderCode +#include +%End + + +public: + virtual KRES::Resource* resource (const KConfig*) = 0; + virtual KRES::ConfigWidget* configWidget (QWidget*) = 0; + +protected: + virtual QObject* createObject (QObject*, const char*, const char*, const QStringList&); + +}; // class PluginFactoryBase + +}; // namespace KRES + +%End + diff --git a/sip/kresources/selectdialog.sip b/sip/kresources/selectdialog.sip new file mode 100644 index 0000000..fff14f6 --- /dev/null +++ b/sip/kresources/selectdialog.sip @@ -0,0 +1,132 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kresources version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +%ModuleHeaderCode +#include +%End + + +%If ( KDE_3_2_0 - ) +namespace KRES +{ + +class SelectDialog +{ +%TypeHeaderCode +#include +%End + + +public: + SelectDialog (QPtrList, QWidget* = 0, const char* = 0); + KRES::Resource* resource (); + static KRES::Resource* getResource (QPtrList, QWidget* = 0); +//force + +private: + SelectDialog (const KRES::SelectDialog&); +//end + +}; // class SelectDialog + +}; // namespace KRES + +%End + + + +%If (KDE_3_2_0 - ) +%MappedType QPtrList +//converts a Python list of KRES::Resource +{ +%TypeHeaderCode +#include +#include +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New (0); + + PyObject *pylist; + + // Create the list + + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + // Get it. + + QPtrList *cpplist = (QPtrList *)sipCpp; + KRES::Resource *cpp; + PyObject *inst; + + // the loop depends on the type of iterator the tmeplate makes available + for(cpp = cpplist->first (); cpp != 0; cpp = cpplist->next () ) + { + if (((inst = sipConvertFromInstance (cpp, sipClass_KRES_Resource, sipTransferObj)) == NULL) + || PyList_Append (pylist, inst) < 0) + { + Py_DECREF (pylist); + return NULL; + } + } + + return pylist; +%End + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QPtrList *cpplist = new QPtrList; + + PyObject *elem; + KRES::Resource *cpp; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + cpp = (KRES::Resource *)sipForceConvertToType(elem, sipType_KRES_Resource, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + *sipIsErr = 1; + delete cpplist; + return 0; + } + + cpplist->append (cpp); + } + + *sipCppPtr = cpplist; + + return 1; +%End +}; +%End + + diff --git a/sip/kspell/ksconfig.sip b/sip/kspell/ksconfig.sip new file mode 100644 index 0000000..97bc8b5 --- /dev/null +++ b/sip/kspell/ksconfig.sip @@ -0,0 +1,214 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kspell version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KSpellConfig : QWidget +{ +%TypeHeaderCode +#include +%End + + +public: + KSpellConfig (QWidget* /TransferThis/ = 0, const char* = 0, KSpellConfig* = 0, bool = 1); + KSpellConfig (const KSpellConfig&); + +%If ( KDE_3_2_0 - ) + void fillDicts (QComboBox*, QStringList* = 0); +%End + + void setIgnoreList (QStringList); + +%If ( KDE_3_1_0 - ) + void setReplaceAllList (QStringList); +%End + + void setNoRootAffix (bool); + void setRunTogether (bool); + void setDictionary (const QString); + void setDictFromList (bool); + void setEncoding (int); + void setClient (int); + bool noRootAffix () const; + bool runTogether () const; + const QString dictionary () const; + bool dictFromList () const; + int encoding () const; + QStringList ignoreList () const; + +%If ( KDE_3_1_0 - ) + QStringList replaceAllList () const; +%End + + int client () const; + bool writeGlobalSettings (); + +%If ( KDE_3_2_0 - ) + bool readGlobalSettings (); +%End + + +protected: + void fillInDialog (); + bool interpret (QString&, QString&, QString&); + +public slots: + void activateHelp (); + +protected slots: + void sHelp (); + void sNoAff (bool); + void sRunTogether (bool); + void sDictionary (bool); + void sPathDictionary (bool); + void sSetDictionary (int); + void sChangeEncoding (int); + void sChangeClient (int); + +protected: + +signals: + void configChanged (); + +protected: + +%If ( - KDE_3_2_0 ) + bool readGlobalSettings (); +%End + + +}; // class KSpellConfig + + +%ModuleCode +#include +%End + +%If ( KDE_3_1_4 - ) + +enum Encoding +{ + KS_E_ASCII, + KS_E_LATIN1, + KS_E_LATIN2, + KS_E_LATIN3, + KS_E_LATIN4, + KS_E_LATIN5, + KS_E_LATIN7, + KS_E_LATIN8, + KS_E_LATIN9, + KS_E_LATIN13, + KS_E_LATIN15, + KS_E_UTF8, + KS_E_KOI8R, + KS_E_KOI8U, + KS_E_CP1251, + KS_E_CP1255 +}; + + +%If ( KDE_3_5_0 - ) + +enum KSpellClients +{ + KS_CLIENT_ISPELL, + KS_CLIENT_ASPELL, + KS_CLIENT_HSPELL, + KS_CLIENT_ZEMBEREK +}; + +%End + +%End + + +%If ( KDE_3_1_2 - KDE_3_5_0 ) + +enum KSpellClients +{ + KS_CLIENT_ISPELL, + KS_CLIENT_ASPELL, + KS_CLIENT_HSPELL +}; + +%End + + +%If ( KDE_3_0_3 - KDE_3_1_4 ) + +enum Encoding +{ + KS_E_ASCII, + KS_E_LATIN1, + KS_E_LATIN2, + KS_E_LATIN3, + KS_E_LATIN4, + KS_E_LATIN5, + KS_E_LATIN7, + KS_E_LATIN8, + KS_E_LATIN9, + KS_E_LATIN13, + KS_E_LATIN15, + KS_E_UTF8, + KS_E_KOI8R, + KS_E_KOI8U, + KS_E_CP1251 +}; + +%End + + +%If ( - KDE_3_1_2 ) + +enum KSpellClients +{ + KS_CLIENT_ISPELL, + KS_CLIENT_ASPELL +}; + + +%If ( - KDE_3_0_3 ) + +enum Encoding +{ + KS_E_ASCII, + KS_E_LATIN1, + KS_E_LATIN2, + KS_E_LATIN3, + KS_E_LATIN4, + KS_E_LATIN5, + KS_E_LATIN7, + KS_E_LATIN8, + KS_E_LATIN9, + KS_E_LATIN15, + KS_E_UTF8, + KS_E_KOI8R, + KS_E_KOI8U, + KS_E_CP1251, + KS_E_LATIN13 +}; + +%End +%End diff --git a/sip/kspell/kspell-kde320.diff b/sip/kspell/kspell-kde320.diff new file mode 100644 index 0000000..303f31f --- /dev/null +++ b/sip/kspell/kspell-kde320.diff @@ -0,0 +1 @@ ++ %Include ksyntaxhighlighter.sip diff --git a/sip/kspell/kspell-kde321.diff b/sip/kspell/kspell-kde321.diff new file mode 100644 index 0000000..303f31f --- /dev/null +++ b/sip/kspell/kspell-kde321.diff @@ -0,0 +1 @@ ++ %Include ksyntaxhighlighter.sip diff --git a/sip/kspell/kspell-kde322.diff b/sip/kspell/kspell-kde322.diff new file mode 100644 index 0000000..303f31f --- /dev/null +++ b/sip/kspell/kspell-kde322.diff @@ -0,0 +1 @@ ++ %Include ksyntaxhighlighter.sip diff --git a/sip/kspell/kspell-kde323.diff b/sip/kspell/kspell-kde323.diff new file mode 100644 index 0000000..5fa0372 --- /dev/null +++ b/sip/kspell/kspell-kde323.diff @@ -0,0 +1 @@ ++ %Include ksyntaxhighlighter.sip diff --git a/sip/kspell/kspell-kde330.diff b/sip/kspell/kspell-kde330.diff new file mode 100644 index 0000000..5fa0372 --- /dev/null +++ b/sip/kspell/kspell-kde330.diff @@ -0,0 +1 @@ ++ %Include ksyntaxhighlighter.sip diff --git a/sip/kspell/kspell-kde331.diff b/sip/kspell/kspell-kde331.diff new file mode 100644 index 0000000..5fa0372 --- /dev/null +++ b/sip/kspell/kspell-kde331.diff @@ -0,0 +1 @@ ++ %Include ksyntaxhighlighter.sip diff --git a/sip/kspell/kspell-kde332.diff b/sip/kspell/kspell-kde332.diff new file mode 100644 index 0000000..5fa0372 --- /dev/null +++ b/sip/kspell/kspell-kde332.diff @@ -0,0 +1 @@ ++ %Include ksyntaxhighlighter.sip diff --git a/sip/kspell/kspell-kde340.diff b/sip/kspell/kspell-kde340.diff new file mode 100644 index 0000000..5fa0372 --- /dev/null +++ b/sip/kspell/kspell-kde340.diff @@ -0,0 +1 @@ ++ %Include ksyntaxhighlighter.sip diff --git a/sip/kspell/kspell-kde341.diff b/sip/kspell/kspell-kde341.diff new file mode 100644 index 0000000..5fa0372 --- /dev/null +++ b/sip/kspell/kspell-kde341.diff @@ -0,0 +1 @@ ++ %Include ksyntaxhighlighter.sip diff --git a/sip/kspell/kspell-kde342.diff b/sip/kspell/kspell-kde342.diff new file mode 100644 index 0000000..5fa0372 --- /dev/null +++ b/sip/kspell/kspell-kde342.diff @@ -0,0 +1 @@ ++ %Include ksyntaxhighlighter.sip diff --git a/sip/kspell/kspell-kde343.diff b/sip/kspell/kspell-kde343.diff new file mode 100644 index 0000000..5fa0372 --- /dev/null +++ b/sip/kspell/kspell-kde343.diff @@ -0,0 +1 @@ ++ %Include ksyntaxhighlighter.sip diff --git a/sip/kspell/kspell-kde350.diff b/sip/kspell/kspell-kde350.diff new file mode 100644 index 0000000..5fa0372 --- /dev/null +++ b/sip/kspell/kspell-kde350.diff @@ -0,0 +1 @@ ++ %Include ksyntaxhighlighter.sip diff --git a/sip/kspell/kspell-kde351.diff b/sip/kspell/kspell-kde351.diff new file mode 100644 index 0000000..1aa2b6c --- /dev/null +++ b/sip/kspell/kspell-kde351.diff @@ -0,0 +1,3 @@ +- %Include ksconfig.sip +- %Include kspell.sip +- %Include kspelldlg.sip diff --git a/sip/kspell/kspell-kde352.diff b/sip/kspell/kspell-kde352.diff new file mode 100644 index 0000000..5fa0372 --- /dev/null +++ b/sip/kspell/kspell-kde352.diff @@ -0,0 +1 @@ ++ %Include ksyntaxhighlighter.sip diff --git a/sip/kspell/kspell-kde353.diff b/sip/kspell/kspell-kde353.diff new file mode 100644 index 0000000..5fa0372 --- /dev/null +++ b/sip/kspell/kspell-kde353.diff @@ -0,0 +1 @@ ++ %Include ksyntaxhighlighter.sip diff --git a/sip/kspell/kspell.sip b/sip/kspell/kspell.sip new file mode 100644 index 0000000..8ecf4ea --- /dev/null +++ b/sip/kspell/kspell.sip @@ -0,0 +1,190 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kspell version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KSpell : QObject +{ +%TypeHeaderCode +#include +%End + + +public: + +%If ( KDE_3_2_0 - ) + + enum spellStatus + { + Starting, + Running, + Cleaning, + Finished, + Error, + Crashed, + FinishedNoMisspellingsEncountered + }; + + + enum SpellerType + { + Text, + HTML, + TeX, + Nroff + }; + +%End + + KSpell (QWidget* /TransferThis/, const QString&, QObject*, const char*, KSpellConfig* = 0, bool = 1, bool = 0); + +%If ( KDE_3_2_0 - ) + KSpell (QWidget* /TransferThis/, const QString&, QObject*, const char*, KSpellConfig*, bool, bool, KSpell::SpellerType); +%End + + spellStatus status (); + virtual void cleanUp (); + void setAutoDelete (bool); + virtual bool check (const QString&, bool = 1); + int lastPosition (); + virtual bool checkList (QStringList*, bool = 1); + virtual bool checkWord (const QString&, bool = 0); + +%If ( KDE_3_2_0 - ) + bool checkWord (const QString&, bool, bool); +%End + + void hide (); + QStringList suggestions () const; + int dlgResult (); + void moveDlg (int, int); + int heightDlg (); + int widthDlg (); + QString intermediateBuffer () const; + virtual bool ignore (const QString&); + virtual bool addPersonal (const QString&); + KSpellConfig ksConfig () const; + void setProgressResolution (uint); + static int modalCheck (QString&); + static int modalCheck (QString&, KSpellConfig*); + void setIgnoreUpperWords (bool); + void setIgnoreTitleCase (bool); + +signals: + void misspelling (const QString&, const QStringList&, uint); + void corrected (const QString&, const QString&, uint); + void ignoreall (const QString&); + void ignoreword (const QString&); + void addword (const QString&); + +%If ( KDE_3_1_0 - ) + void replaceall (const QString&, const QString&); +%End + + void ready (KSpell*); + void progress (uint); + void done (const QString&); + void done (bool); + void death (); + +protected slots: + void KSpell2 (KProcIO*); + void checkWord2 (KProcIO*); + void checkWord3 (); + void check2 (KProcIO*); + void checkList2 (); + void checkList3a (KProcIO*); + void checkListReplaceCurrent (); + void checkList4 (); + void dialog2 (int); + void check3 (); + +%If ( KDE_3_2_0 - ) + void suggestWord (KProcIO*); +%End + + void slotStopCancel (int); + void ispellExit (KProcess*); + void emitDeath (); + void ispellErrors (KProcess*, char*, int); + +%If ( KDE_3_2_0 - ) + void checkNext (); +%End + + +signals: + void dialog3 (); + +protected: + int parseOneResponse (const QString&, QString&, QStringList&); + QString funnyWord (const QString&); + void dialog (const QString&, QStringList&, const char*); + QString replacement (); + void setUpDialog (bool = 1); + void emitProgress (); + bool cleanFputs (const QString&, bool = 1); + bool cleanFputsWord (const QString&, bool = 1); + void startIspell (); + bool writePersonalDictionary (); + +%If ( KDE_3_2_0 - ) + void initialize (QWidget*, const QString&, SIP_RXOBJ_CON, SIP_SLOT_CON (), KSpellConfig*, bool, bool, KSpell::SpellerType); +%End + + +public: + +%If ( - KDE_3_2_0 ) + + enum spellStatus + { + Starting, + Running, + Cleaning, + Finished, + Error, + Crashed + }; + + +//force +%ConvertToSubClassCode + // The table of Python class objects indexed by their names. The table + // must be sorted by name. + + static sipStringTypeClassMap map[] = { + {sipName_KSpell, &sipClass_KSpell}, + {sipName_KSpellConfig, &sipClass_KSpellConfig}, + {sipName_KSpellDlg, &sipClass_KSpellDlg}, + }; + + sipClass = sipMapStringToClass(sipCpp -> className(),map,sizeof (map)/sizeof (map[0])); +%End +//end +%End + + +}; // class KSpell + diff --git a/sip/kspell/kspelldlg.sip b/sip/kspell/kspelldlg.sip new file mode 100644 index 0000000..4621b0d --- /dev/null +++ b/sip/kspell/kspelldlg.sip @@ -0,0 +1,127 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kspell version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class KSpellDlg : KDialogBase +{ +%TypeHeaderCode +#include +%End + + +public: + KSpellDlg (QWidget* /TransferThis/, const char*, bool = 0, bool = 0); + QString replacement (); + void init (const QString&, QStringList*); + +%If ( KDE_3_2_0 - ) + void init (const QString&, QStringList*, const QString&); +%End + + void standby (); + +public slots: + void slotProgress (uint); + +protected: + virtual void closeEvent (QCloseEvent*); + void done (int); + +signals: + void command (int); + void ready (bool); + +protected slots: + void ignore (); + void add (); + void ignoreAll (); + void cancel (); + void replace (); + void replaceAll (); + +%If ( KDE_3_2_0 - ) + void suggest (); +%End + + void stop (); + +%If ( KDE_3_2_0 - ) + void slotConfigChanged (); +%End + + void textChanged (const QString&); + +%If ( KDE_3_2_0 - ) + void slotSelectionChanged (QListViewItem*); +%End + + +protected slots: + +%If ( - KDE_3_2_0 ) + void selected (int); + void highlighted (int); +%End + + +}; // class KSpellDlg + + +%ModuleCode +#include +%End + +%If ( KDE_3_2_0 - ) + +enum KS_RESULT +{ + KS_CANCEL, + KS_REPLACE, + KS_REPLACEALL, + KS_IGNORE, + KS_IGNOREALL, + KS_ADD, + KS_STOP, + KS_SUGGEST, + KS_CONFIG +}; + +%End + + +%If ( - KDE_3_2_0 ) + +enum KS_RESULT +{ + KS_CANCEL, + KS_REPLACE, + KS_REPLACEALL, + KS_IGNORE, + KS_IGNOREALL, + KS_ADD, + KS_STOP +}; + +%End diff --git a/sip/kspell/kspellmod.sip.in b/sip/kspell/kspellmod.sip.in new file mode 100644 index 0000000..added3d --- /dev/null +++ b/sip/kspell/kspellmod.sip.in @@ -0,0 +1,42 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kspell version KDE_3_5_2 + +%Copying + + This software is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License as + published by the Free Software Foundation; either version 2 of + the License, or (at your option) any later version. + + This software is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public + License along with this library; see the file COPYING. + If not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +%End + +%Module kspell + +%Import qt/qtmod.sip +%Import qtxml/qtxmlmod.sip +%Import dcopmod.sip +%Import kdecoremod.sip +%Import kdefxmod.sip +%Import kdeuimod.sip +%Import kfilemod.sip + +%Include ksconfig.sip +%Include kspell.sip +%Include kspelldlg.sip +@mark@ diff --git a/sip/kspell/ksyntaxhighlighter.sip b/sip/kspell/ksyntaxhighlighter.sip new file mode 100644 index 0000000..55d5b8e --- /dev/null +++ b/sip/kspell/ksyntaxhighlighter.sip @@ -0,0 +1,114 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kspell version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_2_0 - ) + +class KSyntaxHighlighter : QSyntaxHighlighter +{ +%TypeHeaderCode +#include +%End + + +public: + + enum SyntaxMode + { + PlainTextMode, + RichTextMode + }; + + KSyntaxHighlighter (QTextEdit*, bool = 0, const QColor& = Qt ::black , const QColor& = QColor (0x00 ,0x80 ,0x00 ), const QColor& = QColor (0x00 ,0x80 ,0x00 ), const QColor& = QColor (0x00 ,0x80 ,0x00 ), KSyntaxHighlighter::SyntaxMode = PlainTextMode ); + int highlightParagraph (const QString&, int); + +}; // class KSyntaxHighlighter + +%End + + +%If ( KDE_3_2_0 - ) + +class KSpellingHighlighter : KSyntaxHighlighter +{ +%TypeHeaderCode +#include +%End + + +public: + KSpellingHighlighter (QTextEdit*, const QColor& = Qt ::red , bool = 0, const QColor& = Qt ::black , const QColor& = QColor (0x00 ,0x80 ,0x00 ), const QColor& = QColor (0x00 ,0x80 ,0x00 ), const QColor& = QColor (0x00 ,0x80 ,0x00 )); + virtual int highlightParagraph (const QString&, int); + virtual bool isMisspelled (const QString&) = 0; + bool intraWordEditing () const; + void setIntraWordEditing (bool); + static QStringList personalWords (); + +}; // class KSpellingHighlighter + +%End + + +%If ( KDE_3_2_0 - ) + +class KDictSpellingHighlighter : QObject, KSpellingHighlighter +{ +%TypeHeaderCode +#include +%End + + +public: + KDictSpellingHighlighter (QTextEdit*, bool = 1, bool = 1, const QColor& = Qt ::red , bool = 0, const QColor& = Qt ::black , const QColor& = QColor (0x00 ,0x80 ,0x00 ), const QColor& = QColor (0x00 ,0x70 ,0x00 ), const QColor& = QColor (0x00 ,0x60 ,0x00 ), KSpellConfig* = 0); + virtual bool isMisspelled (const QString&); + static void dictionaryChanged (); + void restartBackgroundSpellCheck (); + void setActive (bool); + bool isActive () const; + void setAutomatic (bool); + bool automatic () const; + +signals: + void activeChanged (const QString&); + void newSuggestions (const QString&, const QStringList&, uint); + +protected: + QString spellKey (); + bool eventFilter (QObject*, QEvent*); + +protected slots: + void slotMisspelling (const QString&, const QStringList&, uint); + void slotCorrected (const QString&, const QString&, uint); + void slotRehighlight (); + void slotDictionaryChanged (); + void slotSpellReady (KSpell*); + void slotAutoDetection (); + void slotLocalSpellConfigChanged (); + void slotKSpellNotResponding (); + +}; // class KDictSpellingHighlighter + +%End + diff --git a/sip/kspell2/backgroundchecker.sip b/sip/kspell2/backgroundchecker.sip new file mode 100644 index 0000000..8efd997 --- /dev/null +++ b/sip/kspell2/backgroundchecker.sip @@ -0,0 +1,68 @@ +// +// Copyright 2004 Jim Bublitz +// Earlier copyrights 1998 - 2003 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kspell2 version KDE_3_3_0 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_3_0 - ) +namespace KSpell2 +{ + +class BackgroundChecker : QObject +{ +%TypeHeaderCode +#include +%End + +public: + BackgroundChecker (const Broker::Ptr&, QObject* = 0, const char* = 0); + void checkText (const QString&); + KSpell2::Filter* filter () const; + KSpell2::Broker* broker () const; + void changeLanguage (const QString&); + bool checkWord (const QString&); + QStringList suggest (const QString&) const; + +public slots: + virtual void setFilter (KSpell2::Filter*); + virtual void start (); + virtual void stop (); + virtual void continueChecking (); + +signals: + void misspelling (const QString&, int); + void done (); + +protected: + virtual QString getMoreText (); + virtual void finishedCurrentFeed (); + +protected slots: + void slotEngineDone (); + +}; // class BackgroundChecker + +}; // namespace KSpell2 + +%End + diff --git a/sip/kspell2/broker.sip b/sip/kspell2/broker.sip new file mode 100644 index 0000000..4f880e1 --- /dev/null +++ b/sip/kspell2/broker.sip @@ -0,0 +1,62 @@ +// +// Copyright 2004 Jim Bublitz +// Earlier copyrights 1998 - 2003 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kspell2 version KDE_3_3_0 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_3_0 - ) +namespace KSpell2 +{ + +class Broker : QObject, KShared +{ +%TypeHeaderCode +#include +%End + +public: + typedef KSharedPtr Ptr; + static KSpell2::Broker* openBroker (KSharedConfig* = 0); + +public: + KSpell2::DefaultDictionary* defaultDictionary () const; + KSpell2::Dictionary* dictionary (const QString& = QString ::null , const QString& = QString ::null ) const; + QStringList clients () const; + QStringList languages () const; + KSpell2::Settings* settings () const; + +signals: + void configurationChanged (); + +protected: + void changed (); + +private: + Broker (KSharedConfig*); + +}; // class Broker + +}; // namespace KSpell2 + +%End + diff --git a/sip/kspell2/configdialog.sip b/sip/kspell2/configdialog.sip new file mode 100644 index 0000000..19ed07e --- /dev/null +++ b/sip/kspell2/configdialog.sip @@ -0,0 +1,49 @@ +// +// Copyright 2004 Jim Bublitz +// Earlier copyrights 1998 - 2003 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kspell2 version KDE_3_3_0 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_3_0 - ) +namespace KSpell2 +{ + +class ConfigDialog : KDialogBase +{ +%TypeHeaderCode +#include +%End + +public: + ConfigDialog (KSpell2::Broker*, QWidget*); + +protected slots: + virtual void slotOk (); + virtual void slotApply (); + +}; // class ConfigDialog + +}; // namespace KSpell2 + +%End + diff --git a/sip/kspell2/configwidget.sip b/sip/kspell2/configwidget.sip new file mode 100644 index 0000000..402f63b --- /dev/null +++ b/sip/kspell2/configwidget.sip @@ -0,0 +1,54 @@ +// +// Copyright 2004 Jim Bublitz +// Earlier copyrights 1998 - 2003 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kspell2 version KDE_3_3_0 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_3_0 - ) +namespace KSpell2 +{ + +class ConfigWidget : QWidget +{ +%TypeHeaderCode +#include +%End + +public: + ConfigWidget (KSpell2::Broker*, QWidget*, const char* = 0); + bool backgroundCheckingButtonShown () const; + +public slots: + void save (); + void setBackgroundCheckingButtonShown (bool); + void slotDefault (); + +protected slots: + void slotChanged (); + +}; // class ConfigWidget + +}; // namespace KSpell2 + +%End + diff --git a/sip/kspell2/defaultdictionary.sip b/sip/kspell2/defaultdictionary.sip new file mode 100644 index 0000000..4d70d8b --- /dev/null +++ b/sip/kspell2/defaultdictionary.sip @@ -0,0 +1,60 @@ +// +// Copyright 2004 Jim Bublitz +// Earlier copyrights 1998 - 2003 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kspell2 version KDE_3_3_0 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_3_0 - ) +namespace KSpell2 +{ + +class DefaultDictionary : QObject, KSpell2::Dictionary +{ +%TypeHeaderCode +#include +%End + +public: + DefaultDictionary (const QString&, KSpell2::Broker*); + +public: + bool isValid () const; + virtual bool check (const QString&); + virtual QStringList suggest (const QString&); + virtual bool checkAndSuggest (const QString&, QStringList&); + virtual bool storeReplacement (const QString&, const QString&); + virtual bool addToPersonal (const QString&); + virtual bool addToSession (const QString&); + +signals: + void changed (); + +protected slots: + void defaultConfigurationChanged (); + +}; // class DefaultDictionary + +}; // namespace KSpell2 + +%End + diff --git a/sip/kspell2/dialog.sip b/sip/kspell2/dialog.sip new file mode 100644 index 0000000..4444f81 --- /dev/null +++ b/sip/kspell2/dialog.sip @@ -0,0 +1,61 @@ +// +// Copyright 2004 Jim Bublitz +// Earlier copyrights 1998 - 2003 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kspell2 version KDE_3_3_0 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_3_0 - ) +namespace KSpell2 +{ + +class Dialog : KDialogBase +{ +%TypeHeaderCode +#include +%End + +public: + Dialog (KSpell2::BackgroundChecker*, QWidget*, const char* = 0); + QString originalBuffer () const; + QString buffer () const; + void show (); + void activeAutoCorrect (bool); + +public slots: + void setBuffer (const QString&); + void setFilter (KSpell2::Filter*); + +signals: + void done (const QString&); + void misspelling (const QString&, int); + void replace (const QString&, int, const QString&); + void stop (); + void cancel (); + void autoCorrect (const QString&, const QString&); + +}; // class Dialog + +}; // namespace KSpell2 + +%End + diff --git a/sip/kspell2/dictionary.sip b/sip/kspell2/dictionary.sip new file mode 100644 index 0000000..0f33b56 --- /dev/null +++ b/sip/kspell2/dictionary.sip @@ -0,0 +1,57 @@ +// +// Copyright 2004 Jim Bublitz +// Earlier copyrights 1998 - 2003 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kspell2 version KDE_3_3_0 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_3_0 - ) +namespace KSpell2 +{ + +class Dictionary +{ +%TypeHeaderCode +#include +%End + +public: + virtual bool check (const QString&) = 0; + virtual QStringList suggest (const QString&) = 0; + virtual bool checkAndSuggest (const QString&, QStringList&) = 0; + virtual bool storeReplacement (const QString&, const QString&) = 0; + virtual bool addToPersonal (const QString&) = 0; + virtual bool addToSession (const QString&) = 0; + QString language () const; + bool isDefault () const; + +protected: + Dictionary (const QString&, bool = 0); + +protected: + +}; // class Dictionary + +}; // namespace KSpell2 + +%End + diff --git a/sip/kspell2/filter.sip b/sip/kspell2/filter.sip new file mode 100644 index 0000000..863d355 --- /dev/null +++ b/sip/kspell2/filter.sip @@ -0,0 +1,87 @@ +// +// Copyright 2004 Jim Bublitz +// Earlier copyrights 1998 - 2003 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kspell2 version KDE_3_3_0 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_3_0 - ) +namespace KSpell2 +{ + +class Word +{ +%TypeHeaderCode +#include +%End + +public: + Word (); + Word (const QString&, int, bool = 0); + Word (const KSpell2::Word&); + QString word; + uint start; + bool end; + +}; // class Word + + +class Filter +{ +%TypeHeaderCode +#include +%End + +public: + static KSpell2::Filter* defaultFilter (); + +public: + Filter (); + static KSpell2::Word end (); + void setSettings (KSpell2::Settings*); + KSpell2::Settings* settings () const; + bool atEnd () const; + void setBuffer (const QString&); + QString buffer () const; + void restart (); + virtual KSpell2::Word nextWord () const; + virtual KSpell2::Word previousWord () const; + virtual KSpell2::Word wordAtPosition (uint) const; + virtual void setCurrentPosition (int); + virtual int currentPosition () const; + virtual void replace (const KSpell2::Word&, const QString&); + virtual QString context () const; + +protected: + bool trySkipLinks () const; + bool ignore (const QString&) const; + QChar skipToLetter (uint&) const; + bool shouldBeSkipped (bool, bool, const QString&) const; + +protected: + +}; // class Filter + +}; // namespace KSpell2 + +%End + diff --git a/sip/kspell2/highlighter.sip b/sip/kspell2/highlighter.sip new file mode 100644 index 0000000..0e7ea2d --- /dev/null +++ b/sip/kspell2/highlighter.sip @@ -0,0 +1,54 @@ +// +// Copyright 2004 Jim Bublitz +// Earlier copyrights 1998 - 2003 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kspell2 version KDE_3_3_0 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_3_0 - ) +namespace KSpell2 +{ + +class Highlighter : QSyntaxHighlighter +{ +%TypeHeaderCode +#include +%End + +public: + Highlighter (QTextEdit*, const QString& = QString ::null , KSpell2::Filter* = Filter ::defaultFilter ()); + virtual int highlightParagraph (const QString&, int); + KSpell2::Filter* currentFilter () const; + void setCurrentFilter (KSpell2::Filter*); + QString currentLanguage () const; + void setCurrentLanguage (const QString&); + +protected: + virtual void setMisspelled (int, int); + virtual void unsetMisspelled (int, int); + +}; // class Highlighter + +}; // namespace KSpell2 + +%End + diff --git a/sip/kspell2/kspell2mod.sip.in b/sip/kspell2/kspell2mod.sip.in new file mode 100644 index 0000000..4517fe7 --- /dev/null +++ b/sip/kspell2/kspell2mod.sip.in @@ -0,0 +1,48 @@ +// +// Copyright 2004 Jim Bublitz +// Earlier copyrights 1998 - 2003 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kspell2 version KDE_3_3_0 + +%Copying + + This software is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License as + published by the Free Software Foundation; either version 2 of + the License, or (at your option) any later version. + + This software is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public + License along with this library; see the file COPYING. + If not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +%End + +%Module kspell2 + +%Import qt/qtmod.sip +%Import qtxml/qtxmlmod.sip +%Import dcopmod.sip +%Import kdecoremod.sip +%Import kdefxmod.sip +%Import kdeuimod.sip + +%Include backgroundchecker.sip +%Include broker.sip +%Include configdialog.sip +%Include configwidget.sip +%Include defaultdictionary.sip +%Include dialog.sip +%Include dictionary.sip +%Include filter.sip +%Include highlighter.sip +%Include settings.sip +@mark@ diff --git a/sip/kspell2/settings.sip b/sip/kspell2/settings.sip new file mode 100644 index 0000000..6b4f030 --- /dev/null +++ b/sip/kspell2/settings.sip @@ -0,0 +1,63 @@ +// +// Copyright 2004 Jim Bublitz +// Earlier copyrights 1998 - 2003 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kspell2 version KDE_3_3_0 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_3_0 - ) +namespace KSpell2 +{ + +class Settings +{ +%TypeHeaderCode +#include +%End + +public: + void setDefaultLanguage (const QString&); + QString defaultLanguage () const; + void setDefaultClient (const QString&); + QString defaultClient () const; + void setCheckUppercase (bool); + bool checkUppercase () const; + void setSkipRunTogether (bool); + bool skipRunTogether () const; + void setBackgroundCheckerEnabled (bool); + bool backgroundCheckerEnabled () const; + void setCurrentIgnoreList (const QStringList&); + void addWordToIgnore (const QString&); + QStringList currentIgnoreList () const; + bool ignore (const QString&); + void save (); + KSharedConfig* sharedConfig () const; + +private: + Settings (KSpell2::Broker*, KSharedConfig*); + +}; // class Settings + +}; // namespace KSpell2 + +%End + diff --git a/sip/kutils/kcmoduleinfo.sip b/sip/kutils/kcmoduleinfo.sip new file mode 100644 index 0000000..96f9f78 --- /dev/null +++ b/sip/kutils/kcmoduleinfo.sip @@ -0,0 +1,91 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kutils version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_3_0 - ) + +class KCModuleInfo +{ +%TypeHeaderCode +#include +%End + + +public: + KCModuleInfo (const QString&); + KCModuleInfo (KService::Ptr); + KCModuleInfo (const KCModuleInfo&); + +%If ( KDE_3_4_0 - ) + KCModuleInfo (); +%End + + bool operator == (const KCModuleInfo&) const; + bool operator != (const KCModuleInfo&) const; + QString fileName () const; + const QStringList& keywords () const; + +%If ( KDE_3_4_0 - ) + QString factoryName () const; +%End + + QString moduleName () const; + KService::Ptr service () const; + QString comment () const; + QString icon () const; + QString docPath () const; + QString library () const; + QString handle () const; + int weight () const; + bool needsRootPrivileges () const; + bool isHiddenByDefault () const; + +%If ( KDE_3_4_0 - ) + bool needsTest () const; +%End + + +protected: + void setKeywords (const QStringList&); + void setName (const QString&); + void setComment (const QString&); + void setIcon (const QString&); + void setLibrary (const QString&); + void setHandle (const QString&); + void setWeight (int); + +%If ( KDE_3_4_0 - ) + void setNeedsTest (bool); +%End + + void setNeedsRootPrivileges (bool); + void setIsHiddenByDefault (bool); + void setDocPath (const QString&); + void loadAll (); + +}; // class KCModuleInfo + +%End + diff --git a/sip/kutils/kcmoduleloader.sip b/sip/kutils/kcmoduleloader.sip new file mode 100644 index 0000000..4a9a247 --- /dev/null +++ b/sip/kutils/kcmoduleloader.sip @@ -0,0 +1,67 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kutils version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_3_0 - ) + +class KCModuleLoader +{ +%TypeHeaderCode +#include +%End + + +public: + static KCModule* loadModule (const KCModuleInfo&, bool = 1, QWidget* = 0, const char* = 0, const QStringList& = QStringList ()); + static KCModule* loadModule (const QString&, QWidget* = 0, const char* = 0, const QStringList& = QStringList ()); + +%If ( KDE_3_4_0 - ) + + enum ErrorReporting + { + None, + Inline, + Dialog, + Both + }; + + static KCModule* loadModule (const KCModuleInfo&, KCModuleLoader::ErrorReporting, bool = 1, QWidget* = 0, const char* = 0, const QStringList& = QStringList ()); + static KCModule* loadModule (const QString&, KCModuleLoader::ErrorReporting, QWidget* = 0, const char* = 0, const QStringList& = QStringList ()); +%End + + static void unloadModule (const KCModuleInfo&); + static void showLastLoaderError (QWidget*); + +%If ( KDE_3_4_0 - ) + static bool testModule (const QString&); + static bool testModule (const KCModuleInfo&); + static KCModule* reportError (KCModuleLoader::ErrorReporting, const QString&, QString, QWidget*); +%End + + +}; // class KCModuleLoader + +%End + diff --git a/sip/kutils/kcmoduleproxy.sip b/sip/kutils/kcmoduleproxy.sip new file mode 100644 index 0000000..7f6e5f2 --- /dev/null +++ b/sip/kutils/kcmoduleproxy.sip @@ -0,0 +1,104 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kutils version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_3_0 - ) + +class KCModuleProxy : QWidget +{ +%TypeHeaderCode +#include +%End + + +public: + KCModuleProxy (const KCModuleInfo&, bool = 0, QWidget* = 0, const char* = 0, const QStringList& = QStringList ()); + +%If ( KDE_3_4_0 - ) + KCModuleProxy (const QString&, bool = 1, QWidget* = 0, const char* = 0, const QStringList& = QStringList ()); + KCModuleProxy (const KService::Ptr&, bool = 1, QWidget* = 0, const char* = 0, const QStringList& = QStringList ()); +%End + + void load (); + void save (); + QString quickHelp () const; + const KAboutData* aboutData () const; + int buttons () const; + QString rootOnlyMsg () const; + bool useRootOnlyMsg () const; + KInstance* instance () const; + bool changed () const; + +%If ( KDE_3_4_0 - ) + bool rootMode () const; +%End + + KCModule* realModule () const; + const KCModuleInfo& moduleInfo () const; + +%If ( KDE_3_4_0 - ) + QCString dcopName () const; +%End + + +public slots: + +%If ( KDE_3_4_0 - ) + void runAsRoot (); + void defaults (); + void deleteClient (); +%End + + +signals: + void changed (bool); + +%If ( KDE_3_4_0 - ) + void changed (KCModuleProxy*); + void childClosed (); + void quickHelpChanged (); +%End + + +protected: + void showEvent (QShowEvent*); + +%If ( KDE_3_4_0 - ) + void init (const KCModuleInfo&); + void emitQuickHelpChanged (); +%End + + +public: + +%If ( - KDE_3_4_0 ) + void defaults (); +%End + + +}; // class KCModuleProxy + +%End + diff --git a/sip/kutils/kcmultidialog.sip b/sip/kutils/kcmultidialog.sip new file mode 100644 index 0000000..2fa6e20 --- /dev/null +++ b/sip/kutils/kcmultidialog.sip @@ -0,0 +1,86 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kutils version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_3_0 - ) + +class KCMultiDialog : KDialogBase +{ +%TypeHeaderCode +#include +%End + + +public: + KCMultiDialog (QWidget* = 0, const char* = 0, bool = 0); + KCMultiDialog (int, const QString&, QWidget* = 0, const char* = 0, bool = 0); + KCMultiDialog (int, const KGuiItem&, const KGuiItem& = KGuiItem (), int = User2 , const QString& = i18n ("Configure" ), QWidget* = 0, const char* = 0, bool = 0); + void addModule (const QString&, bool = 1) /ReleaseGIL/; + void addModule (const KCModuleInfo&, QStringList = QStringList (), bool = 0); + void removeAllModules (); + void show (); + +signals: + void configCommitted (); + void configCommitted (const QCString&); + +protected slots: + virtual void slotDefault (); + virtual void slotUser1 (); + virtual void slotApply (); + virtual void slotOk (); + virtual void slotHelp (); +//force + +private: + void apply (); + +//force +%ConvertToSubClassCode +// The table of Python class objects indexed by their names. The table +// must be sorted by name. + +static sipStringTypeClassMap map[] = { +{sipName_KCModuleProxy, &sipClass_KCModuleProxy}, +{sipName_KCMultiDialog, &sipClass_KCMultiDialog}, +{sipName_KFind, &sipClass_KFind}, +{sipName_KFindDialog, &sipClass_KFindDialog}, +{sipName_KMultiTabBar, &sipClass_KMultiTabBar}, +{sipName_KMultiTabBarButton, &sipClass_KMultiTabBarButton}, +{sipName_KMultiTabBar, &sipClass_KMultiTabBar}, +{sipName_KPluginSelector, &sipClass_KPluginSelector}, +{sipName_KReplace, &sipClass_KReplace}, +{sipName_KReplaceDialog, &sipClass_KReplaceDialog}, +}; + +sipClass = sipMapStringToClass(sipCpp -> className(),map,sizeof (map)/sizeof (map[0])); +%End +//end +//end + +}; // class KCMultiDialog + +%End + diff --git a/sip/kutils/kfind.sip b/sip/kutils/kfind.sip new file mode 100644 index 0000000..5e96d1f --- /dev/null +++ b/sip/kutils/kfind.sip @@ -0,0 +1,83 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kutils version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_3_0 - ) + +class KFind : QObject +{ +%TypeHeaderCode +#include +%End + + +public: + KFind (const QString&, long, QWidget*); + KFind (const QString&, long, QWidget*, QWidget*); + + enum Result + { + NoMatch, + Match + }; + + bool needData () const; + void setData (const QString&, int = -1); + void setData (int, const QString&, int = -1); + KFind::Result find (); + long options () const; + virtual void setOptions (long); + QString pattern () const; + void setPattern (const QString&); + int numMatches () const; + virtual void resetCounts (); + virtual bool validateMatch (const QString&, int, int); + virtual bool shouldRestart (bool = 0, bool = 1) const; + static int find (const QString&, const QString&, int, long, int*); + static int find (const QString&, const QRegExp&, int, long, int*); + virtual void displayFinalDialog () const; + KDialogBase* findNextDialog (bool = 0); + void closeFindNextDialog (); + int index () const; + +signals: + void highlight (const QString&, int, int); + void highlight (int, int, int); + void findNext (); + void optionsChanged (); + void dialogClosed (); + +protected: + QWidget* parentWidget () const; + QWidget* dialogsParent () const; + +protected slots: + void slotFindNext (); + void slotDialogClosed (); + +}; // class KFind + +%End + diff --git a/sip/kutils/kfinddialog.sip b/sip/kutils/kfinddialog.sip new file mode 100644 index 0000000..fb3939f --- /dev/null +++ b/sip/kutils/kfinddialog.sip @@ -0,0 +1,86 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kutils version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_3_0 - ) + +class KFindDialog : KDialogBase +{ +%TypeHeaderCode +#include +%End + + +public: + + enum Options + { + WholeWordsOnly, + FromCursor, + SelectedText, + CaseSensitive, + FindBackwards, + RegularExpression, + FindIncremental, + MinimumUserOption + }; + + KFindDialog (QWidget* = 0, const char* = 0, long = 0, const QStringList& = QStringList (), bool = 0); + KFindDialog (bool, QWidget* = 0, const char* = 0, long = 0, const QStringList& = QStringList (), bool = 0); + void setFindHistory (const QStringList&); + QStringList findHistory () const; + void setHasSelection (bool); + void setHasCursor (bool); + +%If ( KDE_3_4_0 - ) + void setSupportsBackwardsFind (bool); + void setSupportsCaseSensitiveFind (bool); + void setSupportsWholeWordsFind (bool); + void setSupportsRegularExpressionFind (bool); +%End + + void setOptions (long); + long options () const; + QString pattern () const; + void setPattern (const QString&); + QWidget* findExtension (); + +protected slots: + void slotOk (); + void slotSelectedTextToggled (bool); + void showPatterns (); + void showPlaceholders (); + void textSearchChanged (const QString&); + +protected: + virtual void showEvent (QShowEvent*); + +private: + KFindDialog (QWidget*, const char*, bool); + +}; // class KFindDialog + +%End + diff --git a/sip/kutils/kmultitabbar.sip b/sip/kutils/kmultitabbar.sip new file mode 100644 index 0000000..08da4d8 --- /dev/null +++ b/sip/kutils/kmultitabbar.sip @@ -0,0 +1,167 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kutils version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_3_0 - ) + +class KMultiTabBar : QWidget +{ +%TypeHeaderCode +#include +%End + + +public: + + enum KMultiTabBarMode + { + Horizontal, + Vertical + }; + + + enum KMultiTabBarPosition + { + Left, + Right, + Top, + Bottom + }; + + + enum KMultiTabBarStyle + { + VSNET, + KDEV3, + KONQSBC, + KDEV3ICON, + STYLELAST + }; + + KMultiTabBar (KMultiTabBar::KMultiTabBarMode, QWidget* = 0, const char* = 0); + int appendButton (const QPixmap&, int = -1, QPopupMenu* = 0, const QString& = QString ::null ); + void removeButton (int); + int appendTab (const QPixmap&, int = -1, const QString& = QString ::null ); + void removeTab (int); + void setTab (int, bool); + bool isTabRaised (int) const; + KMultiTabBarButton* button (int) const; + KMultiTabBarTab* tab (int) const; + void setPosition (KMultiTabBar::KMultiTabBarPosition); + +%If ( KDE_3_5_0 - ) + KMultiTabBar::KMultiTabBarPosition position () const; +%End + + void setStyle (KMultiTabBar::KMultiTabBarStyle); + +%If ( KDE_3_5_0 - ) + KMultiTabBar::KMultiTabBarStyle tabStyle () const; +%End + +//ig QPtrList* tabs (); +//ig QPtrList* buttons (); + void showActiveTabTexts (bool = 1); + +protected: + virtual void fontChange (const QFont&); + void updateSeparator (); + +}; // class KMultiTabBar + +%End + + +%If ( KDE_3_3_0 - ) + +class KMultiTabBarButton : QPushButton +{ +%TypeHeaderCode +#include +%End + + +public: + KMultiTabBarButton (const QPixmap&, const QString&, QPopupMenu*, int, QWidget*, KMultiTabBar::KMultiTabBarPosition, KMultiTabBar::KMultiTabBarStyle); + KMultiTabBarButton (const QString&, QPopupMenu*, int, QWidget*, KMultiTabBar::KMultiTabBarPosition, KMultiTabBar::KMultiTabBarStyle); + int id () const; + +public slots: + void setPosition (KMultiTabBar::KMultiTabBarPosition); + void setStyle (KMultiTabBar::KMultiTabBarStyle); + void setText (const QString&); + QSize sizeHint () const; + +protected: + virtual void hideEvent (QHideEvent*); + virtual void showEvent (QShowEvent*); + +signals: + void clicked (int); + +protected slots: + virtual void slotClicked (); + +}; // class KMultiTabBarButton + +%End + + +%If ( KDE_3_3_0 - ) + +class KMultiTabBarTab : KMultiTabBarButton +{ +%TypeHeaderCode +#include +%End + + +public: + KMultiTabBarTab (const QPixmap&, const QString&, int, QWidget*, KMultiTabBar::KMultiTabBarPosition, KMultiTabBar::KMultiTabBarStyle); + void setState (bool); + void showActiveTabText (bool); + void resize (); + +protected: + void setSize (int); + int neededSize (); + void updateState (); + virtual void drawButton (QPainter*); + virtual void drawButtonLabel (QPainter*); + void drawButtonStyled (QPainter*); + void drawButtonClassic (QPainter*); + +protected slots: + virtual void slotClicked (); + void setTabsPosition (KMultiTabBar::KMultiTabBarPosition); + +public slots: + virtual void setIcon (const QString&); + virtual void setIcon (const QPixmap&); + +}; // class KMultiTabBarTab + +%End + diff --git a/sip/kutils/kplugininfo.sip b/sip/kutils/kplugininfo.sip new file mode 100644 index 0000000..c1480b0 --- /dev/null +++ b/sip/kutils/kplugininfo.sip @@ -0,0 +1,148 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kutils version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_3_0 - ) + +class KPluginInfo +{ +%TypeHeaderCode +#include +%End + + +public: + typedef QValueList List; + KPluginInfo (const QString&, const char* = 0); + KPluginInfo (const KService::Ptr); + static KPluginInfo::List fromServices (const KService::List&, KConfig* = 0, const QString& = QString ::null ); + static KPluginInfo::List fromFiles (const QStringList&, KConfig* = 0, const QString& = QString ::null ); + static KPluginInfo::List fromKPartsInstanceName (const QString&, KConfig* = 0, const QString& = QString ::null ); + bool isHidden () const; + virtual void setPluginEnabled (bool); + virtual bool isPluginEnabled () const; + bool isPluginEnabledByDefault () const; + QVariant property (const QString&) const; +//ig QVariant operator [] (const QString&) const; + const QString& name () const; + const QString& comment () const; + const QString& icon () const; + const QString& specfile () const; + const QString& author () const; + const QString& email () const; + const QString& category () const; + const QString& pluginName () const; + const QString& version () const; + const QString& website () const; + const QString& license () const; + const QStringList& dependencies () const; + KService::Ptr service () const; +//ig const QValueList& kcmServices () const; + void setConfig (KConfig*, const QString&); + KConfig* config () const; + const QString& configgroup () const; + virtual void save (KConfigGroup* = 0); + virtual void load (KConfigGroup* = 0); + virtual void defaults (); + +private: + KPluginInfo (const KPluginInfo&); + +}; // class KPluginInfo + +%End + + + +%If (KDE_3_3_0 - ) +%MappedType KPluginInfo::List +//converts a Python list of KPluginInfo +{ +%TypeHeaderCode +#include +#include +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New(0); + + // Create the list + PyObject *pylist; + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + QValueList *cpplist = (QValueList *)sipCpp; + PyObject *inst; + + // Get it. + QValueList::Iterator it; + for( it = cpplist->begin(); it != cpplist->end(); ++it ) + { + if (((inst = sipConvertFromInstance ((KPluginInfo *)(*it), sipClass_KPluginInfo, sipTransferObj)) == NULL) + || PyList_Append (pylist, inst) < 0) + { + Py_DECREF (pylist); + return NULL; + } + } + + return pylist; +%End + + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QValueList *cpplist = new QValueList; + + PyObject *elem; + KPluginInfo *cpp; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + cpp = (KPluginInfo *)sipForceConvertToType(elem, sipType_KPluginInfo, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + *sipIsErr = 1; + delete cpplist; + return 0; + } + + cpplist->append (cpp); + } + + *sipCppPtr = cpplist; + + return 1; +%End +}; +%End + + diff --git a/sip/kutils/kpluginselector.sip b/sip/kutils/kpluginselector.sip new file mode 100644 index 0000000..7266136 --- /dev/null +++ b/sip/kutils/kpluginselector.sip @@ -0,0 +1,53 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kutils version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_3_0 - ) + +class KPluginSelector : QWidget +{ +%TypeHeaderCode +#include +%End + + +public: + KPluginSelector (QWidget*, const char* = 0); + void addPlugins (const QString&, const QString& = QString ::null , const QString& = QString ::null , KConfig* = 0); + void addPlugins (const KInstance*, const QString& = QString ::null , const QString& = QString ::null , KConfig* = 0); +//ig void addPlugins (const QValueList&, const QString& = QString ::null , const QString& = QString ::null , KConfig* = 0); + void setShowEmptyConfigPage (bool); + void load (); + void save (); + void defaults (); + +signals: + void changed (bool); + void configCommitted (const QCString&); + +}; // class KPluginSelector + +%End + diff --git a/sip/kutils/kreplace.sip b/sip/kutils/kreplace.sip new file mode 100644 index 0000000..c797630 --- /dev/null +++ b/sip/kutils/kreplace.sip @@ -0,0 +1,60 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kutils version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_3_0 - ) + +class KReplace : KFind +{ +%TypeHeaderCode +#include +%End + + +public: + KReplace (const QString&, const QString&, long, QWidget* = 0); + KReplace (const QString&, const QString&, long, QWidget*, QWidget*); + int numReplacements () const; + virtual void resetCounts (); + Result replace (); + KDialogBase* replaceNextDialog (bool = 0); + void closeReplaceNextDialog (); + static int replace (QString&, const QString&, const QString&, int, long, int*); + static int replace (QString&, const QRegExp&, const QString&, int, long, int*); + virtual bool shouldRestart (bool = 0, bool = 1) const; + virtual void displayFinalDialog () const; + +signals: + void replace (const QString&, int, int, int); + +protected slots: + void slotSkip (); + void slotReplace (); + void slotReplaceAll (); + +}; // class KReplace + +%End + diff --git a/sip/kutils/kreplacedialog.sip b/sip/kutils/kreplacedialog.sip new file mode 100644 index 0000000..84938a6 --- /dev/null +++ b/sip/kutils/kreplacedialog.sip @@ -0,0 +1,59 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kutils version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_3_0 - ) + +class KReplaceDialog : KFindDialog +{ +%TypeHeaderCode +#include +%End + + +public: + + enum Options + { + PromptOnReplace, + BackReference + }; + + KReplaceDialog (QWidget* = 0, const char* = 0, long = 0, const QStringList& = QStringList (), const QStringList& = QStringList (), bool = 1); + void setReplacementHistory (const QStringList&); + QStringList replacementHistory () const; + void setOptions (long); + long options () const; + QString replacement () const; + QWidget* replaceExtension (); + +protected slots: + void slotOk (); + virtual void showEvent (QShowEvent*); + +}; // class KReplaceDialog + +%End + diff --git a/sip/kutils/kutils-kde340.diff b/sip/kutils/kutils-kde340.diff new file mode 100644 index 0000000..d37bf3d --- /dev/null +++ b/sip/kutils/kutils-kde340.diff @@ -0,0 +1 @@ ++ %Include kcmodulecontainer.sip diff --git a/sip/kutils/kutils-kde341.diff b/sip/kutils/kutils-kde341.diff new file mode 100644 index 0000000..d37bf3d --- /dev/null +++ b/sip/kutils/kutils-kde341.diff @@ -0,0 +1 @@ ++ %Include kcmodulecontainer.sip diff --git a/sip/kutils/kutilsmod.sip.in b/sip/kutils/kutilsmod.sip.in new file mode 100644 index 0000000..2f9f710 --- /dev/null +++ b/sip/kutils/kutilsmod.sip.in @@ -0,0 +1,50 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kutils version KDE_3_5_2 + +%Copying + + This software is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License as + published by the Free Software Foundation; either version 2 of + the License, or (at your option) any later version. + + This software is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public + License along with this library; see the file COPYING. + If not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +%End + +%Module kutils + +%Import qt/qtmod.sip +%Import dcopmod.sip +%Import kdecoremod.sip +%Import qtxml/qtxmlmod.sip +%Import kdefxmod.sip +%Import kdeuimod.sip +%Import kiomod.sip + +%Include kcmoduleinfo.sip +%Include kcmoduleloader.sip +%Include kcmoduleproxy.sip +%Include kcmultidialog.sip +%Include kfind.sip +%Include kfinddialog.sip +%Include kmultitabbar.sip +%Include kplugininfo.sip +%Include kpluginselector.sip +%Include kreplace.sip +%Include kreplacedialog.sip +@mark@ diff --git a/svnmerge.py b/svnmerge.py new file mode 100644 index 0000000..7b90652 --- /dev/null +++ b/svnmerge.py @@ -0,0 +1,47 @@ +import os, os.path + +svnbase = "/home/jim/PyKDE/" +newbase = "/home/jim/PyKDE352/" + +newfiles = os.listdir (os.path.join (newbase, "sip")) + +for file in newfiles: + newpath = os.path.join (newbase, "sip", file) + if os.path.isdir (newpath): + svnpath = os.path.join (svnbase, "sip", file) + if os.path.exists (svnpath): + newsip = os.listdir (newpath) + svnsip = os.listdir (svnpath) + for sip in newsip: + os.system ("cp %s %s" % (os.path.join (newpath, sip), svnpath)) + if sip not in svnsip: + os.system ("svn add %s" % (os.path.join (svnpath, sip))) + print "added %s" % sip + else: + os.system ("cp -R %s %s" % (newpath, svnpath)) + os.system ("svn add %s" % svnpath) + print "added %s" % svnpath + +newfiles = os.listdir (os.path.join (newbase, "extra")) + +for file in newfiles: + newpath = os.path.join (newbase, "extra", file) + if os.path.isdir (newpath): + svnpath = os.path.join (svnbase, "extra", file) + if os.path.exists (svnpath): + newextra = os.listdir (newpath) + svnextra = os.listdir (svnpath) + for extra in newextra: + os.system ("cp %s %s" % (os.path.join (newpath, extra), svnpath)) + if extra not in svnextra: + os.system ("svn add %s" % (os.path.join (svnpath, extra))) + print "added %s" % extra + else: + os.system ("cp -R %s %s" % (newpath, svnpath)) + os.system ("svn add %s" % svnpath) + print "added %s" % svnpath + +files = ["configure.py", "*.prj", "svnm*"] + +for file in files: + os.system ("cp %s %s" % (os.path.join (newbase, file), os.path.join (svnbase, file))) \ No newline at end of file diff --git a/svnmergedocs.py b/svnmergedocs.py new file mode 100644 index 0000000..e77a908 --- /dev/null +++ b/svnmergedocs.py @@ -0,0 +1,30 @@ +import os, os.path + +svnbase = "/home/jim/PyKDE/doc/classref" +newbase = "/home/jim/PyKDE352/doc/classref" + +newfiles = os.listdir (newbase) + +for file in newfiles: + if os.path.isdir (file): + newpath = os.path.join (newbase, file) + svnpath = os.path.join (svnbase, file) + if os.path.exists (svnpath): + newdoc = os.listdir (newpath) + svndoc = os.listdir (svnpath) + for doc in newdoc: + os.system ("cp %s %s" % (os.path.join (newpath, doc), svnpath)) + if doc not in svndoc: + os.system ("svn add %s" % (os.path.join (svnpath, doc))) + print "added %s" % doc + else: + os.system ("cp -R %s %s" % (newpath, svnpath)) + os.system ("svn add %s" % svnpath) + else: + if os.path.exists (os.path.join (svnbase, file)): + os.system ("cp %s %s" % (os.path.join (newbase, file), svnbase)) + else: + os.system ("cp %s %s" % (os.path.join (newbase, file), svnbase)) + os.system ("svn add %s" % (os.path.join (svnbase, file))) + + \ No newline at end of file diff --git a/templates/annotated/basicapp.py b/templates/annotated/basicapp.py new file mode 100644 index 0000000..04300b4 --- /dev/null +++ b/templates/annotated/basicapp.py @@ -0,0 +1,113 @@ +""" +This is a minimal PyKDE app template - it constructs an application +and a main window, but does nothing else. +""" + +""" +Copyright 2003 Jim Bublitz + +Terms and Conditions + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to +deal in the Software without restriction, including without limitation the +rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +sell copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +Except as contained in this notice, the name of the copyright holder shall +not be used in advertising or otherwise to promote the sale, use or other +dealings in this Software without prior written authorization from the +copyright holder. +""" + + +import sys + +from kdecore import KApplication, KCmdLineArgs, KAboutData +from kdeui import KMainWindow + +""" +Most PyKDE applications will need a main window - the is the top +level widget (the parent for all other widgets). KMainWindow has +more functionality than shown here (see more complex templates). +It has the ability to create the other major parts of the user +interface - the main view, menus, toolbars, etc. + +Usually you provide a subclass of KMainWindow, construct menus +and toolbars in the subclass' __init__ method, and provide +slots for menu/toolbar actions in separate methods. +""" + +class MainWin (KMainWindow): + def __init__ (self, *args): + apply (KMainWindow.__init__, (self,) + args) + + +#-------------------- main ------------------------------------------------ + +# set up some basic information about the program in +# a KAboutData object - this affects the application's +# title bar caption and makes it easy to set up a +# Help | About dialog box for your app +appName = "some app" +programName = "some program" +description = "A basic application template" +license = KAboutData.License_GPL +version = "1.0" +copyright = "(C) 2003 whoever the author is" + +aboutData = KAboutData (appName, programName, version, description, license, copyright) + +# you can add the names of the app's authors here +aboutData.addAuthor ("author1", "whatever they did", "email@somedomain") +aboutData.addAuthor ("author2", "they did something else", "another@email.address") + +# Pass the command line arguments and aboutData to +# KCmdLineArgs - this is where KDE will look for +# this information. The KApplication constructor +# used below *requires* the args are processed +# *before* KApplication is instantiated. There +# is an alternate constructor that takes sys.argv +# as an argument (see minimal.py) + +# Note that instead of argc/argv, this constructor +# only takes a single argument - sys.argv - which +# is a Python list +KCmdLineArgs.init (sys.argv, aboutData) + +# Set up the command line options (switches) you +# want your app to be able to process (you could +# use Python's getopt module instead, but it works +# a little differently) + +# Note that the argument for this method is a list +# of tuples +KCmdLineArgs.addCmdLineOptions ([("+files", "File to open")]) + +# instantiate KApplication - no other QObject +# or QWidget based classes can be instantiated +# until there is a KApplication instance +app = KApplication () + +# instantiate the subclass of KMainWindow +mainWindow = MainWin (None, "main window") + +# create the display +mainWindow.show() + +# run KApplication's event loop until the +# program exits +app.exec_loop() + diff --git a/templates/annotated/menuapp1.py b/templates/annotated/menuapp1.py new file mode 100644 index 0000000..8a634bf --- /dev/null +++ b/templates/annotated/menuapp1.py @@ -0,0 +1,270 @@ +""" +This template constructs an application with menus, toolbar and statusbar, +HOWEVER it is not recommended this template actually be used. It presents +the "KDE 1.0" method for constructing menus and toolbars - later versions +of KDE have introduced better (easier and more powerful) methods for +doing this job - see other menuapp*.py templates for these methods +""" + + +""" +Copyright 2003 Jim Bublitz + +Terms and Conditions + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to +deal in the Software without restriction, including without limitation the +rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +sell copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +Except as contained in this notice, the name of the copyright holder shall +not be used in advertising or otherwise to promote the sale, use or other +dealings in this Software without prior written authorization from the +copyright holder. +""" + + +False = 0 +True = not False + + +import sys + +from qt import QPopupMenu, SIGNAL + +from kdecore import KApplication, KCmdLineArgs, KAboutData, i18n, KStdAccel, KIcon, KIconLoader +from kdeui import KMainWindow, KMessageBox + +TOOLBAR_NEW = 1 +TOOLBAR_OPEN = 2 +TOOLBAR_SAVE = 3 +TOOLBAR_CUT = 4 +TOOLBAR_COPY = 5 +TOOLBAR_PASTE = 6 + +STATUSBAR_LEFT = 1 +STATUSBAR_MIDDLE = 2 +STATUSBAR_RIGHT = 3 + +class MainWin (KMainWindow): + def __init__ (self, *args): + apply (KMainWindow.__init__, (self,) + args) + + self.initMenus () + self.initToolBar () + self.initStatusBar () + + def initMenus (self): + # Create a QPopupMenu - all menus are "popup" menus + + fileMenu = QPopupMenu (self) + + # This is the "simple" KDE-1.0 way. It is not suggested that this + # template actually be used in an application, but it's + # provided to show the underlying mechanics of menu construction + # that KDE makes much easier with other methods (see other + # menuapp*.py templates for usable examples) + + # All menu item strings are wrapped with i18n - this allows + # internationalization + + # Predefined accelerators are in KStdAccel - these are + # the standard accelerators. For custom accelerators, use + # KAccel. All KStdAccel methods are static, so there is no + # need to instantiate KStdAccel + + # "File" menu items + fileMenu.insertItem (i18n ("New"), self.slotNew, KStdAccel.openNew ()) + fileMenu.insertItem (i18n ("Open"), self.slotOpen, KStdAccel.open ()) + fileMenu.insertSeparator (); + fileMenu.insertItem (i18n ("Save"), self.slotSave, KStdAccel.save ()) + + # KStdAccel doesn't have a standard accelerator for 'Save As', + # so we omit it - insertItem uses the default value + + fileMenu.insertItem (i18n ("SaveAs"), self.slotSaveAs) + + # This inserts a line between groups of items in a menu + + fileMenu.insertSeparator (); + + # Note the "KStdAccel.print_" has a trailing underscore, unlike the + # equivalent KDE method - the underscore is necessary to prevent a + # clash with the Python keyword 'print' + + fileMenu.insertItem (i18n ("Print"), self.slotPrint, KStdAccel.print_ ()) + + fileMenu.insertSeparator (); + fileMenu.insertItem (i18n ("&Quit"), self.slotQuit, KStdAccel.quit ()); + + # Put fileMenu (as the File menu) into the menu bar + # 'menuBar' is a predefined object owned by KMainWindow + + self.menuBar ().insertItem (i18n ("&File"), fileMenu) + + + editMenu = QPopupMenu (self) + + # "Edit" menu items + editMenu.insertItem (i18n ("Undo"), self.slotUndo, KStdAccel.undo ()) + editMenu.insertItem (i18n ("Redo"), self.slotRedo, KStdAccel.redo ()) + editMenu.insertSeparator (); + editMenu.insertItem (i18n ("Cut"), self.slotCut, KStdAccel.cut ()) + editMenu.insertItem (i18n ("Copy"), self.slotCopy, KStdAccel.copy ()) + editMenu.insertItem (i18n ("Paste"), self.slotPaste, KStdAccel.paste ()) + editMenu.insertSeparator (); + editMenu.insertItem (i18n ("Find"), self.slotFind, KStdAccel.find ()) + editMenu.insertItem (i18n ("Find Next"), self.slotFindNext, KStdAccel.findNext ()) + editMenu.insertItem (i18n ("Replace"), self.slotReplace, KStdAccel.replace ()) + + # Put editMenu (as the Edit menu) into the menu bar + + self.menuBar ().insertItem (i18n ("&Edit"), editMenu) + + # Let KDE generate a nifty help menu + + # The KAboutData/KCmdLineArgs data from the main part of the program + # will be used to generate the About dialog + + helpMenu = self.helpMenu ("") + self.menuBar ().insertItem (i18n ("&Help"), helpMenu) + + def initToolBar (self): + # KIconLoader will make it easy to locate the standard KDE icons for + # toolbar buttons. For custom icons, a complete path to the icon + # (without the loadIcon call) is needed + icons = KIconLoader () + + # KMainWindow owns at least one KToolBar instance, which is returned + # by 'self.toolBar ()'. To obtain additional toolbars, add an argument + # to the call -- self.toolBar (1) will return another toolbar you can + # add buttons to. + + # Add buttons to the toolbar. The icon name, id value (eg TOOLBAR_NEW), + # signal to connect (eg clicked) and the slot to connect to all need + # to be specified,as does the tooltip (the last string argument). There + # are easier ways to do this - see other menuapp templates for easier + # methods using KAction/KStdAction + + self.toolBar ().insertButton (icons.loadIcon ("filenew", KIcon.Toolbar), TOOLBAR_NEW, SIGNAL ("clicked (int)"), self.slotNew,\ + True, "New") + self.toolBar ().insertButton (icons.loadIcon ("fileopen", KIcon.Toolbar), TOOLBAR_OPEN, SIGNAL ("clicked (int)"), self.slotOpen,\ + True, "Open") + self.toolBar ().insertButton (icons.loadIcon ("filesave", KIcon.Toolbar), TOOLBAR_SAVE, SIGNAL ("clicked (int)"), self.slotSave,\ + True, "Save") + self.toolBar ().insertButton (icons.loadIcon ("editcut", KIcon.Toolbar), TOOLBAR_CUT, SIGNAL ("clicked (int)"), self.slotCut,\ + True, "Cut") + self.toolBar ().insertButton (icons.loadIcon ("editcopy", KIcon.Toolbar), TOOLBAR_COPY, SIGNAL ("clicked (int)"), self.slotCopy,\ + True, "Copy") + self.toolBar ().insertButton (icons.loadIcon ("editpaste", KIcon.Toolbar), TOOLBAR_PASTE, SIGNAL ("clicked (int)"), self.slotPaste,\ + True, "Paste") + + def initStatusBar (self): + # KMainWindow also owns a KStatusBar instance. The first + # call creates a KStatusBar instance. See 'notImpl' below + # for an example of writing to the status bar. You can + # also add widgets (labels, progress bars, etc) to the + # status bar + + self.statusBar ().insertItem ("", STATUSBAR_LEFT, 1000, True) + self.statusBar ().insertItem ("", STATUSBAR_MIDDLE, 1000, True) + self.statusBar ().insertItem ("", STATUSBAR_RIGHT, 1000, True) + + +#-------------------- slots ----------------------------------------------- + + # Slots which can be called from both the menu toolbar + # have a second parameter with a default value (id = -1) + # This is because menu signals expect to connect to a + # slot that takes no arguments, while toolbar signals + # expect to send a signal with an int argument for the + # id of the toolbar button. The default value allows + # both cases to work. + + def slotNew (self, id = -1): + self.notImpl ("New") + + def slotOpen(self, id = -1): + self.notImpl ("Open") + + def slotSave (self, id = -1): + self.notImpl ("Save") + + def slotSaveAs (self): + self.notImpl ("Save As") + + def slotPrint (self): + self.notImpl ("Print") + + def slotQuit (self): + self.notImpl ("Quit") + + def slotUndo (self): + self.notImpl ("Undo") + + def slotRedo (self): + self.notImpl ("Redo") + + def slotCut (self, id = -1): + self.notImpl ("Cut") + + def slotCopy (self, id = -1): + self.notImpl ("Copy") + + def slotPaste (self, id = -1): + self.notImpl ("Paste") + + def slotFind (self): + self.notImpl ("Find") + + def slotFindNext (self): + self.notImpl ("Find Next") + + def slotReplace (self): + self.notImpl ("Replace") + + def notImpl (self, item = "Feature"): + self.statusBar ().changeItem ("%s not implemented" % item, STATUSBAR_LEFT) + KMessageBox.error (self, "%s not implemented" % item, "Not Implemented") + self.statusBar ().changeItem ("", STATUSBAR_LEFT) + + +#-------------------- main ------------------------------------------------ + +# See athe minimal.py and basicapp.py templates for +# explantion of the basic app and main window setup + +# The following data is passed to KCmdLineArgs, which in +# turn makes it available to the "about" box in the Help +# menu (when the Help menu is created as above) + +description = "A basic application template" +version = "1.0" +aboutData = KAboutData ("", "",\ + version, description, KAboutData.License_GPL,\ + "(C) 2003 whoever the author is") + +aboutData.addAuthor ("author1", "whatever they did", "email@somedomain") +aboutData.addAuthor ("author2", "they did something else", "another@email.address") + +KCmdLineArgs.init (sys.argv, aboutData) + +KCmdLineArgs.addCmdLineOptions ([("+files", "File to open")]) + +app = KApplication () +mainWindow = MainWin (None, "main window") +mainWindow.show() +app.exec_loop() diff --git a/templates/annotated/menuapp2.py b/templates/annotated/menuapp2.py new file mode 100644 index 0000000..07523b8 --- /dev/null +++ b/templates/annotated/menuapp2.py @@ -0,0 +1,244 @@ +""" +This template constructs an application with menus, toolbar and statusbar. +It uses KDE classes and methods that simplify the task of building and +operating a GUI. It is recommended that this approach be used, rather +than the primitive approach in menuapp1.py +""" + +""" +Copyright 2003 Jim Bublitz + +Terms and Conditions + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to +deal in the Software without restriction, including without limitation the +rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +sell copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +Except as contained in this notice, the name of the copyright holder shall +not be used in advertising or otherwise to promote the sale, use or other +dealings in this Software without prior written authorization from the +copyright holder. +""" + + +False = 0 +True = not False + + +import sys + +from qt import QPopupMenu, SIGNAL + +from kdecore import KApplication, KCmdLineArgs, KAboutData, i18n +from kdeui import KMainWindow, KMessageBox, KStdAction, KAction + +STATUSBAR_LEFT = 1 +STATUSBAR_MIDDLE = 2 +STATUSBAR_RIGHT = 3 + +class MainWin (KMainWindow): + def __init__ (self, *args): + apply (KMainWindow.__init__, (self,) + args) + + # Create the actions that will populate + # the menus and toolbars + self.initActions () + + # Plug actions into menus + self.initMenus () + + # Plug actions into toolbars + self.initToolBar () + + # Create the status bar + self.initStatusBar () + + # Usings actions, only a single line is required + # to enable/disable both the menu item and corresponding + # toolbar button from anywhere in the program + self.saveAction.setEnabled (False) + self.saveAsAction.setEnabled (False) + + def initActions (self): + # Most of the functions selectable by menu are "standard" + # actions (open a file, cut, paste, etc) - you customize + # how they behave in your code, but menu, toolbar, and + # accelerator settings are the same across all programs. + # Standard actions also have tooltips already assigned + + # To create most of the actions below, KStdAction is + # is used, since it takes care of everything with + # a single line of code. + + # The standard actions only need to specify the slot + # where the code for the action is located + + # "File" menu items + self.newAction = KStdAction.openNew (self.slotNew) + self.openAction = KStdAction.open (self.slotOpen) + self.saveAction = KStdAction.save (self.slotSave) + self.saveAsAction = KStdAction.saveAs (self.slotSaveAs) + self.printAction = KStdAction.print_ (self.slotPrint) + self.quitAction = KStdAction.quit (self.slotQuit) + + # "Edit" menu items + self.undoAction = KStdAction.undo (self.slotUndo) + self.redoAction = KStdAction.redo (self.slotRedo) + self.cutAction = KStdAction.cut (self.slotCut) + self.copyAction = KStdAction.copy (self.slotCopy) + self.pasteAction = KStdAction.paste (self.slotPaste) + self.findAction = KStdAction.find (self.slotFind) + self.findNextAction = KStdAction.findNext (self.slotFindNext) + self.replaceAction = KStdAction.replace (self.slotReplace) + + # For actions that are not "standard", you can create your + # own actions using KAction. This example doesn't include + # an icon, but there is a KAction constructor that will + # allow you to specify an icon (for toolbar use, for instance), + # or you can use KAction.setIcon to set/change the icon. You + # can also add a tooltip with KAction.setToolTip + + # This KAction constructor requires a QString, an accelerator (0 + # in this case), a slot, and a QObject (None in this case) + + self.specialAction = KAction (i18n ("Special"), 0, self.slotSpecial, None) + + def initMenus (self): + # plug the actions into the menus + + fileMenu = QPopupMenu (self) + self.newAction.plug (fileMenu) + self.openAction.plug (fileMenu) + fileMenu.insertSeparator () + self.saveAction.plug (fileMenu) + self.saveAsAction.plug (fileMenu) + fileMenu.insertSeparator () + self.printAction.plug (fileMenu) + fileMenu.insertSeparator () + self.quitAction.plug (fileMenu) + self.menuBar ().insertItem (i18n ("&File"), fileMenu) + + editMenu = QPopupMenu (self) + self.undoAction.plug (editMenu) + self.redoAction.plug (editMenu) + editMenu.insertSeparator () + self.cutAction.plug (editMenu) + self.copyAction.plug (editMenu) + self.pasteAction.plug (editMenu) + editMenu.insertSeparator () + self.findAction.plug (editMenu) + self.findNextAction.plug (editMenu) + self.replaceAction.plug (editMenu) + editMenu.insertSeparator () + self.specialAction.plug (editMenu) + self.menuBar ().insertItem (i18n ("&Edit"), editMenu) + + # Uses the info from KAboutData (specified below) + # to construct the "About" box in the Help menu + + helpMenu = self.helpMenu ("") + self.menuBar ().insertItem (i18n ("&Help"), helpMenu) + + def initToolBar (self): + # Add some (but not all) actions to the toolbar + + self.newAction.plug (self.toolBar ()) + self.openAction.plug (self.toolBar ()) + self.saveAction.plug (self.toolBar ()) + self.cutAction.plug (self.toolBar ()) + self.copyAction.plug (self.toolBar ()) + self.pasteAction.plug (self.toolBar ()) + + def initStatusBar (self): + # Initialize the status bar + + self.statusBar ().insertItem ("", STATUSBAR_LEFT, 1000, True) + self.statusBar ().insertItem ("", STATUSBAR_MIDDLE, 1000, True) + self.statusBar ().insertItem ("", STATUSBAR_RIGHT, 1000, True) + +#-------------------- slots ----------------------------------------------- + + def slotNew (self, id = -1): + self.notImpl ("New") + + def slotOpen(self, id = -1): + self.notImpl ("Open") + + def slotSave (self, id = -1): + self.notImpl ("Save") + + def slotSaveAs (self): + self.notImpl ("Save As") + + def slotPrint (self): + self.notImpl ("Print") + + def slotQuit (self): + self.notImpl ("Quit") + + def slotUndo (self): + self.notImpl ("Undo") + + def slotRedo (self): + self.notImpl ("Redo") + + def slotCut (self, id = -1): + self.notImpl ("Cut") + + def slotCopy (self, id = -1): + self.notImpl ("Copy") + + def slotPaste (self, id = -1): + self.notImpl ("Paste") + + def slotFind (self): + self.notImpl ("Find") + + def slotFindNext (self): + self.notImpl ("Find Next") + + def slotReplace (self): + self.notImpl ("Replace") + + def slotSpecial (self): + self.notImpl ("Special") + + def notImpl (self, item = "Feature"): + self.statusBar ().changeItem ("%s not implemented" % item, STATUSBAR_LEFT) + KMessageBox.error (self, "%s not implemented" % item, "Not Implemented") + self.statusBar ().changeItem ("", STATUSBAR_LEFT) + + +#-------------------- main ------------------------------------------------ + +description = "A basic application template" +version = "1.0" +aboutData = KAboutData ("", "",\ + version, description, KAboutData.License_GPL,\ + "(C) 2003 whoever the author is") + +aboutData.addAuthor ("author1", "whatever they did", "email@somedomain") +aboutData.addAuthor ("author2", "they did something else", "another@email.address") + +KCmdLineArgs.init (sys.argv, aboutData) + +KCmdLineArgs.addCmdLineOptions ([("+files", "File to open")]) + +app = KApplication () +mainWindow = MainWin (None, "main window") +mainWindow.show() +app.exec_loop() diff --git a/templates/annotated/menuapp3.py b/templates/annotated/menuapp3.py new file mode 100644 index 0000000..1935ce5 --- /dev/null +++ b/templates/annotated/menuapp3.py @@ -0,0 +1,209 @@ +""" +This template constructs an application with menus, toolbar and statusbar. +It uses an XML file (menuapp3ui.rc) to specify the menu layout; all menu +items have a corresponding action defined, but no menus are created +explicitly in code. This app has the same menu layout as menuapp2.py +""" + +""" +Copyright 2003 Jim Bublitz + +Terms and Conditions + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to +deal in the Software without restriction, including without limitation the +rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +sell copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +Except as contained in this notice, the name of the copyright holder shall +not be used in advertising or otherwise to promote the sale, use or other +dealings in this Software without prior written authorization from the +copyright holder. +""" + + +False = 0 +True = not False + + +import sys + +from qt import QPopupMenu, SIGNAL + +from kdecore import KApplication, KCmdLineArgs, KAboutData, i18n +from kdeui import KMainWindow, KMessageBox, KStdAction, KAction, KActionCollection + +STATUSBAR_LEFT = 1 +STATUSBAR_MIDDLE = 2 +STATUSBAR_RIGHT = 3 + +class MainWin (KMainWindow): + def __init__ (self, *args): + apply (KMainWindow.__init__, (self,) + args) + + # Create actions that correspond to those in the XML file + self.initActions () + + # Parse the default XML file (ui.rc> and create + # the menus and toolbar. This single line (and the XML + # file it reads) replace initMenus and initToolBar from + # menuapp2.py. Otherwise, the menuapp2 and menuapp3 + # are identical 'createGUI' expects to find 'menuapp3ui.rc' + # either in the directory menuapp3.py is run from, or + # in $KDEDIR/apps/menuapp3/ + self.createGUI () + + # Create the status bar + self.initStatusBar () + + # Disable a couple of menu items using their actions + self.saveAction.setEnabled (False) + self.saveAsAction.setEnabled (False) + + def initActions (self): + # Most of the functions selectable by menu are "standard" + # actions (open a file, cut, paste, etc) - you customize + # how they behave in your code, but menu, toolbar, and + # accelerator settings are the same across all programs. + # Standard actions also have tooltips already assigned + + # To create most of the actions below, KStdAction is + # is used, since it takes care of everything with + # a single line of code. + + # The standard actions only need to specify the slot + # where the code for the action is located + + # Because the XMLGUI mechanism parses $KDEDIR/config/ui/ui_standards.rc + # before parsing and merging menuapp3ui.rc, it actually isn't + # necessary to list KStdAction actions in menuapp3.rc. THE XMLGUI + # code will create menu/toolbar items and place them *automatically* + # if you defined the KStdActions as below. In fact, you can't override + # this behavior using KStdActions - if you want menus to be "non-standard" + # KDE menus (eg 'Cut' in the 'File' menu), you'll need to create your + # actions from KAction instead of KStdAction. Obviously it makes more + # sense to use the mechanism provided to produce consistent menus and + # toolbars. You can "unplug" items if, for example, you don't want them + # in the toolBar. + + # "File" menu items + self.newAction = KStdAction.openNew (self.slotNew, self.actionCollection ()) + self.openAction = KStdAction.open (self.slotOpen, self.actionCollection ()) + self.saveAction = KStdAction.save (self.slotSave, self.actionCollection ()) + self.saveAsAction = KStdAction.saveAs (self.slotSaveAs, self.actionCollection ()) + self.printAction = KStdAction.print_ (self.slotPrint, self.actionCollection ()) + self.quitAction = KStdAction.quit (self.slotQuit, self.actionCollection ()) + + + # "Edit" menu items + self.undoAction = KStdAction.undo (self.slotUndo, self.actionCollection ()) + self.redoAction = KStdAction.redo (self.slotRedo, self.actionCollection ()) + self.cutAction = KStdAction.cut (self.slotCut, self.actionCollection ()) + self.copyAction = KStdAction.copy (self.slotCopy, self.actionCollection ()) + self.pasteAction = KStdAction.paste (self.slotPaste, self.actionCollection ()) + self.findAction = KStdAction.find (self.slotFind, self.actionCollection ()) + self.findNextAction = KStdAction.findNext (self.slotFindNext, self.actionCollection ()) + self.replaceAction = KStdAction.replace (self.slotReplace, self.actionCollection ()) + + # For ANYTHING constructed from KAction or its descendants (KActionMenu, KActionSeparator, + # KFontAction, etc) you MUST provide the self.actionCollection () parent and an object + # name ("specialActionName") or the XMLGUI mechanism will not be able to locate the + # action. XMLGUI finds the action via its member name value, NOT via its variable name. + self.specialAction = KAction (i18n ("Special"), 0, self.slotSpecial, self.actionCollection (), "specialActionName") + + def initStatusBar (self): + self.statusBar ().insertItem ("", STATUSBAR_LEFT, 1000, True) + self.statusBar ().insertItem ("", STATUSBAR_MIDDLE, 1000, True) + self.statusBar ().insertItem ("", STATUSBAR_RIGHT, 1000, True) + +#-------------------- slots ----------------------------------------------- + + def slotNew (self, id = -1): + self.notImpl ("New") + + def slotOpen(self, id = -1): + self.notImpl ("Open") + + def slotSave (self, id = -1): + self.notImpl ("Save") + + def slotSaveAs (self): + self.notImpl ("Save As") + + def slotPrint (self): + self.notImpl ("Print") + + def slotQuit (self): + self.notImpl ("Quit") + + def slotUndo (self): + self.notImpl ("Undo") + + def slotRedo (self): + self.notImpl ("Redo") + + def slotCut (self, id = -1): + self.notImpl ("Cut") + + def slotCopy (self, id = -1): + self.notImpl ("Copy") + + def slotPaste (self, id = -1): + self.notImpl ("Paste") + + def slotFind (self): + self.notImpl ("Find") + + def slotFindNext (self): + self.notImpl ("Find Next") + + def slotReplace (self): + self.notImpl ("Replace") + + def slotSpecial (self): + self.notImpl ("Special") + + def notImpl (self, item = "Feature"): + self.statusBar ().changeItem ("%s not implemented" % item, STATUSBAR_LEFT) + KMessageBox.error (self, "%s not implemented" % item, "Not Implemented") + self.statusBar ().changeItem ("", STATUSBAR_LEFT) + + +#-------------------- main ------------------------------------------------ + +description = "A basic application template" +version = "1.0" + +# To use the XMLGUI mechanism, you MUST provide an appName +# (the first argument to KAboutData below) - the XML spec +# for the interface will be in ui.rc (don't forget +# the "ui" suffix to the application name) +aboutData = KAboutData ("menuapp3", "",\ + version, description, KAboutData.License_GPL,\ + "(C) 2003 whoever the author is") + +aboutData.addAuthor ("author1", "whatever they did", "email@somedomain") +aboutData.addAuthor ("author2", "they did something else", "another@email.address") + +KCmdLineArgs.init (sys.argv, aboutData) + +KCmdLineArgs.addCmdLineOptions ([("+files", "File to open")]) + +app = KApplication () +mainWindow = MainWin (None, "main window") +mainWindow.show() +app.exec_loop() + diff --git a/templates/annotated/menuapp3ui.rc b/templates/annotated/menuapp3ui.rc new file mode 100644 index 0000000..60120e2 --- /dev/null +++ b/templates/annotated/menuapp3ui.rc @@ -0,0 +1,24 @@ + + + + &File + + + + + + + + &Edit + + + + + + + + + + + + \ No newline at end of file diff --git a/templates/annotated/minimal.py b/templates/annotated/minimal.py new file mode 100644 index 0000000..a3e87c8 --- /dev/null +++ b/templates/annotated/minimal.py @@ -0,0 +1,75 @@ +""" +This is a minimal PyKDE app template - it constructs an application +and a main window, but does nothing else. +""" + +""" +Copyright 2003 Jim Bublitz + +Terms and Conditions + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to +deal in the Software without restriction, including without limitation the +rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +sell copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +Except as contained in this notice, the name of the copyright holder shall +not be used in advertising or otherwise to promote the sale, use or other +dealings in this Software without prior written authorization from the +copyright holder. +""" + +import sys + +from kdecore import KApplication +from kdeui import KMainWindow + + +""" +Most PyKDE applications will need a main window - the is the top +level widget (the parent for all other widgets). KMainWindow has +more functionality than shown here (see more complex templates). +It has the ability to create the other major parts of the user +interface - the main view, menus, toolbars, etc. + +Usually you provide a subclass of KMainWindow, construct menus +and toolbars in the subclass' __init__ method, and provide +slots for menu/toolbar actions in separate methods. +""" +class MainWin (KMainWindow): + def __init__ (self, *args): + apply (KMainWindow.__init__, (self,) + args) + + +#-------------------- main ------------------------------------------------ + +# instantiate KApplication - no other QObject +# or QWidget based classes can be instantiated +# until there is a KApplication instance +appName = "template" +app = KApplication (sys.argv, appName) + +# instantiate the subclass of KMainWindow +mainWindow = MainWin (None, "main window") + +# create the display +mainWindow.show() + +# run KApplication's event loop until the +# program exits +app.exec_loop() + + diff --git a/templates/annotated/panelapplet.py b/templates/annotated/panelapplet.py new file mode 100644 index 0000000..009ee56 --- /dev/null +++ b/templates/annotated/panelapplet.py @@ -0,0 +1,64 @@ +""" +A basic panel applet template - working examples are in the +pykpanelapplet/ directory +""" +""" +Copyright 2003 Jim Bublitz + +Terms and Conditions + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to +deal in the Software without restriction, including without limitation the +rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +sell copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +Except as contained in this notice, the name of the copyright holder shall +not be used in advertising or otherwise to promote the sale, use or other +dealings in this Software without prior written authorization from the +copyright holder. +""" + +from kdeui import PyKPanelApplet, KPanelApplet + + +# Any panel applet written in Python must include THIS "factory" function +# The name must be createApplet, and it must take the two args shown; it +# must return a PyKPanelApplet subclass + +# Change "PanelAppletName" to something meaningful here and in the class +# declaration +def createApplet (parent, configFile): + return PanelAppletName (configFile, KPanelApplet.Normal, 0, parent, "nameMe") + + +# Define the PyKPanelApplet subclass in a fashion similar to this +# (PyKPanelApplet is a subclass of KPanelApplet, and exposes all of +# KPanelApplet's methods) + +# You can change the arg list for __init__ as needed (and make the corresponding +# change in the call in createApplet), as long as you have the basic info +# needed to call PyKPanelApplet.__init__ +class PanelAppletName (PyKPanelApplet): + def __init__ (self, configFile, t, actions, parent, name, f = 0): + PyKPanelApplet.__init__ (self, configFile, t, actions, parent, name, f) + +# Change these methods to have kicker size your applet appropriately +# As written, they provide a square applet window + def widthForHeight (self, h): + return h + + def heightForWidth (self, w ): + return w diff --git a/templates/annotated/systray.py b/templates/annotated/systray.py new file mode 100644 index 0000000..41dc62a --- /dev/null +++ b/templates/annotated/systray.py @@ -0,0 +1,82 @@ +""" +Copyright 2003 Jim Bublitz + +Terms and Conditions + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to +deal in the Software without restriction, including without limitation the +rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +sell copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +Except as contained in this notice, the name of the copyright holder shall +not be used in advertising or otherwise to promote the sale, use or other +dealings in this Software without prior written authorization from the +copyright holder. +""" + +import sys + +from qt import QWidget, SIGNAL +from kdecore import KApplication, KIcon, KIconLoader +from kdeui import KSystemTray + +""" +Typically an application's "main window" will be a KMainWindow or +a subclass of KMainWindow (KMainWindow provides simple mechanisms +for constructing mens, toolbars, statusbars, etc). The problem with +using KMainWindow in a System Tray application is that when +KMainWindow is closed, it also shuts down KApplication and the +program terminates. + +One way around that (not necessarily the best way - see systray1.py) +is to make the "main window" a QWidget or other QWidget subclass +that's not KMainWindow. +""" + +class MainWin (QWidget): + def __init__ (self, *args): + apply (QWidget.__init__, (self,) + args) + +#-------------------- main ------------------------------------------------ + +# This slot receives the "quitSelected ()" signal that's emitted +# when the user right clicks the icon in the system tray and +# selects "Quit" from the popup menu +def slotQuitSelected (): + KApplication.kApplication ().quit () + +# The usual stuff +appName = "template" +app = KApplication (sys.argv, appName) +mainWindow = MainWin (None, "main window") + +# System tray apps need an icon +icons = KIconLoader () + +# The KSystemTray widget shows or hides it's parent widget +# when clicked, so parent needs to be the main window +systray = KSystemTray (mainWindow) + +systray.setPixmap (icons.loadIcon("stop", KIcon.Desktop)) +systray.connect (systray, SIGNAL ("quitSelected ()"), slotQuitSelected) +systray.show () + +# Comment this out if you don't want the main window to show +# immediately when the application loads +mainWindow.show() +app.exec_loop() + + diff --git a/templates/annotated/systray1.py b/templates/annotated/systray1.py new file mode 100644 index 0000000..99b7f03 --- /dev/null +++ b/templates/annotated/systray1.py @@ -0,0 +1,87 @@ +""" +A basic system tray application - you can combine this with code from +menuapp2.py or menuapp3.py to quickly build a full-blown application +framework. +""" + +""" +Copyright 2003 Jim Bublitz + +Terms and Conditions + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to +deal in the Software without restriction, including without limitation the +rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +sell copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +Except as contained in this notice, the name of the copyright holder shall +not be used in advertising or otherwise to promote the sale, use or other +dealings in this Software without prior written authorization from the +copyright holder. +""" + +import sys + +from qt import QLabel, QWidget, SIGNAL +from kdecore import KApplication, KIcon, KIconLoader +from kdeui import KMainWindow, KSystemTray + +# This template uses KMainWindow as the main window widget +# It solves the problem described in systray.py by using +# a flag to control the return value from queryClose - if +# :quit" is signalled from anywhere EXCEPT the system tray +# icon's menu, self.exitFlag == False, and as the return +# value for queryClose, it stops the application from shutting +# down; if self.exitFlag is True, the application shuts down + +class MainWin (KMainWindow): + def __init__ (self, *args): + apply (KMainWindow.__init__, (self,) + args) + + self.exitFlag = False + + icons = KIconLoader () + + # KSystemTray hides or shows its parent when the system tray icon is clicked + self.systray = KSystemTray (self) + self.systray.setPixmap (icons.loadIcon("stop", KIcon.Desktop)) + self.systray.connect (self.systray, SIGNAL ("quitSelected ()"), self.slotQuitSelected) + self.systray.show () + + # Controls whether or not the application really exits + def queryClose (self): + self.hide () + return self.exitFlag + + # Receives the signal emitted when the user selects Quit from the + # system tray icon's menu + def slotQuitSelected (self): + self.exitFlag = True + KApplication.kApplication ().quit () + +#-------------------- main ------------------------------------------------ + +# The usual stuff - you can also use the KAboutData/KCmdLineArgs version +# for program startup used in other templates - the KApplication constructor +# used here may be obsoleted eventually +appName = "template" +app = KApplication (sys.argv, appName) +mainWindow = MainWin (None, "main window") + +mainWindow.show() +app.exec_loop() + + diff --git a/templates/basic/basicapp.py b/templates/basic/basicapp.py new file mode 100644 index 0000000..2146f63 --- /dev/null +++ b/templates/basic/basicapp.py @@ -0,0 +1,58 @@ +""" +Copyright 2003 Jim Bublitz + +Terms and Conditions + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to +deal in the Software without restriction, including without limitation the +rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +sell copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +Except as contained in this notice, the name of the copyright holder shall +not be used in advertising or otherwise to promote the sale, use or other +dealings in this Software without prior written authorization from the +copyright holder. +""" + +import sys + +from qt import SIGNAL +from kdecore import KApplication, KCmdLineArgs, KAboutData +from kdeui import KMainWindow + +class MainWin (KMainWindow): + def __init__ (self, *args): + KMainWindow.__init__ (self) + + +#-------------------- main ------------------------------------------------ + +description = "A basic application template" +version = "1.0" +aboutData = KAboutData ("", "",\ + version, description, KAboutData.License_GPL,\ + "(C) 2003 whoever the author is") + +aboutData.addAuthor ("author1", "whatever they did", "email@somedomain") +aboutData.addAuthor ("author2", "they did something else", "another@email.address") + +KCmdLineArgs.init (sys.argv, aboutData) + +app = KApplication () +mainWindow = MainWin (None, "main window") +mainWindow.show() +app.connect (app, SIGNAL ("lastWindowClosed ()"), app.quit) +app.exec_loop() diff --git a/templates/basic/menuapp1.py b/templates/basic/menuapp1.py new file mode 100644 index 0000000..a482c2a --- /dev/null +++ b/templates/basic/menuapp1.py @@ -0,0 +1,194 @@ +""" +This template constructs an application with menus, toolbar and statusbar, +HOWEVER it is not recommended this template actually be used. It presents +the "KDE 1.0" method for constructing menus and toolbars - later versions +of KDE have introduced better (easier and more powerful) methods for +doing this job - see other menuapp*.py templates for these methods +""" + +""" +Copyright 2003 Jim Bublitz + +Terms and Conditions + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to +deal in the Software without restriction, including without limitation the +rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +sell copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +Except as contained in this notice, the name of the copyright holder shall +not be used in advertising or otherwise to promote the sale, use or other +dealings in this Software without prior written authorization from the +copyright holder. +""" + + +False = 0 +True = not False + + +import sys + +from qt import QPopupMenu, SIGNAL + +from kdecore import KApplication, KCmdLineArgs, KAboutData, i18n, KStdAccel, KIcon, KIconLoader +from kdeui import KMainWindow, KMessageBox + +TOOLBAR_NEW = 1 +TOOLBAR_OPEN = 2 +TOOLBAR_SAVE = 3 +TOOLBAR_CUT = 4 +TOOLBAR_COPY = 5 +TOOLBAR_PASTE = 6 + +STATUSBAR_LEFT = 1 +STATUSBAR_MIDDLE = 2 +STATUSBAR_RIGHT = 3 + +class MainWin (KMainWindow): + def __init__ (self, *args): + apply (KMainWindow.__init__, (self,) + args) + + self.initMenus () + self.initToolBar () + self.initStatusBar () + + def initMenus (self): + fileMenu = QPopupMenu (self) + + # "File" menu items + fileMenu.insertItem (i18n ("New"), self.slotNew, KStdAccel.openNew ().keyCodeQt ()) + fileMenu.insertItem (i18n ("Open"), self.slotOpen, KStdAccel.open ().keyCodeQt ()) + fileMenu.insertSeparator (); + fileMenu.insertItem (i18n ("Save"), self.slotSave, KStdAccel.save ().keyCodeQt ()) + fileMenu.insertItem (i18n ("SaveAs"), self.slotSaveAs) + fileMenu.insertSeparator (); + fileMenu.insertItem (i18n ("Print"), self.slotPrint, KStdAccel.print_ ().keyCodeQt ()) + fileMenu.insertSeparator (); + fileMenu.insertItem (i18n ("&Quit"), self.slotQuit, KStdAccel.quit ().keyCodeQt ()); + + self.menuBar ().insertItem (i18n ("&File"), fileMenu) + + editMenu = QPopupMenu (self) + + # "Edit" menu items + editMenu.insertItem (i18n ("Undo"), self.slotUndo, KStdAccel.undo ().keyCodeQt ()) + editMenu.insertItem (i18n ("Redo"), self.slotRedo, KStdAccel.redo ().keyCodeQt ()) + editMenu.insertSeparator (); + editMenu.insertItem (i18n ("Cut"), self.slotCut, KStdAccel.cut ().keyCodeQt ()) + editMenu.insertItem (i18n ("Copy"), self.slotCopy, KStdAccel.copy ().keyCodeQt ()) + editMenu.insertItem (i18n ("Paste"), self.slotPaste, KStdAccel.paste ().keyCodeQt ()) + editMenu.insertSeparator (); + editMenu.insertItem (i18n ("Find"), self.slotFind, KStdAccel.find ().keyCodeQt ()) + editMenu.insertItem (i18n ("Find Next"), self.slotFindNext, KStdAccel.findNext ().keyCodeQt ()) + editMenu.insertItem (i18n ("Replace"), self.slotReplace, KStdAccel.replace ().keyCodeQt ()) + + self.menuBar ().insertItem (i18n ("&Edit"), editMenu) + + helpMenu = self.helpMenu ("") + self.menuBar ().insertItem (i18n ("&Help"), helpMenu) + + def initToolBar (self): + icons = KIconLoader () + + self.toolBar ().insertButton (icons.loadIcon ("filenew", KIcon.Toolbar), TOOLBAR_NEW, SIGNAL ("clicked (int)"), self.slotNew,\ + True, "New") + self.toolBar ().insertButton (icons.loadIcon ("fileopen", KIcon.Toolbar), TOOLBAR_OPEN, SIGNAL ("clicked (int)"), self.slotOpen,\ + True, "Open") + self.toolBar ().insertButton (icons.loadIcon ("filesave", KIcon.Toolbar), TOOLBAR_SAVE, SIGNAL ("clicked (int)"), self.slotSave,\ + True, "Save") + self.toolBar ().insertButton (icons.loadIcon ("editcut", KIcon.Toolbar), TOOLBAR_CUT, SIGNAL ("clicked (int)"), self.slotCut,\ + True, "Cut") + self.toolBar ().insertButton (icons.loadIcon ("editcopy", KIcon.Toolbar), TOOLBAR_COPY, SIGNAL ("clicked (int)"), self.slotCopy,\ + True, "Copy") + self.toolBar ().insertButton (icons.loadIcon ("editpaste", KIcon.Toolbar), TOOLBAR_PASTE, SIGNAL ("clicked (int)"), self.slotPaste,\ + True, "Paste") + + def initStatusBar (self): + self.statusBar ().insertItem ("", STATUSBAR_LEFT, 1000, True) + self.statusBar ().insertItem ("", STATUSBAR_MIDDLE, 1000, True) + self.statusBar ().insertItem ("", STATUSBAR_RIGHT, 1000, True) + + +#-------------------- slots ----------------------------------------------- + + def slotNew (self, id = -1): + self.notImpl ("New") + + def slotOpen(self, id = -1): + self.notImpl ("Open") + + def slotSave (self, id = -1): + self.notImpl ("Save") + + def slotSaveAs (self): + self.notImpl ("Save As") + + def slotPrint (self): + self.notImpl ("Print") + + def slotQuit (self): + self.notImpl ("Quit") + + def slotUndo (self): + self.notImpl ("Undo") + + def slotRedo (self): + self.notImpl ("Redo") + + def slotCut (self, id = -1): + self.notImpl ("Cut") + + def slotCopy (self, id = -1): + self.notImpl ("Copy") + + def slotPaste (self, id = -1): + self.notImpl ("Paste") + + def slotFind (self): + self.notImpl ("Find") + + def slotFindNext (self): + self.notImpl ("Find Next") + + def slotReplace (self): + self.notImpl ("Replace") + + def notImpl (self, item = "Feature"): + self.statusBar ().changeItem ("%s not implemented" % item, STATUSBAR_LEFT) + KMessageBox.error (self, "%s not implemented" % item, "Not Implemented") + self.statusBar ().changeItem ("", STATUSBAR_LEFT) + + +#-------------------- main ------------------------------------------------ + +description = "A basic application template" +version = "1.0" +aboutData = KAboutData ("", "",\ + version, description, KAboutData.License_GPL,\ + "(C) 2003 whoever the author is") + +aboutData.addAuthor ("author1", "whatever they did", "email@somedomain") +aboutData.addAuthor ("author2", "they did something else", "another@email.address") + +KCmdLineArgs.init (sys.argv, aboutData) + +KCmdLineArgs.addCmdLineOptions ([("+files", "File to open")]) + +app = KApplication () +mainWindow = MainWin (None, "main window") +mainWindow.show() +app.exec_loop() diff --git a/templates/basic/menuapp2.py b/templates/basic/menuapp2.py new file mode 100644 index 0000000..394eca8 --- /dev/null +++ b/templates/basic/menuapp2.py @@ -0,0 +1,200 @@ +""" +This template constructs an application with menus, toolbar and statusbar. +It uses KDE classes and methods that simplify the task of building and +operating a GUI. It is recommended that this approach be used, rather +than the primitive approach in menuapp1.py +""" + +""" +Copyright 2003 Jim Bublitz + +Terms and Conditions + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to +deal in the Software without restriction, including without limitation the +rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +sell copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +Except as contained in this notice, the name of the copyright holder shall +not be used in advertising or otherwise to promote the sale, use or other +dealings in this Software without prior written authorization from the +copyright holder. +""" + + +False = 0 +True = not False + + +import sys + +from qt import QPopupMenu, SIGNAL + +from kdecore import KApplication, KCmdLineArgs, KAboutData, i18n, KShortcut +from kdeui import KMainWindow, KMessageBox, KStdAction, KAction + +STATUSBAR_LEFT = 1 +STATUSBAR_MIDDLE = 2 +STATUSBAR_RIGHT = 3 + +class MainWin (KMainWindow): + def __init__ (self, *args): + apply (KMainWindow.__init__, (self,) + args) + + self.initActions () + self.initMenus () + self.initToolBar () + self.initStatusBar () + + self.saveAction.setEnabled (False) + self.saveAsAction.setEnabled (False) + + def initActions (self): + # "File" menu items + self.newAction = KStdAction.openNew (self.slotNew, self.actionCollection ()) + self.openAction = KStdAction.open (self.slotOpen, self.actionCollection ()) + self.saveAction = KStdAction.save (self.slotSave, self.actionCollection ()) + self.saveAsAction = KStdAction.saveAs (self.slotSaveAs, self.actionCollection ()) + self.printAction = KStdAction.print_ (self.slotPrint, self.actionCollection ()) + self.quitAction = KStdAction.quit (self.slotQuit, self.actionCollection ()) + + # "Edit" menu items + self.undoAction = KStdAction.undo (self.slotUndo, self.actionCollection ()) + self.redoAction = KStdAction.redo (self.slotRedo, self.actionCollection ()) + self.cutAction = KStdAction.cut (self.slotCut, self.actionCollection ()) + self.copyAction = KStdAction.copy (self.slotCopy, self.actionCollection ()) + self.pasteAction = KStdAction.paste (self.slotPaste, self.actionCollection ()) + self.findAction = KStdAction.find (self.slotFind, self.actionCollection ()) + self.findNextAction = KStdAction.findNext (self.slotFindNext, self.actionCollection ()) + self.replaceAction = KStdAction.replace (self.slotReplace, self.actionCollection ()) + self.specialAction = KAction (i18n ("Special"), KShortcut.null (), self.slotSpecial, self.actionCollection (), None) + + def initMenus (self): + fileMenu = QPopupMenu (self) + self.newAction.plug (fileMenu) + self.openAction.plug (fileMenu) + fileMenu.insertSeparator () + self.saveAction.plug (fileMenu) + self.saveAsAction.plug (fileMenu) + fileMenu.insertSeparator () + self.printAction.plug (fileMenu) + fileMenu.insertSeparator () + self.quitAction.plug (fileMenu) + self.menuBar ().insertItem (i18n ("&File"), fileMenu) + + editMenu = QPopupMenu (self) + self.undoAction.plug (editMenu) + self.redoAction.plug (editMenu) + editMenu.insertSeparator () + self.cutAction.plug (editMenu) + self.copyAction.plug (editMenu) + self.pasteAction.plug (editMenu) + editMenu.insertSeparator () + self.findAction.plug (editMenu) + self.findNextAction.plug (editMenu) + self.replaceAction.plug (editMenu) + editMenu.insertSeparator () + self.specialAction.plug (editMenu) + self.menuBar ().insertItem (i18n ("&Edit"), editMenu) + + helpMenu = self.helpMenu ("") + self.menuBar ().insertItem (i18n ("&Help"), helpMenu) + + def initToolBar (self): + self.newAction.plug (self.toolBar ()) + self.openAction.plug (self.toolBar ()) + self.saveAction.plug (self.toolBar ()) + self.cutAction.plug (self.toolBar ()) + self.copyAction.plug (self.toolBar ()) + self.pasteAction.plug (self.toolBar ()) + + def initStatusBar (self): + self.statusBar ().insertItem ("", STATUSBAR_LEFT, 1000, True) + self.statusBar ().insertItem ("", STATUSBAR_MIDDLE, 1000, True) + self.statusBar ().insertItem ("", STATUSBAR_RIGHT, 1000, True) + +#-------------------- slots ----------------------------------------------- + + def slotNew (self, id = -1): + self.notImpl ("New") + + def slotOpen(self, id = -1): + self.notImpl ("Open") + + def slotSave (self, id = -1): + self.notImpl ("Save") + + def slotSaveAs (self): + self.notImpl ("Save As") + + def slotPrint (self): + self.notImpl ("Print") + + def slotQuit (self): + self.notImpl ("Quit") + + def slotUndo (self): + self.notImpl ("Undo") + + def slotRedo (self): + self.notImpl ("Redo") + + def slotCut (self, id = -1): + self.notImpl ("Cut") + + def slotCopy (self, id = -1): + self.notImpl ("Copy") + + def slotPaste (self, id = -1): + self.notImpl ("Paste") + + def slotFind (self): + self.notImpl ("Find") + + def slotFindNext (self): + self.notImpl ("Find Next") + + def slotReplace (self): + self.notImpl ("Replace") + + def slotSpecial (self): + self.notImpl ("Special") + + def notImpl (self, item = "Feature"): + self.statusBar ().changeItem ("%s not implemented" % item, STATUSBAR_LEFT) + KMessageBox.error (self, "%s not implemented" % item, "Not Implemented") + self.statusBar ().changeItem ("", STATUSBAR_LEFT) + + +#-------------------- main ------------------------------------------------ + +description = "A basic application template" +version = "1.0" +aboutData = KAboutData ("", "",\ + version, description, KAboutData.License_GPL,\ + "(C) 2003 whoever the author is") + +aboutData.addAuthor ("author1", "whatever they did", "email@somedomain") +aboutData.addAuthor ("author2", "they did something else", "another@email.address") + +KCmdLineArgs.init (sys.argv, aboutData) + +KCmdLineArgs.addCmdLineOptions ([("+files", "File to open")]) + +app = KApplication () +mainWindow = MainWin (None, "main window") +mainWindow.show() +app.exec_loop() diff --git a/templates/basic/menuapp3.py b/templates/basic/menuapp3.py new file mode 100644 index 0000000..e729d6d --- /dev/null +++ b/templates/basic/menuapp3.py @@ -0,0 +1,162 @@ +""" +This template constructs an application with menus, toolbar and statusbar. +It uses an XML file (menuapp3ui.rc) to specify the menu layout; all menu +items have a corresponding action defined, but no menus are created +explicitly in code. This app has the same menu layout as menuapp2.py +""" + +""" +Copyright 2003 Jim Bublitz + +Terms and Conditions + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to +deal in the Software without restriction, including without limitation the +rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +sell copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +Except as contained in this notice, the name of the copyright holder shall +not be used in advertising or otherwise to promote the sale, use or other +dealings in this Software without prior written authorization from the +copyright holder. +""" + + +False = 0 +True = not False + + +import sys + +from qt import QPopupMenu, SIGNAL + +from kdecore import KApplication, KCmdLineArgs, KAboutData, i18n, KShortcut +from kdeui import KMainWindow, KMessageBox, KStdAction, KAction, KActionCollection + +STATUSBAR_LEFT = 1 +STATUSBAR_MIDDLE = 2 +STATUSBAR_RIGHT = 3 + +class MainWin (KMainWindow): + def __init__ (self, *args): + apply (KMainWindow.__init__, (self,) + args) + + self.initActions () + self.createGUI () + self.initStatusBar () + + self.saveAction.setEnabled (False) + self.saveAsAction.setEnabled (False) + + def initActions (self): + # "File" menu items + self.newAction = KStdAction.openNew (self.slotNew, self.actionCollection ()) + self.openAction = KStdAction.open (self.slotOpen, self.actionCollection ()) + self.saveAction = KStdAction.save (self.slotSave, self.actionCollection ()) + self.saveAsAction = KStdAction.saveAs (self.slotSaveAs, self.actionCollection ()) + self.printAction = KStdAction.print_ (self.slotPrint, self.actionCollection ()) + self.quitAction = KStdAction.quit (self.slotQuit, self.actionCollection ()) + + + # "Edit" menu items + self.undoAction = KStdAction.undo (self.slotUndo, self.actionCollection ()) + self.redoAction = KStdAction.redo (self.slotRedo, self.actionCollection ()) + self.cutAction = KStdAction.cut (self.slotCut, self.actionCollection ()) + self.copyAction = KStdAction.copy (self.slotCopy, self.actionCollection ()) + self.pasteAction = KStdAction.paste (self.slotPaste, self.actionCollection ()) + self.findAction = KStdAction.find (self.slotFind, self.actionCollection ()) + self.findNextAction = KStdAction.findNext (self.slotFindNext, self.actionCollection ()) + self.replaceAction = KStdAction.replace (self.slotReplace, self.actionCollection ()) + self.specialAction = KAction (i18n ("Special"), KShortcut.null (), self.slotSpecial, self.actionCollection (), "specialActionName") + + def initStatusBar (self): + self.statusBar ().insertItem ("", STATUSBAR_LEFT, 1000, True) + self.statusBar ().insertItem ("", STATUSBAR_MIDDLE, 1000, True) + self.statusBar ().insertItem ("", STATUSBAR_RIGHT, 1000, True) + +#-------------------- slots ----------------------------------------------- + + def slotNew (self, id = -1): + self.notImpl ("New") + + def slotOpen(self, id = -1): + self.notImpl ("Open") + + def slotSave (self, id = -1): + self.notImpl ("Save") + + def slotSaveAs (self): + self.notImpl ("Save As") + + def slotPrint (self): + self.notImpl ("Print") + + def slotQuit (self): + self.notImpl ("Quit") + + def slotUndo (self): + self.notImpl ("Undo") + + def slotRedo (self): + self.notImpl ("Redo") + + def slotCut (self, id = -1): + self.notImpl ("Cut") + + def slotCopy (self, id = -1): + self.notImpl ("Copy") + + def slotPaste (self, id = -1): + self.notImpl ("Paste") + + def slotFind (self): + self.notImpl ("Find") + + def slotFindNext (self): + self.notImpl ("Find Next") + + def slotReplace (self): + self.notImpl ("Replace") + + def slotSpecial (self): + self.notImpl ("Special") + + def notImpl (self, item = "Feature"): + self.statusBar ().changeItem ("%s not implemented" % item, STATUSBAR_LEFT) + KMessageBox.error (self, "%s not implemented" % item, "Not Implemented") + self.statusBar ().changeItem ("", STATUSBAR_LEFT) + + +#-------------------- main ------------------------------------------------ + +description = "A basic application template" +version = "1.0" +aboutData = KAboutData ("menuapp3", "",\ + version, description, KAboutData.License_GPL,\ + "(C) 2003 whoever the author is") + +aboutData.addAuthor ("author1", "whatever they did", "email@somedomain") +aboutData.addAuthor ("author2", "they did something else", "another@email.address") + +KCmdLineArgs.init (sys.argv, aboutData) + +KCmdLineArgs.addCmdLineOptions ([("+files", "File to open")]) + +app = KApplication () +mainWindow = MainWin (None, "main window") +mainWindow.show() +app.exec_loop() + diff --git a/templates/basic/menuapp3ui.rc b/templates/basic/menuapp3ui.rc new file mode 100644 index 0000000..60120e2 --- /dev/null +++ b/templates/basic/menuapp3ui.rc @@ -0,0 +1,24 @@ + + + + &File + + + + + + + + &Edit + + + + + + + + + + + + \ No newline at end of file diff --git a/templates/basic/minimal.py b/templates/basic/minimal.py new file mode 100644 index 0000000..72ff3be --- /dev/null +++ b/templates/basic/minimal.py @@ -0,0 +1,48 @@ +""" +Copyright 2003 Jim Bublitz + +Terms and Conditions + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to +deal in the Software without restriction, including without limitation the +rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +sell copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +Except as contained in this notice, the name of the copyright holder shall +not be used in advertising or otherwise to promote the sale, use or other +dealings in this Software without prior written authorization from the +copyright holder. +""" + +import sys + +from kdecore import KApplication +from kdeui import KMainWindow + +class MainWin (KMainWindow): + def __init__ (self, *args): + apply (KMainWindow.__init__, (self,) + args) + + +#-------------------- main ------------------------------------------------ + +appName = "template" +app = KApplication (sys.argv, appName) +mainWindow = MainWin (None, "main window") +mainWindow.show() +app.exec_loop() + + diff --git a/templates/basic/panelapplet.py b/templates/basic/panelapplet.py new file mode 100644 index 0000000..4ac8016 --- /dev/null +++ b/templates/basic/panelapplet.py @@ -0,0 +1,49 @@ +""" +A basic panel applet template - working examples are in the +pykpanelapplet/ directory +""" +""" +Copyright 2003 Jim Bublitz + +Terms and Conditions + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to +deal in the Software without restriction, including without limitation the +rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +sell copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +Except as contained in this notice, the name of the copyright holder shall +not be used in advertising or otherwise to promote the sale, use or other +dealings in this Software without prior written authorization from the +copyright holder. +""" + +from kdeui import PyKPanelApplet, KPanelApplet + + +def createApplet (parent, configFile): + return PanelAppletName (configFile, KPanelApplet.Normal, 0, parent, "nameMe") + + +class PanelAppletName (PyKPanelApplet): + def __init__ (self, configFile, t, actions, parent, name, f = 0): + PyKPanelApplet.__init__ (self, configFile, t, actions, parent, name, f) + + def widthForHeight (self, h): + return h + + def heightForWidth (self, w ): + return w diff --git a/templates/basic/systray.py b/templates/basic/systray.py new file mode 100644 index 0000000..1363dac --- /dev/null +++ b/templates/basic/systray.py @@ -0,0 +1,61 @@ +""" +Copyright 2003 Jim Bublitz + +Terms and Conditions + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to +deal in the Software without restriction, including without limitation the +rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +sell copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +Except as contained in this notice, the name of the copyright holder shall +not be used in advertising or otherwise to promote the sale, use or other +dealings in this Software without prior written authorization from the +copyright holder. +""" + +import sys + +from qt import QWidget, SIGNAL +from kdecore import KApplication, KIcon, KIconLoader +from kdeui import KSystemTray + + +class MainWin (QWidget): + def __init__ (self, *args): + apply (QWidget.__init__, (self,) + args) + +#-------------------- main ------------------------------------------------ + +def slotQuitSelected (): + KApplication.kApplication ().quit () + +appName = "template" +app = KApplication (sys.argv, appName) +mainWindow = MainWin (None, "main window") + +icons = KIconLoader () + +systray = KSystemTray (mainWindow) + +systray.setPixmap (icons.loadIcon("stop", KIcon.Desktop)) +systray.connect (systray, SIGNAL ("quitSelected ()"), slotQuitSelected) +systray.show () + +mainWindow.show() +app.exec_loop() + + diff --git a/templates/basic/systray1.py b/templates/basic/systray1.py new file mode 100644 index 0000000..bd5da9d --- /dev/null +++ b/templates/basic/systray1.py @@ -0,0 +1,67 @@ +""" +Copyright 2003 Jim Bublitz + +Terms and Conditions + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to +deal in the Software without restriction, including without limitation the +rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +sell copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +Except as contained in this notice, the name of the copyright holder shall +not be used in advertising or otherwise to promote the sale, use or other +dealings in this Software without prior written authorization from the +copyright holder. +""" + +import sys + +from qt import QLabel, QWidget, SIGNAL +from kdecore import KApplication, KIcon, KIconLoader +from kdeui import KMainWindow, KSystemTray + +class MainWin (KMainWindow): + def __init__ (self, *args): + apply (KMainWindow.__init__, (self,) + args) + + self.exitFlag = False + + icons = KIconLoader () + + self.systray = KSystemTray (self) + self.systray.setPixmap (icons.loadIcon("stop", KIcon.Desktop)) + self.systray.connect (self.systray, SIGNAL ("quitSelected ()"), self.slotQuitSelected) + self.systray.show () + + def queryClose (self): + self.hide () + return self.exitFlag + + def slotQuitSelected (self): + self.exitFlag = True + KApplication.kApplication ().quit () + +#-------------------- main ------------------------------------------------ + + +appName = "template" +app = KApplication (sys.argv, appName) +mainWindow = MainWin (None, "main window") + +mainWindow.show() +app.exec_loop() + +